@lovrabet/lovrabet-cli 2.3.0-beta.3 → 2.3.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/sdk-client.js +1 -1
  107. package/lib/errors.js +1 -1
  108. package/lib/framework/build-all-flags.js +1 -1
  109. package/lib/framework/dryrun.js +1 -1
  110. package/lib/framework/flags.js +1 -1
  111. package/lib/framework/help.js +1 -1
  112. package/lib/framework/index.js +1 -1
  113. package/lib/framework/output.js +1 -1
  114. package/lib/framework/preparse.js +1 -1
  115. package/lib/framework/rate-limit.js +1 -1
  116. package/lib/framework/raw-flags.js +1 -1
  117. package/lib/framework/response.js +1 -1
  118. package/lib/framework/runner-confirmation.js +1 -1
  119. package/lib/framework/runner-error.js +1 -1
  120. package/lib/framework/runner.js +1 -1
  121. package/lib/framework/schema-export.js +1 -1
  122. package/lib/framework/service-order.js +1 -1
  123. package/lib/framework/types.js +1 -1
  124. package/lib/generated/build-info.d.ts +4 -4
  125. package/lib/generated/build-info.js +1 -1
  126. package/lib/help.js +1 -1
  127. package/lib/postinstall.js +1 -1
  128. package/lib/runtime/confirmation.js +1 -1
  129. package/lib/runtime/event.js +1 -1
  130. package/lib/runtime/index.js +1 -1
  131. package/lib/runtime/queue.js +1 -1
  132. package/lib/runtime/resolve.js +1 -1
  133. package/lib/skills/builtin-skill.js +1 -1
  134. package/lib/skills/npx-skills-add.js +1 -1
  135. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  136. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  137. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  138. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  139. package/lib/skills/runtime-skill-sync/links.js +1 -1
  140. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  141. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  142. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  143. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  144. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  145. package/lib/skills/runtime-skill-sync/push.js +1 -1
  146. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  147. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  148. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  149. package/lib/skills/runtime-skill-sync.js +1 -1
  150. package/lib/skills/skill-presence.js +1 -1
  151. package/lib/utils/access-key-redaction.js +1 -1
  152. package/lib/utils/apply-jq-filter.js +1 -1
  153. package/lib/utils/cli-version-check.js +1 -1
  154. package/lib/utils/cli-version-policy.js +1 -1
  155. package/lib/utils/logger.js +1 -1
  156. package/lib/utils/lossless-json.js +1 -1
  157. package/lib/utils/params.js +1 -1
  158. package/lib/utils/platform.js +1 -1
  159. package/lib/utils/update-notice.js +1 -1
  160. package/lib/utils/version.js +1 -1
  161. package/lib/utils/write-cli-side-channel.js +1 -1
  162. package/package.json +1 -1
  163. package/skills/lovrabet/SKILL.md +1 -1
  164. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x213560,_0x318da7){const _0x4cbed7=a27_0x41bf,_0x1694a4=_0x213560();while(!![]){try{const _0x1cdc19=parseInt(_0x4cbed7(0x115))/0x1*(parseInt(_0x4cbed7(0x10e))/0x2)+parseInt(_0x4cbed7(0x113))/0x3*(-parseInt(_0x4cbed7(0x10c))/0x4)+-parseInt(_0x4cbed7(0x117))/0x5+parseInt(_0x4cbed7(0x112))/0x6*(-parseInt(_0x4cbed7(0x111))/0x7)+-parseInt(_0x4cbed7(0x110))/0x8+-parseInt(_0x4cbed7(0x114))/0x9*(-parseInt(_0x4cbed7(0x116))/0xa)+parseInt(_0x4cbed7(0x10f))/0xb*(parseInt(_0x4cbed7(0x10d))/0xc);if(_0x1cdc19===_0x318da7)break;else _0x1694a4['push'](_0x1694a4['shift']());}catch(_0x1bed10){_0x1694a4['push'](_0x1694a4['shift']());}}}(a27_0x544f,0x29fe4));function a27_0x41bf(_0x4a1fa3,_0x144f9b){_0x4a1fa3=_0x4a1fa3-0x10c;const _0x544fab=a27_0x544f();let _0x41bfd1=_0x544fab[_0x4a1fa3];return _0x41bfd1;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0x544f(){const _0x51fc76=['68970bWPflb','124GeehLQ','696012nweNoQ','2jDftqd','11AhUpPv','1628384JtmlHX','902965ECXuIu','12rlkGcd','4821hzMGnj','252819TbUcoZ','330151bSHigq','110dReFkW'];a27_0x544f=function(){return _0x51fc76;};return a27_0x544f();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ function a27_0x34ef(_0x20035f,_0x4decdf){_0x20035f=_0x20035f-0x1b2;const _0x584949=a27_0x5849();let _0x34ef88=_0x584949[_0x20035f];return _0x34ef88;}(function(_0x2066c1,_0x4eba0e){const _0x185fa3=a27_0x34ef,_0x1051ae=_0x2066c1();while(!![]){try{const _0xbed78f=parseInt(_0x185fa3(0x1b8))/0x1*(parseInt(_0x185fa3(0x1b5))/0x2)+parseInt(_0x185fa3(0x1b6))/0x3+-parseInt(_0x185fa3(0x1b7))/0x4+-parseInt(_0x185fa3(0x1bb))/0x5+parseInt(_0x185fa3(0x1b3))/0x6*(-parseInt(_0x185fa3(0x1b4))/0x7)+-parseInt(_0x185fa3(0x1b9))/0x8+parseInt(_0x185fa3(0x1b2))/0x9*(parseInt(_0x185fa3(0x1ba))/0xa);if(_0xbed78f===_0x4eba0e)break;else _0x1051ae['push'](_0x1051ae['shift']());}catch(_0x1c06b6){_0x1051ae['push'](_0x1051ae['shift']());}}}(a27_0x5849,0x8a2c9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0x5849(){const _0x44a6d4=['3311528cPAnAi','3iVziQF','3774112MtRftD','120HGaNLF','4350275pCEzEk','1637865SXPyKD','57852wfATal','448SbzJbP','114498VWIkCm','2991549vNpxyW'];a27_0x5849=function(){return _0x44a6d4;};return a27_0x5849();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a28_0x155848=a28_0x326c;(function(_0x3d05f6,_0x46ac2e){const _0x1ab627=a28_0x326c,_0x8befcf=_0x3d05f6();while(!![]){try{const _0x4c03fc=parseInt(_0x1ab627(0xe8))/0x1*(-parseInt(_0x1ab627(0xf7))/0x2)+parseInt(_0x1ab627(0xf6))/0x3+-parseInt(_0x1ab627(0xed))/0x4+-parseInt(_0x1ab627(0xe9))/0x5+parseInt(_0x1ab627(0xff))/0x6*(-parseInt(_0x1ab627(0xe5))/0x7)+parseInt(_0x1ab627(0xf4))/0x8*(-parseInt(_0x1ab627(0xeb))/0x9)+parseInt(_0x1ab627(0xe7))/0xa;if(_0x4c03fc===_0x46ac2e)break;else _0x8befcf['push'](_0x8befcf['shift']());}catch(_0x26af4a){_0x8befcf['push'](_0x8befcf['shift']());}}}(a28_0xb9d4,0xac823));import{listDatasets}from'../../core/api-client.js';function a28_0x326c(_0x1d92f4,_0x22b661){_0x1d92f4=_0x1d92f4-0xe5;const _0xb9d4f2=a28_0xb9d4();let _0x326c05=_0xb9d4f2[_0x1d92f4];return _0x326c05;}import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0xb9d4(){const _0x1d6c47=['198HvydXN','name','description','allFields','datasetKey','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','source','36VikeKI','1237075XzFtkb','split','27873290Jnuzml','3386DBUrmF','4792010bPxzVp','read','198HfWGWn','tableName','1049224rWHpbo','map','str','length','code','string','dbtableConfig','248344vKUvdS','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','3655452OewCtL'];a28_0xb9d4=function(){return _0x1d6c47;};return a28_0xb9d4();}export const datasetList={'service':'dataset','command':'list','description':a28_0x155848(0xfd),'risk':a28_0x155848(0xea),'flags':[{'name':a28_0x155848(0xf8),'type':a28_0x155848(0xf2),'description':a28_0x155848(0xfc)},{...CODE_FLAG,'required':![],'description':a28_0x155848(0xf5)}],async 'execute'(_0x3ebed7){const _0x2492c6=a28_0x155848,_0x89fb5a=_0x3ebed7[_0x2492c6(0xef)]('name'),_0xabd838=_0x3ebed7['str'](_0x2492c6(0xf1)),_0x142e77=await listDatasets(_0x3ebed7['appCode'],{..._0x89fb5a&&{'name':_0x89fb5a},..._0xabd838&&{'code':_0xabd838}});return{'ok':!![],'data':{'total':_0x142e77[_0x2492c6(0xf0)],'datasets':_0x142e77['map'](_0x4c00cb=>{const _0xb54d44=_0x2492c6,_0x2d0bb1=_0x4c00cb[_0xb54d44(0xf3)]??{};return{'id':_0x4c00cb['id'],'code':_0x4c00cb['code'],'name':_0x4c00cb['name'],'source':_0x4c00cb[_0xb54d44(0xfe)],'description':_0x4c00cb[_0xb54d44(0xf9)],'table':_0x2d0bb1[_0xb54d44(0xec)],'datasetKey':_0x2d0bb1[_0xb54d44(0xfb)],'pk':_0x2d0bb1['pkField'],'fields':_0x2d0bb1['allFields']?_0x2d0bb1[_0xb54d44(0xfa)][_0xb54d44(0xe6)](',')[_0xb54d44(0xee)](_0x1d7080=>_0x1d7080['trim']()):[]};})}};}};
1
+ const a28_0x59269b=a28_0x4339;function a28_0x4339(_0x4ae997,_0xfcc69b){_0x4ae997=_0x4ae997-0x136;const _0x2326f7=a28_0x2326();let _0x433923=_0x2326f7[_0x4ae997];return _0x433923;}(function(_0x59becb,_0x135947){const _0x54ea39=a28_0x4339,_0x4972ce=_0x59becb();while(!![]){try{const _0x72b54f=parseInt(_0x54ea39(0x136))/0x1*(parseInt(_0x54ea39(0x142))/0x2)+-parseInt(_0x54ea39(0x137))/0x3+parseInt(_0x54ea39(0x140))/0x4*(-parseInt(_0x54ea39(0x13b))/0x5)+parseInt(_0x54ea39(0x14a))/0x6*(-parseInt(_0x54ea39(0x13e))/0x7)+parseInt(_0x54ea39(0x144))/0x8+-parseInt(_0x54ea39(0x139))/0x9*(-parseInt(_0x54ea39(0x147))/0xa)+parseInt(_0x54ea39(0x14b))/0xb;if(_0x72b54f===_0x135947)break;else _0x4972ce['push'](_0x4972ce['shift']());}catch(_0x2cd687){_0x4972ce['push'](_0x4972ce['shift']());}}}(a28_0x2326,0x42de7));import{listDatasets}from'../../core/api-client.js';function a28_0x2326(){const _0x56f3cf=['9kGbCom','allFields','3515dYRlbt','pkField','str','91etWIxU','code','2564BbZmlp','list','2vFVGoe','description','6616tEfqLM','tableName','dataset','4461620zAjmRJ','length','map','221028AxgFwi','8097485xxSgdN','split','name','source','string','read','287908RVBzVg','802860ZdjLer','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)'];a28_0x2326=function(){return _0x56f3cf;};return a28_0x2326();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x59269b(0x146),'command':a28_0x59269b(0x141),'description':a28_0x59269b(0x138),'risk':a28_0x59269b(0x150),'flags':[{'name':a28_0x59269b(0x14d),'type':a28_0x59269b(0x14f),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x3c112c){const _0x1b7643=a28_0x59269b,_0x2536ea=_0x3c112c[_0x1b7643(0x13d)](_0x1b7643(0x14d)),_0x14d568=_0x3c112c[_0x1b7643(0x13d)](_0x1b7643(0x13f)),_0x14a18a=await listDatasets(_0x3c112c['appCode'],{..._0x2536ea&&{'name':_0x2536ea},..._0x14d568&&{'code':_0x14d568}});return{'ok':!![],'data':{'total':_0x14a18a[_0x1b7643(0x148)],'datasets':_0x14a18a[_0x1b7643(0x149)](_0x246e2b=>{const _0x4f8b97=_0x1b7643,_0x130815=_0x246e2b['dbtableConfig']??{};return{'id':_0x246e2b['id'],'code':_0x246e2b[_0x4f8b97(0x13f)],'name':_0x246e2b[_0x4f8b97(0x14d)],'source':_0x246e2b[_0x4f8b97(0x14e)],'description':_0x246e2b[_0x4f8b97(0x143)],'table':_0x130815[_0x4f8b97(0x145)],'datasetKey':_0x130815['datasetKey'],'pk':_0x130815[_0x4f8b97(0x13c)],'fields':_0x130815[_0x4f8b97(0x13a)]?_0x130815[_0x4f8b97(0x13a)][_0x4f8b97(0x14c)](',')[_0x4f8b97(0x149)](_0x410fd9=>_0x410fd9['trim']()):[]};})}};}};
@@ -1 +1 @@
1
- const a29_0x2d05cc=a29_0x4c66;(function(_0x29ee24,_0x2e1d0d){const _0x25e8d7=a29_0x4c66,_0x319cf5=_0x29ee24();while(!![]){try{const _0x15dbbf=-parseInt(_0x25e8d7(0x11b))/0x1*(parseInt(_0x25e8d7(0x124))/0x2)+-parseInt(_0x25e8d7(0x11c))/0x3+-parseInt(_0x25e8d7(0x119))/0x4*(-parseInt(_0x25e8d7(0x11f))/0x5)+-parseInt(_0x25e8d7(0x125))/0x6*(-parseInt(_0x25e8d7(0x11d))/0x7)+parseInt(_0x25e8d7(0x126))/0x8*(parseInt(_0x25e8d7(0x121))/0x9)+parseInt(_0x25e8d7(0x123))/0xa+parseInt(_0x25e8d7(0x118))/0xb;if(_0x15dbbf===_0x2e1d0d)break;else _0x319cf5['push'](_0x319cf5['shift']());}catch(_0x8c3b70){_0x319cf5['push'](_0x319cf5['shift']());}}}(a29_0x1459,0x4d305));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';function a29_0x4c66(_0x3c07b1,_0x4dc8b5){_0x3c07b1=_0x3c07b1-0x116;const _0x1459b8=a29_0x1459();let _0x4c66df=_0x1459b8[_0x3c07b1];return _0x4c66df;}function a29_0x1459(){const _0x3ac8e5=['string','10877713okyvIR','6236fItLuE','str','4BsWwDW','1740867bcLPSe','7NwFPiA','trim','185YKgcOL','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','9dPgVme','dataset','1042260gHCTTc','193054FsRmAD','279642mdhIik','681304JuHxIp','read','appCode'];a29_0x1459=function(){return _0x3ac8e5;};return a29_0x1459();}export function formatDatasetSdkMarkdown(_0x53b0a6){const _0x850094=a29_0x4c66,_0x22411e=typeof _0x53b0a6===_0x850094(0x117)?_0x53b0a6[_0x850094(0x11e)]():'';return _0x22411e||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x2d05cc(0x122),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a29_0x2d05cc(0x127),'flags':[{...CODE_FLAG,'description':a29_0x2d05cc(0x120)}],async 'execute'(_0x4f5dd0){const _0x4f865b=a29_0x2d05cc,_0x581235=_0x4f5dd0[_0x4f865b(0x11a)]('code'),_0x1ae0d7=await getDatasetSdkUsageDoc(_0x581235,_0x4f5dd0[_0x4f865b(0x116)]);return{'ok':!![],'data':{'code':_0x581235,'appCode':_0x4f5dd0['appCode'],'markdown':formatDatasetSdkMarkdown(_0x1ae0d7)}};}};
1
+ function a29_0x41b2(){const _0x3b4e1c=['3522596HcOnce','762560qPYSYz','dataset','appCode','20408iGPbaa','code','string','read','95kIArMN','25603245YOuYsN','trim','441qHWftB','395730Gdrmpm','251280yDjygK','161434fEQoCP'];a29_0x41b2=function(){return _0x3b4e1c;};return a29_0x41b2();}const a29_0x58f2f7=a29_0x362f;(function(_0x4c9005,_0x37fb6c){const _0x473d8a=a29_0x362f,_0x518e70=_0x4c9005();while(!![]){try{const _0x19dfec=-parseInt(_0x473d8a(0x16c))/0x1+-parseInt(_0x473d8a(0x16e))/0x2+-parseInt(_0x473d8a(0x16b))/0x3*(parseInt(_0x473d8a(0x173))/0x4)+-parseInt(_0x473d8a(0x168))/0x5*(parseInt(_0x473d8a(0x16d))/0x6)+-parseInt(_0x473d8a(0x16f))/0x7+parseInt(_0x473d8a(0x170))/0x8+parseInt(_0x473d8a(0x169))/0x9;if(_0x19dfec===_0x37fb6c)break;else _0x518e70['push'](_0x518e70['shift']());}catch(_0x49084b){_0x518e70['push'](_0x518e70['shift']());}}}(a29_0x41b2,0x65410));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0x362f(_0x1c6cf6,_0x412feb){_0x1c6cf6=_0x1c6cf6-0x165;const _0x41b2a=a29_0x41b2();let _0x362f53=_0x41b2a[_0x1c6cf6];return _0x362f53;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0xfaf5bf){const _0x4c6819=a29_0x362f,_0x447ad1=typeof _0xfaf5bf===_0x4c6819(0x166)?_0xfaf5bf[_0x4c6819(0x16a)]():'';return _0x447ad1||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x58f2f7(0x171),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a29_0x58f2f7(0x167),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x298175){const _0x93e3d7=a29_0x58f2f7,_0x20de1e=_0x298175['str'](_0x93e3d7(0x165)),_0x36aae8=await getDatasetSdkUsageDoc(_0x20de1e,_0x298175[_0x93e3d7(0x172)]);return{'ok':!![],'data':{'code':_0x20de1e,'appCode':_0x298175['appCode'],'markdown':formatDatasetSdkMarkdown(_0x36aae8)}};}};
@@ -1 +1 @@
1
- const a30_0x13abd8=a30_0x3ca9;(function(_0x4d8fd0,_0x734a01){const _0x58c747=a30_0x3ca9,_0xe863e4=_0x4d8fd0();while(!![]){try{const _0x2d6136=parseInt(_0x58c747(0x1c0))/0x1*(-parseInt(_0x58c747(0x1e1))/0x2)+-parseInt(_0x58c747(0x1cb))/0x3*(-parseInt(_0x58c747(0x184))/0x4)+-parseInt(_0x58c747(0x185))/0x5*(parseInt(_0x58c747(0x1e7))/0x6)+-parseInt(_0x58c747(0x1ba))/0x7*(-parseInt(_0x58c747(0x1af))/0x8)+-parseInt(_0x58c747(0x1a1))/0x9*(parseInt(_0x58c747(0x1e3))/0xa)+-parseInt(_0x58c747(0x1ee))/0xb+parseInt(_0x58c747(0x1d2))/0xc*(parseInt(_0x58c747(0x1cd))/0xd);if(_0x2d6136===_0x734a01)break;else _0xe863e4['push'](_0xe863e4['shift']());}catch(_0x10ff09){_0xe863e4['push'](_0xe863e4['shift']());}}}(a30_0x1564,0x48106));import a30_0x3655ac from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a30_0x3ca9(_0x267f93,_0x4cd95a){_0x267f93=_0x267f93-0x175;const _0x156401=a30_0x1564();let _0x3ca9fd=_0x156401[_0x267f93];return _0x3ca9fd;}import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a30_0x1564(){const _0x5dac76=['projectConfig','\x20\x20Service\x20Tree','includes','\x20config','4ARjIPr','15vwAKXd','✓\x20current','✗\x20Invalid\x20JSON','repairCommand','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','prototype','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','red','missing','\x20doctor','\x20\x20API\x20Endpoints','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','source','locale','\x20\x20Config\x20Files','\x20\x20Legacy\x20inherit:\x20\x20\x20','installedPath','commandCount','services','Project','(not\x20set)','env','\x20+\x20','18324JxnIWq','accessKey','filter','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','padEnd','Global','\x20\x20Repair\x20project:\x20\x20\x20','platform','(no\x20file)','call','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Merged\x20Config','✓\x20Loaded','32gChvTl','log','version','\x20\x20Session\x20check:\x20\x20\x20','check','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','riskLevel','inherit','name','registryPath','828338plEtxA','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','ClientAk','currentApp','\x20\x20Auth','1csiHwQ','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','read','\x20\x20runtimeDomain:\x20\x20\x20','global','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20config\x20delete\x20inherit','state','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','916791AWYEBi','ignored\x20in\x20','10504PnnYik','(set,\x20length=','project','\x20\x20Skill\x20Version:\x20\x20\x20','(missing)','14292qVajuw','serviceCount','yellow','path','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(default:\x20','format','\x20\x20─','(none)','repeat','767458wrNmLu','verbose','2620IvVaiU','hasOwnProperty','join','message','331566nIKGMO','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','region','gray','doctor','status','length','3994573QASxRo','current','(default)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20(accessKey)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20auth\x20(effective):\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','reason','globalConfig','\x20commands)'];a30_0x1564=function(){return _0x5dac76;};return a30_0x1564();}async function execute(_0x19d150){const _0xf7b6b5=a30_0x3ca9,_0x383d3c=getCliVersion(),_0x32b68e=buildConfigFromFlags({});await initGlobalEnvironment(_0x32b68e),console[_0xf7b6b5(0x1b0)](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1b5)](CLI_BIN_NAME+_0xf7b6b5(0x18f))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)]('─'[_0xf7b6b5(0x1e0)](0x32))),console[_0xf7b6b5(0x1b0)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x383d3c),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x18b)+process[_0xf7b6b5(0x1b1)]),console[_0xf7b6b5(0x1b0)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xf7b6b5(0x1a9)]+'\x20'+process['arch']);const _0x291d63=inspectBuiltinSkill();console['log'](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['bold']('\x20\x20Built-in\x20Skill')),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1de)[_0xf7b6b5(0x1e0)](0x1e))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1d6)+(_0x291d63[_0xf7b6b5(0x1c9)]===_0xf7b6b5(0x1ef)?a30_0x3655ac[_0xf7b6b5(0x1c7)](_0xf7b6b5(0x186)):a30_0x3655ac[_0xf7b6b5(0x18d)]('✗\x20'+_0x291d63[_0xf7b6b5(0x1c9)]))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1c2)+_0x291d63['packageVersion']),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1d0)+(_0x291d63['skillVersion']||a30_0x3655ac['gray'](_0xf7b6b5(0x1d1)))),console[_0xf7b6b5(0x1b0)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x291d63[_0xf7b6b5(0x19a)]||a30_0x3655ac['gray'](_0xf7b6b5(0x192))));_0x291d63[_0xf7b6b5(0x1c9)]!==_0xf7b6b5(0x1ef)&&console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1d8)+_0x291d63[_0xf7b6b5(0x188)]);_0x291d63[_0xf7b6b5(0x17d)]&&console[_0xf7b6b5(0x1b0)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x291d63[_0xf7b6b5(0x17d)]);console[_0xf7b6b5(0x1b0)](),console['log'](a30_0x3655ac[_0xf7b6b5(0x1b5)](_0xf7b6b5(0x198))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['gray']('\x20\x20─'[_0xf7b6b5(0x1e0)](0x1e)));const _0x12f527=getGlobalConfigPath(),_0x34c919=getProjectConfigPath();console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1ca)+(_0x12f527||a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x192)))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x176)+(_0x34c919||a30_0x3655ac[_0xf7b6b5(0x1ea)]('(not\x20found)'))),console[_0xf7b6b5(0x1b0)](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1b5)]('\x20\x20Config\x20JSON')),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['gray'](_0xf7b6b5(0x1de)[_0xf7b6b5(0x1e0)](0x1e)));const _0x2b2ae5=(_0x34a846,_0x44d1ba)=>{const _0x3859d1=_0xf7b6b5;if(!_0x44d1ba){console[_0x3859d1(0x1b0)]('\x20\x20'+_0x34a846['padEnd'](0x11)+'\x20'+a30_0x3655ac[_0x3859d1(0x1ea)](_0x3859d1(0x1aa)));return;}const _0x4212ea=inspectCliConfigJsonFile(_0x44d1ba);if(_0x4212ea['status']==='ok')console['log']('\x20\x20'+_0x34a846['padEnd'](0x11)+'\x20'+a30_0x3655ac[_0x3859d1(0x1c7)](_0x3859d1(0x1bc)));else{if(_0x4212ea[_0x3859d1(0x1ec)]===_0x3859d1(0x18c))console[_0x3859d1(0x1b0)]('\x20\x20'+_0x34a846['padEnd'](0x11)+'\x20'+a30_0x3655ac['yellow'](_0x3859d1(0x1ac)));else _0x4212ea[_0x3859d1(0x1ec)]===_0x3859d1(0x18e)?console['log']('\x20\x20'+_0x34a846['padEnd'](0x11)+'\x20'+a30_0x3655ac['gray'](_0x3859d1(0x1d1))):(console['log']('\x20\x20'+_0x34a846[_0x3859d1(0x1a6)](0x11)+'\x20'+a30_0x3655ac[_0x3859d1(0x18d)](_0x3859d1(0x187))),console[_0x3859d1(0x1b0)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a30_0x3655ac[_0x3859d1(0x18d)](_0x4212ea['message'])));}};_0x2b2ae5(_0xf7b6b5(0x1a7),_0x12f527),_0x2b2ae5(_0xf7b6b5(0x19d),_0x34c919);const _0x13f5fa=loadRawConfigLayers(),_0x598fe2=[Object['prototype'][_0xf7b6b5(0x1e4)][_0xf7b6b5(0x1ab)](_0x13f5fa[_0xf7b6b5(0x17e)],_0xf7b6b5(0x1b7))?_0xf7b6b5(0x1c5):null,Object[_0xf7b6b5(0x18a)]['hasOwnProperty'][_0xf7b6b5(0x1ab)](_0x13f5fa[_0xf7b6b5(0x180)],'inherit')?_0xf7b6b5(0x1cf):null][_0xf7b6b5(0x1a3)](Boolean);_0x598fe2['length']>0x0&&(console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x199)+a30_0x3655ac['yellow'](_0xf7b6b5(0x1cc)+_0x598fe2[_0xf7b6b5(0x1e5)](_0xf7b6b5(0x1a0))+_0xf7b6b5(0x183))),_0x598fe2[_0xf7b6b5(0x182)](_0xf7b6b5(0x1cf))&&console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1a8)+CLI_BIN_NAME+_0xf7b6b5(0x1c8)),_0x598fe2[_0xf7b6b5(0x182)](_0xf7b6b5(0x1c5))&&console[_0xf7b6b5(0x1b0)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));console[_0xf7b6b5(0x1b0)](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['bold'](_0xf7b6b5(0x1ad))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1de)[_0xf7b6b5(0x1e0)](0x1e))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x191)+(_0x32b68e['appCode']||a30_0x3655ac['red'](_0xf7b6b5(0x19e)))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1d7)+_0x32b68e[_0xf7b6b5(0x19f)]),console[_0xf7b6b5(0x1b0)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+normalizeLovrabetRegion(_0x32b68e['raw'][_0xf7b6b5(0x1e9)])),console[_0xf7b6b5(0x1b0)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x32b68e[_0xf7b6b5(0x197)]),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x189)+(_0x32b68e[_0xf7b6b5(0x17a)]||a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1df)))),console['log'](_0xf7b6b5(0x1db)+(_0x32b68e[_0xf7b6b5(0x1be)]||a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1df)))),console['log'](_0xf7b6b5(0x193)+(_0x32b68e['format']||a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1dc)+DEFAULT_CONFIG_VALUES[_0xf7b6b5(0x1dd)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x32b68e['pageSize']??a30_0x3655ac['gray'](_0xf7b6b5(0x175)))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x17c)+_0x32b68e[_0xf7b6b5(0x1b6)]),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1da)+_0x32b68e[_0xf7b6b5(0x1e2)]),console['log'](_0xf7b6b5(0x17b)+AUTH_MODE[_0xf7b6b5(0x1bd)]),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1bb)+(_0x32b68e['accessKey']?a30_0x3655ac[_0xf7b6b5(0x1c7)](_0xf7b6b5(0x1ce)+_0x32b68e[_0xf7b6b5(0x1a2)][_0xf7b6b5(0x1ed)]+')'):a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1df)))),console[_0xf7b6b5(0x1b0)](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['bold'](_0xf7b6b5(0x190))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1de)[_0xf7b6b5(0x1e0)](0x1e))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1a4)+getApiDomain()),console['log'](_0xf7b6b5(0x195)+getUserDomain()),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1c4)+getRuntimeDomain()),console['log'](_0xf7b6b5(0x1c1)+getSkillDomain()),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1e8)+getKbDomain()),console['log'](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1b5)](_0xf7b6b5(0x181))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1de)[_0xf7b6b5(0x1e0)](0x1e)));const _0xf5d809=inspectServiceRegistry();console[_0xf7b6b5(0x1b0)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf5d809[_0xf7b6b5(0x1b9)]),console['log'](_0xf7b6b5(0x1b4)+formatServiceRegistryStatus(_0xf5d809)),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x179)+_0xf5d809[_0xf7b6b5(0x1d3)]),console['log'](_0xf7b6b5(0x1c6)+_0xf5d809[_0xf7b6b5(0x19b)]);for(const _0x391963 of _0xf5d809[_0xf7b6b5(0x19c)]){console[_0xf7b6b5(0x1b0)]('\x20\x20'+(_0x391963['serviceCode']+':')['padEnd'](0x11)+'\x20'+(_0x391963[_0xf7b6b5(0x1b8)]||a30_0x3655ac[_0xf7b6b5(0x1ea)]('(unnamed)'))+'\x20('+_0x391963[_0xf7b6b5(0x19b)]+_0xf7b6b5(0x17f)),console[_0xf7b6b5(0x1b0)]('\x20\x20'+''[_0xf7b6b5(0x1a6)](0x11)+'\x20Imported\x20from:\x20'+_0x391963[_0xf7b6b5(0x196)][_0xf7b6b5(0x1d5)]);}return console[_0xf7b6b5(0x1b0)](),console[_0xf7b6b5(0x1b0)](a30_0x3655ac['bold'](_0xf7b6b5(0x1bf))),console[_0xf7b6b5(0x1b0)](a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x1de)['repeat'](0x1e))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1d9)+a30_0x3655ac[_0xf7b6b5(0x1c7)](AUTH_MODE['ClientAk']+_0xf7b6b5(0x178))),console[_0xf7b6b5(0x1b0)](_0xf7b6b5(0x1b2)+a30_0x3655ac[_0xf7b6b5(0x1ea)](_0xf7b6b5(0x177))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1ec992){const _0x21486d=a30_0x3ca9;if(_0x1ec992[_0x21486d(0x1ec)]==='ok')return a30_0x3655ac[_0x21486d(0x1c7)](_0x21486d(0x1ae));if(_0x1ec992[_0x21486d(0x1ec)]===_0x21486d(0x18e))return a30_0x3655ac['gray']('(not\x20found)');if(_0x1ec992[_0x21486d(0x1ec)]===_0x21486d(0x18c))return a30_0x3655ac[_0x21486d(0x1d4)](_0x21486d(0x1a5));return a30_0x3655ac[_0x21486d(0x18d)]('✗\x20Invalid'+(_0x1ec992[_0x21486d(0x1e6)]?':\x20'+_0x1ec992[_0x21486d(0x1e6)]:''));}export const doctorDefinition={'service':a30_0x13abd8(0x1eb),'command':a30_0x13abd8(0x1b3),'description':a30_0x13abd8(0x194),'risk':a30_0x13abd8(0x1c3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x47d54d=a30_0x37e3;(function(_0x261bbe,_0x13b66c){const _0x4c486b=a30_0x37e3,_0xae4322=_0x261bbe();while(!![]){try{const _0x44940f=parseInt(_0x4c486b(0x1a4))/0x1*(parseInt(_0x4c486b(0x199))/0x2)+-parseInt(_0x4c486b(0x1b1))/0x3+-parseInt(_0x4c486b(0x17c))/0x4+-parseInt(_0x4c486b(0x162))/0x5*(parseInt(_0x4c486b(0x161))/0x6)+-parseInt(_0x4c486b(0x188))/0x7+-parseInt(_0x4c486b(0x19c))/0x8+-parseInt(_0x4c486b(0x16a))/0x9*(-parseInt(_0x4c486b(0x167))/0xa);if(_0x44940f===_0x13b66c)break;else _0xae4322['push'](_0xae4322['shift']());}catch(_0x50ca30){_0xae4322['push'](_0xae4322['shift']());}}}(a30_0x2592,0xe9846));import a30_0x5a00f4 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x3fa64b){const _0xbc4042=a30_0x37e3,_0x14e236=getCliVersion(),_0x4484f1=buildConfigFromFlags({});await initGlobalEnvironment(_0x4484f1),console['log'](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)](CLI_BIN_NAME+_0xbc4042(0x1bd))),console['log'](a30_0x5a00f4[_0xbc4042(0x1a1)]('─'[_0xbc4042(0x177)](0x32))),console[_0xbc4042(0x1ad)](_0xbc4042(0x19e)+_0x14e236),console[_0xbc4042(0x1ad)](_0xbc4042(0x198)+process['version']),console[_0xbc4042(0x1ad)](_0xbc4042(0x182)+process[_0xbc4042(0x15d)]+'\x20'+process[_0xbc4042(0x17a)]);const _0x4726c1=inspectBuiltinSkill();console[_0xbc4042(0x1ad)](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)]('\x20\x20Built-in\x20Skill')),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x1a1)]('\x20\x20─'[_0xbc4042(0x177)](0x1e))),console['log'](_0xbc4042(0x18a)+(_0x4726c1[_0xbc4042(0x180)]===_0xbc4042(0x1a3)?a30_0x5a00f4[_0xbc4042(0x196)](_0xbc4042(0x15f)):a30_0x5a00f4[_0xbc4042(0x1ae)]('✗\x20'+_0x4726c1[_0xbc4042(0x180)]))),console[_0xbc4042(0x1ad)]('\x20\x20Package\x20Version:\x20'+_0x4726c1[_0xbc4042(0x16f)]),console[_0xbc4042(0x1ad)](_0xbc4042(0x186)+(_0x4726c1[_0xbc4042(0x165)]||a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x187)))),console[_0xbc4042(0x1ad)](_0xbc4042(0x15a)+(_0x4726c1[_0xbc4042(0x19d)]||a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x16d))));_0x4726c1[_0xbc4042(0x180)]!==_0xbc4042(0x1a3)&&console[_0xbc4042(0x1ad)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4726c1['repairCommand']);_0x4726c1[_0xbc4042(0x191)]&&console[_0xbc4042(0x1ad)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4726c1[_0xbc4042(0x191)]);console[_0xbc4042(0x1ad)](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)](_0xbc4042(0x1bf))),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1a9)[_0xbc4042(0x177)](0x1e)));const _0x2f40a1=getGlobalConfigPath(),_0x2b3c1c=getProjectConfigPath();console[_0xbc4042(0x1ad)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2f40a1||a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x16d)))),console[_0xbc4042(0x1ad)](_0xbc4042(0x1c5)+(_0x2b3c1c||a30_0x5a00f4['gray']('(not\x20found)'))),console['log'](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)](_0xbc4042(0x1c8))),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1a9)[_0xbc4042(0x177)](0x1e)));const _0x3ce17a=(_0x57a33a,_0x15c788)=>{const _0x630ed0=_0xbc4042;if(!_0x15c788){console[_0x630ed0(0x1ad)]('\x20\x20'+_0x57a33a[_0x630ed0(0x1b3)](0x11)+'\x20'+a30_0x5a00f4[_0x630ed0(0x1a1)](_0x630ed0(0x15c)));return;}const _0x3c6a56=inspectCliConfigJsonFile(_0x15c788);if(_0x3c6a56[_0x630ed0(0x16b)]==='ok')console['log']('\x20\x20'+_0x57a33a[_0x630ed0(0x1b3)](0x11)+'\x20'+a30_0x5a00f4[_0x630ed0(0x196)]('✓\x20Valid\x20JSON'));else{if(_0x3c6a56[_0x630ed0(0x16b)]==='empty')console[_0x630ed0(0x1ad)]('\x20\x20'+_0x57a33a[_0x630ed0(0x1b3)](0x11)+'\x20'+a30_0x5a00f4[_0x630ed0(0x175)](_0x630ed0(0x1c3)));else _0x3c6a56['status']==='missing'?console[_0x630ed0(0x1ad)]('\x20\x20'+_0x57a33a[_0x630ed0(0x1b3)](0x11)+'\x20'+a30_0x5a00f4['gray'](_0x630ed0(0x187))):(console[_0x630ed0(0x1ad)]('\x20\x20'+_0x57a33a['padEnd'](0x11)+'\x20'+a30_0x5a00f4['red'](_0x630ed0(0x1c4))),console[_0x630ed0(0x1ad)]('\x20\x20'+''[_0x630ed0(0x1b3)](0x11)+'\x20'+a30_0x5a00f4['red'](_0x3c6a56[_0x630ed0(0x173)])));}};_0x3ce17a('Global',_0x2f40a1),_0x3ce17a(_0xbc4042(0x197),_0x2b3c1c);const _0xe2419=loadRawConfigLayers(),_0x3800d2=[Object[_0xbc4042(0x1ca)][_0xbc4042(0x19b)][_0xbc4042(0x17b)](_0xe2419[_0xbc4042(0x192)],_0xbc4042(0x15e))?'global':null,Object[_0xbc4042(0x1ca)][_0xbc4042(0x19b)][_0xbc4042(0x17b)](_0xe2419['projectConfig'],_0xbc4042(0x15e))?_0xbc4042(0x17e):null][_0xbc4042(0x160)](Boolean);_0x3800d2[_0xbc4042(0x18f)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x5a00f4[_0xbc4042(0x175)](_0xbc4042(0x1b6)+_0x3800d2[_0xbc4042(0x179)](_0xbc4042(0x193))+_0xbc4042(0x183))),_0x3800d2[_0xbc4042(0x170)](_0xbc4042(0x17e))&&console['log'](_0xbc4042(0x1b4)+CLI_BIN_NAME+_0xbc4042(0x1c7)),_0x3800d2['includes'](_0xbc4042(0x1b9))&&console[_0xbc4042(0x1ad)](_0xbc4042(0x194)+CLI_BIN_NAME+_0xbc4042(0x17d)));console[_0xbc4042(0x1ad)](),console[_0xbc4042(0x1ad)](a30_0x5a00f4['bold']('\x20\x20Merged\x20Config')),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1a9)[_0xbc4042(0x177)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4484f1[_0xbc4042(0x16c)]||a30_0x5a00f4['red'](_0xbc4042(0x163)))),console[_0xbc4042(0x1ad)](_0xbc4042(0x169)+_0x4484f1['env']),console[_0xbc4042(0x1ad)](_0xbc4042(0x1ba)+normalizeLovrabetRegion(_0x4484f1[_0xbc4042(0x1a8)]['region'])),console[_0xbc4042(0x1ad)](_0xbc4042(0x172)+_0x4484f1[_0xbc4042(0x1ac)]),console[_0xbc4042(0x1ad)](_0xbc4042(0x15b)+(_0x4484f1['defaultApp']||a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x195)))),console[_0xbc4042(0x1ad)](_0xbc4042(0x1a0)+(_0x4484f1[_0xbc4042(0x1cb)]||a30_0x5a00f4['gray'](_0xbc4042(0x195)))),console[_0xbc4042(0x1ad)](_0xbc4042(0x1a2)+(_0x4484f1[_0xbc4042(0x18d)]||a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x184)+DEFAULT_CONFIG_VALUES[_0xbc4042(0x18d)]+')'))),console[_0xbc4042(0x1ad)](_0xbc4042(0x178)+(_0x4484f1['pageSize']??a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1bc)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4484f1[_0xbc4042(0x19a)]),console[_0xbc4042(0x1ad)](_0xbc4042(0x17f)+_0x4484f1[_0xbc4042(0x1b5)]),console['log'](_0xbc4042(0x185)+AUTH_MODE[_0xbc4042(0x1c2)]),console['log'](_0xbc4042(0x181)+(_0x4484f1['accessKey']?a30_0x5a00f4[_0xbc4042(0x196)](_0xbc4042(0x190)+_0x4484f1[_0xbc4042(0x19f)][_0xbc4042(0x18f)]+')'):a30_0x5a00f4['gray']('(none)'))),console[_0xbc4042(0x1ad)](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)](_0xbc4042(0x1c6))),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1a9)[_0xbc4042(0x177)](0x1e))),console[_0xbc4042(0x1ad)](_0xbc4042(0x18c)+getApiDomain()),console[_0xbc4042(0x1ad)](_0xbc4042(0x171)+getUserDomain()),console[_0xbc4042(0x1ad)](_0xbc4042(0x174)+getRuntimeDomain()),console[_0xbc4042(0x1ad)](_0xbc4042(0x1c9)+getSkillDomain()),console[_0xbc4042(0x1ad)](_0xbc4042(0x1b7)+getKbDomain()),console['log'](),console['log'](a30_0x5a00f4[_0xbc4042(0x166)](_0xbc4042(0x176))),console['log'](a30_0x5a00f4[_0xbc4042(0x1a1)](_0xbc4042(0x1a9)[_0xbc4042(0x177)](0x1e)));const _0x2a8794=inspectServiceRegistry();console[_0xbc4042(0x1ad)](_0xbc4042(0x1aa)+_0x2a8794['registryPath']),console[_0xbc4042(0x1ad)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x2a8794)),console[_0xbc4042(0x1ad)](_0xbc4042(0x1bb)+_0x2a8794[_0xbc4042(0x18b)]),console[_0xbc4042(0x1ad)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2a8794[_0xbc4042(0x168)]);for(const _0x5a1839 of _0x2a8794[_0xbc4042(0x1be)]){console[_0xbc4042(0x1ad)]('\x20\x20'+(_0x5a1839[_0xbc4042(0x1b2)]+':')[_0xbc4042(0x1b3)](0x11)+'\x20'+(_0x5a1839[_0xbc4042(0x1a7)]||a30_0x5a00f4['gray'](_0xbc4042(0x1a5)))+'\x20('+_0x5a1839['commandCount']+'\x20commands)'),console[_0xbc4042(0x1ad)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x5a1839[_0xbc4042(0x189)]['path']);}return console['log'](),console[_0xbc4042(0x1ad)](a30_0x5a00f4[_0xbc4042(0x166)]('\x20\x20Auth')),console['log'](a30_0x5a00f4[_0xbc4042(0x1a1)]('\x20\x20─'['repeat'](0x1e))),console[_0xbc4042(0x1ad)](_0xbc4042(0x1b8)+a30_0x5a00f4[_0xbc4042(0x196)](AUTH_MODE[_0xbc4042(0x1c2)]+_0xbc4042(0x16e))),console[_0xbc4042(0x1ad)](_0xbc4042(0x1af)+a30_0x5a00f4['gray'](_0xbc4042(0x1c1))),console[_0xbc4042(0x1ad)](),{'ok':!![]};}function a30_0x37e3(_0x3c685c,_0x319325){_0x3c685c=_0x3c685c-0x15a;const _0x25927d=a30_0x2592();let _0x37e3e8=_0x25927d[_0x3c685c];return _0x37e3e8;}function formatServiceRegistryStatus(_0x208593){const _0x1edcf4=a30_0x37e3;if(_0x208593[_0x1edcf4(0x16b)]==='ok')return a30_0x5a00f4['green'](_0x1edcf4(0x164));if(_0x208593[_0x1edcf4(0x16b)]===_0x1edcf4(0x1ab))return a30_0x5a00f4[_0x1edcf4(0x1a1)]('(not\x20found)');if(_0x208593[_0x1edcf4(0x16b)]==='empty')return a30_0x5a00f4['yellow'](_0x1edcf4(0x1a6));return a30_0x5a00f4[_0x1edcf4(0x1ae)](_0x1edcf4(0x18e)+(_0x208593['message']?':\x20'+_0x208593[_0x1edcf4(0x173)]:''));}function a30_0x2592(){const _0x10ca4c=['✓\x20Loaded','skillVersion','bold','10FzTMtL','commandCount','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','46800234NUgAqC','status','appCode','(not\x20found)','\x20(accessKey)','packageVersion','includes','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','message','\x20\x20runtimeDomain:\x20\x20\x20','yellow','\x20\x20Service\x20Tree','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','join','arch','call','7625636ymGmrl','\x20config\x20delete\x20inherit\x20--global','project','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','(default:\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Skill\x20Version:\x20\x20\x20','(missing)','11464369NTtwaI','source','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','format','✗\x20Invalid','length','(set,\x20length=','reason','globalConfig','\x20+\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','(none)','green','Project','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','128mUesgy','riskLevel','hasOwnProperty','5125104knMGqG','installedPath','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','accessKey','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','gray','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','24085TxkaWA','(unnamed)','⚠\x20Empty','name','raw','\x20\x20─','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','missing','locale','log','red','\x20\x20Session\x20check:\x20\x20\x20','check','405843kadeDE','serviceCode','padEnd','\x20\x20Repair\x20project:\x20\x20\x20','verbose','ignored\x20in\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20doctor','services','\x20\x20Config\x20Files','doctor','(removed\x20—\x20cookie\x20auth\x20disabled)','ClientAk','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Invalid\x20JSON','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20config\x20delete\x20inherit','\x20\x20Config\x20JSON','\x20\x20skillDomain:\x20\x20\x20\x20\x20','prototype','currentApp','\x20\x20Installed\x20Path:\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','platform','inherit','✓\x20current','filter','6sCLsXZ','7324425cfouZf','(not\x20set)'];a30_0x2592=function(){return _0x10ca4c;};return a30_0x2592();}export const doctorDefinition={'service':a30_0x47d54d(0x1c0),'command':a30_0x47d54d(0x1b0),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x4bb0f9=a31_0x1495;(function(_0x4e6dfd,_0x35407f){const _0x4b637e=a31_0x1495,_0x4388b4=_0x4e6dfd();while(!![]){try{const _0x10fe38=-parseInt(_0x4b637e(0x164))/0x1*(-parseInt(_0x4b637e(0x16a))/0x2)+parseInt(_0x4b637e(0x166))/0x3*(parseInt(_0x4b637e(0x152))/0x4)+-parseInt(_0x4b637e(0x171))/0x5*(parseInt(_0x4b637e(0x14f))/0x6)+parseInt(_0x4b637e(0x16b))/0x7+-parseInt(_0x4b637e(0x170))/0x8*(parseInt(_0x4b637e(0x155))/0x9)+parseInt(_0x4b637e(0x15d))/0xa*(parseInt(_0x4b637e(0x162))/0xb)+parseInt(_0x4b637e(0x15b))/0xc*(-parseInt(_0x4b637e(0x16e))/0xd);if(_0x10fe38===_0x35407f)break;else _0x4388b4['push'](_0x4388b4['shift']());}catch(_0x1c2655){_0x4388b4['push'](_0x4388b4['shift']());}}}(a31_0x9cb2,0x5bafb));function a31_0x1495(_0x2a4fab,_0x4a691a){_0x2a4fab=_0x2a4fab-0x14a;const _0x9cb2a2=a31_0x9cb2();let _0x14959d=_0x9cb2a2[_0x2a4fab];return _0x14959d;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4bb0f9(0x14a),'type':'string','required':!![],'description':a31_0x4bb0f9(0x14d)},FILEPATH_FLAG={'name':'filepath','type':a31_0x4bb0f9(0x161),'required':!![],'description':a31_0x4bb0f9(0x14e)},DOWNLOAD_FLAG={'name':a31_0x4bb0f9(0x158),'type':'boolean','description':a31_0x4bb0f9(0x14c)},LONG_TERM_FLAG={'name':a31_0x4bb0f9(0x16f),'type':'boolean','description':a31_0x4bb0f9(0x16d)};function requireFilePath(_0x238224){const _0xd9528a=a31_0x4bb0f9,_0x6da84a=_0x238224['trim']();if(!_0x6da84a)throw CliErrors['validation'](_0xd9528a(0x154));return _0x6da84a;}function a31_0x9cb2(){const _0x414711=['.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','File','string','121bAdDpF','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','166335YpeGiV','Preview:\x20upload\x20','1695NRLuRU','bool','\x20to\x20runtime\x20app\x20','build','2dnGXAy','3519481AOvBPJ','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','70954txTTJv','long-term','22912DfuVJk','10xREjuL','file','read','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','127614CniXyA','/client/uploadFile','path','812elzOoQ','filepath','filePath\x20is\x20required.','2259Ecfgcq','POST','description','download','appCode','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','312WnxeQm','str','450040dAqeBK'];a31_0x9cb2=function(){return _0x414711;};return a31_0x9cb2();}const fileUpload={'service':'file','command':'upload','description':a31_0x4bb0f9(0x163),'risk':a31_0x4bb0f9(0x14b),'flags':[FILE_FLAG],async 'dryRun'(_0x462c8c){const _0x6fc552=a31_0x4bb0f9,_0xfdd44d=requireRuntimeUploadFile(_0x462c8c[_0x6fc552(0x15c)](_0x6fc552(0x14a)),_0x6fc552(0x160));return dryRun(_0x6fc552(0x156),_0x6fc552(0x150))['body']({'appCode':_0x462c8c[_0x6fc552(0x159)],'multipart':{'file':_0xfdd44d}})[_0x6fc552(0x157)](_0x6fc552(0x165)+_0xfdd44d[_0x6fc552(0x151)]+_0x6fc552(0x168)+_0x462c8c[_0x6fc552(0x159)])[_0x6fc552(0x169)]();},async 'execute'(_0x3e78c4){const _0xe05bca=a31_0x4bb0f9,_0x13c159=requireRuntimeUploadFile(_0x3e78c4[_0xe05bca(0x15c)](_0xe05bca(0x14a)),_0xe05bca(0x160)),_0x1c3a66=await uploadRuntimeFile(_0x3e78c4[_0xe05bca(0x159)],_0x13c159['path']);return{'ok':!![],'data':_0x1c3a66,'message':_0x1c3a66['filePath']?_0xe05bca(0x15f)+_0x1c3a66['filePath']+_0xe05bca(0x15e):_0xe05bca(0x15a)};}},fileQueryUrl={'service':'file','command':'query-url','description':a31_0x4bb0f9(0x16c),'risk':a31_0x4bb0f9(0x14b),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4d2571){const _0x37059c=a31_0x4bb0f9,_0x17734c=requireFilePath(_0x4d2571[_0x37059c(0x15c)](_0x37059c(0x153))),_0x1fdeb7=await queryRuntimeFileUrl(_0x17734c,{'download':_0x4d2571[_0x37059c(0x167)](_0x37059c(0x158)),'longTerm':_0x4d2571[_0x37059c(0x167)](_0x37059c(0x16f))});return{'ok':!![],'data':_0x1fdeb7};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x8cb38f=a31_0x48bf;(function(_0x3e2bbe,_0x2e5de5){const _0x582b9b=a31_0x48bf,_0x44c3dd=_0x3e2bbe();while(!![]){try{const _0x3c4b29=-parseInt(_0x582b9b(0x1c4))/0x1*(parseInt(_0x582b9b(0x1ac))/0x2)+parseInt(_0x582b9b(0x1c5))/0x3+-parseInt(_0x582b9b(0x1b4))/0x4+-parseInt(_0x582b9b(0x1ba))/0x5+parseInt(_0x582b9b(0x1bf))/0x6*(parseInt(_0x582b9b(0x1aa))/0x7)+-parseInt(_0x582b9b(0x1af))/0x8*(-parseInt(_0x582b9b(0x1b7))/0x9)+-parseInt(_0x582b9b(0x1a7))/0xa*(-parseInt(_0x582b9b(0x1ad))/0xb);if(_0x3c4b29===_0x2e5de5)break;else _0x44c3dd['push'](_0x44c3dd['shift']());}catch(_0x312804){_0x44c3dd['push'](_0x44c3dd['shift']());}}}(a31_0x1f05,0xb0a26));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a31_0x8cb38f(0x1a3),'required':!![],'description':a31_0x8cb38f(0x1a5)},FILEPATH_FLAG={'name':'filepath','type':a31_0x8cb38f(0x1a3),'required':!![],'description':a31_0x8cb38f(0x1b0)},DOWNLOAD_FLAG={'name':a31_0x8cb38f(0x1b1),'type':a31_0x8cb38f(0x1c0),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a31_0x8cb38f(0x1b5),'type':a31_0x8cb38f(0x1c0),'description':a31_0x8cb38f(0x1bb)};function a31_0x48bf(_0x2e8153,_0x53cb09){_0x2e8153=_0x2e8153-0x1a3;const _0x1f0507=a31_0x1f05();let _0x48bf60=_0x1f0507[_0x2e8153];return _0x48bf60;}function requireFilePath(_0x121c56){const _0x58fc8c=a31_0x8cb38f,_0x1f0c97=_0x121c56[_0x58fc8c(0x1a9)]();if(!_0x1f0c97)throw CliErrors['validation'](_0x58fc8c(0x1c6));return _0x1f0c97;}function a31_0x1f05(){const _0x22000e=['/client/uploadFile','3072200oNjfoD','long-term','Preview:\x20upload\x20','306NzbILc','POST','build','6434440dVmksd','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filePath','upload','description','6JzGEwq','boolean','file','read','path','1CySTWC','487626ZAjzGO','filePath\x20is\x20required.','body','filepath','Uploaded\x20file:\x20','string','\x20to\x20runtime\x20app\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','appCode','942530DSzSZc','File','trim','5750619KbEvyQ','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1275038wSnrmf','242SlTZsQ','bool','84312IRffDx','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','str'];a31_0x1f05=function(){return _0x22000e;};return a31_0x1f05();}const fileUpload={'service':a31_0x8cb38f(0x1c1),'command':a31_0x8cb38f(0x1bd),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x1ef523){const _0x4ee7da=a31_0x8cb38f,_0x35fff5=requireRuntimeUploadFile(_0x1ef523['str']('file'),'File');return dryRun(_0x4ee7da(0x1b8),_0x4ee7da(0x1b3))[_0x4ee7da(0x1c7)]({'appCode':_0x1ef523[_0x4ee7da(0x1a6)],'multipart':{'file':_0x35fff5}})[_0x4ee7da(0x1be)](_0x4ee7da(0x1b6)+_0x35fff5[_0x4ee7da(0x1c3)]+_0x4ee7da(0x1a4)+_0x1ef523[_0x4ee7da(0x1a6)])[_0x4ee7da(0x1b9)]();},async 'execute'(_0x1e310a){const _0x227878=a31_0x8cb38f,_0x1961de=requireRuntimeUploadFile(_0x1e310a['str']('file'),_0x227878(0x1a8)),_0x2ec711=await uploadRuntimeFile(_0x1e310a['appCode'],_0x1961de[_0x227878(0x1c3)]);return{'ok':!![],'data':_0x2ec711,'message':_0x2ec711[_0x227878(0x1bc)]?_0x227878(0x1c9)+_0x2ec711[_0x227878(0x1bc)]+_0x227878(0x1ab):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a31_0x8cb38f(0x1c1),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a31_0x8cb38f(0x1c2),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x309eeb){const _0x46907f=a31_0x8cb38f,_0x298713=requireFilePath(_0x309eeb[_0x46907f(0x1b2)](_0x46907f(0x1c8))),_0x58cd35=await queryRuntimeFileUrl(_0x298713,{'download':_0x309eeb['bool'](_0x46907f(0x1b1)),'longTerm':_0x309eeb[_0x46907f(0x1ae)]('long-term')});return{'ok':!![],'data':_0x58cd35};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a32_0x4a48(_0x2e9831,_0x856c19){_0x2e9831=_0x2e9831-0x10e;const _0x58f510=a32_0x58f5();let _0x4a4859=_0x58f510[_0x2e9831];return _0x4a4859;}const a32_0x201852=a32_0x4a48;(function(_0x453211,_0x3059d3){const _0x13080b=a32_0x4a48,_0x1a8b1a=_0x453211();while(!![]){try{const _0x34d92d=parseInt(_0x13080b(0x138))/0x1*(-parseInt(_0x13080b(0x115))/0x2)+parseInt(_0x13080b(0x112))/0x3+-parseInt(_0x13080b(0x12a))/0x4+parseInt(_0x13080b(0x130))/0x5+parseInt(_0x13080b(0x117))/0x6+parseInt(_0x13080b(0x121))/0x7*(-parseInt(_0x13080b(0x12d))/0x8)+parseInt(_0x13080b(0x12e))/0x9;if(_0x34d92d===_0x3059d3)break;else _0x1a8b1a['push'](_0x1a8b1a['shift']());}catch(_0x56e461){_0x1a8b1a['push'](_0x1a8b1a['shift']());}}}(a32_0x58f5,0x59781));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x58f5(){const _0x5d47fc=['entries','\x20\x20config:\x20\x20','includes','object','100553CvqJcC','riskLevel','Source\x20file\x20not\x20found:\x20','env','Override\x20imported\x20default\x20env','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','281895PWXphJ','message','global','2tpdsFA','join','2520030FweLmK','Skip\x20confirmation\x20when\x20overwriting','utf8','file','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','boolean','app','parse','defaultApp','Failed\x20to\x20parse\x20source\x20file:\x20','1785cFaqpH',')\x20instead\x20of\x20project','appcode','project','log','yes','Imported\x20from\x20','\x22.\x20Allowed:\x20','\x20\x20appcode:\x20','645036zjKHDX','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Invalid\x20env\x20\x22','18464FBdXOZ','1539603wACYKL','apps','2658900uaKhpp','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','validation','string'];a32_0x58f5=function(){return _0x5d47fc;};return a32_0x58f5();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x201852(0x11a),'type':a32_0x201852(0x133),'description':a32_0x201852(0x11b),'required':!![]},{'name':a32_0x201852(0x123),'type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':a32_0x201852(0x10f),'type':a32_0x201852(0x133),'description':a32_0x201852(0x110),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a32_0x201852(0x11c),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+a32_0x201852(0x122),'default':![]},{'name':a32_0x201852(0x126),'type':a32_0x201852(0x11c),'description':a32_0x201852(0x118),'default':![]}];export async function runAppImport(_0xbddf1e){const _0x7534a5=a32_0x201852,_0x461e9d=_0xbddf1e['global']?_0x7534a5(0x114):_0x7534a5(0x124),_0x461e41=resolveWriteConfigPath(_0x461e9d);await runFromImport(_0xbddf1e,_0x461e41);}async function runFromImport(_0x50374c,_0x288c93){const _0x55da70=a32_0x201852,_0x2b4273=resolveFilePath(_0x50374c[_0x55da70(0x11a)]);if(!existsSync(_0x2b4273))throw CliErrors['validation'](_0x55da70(0x10e)+_0x2b4273);const _0x1e0595=readSourceFile(_0x2b4273),_0x4b0bc1=convertToRuntimeConfig(_0x1e0595);_0x50374c[_0x55da70(0x123)]&&(_0x4b0bc1['appcode']=String(_0x50374c[_0x55da70(0x123)]));_0x50374c[_0x55da70(0x10f)]&&(_0x4b0bc1[_0x55da70(0x10f)]=resolveImportEnv(_0x50374c));if(!_0x4b0bc1[_0x55da70(0x123)])throw CliErrors[_0x55da70(0x132)](_0x55da70(0x111),_0x55da70(0x131));await writeImportConfig(_0x288c93,_0x4b0bc1,_0x50374c),console[_0x55da70(0x125)](_0x55da70(0x127)+_0x2b4273),console[_0x55da70(0x125)](_0x55da70(0x135)+_0x288c93),console['log'](_0x55da70(0x129)+_0x4b0bc1['appcode']);if(_0x4b0bc1[_0x55da70(0x11f)])console[_0x55da70(0x125)]('\x20\x20default:\x20'+_0x4b0bc1[_0x55da70(0x11f)]);}function convertToRuntimeConfig(_0x12f377){const _0x5e9689=a32_0x201852;if(_0x12f377[_0x5e9689(0x12f)]&&typeof _0x12f377['apps']===_0x5e9689(0x137))throw CliErrors[_0x5e9689(0x132)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x5e9689(0x12b));const _0x3ebee0={};for(const _0x20391b of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x12f377[_0x20391b]!==undefined&&(_0x3ebee0[_0x20391b]=_0x12f377[_0x20391b]);}return!_0x3ebee0[_0x5e9689(0x139)]&&(_0x3ebee0[_0x5e9689(0x139)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x3ebee0;}async function writeImportConfig(_0x342425,_0x35c9ec,_0x1f65e2){const _0x21d28e=a32_0x201852;let _0x1616b2={};existsSync(_0x342425)&&!_0x1f65e2[_0x21d28e(0x126)]&&(_0x1616b2=readConfigFile(_0x342425));for(const [_0x20662a,_0x109706]of Object[_0x21d28e(0x134)](_0x35c9ec)){_0x109706!==undefined&&(_0x1616b2[_0x20662a]=_0x109706);}if(_0x1616b2[_0x21d28e(0x11d)])delete _0x1616b2[_0x21d28e(0x11d)];writeConfigFile(_0x342425,_0x1616b2);}function resolveFilePath(_0x2fd152){return isAbsolute(_0x2fd152)?_0x2fd152:resolve(process['cwd'](),_0x2fd152);}function readSourceFile(_0x94ca9d){const _0x3cb943=a32_0x201852;try{const _0x273646=readFileSync(_0x94ca9d,{'encoding':_0x3cb943(0x119)});return JSON[_0x3cb943(0x11e)](_0x273646);}catch(_0x5daa70){throw CliErrors['validation'](_0x3cb943(0x120)+_0x5daa70[_0x3cb943(0x113)]);}}function resolveImportEnv(_0x1de6f0){const _0x379dc0=a32_0x201852,_0x264ca8=_0x1de6f0[_0x379dc0(0x10f)];if(_0x264ca8===undefined||_0x264ca8==='')return DEFAULT_CONFIG_VALUES[_0x379dc0(0x10f)];if(!RUNTIME_ENV_VALUES[_0x379dc0(0x136)](_0x264ca8))throw CliErrors[_0x379dc0(0x132)](_0x379dc0(0x12c)+_0x264ca8+_0x379dc0(0x128)+RUNTIME_ENV_VALUES[_0x379dc0(0x116)](',\x20'));return _0x264ca8;}
1
+ const a32_0x1fd1fb=a32_0x9fb7;(function(_0x195f7e,_0x5c6be3){const _0x4c9cba=a32_0x9fb7,_0x59ddd4=_0x195f7e();while(!![]){try{const _0xe39601=-parseInt(_0x4c9cba(0x95))/0x1+parseInt(_0x4c9cba(0xa0))/0x2*(-parseInt(_0x4c9cba(0x7a))/0x3)+parseInt(_0x4c9cba(0x9f))/0x4*(parseInt(_0x4c9cba(0x9c))/0x5)+-parseInt(_0x4c9cba(0x80))/0x6*(parseInt(_0x4c9cba(0x78))/0x7)+-parseInt(_0x4c9cba(0x92))/0x8+parseInt(_0x4c9cba(0x89))/0x9+parseInt(_0x4c9cba(0x91))/0xa;if(_0xe39601===_0x5c6be3)break;else _0x59ddd4['push'](_0x59ddd4['shift']());}catch(_0x11fa7b){_0x59ddd4['push'](_0x59ddd4['shift']());}}}(a32_0x1a5b,0x83c87));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a32_0x9fb7(_0x5bc741,_0x3f7ac8){_0x5bc741=_0x5bc741-0x74;const _0x1a5b04=a32_0x1a5b();let _0x9fb75e=_0x1a5b04[_0x5bc741];return _0x9fb75e;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x1fd1fb(0x8c),'type':a32_0x1fd1fb(0x7d),'description':a32_0x1fd1fb(0x77),'required':!![]},{'name':a32_0x1fd1fb(0x7b),'type':a32_0x1fd1fb(0x7d),'description':a32_0x1fd1fb(0x84)},{'name':a32_0x1fd1fb(0x98),'type':a32_0x1fd1fb(0x7d),'description':a32_0x1fd1fb(0x7f),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1fd1fb(0x90),'type':a32_0x1fd1fb(0x9e),'description':a32_0x1fd1fb(0x81)+PRODUCT_CONFIG['newConfigFileName']+a32_0x1fd1fb(0x8f),'default':![]},{'name':a32_0x1fd1fb(0x9d),'type':a32_0x1fd1fb(0x9e),'description':a32_0x1fd1fb(0xa1),'default':![]}];function a32_0x1a5b(){const _0xc7bc27=['appcode','Source\x20file\x20not\x20found:\x20','string','\x20\x20config:\x20\x20','Override\x20imported\x20default\x20env','6KUGOPI','Write\x20to\x20global\x20(~/','Failed\x20to\x20parse\x20source\x20file:\x20','cwd','Override\x20imported\x20default\x20appcode','project','utf8','app','\x20\x20appcode:\x20','8333352UAvKYb','message','riskLevel','file','entries','validation',')\x20instead\x20of\x20project','global','9503560XrdUfF','4955960nCNpPl','\x20\x20default:\x20','Invalid\x20env\x20\x22','1067974IYvxfV','\x22.\x20Allowed:\x20','join','env','parse','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','apps','1965AiXpAJ','yes','boolean','8592VGyrHp','16OLyaow','Skip\x20confirmation\x20when\x20overwriting','log','Imported\x20from\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','415996zUbARr','defaultApp','162663GTItaD'];a32_0x1a5b=function(){return _0xc7bc27;};return a32_0x1a5b();}export async function runAppImport(_0x44526c){const _0x4d0833=a32_0x1fd1fb,_0x237925=_0x44526c[_0x4d0833(0x90)]?_0x4d0833(0x90):_0x4d0833(0x85),_0x198b57=resolveWriteConfigPath(_0x237925);await runFromImport(_0x44526c,_0x198b57);}async function runFromImport(_0x480fa8,_0x5d9a7e){const _0xdb03b9=a32_0x1fd1fb,_0x79f6a8=resolveFilePath(_0x480fa8[_0xdb03b9(0x8c)]);if(!existsSync(_0x79f6a8))throw CliErrors[_0xdb03b9(0x8e)](_0xdb03b9(0x7c)+_0x79f6a8);const _0x36a50e=readSourceFile(_0x79f6a8),_0x100c7f=convertToRuntimeConfig(_0x36a50e);_0x480fa8[_0xdb03b9(0x7b)]&&(_0x100c7f[_0xdb03b9(0x7b)]=String(_0x480fa8[_0xdb03b9(0x7b)]));_0x480fa8[_0xdb03b9(0x98)]&&(_0x100c7f[_0xdb03b9(0x98)]=resolveImportEnv(_0x480fa8));if(!_0x100c7f[_0xdb03b9(0x7b)])throw CliErrors['validation'](_0xdb03b9(0x9a),_0xdb03b9(0x76));await writeImportConfig(_0x5d9a7e,_0x100c7f,_0x480fa8),console[_0xdb03b9(0x74)](_0xdb03b9(0x75)+_0x79f6a8),console['log'](_0xdb03b9(0x7e)+_0x5d9a7e),console[_0xdb03b9(0x74)](_0xdb03b9(0x88)+_0x100c7f[_0xdb03b9(0x7b)]);if(_0x100c7f['defaultApp'])console['log'](_0xdb03b9(0x93)+_0x100c7f[_0xdb03b9(0x79)]);}function convertToRuntimeConfig(_0x3d99c3){const _0xad7d4e=a32_0x1fd1fb;if(_0x3d99c3['apps']&&typeof _0x3d99c3[_0xad7d4e(0x9b)]==='object')throw CliErrors['validation']('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x11efd3={};for(const _0x543ab7 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3d99c3[_0x543ab7]!==undefined&&(_0x11efd3[_0x543ab7]=_0x3d99c3[_0x543ab7]);}return!_0x11efd3['riskLevel']&&(_0x11efd3[_0xad7d4e(0x8b)]=DEFAULT_CONFIG_VALUES[_0xad7d4e(0x8b)]),_0x11efd3;}async function writeImportConfig(_0x5b70b2,_0xa6c055,_0x4a0a0c){const _0x34363c=a32_0x1fd1fb;let _0x14279c={};existsSync(_0x5b70b2)&&!_0x4a0a0c[_0x34363c(0x9d)]&&(_0x14279c=readConfigFile(_0x5b70b2));for(const [_0x22e4ac,_0x556a26]of Object[_0x34363c(0x8d)](_0xa6c055)){_0x556a26!==undefined&&(_0x14279c[_0x22e4ac]=_0x556a26);}if(_0x14279c[_0x34363c(0x87)])delete _0x14279c[_0x34363c(0x87)];writeConfigFile(_0x5b70b2,_0x14279c);}function resolveFilePath(_0x594373){const _0x4c4583=a32_0x1fd1fb;return isAbsolute(_0x594373)?_0x594373:resolve(process[_0x4c4583(0x83)](),_0x594373);}function readSourceFile(_0x4be6d0){const _0x8da866=a32_0x1fd1fb;try{const _0x52118a=readFileSync(_0x4be6d0,{'encoding':_0x8da866(0x86)});return JSON[_0x8da866(0x99)](_0x52118a);}catch(_0x20dff8){throw CliErrors[_0x8da866(0x8e)](_0x8da866(0x82)+_0x20dff8[_0x8da866(0x8a)]);}}function resolveImportEnv(_0x29d65f){const _0x5df95b=a32_0x1fd1fb,_0x3e0677=_0x29d65f[_0x5df95b(0x98)];if(_0x3e0677===undefined||_0x3e0677==='')return DEFAULT_CONFIG_VALUES[_0x5df95b(0x98)];if(!RUNTIME_ENV_VALUES['includes'](_0x3e0677))throw CliErrors[_0x5df95b(0x8e)](_0x5df95b(0x94)+_0x3e0677+_0x5df95b(0x96)+RUNTIME_ENV_VALUES[_0x5df95b(0x97)](',\x20'));return _0x3e0677;}
@@ -1 +1 @@
1
- const a33_0x257042=a33_0x1755;(function(_0x3f1abd,_0x2278b0){const _0x4cbf1f=a33_0x1755,_0x3db6ea=_0x3f1abd();while(!![]){try{const _0x25f99c=-parseInt(_0x4cbf1f(0x149))/0x1*(parseInt(_0x4cbf1f(0x155))/0x2)+-parseInt(_0x4cbf1f(0x119))/0x3*(parseInt(_0x4cbf1f(0x11d))/0x4)+-parseInt(_0x4cbf1f(0x153))/0x5+parseInt(_0x4cbf1f(0x147))/0x6+parseInt(_0x4cbf1f(0x118))/0x7+parseInt(_0x4cbf1f(0x13e))/0x8+-parseInt(_0x4cbf1f(0x132))/0x9*(-parseInt(_0x4cbf1f(0x148))/0xa);if(_0x25f99c===_0x2278b0)break;else _0x3db6ea['push'](_0x3db6ea['shift']());}catch(_0x2067e6){_0x3db6ea['push'](_0x3db6ea['shift']());}}}(a33_0x5b84,0x6fe5a));import{existsSync,readFileSync,statSync}from'node:fs';function a33_0x5b84(){const _0x975e86=['createTime','search','topk','3823230vniJXw','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','370982TrsaII','content','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','body','updateTime','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','3120180NzhUCJ','260169HxVWRV','create','num','list','20meiojY','title','number','/client/knowledge-base/personal/','scope','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','bool','isFile','str','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','weightedScore','flag','update','Override\x20the\x20existing\x20entry\x20title','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','description','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','ragErrorMessage','file','Created\x20KB\x20entry\x20','userId','35838PvvzTW','metadata','appCode','/update','read','trim','Updated\x20KB\x20entry\x20','query','score','length','File\x20not\x20found:\x20','write','2251672bzBzHz','Personal\x20knowledge-base\x20entry\x20ID','detail','--topk\x20must\x20be\x20a\x20positive\x20number.','string','version','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','build','validation','3893934HXpeUJ','1170VclDkY','1edmtKY','map','ragStatus','POST','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','isFinite','File\x20path\x20is\x20required.'];a33_0x5b84=function(){return _0x975e86;};return a33_0x5b84();}function a33_0x1755(_0x5b3ffe,_0x316c36){_0x5b3ffe=_0x5b3ffe-0x117;const _0x5b84fb=a33_0x5b84();let _0x17552d=_0x5b84fb[_0x5b3ffe];return _0x17552d;}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x257042(0x11e),'type':a33_0x257042(0x142),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a33_0x257042(0x12f),'type':a33_0x257042(0x142),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x257042(0x139),'type':a33_0x257042(0x142),'required':!![],'description':'Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a33_0x257042(0x152),'type':a33_0x257042(0x11f),'description':a33_0x257042(0x157)};function readKnowledgeFile(_0x298acc){const _0x17ba62=a33_0x257042;if(!_0x298acc)throw CliErrors['validation'](_0x17ba62(0x14f));if(!existsSync(_0x298acc))throw CliErrors[_0x17ba62(0x146)](_0x17ba62(0x13c)+_0x298acc);if(!statSync(_0x298acc)[_0x17ba62(0x124)]())throw CliErrors[_0x17ba62(0x146)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x298acc);return readFileSync(_0x298acc,'utf8');}function summarizePersonalItem(_0x10c004){const _0x5d255a=a33_0x257042;return{'id':_0x10c004['id'],'title':_0x10c004[_0x5d255a(0x11e)],'version':_0x10c004[_0x5d255a(0x143)],'ragStatus':_0x10c004['ragStatus'],'ragErrorMessage':_0x10c004[_0x5d255a(0x12e)],'updateTime':_0x10c004[_0x5d255a(0x159)]};}function detailPersonalItem(_0x41ac7c){const _0x34cf95=a33_0x257042;return{'id':_0x41ac7c['id'],'appCode':_0x41ac7c[_0x34cf95(0x134)],'scope':_0x41ac7c[_0x34cf95(0x121)],'userId':_0x41ac7c[_0x34cf95(0x131)],'title':_0x41ac7c[_0x34cf95(0x11e)],'content':_0x41ac7c['content']??'','version':_0x41ac7c['version'],'ragStatus':_0x41ac7c[_0x34cf95(0x14b)],'ragErrorMessage':_0x41ac7c[_0x34cf95(0x12e)],'createTime':_0x41ac7c[_0x34cf95(0x150)],'updateTime':_0x41ac7c[_0x34cf95(0x159)]};}function summarizeSearchHit(_0x5532d8){const _0x2d7cbb=a33_0x257042;return{'scope':_0x5532d8['scope'],'title':_0x5532d8[_0x2d7cbb(0x11e)],'docId':_0x5532d8['docId'],'score':_0x5532d8[_0x2d7cbb(0x13a)],'weightedScore':_0x5532d8[_0x2d7cbb(0x127)],'content':_0x5532d8[_0x2d7cbb(0x156)],'metadata':_0x5532d8[_0x2d7cbb(0x133)]};}function readTopK(_0x5adc57){const _0xb99f68=a33_0x257042,_0x4248e7=_0x5adc57[_0xb99f68(0x128)](_0xb99f68(0x152));if(_0x4248e7===undefined||_0x4248e7===null||_0x4248e7==='')return undefined;const _0x599d75=_0x5adc57[_0xb99f68(0x11b)](_0xb99f68(0x152));if(!Number[_0xb99f68(0x14e)](_0x599d75)||_0x599d75<0x1)throw CliErrors['validation'](_0xb99f68(0x141));return _0x599d75;}const kbList={'service':'kb','command':a33_0x257042(0x11c),'description':a33_0x257042(0x144),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x4f5009){const _0x28e709=a33_0x257042,_0x1dc078=await listPersonalKnowledgeBaseItems(_0x4f5009[_0x28e709(0x134)]);if(_0x4f5009[_0x28e709(0x123)]('verbose'))return{'ok':!![],'data':{'total':_0x1dc078[_0x28e709(0x13b)],'items':_0x1dc078}};return{'ok':!![],'data':{'total':_0x1dc078[_0x28e709(0x13b)],'items':_0x1dc078[_0x28e709(0x14a)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x257042(0x140),'description':a33_0x257042(0x154),'risk':a33_0x257042(0x136),'flags':[{...ID_FLAG,'description':a33_0x257042(0x13f)}],async 'execute'(_0xcb987e){const _0x3cebb9=a33_0x257042,_0x186d96=await getPersonalKnowledgeBaseItem(_0xcb987e[_0x3cebb9(0x11b)]('id'),_0xcb987e[_0x3cebb9(0x134)]);return{'ok':!![],'data':detailPersonalItem(_0x186d96)};}},kbCreate={'service':'kb','command':a33_0x257042(0x11a),'description':a33_0x257042(0x12d),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x41d2a3){const _0x5e8427=a33_0x257042,_0x47343c=_0x41d2a3[_0x5e8427(0x125)](_0x5e8427(0x11e)),_0x3b14b2=readKnowledgeFile(_0x41d2a3[_0x5e8427(0x125)](_0x5e8427(0x12f))),_0xa472cb=await createPersonalKnowledgeBaseItem(_0x41d2a3[_0x5e8427(0x134)],{'title':_0x47343c,'content':_0x3b14b2});return{'ok':!![],'data':summarizePersonalItem(_0xa472cb),'message':_0x5e8427(0x130)+_0xa472cb['id']+'\x20('+_0xa472cb[_0x5e8427(0x11e)]+')'};},async 'dryRun'(_0x3ffa24){const _0x372d28=a33_0x257042,_0x70ceab=_0x3ffa24['str'](_0x372d28(0x11e)),_0x2f85c8=readKnowledgeFile(_0x3ffa24[_0x372d28(0x125)]('file'));return dryRun(_0x372d28(0x14c),'/client/knowledge-base/personal/create')[_0x372d28(0x158)]({'appCode':_0x3ffa24['appCode'],'title':_0x70ceab,'content':_0x2f85c8})['description'](_0x372d28(0x117)+_0x70ceab+'\x22')[_0x372d28(0x145)]();}},kbUpdate={'service':'kb','command':a33_0x257042(0x129),'description':a33_0x257042(0x12b),'risk':a33_0x257042(0x13d),'confirmationDescription':a33_0x257042(0x122),'flags':[{...ID_FLAG,'description':a33_0x257042(0x13f)},{...TITLE_FLAG,'required':![],'description':a33_0x257042(0x12a)},FILE_FLAG],async 'execute'(_0x4d9dcd){const _0x2ad084=a33_0x257042,_0x21a25b=_0x4d9dcd['num']('id'),_0x1bc421=readKnowledgeFile(_0x4d9dcd['str'](_0x2ad084(0x12f))),_0x530fa4=_0x4d9dcd[_0x2ad084(0x125)]('title')||(await getPersonalKnowledgeBaseItem(_0x21a25b,_0x4d9dcd[_0x2ad084(0x134)]))[_0x2ad084(0x11e)],_0x18c3d5=await updatePersonalKnowledgeBaseItem(_0x21a25b,_0x4d9dcd['appCode'],{'title':_0x530fa4,'content':_0x1bc421});return{'ok':!![],'data':summarizePersonalItem(_0x18c3d5),'message':_0x2ad084(0x138)+_0x18c3d5['id']+'\x20('+_0x18c3d5[_0x2ad084(0x11e)]+')'};},async 'dryRun'(_0x32fc97){const _0x2679a0=a33_0x257042,_0x4fbfa6=_0x32fc97[_0x2679a0(0x11b)]('id'),_0x4a9347=readKnowledgeFile(_0x32fc97[_0x2679a0(0x125)](_0x2679a0(0x12f))),_0x18f8de=_0x32fc97[_0x2679a0(0x125)](_0x2679a0(0x11e))||(await getPersonalKnowledgeBaseItem(_0x4fbfa6,_0x32fc97[_0x2679a0(0x134)]))[_0x2679a0(0x11e)];return dryRun('POST',_0x2679a0(0x120)+_0x4fbfa6+_0x2679a0(0x135))['body']({'appCode':_0x32fc97[_0x2679a0(0x134)],'title':_0x18f8de,'content':_0x4a9347})[_0x2679a0(0x12c)](_0x2679a0(0x14d)+_0x4fbfa6)['build']();}},kbSearch={'service':'kb','command':a33_0x257042(0x151),'description':a33_0x257042(0x126),'risk':a33_0x257042(0x136),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x335428){const _0x37cf28=a33_0x257042;if(!_0x335428[_0x37cf28(0x125)]('query')[_0x37cf28(0x137)]())throw CliErrors[_0x37cf28(0x146)]('Search\x20query\x20is\x20required.');readTopK(_0x335428);},async 'execute'(_0x2f0919){const _0x40b12f=a33_0x257042,_0x48cb88=_0x2f0919['str'](_0x40b12f(0x139))[_0x40b12f(0x137)](),_0x19d5a1=readTopK(_0x2f0919),_0x56d363=await searchKnowledgeBase(_0x2f0919[_0x40b12f(0x134)],{'query':_0x48cb88,'topK':_0x19d5a1});return{'ok':!![],'data':{'total':_0x56d363[_0x40b12f(0x13b)],'hits':_0x56d363[_0x40b12f(0x14a)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x2dba1d=a33_0x4161;(function(_0x5237a4,_0x12b557){const _0x39ed64=a33_0x4161,_0x48e84d=_0x5237a4();while(!![]){try{const _0x5b7475=-parseInt(_0x39ed64(0x112))/0x1*(parseInt(_0x39ed64(0x135))/0x2)+-parseInt(_0x39ed64(0x115))/0x3*(parseInt(_0x39ed64(0x10e))/0x4)+-parseInt(_0x39ed64(0x106))/0x5*(-parseInt(_0x39ed64(0x107))/0x6)+parseInt(_0x39ed64(0x122))/0x7+-parseInt(_0x39ed64(0x12e))/0x8+-parseInt(_0x39ed64(0x133))/0x9*(parseInt(_0x39ed64(0x128))/0xa)+parseInt(_0x39ed64(0x110))/0xb*(parseInt(_0x39ed64(0x118))/0xc);if(_0x5b7475===_0x12b557)break;else _0x48e84d['push'](_0x48e84d['shift']());}catch(_0x4638ea){_0x48e84d['push'](_0x48e84d['shift']());}}}(a33_0x1703,0x7623b));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x2dba1d(0x13a),'type':a33_0x2dba1d(0x141),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a33_0x2dba1d(0x11b),'type':a33_0x2dba1d(0x141),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x2dba1d(0x10d),'type':a33_0x2dba1d(0x141),'required':!![],'description':'Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a33_0x2dba1d(0x142),'type':a33_0x2dba1d(0x12b),'description':a33_0x2dba1d(0x13b)};function a33_0x4161(_0x2c4566,_0x17d4f){_0x2c4566=_0x2c4566-0x105;const _0x170302=a33_0x1703();let _0x416157=_0x170302[_0x2c4566];return _0x416157;}function readKnowledgeFile(_0x95e5e){const _0x1b67f3=a33_0x2dba1d;if(!_0x95e5e)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x95e5e))throw CliErrors['validation'](_0x1b67f3(0x108)+_0x95e5e);if(!statSync(_0x95e5e)[_0x1b67f3(0x13f)]())throw CliErrors[_0x1b67f3(0x10c)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x95e5e);return readFileSync(_0x95e5e,'utf8');}function summarizePersonalItem(_0x4b82bc){const _0x2deb50=a33_0x2dba1d;return{'id':_0x4b82bc['id'],'title':_0x4b82bc[_0x2deb50(0x13a)],'version':_0x4b82bc[_0x2deb50(0x127)],'ragStatus':_0x4b82bc[_0x2deb50(0x129)],'ragErrorMessage':_0x4b82bc[_0x2deb50(0x137)],'updateTime':_0x4b82bc[_0x2deb50(0x134)]};}function detailPersonalItem(_0x20c554){const _0x536f02=a33_0x2dba1d;return{'id':_0x20c554['id'],'appCode':_0x20c554[_0x536f02(0x13d)],'scope':_0x20c554[_0x536f02(0x132)],'userId':_0x20c554['userId'],'title':_0x20c554['title'],'content':_0x20c554[_0x536f02(0x143)]??'','version':_0x20c554[_0x536f02(0x127)],'ragStatus':_0x20c554[_0x536f02(0x129)],'ragErrorMessage':_0x20c554[_0x536f02(0x137)],'createTime':_0x20c554[_0x536f02(0x131)],'updateTime':_0x20c554[_0x536f02(0x134)]};}function a33_0x1703(){const _0x18a3c7=['3863772DCoHBi','body','41074AQiShn','Created\x20KB\x20entry\x20','72623myJKhA','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','docId','3zisbEs','Override\x20the\x20existing\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','6180UuOgIE','bool','num','file','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Personal\x20knowledge-base\x20entry\x20ID','read','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','write','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','2087477aHwfSv','/update','verbose','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','trim','version','10SMFcpT','ragStatus','description','number','score','build','1963832fsJnVY','list','Search\x20query\x20is\x20required.','createTime','scope','3199491RBAZby','updateTime','20ipQXVZ','create','ragErrorMessage','flag','length','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','map','appCode','Updated\x20KB\x20entry\x20','isFile','search','string','topk','content','update','2779145cweHLs','6UtsDtg','File\x20not\x20found:\x20','str','POST','/client/knowledge-base/personal/create','validation','query'];a33_0x1703=function(){return _0x18a3c7;};return a33_0x1703();}function summarizeSearchHit(_0x20ff07){const _0x3a497f=a33_0x2dba1d;return{'scope':_0x20ff07[_0x3a497f(0x132)],'title':_0x20ff07[_0x3a497f(0x13a)],'docId':_0x20ff07[_0x3a497f(0x114)],'score':_0x20ff07[_0x3a497f(0x12c)],'weightedScore':_0x20ff07['weightedScore'],'content':_0x20ff07[_0x3a497f(0x143)],'metadata':_0x20ff07['metadata']};}function readTopK(_0x355b7a){const _0x581ecf=a33_0x2dba1d,_0x414ac5=_0x355b7a[_0x581ecf(0x138)](_0x581ecf(0x142));if(_0x414ac5===undefined||_0x414ac5===null||_0x414ac5==='')return undefined;const _0x71e7d9=_0x355b7a[_0x581ecf(0x11a)](_0x581ecf(0x142));if(!Number['isFinite'](_0x71e7d9)||_0x71e7d9<0x1)throw CliErrors[_0x581ecf(0x10c)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x71e7d9;}const kbList={'service':'kb','command':a33_0x2dba1d(0x12f),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x2b8041){const _0x380bf8=a33_0x2dba1d,_0x251390=await listPersonalKnowledgeBaseItems(_0x2b8041[_0x380bf8(0x13d)]);if(_0x2b8041[_0x380bf8(0x119)](_0x380bf8(0x124)))return{'ok':!![],'data':{'total':_0x251390[_0x380bf8(0x139)],'items':_0x251390}};return{'ok':!![],'data':{'total':_0x251390[_0x380bf8(0x139)],'items':_0x251390[_0x380bf8(0x13c)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a33_0x2dba1d(0x117),'risk':a33_0x2dba1d(0x11e),'flags':[{...ID_FLAG,'description':a33_0x2dba1d(0x11d)}],async 'execute'(_0x4d4457){const _0x23a13a=a33_0x2dba1d,_0x49accc=await getPersonalKnowledgeBaseItem(_0x4d4457[_0x23a13a(0x11a)]('id'),_0x4d4457[_0x23a13a(0x13d)]);return{'ok':!![],'data':detailPersonalItem(_0x49accc)};}},kbCreate={'service':'kb','command':a33_0x2dba1d(0x136),'description':a33_0x2dba1d(0x11c),'risk':a33_0x2dba1d(0x120),'confirmationDescription':a33_0x2dba1d(0x121),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x31215d){const _0x3a5a63=a33_0x2dba1d,_0x5cd219=_0x31215d[_0x3a5a63(0x109)]('title'),_0x5bc3f2=readKnowledgeFile(_0x31215d['str'](_0x3a5a63(0x11b))),_0x4d44ff=await createPersonalKnowledgeBaseItem(_0x31215d[_0x3a5a63(0x13d)],{'title':_0x5cd219,'content':_0x5bc3f2});return{'ok':!![],'data':summarizePersonalItem(_0x4d44ff),'message':_0x3a5a63(0x111)+_0x4d44ff['id']+'\x20('+_0x4d44ff[_0x3a5a63(0x13a)]+')'};},async 'dryRun'(_0x1e8da6){const _0x3ae983=a33_0x2dba1d,_0x332122=_0x1e8da6[_0x3ae983(0x109)]('title'),_0x13a32f=readKnowledgeFile(_0x1e8da6[_0x3ae983(0x109)](_0x3ae983(0x11b)));return dryRun(_0x3ae983(0x10a),_0x3ae983(0x10b))[_0x3ae983(0x10f)]({'appCode':_0x1e8da6[_0x3ae983(0x13d)],'title':_0x332122,'content':_0x13a32f})[_0x3ae983(0x12a)](_0x3ae983(0x113)+_0x332122+'\x22')[_0x3ae983(0x12d)]();}},kbUpdate={'service':'kb','command':a33_0x2dba1d(0x105),'description':a33_0x2dba1d(0x11f),'risk':a33_0x2dba1d(0x120),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a33_0x2dba1d(0x116)},FILE_FLAG],async 'execute'(_0x189e12){const _0x178308=a33_0x2dba1d,_0x38fbb6=_0x189e12[_0x178308(0x11a)]('id'),_0x48cda8=readKnowledgeFile(_0x189e12[_0x178308(0x109)](_0x178308(0x11b))),_0x19d223=_0x189e12[_0x178308(0x109)](_0x178308(0x13a))||(await getPersonalKnowledgeBaseItem(_0x38fbb6,_0x189e12['appCode']))['title'],_0x18d424=await updatePersonalKnowledgeBaseItem(_0x38fbb6,_0x189e12[_0x178308(0x13d)],{'title':_0x19d223,'content':_0x48cda8});return{'ok':!![],'data':summarizePersonalItem(_0x18d424),'message':_0x178308(0x13e)+_0x18d424['id']+'\x20('+_0x18d424[_0x178308(0x13a)]+')'};},async 'dryRun'(_0x2436f9){const _0x185572=a33_0x2dba1d,_0x40f74c=_0x2436f9[_0x185572(0x11a)]('id'),_0x4128f2=readKnowledgeFile(_0x2436f9[_0x185572(0x109)](_0x185572(0x11b))),_0x41a3c8=_0x2436f9['str'](_0x185572(0x13a))||(await getPersonalKnowledgeBaseItem(_0x40f74c,_0x2436f9['appCode']))['title'];return dryRun('POST','/client/knowledge-base/personal/'+_0x40f74c+_0x185572(0x123))[_0x185572(0x10f)]({'appCode':_0x2436f9['appCode'],'title':_0x41a3c8,'content':_0x4128f2})[_0x185572(0x12a)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x40f74c)[_0x185572(0x12d)]();}},kbSearch={'service':'kb','command':a33_0x2dba1d(0x140),'description':a33_0x2dba1d(0x125),'risk':a33_0x2dba1d(0x11e),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0xe624c){const _0xae5188=a33_0x2dba1d;if(!_0xe624c[_0xae5188(0x109)](_0xae5188(0x10d))[_0xae5188(0x126)]())throw CliErrors[_0xae5188(0x10c)](_0xae5188(0x130));readTopK(_0xe624c);},async 'execute'(_0x1b99db){const _0x4e4b3c=a33_0x2dba1d,_0x5cd38d=_0x1b99db[_0x4e4b3c(0x109)](_0x4e4b3c(0x10d))[_0x4e4b3c(0x126)](),_0x97846b=readTopK(_0x1b99db),_0x2d6b9d=await searchKnowledgeBase(_0x1b99db[_0x4e4b3c(0x13d)],{'query':_0x5cd38d,'topK':_0x97846b});return{'ok':!![],'data':{'total':_0x2d6b9d['length'],'hits':_0x2d6b9d['map'](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- function a34_0x24ac(){const _0x2c8b1e=['\x20\x20\x20Details:\x20','en-US','length','5655168HObCOG','1504884KBPQFw','110eeTheQ','duration','warn','forEach','4105TzAULy','606832aSRxsS','1iTutae','5530686geMxCz','timestamp','2797949FLazMY','keys','message','logs','3GtRUSf','4398tvYOHN','details','error','command','stringify','*\x20No\x20logs\x20found','7166250aNLYRO','log','readLogs','read','\x20logs:\x0a','level','\x20\x20\x20Duration:\x20'];a34_0x24ac=function(){return _0x2c8b1e;};return a34_0x24ac();}const a34_0x27ac2d=a34_0x3554;(function(_0x298c36,_0x2c59fb){const _0x42b0dd=a34_0x3554,_0x55341b=_0x298c36();while(!![]){try{const _0x1172de=parseInt(_0x42b0dd(0x100))/0x1*(-parseInt(_0x42b0dd(0xff))/0x2)+parseInt(_0x42b0dd(0x107))/0x3*(-parseInt(_0x42b0dd(0xf9))/0x4)+-parseInt(_0x42b0dd(0xfe))/0x5*(-parseInt(_0x42b0dd(0x108))/0x6)+-parseInt(_0x42b0dd(0x101))/0x7+-parseInt(_0x42b0dd(0xf8))/0x8+-parseInt(_0x42b0dd(0xee))/0x9+-parseInt(_0x42b0dd(0xfa))/0xa*(-parseInt(_0x42b0dd(0x103))/0xb);if(_0x1172de===_0x2c59fb)break;else _0x55341b['push'](_0x55341b['shift']());}catch(_0x57aa67){_0x55341b['push'](_0x55341b['shift']());}}}(a34_0x24ac,0x6836d));import{logger}from'../../utils/logger.js';function a34_0x3554(_0x4aef7a,_0x52c821){_0x4aef7a=_0x4aef7a-0xec;const _0x24ac53=a34_0x24ac();let _0x35542c=_0x24ac53[_0x4aef7a];return _0x35542c;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x4135c8){const _0x2503fc=a34_0x3554;if(_0x4135c8['length']===0x0){console[_0x2503fc(0xef)](_0x2503fc(0xed));return;}console[_0x2503fc(0xef)]('*\x20'+CLI_DISPLAY_NAME+_0x2503fc(0xf2)),_0x4135c8[_0x2503fc(0xfd)]((_0x228822,_0x46fcb2)=>{const _0x3029ea=_0x2503fc,_0x2ac775=new Date(_0x228822[_0x3029ea(0x102)])['toLocaleString'](_0x3029ea(0xf6)),_0x4a9c49=_0x228822[_0x3029ea(0xf3)]==='success'?'√':_0x228822[_0x3029ea(0xf3)]===_0x3029ea(0x10a)?'×':_0x228822[_0x3029ea(0xf3)]===_0x3029ea(0xfc)?'!':'i';console['log'](_0x46fcb2+0x1+'.\x20'+_0x4a9c49+'\x20['+_0x228822[_0x3029ea(0x10b)]+']\x20'+_0x228822[_0x3029ea(0x105)]),console['log']('\x20\x20\x20Time:\x20'+_0x2ac775),_0x228822[_0x3029ea(0xfb)]&&console['log'](_0x3029ea(0xf4)+_0x228822[_0x3029ea(0xfb)]+'ms'),_0x228822[_0x3029ea(0x109)]&&Object[_0x3029ea(0x104)](_0x228822[_0x3029ea(0x109)])[_0x3029ea(0xf7)]>0x0&&console[_0x3029ea(0xef)](_0x3029ea(0xf5)+JSON[_0x3029ea(0xec)](_0x228822[_0x3029ea(0x109)],null,0x2)),console[_0x3029ea(0xef)]('');});}export const logsDefinitions=[{'service':a34_0x27ac2d(0x106),'command':'show','description':'View\x20command\x20history\x20logs','risk':a34_0x27ac2d(0xf1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3d1fe1){const _0x58ecb2=a34_0x27ac2d;return printLogs(logger[_0x58ecb2(0xf0)]()),{'ok':!![]};}}];
1
+ const a34_0x190e1e=a34_0x2e63;function a34_0x2e63(_0x2a74d9,_0x35a7d8){_0x2a74d9=_0x2a74d9-0x94;const _0x5aa884=a34_0x5aa8();let _0x2e6337=_0x5aa884[_0x2a74d9];return _0x2e6337;}function a34_0x5aa8(){const _0x37cfcd=['level','4038430fsAWqs','duration','length','1UyMLFI','\x20\x20\x20Duration:\x20','10752214eptXGz','58708HijlYC','read','error','details','show','stringify','*\x20No\x20logs\x20found','1473570fBlgNO','6459838JGfDbH','keys','6XIxiOy','readLogs','success','10rapARC','\x20\x20\x20Time:\x20','log','231856jkbDTN','87gmjDvT','timestamp','1860702PNEQJp','toLocaleString','warn','View\x20command\x20history\x20logs','en-US'];a34_0x5aa8=function(){return _0x37cfcd;};return a34_0x5aa8();}(function(_0x4c7a42,_0x5503f1){const _0x1b1ef8=a34_0x2e63,_0x1df867=_0x4c7a42();while(!![]){try{const _0x27e464=parseInt(_0x1b1ef8(0xa0))/0x1*(parseInt(_0x1b1ef8(0x97))/0x2)+-parseInt(_0x1b1ef8(0x95))/0x3*(-parseInt(_0x1b1ef8(0xa3))/0x4)+-parseInt(_0x1b1ef8(0x9d))/0x5+-parseInt(_0x1b1ef8(0xad))/0x6*(parseInt(_0x1b1ef8(0xab))/0x7)+parseInt(_0x1b1ef8(0x94))/0x8+-parseInt(_0x1b1ef8(0xaa))/0x9*(parseInt(_0x1b1ef8(0xb0))/0xa)+parseInt(_0x1b1ef8(0xa2))/0xb;if(_0x27e464===_0x5503f1)break;else _0x1df867['push'](_0x1df867['shift']());}catch(_0x2eb394){_0x1df867['push'](_0x1df867['shift']());}}}(a34_0x5aa8,0x724de));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x6fc14f){const _0x297b2d=a34_0x2e63;if(_0x6fc14f[_0x297b2d(0x9f)]===0x0){console['log'](_0x297b2d(0xa9));return;}console[_0x297b2d(0xb2)]('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x6fc14f['forEach']((_0x33da30,_0x480d85)=>{const _0x100e5b=_0x297b2d,_0x940d71=new Date(_0x33da30[_0x100e5b(0x96)])[_0x100e5b(0x98)](_0x100e5b(0x9b)),_0xb5e3c6=_0x33da30[_0x100e5b(0x9c)]===_0x100e5b(0xaf)?'√':_0x33da30[_0x100e5b(0x9c)]===_0x100e5b(0xa5)?'×':_0x33da30[_0x100e5b(0x9c)]===_0x100e5b(0x99)?'!':'i';console[_0x100e5b(0xb2)](_0x480d85+0x1+'.\x20'+_0xb5e3c6+'\x20['+_0x33da30['command']+']\x20'+_0x33da30['message']),console[_0x100e5b(0xb2)](_0x100e5b(0xb1)+_0x940d71),_0x33da30[_0x100e5b(0x9e)]&&console[_0x100e5b(0xb2)](_0x100e5b(0xa1)+_0x33da30[_0x100e5b(0x9e)]+'ms'),_0x33da30[_0x100e5b(0xa6)]&&Object[_0x100e5b(0xac)](_0x33da30[_0x100e5b(0xa6)])['length']>0x0&&console[_0x100e5b(0xb2)]('\x20\x20\x20Details:\x20'+JSON[_0x100e5b(0xa8)](_0x33da30[_0x100e5b(0xa6)],null,0x2)),console[_0x100e5b(0xb2)]('');});}export const logsDefinitions=[{'service':'logs','command':a34_0x190e1e(0xa7),'description':a34_0x190e1e(0x9a),'risk':a34_0x190e1e(0xa4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3a0787){const _0x14f9c7=a34_0x190e1e;return printLogs(logger[_0x14f9c7(0xae)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x3d4f84=a35_0x2967;(function(_0x825d6,_0x3c23de){const _0x1c4d2f=a35_0x2967,_0x349955=_0x825d6();while(!![]){try{const _0x5f9cc2=parseInt(_0x1c4d2f(0x10e))/0x1*(-parseInt(_0x1c4d2f(0x118))/0x2)+-parseInt(_0x1c4d2f(0x114))/0x3+parseInt(_0x1c4d2f(0x11c))/0x4*(parseInt(_0x1c4d2f(0x10d))/0x5)+parseInt(_0x1c4d2f(0x11b))/0x6+-parseInt(_0x1c4d2f(0x119))/0x7*(parseInt(_0x1c4d2f(0x10b))/0x8)+-parseInt(_0x1c4d2f(0x116))/0x9+parseInt(_0x1c4d2f(0x109))/0xa;if(_0x5f9cc2===_0x3c23de)break;else _0x349955['push'](_0x349955['shift']());}catch(_0x309834){_0x349955['push'](_0x349955['shift']());}}}(a35_0x3f98,0x56f8a));function a35_0x2967(_0x4d7c4c,_0x509675){_0x4d7c4c=_0x4d7c4c-0x109;const _0x3f98df=a35_0x3f98();let _0x2967a1=_0x3f98df[_0x4d7c4c];return _0x2967a1;}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x3f98(){const _0x2e5d61=['read','23195GAxivT','628487ttrmJB','type','config-list','Found\x20','appCode','Notification\x20channel\x20type','1484619JJiRWl','notification','1633383NkJNzL','length','2HnfEeV','28427TBXgYa','\x20notification\x20config(s)','1161090hnrjOe','404ONJQjP','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','10558810vAcPLj','map','112lAfFHQ'];a35_0x3f98=function(){return _0x2e5d61;};return a35_0x3f98();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x3d4f84(0x115),'command':a35_0x3d4f84(0x110),'description':a35_0x3d4f84(0x11d),'risk':a35_0x3d4f84(0x10c),'flags':[{'name':a35_0x3d4f84(0x10f),'type':'string','description':a35_0x3d4f84(0x113),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x4bb770){readNotificationChannelType(_0x4bb770);},async 'execute'(_0x58a29f){const _0x364ec0=a35_0x3d4f84,_0x5521c0=readNotificationChannelType(_0x58a29f),_0x39aa16=await listNotificationChannelConfigs(_0x58a29f[_0x364ec0(0x112)],_0x5521c0),_0x23f040=_0x39aa16[_0x364ec0(0x10a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x58a29f[_0x364ec0(0x112)],'channelType':_0x5521c0,'count':_0x23f040[_0x364ec0(0x117)],'configs':_0x23f040},'message':_0x364ec0(0x111)+_0x23f040[_0x364ec0(0x117)]+'\x20'+_0x5521c0+_0x364ec0(0x11a)};}};
1
+ function a35_0x101f(){const _0x511f3c=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','8tJYHOP','28510SmKNSN','notification','16Sezzyx','205XcmQXs','config-list','EMAIL','3084444Ughopm','type','\x20notification\x20config(s)','Notification\x20channel\x20type','55785uFZISO','Found\x20','403763SHqULZ','1272173VbhWbz','appCode','length','15072OvukVJ','read','6061rUFeIm','645752AsHuwy'];a35_0x101f=function(){return _0x511f3c;};return a35_0x101f();}const a35_0x1dd399=a35_0x24a4;(function(_0x51858f,_0x2f46e5){const _0x292601=a35_0x24a4,_0x198406=_0x51858f();while(!![]){try{const _0x11ecbf=-parseInt(_0x292601(0x1a8))/0x1+-parseInt(_0x292601(0x1b4))/0x2*(parseInt(_0x292601(0x1a6))/0x3)+-parseInt(_0x292601(0x1af))/0x4+parseInt(_0x292601(0x1b5))/0x5*(-parseInt(_0x292601(0x1ac))/0x6)+parseInt(_0x292601(0x1a9))/0x7*(-parseInt(_0x292601(0x1b1))/0x8)+-parseInt(_0x292601(0x1a2))/0x9+parseInt(_0x292601(0x1b2))/0xa*(parseInt(_0x292601(0x1ae))/0xb);if(_0x11ecbf===_0x2f46e5)break;else _0x198406['push'](_0x198406['shift']());}catch(_0x1d8f26){_0x198406['push'](_0x198406['shift']());}}}(a35_0x101f,0x38075));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a35_0x24a4(_0x584950,_0x58d095){_0x584950=_0x584950-0x1a0;const _0x101f88=a35_0x101f();let _0x24a4d5=_0x101f88[_0x584950];return _0x24a4d5;}export const notificationConfigList={'service':a35_0x1dd399(0x1b3),'command':a35_0x1dd399(0x1a0),'description':a35_0x1dd399(0x1b0),'risk':a35_0x1dd399(0x1ad),'flags':[{'name':a35_0x1dd399(0x1a3),'type':'string','description':a35_0x1dd399(0x1a5),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x1dd399(0x1a1)}],async 'validate'(_0x34422c){readNotificationChannelType(_0x34422c);},async 'execute'(_0x530cab){const _0x1913de=a35_0x1dd399,_0x555c85=readNotificationChannelType(_0x530cab),_0x22d693=await listNotificationChannelConfigs(_0x530cab['appCode'],_0x555c85),_0x259b4a=_0x22d693['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x530cab[_0x1913de(0x1aa)],'channelType':_0x555c85,'count':_0x259b4a[_0x1913de(0x1ab)],'configs':_0x259b4a},'message':_0x1913de(0x1a7)+_0x259b4a[_0x1913de(0x1ab)]+'\x20'+_0x555c85+_0x1913de(0x1a4)};}};
@@ -1 +1 @@
1
- function a36_0x32d0(_0x1d77d5,_0x4246e4){_0x1d77d5=_0x1d77d5-0xe2;const _0x2ac91d=a36_0x2ac9();let _0x32d045=_0x2ac91d[_0x1d77d5];return _0x32d045;}(function(_0x3e727d,_0x2f9d69){const _0x2fdb6e=a36_0x32d0,_0x48c38e=_0x3e727d();while(!![]){try{const _0x15e015=parseInt(_0x2fdb6e(0xe3))/0x1+parseInt(_0x2fdb6e(0xe7))/0x2*(parseInt(_0x2fdb6e(0xe2))/0x3)+parseInt(_0x2fdb6e(0xe5))/0x4+-parseInt(_0x2fdb6e(0xe9))/0x5+parseInt(_0x2fdb6e(0xe6))/0x6*(-parseInt(_0x2fdb6e(0xea))/0x7)+-parseInt(_0x2fdb6e(0xe8))/0x8+parseInt(_0x2fdb6e(0xe4))/0x9;if(_0x15e015===_0x2f9d69)break;else _0x48c38e['push'](_0x48c38e['shift']());}catch(_0x598730){_0x48c38e['push'](_0x48c38e['shift']());}}}(a36_0x2ac9,0x1d810));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];function a36_0x2ac9(){const _0x55249b=['203RnevRj','8592hsdjzm','122825mJskGT','355932NlsqdN','701924cbfboi','20346RdTOwC','116krAxmA','488384AtKiKg','1118655UpAmTf'];a36_0x2ac9=function(){return _0x55249b;};return a36_0x2ac9();}
1
+ (function(_0x3cf74c,_0x5c310a){const _0x4440cf=a36_0x2972,_0x48e3b0=_0x3cf74c();while(!![]){try{const _0x329b7d=parseInt(_0x4440cf(0x111))/0x1*(-parseInt(_0x4440cf(0x115))/0x2)+-parseInt(_0x4440cf(0x113))/0x3+-parseInt(_0x4440cf(0x117))/0x4+-parseInt(_0x4440cf(0x114))/0x5+parseInt(_0x4440cf(0x116))/0x6+-parseInt(_0x4440cf(0x112))/0x7+parseInt(_0x4440cf(0x118))/0x8;if(_0x329b7d===_0x5c310a)break;else _0x48e3b0['push'](_0x48e3b0['shift']());}catch(_0x75db18){_0x48e3b0['push'](_0x48e3b0['shift']());}}}(a36_0x122c,0x1f86b));function a36_0x122c(){const _0x4b43e8=['1bIzijY','1460032UFdKas','219687wDJGoS','236760oihAoB','351606MlorVo','870336PquXpZ','62712WlbGiq','4037704lhOrwI'];a36_0x122c=function(){return _0x4b43e8;};return a36_0x122c();}import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x2972(_0x4571eb,_0x21e99a){_0x4571eb=_0x4571eb-0x111;const _0x122c9f=a36_0x122c();let _0x2972cc=_0x122c9f[_0x4571eb];return _0x2972cc;}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- function a37_0x2be3(_0x19e07b,_0x2f6da7){_0x19e07b=_0x19e07b-0xba;const _0x59638a=a37_0x5963();let _0x2be373=_0x59638a[_0x19e07b];return _0x2be373;}const a37_0x5fb16d=a37_0x2be3;function a37_0x5963(){const _0x1d6694=['Item\x20','WEBHOOK','isSafeInteger','78185huRKUw','join','2nntqaL','35468030jhldZN','Allowed\x20values:\x20','configCode','Invalid\x20notification\x20config\x20response.','\x20must\x20be\x20an\x20object.','type','3407685eGEIvJ','updateTime','232cfLVDh','description','isArray','channelType','6264036mTjrgB','validation','WECOM','1547JpLQyP','str','2272MmIENM','createTime','string','test','configName','EMAIL','12414861gtQpEZ','291751sjmIqt','object','trim','apiError','FEISHU'];a37_0x5963=function(){return _0x1d6694;};return a37_0x5963();}(function(_0x123083,_0x3ba0cc){const _0x41cee1=a37_0x2be3,_0x326286=_0x123083();while(!![]){try{const _0x467be7=-parseInt(_0x41cee1(0xdc))/0x1*(parseInt(_0x41cee1(0xc3))/0x2)+parseInt(_0x41cee1(0xca))/0x3+-parseInt(_0x41cee1(0xcc))/0x4*(-parseInt(_0x41cee1(0xc1))/0x5)+parseInt(_0x41cee1(0xd0))/0x6+parseInt(_0x41cee1(0xd3))/0x7*(parseInt(_0x41cee1(0xd5))/0x8)+parseInt(_0x41cee1(0xdb))/0x9+-parseInt(_0x41cee1(0xc4))/0xa;if(_0x467be7===_0x3ba0cc)break;else _0x326286['push'](_0x326286['shift']());}catch(_0x4a1657){_0x326286['push'](_0x326286['shift']());}}}(a37_0x5963,0xa8936));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x5fb16d(0xda),a37_0x5fb16d(0xbd),'DINGTALK',a37_0x5fb16d(0xd2),a37_0x5fb16d(0xbf)];export function readNotificationChannelType(_0x12d4cd){const _0x5f47f2=a37_0x5fb16d,_0x362c1b=_0x12d4cd[_0x5f47f2(0xd4)](_0x5f47f2(0xc9))['trim']()||_0x5f47f2(0xda);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x362c1b))throw CliErrors[_0x5f47f2(0xd1)]('Invalid\x20--type:\x20'+_0x362c1b,_0x5f47f2(0xc5)+NOTIFICATION_CHANNEL_TYPES[_0x5f47f2(0xc2)](',\x20')+'.');return _0x362c1b;}export function projectNotificationListConfig(_0x2db037,_0x586ef2){const _0x18d34e=a37_0x5fb16d,_0x39bd8b=requireResponseObject(_0x2db037,_0x586ef2);return{'id':normalizeNullableId(_0x39bd8b['id'],_0x586ef2),'configCode':requireResponseString(_0x39bd8b[_0x18d34e(0xc6)],_0x18d34e(0xc6),_0x586ef2),'configName':requireResponseString(_0x39bd8b[_0x18d34e(0xd9)],_0x18d34e(0xd9),_0x586ef2),'channelType':requireResponseString(_0x39bd8b[_0x18d34e(0xcf)],_0x18d34e(0xcf),_0x586ef2),'description':normalizeNullableString(_0x39bd8b[_0x18d34e(0xcd)]),'createTime':normalizeNullableString(_0x39bd8b[_0x18d34e(0xd6)]),'updateTime':normalizeNullableString(_0x39bd8b[_0x18d34e(0xcb)])};}function requireResponseObject(_0x585697,_0x3e7b5d){const _0x19374f=a37_0x5fb16d;if(typeof _0x585697!==_0x19374f(0xba)||_0x585697===null||Array[_0x19374f(0xce)](_0x585697))throw CliErrors[_0x19374f(0xbc)](_0x19374f(0xc7),_0x19374f(0xbe)+(_0x3e7b5d+0x1)+_0x19374f(0xc8));return _0x585697;}function requireResponseString(_0x20b7b5,_0x580e42,_0x18766c){const _0x3222b3=a37_0x5fb16d;if(typeof _0x20b7b5!==_0x3222b3(0xd7)||!_0x20b7b5[_0x3222b3(0xbb)]())throw CliErrors['apiError'](_0x3222b3(0xc7),_0x3222b3(0xbe)+(_0x18766c+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x580e42+'\x22.');return _0x20b7b5[_0x3222b3(0xbb)]();}function normalizeNullableString(_0x5df47e){const _0xdb307f=a37_0x5fb16d;return typeof _0x5df47e===_0xdb307f(0xd7)&&_0x5df47e['trim']()?_0x5df47e[_0xdb307f(0xbb)]():null;}function normalizeNullableId(_0x37bda3,_0x25da91){const _0x359dd3=a37_0x5fb16d;if(_0x37bda3===undefined||_0x37bda3===null)return null;if(typeof _0x37bda3==='number'&&Number[_0x359dd3(0xc0)](_0x37bda3))return _0x37bda3;if(typeof _0x37bda3===_0x359dd3(0xd7)&&/^-?\d+$/[_0x359dd3(0xd8)](_0x37bda3[_0x359dd3(0xbb)]()))return _0x37bda3[_0x359dd3(0xbb)]();throw CliErrors[_0x359dd3(0xbc)]('Invalid\x20notification\x20config\x20response.',_0x359dd3(0xbe)+(_0x25da91+0x1)+'\x20has\x20invalid\x20field\x20\x22id\x22.');}
1
+ const a37_0x221818=a37_0x5b97;(function(_0x55364d,_0x35802d){const _0x3738de=a37_0x5b97,_0x3d27b4=_0x55364d();while(!![]){try{const _0x559c87=-parseInt(_0x3738de(0xa2))/0x1+parseInt(_0x3738de(0x9b))/0x2+-parseInt(_0x3738de(0x98))/0x3*(-parseInt(_0x3738de(0x9d))/0x4)+parseInt(_0x3738de(0xb4))/0x5*(parseInt(_0x3738de(0x9e))/0x6)+-parseInt(_0x3738de(0xa7))/0x7*(-parseInt(_0x3738de(0xb7))/0x8)+-parseInt(_0x3738de(0x9c))/0x9*(parseInt(_0x3738de(0xaa))/0xa)+-parseInt(_0x3738de(0xb0))/0xb;if(_0x559c87===_0x35802d)break;else _0x3d27b4['push'](_0x3d27b4['shift']());}catch(_0x2def6a){_0x3d27b4['push'](_0x3d27b4['shift']());}}}(a37_0x3c39,0x88cd1));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x221818(0xa1),a37_0x221818(0xba),a37_0x221818(0xb1),'WECOM',a37_0x221818(0xa5)];export function readNotificationChannelType(_0x5b6be3){const _0xb8b3f9=a37_0x221818,_0x3d8c22=_0x5b6be3['str']('type')[_0xb8b3f9(0xaf)]()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0xb8b3f9(0xab)](_0x3d8c22))throw CliErrors[_0xb8b3f9(0xad)](_0xb8b3f9(0xb9)+_0x3d8c22,_0xb8b3f9(0x99)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x3d8c22;}export function projectNotificationListConfig(_0x1f5591,_0x31b89f){const _0x111f6d=a37_0x221818,_0x433027=requireResponseObject(_0x1f5591,_0x31b89f);return{'id':normalizeNullableId(_0x433027['id'],_0x31b89f),'configCode':requireResponseString(_0x433027[_0x111f6d(0xb3)],'configCode',_0x31b89f),'configName':requireResponseString(_0x433027[_0x111f6d(0xb8)],_0x111f6d(0xb8),_0x31b89f),'channelType':requireResponseString(_0x433027[_0x111f6d(0xb5)],_0x111f6d(0xb5),_0x31b89f),'description':normalizeNullableString(_0x433027[_0x111f6d(0xa6)]),'createTime':normalizeNullableString(_0x433027[_0x111f6d(0x9f)]),'updateTime':normalizeNullableString(_0x433027[_0x111f6d(0x9a)])};}function a37_0x3c39(){const _0x2fc3c4=['Invalid\x20--type:\x20','FEISHU','number','156444oiEjXT','Allowed\x20values:\x20','updateTime','435698hdqOpx','338166RRuoJh','76GuiKpE','6vcfhhr','createTime','Item\x20','EMAIL','469982upsIwu','object','test','WEBHOOK','description','5803mfgFGy','string','\x20must\x20be\x20an\x20object.','170EajVhV','includes','\x20is\x20missing\x20required\x20field\x20\x22','validation','Invalid\x20notification\x20config\x20response.','trim','2091529TcIBbB','DINGTALK','apiError','configCode','2100465HfhQUV','channelType','isSafeInteger','2224THXQAL','configName'];a37_0x3c39=function(){return _0x2fc3c4;};return a37_0x3c39();}function a37_0x5b97(_0x3d0c98,_0x48f652){_0x3d0c98=_0x3d0c98-0x98;const _0x3c393e=a37_0x3c39();let _0x5b97c=_0x3c393e[_0x3d0c98];return _0x5b97c;}function requireResponseObject(_0x4a3b1f,_0x2fb319){const _0x463bbc=a37_0x221818;if(typeof _0x4a3b1f!==_0x463bbc(0xa3)||_0x4a3b1f===null||Array['isArray'](_0x4a3b1f))throw CliErrors['apiError'](_0x463bbc(0xae),'Item\x20'+(_0x2fb319+0x1)+_0x463bbc(0xa9));return _0x4a3b1f;}function requireResponseString(_0x2784c9,_0x42052f,_0x53317f){const _0x2517aa=a37_0x221818;if(typeof _0x2784c9!=='string'||!_0x2784c9['trim']())throw CliErrors[_0x2517aa(0xb2)](_0x2517aa(0xae),_0x2517aa(0xa0)+(_0x53317f+0x1)+_0x2517aa(0xac)+_0x42052f+'\x22.');return _0x2784c9[_0x2517aa(0xaf)]();}function normalizeNullableString(_0x37753a){const _0x5a97d6=a37_0x221818;return typeof _0x37753a===_0x5a97d6(0xa8)&&_0x37753a['trim']()?_0x37753a[_0x5a97d6(0xaf)]():null;}function normalizeNullableId(_0x43da1d,_0x2a8e70){const _0x525f66=a37_0x221818;if(_0x43da1d===undefined||_0x43da1d===null)return null;if(typeof _0x43da1d===_0x525f66(0xbb)&&Number[_0x525f66(0xb6)](_0x43da1d))return _0x43da1d;if(typeof _0x43da1d==='string'&&/^-?\d+$/[_0x525f66(0xa4)](_0x43da1d['trim']()))return _0x43da1d[_0x525f66(0xaf)]();throw CliErrors['apiError'](_0x525f66(0xae),_0x525f66(0xa0)+(_0x2a8e70+0x1)+'\x20has\x20invalid\x20field\x20\x22id\x22.');}
@@ -1 +1 @@
1
- const a38_0x1b3481=a38_0x3327;function a38_0x33e8(){const _0x159dc6=['671vsrZtx','1814706lTervP','/client/ocr','474ojBXjH','image-url','filePath','trim','IdCard','imageUrl','108830NQBSBk','Invoice','\x20OCR\x20from\x20URL','Unsupported\x20OCR\x20scene:\x20','length','/client/uploadFile','POST','5796280zflMrv','body','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','5857072UDpTmc','File\x20upload\x20response\x20missing\x20filePath.','string','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','str','3805pwOYGf','Table','filter','scene','form','build','path','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','description','validation','fileUrl','Preview:\x20recognize\x20','11588MzQWGd','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','8850CpqQLM','.\x20Supported\x20scenes:\x20','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','appCode','read','general','invoice','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','36cnZALs','idCard','join','/client/queryFileUrl','apiError','3306IIehMN','image-file','<filePath\x20returned\x20by\x20/client/uploadFile>','fileName'];a38_0x33e8=function(){return _0x159dc6;};return a38_0x33e8();}(function(_0x123fdd,_0x4df823){const _0x318926=a38_0x3327,_0x18a6b6=_0x123fdd();while(!![]){try{const _0x179b35=parseInt(_0x318926(0xc8))/0x1*(-parseInt(_0x318926(0xc0))/0x2)+parseInt(_0x318926(0xd4))/0x3*(-parseInt(_0x318926(0xbe))/0x4)+parseInt(_0x318926(0xb2))/0x5*(parseInt(_0x318926(0xcd))/0x6)+parseInt(_0x318926(0xaa))/0x7+parseInt(_0x318926(0xad))/0x8+-parseInt(_0x318926(0xd2))/0x9+parseInt(_0x318926(0xa3))/0xa*(-parseInt(_0x318926(0xd1))/0xb);if(_0x179b35===_0x4df823)break;else _0x18a6b6['push'](_0x18a6b6['shift']());}catch(_0x1a17ec){_0x18a6b6['push'](_0x18a6b6['shift']());}}}(a38_0x33e8,0x79542));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x1b3481(0xc6),a38_0x1b3481(0xc5),a38_0x1b3481(0xb6),a38_0x1b3481(0xc9)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x1b3481(0xa4),'general':'General','form':a38_0x1b3481(0xb3),'idCard':a38_0x1b3481(0xa1)},SCENE_FLAG={'name':a38_0x1b3481(0xb5),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x1b3481(0xbf)},IMAGE_FILE_FLAG={'name':'image-file','type':'string','description':a38_0x1b3481(0xc7)},IMAGE_URL_FLAG={'name':a38_0x1b3481(0xd5),'type':a38_0x1b3481(0xaf),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x32b4e0){const _0x544680=a38_0x1b3481,_0x359aea=_0x32b4e0[_0x544680(0xd7)]()['toLowerCase']();if(_0x359aea==='idcard')return _0x544680(0xc9);if(_0x359aea===_0x544680(0xc6)||_0x359aea===_0x544680(0xc5)||_0x359aea==='form')return _0x359aea;throw CliErrors[_0x544680(0xbb)](_0x544680(0xa6)+_0x32b4e0+_0x544680(0xc1)+SUPPORTED_SCENES[_0x544680(0xca)](',\x20'));}function selectedInputs(_0x68918b){const _0x5ca684=a38_0x1b3481,_0x376a1c=_0x68918b[_0x5ca684(0xb1)](_0x5ca684(0xce))[_0x5ca684(0xd7)](),_0x1571c3=_0x68918b[_0x5ca684(0xb1)](_0x5ca684(0xd5))[_0x5ca684(0xd7)]();return{'imageFile':_0x376a1c,'imageUrl':_0x1571c3,'count':[_0x376a1c,_0x1571c3][_0x5ca684(0xb4)](Boolean)[_0x5ca684(0xa7)]};}function validateInputSelection(_0x226012){const _0x4845eb=a38_0x1b3481,_0x4201b5=selectedInputs(_0x226012);if(_0x4201b5['count']!==0x1)throw CliErrors[_0x4845eb(0xbb)](_0x4845eb(0xac));return _0x4201b5;}function withScene(_0x506965,_0x274049,_0x123169){const _0xdcaa46=a38_0x1b3481;return{..._0x506965,'scene':_0x274049,..._0x123169?{'sourceFile':{'fileName':_0x123169[_0xdcaa46(0xd0)],'filePath':_0x123169[_0xdcaa46(0xd6)]}}:{}};}function a38_0x3327(_0x28cbc4,_0x143b62){_0x28cbc4=_0x28cbc4-0xa1;const _0x33e80f=a38_0x33e8();let _0x33272f=_0x33e80f[_0x28cbc4];return _0x33272f;}const ocrRecognize={'service':'ocr','command':'recognize','description':a38_0x1b3481(0xb9),'risk':a38_0x1b3481(0xc4),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3bd0ae){const _0x33ebef=a38_0x1b3481,_0x187c77=normalizeScene(_0x3bd0ae[_0x33ebef(0xb1)](_0x33ebef(0xb5))),_0x26a604=SCENE_TO_LEGACY_TYPE[_0x187c77],_0x22f53d=validateInputSelection(_0x3bd0ae);if(_0x22f53d['imageUrl'])return dryRun(_0x33ebef(0xa9),_0x33ebef(0xd3))['body']({'appCode':_0x3bd0ae[_0x33ebef(0xc3)],'url':_0x22f53d[_0x33ebef(0xa2)],'type':_0x26a604})[_0x33ebef(0xba)](_0x33ebef(0xbd)+_0x187c77+_0x33ebef(0xa5))['build']();const _0x45d352=requireRuntimeUploadFile(_0x22f53d['imageFile'],_0x33ebef(0xce));return dryRun('POST',_0x33ebef(0xa8))[_0x33ebef(0xab)]({'steps':[{'method':_0x33ebef(0xa9),'url':_0x33ebef(0xa8),'body':{'appCode':_0x3bd0ae[_0x33ebef(0xc3)],'multipart':{'file':_0x45d352}}},{'method':'POST','url':_0x33ebef(0xcb),'body':{'filePath':_0x33ebef(0xcf),'downloadFlag':![]}},{'method':'POST','url':_0x33ebef(0xd3),'body':{'appCode':_0x3bd0ae[_0x33ebef(0xc3)],'url':_0x33ebef(0xc2),'type':_0x26a604}}]})[_0x33ebef(0xba)](_0x33ebef(0xb0)+_0x187c77+'\x20OCR')[_0x33ebef(0xb7)]();},async 'execute'(_0x503100){const _0x5b84a4=a38_0x1b3481,_0x4b7d07=normalizeScene(_0x503100[_0x5b84a4(0xb1)]('scene')),_0x5c63ae=SCENE_TO_LEGACY_TYPE[_0x4b7d07],_0x113ccc=validateInputSelection(_0x503100);if(_0x113ccc[_0x5b84a4(0xa2)]){const _0x2d5a97=await recognizeRuntimeOcr(_0x503100[_0x5b84a4(0xc3)],{'url':_0x113ccc['imageUrl'],'type':_0x5c63ae});return{'ok':!![],'data':withScene(_0x2d5a97,_0x4b7d07)};}const _0x5764e0=requireRuntimeUploadFile(_0x113ccc['imageFile'],_0x5b84a4(0xce)),_0x13dc7c=await uploadRuntimeFile(_0x503100[_0x5b84a4(0xc3)],_0x5764e0[_0x5b84a4(0xb8)]);if(!_0x13dc7c[_0x5b84a4(0xd6)])throw CliErrors[_0x5b84a4(0xcc)](_0x5b84a4(0xae));const _0x3a8cd4=await queryRuntimeFileUrl(_0x13dc7c['filePath'],{'download':![]});if(!_0x3a8cd4[_0x5b84a4(0xbc)])throw CliErrors[_0x5b84a4(0xcc)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x244d93=await recognizeRuntimeOcr(_0x503100[_0x5b84a4(0xc3)],{'url':_0x3a8cd4[_0x5b84a4(0xbc)],'type':_0x5c63ae});return{'ok':!![],'data':withScene(_0x244d93,_0x4b7d07,_0x13dc7c)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x113be1=a38_0x48dd;(function(_0x4dd530,_0x51dcd6){const _0x390a96=a38_0x48dd,_0x2d39bc=_0x4dd530();while(!![]){try{const _0x30ab8d=parseInt(_0x390a96(0x186))/0x1+-parseInt(_0x390a96(0x182))/0x2+-parseInt(_0x390a96(0x196))/0x3*(-parseInt(_0x390a96(0x189))/0x4)+-parseInt(_0x390a96(0x176))/0x5+-parseInt(_0x390a96(0x18f))/0x6+-parseInt(_0x390a96(0x17d))/0x7*(-parseInt(_0x390a96(0x16d))/0x8)+-parseInt(_0x390a96(0x18d))/0x9*(parseInt(_0x390a96(0x16c))/0xa);if(_0x30ab8d===_0x51dcd6)break;else _0x2d39bc['push'](_0x2d39bc['shift']());}catch(_0x2b62ee){_0x2d39bc['push'](_0x2d39bc['shift']());}}}(a38_0x2f5d,0x88d74));function a38_0x48dd(_0x221b07,_0x2af44c){_0x221b07=_0x221b07-0x16b;const _0x2f5d2b=a38_0x2f5d();let _0x48dd64=_0x2f5d2b[_0x221b07];return _0x48dd64;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x113be1(0x18b),a38_0x113be1(0x19c),a38_0x113be1(0x17f),a38_0x113be1(0x172)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x113be1(0x19b),'general':a38_0x113be1(0x178),'form':'Table','idCard':'IdCard'},SCENE_FLAG={'name':a38_0x113be1(0x177),'type':a38_0x113be1(0x19a),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a38_0x113be1(0x191),'type':a38_0x113be1(0x19a),'description':'Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a38_0x113be1(0x198),'type':a38_0x113be1(0x19a),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0xc6ad70){const _0x2c33ca=a38_0x113be1,_0x41418b=_0xc6ad70[_0x2c33ca(0x17b)]()[_0x2c33ca(0x184)]();if(_0x41418b===_0x2c33ca(0x170))return _0x2c33ca(0x172);if(_0x41418b===_0x2c33ca(0x18b)||_0x41418b===_0x2c33ca(0x19c)||_0x41418b===_0x2c33ca(0x17f))return _0x41418b;throw CliErrors[_0x2c33ca(0x190)]('Unsupported\x20OCR\x20scene:\x20'+_0xc6ad70+_0x2c33ca(0x180)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x61ee8f){const _0x184c40=a38_0x113be1,_0x41e8af=_0x61ee8f[_0x184c40(0x175)](_0x184c40(0x191))[_0x184c40(0x17b)](),_0x1caf99=_0x61ee8f['str'](_0x184c40(0x198))[_0x184c40(0x17b)]();return{'imageFile':_0x41e8af,'imageUrl':_0x1caf99,'count':[_0x41e8af,_0x1caf99][_0x184c40(0x18a)](Boolean)[_0x184c40(0x187)]};}function validateInputSelection(_0x3bcc85){const _0x458826=a38_0x113be1,_0x3af94c=selectedInputs(_0x3bcc85);if(_0x3af94c[_0x458826(0x171)]!==0x1)throw CliErrors[_0x458826(0x190)](_0x458826(0x173));return _0x3af94c;}function a38_0x2f5d(){const _0x2e49cd=['Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','imageUrl','str','526775Zpgxve','scene','General','apiError','filePath','trim','POST','7RgIYrV','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','form','.\x20Supported\x20scenes:\x20','ocr','158556AmAaib','build','toLowerCase','fileName','647846AvSZeZ','length','<filePath\x20returned\x20by\x20/client/uploadFile>','12cBaZnH','filter','invoice','/client/queryFileUrl','126tORMfd','imageFile','2370882sCcjFa','validation','image-file','/client/ocr','File\x20URL\x20response\x20missing\x20fileUrl.','body','/client/uploadFile','122985lqbNvS','description','image-url','read','string','Invoice','general','appCode','path','479620GgaqNi','8327336MsEiuE','fileUrl','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','idcard','count','idCard'];a38_0x2f5d=function(){return _0x2e49cd;};return a38_0x2f5d();}function withScene(_0x59366d,_0x19ff8a,_0x571167){const _0x561b7d=a38_0x113be1;return{..._0x59366d,'scene':_0x19ff8a,..._0x571167?{'sourceFile':{'fileName':_0x571167[_0x561b7d(0x185)],'filePath':_0x571167[_0x561b7d(0x17a)]}}:{}};}const ocrRecognize={'service':a38_0x113be1(0x181),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a38_0x113be1(0x199),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x1f570b){const _0x4f7a2d=a38_0x113be1,_0x1abf3e=normalizeScene(_0x1f570b['str']('scene')),_0x3c525b=SCENE_TO_LEGACY_TYPE[_0x1abf3e],_0x398103=validateInputSelection(_0x1f570b);if(_0x398103['imageUrl'])return dryRun(_0x4f7a2d(0x17c),_0x4f7a2d(0x192))[_0x4f7a2d(0x194)]({'appCode':_0x1f570b[_0x4f7a2d(0x19d)],'url':_0x398103[_0x4f7a2d(0x174)],'type':_0x3c525b})[_0x4f7a2d(0x197)]('Preview:\x20recognize\x20'+_0x1abf3e+'\x20OCR\x20from\x20URL')[_0x4f7a2d(0x183)]();const _0x4406f6=requireRuntimeUploadFile(_0x398103[_0x4f7a2d(0x18e)],_0x4f7a2d(0x191));return dryRun(_0x4f7a2d(0x17c),_0x4f7a2d(0x195))[_0x4f7a2d(0x194)]({'steps':[{'method':_0x4f7a2d(0x17c),'url':'/client/uploadFile','body':{'appCode':_0x1f570b['appCode'],'multipart':{'file':_0x4406f6}}},{'method':_0x4f7a2d(0x17c),'url':_0x4f7a2d(0x18c),'body':{'filePath':_0x4f7a2d(0x188),'downloadFlag':![]}},{'method':'POST','url':_0x4f7a2d(0x192),'body':{'appCode':_0x1f570b[_0x4f7a2d(0x19d)],'url':_0x4f7a2d(0x16f),'type':_0x3c525b}}]})[_0x4f7a2d(0x197)](_0x4f7a2d(0x17e)+_0x1abf3e+'\x20OCR')[_0x4f7a2d(0x183)]();},async 'execute'(_0xddde8d){const _0x2d9858=a38_0x113be1,_0x4f6a0f=normalizeScene(_0xddde8d['str'](_0x2d9858(0x177))),_0x252428=SCENE_TO_LEGACY_TYPE[_0x4f6a0f],_0x45cb41=validateInputSelection(_0xddde8d);if(_0x45cb41[_0x2d9858(0x174)]){const _0x2a4a55=await recognizeRuntimeOcr(_0xddde8d[_0x2d9858(0x19d)],{'url':_0x45cb41[_0x2d9858(0x174)],'type':_0x252428});return{'ok':!![],'data':withScene(_0x2a4a55,_0x4f6a0f)};}const _0x437027=requireRuntimeUploadFile(_0x45cb41[_0x2d9858(0x18e)],_0x2d9858(0x191)),_0x2797b9=await uploadRuntimeFile(_0xddde8d[_0x2d9858(0x19d)],_0x437027[_0x2d9858(0x16b)]);if(!_0x2797b9['filePath'])throw CliErrors[_0x2d9858(0x179)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x12bbaa=await queryRuntimeFileUrl(_0x2797b9[_0x2d9858(0x17a)],{'download':![]});if(!_0x12bbaa[_0x2d9858(0x16e)])throw CliErrors[_0x2d9858(0x179)](_0x2d9858(0x193));const _0x10bbfd=await recognizeRuntimeOcr(_0xddde8d[_0x2d9858(0x19d)],{'url':_0x12bbaa[_0x2d9858(0x16e)],'type':_0x252428});return{'ok':!![],'data':withScene(_0x10bbfd,_0x4f6a0f,_0x2797b9)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x279e90=a39_0xe440;(function(_0x282d5a,_0x5f1619){const _0x183fa7=a39_0xe440,_0x3396c6=_0x282d5a();while(!![]){try{const _0x30957f=-parseInt(_0x183fa7(0x18c))/0x1+parseInt(_0x183fa7(0x19a))/0x2*(-parseInt(_0x183fa7(0x188))/0x3)+-parseInt(_0x183fa7(0x18f))/0x4+parseInt(_0x183fa7(0x18b))/0x5*(parseInt(_0x183fa7(0x189))/0x6)+parseInt(_0x183fa7(0x195))/0x7+-parseInt(_0x183fa7(0x187))/0x8+-parseInt(_0x183fa7(0x197))/0x9*(-parseInt(_0x183fa7(0x190))/0xa);if(_0x30957f===_0x5f1619)break;else _0x3396c6['push'](_0x3396c6['shift']());}catch(_0x441939){_0x3396c6['push'](_0x3396c6['shift']());}}}(a39_0x3d0c,0x57b71));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a39_0xe440(_0x180db6,_0x167aa7){_0x180db6=_0x180db6-0x187;const _0x3d0cd6=a39_0x3d0c();let _0xe44076=_0x3d0cd6[_0x180db6];return _0xe44076;}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x279e90(0x198),'command':a39_0x279e90(0x18a),'description':a39_0x279e90(0x18e),'risk':a39_0x279e90(0x196),'flags':[{'name':'role','type':a39_0x279e90(0x19b),'description':a39_0x279e90(0x193)}],async 'execute'(_0x1a5ba4){const _0x16debf=a39_0x279e90,_0x5ad072=_0x1a5ba4['str'](_0x16debf(0x18d))[_0x16debf(0x199)]();if(!_0x5ad072)return{'ok':!![],'data':{'scope':_0x16debf(0x192),'datasets':await listRuntimeDatasetRolePermits(_0x1a5ba4[_0x16debf(0x194)])}};const _0x8a4257=await resolveRuntimeRoleRef(_0x1a5ba4[_0x16debf(0x194)],_0x5ad072);return{'ok':!![],'data':{'scope':_0x16debf(0x192),'role':{'id':_0x8a4257['id'],'roleName':_0x8a4257['roleName'],'roleType':_0x8a4257[_0x16debf(0x191)]},'datasets':await listRuntimeDatasetPermits(_0x1a5ba4[_0x16debf(0x194)],_0x8a4257['id'])}};}};function a39_0x3d0c(){const _0x449fe7=['6382YPBOuo','string','4261208pOvOQx','348ZAJwwk','93780VsEXAd','dataset-get','80qpXyFI','547719UUTJss','role','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','1098676PNzJZY','1036160RtQzhK','roleType','runtime','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','appCode','2686404PfNbOT','read','126QKQdAO','permit','trim'];a39_0x3d0c=function(){return _0x449fe7;};return a39_0x3d0c();}
1
+ function a39_0x4435(){const _0x5c7feb=['roleName','permit','7eIjndi','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','2166171UJzrBi','1375825OZUiQq','role','appCode','631413JnWHEK','177641aJLeIr','dataset-get','string','32eYmLrR','trim','846712wbHScn','7944744zhHcop','str','27751350dgwTwg','runtime','12yrxSEH'];a39_0x4435=function(){return _0x5c7feb;};return a39_0x4435();}const a39_0x1bc333=a39_0x5282;(function(_0x2e203c,_0x42ca32){const _0x568a06=a39_0x5282,_0x221fd7=_0x2e203c();while(!![]){try{const _0x72de9f=-parseInt(_0x568a06(0xa9))/0x1*(-parseInt(_0x568a06(0x9f))/0x2)+parseInt(_0x568a06(0xa4))/0x3+-parseInt(_0x568a06(0x9a))/0x4+parseInt(_0x568a06(0xa5))/0x5+-parseInt(_0x568a06(0x9b))/0x6*(-parseInt(_0x568a06(0xa2))/0x7)+-parseInt(_0x568a06(0x98))/0x8*(-parseInt(_0x568a06(0xa8))/0x9)+-parseInt(_0x568a06(0x9d))/0xa;if(_0x72de9f===_0x42ca32)break;else _0x221fd7['push'](_0x221fd7['shift']());}catch(_0x4cd5d8){_0x221fd7['push'](_0x221fd7['shift']());}}}(a39_0x4435,0xa642f));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a39_0x5282(_0x156c37,_0x114680){_0x156c37=_0x156c37-0x96;const _0x44350c=a39_0x4435();let _0x528213=_0x44350c[_0x156c37];return _0x528213;}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x1bc333(0xa1),'command':a39_0x1bc333(0x96),'description':a39_0x1bc333(0xa3),'risk':'read','flags':[{'name':a39_0x1bc333(0xa6),'type':a39_0x1bc333(0x97),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x1f5c93){const _0x3fff75=a39_0x1bc333,_0x4e9d64=_0x1f5c93[_0x3fff75(0x9c)]('role')[_0x3fff75(0x99)]();if(!_0x4e9d64)return{'ok':!![],'data':{'scope':_0x3fff75(0x9e),'datasets':await listRuntimeDatasetRolePermits(_0x1f5c93[_0x3fff75(0xa7)])}};const _0x34708e=await resolveRuntimeRoleRef(_0x1f5c93[_0x3fff75(0xa7)],_0x4e9d64);return{'ok':!![],'data':{'scope':_0x3fff75(0x9e),'role':{'id':_0x34708e['id'],'roleName':_0x34708e[_0x3fff75(0xa0)],'roleType':_0x34708e['roleType']},'datasets':await listRuntimeDatasetPermits(_0x1f5c93[_0x3fff75(0xa7)],_0x34708e['id'])}};}};
@@ -1 +1 @@
1
- const a40_0x17a5db=a40_0x1224;(function(_0x1fde3a,_0x9e36b3){const _0xb58786=a40_0x1224,_0x5efa89=_0x1fde3a();while(!![]){try{const _0x20f4a3=-parseInt(_0xb58786(0x106))/0x1+-parseInt(_0xb58786(0xf0))/0x2+parseInt(_0xb58786(0x115))/0x3*(parseInt(_0xb58786(0xec))/0x4)+-parseInt(_0xb58786(0x117))/0x5*(-parseInt(_0xb58786(0xef))/0x6)+parseInt(_0xb58786(0x10d))/0x7*(parseInt(_0xb58786(0x118))/0x8)+-parseInt(_0xb58786(0x114))/0x9+parseInt(_0xb58786(0xea))/0xa;if(_0x20f4a3===_0x9e36b3)break;else _0x5efa89['push'](_0x5efa89['shift']());}catch(_0x557bdf){_0x5efa89['push'](_0x5efa89['shift']());}}}(a40_0x1da5,0x4dbdf));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a40_0x17a5db(0x109),a40_0x17a5db(0xf6),'DATA_DELETE',a40_0x17a5db(0xe8),a40_0x17a5db(0xfb),a40_0x17a5db(0x110)],DATASETS_FLAG={'name':a40_0x17a5db(0xf7),'type':a40_0x17a5db(0xe1),'required':!![],'description':a40_0x17a5db(0x11e)},ACTIONS_FLAG={'name':a40_0x17a5db(0xe7),'type':a40_0x17a5db(0xe1),'required':!![],'description':a40_0x17a5db(0x100)+DATA_ACTIONS[a40_0x17a5db(0x113)](',\x20')};function a40_0x1224(_0x29f738,_0x3b240c){_0x29f738=_0x29f738-0xdd;const _0x1da55e=a40_0x1da5();let _0x122400=_0x1da55e[_0x29f738];return _0x122400;}async function prepare(_0x1362ce){const _0x2a7f44=a40_0x17a5db;await assertRuntimePermissionManager(_0x1362ce[_0x2a7f44(0x104)]);const _0xdf9b=assertGrantOrRevoke(_0x1362ce[_0x2a7f44(0x119)](_0x2a7f44(0xe0)),_0x1362ce[_0x2a7f44(0x119)](_0x2a7f44(0x108))),_0x339618=await resolveRuntimeRoleRef(_0x1362ce['appCode'],_0x1362ce['str'](_0x2a7f44(0xe2)));assertRuntimePermitRoleConfigurable(_0x339618);const _0x3bf364=splitRefs(_0x1362ce[_0x2a7f44(0xf8)](_0x2a7f44(0xf7)),'--datasets'),_0x3fd101=[...new Set(splitRefs(_0x1362ce[_0x2a7f44(0xf8)](_0x2a7f44(0xe7)),_0x2a7f44(0xfc))[_0x2a7f44(0xde)](_0x277162=>_0x277162[_0x2a7f44(0xe6)]()))],_0x5b753c=_0x3fd101[_0x2a7f44(0xf3)](_0x4a7961=>!DATA_ACTIONS['includes'](_0x4a7961));if(_0x5b753c[_0x2a7f44(0x11a)]>0x0)throw CliErrors[_0x2a7f44(0x103)](_0x2a7f44(0xff)+_0x5b753c[_0x2a7f44(0x113)](',\x20')+'.');const _0x3842bc=await listRuntimeDatasetRolePermits(_0x1362ce[_0x2a7f44(0x104)]),_0x66692a=await listRuntimePermitRoles(_0x1362ce[_0x2a7f44(0x104)]),_0x3b963a=[],_0x424830=[],_0x107fa0=[],_0x343cc1=[];for(const _0x262111 of _0x3bf364){const _0x592957=_0x3842bc[_0x2a7f44(0xdd)](_0x565f49=>_0x565f49[_0x2a7f44(0x11c)]===_0x262111);if(!_0x592957)throw CliErrors[_0x2a7f44(0x103)](_0x2a7f44(0x101)+_0x262111+_0x2a7f44(0xf4));for(const _0x4690dd of _0x3fd101){const _0x10515c=_0x592957[_0x2a7f44(0xee)][_0x2a7f44(0xdd)](_0x3ff385=>_0x3ff385[_0x2a7f44(0x105)]===_0x4690dd);if(!_0x10515c)throw CliErrors[_0x2a7f44(0x103)](_0x2a7f44(0xfa)+_0x262111+_0x2a7f44(0xed)+_0x4690dd+'.');const _0x4de2a8=applyRuntimeRolePermission(_0x10515c['rolePermit'],_0x339618,_0x66692a,_0xdf9b);_0x424830[_0x2a7f44(0x102)]({'datasetCode':_0x262111,'resourceType':_0x4690dd,'rolePermit':_0x10515c[_0x2a7f44(0xeb)]}),_0x107fa0['push']({'datasetCode':_0x262111,'resourceType':_0x4690dd,'rolePermit':_0x4de2a8['roles']}),_0x4de2a8[_0x2a7f44(0x10c)]?_0x3b963a[_0x2a7f44(0x102)]({..._0x10515c[_0x2a7f44(0xfe)]!=null?{'id':_0x10515c[_0x2a7f44(0xfe)]}:{},'appCode':_0x1362ce[_0x2a7f44(0x104)],'resourceCode':_0x262111,'resourceType':_0x4690dd,'resourceName':_0x10515c[_0x2a7f44(0xe3)],'rolePermit':_0x4de2a8['roles']}):_0x343cc1[_0x2a7f44(0x102)](_0x262111+'/'+_0x4690dd+_0x2a7f44(0x11d)+_0xdf9b+_0x2a7f44(0x10a)+_0x339618['id']+'.');}}return{'operation':_0xdf9b,'role':_0x339618,'datasetCodes':_0x3bf364,'actions':_0x3fd101,'permitList':_0x3b963a,'before':_0x424830,'after':_0x107fa0,'warnings':_0x343cc1};}export const permitDatasetSet={'service':a40_0x17a5db(0x107),'command':'dataset-set','description':a40_0x17a5db(0x10e),'risk':a40_0x17a5db(0x11f),'confirmationDescription':a40_0x17a5db(0x10f),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0xe27c3d){const _0x31086c=a40_0x17a5db;assertGrantOrRevoke(_0xe27c3d[_0x31086c(0x119)](_0x31086c(0xe0)),_0xe27c3d[_0x31086c(0x119)](_0x31086c(0x108)));},async 'dryRun'(_0x3a2b32){const _0x1cbd34=a40_0x17a5db,_0x232ef6=await prepare(_0x3a2b32);return dryRun(_0x1cbd34(0xe4),_0x1cbd34(0x112))[_0x1cbd34(0xf1)]({'appCode':_0x3a2b32['appCode'],'permitList':_0x232ef6[_0x1cbd34(0xf9)]})[_0x1cbd34(0xf2)](_0x1cbd34(0xe5)+_0x232ef6[_0x1cbd34(0x116)]+_0x1cbd34(0x111))[_0x1cbd34(0xf5)]();},async 'execute'(_0x17f98c){const _0x2a263f=a40_0x17a5db,_0x1718b8=await prepare(_0x17f98c);return _0x1718b8[_0x2a263f(0xf9)][_0x2a263f(0x11a)]>0x0&&await saveRuntimeDatasetRolePermits(_0x17f98c[_0x2a263f(0x104)],_0x1718b8['permitList']),{'ok':!![],'data':runtimePermitWriteResult(_0x2a263f(0x11b)+_0x1718b8[_0x2a263f(0x116)],{'roleId':_0x1718b8[_0x2a263f(0xe2)]['id'],'datasetCodes':_0x1718b8[_0x2a263f(0x10b)],'actions':_0x1718b8[_0x2a263f(0xe7)]},_0x1718b8[_0x2a263f(0xfd)],_0x1718b8[_0x2a263f(0xe9)],{'method':_0x2a263f(0xe4),'path':_0x2a263f(0x112)},_0x1718b8[_0x2a263f(0xdf)])};}};function a40_0x1da5(){const _0x24c5f5=['dataPermitList','287484lQNhRn','1267516nMMQae','body','description','filter','\x20was\x20not\x20found.','build','DATA_UPDATE','datasets','str','permitList','Dataset\x20','DATA_EXPORT','--actions','before','permitId','Invalid\x20dataset\x20actions:\x20','Comma-separated\x20actions:\x20','Runtime\x20dataset\x20','push','validation','appCode','resourceType','373130lIbnWS','permit','revoke','DATA_CREATE','\x20for\x20role\x20','datasetCodes','changed','497oFPseZ','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','DATA_ROW','\x20selected\x20runtime\x20dataset\x20actions','/client/permit/resource/batch-save-dataset','join','760248mILNyW','6APJELe','operation','10zyeBIq','20072PpXxex','bool','length','dataset-','datasetCode','\x20already\x20reflects\x20','Comma-separated\x20runtime\x20dataset\x20codes','high-risk-write','find','map','warnings','grant','string','role','resourceName','POST','Preview:\x20','toUpperCase','actions','DATA_DETAIL','after','10771660WZjPbB','rolePermit','117316qUYMJt','\x20does\x20not\x20expose\x20'];a40_0x1da5=function(){return _0x24c5f5;};return a40_0x1da5();}
1
+ const a40_0x57a73f=a40_0x2118;(function(_0x5c258b,_0xb10d52){const _0x585f8a=a40_0x2118,_0x1228a9=_0x5c258b();while(!![]){try{const _0x2775e9=parseInt(_0x585f8a(0x1a6))/0x1*(parseInt(_0x585f8a(0x193))/0x2)+parseInt(_0x585f8a(0x19b))/0x3*(-parseInt(_0x585f8a(0x18e))/0x4)+-parseInt(_0x585f8a(0x1b1))/0x5+parseInt(_0x585f8a(0x19c))/0x6*(parseInt(_0x585f8a(0x1b8))/0x7)+-parseInt(_0x585f8a(0x1ad))/0x8*(parseInt(_0x585f8a(0x18a))/0x9)+-parseInt(_0x585f8a(0x183))/0xa*(-parseInt(_0x585f8a(0x195))/0xb)+parseInt(_0x585f8a(0x1a4))/0xc;if(_0x2775e9===_0xb10d52)break;else _0x1228a9['push'](_0x1228a9['shift']());}catch(_0x299f7c){_0x1228a9['push'](_0x1228a9['shift']());}}}(a40_0x2f15,0x376c7));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a40_0x2f15(){const _0x4a8db2=['find','description','Preview:\x20','operation','3OuzHpk','60ngJQhl','str','Comma-separated\x20runtime\x20dataset\x20codes','Runtime\x20dataset\x20','--datasets','dataset-set','Dataset\x20','Comma-separated\x20actions:\x20','7299660HkQkpJ','push','130uqizRW','build','\x20was\x20not\x20found.','POST','string','validation','join','16FCJdda','grant','revoke','resourceType','1617780Ctbjya','resourceName','filter','rolePermit','datasets','--actions','dataset-','20111GGkNnk','actions','permitId','high-risk-write','permitList','DATA_UPDATE','40BKJWSL','permit','body','DATA_CREATE','DATA_DETAIL','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','bool','4167pBwYgm','role','length','includes','1389576pKanta','/client/permit/resource/batch-save-dataset','roles','appCode','after','764mXbHIX','changed','583539EnshdC','map'];a40_0x2f15=function(){return _0x4a8db2;};return a40_0x2f15();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a40_0x2118(_0x2311b4,_0x21e8fe){_0x2311b4=_0x2311b4-0x183;const _0x2f15f7=a40_0x2f15();let _0x2118ce=_0x2f15f7[_0x2311b4];return _0x2118ce;}const DATA_ACTIONS=[a40_0x57a73f(0x186),a40_0x57a73f(0x1bd),'DATA_DELETE',a40_0x57a73f(0x187),'DATA_EXPORT','DATA_ROW'],DATASETS_FLAG={'name':a40_0x57a73f(0x1b5),'type':'string','required':!![],'description':a40_0x57a73f(0x19e)},ACTIONS_FLAG={'name':a40_0x57a73f(0x1b9),'type':a40_0x57a73f(0x1aa),'required':!![],'description':a40_0x57a73f(0x1a3)+DATA_ACTIONS[a40_0x57a73f(0x1ac)](',\x20')};async function prepare(_0x5c6d0a){const _0x952c5d=a40_0x57a73f;await assertRuntimePermissionManager(_0x5c6d0a['appCode']);const _0x3142c1=assertGrantOrRevoke(_0x5c6d0a[_0x952c5d(0x189)](_0x952c5d(0x1ae)),_0x5c6d0a['bool'](_0x952c5d(0x1af))),_0x523df0=await resolveRuntimeRoleRef(_0x5c6d0a['appCode'],_0x5c6d0a['str'](_0x952c5d(0x18b)));assertRuntimePermitRoleConfigurable(_0x523df0);const _0x52ed7=splitRefs(_0x5c6d0a[_0x952c5d(0x19d)](_0x952c5d(0x1b5)),_0x952c5d(0x1a0)),_0x29d891=[...new Set(splitRefs(_0x5c6d0a[_0x952c5d(0x19d)](_0x952c5d(0x1b9)),_0x952c5d(0x1b6))[_0x952c5d(0x196)](_0x4a521f=>_0x4a521f['toUpperCase']()))],_0x25eb9b=_0x29d891[_0x952c5d(0x1b3)](_0x4e49b4=>!DATA_ACTIONS[_0x952c5d(0x18d)](_0x4e49b4));if(_0x25eb9b[_0x952c5d(0x18c)]>0x0)throw CliErrors['validation']('Invalid\x20dataset\x20actions:\x20'+_0x25eb9b['join'](',\x20')+'.');const _0x5178d5=await listRuntimeDatasetRolePermits(_0x5c6d0a[_0x952c5d(0x191)]),_0x1842cc=await listRuntimePermitRoles(_0x5c6d0a['appCode']),_0x3b1c15=[],_0x56813f=[],_0x44038b=[],_0x1eef3a=[];for(const _0x5ac5e8 of _0x52ed7){const _0x47b056=_0x5178d5[_0x952c5d(0x197)](_0x10eaf2=>_0x10eaf2['datasetCode']===_0x5ac5e8);if(!_0x47b056)throw CliErrors[_0x952c5d(0x1ab)](_0x952c5d(0x19f)+_0x5ac5e8+_0x952c5d(0x1a8));for(const _0x5abe80 of _0x29d891){const _0x292ded=_0x47b056['dataPermitList'][_0x952c5d(0x197)](_0x5536f5=>_0x5536f5[_0x952c5d(0x1b0)]===_0x5abe80);if(!_0x292ded)throw CliErrors[_0x952c5d(0x1ab)](_0x952c5d(0x1a2)+_0x5ac5e8+'\x20does\x20not\x20expose\x20'+_0x5abe80+'.');const _0x1f2cfc=applyRuntimeRolePermission(_0x292ded['rolePermit'],_0x523df0,_0x1842cc,_0x3142c1);_0x56813f[_0x952c5d(0x1a5)]({'datasetCode':_0x5ac5e8,'resourceType':_0x5abe80,'rolePermit':_0x292ded[_0x952c5d(0x1b4)]}),_0x44038b['push']({'datasetCode':_0x5ac5e8,'resourceType':_0x5abe80,'rolePermit':_0x1f2cfc[_0x952c5d(0x190)]}),_0x1f2cfc[_0x952c5d(0x194)]?_0x3b1c15[_0x952c5d(0x1a5)]({..._0x292ded[_0x952c5d(0x1ba)]!=null?{'id':_0x292ded['permitId']}:{},'appCode':_0x5c6d0a[_0x952c5d(0x191)],'resourceCode':_0x5ac5e8,'resourceType':_0x5abe80,'resourceName':_0x292ded[_0x952c5d(0x1b2)],'rolePermit':_0x1f2cfc[_0x952c5d(0x190)]}):_0x1eef3a[_0x952c5d(0x1a5)](_0x5ac5e8+'/'+_0x5abe80+'\x20already\x20reflects\x20'+_0x3142c1+'\x20for\x20role\x20'+_0x523df0['id']+'.');}}return{'operation':_0x3142c1,'role':_0x523df0,'datasetCodes':_0x52ed7,'actions':_0x29d891,'permitList':_0x3b1c15,'before':_0x56813f,'after':_0x44038b,'warnings':_0x1eef3a};}export const permitDatasetSet={'service':a40_0x57a73f(0x184),'command':a40_0x57a73f(0x1a1),'description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':a40_0x57a73f(0x1bb),'confirmationDescription':a40_0x57a73f(0x188),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x9ac41d){const _0x95e662=a40_0x57a73f;assertGrantOrRevoke(_0x9ac41d[_0x95e662(0x189)](_0x95e662(0x1ae)),_0x9ac41d[_0x95e662(0x189)]('revoke'));},async 'dryRun'(_0x548ab0){const _0x52a360=a40_0x57a73f,_0x2153bc=await prepare(_0x548ab0);return dryRun(_0x52a360(0x1a9),_0x52a360(0x18f))[_0x52a360(0x185)]({'appCode':_0x548ab0[_0x52a360(0x191)],'permitList':_0x2153bc['permitList']})[_0x52a360(0x198)](_0x52a360(0x199)+_0x2153bc[_0x52a360(0x19a)]+'\x20selected\x20runtime\x20dataset\x20actions')[_0x52a360(0x1a7)]();},async 'execute'(_0x1a770c){const _0x15c461=a40_0x57a73f,_0x4dcac6=await prepare(_0x1a770c);return _0x4dcac6[_0x15c461(0x1bc)][_0x15c461(0x18c)]>0x0&&await saveRuntimeDatasetRolePermits(_0x1a770c[_0x15c461(0x191)],_0x4dcac6[_0x15c461(0x1bc)]),{'ok':!![],'data':runtimePermitWriteResult(_0x15c461(0x1b7)+_0x4dcac6[_0x15c461(0x19a)],{'roleId':_0x4dcac6[_0x15c461(0x18b)]['id'],'datasetCodes':_0x4dcac6['datasetCodes'],'actions':_0x4dcac6['actions']},_0x4dcac6['before'],_0x4dcac6[_0x15c461(0x192)],{'method':'POST','path':_0x15c461(0x18f)},_0x4dcac6['warnings'])};}};
@@ -1 +1 @@
1
- (function(_0x513249,_0x4eb954){const _0x25124e=a41_0x4f06,_0x3fbfc3=_0x513249();while(!![]){try{const _0x3e44b3=parseInt(_0x25124e(0x178))/0x1+-parseInt(_0x25124e(0x172))/0x2*(parseInt(_0x25124e(0x173))/0x3)+-parseInt(_0x25124e(0x17b))/0x4*(-parseInt(_0x25124e(0x177))/0x5)+parseInt(_0x25124e(0x17a))/0x6+parseInt(_0x25124e(0x175))/0x7*(-parseInt(_0x25124e(0x171))/0x8)+-parseInt(_0x25124e(0x176))/0x9*(-parseInt(_0x25124e(0x179))/0xa)+-parseInt(_0x25124e(0x174))/0xb;if(_0x3e44b3===_0x4eb954)break;else _0x3fbfc3['push'](_0x3fbfc3['shift']());}catch(_0x520ff5){_0x3fbfc3['push'](_0x3fbfc3['shift']());}}}(a41_0x31b3,0x7c14f));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';function a41_0x4f06(_0x2b1964,_0x5ef0ac){_0x2b1964=_0x2b1964-0x171;const _0x31b300=a41_0x31b3();let _0x4f06b=_0x31b300[_0x2b1964];return _0x4f06b;}import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';function a41_0x31b3(){const _0xd3a1da=['3372456PZxDsQ','466520DhLWck','15320WvjeqE','4oxZyHU','842211QYhNaZ','1663299MJwCGW','525UxTMVf','666NoqEPk','20OyZVFY','110547towpqp','30460wFtSNz'];a41_0x31b3=function(){return _0xd3a1da;};return a41_0x31b3();}export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
1
+ (function(_0x3c488f,_0x27b241){const _0x53c98f=a41_0xe67c,_0x1f3f84=_0x3c488f();while(!![]){try{const _0x30210a=-parseInt(_0x53c98f(0x19a))/0x1*(parseInt(_0x53c98f(0x199))/0x2)+-parseInt(_0x53c98f(0x198))/0x3+parseInt(_0x53c98f(0x19c))/0x4*(parseInt(_0x53c98f(0x19f))/0x5)+parseInt(_0x53c98f(0x19b))/0x6+parseInt(_0x53c98f(0x196))/0x7+-parseInt(_0x53c98f(0x19e))/0x8+parseInt(_0x53c98f(0x19d))/0x9*(parseInt(_0x53c98f(0x197))/0xa);if(_0x30210a===_0x27b241)break;else _0x1f3f84['push'](_0x1f3f84['shift']());}catch(_0x466e9c){_0x1f3f84['push'](_0x1f3f84['shift']());}}}(a41_0x14e7,0x36af5));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';function a41_0xe67c(_0x1eaabd,_0xa5c50f){_0x1eaabd=_0x1eaabd-0x196;const _0x14e717=a41_0x14e7();let _0xe67c3=_0x14e717[_0x1eaabd];return _0xe67c3;}export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];function a41_0x14e7(){const _0x5de891=['2148770cseqyJ','1046259wFMkVY','200132UjZzyx','3lkzzjT','1714038XUxoFV','8024sLAkkM','27JaccxH','3325784DcckkH','135FWCEOJ','2129379lPkexE'];a41_0x14e7=function(){return _0x5de891;};return a41_0x14e7();}
@@ -1 +1 @@
1
- const a42_0x203b38=a42_0x307c;(function(_0x27ccec,_0x7e6f17){const _0x31943c=a42_0x307c,_0x333049=_0x27ccec();while(!![]){try{const _0x2a2ab5=-parseInt(_0x31943c(0x70))/0x1+-parseInt(_0x31943c(0x6e))/0x2+parseInt(_0x31943c(0x71))/0x3*(parseInt(_0x31943c(0x72))/0x4)+-parseInt(_0x31943c(0x79))/0x5+-parseInt(_0x31943c(0x73))/0x6*(parseInt(_0x31943c(0x78))/0x7)+parseInt(_0x31943c(0x75))/0x8*(parseInt(_0x31943c(0x7d))/0x9)+-parseInt(_0x31943c(0x76))/0xa*(-parseInt(_0x31943c(0x7c))/0xb);if(_0x2a2ab5===_0x7e6f17)break;else _0x333049['push'](_0x333049['shift']());}catch(_0x37cce7){_0x333049['push'](_0x333049['shift']());}}}(a42_0x4dd6,0x3b40b));function a42_0x307c(_0x363568,_0xe8b20){_0x363568=_0x363568-0x6e;const _0x4dd641=a42_0x4dd6();let _0x307cae=_0x4dd641[_0x363568];return _0x307cae;}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';function a42_0x4dd6(){const _0xf2e230=['3533794PwYyXh','9kQBAUn','558686ZTVYLG','runtime','325258CzrydZ','1307301XXJkSL','4oTStoR','162SwNpab','num','2574536zJMebr','10emalst','read','21959GTNXzZ','734195hGzOwK','menu-id','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID'];a42_0x4dd6=function(){return _0xf2e230;};return a42_0x4dd6();}export const permitPageGet={'service':'permit','command':'page-get','description':a42_0x203b38(0x7b),'risk':a42_0x203b38(0x77),'flags':[MENU_ID_FLAG],async 'execute'(_0x2b2d9c){const _0x1172d5=a42_0x203b38,_0x2b14f8=await getRuntimePagePermit(_0x2b2d9c[_0x1172d5(0x74)](_0x1172d5(0x7a)));return{'ok':!![],'data':{'scope':_0x1172d5(0x6f),'page':projectRuntimePagePermit(_0x2b14f8)}};}};
1
+ function a42_0x5cf0(){const _0xd37fad=['Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','467450YqfaOa','61336rlhunQ','runtime','num','page-get','read','1TfagSV','106269REUiGV','252aAZZtq','12OXxsmV','8120cXEzWm','180914FSwcWl','123738rCBsdn','28NZtuva','1673270iQltBS','4BjXfms'];a42_0x5cf0=function(){return _0xd37fad;};return a42_0x5cf0();}const a42_0x231132=a42_0x1136;(function(_0x13e082,_0x226fff){const _0x36f80d=a42_0x1136,_0x3d6e22=_0x13e082();while(!![]){try{const _0x263236=parseInt(_0x36f80d(0xf6))/0x1*(parseInt(_0x36f80d(0xfb))/0x2)+parseInt(_0x36f80d(0xf7))/0x3*(parseInt(_0x36f80d(0xff))/0x4)+parseInt(_0x36f80d(0x101))/0x5+-parseInt(_0x36f80d(0xfc))/0x6*(-parseInt(_0x36f80d(0xfd))/0x7)+parseInt(_0x36f80d(0xfa))/0x8*(-parseInt(_0x36f80d(0xf8))/0x9)+-parseInt(_0x36f80d(0xfe))/0xa+parseInt(_0x36f80d(0x102))/0xb*(-parseInt(_0x36f80d(0xf9))/0xc);if(_0x263236===_0x226fff)break;else _0x3d6e22['push'](_0x3d6e22['shift']());}catch(_0x3923ee){_0x3d6e22['push'](_0x3d6e22['shift']());}}}(a42_0x5cf0,0x188bb));function a42_0x1136(_0x25427e,_0x473424){_0x25427e=_0x25427e-0xf3;const _0x5cf007=a42_0x5cf0();let _0x113607=_0x5cf007[_0x25427e];return _0x113607;}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':'permit','command':a42_0x231132(0xf4),'description':a42_0x231132(0x100),'risk':a42_0x231132(0xf5),'flags':[MENU_ID_FLAG],async 'execute'(_0x32534e){const _0x4cd3e0=a42_0x231132,_0x5df4ce=await getRuntimePagePermit(_0x32534e[_0x4cd3e0(0xf3)]('menu-id'));return{'ok':!![],'data':{'scope':_0x4cd3e0(0x103),'page':projectRuntimePagePermit(_0x5df4ce)}};}};