@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.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 (154) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/db/analyze-cancel.js +1 -1
  52. package/lib/commands/db/analyze-start.js +1 -1
  53. package/lib/commands/db/analyze-status.js +1 -1
  54. package/lib/commands/db/create.js +1 -1
  55. package/lib/commands/db/delete.js +1 -1
  56. package/lib/commands/db/detail.js +1 -1
  57. package/lib/commands/db/diff.js +1 -1
  58. package/lib/commands/db/index.js +1 -1
  59. package/lib/commands/db/list.js +1 -1
  60. package/lib/commands/db/shared.js +1 -1
  61. package/lib/commands/db/tables.js +1 -1
  62. package/lib/commands/db/test.js +1 -1
  63. package/lib/commands/db/update.js +1 -1
  64. package/lib/commands/doctor.js +1 -1
  65. package/lib/commands/init/index.js +1 -1
  66. package/lib/commands/logs/index.js +1 -1
  67. package/lib/commands/menu/index.js +1 -1
  68. package/lib/commands/menu/shared/compare-table.js +1 -1
  69. package/lib/commands/menu/shared/index.js +1 -1
  70. package/lib/commands/menu/shared/inquirer.js +1 -1
  71. package/lib/commands/menu/shared/local-pages.js +1 -1
  72. package/lib/commands/menu/shared/logic.js +1 -1
  73. package/lib/commands/menu/shared/service.js +1 -1
  74. package/lib/commands/menu/shared/sync-core.js +1 -1
  75. package/lib/commands/menu/shared/update-core.js +1 -1
  76. package/lib/commands/menu/shared/valid-url.js +1 -1
  77. package/lib/commands/menu/sync.js +1 -1
  78. package/lib/commands/menu/update.js +1 -1
  79. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  80. package/lib/commands/project/create/format-elapsed.js +1 -1
  81. package/lib/commands/project/create/main.js +1 -1
  82. package/lib/commands/project/create/non-interactive.js +1 -1
  83. package/lib/commands/project/create/project-template-path.js +1 -1
  84. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  85. package/lib/commands/project/create/use-format-code.js +1 -1
  86. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  87. package/lib/commands/project/index.js +1 -1
  88. package/lib/commands/project/init.js +1 -1
  89. package/lib/commands/project/upgrade.js +1 -1
  90. package/lib/commands/registry.js +1 -1
  91. package/lib/commands/run/index.js +1 -1
  92. package/lib/commands/schema.js +1 -1
  93. package/lib/commands/skill/index.js +1 -1
  94. package/lib/commands/sql/detail.js +1 -1
  95. package/lib/commands/sql/exec.js +1 -1
  96. package/lib/commands/sql/index.js +1 -1
  97. package/lib/commands/sql/list.js +1 -1
  98. package/lib/commands/sql/pull.js +1 -1
  99. package/lib/commands/sql/save.js +1 -1
  100. package/lib/commands/sql/shared.js +1 -1
  101. package/lib/commands/sql/validate.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/paths.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/alias-resolver.js +1 -1
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/bff/config.js +1 -1
  110. package/lib/core/bff/file-system.js +1 -1
  111. package/lib/core/bff/hash.js +1 -1
  112. package/lib/core/bff/lock.js +1 -1
  113. package/lib/core/bff/utils.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/sql-validator.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner.js +1 -1
  124. package/lib/framework/schema-export.js +1 -1
  125. package/lib/framework/types.js +1 -1
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/help.js +1 -1
  128. package/lib/skills/main.js +1 -1
  129. package/lib/skills/npx-skills-add.js +1 -1
  130. package/lib/telemetry/cli-command-trace.js +1 -1
  131. package/lib/telemetry/cli-help-trace.js +1 -1
  132. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  133. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  134. package/lib/telemetry/send-cli-trace-log.js +1 -1
  135. package/lib/utils/ai_config.js +1 -1
  136. package/lib/utils/apply-jq-filter.js +1 -1
  137. package/lib/utils/cdn-config.js +1 -1
  138. package/lib/utils/check-sdk-version.js +1 -1
  139. package/lib/utils/cli-version-check.js +1 -1
  140. package/lib/utils/config.js +1 -1
  141. package/lib/utils/copy-directory.js +1 -1
  142. package/lib/utils/file-utils.js +1 -1
  143. package/lib/utils/guides-cdn.js +1 -1
  144. package/lib/utils/http-client.js +1 -1
  145. package/lib/utils/is-non-interactive.js +1 -1
  146. package/lib/utils/logger.js +1 -1
  147. package/lib/utils/platform.js +1 -1
  148. package/lib/utils/rules-cdn.js +1 -1
  149. package/lib/utils/sleep.js +1 -1
  150. package/lib/utils/template-replacer.js +1 -1
  151. package/lib/utils/version.js +1 -1
  152. package/lib/utils/with-active-cookie.js +1 -1
  153. package/lib/utils/write-cli-side-channel.js +1 -1
  154. package/package.json +1 -1
