@lovrabet/lovrabet-cli 2.1.2-beta.1 → 2.1.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -0
  37. package/lib/commands/skill/commands/install.js +1 -0
  38. package/lib/commands/skill/commands/list.js +1 -0
  39. package/lib/commands/skill/commands/push.js +1 -0
  40. package/lib/commands/skill/commands/validate.js +1 -0
  41. package/lib/commands/skill/flags.js +1 -0
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -0
  44. package/lib/commands/skill/scopes.js +1 -0
  45. package/lib/commands/skill/summary.js +1 -0
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -0
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -0
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -0
  89. package/lib/skills/runtime-skill-sync/links.js +1 -0
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -0
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -0
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -0
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -0
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -0
  95. package/lib/skills/runtime-skill-sync/push.js +1 -0
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -0
  97. package/lib/skills/runtime-skill-sync/types.js +1 -0
  98. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -0
  99. package/lib/skills/runtime-skill-sync/zip-package.js +1 -0
  100. package/lib/skills/runtime-skill-sync.js +1 -1
  101. package/lib/utils/apply-jq-filter.js +1 -1
  102. package/lib/utils/logger.js +1 -1
  103. package/lib/utils/params.js +1 -1
  104. package/lib/utils/platform.js +1 -1
  105. package/lib/utils/update-notice.js +1 -1
  106. package/lib/utils/version.js +1 -1
  107. package/lib/utils/write-cli-side-channel.js +1 -1
  108. package/package.json +4 -1
