@lovrabet/lovrabet-cli 2.0.3 → 2.0.4

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.
Files changed (65) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/logs/index.js +1 -1
  24. package/lib/commands/registry.js +1 -1
  25. package/lib/commands/schema.js +1 -1
  26. package/lib/commands/skill/index.js +1 -1
  27. package/lib/commands/sql/detail.js +1 -1
  28. package/lib/commands/sql/exec.js +1 -1
  29. package/lib/commands/sql/index.js +1 -1
  30. package/lib/config/schema.js +1 -1
  31. package/lib/constant/auth-mode.js +1 -1
  32. package/lib/constant/cli.js +1 -1
  33. package/lib/constant/defaults.js +1 -1
  34. package/lib/constant/domain.js +1 -1
  35. package/lib/constant/env.js +1 -1
  36. package/lib/constant/output.js +1 -1
  37. package/lib/constant/risk.js +1 -1
  38. package/lib/constant/url.js +1 -1
  39. package/lib/context.js +1 -1
  40. package/lib/core/api-client.js +1 -1
  41. package/lib/core/db-resolver.js +1 -1
  42. package/lib/core/sdk-client.js +1 -1
  43. package/lib/errors.js +1 -1
  44. package/lib/framework/build-all-flags.js +1 -1
  45. package/lib/framework/dryrun.js +1 -1
  46. package/lib/framework/flags.js +1 -1
  47. package/lib/framework/help.js +1 -1
  48. package/lib/framework/index.js +1 -1
  49. package/lib/framework/output.js +1 -1
  50. package/lib/framework/preparse.js +1 -1
  51. package/lib/framework/response.js +1 -1
  52. package/lib/framework/runner-confirmation.js +1 -1
  53. package/lib/framework/runner-error.js +1 -1
  54. package/lib/framework/runner.js +1 -1
  55. package/lib/framework/schema-export.js +1 -1
  56. package/lib/framework/types.js +1 -1
  57. package/lib/help.js +1 -1
  58. package/lib/skills/npx-skills-add.js +1 -1
  59. package/lib/utils/apply-jq-filter.js +1 -1
  60. package/lib/utils/logger.js +1 -1
  61. package/lib/utils/params.js +1 -1
  62. package/lib/utils/platform.js +1 -1
  63. package/lib/utils/version.js +1 -1
  64. package/lib/utils/write-cli-side-channel.js +1 -1
  65. package/package.json +6 -6