@@ -1 +1 @@
1
- function a114_0x333a(_0x5e8e5a,_0x1b64b5){_0x5e8e5a=_0x5e8e5a-0x1cd;const _0x404d5c=a114_0x404d();let _0x333adb=_0x404d5c[_0x5e8e5a];return _0x333adb;}(function(_0x583c2e,_0x12c353){const _0x416f8d=a114_0x333a,_0x288240=_0x583c2e();while(!![]){try{const _0x47ce84=-parseInt(_0x416f8d(0x1d8))/0x1+parseInt(_0x416f8d(0x1d2))/0x2*(parseInt(_0x416f8d(0x1dc))/0x3)+-parseInt(_0x416f8d(0x1d9))/0x4*(-parseInt(_0x416f8d(0x1d1))/0x5)+-parseInt(_0x416f8d(0x1d3))/0x6*(-parseInt(_0x416f8d(0x1d0))/0x7)+parseInt(_0x416f8d(0x1e0))/0x8+parseInt(_0x416f8d(0x1cf))/0x9+-parseInt(_0x416f8d(0x1d6))/0xa;if(_0x47ce84===_0x12c353)break;else _0x288240['push'](_0x288240['shift']());}catch(_0xf0efd8){_0x288240['push'](_0x288240['shift']());}}}(a114_0x404d,0x84374));export function snakeToCamel(_0x3cf8f0){const _0xdff581=a114_0x333a;return _0x3cf8f0[_0xdff581(0x1ce)]()['replace'](/_([a-z])/g,(_0x5ea608,_0x2ac5ad)=>_0x2ac5ad['toUpperCase']());}export function findHookLocationByRemoteId(_0x28bac8,_0x4d815f){const _0x58591c=a114_0x333a;if(!_0x4d815f)return undefined;for(const _0x3dbc56 of Object[_0x58591c(0x1d5)](_0x28bac8)){if(_0x3dbc56['remoteId']===_0x4d815f&&_0x3dbc56['datasetCode']&&_0x3dbc56[_0x58591c(0x1de)]&&_0x3dbc56[_0x58591c(0x1d7)])return{'datasetCode':_0x3dbc56[_0x58591c(0x1da)],'operationType':_0x3dbc56['operationType'],'functionNode':_0x3dbc56[_0x58591c(0x1d7)]};}return undefined;}export function extractScriptDescription(_0x25537d){const _0x3456d1=a114_0x333a,_0x5ceac5=_0x25537d[_0x3456d1(0x1cd)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x5ceac5?.[0x1]?.[_0x3456d1(0x1dd)]()||undefined;}export function isValidBffFunctionName(_0x113fba){const _0xb83b96=a114_0x333a;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xb83b96(0x1db)](_0x113fba);}function a114_0x404d(){const _0x2d9f3a=['after','6972408WEEpkI','match','toLowerCase','2376612OYyuAy','7usiPqu','1521785wTapBx','1154182OqpXJU','1067502pWJrnb','before','values','16987090tOIRRw','functionNode','563433bmpGnO','12RdzPcy','datasetCode','test','3XjYwve','trim','operationType'];a114_0x404d=function(){return _0x2d9f3a;};return a114_0x404d();}export function normalizeHookFunctionNode(_0x338865){const _0x398b91=a114_0x333a;if(!_0x338865)return undefined;const _0x369521=_0x338865[_0x398b91(0x1dd)]()[_0x398b91(0x1ce)]();if(_0x369521===_0x398b91(0x1d4)||_0x369521===_0x398b91(0x1df))return _0x369521;return undefined;}
1
+ function a114_0x115a(){const _0x303853=['datasetCode','7WhKXZg','toLowerCase','68874KoZTko','2925028IcWnXy','functionNode','1938990ycgfxW','remoteId','before','8XyWETi','values','after','20418417vosvgR','toUpperCase','test','trim','708138OafraP','641592PdvjZM','1554903TerODG','operationType'];a114_0x115a=function(){return _0x303853;};return a114_0x115a();}(function(_0x424675,_0xcb2b4b){const _0x4bfe37=a114_0x2d13,_0x38aed8=_0x424675();while(!![]){try{const _0x4c6462=-parseInt(_0x4bfe37(0xd7))/0x1+-parseInt(_0x4bfe37(0xd8))/0x2+-parseInt(_0x4bfe37(0xd9))/0x3+-parseInt(_0x4bfe37(0xcb))/0x4+parseInt(_0x4bfe37(0xcd))/0x5+parseInt(_0x4bfe37(0xca))/0x6*(parseInt(_0x4bfe37(0xdc))/0x7)+parseInt(_0x4bfe37(0xd0))/0x8*(parseInt(_0x4bfe37(0xd3))/0x9);if(_0x4c6462===_0xcb2b4b)break;else _0x38aed8['push'](_0x38aed8['shift']());}catch(_0x479a70){_0x38aed8['push'](_0x38aed8['shift']());}}}(a114_0x115a,0x5f17a));function a114_0x2d13(_0x330a14,_0x1e6abc){_0x330a14=_0x330a14-0xc9;const _0x115a48=a114_0x115a();let _0x2d132e=_0x115a48[_0x330a14];return _0x2d132e;}export function snakeToCamel(_0x326fae){const _0x5557a2=a114_0x2d13;return _0x326fae['toLowerCase']()['replace'](/_([a-z])/g,(_0x11e2a1,_0x5d8a75)=>_0x5d8a75[_0x5557a2(0xd4)]());}export function findHookLocationByRemoteId(_0x2f2ac2,_0x1e4b63){const _0x2b9cc9=a114_0x2d13;if(!_0x1e4b63)return undefined;for(const _0x689266 of Object[_0x2b9cc9(0xd1)](_0x2f2ac2)){if(_0x689266[_0x2b9cc9(0xce)]===_0x1e4b63&&_0x689266['datasetCode']&&_0x689266[_0x2b9cc9(0xda)]&&_0x689266[_0x2b9cc9(0xcc)])return{'datasetCode':_0x689266[_0x2b9cc9(0xdb)],'operationType':_0x689266[_0x2b9cc9(0xda)],'functionNode':_0x689266['functionNode']};}return undefined;}export function extractScriptDescription(_0x204a2f){const _0x573e8a=_0x204a2f['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x573e8a?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x5b0f66){const _0x5a2d1f=a114_0x2d13;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x5a2d1f(0xd5)](_0x5b0f66);}export function normalizeHookFunctionNode(_0x4e52af){const _0x13b724=a114_0x2d13;if(!_0x4e52af)return undefined;const _0x266712=_0x4e52af[_0x13b724(0xd6)]()[_0x13b724(0xc9)]();if(_0x266712===_0x13b724(0xcf)||_0x266712===_0x13b724(0xd2))return _0x266712;return undefined;}
@@ -1 +1 @@
1
- (function(_0x533697,_0x244fc3){const _0x1d7a23=a115_0x53de,_0x2b6b51=_0x533697();while(!![]){try{const _0x2ae9e4=parseInt(_0x1d7a23(0x1c5))/0x1+-parseInt(_0x1d7a23(0x1da))/0x2+-parseInt(_0x1d7a23(0x1c6))/0x3*(-parseInt(_0x1d7a23(0x1d1))/0x4)+-parseInt(_0x1d7a23(0x1c4))/0x5+-parseInt(_0x1d7a23(0x1c1))/0x6*(-parseInt(_0x1d7a23(0x1be))/0x7)+parseInt(_0x1d7a23(0x1ca))/0x8+-parseInt(_0x1d7a23(0x1c3))/0x9*(-parseInt(_0x1d7a23(0x1d5))/0xa);if(_0x2ae9e4===_0x244fc3)break;else _0x2b6b51['push'](_0x2b6b51['shift']());}catch(_0x1322a2){_0x2b6b51['push'](_0x2b6b51['shift']());}}}(a115_0x4034,0x1a454));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a115_0x53de(_0x156612,_0x3ae15f){_0x156612=_0x156612-0x1bd;const _0x403420=a115_0x4034();let _0x53de7a=_0x403420[_0x156612];return _0x53de7a;}export async function listDatabases(_0x4e6cd9){const _0x2c5122=a115_0x53de;if(cache[_0x2c5122(0x1d2)](_0x4e6cd9))return cache[_0x2c5122(0x1cd)](_0x4e6cd9);const _0x5ca191=await listDatasets(_0x4e6cd9),_0x5da647=new Map();for(const _0x55b9d1 of _0x5ca191){const _0x3e693d=_0x55b9d1[_0x2c5122(0x1d3)];_0x3e693d?.[_0x2c5122(0x1c2)]!=null&&_0x5da647[_0x2c5122(0x1c9)](_0x3e693d[_0x2c5122(0x1c2)],_0x3e693d[_0x2c5122(0x1bd)]??_0x2c5122(0x1c8)+_0x3e693d[_0x2c5122(0x1c2)]);}const _0x1b37c1=[..._0x5da647[_0x2c5122(0x1c7)]()][_0x2c5122(0x1ce)](([_0x1a8fc0,_0x3b5ed2])=>({'dbId':_0x1a8fc0,'dbName':_0x3b5ed2}));return cache[_0x2c5122(0x1c9)](_0x4e6cd9,_0x1b37c1),_0x1b37c1;}export async function resolveDb(_0x43e1b3,_0x4c5123){const _0x12b5da=a115_0x53de,_0x431413=await listDatabases(_0x43e1b3);if(_0x431413[_0x12b5da(0x1d4)]===0x0)return{'resolved':[],'error':_0x12b5da(0x1cf)};if(!_0x4c5123)return{'resolved':_0x431413};const _0x56a75a=Number(_0x4c5123);if(!Number[_0x12b5da(0x1d7)](_0x56a75a)){const _0xa4965=_0x431413['find'](_0x41a524=>_0x41a524[_0x12b5da(0x1c2)]===_0x56a75a);if(_0xa4965)return{'resolved':[_0xa4965]};}const _0x251b37=_0x4c5123['toLowerCase'](),_0xced4c8=_0x431413[_0x12b5da(0x1bf)](_0x25fe0e=>_0x25fe0e['dbName'][_0x12b5da(0x1d6)]()['includes'](_0x251b37));if(_0xced4c8['length']>0x0)return{'resolved':_0xced4c8};const _0x280dbe=_0x431413[_0x12b5da(0x1ce)](_0x341142=>_0x341142['dbName']+'\x20('+_0x341142[_0x12b5da(0x1c2)]+')')[_0x12b5da(0x1d9)](',\x20');return{'resolved':[],'error':_0x12b5da(0x1cb)+_0x4c5123+_0x12b5da(0x1db)+_0x280dbe};}export async function resolveOneDb(_0x167a28,_0x357a6f){const _0x58eb41=a115_0x53de,{resolved:_0x5746a3,error:_0x50855c}=await resolveDb(_0x167a28,_0x357a6f);if(_0x50855c)return{'db':null,'error':_0x50855c};if(_0x5746a3['length']===0x1)return{'db':_0x5746a3[0x0]};if(!_0x357a6f){const _0xf3bd0c=_0x5746a3[_0x58eb41(0x1ce)](_0x20ee33=>_0x20ee33[_0x58eb41(0x1bd)]+'\x20('+_0x20ee33[_0x58eb41(0x1c2)]+')')[_0x58eb41(0x1d9)](',\x20');return{'db':null,'error':_0x58eb41(0x1cc)+_0xf3bd0c};}const _0x58f3f5=_0x5746a3['map'](_0x2aab09=>_0x2aab09[_0x58eb41(0x1bd)]+'\x20('+_0x2aab09[_0x58eb41(0x1c2)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x357a6f+_0x58eb41(0x1d0)+_0x58f3f5+_0x58eb41(0x1d8)};}export async function getDbName(_0x178da2,_0x279d64){const _0x4f19b3=a115_0x53de,_0x125716=await listDatabases(_0x178da2);return _0x125716[_0x4f19b3(0x1c0)](_0x59c734=>_0x59c734[_0x4f19b3(0x1c2)]===_0x279d64)?.[_0x4f19b3(0x1bd)];}function a115_0x4034(){const _0x41f428=['31389zWFXMV','entries','db-','set','559512czpDIP','No\x20database\x20matching\x20\x22','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','get','map','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','4NoaLmF','has','dbtableConfig','length','10slWkHb','toLowerCase','isNaN','.\x20Be\x20more\x20specific.','join','160904TrHEue','\x22.\x20Available:\x20','dbName','252077fRjKZy','filter','find','6FPaFoX','dbId','467793AZkvpB','891895rbjgGf','198045TSxkEs'];a115_0x4034=function(){return _0x41f428;};return a115_0x4034();}
1
+ (function(_0x3a49f6,_0x58c192){const _0x20674b=a115_0x525f,_0x1d20f7=_0x3a49f6();while(!![]){try{const _0x481ead=parseInt(_0x20674b(0x194))/0x1+parseInt(_0x20674b(0x1a0))/0x2+parseInt(_0x20674b(0x1a2))/0x3+parseInt(_0x20674b(0x19a))/0x4*(parseInt(_0x20674b(0x197))/0x5)+parseInt(_0x20674b(0x18e))/0x6*(-parseInt(_0x20674b(0x19f))/0x7)+parseInt(_0x20674b(0x18a))/0x8*(parseInt(_0x20674b(0x19e))/0x9)+parseInt(_0x20674b(0x195))/0xa*(-parseInt(_0x20674b(0x191))/0xb);if(_0x481ead===_0x58c192)break;else _0x1d20f7['push'](_0x1d20f7['shift']());}catch(_0x4d2bd9){_0x1d20f7['push'](_0x1d20f7['shift']());}}}(a115_0x5620,0xb65b2));function a115_0x525f(_0x1fcb2b,_0x35b221){_0x1fcb2b=_0x1fcb2b-0x188;const _0x56206f=a115_0x5620();let _0x525f77=_0x56206f[_0x1fcb2b];return _0x525f77;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xd26bd4){const _0x46079b=a115_0x525f;if(cache[_0x46079b(0x1a3)](_0xd26bd4))return cache['get'](_0xd26bd4);const _0x2753f0=await listDatasets(_0xd26bd4),_0x16d814=new Map();for(const _0xe388b3 of _0x2753f0){const _0x37072d=_0xe388b3[_0x46079b(0x196)];_0x37072d?.[_0x46079b(0x199)]!=null&&_0x16d814[_0x46079b(0x19b)](_0x37072d[_0x46079b(0x199)],_0x37072d[_0x46079b(0x190)]??_0x46079b(0x19c)+_0x37072d[_0x46079b(0x199)]);}const _0x3b66e0=[..._0x16d814[_0x46079b(0x189)]()]['map'](([_0xaf0c0c,_0x1b8bd9])=>({'dbId':_0xaf0c0c,'dbName':_0x1b8bd9}));return cache[_0x46079b(0x19b)](_0xd26bd4,_0x3b66e0),_0x3b66e0;}export async function resolveDb(_0x531678,_0x3a37c0){const _0x164957=a115_0x525f,_0x28cf0f=await listDatabases(_0x531678);if(_0x28cf0f[_0x164957(0x193)]===0x0)return{'resolved':[],'error':_0x164957(0x18c)};if(!_0x3a37c0)return{'resolved':_0x28cf0f};const _0x5abdc2=Number(_0x3a37c0);if(!Number['isNaN'](_0x5abdc2)){const _0x362679=_0x28cf0f[_0x164957(0x198)](_0x553266=>_0x553266[_0x164957(0x199)]===_0x5abdc2);if(_0x362679)return{'resolved':[_0x362679]};}const _0x31c61e=_0x3a37c0[_0x164957(0x19d)](),_0x302b81=_0x28cf0f[_0x164957(0x18f)](_0x32a6f=>_0x32a6f[_0x164957(0x190)]['toLowerCase']()[_0x164957(0x188)](_0x31c61e));if(_0x302b81[_0x164957(0x193)]>0x0)return{'resolved':_0x302b81};const _0x271987=_0x28cf0f['map'](_0x169f7f=>_0x169f7f[_0x164957(0x190)]+'\x20('+_0x169f7f[_0x164957(0x199)]+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x3a37c0+_0x164957(0x192)+_0x271987};}function a115_0x5620(){const _0x2a8daf=['dbName','24975511VLeHJf','\x22.\x20Available:\x20','length','722784ktnkSF','10BrGoWN','dbtableConfig','425yHglCI','find','dbId','60484IhUnPk','set','db-','toLowerCase','45DjoZCD','7ITndVw','262042xIKsLd','join','3221760uSZVHV','has','includes','entries','1897880OyjuHe','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','8290524cPwNvY','filter'];a115_0x5620=function(){return _0x2a8daf;};return a115_0x5620();}export async function resolveOneDb(_0x5192ec,_0x1bbdb4){const _0x3af854=a115_0x525f,{resolved:_0xcfd2ff,error:_0x352a79}=await resolveDb(_0x5192ec,_0x1bbdb4);if(_0x352a79)return{'db':null,'error':_0x352a79};if(_0xcfd2ff['length']===0x1)return{'db':_0xcfd2ff[0x0]};if(!_0x1bbdb4){const _0xb67ed2=_0xcfd2ff['map'](_0x556582=>_0x556582['dbName']+'\x20('+_0x556582['dbId']+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':_0x3af854(0x18b)+_0xb67ed2};}const _0x1cdc1a=_0xcfd2ff['map'](_0x5e4754=>_0x5e4754['dbName']+'\x20('+_0x5e4754[_0x3af854(0x199)]+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':'\x22'+_0x1bbdb4+_0x3af854(0x18d)+_0x1cdc1a+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x4f04b4,_0x9a5576){const _0x3c63fb=a115_0x525f,_0x1aefd6=await listDatabases(_0x4f04b4);return _0x1aefd6[_0x3c63fb(0x198)](_0x9f8229=>_0x9f8229[_0x3c63fb(0x199)]===_0x9a5576)?.[_0x3c63fb(0x190)];}
@@ -1 +1 @@
1
- (function(_0x372456,_0x4d8ed8){const _0xb7e2dc=a116_0x34fa,_0x52574a=_0x372456();while(!![]){try{const _0x327448=-parseInt(_0xb7e2dc(0x1be))/0x1*(-parseInt(_0xb7e2dc(0x1df))/0x2)+parseInt(_0xb7e2dc(0x1e1))/0x3*(parseInt(_0xb7e2dc(0x1c6))/0x4)+-parseInt(_0xb7e2dc(0x1e4))/0x5+-parseInt(_0xb7e2dc(0x1d8))/0x6+-parseInt(_0xb7e2dc(0x1bd))/0x7+parseInt(_0xb7e2dc(0x1d5))/0x8*(parseInt(_0xb7e2dc(0x1de))/0x9)+parseInt(_0xb7e2dc(0x1c8))/0xa;if(_0x327448===_0x4d8ed8)break;else _0x52574a['push'](_0x52574a['shift']());}catch(_0xa8cece){_0x52574a['push'](_0x52574a['shift']());}}}(a116_0x11c3,0x35c37));export function detectSqlType(_0x3e1dd0){const _0x27d6a5=a116_0x34fa;if(!_0x3e1dd0?.[_0x27d6a5(0x1c3)]())return{'type':_0x27d6a5(0x1c9),'isSelectOnly':![],'isDangerous':![],'reason':_0x27d6a5(0x1d7)};const _0x197cd0=_0x3e1dd0[_0x27d6a5(0x1bf)](/#\{[^}]*\}/g,'?')[_0x27d6a5(0x1bf)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x27d6a5(0x1bf)](/\/\*[\s\S]*?\*\//g,'')[_0x27d6a5(0x1c3)](),_0x3fc275=_0x197cd0[_0x27d6a5(0x1d2)]('\x0a');let _0x4c638d='';for(const _0x2a357b of _0x3fc275){const _0x581b2b=_0x2a357b[_0x27d6a5(0x1c3)]();if(!_0x581b2b||_0x581b2b[_0x27d6a5(0x1d9)]('--')||_0x581b2b['startsWith']('/*'))continue;_0x4c638d=_0x581b2b;break;}const _0x40ebc1=_0x4c638d[_0x27d6a5(0x1cd)]();if(_0x40ebc1['startsWith']('SELECT')||_0x40ebc1['startsWith'](_0x27d6a5(0x1cf))){const _0x31841f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x27d6a5(0x1dc)](_0x197cd0);return{'type':_0x27d6a5(0x1d4),'isSelectOnly':!_0x31841f,'isDangerous':_0x31841f,'reason':_0x31841f?_0x27d6a5(0x1e2):undefined};}if(_0x40ebc1['startsWith'](_0x27d6a5(0x1ce)))return{'type':_0x27d6a5(0x1ce),'isSelectOnly':![],'isDangerous':![]};if(_0x40ebc1[_0x27d6a5(0x1d9)](_0x27d6a5(0x1ca)))return{'type':_0x27d6a5(0x1ca),'isSelectOnly':![],'isDangerous':![]};if(_0x40ebc1[_0x27d6a5(0x1d9)](_0x27d6a5(0x1dd)))return{'type':_0x27d6a5(0x1dd),'isSelectOnly':![],'isDangerous':!![],'reason':_0x27d6a5(0x1db)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x27d6a5(0x1dc)](_0x40ebc1))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x27d6a5(0x1c0)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1997f7){const _0xf0fbf0=a116_0x34fa,_0x228c88=_0x1997f7[_0xf0fbf0(0x1bf)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0xf0fbf0(0x1bf)](/--.*$/gm,'')[_0xf0fbf0(0x1bf)](/\/\*[\s\S]*?\*\//g,''),_0xba8768=[],_0x1f5820=_0x228c88[_0xf0fbf0(0x1c4)](/FROM\s+([^\s,)(]+)/i);if(_0x1f5820?.[0x1])_0xba8768[_0xf0fbf0(0x1c7)](_0x1f5820[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,''));for(const _0x35566c of _0x228c88['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4bfc90=_0x35566c[0x1]?.[_0xf0fbf0(0x1bf)](/[`"]/g,'');if(_0x4bfc90&&!_0xba8768[_0xf0fbf0(0x1d3)](_0x4bfc90))_0xba8768[_0xf0fbf0(0x1c7)](_0x4bfc90);}const _0x58676d=_0x228c88['match'](/INTO\s+([^\s(]+)/i);if(_0x58676d?.[0x1]){const _0xfcb967=_0x58676d[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,'');if(!_0xba8768[_0xf0fbf0(0x1d3)](_0xfcb967))_0xba8768['push'](_0xfcb967);}const _0x4dc9fc=_0x228c88['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4dc9fc?.[0x1]){const _0x1a4e93=_0x4dc9fc[0x1][_0xf0fbf0(0x1bf)](/[`"]/g,'');if(!_0xba8768[_0xf0fbf0(0x1d3)](_0x1a4e93))_0xba8768[_0xf0fbf0(0x1c7)](_0x1a4e93);}return _0xba8768;}function extractParameters(_0x5215f1){const _0x4ae050=a116_0x34fa,_0x4309af=new Set();for(const _0x48ffe7 of _0x5215f1[_0x4ae050(0x1c5)](/#\{(\w+)\}/g))if(_0x48ffe7[0x1])_0x4309af[_0x4ae050(0x1bc)](_0x48ffe7[0x1]);for(const _0x1d7420 of _0x5215f1[_0x4ae050(0x1c5)](/\$\{(\w+)\}/g))if(_0x1d7420[0x1])_0x4309af[_0x4ae050(0x1bc)](_0x1d7420[0x1]);return Array[_0x4ae050(0x1c1)](_0x4309af);}export function validateSql(_0x2b612d){const _0x2a4776=a116_0x34fa,_0x17aec6=detectSqlType(_0x2b612d),_0x440c3d=extractTables(_0x2b612d),_0x41be6f=extractParameters(_0x2b612d);if(_0x17aec6[_0x2a4776(0x1e0)])return{'valid':![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x17aec6[_0x2a4776(0x1da)]||_0x17aec6[_0x2a4776(0x1e3)]+_0x2a4776(0x1c2)};if(_0x17aec6[_0x2a4776(0x1e3)]==='UNKNOWN')return{'valid':![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x2a4776(0x1d6)};return{'valid':!![],'sqlType':_0x17aec6,'tables':_0x440c3d,'parameters':_0x41be6f,'message':_0x17aec6['type']+_0x2a4776(0x1cb)+(_0x440c3d[_0x2a4776(0x1d1)]?_0x440c3d[_0x2a4776(0x1cc)](',\x20'):'unknown\x20table(s)')+(_0x41be6f[_0x2a4776(0x1d1)]?_0x2a4776(0x1d0)+_0x41be6f[_0x2a4776(0x1cc)](',\x20'):'')};}function a116_0x34fa(_0x529495,_0x1be4d3){_0x529495=_0x529495-0x1bc;const _0x11c3f0=a116_0x11c3();let _0x34fa83=_0x11c3f0[_0x529495];return _0x34fa83;}function a116_0x11c3(){const _0x4b52f6=['from','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','trim','match','matchAll','76QVqWhA','push','3685020rzpbCr','UNKNOWN','UPDATE','\x20query\x20targeting\x20','join','toUpperCase','INSERT','WITH','\x20with\x20parameters:\x20','length','split','includes','SELECT','101944juvyon','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20content\x20is\x20empty','374760eUAwiT','startsWith','reason','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','test','DELETE','27kwyrgY','387282jrlUoD','isDangerous','31830GciNZN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','type','2083020DNeGkW','add','718781ydECeK','1GGiFPj','replace','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'];a116_0x11c3=function(){return _0x4b52f6;};return a116_0x11c3();}
1
+ (function(_0x1dcbc9,_0x19b4a8){const _0x405820=a116_0x3baf,_0x363dee=_0x1dcbc9();while(!![]){try{const _0x5f8389=-parseInt(_0x405820(0x1ab))/0x1+-parseInt(_0x405820(0x1a2))/0x2*(-parseInt(_0x405820(0x1ba))/0x3)+-parseInt(_0x405820(0x1a6))/0x4*(parseInt(_0x405820(0x1b6))/0x5)+-parseInt(_0x405820(0x19e))/0x6+-parseInt(_0x405820(0x1aa))/0x7+-parseInt(_0x405820(0x1b4))/0x8*(parseInt(_0x405820(0x1a3))/0x9)+parseInt(_0x405820(0x19a))/0xa*(parseInt(_0x405820(0x1ad))/0xb);if(_0x5f8389===_0x19b4a8)break;else _0x363dee['push'](_0x363dee['shift']());}catch(_0x3281d1){_0x363dee['push'](_0x363dee['shift']());}}}(a116_0x28a3,0xefa10));function a116_0x28a3(){const _0x3ac613=['type','\x20with\x20parameters:\x20','unknown\x20table(s)','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','50ylPIGW','\x20query\x20targeting\x20','replace','WITH','6694134xVBltk','reason','test','matchAll','30GGamYb','9aeeonq','push','join','4WaYoko','SQL\x20content\x20is\x20empty','trim','isDangerous','8957718URfldr','309649YdkhpA','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','13529340akFNdb','startsWith','add','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','INSERT','toUpperCase','13051816upweKn','match','8879330QxNqbJ','length','SELECT','DDL','188835oOrFAg','includes','DELETE','UNKNOWN'];a116_0x28a3=function(){return _0x3ac613;};return a116_0x28a3();}export function detectSqlType(_0x13a66c){const _0x3e699d=a116_0x3baf;if(!_0x13a66c?.[_0x3e699d(0x1a8)]())return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e699d(0x1a7)};const _0x5579d7=_0x13a66c[_0x3e699d(0x19c)](/#\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/\$\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3e699d(0x19c)](/\/\*[\s\S]*?\*\//g,'')[_0x3e699d(0x1a8)](),_0x175608=_0x5579d7['split']('\x0a');let _0x38352c='';for(const _0xcbe5c of _0x175608){const _0x580c53=_0xcbe5c[_0x3e699d(0x1a8)]();if(!_0x580c53||_0x580c53['startsWith']('--')||_0x580c53[_0x3e699d(0x1ae)]('/*'))continue;_0x38352c=_0x580c53;break;}const _0x3a7967=_0x38352c[_0x3e699d(0x1b3)]();if(_0x3a7967['startsWith'](_0x3e699d(0x1b8))||_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x19d))){const _0x3ebc2a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3e699d(0x1a0)](_0x5579d7);return{'type':'SELECT','isSelectOnly':!_0x3ebc2a,'isDangerous':_0x3ebc2a,'reason':_0x3ebc2a?_0x3e699d(0x1ac):undefined};}if(_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x1b2)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1b0)))return{'type':_0x3e699d(0x1b0),'isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1bc)))return{'type':_0x3e699d(0x1bc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e699d(0x1c1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x3e699d(0x1a0)](_0x3a7967))return{'type':_0x3e699d(0x1b9),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![]};}function a116_0x3baf(_0x149752,_0x17ad6e){_0x149752=_0x149752-0x19a;const _0x28a3=a116_0x28a3();let _0x3bafe2=_0x28a3[_0x149752];return _0x3bafe2;}function extractTables(_0x247c5e){const _0x26526e=a116_0x3baf,_0x5cfd27=_0x247c5e[_0x26526e(0x19c)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x26526e(0x19c)](/'[^']*'/g,'\x27\x27')[_0x26526e(0x19c)](/--.*$/gm,'')[_0x26526e(0x19c)](/\/\*[\s\S]*?\*\//g,''),_0x2f4b60=[],_0x1a7bd7=_0x5cfd27['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1a7bd7?.[0x1])_0x2f4b60[_0x26526e(0x1a4)](_0x1a7bd7[0x1]['replace'](/[`"]/g,''));for(const _0x23fb4b of _0x5cfd27[_0x26526e(0x1a1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2a25c3=_0x23fb4b[0x1]?.['replace'](/[`"]/g,'');if(_0x2a25c3&&!_0x2f4b60[_0x26526e(0x1bb)](_0x2a25c3))_0x2f4b60[_0x26526e(0x1a4)](_0x2a25c3);}const _0x420170=_0x5cfd27[_0x26526e(0x1b5)](/INTO\s+([^\s(]+)/i);if(_0x420170?.[0x1]){const _0x30fbd6=_0x420170[0x1]['replace'](/[`"]/g,'');if(!_0x2f4b60['includes'](_0x30fbd6))_0x2f4b60['push'](_0x30fbd6);}const _0x2cd3cc=_0x5cfd27['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2cd3cc?.[0x1]){const _0x2ca3a0=_0x2cd3cc[0x1][_0x26526e(0x19c)](/[`"]/g,'');if(!_0x2f4b60[_0x26526e(0x1bb)](_0x2ca3a0))_0x2f4b60[_0x26526e(0x1a4)](_0x2ca3a0);}return _0x2f4b60;}function extractParameters(_0x36802e){const _0x4d18f8=a116_0x3baf,_0x3a5e90=new Set();for(const _0x2ca9a9 of _0x36802e[_0x4d18f8(0x1a1)](/#\{(\w+)\}/g))if(_0x2ca9a9[0x1])_0x3a5e90[_0x4d18f8(0x1af)](_0x2ca9a9[0x1]);for(const _0x110db6 of _0x36802e[_0x4d18f8(0x1a1)](/\$\{(\w+)\}/g))if(_0x110db6[0x1])_0x3a5e90['add'](_0x110db6[0x1]);return Array['from'](_0x3a5e90);}export function validateSql(_0x383515){const _0x15ae2c=a116_0x3baf,_0x50d347=detectSqlType(_0x383515),_0x311730=extractTables(_0x383515),_0x36b735=extractParameters(_0x383515);if(_0x50d347[_0x15ae2c(0x1a9)])return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x19f)]||_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x1b1)};if(_0x50d347['type']===_0x15ae2c(0x1bd))return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x19b)+(_0x311730[_0x15ae2c(0x1b7)]?_0x311730[_0x15ae2c(0x1a5)](',\x20'):_0x15ae2c(0x1c0))+(_0x36b735[_0x15ae2c(0x1b7)]?_0x15ae2c(0x1bf)+_0x36b735[_0x15ae2c(0x1a5)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a117_0x2a17(){const _0x1d787b=['\x20auth`\x20to\x20login\x20first.','validation_error','Not\x20in\x20a\x20','49encyKh','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','CliError','\x0a\x20\x20\x20\x20\x20\x20\x20','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','308565nhVdFH','join','Missing\x20required\x20flag:\x20--','99948iMKTZZ','84006wzYSkE','Network\x20error:\x20','exitCode','Run\x20`','config_missing','Tip:\x20`','\x20project\x20directory','Authentication\x20required','network_error','253cOvywv','Set\x20appcode\x20via\x20`','10yrzApl','65168JqEEgo','\x20--help`\x20to\x20see\x20available\x20commands.','92lOFfuE','2SboWsf','2033262vsYpAc','code','not_in_project','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','hint','flag_missing','cancelled','Unknown\x20command:\x20','name','49855qTHZZd','auth_required','unknown_command','Configuration\x20file\x20not\x20found','29847EyQzCo'];a117_0x2a17=function(){return _0x1d787b;};return a117_0x2a17();}const a117_0xdfad7b=a117_0x44b2;(function(_0x32c2c0,_0x1a1949){const _0x490d2f=a117_0x44b2,_0x124f0f=_0x32c2c0();while(!![]){try{const _0x59b52a=parseInt(_0x490d2f(0x103))/0x1*(-parseInt(_0x490d2f(0xf4))/0x2)+parseInt(_0x490d2f(0x110))/0x3+-parseInt(_0x490d2f(0xf3))/0x4*(-parseInt(_0x490d2f(0xff))/0x5)+-parseInt(_0x490d2f(0xf5))/0x6+-parseInt(_0x490d2f(0x107))/0x7*(-parseInt(_0x490d2f(0xf1))/0x8)+parseInt(_0x490d2f(0x10c))/0x9*(parseInt(_0x490d2f(0xf0))/0xa)+parseInt(_0x490d2f(0xee))/0xb*(parseInt(_0x490d2f(0x10f))/0xc);if(_0x59b52a===_0x1a1949)break;else _0x124f0f['push'](_0x124f0f['shift']());}catch(_0x63befa){_0x124f0f['push'](_0x124f0f['shift']());}}}(a117_0x2a17,0x29ddd));import{CLI_BIN_NAME}from'./constant/cli.js';function a117_0x44b2(_0x28a007,_0x8d172c){_0x28a007=_0x28a007-0xe7;const _0x2a17f5=a117_0x2a17();let _0x44b28f=_0x2a17f5[_0x28a007];return _0x44b28f;}export class CliError extends Error{[a117_0xdfad7b(0xf6)];['exitCode'];[a117_0xdfad7b(0xfa)];constructor(_0x17e49f,_0x9bcd2,_0x1cffd2,_0x119b8c){const _0x27a75b=a117_0xdfad7b;super(_0x1cffd2),this[_0x27a75b(0xfe)]=_0x27a75b(0x109),this[_0x27a75b(0xf6)]=_0x17e49f,this[_0x27a75b(0xe7)]=_0x9bcd2,this['hint']=_0x119b8c;}}export const CliErrors={'authRequired':_0x1179ea=>new CliError(a117_0xdfad7b(0x100),0x1,a117_0xdfad7b(0xec),_0x1179ea??a117_0xdfad7b(0xe8)+CLI_BIN_NAME+a117_0xdfad7b(0x104)),'configMissing':_0x3e0c19=>new CliError(a117_0xdfad7b(0xe9),0x1,a117_0xdfad7b(0x102),_0x3e0c19??[a117_0xdfad7b(0xef)+CLI_BIN_NAME+a117_0xdfad7b(0xf8),a117_0xdfad7b(0xea)+CLI_BIN_NAME+a117_0xdfad7b(0x108)][a117_0xdfad7b(0x10d)](a117_0xdfad7b(0x10a))),'notInProject':()=>new CliError(a117_0xdfad7b(0xf7),0x1,a117_0xdfad7b(0x106)+CLI_BIN_NAME+a117_0xdfad7b(0xeb),a117_0xdfad7b(0xf9)),'apiError':(_0x1b12ff,_0x88d1f5)=>new CliError('api_error',0x2,_0x1b12ff,_0x88d1f5),'networkError':_0x4246fc=>new CliError(a117_0xdfad7b(0xed),0x2,a117_0xdfad7b(0x111)+_0x4246fc,a117_0xdfad7b(0x10b)),'unknownCommand':_0x278b6e=>new CliError(a117_0xdfad7b(0x101),0x1,a117_0xdfad7b(0xfd)+_0x278b6e,a117_0xdfad7b(0xe8)+CLI_BIN_NAME+a117_0xdfad7b(0xf2)),'flagMissing':(_0x321d75,_0x5c8e0a)=>new CliError(a117_0xdfad7b(0xfb),0x1,a117_0xdfad7b(0x10e)+_0x321d75,_0x5c8e0a),'validation':(_0x2c8ae9,_0x27b7c8)=>new CliError(a117_0xdfad7b(0x105),0x1,_0x2c8ae9,_0x27b7c8),'cancelled':_0x30bf2e=>new CliError(a117_0xdfad7b(0xfc),0x0,_0x30bf2e??'Operation\x20cancelled.',undefined)};
1
+ function a117_0x3614(){const _0x23c1d2=['auth_required','\x20project\x20directory','362644EqDnoq','423QyuuFu','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','code','192120ylqXkg','\x0a\x20\x20\x20\x20\x20\x20\x20','754407HdCqPA','3636xfCLtV','api_error','681908RLjcCS','10935240BXIjcW','4QbSWqw','12845PJtSdU','flag_missing','Operation\x20cancelled.','validation_error','\x20--help`\x20to\x20see\x20available\x20commands.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','network_error','CliError','cancelled','Run\x20`','Authentication\x20required','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','35BwHCfY','join','Not\x20in\x20a\x20','not_in_project','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','7591650fqVyua','Set\x20appcode\x20via\x20`','name','Unknown\x20command:\x20','\x20auth`\x20to\x20login\x20first.','Configuration\x20file\x20not\x20found'];a117_0x3614=function(){return _0x23c1d2;};return a117_0x3614();}const a117_0x4b89e2=a117_0x44d6;(function(_0x341d3b,_0x21ea10){const _0x22a255=a117_0x44d6,_0x4c0693=_0x341d3b();while(!![]){try{const _0xbf022e=parseInt(_0x22a255(0x1be))/0x1*(-parseInt(_0x22a255(0x1b3))/0x2)+parseInt(_0x22a255(0x1b9))/0x3+parseInt(_0x22a255(0x1bc))/0x4*(-parseInt(_0x22a255(0x1cb))/0x5)+parseInt(_0x22a255(0x1ba))/0x6*(parseInt(_0x22a255(0x1bf))/0x7)+parseInt(_0x22a255(0x1b7))/0x8*(parseInt(_0x22a255(0x1b4))/0x9)+parseInt(_0x22a255(0x1bd))/0xa+-parseInt(_0x22a255(0x1d0))/0xb;if(_0xbf022e===_0x21ea10)break;else _0x4c0693['push'](_0x4c0693['shift']());}catch(_0x1bb8bb){_0x4c0693['push'](_0x4c0693['shift']());}}}(a117_0x3614,0xee823));function a117_0x44d6(_0x240e3b,_0x3adf9e){_0x240e3b=_0x240e3b-0x1b1;const _0x361458=a117_0x3614();let _0x44d6dd=_0x361458[_0x240e3b];return _0x44d6dd;}import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{['code'];['exitCode'];['hint'];constructor(_0x27f91b,_0x3eb2a0,_0x1b1039,_0x4d55d9){const _0x28dfdb=a117_0x44d6;super(_0x1b1039),this[_0x28dfdb(0x1d2)]=_0x28dfdb(0x1c6),this[_0x28dfdb(0x1b6)]=_0x27f91b,this['exitCode']=_0x3eb2a0,this['hint']=_0x4d55d9;}}export const CliErrors={'authRequired':_0x10f825=>new CliError(a117_0x4b89e2(0x1b1),0x1,a117_0x4b89e2(0x1c9),_0x10f825??a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1d4)),'configMissing':_0x4b33cc=>new CliError('config_missing',0x1,a117_0x4b89e2(0x1d5),_0x4b33cc??[a117_0x4b89e2(0x1d1)+CLI_BIN_NAME+a117_0x4b89e2(0x1ca),'Tip:\x20`'+CLI_BIN_NAME+a117_0x4b89e2(0x1cf)][a117_0x4b89e2(0x1cc)](a117_0x4b89e2(0x1b8))),'notInProject':()=>new CliError(a117_0x4b89e2(0x1ce),0x1,a117_0x4b89e2(0x1cd)+CLI_BIN_NAME+a117_0x4b89e2(0x1b2),a117_0x4b89e2(0x1b5)),'apiError':(_0xb014ee,_0x578c3a)=>new CliError(a117_0x4b89e2(0x1bb),0x2,_0xb014ee,_0x578c3a),'networkError':_0xc64726=>new CliError(a117_0x4b89e2(0x1c5),0x2,'Network\x20error:\x20'+_0xc64726,a117_0x4b89e2(0x1c4)),'unknownCommand':_0x2955ca=>new CliError('unknown_command',0x1,a117_0x4b89e2(0x1d3)+_0x2955ca,a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1c3)),'flagMissing':(_0x4dd345,_0x29a245)=>new CliError(a117_0x4b89e2(0x1c0),0x1,'Missing\x20required\x20flag:\x20--'+_0x4dd345,_0x29a245),'validation':(_0x59f9bf,_0x1ebed3)=>new CliError(a117_0x4b89e2(0x1c2),0x1,_0x59f9bf,_0x1ebed3),'cancelled':_0x1d30ca=>new CliError(a117_0x4b89e2(0x1c7),0x0,_0x1d30ca??a117_0x4b89e2(0x1c1),undefined)};
@@ -1 +1 @@
1
- (function(_0x5395ea,_0x4481ae){const _0x55375b=a118_0x284d,_0x1aaa57=_0x5395ea();while(!![]){try{const _0x37b23e=-parseInt(_0x55375b(0x173))/0x1+-parseInt(_0x55375b(0x170))/0x2*(parseInt(_0x55375b(0x179))/0x3)+parseInt(_0x55375b(0x17c))/0x4+parseInt(_0x55375b(0x17b))/0x5*(parseInt(_0x55375b(0x17f))/0x6)+parseInt(_0x55375b(0x188))/0x7*(-parseInt(_0x55375b(0x17e))/0x8)+parseInt(_0x55375b(0x177))/0x9*(parseInt(_0x55375b(0x175))/0xa)+-parseInt(_0x55375b(0x182))/0xb;if(_0x37b23e===_0x4481ae)break;else _0x1aaa57['push'](_0x1aaa57['shift']());}catch(_0x349417){_0x1aaa57['push'](_0x1aaa57['shift']());}}}(a118_0x58d7,0x1e2d0));function a118_0x58d7(){const _0x22835c=['dry-run','Output\x20format','boolean','2502ucvTxN','Preview\x20the\x20operation\x20without\x20executing','defaultOutputFormat','35313qlVSjN','yes','50dFAPAS','push','280143fTmvGX','pretty','51RVBRmf','compress','35xpJBPk','525044cgcmUz','json','8BMktFg','190668qOrAaE','Skip\x20confirmation\x20prompt','dryRun','2172005mZPKhO','flags','format','string','risk','hasFormat','921949MgQqmC'];a118_0x58d7=function(){return _0x22835c;};return a118_0x58d7();}function a118_0x284d(_0x1a00a2,_0x1fe63e){_0x1a00a2=_0x1a00a2-0x170;const _0x58d7ef=a118_0x58d7();let _0x284db1=_0x58d7ef[_0x1a00a2];return _0x284db1;}export function buildAllFlags(_0xff28d9){const _0x6903ad=a118_0x284d,_0x3ef88d=[..._0xff28d9[_0x6903ad(0x183)]];return _0xff28d9[_0x6903ad(0x181)]&&_0x3ef88d[_0x6903ad(0x176)]({'name':_0x6903ad(0x189),'type':_0x6903ad(0x18b),'description':_0x6903ad(0x171)}),_0xff28d9[_0x6903ad(0x187)]!==![]&&_0x3ef88d['push']({'name':_0x6903ad(0x184),'type':_0x6903ad(0x185),'default':_0xff28d9[_0x6903ad(0x172)]??_0x6903ad(0x178),'enum':[_0x6903ad(0x17d),_0x6903ad(0x178),_0x6903ad(0x17a)],'description':_0x6903ad(0x18a)}),_0xff28d9[_0x6903ad(0x186)]==='high-risk-write'&&_0x3ef88d[_0x6903ad(0x176)]({'name':_0x6903ad(0x174),'type':'boolean','description':_0x6903ad(0x180)}),_0x3ef88d;}
1
+ function a118_0x2a81(_0x13655f,_0x520f0a){_0x13655f=_0x13655f-0x14f;const _0x50fb46=a118_0x50fb();let _0x2a811a=_0x50fb46[_0x13655f];return _0x2a811a;}function a118_0x50fb(){const _0x1f19c3=['yes','dryRun','3161370euXAUx','58596pzlwbx','pretty','2195290UdiBzN','boolean','6280NhlHTS','231oPUjNR','flags','push','hasFormat','string','dry-run','Output\x20format','Skip\x20confirmation\x20prompt','26111250ElixJi','114354hIihCK','712acosto','463HmXRwl','format','14IzgpMy','json','9444540fcGOMf','defaultOutputFormat','Preview\x20the\x20operation\x20without\x20executing'];a118_0x50fb=function(){return _0x1f19c3;};return a118_0x50fb();}(function(_0x909ccf,_0x3f2589){const _0x559587=a118_0x2a81,_0x36acf8=_0x909ccf();while(!![]){try{const _0x2401c2=parseInt(_0x559587(0x151))/0x1*(-parseInt(_0x559587(0x15f))/0x2)+-parseInt(_0x559587(0x160))/0x3*(-parseInt(_0x559587(0x15b))/0x4)+parseInt(_0x559587(0x15d))/0x5+-parseInt(_0x559587(0x15a))/0x6*(-parseInt(_0x559587(0x153))/0x7)+-parseInt(_0x559587(0x150))/0x8*(-parseInt(_0x559587(0x14f))/0x9)+parseInt(_0x559587(0x155))/0xa+-parseInt(_0x559587(0x168))/0xb;if(_0x2401c2===_0x3f2589)break;else _0x36acf8['push'](_0x36acf8['shift']());}catch(_0x11c578){_0x36acf8['push'](_0x36acf8['shift']());}}}(a118_0x50fb,0xd40bb));export function buildAllFlags(_0x1e8c89){const _0x459759=a118_0x2a81,_0x71c4a3=[..._0x1e8c89[_0x459759(0x161)]];return _0x1e8c89[_0x459759(0x159)]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x165),'type':_0x459759(0x15e),'description':_0x459759(0x157)}),_0x1e8c89[_0x459759(0x163)]!==![]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x152),'type':_0x459759(0x164),'default':_0x1e8c89[_0x459759(0x156)]??'pretty','enum':[_0x459759(0x154),_0x459759(0x15c),'compress'],'description':_0x459759(0x166)}),_0x1e8c89['risk']==='high-risk-write'&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x158),'type':_0x459759(0x15e),'description':_0x459759(0x167)}),_0x71c4a3;}
@@ -1 +1 @@
1
- (function(_0xcf991,_0x3d7ddd){const _0x54e626=a119_0x22a5,_0x105475=_0xcf991();while(!![]){try{const _0x5e200d=parseInt(_0x54e626(0x1cd))/0x1+-parseInt(_0x54e626(0x1c8))/0x2+-parseInt(_0x54e626(0x1c4))/0x3*(parseInt(_0x54e626(0x1d9))/0x4)+-parseInt(_0x54e626(0x1d0))/0x5*(-parseInt(_0x54e626(0x1d2))/0x6)+-parseInt(_0x54e626(0x1cb))/0x7*(-parseInt(_0x54e626(0x1ce))/0x8)+parseInt(_0x54e626(0x1c5))/0x9*(-parseInt(_0x54e626(0x1bf))/0xa)+parseInt(_0x54e626(0x1bc))/0xb*(parseInt(_0x54e626(0x1bd))/0xc);if(_0x5e200d===_0x3d7ddd)break;else _0x105475['push'](_0x105475['shift']());}catch(_0x246296){_0x105475['push'](_0x105475['shift']());}}}(a119_0x1c75,0x55978));import{CliErrors}from'../errors.js';function a119_0x1c75(){const _0x207de8=['default','dryRun','boolean','\x20expects\x20a\x20number,\x20got\x20\x22','7172aZmNpc','enum',',\x20got\x20\x22','required','toUpperCase',':\x20expected\x20','validation','17831xRyxtW','3636zGcisn','includes','7860aUNYeE','pattern','\x20is\x20required\x20for\x20`','test','length','957YGKjcT','1467HcxNPf','Invalid\x20--','name','486542FvRBib','true','dry-run','7QemuNG','type','530855IaEsDZ','85304HAiNiK','flagMissing','1306295DbgpYS','regex','6sDkemQ','Invalid\x20value\x20\x22','number'];a119_0x1c75=function(){return _0x207de8;};return a119_0x1c75();}export function parseFlags(_0xb854d4,_0x1fc94b){const _0x231cdc=a119_0x22a5,_0x499295={};for(const _0x14f1eb of _0xb854d4){const _0x25ae0d=_0x1fc94b[_0x14f1eb[_0x231cdc(0x1c7)]]??_0x1fc94b[toCamelCase(_0x14f1eb[_0x231cdc(0x1c7)])];if(_0x25ae0d===undefined||_0x25ae0d===null){_0x14f1eb['default']!==undefined&&(_0x499295[_0x14f1eb[_0x231cdc(0x1c7)]]=_0x14f1eb[_0x231cdc(0x1d5)]);continue;}_0x499295[_0x14f1eb[_0x231cdc(0x1c7)]]=coerce(_0x14f1eb,_0x25ae0d);}for(const _0x507705 of[_0x231cdc(0x1ca),_0x231cdc(0x1d6),'yes','format','jq']){const _0x1970a5=_0x1fc94b[_0x507705];if(_0x1970a5!==undefined){const _0x19e7cd=_0x507705==='dryRun'?_0x231cdc(0x1ca):_0x507705;_0x499295[_0x19e7cd]=_0x1970a5;}}return _0x499295;}export function validateFlags(_0x594bf5,_0x22c9bf,_0x552d81){const _0x52da43=a119_0x22a5;for(const _0x56ca8f of _0x594bf5){const _0x53fddb=_0x22c9bf[_0x56ca8f[_0x52da43(0x1c7)]];if(_0x56ca8f[_0x52da43(0x1dc)]&&(_0x53fddb===undefined||_0x53fddb===''))throw CliErrors[_0x52da43(0x1cf)](_0x56ca8f[_0x52da43(0x1c7)],'--'+_0x56ca8f[_0x52da43(0x1c7)]+_0x52da43(0x1c1)+_0x552d81+'`.');if(_0x56ca8f[_0x52da43(0x1da)]&&_0x56ca8f['enum'][_0x52da43(0x1c3)]>0x0&&_0x53fddb!==undefined&&_0x53fddb!==''){if(!_0x56ca8f[_0x52da43(0x1da)][_0x52da43(0x1be)](String(_0x53fddb)))throw CliErrors[_0x52da43(0x1bb)](_0x52da43(0x1d3)+_0x53fddb+'\x22\x20for\x20--'+_0x56ca8f[_0x52da43(0x1c7)]+'.\x20Allowed:\x20'+_0x56ca8f[_0x52da43(0x1da)]['join'](',\x20'));}if(_0x56ca8f['pattern']&&_0x53fddb!==undefined&&_0x53fddb!==''){if(!_0x56ca8f['pattern'][_0x52da43(0x1d1)][_0x52da43(0x1c2)](String(_0x53fddb)))throw CliErrors[_0x52da43(0x1bb)](_0x52da43(0x1c6)+_0x56ca8f[_0x52da43(0x1c7)]+_0x52da43(0x1ba)+_0x56ca8f[_0x52da43(0x1c0)]['description']+_0x52da43(0x1db)+_0x53fddb+'\x22.');}}}function coerce(_0x5dbb7e,_0x4d47f4){const _0x2dd648=a119_0x22a5;switch(_0x5dbb7e[_0x2dd648(0x1cc)]){case _0x2dd648(0x1d7):return _0x4d47f4===!![]||_0x4d47f4===_0x2dd648(0x1c9);case _0x2dd648(0x1d4):{const _0x15380f=Number(_0x4d47f4);if(isNaN(_0x15380f))throw CliErrors['validation']('--'+_0x5dbb7e[_0x2dd648(0x1c7)]+_0x2dd648(0x1d8)+_0x4d47f4+'\x22');return _0x15380f;}default:return String(_0x4d47f4);}}function a119_0x22a5(_0x9485a9,_0x5f5a7c){_0x9485a9=_0x9485a9-0x1ba;const _0x1c755b=a119_0x1c75();let _0x22a5d3=_0x1c755b[_0x9485a9];return _0x22a5d3;}function toCamelCase(_0x2ad0cf){const _0x2b1b4d=a119_0x22a5;return _0x2ad0cf['replace'](/-([a-z])/g,(_0x261ee3,_0x2c56d6)=>_0x2c56d6[_0x2b1b4d(0x1dd)]());}
1
+ (function(_0x275141,_0x198c54){const _0x1b1ec9=a119_0x4c4a,_0x109263=_0x275141();while(!![]){try{const _0xa5ee32=parseInt(_0x1b1ec9(0x133))/0x1+parseInt(_0x1b1ec9(0x120))/0x2*(parseInt(_0x1b1ec9(0x11b))/0x3)+-parseInt(_0x1b1ec9(0x12b))/0x4*(parseInt(_0x1b1ec9(0x123))/0x5)+parseInt(_0x1b1ec9(0x124))/0x6+-parseInt(_0x1b1ec9(0x12f))/0x7+parseInt(_0x1b1ec9(0x12a))/0x8*(-parseInt(_0x1b1ec9(0x12e))/0x9)+parseInt(_0x1b1ec9(0x11c))/0xa;if(_0xa5ee32===_0x198c54)break;else _0x109263['push'](_0x109263['shift']());}catch(_0xdf1435){_0x109263['push'](_0x109263['shift']());}}}(a119_0x5378,0x896d2));import{CliErrors}from'../errors.js';export function parseFlags(_0x3e36c0,_0x19a0ba){const _0x54ecd5=a119_0x4c4a,_0x56604f={};for(const _0x5b4829 of _0x3e36c0){const _0x479ca8=_0x19a0ba[_0x5b4829[_0x54ecd5(0x11a)]]??_0x19a0ba[toCamelCase(_0x5b4829[_0x54ecd5(0x11a)])];if(_0x479ca8===undefined||_0x479ca8===null){_0x5b4829[_0x54ecd5(0x122)]!==undefined&&(_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=_0x5b4829['default']);continue;}_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=coerce(_0x5b4829,_0x479ca8);}for(const _0xd56afa of[_0x54ecd5(0x116),'dryRun','yes',_0x54ecd5(0x128),'jq']){const _0x331817=_0x19a0ba[_0xd56afa];if(_0x331817!==undefined){const _0x40fc93=_0xd56afa===_0x54ecd5(0x12d)?_0x54ecd5(0x116):_0xd56afa;_0x56604f[_0x40fc93]=_0x331817;}}return _0x56604f;}function a119_0x5378(){const _0x1f3f8c=['984yYTdoU','400820RJQcJu','\x22\x20for\x20--',',\x20got\x20\x22','replace','3346gHBVIb','test','default','6695sUWKfW','526680VnsajE','description','type','regex','format','validation','1901872clRZIk','1068dDrAvf','Invalid\x20value\x20\x22','dryRun','9bYFAMY','436324YMBkZP','flagMissing','pattern','boolean','543871dSeBic','number','enum','dry-run','Invalid\x20--','toUpperCase','.\x20Allowed:\x20','name'];a119_0x5378=function(){return _0x1f3f8c;};return a119_0x5378();}export function validateFlags(_0x1cc16e,_0x69e5ec,_0x2371a8){const _0x3b3227=a119_0x4c4a;for(const _0x45d09f of _0x1cc16e){const _0x5d11bf=_0x69e5ec[_0x45d09f[_0x3b3227(0x11a)]];if(_0x45d09f['required']&&(_0x5d11bf===undefined||_0x5d11bf===''))throw CliErrors[_0x3b3227(0x130)](_0x45d09f[_0x3b3227(0x11a)],'--'+_0x45d09f[_0x3b3227(0x11a)]+'\x20is\x20required\x20for\x20`'+_0x2371a8+'`.');if(_0x45d09f[_0x3b3227(0x115)]&&_0x45d09f[_0x3b3227(0x115)]['length']>0x0&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f[_0x3b3227(0x115)]['includes'](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x12c)+_0x5d11bf+_0x3b3227(0x11d)+_0x45d09f[_0x3b3227(0x11a)]+_0x3b3227(0x119)+_0x45d09f['enum']['join'](',\x20'));}if(_0x45d09f[_0x3b3227(0x131)]&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f['pattern'][_0x3b3227(0x127)][_0x3b3227(0x121)](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x117)+_0x45d09f[_0x3b3227(0x11a)]+':\x20expected\x20'+_0x45d09f[_0x3b3227(0x131)][_0x3b3227(0x125)]+_0x3b3227(0x11e)+_0x5d11bf+'\x22.');}}}function coerce(_0x34eabb,_0x322b23){const _0x19eb1d=a119_0x4c4a;switch(_0x34eabb[_0x19eb1d(0x126)]){case _0x19eb1d(0x132):return _0x322b23===!![]||_0x322b23==='true';case _0x19eb1d(0x114):{const _0x9d68f1=Number(_0x322b23);if(isNaN(_0x9d68f1))throw CliErrors[_0x19eb1d(0x129)]('--'+_0x34eabb['name']+'\x20expects\x20a\x20number,\x20got\x20\x22'+_0x322b23+'\x22');return _0x9d68f1;}default:return String(_0x322b23);}}function a119_0x4c4a(_0x461a46,_0x5a7f63){_0x461a46=_0x461a46-0x114;const _0x537872=a119_0x5378();let _0x4c4a1f=_0x537872[_0x461a46];return _0x4c4a1f;}function toCamelCase(_0x11cb78){const _0x5ef0ab=a119_0x4c4a;return _0x11cb78[_0x5ef0ab(0x11f)](/-([a-z])/g,(_0x51019a,_0x19f608)=>_0x19f608[_0x5ef0ab(0x118)]());}
@@ -1 +1 @@
1
- const a120_0x1bba4c=a120_0x1b48;function a120_0x1b48(_0x48e822,_0x185807){_0x48e822=_0x48e822-0xa3;const _0x4a522f=a120_0x4a52();let _0x1b4879=_0x4a522f[_0x48e822];return _0x1b4879;}(function(_0x465ced,_0x312f5f){const _0x3ac60f=a120_0x1b48,_0x20f4a5=_0x465ced();while(!![]){try{const _0x91e67c=-parseInt(_0x3ac60f(0xde))/0x1+-parseInt(_0x3ac60f(0xe5))/0x2*(-parseInt(_0x3ac60f(0xe4))/0x3)+parseInt(_0x3ac60f(0xad))/0x4*(parseInt(_0x3ac60f(0xa6))/0x5)+parseInt(_0x3ac60f(0xa8))/0x6+-parseInt(_0x3ac60f(0xbf))/0x7+parseInt(_0x3ac60f(0xbb))/0x8*(parseInt(_0x3ac60f(0xc1))/0x9)+parseInt(_0x3ac60f(0xdd))/0xa*(-parseInt(_0x3ac60f(0xe2))/0xb);if(_0x91e67c===_0x312f5f)break;else _0x20f4a5['push'](_0x20f4a5['shift']());}catch(_0x2d53ca){_0x20f4a5['push'](_0x20f4a5['shift']());}}}(a120_0x4a52,0xc4b93));import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a120_0x4a52(){const _0x18a104=['\x20\x20Run\x20`','get','boolean','\x20<n>','\x20\x20\x20\x20\x20\x20','\x20\x20[high-risk-write]','\x20[flags]','\x20\x20GLOBAL\x20OPTIONS','split','19112IeGRKN','description','\x20\x20ARGS','risk','861707kBBsBU','commands','4905CBfBVn','length','\x20auth`\x20first).','\x20[global-options]\x20<service>\x20<command>\x20[flags]','function','enum','\x20\x20[write]','\x20\x20USAGE','required','name','Requires\x20authentication\x20(run\x20`','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','wildcardDef','Requires\x20appcode\x20(set\x20via\x20`','type','flags','\x20|\x20','args','service','\x20<command>\x20[args]\x20[flags]','label','\x20\x20\x20\x20','\x20\x20PREREQUISITES','\x20project\x20init`\x20or\x20--appcode).','\x20<service>\x20--help`\x20for\x20service\x20commands.','\x20<value>','(required)','trim','18406090grYcNj','856275XnLvfN','join','helpExtra','hint','11LMeLgH','max','4702389HOayuo','2DkMpEp','push','requiresAuth','map','\x20\x20\x20\x20$\x20','\x20\x20FLAGS','dryRun','\x20\x20\x20\x20\x20\x20\x20\x20','filter','number','35YOdqkn','requiresAppCode','3293106ECvzoi','padEnd','command','high-risk-write','default','118540eIOiIs','tag','find','\x20\x20COMMANDS','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a120_0x4a52=function(){return _0x18a104;};return a120_0x4a52();}const RISK_LABELS={'read':'','write':a120_0x1bba4c(0xc7),'high-risk-write':a120_0x1bba4c(0xb7)};export function generateCommandHelp(_0x2d7afb){const _0x49b41f=a120_0x1bba4c,_0x11af7d=[],_0x37c888=_0x2d7afb[_0x49b41f(0xd3)]===_0x2d7afb[_0x49b41f(0xaa)]?CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]:CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]+'\x20'+_0x2d7afb[_0x49b41f(0xaa)],_0x4c542f=_0x2d7afb[_0x49b41f(0xd2)]?_0x2d7afb['args'][_0x49b41f(0xe8)](_0x522b4e=>_0x522b4e['required']!==![]?'<'+_0x522b4e[_0x49b41f(0xca)]+'>':'['+_0x522b4e[_0x49b41f(0xca)]+']')[_0x49b41f(0xdf)]('\x20'):'',_0x4b76e3=_0x4c542f?_0x37c888+'\x20'+_0x4c542f+_0x49b41f(0xb8):_0x37c888+'\x20[flags]';_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d[_0x49b41f(0xe6)]('\x20\x20'+_0x2d7afb[_0x49b41f(0xbc)]),_0x11af7d['push'](''),_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xc8)),_0x11af7d['push'](_0x49b41f(0xd6)+_0x4b76e3),_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d['push']('\x20\x20RISK:\x20'+_0x2d7afb[_0x49b41f(0xbe)]);_0x2d7afb['risk']===_0x49b41f(0xab)&&_0x11af7d['push'](_0x49b41f(0xb1));_0x11af7d[_0x49b41f(0xe6)]('');if(_0x2d7afb[_0x49b41f(0xd2)]&&_0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xc2)]>0x0){_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xbd));const _0x55867c=Math[_0x49b41f(0xe3)](..._0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xe8)](_0x4823aa=>_0x4823aa[_0x49b41f(0xca)][_0x49b41f(0xc2)]+0x2));for(const _0x16d017 of _0x2d7afb[_0x49b41f(0xd2)]){const _0x3d27b4=('<'+_0x16d017['name']+'>')['padEnd'](_0x55867c+0x2),_0x40bbed=_0x16d017[_0x49b41f(0xc9)]!==![]?'\x20(required)':'';_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xd6)+_0x3d27b4+_0x16d017[_0x49b41f(0xbc)]+_0x40bbed);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xd0)][_0x49b41f(0xc2)]>0x0||_0x2d7afb[_0x49b41f(0xeb)]||_0x2d7afb['hasFormat']!==![]){_0x11af7d['push'](_0x49b41f(0xea));const _0x43fbbd=buildAllFlags(_0x2d7afb),_0x1bbd39=Math[_0x49b41f(0xe3)](..._0x43fbbd[_0x49b41f(0xe8)](_0x5244f9=>formatFlagName(_0x5244f9)[_0x49b41f(0xc2)]));for(const _0x268202 of _0x43fbbd){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20'+formatFlagName(_0x268202)['padEnd'](_0x1bbd39+0x2)+renderFlagDesc(_0x268202));}_0x11af7d[_0x49b41f(0xe6)]('');}const _0x4e81c9=[];_0x2d7afb[_0x49b41f(0xe7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xcb)+CLI_BIN_NAME+_0x49b41f(0xc3));_0x2d7afb[_0x49b41f(0xa7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xce)+CLI_BIN_NAME+_0x49b41f(0xd8));if(_0x4e81c9[_0x49b41f(0xc2)]>0x0){_0x11af7d['push'](_0x49b41f(0xd7));for(const _0x2ed7c6 of _0x4e81c9){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20•\x20'+_0x2ed7c6);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xe0)]){const _0x5f0114=typeof _0x2d7afb[_0x49b41f(0xe0)]===_0x49b41f(0xc5)?_0x2d7afb[_0x49b41f(0xe0)]():_0x2d7afb[_0x49b41f(0xe0)];_0x11af7d['push'](_0x5f0114),_0x11af7d['push']('');}return _0x11af7d['join']('\x0a');}export function generateServiceHelp(_0x2433e8){const _0x3881f7=a120_0x1bba4c,_0x224c78=getServiceEntry(_0x2433e8);if(!_0x224c78)return'\x20\x20Unknown\x20service:\x20'+_0x2433e8+'\x0a';const _0x43f200=[],_0x47fd9e=serviceGroups[_0x3881f7(0xb3)](_0x2433e8);_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push']('\x20\x20'+_0x224c78[_0x3881f7(0xd5)]),_0x43f200['push'](''),_0x43f200[_0x3881f7(0xe6)]('\x20\x20USAGE'),_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xd6)+CLI_BIN_NAME+'\x20'+_0x2433e8+_0x3881f7(0xd4)),_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push'](_0x3881f7(0xb0));for(const _0x4c961b of _0x224c78[_0x3881f7(0xc0)]){_0x43f200[_0x3881f7(0xe6)]('');const _0x4bea65=_0x4c961b[_0x3881f7(0xae)]?'\x20\x20'+_0x4c961b['tag'][_0x3881f7(0xdc)]():'';_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20'+_0x4c961b['command']+_0x4bea65),_0x43f200['push'](_0x3881f7(0xb6)+_0x4c961b[_0x3881f7(0xbc)]);const _0x3322e0=_0x47fd9e?.[_0x3881f7(0xaf)](_0x5c9562=>_0x5c9562['command']===_0x4c961b[_0x3881f7(0xaa)]);if(_0x3322e0?.[_0x3881f7(0xd2)]&&_0x3322e0[_0x3881f7(0xd2)][_0x3881f7(0xc2)]>0x0){_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20\x20\x20ARGS');const _0x585495=Math[_0x3881f7(0xe3)](..._0x3322e0['args'][_0x3881f7(0xe8)](_0xe7c08a=>_0xe7c08a[_0x3881f7(0xca)]['length']+0x2));for(const _0xb55a3c of _0x3322e0[_0x3881f7(0xd2)]){const _0x3459b1=('<'+_0xb55a3c[_0x3881f7(0xca)]+'>')[_0x3881f7(0xa9)](_0x585495+0x2),_0x394335=_0xb55a3c[_0x3881f7(0xc9)]!==![]?'\x20(required)':'';_0x43f200['push'](_0x3881f7(0xa3)+_0x3459b1+_0xb55a3c[_0x3881f7(0xbc)]+_0x394335);}}const _0xb88d6d=getCommandFlags(_0x2433e8,_0x4c961b['command'],_0x47fd9e);if(_0xb88d6d[_0x3881f7(0xc2)]>0x0){const _0x335257=Math['max'](..._0xb88d6d[_0x3881f7(0xe8)](_0x256c96=>formatFlagName(_0x256c96)[_0x3881f7(0xc2)]));for(const _0x15fbba of _0xb88d6d){_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xb6)+formatFlagName(_0x15fbba)['padEnd'](_0x335257+0x2)+renderFlagDesc(_0x15fbba));}}}return _0x43f200[_0x3881f7(0xe6)](''),_0x43f200[_0x3881f7(0xdf)]('\x0a');}export function generateFullHelp(){const _0x55bf25=a120_0x1bba4c,_0xc622cf=[];_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xc8)),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xe9)+CLI_BIN_NAME+_0x55bf25(0xc4)),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb9));const _0x1a75dc=GLOBAL_FLAGS[_0x55bf25(0xa4)](_0x458945=>!_0x458945['hidden']),_0x992511=Math[_0x55bf25(0xe3)](..._0x1a75dc[_0x55bf25(0xe8)](_0x73ce1c=>{const _0x4319ad=_0x55bf25,_0x381249=_0x73ce1c[_0x4319ad(0xe1)]?'\x20'+_0x73ce1c[_0x4319ad(0xe1)]:'';return('--'+_0x73ce1c['name']+_0x381249)[_0x4319ad(0xc2)];}));for(const _0x183c74 of _0x1a75dc){const _0x9e029d=_0x183c74[_0x55bf25(0xe1)]?'\x20'+_0x183c74[_0x55bf25(0xe1)]:'',_0x4b83d5=('--'+_0x183c74[_0x55bf25(0xca)]+_0x9e029d)['padEnd'](_0x992511+0x2);_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4b83d5+_0x183c74[_0x55bf25(0xbc)]);}_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf['push'](_0x55bf25(0xb0)),_0xc622cf[_0x55bf25(0xe6)]('');for(const _0x4318a1 of serviceRegistry){_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+_0x4318a1['label']);if(_0x4318a1['isSingleCommand']){const _0x5f2fed=_0x4318a1[_0x55bf25(0xc0)][0x0],_0xb82f01=_0x5f2fed[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4318a1[_0x55bf25(0xd3)][_0x55bf25(0xa9)](0x12)+_0x5f2fed[_0x55bf25(0xbc)]+_0xb82f01);}else{const _0x3b39bd=_0x4318a1['commands']['map'](_0x7676=>_0x4318a1[_0x55bf25(0xd3)]+'\x20'+_0x7676['command']),_0x23b943=Math['max'](..._0x3b39bd[_0x55bf25(0xe8)](_0xa5d11d=>_0xa5d11d[_0x55bf25(0xc2)]));for(let _0x4bd561=0x0;_0x4bd561<_0x4318a1[_0x55bf25(0xc0)][_0x55bf25(0xc2)];_0x4bd561++){const _0x18876c=_0x4318a1[_0x55bf25(0xc0)][_0x4bd561],_0x333276=_0x18876c[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x3b39bd[_0x4bd561][_0x55bf25(0xa9)](_0x23b943+0x2)+_0x18876c[_0x55bf25(0xbc)]+_0x333276);}}if(_0x4318a1[_0x55bf25(0xcd)]?.[_0x55bf25(0xe0)]){const _0x2d894c=typeof _0x4318a1['wildcardDef'][_0x55bf25(0xe0)]===_0x55bf25(0xc5)?_0x4318a1['wildcardDef'][_0x55bf25(0xe0)]():_0x4318a1[_0x55bf25(0xcd)][_0x55bf25(0xe0)];for(const _0x12e3f5 of _0x2d894c[_0x55bf25(0xba)]('\x0a')){_0xc622cf['push']('\x20\x20'+_0x12e3f5);}}_0xc622cf['push']('');}return _0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb2)+CLI_BIN_NAME+_0x55bf25(0xd9)),_0xc622cf['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x55bf25(0xcc)),_0xc622cf['push'](''),_0xc622cf[_0x55bf25(0xdf)]('\x0a');}function getCommandFlags(_0x32563d,_0x29f7f2,_0x5333b4){const _0x5b1caa=a120_0x1bba4c;if(_0x5333b4){const _0x503de1=_0x5333b4['find'](_0x2752a6=>_0x2752a6[_0x5b1caa(0xaa)]===_0x29f7f2);if(_0x503de1)return buildAllFlags(_0x503de1);}return[];}function renderFlagDesc(_0x4f7a68){const _0x58c493=a120_0x1bba4c;let _0x4b625f=_0x4f7a68[_0x58c493(0xbc)];return _0x4f7a68[_0x58c493(0xc6)]&&_0x4f7a68[_0x58c493(0xc6)]['length']>0x0&&(_0x4b625f+='\x20('+_0x4f7a68[_0x58c493(0xc6)][_0x58c493(0xdf)](_0x58c493(0xd1))+')'),_0x4f7a68[_0x58c493(0xac)]!==undefined&&_0x4f7a68[_0x58c493(0xac)]!==''&&_0x4f7a68[_0x58c493(0xac)]!==![]&&(_0x4b625f+='\x20[default:\x20'+_0x4f7a68[_0x58c493(0xac)]+']'),_0x4f7a68[_0x58c493(0xc9)]&&!_0x4b625f['includes'](_0x58c493(0xdb))&&(_0x4b625f+='\x20(required)'),_0x4b625f;}function formatFlagName(_0xfe4312){const _0x32b372=a120_0x1bba4c,_0xc15e29=_0xfe4312[_0x32b372(0xcf)]===_0x32b372(0xb4)?'':_0xfe4312['type']===_0x32b372(0xa5)?_0x32b372(0xb5):_0x32b372(0xda);return'--'+_0xfe4312['name']+_0xc15e29;}
1
+ const a120_0x37c836=a120_0x331e;(function(_0xe9df7a,_0x5ce7da){const _0x64dbe7=a120_0x331e,_0x376e36=_0xe9df7a();while(!![]){try{const _0x2dadb8=parseInt(_0x64dbe7(0xe6))/0x1+-parseInt(_0x64dbe7(0xbd))/0x2*(parseInt(_0x64dbe7(0xd3))/0x3)+-parseInt(_0x64dbe7(0xe4))/0x4+-parseInt(_0x64dbe7(0xeb))/0x5*(parseInt(_0x64dbe7(0xdb))/0x6)+-parseInt(_0x64dbe7(0xe1))/0x7*(-parseInt(_0x64dbe7(0xc3))/0x8)+-parseInt(_0x64dbe7(0xb6))/0x9*(-parseInt(_0x64dbe7(0xba))/0xa)+parseInt(_0x64dbe7(0xec))/0xb;if(_0x2dadb8===_0x5ce7da)break;else _0x376e36['push'](_0x376e36['shift']());}catch(_0x16abfa){_0x376e36['push'](_0x376e36['shift']());}}}(a120_0x1a74,0xe5001));import{buildAllFlags}from'../framework/build-all-flags.js';function a120_0x331e(_0x33e91e,_0x5dada8){_0x33e91e=_0x33e91e-0xb6;const _0x1a7432=a120_0x1a74();let _0x331ed7=_0x1a7432[_0x33e91e];return _0x331ed7;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a120_0x37c836(0xfa),'high-risk-write':'\x20\x20[high-risk-write]'};export function generateCommandHelp(_0x53664b){const _0x34be15=a120_0x37c836,_0x328fd8=[],_0x1efa70=_0x53664b[_0x34be15(0xe3)]===_0x53664b[_0x34be15(0xbc)]?CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]:CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]+'\x20'+_0x53664b[_0x34be15(0xbc)],_0x16d81e=_0x53664b[_0x34be15(0xd7)]?_0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x170e82=>_0x170e82[_0x34be15(0xdc)]!==![]?'<'+_0x170e82['name']+'>':'['+_0x170e82[_0x34be15(0xcb)]+']')[_0x34be15(0xbb)]('\x20'):'',_0x45c0d4=_0x16d81e?_0x1efa70+'\x20'+_0x16d81e+_0x34be15(0xbe):_0x1efa70+_0x34be15(0xbe);_0x328fd8['push'](''),_0x328fd8['push']('\x20\x20'+_0x53664b['description']),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)](_0x34be15(0xf3)),_0x328fd8[_0x34be15(0xca)]('\x20\x20\x20\x20'+_0x45c0d4),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)]('\x20\x20RISK:\x20'+_0x53664b[_0x34be15(0xf1)]);_0x53664b[_0x34be15(0xf1)]===_0x34be15(0xe5)&&_0x328fd8['push'](_0x34be15(0xc4));_0x328fd8[_0x34be15(0xca)]('');if(_0x53664b[_0x34be15(0xd7)]&&_0x53664b['args'][_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xee));const _0x257036=Math['max'](..._0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x2c09fa=>_0x2c09fa[_0x34be15(0xcb)][_0x34be15(0xe2)]+0x2));for(const _0x3fc7eb of _0x53664b[_0x34be15(0xd7)]){const _0x20ff41=('<'+_0x3fc7eb['name']+'>')[_0x34be15(0xed)](_0x257036+0x2),_0x2ab7fa=_0x3fc7eb[_0x34be15(0xdc)]!==![]?_0x34be15(0xda):'';_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+_0x20ff41+_0x3fc7eb[_0x34be15(0xc2)]+_0x2ab7fa);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b[_0x34be15(0xef)][_0x34be15(0xe2)]>0x0||_0x53664b['dryRun']||_0x53664b[_0x34be15(0xce)]!==![]){_0x328fd8['push'](_0x34be15(0xd0));const _0x5c7182=buildAllFlags(_0x53664b),_0x341f15=Math['max'](..._0x5c7182[_0x34be15(0xb8)](_0x271f9e=>formatFlagName(_0x271f9e)[_0x34be15(0xe2)]));for(const _0x6e1cbf of _0x5c7182){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+formatFlagName(_0x6e1cbf)[_0x34be15(0xed)](_0x341f15+0x2)+renderFlagDesc(_0x6e1cbf));}_0x328fd8[_0x34be15(0xca)]('');}const _0x166386=[];_0x53664b[_0x34be15(0xcc)]!==![]&&_0x166386['push'](_0x34be15(0xf4)+CLI_BIN_NAME+_0x34be15(0xf9));_0x53664b[_0x34be15(0xbf)]!==![]&&_0x166386['push']('Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x34be15(0xd6));if(_0x166386[_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc5));for(const _0x32acae of _0x166386){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xdf)+_0x32acae);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b['helpExtra']){const _0x26c1fd=typeof _0x53664b[_0x34be15(0xf0)]===_0x34be15(0xd8)?_0x53664b[_0x34be15(0xf0)]():_0x53664b[_0x34be15(0xf0)];_0x328fd8[_0x34be15(0xca)](_0x26c1fd),_0x328fd8[_0x34be15(0xca)]('');}return _0x328fd8[_0x34be15(0xbb)]('\x0a');}export function generateServiceHelp(_0x115673){const _0x3f9ce1=a120_0x37c836,_0x1332c4=getServiceEntry(_0x115673);if(!_0x1332c4)return'\x20\x20Unknown\x20service:\x20'+_0x115673+'\x0a';const _0x315f75=[],_0x5b8f5b=serviceGroups['get'](_0x115673);_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20'+_0x1332c4['label']),_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['push'](_0x3f9ce1(0xf3)),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+CLI_BIN_NAME+'\x20'+_0x115673+_0x3f9ce1(0xf7)),_0x315f75['push'](''),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xd2));for(const _0xd30044 of _0x1332c4[_0x3f9ce1(0xe0)]){_0x315f75[_0x3f9ce1(0xca)]('');const _0x7965d2=_0xd30044[_0x3f9ce1(0xd5)]?'\x20\x20'+_0xd30044[_0x3f9ce1(0xd5)][_0x3f9ce1(0xcf)]():'';_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+_0xd30044[_0x3f9ce1(0xbc)]+_0x7965d2),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+_0xd30044[_0x3f9ce1(0xc2)]);const _0x440818=_0x5b8f5b?.[_0x3f9ce1(0xd4)](_0x4ee494=>_0x4ee494['command']===_0xd30044[_0x3f9ce1(0xbc)]);if(_0x440818?.[_0x3f9ce1(0xd7)]&&_0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xe2)]>0x0){_0x315f75['push'](_0x3f9ce1(0xf5));const _0x48eef3=Math[_0x3f9ce1(0xc9)](..._0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xb8)](_0x157ffe=>_0x157ffe['name'][_0x3f9ce1(0xe2)]+0x2));for(const _0x5c5526 of _0x440818[_0x3f9ce1(0xd7)]){const _0x59c9ba=('<'+_0x5c5526[_0x3f9ce1(0xcb)]+'>')['padEnd'](_0x48eef3+0x2),_0x5a974a=_0x5c5526['required']!==![]?_0x3f9ce1(0xda):'';_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20\x20\x20'+_0x59c9ba+_0x5c5526[_0x3f9ce1(0xc2)]+_0x5a974a);}}const _0x168f38=getCommandFlags(_0x115673,_0xd30044[_0x3f9ce1(0xbc)],_0x5b8f5b);if(_0x168f38[_0x3f9ce1(0xe2)]>0x0){const _0x44b7da=Math[_0x3f9ce1(0xc9)](..._0x168f38[_0x3f9ce1(0xb8)](_0x51db23=>formatFlagName(_0x51db23)['length']));for(const _0x152978 of _0x168f38){_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+formatFlagName(_0x152978)[_0x3f9ce1(0xed)](_0x44b7da+0x2)+renderFlagDesc(_0x152978));}}}return _0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['join']('\x0a');}export function generateFullHelp(){const _0x17dc30=a120_0x37c836,_0x3e2f34=[];_0x3e2f34['push'](''),_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+CLI_DISPLAY_NAME),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xf3)),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xea)+CLI_BIN_NAME+_0x17dc30(0xe9)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['push'](_0x17dc30(0xde));const _0x567baf=GLOBAL_FLAGS['filter'](_0x30f6da=>!_0x30f6da['hidden']),_0x41ae86=Math['max'](..._0x567baf[_0x17dc30(0xb8)](_0x3547f8=>{const _0x36086c=_0x17dc30,_0x2c5dbd=_0x3547f8[_0x36086c(0xf8)]?'\x20'+_0x3547f8[_0x36086c(0xf8)]:'';return('--'+_0x3547f8['name']+_0x2c5dbd)[_0x36086c(0xe2)];}));for(const _0x585c1e of _0x567baf){const _0x3124d6=_0x585c1e[_0x17dc30(0xf8)]?'\x20'+_0x585c1e[_0x17dc30(0xf8)]:'',_0x1f551e=('--'+_0x585c1e[_0x17dc30(0xcb)]+_0x3124d6)[_0x17dc30(0xed)](_0x41ae86+0x2);_0x3e2f34[_0x17dc30(0xca)]('\x20\x20\x20\x20'+_0x1f551e+_0x585c1e['description']);}_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xd2)),_0x3e2f34[_0x17dc30(0xca)]('');for(const _0x4e65a0 of serviceRegistry){_0x3e2f34['push']('\x20\x20'+_0x4e65a0[_0x17dc30(0xe7)]);if(_0x4e65a0[_0x17dc30(0xf2)]){const _0x1f401b=_0x4e65a0[_0x17dc30(0xe0)][0x0],_0x2614ed=_0x1f401b[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x4e65a0[_0x17dc30(0xe3)]['padEnd'](0x12)+_0x1f401b[_0x17dc30(0xc2)]+_0x2614ed);}else{const _0x446a35=_0x4e65a0[_0x17dc30(0xe0)][_0x17dc30(0xb8)](_0x422e07=>_0x4e65a0[_0x17dc30(0xe3)]+'\x20'+_0x422e07[_0x17dc30(0xbc)]),_0x3b396d=Math[_0x17dc30(0xc9)](..._0x446a35[_0x17dc30(0xb8)](_0xd356b9=>_0xd356b9[_0x17dc30(0xe2)]));for(let _0x40f160=0x0;_0x40f160<_0x4e65a0[_0x17dc30(0xe0)]['length'];_0x40f160++){const _0x1071c9=_0x4e65a0[_0x17dc30(0xe0)][_0x40f160],_0x1f289d=_0x1071c9[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x446a35[_0x40f160][_0x17dc30(0xed)](_0x3b396d+0x2)+_0x1071c9['description']+_0x1f289d);}}if(_0x4e65a0[_0x17dc30(0xc1)]?.[_0x17dc30(0xf0)]){const _0x4ff83f=typeof _0x4e65a0['wildcardDef'][_0x17dc30(0xf0)]===_0x17dc30(0xd8)?_0x4e65a0[_0x17dc30(0xc1)]['helpExtra']():_0x4e65a0[_0x17dc30(0xc1)][_0x17dc30(0xf0)];for(const _0x4ffcf0 of _0x4ff83f['split']('\x0a')){_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+_0x4ffcf0);}}_0x3e2f34[_0x17dc30(0xca)]('');}return _0x3e2f34[_0x17dc30(0xca)]('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20<service>\x20--help`\x20for\x20service\x20commands.'),_0x3e2f34['push'](_0x17dc30(0xf6)+CLI_BIN_NAME+_0x17dc30(0xe8)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['join']('\x0a');}function getCommandFlags(_0x534ebf,_0x13631a,_0x1ea1b4){const _0x49ebfa=a120_0x37c836;if(_0x1ea1b4){const _0x231d3d=_0x1ea1b4['find'](_0x107754=>_0x107754[_0x49ebfa(0xbc)]===_0x13631a);if(_0x231d3d)return buildAllFlags(_0x231d3d);}return[];}function renderFlagDesc(_0x296aa4){const _0x4556c4=a120_0x37c836;let _0xab21d3=_0x296aa4[_0x4556c4(0xc2)];return _0x296aa4['enum']&&_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xe2)]>0x0&&(_0xab21d3+='\x20('+_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xbb)](_0x4556c4(0xcd))+')'),_0x296aa4[_0x4556c4(0xd1)]!==undefined&&_0x296aa4['default']!==''&&_0x296aa4[_0x4556c4(0xd1)]!==![]&&(_0xab21d3+=_0x4556c4(0xc0)+_0x296aa4[_0x4556c4(0xd1)]+']'),_0x296aa4[_0x4556c4(0xdc)]&&!_0xab21d3[_0x4556c4(0xc7)](_0x4556c4(0xdd))&&(_0xab21d3+=_0x4556c4(0xda)),_0xab21d3;}function formatFlagName(_0x3ae481){const _0x2b6a42=a120_0x37c836,_0x5dc724=_0x3ae481[_0x2b6a42(0xc8)]==='boolean'?'':_0x3ae481[_0x2b6a42(0xc8)]==='number'?_0x2b6a42(0xb7):_0x2b6a42(0xb9);return'--'+_0x3ae481[_0x2b6a42(0xcb)]+_0x5dc724;}function a120_0x1a74(){const _0x5a103c=['\x20[default:\x20','wildcardDef','description','32aLLqql','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20PREREQUISITES','\x20\x20\x20\x20','includes','type','max','push','name','requiresAuth','\x20|\x20','hasFormat','trim','\x20\x20FLAGS','default','\x20\x20COMMANDS','7164WFapMX','find','tag','\x20project\x20init`\x20or\x20--appcode).','args','function','enum','\x20(required)','5155998JpHDgZ','required','(required)','\x20\x20GLOBAL\x20OPTIONS','\x20\x20\x20\x20•\x20','commands','2144261OMpLoa','length','service','4549540fekEbT','high-risk-write','330193VaQZkP','label','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','\x20[global-options]\x20<service>\x20<command>\x20[flags]','\x20\x20\x20\x20$\x20','5dZvgLd','15760888VfttZT','padEnd','\x20\x20ARGS','flags','helpExtra','risk','isSingleCommand','\x20\x20USAGE','Requires\x20authentication\x20(run\x20`','\x20\x20\x20\x20\x20\x20ARGS','\x20\x20Run\x20`','\x20<command>\x20[args]\x20[flags]','hint','\x20auth`\x20first).','\x20\x20[write]','6485841Jwlhwj','\x20<n>','map','\x20<value>','20dQgLwP','join','command','1252FwWYES','\x20[flags]','requiresAppCode'];a120_0x1a74=function(){return _0x5a103c;};return a120_0x1a74();}
@@ -1 +1 @@
1
- (function(_0x46811e,_0x550a8a){var _0xa67bd0=a121_0xb27b,_0x23bab0=_0x46811e();while(!![]){try{var _0xfcc2d7=parseInt(_0xa67bd0(0x12d))/0x1+-parseInt(_0xa67bd0(0x12e))/0x2+-parseInt(_0xa67bd0(0x131))/0x3+-parseInt(_0xa67bd0(0x12a))/0x4+parseInt(_0xa67bd0(0x129))/0x5*(parseInt(_0xa67bd0(0x12b))/0x6)+-parseInt(_0xa67bd0(0x12c))/0x7*(parseInt(_0xa67bd0(0x12f))/0x8)+-parseInt(_0xa67bd0(0x130))/0x9*(-parseInt(_0xa67bd0(0x128))/0xa);if(_0xfcc2d7===_0x550a8a)break;else _0x23bab0['push'](_0x23bab0['shift']());}catch(_0x29382f){_0x23bab0['push'](_0x23bab0['shift']());}}}(a121_0x3fc0,0x9a3bd));function a121_0x3fc0(){var _0x4fec89=['3392367MNwOwa','200810rCCkvB','270imDVwi','4036920aLjBzy','86706DapkMR','4102PuzWrY','768162REOZQV','1507998ruvsgQ','17144TDuwYL','1449HhhuxW'];a121_0x3fc0=function(){return _0x4fec89;};return a121_0x3fc0();}export{runCommand}from'../framework/runner.js';function a121_0xb27b(_0x7fcdef,_0x51010c){_0x7fcdef=_0x7fcdef-0x128;var _0x3fc09e=a121_0x3fc0();var _0xb27bcf=_0x3fc09e[_0x7fcdef];return _0xb27bcf;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x372f20,_0x815e21){var _0x5de4ba=a121_0x59d7,_0x2f062f=_0x372f20();while(!![]){try{var _0x44d5d4=-parseInt(_0x5de4ba(0x1d6))/0x1+parseInt(_0x5de4ba(0x1db))/0x2+-parseInt(_0x5de4ba(0x1dc))/0x3+parseInt(_0x5de4ba(0x1d7))/0x4*(-parseInt(_0x5de4ba(0x1de))/0x5)+-parseInt(_0x5de4ba(0x1d8))/0x6*(-parseInt(_0x5de4ba(0x1dd))/0x7)+-parseInt(_0x5de4ba(0x1da))/0x8+parseInt(_0x5de4ba(0x1d9))/0x9;if(_0x44d5d4===_0x815e21)break;else _0x2f062f['push'](_0x2f062f['shift']());}catch(_0x4716ae){_0x2f062f['push'](_0x2f062f['shift']());}}}(a121_0x1943,0xa060f));function a121_0x1943(){var _0x5a7473=['1768938aodusX','1950618RgGOdf','127015xHIXKX','685SyKmzK','1179699RQuXbT','852OcGLUD','90Wlpkjs','20658465FjwJDg','7488256diSctC'];a121_0x1943=function(){return _0x5a7473;};return a121_0x1943();}export{runCommand}from'../framework/runner.js';function a121_0x59d7(_0x3a7979,_0x450d31){_0x3a7979=_0x3a7979-0x1d6;var _0x1943b9=a121_0x1943();var _0x59d781=_0x1943b9[_0x3a7979];return _0x59d781;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a122_0x3105(_0x3c3ff8,_0x1930b6){_0x3c3ff8=_0x3c3ff8-0x17b;const _0x2f7b13=a122_0x2f7b();let _0x310572=_0x2f7b13[_0x3c3ff8];return _0x310572;}(function(_0x5cca0d,_0x483b8b){const _0x32c6ab=a122_0x3105,_0x52d50b=_0x5cca0d();while(!![]){try{const _0x33cd5e=-parseInt(_0x32c6ab(0x18c))/0x1*(parseInt(_0x32c6ab(0x18a))/0x2)+parseInt(_0x32c6ab(0x1a6))/0x3+parseInt(_0x32c6ab(0x198))/0x4+parseInt(_0x32c6ab(0x184))/0x5+-parseInt(_0x32c6ab(0x1a4))/0x6*(-parseInt(_0x32c6ab(0x195))/0x7)+parseInt(_0x32c6ab(0x190))/0x8*(-parseInt(_0x32c6ab(0x1ab))/0x9)+parseInt(_0x32c6ab(0x194))/0xa;if(_0x33cd5e===_0x483b8b)break;else _0x52d50b['push'](_0x52d50b['shift']());}catch(_0xb81695){_0x52d50b['push'](_0x52d50b['shift']());}}}(a122_0x2f7b,0x1c205));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x294861,_0xe6a2da){const _0x20f786=a122_0x3105,{format:_0x30614e}=_0xe6a2da;switch(_0x30614e){case'json':printJson(_0x294861,_0xe6a2da);break;case'compress':printCompress(_0x294861,_0xe6a2da);break;case _0x20f786(0x1a7):default:printPretty(_0x294861,_0xe6a2da);break;}}function buildEnvelope(_0x4ab28b,_0x2efda6){const _0x435ea3=a122_0x3105,_0x570854={'ok':_0x4ab28b['ok'],'command':_0x2efda6[_0x435ea3(0x19e)],'risk':_0x2efda6[_0x435ea3(0x18d)]};if(_0x2efda6['dryRun'])_0x570854[_0x435ea3(0x17e)]=!![];if(_0x4ab28b[_0x435ea3(0x19d)]!==undefined)_0x570854[_0x435ea3(0x19d)]=_0x4ab28b[_0x435ea3(0x19d)];return!_0x4ab28b['ok']&&_0x4ab28b[_0x435ea3(0x180)]&&(_0x570854[_0x435ea3(0x17d)]={'code':_0x435ea3(0x192),'message':_0x4ab28b[_0x435ea3(0x180)]}),_0x570854;}function printJson(_0x1d409f,_0xa71f97){const _0x36e452=buildEnvelope(_0x1d409f,_0xa71f97),_0x3fbde9=JSON['stringify'](_0x36e452,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0x3fbde9,_0xa71f97);}function a122_0x2f7b(){const _0x49be82=['error','dryRun','trim','message','\x20\x20Config:\x20\x20\x20','items','write','70980byxavL','map','stdout','project','meta','isArray','207722qSZpyT','Error:\x20','1LftTQQ','risk','object','(empty)','8PTCkoN','jqFilter','command_error','log','1467680EgkSZj','777bfWBkO','projectPath','stringify','387704yfVTJa','\x20(default\x20from\x20global\x20file)','\x20\x20Scope:\x20\x20\x20\x20','padEnd','scope','data','command','defaultApp','endsWith','keys','Found\x20','configPath','678lgRVGJ','filter','506040dWmJxK','pretty','length','\x20\x20Default\x20app:\x20\x20\x20\x20\x20','entries','1980423iNcszL','\x20(default\x20from\x20project\x20file)','max','(none)'];a122_0x2f7b=function(){return _0x49be82;};return a122_0x2f7b();}function printCompress(_0x404305,_0x4de794){const _0xd47ad0=buildEnvelope(_0x404305,_0x4de794),_0x47c174=JSON['stringify'](_0xd47ad0)+'\x0a';writeJsonWithOptionalJq(_0x47c174,_0x4de794);}function writeJsonWithOptionalJq(_0x5628d9,_0x5c42f2){const _0x141fb1=a122_0x3105,_0x4395b7=_0x5c42f2[_0x141fb1(0x191)]?.[_0x141fb1(0x17f)]();if(!_0x4395b7){process[_0x141fb1(0x186)]['write'](_0x5628d9);return;}const _0x1bb7b6=applyJqFilter(_0x5628d9,_0x4395b7);process[_0x141fb1(0x186)][_0x141fb1(0x183)](_0x1bb7b6[_0x141fb1(0x1a0)]('\x0a')?_0x1bb7b6:_0x1bb7b6+'\x0a');}function isListWithMetaData(_0x3cfe0d){const _0x2109f9=a122_0x3105;return typeof _0x3cfe0d==='object'&&_0x3cfe0d!==null&&_0x2109f9(0x182)in _0x3cfe0d&&Array[_0x2109f9(0x189)](_0x3cfe0d['items'])&&_0x2109f9(0x188)in _0x3cfe0d&&typeof _0x3cfe0d[_0x2109f9(0x188)]===_0x2109f9(0x18e)&&_0x3cfe0d['meta']!==null;}function printAppListMeta(_0x163426){const _0x59e54=a122_0x3105;if(_0x163426[_0x59e54(0x19c)]){const _0x118113=_0x163426[_0x59e54(0x1a3)]!=null?String(_0x163426[_0x59e54(0x1a3)]):'(none)';console[_0x59e54(0x193)](_0x59e54(0x19a)+String(_0x163426[_0x59e54(0x19c)])),console[_0x59e54(0x193)](_0x59e54(0x181)+_0x118113),console['log']();return;}const _0x421314=_0x163426['globalPath']!=null?String(_0x163426['globalPath']):_0x59e54(0x17c),_0x7bddf8=_0x163426[_0x59e54(0x196)]!=null?String(_0x163426[_0x59e54(0x196)]):_0x59e54(0x17c),_0x230bec=_0x163426[_0x59e54(0x19f)]!=null?String(_0x163426['defaultApp']):_0x59e54(0x17c),_0x46913d=_0x163426['defaultAppSource'],_0x3bccf3=_0x46913d===_0x59e54(0x187)?_0x59e54(0x1ac):_0x46913d==='global'?_0x59e54(0x199):'';console[_0x59e54(0x193)]('\x20\x20Global\x20config:\x20\x20\x20'+_0x421314),console['log']('\x20\x20Project\x20config:\x20\x20'+_0x7bddf8),console[_0x59e54(0x193)](_0x59e54(0x1a9)+_0x230bec+_0x3bccf3),console[_0x59e54(0x193)]();}function printPretty(_0x1e997e,_0xce6c72){const _0x4fd911=a122_0x3105;if(_0xce6c72[_0x4fd911(0x17e)]){console[_0x4fd911(0x193)]('[dry-run]\x20Would\x20execute:'),console[_0x4fd911(0x193)](JSON[_0x4fd911(0x197)](_0x1e997e[_0x4fd911(0x19d)],null,0x2));return;}if(!_0x1e997e['ok']){console[_0x4fd911(0x17d)](_0x4fd911(0x18b)+(_0x1e997e[_0x4fd911(0x180)]??'Unknown\x20error'));return;}const _0x2de108=_0x1e997e[_0x4fd911(0x19d)];if(_0x2de108===undefined||_0x2de108===null){if(_0x1e997e[_0x4fd911(0x180)])console[_0x4fd911(0x193)](_0x1e997e['message']);return;}if(isListWithMetaData(_0x2de108)){printAppListMeta(_0x2de108[_0x4fd911(0x188)]),printArrayPretty(_0x2de108[_0x4fd911(0x182)]);return;}if(Array[_0x4fd911(0x189)](_0x2de108)){printArrayPretty(_0x2de108);return;}if(typeof _0x2de108==='object'){printObjectPretty(_0x2de108);return;}console[_0x4fd911(0x193)](String(_0x2de108));}function printObjectPretty(_0x4eaaaa){const _0x4bfec9=a122_0x3105,_0x25c58d=Math[_0x4bfec9(0x17b)](...Object[_0x4bfec9(0x1a1)](_0x4eaaaa)[_0x4bfec9(0x185)](_0x5a8442=>_0x5a8442[_0x4bfec9(0x1a8)]),0x0);for(const [_0x57bee6,_0x44fe28]of Object[_0x4bfec9(0x1aa)](_0x4eaaaa)){if(_0x44fe28===undefined||_0x44fe28===null)continue;const _0x297a00=_0x57bee6[_0x4bfec9(0x19b)](_0x25c58d);typeof _0x44fe28===_0x4bfec9(0x18e)?console[_0x4bfec9(0x193)](_0x297a00+'\x20\x20'+JSON[_0x4bfec9(0x197)](_0x44fe28)):console[_0x4bfec9(0x193)](_0x297a00+'\x20\x20'+_0x44fe28);}}function printArrayPretty(_0x189526){const _0x31d341=a122_0x3105;if(_0x189526[_0x31d341(0x1a8)]===0x0){console[_0x31d341(0x193)](_0x31d341(0x18f));return;}console['log'](_0x31d341(0x1a2)+_0x189526[_0x31d341(0x1a8)]+'\x20items:\x0a');for(const _0x3d2326 of _0x189526){if(typeof _0x3d2326==='object'&&_0x3d2326!==null){const _0x58369f=Object[_0x31d341(0x1aa)](_0x3d2326)[_0x31d341(0x1a5)](([,_0x1563b0])=>_0x1563b0!=null&&_0x1563b0!=='');if(_0x58369f[_0x31d341(0x1a8)]===0x0)continue;const _0x19e605=Math[_0x31d341(0x17b)](..._0x58369f[_0x31d341(0x185)](([_0x40deb6])=>_0x40deb6[_0x31d341(0x1a8)]));for(const [_0x46f8d7,_0x5438ee]of _0x58369f){const _0x3d099d=typeof _0x5438ee===_0x31d341(0x18e)?JSON[_0x31d341(0x197)](_0x5438ee):String(_0x5438ee);console[_0x31d341(0x193)]('\x20\x20'+_0x46f8d7[_0x31d341(0x19b)](_0x19e605)+'\x20\x20'+_0x3d099d);}console[_0x31d341(0x193)]('');}else console['log']('\x20\x20'+_0x3d2326);}}
1
+ (function(_0x40c46f,_0x2fc4c4){const _0x4723fa=a122_0x1078,_0x4cc0b4=_0x40c46f();while(!![]){try{const _0x13ec57=-parseInt(_0x4723fa(0x14c))/0x1*(-parseInt(_0x4723fa(0x148))/0x2)+parseInt(_0x4723fa(0x152))/0x3+-parseInt(_0x4723fa(0x151))/0x4*(-parseInt(_0x4723fa(0x12f))/0x5)+-parseInt(_0x4723fa(0x13f))/0x6+parseInt(_0x4723fa(0x12e))/0x7+-parseInt(_0x4723fa(0x149))/0x8*(-parseInt(_0x4723fa(0x146))/0x9)+parseInt(_0x4723fa(0x142))/0xa*(-parseInt(_0x4723fa(0x120))/0xb);if(_0x13ec57===_0x2fc4c4)break;else _0x4cc0b4['push'](_0x4cc0b4['shift']());}catch(_0x1cf582){_0x4cc0b4['push'](_0x4cc0b4['shift']());}}}(a122_0x43a9,0x75679));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x124429,_0x41b496){const _0x301cd1=a122_0x1078,{format:_0x26002a}=_0x41b496;switch(_0x26002a){case _0x301cd1(0x12d):printJson(_0x124429,_0x41b496);break;case _0x301cd1(0x154):printCompress(_0x124429,_0x41b496);break;case'pretty':default:printPretty(_0x124429,_0x41b496);break;}}function buildEnvelope(_0x4764f8,_0x408655){const _0x3bddd7=a122_0x1078,_0x335c0a={'ok':_0x4764f8['ok'],'command':_0x408655[_0x3bddd7(0x140)],'risk':_0x408655[_0x3bddd7(0x127)]};if(_0x408655[_0x3bddd7(0x131)])_0x335c0a[_0x3bddd7(0x131)]=!![];if(_0x4764f8['data']!==undefined)_0x335c0a[_0x3bddd7(0x147)]=_0x4764f8['data'];return!_0x4764f8['ok']&&_0x4764f8[_0x3bddd7(0x143)]&&(_0x335c0a[_0x3bddd7(0x13a)]={'code':_0x3bddd7(0x13e),'message':_0x4764f8[_0x3bddd7(0x143)]}),_0x335c0a;}function printJson(_0x3e43da,_0x4e368f){const _0x40e127=buildEnvelope(_0x3e43da,_0x4e368f),_0xf9fc00=JSON['stringify'](_0x40e127,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0xf9fc00,_0x4e368f);}function printCompress(_0x4fd201,_0x5cfa82){const _0x28fa80=a122_0x1078,_0x29336d=buildEnvelope(_0x4fd201,_0x5cfa82),_0x399af1=JSON[_0x28fa80(0x153)](_0x29336d)+'\x0a';writeJsonWithOptionalJq(_0x399af1,_0x5cfa82);}function writeJsonWithOptionalJq(_0xf3cf4a,_0x34c116){const _0x55af24=a122_0x1078,_0xf95285=_0x34c116['jqFilter']?.[_0x55af24(0x126)]();if(!_0xf95285){process[_0x55af24(0x129)][_0x55af24(0x123)](_0xf3cf4a);return;}const _0x51aed3=applyJqFilter(_0xf3cf4a,_0xf95285);process[_0x55af24(0x129)][_0x55af24(0x123)](_0x51aed3['endsWith']('\x0a')?_0x51aed3:_0x51aed3+'\x0a');}function isListWithMetaData(_0xa13676){const _0x173041=a122_0x1078;return typeof _0xa13676===_0x173041(0x135)&&_0xa13676!==null&&'items'in _0xa13676&&Array[_0x173041(0x124)](_0xa13676[_0x173041(0x144)])&&_0x173041(0x13c)in _0xa13676&&typeof _0xa13676[_0x173041(0x13c)]===_0x173041(0x135)&&_0xa13676[_0x173041(0x13c)]!==null;}function a122_0x1078(_0x242a0a,_0x5eb2ec){_0x242a0a=_0x242a0a-0x11e;const _0x43a9af=a122_0x43a9();let _0x1078f6=_0x43a9af[_0x242a0a];return _0x1078f6;}function printAppListMeta(_0x5c80fc){const _0x4a5aa2=a122_0x1078;if(_0x5c80fc[_0x4a5aa2(0x11e)]){const _0x426ee5=_0x5c80fc[_0x4a5aa2(0x132)]!=null?String(_0x5c80fc['configPath']):_0x4a5aa2(0x12a);console[_0x4a5aa2(0x145)](_0x4a5aa2(0x130)+String(_0x5c80fc[_0x4a5aa2(0x11e)])),console['log']('\x20\x20Config:\x20\x20\x20'+_0x426ee5),console['log']();return;}const _0x24da86=_0x5c80fc[_0x4a5aa2(0x121)]!=null?String(_0x5c80fc[_0x4a5aa2(0x121)]):_0x4a5aa2(0x12a),_0x370ffc=_0x5c80fc[_0x4a5aa2(0x139)]!=null?String(_0x5c80fc[_0x4a5aa2(0x139)]):_0x4a5aa2(0x12a),_0x2215cf=_0x5c80fc[_0x4a5aa2(0x122)]!=null?String(_0x5c80fc[_0x4a5aa2(0x122)]):'(none)',_0x38ca60=_0x5c80fc[_0x4a5aa2(0x14f)],_0x56e144=_0x38ca60===_0x4a5aa2(0x128)?_0x4a5aa2(0x138):_0x38ca60===_0x4a5aa2(0x12c)?_0x4a5aa2(0x14a):'';console['log'](_0x4a5aa2(0x137)+_0x24da86),console['log']('\x20\x20Project\x20config:\x20\x20'+_0x370ffc),console[_0x4a5aa2(0x145)](_0x4a5aa2(0x125)+_0x2215cf+_0x56e144),console[_0x4a5aa2(0x145)]();}function a122_0x43a9(){const _0x4dc346=['\x20\x20Default\x20app:\x20\x20\x20\x20\x20','trim','risk','project','stdout','(none)','\x20items:\x0a','global','json','382466OiqxiP','319645RUuOoz','\x20\x20Scope:\x20\x20\x20\x20','dryRun','configPath','(empty)','entries','object','length','\x20\x20Global\x20config:\x20\x20\x20','\x20(default\x20from\x20project\x20file)','projectPath','error','map','meta','padEnd','command_error','2233092eTigVn','command','keys','9102110kypojX','message','items','log','2993211VLXBNb','data','4eXriWJ','8ZilczN','\x20(default\x20from\x20global\x20file)','[dry-run]\x20Would\x20execute:','28617QfkNYi','max','Error:\x20','defaultAppSource','Unknown\x20error','40eXDliU','2038623xhhrTw','stringify','compress','scope','filter','11sfyZuh','globalPath','defaultApp','write','isArray'];a122_0x43a9=function(){return _0x4dc346;};return a122_0x43a9();}function printPretty(_0x4dde0e,_0xc05fc4){const _0x2b9992=a122_0x1078;if(_0xc05fc4['dryRun']){console['log'](_0x2b9992(0x14b)),console[_0x2b9992(0x145)](JSON[_0x2b9992(0x153)](_0x4dde0e[_0x2b9992(0x147)],null,0x2));return;}if(!_0x4dde0e['ok']){console[_0x2b9992(0x13a)](_0x2b9992(0x14e)+(_0x4dde0e['message']??_0x2b9992(0x150)));return;}const _0x5404d1=_0x4dde0e[_0x2b9992(0x147)];if(_0x5404d1===undefined||_0x5404d1===null){if(_0x4dde0e['message'])console[_0x2b9992(0x145)](_0x4dde0e[_0x2b9992(0x143)]);return;}if(isListWithMetaData(_0x5404d1)){printAppListMeta(_0x5404d1[_0x2b9992(0x13c)]),printArrayPretty(_0x5404d1[_0x2b9992(0x144)]);return;}if(Array['isArray'](_0x5404d1)){printArrayPretty(_0x5404d1);return;}if(typeof _0x5404d1===_0x2b9992(0x135)){printObjectPretty(_0x5404d1);return;}console[_0x2b9992(0x145)](String(_0x5404d1));}function printObjectPretty(_0x3fdcb3){const _0x1148fe=a122_0x1078,_0x25025f=Math['max'](...Object[_0x1148fe(0x141)](_0x3fdcb3)[_0x1148fe(0x13b)](_0x173ab2=>_0x173ab2['length']),0x0);for(const [_0x42d933,_0x225b00]of Object[_0x1148fe(0x134)](_0x3fdcb3)){if(_0x225b00===undefined||_0x225b00===null)continue;const _0x4a2b06=_0x42d933[_0x1148fe(0x13d)](_0x25025f);typeof _0x225b00===_0x1148fe(0x135)?console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+JSON[_0x1148fe(0x153)](_0x225b00)):console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+_0x225b00);}}function printArrayPretty(_0x33234f){const _0x136e91=a122_0x1078;if(_0x33234f[_0x136e91(0x136)]===0x0){console[_0x136e91(0x145)](_0x136e91(0x133));return;}console[_0x136e91(0x145)]('Found\x20'+_0x33234f[_0x136e91(0x136)]+_0x136e91(0x12b));for(const _0x38827d of _0x33234f){if(typeof _0x38827d===_0x136e91(0x135)&&_0x38827d!==null){const _0x378c61=Object['entries'](_0x38827d)[_0x136e91(0x11f)](([,_0xf8adc1])=>_0xf8adc1!=null&&_0xf8adc1!=='');if(_0x378c61[_0x136e91(0x136)]===0x0)continue;const _0x7bc2be=Math[_0x136e91(0x14d)](..._0x378c61[_0x136e91(0x13b)](([_0x1cac99])=>_0x1cac99[_0x136e91(0x136)]));for(const [_0x1b618c,_0x182bcc]of _0x378c61){const _0x5364b5=typeof _0x182bcc==='object'?JSON['stringify'](_0x182bcc):String(_0x182bcc);console[_0x136e91(0x145)]('\x20\x20'+_0x1b618c[_0x136e91(0x13d)](_0x7bc2be)+'\x20\x20'+_0x5364b5);}console[_0x136e91(0x145)]('');}else console[_0x136e91(0x145)]('\x20\x20'+_0x38827d);}}
@@ -1 +1 @@
1
- (function(_0x4bca52,_0x5f5864){var _0x348e38=a123_0x407d,_0x403ab2=_0x4bca52();while(!![]){try{var _0x1da214=parseInt(_0x348e38(0x129))/0x1+-parseInt(_0x348e38(0x12d))/0x2*(parseInt(_0x348e38(0x124))/0x3)+-parseInt(_0x348e38(0x127))/0x4+parseInt(_0x348e38(0x126))/0x5+-parseInt(_0x348e38(0x123))/0x6*(-parseInt(_0x348e38(0x12f))/0x7)+parseInt(_0x348e38(0x125))/0x8+-parseInt(_0x348e38(0x12c))/0x9*(parseInt(_0x348e38(0x12b))/0xa);if(_0x1da214===_0x5f5864)break;else _0x403ab2['push'](_0x403ab2['shift']());}catch(_0x5d5d01){_0x403ab2['push'](_0x403ab2['shift']());}}}(a123_0x578b,0x8ff64));function a123_0x407d(_0x200372,_0x4a8db4){_0x200372=_0x200372-0x123;var _0x578ba7=a123_0x578b();var _0x407de7=_0x578ba7[_0x200372];return _0x407de7;}export function extractList(_0x2910f3){var _0x993096=a123_0x407d;if(Array[_0x993096(0x12e)](_0x2910f3))return _0x2910f3;if(_0x2910f3&&typeof _0x2910f3===_0x993096(0x12a))return _0x2910f3[_0x993096(0x128)]??[];return[];}function a123_0x578b(){var _0x648c4=['tableData','779659aMVTtB','object','7330ZXCQfH','8235WzCxIy','14airsMa','isArray','7ClGeFG','4921758AvcgYG','186543UjPjsg','4350736hKIlId','1449635isSDcE','2952364GGfMPl'];a123_0x578b=function(){return _0x648c4;};return a123_0x578b();}export function extractPaging(_0x23517c){var _0x28835b=a123_0x407d;if(_0x23517c&&typeof _0x23517c===_0x28835b(0x12a)&&!Array[_0x28835b(0x12e)](_0x23517c))return _0x23517c['paging'];return undefined;}
1
+ (function(_0xd6bfb3,_0x1b7781){var _0x4b3365=a123_0x42ad,_0x552917=_0xd6bfb3();while(!![]){try{var _0x2c773f=-parseInt(_0x4b3365(0x1e0))/0x1+parseInt(_0x4b3365(0x1dd))/0x2+-parseInt(_0x4b3365(0x1d9))/0x3*(parseInt(_0x4b3365(0x1df))/0x4)+parseInt(_0x4b3365(0x1da))/0x5*(-parseInt(_0x4b3365(0x1dc))/0x6)+parseInt(_0x4b3365(0x1de))/0x7+-parseInt(_0x4b3365(0x1d6))/0x8+parseInt(_0x4b3365(0x1db))/0x9;if(_0x2c773f===_0x1b7781)break;else _0x552917['push'](_0x552917['shift']());}catch(_0x1cb060){_0x552917['push'](_0x552917['shift']());}}}(a123_0x2454,0x5a585));function a123_0x42ad(_0x968ad6,_0x57ab98){_0x968ad6=_0x968ad6-0x1d6;var _0x24548d=a123_0x2454();var _0x42ad29=_0x24548d[_0x968ad6];return _0x42ad29;}export function extractList(_0x2ad875){var _0x53d8e7=a123_0x42ad;if(Array[_0x53d8e7(0x1e1)](_0x2ad875))return _0x2ad875;if(_0x2ad875&&typeof _0x2ad875===_0x53d8e7(0x1d8))return _0x2ad875[_0x53d8e7(0x1e2)]??[];return[];}export function extractPaging(_0x46167c){var _0x4ac2da=a123_0x42ad;if(_0x46167c&&typeof _0x46167c===_0x4ac2da(0x1d8)&&!Array['isArray'](_0x46167c))return _0x46167c[_0x4ac2da(0x1d7)];return undefined;}function a123_0x2454(){var _0x43cfe8=['4765GkEEKm','5990184MRqZPL','696umUCYA','729194srRITA','3088428SHzzPP','1319596HNdZtx','123349FPkrFO','isArray','tableData','4300224nmpOeN','paging','object','3Jhgkao'];a123_0x2454=function(){return _0x43cfe8;};return a123_0x2454();}
@@ -1 +1 @@
1
- function a124_0x4553(){const _0x4c8e67=['name','some','execute','command','44ffxoip','code','pagesize','`\x20requires\x20either\x20--code\x20or\x20--alias.','Available\x20aliases:\x20','High-risk\x20operation\x20`','hasFormat','type','alias','flags','createInterface','3863850UTSUnm','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','length','Unknown\x20alias\x20\x22','24Lwptoo','334817tHUJeJ','625890sBOERW','pretty','Operation\x20cancelled\x20by\x20user.','yes','resolveAppCode','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','close','toLowerCase','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','args','stdin','format','1434624FsJrCZ','161810ewenoD','157956rZfBKM','dry-run','selectedAppName','5972uiLHnW','stderr','resolveCookie','riskLevel','apiDir','defaultFormat','\x22.\x20','dryRun','resolveApiDomain','cancelled','apiDomain','isNonInteractive','`\x20has\x20risk\x20level\x20\x22','.\x20Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','node:readline','json','number','94vcjlKM','Set\x20appcode\x20via\x20`','compress','12zkjIba','No\x20api.ts\x20found\x20in\x20','defaultPageSize','high-risk-write','\x20api\x20pull`\x20first.','string','appCode','\x0a\x20\x20\x20Continue?\x20[y/N]\x20','defaultOutputFormat','cookie','⚠\x20\x20High-risk\x20operation:\x20','54FEmevj','risk','Command\x20`','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','defaultVerbose','requiresAuth','rawFlags','validation'];a124_0x4553=function(){return _0x4c8e67;};return a124_0x4553();}(function(_0x198522,_0x4bfe5b){const _0x1e6653=a124_0x230f,_0x22f660=_0x198522();while(!![]){try{const _0x36084f=-parseInt(_0x1e6653(0x1de))/0x1*(-parseInt(_0x1e6653(0x1f1))/0x2)+parseInt(_0x1e6653(0x1db))/0x3*(-parseInt(_0x1e6653(0x1bb))/0x4)+parseInt(_0x1e6653(0x1c6))/0x5+-parseInt(_0x1e6653(0x1f4))/0x6*(-parseInt(_0x1e6653(0x1cb))/0x7)+parseInt(_0x1e6653(0x1d9))/0x8+-parseInt(_0x1e6653(0x1ff))/0x9*(parseInt(_0x1e6653(0x1cc))/0xa)+parseInt(_0x1e6653(0x1da))/0xb*(parseInt(_0x1e6653(0x1ca))/0xc);if(_0x36084f===_0x4bfe5b)break;else _0x22f660['push'](_0x22f660['shift']());}catch(_0xe5f600){_0x22f660['push'](_0x22f660['shift']());}}}(a124_0x4553,0x626d6));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a124_0x230f(_0x1622d1,_0xd4ed9f){_0x1622d1=_0x1622d1-0x1b0;const _0x4553b6=a124_0x4553();let _0x230f4b=_0x4553b6[_0x1622d1];return _0x230f4b;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x517917,_0x5ecae2){const _0x2cd54a=a124_0x230f,_0x35addc=CLI_BIN_NAME+'\x20'+_0x517917[_0x2cd54a(0x1ed)]+'\x20'+_0x517917[_0x2cd54a(0x1ba)],_0x2790d9=parseFlags(_0x517917[_0x2cd54a(0x1c4)],_0x5ecae2[_0x2cd54a(0x1b5)]);validateFlags(_0x517917[_0x2cd54a(0x1c4)],_0x2790d9,_0x35addc);if(!_0x2790d9[_0x2cd54a(0x1dc)]&&_0x5ecae2[_0x2cd54a(0x1e1)]&&riskLevelOrder(_0x517917[_0x2cd54a(0x1b0)])>riskLevelOrder(_0x5ecae2[_0x2cd54a(0x1e1)])){if(_0x5ecae2[_0x2cd54a(0x1e9)])throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1b1)+_0x35addc+_0x2cd54a(0x1ea)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1d5)+_0x5ecae2[_0x2cd54a(0x1e1)]+'\x22.');throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1b1)+_0x35addc+_0x2cd54a(0x1ea)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1d5)+_0x5ecae2[_0x2cd54a(0x1e1)]+'\x22.\x0a'+(_0x2cd54a(0x1d1)+_0x517917[_0x2cd54a(0x1b0)]+_0x2cd54a(0x1b2)));}const _0x5b1f44=_0x5ecae2[_0x2cd54a(0x1e2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x517917,_0x2790d9,_0x5b1f44,_0x35addc);let _0x5cf4dc='';if(_0x517917[_0x2cd54a(0x1b4)]!==![]){_0x5cf4dc=_0x5ecae2[_0x2cd54a(0x1e0)]();if(!_0x5cf4dc)throw CliErrors['authRequired']();const {setActiveCookie:_0x21d453}=await import('../core/api-client.js');_0x21d453(_0x5cf4dc);}let _0x1f8db4='';if(_0x517917['requiresAppCode']!==![]){_0x1f8db4=_0x5ecae2[_0x2cd54a(0x1d0)]()??'';if(!_0x1f8db4)throw CliErrors['configMissing'](_0x2cd54a(0x1f2)+CLI_BIN_NAME+_0x2cd54a(0x1ec));}let _0x5ec0=resolveFormat(_0x2790d9,_0x517917,_0x5ecae2[_0x2cd54a(0x1e3)]);const _0x4a1ca5=resolveJqFilter(_0x2790d9);_0x4a1ca5&&_0x5ec0===_0x2cd54a(0x1cd)&&(_0x5ec0='json');if(_0x4a1ca5&&_0x5ec0!==_0x2cd54a(0x1ef)&&_0x5ec0!==_0x2cd54a(0x1f3))throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1d2)+_0x5ec0+').');const _0xd02a1b=buildRuntimeContext({'appCode':_0x1f8db4,'cookie':_0x5cf4dc,'apiDomain':_0x5ecae2[_0x2cd54a(0x1e6)](),'format':_0x5ec0,'jqFilter':_0x4a1ca5,'flags':_0x2790d9,'def':_0x517917,'nonInteractive':_0x5ecae2[_0x2cd54a(0x1e9)],'defaultPageSize':_0x5ecae2[_0x2cd54a(0x1f6)],'defaultVerbose':_0x5ecae2['defaultVerbose'],'apiDir':_0x5b1f44,'selectedAppName':_0x5ecae2[_0x2cd54a(0x1dd)],'args':_0x5ecae2[_0x2cd54a(0x1d6)]??[]});_0x517917['validate']&&await _0x517917['validate'](_0xd02a1b);if(_0x2790d9[_0x2cd54a(0x1dc)]){if(!_0x517917[_0x2cd54a(0x1e5)])throw CliErrors[_0x2cd54a(0x1b6)]('--dry-run\x20is\x20not\x20supported\x20for\x20`'+_0x35addc+'`.');const _0x57e7ba=await _0x517917[_0x2cd54a(0x1e5)](_0xd02a1b);formatOutput({'ok':!![],'data':_0x57e7ba},{'command':_0x35addc,'risk':_0x517917[_0x2cd54a(0x1b0)],'format':_0x5ec0,'dryRun':!![],'jqFilter':_0x4a1ca5});return;}if(_0x517917[_0x2cd54a(0x1b0)]===_0x2cd54a(0x1f7)&&!_0x2790d9['yes']){if(_0x5ecae2['isNonInteractive'])throw CliErrors[_0x2cd54a(0x1b6)](_0x2cd54a(0x1c0)+_0x35addc+_0x2cd54a(0x1c7));await requireConfirmation(_0x35addc);}const _0x2b0b19=await _0x517917[_0x2cd54a(0x1b9)](_0xd02a1b);formatOutput(_0x2b0b19,{'command':_0x35addc,'risk':_0x517917[_0x2cd54a(0x1b0)],'format':_0x5ec0,'jqFilter':_0x4a1ca5});}function buildRuntimeContext(_0xac3dd9){const _0x2d5c31=a124_0x230f,{flags:_0x101b9b,def:_0x4b4ce4}=_0xac3dd9,_0x2517a7=CLI_BIN_NAME+'\x20'+_0x4b4ce4[_0x2d5c31(0x1ed)]+'\x20'+_0x4b4ce4['command'];return{'appCode':_0xac3dd9[_0x2d5c31(0x1fa)],'cookie':_0xac3dd9[_0x2d5c31(0x1fd)],'apiDomain':_0xac3dd9[_0x2d5c31(0x1e8)],'format':_0xac3dd9[_0x2d5c31(0x1d8)],'nonInteractive':_0xac3dd9['nonInteractive'],'apiDir':_0xac3dd9[_0x2d5c31(0x1e2)],'selectedAppName':_0xac3dd9[_0x2d5c31(0x1dd)],'args':_0xac3dd9[_0x2d5c31(0x1d6)],'str'(_0x1f334d){return String(_0x101b9b[_0x1f334d]??'');},'bool'(_0x4ecaf4){const _0x2c7984=_0x2d5c31;if(_0x101b9b[_0x4ecaf4]===!![])return!![];if(_0x4ecaf4==='verbose'&&_0xac3dd9[_0x2c7984(0x1b3)])return!![];return![];},'num'(_0x32f467,_0x2d8721){const _0x55bca6=_0x2d5c31,_0x3e3c5e=_0x101b9b[_0x32f467];if(typeof _0x3e3c5e===_0x55bca6(0x1f0))return _0x3e3c5e;if(_0x32f467===_0x55bca6(0x1bd)&&_0xac3dd9[_0x55bca6(0x1f6)]!=null)return _0xac3dd9[_0x55bca6(0x1f6)];return _0x2d8721??0x0;},'flag'(_0x5f1607){return _0x101b9b[_0x5f1607];},'output'(_0x351824){const _0x133dad=_0x2d5c31;formatOutput(_0x351824,{'command':_0x2517a7,'risk':_0x4b4ce4[_0x133dad(0x1b0)],'format':_0xac3dd9[_0x133dad(0x1d8)],'jqFilter':_0xac3dd9['jqFilter']});}};}function resolveJqFilter(_0x32ab05){const _0x5159ed=_0x32ab05['jq'];if(_0x5159ed===undefined||_0x5159ed===null)return undefined;const _0x4cf2be=String(_0x5159ed)['trim']();return _0x4cf2be===''?undefined:_0x4cf2be;}function resolveFormat(_0x5bc22f,_0x18cf89,_0x39d504){const _0x6775e2=a124_0x230f;if(_0x18cf89[_0x6775e2(0x1c1)]===![])return _0x6775e2(0x1cd);const _0x3c9637=normalizeLegacyOutputFormat(_0x5bc22f[_0x6775e2(0x1d8)]);if(_0x3c9637)return _0x3c9637;const _0x2f3921=normalizeLegacyOutputFormat(_0x39d504);if(_0x2f3921)return _0x2f3921;const _0xfd1064=normalizeLegacyOutputFormat(_0x18cf89[_0x6775e2(0x1fc)]);if(_0xfd1064)return _0xfd1064;return'compress';}async function requireConfirmation(_0x156097){const _0x722164=a124_0x230f,_0x3fb362=await import(_0x722164(0x1ee)),_0xed7c73=_0x3fb362[_0x722164(0x1c5)]({'input':process[_0x722164(0x1d7)],'output':process[_0x722164(0x1df)]});return new Promise((_0x55f656,_0x29a080)=>{const _0x2dba90=_0x722164;_0xed7c73['question'](_0x2dba90(0x1fe)+_0x156097+_0x2dba90(0x1fb),_0x5db8df=>{const _0x484521=_0x2dba90;_0xed7c73[_0x484521(0x1d3)](),_0x5db8df[_0x484521(0x1d4)]()==='y'||_0x5db8df['toLowerCase']()===_0x484521(0x1cf)?_0x55f656():_0x29a080(CliErrors[_0x484521(0x1e7)](_0x484521(0x1ce)));});});}function resolveAliasToCode(_0x3b1f3f,_0x1a7040,_0x50a985,_0x25b23f){const _0x12c968=a124_0x230f,_0x108739=_0x3b1f3f['flags'][_0x12c968(0x1b8)](_0x355819=>_0x355819[_0x12c968(0x1b7)]==='code'&&_0x355819['type']===_0x12c968(0x1f9)),_0x4e3aeb=_0x3b1f3f[_0x12c968(0x1c4)][_0x12c968(0x1b8)](_0x2aeacb=>_0x2aeacb['name']===_0x12c968(0x1c3)&&_0x2aeacb[_0x12c968(0x1c2)]===_0x12c968(0x1f9));if(!_0x108739||!_0x4e3aeb)return;const _0x416fef=_0x1a7040[_0x12c968(0x1bc)]?String(_0x1a7040[_0x12c968(0x1bc)]):'',_0x2606f3=_0x1a7040[_0x12c968(0x1c3)]?String(_0x1a7040[_0x12c968(0x1c3)]):'';if(!_0x416fef&&!_0x2606f3)throw CliErrors[_0x12c968(0x1b6)]('`'+_0x25b23f+_0x12c968(0x1be));if(_0x2606f3&&!_0x416fef){const _0x3e74cd=resolveAlias(_0x50a985,_0x2606f3);if(!_0x3e74cd){const _0x19a575=listAliases(_0x50a985)['map'](_0x9cae6b=>_0x9cae6b['alias']),_0xaf00f1=_0x19a575[_0x12c968(0x1c8)]?_0x12c968(0x1bf)+_0x19a575['join'](',\x20'):_0x12c968(0x1f5)+_0x50a985+_0x12c968(0x1eb)+CLI_BIN_NAME+_0x12c968(0x1f8);throw CliErrors[_0x12c968(0x1b6)](_0x12c968(0x1c9)+_0x2606f3+_0x12c968(0x1e4)+_0xaf00f1);}_0x1a7040['code']=_0x3e74cd;}}
1
+ function a124_0x3d64(_0x9422ab,_0x104f1e){_0x9422ab=_0x9422ab-0x16e;const _0x461aff=a124_0x461a();let _0x3d6494=_0x461aff[_0x9422ab];return _0x3d6494;}(function(_0x469ac6,_0xf4d4c9){const _0xfbab23=a124_0x3d64,_0x505e30=_0x469ac6();while(!![]){try{const _0x3eb2ef=-parseInt(_0xfbab23(0x17b))/0x1*(-parseInt(_0xfbab23(0x172))/0x2)+parseInt(_0xfbab23(0x177))/0x3+parseInt(_0xfbab23(0x1b5))/0x4*(-parseInt(_0xfbab23(0x175))/0x5)+-parseInt(_0xfbab23(0x19c))/0x6*(-parseInt(_0xfbab23(0x1b9))/0x7)+-parseInt(_0xfbab23(0x174))/0x8+-parseInt(_0xfbab23(0x1ad))/0x9*(-parseInt(_0xfbab23(0x178))/0xa)+-parseInt(_0xfbab23(0x1b2))/0xb;if(_0x3eb2ef===_0xf4d4c9)break;else _0x505e30['push'](_0x505e30['shift']());}catch(_0x2866f7){_0x505e30['push'](_0x505e30['shift']());}}}(a124_0x461a,0xcd0a3));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x407ab0,_0x452555){const _0x2293d2=a124_0x3d64,_0xba2b81=CLI_BIN_NAME+'\x20'+_0x407ab0[_0x2293d2(0x1ac)]+'\x20'+_0x407ab0[_0x2293d2(0x17a)],_0x1706b0=parseFlags(_0x407ab0[_0x2293d2(0x18b)],_0x452555['rawFlags']);validateFlags(_0x407ab0[_0x2293d2(0x18b)],_0x1706b0,_0xba2b81);if(!_0x1706b0[_0x2293d2(0x18d)]&&_0x452555[_0x2293d2(0x1b7)]&&riskLevelOrder(_0x407ab0[_0x2293d2(0x1af)])>riskLevelOrder(_0x452555[_0x2293d2(0x1b7)])){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+_0x2293d2(0x173)+_0x452555[_0x2293d2(0x1b7)]+'\x22.');throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x452555[_0x2293d2(0x1b7)]+'\x22.\x0a'+(_0x2293d2(0x1a1)+_0x407ab0['risk']+'\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.'));}const _0x258e76=_0x452555['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x407ab0,_0x1706b0,_0x258e76,_0xba2b81);let _0xba5e6='';if(_0x407ab0['requiresAuth']!==![]){_0xba5e6=_0x452555[_0x2293d2(0x188)]();if(!_0xba5e6)throw CliErrors[_0x2293d2(0x19e)]();const {setActiveCookie:_0x1887ab}=await import(_0x2293d2(0x18f));_0x1887ab(_0xba5e6);}let _0x5bbafa='';if(_0x407ab0[_0x2293d2(0x192)]!==![]){_0x5bbafa=_0x452555[_0x2293d2(0x17d)]()??'';if(!_0x5bbafa)throw CliErrors[_0x2293d2(0x1a7)](_0x2293d2(0x1aa)+CLI_BIN_NAME+_0x2293d2(0x1a4));}let _0x20eab0=resolveFormat(_0x1706b0,_0x407ab0,_0x452555[_0x2293d2(0x179)]);const _0x59ae9c=resolveJqFilter(_0x1706b0);_0x59ae9c&&_0x20eab0===_0x2293d2(0x1a3)&&(_0x20eab0='json');if(_0x59ae9c&&_0x20eab0!==_0x2293d2(0x17c)&&_0x20eab0!==_0x2293d2(0x1b4))throw CliErrors['validation'](_0x2293d2(0x197)+_0x20eab0+').');const _0x465109=buildRuntimeContext({'appCode':_0x5bbafa,'cookie':_0xba5e6,'apiDomain':_0x452555[_0x2293d2(0x16f)](),'format':_0x20eab0,'jqFilter':_0x59ae9c,'flags':_0x1706b0,'def':_0x407ab0,'nonInteractive':_0x452555[_0x2293d2(0x17f)],'defaultPageSize':_0x452555[_0x2293d2(0x18c)],'defaultVerbose':_0x452555[_0x2293d2(0x198)],'apiDir':_0x258e76,'selectedAppName':_0x452555[_0x2293d2(0x185)],'args':_0x452555[_0x2293d2(0x195)]??[]});_0x407ab0[_0x2293d2(0x191)]&&await _0x407ab0['validate'](_0x465109);if(_0x1706b0[_0x2293d2(0x18d)]){if(!_0x407ab0['dryRun'])throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x181)+_0xba2b81+'`.');const _0x549da8=await _0x407ab0[_0x2293d2(0x1b1)](_0x465109);formatOutput({'ok':!![],'data':_0x549da8},{'command':_0xba2b81,'risk':_0x407ab0['risk'],'format':_0x20eab0,'dryRun':!![],'jqFilter':_0x59ae9c});return;}if(_0x407ab0[_0x2293d2(0x1af)]===_0x2293d2(0x1a6)&&!_0x1706b0['yes']){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x193)+_0xba2b81+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0xba2b81);}const _0x21fc43=await _0x407ab0[_0x2293d2(0x18e)](_0x465109);formatOutput(_0x21fc43,{'command':_0xba2b81,'risk':_0x407ab0[_0x2293d2(0x1af)],'format':_0x20eab0,'jqFilter':_0x59ae9c});}function a124_0x461a(){const _0x206754=['compress','4OSowRo','`\x20has\x20risk\x20level\x20\x22','riskLevel','No\x20api.ts\x20found\x20in\x20','9627051sYfLdp','type','resolveApiDomain','createInterface','validation','22HFrRlg','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','7295120vMflLT','6579085ieGYFT','join','2269998FsKBCr','9881150zLBPSv','defaultFormat','command','28319SwnAKW','json','resolveAppCode','apiDir','isNonInteractive','number','--dry-run\x20is\x20not\x20supported\x20for\x20`','stdin','map','hasFormat','selectedAppName','length','some','resolveCookie','code','trim','flags','defaultPageSize','dry-run','execute','../core/api-client.js','Command\x20`','validate','requiresAppCode','High-risk\x20operation\x20`','string','args','toLowerCase','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultVerbose','yes','apiDomain','verbose','6AQixcp','Unknown\x20alias\x20\x22','authRequired','Available\x20aliases:\x20','format','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','\x22.\x20','pretty','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20api\x20pull`\x20first.','high-risk-write','configMissing','nonInteractive','question','Set\x20appcode\x20via\x20`','appCode','service','9yDpnRd','stderr','risk','name','dryRun','4004363NUAvha','alias'];a124_0x461a=function(){return _0x206754;};return a124_0x461a();}function buildRuntimeContext(_0x29926f){const _0x35448c=a124_0x3d64,{flags:_0x463117,def:_0x46a443}=_0x29926f,_0x5d8257=CLI_BIN_NAME+'\x20'+_0x46a443[_0x35448c(0x1ac)]+'\x20'+_0x46a443[_0x35448c(0x17a)];return{'appCode':_0x29926f[_0x35448c(0x1ab)],'cookie':_0x29926f['cookie'],'apiDomain':_0x29926f[_0x35448c(0x19a)],'format':_0x29926f[_0x35448c(0x1a0)],'nonInteractive':_0x29926f[_0x35448c(0x1a8)],'apiDir':_0x29926f[_0x35448c(0x17e)],'selectedAppName':_0x29926f[_0x35448c(0x185)],'args':_0x29926f[_0x35448c(0x195)],'str'(_0x2b25dd){return String(_0x463117[_0x2b25dd]??'');},'bool'(_0x49801d){const _0x581797=_0x35448c;if(_0x463117[_0x49801d]===!![])return!![];if(_0x49801d===_0x581797(0x19b)&&_0x29926f[_0x581797(0x198)])return!![];return![];},'num'(_0x374216,_0x634843){const _0x11b229=_0x35448c,_0x5a61dc=_0x463117[_0x374216];if(typeof _0x5a61dc===_0x11b229(0x180))return _0x5a61dc;if(_0x374216==='pagesize'&&_0x29926f[_0x11b229(0x18c)]!=null)return _0x29926f['defaultPageSize'];return _0x634843??0x0;},'flag'(_0x5716f0){return _0x463117[_0x5716f0];},'output'(_0x301ff8){const _0x1fbb69=_0x35448c;formatOutput(_0x301ff8,{'command':_0x5d8257,'risk':_0x46a443[_0x1fbb69(0x1af)],'format':_0x29926f[_0x1fbb69(0x1a0)],'jqFilter':_0x29926f['jqFilter']});}};}function resolveJqFilter(_0x2ede94){const _0xbcb94b=a124_0x3d64,_0x5c4e52=_0x2ede94['jq'];if(_0x5c4e52===undefined||_0x5c4e52===null)return undefined;const _0xcd753=String(_0x5c4e52)[_0xbcb94b(0x18a)]();return _0xcd753===''?undefined:_0xcd753;}function resolveFormat(_0x59b6cd,_0x63b714,_0x5f3ff9){const _0x2b6901=a124_0x3d64;if(_0x63b714[_0x2b6901(0x184)]===![])return'pretty';const _0x1c4117=normalizeLegacyOutputFormat(_0x59b6cd[_0x2b6901(0x1a0)]);if(_0x1c4117)return _0x1c4117;const _0x138ec1=normalizeLegacyOutputFormat(_0x5f3ff9);if(_0x138ec1)return _0x138ec1;const _0x2cf01a=normalizeLegacyOutputFormat(_0x63b714['defaultOutputFormat']);if(_0x2cf01a)return _0x2cf01a;return _0x2b6901(0x1b4);}async function requireConfirmation(_0x343d1a){const _0x10b0e2=a124_0x3d64,_0x29b53d=await import('node:readline'),_0xbc405=_0x29b53d[_0x10b0e2(0x170)]({'input':process[_0x10b0e2(0x182)],'output':process[_0x10b0e2(0x1ae)]});return new Promise((_0x5ad845,_0x2a7fb7)=>{const _0x44e0fc=_0x10b0e2;_0xbc405[_0x44e0fc(0x1a9)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x343d1a+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0xeb2fed=>{const _0x447e54=_0x44e0fc;_0xbc405['close'](),_0xeb2fed[_0x447e54(0x196)]()==='y'||_0xeb2fed[_0x447e54(0x196)]()===_0x447e54(0x199)?_0x5ad845():_0x2a7fb7(CliErrors['cancelled']('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x4cbbc0,_0x5ab3d1,_0x3a1047,_0x4d2dce){const _0x14b005=a124_0x3d64,_0x44c1a5=_0x4cbbc0[_0x14b005(0x18b)]['some'](_0x53ddb2=>_0x53ddb2[_0x14b005(0x1b0)]==='code'&&_0x53ddb2[_0x14b005(0x16e)]==='string'),_0x4c3258=_0x4cbbc0[_0x14b005(0x18b)][_0x14b005(0x187)](_0x45a3d0=>_0x45a3d0[_0x14b005(0x1b0)]==='alias'&&_0x45a3d0[_0x14b005(0x16e)]===_0x14b005(0x194));if(!_0x44c1a5||!_0x4c3258)return;const _0x1a70ea=_0x5ab3d1['code']?String(_0x5ab3d1[_0x14b005(0x189)]):'',_0xfb442b=_0x5ab3d1[_0x14b005(0x1b3)]?String(_0x5ab3d1['alias']):'';if(!_0x1a70ea&&!_0xfb442b)throw CliErrors[_0x14b005(0x171)]('`'+_0x4d2dce+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xfb442b&&!_0x1a70ea){const _0x54762e=resolveAlias(_0x3a1047,_0xfb442b);if(!_0x54762e){const _0x49510f=listAliases(_0x3a1047)[_0x14b005(0x183)](_0x38439a=>_0x38439a[_0x14b005(0x1b3)]),_0x1101ec=_0x49510f[_0x14b005(0x186)]?_0x14b005(0x19f)+_0x49510f[_0x14b005(0x176)](',\x20'):_0x14b005(0x1b8)+_0x3a1047+'.\x20Run\x20`'+CLI_BIN_NAME+_0x14b005(0x1a5);throw CliErrors[_0x14b005(0x171)](_0x14b005(0x19d)+_0xfb442b+_0x14b005(0x1a2)+_0x1101ec);}_0x5ab3d1[_0x14b005(0x189)]=_0x54762e;}}
@@ -1 +1 @@
1
- function a125_0x33b6(_0x283b32,_0xd38494){_0x283b32=_0x283b32-0x74;const _0x6a4682=a125_0x6a46();let _0x33b6dc=_0x6a4682[_0x283b32];return _0x33b6dc;}(function(_0x16c662,_0x1a54b7){const _0x59ce17=a125_0x33b6,_0x30ee05=_0x16c662();while(!![]){try{const _0xeebcd9=parseInt(_0x59ce17(0x82))/0x1+-parseInt(_0x59ce17(0x91))/0x2*(parseInt(_0x59ce17(0x8a))/0x3)+parseInt(_0x59ce17(0x7a))/0x4*(-parseInt(_0x59ce17(0x75))/0x5)+parseInt(_0x59ce17(0x8e))/0x6+-parseInt(_0x59ce17(0x7f))/0x7*(parseInt(_0x59ce17(0x81))/0x8)+parseInt(_0x59ce17(0x9d))/0x9+parseInt(_0x59ce17(0x89))/0xa;if(_0xeebcd9===_0x1a54b7)break;else _0x30ee05['push'](_0x30ee05['shift']());}catch(_0x53a38f){_0x30ee05['push'](_0x30ee05['shift']());}}}(a125_0x6a46,0x66555));import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a125_0x6a46(){const _0x206661=['hidden','4450164CGAIaF','default','args','125130DsRNSO','tag','flags','service','regex','helpExtra','label','map','hasFormat','hint','alias','required','2329830naYpNx','function','<script>','1149865cqhAiG','requiresAuth','source','name','isSingleCommand','8caCldk','../commands/registry.js','description','length','type','11823sVBOAR','wildcardDef','952zuRvlT','364550CeVitl','risk','enum','command','dryRun','commands','defaultCommand','4031950OrtKwM','33jMSWJw','push','pattern'];a125_0x6a46=function(){return _0x206661;};return a125_0x6a46();}function serializeFlag(_0x48a758){const _0x29a5a7=a125_0x33b6,_0x46d0c1={'name':_0x48a758['name'],'type':_0x48a758[_0x29a5a7(0x7e)],'description':_0x48a758[_0x29a5a7(0x7c)]};if(_0x48a758['required']!==undefined)_0x46d0c1[_0x29a5a7(0x9c)]=_0x48a758[_0x29a5a7(0x9c)];if(_0x48a758[_0x29a5a7(0x8f)]!==undefined)_0x46d0c1['default']=_0x48a758[_0x29a5a7(0x8f)];if(_0x48a758[_0x29a5a7(0x84)]&&_0x48a758[_0x29a5a7(0x84)][_0x29a5a7(0x7d)]>0x0)_0x46d0c1[_0x29a5a7(0x84)]=_0x48a758[_0x29a5a7(0x84)];if(_0x48a758[_0x29a5a7(0x9b)])_0x46d0c1[_0x29a5a7(0x9b)]=_0x48a758[_0x29a5a7(0x9b)];if(_0x48a758[_0x29a5a7(0x8d)])_0x46d0c1[_0x29a5a7(0x8d)]=_0x48a758['hidden'];return _0x48a758[_0x29a5a7(0x8c)]&&(_0x46d0c1[_0x29a5a7(0x8c)]={'source':_0x48a758[_0x29a5a7(0x8c)][_0x29a5a7(0x95)][_0x29a5a7(0x77)],'flags':_0x48a758[_0x29a5a7(0x8c)][_0x29a5a7(0x95)][_0x29a5a7(0x93)],'description':_0x48a758[_0x29a5a7(0x8c)]['description']}),_0x46d0c1;}function serializeHelpExtra(_0x4126c1){const _0x3c7a81=a125_0x33b6;if(_0x4126c1['helpExtra']===undefined)return undefined;if(typeof _0x4126c1['helpExtra']===_0x3c7a81(0x9e))return{'dynamic':!![]};return _0x4126c1[_0x3c7a81(0x96)];}function serializeCommand(_0x44e29a,_0x22e06d){const _0x4f0c1a=a125_0x33b6,_0x37fee0=_0x44e29a[_0x4f0c1a(0x76)]!==![],_0x1d9082=_0x44e29a['requiresAppCode']!==![],_0x4ac3b0=_0x44e29a[_0x4f0c1a(0x99)]!==![],_0x4d14a0=serializeHelpExtra(_0x44e29a);return{'command':_0x22e06d['command'],'description':_0x22e06d[_0x4f0c1a(0x7c)],..._0x22e06d[_0x4f0c1a(0x92)]?{'tag':_0x22e06d[_0x4f0c1a(0x92)]['trim']()}:{},'risk':_0x44e29a[_0x4f0c1a(0x83)],'requiresAuth':_0x37fee0,'requiresAppCode':_0x1d9082,'hasFormat':_0x4ac3b0,'supportsDryRun':Boolean(_0x44e29a[_0x4f0c1a(0x86)]),..._0x44e29a[_0x4f0c1a(0x90)]&&_0x44e29a[_0x4f0c1a(0x90)][_0x4f0c1a(0x7d)]>0x0?{'args':_0x44e29a[_0x4f0c1a(0x90)]}:{},'flags':buildAllFlags(_0x44e29a)[_0x4f0c1a(0x98)](serializeFlag),..._0x4d14a0!==undefined?{'helpExtra':_0x4d14a0}:{}};}export async function buildSchemaPayload(){const _0x103619=a125_0x33b6,{serviceRegistry:_0x90054e,findDefinition:_0x2a1a5e}=await import(_0x103619(0x7b)),_0x3699ae=[];for(const _0x1776ec of _0x90054e){const _0x510949=[];for(const _0x144e63 of _0x1776ec[_0x103619(0x87)]){const _0x7b8cad=_0x144e63[_0x103619(0x85)]===_0x103619(0x74)&&_0x1776ec[_0x103619(0x80)]?_0x1776ec[_0x103619(0x80)]:_0x2a1a5e(_0x1776ec[_0x103619(0x94)],_0x144e63['command']);if(!_0x7b8cad)continue;_0x510949['push'](serializeCommand(_0x7b8cad,_0x144e63));}_0x3699ae[_0x103619(0x8b)]({'service':_0x1776ec[_0x103619(0x94)],'label':_0x1776ec[_0x103619(0x97)],..._0x1776ec[_0x103619(0x79)]?{'isSingleCommand':!![]}:{},..._0x1776ec[_0x103619(0x88)]?{'defaultCommand':_0x1776ec[_0x103619(0x88)]}:{},'hasWildcard':Boolean(_0x1776ec['wildcardDef']),'commands':_0x510949});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS['map'](_0x2949cf=>({'name':_0x2949cf[_0x103619(0x78)],'type':_0x2949cf['type'],'description':_0x2949cf[_0x103619(0x7c)],..._0x2949cf[_0x103619(0x9a)]?{'hint':_0x2949cf['hint']}:{},..._0x2949cf['hidden']?{'hidden':!![]}:{}})),'services':_0x3699ae};}
1
+ (function(_0x72cc6c,_0x2e4016){const _0x1df472=a125_0x3789,_0x50e2c4=_0x72cc6c();while(!![]){try{const _0x3374a1=parseInt(_0x1df472(0x11d))/0x1+-parseInt(_0x1df472(0x131))/0x2*(parseInt(_0x1df472(0x11c))/0x3)+-parseInt(_0x1df472(0x111))/0x4*(-parseInt(_0x1df472(0x11b))/0x5)+-parseInt(_0x1df472(0x11e))/0x6*(-parseInt(_0x1df472(0x132))/0x7)+parseInt(_0x1df472(0x122))/0x8+-parseInt(_0x1df472(0x129))/0x9*(-parseInt(_0x1df472(0x123))/0xa)+-parseInt(_0x1df472(0x127))/0xb;if(_0x3374a1===_0x2e4016)break;else _0x50e2c4['push'](_0x50e2c4['shift']());}catch(_0xc4be8){_0x50e2c4['push'](_0x50e2c4['shift']());}}}(a125_0x1afb,0x19db3));import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3789(_0x5c1334,_0x2638fa){_0x5c1334=_0x5c1334-0x110;const _0x1afb50=a125_0x1afb();let _0x37895f=_0x1afb50[_0x5c1334];return _0x37895f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function serializeFlag(_0x3a51c2){const _0xc318ea=a125_0x3789,_0x2596f6={'name':_0x3a51c2[_0xc318ea(0x128)],'type':_0x3a51c2['type'],'description':_0x3a51c2[_0xc318ea(0x113)]};if(_0x3a51c2[_0xc318ea(0x115)]!==undefined)_0x2596f6[_0xc318ea(0x115)]=_0x3a51c2['required'];if(_0x3a51c2[_0xc318ea(0x134)]!==undefined)_0x2596f6[_0xc318ea(0x134)]=_0x3a51c2[_0xc318ea(0x134)];if(_0x3a51c2['enum']&&_0x3a51c2['enum'][_0xc318ea(0x121)]>0x0)_0x2596f6['enum']=_0x3a51c2[_0xc318ea(0x126)];if(_0x3a51c2[_0xc318ea(0x117)])_0x2596f6[_0xc318ea(0x117)]=_0x3a51c2['alias'];if(_0x3a51c2[_0xc318ea(0x12c)])_0x2596f6[_0xc318ea(0x12c)]=_0x3a51c2[_0xc318ea(0x12c)];return _0x3a51c2['pattern']&&(_0x2596f6[_0xc318ea(0x110)]={'source':_0x3a51c2['pattern'][_0xc318ea(0x125)][_0xc318ea(0x133)],'flags':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x125)]['flags'],'description':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x113)]}),_0x2596f6;}function serializeHelpExtra(_0x4df754){const _0x1b453f=a125_0x3789;if(_0x4df754['helpExtra']===undefined)return undefined;if(typeof _0x4df754['helpExtra']===_0x1b453f(0x116))return{'dynamic':!![]};return _0x4df754[_0x1b453f(0x120)];}function a125_0x1afb(){const _0x44b968=['push','256104pNqRpL','1393609GXALnD','source','default','wildcardDef','commands','pattern','285836JKvSHp','service','description','args','required','function','alias','../commands/registry.js','risk','defaultCommand','5hQNYyi','3asQmWv','116262YAsXSW','6voyocx','command','helpExtra','length','1689976MiQQdt','8540dCfhMU','map','regex','enum','4831728YLDVgV','name','792bvDIqY','trim','hint','hidden','type','isSingleCommand','label'];a125_0x1afb=function(){return _0x44b968;};return a125_0x1afb();}function serializeCommand(_0x32721d,_0x4ba504){const _0x207e06=a125_0x3789,_0x4270b5=_0x32721d['requiresAuth']!==![],_0x372570=_0x32721d['requiresAppCode']!==![],_0x1757fc=_0x32721d['hasFormat']!==![],_0x1e1f05=serializeHelpExtra(_0x32721d);return{'command':_0x4ba504[_0x207e06(0x11f)],'description':_0x4ba504['description'],..._0x4ba504['tag']?{'tag':_0x4ba504['tag'][_0x207e06(0x12a)]()}:{},'risk':_0x32721d[_0x207e06(0x119)],'requiresAuth':_0x4270b5,'requiresAppCode':_0x372570,'hasFormat':_0x1757fc,'supportsDryRun':Boolean(_0x32721d['dryRun']),..._0x32721d[_0x207e06(0x114)]&&_0x32721d[_0x207e06(0x114)][_0x207e06(0x121)]>0x0?{'args':_0x32721d[_0x207e06(0x114)]}:{},'flags':buildAllFlags(_0x32721d)[_0x207e06(0x124)](serializeFlag),..._0x1e1f05!==undefined?{'helpExtra':_0x1e1f05}:{}};}export async function buildSchemaPayload(){const _0x3f552b=a125_0x3789,{serviceRegistry:_0xf16f81,findDefinition:_0x56d4d5}=await import(_0x3f552b(0x118)),_0x412713=[];for(const _0x2c7f96 of _0xf16f81){const _0x5a3840=[];for(const _0x2fd502 of _0x2c7f96[_0x3f552b(0x136)]){const _0x8d8f17=_0x2fd502[_0x3f552b(0x11f)]==='<script>'&&_0x2c7f96['wildcardDef']?_0x2c7f96[_0x3f552b(0x135)]:_0x56d4d5(_0x2c7f96[_0x3f552b(0x112)],_0x2fd502[_0x3f552b(0x11f)]);if(!_0x8d8f17)continue;_0x5a3840[_0x3f552b(0x130)](serializeCommand(_0x8d8f17,_0x2fd502));}_0x412713[_0x3f552b(0x130)]({'service':_0x2c7f96[_0x3f552b(0x112)],'label':_0x2c7f96[_0x3f552b(0x12f)],..._0x2c7f96[_0x3f552b(0x12e)]?{'isSingleCommand':!![]}:{},..._0x2c7f96[_0x3f552b(0x11a)]?{'defaultCommand':_0x2c7f96[_0x3f552b(0x11a)]}:{},'hasWildcard':Boolean(_0x2c7f96[_0x3f552b(0x135)]),'commands':_0x5a3840});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS[_0x3f552b(0x124)](_0x4e6f88=>({'name':_0x4e6f88[_0x3f552b(0x128)],'type':_0x4e6f88[_0x3f552b(0x12d)],'description':_0x4e6f88[_0x3f552b(0x113)],..._0x4e6f88['hint']?{'hint':_0x4e6f88[_0x3f552b(0x12b)]}:{},..._0x4e6f88['hidden']?{'hidden':!![]}:{}})),'services':_0x412713};}
@@ -1 +1 @@
1
- (function(_0x3fbaf3,_0x2f2983){const _0x3b686d=a126_0x1eca,_0x176434=_0x3fbaf3();while(!![]){try{const _0x2ad990=-parseInt(_0x3b686d(0xda))/0x1*(-parseInt(_0x3b686d(0xd7))/0x2)+-parseInt(_0x3b686d(0xe1))/0x3+parseInt(_0x3b686d(0xdd))/0x4*(-parseInt(_0x3b686d(0xd8))/0x5)+-parseInt(_0x3b686d(0xdf))/0x6*(-parseInt(_0x3b686d(0xe5))/0x7)+parseInt(_0x3b686d(0xe3))/0x8+-parseInt(_0x3b686d(0xe0))/0x9*(parseInt(_0x3b686d(0xdc))/0xa)+parseInt(_0x3b686d(0xde))/0xb*(-parseInt(_0x3b686d(0xd9))/0xc);if(_0x2ad990===_0x2f2983)break;else _0x176434['push'](_0x176434['shift']());}catch(_0x3d4f9e){_0x176434['push'](_0x176434['shift']());}}}(a126_0x14e4,0x82146));export function riskLevelOrder(_0x47b1db){const _0x55c804=a126_0x1eca,_0x317aa7={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x317aa7[_0x47b1db??_0x55c804(0xe2)]??0x0;}function a126_0x14e4(){const _0x173b31=['102688vHRgnZ','77VhBgJs','5375508uULVkT','25695rOJLEh','131835vcReoG','read','3717400TxctkE','compress','7BQWIKt','table','1788274MzlQoO','80cZLPVg','1433352AyHeNb','1uVXqih','pretty','1510ihWgIV'];a126_0x14e4=function(){return _0x173b31;};return a126_0x14e4();}function a126_0x1eca(_0x503255,_0x23a00f){_0x503255=_0x503255-0xd6;const _0x14e4e3=a126_0x14e4();let _0x1eca37=_0x14e4e3[_0x503255];return _0x1eca37;}export function isValidFormat(_0x17da0a){const _0x59995f=a126_0x1eca;return _0x17da0a==='json'||_0x17da0a===_0x59995f(0xdb)||_0x17da0a===_0x59995f(0xe4);}export function normalizeLegacyOutputFormat(_0x180e1f){const _0x489945=a126_0x1eca;if(_0x180e1f===_0x489945(0xd6))return _0x489945(0xdb);if(isValidFormat(_0x180e1f))return _0x180e1f;return undefined;}
1
+ function a126_0x201f(){const _0x17e258=['390iRDsyv','3HdfGnj','pretty','table','6sHUHot','97182vGBrrU','4015FFUpUW','14964CKDXId','9VecwqA','118018Fybsjy','717335IWrPyi','98204ZXqodi','compress','read','388731bnJrlq','2783280dtVQkV'];a126_0x201f=function(){return _0x17e258;};return a126_0x201f();}(function(_0x1e4ed9,_0x10f6a6){const _0x2d5799=a126_0x5350,_0x5e5bc1=_0x1e4ed9();while(!![]){try{const _0x38eb96=-parseInt(_0x2d5799(0x146))/0x1*(parseInt(_0x2d5799(0x14e))/0x2)+-parseInt(_0x2d5799(0x14d))/0x3*(-parseInt(_0x2d5799(0x140))/0x4)+parseInt(_0x2d5799(0x14f))/0x5*(-parseInt(_0x2d5799(0x149))/0x6)+-parseInt(_0x2d5799(0x143))/0x7+-parseInt(_0x2d5799(0x144))/0x8+parseInt(_0x2d5799(0x14a))/0x9*(parseInt(_0x2d5799(0x145))/0xa)+parseInt(_0x2d5799(0x14b))/0xb*(parseInt(_0x2d5799(0x14c))/0xc);if(_0x38eb96===_0x10f6a6)break;else _0x5e5bc1['push'](_0x5e5bc1['shift']());}catch(_0x3d508a){_0x5e5bc1['push'](_0x5e5bc1['shift']());}}}(a126_0x201f,0x372c9));function a126_0x5350(_0x47e878,_0x11069e){_0x47e878=_0x47e878-0x140;const _0x201ff2=a126_0x201f();let _0x53509e=_0x201ff2[_0x47e878];return _0x53509e;}export function riskLevelOrder(_0x44e5b7){const _0x499f60=a126_0x5350,_0x57f612={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x57f612[_0x44e5b7??_0x499f60(0x142)]??0x0;}export function isValidFormat(_0x205bd1){const _0x504ce9=a126_0x5350;return _0x205bd1==='json'||_0x205bd1===_0x504ce9(0x147)||_0x205bd1===_0x504ce9(0x141);}export function normalizeLegacyOutputFormat(_0x588851){const _0x51b64b=a126_0x5350;if(_0x588851===_0x51b64b(0x148))return _0x51b64b(0x147);if(isValidFormat(_0x588851))return _0x588851;return undefined;}
@@ -1 +1 @@
1
- const a127_0x5275ad=a127_0x1c9b;(function(_0x350b94,_0x281e9e){const _0x5e1e1e=a127_0x1c9b,_0x121dcb=_0x350b94();while(!![]){try{const _0x493825=parseInt(_0x5e1e1e(0x12a))/0x1+parseInt(_0x5e1e1e(0x130))/0x2+-parseInt(_0x5e1e1e(0x12f))/0x3*(-parseInt(_0x5e1e1e(0x12c))/0x4)+-parseInt(_0x5e1e1e(0x129))/0x5+parseInt(_0x5e1e1e(0x12e))/0x6+parseInt(_0x5e1e1e(0x12d))/0x7*(-parseInt(_0x5e1e1e(0x12b))/0x8)+parseInt(_0x5e1e1e(0x132))/0x9*(parseInt(_0x5e1e1e(0x131))/0xa);if(_0x493825===_0x281e9e)break;else _0x121dcb['push'](_0x121dcb['shift']());}catch(_0x4c33b3){_0x121dcb['push'](_0x121dcb['shift']());}}}(a127_0xa30e,0xa4086));function a127_0x1c9b(_0x49cb8f,_0x3ba26c){_0x49cb8f=_0x49cb8f-0x129;const _0xa30e22=a127_0xa30e();let _0x1c9be7=_0xa30e22[_0x49cb8f];return _0x1c9be7;}function a127_0xa30e(){const _0x5b5532=['2652570CNixIc','2026-04-09T06:42:11.528Z','9c8f5c9','5616080hKtgoB','287027bcSRoc','3738968YtLlhZ','132bhhtPp','7iPYhwU','2215464cDWucF','99987sBPJkL','423214HQiSvE','10gBOELX'];a127_0xa30e=function(){return _0x5b5532;};return a127_0xa30e();}export const VERSION='2.1.1-beta.0';export const GIT_TAG='v2.1.1-beta.0';export const GIT_COMMIT=a127_0x5275ad(0x134);export const BUILD_TIME=a127_0x5275ad(0x133);
1
+ const a127_0x5ebf6a=a127_0x34e2;(function(_0x6fc2fc,_0x2213ff){const _0x37c15e=a127_0x34e2,_0x48b3c4=_0x6fc2fc();while(!![]){try{const _0x311288=-parseInt(_0x37c15e(0x14a))/0x1*(parseInt(_0x37c15e(0x14d))/0x2)+parseInt(_0x37c15e(0x148))/0x3+parseInt(_0x37c15e(0x147))/0x4+parseInt(_0x37c15e(0x142))/0x5+-parseInt(_0x37c15e(0x145))/0x6*(parseInt(_0x37c15e(0x146))/0x7)+parseInt(_0x37c15e(0x144))/0x8*(parseInt(_0x37c15e(0x14c))/0x9)+-parseInt(_0x37c15e(0x149))/0xa;if(_0x311288===_0x2213ff)break;else _0x48b3c4['push'](_0x48b3c4['shift']());}catch(_0x215c2a){_0x48b3c4['push'](_0x48b3c4['shift']());}}}(a127_0x5895,0x8c239));function a127_0x34e2(_0x15e71c,_0x4871b0){_0x15e71c=_0x15e71c-0x142;const _0x589534=a127_0x5895();let _0x34e2d8=_0x589534[_0x15e71c];return _0x34e2d8;}export const VERSION=a127_0x5ebf6a(0x14e);function a127_0x5895(){const _0x772d70=['44UJpqgu','2026-04-09T11:25:15.642Z','1449FQiREl','32050BDeMaF','2.1.1','2292955wMYIpi','v2.1.1','45448rrYoGz','42EgfMBq','238217lLNHDf','4403588HdJHzh','650415RViDIK','11736080pIMmAu'];a127_0x5895=function(){return _0x772d70;};return a127_0x5895();}export const GIT_TAG=a127_0x5ebf6a(0x143);export const GIT_COMMIT='75628b5';export const BUILD_TIME=a127_0x5ebf6a(0x14b);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3d67c0,_0x4db1e9){var _0x546768=a128_0x3202,_0x4a29cd=_0x3d67c0();while(!![]){try{var _0x188103=-parseInt(_0x546768(0x6e))/0x1+-parseInt(_0x546768(0x72))/0x2*(parseInt(_0x546768(0x6d))/0x3)+parseInt(_0x546768(0x71))/0x4+-parseInt(_0x546768(0x6c))/0x5+parseInt(_0x546768(0x6f))/0x6*(-parseInt(_0x546768(0x79))/0x7)+parseInt(_0x546768(0x73))/0x8*(-parseInt(_0x546768(0x74))/0x9)+parseInt(_0x546768(0x75))/0xa;if(_0x188103===_0x4db1e9)break;else _0x4a29cd['push'](_0x4a29cd['shift']());}catch(_0x655d85){_0x4a29cd['push'](_0x4a29cd['shift']());}}}(a128_0x5286,0xe6c28));import a128_0x54fb73 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a128_0x3202(_0x38ae95,_0x5d7d8b){_0x38ae95=_0x38ae95-0x6b;var _0x52865d=a128_0x5286();var _0x320276=_0x52865d[_0x38ae95];return _0x320276;}export function showHelp(){var _0x187804=a128_0x3202;console[_0x187804(0x70)](),console[_0x187804(0x70)](a128_0x54fb73['green'][_0x187804(0x6b)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x187804(0x70)](),console[_0x187804(0x70)](_0x187804(0x76)+a128_0x54fb73[_0x187804(0x7a)][_0x187804(0x6b)](CLI_BIN_NAME+_0x187804(0x78))+_0x187804(0x77)),console[_0x187804(0x70)]();}function a128_0x5286(){var _0xba19cf=['2272612oifnMw','6VtqDYS','562064TYzYLM','198rXOwrJ','71456830SEdmvh','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','\x20--help','7YCSAFb','green','bold','6495350Jhyrys','772323oaYyPT','1486336ayidBk','9991434ABHFFA','log'];a128_0x5286=function(){return _0xba19cf;};return a128_0x5286();}
1
+ (function(_0x473e52,_0x1f5975){var _0x8863bd=a128_0x58fa,_0x28986e=_0x473e52();while(!![]){try{var _0x56ff7d=parseInt(_0x8863bd(0x1ca))/0x1*(parseInt(_0x8863bd(0x1da))/0x2)+parseInt(_0x8863bd(0x1d3))/0x3*(-parseInt(_0x8863bd(0x1cf))/0x4)+-parseInt(_0x8863bd(0x1d8))/0x5*(parseInt(_0x8863bd(0x1d5))/0x6)+-parseInt(_0x8863bd(0x1d7))/0x7*(parseInt(_0x8863bd(0x1ce))/0x8)+-parseInt(_0x8863bd(0x1d6))/0x9+parseInt(_0x8863bd(0x1c9))/0xa+parseInt(_0x8863bd(0x1d4))/0xb*(parseInt(_0x8863bd(0x1cd))/0xc);if(_0x56ff7d===_0x1f5975)break;else _0x28986e['push'](_0x28986e['shift']());}catch(_0x2a5f04){_0x28986e['push'](_0x28986e['shift']());}}}(a128_0x1e48,0xd1e36));import a128_0x4c9ca9 from'chalk';function a128_0x1e48(){var _0x1defb6=['\x20to\x20view\x20available\x20commands.','116ntrYWa','15374680OugTjU','11933wxhHId','\x20--help','log','1499952VeUhZU','410952aURQHf','40384VmdsbS','\x20\x20Use\x20','green','bold','240OsZoXc','88AOgOuM','1686XRpBgG','7644411HzFwqG','14opNDUa','10855FJBnxz'];a128_0x1e48=function(){return _0x1defb6;};return a128_0x1e48();}function a128_0x58fa(_0x35cfc5,_0x43b719){_0x35cfc5=_0x35cfc5-0x1c9;var _0x1e486f=a128_0x1e48();var _0x58fa0b=_0x1e486f[_0x35cfc5];return _0x58fa0b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4e7a9c=a128_0x58fa;console[_0x4e7a9c(0x1cc)](),console[_0x4e7a9c(0x1cc)](a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4e7a9c(0x1cc)](),console['log'](_0x4e7a9c(0x1d0)+a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)](CLI_BIN_NAME+_0x4e7a9c(0x1cb))+_0x4e7a9c(0x1d9)),console['log']();}
@@ -1 +1 @@
1
- const a129_0x24adb4=a129_0x96ab;function a129_0x1531(){const _0x1315fc=['length','skill','Equivalent\x20command:\x20','log','29898cAxnqs','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','argv','enable-bff-save','670mMMHGs','854592nwkCeX','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','9VPNzcR','entries','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','help','push','49ZQeuHY','setLogPath','--help','\x20skill\x20--help\x0a\x20\x20','2671665gPfUbt','不支持的命令:\x20','toLowerCase','error','\x0aAvailable\x20commands:','add','from','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','includes','796314NlhyYA','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','cwd','2825656njwmzC','has','1704BnXarl','336lGFtSr','143253LCWgYZ','startsWith'];a129_0x1531=function(){return _0x1315fc;};return a129_0x1531();}(function(_0x564f15,_0x363a2b){const _0x39a238=a129_0x96ab,_0x32adf0=_0x564f15();while(!![]){try{const _0x3e0f37=-parseInt(_0x39a238(0x18a))/0x1*(-parseInt(_0x39a238(0x189))/0x2)+parseInt(_0x39a238(0x184))/0x3+-parseInt(_0x39a238(0x170))/0x4+-parseInt(_0x39a238(0x17b))/0x5+-parseInt(_0x39a238(0x191))/0x6*(parseInt(_0x39a238(0x177))/0x7)+-parseInt(_0x39a238(0x187))/0x8*(parseInt(_0x39a238(0x172))/0x9)+-parseInt(_0x39a238(0x195))/0xa*(-parseInt(_0x39a238(0x18b))/0xb);if(_0x3e0f37===_0x363a2b)break;else _0x32adf0['push'](_0x32adf0['shift']());}catch(_0xbd118){_0x32adf0['push'](_0x32adf0['shift']());}}}(a129_0x1531,0x465b6));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x448115){const _0x468afc=a129_0x96ab,_0x3b01ce=[];for(const [_0x30b2f6,_0x7d5cb4]of Object[_0x468afc(0x173)](_0x448115)){if(_0x7d5cb4===!![]){const _0x12bb4a=_0x30b2f6['replace'](/([A-Z])/g,'-$1')[_0x468afc(0x17d)]();_0x3b01ce[_0x468afc(0x176)](_0x12bb4a);}}return _0x3b01ce;}export function parseDynamicFlags(){const _0x50f116=a129_0x96ab,_0x3b8eb8=[];for(let _0x5a3238=0x3;_0x5a3238<process[_0x50f116(0x193)][_0x50f116(0x18d)];_0x5a3238++){const _0x274c23=process['argv'][_0x5a3238];if(_0x274c23&&_0x274c23[_0x50f116(0x18c)]('--')){const _0xb5f20c=_0x274c23['slice'](0x2);_0xb5f20c&&!_0xb5f20c[_0x50f116(0x183)]('=')&&_0x3b8eb8['push'](_0xb5f20c);}}return _0x3b8eb8;}export function getAllProvidedFlags(_0xc05661){const _0x5593fa=a129_0x96ab,_0x406b67=camelCaseFlagsToKebab(_0xc05661),_0x58aa5f=parseDynamicFlags(),_0x91a9f8=new Set([..._0x406b67,..._0x58aa5f]);return Array[_0x5593fa(0x181)](_0x91a9f8);}export function normalizeLegacyBffSaveFlags(_0x2d5d38){const _0x5620ec=a129_0x96ab,_0x21ffd0=new Set(_0x2d5d38);return _0x21ffd0[_0x5620ec(0x188)]('dangerously-bff-save')&&_0x21ffd0[_0x5620ec(0x180)](_0x5620ec(0x194)),Array[_0x5620ec(0x181)](_0x21ffd0);}const SKILLS_INSTALL_COMMAND_LINE=a129_0x24adb4(0x171);function a129_0x96ab(_0x21c725,_0x1f28a7){_0x21c725=_0x21c725-0x170;const _0x15317a=a129_0x1531();let _0x96ab38=_0x15317a[_0x21c725];return _0x96ab38;}export async function skillsCommand(_0x4b25ce,_0x550d9e,_0x1f3e9e){const _0x2fdd9d=a129_0x24adb4;logger[_0x2fdd9d(0x178)](process[_0x2fdd9d(0x186)]());if(_0x1f3e9e?.[_0x2fdd9d(0x175)]||_0x4b25ce===_0x2fdd9d(0x179)){showHelp();return;}console[_0x2fdd9d(0x17e)]('Error:\x20Unsupported\x20command:\x20'+(_0x4b25ce||'(empty)')),console['log'](_0x2fdd9d(0x17f)),console[_0x2fdd9d(0x190)]('\x20\x20'+CLI_BIN_NAME+_0x2fdd9d(0x174)),console[_0x2fdd9d(0x190)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x2fdd9d(0x190)](''),console[_0x2fdd9d(0x190)](_0x2fdd9d(0x18f)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2fdd9d(0x17e)](_0x2fdd9d(0x18e),_0x2fdd9d(0x17c)+_0x4b25ce),process['exit'](0x1);}function showHelp(){const _0x20efc0=a129_0x24adb4;console[_0x20efc0(0x190)](_0x20efc0(0x182)+CLI_BIN_NAME+_0x20efc0(0x17a)+CLI_BIN_NAME+_0x20efc0(0x185)+SKILLS_INSTALL_COMMAND_LINE+_0x20efc0(0x192));}
1
+ const a129_0x10d0c9=a129_0x1381;(function(_0xca51d1,_0x5e94b7){const _0x19176e=a129_0x1381,_0x4f1735=_0xca51d1();while(!![]){try{const _0x2f826a=parseInt(_0x19176e(0x1ee))/0x1+parseInt(_0x19176e(0x1e7))/0x2+parseInt(_0x19176e(0x1ec))/0x3+parseInt(_0x19176e(0x1f1))/0x4*(-parseInt(_0x19176e(0x1f0))/0x5)+-parseInt(_0x19176e(0x1f8))/0x6+parseInt(_0x19176e(0x1fe))/0x7*(-parseInt(_0x19176e(0x1e5))/0x8)+-parseInt(_0x19176e(0x1f9))/0x9;if(_0x2f826a===_0x5e94b7)break;else _0x4f1735['push'](_0x4f1735['shift']());}catch(_0x561b40){_0x4f1735['push'](_0x4f1735['shift']());}}}(a129_0x6c56,0x91ea2));import{logger}from'../utils/logger.js';function a129_0x1381(_0x5bfd76,_0x590048){_0x5bfd76=_0x5bfd76-0x1dd;const _0x6c567a=a129_0x6c56();let _0x138113=_0x6c567a[_0x5bfd76];return _0x138113;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x6c56(){const _0x167941=['5QDdDzf','2483868NgoPIN','dangerously-bff-save','has','-$1','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','exit','不支持的命令:\x20','2776236ehLmkI','4140126RAieip','entries','(empty)','Equivalent\x20command:\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','6843606NYanAs','push','Error:\x20Unsupported\x20command:\x20','from','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','help','includes','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','slice','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','startsWith','\x20skill\x20--help\x0a\x20\x20','add','argv','8YpscNs','log','2167846dxUwPx','cwd','error','setLogPath','\x0aAvailable\x20commands:','3144039iSniQs','length','987075EsZaar','replace'];a129_0x6c56=function(){return _0x167941;};return a129_0x6c56();}export function camelCaseFlagsToKebab(_0x155f98){const _0x28d4b0=a129_0x1381,_0x1edfb0=[];for(const [_0x3d8eeb,_0x49e0ef]of Object[_0x28d4b0(0x1fa)](_0x155f98)){if(_0x49e0ef===!![]){const _0xee13ab=_0x3d8eeb[_0x28d4b0(0x1ef)](/([A-Z])/g,_0x28d4b0(0x1f4))['toLowerCase']();_0x1edfb0[_0x28d4b0(0x1ff)](_0xee13ab);}}return _0x1edfb0;}export function parseDynamicFlags(){const _0x252c65=a129_0x1381,_0x2373c8=[];for(let _0x3ba355=0x3;_0x3ba355<process[_0x252c65(0x1e4)][_0x252c65(0x1ed)];_0x3ba355++){const _0x2ecf37=process[_0x252c65(0x1e4)][_0x3ba355];if(_0x2ecf37&&_0x2ecf37[_0x252c65(0x1e1)]('--')){const _0x2c2d47=_0x2ecf37[_0x252c65(0x1df)](0x2);_0x2c2d47&&!_0x2c2d47[_0x252c65(0x1dd)]('=')&&_0x2373c8[_0x252c65(0x1ff)](_0x2c2d47);}}return _0x2373c8;}export function getAllProvidedFlags(_0x4a6f80){const _0x475b15=a129_0x1381,_0x33ec5a=camelCaseFlagsToKebab(_0x4a6f80),_0x2d1388=parseDynamicFlags(),_0xea8d41=new Set([..._0x33ec5a,..._0x2d1388]);return Array[_0x475b15(0x201)](_0xea8d41);}export function normalizeLegacyBffSaveFlags(_0x467ab4){const _0x29059c=a129_0x1381,_0xb0e327=new Set(_0x467ab4);return _0xb0e327[_0x29059c(0x1f3)](_0x29059c(0x1f2))&&_0xb0e327[_0x29059c(0x1e3)]('enable-bff-save'),Array[_0x29059c(0x201)](_0xb0e327);}const SKILLS_INSTALL_COMMAND_LINE=a129_0x10d0c9(0x1de);export async function skillsCommand(_0x48f4dc,_0xadbf78,_0x1c2848){const _0x1be7e3=a129_0x10d0c9;logger[_0x1be7e3(0x1ea)](process[_0x1be7e3(0x1e8)]());if(_0x1c2848?.[_0x1be7e3(0x203)]||_0x48f4dc==='--help'){showHelp();return;}console[_0x1be7e3(0x1e9)](_0x1be7e3(0x200)+(_0x48f4dc||_0x1be7e3(0x1fb))),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1eb)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1e0)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1f5)),console[_0x1be7e3(0x1e6)](''),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1fc)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1be7e3(0x1e9)]('skill',_0x1be7e3(0x1f7)+_0x48f4dc),process[_0x1be7e3(0x1f6)](0x1);}function showHelp(){const _0x334c40=a129_0x10d0c9;console[_0x334c40(0x1e6)](_0x334c40(0x202)+CLI_BIN_NAME+_0x334c40(0x1e2)+CLI_BIN_NAME+_0x334c40(0x1fd)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}