@@ -1 +1 @@
1
- (function(_0xcd2e45,_0x5a9ddd){const _0x38f2da=a15_0x1729,_0x3f8314=_0xcd2e45();while(!![]){try{const _0xf5d335=parseInt(_0x38f2da(0xa1))/0x1+-parseInt(_0x38f2da(0xaa))/0x2*(parseInt(_0x38f2da(0xa9))/0x3)+-parseInt(_0x38f2da(0x9e))/0x4+-parseInt(_0x38f2da(0xb3))/0x5*(parseInt(_0x38f2da(0xb1))/0x6)+-parseInt(_0x38f2da(0xa5))/0x7*(-parseInt(_0x38f2da(0xb2))/0x8)+-parseInt(_0x38f2da(0xa6))/0x9+parseInt(_0x38f2da(0xac))/0xa*(parseInt(_0x38f2da(0x9f))/0xb);if(_0xf5d335===_0x5a9ddd)break;else _0x3f8314['push'](_0x3f8314['shift']());}catch(_0x6cb42c){_0x3f8314['push'](_0x3f8314['shift']());}}}(a15_0x4240,0xc4022));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a15_0x1729(_0x49a280,_0x3f479e){_0x49a280=_0x49a280-0x9e;const _0x4240dd=a15_0x4240();let _0x1729ed=_0x4240dd[_0x49a280];return _0x1729ed;}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x34ae98){const _0x597981=a15_0x1729,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5d30dc}=_0x34ae98;if(explicitGlobal&&explicitProject)throw CliErrors[_0x597981(0xb0)](_0x597981(0xa4),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x5d30dc){case _0x597981(0xa8):return _0x597981(0xa2);case'project-default':return _0x34ae98[_0x597981(0xab)]??isInProject()?'project':_0x597981(0xa2);case _0x597981(0xae):if(!(_0x34ae98[_0x597981(0xab)]??isInProject()))throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x597981(0xad),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x597981(0xb4)]+_0x597981(0xa7)+CLI_BIN_NAME+_0x597981(0xaf));return _0x597981(0xa3);}}function a15_0x4240(){const _0x16c704=['inProject','10740UHnxJJ','\x20found).','project-or-global-explicit','\x20init`\x20first.','validation','444IPqaYq','24JUVeWR','18970umSxcs','newConfigFileName','4947612yorFJG','34166qRhNBN','\x20(global)','569553owcstZ','global','project','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','767375yMCQos','7317486cGTfSy',',\x20or\x20run\x20`','global-default','30861xJRMEi','214UOkJSv'];a15_0x4240=function(){return _0x16c704;};return a15_0x4240();}export function toScopeFlags(_0x2be6e6){const _0xedc724=a15_0x1729;return{'global':_0x2be6e6===_0xedc724(0xa2)};}export function formatScopeLabel(_0x1402a7){const _0x29f2f5=a15_0x1729;return _0x1402a7===_0x29f2f5(0xa2)?_0x29f2f5(0xa0):'';}
1
+ (function(_0xa4c66a,_0x40a70a){const _0x65a0e5=a15_0x5d7c,_0x329517=_0xa4c66a();while(!![]){try{const _0x545f4b=-parseInt(_0x65a0e5(0x17e))/0x1+-parseInt(_0x65a0e5(0x16e))/0x2+parseInt(_0x65a0e5(0x17b))/0x3+parseInt(_0x65a0e5(0x180))/0x4*(-parseInt(_0x65a0e5(0x17d))/0x5)+parseInt(_0x65a0e5(0x170))/0x6+parseInt(_0x65a0e5(0x171))/0x7+parseInt(_0x65a0e5(0x179))/0x8;if(_0x545f4b===_0x40a70a)break;else _0x329517['push'](_0x329517['shift']());}catch(_0x4e4fbd){_0x329517['push'](_0x329517['shift']());}}}(a15_0x3d1b,0x63f88));function a15_0x5d7c(_0x34933c,_0x33bb23){_0x34933c=_0x34933c-0x16e;const _0x3d1ba1=a15_0x3d1b();let _0x5d7c39=_0x3d1ba1[_0x34933c];return _0x5d7c39;}function a15_0x3d1b(){const _0x14c033=['561022ZfGLpR','\x20found).','22136JpDKKx','589978qBnKCx','global-default','1769652DeMAzF','2887927LnKpVe','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20','newConfigFileName','project-or-global-explicit','project','validation','2277464ihOURq','inProject','1102149YGjYqq','global','85hNmeBM'];a15_0x3d1b=function(){return _0x14c033;};return a15_0x3d1b();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x294b4a){const _0x173fd3=a15_0x5d7c,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xcce587}=_0x294b4a;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x173fd3(0x172),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x173fd3(0x17c);if(explicitProject)return _0x173fd3(0x177);switch(_0xcce587){case _0x173fd3(0x16f):return _0x173fd3(0x17c);case'project-default':return _0x294b4a[_0x173fd3(0x17a)]??isInProject()?_0x173fd3(0x177):'global';case _0x173fd3(0x176):if(!(_0x294b4a[_0x173fd3(0x17a)]??isInProject()))throw CliErrors[_0x173fd3(0x178)](_0x173fd3(0x174)+PRODUCT_CONFIG[_0x173fd3(0x175)]+_0x173fd3(0x17f),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x173fd3(0x175)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x173fd3(0x173));return _0x173fd3(0x177);}}export function toScopeFlags(_0x612323){const _0x25f720=a15_0x5d7c;return{'global':_0x612323===_0x25f720(0x17c)};}export function formatScopeLabel(_0xfbcf7f){return _0xfbcf7f==='global'?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x44cafe,_0x4c4254){const _0x3b51c7=a16_0x4a5c,_0x22c566=_0x44cafe();while(!![]){try{const _0x55dfa8=parseInt(_0x3b51c7(0x170))/0x1+parseInt(_0x3b51c7(0x17c))/0x2*(-parseInt(_0x3b51c7(0x173))/0x3)+parseInt(_0x3b51c7(0x168))/0x4*(-parseInt(_0x3b51c7(0x17a))/0x5)+parseInt(_0x3b51c7(0x172))/0x6+parseInt(_0x3b51c7(0x16e))/0x7+-parseInt(_0x3b51c7(0x166))/0x8+-parseInt(_0x3b51c7(0x164))/0x9*(parseInt(_0x3b51c7(0x16d))/0xa);if(_0x55dfa8===_0x4c4254)break;else _0x22c566['push'](_0x22c566['shift']());}catch(_0x4a0203){_0x22c566['push'](_0x22c566['shift']());}}}(a16_0xcbbe,0x65824));import{CliErrors}from'../../errors.js';function a16_0xcbbe(){const _0x55ffc7=['Use\x20only\x20one\x20of:\x20',',\x20got\x20\x22','85NvaFAa','\x20are\x20mutually\x20exclusive\x20for\x20`','4Bmdudy','\x20is\x20allowed,\x20found:\x20','9KWuIBX','filter','4464952UsPbse','Exactly\x20one\x20of\x20','77524bInHsd','Provide\x20one\x20of:\x20','length','map',':\x20expected\x20','3292950dasoQP','5574289SxTUED','join','459715eTtraM','\x20is\x20required\x20for\x20`','4493922iqlyFk','558537Sftbjw','Remove\x20all\x20but\x20one.','At\x20least\x20one\x20of\x20','validation','flag'];a16_0xcbbe=function(){return _0x55ffc7;};return a16_0xcbbe();}function isSet(_0x4434bd,_0x1cccca){const _0x315a30=a16_0x4a5c,_0x4a1c46=_0x4434bd[_0x315a30(0x177)](_0x1cccca);return _0x4a1c46!==undefined&&_0x4a1c46!==''&&_0x4a1c46!==![]&&_0x4a1c46!==0x0;}function fmtNames(_0x28f85a){const _0x16a1ae=a16_0x4a5c;return _0x28f85a[_0x16a1ae(0x16b)](_0x1a91a6=>'--'+_0x1a91a6)[_0x16a1ae(0x16f)](',\x20');}export function requireOneOf(_0x46abc3,_0x1f8462,_0x32ffff){const _0x34aec6=a16_0x4a5c,_0x2b16ff=_0x1f8462[_0x34aec6(0x165)](_0x4a3000=>isSet(_0x46abc3,_0x4a3000));if(_0x2b16ff['length']!==0x1)throw CliErrors[_0x34aec6(0x176)](_0x2b16ff[_0x34aec6(0x16a)]===0x0?_0x34aec6(0x167)+fmtNames(_0x1f8462)+_0x34aec6(0x171)+_0x32ffff+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x1f8462)+_0x34aec6(0x17d)+fmtNames(_0x2b16ff)+'.',_0x2b16ff[_0x34aec6(0x16a)]===0x0?_0x34aec6(0x169)+fmtNames(_0x1f8462):_0x34aec6(0x174));}export function requireAnyOf(_0x3f5bde,_0x294ac4,_0x40d7f9){const _0x4041c1=a16_0x4a5c;if(!_0x294ac4['some'](_0x1e47d9=>isSet(_0x3f5bde,_0x1e47d9)))throw CliErrors['validation'](_0x4041c1(0x175)+fmtNames(_0x294ac4)+_0x4041c1(0x171)+_0x40d7f9+'`.',_0x4041c1(0x169)+fmtNames(_0x294ac4));}function a16_0x4a5c(_0x32d15d,_0x401e30){_0x32d15d=_0x32d15d-0x164;const _0xcbbeef=a16_0xcbbe();let _0x4a5cd2=_0xcbbeef[_0x32d15d];return _0x4a5cd2;}export function mutuallyExclusive(_0x2315ca,_0x484285,_0x58f8e5){const _0x3fa7eb=a16_0x4a5c,_0x6a4fa0=_0x484285[_0x3fa7eb(0x165)](_0x377c01=>isSet(_0x2315ca,_0x377c01));if(_0x6a4fa0[_0x3fa7eb(0x16a)]>0x1)throw CliErrors[_0x3fa7eb(0x176)]('Flags\x20'+fmtNames(_0x6a4fa0)+_0x3fa7eb(0x17b)+_0x58f8e5+'`.',_0x3fa7eb(0x178)+fmtNames(_0x484285));}export function validatePattern(_0x1c89fc,_0x238cfb,_0x3a02db,_0xce8818){const _0xb4f3e0=a16_0x4a5c,_0x2812b5=_0x1c89fc['str'](_0x238cfb);if(_0x2812b5&&!_0x3a02db['test'](_0x2812b5))throw CliErrors[_0xb4f3e0(0x176)]('Invalid\x20--'+_0x238cfb+_0xb4f3e0(0x16c)+_0xce8818+_0xb4f3e0(0x179)+_0x2812b5+'\x22.');}
1
+ function a16_0x2db0(){const _0x42ca40=['filter','validation','At\x20least\x20one\x20of\x20','length','Invalid\x20--','516VuMGXf','\x20are\x20mutually\x20exclusive\x20for\x20`','12FrCtvE','str','7609CAaZla','11095330XLSEkJ','Only\x20one\x20of\x20','8744yShjSa','\x20is\x20required\x20for\x20`','Remove\x20all\x20but\x20one.','Provide\x20one\x20of:\x20','4agSTqi','19745DFGBXK','2709311CAzsUy','map','48987QjvObR','Exactly\x20one\x20of\x20','9vpobcG','join','\x20is\x20allowed,\x20found:\x20',':\x20expected\x20','1064448BvzpPl','963638YyoaXW',',\x20got\x20\x22'];a16_0x2db0=function(){return _0x42ca40;};return a16_0x2db0();}function a16_0x5500(_0xcb10dd,_0x1e8b1d){_0xcb10dd=_0xcb10dd-0xdd;const _0x2db0f4=a16_0x2db0();let _0x550083=_0x2db0f4[_0xcb10dd];return _0x550083;}(function(_0x1af6e7,_0x3661a6){const _0x1a34de=a16_0x5500,_0x54e40f=_0x1af6e7();while(!![]){try{const _0x5967b7=parseInt(_0x1a34de(0xe3))/0x1+parseInt(_0x1a34de(0xf5))/0x2*(-parseInt(_0x1a34de(0xf9))/0x3)+parseInt(_0x1a34de(0xe2))/0x4+parseInt(_0x1a34de(0xf6))/0x5*(-parseInt(_0x1a34de(0xea))/0x6)+-parseInt(_0x1a34de(0xee))/0x7*(-parseInt(_0x1a34de(0xf1))/0x8)+parseInt(_0x1a34de(0xde))/0x9*(-parseInt(_0x1a34de(0xef))/0xa)+-parseInt(_0x1a34de(0xf7))/0xb*(parseInt(_0x1a34de(0xec))/0xc);if(_0x5967b7===_0x3661a6)break;else _0x54e40f['push'](_0x54e40f['shift']());}catch(_0x4dbd01){_0x54e40f['push'](_0x54e40f['shift']());}}}(a16_0x2db0,0xa8647));import{CliErrors}from'../../errors.js';function isSet(_0x47121d,_0x32b5f5){const _0x2ecbe2=_0x47121d['flag'](_0x32b5f5);return _0x2ecbe2!==undefined&&_0x2ecbe2!==''&&_0x2ecbe2!==![]&&_0x2ecbe2!==0x0;}function fmtNames(_0x9b22d6){const _0x2cb729=a16_0x5500;return _0x9b22d6[_0x2cb729(0xf8)](_0x4ed146=>'--'+_0x4ed146)[_0x2cb729(0xdf)](',\x20');}export function requireOneOf(_0x34ec81,_0x1c6e9b,_0xea3f89){const _0x32bb8e=a16_0x5500,_0x4b7dde=_0x1c6e9b[_0x32bb8e(0xe5)](_0x590f15=>isSet(_0x34ec81,_0x590f15));if(_0x4b7dde['length']!==0x1)throw CliErrors[_0x32bb8e(0xe6)](_0x4b7dde['length']===0x0?_0x32bb8e(0xdd)+fmtNames(_0x1c6e9b)+_0x32bb8e(0xf2)+_0xea3f89+'`.':_0x32bb8e(0xf0)+fmtNames(_0x1c6e9b)+_0x32bb8e(0xe0)+fmtNames(_0x4b7dde)+'.',_0x4b7dde[_0x32bb8e(0xe8)]===0x0?_0x32bb8e(0xf4)+fmtNames(_0x1c6e9b):_0x32bb8e(0xf3));}export function requireAnyOf(_0x373d9f,_0x5dff34,_0x4c9fb7){const _0x48bf24=a16_0x5500;if(!_0x5dff34['some'](_0x32cdfe=>isSet(_0x373d9f,_0x32cdfe)))throw CliErrors[_0x48bf24(0xe6)](_0x48bf24(0xe7)+fmtNames(_0x5dff34)+'\x20is\x20required\x20for\x20`'+_0x4c9fb7+'`.',_0x48bf24(0xf4)+fmtNames(_0x5dff34));}export function mutuallyExclusive(_0x16e772,_0x57c383,_0xdd38f8){const _0x37f4a9=a16_0x5500,_0x2794f4=_0x57c383[_0x37f4a9(0xe5)](_0x2b3f43=>isSet(_0x16e772,_0x2b3f43));if(_0x2794f4[_0x37f4a9(0xe8)]>0x1)throw CliErrors[_0x37f4a9(0xe6)]('Flags\x20'+fmtNames(_0x2794f4)+_0x37f4a9(0xeb)+_0xdd38f8+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x57c383));}export function validatePattern(_0x5c05dd,_0x4cd4ae,_0x2a305a,_0x2ca089){const _0x3956d5=a16_0x5500,_0x20d283=_0x5c05dd[_0x3956d5(0xed)](_0x4cd4ae);if(_0x20d283&&!_0x2a305a['test'](_0x20d283))throw CliErrors['validation'](_0x3956d5(0xe9)+_0x4cd4ae+_0x3956d5(0xe1)+_0x2ca089+_0x3956d5(0xe4)+_0x20d283+'\x22.');}
@@ -1 +1 @@
1
- const a17_0x20b8b9=a17_0xc06b;(function(_0x588bc7,_0x589ba6){const _0x2d53a2=a17_0xc06b,_0x2fb35b=_0x588bc7();while(!![]){try{const _0x334be4=parseInt(_0x2d53a2(0x1a6))/0x1+parseInt(_0x2d53a2(0x19d))/0x2*(-parseInt(_0x2d53a2(0x1a5))/0x3)+-parseInt(_0x2d53a2(0x1ae))/0x4*(-parseInt(_0x2d53a2(0x1a2))/0x5)+parseInt(_0x2d53a2(0x19a))/0x6*(-parseInt(_0x2d53a2(0x1ad))/0x7)+parseInt(_0x2d53a2(0x19b))/0x8*(parseInt(_0x2d53a2(0x1a4))/0x9)+-parseInt(_0x2d53a2(0x1b0))/0xa*(parseInt(_0x2d53a2(0x19e))/0xb)+parseInt(_0x2d53a2(0x1a9))/0xc;if(_0x334be4===_0x589ba6)break;else _0x2fb35b['push'](_0x2fb35b['shift']());}catch(_0x4d2e0f){_0x2fb35b['push'](_0x2fb35b['shift']());}}}(a17_0x7724,0x85c52));function a17_0x7724(){const _0x1be29a=['number','360vAEwaz','406029uOTlkb','111566eYkWTF','verbose','string','12647676hSbwVY','sqlcode','boolean','Resource\x20name\x20for\x20lookup','168McAChI','844684DqxgmV','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','70sBZtpu','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','49722ANAkGf','144112EpszPJ','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','16KmyEpu','1416217pHsbUn','params','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Return\x20full\x20raw\x20response\x20object','20NRIwxB'];a17_0x7724=function(){return _0x1be29a;};return a17_0x7724();}export const CODE_FLAG={'name':a17_0x20b8b9(0x198),'type':a17_0x20b8b9(0x1a8),'required':!![],'description':a17_0x20b8b9(0x199),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a17_0x20b8b9(0x1aa),'type':'string','required':!![],'description':a17_0x20b8b9(0x19c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x20b8b9(0x1a0)}};export const VERBOSE_FLAG={'name':a17_0x20b8b9(0x1a7),'type':a17_0x20b8b9(0x1ab),'description':a17_0x20b8b9(0x1a1)};function a17_0xc06b(_0x41669d,_0x47c05a){_0x41669d=_0x41669d-0x198;const _0x7724db=a17_0x7724();let _0xc06bf4=_0x7724db[_0x41669d];return _0xc06bf4;}export const PARAMS_FLAG={'name':a17_0x20b8b9(0x19f),'type':a17_0x20b8b9(0x1a8),'description':a17_0x20b8b9(0x1af)};export const NAME_FLAG={'name':'name','type':a17_0x20b8b9(0x1a8),'description':a17_0x20b8b9(0x1ac)};export const ID_FLAG={'name':'id','type':a17_0x20b8b9(0x1a3),'required':!![],'description':'Resource\x20ID'};
1
+ const a17_0x6e5d56=a17_0x42cd;(function(_0x132506,_0x5a9908){const _0x28ef1=a17_0x42cd,_0x3e454f=_0x132506();while(!![]){try{const _0x3a020d=-parseInt(_0x28ef1(0x77))/0x1*(-parseInt(_0x28ef1(0x84))/0x2)+parseInt(_0x28ef1(0x7d))/0x3*(-parseInt(_0x28ef1(0x83))/0x4)+parseInt(_0x28ef1(0x85))/0x5*(parseInt(_0x28ef1(0x7a))/0x6)+-parseInt(_0x28ef1(0x78))/0x7+parseInt(_0x28ef1(0x81))/0x8+parseInt(_0x28ef1(0x7e))/0x9*(-parseInt(_0x28ef1(0x7b))/0xa)+parseInt(_0x28ef1(0x86))/0xb*(parseInt(_0x28ef1(0x72))/0xc);if(_0x3a020d===_0x5a9908)break;else _0x3e454f['push'](_0x3e454f['shift']());}catch(_0x194910){_0x3e454f['push'](_0x3e454f['shift']());}}}(a17_0xf367,0x887d6));function a17_0x42cd(_0x1c95ae,_0x144f9d){_0x1c95ae=_0x1c95ae-0x6d;const _0xf367f7=a17_0xf367();let _0x42cda8=_0xf367f7[_0x1c95ae];return _0x42cda8;}export const CODE_FLAG={'name':a17_0x6e5d56(0x73),'type':a17_0x6e5d56(0x6e),'required':!![],'description':a17_0x6e5d56(0x71),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a17_0x6e5d56(0x74)}};export const SQLCODE_FLAG={'name':a17_0x6e5d56(0x76),'type':a17_0x6e5d56(0x6e),'required':!![],'description':a17_0x6e5d56(0x79),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a17_0x6e5d56(0x7c)}};export const VERBOSE_FLAG={'name':'verbose','type':a17_0x6e5d56(0x70),'description':a17_0x6e5d56(0x80)};export const PARAMS_FLAG={'name':a17_0x6e5d56(0x6d),'type':a17_0x6e5d56(0x6e),'description':a17_0x6e5d56(0x7f)};export const NAME_FLAG={'name':a17_0x6e5d56(0x6f),'type':a17_0x6e5d56(0x6e),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':a17_0x6e5d56(0x75),'required':!![],'description':a17_0x6e5d56(0x82)};function a17_0xf367(){const _0x1e38de=['number','sqlcode','2457NKVvrr','635796qRXlAq','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','6xtZaSy','10wxYSAf','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3cDnNge','6277167BcKzdp','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Return\x20full\x20raw\x20response\x20object','4822656IAvaZb','Resource\x20ID','4378524RFSwjQ','492RcveJS','1850435CvWofF','3223eJdXLR','params','string','name','boolean','Dataset\x20code\x20(32-char\x20hex\x20UUID)','35412YnoPso','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'];a17_0xf367=function(){return _0x1e38de;};return a17_0xf367();}
@@ -1 +1 @@
1
- const a18_0x37bb51=a18_0x3088;(function(_0x20f003,_0x113530){const _0x24a3fd=a18_0x3088,_0x14863c=_0x20f003();while(!![]){try{const _0x330b3a=parseInt(_0x24a3fd(0xd0))/0x1+parseInt(_0x24a3fd(0xab))/0x2*(parseInt(_0x24a3fd(0xa9))/0x3)+parseInt(_0x24a3fd(0xb9))/0x4*(-parseInt(_0x24a3fd(0x9d))/0x5)+parseInt(_0x24a3fd(0x95))/0x6*(parseInt(_0x24a3fd(0xcd))/0x7)+-parseInt(_0x24a3fd(0xa8))/0x8+-parseInt(_0x24a3fd(0x96))/0x9+-parseInt(_0x24a3fd(0xcb))/0xa;if(_0x330b3a===_0x113530)break;else _0x14863c['push'](_0x14863c['shift']());}catch(_0x1eee9e){_0x14863c['push'](_0x14863c['shift']());}}}(a18_0x4468,0x1d9a4));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a18_0x37bb51(0x9c),'type':a18_0x37bb51(0xd9),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x447648){const _0x456f9b=a18_0x37bb51,_0x567f86=_0x447648[_0x456f9b(0xd4)]('.');if(_0x567f86[_0x456f9b(0xb6)]!==0x3||_0x567f86[0x0]!==_0x456f9b(0x99)||_0x567f86[0x2]!==_0x456f9b(0x98))return undefined;const _0x3df129=_0x567f86[0x1]?.[_0x456f9b(0xca)]();return _0x3df129?_0x3df129:undefined;}function parseAliasDeleteKey(_0x3c5173){const _0x1759f1=a18_0x37bb51,_0x5f195a=_0x3c5173[_0x1759f1(0xd4)]('.');if(_0x5f195a[_0x1759f1(0xb6)]===0x2&&_0x5f195a[0x0]===_0x1759f1(0x99)){const _0x43df90=_0x5f195a[0x1]?.['trim']();return _0x43df90?{'alias':_0x43df90}:undefined;}if(_0x5f195a['length']===0x3&&_0x5f195a[0x0]==='apps'&&_0x5f195a[0x2]===_0x1759f1(0x98)){const _0x5c1ad8=_0x5f195a[0x1]?.[_0x1759f1(0xca)]();return _0x5c1ad8?{'alias':_0x5c1ad8,'field':_0x1759f1(0x98)}:undefined;}return undefined;}function a18_0x3088(_0x278455,_0xab32ef){_0x278455=_0x278455-0x95;const _0x4468e2=a18_0x4468();let _0x3088e4=_0x4468e2[_0x278455];return _0x3088e4;}function setLocalAppAlias(_0x2ff8f8,_0x525174,_0x1c443d){const _0x3beb90=a18_0x37bb51,_0x39dfce=_0x2ff8f8[_0x3beb90(0x99)]&&typeof _0x2ff8f8[_0x3beb90(0x99)]===_0x3beb90(0x97)&&!Array[_0x3beb90(0xba)](_0x2ff8f8[_0x3beb90(0x99)])?_0x2ff8f8[_0x3beb90(0x99)]:{},_0xc6a734=_0x39dfce[_0x525174]&&typeof _0x39dfce[_0x525174]===_0x3beb90(0x97)&&!Array[_0x3beb90(0xba)](_0x39dfce[_0x525174])?_0x39dfce[_0x525174]:{};_0xc6a734['appcode']=_0x1c443d,_0x39dfce[_0x525174]=_0xc6a734,_0x2ff8f8[_0x3beb90(0x99)]=_0x39dfce;}function a18_0x4468(){const _0x292b4d=['trim','621290GfWEEz','../../context.js','1631756NEXdaL','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20\x22','162172WkmzKA','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','read','Delete\x20a\x20config\x20value','split','(none)','value','Config\x20files:\x0a','\x22\x20is\x20not\x20settable.','boolean','\x20\x20global:\x20\x20','\x20config\x20get\x20<key>','format','6BQwplN','1400400EvUjZy','object','appcode','apps','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Usage:\x20','global','10OoDVVs','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x22.\x20Allowed:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','Key\x20not\x20found:\x20','project-or-global-explicit','stringify','Missing\x20key\x20or\x20value.',';\x20apps.<alias>.appcode','\x20(global)','alias','1166520OyJAaT','1656sTfHgc','config','782hFoJiT','field','Settable\x20keys:\x20','raw','validation','write','Deleted\x20`','get','`\x20=\x20\x22','keys','Missing\x20key\x20argument.','length','pageSize\x20must\x20be\x20a\x20positive\x20number','set','252632YAGWAk','isArray','Get\x20a\x20config\x20value','log','\x20\x20project:\x20','Value\x20to\x20assign','bool','pretty','List\x20current\x20config','Key\x20\x22','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','includes','args','pageSize','Set\x20a\x20config\x20value','Set\x20`','key'];a18_0x4468=function(){return _0x292b4d;};return a18_0x4468();}function deleteLocalAppAlias(_0x5e665e,_0x4d1de7){const _0x287229=a18_0x37bb51;if(!_0x5e665e[_0x287229(0x99)]||typeof _0x5e665e[_0x287229(0x99)]!==_0x287229(0x97)||Array[_0x287229(0xba)](_0x5e665e[_0x287229(0x99)]))return![];const _0x3b6437=_0x5e665e[_0x287229(0x99)],_0x58cbaa=_0x3b6437[_0x4d1de7['alias']];if(!_0x58cbaa||typeof _0x58cbaa!==_0x287229(0x97)||Array[_0x287229(0xba)](_0x58cbaa))return![];if(!_0x4d1de7[_0x287229(0xac)])return delete _0x3b6437[_0x4d1de7[_0x287229(0xa7)]],!![];if(!(_0x4d1de7[_0x287229(0xac)]in _0x58cbaa))return![];return delete _0x58cbaa[_0x4d1de7['field']],Object[_0x287229(0xb4)](_0x58cbaa)['length']===0x0&&delete _0x3b6437[_0x4d1de7[_0x287229(0xa7)]],!![];}const listDef={'service':a18_0x37bb51(0xaa),'command':'list','description':a18_0x37bb51(0xc1),'risk':a18_0x37bb51(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4c7eb1){const _0x3bca54=a18_0x37bb51,{buildConfigFromFlags:_0x503b9a}=await import(_0x3bca54(0xcc)),_0xd4574e=_0x503b9a({}),_0xd9a24a=getProjectConfigPath(),_0x38944b=resolveWriteConfigPath(_0x3bca54(0x9c));if(_0x4c7eb1[_0x3bca54(0xdc)]===_0x3bca54(0xc0))return{'ok':!![],'message':_0x3bca54(0x9e)+(JSON[_0x3bca54(0xa3)](_0xd4574e['raw'],null,0x2)+'\x0a\x0a')+_0x3bca54(0xd7)+(_0x3bca54(0xbd)+(_0xd9a24a??_0x3bca54(0xd5))+'\x0a')+(_0x3bca54(0xda)+_0x38944b)};return{'ok':!![],'data':{'effective':_0xd4574e[_0x3bca54(0xae)],'configFiles':{'project':_0xd9a24a??null,'global':_0x38944b}}};}},getDef={'service':a18_0x37bb51(0xaa),'command':a18_0x37bb51(0xb2),'description':a18_0x37bb51(0xbb),'risk':a18_0x37bb51(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x37bb51(0xc9),'description':a18_0x37bb51(0xc3),'required':!![]}],'flags':[],async 'execute'(_0x10e6b3){const _0x484136=a18_0x37bb51,_0x22c93a=_0x10e6b3[_0x484136(0xc5)][0x0];if(!_0x22c93a)throw CliErrors[_0x484136(0xaf)](_0x484136(0xb5),_0x484136(0x9b)+CLI_BIN_NAME+_0x484136(0xdb));const {buildConfigFromFlags:_0x274fd4}=await import(_0x484136(0xcc)),{raw:_0x40006b}=_0x274fd4({});if(_0x22c93a[_0x484136(0xc4)]('.')){const _0x421da8=_0x22c93a[_0x484136(0xd4)]('.');let _0x585f06=_0x40006b;for(const _0xd2f11e of _0x421da8){if(_0x585f06==null||typeof _0x585f06!==_0x484136(0x97))throw CliErrors[_0x484136(0xaf)]('Key\x20not\x20found:\x20'+_0x22c93a);_0x585f06=_0x585f06[_0xd2f11e];}if(_0x585f06===undefined)throw CliErrors['validation'](_0x484136(0xa1)+_0x22c93a);return console['log'](typeof _0x585f06===_0x484136(0x97)?JSON['stringify'](_0x585f06,null,0x2):String(_0x585f06)),{'ok':!![]};}const _0x5c439f=_0x40006b[_0x22c93a];if(_0x5c439f===undefined)throw CliErrors[_0x484136(0xaf)]('Key\x20not\x20found:\x20'+_0x22c93a);return console[_0x484136(0xbc)](typeof _0x5c439f===_0x484136(0x97)?JSON[_0x484136(0xa3)](_0x5c439f,null,0x2):String(_0x5c439f)),{'ok':!![]};}},setDef={'service':a18_0x37bb51(0xaa),'command':a18_0x37bb51(0xb8),'description':a18_0x37bb51(0xc7),'risk':a18_0x37bb51(0xb0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x37bb51(0xc9),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a18_0x37bb51(0xd6),'description':a18_0x37bb51(0xbe),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x563dd3){const _0x45b111=a18_0x37bb51,_0x3d0b0d=_0x563dd3[_0x45b111(0xc5)][0x0],_0x25f93a=_0x563dd3[_0x45b111(0xc5)][0x1];if(!_0x3d0b0d||_0x25f93a===undefined)throw CliErrors[_0x45b111(0xaf)](_0x45b111(0xa4),_0x45b111(0x9b)+CLI_BIN_NAME+_0x45b111(0x9a));if(ENUM_KEYS[_0x3d0b0d]&&!ENUM_KEYS[_0x3d0b0d][_0x45b111(0xc4)](_0x25f93a))throw CliErrors[_0x45b111(0xaf)](_0x45b111(0xcf)+_0x3d0b0d+_0x45b111(0x9f)+ENUM_KEYS[_0x3d0b0d]['join'](',\x20'));if(_0x3d0b0d==='riskLevel')throw CliErrors[_0x45b111(0xaf)](_0x45b111(0xd1));if(_0x3d0b0d===_0x45b111(0xc6)){const _0x488484=Number(_0x25f93a);if(isNaN(_0x488484)||_0x488484<=0x0)throw CliErrors[_0x45b111(0xaf)](_0x45b111(0xb7));}const _0x459004=resolveWriteScope({'explicitGlobal':_0x563dd3[_0x45b111(0xbf)](_0x45b111(0x9c)),'policy':_0x45b111(0xa2)}),_0x3e87e=toScopeFlags(_0x459004),_0x53a9c8=readScopedConfig(_0x3e87e),_0x280414=parseAliasAppcodeSetKey(_0x3d0b0d);if(!_0x280414&&!isTopLevelConfigKey(_0x3d0b0d))throw CliErrors[_0x45b111(0xaf)](_0x45b111(0xce)+_0x3d0b0d+_0x45b111(0xd8),_0x45b111(0xad)+getTopLevelConfigKeySummary()+_0x45b111(0xa5));return _0x280414?setLocalAppAlias(_0x53a9c8,_0x280414,_0x25f93a):_0x53a9c8[_0x3d0b0d]=_0x3d0b0d===_0x45b111(0xc6)?Number(_0x25f93a):_0x25f93a,console[_0x45b111(0xbc)](_0x45b111(0xc8)+_0x3d0b0d+_0x45b111(0xb3)+_0x25f93a+'\x22'+(_0x459004===_0x45b111(0x9c)?'\x20(global)':'')),writeScopedConfig(_0x53a9c8,_0x3e87e),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a18_0x37bb51(0xd3),'risk':a18_0x37bb51(0xb0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x534179){const _0x875d22=a18_0x37bb51,_0x1f67ac=_0x534179[_0x875d22(0xc5)][0x0];if(!_0x1f67ac)throw CliErrors[_0x875d22(0xaf)](_0x875d22(0xb5),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x46b0d1=resolveWriteScope({'explicitGlobal':_0x534179[_0x875d22(0xbf)](_0x875d22(0x9c)),'policy':_0x875d22(0xa2)}),_0x2f0236=toScopeFlags(_0x46b0d1),_0x30e3dc=readScopedConfig(_0x2f0236),_0x58f583=parseAliasDeleteKey(_0x1f67ac);if(_0x58f583){if(!deleteLocalAppAlias(_0x30e3dc,_0x58f583))throw CliErrors[_0x875d22(0xaf)]('Key\x20not\x20found:\x20'+_0x1f67ac);return console[_0x875d22(0xbc)]('Deleted\x20`'+_0x1f67ac+'`'+(_0x46b0d1===_0x875d22(0x9c)?'\x20(global)':'')),writeScopedConfig(_0x30e3dc,_0x2f0236),{'ok':!![]};}if(_0x30e3dc[_0x1f67ac]===undefined)throw CliErrors[_0x875d22(0xaf)](_0x875d22(0xc2)+_0x1f67ac+_0x875d22(0xa0));return delete _0x30e3dc[_0x1f67ac],console[_0x875d22(0xbc)](_0x875d22(0xb1)+_0x1f67ac+'`'+(_0x46b0d1===_0x875d22(0x9c)?_0x875d22(0xa6):'')),writeScopedConfig(_0x30e3dc,_0x2f0236),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ const a18_0x2ab2b3=a18_0x4938;(function(_0x21fde1,_0x5d4874){const _0x42bb67=a18_0x4938,_0x1513b6=_0x21fde1();while(!![]){try{const _0x579d7d=-parseInt(_0x42bb67(0x112))/0x1+parseInt(_0x42bb67(0x14d))/0x2+-parseInt(_0x42bb67(0x10e))/0x3+parseInt(_0x42bb67(0x14e))/0x4*(-parseInt(_0x42bb67(0x111))/0x5)+-parseInt(_0x42bb67(0x140))/0x6+parseInt(_0x42bb67(0x147))/0x7*(parseInt(_0x42bb67(0x144))/0x8)+-parseInt(_0x42bb67(0x125))/0x9*(-parseInt(_0x42bb67(0x113))/0xa);if(_0x579d7d===_0x5d4874)break;else _0x1513b6['push'](_0x1513b6['shift']());}catch(_0x46b0cc){_0x1513b6['push'](_0x1513b6['shift']());}}}(a18_0x2571,0x3d654));function a18_0x2571(){const _0x281136=['appcode','Get\x20a\x20config\x20value','\x20config\x20delete\x20<key>\x20[--global]','Usage:\x20','457046YilCTy','903852gpYoTU','boolean','pageSize','config','936693sJTrKT','args','\x20(global)','5zhCwqX','32105oITOoU','16590aGzkEh','\x20\x20global:\x20\x20','Missing\x20key\x20or\x20value.','Set\x20`','Config\x20files:\x0a','format','isArray','Delete\x20a\x20config\x20value','get','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20get\x20<key>','Value\x20to\x20assign','global','log','length','stringify','List\x20current\x20config','validation','1413epsdgF','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Set\x20a\x20config\x20value','project-or-global-explicit','Invalid\x20value\x20for\x20\x22','pretty','Top-level\x20key\x20\x22','Write\x20to\x20global\x20config','trim','write','field','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Missing\x20key\x20argument.','Key\x20not\x20found:\x20','\x22.\x20Allowed:\x20','read','Settable\x20keys:\x20','bool','apps','../../context.js','set','object','split','\x20config\x20set\x20<key>\x20<value>\x20[--global]','list','key','alias','39054snNcNX','\x22\x20is\x20not\x20settable.','Key\x20\x22','Deleted\x20`','8UytIbr','(none)','raw','2375086xiZKCU',';\x20apps.<alias>.appcode'];a18_0x2571=function(){return _0x281136;};return a18_0x2571();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a18_0x2ab2b3(0x11f),'type':a18_0x2ab2b3(0x14f),'description':a18_0x2ab2b3(0x12c),'default':![]};function parseAliasAppcodeSetKey(_0x211bea){const _0x42e9de=a18_0x2ab2b3,_0x1eafee=_0x211bea[_0x42e9de(0x13b)]('.');if(_0x1eafee[_0x42e9de(0x121)]!==0x3||_0x1eafee[0x0]!==_0x42e9de(0x137)||_0x1eafee[0x2]!==_0x42e9de(0x149))return undefined;const _0x459054=_0x1eafee[0x1]?.[_0x42e9de(0x12d)]();return _0x459054?_0x459054:undefined;}function parseAliasDeleteKey(_0x51105f){const _0x4d0ce6=a18_0x2ab2b3,_0x1c3c28=_0x51105f[_0x4d0ce6(0x13b)]('.');if(_0x1c3c28[_0x4d0ce6(0x121)]===0x2&&_0x1c3c28[0x0]===_0x4d0ce6(0x137)){const _0xe156c4=_0x1c3c28[0x1]?.[_0x4d0ce6(0x12d)]();return _0xe156c4?{'alias':_0xe156c4}:undefined;}if(_0x1c3c28[_0x4d0ce6(0x121)]===0x3&&_0x1c3c28[0x0]===_0x4d0ce6(0x137)&&_0x1c3c28[0x2]===_0x4d0ce6(0x149)){const _0x911d5f=_0x1c3c28[0x1]?.[_0x4d0ce6(0x12d)]();return _0x911d5f?{'alias':_0x911d5f,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x5df8b5,_0x249e9a,_0x41f1ea){const _0x9dd290=a18_0x2ab2b3,_0x5f2fb8=_0x5df8b5[_0x9dd290(0x137)]&&typeof _0x5df8b5[_0x9dd290(0x137)]===_0x9dd290(0x13a)&&!Array['isArray'](_0x5df8b5[_0x9dd290(0x137)])?_0x5df8b5[_0x9dd290(0x137)]:{},_0x3ccd03=_0x5f2fb8[_0x249e9a]&&typeof _0x5f2fb8[_0x249e9a]===_0x9dd290(0x13a)&&!Array[_0x9dd290(0x119)](_0x5f2fb8[_0x249e9a])?_0x5f2fb8[_0x249e9a]:{};_0x3ccd03[_0x9dd290(0x149)]=_0x41f1ea,_0x5f2fb8[_0x249e9a]=_0x3ccd03,_0x5df8b5[_0x9dd290(0x137)]=_0x5f2fb8;}function a18_0x4938(_0x549cdd,_0x2195fe){_0x549cdd=_0x549cdd-0x10d;const _0x2571ba=a18_0x2571();let _0x493874=_0x2571ba[_0x549cdd];return _0x493874;}function deleteLocalAppAlias(_0x3c8319,_0x5c9af4){const _0x159918=a18_0x2ab2b3;if(!_0x3c8319[_0x159918(0x137)]||typeof _0x3c8319['apps']!=='object'||Array[_0x159918(0x119)](_0x3c8319['apps']))return![];const _0x1fb722=_0x3c8319[_0x159918(0x137)],_0x2dcf0f=_0x1fb722[_0x5c9af4[_0x159918(0x13f)]];if(!_0x2dcf0f||typeof _0x2dcf0f!==_0x159918(0x13a)||Array[_0x159918(0x119)](_0x2dcf0f))return![];if(!_0x5c9af4['field'])return delete _0x1fb722[_0x5c9af4[_0x159918(0x13f)]],!![];if(!(_0x5c9af4[_0x159918(0x12f)]in _0x2dcf0f))return![];return delete _0x2dcf0f[_0x5c9af4['field']],Object['keys'](_0x2dcf0f)[_0x159918(0x121)]===0x0&&delete _0x1fb722[_0x5c9af4[_0x159918(0x13f)]],!![];}const listDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x13d),'description':a18_0x2ab2b3(0x123),'risk':a18_0x2ab2b3(0x134),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x266bf9){const _0x23e07d=a18_0x2ab2b3,{buildConfigFromFlags:_0x5adf8f}=await import(_0x23e07d(0x138)),_0x5a246a=_0x5adf8f({}),_0x27f5cf=getProjectConfigPath(),_0x4f068a=resolveWriteConfigPath(_0x23e07d(0x11f));if(_0x266bf9[_0x23e07d(0x118)]===_0x23e07d(0x12a))return{'ok':!![],'message':_0x23e07d(0x130)+(JSON['stringify'](_0x5a246a[_0x23e07d(0x146)],null,0x2)+'\x0a\x0a')+_0x23e07d(0x117)+('\x20\x20project:\x20'+(_0x27f5cf??_0x23e07d(0x145))+'\x0a')+(_0x23e07d(0x114)+_0x4f068a)};return{'ok':!![],'data':{'effective':_0x5a246a[_0x23e07d(0x146)],'configFiles':{'project':_0x27f5cf??null,'global':_0x4f068a}}};}},getDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x11b),'description':a18_0x2ab2b3(0x14a),'risk':a18_0x2ab2b3(0x134),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a18_0x2ab2b3(0x13e),'description':a18_0x2ab2b3(0x126),'required':!![]}],'flags':[],async 'execute'(_0x288b64){const _0x23451d=a18_0x2ab2b3,_0x1cc2e8=_0x288b64[_0x23451d(0x10f)][0x0];if(!_0x1cc2e8)throw CliErrors['validation'](_0x23451d(0x131),'Usage:\x20'+CLI_BIN_NAME+_0x23451d(0x11d));const {buildConfigFromFlags:_0x14884a}=await import(_0x23451d(0x138)),{raw:_0x491cd6}=_0x14884a({});if(_0x1cc2e8['includes']('.')){const _0x55620a=_0x1cc2e8['split']('.');let _0x325421=_0x491cd6;for(const _0x570aa7 of _0x55620a){if(_0x325421==null||typeof _0x325421!==_0x23451d(0x13a))throw CliErrors[_0x23451d(0x124)](_0x23451d(0x132)+_0x1cc2e8);_0x325421=_0x325421[_0x570aa7];}if(_0x325421===undefined)throw CliErrors[_0x23451d(0x124)](_0x23451d(0x132)+_0x1cc2e8);return console[_0x23451d(0x120)](typeof _0x325421===_0x23451d(0x13a)?JSON[_0x23451d(0x122)](_0x325421,null,0x2):String(_0x325421)),{'ok':!![]};}const _0x57b70e=_0x491cd6[_0x1cc2e8];if(_0x57b70e===undefined)throw CliErrors[_0x23451d(0x124)]('Key\x20not\x20found:\x20'+_0x1cc2e8);return console[_0x23451d(0x120)](typeof _0x57b70e===_0x23451d(0x13a)?JSON['stringify'](_0x57b70e,null,0x2):String(_0x57b70e)),{'ok':!![]};}},setDef={'service':a18_0x2ab2b3(0x10d),'command':a18_0x2ab2b3(0x139),'description':a18_0x2ab2b3(0x127),'risk':a18_0x2ab2b3(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a18_0x2ab2b3(0x11e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xd01e4){const _0x9513e0=a18_0x2ab2b3,_0x24431a=_0xd01e4['args'][0x0],_0xc08f1a=_0xd01e4[_0x9513e0(0x10f)][0x1];if(!_0x24431a||_0xc08f1a===undefined)throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x115),_0x9513e0(0x14c)+CLI_BIN_NAME+_0x9513e0(0x13c));if(ENUM_KEYS[_0x24431a]&&!ENUM_KEYS[_0x24431a]['includes'](_0xc08f1a))throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x129)+_0x24431a+_0x9513e0(0x133)+ENUM_KEYS[_0x24431a]['join'](',\x20'));if(_0x24431a==='riskLevel')throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x24431a===_0x9513e0(0x150)){const _0x2f9590=Number(_0xc08f1a);if(isNaN(_0x2f9590)||_0x2f9590<=0x0)throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x11c));}const _0x4bb1d9=resolveWriteScope({'explicitGlobal':_0xd01e4[_0x9513e0(0x136)](_0x9513e0(0x11f)),'policy':_0x9513e0(0x128)}),_0x17e182=toScopeFlags(_0x4bb1d9),_0x42d367=readScopedConfig(_0x17e182),_0x2db052=parseAliasAppcodeSetKey(_0x24431a);if(!_0x2db052&&!isTopLevelConfigKey(_0x24431a))throw CliErrors[_0x9513e0(0x124)](_0x9513e0(0x12b)+_0x24431a+_0x9513e0(0x141),_0x9513e0(0x135)+getTopLevelConfigKeySummary()+_0x9513e0(0x148));return _0x2db052?setLocalAppAlias(_0x42d367,_0x2db052,_0xc08f1a):_0x42d367[_0x24431a]=_0x24431a===_0x9513e0(0x150)?Number(_0xc08f1a):_0xc08f1a,console[_0x9513e0(0x120)](_0x9513e0(0x116)+_0x24431a+'`\x20=\x20\x22'+_0xc08f1a+'\x22'+(_0x4bb1d9===_0x9513e0(0x11f)?_0x9513e0(0x110):'')),writeScopedConfig(_0x42d367,_0x17e182),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a18_0x2ab2b3(0x11a),'risk':a18_0x2ab2b3(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5a8fe8){const _0xb15ed6=a18_0x2ab2b3,_0x11ff5c=_0x5a8fe8[_0xb15ed6(0x10f)][0x0];if(!_0x11ff5c)throw CliErrors[_0xb15ed6(0x124)](_0xb15ed6(0x131),_0xb15ed6(0x14c)+CLI_BIN_NAME+_0xb15ed6(0x14b));const _0xd13524=resolveWriteScope({'explicitGlobal':_0x5a8fe8[_0xb15ed6(0x136)]('global'),'policy':'project-or-global-explicit'}),_0x25101a=toScopeFlags(_0xd13524),_0x27c121=readScopedConfig(_0x25101a),_0x54de85=parseAliasDeleteKey(_0x11ff5c);if(_0x54de85){if(!deleteLocalAppAlias(_0x27c121,_0x54de85))throw CliErrors[_0xb15ed6(0x124)](_0xb15ed6(0x132)+_0x11ff5c);return console[_0xb15ed6(0x120)](_0xb15ed6(0x143)+_0x11ff5c+'`'+(_0xd13524===_0xb15ed6(0x11f)?_0xb15ed6(0x110):'')),writeScopedConfig(_0x27c121,_0x25101a),{'ok':!![]};}if(_0x27c121[_0x11ff5c]===undefined)throw CliErrors['validation'](_0xb15ed6(0x142)+_0x11ff5c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x27c121[_0x11ff5c],console[_0xb15ed6(0x120)](_0xb15ed6(0x143)+_0x11ff5c+'`'+(_0xd13524===_0xb15ed6(0x11f)?_0xb15ed6(0x110):'')),writeScopedConfig(_0x27c121,_0x25101a),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x157be0,_0x4751b1){var _0x205c59=a19_0xeafd,_0x17c195=_0x157be0();while(!![]){try{var _0x357112=parseInt(_0x205c59(0x100))/0x1*(-parseInt(_0x205c59(0xfb))/0x2)+-parseInt(_0x205c59(0xf9))/0x3*(parseInt(_0x205c59(0xfc))/0x4)+-parseInt(_0x205c59(0xfe))/0x5+parseInt(_0x205c59(0xff))/0x6+parseInt(_0x205c59(0xfd))/0x7+parseInt(_0x205c59(0x101))/0x8+-parseInt(_0x205c59(0xfa))/0x9*(-parseInt(_0x205c59(0x102))/0xa);if(_0x357112===_0x4751b1)break;else _0x17c195['push'](_0x17c195['shift']());}catch(_0xf563cf){_0x17c195['push'](_0x17c195['shift']());}}}(a19_0x955f,0xc9e22));function a19_0xeafd(_0x41fb7f,_0x276cfd){_0x41fb7f=_0x41fb7f-0xf9;var _0x955fe5=a19_0x955f();var _0xeafdeb=_0x955fe5[_0x41fb7f];return _0xeafdeb;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a19_0x955f(){var _0x3cb520=['9990435omsOgL','4120655dHeRzQ','3653322GwVtxO','1203756kRxSkA','1044584sLJtIT','412500xhLzWr','3NZTrzW','198bkXJvf','2XLAowQ','877456tKDtYm'];a19_0x955f=function(){return _0x3cb520;};return a19_0x955f();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x3ec97f,_0x4a22a6){var _0x3c839c=a19_0x36bb,_0x105b42=_0x3ec97f();while(!![]){try{var _0x1b2c13=-parseInt(_0x3c839c(0x1cc))/0x1+-parseInt(_0x3c839c(0x1ca))/0x2*(-parseInt(_0x3c839c(0x1d0))/0x3)+parseInt(_0x3c839c(0x1d1))/0x4+-parseInt(_0x3c839c(0x1ce))/0x5+parseInt(_0x3c839c(0x1cb))/0x6+parseInt(_0x3c839c(0x1c9))/0x7*(parseInt(_0x3c839c(0x1cf))/0x8)+-parseInt(_0x3c839c(0x1cd))/0x9;if(_0x1b2c13===_0x4a22a6)break;else _0x105b42['push'](_0x105b42['shift']());}catch(_0x4f87f3){_0x105b42['push'](_0x105b42['shift']());}}}(a19_0x37f4,0xcae74));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a19_0x36bb(_0x2149b1,_0x450d0b){_0x2149b1=_0x2149b1-0x1c9;var _0x37f4e0=a19_0x37f4();var _0x36bbe9=_0x37f4e0[_0x2149b1];return _0x36bbe9;}function a19_0x37f4(){var _0x12b534=['8gkKohI','1849980aIdHee','5475428fHKFVQ','6022261VAVPRO','2YByUyS','1028112jQRVcW','786131EJUgpw','1376730ZjiWOC','6234995AJdkEX'];a19_0x37f4=function(){return _0x12b534;};return a19_0x37f4();}
@@ -1 +1 @@
1
- const a20_0x4dc0d1=a20_0x4748;(function(_0x5dfc6b,_0x8debda){const _0x3236f6=a20_0x4748,_0x3fcb7f=_0x5dfc6b();while(!![]){try{const _0x1dc78a=parseInt(_0x3236f6(0xa0))/0x1*(parseInt(_0x3236f6(0x8d))/0x2)+parseInt(_0x3236f6(0x77))/0x3+parseInt(_0x3236f6(0xab))/0x4*(-parseInt(_0x3236f6(0xb1))/0x5)+parseInt(_0x3236f6(0xc5))/0x6+-parseInt(_0x3236f6(0xbd))/0x7*(-parseInt(_0x3236f6(0x95))/0x8)+parseInt(_0x3236f6(0x7b))/0x9+-parseInt(_0x3236f6(0xa5))/0xa;if(_0x1dc78a===_0x8debda)break;else _0x3fcb7f['push'](_0x3fcb7f['shift']());}catch(_0xcca355){_0x3fcb7f['push'](_0x3fcb7f['shift']());}}}(a20_0xd63d,0xeefd0));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a20_0x4748(_0xe8d136,_0x4df5f2){_0xe8d136=_0xe8d136-0x76;const _0xd63d67=a20_0xd63d();let _0x4748a4=_0xd63d67[_0xe8d136];return _0x4748a4;}function a20_0xd63d(){const _0x4119fb=['join','create','Preview:\x20data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','batchCreate','delete','code','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','44170gGOsXf','map','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','operation','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}]','1197654DANLtu','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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}}','risk','command','1534014jodKuJ','\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\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','4169970AEBopr','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20on\x20dataset\x20','\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\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','data\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}}','\x20completed\x20in\x20','high-risk-write','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','266840pFsLGd','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$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}}','update','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20WHERE\x20OPERATORS','1304THQByb','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','read','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$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\x20PAGINATION','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','build','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','Update\x20an\x20existing\x20record','dryRun','12UBEmKa','write','\x20\x20AGGREGATE\x20TYPES','\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}}]}','str','14030840yIpOYY','description','body','helpExtra','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','filter','4ggSUkr','\x20\x20EXAMPLES','now','\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','paramsHint','getOne','7109335hrUcej','params','\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}'];a20_0xd63d=function(){return _0x4119fb;};return a20_0xd63d();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a20_0x4dc0d1(0xaa),'operation':'filter','risk':a20_0x4dc0d1(0x97),'paramsRequired':![],'description':a20_0x4dc0d1(0xbf),'paramsHint':a20_0x4dc0d1(0x8c)+a20_0x4dc0d1(0x82),'helpExtra':[a20_0x4dc0d1(0x94),a20_0x4dc0d1(0x7c),a20_0x4dc0d1(0x8f),a20_0x4dc0d1(0xb3),'\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}}','\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}}',a20_0x4dc0d1(0x99),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a20_0x4dc0d1(0xc7),a20_0x4dc0d1(0x88),'','\x20\x20LOGICAL\x20COMBINATORS',a20_0x4dc0d1(0x78),a20_0x4dc0d1(0xa3),'',a20_0x4dc0d1(0xbc),a20_0x4dc0d1(0x8e),a20_0x4dc0d1(0x7f),a20_0x4dc0d1(0xc4),a20_0x4dc0d1(0x92),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a20_0x4dc0d1(0x9a),a20_0x4dc0d1(0xa9),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a20_0x4dc0d1(0xc3)][a20_0x4dc0d1(0xb5)]('\x0a')},{'command':'getOne','operation':a20_0x4dc0d1(0xb0),'risk':a20_0x4dc0d1(0x97),'paramsRequired':!![],'description':a20_0x4dc0d1(0x91),'paramsHint':a20_0x4dc0d1(0x87)},{'command':a20_0x4dc0d1(0xb6),'operation':a20_0x4dc0d1(0xb6),'risk':'write','paramsRequired':!![],'description':a20_0x4dc0d1(0xc1),'paramsHint':a20_0x4dc0d1(0x9b)},{'command':'batchCreate','operation':a20_0x4dc0d1(0xb9),'risk':a20_0x4dc0d1(0xa1),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a20_0x4dc0d1(0x7a)},{'command':a20_0x4dc0d1(0x90),'operation':a20_0x4dc0d1(0x90),'risk':'write','paramsRequired':!![],'description':a20_0x4dc0d1(0x9e),'paramsHint':a20_0x4dc0d1(0x9d)},{'command':a20_0x4dc0d1(0xba),'operation':a20_0x4dc0d1(0xba),'risk':a20_0x4dc0d1(0x8a),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a20_0x4dc0d1(0x87)},{'command':a20_0x4dc0d1(0x80),'operation':a20_0x4dc0d1(0x80),'risk':'read','paramsRequired':![],'description':a20_0x4dc0d1(0xc6),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a20_0x4dc0d1(0x81),'helpExtra':[a20_0x4dc0d1(0xa2),a20_0x4dc0d1(0x85),a20_0x4dc0d1(0xb8),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a20_0x4dc0d1(0xb4),a20_0x4dc0d1(0xae),a20_0x4dc0d1(0x79),a20_0x4dc0d1(0x7d),'','\x20\x20PARAMS\x20STRUCTURE',a20_0x4dc0d1(0x84),a20_0x4dc0d1(0x7e),a20_0x4dc0d1(0x98),'\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\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]',a20_0x4dc0d1(0xc0),'',a20_0x4dc0d1(0xac),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a20_0x4dc0d1(0x96),'',a20_0x4dc0d1(0x8b),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\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','',a20_0x4dc0d1(0x93)][a20_0x4dc0d1(0xb5)]('\x0a')}];function makeDataCommand(_0xe7e8db){const _0x364c3d=a20_0x4dc0d1,_0x11e631=_0x364c3d(0x86)+_0xe7e8db[_0x364c3d(0x76)],_0x36d1c3={'service':'data','command':_0xe7e8db['command'],'description':_0xe7e8db[_0x364c3d(0xa6)],'risk':_0xe7e8db[_0x364c3d(0xc8)],'helpExtra':_0xe7e8db[_0x364c3d(0xa8)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xe7e8db[_0x364c3d(0xaf)]}],'validate':async _0x5aa2ee=>{const _0x352d7a=_0x364c3d;_0xe7e8db['paramsRequired']&&requireAnyOf(_0x5aa2ee,[_0x352d7a(0xb2)],_0x11e631),_0xe7e8db[_0x352d7a(0xc2)]===_0x352d7a(0xb9)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5aa2ee['str']('params')));},async 'execute'(_0x2e8fd9){const _0x2406cb=_0x364c3d,_0x58c2a8=_0x2e8fd9[_0x2406cb(0xa4)](_0x2406cb(0xbb)),_0x4b7d2b=_0xe7e8db[_0x2406cb(0xc2)]===_0x2406cb(0xb9)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2e8fd9[_0x2406cb(0xa4)](_0x2406cb(0xb2)))):parseJsonParams(_0x2e8fd9[_0x2406cb(0xa4)](_0x2406cb(0xb2)))??{},_0x8a6361=Date[_0x2406cb(0xad)](),_0x11534c=await executeData(_0x58c2a8,_0xe7e8db[_0x2406cb(0xc2)],_0x4b7d2b),_0x2e78db=Date['now']()-_0x8a6361;return{'ok':!![],'data':{'result':_0x11534c,'elapsed':_0x2e78db},'message':'data\x20'+_0xe7e8db[_0x2406cb(0x76)]+_0x2406cb(0x89)+_0x2e78db+'ms'};}};return _0xe7e8db[_0x364c3d(0xc8)]!==_0x364c3d(0x97)&&(_0x36d1c3[_0x364c3d(0x9f)]=async _0x5ed01e=>{const _0x3128f7=_0x364c3d,_0x30a8f4=_0x5ed01e[_0x3128f7(0xa4)]('code'),_0x20172b=_0xe7e8db[_0x3128f7(0xc2)]===_0x3128f7(0xb9)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5ed01e[_0x3128f7(0xa4)]('params'))):parseJsonParams(_0x5ed01e[_0x3128f7(0xa4)]('params'))??{};return dryRun('POST','/api/{appCode}/'+_0x30a8f4+'/'+_0xe7e8db[_0x3128f7(0xc2)])[_0x3128f7(0xa7)](_0x20172b)[_0x3128f7(0xa6)](_0x3128f7(0xb7)+_0xe7e8db[_0x3128f7(0x76)]+_0x3128f7(0x83)+_0x30a8f4)[_0x3128f7(0x9c)]();}),_0x36d1c3;}export const dataDefinitions=specs[a20_0x4dc0d1(0xbe)](makeDataCommand);
1
+ const a20_0x56c4db=a20_0xb051;function a20_0xb051(_0x5ee92f,_0x2dd6b0){_0x5ee92f=_0x5ee92f-0x6b;const _0x141c47=a20_0x141c();let _0xb051bf=_0x141c47[_0x5ee92f];return _0xb051bf;}(function(_0x25eab3,_0x2badd6){const _0x1b7839=a20_0xb051,_0x16c5eb=_0x25eab3();while(!![]){try{const _0x4fb90e=parseInt(_0x1b7839(0x83))/0x1*(-parseInt(_0x1b7839(0x6c))/0x2)+-parseInt(_0x1b7839(0x86))/0x3*(-parseInt(_0x1b7839(0xb1))/0x4)+parseInt(_0x1b7839(0xa5))/0x5+-parseInt(_0x1b7839(0x9c))/0x6*(parseInt(_0x1b7839(0x7a))/0x7)+-parseInt(_0x1b7839(0xb9))/0x8+parseInt(_0x1b7839(0xb5))/0x9*(-parseInt(_0x1b7839(0x7d))/0xa)+-parseInt(_0x1b7839(0xb3))/0xb*(-parseInt(_0x1b7839(0x94))/0xc);if(_0x4fb90e===_0x2badd6)break;else _0x16c5eb['push'](_0x16c5eb['shift']());}catch(_0x3500eb){_0x16c5eb['push'](_0x16c5eb['shift']());}}}(a20_0x141c,0x5c362));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':a20_0x56c4db(0x76),'operation':a20_0x56c4db(0x76),'risk':a20_0x56c4db(0x99),'paramsRequired':![],'description':a20_0x56c4db(0xae),'paramsHint':a20_0x56c4db(0x80)+a20_0x56c4db(0x6b),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a20_0x56c4db(0x7b),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a20_0x56c4db(0x9d),a20_0x56c4db(0x70),'\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}}',a20_0x56c4db(0xb6),a20_0x56c4db(0x87),'\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}}',a20_0x56c4db(0xb8),'',a20_0x56c4db(0xa4),a20_0x56c4db(0x7f),'\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)',a20_0x56c4db(0xa1),a20_0x56c4db(0x9e),a20_0x56c4db(0xad),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a20_0x56c4db(0x90),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a20_0x56c4db(0x6f),a20_0x56c4db(0x75)][a20_0x56c4db(0x97)]('\x0a')},{'command':a20_0x56c4db(0x6e),'operation':a20_0x56c4db(0x6e),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a20_0x56c4db(0xbb)},{'command':a20_0x56c4db(0x8f),'operation':a20_0x56c4db(0x8f),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a20_0x56c4db(0xaf)},{'command':a20_0x56c4db(0x92),'operation':a20_0x56c4db(0x92),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':a20_0x56c4db(0x8c),'paramsHint':a20_0x56c4db(0x77)},{'command':'update','operation':a20_0x56c4db(0xa7),'risk':a20_0x56c4db(0x95),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a20_0x56c4db(0x91)},{'command':a20_0x56c4db(0x93),'operation':a20_0x56c4db(0x93),'risk':a20_0x56c4db(0xb2),'paramsRequired':!![],'description':a20_0x56c4db(0x85),'paramsHint':a20_0x56c4db(0xbb)},{'command':'aggregate','operation':'aggregate','risk':a20_0x56c4db(0x99),'paramsRequired':![],'description':a20_0x56c4db(0xa8),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a20_0x56c4db(0xba),'helpExtra':[a20_0x56c4db(0xa6),a20_0x56c4db(0xb0),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a20_0x56c4db(0x81),a20_0x56c4db(0x74),a20_0x56c4db(0x9b),a20_0x56c4db(0x96),a20_0x56c4db(0xb7),'',a20_0x56c4db(0x98),a20_0x56c4db(0x73),a20_0x56c4db(0xaa),a20_0x56c4db(0x7e),'\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\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a20_0x56c4db(0x7c),a20_0x56c4db(0x8d),a20_0x56c4db(0xa9),'',a20_0x56c4db(0x79),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\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','',a20_0x56c4db(0x72)][a20_0x56c4db(0x97)]('\x0a')}];function makeDataCommand(_0x3cc8bb){const _0x4459a1=a20_0x56c4db,_0x17917b=_0x4459a1(0xa2)+_0x3cc8bb[_0x4459a1(0x8b)],_0x517125={'service':_0x4459a1(0x89),'command':_0x3cc8bb[_0x4459a1(0x8b)],'description':_0x3cc8bb[_0x4459a1(0xbd)],'risk':_0x3cc8bb['risk'],'helpExtra':_0x3cc8bb[_0x4459a1(0x6d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3cc8bb[_0x4459a1(0xb4)]}],'validate':async _0x3989b5=>{const _0x2f08b7=_0x4459a1;_0x3cc8bb[_0x2f08b7(0x8e)]&&requireAnyOf(_0x3989b5,['params'],_0x17917b),_0x3cc8bb[_0x2f08b7(0xac)]===_0x2f08b7(0x92)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3989b5[_0x2f08b7(0x9f)](_0x2f08b7(0xa0))));},async 'execute'(_0x282778){const _0x555809=_0x4459a1,_0x4ff7ef=_0x282778[_0x555809(0x9f)]('code'),_0x196dcf=_0x3cc8bb[_0x555809(0xac)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x282778[_0x555809(0x9f)]('params'))):parseJsonParams(_0x282778[_0x555809(0x9f)](_0x555809(0xa0)))??{},_0x1ae8a5=Date[_0x555809(0x82)](),_0x5533f3=await executeData(_0x4ff7ef,_0x3cc8bb[_0x555809(0xac)],_0x196dcf),_0x5428c8=Date[_0x555809(0x82)]()-_0x1ae8a5;return{'ok':!![],'data':{'result':_0x5533f3,'elapsed':_0x5428c8},'message':_0x555809(0xa2)+_0x3cc8bb['command']+_0x555809(0xbc)+_0x5428c8+'ms'};}};return _0x3cc8bb[_0x4459a1(0x9a)]!==_0x4459a1(0x99)&&(_0x517125[_0x4459a1(0x78)]=async _0x569214=>{const _0xb44bce=_0x4459a1,_0x25a125=_0x569214[_0xb44bce(0x9f)](_0xb44bce(0xab)),_0x1b365c=_0x3cc8bb['operation']===_0xb44bce(0x92)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x569214[_0xb44bce(0x9f)](_0xb44bce(0xa0)))):parseJsonParams(_0x569214[_0xb44bce(0x9f)]('params'))??{};return dryRun(_0xb44bce(0x84),_0xb44bce(0x8a)+_0x25a125+'/'+_0x3cc8bb[_0xb44bce(0xac)])[_0xb44bce(0xa3)](_0x1b365c)[_0xb44bce(0xbd)]('Preview:\x20data\x20'+_0x3cc8bb[_0xb44bce(0x8b)]+'\x20on\x20dataset\x20'+_0x25a125)[_0xb44bce(0x88)]();}),_0x517125;}export const dataDefinitions=specs[a20_0x56c4db(0x71)](makeDataCommand);function a20_0x141c(){const _0x493b9d=['now','37190FLhsPw','POST','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','1161XlqYPZ','\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}}','build','data','/api/{appCode}/','command','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','paramsRequired','create','\x20\x20PAGINATION','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','batchCreate','delete','24cuQefd','write','\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{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','join','\x20\x20PARAMS\x20STRUCTURE','read','risk','\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{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','18oaWphu','\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}}','\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]','str','params','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','body','\x20\x20LOGICAL\x20COMBINATORS','968945sKEuRi','\x20\x20AGGREGATE\x20TYPES','update','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','code','operation','\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}]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','292ICyOYc','high-risk-write','8895997BcilEx','paramsHint','4347hkXqZk','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\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}}','5796856XPchaC','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20completed\x20in\x20','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','20UNbUgD','helpExtra','getOne','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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}}','map','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','filter','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','dryRun','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','389144feUvJy','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20EXAMPLES','4110FywQnX','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20$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}}]}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}'];a20_0x141c=function(){return _0x493b9d;};return a20_0x141c();}
@@ -1 +1 @@
1
- const a21_0x194d28=a21_0x26fc;(function(_0x2ce685,_0x347af5){const _0x2b3d5c=a21_0x26fc,_0x45c1b5=_0x2ce685();while(!![]){try{const _0x324f07=parseInt(_0x2b3d5c(0xc5))/0x1+-parseInt(_0x2b3d5c(0xd1))/0x2*(-parseInt(_0x2b3d5c(0xa9))/0x3)+parseInt(_0x2b3d5c(0xbc))/0x4*(parseInt(_0x2b3d5c(0xad))/0x5)+parseInt(_0x2b3d5c(0xd4))/0x6*(-parseInt(_0x2b3d5c(0xe8))/0x7)+-parseInt(_0x2b3d5c(0xaa))/0x8*(-parseInt(_0x2b3d5c(0xb1))/0x9)+parseInt(_0x2b3d5c(0xb7))/0xa+-parseInt(_0x2b3d5c(0xe3))/0xb*(parseInt(_0x2b3d5c(0xef))/0xc);if(_0x324f07===_0x347af5)break;else _0x45c1b5['push'](_0x45c1b5['shift']());}catch(_0x4bb378){_0x45c1b5['push'](_0x45c1b5['shift']());}}}(a21_0x55a9,0x9a96b));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3bf85f){const _0x5f0cc9=a21_0x26fc;if(_0x3bf85f['deleted'])return null;const _0x1eabde=Boolean(_0x3bf85f['displayName']!==undefined||_0x3bf85f[_0x5f0cc9(0xf1)]!==undefined);let _0x439164={};if(!_0x1eabde&&typeof _0x3bf85f[_0x5f0cc9(0xa5)]==='string')try{_0x439164=JSON['parse'](_0x3bf85f['extend']);}catch{}const _0x3e6e6=_0x1eabde?_0x3bf85f[_0x5f0cc9(0xd6)]:_0x3bf85f[_0x5f0cc9(0xae)],_0x558fcc=_0x1eabde?_0x3bf85f['displayName']:_0x3bf85f[_0x5f0cc9(0xd6)],_0x546f13=_0x1eabde?_0x3bf85f[_0x5f0cc9(0xf1)]:_0x3bf85f[_0x5f0cc9(0xed)]||_0x3bf85f[_0x5f0cc9(0xd3)],_0x5d4728=_0x1eabde?_0x3bf85f[_0x5f0cc9(0xa6)]===!![]:_0x439164[_0x5f0cc9(0xa6)]===!![],_0x4f61e8=_0x1eabde?_0x3bf85f[_0x5f0cc9(0xb0)]===!![]:_0x439164[_0x5f0cc9(0xb0)]===!![],_0x3a1fad=_0x1eabde?_0x3bf85f[_0x5f0cc9(0xcb)]??null:_0x439164[_0x5f0cc9(0xcb)]??null,_0x244b1a={'name':_0x3e6e6,'displayName':_0x558fcc||_0x3e6e6,'type':_0x546f13,'dbType':_0x3bf85f[_0x5f0cc9(0xda)],'pk':_0x5d4728,'required':_0x4f61e8,'description':_0x3bf85f[_0x5f0cc9(0xd0)]||undefined};return Array[_0x5f0cc9(0xdb)](_0x3a1fad)&&_0x3a1fad[_0x5f0cc9(0xc3)]>0x0&&(_0x244b1a[_0x5f0cc9(0xcb)]=_0x3a1fad),_0x244b1a;}function parseJsonMaybe(_0xb4f550){const _0x47a9c7=a21_0x26fc;if(typeof _0xb4f550!==_0x47a9c7(0xde))return _0xb4f550;try{return JSON[_0x47a9c7(0xcc)](_0xb4f550);}catch{return _0xb4f550;}}function normalizeOperationEntry(_0x4e713e,_0x28c4c9){const _0x35356d=a21_0x26fc;if(!_0x28c4c9||typeof _0x28c4c9!==_0x35356d(0xc6))return null;if(!_0x28c4c9[_0x35356d(0xb2)]||!_0x28c4c9[_0x35356d(0xe7)])return null;const _0x4396cb={'name':_0x4e713e,'method':_0x28c4c9[_0x35356d(0xb2)],'path':_0x28c4c9[_0x35356d(0xe7)]};if(_0x28c4c9[_0x35356d(0xbf)])_0x4396cb[_0x35356d(0xbf)]=_0x28c4c9[_0x35356d(0xbf)];if(_0x28c4c9[_0x35356d(0xea)]!=null)_0x4396cb['requestBody']=parseJsonMaybe(_0x28c4c9[_0x35356d(0xea)]);if(_0x28c4c9['responseBody']!=null)_0x4396cb[_0x35356d(0xbd)]=parseJsonMaybe(_0x28c4c9[_0x35356d(0xbd)]);if(_0x28c4c9[_0x35356d(0xe4)]!=null)_0x4396cb[_0x35356d(0xe4)]=_0x28c4c9[_0x35356d(0xe4)];if(_0x28c4c9[_0x35356d(0xee)]!=null)_0x4396cb['afterScriptId']=_0x28c4c9[_0x35356d(0xee)];if(Array['isArray'](_0x28c4c9[_0x35356d(0xba)]))_0x4396cb[_0x35356d(0xba)]=_0x28c4c9[_0x35356d(0xba)];if(Array['isArray'](_0x28c4c9[_0x35356d(0xce)]))_0x4396cb[_0x35356d(0xce)]=_0x28c4c9[_0x35356d(0xce)];return _0x4396cb;}function summarizeDbtable(_0x249ab3){const _0x319da0=a21_0x26fc,_0x553d69={},_0x24f1d6=[_0x319da0(0xdd),_0x319da0(0xf0),_0x319da0(0xb4),'datasetKey','pkField','allFields','logicField','createTimeField',_0x319da0(0xb5),'creatorIdField',_0x319da0(0xe6),_0x319da0(0xc7),'modifierNameField',_0x319da0(0xec),_0x319da0(0xd7)];for(const _0x186bcd of _0x24f1d6){if(_0x249ab3[_0x186bcd]!==undefined)_0x553d69[_0x186bcd]=_0x249ab3[_0x186bcd];}return typeof _0x553d69[_0x319da0(0xb8)]===_0x319da0(0xde)&&_0x553d69[_0x319da0(0xb8)][_0x319da0(0xc3)]>0x0&&(_0x553d69[_0x319da0(0xbb)]=_0x553d69[_0x319da0(0xb8)]['split'](',')[_0x319da0(0xd2)](_0x2546cc=>_0x2546cc[_0x319da0(0xe1)]())[_0x319da0(0xb3)](Boolean)),_0x553d69;}function normalizeRelatedPages(_0xada222){const _0x2f4957=a21_0x26fc;if(!Array[_0x2f4957(0xdb)](_0xada222))return[];return _0xada222['filter'](_0x2211c8=>_0x2211c8&&typeof _0x2211c8===_0x2f4957(0xc6))['map'](_0x2d6d05=>({'id':_0x2d6d05['id'],'type':_0x2d6d05['type'],'code':_0x2d6d05[_0x2f4957(0xae)],'title':_0x2d6d05['title'],'deleted':_0x2d6d05['deleted']===!![]}));}function a21_0x26fc(_0xe6688b,_0x54a51a){_0xe6688b=_0xe6688b-0xa5;const _0x55a9df=a21_0x55a9();let _0x26fccb=_0x55a9df[_0xe6688b];return _0x26fccb;}function normalizeFallbackFieldName(_0x46d955,_0x35f76a){const _0x549285=_0x46d955['trim']();if(!_0x549285)return null;return{'name':_0x549285,'displayName':_0x549285,'type':undefined,'dbType':undefined,'pk':_0x549285===_0x35f76a,'required':![],'description':undefined};}async function loadListFieldFallback(_0xaf71ad,_0x2c85b6){const _0x3980bb=a21_0x26fc;if(!_0xaf71ad||!_0x2c85b6)return[];try{const _0x1aaf1d=await listDatasets(_0xaf71ad,{'code':_0x2c85b6}),_0x2090f7=_0x1aaf1d[_0x3980bb(0xdf)](_0x2fa75c=>_0x2fa75c['code']===_0x2c85b6)??_0x1aaf1d[0x0],_0x30784a=_0x2090f7?.['dbtableConfig']??{},_0x3f1690=typeof _0x30784a[_0x3980bb(0xb8)]===_0x3980bb(0xde)?_0x30784a['allFields'][_0x3980bb(0xeb)](','):[];return _0x3f1690['map'](_0x2aa89c=>normalizeFallbackFieldName(_0x2aa89c,_0x30784a[_0x3980bb(0xa6)]))[_0x3980bb(0xb3)](_0x20af74=>_0x20af74!==null);}catch{return[];}}export const datasetDetail={'service':a21_0x194d28(0xcf),'command':a21_0x194d28(0xa7),'description':a21_0x194d28(0xc9),'risk':a21_0x194d28(0xc4),'flags':[CODE_FLAG],async 'execute'(_0x52333e){const _0x169722=a21_0x194d28,_0x1ee5f2=await getDatasetDetail(_0x52333e[_0x169722(0xb6)](_0x169722(0xae))),_0x3ccece=Array[_0x169722(0xdb)](_0x1ee5f2['fields'])?_0x1ee5f2[_0x169722(0xdc)]:Array[_0x169722(0xdb)](_0x1ee5f2['properties'])?_0x1ee5f2[_0x169722(0xbe)]:[];let _0x217401=_0x3ccece[_0x169722(0xd2)](_0x240890=>normalizeField(_0x240890))['filter'](_0x563b71=>_0x563b71!==null);_0x217401[_0x169722(0xc3)]===0x0&&(_0x217401=await loadListFieldFallback(_0x52333e[_0x169722(0xe5)],_0x52333e[_0x169722(0xb6)]('code')));const _0x58f001=_0x1ee5f2['operations']??{},_0x35d13a=[];for(const [_0x153ccd,_0x4da3d0]of Object[_0x169722(0xc8)](_0x58f001)){const _0x7ebb52=normalizeOperationEntry(_0x153ccd,_0x4da3d0);if(_0x7ebb52)_0x35d13a[_0x169722(0xe9)](_0x7ebb52);}const _0x14c824=_0x1ee5f2['dbtableConfig']??{},_0x537acc=_0x1ee5f2['dataset']??{},_0x21244f=_0x14c824['dbId']!=null?{'id':_0x14c824[_0x169722(0xdd)],'name':_0x14c824['dbName']??null}:undefined;let _0x3aaadf;return typeof _0x1ee5f2[_0x169722(0xa5)]===_0x169722(0xde)&&(_0x3aaadf=parseJsonMaybe(_0x1ee5f2[_0x169722(0xa5)])),{'ok':!![],'data':{'id':_0x1ee5f2[_0x169722(0xc0)]??_0x1ee5f2['id'],'name':_0x1ee5f2[_0x169722(0xd6)],'code':_0x1ee5f2[_0x169722(0xc1)]||_0x1ee5f2[_0x169722(0xae)],'doVersion':_0x1ee5f2[_0x169722(0xe0)],'description':_0x1ee5f2[_0x169722(0xd0)]||_0x537acc['tableComment']||undefined,'source':_0x1ee5f2['source']||_0x537acc[_0x169722(0xac)],'table':_0x14c824[_0x169722(0xb4)]||_0x537acc[_0x169722(0xb4)],'datasetKey':_0x14c824['datasetKey'],'pk':_0x14c824[_0x169722(0xa6)],'db':_0x21244f,'dbtable':summarizeDbtable(_0x14c824),'fields':_0x217401,'operations':_0x35d13a,'indexes':Array[_0x169722(0xdb)](_0x537acc[_0x169722(0xc2)])?_0x537acc[_0x169722(0xc2)]:[],'relations':Array[_0x169722(0xdb)](_0x1ee5f2[_0x169722(0xca)])?_0x1ee5f2[_0x169722(0xca)][_0x169722(0xd2)](_0x3628ce=>({'fromField':_0x3628ce[_0x169722(0xd5)],'toDataset':_0x3628ce[_0x169722(0xd9)],'toCode':_0x3628ce[_0x169722(0xa8)],'toTable':_0x3628ce['toTableName'],'toField':_0x3628ce[_0x169722(0xe2)],'labelField':_0x3628ce[_0x169722(0xb9)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x1ee5f2[_0x169722(0xab)]),...Array[_0x169722(0xdb)](_0x1ee5f2['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x1ee5f2[_0x169722(0xaf)]}:{},'formatRules':Array[_0x169722(0xdb)](_0x1ee5f2['formatRules'])?_0x1ee5f2[_0x169722(0xd8)]:[],'validateRules':Array['isArray'](_0x1ee5f2[_0x169722(0xcd)])?_0x1ee5f2['validateRules']:[],..._0x3aaadf!==undefined?{'extend':_0x3aaadf}:{},'stats':{'fieldCount':_0x217401[_0x169722(0xc3)],'operationCount':_0x35d13a[_0x169722(0xc3)]}}};}};function a21_0x55a9(){const _0x3f2467=['relations','options','parse','validateRules','responseFields','dataset','description','224746loVpHB','map','dataType','24HSRraC','fromField','name','dblinkInfoDTO','formatRules','toDatasetName','dbType','isArray','fields','dbId','string','find','doVersion','trim','toField','4323pztIzI','beforeScriptId','appCode','creatorNameField','path','2110003OWOBXO','push','requestBody','split','labelField','type','afterScriptId','71160GqTOyC','dbName','doType','extend','pkField','detail','toDatasetCode','33pBfayH','3245416aldDXg','relatedPageInfoList','sourceType','85tzxZiN','code','columnCodeListWithDeleted','required','9oXTZAh','method','filter','tableName','updateTimeField','str','5045540UaNIVr','allFields','toFieldLabel','requestFields','allFieldNames','208732YrsZss','responseBody','properties','host','modelId','modelCode','indexes','length','read','1135956BjgrGG','object','modifierIdField','entries','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations'];a21_0x55a9=function(){return _0x3f2467;};return a21_0x55a9();}
1
+ const a21_0xd2fc2e=a21_0xb167;(function(_0x304e0f,_0x465a16){const _0x4a5533=a21_0xb167,_0x3d9211=_0x304e0f();while(!![]){try{const _0x1bd51e=parseInt(_0x4a5533(0xa6))/0x1+parseInt(_0x4a5533(0xcf))/0x2+-parseInt(_0x4a5533(0xb7))/0x3+parseInt(_0x4a5533(0xbd))/0x4+parseInt(_0x4a5533(0xad))/0x5*(parseInt(_0x4a5533(0x97))/0x6)+parseInt(_0x4a5533(0xb5))/0x7+-parseInt(_0x4a5533(0xd1))/0x8;if(_0x1bd51e===_0x465a16)break;else _0x3d9211['push'](_0x3d9211['shift']());}catch(_0x4f3efb){_0x3d9211['push'](_0x3d9211['shift']());}}}(a21_0x1a79,0x4a186));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x5c0c20){const _0x52bffc=a21_0xb167;if(_0x5c0c20['deleted'])return null;const _0x24baef=Boolean(_0x5c0c20[_0x52bffc(0xc9)]!==undefined||_0x5c0c20[_0x52bffc(0xbf)]!==undefined);let _0xadb1ba={};if(!_0x24baef&&typeof _0x5c0c20[_0x52bffc(0xd6)]===_0x52bffc(0xd5))try{_0xadb1ba=JSON[_0x52bffc(0xab)](_0x5c0c20['extend']);}catch{}const _0x542756=_0x24baef?_0x5c0c20[_0x52bffc(0xb8)]:_0x5c0c20[_0x52bffc(0xb2)],_0x39cfc0=_0x24baef?_0x5c0c20[_0x52bffc(0xc9)]:_0x5c0c20[_0x52bffc(0xb8)],_0x1edef3=_0x24baef?_0x5c0c20['doType']:_0x5c0c20['type']||_0x5c0c20[_0x52bffc(0xba)],_0x32d2aa=_0x24baef?_0x5c0c20[_0x52bffc(0xc2)]===!![]:_0xadb1ba[_0x52bffc(0xc2)]===!![],_0x1eb717=_0x24baef?_0x5c0c20['required']===!![]:_0xadb1ba['required']===!![],_0x299447=_0x24baef?_0x5c0c20[_0x52bffc(0xbe)]??null:_0xadb1ba[_0x52bffc(0xbe)]??null,_0x4e2290={'name':_0x542756,'displayName':_0x39cfc0||_0x542756,'type':_0x1edef3,'dbType':_0x5c0c20[_0x52bffc(0x9c)],'pk':_0x32d2aa,'required':_0x1eb717,'description':_0x5c0c20[_0x52bffc(0x9e)]||undefined};return Array['isArray'](_0x299447)&&_0x299447[_0x52bffc(0xc8)]>0x0&&(_0x4e2290[_0x52bffc(0xbe)]=_0x299447),_0x4e2290;}function a21_0xb167(_0x5dafcb,_0x5ef195){_0x5dafcb=_0x5dafcb-0x96;const _0x1a79e5=a21_0x1a79();let _0xb16794=_0x1a79e5[_0x5dafcb];return _0xb16794;}function parseJsonMaybe(_0x376783){const _0x4bb0b6=a21_0xb167;if(typeof _0x376783!==_0x4bb0b6(0xd5))return _0x376783;try{return JSON[_0x4bb0b6(0xab)](_0x376783);}catch{return _0x376783;}}function normalizeOperationEntry(_0x667318,_0x105d74){const _0x72d12a=a21_0xb167;if(!_0x105d74||typeof _0x105d74!==_0x72d12a(0xc3))return null;if(!_0x105d74[_0x72d12a(0xcc)]||!_0x105d74['path'])return null;const _0x5d886d={'name':_0x667318,'method':_0x105d74['method'],'path':_0x105d74['path']};if(_0x105d74[_0x72d12a(0xdd)])_0x5d886d[_0x72d12a(0xdd)]=_0x105d74[_0x72d12a(0xdd)];if(_0x105d74[_0x72d12a(0xa3)]!=null)_0x5d886d[_0x72d12a(0xa3)]=parseJsonMaybe(_0x105d74['requestBody']);if(_0x105d74[_0x72d12a(0xa2)]!=null)_0x5d886d['responseBody']=parseJsonMaybe(_0x105d74[_0x72d12a(0xa2)]);if(_0x105d74[_0x72d12a(0x9f)]!=null)_0x5d886d['beforeScriptId']=_0x105d74[_0x72d12a(0x9f)];if(_0x105d74[_0x72d12a(0xcb)]!=null)_0x5d886d['afterScriptId']=_0x105d74[_0x72d12a(0xcb)];if(Array[_0x72d12a(0xb3)](_0x105d74[_0x72d12a(0x96)]))_0x5d886d['requestFields']=_0x105d74['requestFields'];if(Array[_0x72d12a(0xb3)](_0x105d74['responseFields']))_0x5d886d[_0x72d12a(0xaa)]=_0x105d74[_0x72d12a(0xaa)];return _0x5d886d;}function summarizeDbtable(_0x11be88){const _0x549fd6=a21_0xb167,_0x3dedb5={},_0x1ca68c=[_0x549fd6(0xb9),_0x549fd6(0xde),_0x549fd6(0x9a),'datasetKey',_0x549fd6(0xc2),_0x549fd6(0xa5),_0x549fd6(0xb4),_0x549fd6(0xc0),_0x549fd6(0xb6),'creatorIdField',_0x549fd6(0xc6),_0x549fd6(0xd4),_0x549fd6(0xd7),_0x549fd6(0xa1),'dblinkInfoDTO'];for(const _0x320c68 of _0x1ca68c){if(_0x11be88[_0x320c68]!==undefined)_0x3dedb5[_0x320c68]=_0x11be88[_0x320c68];}return typeof _0x3dedb5['allFields']===_0x549fd6(0xd5)&&_0x3dedb5['allFields'][_0x549fd6(0xc8)]>0x0&&(_0x3dedb5[_0x549fd6(0xa4)]=_0x3dedb5[_0x549fd6(0xa5)]['split'](',')['map'](_0x4a82f4=>_0x4a82f4[_0x549fd6(0xa0)]())[_0x549fd6(0xdc)](Boolean)),_0x3dedb5;}function a21_0x1a79(){const _0x1bc64d=['responseFields','parse','appCode','335mjdaCe','detail','datasetKey','dataset','read','code','isArray','logicField','4231402YAhqHW','updateTimeField','998547rkWsby','name','dbId','dataType','columnCodeListWithDeleted','find','358972hCIRyK','options','doType','createTimeField','validateRules','pkField','object','split','deleted','creatorNameField','formatRules','length','displayName','tableComment','afterScriptId','method','properties','toTableName','486390aIoFcu','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','6853392UdpfoY','relatedPageInfoList','toFieldLabel','modifierIdField','string','extend','modifierNameField','relations','dbtableConfig','push','modelCode','filter','host','dbName','str','requestFields','2958cPhIWj','entries','indexes','tableName','source','dbType','toDatasetCode','description','beforeScriptId','trim','labelField','responseBody','requestBody','allFieldNames','allFields','522562wRBNDB','fields','map','modelId'];a21_0x1a79=function(){return _0x1bc64d;};return a21_0x1a79();}function normalizeRelatedPages(_0x43ad99){const _0x28fd61=a21_0xb167;if(!Array['isArray'](_0x43ad99))return[];return _0x43ad99[_0x28fd61(0xdc)](_0x4a00a0=>_0x4a00a0&&typeof _0x4a00a0===_0x28fd61(0xc3))['map'](_0x192c6d=>({'id':_0x192c6d['id'],'type':_0x192c6d['type'],'code':_0x192c6d[_0x28fd61(0xb2)],'title':_0x192c6d['title'],'deleted':_0x192c6d[_0x28fd61(0xc5)]===!![]}));}function normalizeFallbackFieldName(_0x513d27,_0x2497ed){const _0x3ab743=a21_0xb167,_0x4ce085=_0x513d27[_0x3ab743(0xa0)]();if(!_0x4ce085)return null;return{'name':_0x4ce085,'displayName':_0x4ce085,'type':undefined,'dbType':undefined,'pk':_0x4ce085===_0x2497ed,'required':![],'description':undefined};}async function loadListFieldFallback(_0x41cf24,_0x158e3f){const _0x506eff=a21_0xb167;if(!_0x41cf24||!_0x158e3f)return[];try{const _0x10f24c=await listDatasets(_0x41cf24,{'code':_0x158e3f}),_0x4b62c0=_0x10f24c[_0x506eff(0xbc)](_0x32a9f4=>_0x32a9f4[_0x506eff(0xb2)]===_0x158e3f)??_0x10f24c[0x0],_0x101865=_0x4b62c0?.['dbtableConfig']??{},_0x13665e=typeof _0x101865['allFields']==='string'?_0x101865[_0x506eff(0xa5)][_0x506eff(0xc4)](','):[];return _0x13665e[_0x506eff(0xa8)](_0x3ee99e=>normalizeFallbackFieldName(_0x3ee99e,_0x101865['pkField']))['filter'](_0x3ce03b=>_0x3ce03b!==null);}catch{return[];}}export const datasetDetail={'service':a21_0xd2fc2e(0xb0),'command':a21_0xd2fc2e(0xae),'description':a21_0xd2fc2e(0xd0),'risk':a21_0xd2fc2e(0xb1),'flags':[CODE_FLAG],async 'execute'(_0x27cf9f){const _0x527716=a21_0xd2fc2e,_0x54a54b=await getDatasetDetail(_0x27cf9f[_0x527716(0xdf)](_0x527716(0xb2))),_0x31edbf=Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xa7)])?_0x54a54b[_0x527716(0xa7)]:Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xcd)])?_0x54a54b[_0x527716(0xcd)]:[];let _0x9114e8=_0x31edbf['map'](_0x3855df=>normalizeField(_0x3855df))[_0x527716(0xdc)](_0x6085d9=>_0x6085d9!==null);_0x9114e8[_0x527716(0xc8)]===0x0&&(_0x9114e8=await loadListFieldFallback(_0x27cf9f[_0x527716(0xac)],_0x27cf9f['str'](_0x527716(0xb2))));const _0x2347b8=_0x54a54b['operations']??{},_0x2e5b35=[];for(const [_0x23332f,_0x2dcea5]of Object[_0x527716(0x98)](_0x2347b8)){const _0x1f4053=normalizeOperationEntry(_0x23332f,_0x2dcea5);if(_0x1f4053)_0x2e5b35[_0x527716(0xda)](_0x1f4053);}const _0x39fe8a=_0x54a54b[_0x527716(0xd9)]??{},_0x5746a7=_0x54a54b['dataset']??{},_0x50a7f8=_0x39fe8a[_0x527716(0xb9)]!=null?{'id':_0x39fe8a[_0x527716(0xb9)],'name':_0x39fe8a[_0x527716(0xde)]??null}:undefined;let _0x22eb6e;return typeof _0x54a54b[_0x527716(0xd6)]===_0x527716(0xd5)&&(_0x22eb6e=parseJsonMaybe(_0x54a54b[_0x527716(0xd6)])),{'ok':!![],'data':{'id':_0x54a54b[_0x527716(0xa9)]??_0x54a54b['id'],'name':_0x54a54b[_0x527716(0xb8)],'code':_0x54a54b[_0x527716(0xdb)]||_0x54a54b[_0x527716(0xb2)],'doVersion':_0x54a54b['doVersion'],'description':_0x54a54b[_0x527716(0x9e)]||_0x5746a7[_0x527716(0xca)]||undefined,'source':_0x54a54b[_0x527716(0x9b)]||_0x5746a7['sourceType'],'table':_0x39fe8a[_0x527716(0x9a)]||_0x5746a7[_0x527716(0x9a)],'datasetKey':_0x39fe8a[_0x527716(0xaf)],'pk':_0x39fe8a[_0x527716(0xc2)],'db':_0x50a7f8,'dbtable':summarizeDbtable(_0x39fe8a),'fields':_0x9114e8,'operations':_0x2e5b35,'indexes':Array[_0x527716(0xb3)](_0x5746a7['indexes'])?_0x5746a7[_0x527716(0x99)]:[],'relations':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xd8)])?_0x54a54b[_0x527716(0xd8)][_0x527716(0xa8)](_0x4b3006=>({'fromField':_0x4b3006['fromField'],'toDataset':_0x4b3006['toDatasetName'],'toCode':_0x4b3006[_0x527716(0x9d)],'toTable':_0x4b3006[_0x527716(0xce)],'toField':_0x4b3006['toField'],'labelField':_0x4b3006[_0x527716(0xd3)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x54a54b[_0x527716(0xd2)]),...Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xbb)])?{'columnCodeListWithDeleted':_0x54a54b[_0x527716(0xbb)]}:{},'formatRules':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xc7)])?_0x54a54b['formatRules']:[],'validateRules':Array[_0x527716(0xb3)](_0x54a54b[_0x527716(0xc1)])?_0x54a54b[_0x527716(0xc1)]:[],..._0x22eb6e!==undefined?{'extend':_0x22eb6e}:{},'stats':{'fieldCount':_0x9114e8['length'],'operationCount':_0x2e5b35[_0x527716(0xc8)]}}};}};
@@ -1 +1 @@
1
- (function(_0x3cdcd1,_0x5b65cd){const _0x55c665=a22_0x3873,_0xb5afe7=_0x3cdcd1();while(!![]){try{const _0x50340b=-parseInt(_0x55c665(0x11c))/0x1+-parseInt(_0x55c665(0x124))/0x2*(-parseInt(_0x55c665(0x11d))/0x3)+-parseInt(_0x55c665(0x11f))/0x4+parseInt(_0x55c665(0x122))/0x5+parseInt(_0x55c665(0x11e))/0x6+parseInt(_0x55c665(0x123))/0x7*(parseInt(_0x55c665(0x125))/0x8)+-parseInt(_0x55c665(0x120))/0x9*(parseInt(_0x55c665(0x121))/0xa);if(_0x50340b===_0x5b65cd)break;else _0xb5afe7['push'](_0xb5afe7['shift']());}catch(_0x2f33c3){_0xb5afe7['push'](_0xb5afe7['shift']());}}}(a22_0x3f68,0xbe324));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x3873(_0x38b51b,_0x1c4dd4){_0x38b51b=_0x38b51b-0x11c;const _0x3f68ec=a22_0x3f68();let _0x387316=_0x3f68ec[_0x38b51b];return _0x387316;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a22_0x3f68(){const _0x4631ea=['4086HAZAQF','40190QAcJAt','6074415jUTFwp','40985hUvALu','4xVaIYx','1112IEOeAE','185245VNMZeq','1550103hEgdhi','5523582IjaliO','4775248OXbKyg'];a22_0x3f68=function(){return _0x4631ea;};return a22_0x3f68();}
1
+ function a22_0xd098(_0x215c52,_0x39088d){_0x215c52=_0x215c52-0x192;const _0x172cbd=a22_0x172c();let _0xd0981c=_0x172cbd[_0x215c52];return _0xd0981c;}(function(_0x198e24,_0x6fceaf){const _0x3398ee=a22_0xd098,_0x1840ed=_0x198e24();while(!![]){try{const _0x172aa0=parseInt(_0x3398ee(0x192))/0x1*(-parseInt(_0x3398ee(0x197))/0x2)+parseInt(_0x3398ee(0x198))/0x3*(parseInt(_0x3398ee(0x19c))/0x4)+-parseInt(_0x3398ee(0x196))/0x5+parseInt(_0x3398ee(0x195))/0x6*(-parseInt(_0x3398ee(0x19a))/0x7)+-parseInt(_0x3398ee(0x19b))/0x8*(-parseInt(_0x3398ee(0x194))/0x9)+-parseInt(_0x3398ee(0x199))/0xa+parseInt(_0x3398ee(0x193))/0xb;if(_0x172aa0===_0x6fceaf)break;else _0x1840ed['push'](_0x1840ed['shift']());}catch(_0x100ca7){_0x1840ed['push'](_0x1840ed['shift']());}}}(a22_0x172c,0x9706a));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a22_0x172c(){const _0xa4448e=['653RnpbyC','31037589vFwiuu','6803829KGtrXK','3680562dxwblW','2594490pHbiIs','2804JFViYE','1923yxYwGY','3175910UHNYFZ','14MFAdhK','8wZmBWP','124zwOqOU'];a22_0x172c=function(){return _0xa4448e;};return a22_0x172c();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a23_0x501c(_0x577849,_0x565836){_0x577849=_0x577849-0x16a;const _0x482f82=a23_0x482f();let _0x501cb9=_0x482f82[_0x577849];return _0x501cb9;}const a23_0x11a1e6=a23_0x501c;(function(_0x3726dd,_0x516e79){const _0x275ccb=a23_0x501c,_0x5c7f9b=_0x3726dd();while(!![]){try{const _0x3034a7=-parseInt(_0x275ccb(0x16a))/0x1+parseInt(_0x275ccb(0x179))/0x2+-parseInt(_0x275ccb(0x16d))/0x3+parseInt(_0x275ccb(0x17a))/0x4*(-parseInt(_0x275ccb(0x16b))/0x5)+parseInt(_0x275ccb(0x180))/0x6+-parseInt(_0x275ccb(0x178))/0x7+parseInt(_0x275ccb(0x176))/0x8;if(_0x3034a7===_0x516e79)break;else _0x5c7f9b['push'](_0x5c7f9b['shift']());}catch(_0x453817){_0x5c7f9b['push'](_0x5c7f9b['shift']());}}}(a23_0x482f,0xa9b70));function a23_0x482f(){const _0x3f0bab=['2390926nTeBMy','2124068wpzVwM','string','allFields','dbtableConfig','name','datasetKey','154038TxdGDI','trim','str','appCode','802593mYWgYN','10nsjdOK','map','930594LfqHtl','dataset','length','code','read','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','description','tableName','17525568RSqerA','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','3792985xntoEi'];a23_0x482f=function(){return _0x3f0bab;};return a23_0x482f();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a23_0x11a1e6(0x16e),'command':'list','description':a23_0x11a1e6(0x177),'risk':a23_0x11a1e6(0x171),'flags':[{'name':a23_0x11a1e6(0x17e),'type':a23_0x11a1e6(0x17b),'description':a23_0x11a1e6(0x172)},{...CODE_FLAG,'required':![],'description':a23_0x11a1e6(0x173)}],async 'execute'(_0x468edc){const _0x40db18=a23_0x11a1e6,_0x51bbbc=_0x468edc[_0x40db18(0x182)](_0x40db18(0x17e)),_0x54a512=_0x468edc[_0x40db18(0x182)](_0x40db18(0x170)),_0x198e81=await listDatasets(_0x468edc[_0x40db18(0x183)],{..._0x51bbbc&&{'name':_0x51bbbc},..._0x54a512&&{'code':_0x54a512}});return{'ok':!![],'data':{'total':_0x198e81[_0x40db18(0x16f)],'datasets':_0x198e81[_0x40db18(0x16c)](_0x343193=>{const _0x52165d=_0x40db18,_0x2d9207=_0x343193[_0x52165d(0x17d)]??{};return{'id':_0x343193['id'],'code':_0x343193[_0x52165d(0x170)],'name':_0x343193[_0x52165d(0x17e)],'source':_0x343193['source'],'description':_0x343193[_0x52165d(0x174)],'table':_0x2d9207[_0x52165d(0x175)],'datasetKey':_0x2d9207[_0x52165d(0x17f)],'pk':_0x2d9207['pkField'],'fields':_0x2d9207['allFields']?_0x2d9207[_0x52165d(0x17c)]['split'](',')[_0x52165d(0x16c)](_0x326226=>_0x326226[_0x52165d(0x181)]()):[]};})}};}};
1
+ const a23_0x5f031b=a23_0x440e;function a23_0x440e(_0x445527,_0x2b6f0a){_0x445527=_0x445527-0x106;const _0x414019=a23_0x4140();let _0x440e5e=_0x414019[_0x445527];return _0x440e5e;}(function(_0x10f6c2,_0x86883b){const _0x3874aa=a23_0x440e,_0x4f8083=_0x10f6c2();while(!![]){try{const _0x2373ed=-parseInt(_0x3874aa(0x112))/0x1+-parseInt(_0x3874aa(0x11c))/0x2*(-parseInt(_0x3874aa(0x110))/0x3)+-parseInt(_0x3874aa(0x11b))/0x4*(parseInt(_0x3874aa(0x120))/0x5)+parseInt(_0x3874aa(0x111))/0x6*(parseInt(_0x3874aa(0x118))/0x7)+-parseInt(_0x3874aa(0x10b))/0x8*(-parseInt(_0x3874aa(0x10e))/0x9)+parseInt(_0x3874aa(0x11d))/0xa+-parseInt(_0x3874aa(0x11e))/0xb;if(_0x2373ed===_0x86883b)break;else _0x4f8083['push'](_0x4f8083['shift']());}catch(_0x33395c){_0x4f8083['push'](_0x4f8083['shift']());}}}(a23_0x4140,0x4dc8d));import{listDatasets}from'../../core/api-client.js';function a23_0x4140(){const _0x2d4e23=['trim','string','7ioEagB','appCode','str','456244atAQBv','6MwmtKt','5484590xtNoQA','1093587rrFHJt','name','10WaYYaB','pkField','dbtableConfig','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','read','allFields','map','496dhcyCz','length','source','10359CyjxeH','datasetKey','14973eNhfkV','291426IulwGu','37221qXhnEG','code','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','dataset'];a23_0x4140=function(){return _0x2d4e23;};return a23_0x4140();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a23_0x5f031b(0x115),'command':'list','description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a23_0x5f031b(0x108),'flags':[{'name':'name','type':a23_0x5f031b(0x117),'description':a23_0x5f031b(0x107)},{...CODE_FLAG,'required':![],'description':a23_0x5f031b(0x114)}],async 'execute'(_0x4b6131){const _0x43aff6=a23_0x5f031b,_0x1de194=_0x4b6131['str'](_0x43aff6(0x11f)),_0x5b37c2=_0x4b6131[_0x43aff6(0x11a)](_0x43aff6(0x113)),_0x5e6d84=await listDatasets(_0x4b6131[_0x43aff6(0x119)],{..._0x1de194&&{'name':_0x1de194},..._0x5b37c2&&{'code':_0x5b37c2}});return{'ok':!![],'data':{'total':_0x5e6d84[_0x43aff6(0x10c)],'datasets':_0x5e6d84[_0x43aff6(0x10a)](_0x128280=>{const _0x564d85=_0x43aff6,_0x1ae00f=_0x128280[_0x564d85(0x106)]??{};return{'id':_0x128280['id'],'code':_0x128280[_0x564d85(0x113)],'name':_0x128280[_0x564d85(0x11f)],'source':_0x128280[_0x564d85(0x10d)],'description':_0x128280['description'],'table':_0x1ae00f['tableName'],'datasetKey':_0x1ae00f[_0x564d85(0x10f)],'pk':_0x1ae00f[_0x564d85(0x121)],'fields':_0x1ae00f[_0x564d85(0x109)]?_0x1ae00f['allFields']['split'](',')[_0x564d85(0x10a)](_0xb1fac1=>_0xb1fac1[_0x564d85(0x116)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a24_0x5c7e01=a24_0x7db1;(function(_0x2d55e9,_0x201b86){const _0x3a197b=a24_0x7db1,_0x346be6=_0x2d55e9();while(!![]){try{const _0x20b50d=-parseInt(_0x3a197b(0xd7))/0x1+parseInt(_0x3a197b(0xe6))/0x2+-parseInt(_0x3a197b(0xe0))/0x3+parseInt(_0x3a197b(0xdc))/0x4*(-parseInt(_0x3a197b(0xd6))/0x5)+-parseInt(_0x3a197b(0xd4))/0x6*(parseInt(_0x3a197b(0xd3))/0x7)+-parseInt(_0x3a197b(0xe4))/0x8*(-parseInt(_0x3a197b(0xd2))/0x9)+parseInt(_0x3a197b(0xde))/0xa;if(_0x20b50d===_0x201b86)break;else _0x346be6['push'](_0x346be6['shift']());}catch(_0x5c3ea3){_0x346be6['push'](_0x346be6['shift']());}}}(a24_0x3da5,0x7e699));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a24_0x7db1(_0x4804f3,_0x2ecf0f){_0x4804f3=_0x4804f3-0xd2;const _0x3da51e=a24_0x3da5();let _0x7db1f4=_0x3da51e[_0x4804f3];return _0x7db1f4;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a24_0x5c7e01(0xd9);export function formatDatasetSdkMarkdown(_0x2d2a31){const _0x4b86d9=a24_0x5c7e01,_0x50ebc2=typeof _0x2d2a31===_0x4b86d9(0xe2)?_0x2d2a31[_0x4b86d9(0xdb)]():'';return _0x50ebc2||DEFAULT_MARKDOWN;}function a24_0x3da5(){const _0x529026=['316aAwOVl','dataset','22546430mfzTnQ','sdk-doc','450093PskMmO','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','string','read','11272YLFtAU','str','932952JvIzeG','315DjbIlq','4282817vafDzB','6gxjKYF','appCode','47615CkPOWx','738470jWrJRx','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','code','trim'];a24_0x3da5=function(){return _0x529026;};return a24_0x3da5();}export const datasetSdkDoc={'service':a24_0x5c7e01(0xdd),'command':a24_0x5c7e01(0xdf),'description':a24_0x5c7e01(0xd8),'risk':a24_0x5c7e01(0xe3),'flags':[{...CODE_FLAG,'description':a24_0x5c7e01(0xe1)}],async 'execute'(_0x2c7a39){const _0x3753ee=a24_0x5c7e01,_0xf93368=_0x2c7a39[_0x3753ee(0xe5)](_0x3753ee(0xda)),_0x17ee9f=await getDatasetSdkUsageDoc(_0xf93368,_0x2c7a39[_0x3753ee(0xd5)]);return{'ok':!![],'data':{'code':_0xf93368,'appCode':_0x2c7a39['appCode'],'markdown':formatDatasetSdkMarkdown(_0x17ee9f)}};}};
1
+ function a24_0x1100(){const _0x67cd83=['381412MvrEMQ','192720OgJnck','read','674807SfmETy','375336CFCmdi','12CxHeGt','535045mGbTcI','trim','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','code','appCode','str','1803svDWMr','2015480jazqib','1172nVQjBa','32DGNibM','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a24_0x1100=function(){return _0x67cd83;};return a24_0x1100();}const a24_0x2697ea=a24_0x131e;(function(_0x5e6cca,_0x8e0a7e){const _0xfa377b=a24_0x131e,_0x138c8a=_0x5e6cca();while(!![]){try{const _0x4b156e=parseInt(_0xfa377b(0x13a))/0x1+-parseInt(_0xfa377b(0x139))/0x2+-parseInt(_0xfa377b(0x134))/0x3*(parseInt(_0xfa377b(0x136))/0x4)+parseInt(_0xfa377b(0x12e))/0x5+-parseInt(_0xfa377b(0x12d))/0x6*(parseInt(_0xfa377b(0x12b))/0x7)+-parseInt(_0xfa377b(0x137))/0x8*(-parseInt(_0xfa377b(0x12c))/0x9)+parseInt(_0xfa377b(0x135))/0xa;if(_0x4b156e===_0x8e0a7e)break;else _0x138c8a['push'](_0x138c8a['shift']());}catch(_0xfda178){_0x138c8a['push'](_0x138c8a['shift']());}}}(a24_0x1100,0x1a7cc));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';export function formatDatasetSdkMarkdown(_0x3b04d1){const _0x676401=a24_0x131e,_0x3dcd91=typeof _0x3b04d1==='string'?_0x3b04d1[_0x676401(0x12f)]():'';return _0x3dcd91||DEFAULT_MARKDOWN;}function a24_0x131e(_0x25b6e5,_0x1970f7){_0x25b6e5=_0x25b6e5-0x12a;const _0x110080=a24_0x1100();let _0x131eee=_0x110080[_0x25b6e5];return _0x131eee;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a24_0x2697ea(0x138),'risk':a24_0x2697ea(0x12a),'flags':[{...CODE_FLAG,'description':a24_0x2697ea(0x130)}],async 'execute'(_0x11d7a3){const _0x1ff80e=a24_0x2697ea,_0x52d3d0=_0x11d7a3[_0x1ff80e(0x133)](_0x1ff80e(0x131)),_0x15b762=await getDatasetSdkUsageDoc(_0x52d3d0,_0x11d7a3[_0x1ff80e(0x132)]);return{'ok':!![],'data':{'code':_0x52d3d0,'appCode':_0x11d7a3[_0x1ff80e(0x132)],'markdown':formatDatasetSdkMarkdown(_0x15b762)}};}};
@@ -1 +1 @@
1
- const a25_0x44a7ae=a25_0x22b4;function a25_0x22b4(_0x102eb6,_0xab6c73){_0x102eb6=_0x102eb6-0x1ef;const _0x4365d6=a25_0x4365();let _0x22b4ad=_0x4365d6[_0x102eb6];return _0x22b4ad;}(function(_0x2f2b1f,_0x3947f1){const _0x1c0adb=a25_0x22b4,_0xa305f5=_0x2f2b1f();while(!![]){try{const _0x51c3c4=-parseInt(_0x1c0adb(0x209))/0x1*(parseInt(_0x1c0adb(0x210))/0x2)+-parseInt(_0x1c0adb(0x229))/0x3+-parseInt(_0x1c0adb(0x1fe))/0x4+parseInt(_0x1c0adb(0x200))/0x5+-parseInt(_0x1c0adb(0x22c))/0x6+parseInt(_0x1c0adb(0x1f5))/0x7*(parseInt(_0x1c0adb(0x202))/0x8)+parseInt(_0x1c0adb(0x22e))/0x9;if(_0x51c3c4===_0x3947f1)break;else _0xa305f5['push'](_0xa305f5['shift']());}catch(_0x8a0eb1){_0xa305f5['push'](_0xa305f5['shift']());}}}(a25_0x4365,0x8abc9));import a25_0x46d631 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a25_0x4365(){const _0x31839f=['\x20\x20runtimeDomain:\x20\x20\x20','commandCount','(none)','392778fgNwRN','verbose','\x20commands)','doctor','padEnd','\x20Imported\x20from:\x20','Global','green','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','format','\x20doctor','message','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','log','✓\x20Loaded','ClientAk','arch','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Config\x20Files','bold','riskLevel','env','1686255WQwrgu','accessKey','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','4640754UmPYbh','read','15351516xZEsVz','(missing)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','repeat','check','(unnamed)','Project','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','name','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','length','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','locale','(set,\x20length=','(not\x20set)','red','status','(not\x20found)','\x20\x20─','37079pJagiJ','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','(default)','\x20\x20Service\x20Tree','pageSize','platform','2627936yHxNXx','yellow','1897695VuupkC','\x20(accessKey)','1608mRklnb','\x20\x20Config\x20JSON','source','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20Auth','serviceCode','3rChjGf','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','missing'];a25_0x4365=function(){return _0x31839f;};return a25_0x4365();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x338d21){const _0x114d40=a25_0x22b4,_0xbb52fd=getCliVersion(),_0x781f79=buildConfigFromFlags({});await initGlobalEnvironment(_0x781f79),console[_0x114d40(0x21f)](),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x226)](CLI_BIN_NAME+_0x114d40(0x21b))),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x21e)]('─'['repeat'](0x32))),console[_0x114d40(0x21f)](_0x114d40(0x23a)+_0xbb52fd),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x114d40(0x21f)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x114d40(0x1fd)]+'\x20'+process[_0x114d40(0x222)]),console[_0x114d40(0x21f)](),console[_0x114d40(0x21f)](a25_0x46d631['bold'](_0x114d40(0x225))),console['log'](a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x1f4)[_0x114d40(0x232)](0x1e)));const _0x3f1174=getGlobalConfigPath(),_0x56df64=getProjectConfigPath();console[_0x114d40(0x21f)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3f1174||a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x1f3)))),console[_0x114d40(0x21f)](_0x114d40(0x1f8)+(_0x56df64||a25_0x46d631['gray'](_0x114d40(0x1f3)))),console[_0x114d40(0x21f)](),console[_0x114d40(0x21f)](a25_0x46d631['bold'](_0x114d40(0x203))),console[_0x114d40(0x21f)](a25_0x46d631['gray'](_0x114d40(0x1f4)['repeat'](0x1e)));const _0x550a3f=(_0x34a9e9,_0x10451a)=>{const _0x958065=_0x114d40;if(!_0x10451a){console[_0x958065(0x21f)]('\x20\x20'+_0x34a9e9[_0x958065(0x214)](0x11)+'\x20'+a25_0x46d631[_0x958065(0x21e)]('(no\x20file)'));return;}const _0xea05d2=inspectCliConfigJsonFile(_0x10451a);if(_0xea05d2[_0x958065(0x1f2)]==='ok')console[_0x958065(0x21f)]('\x20\x20'+_0x34a9e9['padEnd'](0x11)+'\x20'+a25_0x46d631[_0x958065(0x217)](_0x958065(0x1f9)));else{if(_0xea05d2[_0x958065(0x1f2)]===_0x958065(0x231))console[_0x958065(0x21f)]('\x20\x20'+_0x34a9e9[_0x958065(0x214)](0x11)+'\x20'+a25_0x46d631[_0x958065(0x1ff)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xea05d2[_0x958065(0x1f2)]===_0x958065(0x20c)?console[_0x958065(0x21f)]('\x20\x20'+_0x34a9e9[_0x958065(0x214)](0x11)+'\x20'+a25_0x46d631['gray'](_0x958065(0x22f))):(console['log']('\x20\x20'+_0x34a9e9['padEnd'](0x11)+'\x20'+a25_0x46d631[_0x958065(0x1f1)](_0x958065(0x237))),console['log']('\x20\x20'+''[_0x958065(0x214)](0x11)+'\x20'+a25_0x46d631[_0x958065(0x1f1)](_0xea05d2[_0x958065(0x21c)])));}};_0x550a3f(_0x114d40(0x216),_0x3f1174),_0x550a3f(_0x114d40(0x235),_0x56df64),console[_0x114d40(0x21f)](),console['log'](a25_0x46d631[_0x114d40(0x226)](_0x114d40(0x206))),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x21e)]('\x20\x20─'[_0x114d40(0x232)](0x1e))),console[_0x114d40(0x21f)](_0x114d40(0x205)+(_0x781f79['appCode']||a25_0x46d631['red'](_0x114d40(0x1f0)))),console[_0x114d40(0x21f)](_0x114d40(0x21d)+_0x781f79[_0x114d40(0x228)]);const _0x6ab106=isLegacyCompatConfigKey(_0x114d40(0x23f))?a25_0x46d631[_0x114d40(0x21e)](_0x781f79[_0x114d40(0x23f)]+'\x20(legacy/compat\x20only)'):_0x781f79['locale'];console[_0x114d40(0x21f)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x6ab106),console['log'](_0x114d40(0x219)+(_0x781f79['defaultApp']||a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x20f)))),console[_0x114d40(0x21f)](_0x114d40(0x239)+(_0x781f79[_0x114d40(0x23b)]||a25_0x46d631['gray'](_0x114d40(0x20f)))),console[_0x114d40(0x21f)](_0x114d40(0x20a)+(_0x781f79[_0x114d40(0x21a)]||a25_0x46d631[_0x114d40(0x21e)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x114d40(0x21a)]+')'))),console['log'](_0x114d40(0x223)+(_0x781f79[_0x114d40(0x1fc)]??a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x1fa)))),console[_0x114d40(0x21f)](_0x114d40(0x1f6)+_0x781f79[_0x114d40(0x227)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x781f79[_0x114d40(0x211)]),console[_0x114d40(0x21f)](_0x114d40(0x1f7)+AUTH_MODE[_0x114d40(0x221)]),console[_0x114d40(0x21f)](_0x114d40(0x23d)+(_0x781f79[_0x114d40(0x22a)]?a25_0x46d631['green'](_0x114d40(0x1ef)+_0x781f79[_0x114d40(0x22a)][_0x114d40(0x23c)]+')'):a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x20f)))),console[_0x114d40(0x21f)](),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x226)]('\x20\x20API\x20Endpoints')),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x1f4)[_0x114d40(0x232)](0x1e))),console[_0x114d40(0x21f)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x114d40(0x21f)](_0x114d40(0x22b)+getUserDomain()),console[_0x114d40(0x21f)](_0x114d40(0x20d)+getRuntimeDomain()),console['log'](),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x226)](_0x114d40(0x1fb))),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x1f4)[_0x114d40(0x232)](0x1e)));const _0x4fffca=inspectServiceRegistry();console[_0x114d40(0x21f)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4fffca['registryPath']),console[_0x114d40(0x21f)](_0x114d40(0x236)+formatServiceRegistryStatus(_0x4fffca)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4fffca['serviceCount']),console[_0x114d40(0x21f)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4fffca[_0x114d40(0x20e)]);for(const _0x2c8003 of _0x4fffca[_0x114d40(0x20b)]){console[_0x114d40(0x21f)]('\x20\x20'+(_0x2c8003[_0x114d40(0x208)]+':')[_0x114d40(0x214)](0x11)+'\x20'+(_0x2c8003[_0x114d40(0x238)]||a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x234)))+'\x20('+_0x2c8003[_0x114d40(0x20e)]+_0x114d40(0x212)),console[_0x114d40(0x21f)]('\x20\x20'+''[_0x114d40(0x214)](0x11)+_0x114d40(0x215)+_0x2c8003[_0x114d40(0x204)]['path']);}return console[_0x114d40(0x21f)](),console[_0x114d40(0x21f)](a25_0x46d631['bold'](_0x114d40(0x207))),console[_0x114d40(0x21f)](a25_0x46d631[_0x114d40(0x21e)]('\x20\x20─'['repeat'](0x1e))),console['log'](_0x114d40(0x230)+a25_0x46d631[_0x114d40(0x217)](AUTH_MODE[_0x114d40(0x221)]+_0x114d40(0x201))),console[_0x114d40(0x21f)](_0x114d40(0x218)+a25_0x46d631[_0x114d40(0x21e)](_0x114d40(0x23e))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5cee51){const _0x3e5022=a25_0x22b4;if(_0x5cee51[_0x3e5022(0x1f2)]==='ok')return a25_0x46d631[_0x3e5022(0x217)](_0x3e5022(0x220));if(_0x5cee51[_0x3e5022(0x1f2)]==='missing')return a25_0x46d631[_0x3e5022(0x21e)](_0x3e5022(0x1f3));if(_0x5cee51[_0x3e5022(0x1f2)]===_0x3e5022(0x231))return a25_0x46d631['yellow']('⚠\x20Empty');return a25_0x46d631[_0x3e5022(0x1f1)]('✗\x20Invalid'+(_0x5cee51['message']?':\x20'+_0x5cee51[_0x3e5022(0x21c)]:''));}export const doctorDefinition={'service':a25_0x44a7ae(0x213),'command':a25_0x44a7ae(0x233),'description':a25_0x44a7ae(0x224),'risk':a25_0x44a7ae(0x22d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a25_0xb6b899=a25_0x5b20;(function(_0x12b3c4,_0x2a4cda){const _0xa598b9=a25_0x5b20,_0x56b399=_0x12b3c4();while(!![]){try{const _0x5d71e2=-parseInt(_0xa598b9(0x220))/0x1+parseInt(_0xa598b9(0x221))/0x2*(-parseInt(_0xa598b9(0x203))/0x3)+-parseInt(_0xa598b9(0x22e))/0x4*(-parseInt(_0xa598b9(0x23e))/0x5)+parseInt(_0xa598b9(0x23d))/0x6*(-parseInt(_0xa598b9(0x214))/0x7)+-parseInt(_0xa598b9(0x234))/0x8+parseInt(_0xa598b9(0x21a))/0x9+parseInt(_0xa598b9(0x231))/0xa;if(_0x5d71e2===_0x2a4cda)break;else _0x56b399['push'](_0x56b399['shift']());}catch(_0x20c99f){_0x56b399['push'](_0x56b399['shift']());}}}(a25_0x127e,0x1df2a));import a25_0x492383 from'chalk';function a25_0x127e(){const _0x259964=['30DzTloz','981920ENkSmj','(unnamed)','name','status','✗\x20Invalid','\x20\x20─','Project','(not\x20found)','\x20\x20Service\x20Tree','appCode','✓\x20Loaded','\x20(accessKey)','empty','length','gray','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(none)','format','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','Diagnose\x20CLI\x20configuration\x20and\x20environment','599139NzgbVO','verbose','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','Global','commandCount','check','\x20(legacy/compat\x20only)','accessKey','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','serviceCode','green','log','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','331590aHwaTg','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','source','1586943gRInLY','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','yellow','(default)','(default:\x20','235814neCuem','2yJsoBd','\x20\x20Config\x20JSON','platform','ClientAk','missing','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20doctor','version','\x20\x20auth\x20(effective):\x20','(not\x20set)','padEnd','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4DySFsE','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','4913190GUmAAk','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','551896JkJAOx','\x20commands)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','message','defaultApp','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold'];a25_0x127e=function(){return _0x259964;};return a25_0x127e();}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 a25_0x5b20(_0x3cc244,_0x12b2fc){_0x3cc244=_0x3cc244-0x1f0;const _0x127e4f=a25_0x127e();let _0x5b205f=_0x127e4f[_0x3cc244];return _0x5b205f;}import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x35dd23){const _0x29af54=a25_0x5b20,_0x39a6ad=getCliVersion(),_0x492bdc=buildConfigFromFlags({});await initGlobalEnvironment(_0x492bdc),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](CLI_BIN_NAME+_0x29af54(0x228))),console[_0x29af54(0x211)](a25_0x492383['gray']('─'[_0x29af54(0x201)](0x32))),console['log'](_0x29af54(0x21c)+_0x39a6ad),console[_0x29af54(0x211)](_0x29af54(0x236)+process[_0x29af54(0x229)]),console['log'](_0x29af54(0x20d)+process[_0x29af54(0x223)]+'\x20'+process['arch']),console[_0x29af54(0x211)](),console['log'](a25_0x492383[_0x29af54(0x23c)]('\x20\x20Config\x20Files')),console['log'](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x11a695=getGlobalConfigPath(),_0x4272b8=getProjectConfigPath();console['log'](_0x29af54(0x205)+(_0x11a695||a25_0x492383[_0x29af54(0x1f9)]('(not\x20found)'))),console[_0x29af54(0x211)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4272b8||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f2)))),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x222))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x4aa519=(_0x587227,_0x27456d)=>{const _0x14452b=_0x29af54;if(!_0x27456d){console[_0x14452b(0x211)]('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x1f9)]('(no\x20file)'));return;}const _0x1e4b24=inspectCliConfigJsonFile(_0x27456d);if(_0x1e4b24['status']==='ok')console[_0x14452b(0x211)]('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x210)]('✓\x20Valid\x20JSON'));else{if(_0x1e4b24[_0x14452b(0x241)]===_0x14452b(0x1f7))console[_0x14452b(0x211)]('\x20\x20'+_0x587227[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21d)](_0x14452b(0x233)));else _0x1e4b24[_0x14452b(0x241)]==='missing'?console['log']('\x20\x20'+_0x587227[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x1f9)]('(missing)')):(console['log']('\x20\x20'+_0x587227['padEnd'](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21b)]('✗\x20Invalid\x20JSON')),console[_0x14452b(0x211)]('\x20\x20'+''[_0x14452b(0x22c)](0x11)+'\x20'+a25_0x492383[_0x14452b(0x21b)](_0x1e4b24[_0x14452b(0x239)])));}};_0x4aa519(_0x29af54(0x207),_0x11a695),_0x4aa519(_0x29af54(0x1f1),_0x4272b8),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x206))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f0)[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)](_0x29af54(0x217)+(_0x492bdc[_0x29af54(0x1f4)]||a25_0x492383[_0x29af54(0x21b)](_0x29af54(0x22b)))),console[_0x29af54(0x211)](_0x29af54(0x200)+_0x492bdc['env']);const _0x66caf=isLegacyCompatConfigKey('locale')?a25_0x492383[_0x29af54(0x1f9)](_0x492bdc['locale']+_0x29af54(0x20a)):_0x492bdc['locale'];console[_0x29af54(0x211)](_0x29af54(0x22d)+_0x66caf),console[_0x29af54(0x211)](_0x29af54(0x215)+(_0x492bdc[_0x29af54(0x23a)]||a25_0x492383[_0x29af54(0x1f9)]('(none)'))),console['log'](_0x29af54(0x212)+(_0x492bdc[_0x29af54(0x232)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1fc)))),console[_0x29af54(0x211)](_0x29af54(0x20c)+(_0x492bdc[_0x29af54(0x1fd)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x21f)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x29af54(0x211)](_0x29af54(0x1fe)+(_0x492bdc['pageSize']??a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x21e)))),console[_0x29af54(0x211)](_0x29af54(0x1fb)+_0x492bdc['riskLevel']),console[_0x29af54(0x211)](_0x29af54(0x22f)+_0x492bdc[_0x29af54(0x204)]),console[_0x29af54(0x211)](_0x29af54(0x22a)+AUTH_MODE[_0x29af54(0x224)]),console[_0x29af54(0x211)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x492bdc['accessKey']?a25_0x492383[_0x29af54(0x210)]('(set,\x20length='+_0x492bdc[_0x29af54(0x20b)][_0x29af54(0x1f8)]+')'):a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1fc)))),console[_0x29af54(0x211)](),console['log'](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x227))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1f0)[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x29af54(0x1fa)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x29af54(0x211)](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x1f3))),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x1f9)]('\x20\x20─'[_0x29af54(0x201)](0x1e)));const _0x3b4787=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b4787[_0x29af54(0x20e)]),console['log'](_0x29af54(0x237)+formatServiceRegistryStatus(_0x3b4787)),console['log'](_0x29af54(0x23b)+_0x3b4787['serviceCount']),console[_0x29af54(0x211)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b4787['commandCount']);for(const _0x33d6d5 of _0x3b4787['services']){console[_0x29af54(0x211)]('\x20\x20'+(_0x33d6d5[_0x29af54(0x20f)]+':')[_0x29af54(0x22c)](0x11)+'\x20'+(_0x33d6d5[_0x29af54(0x240)]||a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x23f)))+'\x20('+_0x33d6d5[_0x29af54(0x208)]+_0x29af54(0x235)),console[_0x29af54(0x211)]('\x20\x20'+''[_0x29af54(0x22c)](0x11)+_0x29af54(0x218)+_0x33d6d5[_0x29af54(0x219)][_0x29af54(0x238)]);}return console['log'](),console[_0x29af54(0x211)](a25_0x492383[_0x29af54(0x23c)](_0x29af54(0x213))),console[_0x29af54(0x211)](a25_0x492383['gray']('\x20\x20─'[_0x29af54(0x201)](0x1e))),console[_0x29af54(0x211)](_0x29af54(0x226)+a25_0x492383[_0x29af54(0x210)](AUTH_MODE[_0x29af54(0x224)]+_0x29af54(0x1f6))),console[_0x29af54(0x211)](_0x29af54(0x230)+a25_0x492383[_0x29af54(0x1f9)](_0x29af54(0x1ff))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x26d13d){const _0x5d79ed=a25_0x5b20;if(_0x26d13d[_0x5d79ed(0x241)]==='ok')return a25_0x492383[_0x5d79ed(0x210)](_0x5d79ed(0x1f5));if(_0x26d13d[_0x5d79ed(0x241)]===_0x5d79ed(0x225))return a25_0x492383['gray'](_0x5d79ed(0x1f2));if(_0x26d13d[_0x5d79ed(0x241)]===_0x5d79ed(0x1f7))return a25_0x492383[_0x5d79ed(0x21d)](_0x5d79ed(0x216));return a25_0x492383[_0x5d79ed(0x21b)](_0x5d79ed(0x242)+(_0x26d13d[_0x5d79ed(0x239)]?':\x20'+_0x26d13d[_0x5d79ed(0x239)]:''));}export const doctorDefinition={'service':'doctor','command':a25_0xb6b899(0x209),'description':a25_0xb6b899(0x202),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a26_0x36a972=a26_0x555c;function a26_0x555c(_0x20fa7c,_0x591a11){_0x20fa7c=_0x20fa7c-0x181;const _0x5c59fc=a26_0x5c59();let _0x555ca5=_0x5c59fc[_0x20fa7c];return _0x555ca5;}(function(_0x2668ef,_0x5f3d0d){const _0x2ba8a7=a26_0x555c,_0x39945b=_0x2668ef();while(!![]){try{const _0x1e3bad=parseInt(_0x2ba8a7(0x181))/0x1+parseInt(_0x2ba8a7(0x1c5))/0x2+-parseInt(_0x2ba8a7(0x18d))/0x3+-parseInt(_0x2ba8a7(0x191))/0x4*(parseInt(_0x2ba8a7(0x1a4))/0x5)+parseInt(_0x2ba8a7(0x195))/0x6+-parseInt(_0x2ba8a7(0x1b6))/0x7+parseInt(_0x2ba8a7(0x189))/0x8;if(_0x1e3bad===_0x5f3d0d)break;else _0x39945b['push'](_0x39945b['shift']());}catch(_0x5e76b9){_0x39945b['push'](_0x39945b['shift']());}}}(a26_0x5c59,0x206af));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';import{PRODUCT_CONFIG}from'../constant/product.js';function a26_0x5c59(){const _0x3308d7=['string','question','App\x20code\x20for\x20the\x20project','\x0aInitialized\x20','cwd','20584UVrxgi','78010EbVMmJ','object','User\x20aborted\x20prompt','App\x20code\x20cannot\x20be\x20empty.','cancelled','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x20already\x20exists.\x20Overwrite?','toLowerCase','3073760rrzYKx','apps','message','File\x20','159288iYtOTM','entries','file','newConfigFileName','92hsixxw','[Y/n]','Target\x20environment\x20(default\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','768972xXSSUH','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`.','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','includes','name','app','\x20\x20appcode:\x20','project',')\x20instead\x20of\x20project','\x22.\x20Allowed:\x20','once','Source\x20file\x20not\x20found:\x20','riskLevel','appcode','):\x20','33370AufFeY','boolean','Override\x20imported\x20default\x20env','race','Skip\x20confirmation\x20when\x20overwriting','global','close','stdout','trim','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Override\x20imported\x20default\x20appcode','Failed\x20to\x20parse\x20source\x20file:\x20','\x20\x20config:\x20\x20','App\x20code','env','Invalid\x20env\x20\x22','removeListener','1829121XQgHYk','apiDir','stdin','log','SIGINT','validation','\x20\x20env:\x20\x20\x20\x20\x20','yes','defaultApp','AbortPrompt'];a26_0x5c59=function(){return _0x3308d7;};return a26_0x5c59();}export const initCreateFlagDefs=[{'name':a26_0x36a972(0x1a2),'type':a26_0x36a972(0x1c0),'description':a26_0x36a972(0x1c2)},{'name':'env','type':a26_0x36a972(0x1c0),'description':a26_0x36a972(0x193)+DEFAULT_CONFIG_VALUES['env']+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x36a972(0x1a9),'type':a26_0x36a972(0x1a5),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a26_0x36a972(0x190)]+a26_0x36a972(0x19d),'default':![]},{'name':'yes','type':a26_0x36a972(0x1a5),'description':a26_0x36a972(0x1a8),'default':![]}];export const initImportFlagDefs=[{'name':a26_0x36a972(0x18f),'type':a26_0x36a972(0x1c0),'description':a26_0x36a972(0x186),'required':!![]},{'name':a26_0x36a972(0x1a2),'type':'string','description':a26_0x36a972(0x1af)},{'name':a26_0x36a972(0x1b3),'type':a26_0x36a972(0x1c0),'description':a26_0x36a972(0x1a6),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+a26_0x36a972(0x19d),'default':![]},{'name':'yes','type':a26_0x36a972(0x1a5),'description':a26_0x36a972(0x1a8),'default':![]}];export async function runInit(_0x50e981){const _0x328190=a26_0x36a972,_0x58620c=isNonInteractiveMode(_0x50e981),_0x2779f3=_0x50e981['global']?_0x328190(0x1a9):_0x328190(0x19c),_0x259e90=resolveWriteConfigPath(_0x2779f3);try{_0x58620c?await runNonInteractive(_0x50e981,_0x259e90):await runInteractive(_0x50e981,_0x259e90);}catch(_0x28ded5){if(_0x28ded5 instanceof AbortPrompt)throw CliErrors[_0x328190(0x185)]();throw _0x28ded5;}}export async function runInitImport(_0x4cd909){const _0x32840a=a26_0x36a972,_0x4047c2=_0x4cd909[_0x32840a(0x1a9)]?_0x32840a(0x1a9):'project',_0x14972c=resolveWriteConfigPath(_0x4047c2);await runFromImport(_0x4cd909,_0x14972c);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x36a972(0x1b7)]);async function runFromImport(_0x7863b2,_0x4e96e7){const _0x7d8762=a26_0x36a972,_0x4e603d=resolveFilePath(_0x7863b2[_0x7d8762(0x18f)]);if(!existsSync(_0x4e603d))throw CliErrors[_0x7d8762(0x1bb)](_0x7d8762(0x1a0)+_0x4e603d);const _0x5a38c4=readSourceFile(_0x4e603d),_0x1c5931=convertToRuntimeConfig(_0x5a38c4);_0x7863b2[_0x7d8762(0x1a2)]&&(_0x1c5931[_0x7d8762(0x1a2)]=String(_0x7863b2[_0x7d8762(0x1a2)]));_0x7863b2[_0x7d8762(0x1b3)]&&(_0x1c5931[_0x7d8762(0x1b3)]=resolveInitEnv(_0x7863b2));if(!_0x1c5931[_0x7d8762(0x1a2)])throw CliErrors[_0x7d8762(0x1bb)](_0x7d8762(0x1ae),_0x7d8762(0x196));await writeInitConfig(_0x4e96e7,_0x1c5931,_0x7863b2),console['log'](_0x7d8762(0x1ad)+_0x4e603d),console[_0x7d8762(0x1b9)](_0x7d8762(0x1b1)+_0x4e96e7),console[_0x7d8762(0x1b9)]('\x20\x20appcode:\x20'+_0x1c5931[_0x7d8762(0x1a2)]);if(_0x1c5931['defaultApp'])console['log']('\x20\x20default:\x20'+_0x1c5931[_0x7d8762(0x1be)]);}function convertToRuntimeConfig(_0x10ac28){const _0x247272=a26_0x36a972;if(_0x10ac28[_0x247272(0x18a)]&&typeof _0x10ac28[_0x247272(0x18a)]===_0x247272(0x182))throw CliErrors[_0x247272(0x1bb)](_0x247272(0x194),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x19a5a2={};for(const _0xbff7cf of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x10ac28[_0xbff7cf]!==undefined&&(_0x19a5a2[_0xbff7cf]=_0x10ac28[_0xbff7cf]);}return!_0x19a5a2[_0x247272(0x1a1)]&&(_0x19a5a2[_0x247272(0x1a1)]=DEFAULT_CONFIG_VALUES[_0x247272(0x1a1)]),_0x19a5a2;}async function runNonInteractive(_0x71a0b4,_0x4e048a){const _0x3d0a8b=a26_0x36a972,_0x52df0a=_0x71a0b4[_0x3d0a8b(0x1a2)];if(!_0x52df0a)throw CliErrors['flagMissing'](_0x3d0a8b(0x1a2),'Usage:\x20'+CLI_BIN_NAME+_0x3d0a8b(0x197));const _0x395eec=resolveInitEnv(_0x71a0b4);await writeInitConfig(_0x4e048a,{'appcode':_0x52df0a,'env':_0x395eec},_0x71a0b4),console['log']('Initialized\x20'+_0x4e048a),console['log'](_0x3d0a8b(0x19b)+_0x52df0a),console[_0x3d0a8b(0x1b9)](_0x3d0a8b(0x1bc)+_0x395eec);}async function runInteractive(_0x1acd9f,_0x2662e2){const _0x408265=a26_0x36a972,_0x52fdab=loadExisting(_0x2662e2),_0x5ba3c0=typeof _0x52fdab?.[_0x408265(0x1a2)]===_0x408265(0x1c0)?_0x52fdab[_0x408265(0x1a2)]:'',_0x509288=resolveInitEnv(_0x1acd9f);console[_0x408265(0x1b9)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG[_0x408265(0x190)]+'\x0a');if(existsSync(_0x2662e2)&&!_0x1acd9f[_0x408265(0x1bd)]){const _0xeab6c5=await promptYesNo(_0x408265(0x18c)+_0x2662e2+_0x408265(0x187),![]);if(!_0xeab6c5){console['log']('Aborted.');return;}}const _0x1c64f5=typeof _0x1acd9f[_0x408265(0x1a2)]==='string'?_0x1acd9f[_0x408265(0x1a2)][_0x408265(0x1ac)]():'';let _0x52e834=_0x1c64f5;!_0x52e834&&(_0x52e834=await promptInput(_0x408265(0x1b2),_0x5ba3c0));if(!_0x52e834[_0x408265(0x1ac)]())throw CliErrors[_0x408265(0x1bb)](_0x408265(0x184));await writeInitConfig(_0x2662e2,{'appcode':_0x52e834[_0x408265(0x1ac)](),'env':_0x509288},_0x1acd9f),console['log'](_0x408265(0x1c3)+_0x2662e2),console[_0x408265(0x1b9)](_0x408265(0x19b)+_0x52e834[_0x408265(0x1ac)]()),console['log'](_0x408265(0x1bc)+_0x509288);}async function writeInitConfig(_0xe15849,_0x3bb96f,_0xea478c){const _0x76285=a26_0x36a972;let _0x38a31d={};existsSync(_0xe15849)&&!_0xea478c[_0x76285(0x1bd)]&&(_0x38a31d=readConfigFile(_0xe15849));for(const [_0xb3468a,_0x142eb4]of Object[_0x76285(0x18e)](_0x3bb96f)){_0x142eb4!==undefined&&(_0x38a31d[_0xb3468a]=_0x142eb4);}if(_0x38a31d[_0x76285(0x19a)])delete _0x38a31d[_0x76285(0x19a)];writeConfigFile(_0xe15849,_0x38a31d);}class AbortPrompt extends Error{constructor(){const _0xd34339=a26_0x36a972;super(_0xd34339(0x183)),this[_0xd34339(0x199)]=_0xd34339(0x1bf);}}function createSafeRl(){const _0x445492=a26_0x36a972,_0xb92a73=createInterface({'input':process[_0x445492(0x1b8)],'output':process[_0x445492(0x1ab)]});let _0x7580ba;const _0x56e253=new Promise((_0x14d4b5,_0xac886a)=>{const _0x23ecba=_0x445492;_0x7580ba=()=>{const _0x30cc2a=a26_0x555c;_0x7580ba&&(_0xb92a73[_0x30cc2a(0x1b5)]('SIGINT',_0x7580ba),_0x7580ba=undefined);try{_0xb92a73[_0x30cc2a(0x1aa)]();}catch{}_0xac886a(new AbortPrompt());},_0xb92a73[_0x23ecba(0x19f)]('SIGINT',_0x7580ba);}),_0x449b7e=()=>{const _0x5dc87c=_0x445492;_0x7580ba&&(_0xb92a73[_0x5dc87c(0x1b5)](_0x5dc87c(0x1ba),_0x7580ba),_0x7580ba=undefined);try{_0xb92a73[_0x5dc87c(0x1aa)]();}catch{}};return{'rl':_0xb92a73,'abortPromise':_0x56e253,'disposeSuccess':_0x449b7e};}async function promptInput(_0x7792e,_0x1dd869){const _0x3d620e=a26_0x36a972,{rl:_0xb61f31,abortPromise:_0x3b29f7,disposeSuccess:_0x370b2d}=createSafeRl(),_0x303843=new Promise(_0x354e73=>{const _0x10849d=a26_0x555c,_0x5123c7=_0x1dd869?'\x20\x20'+_0x7792e+'\x20('+_0x1dd869+_0x10849d(0x1a3):'\x20\x20'+_0x7792e+':\x20';_0xb61f31['question'](_0x5123c7,_0x491574=>{const _0x24468d=_0x10849d;_0x370b2d(),_0x354e73(_0x491574[_0x24468d(0x1ac)]()||_0x1dd869);});});return Promise[_0x3d620e(0x1a7)]([_0x303843,_0x3b29f7]);}async function promptYesNo(_0x56fb91,_0x415dbb){const _0x122ce1=a26_0x36a972,{rl:_0x68c779,abortPromise:_0x255188,disposeSuccess:_0x53adb3}=createSafeRl(),_0x5eb069=new Promise(_0x5351ca=>{const _0x32f395=a26_0x555c,_0x164edc=_0x415dbb?_0x32f395(0x192):'[y/N]';_0x68c779[_0x32f395(0x1c1)]('\x20\x20'+_0x56fb91+'\x20'+_0x164edc+':\x20',_0x3bc4a7=>{const _0xc137c5=_0x32f395;_0x53adb3();const _0x440d02=_0x3bc4a7[_0xc137c5(0x1ac)]()[_0xc137c5(0x188)]();if(_0x440d02==='y'||_0x440d02===_0xc137c5(0x1bd))_0x5351ca(!![]);else{if(_0x440d02==='n'||_0x440d02==='no')_0x5351ca(![]);else _0x5351ca(_0x415dbb);}});});return Promise[_0x122ce1(0x1a7)]([_0x5eb069,_0x255188]);}function loadExisting(_0x567bf0){if(!existsSync(_0x567bf0))return null;return readConfigFile(_0x567bf0);}function resolveFilePath(_0x1fdaab){const _0x9fb27d=a26_0x36a972;return isAbsolute(_0x1fdaab)?_0x1fdaab:resolve(process[_0x9fb27d(0x1c4)](),_0x1fdaab);}function readSourceFile(_0x432369){const _0x3ecc95=a26_0x36a972;try{const _0x5d660a=readFileSync(_0x432369,{'encoding':'utf8'});return JSON['parse'](_0x5d660a);}catch(_0x569b92){throw CliErrors[_0x3ecc95(0x1bb)](_0x3ecc95(0x1b0)+_0x569b92[_0x3ecc95(0x18b)]);}}function resolveInitEnv(_0x4819d3){const _0x26d72c=a26_0x36a972,_0x4c2aea=_0x4819d3['env'];if(_0x4c2aea===undefined||_0x4c2aea==='')return DEFAULT_CONFIG_VALUES[_0x26d72c(0x1b3)];if(!RUNTIME_ENV_VALUES[_0x26d72c(0x198)](_0x4c2aea))throw CliErrors[_0x26d72c(0x1bb)](_0x26d72c(0x1b4)+_0x4c2aea+_0x26d72c(0x19e)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x4c2aea;}
1
+ const a26_0x434244=a26_0x250f;(function(_0x1fba93,_0x505999){const _0x28c72a=a26_0x250f,_0x409d5b=_0x1fba93();while(!![]){try{const _0x237f9d=parseInt(_0x28c72a(0x1ba))/0x1*(parseInt(_0x28c72a(0x1e5))/0x2)+parseInt(_0x28c72a(0x1c2))/0x3*(parseInt(_0x28c72a(0x1c9))/0x4)+parseInt(_0x28c72a(0x1ca))/0x5+parseInt(_0x28c72a(0x1c1))/0x6*(parseInt(_0x28c72a(0x1c4))/0x7)+-parseInt(_0x28c72a(0x1d0))/0x8*(parseInt(_0x28c72a(0x1cc))/0x9)+parseInt(_0x28c72a(0x1d9))/0xa+-parseInt(_0x28c72a(0x1cd))/0xb*(parseInt(_0x28c72a(0x1e4))/0xc);if(_0x237f9d===_0x505999)break;else _0x409d5b['push'](_0x409d5b['shift']());}catch(_0x3f3ef8){_0x409d5b['push'](_0x409d5b['shift']());}}}(a26_0x2cc0,0x2ec7c));function a26_0x250f(_0x4079cf,_0x56a429){_0x4079cf=_0x4079cf-0x1b7;const _0x2cc0b6=a26_0x2cc0();let _0x250f6e=_0x2cc0b6[_0x4079cf];return _0x250f6e;}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';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a26_0x434244(0x1fc),'type':a26_0x434244(0x1bd),'description':a26_0x434244(0x1d8)},{'name':a26_0x434244(0x1da),'type':'string','description':a26_0x434244(0x1cb)+DEFAULT_CONFIG_VALUES[a26_0x434244(0x1da)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x434244(0x1c6),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1f8)+PRODUCT_CONFIG[a26_0x434244(0x1bf)]+a26_0x434244(0x1d5),'default':![]},{'name':a26_0x434244(0x1e3),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1e8),'default':![]}];function a26_0x2cc0(){const _0x37d9e0=['\x20already\x20exists.\x20Overwrite?','File\x20','\x20init\x20—\x20Create\x20','join','cwd','boolean','Override\x20imported\x20default\x20appcode','message','yes','108lSHtWt','22yaZpMF','App\x20code\x20cannot\x20be\x20empty.','Initialized\x20','Skip\x20confirmation\x20when\x20overwriting','\x20\x20default:\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`.','Failed\x20to\x20parse\x20source\x20file:\x20','log','Usage:\x20','validation','Override\x20imported\x20default\x20env','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','question','Source\x20file\x20not\x20found:\x20','race','stdout','parse','includes','name','Write\x20to\x20global\x20(~/','Invalid\x20env\x20\x22','\x20\x20env:\x20\x20\x20\x20\x20','AbortPrompt','appcode','apiDir','file','\x20\x20config:\x20\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','riskLevel','29909omXIdG','cancelled','object','string','defaultApp','newConfigFileName','[y/N]','228qaEHWW','747339ghdGpV','once','11151tDIqMV','\x20\x20appcode:\x20','global','entries','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','4onNYsC','1092450GAzecx','Target\x20environment\x20(default\x20','308628BXhVYq','680471OcdvKR','Aborted.','close','56XPExGt','SIGINT','utf8','trim','apps',')\x20instead\x20of\x20project','[Y/n]','):\x20','App\x20code\x20for\x20the\x20project','1312690fPNgYl','env'];a26_0x2cc0=function(){return _0x37d9e0;};return a26_0x2cc0();}export const initImportFlagDefs=[{'name':a26_0x434244(0x1fe),'type':'string','description':a26_0x434244(0x1c8),'required':!![]},{'name':a26_0x434244(0x1fc),'type':a26_0x434244(0x1bd),'description':a26_0x434244(0x1e1)},{'name':a26_0x434244(0x1da),'type':'string','description':a26_0x434244(0x1ef),'enum':[...RUNTIME_ENV_VALUES]},{'name':a26_0x434244(0x1c6),'type':a26_0x434244(0x1e0),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+a26_0x434244(0x1d5),'default':![]},{'name':a26_0x434244(0x1e3),'type':a26_0x434244(0x1e0),'description':a26_0x434244(0x1e8),'default':![]}];export async function runInit(_0x2529a9){const _0x1ba7bf=a26_0x434244,_0x3ea784=isNonInteractiveMode(_0x2529a9),_0x53ae2c=_0x2529a9[_0x1ba7bf(0x1c6)]?'global':'project',_0x3517b7=resolveWriteConfigPath(_0x53ae2c);try{_0x3ea784?await runNonInteractive(_0x2529a9,_0x3517b7):await runInteractive(_0x2529a9,_0x3517b7);}catch(_0x118b5f){if(_0x118b5f instanceof AbortPrompt)throw CliErrors[_0x1ba7bf(0x1bb)]();throw _0x118b5f;}}export async function runInitImport(_0x2acbe6){const _0x232a54=a26_0x434244,_0x342138=_0x2acbe6[_0x232a54(0x1c6)]?_0x232a54(0x1c6):'project',_0x3cec53=resolveWriteConfigPath(_0x342138);await runFromImport(_0x2acbe6,_0x3cec53);}const RUNTIME_IRRELEVANT_KEYS=new Set([a26_0x434244(0x1fd)]);async function runFromImport(_0xe6552c,_0x3bf93d){const _0x57968e=a26_0x434244,_0x299a8d=resolveFilePath(_0xe6552c[_0x57968e(0x1fe)]);if(!existsSync(_0x299a8d))throw CliErrors[_0x57968e(0x1ee)](_0x57968e(0x1f2)+_0x299a8d);const _0x309624=readSourceFile(_0x299a8d),_0x5d5bc1=convertToRuntimeConfig(_0x309624);_0xe6552c[_0x57968e(0x1fc)]&&(_0x5d5bc1[_0x57968e(0x1fc)]=String(_0xe6552c[_0x57968e(0x1fc)]));_0xe6552c[_0x57968e(0x1da)]&&(_0x5d5bc1[_0x57968e(0x1da)]=resolveInitEnv(_0xe6552c));if(!_0x5d5bc1[_0x57968e(0x1fc)])throw CliErrors['validation'](_0x57968e(0x1f0),_0x57968e(0x1ea));await writeInitConfig(_0x3bf93d,_0x5d5bc1,_0xe6552c),console[_0x57968e(0x1ec)]('Imported\x20from\x20'+_0x299a8d),console['log'](_0x57968e(0x1b7)+_0x3bf93d),console['log']('\x20\x20appcode:\x20'+_0x5d5bc1[_0x57968e(0x1fc)]);if(_0x5d5bc1[_0x57968e(0x1be)])console[_0x57968e(0x1ec)](_0x57968e(0x1e9)+_0x5d5bc1[_0x57968e(0x1be)]);}function convertToRuntimeConfig(_0x9fc52f){const _0x253ca5=a26_0x434244;if(_0x9fc52f[_0x253ca5(0x1d4)]&&typeof _0x9fc52f[_0x253ca5(0x1d4)]===_0x253ca5(0x1bc))throw CliErrors[_0x253ca5(0x1ee)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x253ca5(0x1b8));const _0x5abacc={};for(const _0x15d660 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x9fc52f[_0x15d660]!==undefined&&(_0x5abacc[_0x15d660]=_0x9fc52f[_0x15d660]);}return!_0x5abacc[_0x253ca5(0x1b9)]&&(_0x5abacc['riskLevel']=DEFAULT_CONFIG_VALUES[_0x253ca5(0x1b9)]),_0x5abacc;}async function runNonInteractive(_0x16ff86,_0x4b0243){const _0xcc27c6=a26_0x434244,_0x1e8e23=_0x16ff86[_0xcc27c6(0x1fc)];if(!_0x1e8e23)throw CliErrors['flagMissing'](_0xcc27c6(0x1fc),_0xcc27c6(0x1ed)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x10f132=resolveInitEnv(_0x16ff86);await writeInitConfig(_0x4b0243,{'appcode':_0x1e8e23,'env':_0x10f132},_0x16ff86),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1e7)+_0x4b0243),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1c5)+_0x1e8e23),console[_0xcc27c6(0x1ec)](_0xcc27c6(0x1fa)+_0x10f132);}async function runInteractive(_0x368827,_0x1e44af){const _0x5a13f6=a26_0x434244,_0x30a3ea=loadExisting(_0x1e44af),_0x592b96=typeof _0x30a3ea?.['appcode']==='string'?_0x30a3ea[_0x5a13f6(0x1fc)]:'',_0x36aa65=resolveInitEnv(_0x368827);console['log'](CLI_BIN_NAME+_0x5a13f6(0x1dd)+PRODUCT_CONFIG[_0x5a13f6(0x1bf)]+'\x0a');if(existsSync(_0x1e44af)&&!_0x368827[_0x5a13f6(0x1e3)]){const _0x1a016f=await promptYesNo(_0x5a13f6(0x1dc)+_0x1e44af+_0x5a13f6(0x1db),![]);if(!_0x1a016f){console[_0x5a13f6(0x1ec)](_0x5a13f6(0x1ce));return;}}const _0x4ecb7c=typeof _0x368827[_0x5a13f6(0x1fc)]===_0x5a13f6(0x1bd)?_0x368827[_0x5a13f6(0x1fc)][_0x5a13f6(0x1d3)]():'';let _0x3592dd=_0x4ecb7c;!_0x3592dd&&(_0x3592dd=await promptInput('App\x20code',_0x592b96));if(!_0x3592dd['trim']())throw CliErrors[_0x5a13f6(0x1ee)](_0x5a13f6(0x1e6));await writeInitConfig(_0x1e44af,{'appcode':_0x3592dd['trim'](),'env':_0x36aa65},_0x368827),console[_0x5a13f6(0x1ec)]('\x0aInitialized\x20'+_0x1e44af),console[_0x5a13f6(0x1ec)]('\x20\x20appcode:\x20'+_0x3592dd[_0x5a13f6(0x1d3)]()),console['log'](_0x5a13f6(0x1fa)+_0x36aa65);}async function writeInitConfig(_0x3c5c8d,_0x4e84e2,_0x54ee3e){const _0x4a1df0=a26_0x434244;let _0x1b3a7a={};existsSync(_0x3c5c8d)&&!_0x54ee3e[_0x4a1df0(0x1e3)]&&(_0x1b3a7a=readConfigFile(_0x3c5c8d));for(const [_0x43384c,_0x136064]of Object[_0x4a1df0(0x1c7)](_0x4e84e2)){_0x136064!==undefined&&(_0x1b3a7a[_0x43384c]=_0x136064);}if(_0x1b3a7a['app'])delete _0x1b3a7a['app'];writeConfigFile(_0x3c5c8d,_0x1b3a7a);}class AbortPrompt extends Error{constructor(){const _0x2c5026=a26_0x434244;super('User\x20aborted\x20prompt'),this[_0x2c5026(0x1f7)]=_0x2c5026(0x1fb);}}function createSafeRl(){const _0x37bb91=a26_0x434244,_0x25bb6c=createInterface({'input':process['stdin'],'output':process[_0x37bb91(0x1f4)]});let _0x27f7e4;const _0x4f7280=new Promise((_0x524362,_0x30b15c)=>{const _0x431ce5=_0x37bb91;_0x27f7e4=()=>{const _0x445488=a26_0x250f;_0x27f7e4&&(_0x25bb6c['removeListener']('SIGINT',_0x27f7e4),_0x27f7e4=undefined);try{_0x25bb6c[_0x445488(0x1cf)]();}catch{}_0x30b15c(new AbortPrompt());},_0x25bb6c[_0x431ce5(0x1c3)](_0x431ce5(0x1d1),_0x27f7e4);}),_0x14b2ae=()=>{const _0x7be3e9=_0x37bb91;_0x27f7e4&&(_0x25bb6c['removeListener'](_0x7be3e9(0x1d1),_0x27f7e4),_0x27f7e4=undefined);try{_0x25bb6c[_0x7be3e9(0x1cf)]();}catch{}};return{'rl':_0x25bb6c,'abortPromise':_0x4f7280,'disposeSuccess':_0x14b2ae};}async function promptInput(_0x4c7e33,_0x28a1d2){const _0x4f14b2=a26_0x434244,{rl:_0x202b23,abortPromise:_0x4a77f6,disposeSuccess:_0x2ca4c7}=createSafeRl(),_0x46ae7b=new Promise(_0x36b3bb=>{const _0x46e622=a26_0x250f,_0xe093c8=_0x28a1d2?'\x20\x20'+_0x4c7e33+'\x20('+_0x28a1d2+_0x46e622(0x1d7):'\x20\x20'+_0x4c7e33+':\x20';_0x202b23[_0x46e622(0x1f1)](_0xe093c8,_0x2d0bb6=>{const _0x591f45=_0x46e622;_0x2ca4c7(),_0x36b3bb(_0x2d0bb6[_0x591f45(0x1d3)]()||_0x28a1d2);});});return Promise[_0x4f14b2(0x1f3)]([_0x46ae7b,_0x4a77f6]);}async function promptYesNo(_0x3d51ac,_0x4dfb65){const _0x472f4e=a26_0x434244,{rl:_0x827326,abortPromise:_0xc1b246,disposeSuccess:_0x46fdf1}=createSafeRl(),_0x27e8d9=new Promise(_0xf7acab=>{const _0x574058=a26_0x250f,_0x4c3220=_0x4dfb65?_0x574058(0x1d6):_0x574058(0x1c0);_0x827326[_0x574058(0x1f1)]('\x20\x20'+_0x3d51ac+'\x20'+_0x4c3220+':\x20',_0x503822=>{const _0x44689a=_0x574058;_0x46fdf1();const _0x32cf4a=_0x503822[_0x44689a(0x1d3)]()['toLowerCase']();if(_0x32cf4a==='y'||_0x32cf4a===_0x44689a(0x1e3))_0xf7acab(!![]);else{if(_0x32cf4a==='n'||_0x32cf4a==='no')_0xf7acab(![]);else _0xf7acab(_0x4dfb65);}});});return Promise[_0x472f4e(0x1f3)]([_0x27e8d9,_0xc1b246]);}function loadExisting(_0x32c189){if(!existsSync(_0x32c189))return null;return readConfigFile(_0x32c189);}function resolveFilePath(_0x1baff1){const _0x28c38e=a26_0x434244;return isAbsolute(_0x1baff1)?_0x1baff1:resolve(process[_0x28c38e(0x1df)](),_0x1baff1);}function readSourceFile(_0x4be4a0){const _0x30a488=a26_0x434244;try{const _0xa98500=readFileSync(_0x4be4a0,{'encoding':_0x30a488(0x1d2)});return JSON[_0x30a488(0x1f5)](_0xa98500);}catch(_0x20db68){throw CliErrors[_0x30a488(0x1ee)](_0x30a488(0x1eb)+_0x20db68[_0x30a488(0x1e2)]);}}function resolveInitEnv(_0x1000a7){const _0x9f264a=a26_0x434244,_0x1cf177=_0x1000a7[_0x9f264a(0x1da)];if(_0x1cf177===undefined||_0x1cf177==='')return DEFAULT_CONFIG_VALUES[_0x9f264a(0x1da)];if(!RUNTIME_ENV_VALUES[_0x9f264a(0x1f6)](_0x1cf177))throw CliErrors[_0x9f264a(0x1ee)](_0x9f264a(0x1f9)+_0x1cf177+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x9f264a(0x1de)](',\x20'));return _0x1cf177;}