@lovrabet/lovrabet-cli 2.0.5-beta.0 → 2.0.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16_0x4e8c6e=a16_0x4166;function a16_0x4166(_0xb129ee,_0x733d85){_0xb129ee=_0xb129ee-0x67;const _0x5af3c5=a16_0x5af3();let _0x41669a=_0x5af3c5[_0xb129ee];return _0x41669a;}(function(_0x405f87,_0x2f320e){const _0x109e04=a16_0x4166,_0x3e7a15=_0x405f87();while(!![]){try{const _0x5c263f=-parseInt(_0x109e04(0x9e))/0x1*(parseInt(_0x109e04(0x69))/0x2)+-parseInt(_0x109e04(0x95))/0x3*(parseInt(_0x109e04(0x8e))/0x4)+parseInt(_0x109e04(0x6f))/0x5*(parseInt(_0x109e04(0x90))/0x6)+-parseInt(_0x109e04(0xae))/0x7*(parseInt(_0x109e04(0x97))/0x8)+parseInt(_0x109e04(0x83))/0x9+parseInt(_0x109e04(0x74))/0xa+parseInt(_0x109e04(0xa8))/0xb;if(_0x5c263f===_0x2f320e)break;else _0x3e7a15['push'](_0x3e7a15['shift']());}catch(_0x31903b){_0x3e7a15['push'](_0x3e7a15['shift']());}}}(a16_0x5af3,0x94528));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';function a16_0x5af3(){const _0x24ede2=['\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','write','high-risk-write','map','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20completed\x20in\x20','36804jJGCRs','\x20\x20LOGICAL\x20COMBINATORS','2376642MAdQLD','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','285inVhUi','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','648MkCNXI','code','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','aggregate','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','1awYoDo','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','description','delete','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','operation','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','5836864EutVPF','command','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','build','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','45647VNxWAd','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','filter','body','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','update','join','read','paramsHint','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','1189778jdAhrK','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','data\x20','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','10uNoKpr','dryRun','helpExtra','str','POST','6083830MkBJfH','now','batchCreate','create','Preview:\x20data\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','params','data','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','6061428FJvpBr'];a16_0x5af3=function(){return _0x24ede2;};return a16_0x5af3();}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x4e8c6e(0xb2),'operation':a16_0x4e8c6e(0xb2),'risk':a16_0x4e8c6e(0xb7),'paramsRequired':![],'description':a16_0x4e8c6e(0x94),'paramsHint':a16_0x4e8c6e(0x7b)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a16_0x4e8c6e(0xac),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a16_0x4e8c6e(0x6d),a16_0x4e8c6e(0x82),a16_0x4e8c6e(0x7f),a16_0x4e8c6e(0xb1),a16_0x4e8c6e(0xaf),a16_0x4e8c6e(0x8b),a16_0x4e8c6e(0x6b),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a16_0x4e8c6e(0x7a),'',a16_0x4e8c6e(0x8f),a16_0x4e8c6e(0x88),a16_0x4e8c6e(0xa1),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a16_0x4e8c6e(0xa0),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a16_0x4e8c6e(0x91),a16_0x4e8c6e(0xb4),a16_0x4e8c6e(0x6a),'','\x20\x20PAGINATION',a16_0x4e8c6e(0x68),a16_0x4e8c6e(0x84),a16_0x4e8c6e(0xa5)][a16_0x4e8c6e(0xb6)]('\x0a')},{'command':'getOne','operation':'getOne','risk':a16_0x4e8c6e(0xb7),'paramsRequired':!![],'description':a16_0x4e8c6e(0x92),'paramsHint':a16_0x4e8c6e(0x9f)},{'command':'create','operation':a16_0x4e8c6e(0x77),'risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':a16_0x4e8c6e(0xb0),'paramsHint':a16_0x4e8c6e(0x6e)},{'command':a16_0x4e8c6e(0x76),'operation':'batchCreate','risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':a16_0x4e8c6e(0x89),'paramsHint':a16_0x4e8c6e(0x93)},{'command':a16_0x4e8c6e(0xb5),'operation':'update','risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x4e8c6e(0xa4)},{'command':'delete','operation':a16_0x4e8c6e(0xa3),'risk':a16_0x4e8c6e(0x86),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a16_0x4e8c6e(0x9f)},{'command':a16_0x4e8c6e(0x9a),'operation':a16_0x4e8c6e(0x9a),'risk':'read','paramsRequired':![],'description':a16_0x4e8c6e(0x96),'paramsHint':a16_0x4e8c6e(0xa7)+a16_0x4e8c6e(0x8a),'helpExtra':['\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a16_0x4e8c6e(0xad),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a16_0x4e8c6e(0x99),'',a16_0x4e8c6e(0x9b),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x4e8c6e(0x8c),a16_0x4e8c6e(0x79),a16_0x4e8c6e(0x7d),'\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}',a16_0x4e8c6e(0xaa),'','\x20\x20EXAMPLES',a16_0x4e8c6e(0x7c),a16_0x4e8c6e(0x7e),'',a16_0x4e8c6e(0x9d),a16_0x4e8c6e(0x9c)][a16_0x4e8c6e(0xb6)]('\x0a')}];function makeDataCommand(_0x5958ee){const _0x323fe0=a16_0x4e8c6e,_0x3e7bec=_0x323fe0(0x6c)+_0x5958ee[_0x323fe0(0xa9)],_0x2e149e={'service':_0x323fe0(0x81),'command':_0x5958ee[_0x323fe0(0xa9)],'description':_0x5958ee[_0x323fe0(0xa2)],'risk':_0x5958ee['risk'],'helpExtra':_0x5958ee[_0x323fe0(0x71)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5958ee[_0x323fe0(0x67)]}],'validate':async _0x25eca5=>{const _0x19cc02=_0x323fe0;_0x5958ee['paramsRequired']&&requireAnyOf(_0x25eca5,['params'],_0x3e7bec),_0x5958ee[_0x19cc02(0xa6)]===_0x19cc02(0x76)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25eca5['str'](_0x19cc02(0x80))));},async 'execute'(_0x15a6c4){const _0xcb10cb=_0x323fe0,_0x3dc51e=_0x15a6c4[_0xcb10cb(0x72)](_0xcb10cb(0x98)),_0x2e99e5=_0x5958ee[_0xcb10cb(0xa6)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x15a6c4[_0xcb10cb(0x72)](_0xcb10cb(0x80)))):parseJsonParams(_0x15a6c4['str']('params'))??{},_0x155aa5=Date['now'](),_0x5c0c8f=await executeData(_0x3dc51e,_0x5958ee[_0xcb10cb(0xa6)],_0x2e99e5),_0x5cf6ee=Date[_0xcb10cb(0x75)]()-_0x155aa5;return{'ok':!![],'data':{'result':_0x5c0c8f,'elapsed':_0x5cf6ee},'message':_0xcb10cb(0x6c)+_0x5958ee['command']+_0xcb10cb(0x8d)+_0x5cf6ee+'ms'};}};return _0x5958ee['risk']!==_0x323fe0(0xb7)&&(_0x2e149e[_0x323fe0(0x70)]=async _0x3dcf77=>{const _0xffc292=_0x323fe0,_0x31e828=_0x3dcf77[_0xffc292(0x72)]('code'),_0x2d8eb3=_0x5958ee['operation']===_0xffc292(0x76)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3dcf77[_0xffc292(0x72)]('params'))):parseJsonParams(_0x3dcf77['str']('params'))??{};return dryRun(_0xffc292(0x73),'/api/{appCode}/'+_0x31e828+'/'+_0x5958ee[_0xffc292(0xa6)])[_0xffc292(0xb3)](_0x2d8eb3)[_0xffc292(0xa2)](_0xffc292(0x78)+_0x5958ee[_0xffc292(0xa9)]+'\x20on\x20dataset\x20'+_0x31e828)[_0xffc292(0xab)]();}),_0x2e149e;}export const dataDefinitions=specs[a16_0x4e8c6e(0x87)](makeDataCommand);
|
|
1
|
+
const a16_0x2131e1=a16_0x2e0d;(function(_0x8d0787,_0x40ca55){const _0x4acabd=a16_0x2e0d,_0x52653d=_0x8d0787();while(!![]){try{const _0x1f1d32=parseInt(_0x4acabd(0x161))/0x1*(parseInt(_0x4acabd(0x148))/0x2)+parseInt(_0x4acabd(0x188))/0x3*(parseInt(_0x4acabd(0x18b))/0x4)+parseInt(_0x4acabd(0x185))/0x5+-parseInt(_0x4acabd(0x16c))/0x6*(-parseInt(_0x4acabd(0x166))/0x7)+parseInt(_0x4acabd(0x182))/0x8+-parseInt(_0x4acabd(0x16d))/0x9+-parseInt(_0x4acabd(0x17a))/0xa*(parseInt(_0x4acabd(0x14a))/0xb);if(_0x1f1d32===_0x40ca55)break;else _0x52653d['push'](_0x52653d['shift']());}catch(_0x42d5a8){_0x52653d['push'](_0x52653d['shift']());}}}(a16_0x3b36,0xf03d2));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a16_0x3b36(){const _0x26660=['\x20on\x20dataset\x20','update','\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\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}}]}','write','\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}','params','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','description','Preview:\x20data\x20','12603830NJXKmL','build','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20PARAMS\x20STRUCTURE','\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\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','5067512XWSIrr','getOne','\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}}','510515yfqjbh','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','3rMzhEk','risk','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','7821508jLFQCJ','batchCreate','\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}}','command','dryRun','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','join','\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}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20EXAMPLES','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20PAGINATION','/api/{appCode}/','\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}]','84YdKeKE','\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}}','11kGcYGd','body','\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\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$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}}','high-risk-write','read','operation','data','str','aggregate','filter','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\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}','\x20\x20WHERE\x20OPERATORS','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\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}}','delete','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','5291gqzGbf','paramsHint','create','\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]','\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}}','119UetqeV','POST','paramsRequired','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','data\x20','103764abeJDi','8664642AiWbfd','code'];a16_0x3b36=function(){return _0x26660;};return a16_0x3b36();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x2131e1(0x155),'operation':'filter','risk':a16_0x2131e1(0x150),'paramsRequired':![],'description':a16_0x2131e1(0x169),'paramsHint':a16_0x2131e1(0x181)+a16_0x2131e1(0x13d),'helpExtra':[a16_0x2131e1(0x158),a16_0x2131e1(0x14e),a16_0x2131e1(0x149),'\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\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a16_0x2131e1(0x15a),a16_0x2131e1(0x15e),'\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_0x2131e1(0x165),a16_0x2131e1(0x14c),a16_0x2131e1(0x18d),'','\x20\x20LOGICAL\x20COMBINATORS',a16_0x2131e1(0x14d),a16_0x2131e1(0x172),'',a16_0x2131e1(0x15b),a16_0x2131e1(0x144),a16_0x2131e1(0x164),a16_0x2131e1(0x147),a16_0x2131e1(0x13e),a16_0x2131e1(0x190),'',a16_0x2131e1(0x145),a16_0x2131e1(0x15d),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a16_0x2131e1(0x160)][a16_0x2131e1(0x140)]('\x0a')},{'command':a16_0x2131e1(0x183),'operation':a16_0x2131e1(0x183),'risk':a16_0x2131e1(0x150),'paramsRequired':!![],'description':a16_0x2131e1(0x142),'paramsHint':a16_0x2131e1(0x17c)},{'command':a16_0x2131e1(0x163),'operation':a16_0x2131e1(0x163),'risk':a16_0x2131e1(0x173),'paramsRequired':!![],'description':a16_0x2131e1(0x13f),'paramsHint':a16_0x2131e1(0x13c)},{'command':a16_0x2131e1(0x18c),'operation':a16_0x2131e1(0x18c),'risk':a16_0x2131e1(0x173),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a16_0x2131e1(0x17e)},{'command':a16_0x2131e1(0x170),'operation':a16_0x2131e1(0x170),'risk':a16_0x2131e1(0x173),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x2131e1(0x187)},{'command':a16_0x2131e1(0x15f),'operation':a16_0x2131e1(0x15f),'risk':a16_0x2131e1(0x14f),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a16_0x2131e1(0x17c)},{'command':a16_0x2131e1(0x154),'operation':a16_0x2131e1(0x154),'risk':a16_0x2131e1(0x150),'paramsRequired':![],'description':a16_0x2131e1(0x16a),'paramsHint':a16_0x2131e1(0x159)+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a16_0x2131e1(0x15c),a16_0x2131e1(0x141),a16_0x2131e1(0x171),a16_0x2131e1(0x176),a16_0x2131e1(0x191),a16_0x2131e1(0x174),a16_0x2131e1(0x157),a16_0x2131e1(0x17d),'',a16_0x2131e1(0x17f),a16_0x2131e1(0x180),a16_0x2131e1(0x177),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a16_0x2131e1(0x18a),a16_0x2131e1(0x184),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a16_0x2131e1(0x143),a16_0x2131e1(0x186),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a16_0x2131e1(0x156)][a16_0x2131e1(0x140)]('\x0a')}];function makeDataCommand(_0x2e4f07){const _0x591b5e=a16_0x2131e1,_0x4f87e0=_0x591b5e(0x16b)+_0x2e4f07[_0x591b5e(0x18e)],_0x35ee24={'service':_0x591b5e(0x152),'command':_0x2e4f07[_0x591b5e(0x18e)],'description':_0x2e4f07[_0x591b5e(0x178)],'risk':_0x2e4f07[_0x591b5e(0x189)],'helpExtra':_0x2e4f07['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2e4f07[_0x591b5e(0x162)]}],'validate':async _0x5cf76c=>{const _0x3e91f2=_0x591b5e;_0x2e4f07[_0x3e91f2(0x168)]&&requireAnyOf(_0x5cf76c,[_0x3e91f2(0x175)],_0x4f87e0),_0x2e4f07['operation']===_0x3e91f2(0x18c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5cf76c['str'](_0x3e91f2(0x175))));},async 'execute'(_0x51ea5d){const _0x4cb26c=_0x591b5e,_0x3a8a63=_0x51ea5d[_0x4cb26c(0x153)](_0x4cb26c(0x16e)),_0xaa106=_0x2e4f07[_0x4cb26c(0x151)]===_0x4cb26c(0x18c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x51ea5d['str'](_0x4cb26c(0x175)))):parseJsonParams(_0x51ea5d['str'](_0x4cb26c(0x175)))??{},_0x503182=Date['now'](),_0x2b215b=await executeData(_0x3a8a63,_0x2e4f07['operation'],_0xaa106),_0x22a0c7=Date['now']()-_0x503182;return{'ok':!![],'data':{'result':_0x2b215b,'elapsed':_0x22a0c7},'message':_0x4cb26c(0x16b)+_0x2e4f07[_0x4cb26c(0x18e)]+'\x20completed\x20in\x20'+_0x22a0c7+'ms'};}};return _0x2e4f07[_0x591b5e(0x189)]!==_0x591b5e(0x150)&&(_0x35ee24[_0x591b5e(0x18f)]=async _0x160de6=>{const _0x49c428=_0x591b5e,_0x3f22b2=_0x160de6[_0x49c428(0x153)](_0x49c428(0x16e)),_0x1126b5=_0x2e4f07[_0x49c428(0x151)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x160de6[_0x49c428(0x153)](_0x49c428(0x175)))):parseJsonParams(_0x160de6[_0x49c428(0x153)](_0x49c428(0x175)))??{};return dryRun(_0x49c428(0x167),_0x49c428(0x146)+_0x3f22b2+'/'+_0x2e4f07[_0x49c428(0x151)])[_0x49c428(0x14b)](_0x1126b5)[_0x49c428(0x178)](_0x49c428(0x179)+_0x2e4f07[_0x49c428(0x18e)]+_0x49c428(0x16f)+_0x3f22b2)[_0x49c428(0x17b)]();}),_0x35ee24;}function a16_0x2e0d(_0xbbffda,_0x44fd8b){_0xbbffda=_0xbbffda-0x13c;const _0x3b36d3=a16_0x3b36();let _0x2e0dab=_0x3b36d3[_0xbbffda];return _0x2e0dab;}export const dataDefinitions=specs['map'](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x50e8b3=a17_0x87b7;function a17_0x87b7(_0x1e7c06,_0x5a3a68){_0x1e7c06=_0x1e7c06-0x1db;const _0x4095ae=a17_0x4095();let _0x87b7d1=_0x4095ae[_0x1e7c06];return _0x87b7d1;}(function(_0x3398d9,_0x4acf96){const _0x361f50=a17_0x87b7,_0x5a715d=_0x3398d9();while(!![]){try{const _0x2f3d3a=-parseInt(_0x361f50(0x20b))/0x1*(-parseInt(_0x361f50(0x1f3))/0x2)+-parseInt(_0x361f50(0x1ec))/0x3+-parseInt(_0x361f50(0x207))/0x4+parseInt(_0x361f50(0x20a))/0x5+parseInt(_0x361f50(0x1eb))/0x6*(parseInt(_0x361f50(0x1e6))/0x7)+parseInt(_0x361f50(0x200))/0x8+parseInt(_0x361f50(0x21d))/0x9*(-parseInt(_0x361f50(0x1ea))/0xa);if(_0x2f3d3a===_0x4acf96)break;else _0x5a715d['push'](_0x5a715d['shift']());}catch(_0x2cfddc){_0x5a715d['push'](_0x5a715d['shift']());}}}(a17_0x4095,0x8550b));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x456b2f){const _0x2fedbe=a17_0x87b7;if(_0x456b2f[_0x2fedbe(0x213)])return null;const _0x4a1b9b=Boolean(_0x456b2f[_0x2fedbe(0x1e7)]!==undefined||_0x456b2f[_0x2fedbe(0x1ee)]!==undefined);let _0x20bba={};if(!_0x4a1b9b&&typeof _0x456b2f['extend']===_0x2fedbe(0x1e5))try{_0x20bba=JSON[_0x2fedbe(0x1e8)](_0x456b2f[_0x2fedbe(0x1f1)]);}catch{}const _0xd4922c=_0x4a1b9b?_0x456b2f[_0x2fedbe(0x1fc)]:_0x456b2f[_0x2fedbe(0x212)],_0x49720a=_0x4a1b9b?_0x456b2f[_0x2fedbe(0x1e7)]:_0x456b2f['name'],_0x5203f0=_0x4a1b9b?_0x456b2f[_0x2fedbe(0x1ee)]:_0x456b2f[_0x2fedbe(0x217)]||_0x456b2f['dataType'],_0x5538cd=_0x4a1b9b?_0x456b2f[_0x2fedbe(0x1ef)]===!![]:_0x20bba['pkField']===!![],_0x1d0eaf=_0x4a1b9b?_0x456b2f[_0x2fedbe(0x1e9)]===!![]:_0x20bba[_0x2fedbe(0x1e9)]===!![],_0x36ce3d=_0x4a1b9b?_0x456b2f['options']??null:_0x20bba[_0x2fedbe(0x1dc)]??null,_0x7f52eb={'name':_0xd4922c,'displayName':_0x49720a||_0xd4922c,'type':_0x5203f0,'dbType':_0x456b2f['dbType'],'pk':_0x5538cd,'required':_0x1d0eaf,'description':_0x456b2f[_0x2fedbe(0x21b)]||undefined};return Array['isArray'](_0x36ce3d)&&_0x36ce3d[_0x2fedbe(0x1f2)]>0x0&&(_0x7f52eb[_0x2fedbe(0x1dc)]=_0x36ce3d),_0x7f52eb;}function parseJsonMaybe(_0xf87204){const _0x133fa7=a17_0x87b7;if(typeof _0xf87204!==_0x133fa7(0x1e5))return _0xf87204;try{return JSON[_0x133fa7(0x1e8)](_0xf87204);}catch{return _0xf87204;}}function normalizeOperationEntry(_0x3226f5,_0x1d5e80){const _0x44485e=a17_0x87b7;if(!_0x1d5e80||typeof _0x1d5e80!==_0x44485e(0x1fa))return null;if(!_0x1d5e80['method']||!_0x1d5e80[_0x44485e(0x21c)])return null;const _0x59ac50={'name':_0x3226f5,'method':_0x1d5e80[_0x44485e(0x1e1)],'path':_0x1d5e80[_0x44485e(0x21c)]};if(_0x1d5e80[_0x44485e(0x1f9)])_0x59ac50[_0x44485e(0x1f9)]=_0x1d5e80[_0x44485e(0x1f9)];if(_0x1d5e80[_0x44485e(0x201)]!=null)_0x59ac50[_0x44485e(0x201)]=parseJsonMaybe(_0x1d5e80['requestBody']);if(_0x1d5e80['responseBody']!=null)_0x59ac50[_0x44485e(0x21f)]=parseJsonMaybe(_0x1d5e80[_0x44485e(0x21f)]);if(_0x1d5e80[_0x44485e(0x218)]!=null)_0x59ac50['beforeScriptId']=_0x1d5e80[_0x44485e(0x218)];if(_0x1d5e80[_0x44485e(0x1e3)]!=null)_0x59ac50[_0x44485e(0x1e3)]=_0x1d5e80[_0x44485e(0x1e3)];if(Array[_0x44485e(0x209)](_0x1d5e80[_0x44485e(0x1db)]))_0x59ac50[_0x44485e(0x1db)]=_0x1d5e80[_0x44485e(0x1db)];if(Array[_0x44485e(0x209)](_0x1d5e80[_0x44485e(0x1e0)]))_0x59ac50[_0x44485e(0x1e0)]=_0x1d5e80[_0x44485e(0x1e0)];return _0x59ac50;}function summarizeDbtable(_0x1cd106){const _0x588c95=a17_0x87b7,_0xc14220={},_0x3baf52=[_0x588c95(0x1ff),_0x588c95(0x222),'tableName','datasetKey',_0x588c95(0x1ef),_0x588c95(0x223),_0x588c95(0x1e4),_0x588c95(0x1fd),'updateTimeField','creatorIdField',_0x588c95(0x205),'modifierIdField',_0x588c95(0x1df),_0x588c95(0x202),'dblinkInfoDTO'];for(const _0x4dc2bf of _0x3baf52){if(_0x1cd106[_0x4dc2bf]!==undefined)_0xc14220[_0x4dc2bf]=_0x1cd106[_0x4dc2bf];}return typeof _0xc14220['allFields']===_0x588c95(0x1e5)&&_0xc14220['allFields'][_0x588c95(0x1f2)]>0x0&&(_0xc14220[_0x588c95(0x208)]=_0xc14220['allFields'][_0x588c95(0x1dd)](',')[_0x588c95(0x1f8)](_0x30c41c=>_0x30c41c[_0x588c95(0x20c)]())[_0x588c95(0x225)](Boolean)),_0xc14220;}function normalizeRelatedPages(_0x4f98cd){const _0x3e03c7=a17_0x87b7;if(!Array[_0x3e03c7(0x209)](_0x4f98cd))return[];return _0x4f98cd[_0x3e03c7(0x225)](_0x221d01=>_0x221d01&&typeof _0x221d01===_0x3e03c7(0x1fa))[_0x3e03c7(0x1f8)](_0x3648c9=>({'id':_0x3648c9['id'],'type':_0x3648c9[_0x3e03c7(0x217)],'code':_0x3648c9['code'],'title':_0x3648c9[_0x3e03c7(0x221)],'deleted':_0x3648c9[_0x3e03c7(0x213)]===!![]}));}export const datasetDetail={'service':a17_0x50e8b3(0x21a),'command':a17_0x50e8b3(0x1e2),'description':a17_0x50e8b3(0x1fb),'risk':a17_0x50e8b3(0x214),'flags':[CODE_FLAG],async 'execute'(_0x5ea860){const _0x2e4bb0=a17_0x50e8b3,_0x6a006c=await getDatasetDetail(_0x5ea860[_0x2e4bb0(0x206)](_0x2e4bb0(0x212))),_0x264501=Array[_0x2e4bb0(0x209)](_0x6a006c[_0x2e4bb0(0x1f5)])?_0x6a006c[_0x2e4bb0(0x1f5)]:Array[_0x2e4bb0(0x209)](_0x6a006c['properties'])?_0x6a006c['properties']:[],_0x373146=_0x264501[_0x2e4bb0(0x1f8)](_0x5da484=>normalizeField(_0x5da484))[_0x2e4bb0(0x225)](_0x151ccc=>_0x151ccc!==null),_0x4a94fe=_0x6a006c[_0x2e4bb0(0x20f)]??{},_0x3c1a20=[];for(const [_0x70350f,_0x5e0c10]of Object[_0x2e4bb0(0x1f4)](_0x4a94fe)){const _0x2a0cfc=normalizeOperationEntry(_0x70350f,_0x5e0c10);if(_0x2a0cfc)_0x3c1a20[_0x2e4bb0(0x21e)](_0x2a0cfc);}const _0xf56b3a=_0x6a006c[_0x2e4bb0(0x1f7)]??{},_0x4daad4=_0x6a006c['dataset']??{},_0x4be374=_0xf56b3a['dbId']!=null?{'id':_0xf56b3a[_0x2e4bb0(0x1ff)],'name':_0xf56b3a[_0x2e4bb0(0x222)]??null}:undefined;let _0x5b4172;return typeof _0x6a006c[_0x2e4bb0(0x1f1)]===_0x2e4bb0(0x1e5)&&(_0x5b4172=parseJsonMaybe(_0x6a006c[_0x2e4bb0(0x1f1)])),{'ok':!![],'data':{'id':_0x6a006c['modelId']??_0x6a006c['id'],'name':_0x6a006c[_0x2e4bb0(0x1fc)],'code':_0x6a006c[_0x2e4bb0(0x220)]||_0x6a006c[_0x2e4bb0(0x212)],'doVersion':_0x6a006c['doVersion'],'description':_0x6a006c[_0x2e4bb0(0x21b)]||_0x4daad4[_0x2e4bb0(0x1f0)]||undefined,'source':_0x6a006c[_0x2e4bb0(0x1de)]||_0x4daad4[_0x2e4bb0(0x216)],'table':_0xf56b3a[_0x2e4bb0(0x1ed)]||_0x4daad4['tableName'],'datasetKey':_0xf56b3a[_0x2e4bb0(0x1f6)],'pk':_0xf56b3a[_0x2e4bb0(0x1ef)],'db':_0x4be374,'dbtable':summarizeDbtable(_0xf56b3a),'fields':_0x373146,'operations':_0x3c1a20,'indexes':Array['isArray'](_0x4daad4[_0x2e4bb0(0x20d)])?_0x4daad4['indexes']:[],'relations':Array[_0x2e4bb0(0x209)](_0x6a006c['relations'])?_0x6a006c['relations'][_0x2e4bb0(0x1f8)](_0x471e30=>({'fromField':_0x471e30['fromField'],'toDataset':_0x471e30[_0x2e4bb0(0x215)],'toCode':_0x471e30[_0x2e4bb0(0x204)],'toTable':_0x471e30[_0x2e4bb0(0x224)],'toField':_0x471e30[_0x2e4bb0(0x219)],'labelField':_0x471e30[_0x2e4bb0(0x1fe)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x6a006c[_0x2e4bb0(0x203)]),...Array[_0x2e4bb0(0x209)](_0x6a006c[_0x2e4bb0(0x20e)])?{'columnCodeListWithDeleted':_0x6a006c[_0x2e4bb0(0x20e)]}:{},'formatRules':Array[_0x2e4bb0(0x209)](_0x6a006c['formatRules'])?_0x6a006c[_0x2e4bb0(0x211)]:[],'validateRules':Array[_0x2e4bb0(0x209)](_0x6a006c[_0x2e4bb0(0x210)])?_0x6a006c[_0x2e4bb0(0x210)]:[],..._0x5b4172!==undefined?{'extend':_0x5b4172}:{},'stats':{'fieldCount':_0x373146[_0x2e4bb0(0x1f2)],'operationCount':_0x3c1a20[_0x2e4bb0(0x1f2)]}}};}};function a17_0x4095(){const _0x1ad748=['labelField','relatedPageInfoList','toDatasetCode','creatorNameField','str','3603300jjjFnW','allFieldNames','isArray','265255sETudb','973296GqUCXs','trim','indexes','columnCodeListWithDeleted','operations','validateRules','formatRules','code','deleted','read','toDatasetName','sourceType','type','beforeScriptId','toField','dataset','description','path','18FPmZmP','push','responseBody','modelCode','title','dbName','allFields','toTableName','filter','requestFields','options','split','source','modifierNameField','responseFields','method','detail','afterScriptId','logicField','string','7xgRtoW','displayName','parse','required','203930SjRRiU','1855626ynNMFe','2130432YoWjDb','tableName','doType','pkField','tableComment','extend','length','2SzrWSD','entries','fields','datasetKey','dbtableConfig','map','host','object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','name','createTimeField','toFieldLabel','dbId','6897568CDhboM','requestBody'];a17_0x4095=function(){return _0x1ad748;};return a17_0x4095();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x29832f,_0xb2136f){const _0xb0df7a=a18_0x342f,_0x1dc21e=_0x29832f();while(!![]){try{const _0x3b2c55=parseInt(_0xb0df7a(0x1d5))/0x1*(-parseInt(_0xb0df7a(0x1da))/0x2)+parseInt(_0xb0df7a(0x1d8))/0x3+parseInt(_0xb0df7a(0x1d7))/0x4*(-parseInt(_0xb0df7a(0x1d6))/0x5)+-parseInt(_0xb0df7a(0x1d4))/0x6+parseInt(_0xb0df7a(0x1dc))/0x7+-parseInt(_0xb0df7a(0x1d9))/0x8*(-parseInt(_0xb0df7a(0x1d3))/0x9)+-parseInt(_0xb0df7a(0x1db))/0xa;if(_0x3b2c55===_0xb2136f)break;else _0x1dc21e['push'](_0x1dc21e['shift']());}catch(_0x4ad25a){_0x1dc21e['push'](_0x1dc21e['shift']());}}}(a18_0x23d9,0x41703));import{datasetList}from'../../commands/dataset/list.js';function a18_0x342f(_0x43978e,_0x2f4e70){_0x43978e=_0x43978e-0x1d3;const _0x23d950=a18_0x23d9();let _0x342fef=_0x23d950[_0x43978e];return _0x342fef;}import{datasetDetail}from'../../commands/dataset/detail.js';function a18_0x23d9(){const _0x10a750=['333790QoPkMp','8QmWhYJ','1578939lZGkFX','1224vmzpGQ','30wvOzyy','2366210ejoOoz','1660883plthBH','12195JuUOxy','332160yVMYAu','18491PSBBKj'];a18_0x23d9=function(){return _0x10a750;};return a18_0x23d9();}export const datasetDefinitions=[datasetList,datasetDetail];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a19_0x5067(_0x2a75c6,_0x4ce02e){_0x2a75c6=_0x2a75c6-0x91;const _0x20d970=a19_0x20d9();let _0x506727=_0x20d970[_0x2a75c6];return _0x506727;}const a19_0x8ed44d=a19_0x5067;function a19_0x20d9(){const _0x1a74e2=['source','allFields','1421502mOMuqx','code','length','658754sDPJtv','trim','name','split','map','str','list','938340nnjiRg','1073796ERwDDy','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','794526SqMDgX','pkField','string','1776272JuNtSn','7aDbzIY','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','317888iDPUer','dataset','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','appCode'];a19_0x20d9=function(){return _0x1a74e2;};return a19_0x20d9();}(function(_0x3a615f,_0x5e1b75){const _0x23ad36=a19_0x5067,_0xc527dd=_0x3a615f();while(!![]){try{const _0x554837=parseInt(_0x23ad36(0x9b))/0x1+-parseInt(_0x23ad36(0xa4))/0x2+-parseInt(_0x23ad36(0x95))/0x3+parseInt(_0x23ad36(0x93))/0x4+parseInt(_0x23ad36(0x92))/0x5+-parseInt(_0x23ad36(0xa1))/0x6+-parseInt(_0x23ad36(0x99))/0x7*(-parseInt(_0x23ad36(0x98))/0x8);if(_0x554837===_0x5e1b75)break;else _0xc527dd['push'](_0xc527dd['shift']());}catch(_0x2edb87){_0xc527dd['push'](_0xc527dd['shift']());}}}(a19_0x20d9,0x28427));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x8ed44d(0x9c),'command':a19_0x8ed44d(0x91),'description':a19_0x8ed44d(0x9d),'risk':'read','flags':[{'name':a19_0x8ed44d(0xa6),'type':a19_0x8ed44d(0x97),'description':a19_0x8ed44d(0x9a)},{...CODE_FLAG,'required':![],'description':a19_0x8ed44d(0x94)}],async 'execute'(_0x2c6edc){const _0x514221=a19_0x8ed44d,_0x47d044=_0x2c6edc[_0x514221(0xa9)](_0x514221(0xa6)),_0x1d7121=_0x2c6edc[_0x514221(0xa9)]('code'),_0x5088ca=await listDatasets(_0x2c6edc[_0x514221(0x9e)],{..._0x47d044&&{'name':_0x47d044},..._0x1d7121&&{'code':_0x1d7121}});return{'ok':!![],'data':{'total':_0x5088ca[_0x514221(0xa3)],'datasets':_0x5088ca[_0x514221(0xa8)](_0x2961b9=>{const _0x48c02d=_0x514221,_0x1070fd=_0x2961b9['dbtableConfig']??{};return{'id':_0x2961b9['id'],'code':_0x2961b9[_0x48c02d(0xa2)],'name':_0x2961b9['name'],'source':_0x2961b9[_0x48c02d(0x9f)],'description':_0x2961b9['description'],'table':_0x1070fd['tableName'],'datasetKey':_0x1070fd['datasetKey'],'pk':_0x1070fd[_0x48c02d(0x96)],'fields':_0x1070fd[_0x48c02d(0xa0)]?_0x1070fd[_0x48c02d(0xa0)][_0x48c02d(0xa7)](',')[_0x48c02d(0xa8)](_0x307bdb=>_0x307bdb[_0x48c02d(0xa5)]()):[]};})}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a20_0x56f3(_0x25c0fb,_0x4c4697){_0x25c0fb=_0x25c0fb-0x1d1;const _0x3cbea7=a20_0x3cbe();let _0x56f327=_0x3cbea7[_0x25c0fb];return _0x56f327;}const a20_0x31918d=a20_0x56f3;function a20_0x3cbe(){const _0x20e90d=['10763901oDmxdV','repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','empty','2976822oiTsZn','defaultApp','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','(none)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20(accessKey)','Diagnose\x20CLI\x20configuration\x20and\x20environment','679035moHiWt','40BdGPhx','\x20\x20Session\x20check:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','yellow','check','46849836hNTLFo','\x20(legacy/compat\x20only)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','appCode','log','64238fcNMpi','green','(not\x20found)','gray','\x20\x20─','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','env','missing','read','platform','bold','verbose','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','Global','✗\x20Invalid\x20JSON','locale','(removed\x20—\x20cookie\x20auth\x20disabled)','red','format','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','26kTedBN','ClientAk','4sKRJiv','10cFDXFZ','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Merged\x20Config','16017780VYnVaC','2410779vBmkDR','(missing)','\x20\x20API\x20Endpoints','riskLevel','\x20\x20runtimeDomain:\x20\x20\x20','status','length'];a20_0x3cbe=function(){return _0x20e90d;};return a20_0x3cbe();}(function(_0xd0e5bc,_0x4ed794){const _0x478fe8=a20_0x56f3,_0x592741=_0xd0e5bc();while(!![]){try{const _0x39d5d5=parseInt(_0x478fe8(0x1f6))/0x1*(-parseInt(_0x478fe8(0x20e))/0x2)+parseInt(_0x478fe8(0x216))/0x3*(parseInt(_0x478fe8(0x210))/0x4)+-parseInt(_0x478fe8(0x211))/0x5*(parseInt(_0x478fe8(0x1de))/0x6)+-parseInt(_0x478fe8(0x1e7))/0x7*(-parseInt(_0x478fe8(0x1e8))/0x8)+-parseInt(_0x478fe8(0x1d7))/0x9+-parseInt(_0x478fe8(0x215))/0xa+parseInt(_0x478fe8(0x1f0))/0xb;if(_0x39d5d5===_0x4ed794)break;else _0x592741['push'](_0x592741['shift']());}catch(_0x57940e){_0x592741['push'](_0x592741['shift']());}}}(a20_0x3cbe,0xe13bf));import a20_0x4b59df from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';async function execute(_0x28ee73){const _0x2c37a8=a20_0x56f3,_0x2655b0=getCliVersion(),_0x3ab8be=buildConfigFromFlags({});await initGlobalEnvironment(_0x3ab8be),console['log'](),console['log'](a20_0x4b59df[_0x2c37a8(0x202)](CLI_BIN_NAME+'\x20doctor')),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x1f9)]('─'['repeat'](0x32))),console[_0x2c37a8(0x1f5)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2655b0),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1e3)+process['version']),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1db)+process[_0x2c37a8(0x201)]+'\x20'+process[_0x2c37a8(0x20c)]),console[_0x2c37a8(0x1f5)](),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x202)]('\x20\x20Config\x20Files')),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1fa)[_0x2c37a8(0x1d8)](0x1e)));const _0x3d68f2=getGlobalConfigPath(),_0x11e9f1=getProjectConfigPath();console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1d9)+(_0x3d68f2||a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1f8)))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1fb)+(_0x11e9f1||a20_0x4b59df[_0x2c37a8(0x1f9)]('(not\x20found)'))),console[_0x2c37a8(0x1f5)](),console[_0x2c37a8(0x1f5)](a20_0x4b59df['bold']('\x20\x20Config\x20JSON')),console['log'](a20_0x4b59df['gray'](_0x2c37a8(0x1fa)[_0x2c37a8(0x1d8)](0x1e)));const _0x22ef39=(_0x49ac2a,_0x306c43)=>{const _0x4288ab=_0x2c37a8;if(!_0x306c43){console['log']('\x20\x20'+_0x49ac2a[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df['gray']('(no\x20file)'));return;}const _0xef72f9=inspectCliConfigJsonFile(_0x306c43);if(_0xef72f9['status']==='ok')console[_0x4288ab(0x1f5)]('\x20\x20'+_0x49ac2a[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df['green'](_0x4288ab(0x1ea)));else{if(_0xef72f9[_0x4288ab(0x1d5)]===_0x4288ab(0x1dd))console['log']('\x20\x20'+_0x49ac2a[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df[_0x4288ab(0x1ee)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xef72f9['status']===_0x4288ab(0x1ff)?console[_0x4288ab(0x1f5)]('\x20\x20'+_0x49ac2a[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df[_0x4288ab(0x1f9)](_0x4288ab(0x1d1))):(console['log']('\x20\x20'+_0x49ac2a[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df['red'](_0x4288ab(0x207))),console[_0x4288ab(0x1f5)]('\x20\x20'+''[_0x4288ab(0x1e4)](0x11)+'\x20'+a20_0x4b59df[_0x4288ab(0x20a)](_0xef72f9['message'])));}};_0x22ef39(_0x2c37a8(0x206),_0x3d68f2),_0x22ef39('Project',_0x11e9f1),console['log'](),console['log'](a20_0x4b59df[_0x2c37a8(0x202)](_0x2c37a8(0x214))),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1fa)[_0x2c37a8(0x1d8)](0x1e))),console[_0x2c37a8(0x1f5)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3ab8be[_0x2c37a8(0x1f4)]||a20_0x4b59df[_0x2c37a8(0x20a)]('(not\x20set)'))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1f2)+_0x3ab8be[_0x2c37a8(0x1fe)]);const _0x4fbb83=isLegacyCompatConfigKey(_0x2c37a8(0x208))?a20_0x4b59df[_0x2c37a8(0x1f9)](_0x3ab8be['locale']+_0x2c37a8(0x1f1)):_0x3ab8be[_0x2c37a8(0x208)];return console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1fc)+_0x4fbb83),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x212)+(_0x3ab8be[_0x2c37a8(0x1df)]||a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1e2)))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x20d)+(_0x3ab8be[_0x2c37a8(0x1da)]||a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1e2)))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1eb)+(_0x3ab8be[_0x2c37a8(0x20b)]||a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1dc)+DEFAULT_CONFIG_VALUES[_0x2c37a8(0x20b)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3ab8be['pageSize']??a20_0x4b59df['gray'](_0x2c37a8(0x1fd)))),console[_0x2c37a8(0x1f5)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3ab8be[_0x2c37a8(0x1d3)]),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1ec)+_0x3ab8be[_0x2c37a8(0x203)]),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x213)+AUTH_MODE[_0x2c37a8(0x20f)]),console[_0x2c37a8(0x1f5)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x3ab8be['accessKey']?a20_0x4b59df[_0x2c37a8(0x1f7)](_0x2c37a8(0x1e1)+_0x3ab8be['accessKey'][_0x2c37a8(0x1d6)]+')'):a20_0x4b59df[_0x2c37a8(0x1f9)]('(none)'))),console[_0x2c37a8(0x1f5)](),console['log'](a20_0x4b59df[_0x2c37a8(0x202)](_0x2c37a8(0x1d2))),console[_0x2c37a8(0x1f5)](a20_0x4b59df['gray'](_0x2c37a8(0x1fa)[_0x2c37a8(0x1d8)](0x1e))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1f3)+getApiDomain()),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x204)+getUserDomain()),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1d4)+getRuntimeDomain()),console[_0x2c37a8(0x1f5)](),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x202)](_0x2c37a8(0x205))),console[_0x2c37a8(0x1f5)](a20_0x4b59df[_0x2c37a8(0x1f9)](_0x2c37a8(0x1fa)[_0x2c37a8(0x1d8)](0x1e))),console['log'](_0x2c37a8(0x1e0)+a20_0x4b59df['green'](AUTH_MODE[_0x2c37a8(0x20f)]+_0x2c37a8(0x1e5))),console[_0x2c37a8(0x1f5)](_0x2c37a8(0x1e9)+a20_0x4b59df['gray'](_0x2c37a8(0x209))),console[_0x2c37a8(0x1f5)](),{'ok':!![]};}export const doctorDefinition={'service':a20_0x31918d(0x1ed),'command':a20_0x31918d(0x1ef),'description':a20_0x31918d(0x1e6),'risk':a20_0x31918d(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21_0x38248e=a21_0x2128;(function(_0x3d6ee1,_0x1e3074){const _0x1929fc=a21_0x2128,_0x459cb6=_0x3d6ee1();while(!![]){try{const _0x335ddc=-parseInt(_0x1929fc(0xf4))/0x1+parseInt(_0x1929fc(0xdd))/0x2*(-parseInt(_0x1929fc(0xd0))/0x3)+parseInt(_0x1929fc(0x10a))/0x4+-parseInt(_0x1929fc(0xd3))/0x5*(parseInt(_0x1929fc(0xf9))/0x6)+-parseInt(_0x1929fc(0x102))/0x7*(parseInt(_0x1929fc(0xe7))/0x8)+-parseInt(_0x1929fc(0xe0))/0x9+parseInt(_0x1929fc(0xf0))/0xa;if(_0x335ddc===_0x1e3074)break;else _0x459cb6['push'](_0x459cb6['shift']());}catch(_0x1de07d){_0x459cb6['push'](_0x459cb6['shift']());}}}(a21_0x415b,0xeff82));import{existsSync,readFileSync}from'node:fs';function a21_0x415b(){const _0x22e1da=['65468510KqEARx','Target\x20environment\x20(default\x20','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','global','643043iUzpPM','includes','env','App\x20code','yes','148926rNRWqB','boolean','appcode','string','User\x20aborted\x20prompt','Initialized\x20','entries','message','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','7623xwuXAB','validation','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','[y/N]','close','SIGINT','project','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','25176yZOgsb','log','object','question','Imported\x20from\x20','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','stdin','Aborted.','):\x20','43653KWykoe','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','parse','130Kgehaj','\x20\x20appcode:\x20','name','\x20already\x20exists.\x20Overwrite?','Source\x20file\x20not\x20found:\x20','\x20\x20env:\x20\x20\x20\x20\x20','Override\x20imported\x20default\x20env','app','cwd','once','106olhhWH','trim','flagMissing','16962858ggiqAB','\x20\x20default:\x20','race','apps','AbortPrompt','apiDir','defaultApp','11944rawbgF','cancelled','\x20\x20config:\x20\x20','Skip\x20confirmation\x20when\x20overwriting','App\x20code\x20for\x20the\x20project','[Y/n]','stdout','\x0aInitialized\x20','file'];a21_0x415b=function(){return _0x22e1da;};return a21_0x415b();}import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':a21_0x38248e(0xfb),'type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xeb)},{'name':'env','type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xf1)+DEFAULT_CONFIG_VALUES[a21_0x38248e(0xf6)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a21_0x38248e(0x10f),'default':![]},{'name':a21_0x38248e(0xf8),'type':a21_0x38248e(0xfa),'description':a21_0x38248e(0xea),'default':![]}];export const initImportFlagDefs=[{'name':a21_0x38248e(0xef),'type':a21_0x38248e(0xfc),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a21_0x38248e(0xfb),'type':a21_0x38248e(0xfc),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xd9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x38248e(0xf3),'type':a21_0x38248e(0xfa),'description':a21_0x38248e(0x10f),'default':![]},{'name':a21_0x38248e(0xf8),'type':a21_0x38248e(0xfa),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x5c815d){const _0x364b32=a21_0x38248e,_0x5d426c=isNonInteractiveMode(_0x5c815d),_0x2ca6d9=_0x5c815d['global']?_0x364b32(0xf3):_0x364b32(0x108),_0x9e5707=resolveWriteConfigPath(_0x2ca6d9);try{_0x5d426c?await runNonInteractive(_0x5c815d,_0x9e5707):await runInteractive(_0x5c815d,_0x9e5707);}catch(_0x131351){if(_0x131351 instanceof AbortPrompt)throw CliErrors[_0x364b32(0xe8)]();throw _0x131351;}}export async function runInitImport(_0x5b4af4){const _0xd96db9=a21_0x38248e,_0x3b9b3c=_0x5b4af4[_0xd96db9(0xf3)]?_0xd96db9(0xf3):_0xd96db9(0x108),_0x5ec84c=resolveWriteConfigPath(_0x3b9b3c);await runFromImport(_0x5b4af4,_0x5ec84c);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0x38248e(0xe5)]);async function runFromImport(_0x58063a,_0x13d652){const _0x4435e3=a21_0x38248e,_0x4e425d=resolveFilePath(_0x58063a[_0x4435e3(0xef)]);if(!existsSync(_0x4e425d))throw CliErrors[_0x4435e3(0x103)](_0x4435e3(0xd7)+_0x4e425d);const _0xb979b7=readSourceFile(_0x4e425d),_0x438461=convertToRuntimeConfig(_0xb979b7);_0x58063a[_0x4435e3(0xfb)]&&(_0x438461[_0x4435e3(0xfb)]=String(_0x58063a[_0x4435e3(0xfb)]));_0x58063a['env']&&(_0x438461[_0x4435e3(0xf6)]=resolveInitEnv(_0x58063a));if(!_0x438461[_0x4435e3(0xfb)])throw CliErrors['validation'](_0x4435e3(0x109),_0x4435e3(0x101));await writeInitConfig(_0x13d652,_0x438461,_0x58063a),console[_0x4435e3(0x10b)](_0x4435e3(0x10e)+_0x4e425d),console[_0x4435e3(0x10b)](_0x4435e3(0xe9)+_0x13d652),console['log'](_0x4435e3(0xd4)+_0x438461[_0x4435e3(0xfb)]);if(_0x438461[_0x4435e3(0xe6)])console[_0x4435e3(0x10b)](_0x4435e3(0xe1)+_0x438461[_0x4435e3(0xe6)]);}function convertToRuntimeConfig(_0xe4094d){const _0x332e06=a21_0x38248e;if(_0xe4094d['apps']&&typeof _0xe4094d[_0x332e06(0xe3)]===_0x332e06(0x10c))throw CliErrors[_0x332e06(0x103)](_0x332e06(0x104),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x1f5a5a={};for(const _0xace184 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xe4094d[_0xace184]!==undefined&&(_0x1f5a5a[_0xace184]=_0xe4094d[_0xace184]);}return!_0x1f5a5a['riskLevel']&&(_0x1f5a5a['riskLevel']=DEFAULT_CONFIG_VALUES['riskLevel']),_0x1f5a5a;}async function runNonInteractive(_0x501935,_0x47c681){const _0x28efa8=a21_0x38248e,_0x306e4d=_0x501935['appcode'];if(!_0x306e4d)throw CliErrors[_0x28efa8(0xdf)](_0x28efa8(0xfb),'Usage:\x20'+CLI_BIN_NAME+_0x28efa8(0xd1));const _0x3190c8=resolveInitEnv(_0x501935);await writeInitConfig(_0x47c681,{'appcode':_0x306e4d,'env':_0x3190c8},_0x501935),console[_0x28efa8(0x10b)](_0x28efa8(0xfe)+_0x47c681),console['log'](_0x28efa8(0xd4)+_0x306e4d),console[_0x28efa8(0x10b)](_0x28efa8(0xd8)+_0x3190c8);}async function runInteractive(_0x6a2639,_0x3aed01){const _0x30e1e9=a21_0x38248e,_0x5ccd18=loadExisting(_0x3aed01),_0x82704b=typeof _0x5ccd18?.[_0x30e1e9(0xfb)]===_0x30e1e9(0xfc)?_0x5ccd18[_0x30e1e9(0xfb)]:'',_0x39e0c7=resolveInitEnv(_0x6a2639);console[_0x30e1e9(0x10b)](CLI_BIN_NAME+_0x30e1e9(0xf2));if(existsSync(_0x3aed01)&&!_0x6a2639[_0x30e1e9(0xf8)]){const _0x1db305=await promptYesNo('File\x20'+_0x3aed01+_0x30e1e9(0xd6),![]);if(!_0x1db305){console[_0x30e1e9(0x10b)](_0x30e1e9(0xce));return;}}const _0x36b50d=typeof _0x6a2639[_0x30e1e9(0xfb)]==='string'?_0x6a2639[_0x30e1e9(0xfb)][_0x30e1e9(0xde)]():'';let _0x5b0b55=_0x36b50d;!_0x5b0b55&&(_0x5b0b55=await promptInput(_0x30e1e9(0xf7),_0x82704b));if(!_0x5b0b55['trim']())throw CliErrors[_0x30e1e9(0x103)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x3aed01,{'appcode':_0x5b0b55[_0x30e1e9(0xde)](),'env':_0x39e0c7},_0x6a2639),console['log'](_0x30e1e9(0xee)+_0x3aed01),console[_0x30e1e9(0x10b)](_0x30e1e9(0xd4)+_0x5b0b55[_0x30e1e9(0xde)]()),console[_0x30e1e9(0x10b)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x39e0c7);}async function writeInitConfig(_0x3419c4,_0x190097,_0x2eeff2){const _0x15d587=a21_0x38248e;let _0x129271={};existsSync(_0x3419c4)&&!_0x2eeff2[_0x15d587(0xf8)]&&(_0x129271=readConfigFile(_0x3419c4));for(const [_0x5b7582,_0x45eaca]of Object[_0x15d587(0xff)](_0x190097)){_0x45eaca!==undefined&&(_0x129271[_0x5b7582]=_0x45eaca);}if(_0x129271[_0x15d587(0xda)])delete _0x129271[_0x15d587(0xda)];writeConfigFile(_0x3419c4,_0x129271);}class AbortPrompt extends Error{constructor(){const _0x334dc0=a21_0x38248e;super(_0x334dc0(0xfd)),this[_0x334dc0(0xd5)]=_0x334dc0(0xe4);}}function createSafeRl(){const _0x4c4c95=a21_0x38248e,_0x44c0db=createInterface({'input':process[_0x4c4c95(0x110)],'output':process[_0x4c4c95(0xed)]});let _0x1f3548;const _0x56267a=new Promise((_0x4e05d7,_0x3949b0)=>{const _0x18913c=_0x4c4c95;_0x1f3548=()=>{const _0x1e5945=a21_0x2128;_0x1f3548&&(_0x44c0db['removeListener'](_0x1e5945(0x107),_0x1f3548),_0x1f3548=undefined);try{_0x44c0db[_0x1e5945(0x106)]();}catch{}_0x3949b0(new AbortPrompt());},_0x44c0db[_0x18913c(0xdc)](_0x18913c(0x107),_0x1f3548);}),_0x2368d8=()=>{const _0x475619=_0x4c4c95;_0x1f3548&&(_0x44c0db['removeListener']('SIGINT',_0x1f3548),_0x1f3548=undefined);try{_0x44c0db[_0x475619(0x106)]();}catch{}};return{'rl':_0x44c0db,'abortPromise':_0x56267a,'disposeSuccess':_0x2368d8};}async function promptInput(_0x2103a7,_0x274c4a){const _0xea9866=a21_0x38248e,{rl:_0x5be854,abortPromise:_0x5b959e,disposeSuccess:_0x48e460}=createSafeRl(),_0x1d92df=new Promise(_0x4b06ca=>{const _0x5dfe19=a21_0x2128,_0x336eda=_0x274c4a?'\x20\x20'+_0x2103a7+'\x20('+_0x274c4a+_0x5dfe19(0xcf):'\x20\x20'+_0x2103a7+':\x20';_0x5be854[_0x5dfe19(0x10d)](_0x336eda,_0x16b690=>{const _0x5e8c46=_0x5dfe19;_0x48e460(),_0x4b06ca(_0x16b690[_0x5e8c46(0xde)]()||_0x274c4a);});});return Promise[_0xea9866(0xe2)]([_0x1d92df,_0x5b959e]);}async function promptYesNo(_0x15b10f,_0x893beb){const _0xbe04f5=a21_0x38248e,{rl:_0x13fc4d,abortPromise:_0x572f57,disposeSuccess:_0x40a41f}=createSafeRl(),_0x412184=new Promise(_0xfdac3f=>{const _0x55b700=a21_0x2128,_0x39117a=_0x893beb?_0x55b700(0xec):_0x55b700(0x105);_0x13fc4d[_0x55b700(0x10d)]('\x20\x20'+_0x15b10f+'\x20'+_0x39117a+':\x20',_0x23bf62=>{const _0x15e7f5=_0x55b700;_0x40a41f();const _0x222ffa=_0x23bf62['trim']()['toLowerCase']();if(_0x222ffa==='y'||_0x222ffa===_0x15e7f5(0xf8))_0xfdac3f(!![]);else{if(_0x222ffa==='n'||_0x222ffa==='no')_0xfdac3f(![]);else _0xfdac3f(_0x893beb);}});});return Promise[_0xbe04f5(0xe2)]([_0x412184,_0x572f57]);}function loadExisting(_0x2be7c4){if(!existsSync(_0x2be7c4))return null;return readConfigFile(_0x2be7c4);}function a21_0x2128(_0x5dab51,_0x235930){_0x5dab51=_0x5dab51-0xce;const _0x415bd2=a21_0x415b();let _0x2128b4=_0x415bd2[_0x5dab51];return _0x2128b4;}function resolveFilePath(_0x505712){const _0x398c55=a21_0x38248e;return isAbsolute(_0x505712)?_0x505712:resolve(process[_0x398c55(0xdb)](),_0x505712);}function readSourceFile(_0xb7acba){const _0x2abb3d=a21_0x38248e;try{const _0xfac1b6=readFileSync(_0xb7acba,{'encoding':'utf8'});return JSON[_0x2abb3d(0xd2)](_0xfac1b6);}catch(_0x15988a){throw CliErrors[_0x2abb3d(0x103)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x15988a[_0x2abb3d(0x100)]);}}function resolveInitEnv(_0x30e6a5){const _0x2ad780=a21_0x38248e,_0x27c51f=_0x30e6a5[_0x2ad780(0xf6)];if(_0x27c51f===undefined||_0x27c51f==='')return DEFAULT_CONFIG_VALUES[_0x2ad780(0xf6)];if(!RUNTIME_ENV_VALUES[_0x2ad780(0xf5)](_0x27c51f))throw CliErrors[_0x2ad780(0x103)]('Invalid\x20env\x20\x22'+_0x27c51f+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x27c51f;}
|
|
1
|
+
const a21_0x1955c0=a21_0x541f;(function(_0x715fcb,_0x34cd69){const _0x1c6478=a21_0x541f,_0x4e5d4b=_0x715fcb();while(!![]){try{const _0x2ac4a8=-parseInt(_0x1c6478(0x230))/0x1*(-parseInt(_0x1c6478(0x22a))/0x2)+parseInt(_0x1c6478(0x226))/0x3+parseInt(_0x1c6478(0x1f4))/0x4*(parseInt(_0x1c6478(0x1ff))/0x5)+-parseInt(_0x1c6478(0x225))/0x6*(-parseInt(_0x1c6478(0x22b))/0x7)+-parseInt(_0x1c6478(0x221))/0x8*(parseInt(_0x1c6478(0x20c))/0x9)+-parseInt(_0x1c6478(0x228))/0xa+parseInt(_0x1c6478(0x223))/0xb*(-parseInt(_0x1c6478(0x21b))/0xc);if(_0x2ac4a8===_0x34cd69)break;else _0x4e5d4b['push'](_0x4e5d4b['shift']());}catch(_0x382eae){_0x4e5d4b['push'](_0x4e5d4b['shift']());}}}(a21_0x18f1,0x7d111));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';function a21_0x541f(_0x20e550,_0x5af749){_0x20e550=_0x20e550-0x1f3;const _0x18f1b3=a21_0x18f1();let _0x541f69=_0x18f1b3[_0x20e550];return _0x541f69;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':'appcode','type':a21_0x1955c0(0x219),'description':a21_0x1955c0(0x20b)},{'name':'env','type':a21_0x1955c0(0x219),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a21_0x1955c0(0x1f5)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a21_0x1955c0(0x1fa),'description':a21_0x1955c0(0x200),'default':![]},{'name':'yes','type':a21_0x1955c0(0x1fa),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a21_0x1955c0(0x211),'type':a21_0x1955c0(0x219),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a21_0x1955c0(0x218),'type':a21_0x1955c0(0x219),'description':a21_0x1955c0(0x1f3)},{'name':a21_0x1955c0(0x1f5),'type':a21_0x1955c0(0x219),'description':a21_0x1955c0(0x20f),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a21_0x1955c0(0x1fa),'description':a21_0x1955c0(0x200),'default':![]},{'name':'yes','type':a21_0x1955c0(0x1fa),'description':a21_0x1955c0(0x1f9),'default':![]}];export async function runInit(_0x57f9b9){const _0x1d175e=a21_0x1955c0,_0x24a782=isNonInteractiveMode(_0x57f9b9),_0x309411=_0x57f9b9[_0x1d175e(0x1f6)]?_0x1d175e(0x1f6):'project',_0x491de3=resolveWriteConfigPath(_0x309411);try{_0x24a782?await runNonInteractive(_0x57f9b9,_0x491de3):await runInteractive(_0x57f9b9,_0x491de3);}catch(_0xa0d3a7){if(_0xa0d3a7 instanceof AbortPrompt)throw CliErrors[_0x1d175e(0x208)]();throw _0xa0d3a7;}}export async function runInitImport(_0x373475){const _0x3e5bbf=a21_0x1955c0,_0x215598=_0x373475['global']?'global':_0x3e5bbf(0x201),_0x502ca8=resolveWriteConfigPath(_0x215598);await runFromImport(_0x373475,_0x502ca8);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);function a21_0x18f1(){const _0xe79316=['21QUdUsm','SIGINT','\x20\x20default:\x20','\x20already\x20exists.\x20Overwrite?','\x20\x20config:\x20\x20','3HvKvbp','User\x20aborted\x20prompt','apps','stdin','object','Override\x20imported\x20default\x20appcode','15340yNgdfq','env','global','race','name','Skip\x20confirmation\x20when\x20overwriting','boolean','question','App\x20code','app','defaultApp','125CcAcmz','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','project','Imported\x20from\x20','\x22.\x20Allowed:\x20','\x20\x20env:\x20\x20\x20\x20\x20','App\x20code\x20cannot\x20be\x20empty.','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','close','cancelled','join','parse','App\x20code\x20for\x20the\x20project','342nJgISl','Failed\x20to\x20parse\x20source\x20file:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Override\x20imported\x20default\x20env','Usage:\x20','file','validation','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','trim','Invalid\x20env\x20\x22','message','[y/N]','appcode','string','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','36lbkUee','\x20\x20appcode:\x20','\x0aInitialized\x20','File\x20','log','AbortPrompt','92488gJFzcd','yes','3209118bbdQEl','riskLevel','1858470BHqtbg','2207469hmuWzs','stdout','5767790NXOQuQ','removeListener','428434CoQvBk'];a21_0x18f1=function(){return _0xe79316;};return a21_0x18f1();}async function runFromImport(_0x18f2a4,_0x176b1d){const _0x1a14c4=a21_0x1955c0,_0x4646f0=resolveFilePath(_0x18f2a4['file']);if(!existsSync(_0x4646f0))throw CliErrors[_0x1a14c4(0x212)]('Source\x20file\x20not\x20found:\x20'+_0x4646f0);const _0x50cd09=readSourceFile(_0x4646f0),_0x50e049=convertToRuntimeConfig(_0x50cd09);_0x18f2a4[_0x1a14c4(0x218)]&&(_0x50e049['appcode']=String(_0x18f2a4['appcode']));_0x18f2a4[_0x1a14c4(0x1f5)]&&(_0x50e049[_0x1a14c4(0x1f5)]=resolveInitEnv(_0x18f2a4));if(!_0x50e049[_0x1a14c4(0x218)])throw CliErrors['validation'](_0x1a14c4(0x21a),'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(_0x176b1d,_0x50e049,_0x18f2a4),console[_0x1a14c4(0x21f)](_0x1a14c4(0x202)+_0x4646f0),console['log'](_0x1a14c4(0x22f)+_0x176b1d),console[_0x1a14c4(0x21f)]('\x20\x20appcode:\x20'+_0x50e049['appcode']);if(_0x50e049['defaultApp'])console['log'](_0x1a14c4(0x22d)+_0x50e049[_0x1a14c4(0x1fe)]);}function convertToRuntimeConfig(_0x2e3466){const _0xbb2e89=a21_0x1955c0;if(_0x2e3466[_0xbb2e89(0x232)]&&typeof _0x2e3466[_0xbb2e89(0x232)]===_0xbb2e89(0x234))throw CliErrors[_0xbb2e89(0x212)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0xbb2e89(0x20e));const _0x249008={};for(const _0x4184c8 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2e3466[_0x4184c8]!==undefined&&(_0x249008[_0x4184c8]=_0x2e3466[_0x4184c8]);}return!_0x249008[_0xbb2e89(0x224)]&&(_0x249008[_0xbb2e89(0x224)]=DEFAULT_CONFIG_VALUES[_0xbb2e89(0x224)]),_0x249008;}async function runNonInteractive(_0x151b9b,_0x28dd11){const _0x3f9690=a21_0x1955c0,_0x5c5e27=_0x151b9b[_0x3f9690(0x218)];if(!_0x5c5e27)throw CliErrors['flagMissing']('appcode',_0x3f9690(0x210)+CLI_BIN_NAME+_0x3f9690(0x213));const _0x401b1a=resolveInitEnv(_0x151b9b);await writeInitConfig(_0x28dd11,{'appcode':_0x5c5e27,'env':_0x401b1a},_0x151b9b),console[_0x3f9690(0x21f)]('Initialized\x20'+_0x28dd11),console[_0x3f9690(0x21f)](_0x3f9690(0x21c)+_0x5c5e27),console[_0x3f9690(0x21f)](_0x3f9690(0x204)+_0x401b1a);}async function runInteractive(_0x42dd06,_0xe431){const _0x1b45f9=a21_0x1955c0,_0x4d34ce=loadExisting(_0xe431),_0x583e03=typeof _0x4d34ce?.[_0x1b45f9(0x218)]==='string'?_0x4d34ce[_0x1b45f9(0x218)]:'',_0x5450f9=resolveInitEnv(_0x42dd06);console[_0x1b45f9(0x21f)](CLI_BIN_NAME+_0x1b45f9(0x206));if(existsSync(_0xe431)&&!_0x42dd06[_0x1b45f9(0x222)]){const _0x46a910=await promptYesNo(_0x1b45f9(0x21e)+_0xe431+_0x1b45f9(0x22e),![]);if(!_0x46a910){console[_0x1b45f9(0x21f)]('Aborted.');return;}}const _0x3134c5=typeof _0x42dd06[_0x1b45f9(0x218)]===_0x1b45f9(0x219)?_0x42dd06['appcode']['trim']():'';let _0x1948e7=_0x3134c5;!_0x1948e7&&(_0x1948e7=await promptInput(_0x1b45f9(0x1fc),_0x583e03));if(!_0x1948e7['trim']())throw CliErrors[_0x1b45f9(0x212)](_0x1b45f9(0x205));await writeInitConfig(_0xe431,{'appcode':_0x1948e7['trim'](),'env':_0x5450f9},_0x42dd06),console[_0x1b45f9(0x21f)](_0x1b45f9(0x21d)+_0xe431),console[_0x1b45f9(0x21f)](_0x1b45f9(0x21c)+_0x1948e7[_0x1b45f9(0x214)]()),console[_0x1b45f9(0x21f)](_0x1b45f9(0x204)+_0x5450f9);}async function writeInitConfig(_0x9b0b93,_0x5acd7d,_0xbcdd1b){const _0x567e6b=a21_0x1955c0;let _0x9fd556={};existsSync(_0x9b0b93)&&!_0xbcdd1b[_0x567e6b(0x222)]&&(_0x9fd556=readConfigFile(_0x9b0b93));for(const [_0x451071,_0x39dc89]of Object['entries'](_0x5acd7d)){_0x39dc89!==undefined&&(_0x9fd556[_0x451071]=_0x39dc89);}if(_0x9fd556[_0x567e6b(0x1fd)])delete _0x9fd556['app'];writeConfigFile(_0x9b0b93,_0x9fd556);}class AbortPrompt extends Error{constructor(){const _0x3effa3=a21_0x1955c0;super(_0x3effa3(0x231)),this[_0x3effa3(0x1f8)]=_0x3effa3(0x220);}}function createSafeRl(){const _0x36a3b5=a21_0x1955c0,_0x1db187=createInterface({'input':process[_0x36a3b5(0x233)],'output':process[_0x36a3b5(0x227)]});let _0x5aebc6;const _0xab3081=new Promise((_0x523331,_0x3ac92c)=>{_0x5aebc6=()=>{const _0x50c677=a21_0x541f;_0x5aebc6&&(_0x1db187[_0x50c677(0x229)](_0x50c677(0x22c),_0x5aebc6),_0x5aebc6=undefined);try{_0x1db187['close']();}catch{}_0x3ac92c(new AbortPrompt());},_0x1db187['once']('SIGINT',_0x5aebc6);}),_0x2b214e=()=>{const _0x53c9b3=_0x36a3b5;_0x5aebc6&&(_0x1db187[_0x53c9b3(0x229)]('SIGINT',_0x5aebc6),_0x5aebc6=undefined);try{_0x1db187[_0x53c9b3(0x207)]();}catch{}};return{'rl':_0x1db187,'abortPromise':_0xab3081,'disposeSuccess':_0x2b214e};}async function promptInput(_0x164e80,_0x2edb19){const _0x253103=a21_0x1955c0,{rl:_0x4524f3,abortPromise:_0x567b8f,disposeSuccess:_0x53ab53}=createSafeRl(),_0x24bc3e=new Promise(_0x4de22a=>{const _0x16303b=a21_0x541f,_0x46e73a=_0x2edb19?'\x20\x20'+_0x164e80+'\x20('+_0x2edb19+'):\x20':'\x20\x20'+_0x164e80+':\x20';_0x4524f3[_0x16303b(0x1fb)](_0x46e73a,_0x24f783=>{const _0x292f86=_0x16303b;_0x53ab53(),_0x4de22a(_0x24f783[_0x292f86(0x214)]()||_0x2edb19);});});return Promise[_0x253103(0x1f7)]([_0x24bc3e,_0x567b8f]);}async function promptYesNo(_0x2c3287,_0x1c03b1){const _0x496cdf=a21_0x1955c0,{rl:_0x44139d,abortPromise:_0xed244f,disposeSuccess:_0x1bfb14}=createSafeRl(),_0x42be39=new Promise(_0x543f73=>{const _0x31dba0=a21_0x541f,_0xa70817=_0x1c03b1?'[Y/n]':_0x31dba0(0x217);_0x44139d['question']('\x20\x20'+_0x2c3287+'\x20'+_0xa70817+':\x20',_0x152556=>{_0x1bfb14();const _0x212a43=_0x152556['trim']()['toLowerCase']();if(_0x212a43==='y'||_0x212a43==='yes')_0x543f73(!![]);else{if(_0x212a43==='n'||_0x212a43==='no')_0x543f73(![]);else _0x543f73(_0x1c03b1);}});});return Promise[_0x496cdf(0x1f7)]([_0x42be39,_0xed244f]);}function loadExisting(_0x340076){if(!existsSync(_0x340076))return null;return readConfigFile(_0x340076);}function resolveFilePath(_0x265ceb){return isAbsolute(_0x265ceb)?_0x265ceb:resolve(process['cwd'](),_0x265ceb);}function readSourceFile(_0x36ced9){const _0x5c6eba=a21_0x1955c0;try{const _0x28c094=readFileSync(_0x36ced9,{'encoding':'utf8'});return JSON[_0x5c6eba(0x20a)](_0x28c094);}catch(_0x59c9c9){throw CliErrors['validation'](_0x5c6eba(0x20d)+_0x59c9c9[_0x5c6eba(0x216)]);}}function resolveInitEnv(_0x4b9e3f){const _0x1b642d=a21_0x1955c0,_0x23ddf0=_0x4b9e3f[_0x1b642d(0x1f5)];if(_0x23ddf0===undefined||_0x23ddf0==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES['includes'](_0x23ddf0))throw CliErrors[_0x1b642d(0x212)](_0x1b642d(0x215)+_0x23ddf0+_0x1b642d(0x203)+RUNTIME_ENV_VALUES[_0x1b642d(0x209)](',\x20'));return _0x23ddf0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x1cb4b1=a22_0x5abc;function a22_0x12f9(){const _0x11fa6f=['7646891UqfMCL','error','*\x20Logs\x20cleared','keys','stringify','length','3778180AbnJGz','show','timestamp','\x20\x20\x20Details:\x20','3768273DnSkWF','20PpsVdH','View\x20command\x20history\x20logs','455883awjyZq','*\x20No\x20logs\x20found','read','clear','forEach','log','*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a','Clear\x20command\x20history\x20logs','success','clearLogs','\x20\x20\x20Duration:\x20','2pekmDv','write','command','850192RYJGzz','toLocaleString','\x20\x20\x20Time:\x20','logs','1115JneIUc','readLogs','duration','details','28926YaJupo','8CwVHdQ','4056558Fmabsy','level'];a22_0x12f9=function(){return _0x11fa6f;};return a22_0x12f9();}(function(_0x3f6a0b,_0x5da89b){const _0x49f4d6=a22_0x5abc,_0x43ee7a=_0x3f6a0b();while(!![]){try{const _0x5ab108=-parseInt(_0x49f4d6(0xaa))/0x1+-parseInt(_0x49f4d6(0xa7))/0x2*(-parseInt(_0x49f4d6(0x9c))/0x3)+parseInt(_0x49f4d6(0x95))/0x4+-parseInt(_0x49f4d6(0xae))/0x5*(-parseInt(_0x49f4d6(0xb2))/0x6)+parseInt(_0x49f4d6(0x8f))/0x7*(-parseInt(_0x49f4d6(0xb3))/0x8)+parseInt(_0x49f4d6(0x99))/0x9*(parseInt(_0x49f4d6(0x9a))/0xa)+-parseInt(_0x49f4d6(0xb4))/0xb;if(_0x5ab108===_0x5da89b)break;else _0x43ee7a['push'](_0x43ee7a['shift']());}catch(_0x4e27af){_0x43ee7a['push'](_0x43ee7a['shift']());}}}(a22_0x12f9,0xaa500));function a22_0x5abc(_0x14321c,_0x23ee35){_0x14321c=_0x14321c-0x8f;const _0x12f905=a22_0x12f9();let _0x5abc7d=_0x12f905[_0x14321c];return _0x5abc7d;}import{logger}from'../../utils/logger.js';function printLogs(_0x1bf3dc){const _0x54021b=a22_0x5abc;if(_0x1bf3dc[_0x54021b(0x94)]===0x0){console[_0x54021b(0xa1)](_0x54021b(0x9d));return;}console[_0x54021b(0xa1)](_0x54021b(0xa2)),_0x1bf3dc[_0x54021b(0xa0)]((_0x2e702a,_0x32f592)=>{const _0x53f979=_0x54021b,_0x3a8a0b=new Date(_0x2e702a[_0x53f979(0x97)])[_0x53f979(0xab)]('en-US'),_0x184c44=_0x2e702a[_0x53f979(0xb5)]===_0x53f979(0xa4)?'√':_0x2e702a['level']===_0x53f979(0x90)?'×':_0x2e702a[_0x53f979(0xb5)]==='warn'?'!':'i';console[_0x53f979(0xa1)](_0x32f592+0x1+'.\x20'+_0x184c44+'\x20['+_0x2e702a[_0x53f979(0xa9)]+']\x20'+_0x2e702a['message']),console[_0x53f979(0xa1)](_0x53f979(0xac)+_0x3a8a0b),_0x2e702a[_0x53f979(0xb0)]&&console['log'](_0x53f979(0xa6)+_0x2e702a['duration']+'ms'),_0x2e702a[_0x53f979(0xb1)]&&Object[_0x53f979(0x92)](_0x2e702a[_0x53f979(0xb1)])['length']>0x0&&console[_0x53f979(0xa1)](_0x53f979(0x98)+JSON[_0x53f979(0x93)](_0x2e702a[_0x53f979(0xb1)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a22_0x1cb4b1(0xad),'command':a22_0x1cb4b1(0x96),'description':a22_0x1cb4b1(0x9b),'risk':a22_0x1cb4b1(0x9e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5a9559){const _0x344127=a22_0x1cb4b1;return printLogs(logger[_0x344127(0xaf)]()),{'ok':!![]};}},{'service':a22_0x1cb4b1(0xad),'command':a22_0x1cb4b1(0x9f),'description':a22_0x1cb4b1(0xa3),'risk':a22_0x1cb4b1(0xa8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x245a8c){const _0xa69ac3=a22_0x1cb4b1;return logger[_0xa69ac3(0xa5)](),console[_0xa69ac3(0xa1)](_0xa69ac3(0x91)),{'ok':!![]};}}];
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a23_0x31f5(){const _0x1ec6c9=['1466438hEINeY','6fMxUtd','\x20\x20[high-risk-write]','isSingleCommand','Logs','command','from','map','Configuration','get','Schema','Authentication','values','set','239048aSBjjb','108424fwcoXo','risk','65kESFEj','show','service','BFF\x20Scripts','817482eEfize','description','Skills','SQL\x20Queries','push','list','login','1130YMzkwz','440214sxZIxV','30455282vYUkww','70DFwpmd','defaultCommand','Datasets','install','\x20\x20[write]','33435ZCRSeo'];a23_0x31f5=function(){return _0x1ec6c9;};return a23_0x31f5();}function a23_0x3efd(_0x45b06f,_0x5295e5){_0x45b06f=_0x45b06f-0x124;const _0x31f57b=a23_0x31f5();let _0x3efd4a=_0x31f57b[_0x45b06f];return _0x3efd4a;}const a23_0x188a85=a23_0x3efd;(function(_0x577340,_0x93360b){const _0x5b59ec=a23_0x3efd,_0x4b5e19=_0x577340();while(!![]){try{const _0x10fae9=-parseInt(_0x5b59ec(0x137))/0x1+parseInt(_0x5b59ec(0x12f))/0x2*(parseInt(_0x5b59ec(0x138))/0x3)+-parseInt(_0x5b59ec(0x146))/0x4*(parseInt(_0x5b59ec(0x148))/0x5)+parseInt(_0x5b59ec(0x127))/0x6+-parseInt(_0x5b59ec(0x131))/0x7*(parseInt(_0x5b59ec(0x145))/0x8)+parseInt(_0x5b59ec(0x136))/0x9*(-parseInt(_0x5b59ec(0x12e))/0xa)+parseInt(_0x5b59ec(0x130))/0xb;if(_0x10fae9===_0x93360b)break;else _0x4b5e19['push'](_0x4b5e19['shift']());}catch(_0x37d890){_0x4b5e19['push'](_0x4b5e19['shift']());}}}(a23_0x31f5,0xc5316));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';import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x466f8a){const _0x3a81af=a23_0x3efd;for(const _0x2093c4 of _0x466f8a){definitions[_0x3a81af(0x144)](_0x2093c4[_0x3a81af(0x125)]+':'+_0x2093c4[_0x3a81af(0x13c)],_0x2093c4);let _0x366377=serviceGroups[_0x3a81af(0x140)](_0x2093c4['service']);!_0x366377&&(_0x366377=[],serviceGroups[_0x3a81af(0x144)](_0x2093c4['service'],_0x366377)),_0x366377[_0x3a81af(0x12b)](_0x2093c4);}}function registerService(_0x474a52,_0x5a5747,_0x2fb3fc){const _0x934621=a23_0x3efd;registerDefinitions(_0x5a5747);const _0x54ceff=_0x5a2a3b=>_0x5a2a3b==='read'?'':_0x5a2a3b==='write'?_0x934621(0x135):_0x934621(0x139),_0x533906={'service':_0x5a5747[0x0][_0x934621(0x125)],'label':_0x474a52,'commands':_0x5a5747[_0x934621(0x13e)](_0x221756=>({'command':_0x221756[_0x934621(0x13c)],'description':_0x221756[_0x934621(0x128)],'tag':_0x54ceff(_0x221756[_0x934621(0x147)])})),'defaultCommand':_0x2fb3fc?.[_0x934621(0x132)]??(_0x2fb3fc?.['isSingleCommand']?_0x5a5747[0x0][_0x934621(0x13c)]:undefined),'isSingleCommand':_0x2fb3fc?.[_0x934621(0x13a)]};serviceRegistry['push'](_0x533906),serviceByName[_0x934621(0x144)](_0x533906[_0x934621(0x125)],_0x533906);}registerService(a23_0x188a85(0x142),authDefinitions,{'defaultCommand':a23_0x188a85(0x12d)}),registerService(a23_0x188a85(0x133),datasetDefinitions),registerService('Instant\x20API',dataDefinitions),registerService(a23_0x188a85(0x12a),sqlDefinitions),registerService(a23_0x188a85(0x126),bffDefinitions),registerService('App\x20Management',appDefinitions,{'defaultCommand':a23_0x188a85(0x12c)}),registerService(a23_0x188a85(0x13f),configDefinitions,{'defaultCommand':a23_0x188a85(0x12c)}),registerService(a23_0x188a85(0x129),skillDefinitions,{'defaultCommand':a23_0x188a85(0x134)}),registerService('Diagnostics',[doctorDefinition],{'isSingleCommand':!![]}),registerService(a23_0x188a85(0x141),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a23_0x188a85(0x13b),logsDefinitions,{'defaultCommand':a23_0x188a85(0x124)});export function findDefinition(_0x2b1692,_0x16f16f){const _0x4debcb=a23_0x188a85;return definitions[_0x4debcb(0x140)](_0x2b1692+':'+_0x16f16f);}export function isKnownService(_0x43e557){return serviceByName['has'](_0x43e557);}export function getServiceEntry(_0x52927e){const _0x4ca67e=a23_0x188a85;return serviceByName[_0x4ca67e(0x140)](_0x52927e);}export function getAllDefinitions(){const _0x4d0ee8=a23_0x188a85;return Array[_0x4d0ee8(0x13d)](definitions[_0x4d0ee8(0x143)]());}
|
package/lib/commands/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x3a3cc5=a24_0x29e4;function a24_0x4619(){const _0xa62bfa=['3188220lBgGFV','36854960HBrQaC','3102638QOPnfd','Export\x20machine-readable\x20command\x20schema\x20(JSON)','4653750PvRiDq','3221325OfoAJW','export','schema','930692SxQeUx','288LMIPOA','8678TPAMkU'];a24_0x4619=function(){return _0xa62bfa;};return a24_0x4619();}(function(_0x6bc998,_0x2dd02b){const _0x5ab81c=a24_0x29e4,_0x14191b=_0x6bc998();while(!![]){try{const _0x375d7f=-parseInt(_0x5ab81c(0x1a4))/0x1+parseInt(_0x5ab81c(0x1a6))/0x2*(-parseInt(_0x5ab81c(0x1a5))/0x3)+-parseInt(_0x5ab81c(0x1a7))/0x4+-parseInt(_0x5ab81c(0x1a1))/0x5+-parseInt(_0x5ab81c(0x1a0))/0x6+-parseInt(_0x5ab81c(0x19e))/0x7+parseInt(_0x5ab81c(0x19d))/0x8;if(_0x375d7f===_0x2dd02b)break;else _0x14191b['push'](_0x14191b['shift']());}catch(_0x3b4401){_0x14191b['push'](_0x14191b['shift']());}}}(a24_0x4619,0x9259f));import{buildSchemaPayload}from'../framework/schema-export.js';function a24_0x29e4(_0x276b90,_0x5e4b21){_0x276b90=_0x276b90-0x19d;const _0x46199e=a24_0x4619();let _0x29e497=_0x46199e[_0x276b90];return _0x29e497;}async function execute(_0x314372){const _0x2621af=await buildSchemaPayload();return{'ok':!![],'data':_0x2621af};}export const schemaDefinition={'service':a24_0x3a3cc5(0x1a3),'command':a24_0x3a3cc5(0x1a2),'description':a24_0x3a3cc5(0x19f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a25_0x54844f=a25_0x5776;(function(_0x374e4f,_0x4ec060){const _0x47fe0e=a25_0x5776,_0x16927b=_0x374e4f();while(!![]){try{const _0x2a0b09=-parseInt(_0x47fe0e(0x1f4))/0x1+-parseInt(_0x47fe0e(0x1e6))/0x2+-parseInt(_0x47fe0e(0x1fd))/0x3+-parseInt(_0x47fe0e(0x1fc))/0x4+-parseInt(_0x47fe0e(0x1ed))/0x5+-parseInt(_0x47fe0e(0x1f8))/0x6+-parseInt(_0x47fe0e(0x1f9))/0x7*(-parseInt(_0x47fe0e(0x1e5))/0x8);if(_0x2a0b09===_0x4ec060)break;else _0x16927b['push'](_0x16927b['shift']());}catch(_0x3f3aba){_0x16927b['push'](_0x16927b['shift']());}}}(a25_0x4400,0x51570));import{CLI_BIN_NAME}from'../../constant/cli.js';function a25_0x4400(){const _0x357919=['../../skills/npx-skills-add.js','write','232937iaDVht','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','Check\x20network\x20connectivity\x20and\x20try\x20again.','inherit','1148760OYeDKc','130298hipAWO','npx\x20skills\x20add\x20failed:\x20','Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','2086352WPiUMq','1028859kGKNzl','log','setLogPath','752IRoJDP','228202dEfbTL','info','\x20skill\x20installed','nonInteractive','apiError','unknown','\x20-g\x20-y)...','67545VvwSuF','Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','skill-install','skipped','cwd'];a25_0x4400=function(){return _0x357919;};return a25_0x4400();}function a25_0x5776(_0x52c177,_0x21fc5d){_0x52c177=_0x52c177-0x1e4;const _0x440047=a25_0x4400();let _0x577600=_0x440047[_0x52c177];return _0x577600;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':'skill','command':'install','description':a25_0x54844f(0x1fb),'risk':a25_0x54844f(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd9bdb3){const _0x843c60=a25_0x54844f;logger[_0x843c60(0x1e4)](process[_0x843c60(0x1f1)]()),logger[_0x843c60(0x1e7)](_0x843c60(0x1ef),'Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x20fcfd,runNpxSkillsAddGlobal:_0x1275bd}=await import(_0x843c60(0x1f2)),_0x4c81a1=_0xd9bdb3[_0x843c60(0x1e9)]?'pipe':_0x843c60(0x1f7);console[_0x843c60(0x1fe)](_0x843c60(0x1f5)+_0x20fcfd+_0x843c60(0x1ec));const _0x5e9493=_0x1275bd(process[_0x843c60(0x1f1)](),_0x20fcfd,{'stdio':_0x4c81a1});if(_0x5e9493[_0x843c60(0x1f0)])console[_0x843c60(0x1fe)](_0x843c60(0x1ee));else{if(_0x5e9493['ok'])console[_0x843c60(0x1fe)](CLI_BIN_NAME+_0x843c60(0x1e8));else throw CliErrors[_0x843c60(0x1ea)](_0x843c60(0x1fa)+(_0x5e9493['error']||_0x843c60(0x1eb)),_0x843c60(0x1f6));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a26_0x58dc(){const _0x57a226=['30968dMOCTu','112LqsKeg','bool','8QDcReV','sqlContent','3399MwZCRY','read','sqlcode','appCode','1229710dMQVIu','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlCode','14328txpieQ','2031UGAZhS','sql','162DyZGPT','36246nDHKUD','9AYTcXP','559145Riennx','str','verbose','489849skaXIX'];a26_0x58dc=function(){return _0x57a226;};return a26_0x58dc();}const a26_0x42b340=a26_0x50e2;(function(_0x178a06,_0x75bab5){const _0x368912=a26_0x50e2,_0x26fd60=_0x178a06();while(!![]){try{const _0x3b5c1c=-parseInt(_0x368912(0x7f))/0x1*(-parseInt(_0x368912(0x81))/0x2)+-parseInt(_0x368912(0x87))/0x3+-parseInt(_0x368912(0x75))/0x4*(parseInt(_0x368912(0x84))/0x5)+-parseInt(_0x368912(0x82))/0x6*(parseInt(_0x368912(0x73))/0x7)+parseInt(_0x368912(0x88))/0x8*(parseInt(_0x368912(0x83))/0x9)+parseInt(_0x368912(0x7b))/0xa+parseInt(_0x368912(0x77))/0xb*(parseInt(_0x368912(0x7e))/0xc);if(_0x3b5c1c===_0x75bab5)break;else _0x26fd60['push'](_0x26fd60['shift']());}catch(_0x56d1df){_0x26fd60['push'](_0x26fd60['shift']());}}}(a26_0x58dc,0x2b23e));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a26_0x50e2(_0x43ffcc,_0x16f736){_0x43ffcc=_0x43ffcc-0x73;const _0x58dcde=a26_0x58dc();let _0x50e2ee=_0x58dcde[_0x43ffcc];return _0x50e2ee;}export const sqlDetail={'service':a26_0x42b340(0x80),'command':'detail','description':a26_0x42b340(0x7c),'risk':a26_0x42b340(0x78),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3e8b27){const _0x4e6069=a26_0x42b340,_0x50e30c=await getSqlQueryInfo(_0x3e8b27[_0x4e6069(0x7a)],_0x3e8b27[_0x4e6069(0x85)](_0x4e6069(0x79))),_0x506b7f=_0x3e8b27[_0x4e6069(0x74)](_0x4e6069(0x86));if(_0x506b7f)return{'ok':!![],'data':_0x50e30c};const _0x509edc=_0x50e30c['dbId']?await getDbName(_0x3e8b27[_0x4e6069(0x7a)],_0x50e30c['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x50e30c[_0x4e6069(0x7d)],'sqlName':_0x50e30c['sqlName'],'db':_0x509edc?_0x509edc+'\x20('+_0x50e30c['dbId']+')':_0x50e30c['dbId']??'','description':_0x50e30c['description']??'','sqlContent':_0x50e30c[_0x4e6069(0x76)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x282c4d=a27_0x1b46;(function(_0x4c5d25,_0x2f5a52){const _0x101d03=a27_0x1b46,_0x5da12a=_0x4c5d25();while(!![]){try{const _0x3afd28=-parseInt(_0x101d03(0x14e))/0x1*(parseInt(_0x101d03(0x15d))/0x2)+parseInt(_0x101d03(0x158))/0x3+-parseInt(_0x101d03(0x14b))/0x4+parseInt(_0x101d03(0x153))/0x5+parseInt(_0x101d03(0x154))/0x6*(-parseInt(_0x101d03(0x15f))/0x7)+-parseInt(_0x101d03(0x15a))/0x8*(-parseInt(_0x101d03(0x160))/0x9)+parseInt(_0x101d03(0x159))/0xa;if(_0x3afd28===_0x2f5a52)break;else _0x5da12a['push'](_0x5da12a['shift']());}catch(_0x3ccfa8){_0x5da12a['push'](_0x5da12a['shift']());}}}(a27_0x15ea,0xba2a3));function a27_0x15ea(){const _0x624f4=['84483PLPTUO','7740FpBUaj','Returned\x20','params','str','2343208qeRLvU','length','execError','9swLPFB','SQL\x20execution\x20failed','isArray','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','read','1959305CkqRkM','162aTqIJr','execResult','execSuccess','exec','392610wSIoLT','17940720Ywwckm','3128OVTEgE','sql','\x20row(s)\x20in\x20','217526KhXQbG','now'];a27_0x15ea=function(){return _0x624f4;};return a27_0x15ea();}import{executeSdkSql}from'../../core/sdk-client.js';function a27_0x1b46(_0x5e6793,_0x19ce0d){_0x5e6793=_0x5e6793-0x14a;const _0x15ea04=a27_0x15ea();let _0x1b4680=_0x15ea04[_0x5e6793];return _0x1b4680;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a27_0x282c4d(0x15b),'command':a27_0x282c4d(0x157),'description':a27_0x282c4d(0x151),'risk':a27_0x282c4d(0x152),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0xca4eff){const _0x51c2cf=a27_0x282c4d,_0x2d7cde=parseJsonParams(_0xca4eff[_0x51c2cf(0x14a)](_0x51c2cf(0x162))),_0x5311fd=Date[_0x51c2cf(0x15e)](),_0x57606e=await executeSdkSql(_0xca4eff[_0x51c2cf(0x14a)]('sqlcode'),_0x2d7cde),_0x532540=Date[_0x51c2cf(0x15e)]()-_0x5311fd,_0x5f15f0=_0x57606e?.[_0x51c2cf(0x155)]??_0x57606e,_0x5a1e37=_0x57606e?.[_0x51c2cf(0x156)]??!![];if(!_0x5a1e37)return{'ok':![],'data':{'error':_0x57606e?.[_0x51c2cf(0x14d)]||_0x51c2cf(0x14f),'elapsed':_0x532540},'message':_0x51c2cf(0x14f)};const _0x3afea9=Array[_0x51c2cf(0x150)](_0x5f15f0)?_0x5f15f0:[];return{'ok':!![],'data':{'rows':_0x3afea9,'rowCount':_0x3afea9['length'],'elapsed':_0x532540},'message':_0x51c2cf(0x161)+_0x3afea9[_0x51c2cf(0x14c)]+_0x51c2cf(0x15c)+_0x532540+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x344cdb,_0x24594e){const _0xfd4d32=a28_0x501e,_0x287886=_0x344cdb();while(!![]){try{const _0x1f1ddd=-parseInt(_0xfd4d32(0xd8))/0x1*(-parseInt(_0xfd4d32(0xd9))/0x2)+parseInt(_0xfd4d32(0xd6))/0x3+-parseInt(_0xfd4d32(0xd4))/0x4+parseInt(_0xfd4d32(0xd2))/0x5*(-parseInt(_0xfd4d32(0xd3))/0x6)+parseInt(_0xfd4d32(0xd7))/0x7+parseInt(_0xfd4d32(0xd1))/0x8+-parseInt(_0xfd4d32(0xd0))/0x9*(-parseInt(_0xfd4d32(0xd5))/0xa);if(_0x1f1ddd===_0x24594e)break;else _0x287886['push'](_0x287886['shift']());}catch(_0xbf81ed){_0x287886['push'](_0x287886['shift']());}}}(a28_0x449c,0x234d5));function a28_0x501e(_0x501b2,_0x3639cc){_0x501b2=_0x501b2-0xd0;const _0x449ca9=a28_0x449c();let _0x501edc=_0x449ca9[_0x501b2];return _0x501edc;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a28_0x449c(){const _0x118e95=['1013640uTlCtm','20RbWlvh','442869rRZBhu','1161139xJihKD','30655QRokEL','4bVmCJN','636516woPwSS','1340856kPEJqP','1429290SqmbBJ','6gJKqWI'];a28_0x449c=function(){return _0x118e95;};return a28_0x449c();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x3dfb56=a29_0x4dca;function a29_0x446f(){const _0x45e89c=['locale','entries','env','58269fxcFmA','24atERIs','Default\x20output\x20format','filter','format','371655NhOjhZ','124332KgomyV','Override\x20API\x20domain','4Utycos','1744402KkPszd','Locale','fromEntries','639CyJhMG','riskLevel','8amGcUq','Default\x20page\x20size','Config\x20key.\x20Top-level:\x20','defaultValue','1414847wcTYGL','map','Risk\x20level','cliSettableTopLevel','join','2622woPGYi','39kRgFFR','4810RrDfKD','Access\x20key\x20(client-ak\x20auth)','enumValues','Override\x20runtime\x20domain'];a29_0x446f=function(){return _0x45e89c;};return a29_0x446f();}(function(_0x5c29f6,_0x460a29){const _0x4f5e12=a29_0x4dca,_0x1e1a06=_0x5c29f6();while(!![]){try{const _0x1dbc1d=-parseInt(_0x4f5e12(0x1c2))/0x1*(parseInt(_0x4f5e12(0x1c1))/0x2)+-parseInt(_0x4f5e12(0x1ca))/0x3+-parseInt(_0x4f5e12(0x1d2))/0x4*(-parseInt(_0x4f5e12(0x1cf))/0x5)+parseInt(_0x4f5e12(0x1d0))/0x6+-parseInt(_0x4f5e12(0x1bc))/0x7*(parseInt(_0x4f5e12(0x1d8))/0x8)+-parseInt(_0x4f5e12(0x1d6))/0x9*(parseInt(_0x4f5e12(0x1c3))/0xa)+parseInt(_0x4f5e12(0x1d3))/0xb*(parseInt(_0x4f5e12(0x1cb))/0xc);if(_0x1dbc1d===_0x460a29)break;else _0x1e1a06['push'](_0x1e1a06['shift']());}catch(_0x35bec1){_0x1e1a06['push'](_0x1e1a06['shift']());}}}(a29_0x446f,0x19bb1));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a29_0x4dca(_0x24db7d,_0x23ab7a){_0x24db7d=_0x24db7d-0x1bc;const _0x446f05=a29_0x446f();let _0x4dca4b=_0x446f05[_0x24db7d];return _0x4dca4b;}export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x3dfb56(0x1c9)],'importable':!![]},'format':{'description':a29_0x3dfb56(0x1cc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x3dfb56(0x1ce)],'importable':!![]},'pageSize':{'description':a29_0x3dfb56(0x1d9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x3dfb56(0x1d1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x3dfb56(0x1c6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x3dfb56(0x1c4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a29_0x3dfb56(0x1be),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x3dfb56(0x1d7)],'importable':!![]},'locale':{'description':a29_0x3dfb56(0x1d4),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x3dfb56(0x1c7)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x3dfb56(0x1c8)](CONFIG_FIELD_SCHEMAS)[a29_0x3dfb56(0x1cd)](([,_0x676a35])=>_0x676a35[a29_0x3dfb56(0x1bf)])[a29_0x3dfb56(0x1bd)](([_0x52daf4])=>_0x52daf4));export const CONFIG_ENUM_VALUES=Object[a29_0x3dfb56(0x1d5)](Object[a29_0x3dfb56(0x1c8)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x513c40])=>_0x513c40['enumValues'])[a29_0x3dfb56(0x1bd)](([_0x402790,_0x5523bf])=>[_0x402790,[..._0x5523bf[a29_0x3dfb56(0x1c5)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x3dfb56(0x1c8)](CONFIG_FIELD_SCHEMAS)[a29_0x3dfb56(0x1cd)](([,_0xc7ce89])=>_0xc7ce89['importable'])[a29_0x3dfb56(0x1bd)](([_0x229978])=>_0x229978);export function getConfigFieldSchema(_0x246f7b){return CONFIG_FIELD_SCHEMAS[_0x246f7b];}export function getConfigEnumValues(_0x2304a3){const _0x3d3d84=a29_0x3dfb56;return getConfigFieldSchema(_0x2304a3)?.[_0x3d3d84(0x1c5)];}export function getConfigDefaultValue(_0xdad02c){const _0x554574=a29_0x3dfb56;return getConfigFieldSchema(_0xdad02c)?.[_0x554574(0x1db)];}export function isTopLevelConfigKey(_0x461499){return TOP_LEVEL_CONFIG_KEYS['has'](_0x461499);}export function isLegacyCompatConfigKey(_0x23de52){return getConfigFieldSchema(_0x23de52)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x108301){const _0x28cb11=a29_0x3dfb56;return[..._0x108301][_0x28cb11(0x1c0)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1e3b22=a29_0x3dfb56;return _0x1e3b22(0x1da)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x2536d7){return{'env':_0x2536d7,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x3e0414=a30_0x29e6;(function(_0xeb1327,_0x30192f){const _0x134b8c=a30_0x29e6,_0x4ad7a7=_0xeb1327();while(!![]){try{const _0xa5247a=-parseInt(_0x134b8c(0x10d))/0x1+parseInt(_0x134b8c(0x104))/0x2+-parseInt(_0x134b8c(0x106))/0x3+-parseInt(_0x134b8c(0x10c))/0x4*(parseInt(_0x134b8c(0x107))/0x5)+parseInt(_0x134b8c(0x10b))/0x6*(parseInt(_0x134b8c(0x109))/0x7)+parseInt(_0x134b8c(0x10a))/0x8+parseInt(_0x134b8c(0x108))/0x9;if(_0xa5247a===_0x30192f)break;else _0x4ad7a7['push'](_0x4ad7a7['shift']());}catch(_0x3dff86){_0x4ad7a7['push'](_0x4ad7a7['shift']());}}}(a30_0x40ee,0x1977f));function a30_0x29e6(_0x1a856e,_0x4993c7){_0x1a856e=_0x1a856e-0x104;const _0x40ee3e=a30_0x40ee();let _0x29e670=_0x40ee3e[_0x1a856e];return _0x29e670;}export const AUTH_MODE={'ClientAk':a30_0x3e0414(0x105)};export function isAuthMode(_0x2fc2bc){const _0x16305a=a30_0x3e0414;return _0x2fc2bc===AUTH_MODE[_0x16305a(0x10e)];}function a30_0x40ee(){const _0x368dfa=['959ChTwaF','362432Ttehaw','3282OZXWtb','4panEMX','103960HZkaMh','ClientAk','299350wtuUrI','client-ak','287322TEcJIV','609445gKNBjf','1404216KiYaBL'];a30_0x40ee=function(){return _0x368dfa;};return a30_0x40ee();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x3d82(_0x2b934b,_0x5b8403){_0x2b934b=_0x2b934b-0x1da;const _0x46ab9e=a31_0x46ab();let _0x3d82ef=_0x46ab9e[_0x2b934b];return _0x3d82ef;}const a31_0xa2b696=a31_0x3d82;function a31_0x46ab(){const _0xc4330e=['sqlcode','129896DuZTdu','help','params','env','verbose','20kGgQnH','86684bFveKv','3430yLdcdP','Alias\x20for\x20--non-interactive','Lovrabet\x20Runtime\x20CLI','nonInteractive','production\x20|\x20development\x20|\x20daily','Clear\x20output','json\x20|\x20pretty\x20|\x20compress','261152PjafOs','clear','Environment','Force\x20non-interactive\x20mode\x20(CI)','non-interactive','app','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','lovrabet','format','dry-run','467004tLlHTP','Preview\x20operation\x20without\x20executing','yes','@lovrabet/lovrabet-cli','Use\x20global\x20config\x20scope','57784ADQYzu','boolean','string','global','Select\x20app\x20profile\x20by\x20name','map','JSON\x20params\x20for\x20execute\x20commands','1423017npoVHs','187kXASle','Skip\x20confirmation\x20for\x20high-risk\x20writes','type','appcode','Override\x20appcode','10tVWUtU','Show\x20help','dryRun','175MorcPK','name','21jSMMzO','6vInNfg','meowKey','3419905rKAmIB'];a31_0x46ab=function(){return _0xc4330e;};return a31_0x46ab();}(function(_0x17b65c,_0x450057){const _0x324be7=a31_0x3d82,_0x27ca17=_0x17b65c();while(!![]){try{const _0x339ab2=-parseInt(_0x324be7(0x205))/0x1*(-parseInt(_0x324be7(0x1e9))/0x2)+parseInt(_0x324be7(0x1fb))/0x3*(parseInt(_0x324be7(0x206))/0x4)+parseInt(_0x324be7(0x1fe))/0x5*(parseInt(_0x324be7(0x1fc))/0x6)+parseInt(_0x324be7(0x1f9))/0x7*(parseInt(_0x324be7(0x1da))/0x8)+-parseInt(_0x324be7(0x1f0))/0x9*(-parseInt(_0x324be7(0x1f6))/0xa)+parseInt(_0x324be7(0x1f1))/0xb*(parseInt(_0x324be7(0x1e4))/0xc)+parseInt(_0x324be7(0x200))/0xd*(-parseInt(_0x324be7(0x207))/0xe);if(_0x339ab2===_0x450057)break;else _0x27ca17['push'](_0x27ca17['shift']());}catch(_0x1ed6cd){_0x27ca17['push'](_0x27ca17['shift']());}}}(a31_0x46ab,0x92cc0));export const CLI_BIN_NAME=a31_0xa2b696(0x1e1);export const CLI_DISPLAY_NAME=a31_0xa2b696(0x209);export const NPM_PACKAGE_NAME=a31_0xa2b696(0x1e7);export const GLOBAL_FLAGS=[{'name':a31_0xa2b696(0x1f4),'meowKey':a31_0xa2b696(0x1f4),'type':a31_0xa2b696(0x1eb),'description':a31_0xa2b696(0x1f5),'hint':'<code>'},{'name':a31_0xa2b696(0x1df),'meowKey':a31_0xa2b696(0x1df),'type':a31_0xa2b696(0x1eb),'description':a31_0xa2b696(0x1ed),'hint':'<name>'},{'name':a31_0xa2b696(0x203),'meowKey':'env','type':'string','description':a31_0xa2b696(0x1dc),'hint':a31_0xa2b696(0x20b)},{'name':a31_0xa2b696(0x1e2),'meowKey':a31_0xa2b696(0x1e2),'type':a31_0xa2b696(0x1eb),'description':'Output\x20format','hint':a31_0xa2b696(0x20d)},{'name':'jq','meowKey':'jq','type':a31_0xa2b696(0x1eb),'description':a31_0xa2b696(0x1e0),'hint':'<expr>'},{'name':a31_0xa2b696(0x1e3),'meowKey':a31_0xa2b696(0x1f8),'type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x1e5)},{'name':a31_0xa2b696(0x1e6),'meowKey':a31_0xa2b696(0x1e6),'type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x1f2)},{'name':'non-interactive','meowKey':a31_0xa2b696(0x20a),'type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x1dd)},{'name':a31_0xa2b696(0x1ec),'meowKey':a31_0xa2b696(0x1ec),'type':'boolean','description':a31_0xa2b696(0x1e8)},{'name':'ci','meowKey':'ci','type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x208),'hidden':!![]},{'name':'help','meowKey':a31_0xa2b696(0x201),'type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x1f7)},{'name':'id','meowKey':'id','type':a31_0xa2b696(0x1eb),'description':'Record\x20ID','hidden':!![]},{'name':a31_0xa2b696(0x1fa),'meowKey':a31_0xa2b696(0x1fa),'type':a31_0xa2b696(0x1eb),'description':'Name\x20filter','hidden':!![]},{'name':a31_0xa2b696(0x1ff),'meowKey':a31_0xa2b696(0x1ff),'type':a31_0xa2b696(0x1eb),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a31_0xa2b696(0x202),'meowKey':a31_0xa2b696(0x202),'type':a31_0xa2b696(0x1eb),'description':a31_0xa2b696(0x1ef),'hidden':!![]},{'name':a31_0xa2b696(0x204),'meowKey':'verbose','type':a31_0xa2b696(0x1ea),'description':'Verbose\x20output','hidden':!![]},{'name':'clear','meowKey':a31_0xa2b696(0x1db),'type':a31_0xa2b696(0x1ea),'description':a31_0xa2b696(0x20c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0xa2b696(0x1f4),a31_0xa2b696(0x1df),'env',a31_0xa2b696(0x1e2),'jq',a31_0xa2b696(0x1e3),'yes',a31_0xa2b696(0x1de),'ci']);export function buildMeowFlags(){const _0x302658=a31_0xa2b696;return Object['fromEntries'](GLOBAL_FLAGS[_0x302658(0x1ee)](_0xe4d1a0=>[_0xe4d1a0[_0x302658(0x1fd)],{'type':_0xe4d1a0[_0x302658(0x1f3)]}]));}
|