@@ -1 +1 @@
1
- const a16_0x195495=a16_0x5a39;(function(_0x4f14fa,_0xdcb5b4){const _0x2f9ca1=a16_0x5a39,_0x47dbab=_0x4f14fa();while(!![]){try{const _0x876b13=-parseInt(_0x2f9ca1(0x18c))/0x1*(-parseInt(_0x2f9ca1(0x17b))/0x2)+parseInt(_0x2f9ca1(0x192))/0x3+-parseInt(_0x2f9ca1(0x178))/0x4+parseInt(_0x2f9ca1(0x156))/0x5*(parseInt(_0x2f9ca1(0x16a))/0x6)+parseInt(_0x2f9ca1(0x14b))/0x7+-parseInt(_0x2f9ca1(0x169))/0x8+parseInt(_0x2f9ca1(0x17a))/0x9*(-parseInt(_0x2f9ca1(0x184))/0xa);if(_0x876b13===_0xdcb5b4)break;else _0x47dbab['push'](_0x47dbab['shift']());}catch(_0x49de76){_0x47dbab['push'](_0x47dbab['shift']());}}}(a16_0x5125,0x514c3));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_0x5125(){const _0x56a526=['\x20on\x20dataset\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','paramsHint','\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}}','filter','str','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','risk','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','high-risk-write','\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}}','Get\x20a\x20single\x20record\x20by\x20ID','\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}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','1148656gVxJlk','36knKdPE','update','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','delete','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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','/api/{appCode}/','data\x20','aggregate','\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}}]}','join','code','860188bmumjk','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','27WomNPA','2OoiGzN','create','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}}','description','read','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20WHERE\x20OPERATORS','\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}}','2298090ACEBpH','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','POST','params','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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]','43444asprfb','\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]}}','write','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','dryRun','1970292GRwFQZ','map','\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\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}','data','command','\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','3123239SFVVVH','\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\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}}','batchCreate','getOne','\x20\x20EXAMPLES','operation','now','Preview:\x20data\x20','\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}]','195555dxkqLa'];a16_0x5125=function(){return _0x56a526;};return a16_0x5125();}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x195495(0x15b),'operation':a16_0x195495(0x15b),'risk':a16_0x195495(0x180),'paramsRequired':![],'description':a16_0x195495(0x168),'paramsHint':a16_0x195495(0x179)+a16_0x195495(0x18f),'helpExtra':[a16_0x195495(0x182),'\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_0x195495(0x185),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a16_0x195495(0x15a),a16_0x195495(0x183),'\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}}',a16_0x195495(0x18d),a16_0x195495(0x17e),'\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_0x195495(0x165),'','\x20\x20LOGICAL\x20COMBINATORS',a16_0x195495(0x175),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a16_0x195495(0x194),a16_0x195495(0x155),a16_0x195495(0x187),a16_0x195495(0x190),'','\x20\x20PAGINATION',a16_0x195495(0x158),a16_0x195495(0x161),a16_0x195495(0x14d)]['join']('\x0a')},{'command':a16_0x195495(0x150),'operation':a16_0x195495(0x150),'risk':a16_0x195495(0x180),'paramsRequired':!![],'description':a16_0x195495(0x166),'paramsHint':a16_0x195495(0x17d)},{'command':a16_0x195495(0x17c),'operation':'create','risk':a16_0x195495(0x18e),'paramsRequired':!![],'description':a16_0x195495(0x16e),'paramsHint':a16_0x195495(0x181)},{'command':a16_0x195495(0x14f),'operation':a16_0x195495(0x14f),'risk':a16_0x195495(0x18e),'paramsRequired':!![],'description':a16_0x195495(0x18a),'paramsHint':a16_0x195495(0x16d)},{'command':a16_0x195495(0x16b),'operation':a16_0x195495(0x16b),'risk':a16_0x195495(0x18e),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x195495(0x15e)},{'command':a16_0x195495(0x16f),'operation':a16_0x195495(0x16f),'risk':a16_0x195495(0x164),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a16_0x195495(0x17d)},{'command':a16_0x195495(0x174),'operation':a16_0x195495(0x174),'risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a16_0x195495(0x16c)+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':['\x20\x20AGGREGATE\x20TYPES',a16_0x195495(0x14c),a16_0x195495(0x195),a16_0x195495(0x167),'\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_0x195495(0x186),'\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\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a16_0x195495(0x15d),a16_0x195495(0x18b),a16_0x195495(0x170),a16_0x195495(0x163),a16_0x195495(0x160),a16_0x195495(0x14e),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a16_0x195495(0x151),a16_0x195495(0x15f),a16_0x195495(0x14a),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a16_0x195495(0x171)][a16_0x195495(0x176)]('\x0a')}];function makeDataCommand(_0x5e0666){const _0x5fe164=a16_0x195495,_0x2eb17b='data\x20'+_0x5e0666[_0x5fe164(0x149)],_0x3fb488={'service':_0x5fe164(0x196),'command':_0x5e0666[_0x5fe164(0x149)],'description':_0x5e0666['description'],'risk':_0x5e0666[_0x5fe164(0x162)],'helpExtra':_0x5e0666['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5e0666[_0x5fe164(0x159)]}],'validate':async _0xa3f4cb=>{const _0x421804=_0x5fe164;_0x5e0666['paramsRequired']&&requireAnyOf(_0xa3f4cb,[_0x421804(0x189)],_0x2eb17b),_0x5e0666[_0x421804(0x152)]===_0x421804(0x14f)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xa3f4cb['str'](_0x421804(0x189))));},async 'execute'(_0x32b371){const _0x43ae06=_0x5fe164,_0x25ae8a=_0x32b371[_0x43ae06(0x15c)](_0x43ae06(0x177)),_0x3fa8a4=_0x5e0666[_0x43ae06(0x152)]===_0x43ae06(0x14f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x32b371[_0x43ae06(0x15c)](_0x43ae06(0x189)))):parseJsonParams(_0x32b371['str']('params'))??{},_0x56e5aa=Date[_0x43ae06(0x153)](),_0x40e17f=await executeData(_0x25ae8a,_0x5e0666[_0x43ae06(0x152)],_0x3fa8a4),_0x481220=Date[_0x43ae06(0x153)]()-_0x56e5aa;return{'ok':!![],'data':{'result':_0x40e17f,'elapsed':_0x481220},'message':_0x43ae06(0x173)+_0x5e0666[_0x43ae06(0x149)]+'\x20completed\x20in\x20'+_0x481220+'ms'};}};return _0x5e0666['risk']!=='read'&&(_0x3fb488[_0x5fe164(0x191)]=async _0x178ae5=>{const _0x28d1a4=_0x5fe164,_0x5ae8f2=_0x178ae5[_0x28d1a4(0x15c)]('code'),_0x16f384=_0x5e0666['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x178ae5['str']('params'))):parseJsonParams(_0x178ae5[_0x28d1a4(0x15c)](_0x28d1a4(0x189)))??{};return dryRun(_0x28d1a4(0x188),_0x28d1a4(0x172)+_0x5ae8f2+'/'+_0x5e0666['operation'])['body'](_0x16f384)[_0x28d1a4(0x17f)](_0x28d1a4(0x154)+_0x5e0666[_0x28d1a4(0x149)]+_0x28d1a4(0x157)+_0x5ae8f2)['build']();}),_0x3fb488;}function a16_0x5a39(_0x381a24,_0x4b26c3){_0x381a24=_0x381a24-0x149;const _0x51257a=a16_0x5125();let _0x5a394b=_0x51257a[_0x381a24];return _0x5a394b;}export const dataDefinitions=specs[a16_0x195495(0x193)](makeDataCommand);
1
+ function a16_0x2921(){const _0x1f0849=['\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20PAGINATION','risk','map','aggregate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','2AIENed','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','Preview:\x20data\x20','command','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','code','3389135DBfOBp','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','430749bHWwPj','1330aXyJTw','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20AGGREGATE\x20TYPES','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','1836tylSqx','delete','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','24CRgeAN','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20completed\x20in\x20','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','join','description','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','filter','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','291249bwrpMe','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','POST','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','6KHZwMW','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20EXAMPLES','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','batchCreate','write','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','operation','dryRun','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','7569352wECiLj','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','high-risk-write','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','getOne','body','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','read','build','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','105471zgEeDi','Update\x20an\x20existing\x20record','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','helpExtra','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','now','params','str','368777sYoDMA','data\x20','paramsHint','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','4120449CEzGAt','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}'];a16_0x2921=function(){return _0x1f0849;};return a16_0x2921();}const a16_0x2dafdc=a16_0x39a7;function a16_0x39a7(_0x28b881,_0x2df0ed){_0x28b881=_0x28b881-0x1bb;const _0x2921dd=a16_0x2921();let _0x39a712=_0x2921dd[_0x28b881];return _0x39a712;}(function(_0x47fccc,_0x25e9b1){const _0x3090a7=a16_0x39a7,_0x4ca8c1=_0x47fccc();while(!![]){try{const _0x29cc31=-parseInt(_0x3090a7(0x1ce))/0x1*(-parseInt(_0x3090a7(0x1de))/0x2)+-parseInt(_0x3090a7(0x1d5))/0x3+-parseInt(_0x3090a7(0x1bb))/0x4+-parseInt(_0x3090a7(0x1e5))/0x5*(parseInt(_0x3090a7(0x205))/0x6)+-parseInt(_0x3090a7(0x201))/0x7*(-parseInt(_0x3090a7(0x1f3))/0x8)+-parseInt(_0x3090a7(0x1c5))/0x9*(parseInt(_0x3090a7(0x1e9))/0xa)+parseInt(_0x3090a7(0x1e8))/0xb*(parseInt(_0x3090a7(0x1f0))/0xc);if(_0x29cc31===_0x25e9b1)break;else _0x4ca8c1['push'](_0x4ca8c1['shift']());}catch(_0x434ae0){_0x4ca8c1['push'](_0x4ca8c1['shift']());}}}(a16_0x2921,0xefe7a));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x2dafdc(0x1fd),'operation':'filter','risk':'read','paramsRequired':![],'description':a16_0x2dafdc(0x1ee),'paramsHint':a16_0x2dafdc(0x1c1)+a16_0x2dafdc(0x1c4),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a16_0x2dafdc(0x1df),a16_0x2dafdc(0x1d4),a16_0x2dafdc(0x1d6),a16_0x2dafdc(0x1f2),a16_0x2dafdc(0x1d8),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a16_0x2dafdc(0x1f6),a16_0x2dafdc(0x206),a16_0x2dafdc(0x1eb),'',a16_0x2dafdc(0x1fa),a16_0x2dafdc(0x1ea),a16_0x2dafdc(0x208),'',a16_0x2dafdc(0x1d3),a16_0x2dafdc(0x1d1),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a16_0x2dafdc(0x1fb),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a16_0x2dafdc(0x20c),'',a16_0x2dafdc(0x1d9),a16_0x2dafdc(0x202),a16_0x2dafdc(0x1c7),a16_0x2dafdc(0x20f)][a16_0x2dafdc(0x1f8)]('\x0a')},{'command':a16_0x2dafdc(0x1bf),'operation':a16_0x2dafdc(0x1bf),'risk':a16_0x2dafdc(0x1c2),'paramsRequired':!![],'description':a16_0x2dafdc(0x1e6),'paramsHint':a16_0x2dafdc(0x1e2)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a16_0x2dafdc(0x1fe),'paramsHint':a16_0x2dafdc(0x1fc)},{'command':a16_0x2dafdc(0x20a),'operation':a16_0x2dafdc(0x20a),'risk':a16_0x2dafdc(0x20b),'paramsRequired':!![],'description':a16_0x2dafdc(0x1be),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':'update','risk':a16_0x2dafdc(0x20b),'paramsRequired':!![],'description':a16_0x2dafdc(0x1c6),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a16_0x2dafdc(0x1f1),'operation':a16_0x2dafdc(0x1f1),'risk':a16_0x2dafdc(0x1bd),'paramsRequired':!![],'description':a16_0x2dafdc(0x200),'paramsHint':a16_0x2dafdc(0x1e2)},{'command':a16_0x2dafdc(0x1dc),'operation':a16_0x2dafdc(0x1dc),'risk':a16_0x2dafdc(0x1c2),'paramsRequired':![],'description':a16_0x2dafdc(0x1ed),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a16_0x2dafdc(0x1ec),a16_0x2dafdc(0x1e7),a16_0x2dafdc(0x1dd),a16_0x2dafdc(0x1ef),a16_0x2dafdc(0x1f4),a16_0x2dafdc(0x1d2),a16_0x2dafdc(0x1d7),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','','\x20\x20PARAMS\x20STRUCTURE',a16_0x2dafdc(0x1c9),a16_0x2dafdc(0x209),a16_0x2dafdc(0x1bc),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x2dafdc(0x204),a16_0x2dafdc(0x1ca),'',a16_0x2dafdc(0x207),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a16_0x2dafdc(0x1ff),'',a16_0x2dafdc(0x1f7),a16_0x2dafdc(0x1e3)][a16_0x2dafdc(0x1f8)]('\x0a')}];function makeDataCommand(_0x1986d0){const _0x43b588=a16_0x2dafdc,_0x5c135e=_0x43b588(0x1cf)+_0x1986d0['command'],_0x43d6dd={'service':'data','command':_0x1986d0[_0x43b588(0x1e1)],'description':_0x1986d0[_0x43b588(0x1f9)],'risk':_0x1986d0[_0x43b588(0x1da)],'helpExtra':_0x1986d0[_0x43b588(0x1c8)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1986d0[_0x43b588(0x1d0)]}],'validate':async _0x39bb2a=>{const _0x46c4f4=_0x43b588;_0x1986d0['paramsRequired']&&requireAnyOf(_0x39bb2a,['params'],_0x5c135e),_0x1986d0[_0x46c4f4(0x20d)]===_0x46c4f4(0x20a)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x39bb2a[_0x46c4f4(0x1cd)]('params')));},async 'execute'(_0x461464){const _0x319bee=_0x43b588,_0x5b4915=_0x461464['str'](_0x319bee(0x1e4)),_0x2cb811=_0x1986d0[_0x319bee(0x20d)]===_0x319bee(0x20a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x461464[_0x319bee(0x1cd)](_0x319bee(0x1cc)))):parseJsonParams(_0x461464[_0x319bee(0x1cd)](_0x319bee(0x1cc)))??{},_0x100e35=Date[_0x319bee(0x1cb)](),_0x393eb1=await executeData(_0x5b4915,_0x1986d0[_0x319bee(0x20d)],_0x2cb811),_0x4e2c84=Date[_0x319bee(0x1cb)]()-_0x100e35;return{'ok':!![],'data':{'result':_0x393eb1,'elapsed':_0x4e2c84},'message':'data\x20'+_0x1986d0[_0x319bee(0x1e1)]+_0x319bee(0x1f5)+_0x4e2c84+'ms'};}};return _0x1986d0[_0x43b588(0x1da)]!==_0x43b588(0x1c2)&&(_0x43d6dd[_0x43b588(0x20e)]=async _0x25d1cf=>{const _0x7088fe=_0x43b588,_0x3a7424=_0x25d1cf['str']('code'),_0x396500=_0x1986d0[_0x7088fe(0x20d)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25d1cf['str'](_0x7088fe(0x1cc)))):parseJsonParams(_0x25d1cf[_0x7088fe(0x1cd)](_0x7088fe(0x1cc)))??{};return dryRun(_0x7088fe(0x203),'/api/{appCode}/'+_0x3a7424+'/'+_0x1986d0[_0x7088fe(0x20d)])[_0x7088fe(0x1c0)](_0x396500)[_0x7088fe(0x1f9)](_0x7088fe(0x1e0)+_0x1986d0[_0x7088fe(0x1e1)]+'\x20on\x20dataset\x20'+_0x3a7424)[_0x7088fe(0x1c3)]();}),_0x43d6dd;}export const dataDefinitions=specs[a16_0x2dafdc(0x1db)](makeDataCommand);
@@ -1 +1 @@
1
- const a17_0x146fac=a17_0x231b;(function(_0x4c8ff6,_0x28dbbe){const _0x1b3403=a17_0x231b,_0x1d1280=_0x4c8ff6();while(!![]){try{const _0x5d1d5d=parseInt(_0x1b3403(0x123))/0x1+parseInt(_0x1b3403(0x13c))/0x2*(parseInt(_0x1b3403(0x121))/0x3)+parseInt(_0x1b3403(0x140))/0x4+parseInt(_0x1b3403(0x15e))/0x5+parseInt(_0x1b3403(0x144))/0x6*(-parseInt(_0x1b3403(0x162))/0x7)+-parseInt(_0x1b3403(0x164))/0x8+-parseInt(_0x1b3403(0x142))/0x9;if(_0x5d1d5d===_0x28dbbe)break;else _0x1d1280['push'](_0x1d1280['shift']());}catch(_0x3dfb31){_0x1d1280['push'](_0x1d1280['shift']());}}}(a17_0x4327,0x6e03f));function a17_0x4327(){const _0xb7e54d=['dbName','dbId','requestFields','str','allFieldNames','parse','options','30BQWtza','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','filter','requestBody','3176124VovRJV','formatRules','11069154mbuMcU','doType','2780322IHqblY','toField','title','dbtableConfig','creatorIdField','dataType','extend','datasetKey','tableName','name','length','push','afterScriptId','logicField','displayName','validateRules','string','relations','entries','dbType','dataset','modelCode','pkField','fromField','required','beforeScriptId','3380860UrSHlB','allFields','read','source','7pdBUUL','operations','1749320hAtnFB','toDatasetCode','description','host','path','76497KbJgDq','sourceType','509893FQKZfl','indexes','isArray','responseBody','deleted','toFieldLabel','fields','trim','properties','modifierNameField','code','doVersion','creatorNameField','responseFields','dblinkInfoDTO','object','map','type'];a17_0x4327=function(){return _0xb7e54d;};return a17_0x4327();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x557f61){const _0x1a18f6=a17_0x231b;if(_0x557f61['deleted'])return null;const _0x1ff867=Boolean(_0x557f61[_0x1a18f6(0x152)]!==undefined||_0x557f61[_0x1a18f6(0x143)]!==undefined);let _0xe1e434={};if(!_0x1ff867&&typeof _0x557f61[_0x1a18f6(0x14a)]===_0x1a18f6(0x154))try{_0xe1e434=JSON['parse'](_0x557f61['extend']);}catch{}const _0x5ba7b4=_0x1ff867?_0x557f61['name']:_0x557f61[_0x1a18f6(0x12d)],_0x8982b4=_0x1ff867?_0x557f61[_0x1a18f6(0x152)]:_0x557f61['name'],_0x12af10=_0x1ff867?_0x557f61[_0x1a18f6(0x143)]:_0x557f61['type']||_0x557f61[_0x1a18f6(0x149)],_0x44e98c=_0x1ff867?_0x557f61[_0x1a18f6(0x15a)]===!![]:_0xe1e434[_0x1a18f6(0x15a)]===!![],_0x52cdb5=_0x1ff867?_0x557f61[_0x1a18f6(0x15c)]===!![]:_0xe1e434[_0x1a18f6(0x15c)]===!![],_0x9f1c86=_0x1ff867?_0x557f61[_0x1a18f6(0x13b)]??null:_0xe1e434[_0x1a18f6(0x13b)]??null,_0x269a14={'name':_0x5ba7b4,'displayName':_0x8982b4||_0x5ba7b4,'type':_0x12af10,'dbType':_0x557f61[_0x1a18f6(0x157)],'pk':_0x44e98c,'required':_0x52cdb5,'description':_0x557f61[_0x1a18f6(0x166)]||undefined};return Array['isArray'](_0x9f1c86)&&_0x9f1c86['length']>0x0&&(_0x269a14[_0x1a18f6(0x13b)]=_0x9f1c86),_0x269a14;}function parseJsonMaybe(_0x255048){const _0x5bc5e4=a17_0x231b;if(typeof _0x255048!==_0x5bc5e4(0x154))return _0x255048;try{return JSON[_0x5bc5e4(0x13a)](_0x255048);}catch{return _0x255048;}}function normalizeOperationEntry(_0x4a4da5,_0x27e900){const _0x550b4c=a17_0x231b;if(!_0x27e900||typeof _0x27e900!==_0x550b4c(0x132))return null;if(!_0x27e900['method']||!_0x27e900[_0x550b4c(0x120)])return null;const _0xe0481d={'name':_0x4a4da5,'method':_0x27e900['method'],'path':_0x27e900['path']};if(_0x27e900['host'])_0xe0481d[_0x550b4c(0x11f)]=_0x27e900[_0x550b4c(0x11f)];if(_0x27e900['requestBody']!=null)_0xe0481d['requestBody']=parseJsonMaybe(_0x27e900[_0x550b4c(0x13f)]);if(_0x27e900[_0x550b4c(0x126)]!=null)_0xe0481d['responseBody']=parseJsonMaybe(_0x27e900['responseBody']);if(_0x27e900[_0x550b4c(0x15d)]!=null)_0xe0481d[_0x550b4c(0x15d)]=_0x27e900['beforeScriptId'];if(_0x27e900[_0x550b4c(0x150)]!=null)_0xe0481d[_0x550b4c(0x150)]=_0x27e900['afterScriptId'];if(Array[_0x550b4c(0x125)](_0x27e900[_0x550b4c(0x137)]))_0xe0481d[_0x550b4c(0x137)]=_0x27e900[_0x550b4c(0x137)];if(Array[_0x550b4c(0x125)](_0x27e900[_0x550b4c(0x130)]))_0xe0481d[_0x550b4c(0x130)]=_0x27e900[_0x550b4c(0x130)];return _0xe0481d;}function summarizeDbtable(_0x5b0497){const _0x1b5576=a17_0x231b,_0x2384e3={},_0x27d3f6=[_0x1b5576(0x136),_0x1b5576(0x135),'tableName',_0x1b5576(0x14b),'pkField','allFields',_0x1b5576(0x151),'createTimeField','updateTimeField',_0x1b5576(0x148),_0x1b5576(0x12f),'modifierIdField',_0x1b5576(0x12c),'labelField',_0x1b5576(0x131)];for(const _0x180b92 of _0x27d3f6){if(_0x5b0497[_0x180b92]!==undefined)_0x2384e3[_0x180b92]=_0x5b0497[_0x180b92];}return typeof _0x2384e3['allFields']===_0x1b5576(0x154)&&_0x2384e3[_0x1b5576(0x15f)][_0x1b5576(0x14e)]>0x0&&(_0x2384e3[_0x1b5576(0x139)]=_0x2384e3['allFields']['split'](',')[_0x1b5576(0x133)](_0x349fd3=>_0x349fd3[_0x1b5576(0x12a)]())[_0x1b5576(0x13e)](Boolean)),_0x2384e3;}function normalizeRelatedPages(_0x5cf201){const _0x12b0e2=a17_0x231b;if(!Array[_0x12b0e2(0x125)](_0x5cf201))return[];return _0x5cf201[_0x12b0e2(0x13e)](_0x13eab7=>_0x13eab7&&typeof _0x13eab7==='object')[_0x12b0e2(0x133)](_0x22e407=>({'id':_0x22e407['id'],'type':_0x22e407[_0x12b0e2(0x134)],'code':_0x22e407[_0x12b0e2(0x12d)],'title':_0x22e407[_0x12b0e2(0x146)],'deleted':_0x22e407[_0x12b0e2(0x127)]===!![]}));}function a17_0x231b(_0xb25dae,_0x1539c7){_0xb25dae=_0xb25dae-0x11f;const _0x432769=a17_0x4327();let _0x231b02=_0x432769[_0xb25dae];return _0x231b02;}export const datasetDetail={'service':a17_0x146fac(0x158),'command':'detail','description':a17_0x146fac(0x13d),'risk':a17_0x146fac(0x160),'flags':[CODE_FLAG],async 'execute'(_0x4b6a66){const _0x3f1e0e=a17_0x146fac,_0x2fef4c=await getDatasetDetail(_0x4b6a66[_0x3f1e0e(0x138)](_0x3f1e0e(0x12d))),_0x2f8689=Array['isArray'](_0x2fef4c[_0x3f1e0e(0x129)])?_0x2fef4c['fields']:Array['isArray'](_0x2fef4c[_0x3f1e0e(0x12b)])?_0x2fef4c[_0x3f1e0e(0x12b)]:[],_0x1d4a85=_0x2f8689[_0x3f1e0e(0x133)](_0x4b12ae=>normalizeField(_0x4b12ae))['filter'](_0x1ebd57=>_0x1ebd57!==null),_0x18f16b=_0x2fef4c[_0x3f1e0e(0x163)]??{},_0x57c42f=[];for(const [_0x264344,_0x2e0e9b]of Object[_0x3f1e0e(0x156)](_0x18f16b)){const _0x42b0cf=normalizeOperationEntry(_0x264344,_0x2e0e9b);if(_0x42b0cf)_0x57c42f[_0x3f1e0e(0x14f)](_0x42b0cf);}const _0x880dc5=_0x2fef4c[_0x3f1e0e(0x147)]??{},_0x163ffb=_0x2fef4c['dataset']??{},_0x209f7e=_0x880dc5['dbId']!=null?{'id':_0x880dc5[_0x3f1e0e(0x136)],'name':_0x880dc5['dbName']??null}:undefined;let _0x95c4d9;return typeof _0x2fef4c[_0x3f1e0e(0x14a)]===_0x3f1e0e(0x154)&&(_0x95c4d9=parseJsonMaybe(_0x2fef4c['extend'])),{'ok':!![],'data':{'id':_0x2fef4c['modelId']??_0x2fef4c['id'],'name':_0x2fef4c[_0x3f1e0e(0x14d)],'code':_0x2fef4c[_0x3f1e0e(0x159)]||_0x2fef4c[_0x3f1e0e(0x12d)],'doVersion':_0x2fef4c[_0x3f1e0e(0x12e)],'description':_0x2fef4c['description']||_0x163ffb['tableComment']||undefined,'source':_0x2fef4c[_0x3f1e0e(0x161)]||_0x163ffb[_0x3f1e0e(0x122)],'table':_0x880dc5[_0x3f1e0e(0x14c)]||_0x163ffb[_0x3f1e0e(0x14c)],'datasetKey':_0x880dc5[_0x3f1e0e(0x14b)],'pk':_0x880dc5['pkField'],'db':_0x209f7e,'dbtable':summarizeDbtable(_0x880dc5),'fields':_0x1d4a85,'operations':_0x57c42f,'indexes':Array[_0x3f1e0e(0x125)](_0x163ffb['indexes'])?_0x163ffb[_0x3f1e0e(0x124)]:[],'relations':Array[_0x3f1e0e(0x125)](_0x2fef4c[_0x3f1e0e(0x155)])?_0x2fef4c[_0x3f1e0e(0x155)]['map'](_0x427a72=>({'fromField':_0x427a72[_0x3f1e0e(0x15b)],'toDataset':_0x427a72['toDatasetName'],'toCode':_0x427a72[_0x3f1e0e(0x165)],'toTable':_0x427a72['toTableName'],'toField':_0x427a72[_0x3f1e0e(0x145)],'labelField':_0x427a72[_0x3f1e0e(0x128)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x2fef4c['relatedPageInfoList']),...Array['isArray'](_0x2fef4c['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x2fef4c['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x3f1e0e(0x125)](_0x2fef4c['formatRules'])?_0x2fef4c[_0x3f1e0e(0x141)]:[],'validateRules':Array[_0x3f1e0e(0x125)](_0x2fef4c['validateRules'])?_0x2fef4c[_0x3f1e0e(0x153)]:[],..._0x95c4d9!==undefined?{'extend':_0x95c4d9}:{},'stats':{'fieldCount':_0x1d4a85['length'],'operationCount':_0x57c42f[_0x3f1e0e(0x14e)]}}};}};
1
+ const a17_0x4971d9=a17_0x48de;(function(_0xcd1545,_0x4360d1){const _0x588e89=a17_0x48de,_0x46341a=_0xcd1545();while(!![]){try{const _0x4979c7=-parseInt(_0x588e89(0xf8))/0x1+parseInt(_0x588e89(0xd7))/0x2*(parseInt(_0x588e89(0x101))/0x3)+parseInt(_0x588e89(0xd9))/0x4*(parseInt(_0x588e89(0xef))/0x5)+-parseInt(_0x588e89(0xde))/0x6*(-parseInt(_0x588e89(0xf0))/0x7)+parseInt(_0x588e89(0xe2))/0x8+-parseInt(_0x588e89(0x103))/0x9*(parseInt(_0x588e89(0x109))/0xa)+-parseInt(_0x588e89(0x11b))/0xb;if(_0x4979c7===_0x4360d1)break;else _0x46341a['push'](_0x46341a['shift']());}catch(_0xf9ee25){_0x46341a['push'](_0x46341a['shift']());}}}(a17_0x36fd,0x38080));function a17_0x36fd(){const _0x20e456=['dblinkInfoDTO','name','dbName','421500jpTGQz','requestBody','creatorIdField','doType','1619440SxUuBT','fromField','toTableName','detail','toDatasetCode','allFields','labelField','responseBody','required','tableComment','indexes','sourceType','allFieldNames','1244335MTroCB','7XAEhGF','toField','updateTimeField','str','host','createTimeField','properties','modelId','13567Teyeoj','entries','dbtableConfig','columnCodeListWithDeleted','requestFields','code','modelCode','tableName','pkField','15DBQvai','map','111501TInVUv','description','deleted','trim','relations','formatRules','350KFLsrj','string','modifierNameField','doVersion','dataset','method','dbId','extend','filter','operations','push','type','logicField','toFieldLabel','toDatasetName','parse','source','split','881276DhfVYy','responseFields','creatorNameField','path','isArray','options','relatedPageInfoList','object','afterScriptId','fields','validateRules','length','datasetKey','94102OZnviB','title','4QrLyKs','beforeScriptId'];a17_0x36fd=function(){return _0x20e456;};return a17_0x36fd();}import{getDatasetDetail}from'../../core/api-client.js';function a17_0x48de(_0x5c0237,_0xae3be1){_0x5c0237=_0x5c0237-0xd6;const _0x36fd93=a17_0x36fd();let _0x48de24=_0x36fd93[_0x5c0237];return _0x48de24;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x5e10cc){const _0x358b21=a17_0x48de;if(_0x5e10cc['deleted'])return null;const _0x1938e7=Boolean(_0x5e10cc['displayName']!==undefined||_0x5e10cc[_0x358b21(0xe1)]!==undefined);let _0x233b6d={};if(!_0x1938e7&&typeof _0x5e10cc[_0x358b21(0x110)]===_0x358b21(0x10a))try{_0x233b6d=JSON[_0x358b21(0x118)](_0x5e10cc[_0x358b21(0x110)]);}catch{}const _0x11f81a=_0x1938e7?_0x5e10cc['name']:_0x5e10cc['code'],_0x2ec006=_0x1938e7?_0x5e10cc['displayName']:_0x5e10cc['name'],_0x10eaaf=_0x1938e7?_0x5e10cc[_0x358b21(0xe1)]:_0x5e10cc[_0x358b21(0x114)]||_0x5e10cc['dataType'],_0x5f5d53=_0x1938e7?_0x5e10cc[_0x358b21(0x100)]===!![]:_0x233b6d[_0x358b21(0x100)]===!![],_0x3a51be=_0x1938e7?_0x5e10cc[_0x358b21(0xea)]===!![]:_0x233b6d['required']===!![],_0x4baf55=_0x1938e7?_0x5e10cc[_0x358b21(0x120)]??null:_0x233b6d['options']??null,_0x1512a3={'name':_0x11f81a,'displayName':_0x2ec006||_0x11f81a,'type':_0x10eaaf,'dbType':_0x5e10cc['dbType'],'pk':_0x5f5d53,'required':_0x3a51be,'description':_0x5e10cc[_0x358b21(0x104)]||undefined};return Array[_0x358b21(0x11f)](_0x4baf55)&&_0x4baf55[_0x358b21(0x126)]>0x0&&(_0x1512a3[_0x358b21(0x120)]=_0x4baf55),_0x1512a3;}function parseJsonMaybe(_0x4ef9a3){const _0x58e3f7=a17_0x48de;if(typeof _0x4ef9a3!==_0x58e3f7(0x10a))return _0x4ef9a3;try{return JSON[_0x58e3f7(0x118)](_0x4ef9a3);}catch{return _0x4ef9a3;}}function normalizeOperationEntry(_0x5814fd,_0x40e6d6){const _0xed86f0=a17_0x48de;if(!_0x40e6d6||typeof _0x40e6d6!==_0xed86f0(0x122))return null;if(!_0x40e6d6[_0xed86f0(0x10e)]||!_0x40e6d6[_0xed86f0(0x11e)])return null;const _0x285973={'name':_0x5814fd,'method':_0x40e6d6[_0xed86f0(0x10e)],'path':_0x40e6d6[_0xed86f0(0x11e)]};if(_0x40e6d6[_0xed86f0(0xf4)])_0x285973['host']=_0x40e6d6[_0xed86f0(0xf4)];if(_0x40e6d6['requestBody']!=null)_0x285973['requestBody']=parseJsonMaybe(_0x40e6d6[_0xed86f0(0xdf)]);if(_0x40e6d6[_0xed86f0(0xe9)]!=null)_0x285973[_0xed86f0(0xe9)]=parseJsonMaybe(_0x40e6d6['responseBody']);if(_0x40e6d6[_0xed86f0(0xda)]!=null)_0x285973[_0xed86f0(0xda)]=_0x40e6d6['beforeScriptId'];if(_0x40e6d6[_0xed86f0(0x123)]!=null)_0x285973['afterScriptId']=_0x40e6d6['afterScriptId'];if(Array[_0xed86f0(0x11f)](_0x40e6d6[_0xed86f0(0xfc)]))_0x285973[_0xed86f0(0xfc)]=_0x40e6d6[_0xed86f0(0xfc)];if(Array['isArray'](_0x40e6d6['responseFields']))_0x285973['responseFields']=_0x40e6d6[_0xed86f0(0x11c)];return _0x285973;}function summarizeDbtable(_0x3938dc){const _0x43bd8d=a17_0x48de,_0x1f0337={},_0x302261=[_0x43bd8d(0x10f),'dbName',_0x43bd8d(0xff),_0x43bd8d(0xd6),_0x43bd8d(0x100),_0x43bd8d(0xe7),_0x43bd8d(0x115),_0x43bd8d(0xf5),_0x43bd8d(0xf2),_0x43bd8d(0xe0),_0x43bd8d(0x11d),'modifierIdField',_0x43bd8d(0x10b),_0x43bd8d(0xe8),_0x43bd8d(0xdb)];for(const _0x82b55c of _0x302261){if(_0x3938dc[_0x82b55c]!==undefined)_0x1f0337[_0x82b55c]=_0x3938dc[_0x82b55c];}return typeof _0x1f0337[_0x43bd8d(0xe7)]==='string'&&_0x1f0337[_0x43bd8d(0xe7)][_0x43bd8d(0x126)]>0x0&&(_0x1f0337[_0x43bd8d(0xee)]=_0x1f0337[_0x43bd8d(0xe7)][_0x43bd8d(0x11a)](',')[_0x43bd8d(0x102)](_0x51d838=>_0x51d838[_0x43bd8d(0x106)]())['filter'](Boolean)),_0x1f0337;}function normalizeRelatedPages(_0x5bc84f){const _0x118c0b=a17_0x48de;if(!Array[_0x118c0b(0x11f)](_0x5bc84f))return[];return _0x5bc84f[_0x118c0b(0x111)](_0x357e4a=>_0x357e4a&&typeof _0x357e4a===_0x118c0b(0x122))[_0x118c0b(0x102)](_0x4f8c84=>({'id':_0x4f8c84['id'],'type':_0x4f8c84[_0x118c0b(0x114)],'code':_0x4f8c84[_0x118c0b(0xfd)],'title':_0x4f8c84[_0x118c0b(0xd8)],'deleted':_0x4f8c84[_0x118c0b(0x105)]===!![]}));}export const datasetDetail={'service':'dataset','command':a17_0x4971d9(0xe5),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x4598df){const _0x19fabd=a17_0x4971d9,_0x487d46=await getDatasetDetail(_0x4598df[_0x19fabd(0xf3)](_0x19fabd(0xfd))),_0x4f5978=Array['isArray'](_0x487d46[_0x19fabd(0x124)])?_0x487d46[_0x19fabd(0x124)]:Array[_0x19fabd(0x11f)](_0x487d46[_0x19fabd(0xf6)])?_0x487d46[_0x19fabd(0xf6)]:[],_0x209537=_0x4f5978[_0x19fabd(0x102)](_0x3accf4=>normalizeField(_0x3accf4))['filter'](_0x42eedb=>_0x42eedb!==null),_0x475ce3=_0x487d46[_0x19fabd(0x112)]??{},_0x408bbc=[];for(const [_0x494a4d,_0x165526]of Object[_0x19fabd(0xf9)](_0x475ce3)){const _0x3ab306=normalizeOperationEntry(_0x494a4d,_0x165526);if(_0x3ab306)_0x408bbc[_0x19fabd(0x113)](_0x3ab306);}const _0x57e66c=_0x487d46[_0x19fabd(0xfa)]??{},_0x560b05=_0x487d46[_0x19fabd(0x10d)]??{},_0x27ac5e=_0x57e66c['dbId']!=null?{'id':_0x57e66c['dbId'],'name':_0x57e66c[_0x19fabd(0xdd)]??null}:undefined;let _0x2311e0;return typeof _0x487d46[_0x19fabd(0x110)]==='string'&&(_0x2311e0=parseJsonMaybe(_0x487d46['extend'])),{'ok':!![],'data':{'id':_0x487d46[_0x19fabd(0xf7)]??_0x487d46['id'],'name':_0x487d46[_0x19fabd(0xdc)],'code':_0x487d46[_0x19fabd(0xfe)]||_0x487d46['code'],'doVersion':_0x487d46[_0x19fabd(0x10c)],'description':_0x487d46[_0x19fabd(0x104)]||_0x560b05[_0x19fabd(0xeb)]||undefined,'source':_0x487d46[_0x19fabd(0x119)]||_0x560b05[_0x19fabd(0xed)],'table':_0x57e66c['tableName']||_0x560b05[_0x19fabd(0xff)],'datasetKey':_0x57e66c['datasetKey'],'pk':_0x57e66c[_0x19fabd(0x100)],'db':_0x27ac5e,'dbtable':summarizeDbtable(_0x57e66c),'fields':_0x209537,'operations':_0x408bbc,'indexes':Array[_0x19fabd(0x11f)](_0x560b05[_0x19fabd(0xec)])?_0x560b05[_0x19fabd(0xec)]:[],'relations':Array[_0x19fabd(0x11f)](_0x487d46[_0x19fabd(0x107)])?_0x487d46['relations']['map'](_0x517fdb=>({'fromField':_0x517fdb[_0x19fabd(0xe3)],'toDataset':_0x517fdb[_0x19fabd(0x117)],'toCode':_0x517fdb[_0x19fabd(0xe6)],'toTable':_0x517fdb[_0x19fabd(0xe4)],'toField':_0x517fdb[_0x19fabd(0xf1)],'labelField':_0x517fdb[_0x19fabd(0x116)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x487d46[_0x19fabd(0x121)]),...Array[_0x19fabd(0x11f)](_0x487d46['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x487d46[_0x19fabd(0xfb)]}:{},'formatRules':Array['isArray'](_0x487d46['formatRules'])?_0x487d46[_0x19fabd(0x108)]:[],'validateRules':Array[_0x19fabd(0x11f)](_0x487d46[_0x19fabd(0x125)])?_0x487d46[_0x19fabd(0x125)]:[],..._0x2311e0!==undefined?{'extend':_0x2311e0}:{},'stats':{'fieldCount':_0x209537['length'],'operationCount':_0x408bbc[_0x19fabd(0x126)]}}};}};
@@ -1 +1 @@
1
- (function(_0x4d7c37,_0xc857b1){const _0x13e442=a18_0x29ff,_0x3f3456=_0x4d7c37();while(!![]){try{const _0x1fe35a=parseInt(_0x13e442(0xe9))/0x1+parseInt(_0x13e442(0xeb))/0x2*(parseInt(_0x13e442(0xe7))/0x3)+parseInt(_0x13e442(0xe6))/0x4*(-parseInt(_0x13e442(0xe3))/0x5)+parseInt(_0x13e442(0xe8))/0x6+parseInt(_0x13e442(0xe2))/0x7*(-parseInt(_0x13e442(0xea))/0x8)+parseInt(_0x13e442(0xe5))/0x9+parseInt(_0x13e442(0xec))/0xa*(-parseInt(_0x13e442(0xe4))/0xb);if(_0x1fe35a===_0xc857b1)break;else _0x3f3456['push'](_0x3f3456['shift']());}catch(_0xac23ee){_0x3f3456['push'](_0x3f3456['shift']());}}}(a18_0x7989,0x1f1d6));import{datasetList}from'../../commands/dataset/list.js';function a18_0x29ff(_0x479a0c,_0x263317){_0x479a0c=_0x479a0c-0xe2;const _0x798949=a18_0x7989();let _0x29ff1c=_0x798949[_0x479a0c];return _0x29ff1c;}function a18_0x7989(){const _0x1e9099=['2YCbtzI','10WLTYbd','398433TwVTMi','8285btPhkv','3857348PcJJiP','1357920ebCfcm','348wIwNZM','651366UJEaLI','1135386uwcjxB','121959IrbvTV','8yqkLoR'];a18_0x7989=function(){return _0x1e9099;};return a18_0x7989();}import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];
1
+ function a18_0x2bd4(_0x1a5eb6,_0x181e9b){_0x1a5eb6=_0x1a5eb6-0x74;const _0x8240d6=a18_0x8240();let _0x2bd4b1=_0x8240d6[_0x1a5eb6];return _0x2bd4b1;}(function(_0x459e4c,_0x33c65b){const _0x52581d=a18_0x2bd4,_0x35ce4f=_0x459e4c();while(!![]){try{const _0x3d76e5=parseInt(_0x52581d(0x7f))/0x1*(parseInt(_0x52581d(0x77))/0x2)+parseInt(_0x52581d(0x7d))/0x3*(parseInt(_0x52581d(0x7a))/0x4)+parseInt(_0x52581d(0x7b))/0x5*(parseInt(_0x52581d(0x76))/0x6)+parseInt(_0x52581d(0x79))/0x7+parseInt(_0x52581d(0x7c))/0x8*(parseInt(_0x52581d(0x74))/0x9)+parseInt(_0x52581d(0x7e))/0xa+parseInt(_0x52581d(0x75))/0xb*(-parseInt(_0x52581d(0x78))/0xc);if(_0x3d76e5===_0x33c65b)break;else _0x35ce4f['push'](_0x35ce4f['shift']());}catch(_0x5c6a43){_0x35ce4f['push'](_0x35ce4f['shift']());}}}(a18_0x8240,0x31f97));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];function a18_0x8240(){const _0x3732c2=['605526XFiCFR','296558CpyVvk','2178840zWMfRn','2645643draiUI','44easQOl','5AYBhMa','1048cyhrTu','81558jxnjLt','3475050xwSciD','2InzhHG','16164qjtuEn','88mpRxvp'];a18_0x8240=function(){return _0x3732c2;};return a18_0x8240();}
@@ -1 +1 @@
1
- const a19_0x3ec3fa=a19_0x4544;(function(_0x3ae59b,_0x34c700){const _0x336298=a19_0x4544,_0x48e149=_0x3ae59b();while(!![]){try{const _0x5e3c48=parseInt(_0x336298(0x14d))/0x1*(parseInt(_0x336298(0x15d))/0x2)+parseInt(_0x336298(0x158))/0x3+parseInt(_0x336298(0x159))/0x4*(parseInt(_0x336298(0x15c))/0x5)+-parseInt(_0x336298(0x15a))/0x6+parseInt(_0x336298(0x15f))/0x7*(-parseInt(_0x336298(0x151))/0x8)+parseInt(_0x336298(0x14c))/0x9*(-parseInt(_0x336298(0x14a))/0xa)+parseInt(_0x336298(0x146))/0xb*(parseInt(_0x336298(0x14b))/0xc);if(_0x5e3c48===_0x34c700)break;else _0x48e149['push'](_0x48e149['shift']());}catch(_0x527c45){_0x48e149['push'](_0x48e149['shift']());}}}(a19_0x5629,0x1aba7));import{listDatasets}from'../../core/api-client.js';function a19_0x4544(_0x357f0d,_0x506b1f){_0x357f0d=_0x357f0d-0x144;const _0x562992=a19_0x5629();let _0x4544e8=_0x562992[_0x357f0d];return _0x4544e8;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x3ec3fa(0x155),'command':'list','description':a19_0x3ec3fa(0x148),'risk':a19_0x3ec3fa(0x15b),'flags':[{'name':a19_0x3ec3fa(0x157),'type':a19_0x3ec3fa(0x14e),'description':a19_0x3ec3fa(0x147)},{...CODE_FLAG,'required':![],'description':a19_0x3ec3fa(0x149)}],async 'execute'(_0x37beeb){const _0x59d7de=a19_0x3ec3fa,_0xa267f3=_0x37beeb['str'](_0x59d7de(0x157)),_0xa99591=_0x37beeb[_0x59d7de(0x150)](_0x59d7de(0x154)),_0x5824fd=await listDatasets(_0x37beeb[_0x59d7de(0x15e)],{..._0xa267f3&&{'name':_0xa267f3},..._0xa99591&&{'code':_0xa99591}});return{'ok':!![],'data':{'total':_0x5824fd['length'],'datasets':_0x5824fd[_0x59d7de(0x152)](_0x2c8287=>{const _0x206991=_0x59d7de,_0x375fab=_0x2c8287[_0x206991(0x14f)]??{};return{'id':_0x2c8287['id'],'code':_0x2c8287['code'],'name':_0x2c8287[_0x206991(0x157)],'source':_0x2c8287[_0x206991(0x156)],'description':_0x2c8287['description'],'table':_0x375fab['tableName'],'datasetKey':_0x375fab[_0x206991(0x153)],'pk':_0x375fab[_0x206991(0x160)],'fields':_0x375fab[_0x206991(0x144)]?_0x375fab[_0x206991(0x144)]['split'](',')[_0x206991(0x152)](_0x454662=>_0x454662[_0x206991(0x145)]()):[]};})}};}};function a19_0x5629(){const _0x25ae2f=['157428mDoyya','284BpBGMg','1225572EFwSsV','read','12260dxxqqI','172990wyMUCO','appCode','1165374QlLcUd','pkField','allFields','trim','144353bJHemE','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','10KXlwla','276AjSlJx','1212021mnvVvq','1XiaPWY','string','dbtableConfig','str','8jbiAbB','map','datasetKey','code','dataset','source','name'];a19_0x5629=function(){return _0x25ae2f;};return a19_0x5629();}
1
+ function a19_0x2641(_0x9d7929,_0xd1c005){_0x9d7929=_0x9d7929-0x1d3;const _0x4c8f1b=a19_0x4c8f();let _0x2641ec=_0x4c8f1b[_0x9d7929];return _0x2641ec;}function a19_0x4c8f(){const _0x59de24=['description','name','10270DtrJlb','split','147ETlXvR','trim','1684XhpYYq','17625710tEucCN','datasetKey','code','length','map','list','pkField','11FSWNze','str','allFields','588485NUdUgV','3723672YvBdqz','tableName','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','appCode','27Cyulky','101634hEIjmU','89854radesd','6392727ZHxWtb','dataset'];a19_0x4c8f=function(){return _0x59de24;};return a19_0x4c8f();}const a19_0x2ab8b7=a19_0x2641;(function(_0x4913da,_0x2e5bb5){const _0x1288d1=a19_0x2641,_0x1468f0=_0x4913da();while(!![]){try{const _0x48d08b=parseInt(_0x1288d1(0x1d9))/0x1+parseInt(_0x1288d1(0x1e0))/0x2*(-parseInt(_0x1288d1(0x1de))/0x3)+-parseInt(_0x1288d1(0x1e9))/0x4*(parseInt(_0x1288d1(0x1e5))/0x5)+parseInt(_0x1288d1(0x1df))/0x6*(-parseInt(_0x1288d1(0x1e7))/0x7)+parseInt(_0x1288d1(0x1da))/0x8+-parseInt(_0x1288d1(0x1e1))/0x9+-parseInt(_0x1288d1(0x1ea))/0xa*(-parseInt(_0x1288d1(0x1d6))/0xb);if(_0x48d08b===_0x2e5bb5)break;else _0x1468f0['push'](_0x1468f0['shift']());}catch(_0x18798c){_0x1468f0['push'](_0x1468f0['shift']());}}}(a19_0x4c8f,0x75888));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x2ab8b7(0x1e2),'command':a19_0x2ab8b7(0x1d4),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':'name','type':'string','description':a19_0x2ab8b7(0x1dc)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x58f560){const _0x57367a=a19_0x2ab8b7,_0x1daa35=_0x58f560['str'](_0x57367a(0x1e4)),_0x3966d9=_0x58f560[_0x57367a(0x1d7)]('code'),_0x1640ca=await listDatasets(_0x58f560[_0x57367a(0x1dd)],{..._0x1daa35&&{'name':_0x1daa35},..._0x3966d9&&{'code':_0x3966d9}});return{'ok':!![],'data':{'total':_0x1640ca[_0x57367a(0x1ed)],'datasets':_0x1640ca[_0x57367a(0x1d3)](_0x594c42=>{const _0x560cf5=_0x57367a,_0x15ebff=_0x594c42['dbtableConfig']??{};return{'id':_0x594c42['id'],'code':_0x594c42[_0x560cf5(0x1ec)],'name':_0x594c42[_0x560cf5(0x1e4)],'source':_0x594c42['source'],'description':_0x594c42[_0x560cf5(0x1e3)],'table':_0x15ebff[_0x560cf5(0x1db)],'datasetKey':_0x15ebff[_0x560cf5(0x1eb)],'pk':_0x15ebff[_0x560cf5(0x1d5)],'fields':_0x15ebff[_0x560cf5(0x1d8)]?_0x15ebff[_0x560cf5(0x1d8)][_0x560cf5(0x1e6)](',')[_0x560cf5(0x1d3)](_0x2a0779=>_0x2a0779[_0x560cf5(0x1e8)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a20_0x2d0fa5=a20_0x4dbe;(function(_0x2350c0,_0x42d972){const _0x4c420b=a20_0x4dbe,_0x5145ce=_0x2350c0();while(!![]){try{const _0x1a7b5f=-parseInt(_0x4c420b(0xc1))/0x1+-parseInt(_0x4c420b(0xda))/0x2*(parseInt(_0x4c420b(0xce))/0x3)+parseInt(_0x4c420b(0xd9))/0x4*(-parseInt(_0x4c420b(0xfb))/0x5)+-parseInt(_0x4c420b(0xc9))/0x6+-parseInt(_0x4c420b(0xd3))/0x7*(parseInt(_0x4c420b(0xc7))/0x8)+-parseInt(_0x4c420b(0xe7))/0x9+parseInt(_0x4c420b(0xe8))/0xa*(parseInt(_0x4c420b(0xe5))/0xb);if(_0x1a7b5f===_0x42d972)break;else _0x5145ce['push'](_0x5145ce['shift']());}catch(_0x45cffd){_0x5145ce['push'](_0x5145ce['shift']());}}}(a20_0x26b5,0xe761d));import a20_0x186f70 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';function a20_0x4dbe(_0x22bedb,_0x4c66af){_0x22bedb=_0x22bedb-0xc1;const _0x26b5a5=a20_0x26b5();let _0x4dbe6f=_0x26b5a5[_0x22bedb];return _0x4dbe6f;}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(_0x3c18e5){const _0x31f04e=a20_0x4dbe,_0x1429f8=getCliVersion(),_0x51307c=buildConfigFromFlags({});await initGlobalEnvironment(_0x51307c),console[_0x31f04e(0xfc)](),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd5)](CLI_BIN_NAME+_0x31f04e(0xf3))),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd0)]('─'[_0x31f04e(0xe0)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x1429f8),console[_0x31f04e(0xfc)](_0x31f04e(0xcf)+process[_0x31f04e(0xed)]),console[_0x31f04e(0xfc)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x31f04e(0xd2)]+'\x20'+process[_0x31f04e(0xcd)]),console[_0x31f04e(0xfc)](),console['log'](a20_0x186f70['bold']('\x20\x20Config\x20Files')),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xf6)[_0x31f04e(0xe0)](0x1e)));const _0x936116=getGlobalConfigPath(),_0x1ccd82=getProjectConfigPath();console[_0x31f04e(0xfc)](_0x31f04e(0xf5)+(_0x936116||a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xca)))),console[_0x31f04e(0xfc)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1ccd82||a20_0x186f70['gray'](_0x31f04e(0xca)))),console[_0x31f04e(0xfc)](),console['log'](a20_0x186f70[_0x31f04e(0xd5)](_0x31f04e(0x105))),console[_0x31f04e(0xfc)](a20_0x186f70['gray'](_0x31f04e(0xf6)[_0x31f04e(0xe0)](0x1e)));const _0x2eb159=(_0x5791ee,_0xf1461f)=>{const _0x11bc7e=_0x31f04e;if(!_0xf1461f){console[_0x11bc7e(0xfc)]('\x20\x20'+_0x5791ee[_0x11bc7e(0xd7)](0x11)+'\x20'+a20_0x186f70[_0x11bc7e(0xd0)]('(no\x20file)'));return;}const _0x1c9df4=inspectCliConfigJsonFile(_0xf1461f);if(_0x1c9df4['status']==='ok')console[_0x11bc7e(0xfc)]('\x20\x20'+_0x5791ee['padEnd'](0x11)+'\x20'+a20_0x186f70[_0x11bc7e(0xdf)](_0x11bc7e(0xfe)));else{if(_0x1c9df4[_0x11bc7e(0x100)]===_0x11bc7e(0xcc))console[_0x11bc7e(0xfc)]('\x20\x20'+_0x5791ee[_0x11bc7e(0xd7)](0x11)+'\x20'+a20_0x186f70[_0x11bc7e(0xf1)](_0x11bc7e(0xee)));else _0x1c9df4[_0x11bc7e(0x100)]==='missing'?console['log']('\x20\x20'+_0x5791ee[_0x11bc7e(0xd7)](0x11)+'\x20'+a20_0x186f70['gray'](_0x11bc7e(0xfa))):(console[_0x11bc7e(0xfc)]('\x20\x20'+_0x5791ee[_0x11bc7e(0xd7)](0x11)+'\x20'+a20_0x186f70[_0x11bc7e(0xdb)](_0x11bc7e(0xe2))),console['log']('\x20\x20'+''[_0x11bc7e(0xd7)](0x11)+'\x20'+a20_0x186f70[_0x11bc7e(0xdb)](_0x1c9df4[_0x11bc7e(0xfd)])));}};_0x2eb159(_0x31f04e(0xc2),_0x936116),_0x2eb159('Project',_0x1ccd82),console[_0x31f04e(0xfc)](),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd5)](_0x31f04e(0xf0))),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xf6)[_0x31f04e(0xe0)](0x1e))),console[_0x31f04e(0xfc)](_0x31f04e(0xc6)+(_0x51307c[_0x31f04e(0xec)]||a20_0x186f70[_0x31f04e(0xdb)](_0x31f04e(0xe1)))),console[_0x31f04e(0xfc)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x51307c[_0x31f04e(0xf9)]);const _0xc8ab84=isLegacyCompatConfigKey(_0x31f04e(0xc3))?a20_0x186f70[_0x31f04e(0xd0)](_0x51307c[_0x31f04e(0xc3)]+_0x31f04e(0xd6)):_0x51307c[_0x31f04e(0xc3)];return console['log'](_0x31f04e(0xde)+_0xc8ab84),console[_0x31f04e(0xfc)](_0x31f04e(0xd8)+(_0x51307c[_0x31f04e(0xdc)]||a20_0x186f70[_0x31f04e(0xd0)]('(none)'))),console[_0x31f04e(0xfc)](_0x31f04e(0x107)+(_0x51307c[_0x31f04e(0xff)]||a20_0x186f70[_0x31f04e(0xd0)]('(none)'))),console[_0x31f04e(0xfc)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x51307c[_0x31f04e(0x101)]||a20_0x186f70['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x31f04e(0xf7)+(_0x51307c[_0x31f04e(0xd1)]??a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xcb)))),console['log'](_0x31f04e(0x102)+_0x51307c[_0x31f04e(0xeb)]),console[_0x31f04e(0xfc)](_0x31f04e(0xdd)+_0x51307c[_0x31f04e(0xe6)]),console[_0x31f04e(0xfc)](_0x31f04e(0x106)+AUTH_MODE[_0x31f04e(0xe9)]),console[_0x31f04e(0xfc)](_0x31f04e(0xf2)+(_0x51307c['accessKey']?a20_0x186f70[_0x31f04e(0xdf)](_0x31f04e(0xc5)+_0x51307c[_0x31f04e(0xea)]['length']+')'):a20_0x186f70[_0x31f04e(0xd0)]('(none)'))),console[_0x31f04e(0xfc)](),console[_0x31f04e(0xfc)](a20_0x186f70['bold'](_0x31f04e(0xef))),console['log'](a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xf6)[_0x31f04e(0xe0)](0x1e))),console[_0x31f04e(0xfc)](_0x31f04e(0xe4)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x31f04e(0xfc)](_0x31f04e(0xf4)+getRuntimeDomain()),console[_0x31f04e(0xfc)](),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd5)](_0x31f04e(0xf8))),console[_0x31f04e(0xfc)](a20_0x186f70[_0x31f04e(0xd0)](_0x31f04e(0xf6)['repeat'](0x1e))),console[_0x31f04e(0xfc)](_0x31f04e(0x103)+a20_0x186f70['green'](AUTH_MODE['ClientAk']+_0x31f04e(0xc4))),console[_0x31f04e(0xfc)](_0x31f04e(0xd4)+a20_0x186f70['gray']('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function a20_0x26b5(){const _0x5c9726=['\x20\x20auth\x20(effective):\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','1877577scVdKX','Global','locale','\x20(accessKey)','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','24ypEtnx','read','8946384NLtDPl','(not\x20found)','(default)','empty','arch','3zxKelo','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','pageSize','platform','2772602wUvDrj','\x20\x20Session\x20check:\x20\x20\x20','bold','\x20(legacy/compat\x20only)','padEnd','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','28IpELBp','1927482NEtmeu','red','defaultApp','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','repeat','(not\x20set)','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','4924447jPGJeb','verbose','14550723RjTXOl','190HOwMpR','ClientAk','accessKey','riskLevel','appCode','version','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20API\x20Endpoints','\x20\x20Merged\x20Config','yellow','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','env','(missing)','300525kPrqPf','log','message','✓\x20Valid\x20JSON','currentApp','status','format','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20Config\x20JSON'];a20_0x26b5=function(){return _0x5c9726;};return a20_0x26b5();}export const doctorDefinition={'service':a20_0x2d0fa5(0x104),'command':'check','description':a20_0x2d0fa5(0xe3),'risk':a20_0x2d0fa5(0xc8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a20_0x554051=a20_0x3a1f;(function(_0x45ee13,_0x148a40){const _0x5dfbf8=a20_0x3a1f,_0x211210=_0x45ee13();while(!![]){try{const _0x2366fc=parseInt(_0x5dfbf8(0xe8))/0x1+-parseInt(_0x5dfbf8(0xe5))/0x2*(-parseInt(_0x5dfbf8(0xf6))/0x3)+parseInt(_0x5dfbf8(0xf9))/0x4+-parseInt(_0x5dfbf8(0x112))/0x5*(-parseInt(_0x5dfbf8(0xff))/0x6)+parseInt(_0x5dfbf8(0x10a))/0x7*(-parseInt(_0x5dfbf8(0xda))/0x8)+-parseInt(_0x5dfbf8(0xdb))/0x9*(parseInt(_0x5dfbf8(0x110))/0xa)+parseInt(_0x5dfbf8(0xfc))/0xb*(-parseInt(_0x5dfbf8(0x116))/0xc);if(_0x2366fc===_0x148a40)break;else _0x211210['push'](_0x211210['shift']());}catch(_0x18d09a){_0x211210['push'](_0x211210['shift']());}}}(a20_0x57f6,0x410d3));import a20_0xb8ffa7 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';function a20_0x3a1f(_0x29fd75,_0xae193f){_0x29fd75=_0x29fd75-0xd1;const _0x57f6de=a20_0x57f6();let _0x3a1f6b=_0x57f6de[_0x29fd75];return _0x3a1f6b;}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';async function execute(_0x3056bb){const _0x3ed069=a20_0x3a1f,_0x3ab836=getCliVersion(),_0x81693=buildConfigFromFlags({});await initGlobalEnvironment(_0x81693),console[_0x3ed069(0xe0)](),console[_0x3ed069(0xe0)](a20_0xb8ffa7['bold'](CLI_BIN_NAME+_0x3ed069(0xf3))),console['log'](a20_0xb8ffa7['gray']('─'[_0x3ed069(0x103)](0x32))),console[_0x3ed069(0xe0)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3ab836),console[_0x3ed069(0xe0)](_0x3ed069(0x111)+process['version']),console['log'](_0x3ed069(0x107)+process[_0x3ed069(0x108)]+'\x20'+process['arch']),console['log'](),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0x10e)](_0x3ed069(0x105))),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0xe9)]('\x20\x20─'[_0x3ed069(0x103)](0x1e)));const _0x56ac33=getGlobalConfigPath(),_0x12ac31=getProjectConfigPath();console[_0x3ed069(0xe0)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56ac33||a20_0xb8ffa7['gray'](_0x3ed069(0xef)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x12ac31||a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xef)))),console[_0x3ed069(0xe0)](),console['log'](a20_0xb8ffa7[_0x3ed069(0x10e)](_0x3ed069(0xdf))),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xf1)[_0x3ed069(0x103)](0x1e)));const _0x146332=(_0x1ccf0e,_0x3069f2)=>{const _0x32154b=_0x3ed069;if(!_0x3069f2){console[_0x32154b(0xe0)]('\x20\x20'+_0x1ccf0e[_0x32154b(0xf4)](0x11)+'\x20'+a20_0xb8ffa7[_0x32154b(0xe9)](_0x32154b(0xfb)));return;}const _0x3f19ec=inspectCliConfigJsonFile(_0x3069f2);if(_0x3f19ec[_0x32154b(0x10d)]==='ok')console[_0x32154b(0xe0)]('\x20\x20'+_0x1ccf0e[_0x32154b(0xf4)](0x11)+'\x20'+a20_0xb8ffa7[_0x32154b(0xf2)](_0x32154b(0xd1)));else{if(_0x3f19ec['status']===_0x32154b(0x10b))console[_0x32154b(0xe0)]('\x20\x20'+_0x1ccf0e[_0x32154b(0xf4)](0x11)+'\x20'+a20_0xb8ffa7['yellow'](_0x32154b(0xe6)));else _0x3f19ec[_0x32154b(0x10d)]===_0x32154b(0xd7)?console[_0x32154b(0xe0)]('\x20\x20'+_0x1ccf0e[_0x32154b(0xf4)](0x11)+'\x20'+a20_0xb8ffa7[_0x32154b(0xe9)](_0x32154b(0xf5))):(console[_0x32154b(0xe0)]('\x20\x20'+_0x1ccf0e['padEnd'](0x11)+'\x20'+a20_0xb8ffa7[_0x32154b(0xd9)](_0x32154b(0xe2))),console[_0x32154b(0xe0)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a20_0xb8ffa7['red'](_0x3f19ec['message'])));}};_0x146332(_0x3ed069(0xec),_0x56ac33),_0x146332(_0x3ed069(0x114),_0x12ac31),console[_0x3ed069(0xe0)](),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0x10e)](_0x3ed069(0xe4))),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0xe9)]('\x20\x20─'[_0x3ed069(0x103)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x81693[_0x3ed069(0xd5)]||a20_0xb8ffa7[_0x3ed069(0xd9)](_0x3ed069(0xe7)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x81693[_0x3ed069(0xd2)]);const _0x3bbbb9=isLegacyCompatConfigKey(_0x3ed069(0x10c))?a20_0xb8ffa7['gray'](_0x81693[_0x3ed069(0x10c)]+_0x3ed069(0xe3)):_0x81693['locale'];return console[_0x3ed069(0xe0)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3bbbb9),console['log'](_0x3ed069(0xf7)+(_0x81693[_0x3ed069(0xd6)]||a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xee)))),console[_0x3ed069(0xe0)](_0x3ed069(0xf8)+(_0x81693['currentApp']||a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xee)))),console[_0x3ed069(0xe0)](_0x3ed069(0x106)+(_0x81693[_0x3ed069(0xdc)]||a20_0xb8ffa7['gray'](_0x3ed069(0x109)+DEFAULT_CONFIG_VALUES[_0x3ed069(0xdc)]+')'))),console[_0x3ed069(0xe0)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x81693[_0x3ed069(0x102)]??a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0x101)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x81693[_0x3ed069(0xea)]),console[_0x3ed069(0xe0)](_0x3ed069(0xed)+_0x81693[_0x3ed069(0xd8)]),console[_0x3ed069(0xe0)](_0x3ed069(0xde)+AUTH_MODE[_0x3ed069(0xd4)]),console[_0x3ed069(0xe0)](_0x3ed069(0x104)+(_0x81693[_0x3ed069(0xfd)]?a20_0xb8ffa7['green'](_0x3ed069(0x10f)+_0x81693[_0x3ed069(0xfd)]['length']+')'):a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xee)))),console[_0x3ed069(0xe0)](),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0x10e)](_0x3ed069(0x100))),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0xe9)]('\x20\x20─'[_0x3ed069(0x103)](0x1e))),console[_0x3ed069(0xe0)](_0x3ed069(0xd3)+getApiDomain()),console[_0x3ed069(0xe0)](_0x3ed069(0x115)+getUserDomain()),console[_0x3ed069(0xe0)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3ed069(0xe0)](),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0x10e)]('\x20\x20Auth')),console[_0x3ed069(0xe0)](a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xf1)['repeat'](0x1e))),console[_0x3ed069(0xe0)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a20_0xb8ffa7[_0x3ed069(0xf2)](AUTH_MODE[_0x3ed069(0xd4)]+_0x3ed069(0xfa))),console[_0x3ed069(0xe0)](_0x3ed069(0xf0)+a20_0xb8ffa7[_0x3ed069(0xe9)](_0x3ed069(0xdd))),console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a20_0x554051(0xfe),'command':a20_0x554051(0xeb),'description':a20_0x554051(0x113),'risk':a20_0x554051(0xe1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a20_0x57f6(){const _0x5a041c=['(not\x20found)','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20','green','\x20doctor','padEnd','(missing)','7326GWgpZd','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','104724ECsZec','\x20(accessKey)','(no\x20file)','16434aIliqu','accessKey','doctor','590778ygbmWs','\x20\x20API\x20Endpoints','(default)','pageSize','repeat','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','platform','(default:\x20','1443967YYDEoF','empty','locale','status','bold','(set,\x20length=','190RbSFNH','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','25HePrvz','Diagnose\x20CLI\x20configuration\x20and\x20environment','Project','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3612llJqMZ','✓\x20Valid\x20JSON','env','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','ClientAk','appCode','defaultApp','missing','verbose','red','8kFnEaF','172341qxtgCz','format','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20auth\x20(effective):\x20','\x20\x20Config\x20JSON','log','read','✗\x20Invalid\x20JSON','\x20(legacy/compat\x20only)','\x20\x20Merged\x20Config','298LgvGxg','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20set)','403903tHdMcD','gray','riskLevel','check','Global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)'];a20_0x57f6=function(){return _0x5a041c;};return a20_0x57f6();}
@@ -1 +1 @@
1
- const a21_0x74e9e5=a21_0x84ec;(function(_0x553635,_0x1b84c9){const _0x5b0892=a21_0x84ec,_0x1a0341=_0x553635();while(!![]){try{const _0x57328c=parseInt(_0x5b0892(0x1be))/0x1*(-parseInt(_0x5b0892(0x1b5))/0x2)+-parseInt(_0x5b0892(0x1b6))/0x3+parseInt(_0x5b0892(0x1ac))/0x4+-parseInt(_0x5b0892(0x197))/0x5*(-parseInt(_0x5b0892(0x1a9))/0x6)+parseInt(_0x5b0892(0x1bf))/0x7*(parseInt(_0x5b0892(0x1c2))/0x8)+-parseInt(_0x5b0892(0x193))/0x9+parseInt(_0x5b0892(0x1b8))/0xa;if(_0x57328c===_0x1b84c9)break;else _0x1a0341['push'](_0x1a0341['shift']());}catch(_0x1e95d9){_0x1a0341['push'](_0x1a0341['shift']());}}}(a21_0x4b4c,0xe5a97));import{existsSync,readFileSync}from'node:fs';function a21_0x84ec(_0x59ed4a,_0x27efff){_0x59ed4a=_0x59ed4a-0x193;const _0x4b4ce9=a21_0x4b4c();let _0x84ecb9=_0x4b4ce9[_0x59ed4a];return _0x84ecb9;}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_0x74e9e5(0x1a8),'type':a21_0x74e9e5(0x1c8),'description':a21_0x74e9e5(0x1a2)},{'name':'env','type':a21_0x74e9e5(0x1c8),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a21_0x74e9e5(0x19b)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x74e9e5(0x1d0),'type':'boolean','description':a21_0x74e9e5(0x194),'default':![]},{'name':'yes','type':a21_0x74e9e5(0x1a5),'description':a21_0x74e9e5(0x1b2),'default':![]}];export const initImportFlagDefs=[{'name':a21_0x74e9e5(0x1d1),'type':'string','description':a21_0x74e9e5(0x1c9),'required':!![]},{'name':a21_0x74e9e5(0x1a8),'type':a21_0x74e9e5(0x1c8),'description':a21_0x74e9e5(0x1a3)},{'name':a21_0x74e9e5(0x19b),'type':a21_0x74e9e5(0x1c8),'description':a21_0x74e9e5(0x1d3),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x74e9e5(0x1d0),'type':a21_0x74e9e5(0x1a5),'description':a21_0x74e9e5(0x194),'default':![]},{'name':a21_0x74e9e5(0x1b1),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x4bbc3d){const _0xee3503=a21_0x74e9e5,_0x146268=isNonInteractiveMode(_0x4bbc3d),_0x139258=_0x4bbc3d[_0xee3503(0x1d0)]?_0xee3503(0x1d0):_0xee3503(0x199),_0x3671c5=resolveWriteConfigPath(_0x139258);try{_0x146268?await runNonInteractive(_0x4bbc3d,_0x3671c5):await runInteractive(_0x4bbc3d,_0x3671c5);}catch(_0x550f1d){if(_0x550f1d instanceof AbortPrompt)throw CliErrors[_0xee3503(0x1cb)]();throw _0x550f1d;}}export async function runInitImport(_0x22b3c2){const _0x41d463=a21_0x74e9e5,_0xd7fbc1=_0x22b3c2[_0x41d463(0x1d0)]?'global':_0x41d463(0x199),_0x2ef39e=resolveWriteConfigPath(_0xd7fbc1);await runFromImport(_0x22b3c2,_0x2ef39e);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x45249a,_0x58a73c){const _0x10ab05=a21_0x74e9e5,_0x40216b=resolveFilePath(_0x45249a[_0x10ab05(0x1d1)]);if(!existsSync(_0x40216b))throw CliErrors[_0x10ab05(0x1d4)](_0x10ab05(0x1aa)+_0x40216b);const _0x4bc92f=readSourceFile(_0x40216b),_0x8169b4=convertToRuntimeConfig(_0x4bc92f);_0x45249a[_0x10ab05(0x1a8)]&&(_0x8169b4[_0x10ab05(0x1a8)]=String(_0x45249a[_0x10ab05(0x1a8)]));_0x45249a['env']&&(_0x8169b4[_0x10ab05(0x19b)]=resolveInitEnv(_0x45249a));if(!_0x8169b4[_0x10ab05(0x1a8)])throw CliErrors[_0x10ab05(0x1d4)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x10ab05(0x1cf));await writeInitConfig(_0x58a73c,_0x8169b4,_0x45249a),console[_0x10ab05(0x1c5)](_0x10ab05(0x1d6)+_0x40216b),console[_0x10ab05(0x1c5)]('\x20\x20config:\x20\x20'+_0x58a73c),console[_0x10ab05(0x1c5)](_0x10ab05(0x1c0)+_0x8169b4['appcode']);if(_0x8169b4[_0x10ab05(0x19f)])console[_0x10ab05(0x1c5)]('\x20\x20default:\x20'+_0x8169b4[_0x10ab05(0x19f)]);}function convertToRuntimeConfig(_0x1d2e08){const _0x44fd52=a21_0x74e9e5;if(_0x1d2e08[_0x44fd52(0x1a6)]&&typeof _0x1d2e08['apps']===_0x44fd52(0x1bd))throw CliErrors['validation'](_0x44fd52(0x1a7),_0x44fd52(0x1b4));const _0x4e40ba={};for(const _0x4ea40e of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1d2e08[_0x4ea40e]!==undefined&&(_0x4e40ba[_0x4ea40e]=_0x1d2e08[_0x4ea40e]);}return!_0x4e40ba[_0x44fd52(0x19e)]&&(_0x4e40ba[_0x44fd52(0x19e)]=DEFAULT_CONFIG_VALUES[_0x44fd52(0x19e)]),_0x4e40ba;}async function runNonInteractive(_0x287517,_0x3fdaf4){const _0x28d608=a21_0x74e9e5,_0xed0300=_0x287517['appcode'];if(!_0xed0300)throw CliErrors[_0x28d608(0x1c1)](_0x28d608(0x1a8),_0x28d608(0x19d)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x589cd9=resolveInitEnv(_0x287517);await writeInitConfig(_0x3fdaf4,{'appcode':_0xed0300,'env':_0x589cd9},_0x287517),console[_0x28d608(0x1c5)](_0x28d608(0x198)+_0x3fdaf4),console[_0x28d608(0x1c5)](_0x28d608(0x1c0)+_0xed0300),console['log'](_0x28d608(0x1c4)+_0x589cd9);}async function runInteractive(_0x415e34,_0x417256){const _0x5476cd=a21_0x74e9e5,_0x20444a=loadExisting(_0x417256),_0x59375c=typeof _0x20444a?.['appcode']===_0x5476cd(0x1c8)?_0x20444a[_0x5476cd(0x1a8)]:'',_0x38df3b=resolveInitEnv(_0x415e34);console[_0x5476cd(0x1c5)](CLI_BIN_NAME+_0x5476cd(0x1ad));if(existsSync(_0x417256)&&!_0x415e34[_0x5476cd(0x1b1)]){const _0x10e487=await promptYesNo(_0x5476cd(0x1ce)+_0x417256+_0x5476cd(0x19a),![]);if(!_0x10e487){console[_0x5476cd(0x1c5)](_0x5476cd(0x19c));return;}}const _0x23ae7c=typeof _0x415e34[_0x5476cd(0x1a8)]===_0x5476cd(0x1c8)?_0x415e34[_0x5476cd(0x1a8)]['trim']():'';let _0x1b3691=_0x23ae7c;!_0x1b3691&&(_0x1b3691=await promptInput(_0x5476cd(0x1b3),_0x59375c));if(!_0x1b3691[_0x5476cd(0x1a4)]())throw CliErrors['validation']('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x417256,{'appcode':_0x1b3691[_0x5476cd(0x1a4)](),'env':_0x38df3b},_0x415e34),console['log'](_0x5476cd(0x1c3)+_0x417256),console[_0x5476cd(0x1c5)](_0x5476cd(0x1c0)+_0x1b3691['trim']()),console[_0x5476cd(0x1c5)](_0x5476cd(0x1c4)+_0x38df3b);}async function writeInitConfig(_0x155110,_0x26f979,_0x53d6d8){const _0x7b98ee=a21_0x74e9e5;let _0x306eab={};existsSync(_0x155110)&&!_0x53d6d8[_0x7b98ee(0x1b1)]&&(_0x306eab=readConfigFile(_0x155110));for(const [_0x41a01a,_0x1df938]of Object[_0x7b98ee(0x1ba)](_0x26f979)){_0x1df938!==undefined&&(_0x306eab[_0x41a01a]=_0x1df938);}if(_0x306eab['app'])delete _0x306eab[_0x7b98ee(0x1ab)];writeConfigFile(_0x155110,_0x306eab);}class AbortPrompt extends Error{constructor(){const _0x2684d9=a21_0x74e9e5;super(_0x2684d9(0x196)),this[_0x2684d9(0x1bb)]=_0x2684d9(0x1c6);}}function createSafeRl(){const _0x35bac7=a21_0x74e9e5,_0x3c6f14=createInterface({'input':process[_0x35bac7(0x1ae)],'output':process['stdout']});let _0x18200e;const _0x5a7783=new Promise((_0x4a52bb,_0x4a7fe8)=>{const _0x22b1a0=_0x35bac7;_0x18200e=()=>{const _0x58d020=a21_0x84ec;_0x18200e&&(_0x3c6f14[_0x58d020(0x1bc)](_0x58d020(0x1cc),_0x18200e),_0x18200e=undefined);try{_0x3c6f14['close']();}catch{}_0x4a7fe8(new AbortPrompt());},_0x3c6f14[_0x22b1a0(0x1b9)]('SIGINT',_0x18200e);}),_0x2279a2=()=>{const _0x1a2b85=_0x35bac7;_0x18200e&&(_0x3c6f14[_0x1a2b85(0x1bc)](_0x1a2b85(0x1cc),_0x18200e),_0x18200e=undefined);try{_0x3c6f14[_0x1a2b85(0x1af)]();}catch{}};return{'rl':_0x3c6f14,'abortPromise':_0x5a7783,'disposeSuccess':_0x2279a2};}async function promptInput(_0x5b2f8b,_0x833438){const {rl:_0x594db4,abortPromise:_0x2e57e2,disposeSuccess:_0x43a3bf}=createSafeRl(),_0x73f358=new Promise(_0x338fb9=>{const _0x1f79d5=a21_0x84ec,_0x4af458=_0x833438?'\x20\x20'+_0x5b2f8b+'\x20('+_0x833438+_0x1f79d5(0x1ca):'\x20\x20'+_0x5b2f8b+':\x20';_0x594db4[_0x1f79d5(0x1d5)](_0x4af458,_0x244702=>{_0x43a3bf(),_0x338fb9(_0x244702['trim']()||_0x833438);});});return Promise['race']([_0x73f358,_0x2e57e2]);}async function promptYesNo(_0x23271d,_0x9cd30a){const _0x401d32=a21_0x74e9e5,{rl:_0x713eca,abortPromise:_0x1dbdb9,disposeSuccess:_0x247693}=createSafeRl(),_0x4f43c5=new Promise(_0x438e43=>{const _0x4f501b=a21_0x84ec,_0x3371f4=_0x9cd30a?_0x4f501b(0x1b0):_0x4f501b(0x1c7);_0x713eca[_0x4f501b(0x1d5)]('\x20\x20'+_0x23271d+'\x20'+_0x3371f4+':\x20',_0x28a20e=>{const _0x49d238=_0x4f501b;_0x247693();const _0x369def=_0x28a20e[_0x49d238(0x1a4)]()[_0x49d238(0x1b7)]();if(_0x369def==='y'||_0x369def===_0x49d238(0x1b1))_0x438e43(!![]);else{if(_0x369def==='n'||_0x369def==='no')_0x438e43(![]);else _0x438e43(_0x9cd30a);}});});return Promise[_0x401d32(0x1a0)]([_0x4f43c5,_0x1dbdb9]);}function loadExisting(_0x41ec84){if(!existsSync(_0x41ec84))return null;return readConfigFile(_0x41ec84);}function a21_0x4b4c(){const _0x3011df=['AbortPrompt','[y/N]','string','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','):\x20','cancelled','SIGINT','join','File\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','global','file','Failed\x20to\x20parse\x20source\x20file:\x20','Override\x20imported\x20default\x20env','validation','question','Imported\x20from\x20','14805972zOpFgm','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','cwd','User\x20aborted\x20prompt','380005aCcFuD','Initialized\x20','project','\x20already\x20exists.\x20Overwrite?','env','Aborted.','Usage:\x20','riskLevel','defaultApp','race','\x22.\x20Allowed:\x20','App\x20code\x20for\x20the\x20project','Override\x20imported\x20default\x20appcode','trim','boolean','apps','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','appcode','6pOUjDa','Source\x20file\x20not\x20found:\x20','app','1163044INChlk','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','stdin','close','[Y/n]','yes','Skip\x20confirmation\x20when\x20overwriting','App\x20code','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','2654eiUMDv','4683513qwxJJk','toLowerCase','36176450NILUYz','once','entries','name','removeListener','object','951xohpHF','262416UhIzAO','\x20\x20appcode:\x20','flagMissing','304srGgUA','\x0aInitialized\x20','\x20\x20env:\x20\x20\x20\x20\x20','log'];a21_0x4b4c=function(){return _0x3011df;};return a21_0x4b4c();}function resolveFilePath(_0x2b5201){const _0xc29cf2=a21_0x74e9e5;return isAbsolute(_0x2b5201)?_0x2b5201:resolve(process[_0xc29cf2(0x195)](),_0x2b5201);}function readSourceFile(_0x4d2c98){const _0x216ecc=a21_0x74e9e5;try{const _0x1688e5=readFileSync(_0x4d2c98,{'encoding':'utf8'});return JSON['parse'](_0x1688e5);}catch(_0x43b466){throw CliErrors[_0x216ecc(0x1d4)](_0x216ecc(0x1d2)+_0x43b466['message']);}}function resolveInitEnv(_0x41f3be){const _0x39e6a6=a21_0x74e9e5,_0x45f675=_0x41f3be[_0x39e6a6(0x19b)];if(_0x45f675===undefined||_0x45f675==='')return DEFAULT_CONFIG_VALUES[_0x39e6a6(0x19b)];if(!RUNTIME_ENV_VALUES['includes'](_0x45f675))throw CliErrors[_0x39e6a6(0x1d4)]('Invalid\x20env\x20\x22'+_0x45f675+_0x39e6a6(0x1a1)+RUNTIME_ENV_VALUES[_0x39e6a6(0x1cd)](',\x20'));return _0x45f675;}
1
+ const a21_0xa6626e=a21_0x156b;(function(_0x3e8751,_0x29ee0a){const _0x6f6821=a21_0x156b,_0x2b3871=_0x3e8751();while(!![]){try{const _0x2fc6f5=parseInt(_0x6f6821(0x176))/0x1*(-parseInt(_0x6f6821(0x17a))/0x2)+-parseInt(_0x6f6821(0x184))/0x3+parseInt(_0x6f6821(0x163))/0x4+parseInt(_0x6f6821(0x186))/0x5*(parseInt(_0x6f6821(0x178))/0x6)+-parseInt(_0x6f6821(0x164))/0x7+-parseInt(_0x6f6821(0x195))/0x8+parseInt(_0x6f6821(0x188))/0x9;if(_0x2fc6f5===_0x29ee0a)break;else _0x2b3871['push'](_0x2b3871['shift']());}catch(_0x518fde){_0x2b3871['push'](_0x2b3871['shift']());}}}(a21_0x1d7e,0xcb621));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':'appcode','type':a21_0xa6626e(0x192),'description':'App\x20code\x20for\x20the\x20project'},{'name':a21_0xa6626e(0x191),'type':a21_0xa6626e(0x192),'description':a21_0xa6626e(0x183)+DEFAULT_CONFIG_VALUES[a21_0xa6626e(0x191)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0xa6626e(0x16f),'type':a21_0xa6626e(0x18e),'description':'Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','default':![]},{'name':a21_0xa6626e(0x197),'type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x171),'default':![]}];export const initImportFlagDefs=[{'name':'file','type':a21_0xa6626e(0x192),'description':a21_0xa6626e(0x190),'required':!![]},{'name':'appcode','type':a21_0xa6626e(0x192),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':'string','description':a21_0xa6626e(0x15b),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x165),'default':![]},{'name':a21_0xa6626e(0x197),'type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x171),'default':![]}];export async function runInit(_0xeb094f){const _0x3f3dc1=a21_0xa6626e,_0x5c6cf1=isNonInteractiveMode(_0xeb094f),_0x44526d=_0xeb094f[_0x3f3dc1(0x16f)]?_0x3f3dc1(0x16f):'project',_0xbb8f38=resolveWriteConfigPath(_0x44526d);try{_0x5c6cf1?await runNonInteractive(_0xeb094f,_0xbb8f38):await runInteractive(_0xeb094f,_0xbb8f38);}catch(_0xc50a5d){if(_0xc50a5d instanceof AbortPrompt)throw CliErrors[_0x3f3dc1(0x194)]();throw _0xc50a5d;}}function a21_0x1d7e(){const _0x3a5a50=['Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','join','AbortPrompt','global','name','Skip\x20confirmation\x20when\x20overwriting','Source\x20file\x20not\x20found:\x20','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','riskLevel','\x20already\x20exists.\x20Overwrite?','13XpiLpO','appcode','2141454EdATNM','includes','24142yDnhXE','\x20\x20env:\x20\x20\x20\x20\x20','Initialized\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','\x20\x20appcode:\x20','utf8','file','App\x20code\x20cannot\x20be\x20empty.','app','Target\x20environment\x20(default\x20','626118vQuDdP','stdout','10cRAnIe','flagMissing','19438524fHSfzB','Aborted.','apps','):\x20','once','SIGINT','boolean','parse','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','env','string','race','cancelled','5785840NxmrOB','\x20\x20config:\x20\x20','yes','stdin','cwd','\x22.\x20Allowed:\x20','removeListener','toLowerCase','defaultApp','[y/N]','Override\x20imported\x20default\x20env','Imported\x20from\x20','close','User\x20aborted\x20prompt','\x20\x20default:\x20','apiDir','trim','object','2550748oClBHr','11125975LAmPJp','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','Usage:\x20','log','App\x20code','Failed\x20to\x20parse\x20source\x20file:\x20','question','validation'];a21_0x1d7e=function(){return _0x3a5a50;};return a21_0x1d7e();}export async function runInitImport(_0xe24a02){const _0x77d398=a21_0xa6626e,_0x59c286=_0xe24a02['global']?_0x77d398(0x16f):'project',_0x698248=resolveWriteConfigPath(_0x59c286);await runFromImport(_0xe24a02,_0x698248);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0xa6626e(0x160)]);async function runFromImport(_0x51871e,_0x1bd96f){const _0x47a884=a21_0xa6626e,_0x167add=resolveFilePath(_0x51871e[_0x47a884(0x180)]);if(!existsSync(_0x167add))throw CliErrors[_0x47a884(0x16b)](_0x47a884(0x172)+_0x167add);const _0x5c162d=readSourceFile(_0x167add),_0x5235e3=convertToRuntimeConfig(_0x5c162d);_0x51871e['appcode']&&(_0x5235e3[_0x47a884(0x177)]=String(_0x51871e[_0x47a884(0x177)]));_0x51871e[_0x47a884(0x191)]&&(_0x5235e3[_0x47a884(0x191)]=resolveInitEnv(_0x51871e));if(!_0x5235e3[_0x47a884(0x177)])throw CliErrors['validation']('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeInitConfig(_0x1bd96f,_0x5235e3,_0x51871e),console[_0x47a884(0x167)](_0x47a884(0x15c)+_0x167add),console[_0x47a884(0x167)](_0x47a884(0x196)+_0x1bd96f),console[_0x47a884(0x167)]('\x20\x20appcode:\x20'+_0x5235e3[_0x47a884(0x177)]);if(_0x5235e3['defaultApp'])console[_0x47a884(0x167)](_0x47a884(0x15f)+_0x5235e3[_0x47a884(0x159)]);}function a21_0x156b(_0x38effa,_0x5183da){_0x38effa=_0x38effa-0x155;const _0x1d7e04=a21_0x1d7e();let _0x156b17=_0x1d7e04[_0x38effa];return _0x156b17;}function convertToRuntimeConfig(_0x48ec4e){const _0x348bfd=a21_0xa6626e;if(_0x48ec4e[_0x348bfd(0x18a)]&&typeof _0x48ec4e[_0x348bfd(0x18a)]===_0x348bfd(0x162))throw CliErrors[_0x348bfd(0x16b)](_0x348bfd(0x17d),_0x348bfd(0x16c));const _0x5283b4={};for(const _0x12944d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x48ec4e[_0x12944d]!==undefined&&(_0x5283b4[_0x12944d]=_0x48ec4e[_0x12944d]);}return!_0x5283b4[_0x348bfd(0x174)]&&(_0x5283b4['riskLevel']=DEFAULT_CONFIG_VALUES[_0x348bfd(0x174)]),_0x5283b4;}async function runNonInteractive(_0x28d479,_0x14939d){const _0x37ed42=a21_0xa6626e,_0x176b8a=_0x28d479['appcode'];if(!_0x176b8a)throw CliErrors[_0x37ed42(0x187)](_0x37ed42(0x177),_0x37ed42(0x166)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x3fdf35=resolveInitEnv(_0x28d479);await writeInitConfig(_0x14939d,{'appcode':_0x176b8a,'env':_0x3fdf35},_0x28d479),console[_0x37ed42(0x167)](_0x37ed42(0x17c)+_0x14939d),console['log'](_0x37ed42(0x17e)+_0x176b8a),console[_0x37ed42(0x167)](_0x37ed42(0x17b)+_0x3fdf35);}async function runInteractive(_0x2b870d,_0x461695){const _0x4ed0fa=a21_0xa6626e,_0x4bb24b=loadExisting(_0x461695),_0x34b061=typeof _0x4bb24b?.[_0x4ed0fa(0x177)]===_0x4ed0fa(0x192)?_0x4bb24b[_0x4ed0fa(0x177)]:'',_0x38aed0=resolveInitEnv(_0x2b870d);console[_0x4ed0fa(0x167)](CLI_BIN_NAME+_0x4ed0fa(0x173));if(existsSync(_0x461695)&&!_0x2b870d['yes']){const _0x2ea256=await promptYesNo('File\x20'+_0x461695+_0x4ed0fa(0x175),![]);if(!_0x2ea256){console[_0x4ed0fa(0x167)](_0x4ed0fa(0x189));return;}}const _0x37d5c4=typeof _0x2b870d[_0x4ed0fa(0x177)]===_0x4ed0fa(0x192)?_0x2b870d[_0x4ed0fa(0x177)][_0x4ed0fa(0x161)]():'';let _0x490806=_0x37d5c4;!_0x490806&&(_0x490806=await promptInput(_0x4ed0fa(0x168),_0x34b061));if(!_0x490806[_0x4ed0fa(0x161)]())throw CliErrors[_0x4ed0fa(0x16b)](_0x4ed0fa(0x181));await writeInitConfig(_0x461695,{'appcode':_0x490806[_0x4ed0fa(0x161)](),'env':_0x38aed0},_0x2b870d),console[_0x4ed0fa(0x167)]('\x0aInitialized\x20'+_0x461695),console['log']('\x20\x20appcode:\x20'+_0x490806[_0x4ed0fa(0x161)]()),console['log']('\x20\x20env:\x20\x20\x20\x20\x20'+_0x38aed0);}async function writeInitConfig(_0x13745a,_0x3f299f,_0x401b52){const _0x26bd1a=a21_0xa6626e;let _0x25cbf5={};existsSync(_0x13745a)&&!_0x401b52[_0x26bd1a(0x197)]&&(_0x25cbf5=readConfigFile(_0x13745a));for(const [_0x565e97,_0x4423ed]of Object['entries'](_0x3f299f)){_0x4423ed!==undefined&&(_0x25cbf5[_0x565e97]=_0x4423ed);}if(_0x25cbf5[_0x26bd1a(0x182)])delete _0x25cbf5[_0x26bd1a(0x182)];writeConfigFile(_0x13745a,_0x25cbf5);}class AbortPrompt extends Error{constructor(){const _0x38a86f=a21_0xa6626e;super(_0x38a86f(0x15e)),this[_0x38a86f(0x170)]=_0x38a86f(0x16e);}}function createSafeRl(){const _0x28980b=a21_0xa6626e,_0x55837b=createInterface({'input':process[_0x28980b(0x198)],'output':process[_0x28980b(0x185)]});let _0x1d15d6;const _0x44bb00=new Promise((_0x1cbbe9,_0x5da84f)=>{const _0x4737e3=_0x28980b;_0x1d15d6=()=>{const _0x4389e4=a21_0x156b;_0x1d15d6&&(_0x55837b['removeListener'](_0x4389e4(0x18d),_0x1d15d6),_0x1d15d6=undefined);try{_0x55837b['close']();}catch{}_0x5da84f(new AbortPrompt());},_0x55837b[_0x4737e3(0x18c)](_0x4737e3(0x18d),_0x1d15d6);}),_0x8ec9d2=()=>{const _0x5b25a6=_0x28980b;_0x1d15d6&&(_0x55837b[_0x5b25a6(0x157)](_0x5b25a6(0x18d),_0x1d15d6),_0x1d15d6=undefined);try{_0x55837b[_0x5b25a6(0x15d)]();}catch{}};return{'rl':_0x55837b,'abortPromise':_0x44bb00,'disposeSuccess':_0x8ec9d2};}async function promptInput(_0x5d8745,_0x1e13e6){const _0x4a4cff=a21_0xa6626e,{rl:_0xaf5e70,abortPromise:_0x25a8b2,disposeSuccess:_0x201fe5}=createSafeRl(),_0x46f4da=new Promise(_0x17ae56=>{const _0x3f2f0b=a21_0x156b,_0x463b1e=_0x1e13e6?'\x20\x20'+_0x5d8745+'\x20('+_0x1e13e6+_0x3f2f0b(0x18b):'\x20\x20'+_0x5d8745+':\x20';_0xaf5e70[_0x3f2f0b(0x16a)](_0x463b1e,_0x4d3772=>{const _0x25e0b5=_0x3f2f0b;_0x201fe5(),_0x17ae56(_0x4d3772[_0x25e0b5(0x161)]()||_0x1e13e6);});});return Promise[_0x4a4cff(0x193)]([_0x46f4da,_0x25a8b2]);}async function promptYesNo(_0x4e38dd,_0x165ede){const _0x26a14c=a21_0xa6626e,{rl:_0x1a1c72,abortPromise:_0x39dc50,disposeSuccess:_0xb5e809}=createSafeRl(),_0x1dcda8=new Promise(_0x5db05d=>{const _0x539572=a21_0x156b,_0x339beb=_0x165ede?'[Y/n]':_0x539572(0x15a);_0x1a1c72[_0x539572(0x16a)]('\x20\x20'+_0x4e38dd+'\x20'+_0x339beb+':\x20',_0x5c9a74=>{const _0x4b543a=_0x539572;_0xb5e809();const _0x14a18a=_0x5c9a74[_0x4b543a(0x161)]()[_0x4b543a(0x158)]();if(_0x14a18a==='y'||_0x14a18a===_0x4b543a(0x197))_0x5db05d(!![]);else{if(_0x14a18a==='n'||_0x14a18a==='no')_0x5db05d(![]);else _0x5db05d(_0x165ede);}});});return Promise[_0x26a14c(0x193)]([_0x1dcda8,_0x39dc50]);}function loadExisting(_0x27a994){if(!existsSync(_0x27a994))return null;return readConfigFile(_0x27a994);}function resolveFilePath(_0x3c1c93){const _0x252951=a21_0xa6626e;return isAbsolute(_0x3c1c93)?_0x3c1c93:resolve(process[_0x252951(0x155)](),_0x3c1c93);}function readSourceFile(_0x401112){const _0x5146c5=a21_0xa6626e;try{const _0xcb5370=readFileSync(_0x401112,{'encoding':_0x5146c5(0x17f)});return JSON[_0x5146c5(0x18f)](_0xcb5370);}catch(_0x3e8916){throw CliErrors[_0x5146c5(0x16b)](_0x5146c5(0x169)+_0x3e8916['message']);}}function resolveInitEnv(_0x2dbc84){const _0x9566e2=a21_0xa6626e,_0x58d06a=_0x2dbc84[_0x9566e2(0x191)];if(_0x58d06a===undefined||_0x58d06a==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x9566e2(0x179)](_0x58d06a))throw CliErrors[_0x9566e2(0x16b)]('Invalid\x20env\x20\x22'+_0x58d06a+_0x9566e2(0x156)+RUNTIME_ENV_VALUES[_0x9566e2(0x16d)](',\x20'));return _0x58d06a;}
@@ -1 +1 @@
1
- const a22_0x2ad906=a22_0x1961;(function(_0x372958,_0x266abf){const _0x2fa4b1=a22_0x1961,_0x2a5b13=_0x372958();while(!![]){try{const _0x11a62f=parseInt(_0x2fa4b1(0xd0))/0x1*(parseInt(_0x2fa4b1(0xe5))/0x2)+parseInt(_0x2fa4b1(0xce))/0x3+-parseInt(_0x2fa4b1(0xd5))/0x4*(-parseInt(_0x2fa4b1(0xe4))/0x5)+-parseInt(_0x2fa4b1(0xd1))/0x6*(parseInt(_0x2fa4b1(0xda))/0x7)+parseInt(_0x2fa4b1(0xe1))/0x8*(-parseInt(_0x2fa4b1(0xdb))/0x9)+-parseInt(_0x2fa4b1(0xe7))/0xa*(-parseInt(_0x2fa4b1(0xcf))/0xb)+-parseInt(_0x2fa4b1(0xcc))/0xc;if(_0x11a62f===_0x266abf)break;else _0x2a5b13['push'](_0x2a5b13['shift']());}catch(_0x22bd90){_0x2a5b13['push'](_0x2a5b13['shift']());}}}(a22_0x10e1,0x7c508));import{logger}from'../../utils/logger.js';function printLogs(_0x47d99d){const _0x4521e2=a22_0x1961;if(_0x47d99d[_0x4521e2(0xec)]===0x0){console['log'](_0x4521e2(0xdc));return;}console[_0x4521e2(0xd7)](_0x4521e2(0xe9)),_0x47d99d[_0x4521e2(0xe0)]((_0x5a5858,_0x158014)=>{const _0x3cf0ed=_0x4521e2,_0x252914=new Date(_0x5a5858['timestamp'])[_0x3cf0ed(0xcd)]('en-US'),_0x234b3b=_0x5a5858[_0x3cf0ed(0xe8)]===_0x3cf0ed(0xe2)?'√':_0x5a5858['level']===_0x3cf0ed(0xd4)?'×':_0x5a5858[_0x3cf0ed(0xe8)]==='warn'?'!':'i';console[_0x3cf0ed(0xd7)](_0x158014+0x1+'.\x20'+_0x234b3b+'\x20['+_0x5a5858['command']+']\x20'+_0x5a5858['message']),console['log'](_0x3cf0ed(0xdf)+_0x252914),_0x5a5858[_0x3cf0ed(0xd3)]&&console[_0x3cf0ed(0xd7)](_0x3cf0ed(0xe6)+_0x5a5858[_0x3cf0ed(0xd3)]+'ms'),_0x5a5858['details']&&Object[_0x3cf0ed(0xd6)](_0x5a5858[_0x3cf0ed(0xe3)])['length']>0x0&&console[_0x3cf0ed(0xd7)]('\x20\x20\x20Details:\x20'+JSON[_0x3cf0ed(0xdd)](_0x5a5858['details'],null,0x2)),console['log']('');});}function a22_0x1961(_0x588811,_0x48802e){_0x588811=_0x588811-0xcc;const _0x10e1d2=a22_0x10e1();let _0x1961d5=_0x10e1d2[_0x588811];return _0x1961d5;}function a22_0x10e1(){const _0x491a5d=['write','View\x20command\x20history\x20logs','7hecPwq','411966Gkaqcm','*\x20No\x20logs\x20found','stringify','read','\x20\x20\x20Time:\x20','forEach','48Gehhbb','success','details','5SZvHmS','568XrYQCc','\x20\x20\x20Duration:\x20','558050kjiYKE','level','*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a','*\x20Logs\x20cleared','Clear\x20command\x20history\x20logs','length','show','2068272NYQiqZ','toLocaleString','768450FNzHnr','22tQfTjk','362LSCrAo','1708542mJNUTy','logs','duration','error','3081524DVtmoR','keys','log'];a22_0x10e1=function(){return _0x491a5d;};return a22_0x10e1();}export const logsDefinitions=[{'service':a22_0x2ad906(0xd2),'command':a22_0x2ad906(0xed),'description':a22_0x2ad906(0xd9),'risk':a22_0x2ad906(0xde),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd6b876){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a22_0x2ad906(0xeb),'risk':a22_0x2ad906(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3b3cc0){const _0x2567bf=a22_0x2ad906;return logger['clearLogs'](),console[_0x2567bf(0xd7)](_0x2567bf(0xea)),{'ok':!![]};}}];
1
+ const a22_0x1a6ff2=a22_0x3e2f;(function(_0x1b192a,_0x243f6f){const _0x32331e=a22_0x3e2f,_0x2fa7dd=_0x1b192a();while(!![]){try{const _0x2ec84e=parseInt(_0x32331e(0xdc))/0x1+-parseInt(_0x32331e(0xef))/0x2+-parseInt(_0x32331e(0xdd))/0x3+-parseInt(_0x32331e(0xe5))/0x4*(parseInt(_0x32331e(0xee))/0x5)+-parseInt(_0x32331e(0xeb))/0x6+-parseInt(_0x32331e(0xfb))/0x7+parseInt(_0x32331e(0xe1))/0x8*(parseInt(_0x32331e(0xde))/0x9);if(_0x2ec84e===_0x243f6f)break;else _0x2fa7dd['push'](_0x2fa7dd['shift']());}catch(_0x2df433){_0x2fa7dd['push'](_0x2fa7dd['shift']());}}}(a22_0x290c,0x3e01c));function a22_0x290c(){const _0x3fb74d=['1916040jiOdSq','duration','length','keys','148832XeOHWN','1012818HEzYHs','648tEJFjx','command','timestamp','149128KsLVEK','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','clear','44864OAqmak','show','toLocaleString','View\x20command\x20history\x20logs','success','level','2602092qjvfgn','*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a','\x20\x20\x20Details:\x20','55VHLnzf','137240DaZHiI','readLogs','stringify','details','error','Clear\x20command\x20history\x20logs','message','log','write','warn','forEach','logs'];a22_0x290c=function(){return _0x3fb74d;};return a22_0x290c();}import{logger}from'../../utils/logger.js';function a22_0x3e2f(_0x49ac,_0xdef806){_0x49ac=_0x49ac-0xd9;const _0x290c78=a22_0x290c();let _0x3e2f84=_0x290c78[_0x49ac];return _0x3e2f84;}function printLogs(_0x5cd75c){const _0x355b5e=a22_0x3e2f;if(_0x5cd75c[_0x355b5e(0xda)]===0x0){console[_0x355b5e(0xf6)](_0x355b5e(0xe3));return;}console['log'](_0x355b5e(0xec)),_0x5cd75c[_0x355b5e(0xf9)]((_0x2e707f,_0x4efeb9)=>{const _0x547ffe=_0x355b5e,_0x5405b8=new Date(_0x2e707f[_0x547ffe(0xe0)])[_0x547ffe(0xe7)]('en-US'),_0x55453d=_0x2e707f[_0x547ffe(0xea)]===_0x547ffe(0xe9)?'√':_0x2e707f[_0x547ffe(0xea)]===_0x547ffe(0xf3)?'×':_0x2e707f[_0x547ffe(0xea)]===_0x547ffe(0xf8)?'!':'i';console['log'](_0x4efeb9+0x1+'.\x20'+_0x55453d+'\x20['+_0x2e707f[_0x547ffe(0xdf)]+']\x20'+_0x2e707f[_0x547ffe(0xf5)]),console['log'](_0x547ffe(0xe2)+_0x5405b8),_0x2e707f[_0x547ffe(0xd9)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x2e707f[_0x547ffe(0xd9)]+'ms'),_0x2e707f[_0x547ffe(0xf2)]&&Object[_0x547ffe(0xdb)](_0x2e707f['details'])[_0x547ffe(0xda)]>0x0&&console[_0x547ffe(0xf6)](_0x547ffe(0xed)+JSON[_0x547ffe(0xf1)](_0x2e707f[_0x547ffe(0xf2)],null,0x2)),console[_0x547ffe(0xf6)]('');});}export const logsDefinitions=[{'service':a22_0x1a6ff2(0xfa),'command':a22_0x1a6ff2(0xe6),'description':a22_0x1a6ff2(0xe8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49bc73){const _0x4c63ea=a22_0x1a6ff2;return printLogs(logger[_0x4c63ea(0xf0)]()),{'ok':!![]};}},{'service':'logs','command':a22_0x1a6ff2(0xe4),'description':a22_0x1a6ff2(0xf4),'risk':a22_0x1a6ff2(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a1aab){const _0x3108e9=a22_0x1a6ff2;return logger['clearLogs'](),console[_0x3108e9(0xf6)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a23_0x2826(_0x23fdc3,_0x1b7817){_0x23fdc3=_0x23fdc3-0x118;const _0x51c6ac=a23_0x51c6();let _0x282612=_0x51c6ac[_0x23fdc3];return _0x282612;}const a23_0x4e11c7=a23_0x2826;(function(_0x1df65e,_0x2f4382){const _0x2f0212=a23_0x2826,_0x47d07f=_0x1df65e();while(!![]){try{const _0x562b28=-parseInt(_0x2f0212(0x11b))/0x1+parseInt(_0x2f0212(0x129))/0x2+-parseInt(_0x2f0212(0x121))/0x3+parseInt(_0x2f0212(0x128))/0x4+-parseInt(_0x2f0212(0x137))/0x5+parseInt(_0x2f0212(0x12a))/0x6+parseInt(_0x2f0212(0x126))/0x7*(parseInt(_0x2f0212(0x134))/0x8);if(_0x562b28===_0x2f4382)break;else _0x47d07f['push'](_0x47d07f['shift']());}catch(_0xeeacae){_0x47d07f['push'](_0x47d07f['shift']());}}}(a23_0x51c6,0x8f9bd));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(_0x1a36b5){const _0x5c7205=a23_0x2826;for(const _0x2d8b1b of _0x1a36b5){definitions[_0x5c7205(0x135)](_0x2d8b1b['service']+':'+_0x2d8b1b[_0x5c7205(0x136)],_0x2d8b1b);let _0x298b48=serviceGroups['get'](_0x2d8b1b['service']);!_0x298b48&&(_0x298b48=[],serviceGroups[_0x5c7205(0x135)](_0x2d8b1b[_0x5c7205(0x120)],_0x298b48)),_0x298b48[_0x5c7205(0x12c)](_0x2d8b1b);}}function registerService(_0x514e3a,_0x392476,_0x5f124f){const _0x3f62f2=a23_0x2826;registerDefinitions(_0x392476);const _0x1afddd=_0x346f55=>_0x346f55===_0x3f62f2(0x123)?'':_0x346f55===_0x3f62f2(0x12d)?'\x20\x20[write]':_0x3f62f2(0x11c),_0xb927c1={'service':_0x392476[0x0][_0x3f62f2(0x120)],'label':_0x514e3a,'commands':_0x392476['map'](_0x2d5440=>({'command':_0x2d5440[_0x3f62f2(0x136)],'description':_0x2d5440[_0x3f62f2(0x12e)],'tag':_0x1afddd(_0x2d5440[_0x3f62f2(0x130)])})),'defaultCommand':_0x5f124f?.['defaultCommand']??(_0x5f124f?.['isSingleCommand']?_0x392476[0x0][_0x3f62f2(0x136)]:undefined),'isSingleCommand':_0x5f124f?.[_0x3f62f2(0x118)]};serviceRegistry[_0x3f62f2(0x12c)](_0xb927c1),serviceByName['set'](_0xb927c1[_0x3f62f2(0x120)],_0xb927c1);}registerService(a23_0x4e11c7(0x133),authDefinitions,{'defaultCommand':'login'}),registerService(a23_0x4e11c7(0x11e),datasetDefinitions),registerService('Data\x20CRUD',dataDefinitions),registerService('SQL\x20Queries',sqlDefinitions),registerService(a23_0x4e11c7(0x124),bffDefinitions),registerService(a23_0x4e11c7(0x11a),appDefinitions,{'defaultCommand':a23_0x4e11c7(0x119)}),registerService(a23_0x4e11c7(0x132),configDefinitions,{'defaultCommand':a23_0x4e11c7(0x119)}),registerService(a23_0x4e11c7(0x125),skillDefinitions,{'defaultCommand':a23_0x4e11c7(0x122)}),registerService(a23_0x4e11c7(0x12b),[doctorDefinition],{'isSingleCommand':!![]}),registerService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerService(a23_0x4e11c7(0x12f),logsDefinitions,{'defaultCommand':'show'});export function findDefinition(_0x353611,_0x255e81){const _0x5b5b3d=a23_0x4e11c7;return definitions[_0x5b5b3d(0x11d)](_0x353611+':'+_0x255e81);}export function isKnownService(_0x137215){const _0x49415f=a23_0x4e11c7;return serviceByName[_0x49415f(0x131)](_0x137215);}export function getServiceEntry(_0x38fd20){const _0x42cea7=a23_0x4e11c7;return serviceByName[_0x42cea7(0x11d)](_0x38fd20);}function a23_0x51c6(){const _0x5130a9=['25736MrZnot','set','command','3965920IYXETn','isSingleCommand','list','App\x20Management','859487TGtySk','\x20\x20[high-risk-write]','get','Datasets','from','service','2986182gwxSnN','install','read','BFF\x20Scripts','Skills','3941YuntMw','values','2109628rWjOwQ','582806kwgVdA','3637830BOhgPJ','Diagnostics','push','write','description','Logs','risk','has','Configuration','Authentication'];a23_0x51c6=function(){return _0x5130a9;};return a23_0x51c6();}export function getAllDefinitions(){const _0x552832=a23_0x4e11c7;return Array[_0x552832(0x11f)](definitions[_0x552832(0x127)]());}
1
+ const a23_0x2f8a57=a23_0x2b83;(function(_0x162ad9,_0x3258db){const _0x572c80=a23_0x2b83,_0x14ad3d=_0x162ad9();while(!![]){try{const _0xa30b39=-parseInt(_0x572c80(0x8d))/0x1*(-parseInt(_0x572c80(0xa4))/0x2)+-parseInt(_0x572c80(0x87))/0x3*(-parseInt(_0x572c80(0x86))/0x4)+-parseInt(_0x572c80(0x9d))/0x5+-parseInt(_0x572c80(0x82))/0x6+-parseInt(_0x572c80(0xa0))/0x7+parseInt(_0x572c80(0x7f))/0x8*(parseInt(_0x572c80(0x90))/0x9)+-parseInt(_0x572c80(0x9a))/0xa*(-parseInt(_0x572c80(0x96))/0xb);if(_0xa30b39===_0x3258db)break;else _0x14ad3d['push'](_0x14ad3d['shift']());}catch(_0x1365a3){_0x14ad3d['push'](_0x14ad3d['shift']());}}}(a23_0x45fc,0x239dd));import{authDefinitions}from'../commands/auth/index.js';function a23_0x45fc(){const _0x346ab9=['1650590mrqUhl','command','Datasets','28055LnRIAK','BFF\x20Scripts','Skills','1215004WyiDnE','isSingleCommand','get','defaultCommand','6ZOGMVI','6464OSlOgQ','App\x20Management','Data\x20CRUD','1660992WHDPqs','SQL\x20Queries','has','Configuration','6892DePhEV','15HQNcPg','show','list','read','description','Logs','50285WoYiSf','values','set','1251UmXrCN','\x20\x20[high-risk-write]','service','\x20\x20[write]','Diagnostics','push','22nBXrDL','from','Schema','map'];a23_0x45fc=function(){return _0x346ab9;};return a23_0x45fc();}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';function a23_0x2b83(_0x505f60,_0x2b27ed){_0x505f60=_0x505f60-0x7f;const _0x45fc05=a23_0x45fc();let _0x2b837b=_0x45fc05[_0x505f60];return _0x2b837b;}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(_0x441bbe){const _0x391e98=a23_0x2b83;for(const _0x2f753a of _0x441bbe){definitions[_0x391e98(0x8f)](_0x2f753a['service']+':'+_0x2f753a[_0x391e98(0x9b)],_0x2f753a);let _0x5aa074=serviceGroups['get'](_0x2f753a[_0x391e98(0x92)]);!_0x5aa074&&(_0x5aa074=[],serviceGroups[_0x391e98(0x8f)](_0x2f753a[_0x391e98(0x92)],_0x5aa074)),_0x5aa074[_0x391e98(0x95)](_0x2f753a);}}function registerService(_0x4aaea5,_0xb8497c,_0x576f0f){const _0x5f251e=a23_0x2b83;registerDefinitions(_0xb8497c);const _0x2eef6c=_0x4952d1=>_0x4952d1===_0x5f251e(0x8a)?'':_0x4952d1==='write'?_0x5f251e(0x93):_0x5f251e(0x91),_0x39eb95={'service':_0xb8497c[0x0][_0x5f251e(0x92)],'label':_0x4aaea5,'commands':_0xb8497c[_0x5f251e(0x99)](_0x2a99ec=>({'command':_0x2a99ec[_0x5f251e(0x9b)],'description':_0x2a99ec[_0x5f251e(0x8b)],'tag':_0x2eef6c(_0x2a99ec['risk'])})),'defaultCommand':_0x576f0f?.[_0x5f251e(0xa3)]??(_0x576f0f?.[_0x5f251e(0xa1)]?_0xb8497c[0x0][_0x5f251e(0x9b)]:undefined),'isSingleCommand':_0x576f0f?.['isSingleCommand']};serviceRegistry[_0x5f251e(0x95)](_0x39eb95),serviceByName[_0x5f251e(0x8f)](_0x39eb95['service'],_0x39eb95);}registerService('Authentication',authDefinitions,{'defaultCommand':'login'}),registerService(a23_0x2f8a57(0x9c),datasetDefinitions),registerService(a23_0x2f8a57(0x81),dataDefinitions),registerService(a23_0x2f8a57(0x83),sqlDefinitions),registerService(a23_0x2f8a57(0x9e),bffDefinitions),registerService(a23_0x2f8a57(0x80),appDefinitions,{'defaultCommand':a23_0x2f8a57(0x89)}),registerService(a23_0x2f8a57(0x85),configDefinitions,{'defaultCommand':a23_0x2f8a57(0x89)}),registerService(a23_0x2f8a57(0x9f),skillDefinitions,{'defaultCommand':'install'}),registerService(a23_0x2f8a57(0x94),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a23_0x2f8a57(0x98),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a23_0x2f8a57(0x8c),logsDefinitions,{'defaultCommand':a23_0x2f8a57(0x88)});export function findDefinition(_0x33264a,_0x5a1fee){const _0xa3e2d1=a23_0x2f8a57;return definitions[_0xa3e2d1(0xa2)](_0x33264a+':'+_0x5a1fee);}export function isKnownService(_0x2762bc){const _0xc6f85e=a23_0x2f8a57;return serviceByName[_0xc6f85e(0x84)](_0x2762bc);}export function getServiceEntry(_0xb2913b){const _0x203235=a23_0x2f8a57;return serviceByName[_0x203235(0xa2)](_0xb2913b);}export function getAllDefinitions(){const _0x1d6272=a23_0x2f8a57;return Array[_0x1d6272(0x97)](definitions[_0x1d6272(0x8e)]());}
@@ -1 +1 @@
1
- const a24_0x22289a=a24_0x3b0b;function a24_0x3b0b(_0xd9b5e1,_0x2e5a93){_0xd9b5e1=_0xd9b5e1-0x180;const _0xde0944=a24_0xde09();let _0x3b0b82=_0xde0944[_0xd9b5e1];return _0x3b0b82;}(function(_0x324280,_0x276657){const _0x2ae353=a24_0x3b0b,_0x3e120c=_0x324280();while(!![]){try{const _0x26b0db=parseInt(_0x2ae353(0x187))/0x1*(parseInt(_0x2ae353(0x18b))/0x2)+-parseInt(_0x2ae353(0x189))/0x3+parseInt(_0x2ae353(0x184))/0x4*(-parseInt(_0x2ae353(0x18a))/0x5)+parseInt(_0x2ae353(0x186))/0x6+parseInt(_0x2ae353(0x182))/0x7+parseInt(_0x2ae353(0x180))/0x8+-parseInt(_0x2ae353(0x183))/0x9;if(_0x26b0db===_0x276657)break;else _0x3e120c['push'](_0x3e120c['shift']());}catch(_0x1b4d93){_0x3e120c['push'](_0x3e120c['shift']());}}}(a24_0xde09,0xda49e));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x4c4e33){const _0xb074c5=await buildSchemaPayload();return{'ok':!![],'data':_0xb074c5};}export const schemaDefinition={'service':a24_0x22289a(0x181),'command':a24_0x22289a(0x185),'description':'Export\x20machine-readable\x20command\x20schema\x20(JSON)','risk':a24_0x22289a(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};function a24_0xde09(){const _0x5666fc=['98lGNLAy','2284000UbHNrq','schema','11713856ObPLZf','18375642PaJFss','4jhtjBn','export','5254236NRhZJk','19120dCjmiz','read','972549hJFtol','2557315LhdKFv'];a24_0xde09=function(){return _0x5666fc;};return a24_0xde09();}
1
+ function a24_0x22b6(){const _0x477484=['67393EtsBXF','read','4708335RDbquk','schema','148JrSlAX','30MRymGj','41403ntRWAp','7AZkmbr','687861BIhhAG','Export\x20machine-readable\x20command\x20schema\x20(JSON)','2556TScUBS','3311808nPaLUl','export','3597072hCGkjt','2kUbbxu','43593xzYLiD'];a24_0x22b6=function(){return _0x477484;};return a24_0x22b6();}const a24_0xa454c7=a24_0x3dc1;(function(_0x10930a,_0xff03a7){const _0xf30821=a24_0x3dc1,_0x23b89e=_0x10930a();while(!![]){try{const _0x108632=-parseInt(_0xf30821(0xf0))/0x1*(parseInt(_0xf30821(0xee))/0x2)+parseInt(_0xf30821(0xe6))/0x3*(parseInt(_0xf30821(0xf4))/0x4)+-parseInt(_0xf30821(0xf2))/0x5+-parseInt(_0xf30821(0xeb))/0x6+parseInt(_0xf30821(0xe7))/0x7*(parseInt(_0xf30821(0xed))/0x8)+parseInt(_0xf30821(0xe8))/0x9*(parseInt(_0xf30821(0xf5))/0xa)+-parseInt(_0xf30821(0xef))/0xb*(-parseInt(_0xf30821(0xea))/0xc);if(_0x108632===_0xff03a7)break;else _0x23b89e['push'](_0x23b89e['shift']());}catch(_0x57a2d6){_0x23b89e['push'](_0x23b89e['shift']());}}}(a24_0x22b6,0x73649));import{buildSchemaPayload}from'../framework/schema-export.js';function a24_0x3dc1(_0x491425,_0x474825){_0x491425=_0x491425-0xe6;const _0x22b6c9=a24_0x22b6();let _0x3dc19e=_0x22b6c9[_0x491425];return _0x3dc19e;}async function execute(_0xff19dc){const _0x40d9c0=await buildSchemaPayload();return{'ok':!![],'data':_0x40d9c0};}export const schemaDefinition={'service':a24_0xa454c7(0xf3),'command':a24_0xa454c7(0xec),'description':a24_0xa454c7(0xe9),'risk':a24_0xa454c7(0xf1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a25_0x415d7e=a25_0x5d50;(function(_0x2af078,_0x19fc7){const _0x466224=a25_0x5d50,_0x1cb264=_0x2af078();while(!![]){try{const _0x25c1d4=-parseInt(_0x466224(0x1cb))/0x1*(-parseInt(_0x466224(0x1c4))/0x2)+-parseInt(_0x466224(0x1bd))/0x3*(parseInt(_0x466224(0x1c8))/0x4)+parseInt(_0x466224(0x1b6))/0x5+parseInt(_0x466224(0x1b1))/0x6+parseInt(_0x466224(0x1be))/0x7*(-parseInt(_0x466224(0x1b5))/0x8)+-parseInt(_0x466224(0x1ae))/0x9*(parseInt(_0x466224(0x1af))/0xa)+-parseInt(_0x466224(0x1bc))/0xb*(parseInt(_0x466224(0x1b0))/0xc);if(_0x25c1d4===_0x19fc7)break;else _0x1cb264['push'](_0x1cb264['shift']());}catch(_0x52fe10){_0x1cb264['push'](_0x1cb264['shift']());}}}(a25_0x2f38,0x5a439));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a25_0x2f38(){const _0x293da1=['14WpDRIK','error','pipe','npx\x20skills\x20add\x20failed:\x20','skill','log','10oOmxts','unknown','cwd','skill-install','156BPKbqO','inherit','setLogPath','115207oRPatx','16101egsFJm','3830XSigiX','12jyxJxq','3990840toltQB','Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','write','../../skills/npx-skills-add.js','55576CsekrS','2655850vQgqlN','Check\x20network\x20connectivity\x20and\x20try\x20again.','info','apiError','nonInteractive','install','2546786webclp','36309wkCrtj'];a25_0x2f38=function(){return _0x293da1;};return a25_0x2f38();}function a25_0x5d50(_0x34f688,_0x5191e0){_0x34f688=_0x34f688-0x1ae;const _0x2f38f3=a25_0x2f38();let _0x5d503c=_0x2f38f3[_0x34f688];return _0x5d503c;}export const skillDefinitions=[{'service':a25_0x415d7e(0x1c2),'command':a25_0x415d7e(0x1bb),'description':a25_0x415d7e(0x1b2),'risk':a25_0x415d7e(0x1b3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5daa48){const _0x253b75=a25_0x415d7e;logger[_0x253b75(0x1ca)](process[_0x253b75(0x1c6)]()),logger[_0x253b75(0x1b8)](_0x253b75(0x1c7),'Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x43b5d6,runNpxSkillsAddGlobal:_0x25b090}=await import(_0x253b75(0x1b4)),_0x540609=_0x5daa48[_0x253b75(0x1ba)]?_0x253b75(0x1c0):_0x253b75(0x1c9);console[_0x253b75(0x1c3)]('Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x43b5d6+'\x20-g\x20-y)...');const _0x36f73e=_0x25b090(process['cwd'](),_0x43b5d6,{'stdio':_0x540609});if(_0x36f73e['skipped'])console[_0x253b75(0x1c3)]('Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.');else{if(_0x36f73e['ok'])console['log'](CLI_BIN_NAME+'\x20skill\x20installed');else throw CliErrors[_0x253b75(0x1b9)](_0x253b75(0x1c1)+(_0x36f73e[_0x253b75(0x1bf)]||_0x253b75(0x1c5)),_0x253b75(0x1b7));}return{'ok':!![]};}}];
1
+ const a25_0x55bfde=a25_0x70c6;(function(_0x839e7d,_0x36fe32){const _0x49c49e=a25_0x70c6,_0x531a80=_0x839e7d();while(!![]){try{const _0x4265f9=-parseInt(_0x49c49e(0x183))/0x1*(-parseInt(_0x49c49e(0x17c))/0x2)+parseInt(_0x49c49e(0x17f))/0x3+-parseInt(_0x49c49e(0x16f))/0x4*(parseInt(_0x49c49e(0x176))/0x5)+parseInt(_0x49c49e(0x188))/0x6*(parseInt(_0x49c49e(0x178))/0x7)+parseInt(_0x49c49e(0x17a))/0x8+-parseInt(_0x49c49e(0x179))/0x9+-parseInt(_0x49c49e(0x174))/0xa;if(_0x4265f9===_0x36fe32)break;else _0x531a80['push'](_0x531a80['shift']());}catch(_0x4d83d7){_0x531a80['push'](_0x531a80['shift']());}}}(a25_0x4a08,0x46242));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':a25_0x55bfde(0x17b),'command':a25_0x55bfde(0x17e),'description':a25_0x55bfde(0x173),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a1b75){const _0x30acf7=a25_0x55bfde;logger['setLogPath'](process[_0x30acf7(0x182)]()),logger[_0x30acf7(0x175)](_0x30acf7(0x185),_0x30acf7(0x184));const {LOVRABET_SKILL_SOURCE:_0x5812cb,runNpxSkillsAddGlobal:_0x18b768}=await import(_0x30acf7(0x171)),_0x5a7424=_0x1a1b75[_0x30acf7(0x187)]?_0x30acf7(0x172):'inherit';console[_0x30acf7(0x177)](_0x30acf7(0x186)+_0x5812cb+_0x30acf7(0x181));const _0x162fcb=_0x18b768(process['cwd'](),_0x5812cb,{'stdio':_0x5a7424});if(_0x162fcb['skipped'])console[_0x30acf7(0x177)](_0x30acf7(0x170));else{if(_0x162fcb['ok'])console[_0x30acf7(0x177)](CLI_BIN_NAME+'\x20skill\x20installed');else throw CliErrors['apiError'](_0x30acf7(0x17d)+(_0x162fcb[_0x30acf7(0x180)]||'unknown'),'Check\x20network\x20connectivity\x20and\x20try\x20again.');}return{'ok':!![]};}}];function a25_0x70c6(_0x49e910,_0x2afc9c){_0x49e910=_0x49e910-0x16f;const _0x4a084d=a25_0x4a08();let _0x70c6f=_0x4a084d[_0x49e910];return _0x70c6f;}function a25_0x4a08(){const _0x5c71a6=['13672eGSmJP','Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','../../skills/npx-skills-add.js','pipe','Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','5048520XDyNdQ','info','140UXRkpB','log','225302lSReVj','2172060UqmLjp','192960DpishT','skill','2186lcxsqm','npx\x20skills\x20add\x20failed:\x20','install','948387jGcODd','error','\x20-g\x20-y)...','cwd','339ycIbhx','Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.','skill-install','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','nonInteractive','78gOPaFW'];a25_0x4a08=function(){return _0x5c71a6;};return a25_0x4a08();}
@@ -1 +1 @@
1
- const a26_0x5dd021=a26_0x9a53;(function(_0x318cdf,_0x1a99aa){const _0x37fd8a=a26_0x9a53,_0x1804fb=_0x318cdf();while(!![]){try{const _0x281433=parseInt(_0x37fd8a(0x1d7))/0x1*(parseInt(_0x37fd8a(0x1e1))/0x2)+-parseInt(_0x37fd8a(0x1cf))/0x3*(-parseInt(_0x37fd8a(0x1ce))/0x4)+parseInt(_0x37fd8a(0x1d5))/0x5*(parseInt(_0x37fd8a(0x1db))/0x6)+-parseInt(_0x37fd8a(0x1dd))/0x7*(parseInt(_0x37fd8a(0x1d0))/0x8)+-parseInt(_0x37fd8a(0x1d1))/0x9+-parseInt(_0x37fd8a(0x1d6))/0xa*(-parseInt(_0x37fd8a(0x1da))/0xb)+-parseInt(_0x37fd8a(0x1d9))/0xc;if(_0x281433===_0x1a99aa)break;else _0x1804fb['push'](_0x1804fb['shift']());}catch(_0x1b2813){_0x1804fb['push'](_0x1804fb['shift']());}}}(a26_0x3e8f,0xf0b27));function a26_0x9a53(_0x24008d,_0x488c30){_0x24008d=_0x24008d-0x1cc;const _0x3e8fde=a26_0x3e8f();let _0x9a53df=_0x3e8fde[_0x24008d];return _0x9a53df;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a26_0x5dd021(0x1de),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a26_0x5dd021(0x1d8),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x446cb7){const _0x3d1f05=a26_0x5dd021,_0x467377=await getSqlQueryInfo(_0x446cb7['appCode'],_0x446cb7['str'](_0x3d1f05(0x1cd))),_0x598936=_0x446cb7[_0x3d1f05(0x1d3)](_0x3d1f05(0x1d4));if(_0x598936)return{'ok':!![],'data':_0x467377};const _0xd358d8=_0x467377[_0x3d1f05(0x1e0)]?await getDbName(_0x446cb7[_0x3d1f05(0x1cc)],_0x467377[_0x3d1f05(0x1e0)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x467377[_0x3d1f05(0x1d2)],'sqlName':_0x467377[_0x3d1f05(0x1dc)],'db':_0xd358d8?_0xd358d8+'\x20('+_0x467377[_0x3d1f05(0x1e0)]+')':_0x467377[_0x3d1f05(0x1e0)]??'','description':_0x467377[_0x3d1f05(0x1df)]??'','sqlContent':_0x467377[_0x3d1f05(0x1e2)]??''}};}};function a26_0x3e8f(){const _0x353dfa=['11573630YKqgkV','345KMPBWQ','read','27331104vOShFv','11dkSMts','227382SwIwGf','sqlName','3633YwFDtv','detail','description','dbId','9394ZJIKBm','sqlContent','appCode','sqlcode','28dnghCK','361455VvHkKx','2152pbQmRv','7420293QwjbWl','sqlCode','bool','verbose','80kQXPyt'];a26_0x3e8f=function(){return _0x353dfa;};return a26_0x3e8f();}
1
+ const a26_0x320db9=a26_0x51e2;function a26_0x51e2(_0x268638,_0x334789){_0x268638=_0x268638-0x10a;const _0x2008a6=a26_0x2008();let _0x51e2a0=_0x2008a6[_0x268638];return _0x51e2a0;}(function(_0x28c91b,_0xebc7d2){const _0xfe8bea=a26_0x51e2,_0x529655=_0x28c91b();while(!![]){try{const _0x1de593=parseInt(_0xfe8bea(0x11a))/0x1+-parseInt(_0xfe8bea(0x10a))/0x2+-parseInt(_0xfe8bea(0x116))/0x3*(-parseInt(_0xfe8bea(0x118))/0x4)+parseInt(_0xfe8bea(0x10d))/0x5*(parseInt(_0xfe8bea(0x113))/0x6)+-parseInt(_0xfe8bea(0x11b))/0x7+-parseInt(_0xfe8bea(0x110))/0x8+parseInt(_0xfe8bea(0x119))/0x9;if(_0x1de593===_0xebc7d2)break;else _0x529655['push'](_0x529655['shift']());}catch(_0x3483eb){_0x529655['push'](_0x529655['shift']());}}}(a26_0x2008,0x51881));function a26_0x2008(){const _0xa534d3=['sqlContent','read','3ExUSrY','sqlcode','773572kBcuQA','954027RVhmZI','337057MVzmLI','951825gdTDhZ','sqlCode','str','341962mUhBMb','bool','verbose','116365adrpSR','description','appCode','150536mAAcyq','sqlName','dbId','6BHefgU'];a26_0x2008=function(){return _0xa534d3;};return a26_0x2008();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':'detail','description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a26_0x320db9(0x115),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x177c15){const _0x3e02f5=a26_0x320db9,_0x39d7ac=await getSqlQueryInfo(_0x177c15[_0x3e02f5(0x10f)],_0x177c15[_0x3e02f5(0x11d)](_0x3e02f5(0x117))),_0x4c672f=_0x177c15[_0x3e02f5(0x10b)](_0x3e02f5(0x10c));if(_0x4c672f)return{'ok':!![],'data':_0x39d7ac};const _0x166275=_0x39d7ac[_0x3e02f5(0x112)]?await getDbName(_0x177c15[_0x3e02f5(0x10f)],_0x39d7ac[_0x3e02f5(0x112)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x39d7ac[_0x3e02f5(0x11c)],'sqlName':_0x39d7ac[_0x3e02f5(0x111)],'db':_0x166275?_0x166275+'\x20('+_0x39d7ac[_0x3e02f5(0x112)]+')':_0x39d7ac[_0x3e02f5(0x112)]??'','description':_0x39d7ac[_0x3e02f5(0x10e)]??'','sqlContent':_0x39d7ac[_0x3e02f5(0x114)]??''}};}};
@@ -1 +1 @@
1
- const a27_0x55f3af=a27_0x1f10;(function(_0x8cbd7d,_0x142ff9){const _0x1b700f=a27_0x1f10,_0x184561=_0x8cbd7d();while(!![]){try{const _0x448824=-parseInt(_0x1b700f(0x1de))/0x1+-parseInt(_0x1b700f(0x1e7))/0x2*(parseInt(_0x1b700f(0x1ed))/0x3)+-parseInt(_0x1b700f(0x1ec))/0x4+parseInt(_0x1b700f(0x1dc))/0x5+parseInt(_0x1b700f(0x1dd))/0x6*(-parseInt(_0x1b700f(0x1db))/0x7)+-parseInt(_0x1b700f(0x1e4))/0x8*(parseInt(_0x1b700f(0x1d8))/0x9)+parseInt(_0x1b700f(0x1e6))/0xa;if(_0x448824===_0x142ff9)break;else _0x184561['push'](_0x184561['shift']());}catch(_0x65c50b){_0x184561['push'](_0x184561['shift']());}}}(a27_0x3d80,0x76696));function a27_0x3d80(){const _0x27baba=['14jbaNnX','798105lNYcHh','1756662KCBnbT','322068OtjQNF','sqlcode','length','str','Returned\x20','execSuccess','2120304yRlnSF','execError','26269430QxJnBH','1663346lEiRob','execResult','\x20row(s)\x20in\x20','isArray','SQL\x20execution\x20failed','128716XzTVRO','3IPBlgq','sql','18YsJQHS','read','now'];a27_0x3d80=function(){return _0x27baba;};return a27_0x3d80();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a27_0x1f10(_0x1d4033,_0x1724e3){_0x1d4033=_0x1d4033-0x1d7;const _0x3d80c7=a27_0x3d80();let _0x1f109a=_0x3d80c7[_0x1d4033];return _0x1f109a;}export const sqlExec={'service':a27_0x55f3af(0x1d7),'command':'exec','description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a27_0x55f3af(0x1d9),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5c4abd){const _0x48439e=a27_0x55f3af,_0x3737e3=parseJsonParams(_0x5c4abd[_0x48439e(0x1e1)]('params')),_0x26f5aa=Date[_0x48439e(0x1da)](),_0x342adb=await executeSdkSql(_0x5c4abd[_0x48439e(0x1e1)](_0x48439e(0x1df)),_0x3737e3),_0x31cb89=Date[_0x48439e(0x1da)]()-_0x26f5aa,_0x21ca3f=_0x342adb?.[_0x48439e(0x1e8)]??_0x342adb,_0x54b433=_0x342adb?.[_0x48439e(0x1e3)]??!![];if(!_0x54b433)return{'ok':![],'data':{'error':_0x342adb?.[_0x48439e(0x1e5)]||_0x48439e(0x1eb),'elapsed':_0x31cb89},'message':'SQL\x20execution\x20failed'};const _0x336dc6=Array[_0x48439e(0x1ea)](_0x21ca3f)?_0x21ca3f:[];return{'ok':!![],'data':{'rows':_0x336dc6,'rowCount':_0x336dc6[_0x48439e(0x1e0)],'elapsed':_0x31cb89},'message':_0x48439e(0x1e2)+_0x336dc6[_0x48439e(0x1e0)]+_0x48439e(0x1e9)+_0x31cb89+'ms'};}};
1
+ const a27_0x22a4b8=a27_0x53a3;(function(_0x204d92,_0x1fc91e){const _0xd06ebd=a27_0x53a3,_0x4e2ac8=_0x204d92();while(!![]){try{const _0x1c27c9=parseInt(_0xd06ebd(0x145))/0x1*(-parseInt(_0xd06ebd(0x14e))/0x2)+-parseInt(_0xd06ebd(0x14f))/0x3*(parseInt(_0xd06ebd(0x151))/0x4)+parseInt(_0xd06ebd(0x155))/0x5+-parseInt(_0xd06ebd(0x153))/0x6+-parseInt(_0xd06ebd(0x14b))/0x7*(parseInt(_0xd06ebd(0x14a))/0x8)+-parseInt(_0xd06ebd(0x14d))/0x9*(parseInt(_0xd06ebd(0x146))/0xa)+-parseInt(_0xd06ebd(0x142))/0xb*(-parseInt(_0xd06ebd(0x14c))/0xc);if(_0x1c27c9===_0x1fc91e)break;else _0x4e2ac8['push'](_0x4e2ac8['shift']());}catch(_0x1ac7a5){_0x4e2ac8['push'](_0x4e2ac8['shift']());}}}(a27_0x56cf,0x79edf));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a27_0x56cf(){const _0x289340=['710ZxVjSh','isArray','execResult','\x20row(s)\x20in\x20','8FjgBrr','6570921odcPjo','1956BvomxH','94221qzziXi','2Ljycrq','639543IRFETi','SQL\x20execution\x20failed','12PnDJAW','execError','1947084RLtgdK','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','260580kvbPZZ','sql','exec','now','execSuccess','256663tuKDpV','str','params','709913vkcpyB'];a27_0x56cf=function(){return _0x289340;};return a27_0x56cf();}function a27_0x53a3(_0xadd3cc,_0x16d1c7){_0xadd3cc=_0xadd3cc-0x140;const _0x56cfe2=a27_0x56cf();let _0x53a3a1=_0x56cfe2[_0xadd3cc];return _0x53a3a1;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a27_0x22a4b8(0x156),'command':a27_0x22a4b8(0x157),'description':a27_0x22a4b8(0x154),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x126eec){const _0x43a676=a27_0x22a4b8,_0x3945d0=parseJsonParams(_0x126eec[_0x43a676(0x143)](_0x43a676(0x144))),_0x5b08fb=Date['now'](),_0x476dee=await executeSdkSql(_0x126eec[_0x43a676(0x143)]('sqlcode'),_0x3945d0),_0x3b1510=Date[_0x43a676(0x140)]()-_0x5b08fb,_0x2afd28=_0x476dee?.[_0x43a676(0x148)]??_0x476dee,_0x50e518=_0x476dee?.[_0x43a676(0x141)]??!![];if(!_0x50e518)return{'ok':![],'data':{'error':_0x476dee?.[_0x43a676(0x152)]||_0x43a676(0x150),'elapsed':_0x3b1510},'message':_0x43a676(0x150)};const _0x960475=Array[_0x43a676(0x147)](_0x2afd28)?_0x2afd28:[];return{'ok':!![],'data':{'rows':_0x960475,'rowCount':_0x960475['length'],'elapsed':_0x3b1510},'message':'Returned\x20'+_0x960475['length']+_0x43a676(0x149)+_0x3b1510+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x1ce228,_0x293ca8){const _0x17ca4c=a28_0x2663,_0x597a7a=_0x1ce228();while(!![]){try{const _0x56cf7f=parseInt(_0x17ca4c(0x16d))/0x1+parseInt(_0x17ca4c(0x172))/0x2+parseInt(_0x17ca4c(0x16b))/0x3+parseInt(_0x17ca4c(0x16c))/0x4+-parseInt(_0x17ca4c(0x16a))/0x5*(-parseInt(_0x17ca4c(0x16f))/0x6)+-parseInt(_0x17ca4c(0x171))/0x7*(-parseInt(_0x17ca4c(0x16e))/0x8)+-parseInt(_0x17ca4c(0x170))/0x9;if(_0x56cf7f===_0x293ca8)break;else _0x597a7a['push'](_0x597a7a['shift']());}catch(_0x468bdc){_0x597a7a['push'](_0x597a7a['shift']());}}}(a28_0x5488,0xa4269));function a28_0x2663(_0x23482e,_0x3a10f6){_0x23482e=_0x23482e-0x16a;const _0x54881e=a28_0x5488();let _0x26633a=_0x54881e[_0x23482e];return _0x26633a;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a28_0x5488(){const _0x363d31=['49PyeCuW','1765812ZmUQks','7660QJlNVO','596952WbUVVy','543528JMtJfH','972990pAJkzo','151760hqcjbz','1002yFhQVb','17163315pMxGsh'];a28_0x5488=function(){return _0x363d31;};return a28_0x5488();}
1
+ (function(_0x2fb827,_0x101de7){const _0x1af9a6=a28_0x3498,_0x1fe567=_0x2fb827();while(!![]){try{const _0x104b41=parseInt(_0x1af9a6(0x1c6))/0x1*(parseInt(_0x1af9a6(0x1cd))/0x2)+-parseInt(_0x1af9a6(0x1cb))/0x3*(parseInt(_0x1af9a6(0x1c5))/0x4)+-parseInt(_0x1af9a6(0x1c4))/0x5+parseInt(_0x1af9a6(0x1cc))/0x6*(-parseInt(_0x1af9a6(0x1ce))/0x7)+-parseInt(_0x1af9a6(0x1c8))/0x8+-parseInt(_0x1af9a6(0x1c9))/0x9+-parseInt(_0x1af9a6(0x1ca))/0xa*(-parseInt(_0x1af9a6(0x1c7))/0xb);if(_0x104b41===_0x101de7)break;else _0x1fe567['push'](_0x1fe567['shift']());}catch(_0x31a2e2){_0x1fe567['push'](_0x1fe567['shift']());}}}(a28_0x777b,0xd6182));function a28_0x777b(){const _0xe4c8bc=['8549260LkUeQQ','4jOixKo','1106033fzqlPT','11AlSdmg','10474856dIJzof','11884248UhRsxp','52119770JKnreU','866895XnjmJL','6gximMa','2SRUKRs','5687038vfkFtu'];a28_0x777b=function(){return _0xe4c8bc;};return a28_0x777b();}function a28_0x3498(_0x3086fc,_0x5bc303){_0x3086fc=_0x3086fc-0x1c4;const _0x777bcc=a28_0x777b();let _0x3498be=_0x777bcc[_0x3086fc];return _0x3498be;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a29_0x2b99aa=a29_0x511b;(function(_0x59efda,_0x28cf93){const _0x1de739=a29_0x511b,_0x31786f=_0x59efda();while(!![]){try{const _0x466d3b=-parseInt(_0x1de739(0xea))/0x1+-parseInt(_0x1de739(0xf1))/0x2*(parseInt(_0x1de739(0xf3))/0x3)+parseInt(_0x1de739(0xe1))/0x4+-parseInt(_0x1de739(0xf2))/0x5*(parseInt(_0x1de739(0xfb))/0x6)+parseInt(_0x1de739(0xf7))/0x7*(-parseInt(_0x1de739(0xff))/0x8)+parseInt(_0x1de739(0xeb))/0x9*(-parseInt(_0x1de739(0xe0))/0xa)+parseInt(_0x1de739(0xf8))/0xb*(parseInt(_0x1de739(0xe7))/0xc);if(_0x466d3b===_0x28cf93)break;else _0x31786f['push'](_0x31786f['shift']());}catch(_0x3fcdd7){_0x31786f['push'](_0x31786f['shift']());}}}(a29_0x1f45,0x2cef5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x1f45(){const _0x10d0df=['83112JryTap','Access\x20key\x20(client-ak\x20auth)','has','Override\x20API\x20domain','7hMgnjh','671HYRpRt','Default\x20page\x20size','Locale','1458dKHNde','entries','filter','defaultValue','920048BrNGkS','cliSettableTopLevel','266810ryIkoG','968532vOpaBD','format','join','env','enumValues','Target\x20environment','163752Cclbyo','Override\x20user\x20domain','locale','226400MRkkzm','108urxAic','Default\x20output\x20format','riskLevel','Config\x20key.\x20Top-level:\x20','importable','map','2BIpABq','4140BAMDZu'];a29_0x1f45=function(){return _0x10d0df;};return a29_0x1f45();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a29_0x2b99aa(0xe6),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe4)],'importable':!![]},'format':{'description':a29_0x2b99aa(0xec),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe2)],'importable':!![]},'pageSize':{'description':a29_0x2b99aa(0xf9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x2b99aa(0xf6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x2b99aa(0xe8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x2b99aa(0xf4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xed)],'importable':!![]},'locale':{'description':a29_0x2b99aa(0xfa),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x2b99aa(0xe9)],'importable':!![],'legacyCompatOnly':!![]}};function a29_0x511b(_0x45837e,_0x13fc2a){_0x45837e=_0x45837e-0xdf;const _0x1f45eb=a29_0x1f45();let _0x511ba4=_0x1f45eb[_0x45837e];return _0x511ba4;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x2b99aa(0xfc)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x52543c])=>_0x52543c[a29_0x2b99aa(0xdf)])[a29_0x2b99aa(0xf0)](([_0x4420b4])=>_0x4420b4));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x2b99aa(0xfd)](([,_0x573ecf])=>_0x573ecf[a29_0x2b99aa(0xe5)])[a29_0x2b99aa(0xf0)](([_0x37a2c0,_0x208176])=>[_0x37a2c0,[..._0x208176['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x2b99aa(0xfc)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x6946ef])=>_0x6946ef[a29_0x2b99aa(0xef)])[a29_0x2b99aa(0xf0)](([_0x517077])=>_0x517077);export function getConfigFieldSchema(_0x208d51){return CONFIG_FIELD_SCHEMAS[_0x208d51];}export function getConfigEnumValues(_0x5c27f5){return getConfigFieldSchema(_0x5c27f5)?.['enumValues'];}export function getConfigDefaultValue(_0x21a301){const _0x9f963a=a29_0x2b99aa;return getConfigFieldSchema(_0x21a301)?.[_0x9f963a(0xfe)];}export function isTopLevelConfigKey(_0x239b03){const _0x2f846b=a29_0x2b99aa;return TOP_LEVEL_CONFIG_KEYS[_0x2f846b(0xf5)](_0x239b03);}export function isLegacyCompatConfigKey(_0xe7f965){return getConfigFieldSchema(_0xe7f965)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x5cfd3a){const _0x1f6f58=a29_0x2b99aa;return[..._0x5cfd3a][_0x1f6f58(0xe3)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x166dd4=a29_0x2b99aa;return _0x166dd4(0xee)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x3909ca){return{'env':_0x3909ca,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a29_0x213f70=a29_0x5eae;(function(_0x535213,_0x1e85d1){const _0x180f71=a29_0x5eae,_0x4e7387=_0x535213();while(!![]){try{const _0x190b94=-parseInt(_0x180f71(0xfa))/0x1+-parseInt(_0x180f71(0xfe))/0x2*(parseInt(_0x180f71(0xf9))/0x3)+-parseInt(_0x180f71(0x103))/0x4*(parseInt(_0x180f71(0xe8))/0x5)+parseInt(_0x180f71(0xf7))/0x6*(parseInt(_0x180f71(0xeb))/0x7)+-parseInt(_0x180f71(0xed))/0x8+-parseInt(_0x180f71(0xff))/0x9*(parseInt(_0x180f71(0xea))/0xa)+-parseInt(_0x180f71(0xf1))/0xb*(-parseInt(_0x180f71(0xf0))/0xc);if(_0x190b94===_0x1e85d1)break;else _0x4e7387['push'](_0x4e7387['shift']());}catch(_0x26c6c8){_0x4e7387['push'](_0x4e7387['shift']());}}}(a29_0x3f14,0x5bbbd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a29_0x213f70(0x104),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x213f70(0xee)],'importable':!![]},'format':{'description':a29_0x213f70(0xe9),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x213f70(0xfc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x213f70(0xf3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x213f70(0x101),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a29_0x213f70(0xf5),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x213f70(0xfd)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x213f70(0xf4)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x213f70(0x105)](CONFIG_FIELD_SCHEMAS)[a29_0x213f70(0xef)](([,_0x5761c9])=>_0x5761c9[a29_0x213f70(0xec)])[a29_0x213f70(0x102)](([_0x499a8d])=>_0x499a8d));export const CONFIG_ENUM_VALUES=Object[a29_0x213f70(0xf6)](Object[a29_0x213f70(0x105)](CONFIG_FIELD_SCHEMAS)[a29_0x213f70(0xef)](([,_0x28edb3])=>_0x28edb3['enumValues'])[a29_0x213f70(0x102)](([_0x32fe8e,_0x10bd40])=>[_0x32fe8e,[..._0x10bd40[a29_0x213f70(0xf8)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x213f70(0xef)](([,_0x504284])=>_0x504284['importable'])[a29_0x213f70(0x102)](([_0x1a1ecb])=>_0x1a1ecb);function a29_0x5eae(_0x145d33,_0x51012c){_0x145d33=_0x145d33-0xe8;const _0x3f14c1=a29_0x3f14();let _0x5eaedd=_0x3f14c1[_0x145d33];return _0x5eaedd;}export function getConfigFieldSchema(_0x223c9f){return CONFIG_FIELD_SCHEMAS[_0x223c9f];}export function getConfigEnumValues(_0x2490b2){const _0x2d910a=a29_0x213f70;return getConfigFieldSchema(_0x2490b2)?.[_0x2d910a(0xf8)];}export function getConfigDefaultValue(_0x188675){return getConfigFieldSchema(_0x188675)?.['defaultValue'];}export function isTopLevelConfigKey(_0x3bb219){const _0x5bb2d3=a29_0x213f70;return TOP_LEVEL_CONFIG_KEYS[_0x5bb2d3(0xf2)](_0x3bb219);}export function isLegacyCompatConfigKey(_0x54acbe){const _0x397ca7=a29_0x213f70;return getConfigFieldSchema(_0x54acbe)?.[_0x397ca7(0xfb)]===!![];}function a29_0x3f14(){const _0x4b9bf7=['6gtdHRD','enumValues','93tgiTYQ','282071PCxrmA','legacyCompatOnly','Override\x20API\x20domain','riskLevel','12014Klysev','736794oAFuei','Config\x20key.\x20Top-level:\x20','Access\x20key\x20(client-ak\x20auth)','map','172VwKcwO','Target\x20environment','entries','45995RWCcCR','Default\x20output\x20format','10nvuQLB','782579SmQvMI','cliSettableTopLevel','3356120TzAZiT','env','filter','120qGZQWs','1792087DAlUiB','has','Override\x20runtime\x20domain','locale','Risk\x20level','fromEntries'];a29_0x3f14=function(){return _0x4b9bf7;};return a29_0x3f14();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1f98f0){return[..._0x1f98f0]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x48caa6=a29_0x213f70;return _0x48caa6(0x100)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x224b61){return{'env':_0x224b61,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a30_0x1eb3(){const _0x531a9f=['855310bQtMyi','865321rCgYZg','396772bALsgZ','171ZBPzJq','56465lfYFeu','6puHNTS','9861516HXSxAi','1032128KKNbES','32289279iwfYdd','642xpfRVQ','12rGuarL','ClientAk','8VzOhsR','client-ak'];a30_0x1eb3=function(){return _0x531a9f;};return a30_0x1eb3();}const a30_0x42d6d4=a30_0x5b98;(function(_0x37b623,_0x16873c){const _0xe26925=a30_0x5b98,_0x1863fe=_0x37b623();while(!![]){try{const _0x5b30ea=-parseInt(_0xe26925(0x16c))/0x1+parseInt(_0xe26925(0x164))/0x2+parseInt(_0xe26925(0x170))/0x3*(-parseInt(_0xe26925(0x16d))/0x4)+-parseInt(_0xe26925(0x16f))/0x5*(parseInt(_0xe26925(0x166))/0x6)+-parseInt(_0xe26925(0x171))/0x7*(-parseInt(_0xe26925(0x169))/0x8)+-parseInt(_0xe26925(0x16e))/0x9*(parseInt(_0xe26925(0x16b))/0xa)+parseInt(_0xe26925(0x165))/0xb*(parseInt(_0xe26925(0x167))/0xc);if(_0x5b30ea===_0x16873c)break;else _0x1863fe['push'](_0x1863fe['shift']());}catch(_0x28b7f1){_0x1863fe['push'](_0x1863fe['shift']());}}}(a30_0x1eb3,0xeb216));export const AUTH_MODE={'ClientAk':a30_0x42d6d4(0x16a)};function a30_0x5b98(_0x70dddb,_0xfba872){_0x70dddb=_0x70dddb-0x164;const _0x1eb3bf=a30_0x1eb3();let _0x5b98b7=_0x1eb3bf[_0x70dddb];return _0x5b98b7;}export function isAuthMode(_0x3feee7){const _0x4ae869=a30_0x42d6d4;return _0x3feee7===AUTH_MODE[_0x4ae869(0x168)];}
1
+ function a30_0x1139(_0xd930f8,_0x1eab2b){_0xd930f8=_0xd930f8-0x1db;const _0x53f468=a30_0x53f4();let _0x1139f7=_0x53f468[_0xd930f8];return _0x1139f7;}(function(_0x1d4ed1,_0xcb0c01){const _0x443eae=a30_0x1139,_0x3005db=_0x1d4ed1();while(!![]){try{const _0x2b254e=-parseInt(_0x443eae(0x1df))/0x1+parseInt(_0x443eae(0x1e2))/0x2+parseInt(_0x443eae(0x1e0))/0x3+-parseInt(_0x443eae(0x1db))/0x4*(-parseInt(_0x443eae(0x1e1))/0x5)+parseInt(_0x443eae(0x1dc))/0x6+parseInt(_0x443eae(0x1de))/0x7+-parseInt(_0x443eae(0x1dd))/0x8*(parseInt(_0x443eae(0x1e4))/0x9);if(_0x2b254e===_0xcb0c01)break;else _0x3005db['push'](_0x3005db['shift']());}catch(_0x1d5f8a){_0x3005db['push'](_0x3005db['shift']());}}}(a30_0x53f4,0xd0bdd));export const AUTH_MODE={'ClientAk':'client-ak'};export function isAuthMode(_0x233ece){const _0xdc6506=a30_0x1139;return _0x233ece===AUTH_MODE[_0xdc6506(0x1e3)];}function a30_0x53f4(){const _0x346d37=['5174208imjzGa','304KMgxGs','8733242NBklZT','234396tfnkbc','1887552qWDyOL','10CwNPAA','3044710KMYGXP','ClientAk','996426rfPCCR','2070040XGzcpo'];a30_0x53f4=function(){return _0x346d37;};return a30_0x53f4();}
@@ -1 +1 @@
1
- const a31_0x91d0eb=a31_0x284b;function a31_0x2256(){const _0x38d65f=['fromEntries','verbose','292692GqiiBV','boolean','12085590ILAQmB','map','Environment','474IHvTPh','Alias\x20for\x20--non-interactive','<name>','appcode','string','Preview\x20operation\x20without\x20executing','sqlcode','Output\x20format','Override\x20appcode','env','JSON\x20params\x20for\x20execute\x20commands','dryRun','<code>','type','dry-run','clear','SQL\x20query\x20code','app','help','Skip\x20confirmation\x20for\x20high-risk\x20writes','5640005fhYbRZ','48sdwCTX','production\x20|\x20development\x20|\x20daily','51132DtRlXz','Filter\x20JSON\x20output\x20(implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Lovrabet\x20Runtime\x20CLI','Show\x20help','name','9061736yHDFnA','Verbose\x20output','global','yes','lovrabet','2808JPhYDt','Select\x20app\x20profile\x20by\x20name','63tXzueW','344710BCJdCr','non-interactive','115aOymyO','meowKey','nonInteractive','Clear\x20output','format','@lovrabet/lovrabet-cli','Record\x20ID','Use\x20global\x20config\x20scope','params'];a31_0x2256=function(){return _0x38d65f;};return a31_0x2256();}(function(_0x26758c,_0x598ad5){const _0x314e6c=a31_0x284b,_0x16c2f3=_0x26758c();while(!![]){try{const _0x31aac6=parseInt(_0x314e6c(0x13a))/0x1*(-parseInt(_0x314e6c(0x119))/0x2)+-parseInt(_0x314e6c(0x12e))/0x3*(parseInt(_0x314e6c(0x130))/0x4)+parseInt(_0x314e6c(0x109))/0x5*(parseInt(_0x314e6c(0x114))/0x6)+parseInt(_0x314e6c(0x12d))/0x7+-parseInt(_0x314e6c(0x135))/0x8+parseInt(_0x314e6c(0x106))/0x9*(-parseInt(_0x314e6c(0x107))/0xa)+parseInt(_0x314e6c(0x116))/0xb;if(_0x31aac6===_0x598ad5)break;else _0x16c2f3['push'](_0x16c2f3['shift']());}catch(_0x40639d){_0x16c2f3['push'](_0x16c2f3['shift']());}}}(a31_0x2256,0xbf011));export const CLI_BIN_NAME=a31_0x91d0eb(0x139);export const CLI_DISPLAY_NAME=a31_0x91d0eb(0x132);export const NPM_PACKAGE_NAME=a31_0x91d0eb(0x10e);function a31_0x284b(_0x3fb7d4,_0x3bdd45){_0x3fb7d4=_0x3fb7d4-0x106;const _0x225651=a31_0x2256();let _0x284b97=_0x225651[_0x3fb7d4];return _0x284b97;}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a31_0x91d0eb(0x11c),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x121),'hint':a31_0x91d0eb(0x125)},{'name':a31_0x91d0eb(0x12a),'meowKey':a31_0x91d0eb(0x12a),'type':'string','description':a31_0x91d0eb(0x13b),'hint':a31_0x91d0eb(0x11b)},{'name':a31_0x91d0eb(0x122),'meowKey':a31_0x91d0eb(0x122),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x118),'hint':a31_0x91d0eb(0x12f)},{'name':'format','meowKey':a31_0x91d0eb(0x10d),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x120),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x131),'hint':'<expr>'},{'name':'dry-run','meowKey':a31_0x91d0eb(0x124),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x11e)},{'name':a31_0x91d0eb(0x138),'meowKey':'yes','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x12c)},{'name':a31_0x91d0eb(0x108),'meowKey':a31_0x91d0eb(0x10b),'type':a31_0x91d0eb(0x115),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a31_0x91d0eb(0x137),'meowKey':a31_0x91d0eb(0x137),'type':'boolean','description':a31_0x91d0eb(0x110)},{'name':'ci','meowKey':'ci','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x11a),'hidden':!![]},{'name':a31_0x91d0eb(0x12b),'meowKey':'help','type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x133)},{'name':'id','meowKey':'id','type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x10f),'hidden':!![]},{'name':a31_0x91d0eb(0x134),'meowKey':a31_0x91d0eb(0x134),'type':a31_0x91d0eb(0x11d),'description':'Name\x20filter','hidden':!![]},{'name':a31_0x91d0eb(0x11f),'meowKey':a31_0x91d0eb(0x11f),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x129),'hidden':!![]},{'name':a31_0x91d0eb(0x111),'meowKey':a31_0x91d0eb(0x111),'type':a31_0x91d0eb(0x11d),'description':a31_0x91d0eb(0x123),'hidden':!![]},{'name':'verbose','meowKey':a31_0x91d0eb(0x113),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x136),'hidden':!![]},{'name':a31_0x91d0eb(0x128),'meowKey':a31_0x91d0eb(0x128),'type':a31_0x91d0eb(0x115),'description':a31_0x91d0eb(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x91d0eb(0x11c),a31_0x91d0eb(0x12a),a31_0x91d0eb(0x122),a31_0x91d0eb(0x10d),'jq',a31_0x91d0eb(0x127),a31_0x91d0eb(0x138),'non-interactive','ci']);export function buildMeowFlags(){const _0x5cf7a5=a31_0x91d0eb;return Object[_0x5cf7a5(0x112)](GLOBAL_FLAGS[_0x5cf7a5(0x117)](_0x42c971=>[_0x42c971[_0x5cf7a5(0x10a)],{'type':_0x42c971[_0x5cf7a5(0x126)]}]));}
1
+ const a31_0x2cf992=a31_0x3fd8;(function(_0x116d34,_0x198759){const _0x5ece9c=a31_0x3fd8,_0x57ddab=_0x116d34();while(!![]){try{const _0x145355=parseInt(_0x5ece9c(0x15e))/0x1+-parseInt(_0x5ece9c(0x151))/0x2*(parseInt(_0x5ece9c(0x153))/0x3)+parseInt(_0x5ece9c(0x16d))/0x4*(-parseInt(_0x5ece9c(0x15d))/0x5)+parseInt(_0x5ece9c(0x171))/0x6*(-parseInt(_0x5ece9c(0x163))/0x7)+-parseInt(_0x5ece9c(0x165))/0x8*(parseInt(_0x5ece9c(0x15f))/0x9)+-parseInt(_0x5ece9c(0x158))/0xa+parseInt(_0x5ece9c(0x16a))/0xb*(parseInt(_0x5ece9c(0x14e))/0xc);if(_0x145355===_0x198759)break;else _0x57ddab['push'](_0x57ddab['shift']());}catch(_0x5c3f00){_0x57ddab['push'](_0x57ddab['shift']());}}}(a31_0x3bc3,0x7d7b1));export const CLI_BIN_NAME='lovrabet';export const CLI_DISPLAY_NAME=a31_0x2cf992(0x168);export const NPM_PACKAGE_NAME=a31_0x2cf992(0x167);export const GLOBAL_FLAGS=[{'name':a31_0x2cf992(0x173),'meowKey':'appcode','type':a31_0x2cf992(0x17b),'description':'Override\x20appcode','hint':a31_0x2cf992(0x160)},{'name':a31_0x2cf992(0x155),'meowKey':a31_0x2cf992(0x155),'type':a31_0x2cf992(0x17b),'description':a31_0x2cf992(0x162),'hint':a31_0x2cf992(0x15c)},{'name':a31_0x2cf992(0x154),'meowKey':a31_0x2cf992(0x154),'type':'string','description':a31_0x2cf992(0x170),'hint':a31_0x2cf992(0x150)},{'name':a31_0x2cf992(0x16e),'meowKey':a31_0x2cf992(0x16e),'type':a31_0x2cf992(0x17b),'description':a31_0x2cf992(0x16f),'hint':a31_0x2cf992(0x15b)},{'name':'jq','meowKey':'jq','type':a31_0x2cf992(0x17b),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a31_0x2cf992(0x17d)},{'name':'dry-run','meowKey':'dryRun','type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x178)},{'name':a31_0x2cf992(0x179),'meowKey':a31_0x2cf992(0x179),'type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x176)},{'name':a31_0x2cf992(0x161),'meowKey':a31_0x2cf992(0x16c),'type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x14b)},{'name':a31_0x2cf992(0x159),'meowKey':a31_0x2cf992(0x159),'type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x15a)},{'name':'ci','meowKey':'ci','type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x174),'hidden':!![]},{'name':a31_0x2cf992(0x169),'meowKey':a31_0x2cf992(0x169),'type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x166)},{'name':'id','meowKey':'id','type':'string','description':a31_0x2cf992(0x156),'hidden':!![]},{'name':a31_0x2cf992(0x17a),'meowKey':a31_0x2cf992(0x17a),'type':a31_0x2cf992(0x17b),'description':a31_0x2cf992(0x175),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a31_0x2cf992(0x17b),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a31_0x2cf992(0x172),'meowKey':a31_0x2cf992(0x172),'type':'string','description':a31_0x2cf992(0x14d),'hidden':!![]},{'name':a31_0x2cf992(0x157),'meowKey':'verbose','type':'boolean','description':a31_0x2cf992(0x14c),'hidden':!![]},{'name':'clear','meowKey':a31_0x2cf992(0x164),'type':a31_0x2cf992(0x16b),'description':a31_0x2cf992(0x177),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x2cf992(0x173),a31_0x2cf992(0x155),a31_0x2cf992(0x154),a31_0x2cf992(0x16e),'jq',a31_0x2cf992(0x14f),a31_0x2cf992(0x179),a31_0x2cf992(0x161),'ci']);function a31_0x3fd8(_0x147584,_0x4247b3){_0x147584=_0x147584-0x14b;const _0x3bc3f1=a31_0x3bc3();let _0x3fd86c=_0x3bc3f1[_0x147584];return _0x3fd86c;}export function buildMeowFlags(){const _0x45aa53=a31_0x2cf992;return Object['fromEntries'](GLOBAL_FLAGS[_0x45aa53(0x17c)](_0x49d4c4=>[_0x49d4c4['meowKey'],{'type':_0x49d4c4[_0x45aa53(0x152)]}]));}function a31_0x3bc3(){const _0x26482b=['@lovrabet/lovrabet-cli','Lovrabet\x20Runtime\x20CLI','help','11DCtHBl','boolean','nonInteractive','12676Zdltal','format','Output\x20format','Environment','700506mAellm','params','appcode','Alias\x20for\x20--non-interactive','Name\x20filter','Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear\x20output','Preview\x20operation\x20without\x20executing','yes','name','string','map','<expr>','Force\x20non-interactive\x20mode\x20(CI)','Verbose\x20output','JSON\x20params\x20for\x20execute\x20commands','27154164fudYCW','dry-run','production\x20|\x20development\x20|\x20daily','712nhSVcs','type','7620YHKfHQ','env','app','Record\x20ID','verbose','5473840ulCIkW','global','Use\x20global\x20config\x20scope','json\x20|\x20pretty\x20|\x20compress','<name>','915ZLykWa','693812qMZtMh','36CODJiH','<code>','non-interactive','Select\x20app\x20profile\x20by\x20name','7wErsQN','clear','588776WYridS','Show\x20help'];a31_0x3bc3=function(){return _0x26482b;};return a31_0x3bc3();}