@lovrabet/lovrabet-cli 2.2.7 → 2.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) 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.d.ts +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.d.ts +12 -0
  26. package/lib/commands/config/init.js +1 -0
  27. package/lib/commands/config/shared.d.ts +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +11 -0
  93. package/lib/config/domain-config.js +1 -0
  94. package/lib/config/schema.d.ts +7 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.d.ts +4 -0
  101. package/lib/constant/distribution.js +1 -1
  102. package/lib/constant/domain.d.ts +10 -3
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/output.js +1 -1
  106. package/lib/constant/product.d.ts +52 -14
  107. package/lib/constant/product.js +1 -1
  108. package/lib/constant/region.d.ts +15 -0
  109. package/lib/constant/region.js +1 -0
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.d.ts +2 -0
  112. package/lib/constant/url.js +1 -1
  113. package/lib/context.d.ts +2 -6
  114. package/lib/context.js +1 -1
  115. package/lib/core/api-client.js +1 -1
  116. package/lib/core/db-resolver.js +1 -1
  117. package/lib/core/sdk-client.d.ts +2 -0
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/build-all-flags.js +1 -1
  121. package/lib/framework/dryrun.js +1 -1
  122. package/lib/framework/flags.js +1 -1
  123. package/lib/framework/help.js +1 -1
  124. package/lib/framework/index.js +1 -1
  125. package/lib/framework/output.js +1 -1
  126. package/lib/framework/preparse.js +1 -1
  127. package/lib/framework/rate-limit.js +1 -1
  128. package/lib/framework/raw-flags.js +1 -1
  129. package/lib/framework/response.js +1 -1
  130. package/lib/framework/runner-confirmation.js +1 -1
  131. package/lib/framework/runner-error.js +1 -1
  132. package/lib/framework/runner.d.ts +3 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/help.js +1 -1
  140. package/lib/postinstall.js +1 -1
  141. package/lib/runtime/confirmation.js +1 -1
  142. package/lib/runtime/event.js +1 -1
  143. package/lib/runtime/index.js +1 -1
  144. package/lib/runtime/queue.js +1 -1
  145. package/lib/runtime/resolve.js +1 -1
  146. package/lib/skills/builtin-skill.js +1 -1
  147. package/lib/skills/npx-skills-add.js +1 -1
  148. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  149. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  150. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  151. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  152. package/lib/skills/runtime-skill-sync/links.js +1 -1
  153. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  154. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  155. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  156. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  157. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  158. package/lib/skills/runtime-skill-sync/push.js +1 -1
  159. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  162. package/lib/skills/runtime-skill-sync.js +1 -1
  163. package/lib/skills/skill-presence.js +1 -1
  164. package/lib/utils/access-key-redaction.d.ts +15 -0
  165. package/lib/utils/access-key-redaction.js +1 -0
  166. package/lib/utils/apply-jq-filter.js +1 -1
  167. package/lib/utils/cli-version-check.d.ts +12 -0
  168. package/lib/utils/cli-version-check.js +1 -0
  169. package/lib/utils/cli-version-policy.d.ts +12 -0
  170. package/lib/utils/cli-version-policy.js +1 -0
  171. package/lib/utils/logger.js +1 -1
  172. package/lib/utils/lossless-json.js +1 -1
  173. package/lib/utils/params.js +1 -1
  174. package/lib/utils/platform.js +1 -1
  175. package/lib/utils/update-notice.d.ts +2 -1
  176. package/lib/utils/update-notice.js +1 -1
  177. package/lib/utils/version.js +1 -1
  178. package/lib/utils/write-cli-side-channel.js +1 -1
  179. package/package.json +3 -1
  180. package/skills/lovrabet/SKILL.md +11 -12
  181. package/skills/lovrabet/guides/troubleshooting.md +12 -8
  182. package/skills/lovrabet/references/lovrabet-app.md +1 -1
  183. package/skills/lovrabet/references/lovrabet-auth.md +7 -25
  184. package/skills/lovrabet/references/lovrabet-config-commands.md +42 -5
  185. package/skills/lovrabet/references/lovrabet-config.md +25 -5
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0xfac1f3,_0x576068){const _0x115aa5=a26_0x209d,_0x3fbc8b=_0xfac1f3();while(!![]){try{const _0x1c38c6=-parseInt(_0x115aa5(0x1a0))/0x1+-parseInt(_0x115aa5(0x1a2))/0x2+-parseInt(_0x115aa5(0x19f))/0x3*(-parseInt(_0x115aa5(0x19e))/0x4)+parseInt(_0x115aa5(0x1a1))/0x5*(-parseInt(_0x115aa5(0x19d))/0x6)+parseInt(_0x115aa5(0x1a4))/0x7*(parseInt(_0x115aa5(0x19b))/0x8)+parseInt(_0x115aa5(0x1a3))/0x9+parseInt(_0x115aa5(0x19c))/0xa;if(_0x1c38c6===_0x576068)break;else _0x3fbc8b['push'](_0x3fbc8b['shift']());}catch(_0x4cd90c){_0x3fbc8b['push'](_0x3fbc8b['shift']());}}}(a26_0x5a5f,0x4bca6));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x5a5f(){const _0x3cd61e=['371qUHtov','45928SzOgKG','7395260dgwOHd','1768794MzIftQ','4EfQhWg','768858zsXDto','595007qDXzGk','5vVjgaB','601836CKhXCd','1809693GWqiFw'];a26_0x5a5f=function(){return _0x3cd61e;};return a26_0x5a5f();}function a26_0x209d(_0x3722fe,_0x17ec82){_0x3722fe=_0x3722fe-0x19b;const _0x5a5fa4=a26_0x5a5f();let _0x209db4=_0x5a5fa4[_0x3722fe];return _0x209db4;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0xd52702,_0x3c5a78){const _0x454965=a27_0x2a15,_0x25bc6b=_0xd52702();while(!![]){try{const _0x21acbc=parseInt(_0x454965(0x1ba))/0x1+parseInt(_0x454965(0x1bd))/0x2*(parseInt(_0x454965(0x1bc))/0x3)+-parseInt(_0x454965(0x1bf))/0x4+parseInt(_0x454965(0x1be))/0x5+parseInt(_0x454965(0x1c0))/0x6+-parseInt(_0x454965(0x1c1))/0x7+parseInt(_0x454965(0x1bb))/0x8;if(_0x21acbc===_0x3c5a78)break;else _0x25bc6b['push'](_0x25bc6b['shift']());}catch(_0x7a6c76){_0x25bc6b['push'](_0x25bc6b['shift']());}}}(a27_0x4c06,0x32e16));import{datasetList}from'../../commands/dataset/list.js';function a27_0x4c06(){const _0x2754f4=['209640YnNgQn','6KvWNvp','24040xIegpb','1028872icywOY','264wwSTFS','520352Wehrst','195661jOqTws','1038456JEREna'];a27_0x4c06=function(){return _0x2754f4;};return a27_0x4c06();}function a27_0x2a15(_0x37ce7c,_0x3ff821){_0x37ce7c=_0x37ce7c-0x1ba;const _0x4c06fc=a27_0x4c06();let _0x2a15a9=_0x4c06fc[_0x37ce7c];return _0x2a15a9;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x38f236=a27_0x20de;(function(_0x39fb0a,_0x1280bb){const _0x28fff0=a27_0x20de,_0x38f419=_0x39fb0a();while(!![]){try{const _0x53776f=-parseInt(_0x28fff0(0x9c))/0x1+parseInt(_0x28fff0(0xa8))/0x2*(parseInt(_0x28fff0(0xb1))/0x3)+parseInt(_0x28fff0(0xae))/0x4*(parseInt(_0x28fff0(0x9f))/0x5)+parseInt(_0x28fff0(0x9a))/0x6+parseInt(_0x28fff0(0xb0))/0x7+-parseInt(_0x28fff0(0x9e))/0x8+parseInt(_0x28fff0(0xa3))/0x9;if(_0x53776f===_0x1280bb)break;else _0x38f419['push'](_0x38f419['shift']());}catch(_0x4e7092){_0x38f419['push'](_0x38f419['shift']());}}}(a27_0x57dc,0x3cf85));function a27_0x57dc(){const _0x16777b=['description','646556AmcZZH','map','20272DjArdW','7071uteOJQ','datasetKey','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','1156176wWvIqd','source','368012ZjmHvq','code','764720sLQMpD','5XRNMuT','tableName','dataset','str','3056445ZGlTEm','trim','dbtableConfig','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','appCode','14pYEZSp','string','allFields','pkField','split'];a27_0x57dc=function(){return _0x16777b;};return a27_0x57dc();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x20de(_0x2d6ec7,_0x31d25d){_0x2d6ec7=_0x2d6ec7-0x99;const _0x57dcc9=a27_0x57dc();let _0x20dea3=_0x57dcc9[_0x2d6ec7];return _0x20dea3;}export const datasetList={'service':a27_0x38f236(0xa1),'command':'list','description':a27_0x38f236(0xa6),'risk':'read','flags':[{'name':'name','type':a27_0x38f236(0xa9),'description':a27_0x38f236(0x99)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x251b06){const _0x1feb3a=a27_0x38f236,_0x13dbfc=_0x251b06[_0x1feb3a(0xa2)]('name'),_0x107f05=_0x251b06['str'](_0x1feb3a(0x9d)),_0xb382ce=await listDatasets(_0x251b06[_0x1feb3a(0xa7)],{..._0x13dbfc&&{'name':_0x13dbfc},..._0x107f05&&{'code':_0x107f05}});return{'ok':!![],'data':{'total':_0xb382ce['length'],'datasets':_0xb382ce[_0x1feb3a(0xaf)](_0x3ee48a=>{const _0x2a2d27=_0x1feb3a,_0x5f2770=_0x3ee48a[_0x2a2d27(0xa5)]??{};return{'id':_0x3ee48a['id'],'code':_0x3ee48a['code'],'name':_0x3ee48a['name'],'source':_0x3ee48a[_0x2a2d27(0x9b)],'description':_0x3ee48a[_0x2a2d27(0xad)],'table':_0x5f2770[_0x2a2d27(0xa0)],'datasetKey':_0x5f2770[_0x2a2d27(0xb2)],'pk':_0x5f2770[_0x2a2d27(0xab)],'fields':_0x5f2770['allFields']?_0x5f2770[_0x2a2d27(0xaa)][_0x2a2d27(0xac)](',')['map'](_0x2646cf=>_0x2646cf[_0x2a2d27(0xa4)]()):[]};})}};}};
1
+ const a28_0x253ac8=a28_0x549e;(function(_0x1011c5,_0x546fd2){const _0x120192=a28_0x549e,_0x1b333a=_0x1011c5();while(!![]){try{const _0x420650=-parseInt(_0x120192(0x10f))/0x1*(parseInt(_0x120192(0x108))/0x2)+-parseInt(_0x120192(0x112))/0x3*(-parseInt(_0x120192(0xfb))/0x4)+-parseInt(_0x120192(0x10c))/0x5+parseInt(_0x120192(0x113))/0x6*(parseInt(_0x120192(0x105))/0x7)+parseInt(_0x120192(0x10b))/0x8+parseInt(_0x120192(0x103))/0x9*(parseInt(_0x120192(0x100))/0xa)+parseInt(_0x120192(0xfc))/0xb;if(_0x420650===_0x546fd2)break;else _0x1b333a['push'](_0x1b333a['shift']());}catch(_0x355b8c){_0x1b333a['push'](_0x1b333a['shift']());}}}(a28_0x3cdb,0xcc1fd));function a28_0x549e(_0x1a1000,_0x1231e3){_0x1a1000=_0x1a1000-0xfb;const _0x3cdb42=a28_0x3cdb();let _0x549e60=_0x3cdb42[_0x1a1000];return _0x549e60;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x3cdb(){const _0x5bffdd=['tableName','list','823005acumSp','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','7vPOKNo','name','split','48jgxXYy','string','str','2253176DNhVLr','8024380lgzGXX','allFields','map','56659DUTFIE','description','read','1608477NLWfZt','9487362oqSbZj','datasetKey','appCode','4GQBzNA','5360322nlzhPv','code','pkField','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','100xVNCxq'];a28_0x3cdb=function(){return _0x5bffdd;};return a28_0x3cdb();}export const datasetList={'service':'dataset','command':a28_0x253ac8(0x102),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a28_0x253ac8(0x111),'flags':[{'name':a28_0x253ac8(0x106),'type':a28_0x253ac8(0x109),'description':a28_0x253ac8(0xff)},{...CODE_FLAG,'required':![],'description':a28_0x253ac8(0x104)}],async 'execute'(_0x5b789c){const _0x4319f4=a28_0x253ac8,_0x248e77=_0x5b789c['str'](_0x4319f4(0x106)),_0x3f740f=_0x5b789c[_0x4319f4(0x10a)](_0x4319f4(0xfd)),_0x273c6e=await listDatasets(_0x5b789c[_0x4319f4(0x115)],{..._0x248e77&&{'name':_0x248e77},..._0x3f740f&&{'code':_0x3f740f}});return{'ok':!![],'data':{'total':_0x273c6e['length'],'datasets':_0x273c6e['map'](_0x589f0c=>{const _0x33e3df=_0x4319f4,_0x482dd3=_0x589f0c['dbtableConfig']??{};return{'id':_0x589f0c['id'],'code':_0x589f0c[_0x33e3df(0xfd)],'name':_0x589f0c['name'],'source':_0x589f0c['source'],'description':_0x589f0c[_0x33e3df(0x110)],'table':_0x482dd3[_0x33e3df(0x101)],'datasetKey':_0x482dd3[_0x33e3df(0x114)],'pk':_0x482dd3[_0x33e3df(0xfe)],'fields':_0x482dd3[_0x33e3df(0x10d)]?_0x482dd3[_0x33e3df(0x10d)][_0x33e3df(0x107)](',')[_0x33e3df(0x10e)](_0x4c2c2b=>_0x4c2c2b['trim']()):[]};})}};}};
@@ -1 +1 @@
1
- function a28_0x215d(){const _0x4c03cb=['read','3330272sHKcRd','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','dataset','20RnLPZG','536809NEwSSG','appCode','134382nWAOMo','1115880HkTPQt','7MpDrZL','3311772eFgdwP','str','2009190ndLcrn','code','9958860ckKzzD','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a28_0x215d=function(){return _0x4c03cb;};return a28_0x215d();}const a28_0x495f65=a28_0x3035;(function(_0x4f0ea7,_0x3a86fc){const _0x278641=a28_0x3035,_0x2087f0=_0x4f0ea7();while(!![]){try{const _0x2a5096=parseInt(_0x278641(0x18f))/0x1+-parseInt(_0x278641(0x192))/0x2+-parseInt(_0x278641(0x191))/0x3*(parseInt(_0x278641(0x18e))/0x4)+-parseInt(_0x278641(0x185))/0x5+-parseInt(_0x278641(0x194))/0x6+-parseInt(_0x278641(0x193))/0x7*(-parseInt(_0x278641(0x18b))/0x8)+parseInt(_0x278641(0x187))/0x9;if(_0x2a5096===_0x3a86fc)break;else _0x2087f0['push'](_0x2087f0['shift']());}catch(_0x1d58e8){_0x2087f0['push'](_0x2087f0['shift']());}}}(a28_0x215d,0x4f153));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x3035(_0x3580ef,_0x19d9b8){_0x3580ef=_0x3580ef-0x184;const _0x215dba=a28_0x215d();let _0x30356f=_0x215dba[_0x3580ef];return _0x30356f;}const DEFAULT_MARKDOWN=a28_0x495f65(0x188);export function formatDatasetSdkMarkdown(_0x2ab9cd){const _0x49c05a=typeof _0x2ab9cd==='string'?_0x2ab9cd['trim']():'';return _0x49c05a||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x495f65(0x18d),'command':'sdk-doc','description':a28_0x495f65(0x189),'risk':a28_0x495f65(0x18a),'flags':[{...CODE_FLAG,'description':a28_0x495f65(0x18c)}],async 'execute'(_0x184064){const _0x43f31b=a28_0x495f65,_0x31f049=_0x184064[_0x43f31b(0x184)](_0x43f31b(0x186)),_0x456a5c=await getDatasetSdkUsageDoc(_0x31f049,_0x184064[_0x43f31b(0x190)]);return{'ok':!![],'data':{'code':_0x31f049,'appCode':_0x184064[_0x43f31b(0x190)],'markdown':formatDatasetSdkMarkdown(_0x456a5c)}};}};
1
+ function a29_0x1f83(){const _0x7ab35=['Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2885RnbVeE','read','dataset','appCode','33834GTcMrS','203HwdkUv','2191488LJNJQm','2104Phijlr','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','717032aAefmd','4306010aMCKMj','code','9nOqldS','51403NKFgNM','106vjRKsx','144384FUFeSM','1812icxmQT','sdk-doc','str','string'];a29_0x1f83=function(){return _0x7ab35;};return a29_0x1f83();}const a29_0x4c2994=a29_0x100a;(function(_0x4869af,_0x5ce953){const _0x2375bb=a29_0x100a,_0x3124a0=_0x4869af();while(!![]){try{const _0x25310d=-parseInt(_0x2375bb(0xef))/0x1+parseInt(_0x2375bb(0xde))/0x2*(-parseInt(_0x2375bb(0xea))/0x3)+parseInt(_0x2375bb(0xed))/0x4*(-parseInt(_0x2375bb(0xe6))/0x5)+parseInt(_0x2375bb(0xec))/0x6+parseInt(_0x2375bb(0xeb))/0x7*(parseInt(_0x2375bb(0xdf))/0x8)+-parseInt(_0x2375bb(0xf2))/0x9*(-parseInt(_0x2375bb(0xf0))/0xa)+parseInt(_0x2375bb(0xf3))/0xb*(parseInt(_0x2375bb(0xe0))/0xc);if(_0x25310d===_0x5ce953)break;else _0x3124a0['push'](_0x3124a0['shift']());}catch(_0x4563fe){_0x3124a0['push'](_0x3124a0['shift']());}}}(a29_0x1f83,0x63444));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x4c2994(0xee);function a29_0x100a(_0xd006f,_0x251e19){_0xd006f=_0xd006f-0xde;const _0x1f83cf=a29_0x1f83();let _0x100af3=_0x1f83cf[_0xd006f];return _0x100af3;}export function formatDatasetSdkMarkdown(_0x14f3df){const _0x47fd9f=a29_0x4c2994,_0x4693a1=typeof _0x14f3df===_0x47fd9f(0xe3)?_0x14f3df['trim']():'';return _0x4693a1||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x4c2994(0xe8),'command':a29_0x4c2994(0xe1),'description':a29_0x4c2994(0xe4),'risk':a29_0x4c2994(0xe7),'flags':[{...CODE_FLAG,'description':a29_0x4c2994(0xe5)}],async 'execute'(_0x5c6ebe){const _0x4cacc9=a29_0x4c2994,_0x45a313=_0x5c6ebe[_0x4cacc9(0xe2)](_0x4cacc9(0xf1)),_0x2f4cb9=await getDatasetSdkUsageDoc(_0x45a313,_0x5c6ebe[_0x4cacc9(0xe9)]);return{'ok':!![],'data':{'code':_0x45a313,'appCode':_0x5c6ebe[_0x4cacc9(0xe9)],'markdown':formatDatasetSdkMarkdown(_0x2f4cb9)}};}};
@@ -1 +1 @@
1
- const a29_0x135465=a29_0x4c11;(function(_0x33cae9,_0x282792){const _0x3a8fc=a29_0x4c11,_0x27dbb8=_0x33cae9();while(!![]){try{const _0x258e82=-parseInt(_0x3a8fc(0xbe))/0x1+-parseInt(_0x3a8fc(0xd6))/0x2*(parseInt(_0x3a8fc(0xb5))/0x3)+parseInt(_0x3a8fc(0xa4))/0x4+parseInt(_0x3a8fc(0xa0))/0x5+-parseInt(_0x3a8fc(0x90))/0x6*(parseInt(_0x3a8fc(0x76))/0x7)+parseInt(_0x3a8fc(0xc6))/0x8*(parseInt(_0x3a8fc(0x7e))/0x9)+parseInt(_0x3a8fc(0x9d))/0xa*(-parseInt(_0x3a8fc(0x9f))/0xb);if(_0x258e82===_0x282792)break;else _0x27dbb8['push'](_0x27dbb8['shift']());}catch(_0x1eb9aa){_0x27dbb8['push'](_0x27dbb8['shift']());}}}(a29_0x3d54,0x7367b));import a29_0x3e9f53 from'chalk';function a29_0x3d54(){const _0x1c5e97=['(not\x20found)','defaultApp','✗\x20Invalid\x20JSON','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','1012oXpowY','ClientAk','21bnoTQo','current','yellow','padEnd','(not\x20set)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(none)','bold','3456dmtMFR','format','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','registryPath','\x20\x20Service\x20Tree','version','gray','state','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','(missing)','packageVersion','commandCount','env','serviceCode','serviceCount','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','404370dcNunV','reason','repairCommand','accessKey','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Auth','\x20commands)','(set,\x20length=','source','✓\x20current','\x20doctor','length','status','360DhXgze','green','109461GjPqCg','3880265oGunbF','message','locale','pageSize','1675856IITJqq','arch','\x20\x20Config\x20Files','currentApp','\x20\x20Merged\x20Config','appCode','(unnamed)','\x20\x20API\x20Endpoints','\x20\x20auth\x20(effective):\x20','\x20\x20Config\x20JSON','services','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','✓\x20Loaded','doctor','repeat','path','747QNaXAp','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','red','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20─','700607JkscKI','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','name','empty','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','log','read','13848kNrbQF','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project'];a29_0x3d54=function(){return _0x1c5e97;};return a29_0x3d54();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';function a29_0x4c11(_0x204064,_0x4f60b6){_0x204064=_0x204064-0x75;const _0x3d5467=a29_0x3d54();let _0x4c11f4=_0x3d5467[_0x204064];return _0x4c11f4;}import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x28be0){const _0xac3cc6=a29_0x4c11,_0x52136f=getCliVersion(),_0x46a3f9=buildConfigFromFlags({});await initGlobalEnvironment(_0x46a3f9),console['log'](),console['log'](a29_0x3e9f53[_0xac3cc6(0x7d)](CLI_BIN_NAME+_0xac3cc6(0x9a))),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)]('─'[_0xac3cc6(0xb3)](0x32))),console[_0xac3cc6(0xc4)](_0xac3cc6(0xb8)+_0x52136f),console[_0xac3cc6(0xc4)](_0xac3cc6(0xc8)+process[_0xac3cc6(0x83)]),console['log'](_0xac3cc6(0xd4)+process['platform']+'\x20'+process[_0xac3cc6(0xa5)]);const _0x26e7fb=inspectBuiltinSkill();console['log'](),console[_0xac3cc6(0xc4)](a29_0x3e9f53['bold']('\x20\x20Built-in\x20Skill')),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xbd)[_0xac3cc6(0xb3)](0x1e))),console[_0xac3cc6(0xc4)](_0xac3cc6(0xc7)+(_0x26e7fb[_0xac3cc6(0x85)]===_0xac3cc6(0x77)?a29_0x3e9f53[_0xac3cc6(0x9e)](_0xac3cc6(0x99)):a29_0x3e9f53[_0xac3cc6(0xbb)]('✗\x20'+_0x26e7fb[_0xac3cc6(0x85)]))),console[_0xac3cc6(0xc4)]('\x20\x20Package\x20Version:\x20'+_0x26e7fb[_0xac3cc6(0x89)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x26e7fb[_0xac3cc6(0xce)]||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0x88)))),console[_0xac3cc6(0xc4)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x26e7fb[_0xac3cc6(0xb0)]||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xca))));_0x26e7fb[_0xac3cc6(0x85)]!==_0xac3cc6(0x77)&&console[_0xac3cc6(0xc4)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x26e7fb[_0xac3cc6(0x92)]);_0x26e7fb[_0xac3cc6(0x91)]&&console['log'](_0xac3cc6(0xbf)+_0x26e7fb[_0xac3cc6(0x91)]);console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x7d)](_0xac3cc6(0xa6))),console['log'](a29_0x3e9f53['gray'](_0xac3cc6(0xbd)[_0xac3cc6(0xb3)](0x1e)));const _0x5ef3d2=getGlobalConfigPath(),_0xd584d6=getProjectConfigPath();console[_0xac3cc6(0xc4)](_0xac3cc6(0x8e)+(_0x5ef3d2||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xca)))),console['log'](_0xac3cc6(0xcd)+(_0xd584d6||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xca)))),console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53['bold'](_0xac3cc6(0xad))),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xbd)[_0xac3cc6(0xb3)](0x1e)));const _0x723cba=(_0x963672,_0x4620ea)=>{const _0x565fd2=_0xac3cc6;if(!_0x4620ea){console[_0x565fd2(0xc4)]('\x20\x20'+_0x963672[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53[_0x565fd2(0x84)](_0x565fd2(0xd3)));return;}const _0x52b466=inspectCliConfigJsonFile(_0x4620ea);if(_0x52b466['status']==='ok')console['log']('\x20\x20'+_0x963672[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53['green']('✓\x20Valid\x20JSON'));else{if(_0x52b466['status']===_0x565fd2(0xc2))console[_0x565fd2(0xc4)]('\x20\x20'+_0x963672[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53['yellow'](_0x565fd2(0xbc)));else _0x52b466[_0x565fd2(0x9c)]===_0x565fd2(0xc0)?console[_0x565fd2(0xc4)]('\x20\x20'+_0x963672[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53['gray']('(missing)')):(console[_0x565fd2(0xc4)]('\x20\x20'+_0x963672[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53['red'](_0x565fd2(0xcc))),console[_0x565fd2(0xc4)]('\x20\x20'+''[_0x565fd2(0x79)](0x11)+'\x20'+a29_0x3e9f53[_0x565fd2(0xbb)](_0x52b466[_0x565fd2(0xa1)])));}};_0x723cba(_0xac3cc6(0x87),_0x5ef3d2),_0x723cba(_0xac3cc6(0xc9),_0xd584d6),console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53['bold'](_0xac3cc6(0xa8))),console['log'](a29_0x3e9f53[_0xac3cc6(0x84)]('\x20\x20─'[_0xac3cc6(0xb3)](0x1e))),console[_0xac3cc6(0xc4)](_0xac3cc6(0xaf)+(_0x46a3f9[_0xac3cc6(0xa9)]||a29_0x3e9f53[_0xac3cc6(0xbb)](_0xac3cc6(0x7a)))),console[_0xac3cc6(0xc4)](_0xac3cc6(0x86)+_0x46a3f9[_0xac3cc6(0x8b)]);const _0x1e9085=isLegacyCompatConfigKey(_0xac3cc6(0xa2))?a29_0x3e9f53[_0xac3cc6(0x84)](_0x46a3f9[_0xac3cc6(0xa2)]+_0xac3cc6(0xb7)):_0x46a3f9['locale'];console['log'](_0xac3cc6(0xcf)+_0x1e9085),console[_0xac3cc6(0xc4)](_0xac3cc6(0x7b)+(_0x46a3f9[_0xac3cc6(0xcb)]||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0x7c)))),console[_0xac3cc6(0xc4)](_0xac3cc6(0x8f)+(_0x46a3f9[_0xac3cc6(0xa7)]||a29_0x3e9f53[_0xac3cc6(0x84)]('(none)'))),console[_0xac3cc6(0xc4)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x46a3f9[_0xac3cc6(0x7f)]||a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xba)+DEFAULT_CONFIG_VALUES[_0xac3cc6(0x7f)]+')'))),console['log'](_0xac3cc6(0xb9)+(_0x46a3f9[_0xac3cc6(0xa3)]??a29_0x3e9f53[_0xac3cc6(0x84)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x46a3f9['riskLevel']),console[_0xac3cc6(0xc4)](_0xac3cc6(0xd1)+_0x46a3f9['verbose']),console[_0xac3cc6(0xc4)](_0xac3cc6(0xac)+AUTH_MODE[_0xac3cc6(0x75)]),console[_0xac3cc6(0xc4)](_0xac3cc6(0xb6)+(_0x46a3f9[_0xac3cc6(0x93)]?a29_0x3e9f53[_0xac3cc6(0x9e)](_0xac3cc6(0x97)+_0x46a3f9[_0xac3cc6(0x93)][_0xac3cc6(0x9b)]+')'):a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0x7c)))),console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x7d)](_0xac3cc6(0xab))),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)](_0xac3cc6(0xbd)['repeat'](0x1e))),console['log'](_0xac3cc6(0x80)+getApiDomain()),console['log'](_0xac3cc6(0xc3)+getUserDomain()),console[_0xac3cc6(0xc4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53['bold'](_0xac3cc6(0x82))),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)]('\x20\x20─'['repeat'](0x1e)));const _0xf5d203=inspectServiceRegistry();console[_0xac3cc6(0xc4)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf5d203[_0xac3cc6(0x81)]),console[_0xac3cc6(0xc4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0xf5d203)),console['log'](_0xac3cc6(0xd2)+_0xf5d203[_0xac3cc6(0x8d)]),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf5d203[_0xac3cc6(0x8a)]);for(const _0x3e8dd8 of _0xf5d203[_0xac3cc6(0xae)]){console[_0xac3cc6(0xc4)]('\x20\x20'+(_0x3e8dd8[_0xac3cc6(0x8c)]+':')['padEnd'](0x11)+'\x20'+(_0x3e8dd8[_0xac3cc6(0xc1)]||a29_0x3e9f53['gray'](_0xac3cc6(0xaa)))+'\x20('+_0x3e8dd8[_0xac3cc6(0x8a)]+_0xac3cc6(0x96)),console[_0xac3cc6(0xc4)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x3e8dd8[_0xac3cc6(0x98)][_0xac3cc6(0xb4)]);}return console[_0xac3cc6(0xc4)](),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x7d)](_0xac3cc6(0x95))),console[_0xac3cc6(0xc4)](a29_0x3e9f53[_0xac3cc6(0x84)]('\x20\x20─'[_0xac3cc6(0xb3)](0x1e))),console[_0xac3cc6(0xc4)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x3e9f53[_0xac3cc6(0x9e)](AUTH_MODE[_0xac3cc6(0x75)]+_0xac3cc6(0xd5))),console[_0xac3cc6(0xc4)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0x3e9f53[_0xac3cc6(0x84)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0xac3cc6(0xc4)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1ceb19){const _0x989c9c=a29_0x4c11;if(_0x1ceb19[_0x989c9c(0x9c)]==='ok')return a29_0x3e9f53[_0x989c9c(0x9e)](_0x989c9c(0xb1));if(_0x1ceb19[_0x989c9c(0x9c)]==='missing')return a29_0x3e9f53['gray'](_0x989c9c(0xca));if(_0x1ceb19[_0x989c9c(0x9c)]===_0x989c9c(0xc2))return a29_0x3e9f53[_0x989c9c(0x78)](_0x989c9c(0xd0));return a29_0x3e9f53[_0x989c9c(0xbb)]('✗\x20Invalid'+(_0x1ceb19['message']?':\x20'+_0x1ceb19[_0x989c9c(0xa1)]:''));}export const doctorDefinition={'service':a29_0x135465(0xb2),'command':'check','description':a29_0x135465(0x94),'risk':a29_0x135465(0xc5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x5bc042=a30_0x4274;(function(_0x172aa3,_0x226d85){const _0x229ea7=a30_0x4274,_0x1990d3=_0x172aa3();while(!![]){try{const _0x3ee5e5=-parseInt(_0x229ea7(0x121))/0x1*(parseInt(_0x229ea7(0x144))/0x2)+parseInt(_0x229ea7(0x118))/0x3*(parseInt(_0x229ea7(0x120))/0x4)+-parseInt(_0x229ea7(0xf4))/0x5*(parseInt(_0x229ea7(0x13c))/0x6)+parseInt(_0x229ea7(0x129))/0x7*(-parseInt(_0x229ea7(0x130))/0x8)+-parseInt(_0x229ea7(0xf1))/0x9+parseInt(_0x229ea7(0xe0))/0xa+-parseInt(_0x229ea7(0x132))/0xb*(-parseInt(_0x229ea7(0xf3))/0xc);if(_0x3ee5e5===_0x226d85)break;else _0x1990d3['push'](_0x1990d3['shift']());}catch(_0x513809){_0x1990d3['push'](_0x1990d3['shift']());}}}(a30_0x55ea,0x924ef));import a30_0x57eab2 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';function a30_0x4274(_0x10d854,_0x5ba0c0){_0x10d854=_0x10d854-0xd6;const _0x55ea9d=a30_0x55ea();let _0x42742c=_0x55ea9d[_0x10d854];return _0x42742c;}import{inspectServiceRegistry}from'../commands/service/registry.js';function a30_0x55ea(){const _0x2ea2d9=['(missing)','ClientAk','\x20\x20runtimeDomain:\x20\x20\x20','serviceCode','(not\x20found)','564KkqVkW','1664OBLJTM','arch','bold','packageVersion','\x20config\x20delete\x20inherit\x20--global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','42KcuqbA','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','green','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','filter','905832jzbpoH','Project','13176097cSuCvW','\x20\x20Service\x20Tree','(set,\x20length=','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','services','defaultApp','\x20\x20─','(none)','2147388HlCDwd','log','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','padEnd','appCode','\x20+\x20','1392tPWIKU','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20Built-in\x20Skill','\x20\x20API\x20Endpoints','path','currentApp','project','current','✓\x20Valid\x20JSON','\x20commands)','⚠\x20Empty','repeat','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','registryPath','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','10146700oQWKTK','\x20doctor','verbose','hasOwnProperty','gray','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','serviceCount','riskLevel','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','read','ignored\x20in\x20','skillVersion','\x20\x20Merged\x20Config','raw','message','platform','6052068EtXWMh','\x20\x20Installed\x20Path:\x20\x20','24hkyTNC','5xJuOLO','call','\x20\x20Config\x20JSON','\x20\x20Package\x20Version:\x20','doctor','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','(unnamed)','version','missing','projectConfig','accessKey','yellow','Diagnose\x20CLI\x20configuration\x20and\x20environment','name','env','global','\x20(accessKey)','region','\x20\x20skillDomain:\x20\x20\x20\x20\x20','installedPath','red','reason','length','Global','includes','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20auth\x20(effective):\x20','empty','\x20\x20Session\x20check:\x20\x20\x20','(no\x20file)','format','repairCommand','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1209NvgikN','commandCount','prototype'];a30_0x55ea=function(){return _0x2ea2d9;};return a30_0x55ea();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x1657b9){const _0x17ac78=a30_0x4274,_0x443a6e=getCliVersion(),_0x1a2fba=buildConfigFromFlags({});await initGlobalEnvironment(_0x1a2fba),console[_0x17ac78(0x13d)](),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0x123)](CLI_BIN_NAME+_0x17ac78(0xe1))),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0xe4)]('─'[_0x17ac78(0xd7)](0x32))),console[_0x17ac78(0x13d)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x443a6e),console[_0x17ac78(0x13d)](_0x17ac78(0x13f)+process[_0x17ac78(0xfc)]),console[_0x17ac78(0x13d)](_0x17ac78(0x126)+process[_0x17ac78(0xf0)]+'\x20'+process[_0x17ac78(0x122)]);const _0x1abaea=inspectBuiltinSkill();console[_0x17ac78(0x13d)](),console[_0x17ac78(0x13d)](a30_0x57eab2['bold'](_0x17ac78(0x148))),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x13a)[_0x17ac78(0xd7)](0x1e))),console['log'](_0x17ac78(0x136)+(_0x1abaea[_0x17ac78(0xdf)]===_0x17ac78(0x14d)?a30_0x57eab2['green']('✓\x20current'):a30_0x57eab2[_0x17ac78(0x109)]('✗\x20'+_0x1abaea[_0x17ac78(0xdf)]))),console[_0x17ac78(0x13d)](_0x17ac78(0xf7)+_0x1abaea[_0x17ac78(0x124)]),console[_0x17ac78(0x13d)](_0x17ac78(0xd9)+(_0x1abaea[_0x17ac78(0xec)]||a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x11b)))),console['log'](_0x17ac78(0xf2)+(_0x1abaea[_0x17ac78(0x108)]||a30_0x57eab2['gray'](_0x17ac78(0x11f))));_0x1abaea[_0x17ac78(0xdf)]!==_0x17ac78(0x14d)&&console[_0x17ac78(0x13d)](_0x17ac78(0x146)+_0x1abaea[_0x17ac78(0x115)]);_0x1abaea[_0x17ac78(0x10a)]&&console[_0x17ac78(0x13d)](_0x17ac78(0x128)+_0x1abaea[_0x17ac78(0x10a)]);console['log'](),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0x123)]('\x20\x20Config\x20Files')),console[_0x17ac78(0x13d)](a30_0x57eab2['gray'](_0x17ac78(0x13a)[_0x17ac78(0xd7)](0x1e)));const _0x3b1149=getGlobalConfigPath(),_0x2bc71b=getProjectConfigPath();console[_0x17ac78(0x13d)](_0x17ac78(0xd8)+(_0x3b1149||a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x11f)))),console[_0x17ac78(0x13d)](_0x17ac78(0xde)+(_0x2bc71b||a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x11f)))),console[_0x17ac78(0x13d)](),console['log'](a30_0x57eab2['bold'](_0x17ac78(0xf6))),console[_0x17ac78(0x13d)](a30_0x57eab2['gray']('\x20\x20─'[_0x17ac78(0xd7)](0x1e)));const _0x1c3ba8=(_0xc06ab1,_0x46226a)=>{const _0x5184d4=_0x17ac78;if(!_0x46226a){console[_0x5184d4(0x13d)]('\x20\x20'+_0xc06ab1[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2[_0x5184d4(0xe4)](_0x5184d4(0x113)));return;}const _0x4a69c9=inspectCliConfigJsonFile(_0x46226a);if(_0x4a69c9[_0x5184d4(0x10f)]==='ok')console[_0x5184d4(0x13d)]('\x20\x20'+_0xc06ab1[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2[_0x5184d4(0x12c)](_0x5184d4(0x14e)));else{if(_0x4a69c9[_0x5184d4(0x10f)]===_0x5184d4(0x111))console[_0x5184d4(0x13d)]('\x20\x20'+_0xc06ab1[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2[_0x5184d4(0x100)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4a69c9[_0x5184d4(0x10f)]===_0x5184d4(0xfd)?console['log']('\x20\x20'+_0xc06ab1[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2['gray'](_0x5184d4(0x11b))):(console[_0x5184d4(0x13d)]('\x20\x20'+_0xc06ab1[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2[_0x5184d4(0x109)](_0x5184d4(0x13e))),console[_0x5184d4(0x13d)]('\x20\x20'+''[_0x5184d4(0x141)](0x11)+'\x20'+a30_0x57eab2[_0x5184d4(0x109)](_0x4a69c9['message'])));}};_0x1c3ba8(_0x17ac78(0x10c),_0x3b1149),_0x1c3ba8(_0x17ac78(0x131),_0x2bc71b);const _0x37d0f6=loadRawConfigLayers(),_0x3d862c=[Object['prototype'][_0x17ac78(0xe3)][_0x17ac78(0xf5)](_0x37d0f6['globalConfig'],_0x17ac78(0xfa))?'global':null,Object[_0x17ac78(0x11a)]['hasOwnProperty'][_0x17ac78(0xf5)](_0x37d0f6[_0x17ac78(0xfe)],_0x17ac78(0xfa))?_0x17ac78(0x14c):null][_0x17ac78(0x12f)](Boolean);_0x3d862c['length']>0x0&&(console[_0x17ac78(0x13d)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x57eab2['yellow'](_0x17ac78(0xeb)+_0x3d862c[_0x17ac78(0xe6)](_0x17ac78(0x143))+'\x20config')),_0x3d862c[_0x17ac78(0x10d)](_0x17ac78(0x14c))&&console['log'](_0x17ac78(0x12b)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x3d862c[_0x17ac78(0x10d)](_0x17ac78(0x104))&&console[_0x17ac78(0x13d)](_0x17ac78(0xda)+CLI_BIN_NAME+_0x17ac78(0x125)));console[_0x17ac78(0x13d)](),console['log'](a30_0x57eab2[_0x17ac78(0x123)](_0x17ac78(0xed))),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x13a)[_0x17ac78(0xd7)](0x1e))),console['log'](_0x17ac78(0xe5)+(_0x1a2fba[_0x17ac78(0x142)]||a30_0x57eab2['red']('(not\x20set)'))),console['log'](_0x17ac78(0xf9)+_0x1a2fba[_0x17ac78(0x103)]),console[_0x17ac78(0x13d)](_0x17ac78(0x145)+normalizeLovrabetRegion(_0x1a2fba[_0x17ac78(0xee)][_0x17ac78(0x106)])),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1a2fba[_0x17ac78(0x147)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1a2fba[_0x17ac78(0x139)]||a30_0x57eab2['gray'](_0x17ac78(0x13b)))),console[_0x17ac78(0x13d)](_0x17ac78(0x116)+(_0x1a2fba[_0x17ac78(0x14b)]||a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x13b)))),console[_0x17ac78(0x13d)](_0x17ac78(0x10e)+(_0x1a2fba['format']||a30_0x57eab2['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x17ac78(0x114)]+')'))),console[_0x17ac78(0x13d)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a2fba[_0x17ac78(0x140)]??a30_0x57eab2['gray']('(default)'))),console['log'](_0x17ac78(0xdc)+_0x1a2fba[_0x17ac78(0xe8)]),console[_0x17ac78(0x13d)](_0x17ac78(0x12a)+_0x1a2fba[_0x17ac78(0xe2)]),console['log'](_0x17ac78(0x110)+AUTH_MODE[_0x17ac78(0x11c)]),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x1a2fba[_0x17ac78(0xff)]?a30_0x57eab2[_0x17ac78(0x12c)](_0x17ac78(0x134)+_0x1a2fba[_0x17ac78(0xff)][_0x17ac78(0x10b)]+')'):a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x13b)))),console[_0x17ac78(0x13d)](),console[_0x17ac78(0x13d)](a30_0x57eab2['bold'](_0x17ac78(0x149))),console[_0x17ac78(0x13d)](a30_0x57eab2['gray']('\x20\x20─'[_0x17ac78(0xd7)](0x1e))),console[_0x17ac78(0x13d)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x17ac78(0x13d)](_0x17ac78(0x12d)+getUserDomain()),console[_0x17ac78(0x13d)](_0x17ac78(0x11d)+getRuntimeDomain()),console['log'](_0x17ac78(0x107)+getSkillDomain()),console[_0x17ac78(0x13d)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x17ac78(0x13d)](),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0x123)](_0x17ac78(0x133))),console[_0x17ac78(0x13d)](a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x13a)[_0x17ac78(0xd7)](0x1e)));const _0x370a97=inspectServiceRegistry();console[_0x17ac78(0x13d)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x370a97[_0x17ac78(0xdb)]),console[_0x17ac78(0x13d)](_0x17ac78(0x117)+formatServiceRegistryStatus(_0x370a97)),console[_0x17ac78(0x13d)](_0x17ac78(0x12e)+_0x370a97[_0x17ac78(0xe7)]),console['log'](_0x17ac78(0xe9)+_0x370a97[_0x17ac78(0x119)]);for(const _0x11e764 of _0x370a97[_0x17ac78(0x138)]){console[_0x17ac78(0x13d)]('\x20\x20'+(_0x11e764[_0x17ac78(0x11e)]+':')['padEnd'](0x11)+'\x20'+(_0x11e764[_0x17ac78(0x102)]||a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0xfb)))+'\x20('+_0x11e764[_0x17ac78(0x119)]+_0x17ac78(0x14f)),console[_0x17ac78(0x13d)]('\x20\x20'+''[_0x17ac78(0x141)](0x11)+'\x20Imported\x20from:\x20'+_0x11e764[_0x17ac78(0xdd)][_0x17ac78(0x14a)]);}return console[_0x17ac78(0x13d)](),console['log'](a30_0x57eab2[_0x17ac78(0x123)]('\x20\x20Auth')),console['log'](a30_0x57eab2['gray']('\x20\x20─'[_0x17ac78(0xd7)](0x1e))),console[_0x17ac78(0x13d)](_0x17ac78(0x127)+a30_0x57eab2[_0x17ac78(0x12c)](AUTH_MODE[_0x17ac78(0x11c)]+_0x17ac78(0x105))),console[_0x17ac78(0x13d)](_0x17ac78(0x112)+a30_0x57eab2[_0x17ac78(0xe4)](_0x17ac78(0x135))),console[_0x17ac78(0x13d)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1d6693){const _0x378a4b=a30_0x4274;if(_0x1d6693[_0x378a4b(0x10f)]==='ok')return a30_0x57eab2['green']('✓\x20Loaded');if(_0x1d6693['status']==='missing')return a30_0x57eab2[_0x378a4b(0xe4)](_0x378a4b(0x11f));if(_0x1d6693[_0x378a4b(0x10f)]===_0x378a4b(0x111))return a30_0x57eab2[_0x378a4b(0x100)](_0x378a4b(0xd6));return a30_0x57eab2[_0x378a4b(0x109)](_0x378a4b(0x137)+(_0x1d6693['message']?':\x20'+_0x1d6693[_0x378a4b(0xef)]:''));}export const doctorDefinition={'service':a30_0x5bc042(0xf8),'command':'check','description':a30_0x5bc042(0x101),'risk':a30_0x5bc042(0xea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a30_0x4a3d(_0x2af9de,_0x535a6e){_0x2af9de=_0x2af9de-0x178;const _0x198369=a30_0x1983();let _0x4a3da4=_0x198369[_0x2af9de];return _0x4a3da4;}const a30_0x27220b=a30_0x4a3d;(function(_0x3f1c6c,_0xce9f67){const _0x3a090c=a30_0x4a3d,_0x51690b=_0x3f1c6c();while(!![]){try{const _0x1526f5=parseInt(_0x3a090c(0x193))/0x1+-parseInt(_0x3a090c(0x1a0))/0x2*(parseInt(_0x3a090c(0x17f))/0x3)+parseInt(_0x3a090c(0x17e))/0x4*(-parseInt(_0x3a090c(0x178))/0x5)+parseInt(_0x3a090c(0x196))/0x6*(parseInt(_0x3a090c(0x183))/0x7)+parseInt(_0x3a090c(0x19b))/0x8+-parseInt(_0x3a090c(0x195))/0x9*(parseInt(_0x3a090c(0x185))/0xa)+parseInt(_0x3a090c(0x189))/0xb*(parseInt(_0x3a090c(0x179))/0xc);if(_0x1526f5===_0xce9f67)break;else _0x51690b['push'](_0x51690b['shift']());}catch(_0x304485){_0x51690b['push'](_0x51690b['shift']());}}}(a30_0x1983,0x7aaf3));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':a30_0x27220b(0x198),'type':a30_0x27220b(0x181),'required':!![],'description':a30_0x27220b(0x18c)},FILEPATH_FLAG={'name':a30_0x27220b(0x19e),'type':a30_0x27220b(0x181),'required':!![],'description':a30_0x27220b(0x17a)},DOWNLOAD_FLAG={'name':a30_0x27220b(0x17d),'type':a30_0x27220b(0x190),'description':a30_0x27220b(0x17b)},LONG_TERM_FLAG={'name':a30_0x27220b(0x180),'type':'boolean','description':a30_0x27220b(0x1a1)};function requireFilePath(_0x8050f5){const _0x120008=a30_0x27220b,_0x5b8163=_0x8050f5['trim']();if(!_0x5b8163)throw CliErrors[_0x120008(0x182)](_0x120008(0x18e));return _0x5b8163;}const fileUpload={'service':a30_0x27220b(0x198),'command':a30_0x27220b(0x18b),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a30_0x27220b(0x18d),'flags':[FILE_FLAG],async 'dryRun'(_0xe4b0b5){const _0x5ed1d5=a30_0x27220b,_0x935434=requireRuntimeUploadFile(_0xe4b0b5[_0x5ed1d5(0x187)](_0x5ed1d5(0x198)),_0x5ed1d5(0x19d));return dryRun(_0x5ed1d5(0x188),_0x5ed1d5(0x186))[_0x5ed1d5(0x197)]({'appCode':_0xe4b0b5[_0x5ed1d5(0x18a)],'multipart':{'file':_0x935434}})[_0x5ed1d5(0x191)](_0x5ed1d5(0x19f)+_0x935434[_0x5ed1d5(0x17c)]+'\x20to\x20runtime\x20app\x20'+_0xe4b0b5[_0x5ed1d5(0x18a)])['build']();},async 'execute'(_0x5cb673){const _0x1485dc=a30_0x27220b,_0x12f280=requireRuntimeUploadFile(_0x5cb673['str']('file'),'File'),_0x30bc16=await uploadRuntimeFile(_0x5cb673[_0x1485dc(0x18a)],_0x12f280[_0x1485dc(0x17c)]);return{'ok':!![],'data':_0x30bc16,'message':_0x30bc16[_0x1485dc(0x192)]?_0x1485dc(0x184)+_0x30bc16[_0x1485dc(0x192)]+_0x1485dc(0x194):_0x1485dc(0x18f)};}},fileQueryUrl={'service':a30_0x27220b(0x198),'command':a30_0x27220b(0x199),'description':a30_0x27220b(0x19a),'risk':a30_0x27220b(0x18d),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1c25d7){const _0x537942=a30_0x27220b,_0x563414=requireFilePath(_0x1c25d7[_0x537942(0x187)](_0x537942(0x19e))),_0x386570=await queryRuntimeFileUrl(_0x563414,{'download':_0x1c25d7[_0x537942(0x19c)](_0x537942(0x17d)),'longTerm':_0x1c25d7[_0x537942(0x19c)](_0x537942(0x180))});return{'ok':!![],'data':_0x386570};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a30_0x1983(){const _0x523a81=['2502951QWhjzn','long-term','string','validation','6986378xkqtgj','Uploaded\x20file:\x20','32890GUncLr','/client/uploadFile','str','POST','4367aRVKwn','appCode','upload','Path\x20to\x20the\x20local\x20file\x20to\x20upload','read','filePath\x20is\x20required.','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','boolean','description','filePath','57520QcaDav','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','693nljbhF','6AdJyFT','body','file','query-url','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','199480rzMSkP','bool','File','filepath','Preview:\x20upload\x20','2qZHdUu','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','5OIBtyq','40152qJHfdR','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','path','download','3275144WeNHIB'];a30_0x1983=function(){return _0x523a81;};return a30_0x1983();}
1
+ function a31_0x5213(){const _0xd95d1a=['840913YNvIFF','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath\x20is\x20required.','42nrjITF','Uploaded\x20file:\x20','body','1528794naBQvt','read','29305bhDCXE','boolean','652opcaHe','str','query-url','/client/uploadFile','string','File','26652flsaWr','appCode','path','370ClsCrX','4090940RSMlTt','upload','POST','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','validation','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','trim','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','file','long-term','filepath','bool','7296633ofTIHz','filePath','13167376JBgMwn'];a31_0x5213=function(){return _0xd95d1a;};return a31_0x5213();}const a31_0x5b0709=a31_0x36e5;(function(_0x59b94c,_0x25b6e9){const _0x1f411d=a31_0x36e5,_0x239e94=_0x59b94c();while(!![]){try{const _0x560e48=-parseInt(_0x1f411d(0x81))/0x1+-parseInt(_0x1f411d(0x96))/0x2*(parseInt(_0x1f411d(0x93))/0x3)+-parseInt(_0x1f411d(0x8d))/0x4*(parseInt(_0x1f411d(0x8b))/0x5)+-parseInt(_0x1f411d(0x89))/0x6*(-parseInt(_0x1f411d(0x86))/0x7)+parseInt(_0x1f411d(0x80))/0x8+parseInt(_0x1f411d(0x7e))/0x9+parseInt(_0x1f411d(0x97))/0xa;if(_0x560e48===_0x25b6e9)break;else _0x239e94['push'](_0x239e94['shift']());}catch(_0x260c56){_0x239e94['push'](_0x239e94['shift']());}}}(a31_0x5213,0xe917f));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_0x5b0709(0x91),'required':!![],'description':a31_0x5b0709(0x84)},FILEPATH_FLAG={'name':'filepath','type':a31_0x5b0709(0x91),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a31_0x5b0709(0x83),'type':a31_0x5b0709(0x8c),'description':a31_0x5b0709(0x9f)},LONG_TERM_FLAG={'name':a31_0x5b0709(0xa1),'type':a31_0x5b0709(0x8c),'description':a31_0x5b0709(0x9c)};function requireFilePath(_0x58ce65){const _0x433156=a31_0x5b0709,_0x4d07a5=_0x58ce65[_0x433156(0x9e)]();if(!_0x4d07a5)throw CliErrors[_0x433156(0x9b)](_0x433156(0x85));return _0x4d07a5;}function a31_0x36e5(_0x3fb949,_0x11be27){_0x3fb949=_0x3fb949-0x7c;const _0x521334=a31_0x5213();let _0x36e5e9=_0x521334[_0x3fb949];return _0x36e5e9;}const fileUpload={'service':'file','command':a31_0x5b0709(0x98),'description':a31_0x5b0709(0x82),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x2b92fb){const _0x1d3f05=a31_0x5b0709,_0x28ccd6=requireRuntimeUploadFile(_0x2b92fb[_0x1d3f05(0x8e)]('file'),_0x1d3f05(0x92));return dryRun(_0x1d3f05(0x99),_0x1d3f05(0x90))[_0x1d3f05(0x88)]({'appCode':_0x2b92fb[_0x1d3f05(0x94)],'multipart':{'file':_0x28ccd6}})['description']('Preview:\x20upload\x20'+_0x28ccd6[_0x1d3f05(0x95)]+'\x20to\x20runtime\x20app\x20'+_0x2b92fb[_0x1d3f05(0x94)])['build']();},async 'execute'(_0x2745d4){const _0x16d716=a31_0x5b0709,_0x10be3a=requireRuntimeUploadFile(_0x2745d4[_0x16d716(0x8e)](_0x16d716(0xa0)),'File'),_0x22d7e2=await uploadRuntimeFile(_0x2745d4['appCode'],_0x10be3a[_0x16d716(0x95)]);return{'ok':!![],'data':_0x22d7e2,'message':_0x22d7e2['filePath']?_0x16d716(0x87)+_0x22d7e2[_0x16d716(0x7f)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x16d716(0x9a)};}},fileQueryUrl={'service':a31_0x5b0709(0xa0),'command':a31_0x5b0709(0x8f),'description':a31_0x5b0709(0x9d),'risk':a31_0x5b0709(0x8a),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x402196){const _0x456401=a31_0x5b0709,_0x3b29d5=requireFilePath(_0x402196[_0x456401(0x8e)](_0x456401(0x7c))),_0x283e94=await queryRuntimeFileUrl(_0x3b29d5,{'download':_0x402196[_0x456401(0x7d)](_0x456401(0x83)),'longTerm':_0x402196[_0x456401(0x7d)](_0x456401(0xa1))});return{'ok':!![],'data':_0x283e94};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a31_0x12e048=a31_0x5c3d;(function(_0x27a886,_0x164bff){const _0x5ddb37=a31_0x5c3d,_0x3ecec2=_0x27a886();while(!![]){try{const _0x4f5e18=parseInt(_0x5ddb37(0x1a9))/0x1+parseInt(_0x5ddb37(0x1ab))/0x2*(parseInt(_0x5ddb37(0x1ac))/0x3)+parseInt(_0x5ddb37(0x197))/0x4+parseInt(_0x5ddb37(0x191))/0x5+parseInt(_0x5ddb37(0x1a2))/0x6*(parseInt(_0x5ddb37(0x196))/0x7)+-parseInt(_0x5ddb37(0x1a7))/0x8+-parseInt(_0x5ddb37(0x18a))/0x9*(parseInt(_0x5ddb37(0x190))/0xa);if(_0x4f5e18===_0x164bff)break;else _0x3ecec2['push'](_0x3ecec2['shift']());}catch(_0x231bb1){_0x3ecec2['push'](_0x3ecec2['shift']());}}}(a31_0x4caf,0x85de6));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 a31_0x5c3d(_0x16d295,_0x22e9b4){_0x16d295=_0x16d295-0x187;const _0x4caf0d=a31_0x4caf();let _0x5c3dcf=_0x4caf0d[_0x16d295];return _0x5c3dcf;}import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a31_0x4caf(){const _0x48a076=['log','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','Source\x20file\x20not\x20found:\x20','23283OCmUln','string','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`.','riskLevel','Failed\x20to\x20parse\x20source\x20file:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','3520sUcFjC','558600gGmxiZ','Override\x20imported\x20default\x20env','newConfigFileName','join','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','2057342zuZUXY','724268xggbIh','Invalid\x20env\x20\x22','cwd','object','utf8','app','project','validation','boolean','entries','\x20\x20appcode:\x20','12rnxFav','Write\x20to\x20global\x20(~/','message','global','apps','3530456DiLwsT','\x22.\x20Allowed:\x20','644499ouMnHV','env','250106yvOjYR','9MDSiiE','appcode','parse','\x20\x20config:\x20\x20','Override\x20imported\x20default\x20appcode','defaultApp'];a31_0x4caf=function(){return _0x48a076;};return a31_0x4caf();}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':'file','type':a31_0x12e048(0x18b),'description':a31_0x12e048(0x188),'required':!![]},{'name':'appcode','type':a31_0x12e048(0x18b),'description':a31_0x12e048(0x1b0)},{'name':'env','type':a31_0x12e048(0x18b),'description':a31_0x12e048(0x192),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a31_0x12e048(0x1a3)+PRODUCT_CONFIG[a31_0x12e048(0x193)]+')\x20instead\x20of\x20project','default':![]},{'name':'yes','type':a31_0x12e048(0x19f),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runAppImport(_0x25beed){const _0x7ef65b=a31_0x12e048,_0x58a628=_0x25beed[_0x7ef65b(0x1a5)]?'global':_0x7ef65b(0x19d),_0x224172=resolveWriteConfigPath(_0x58a628);await runFromImport(_0x25beed,_0x224172);}async function runFromImport(_0x2b4c10,_0xfd63cd){const _0x11fc15=a31_0x12e048,_0x32ec74=resolveFilePath(_0x2b4c10['file']);if(!existsSync(_0x32ec74))throw CliErrors[_0x11fc15(0x19e)](_0x11fc15(0x189)+_0x32ec74);const _0x3be552=readSourceFile(_0x32ec74),_0x26a448=convertToRuntimeConfig(_0x3be552);_0x2b4c10[_0x11fc15(0x1ad)]&&(_0x26a448[_0x11fc15(0x1ad)]=String(_0x2b4c10['appcode']));_0x2b4c10['env']&&(_0x26a448[_0x11fc15(0x1aa)]=resolveImportEnv(_0x2b4c10));if(!_0x26a448[_0x11fc15(0x1ad)])throw CliErrors[_0x11fc15(0x19e)](_0x11fc15(0x195),_0x11fc15(0x18c));await writeImportConfig(_0xfd63cd,_0x26a448,_0x2b4c10),console[_0x11fc15(0x187)]('Imported\x20from\x20'+_0x32ec74),console[_0x11fc15(0x187)](_0x11fc15(0x1af)+_0xfd63cd),console[_0x11fc15(0x187)](_0x11fc15(0x1a1)+_0x26a448[_0x11fc15(0x1ad)]);if(_0x26a448[_0x11fc15(0x1b1)])console[_0x11fc15(0x187)]('\x20\x20default:\x20'+_0x26a448[_0x11fc15(0x1b1)]);}function convertToRuntimeConfig(_0x180fd8){const _0x3c3a72=a31_0x12e048;if(_0x180fd8[_0x3c3a72(0x1a6)]&&typeof _0x180fd8[_0x3c3a72(0x1a6)]===_0x3c3a72(0x19a))throw CliErrors[_0x3c3a72(0x19e)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x3c3a72(0x18f));const _0x3d8b5c={};for(const _0x10b054 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x180fd8[_0x10b054]!==undefined&&(_0x3d8b5c[_0x10b054]=_0x180fd8[_0x10b054]);}return!_0x3d8b5c[_0x3c3a72(0x18d)]&&(_0x3d8b5c['riskLevel']=DEFAULT_CONFIG_VALUES[_0x3c3a72(0x18d)]),_0x3d8b5c;}async function writeImportConfig(_0x57c479,_0xf65e99,_0xbbe75a){const _0x1f9700=a31_0x12e048;let _0x5b6990={};existsSync(_0x57c479)&&!_0xbbe75a['yes']&&(_0x5b6990=readConfigFile(_0x57c479));for(const [_0x22767d,_0x57f95f]of Object[_0x1f9700(0x1a0)](_0xf65e99)){_0x57f95f!==undefined&&(_0x5b6990[_0x22767d]=_0x57f95f);}if(_0x5b6990[_0x1f9700(0x19c)])delete _0x5b6990['app'];writeConfigFile(_0x57c479,_0x5b6990);}function resolveFilePath(_0x4a37e0){const _0xbfcfcf=a31_0x12e048;return isAbsolute(_0x4a37e0)?_0x4a37e0:resolve(process[_0xbfcfcf(0x199)](),_0x4a37e0);}function readSourceFile(_0x5bebdf){const _0x14e4e9=a31_0x12e048;try{const _0x3ddd8f=readFileSync(_0x5bebdf,{'encoding':_0x14e4e9(0x19b)});return JSON[_0x14e4e9(0x1ae)](_0x3ddd8f);}catch(_0x689866){throw CliErrors['validation'](_0x14e4e9(0x18e)+_0x689866[_0x14e4e9(0x1a4)]);}}function resolveImportEnv(_0x76eeaa){const _0x3fe604=a31_0x12e048,_0x5b7244=_0x76eeaa[_0x3fe604(0x1aa)];if(_0x5b7244===undefined||_0x5b7244==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES['includes'](_0x5b7244))throw CliErrors[_0x3fe604(0x19e)](_0x3fe604(0x198)+_0x5b7244+_0x3fe604(0x1a8)+RUNTIME_ENV_VALUES[_0x3fe604(0x194)](',\x20'));return _0x5b7244;}
1
+ const a32_0x1c03f6=a32_0xe97c;(function(_0x4e6dda,_0x5a4ac3){const _0x17b459=a32_0xe97c,_0xf582c4=_0x4e6dda();while(!![]){try{const _0x3d516c=-parseInt(_0x17b459(0x13e))/0x1*(parseInt(_0x17b459(0x129))/0x2)+-parseInt(_0x17b459(0x12f))/0x3+parseInt(_0x17b459(0x125))/0x4*(parseInt(_0x17b459(0x123))/0x5)+-parseInt(_0x17b459(0x119))/0x6*(-parseInt(_0x17b459(0x12b))/0x7)+parseInt(_0x17b459(0x11a))/0x8*(-parseInt(_0x17b459(0x12a))/0x9)+-parseInt(_0x17b459(0x127))/0xa*(-parseInt(_0x17b459(0x122))/0xb)+parseInt(_0x17b459(0x128))/0xc*(parseInt(_0x17b459(0x137))/0xd);if(_0x3d516c===_0x5a4ac3)break;else _0xf582c4['push'](_0xf582c4['shift']());}catch(_0x4e9683){_0xf582c4['push'](_0xf582c4['shift']());}}}(a32_0x46d2,0x49519));import{existsSync,readFileSync}from'node:fs';function a32_0x46d2(){const _0x2a651b=['boolean','27911wgozjm','\x20\x20appcode:\x20','project','Source\x20file\x20not\x20found:\x20','cwd','validation','parse','54XKTZvd','Skip\x20confirmation\x20when\x20overwriting','env','\x20\x20config:\x20\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`.','includes','84oNQrKs','8616JApVho','Write\x20to\x20global\x20(~/','Imported\x20from\x20','file','yes','riskLevel','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','entries','231iZocYZ','5710sSDuum','string','256XHgleA','global','79820mVezdh','264Gzmzpc','48cKiOWS','2952qPPPlC','288799YJpDQQ','Invalid\x20env\x20\x22','appcode','defaultApp','632031EKFiAI','app','apps','join','newConfigFileName','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','log'];a32_0x46d2=function(){return _0x2a651b;};return a32_0x46d2();}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';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x1c03f6(0x11d),'type':a32_0x1c03f6(0x124),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':'appcode','type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':a32_0x1c03f6(0x140),'type':a32_0x1c03f6(0x124),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1c03f6(0x126),'type':'boolean','description':a32_0x1c03f6(0x11b)+PRODUCT_CONFIG[a32_0x1c03f6(0x133)]+')\x20instead\x20of\x20project','default':![]},{'name':a32_0x1c03f6(0x11e),'type':a32_0x1c03f6(0x136),'description':a32_0x1c03f6(0x13f),'default':![]}];export async function runAppImport(_0x265ef8){const _0x5323e6=a32_0x1c03f6,_0x221fbd=_0x265ef8[_0x5323e6(0x126)]?_0x5323e6(0x126):_0x5323e6(0x139),_0x4e9160=resolveWriteConfigPath(_0x221fbd);await runFromImport(_0x265ef8,_0x4e9160);}async function runFromImport(_0x3b6e45,_0x26adf6){const _0x126624=a32_0x1c03f6,_0x9075d3=resolveFilePath(_0x3b6e45[_0x126624(0x11d)]);if(!existsSync(_0x9075d3))throw CliErrors[_0x126624(0x13c)](_0x126624(0x13a)+_0x9075d3);const _0x32beb9=readSourceFile(_0x9075d3),_0x3d5113=convertToRuntimeConfig(_0x32beb9);_0x3b6e45[_0x126624(0x12d)]&&(_0x3d5113['appcode']=String(_0x3b6e45['appcode']));_0x3b6e45['env']&&(_0x3d5113[_0x126624(0x140)]=resolveImportEnv(_0x3b6e45));if(!_0x3d5113[_0x126624(0x12d)])throw CliErrors[_0x126624(0x13c)](_0x126624(0x120),_0x126624(0x142));await writeImportConfig(_0x26adf6,_0x3d5113,_0x3b6e45),console[_0x126624(0x135)](_0x126624(0x11c)+_0x9075d3),console[_0x126624(0x135)](_0x126624(0x141)+_0x26adf6),console['log'](_0x126624(0x138)+_0x3d5113[_0x126624(0x12d)]);if(_0x3d5113['defaultApp'])console[_0x126624(0x135)]('\x20\x20default:\x20'+_0x3d5113[_0x126624(0x12e)]);}function convertToRuntimeConfig(_0x34e307){const _0x110850=a32_0x1c03f6;if(_0x34e307[_0x110850(0x131)]&&typeof _0x34e307['apps']==='object')throw CliErrors[_0x110850(0x13c)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x110850(0x134));const _0x192079={};for(const _0xf5b78e of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x34e307[_0xf5b78e]!==undefined&&(_0x192079[_0xf5b78e]=_0x34e307[_0xf5b78e]);}return!_0x192079[_0x110850(0x11f)]&&(_0x192079[_0x110850(0x11f)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x192079;}function a32_0xe97c(_0x3a5f6b,_0x40007c){_0x3a5f6b=_0x3a5f6b-0x119;const _0x46d2a2=a32_0x46d2();let _0xe97c6a=_0x46d2a2[_0x3a5f6b];return _0xe97c6a;}async function writeImportConfig(_0x1945bb,_0x344577,_0x495672){const _0x1a3505=a32_0x1c03f6;let _0x3da41c={};existsSync(_0x1945bb)&&!_0x495672['yes']&&(_0x3da41c=readConfigFile(_0x1945bb));for(const [_0x2d448d,_0x2f8c5c]of Object[_0x1a3505(0x121)](_0x344577)){_0x2f8c5c!==undefined&&(_0x3da41c[_0x2d448d]=_0x2f8c5c);}if(_0x3da41c[_0x1a3505(0x130)])delete _0x3da41c[_0x1a3505(0x130)];writeConfigFile(_0x1945bb,_0x3da41c);}function resolveFilePath(_0x1b6cea){const _0x43a16b=a32_0x1c03f6;return isAbsolute(_0x1b6cea)?_0x1b6cea:resolve(process[_0x43a16b(0x13b)](),_0x1b6cea);}function readSourceFile(_0x2fab11){const _0x1c0039=a32_0x1c03f6;try{const _0x47e8cc=readFileSync(_0x2fab11,{'encoding':'utf8'});return JSON[_0x1c0039(0x13d)](_0x47e8cc);}catch(_0x540787){throw CliErrors[_0x1c0039(0x13c)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x540787['message']);}}function resolveImportEnv(_0x499e89){const _0x53c07b=a32_0x1c03f6,_0x124b23=_0x499e89[_0x53c07b(0x140)];if(_0x124b23===undefined||_0x124b23==='')return DEFAULT_CONFIG_VALUES[_0x53c07b(0x140)];if(!RUNTIME_ENV_VALUES[_0x53c07b(0x143)](_0x124b23))throw CliErrors[_0x53c07b(0x13c)](_0x53c07b(0x12c)+_0x124b23+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x53c07b(0x132)](',\x20'));return _0x124b23;}
@@ -1 +1 @@
1
- const a32_0x3a03ea=a32_0x1989;(function(_0x5b2ff4,_0x4f76b3){const _0x5df6ca=a32_0x1989,_0x21720c=_0x5b2ff4();while(!![]){try{const _0x2d290a=-parseInt(_0x5df6ca(0x1d2))/0x1*(parseInt(_0x5df6ca(0x1e8))/0x2)+parseInt(_0x5df6ca(0x1e0))/0x3+parseInt(_0x5df6ca(0x1e4))/0x4*(parseInt(_0x5df6ca(0x1ed))/0x5)+parseInt(_0x5df6ca(0x1ba))/0x6*(parseInt(_0x5df6ca(0x1ca))/0x7)+parseInt(_0x5df6ca(0x1d5))/0x8+-parseInt(_0x5df6ca(0x1ea))/0x9+parseInt(_0x5df6ca(0x1da))/0xa*(-parseInt(_0x5df6ca(0x1cd))/0xb);if(_0x2d290a===_0x4f76b3)break;else _0x21720c['push'](_0x21720c['shift']());}catch(_0x1ee841){_0x21720c['push'](_0x21720c['shift']());}}}(a32_0x2b98,0x32961));import{existsSync,readFileSync,statSync}from'node:fs';function a32_0x2b98(){const _0x3a7696=['1226418qoTfRO','metadata','/update','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','16DkQVvl','updateTime','map','appCode','418DPKyko','scope','2525841GiNOGq','num','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','507895saNKfO','trim','Search\x20query\x20is\x20required.','Override\x20the\x20existing\x20entry\x20title','Updated\x20KB\x20entry\x20','flag','isFinite','用本地文件内容替换个人知识库条目正文,并触发新的检索同步。','utf8','isFile','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','12JziHTU','description','content','file','version','write','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','search','POST','根据本地文件创建个人知识库条目','query','validation','ragStatus','createTime','weightedScore','/client/knowledge-base/personal/','180712wpjmAq','string','Personal\x20knowledge-base\x20entry\x20title','33XDotWg','str','number','build','update','106OcKfEE','bool','--topk\x20must\x20be\x20a\x20positive\x20number.','2485976kIUVNS','File\x20path\x20is\x20required.','title','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','body','2224990cyChak','score','根据本地文件更新个人知识库条目','read','length','/client/knowledge-base/personal/create'];a32_0x2b98=function(){return _0x3a7696;};return a32_0x2b98();}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':a32_0x3a03ea(0x1d7),'type':a32_0x3a03ea(0x1cb),'required':!![],'description':a32_0x3a03ea(0x1cc)},FILE_FLAG={'name':a32_0x3a03ea(0x1bd),'type':a32_0x3a03ea(0x1cb),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':'query','type':a32_0x3a03ea(0x1cb),'required':!![],'description':'Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':'topk','type':a32_0x3a03ea(0x1cf),'description':a32_0x3a03ea(0x1e3)};function readKnowledgeFile(_0x682c6b){const _0x2bf076=a32_0x3a03ea;if(!_0x682c6b)throw CliErrors[_0x2bf076(0x1c5)](_0x2bf076(0x1d6));if(!existsSync(_0x682c6b))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x682c6b);if(!statSync(_0x682c6b)[_0x2bf076(0x1b8)]())throw CliErrors[_0x2bf076(0x1c5)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x682c6b);return readFileSync(_0x682c6b,_0x2bf076(0x1b7));}function summarizePersonalItem(_0x3daeed){const _0x2cd9ca=a32_0x3a03ea;return{'id':_0x3daeed['id'],'title':_0x3daeed[_0x2cd9ca(0x1d7)],'version':_0x3daeed[_0x2cd9ca(0x1be)],'ragStatus':_0x3daeed['ragStatus'],'ragErrorMessage':_0x3daeed['ragErrorMessage'],'updateTime':_0x3daeed[_0x2cd9ca(0x1e5)]};}function a32_0x1989(_0x12fb4b,_0xc1424a){_0x12fb4b=_0x12fb4b-0x1b7;const _0x2b9815=a32_0x2b98();let _0x198908=_0x2b9815[_0x12fb4b];return _0x198908;}function detailPersonalItem(_0x18d19f){const _0x435e1b=a32_0x3a03ea;return{'id':_0x18d19f['id'],'appCode':_0x18d19f['appCode'],'scope':_0x18d19f[_0x435e1b(0x1e9)],'userId':_0x18d19f['userId'],'title':_0x18d19f[_0x435e1b(0x1d7)],'content':_0x18d19f[_0x435e1b(0x1bc)]??'','version':_0x18d19f['version'],'ragStatus':_0x18d19f[_0x435e1b(0x1c6)],'ragErrorMessage':_0x18d19f['ragErrorMessage'],'createTime':_0x18d19f[_0x435e1b(0x1c7)],'updateTime':_0x18d19f[_0x435e1b(0x1e5)]};}function summarizeSearchHit(_0x29e1be){const _0x598636=a32_0x3a03ea;return{'scope':_0x29e1be[_0x598636(0x1e9)],'title':_0x29e1be[_0x598636(0x1d7)],'docId':_0x29e1be['docId'],'score':_0x29e1be[_0x598636(0x1db)],'weightedScore':_0x29e1be[_0x598636(0x1c8)],'content':_0x29e1be[_0x598636(0x1bc)],'metadata':_0x29e1be[_0x598636(0x1e1)]};}function readTopK(_0x5cdbdd){const _0xfaddb3=a32_0x3a03ea,_0x12c286=_0x5cdbdd[_0xfaddb3(0x1f2)]('topk');if(_0x12c286===undefined||_0x12c286===null||_0x12c286==='')return undefined;const _0x426e32=_0x5cdbdd['num']('topk');if(!Number[_0xfaddb3(0x1f3)](_0x426e32)||_0x426e32<0x1)throw CliErrors[_0xfaddb3(0x1c5)](_0xfaddb3(0x1d4));return _0x426e32;}const kbList={'service':'kb','command':'list','description':a32_0x3a03ea(0x1c0),'risk':a32_0x3a03ea(0x1dd),'flags':[VERBOSE_FLAG],async 'execute'(_0x330ac6){const _0x371279=a32_0x3a03ea,_0x2f0d0b=await listPersonalKnowledgeBaseItems(_0x330ac6['appCode']);if(_0x330ac6[_0x371279(0x1d3)]('verbose'))return{'ok':!![],'data':{'total':_0x2f0d0b[_0x371279(0x1de)],'items':_0x2f0d0b}};return{'ok':!![],'data':{'total':_0x2f0d0b[_0x371279(0x1de)],'items':_0x2f0d0b[_0x371279(0x1e6)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a32_0x3a03ea(0x1dd),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x2ca9a0){const _0x43f023=a32_0x3a03ea,_0xe1e2c1=await getPersonalKnowledgeBaseItem(_0x2ca9a0[_0x43f023(0x1eb)]('id'),_0x2ca9a0[_0x43f023(0x1e7)]);return{'ok':!![],'data':detailPersonalItem(_0xe1e2c1)};}},kbCreate={'service':'kb','command':'create','description':a32_0x3a03ea(0x1c3),'risk':'write','confirmationDescription':'把本地文件内容保存为个人知识库条目,并进入后续检索同步流程。','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x39a811){const _0x4f0ca7=a32_0x3a03ea,_0x269bf4=_0x39a811['str'](_0x4f0ca7(0x1d7)),_0x1888ba=readKnowledgeFile(_0x39a811[_0x4f0ca7(0x1ce)](_0x4f0ca7(0x1bd))),_0x114f8c=await createPersonalKnowledgeBaseItem(_0x39a811[_0x4f0ca7(0x1e7)],{'title':_0x269bf4,'content':_0x1888ba});return{'ok':!![],'data':summarizePersonalItem(_0x114f8c),'message':'Created\x20KB\x20entry\x20'+_0x114f8c['id']+'\x20('+_0x114f8c[_0x4f0ca7(0x1d7)]+')'};},async 'dryRun'(_0x4c0ced){const _0xeb9ad0=a32_0x3a03ea,_0x590ddb=_0x4c0ced['str']('title'),_0x2c9b7c=readKnowledgeFile(_0x4c0ced['str'](_0xeb9ad0(0x1bd)));return dryRun('POST',_0xeb9ad0(0x1df))['body']({'appCode':_0x4c0ced[_0xeb9ad0(0x1e7)],'title':_0x590ddb,'content':_0x2c9b7c})[_0xeb9ad0(0x1bb)](_0xeb9ad0(0x1b9)+_0x590ddb+'\x22')[_0xeb9ad0(0x1d0)]();}},kbUpdate={'service':'kb','command':a32_0x3a03ea(0x1d1),'description':a32_0x3a03ea(0x1dc),'risk':a32_0x3a03ea(0x1bf),'confirmationDescription':a32_0x3a03ea(0x1f4),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a32_0x3a03ea(0x1f0)},FILE_FLAG],async 'execute'(_0x260dc9){const _0x57da11=a32_0x3a03ea,_0x461dc3=_0x260dc9['num']('id'),_0x52df0b=readKnowledgeFile(_0x260dc9[_0x57da11(0x1ce)](_0x57da11(0x1bd))),_0x27a6e7=_0x260dc9[_0x57da11(0x1ce)]('title')||(await getPersonalKnowledgeBaseItem(_0x461dc3,_0x260dc9[_0x57da11(0x1e7)]))[_0x57da11(0x1d7)],_0x22db8e=await updatePersonalKnowledgeBaseItem(_0x461dc3,_0x260dc9[_0x57da11(0x1e7)],{'title':_0x27a6e7,'content':_0x52df0b});return{'ok':!![],'data':summarizePersonalItem(_0x22db8e),'message':_0x57da11(0x1f1)+_0x22db8e['id']+'\x20('+_0x22db8e[_0x57da11(0x1d7)]+')'};},async 'dryRun'(_0x34f63a){const _0x5025cb=a32_0x3a03ea,_0x220791=_0x34f63a[_0x5025cb(0x1eb)]('id'),_0x1a8a72=readKnowledgeFile(_0x34f63a[_0x5025cb(0x1ce)](_0x5025cb(0x1bd))),_0x501c13=_0x34f63a['str'](_0x5025cb(0x1d7))||(await getPersonalKnowledgeBaseItem(_0x220791,_0x34f63a[_0x5025cb(0x1e7)]))[_0x5025cb(0x1d7)];return dryRun(_0x5025cb(0x1c2),_0x5025cb(0x1c9)+_0x220791+_0x5025cb(0x1e2))[_0x5025cb(0x1d9)]({'appCode':_0x34f63a['appCode'],'title':_0x501c13,'content':_0x1a8a72})['description'](_0x5025cb(0x1ec)+_0x220791)[_0x5025cb(0x1d0)]();}},kbSearch={'service':'kb','command':a32_0x3a03ea(0x1c1),'description':a32_0x3a03ea(0x1d8),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x1db375){const _0x5aa0a3=a32_0x3a03ea;if(!_0x1db375[_0x5aa0a3(0x1ce)](_0x5aa0a3(0x1c4))[_0x5aa0a3(0x1ee)]())throw CliErrors[_0x5aa0a3(0x1c5)](_0x5aa0a3(0x1ef));readTopK(_0x1db375);},async 'execute'(_0x5a7d87){const _0x2c85a1=a32_0x3a03ea,_0x1a3901=_0x5a7d87[_0x2c85a1(0x1ce)]('query')[_0x2c85a1(0x1ee)](),_0x42bb9a=readTopK(_0x5a7d87),_0xbbc1ad=await searchKnowledgeBase(_0x5a7d87[_0x2c85a1(0x1e7)],{'query':_0x1a3901,'topK':_0x42bb9a});return{'ok':!![],'data':{'total':_0xbbc1ad['length'],'hits':_0xbbc1ad[_0x2c85a1(0x1e6)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x3853e9=a33_0x4c1a;function a33_0x1c38(){const _0x3899ed=['Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','/update','score','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','/client/knowledge-base/personal/','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','2992374kMPfZC','num','string','map','trim','write','50756XqcyBp','File\x20is\x20not\x20a\x20regular\x20file:\x20','3wpPrKh','flag','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','verbose','str','list','docId','ragStatus','userId','validation','weightedScore','Created\x20KB\x20entry\x20','build','ragErrorMessage','8UbvlKt','title','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','9546165PXcDIG','/client/knowledge-base/personal/create','metadata','description','utf8','length','isFinite','178234VkliAq','appCode','createTime','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Updated\x20KB\x20entry\x20','content','Search\x20query\x20is\x20required.','number','1054344aBtfyJ','2029505lArNby','Personal\x20knowledge-base\x20entry\x20title','file','read','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','POST','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','Override\x20the\x20existing\x20entry\x20title','detail','--topk\x20must\x20be\x20a\x20positive\x20number.','topk','updateTime','version','query','974874pAuenl','File\x20path\x20is\x20required.','search','Personal\x20knowledge-base\x20entry\x20ID','scope','update'];a33_0x1c38=function(){return _0x3899ed;};return a33_0x1c38();}(function(_0x4d95e5,_0x5a87d4){const _0x2951fd=a33_0x4c1a,_0x1972bb=_0x4d95e5();while(!![]){try{const _0x42a22b=-parseInt(_0x2951fd(0x19b))/0x1+-parseInt(_0x2951fd(0x172))/0x2*(-parseInt(_0x2951fd(0x19d))/0x3)+parseInt(_0x2951fd(0x17a))/0x4+parseInt(_0x2951fd(0x17b))/0x5+parseInt(_0x2951fd(0x189))/0x6+parseInt(_0x2951fd(0x195))/0x7+parseInt(_0x2951fd(0x168))/0x8*(-parseInt(_0x2951fd(0x16b))/0x9);if(_0x42a22b===_0x5a87d4)break;else _0x1972bb['push'](_0x1972bb['shift']());}catch(_0x48cffa){_0x1972bb['push'](_0x1972bb['shift']());}}}(a33_0x1c38,0x39e44));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a33_0x4c1a(_0xe7c28,_0x3874a0){_0xe7c28=_0xe7c28-0x15f;const _0x1c38a3=a33_0x1c38();let _0x4c1a05=_0x1c38a3[_0xe7c28];return _0x4c1a05;}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_0x3853e9(0x169),'type':'string','required':!![],'description':a33_0x3853e9(0x17c)},FILE_FLAG={'name':a33_0x3853e9(0x17d),'type':'string','required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x3853e9(0x188),'type':a33_0x3853e9(0x197),'required':!![],'description':a33_0x3853e9(0x17f)},TOPK_FLAG={'name':a33_0x3853e9(0x185),'type':a33_0x3853e9(0x179),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0xf02d5f){const _0x151c15=a33_0x3853e9;if(!_0xf02d5f)throw CliErrors[_0x151c15(0x163)](_0x151c15(0x18a));if(!existsSync(_0xf02d5f))throw CliErrors[_0x151c15(0x163)]('File\x20not\x20found:\x20'+_0xf02d5f);if(!statSync(_0xf02d5f)['isFile']())throw CliErrors['validation'](_0x151c15(0x19c)+_0xf02d5f);return readFileSync(_0xf02d5f,_0x151c15(0x16f));}function summarizePersonalItem(_0x305b76){const _0x1dd73c=a33_0x3853e9;return{'id':_0x305b76['id'],'title':_0x305b76[_0x1dd73c(0x169)],'version':_0x305b76[_0x1dd73c(0x187)],'ragStatus':_0x305b76['ragStatus'],'ragErrorMessage':_0x305b76['ragErrorMessage'],'updateTime':_0x305b76[_0x1dd73c(0x186)]};}function detailPersonalItem(_0x31f668){const _0x24421d=a33_0x3853e9;return{'id':_0x31f668['id'],'appCode':_0x31f668[_0x24421d(0x173)],'scope':_0x31f668['scope'],'userId':_0x31f668[_0x24421d(0x162)],'title':_0x31f668['title'],'content':_0x31f668[_0x24421d(0x177)]??'','version':_0x31f668['version'],'ragStatus':_0x31f668[_0x24421d(0x161)],'ragErrorMessage':_0x31f668[_0x24421d(0x167)],'createTime':_0x31f668[_0x24421d(0x174)],'updateTime':_0x31f668['updateTime']};}function summarizeSearchHit(_0x56cb75){const _0x220449=a33_0x3853e9;return{'scope':_0x56cb75[_0x220449(0x18d)],'title':_0x56cb75[_0x220449(0x169)],'docId':_0x56cb75[_0x220449(0x160)],'score':_0x56cb75[_0x220449(0x191)],'weightedScore':_0x56cb75[_0x220449(0x164)],'content':_0x56cb75['content'],'metadata':_0x56cb75[_0x220449(0x16d)]};}function readTopK(_0x140b07){const _0x4e7dcc=a33_0x3853e9,_0x4ab080=_0x140b07[_0x4e7dcc(0x19e)](_0x4e7dcc(0x185));if(_0x4ab080===undefined||_0x4ab080===null||_0x4ab080==='')return undefined;const _0x333126=_0x140b07[_0x4e7dcc(0x196)](_0x4e7dcc(0x185));if(!Number[_0x4e7dcc(0x171)](_0x333126)||_0x333126<0x1)throw CliErrors['validation'](_0x4e7dcc(0x184));return _0x333126;}const kbList={'service':'kb','command':a33_0x3853e9(0x15f),'description':a33_0x3853e9(0x194),'risk':a33_0x3853e9(0x17e),'flags':[VERBOSE_FLAG],async 'execute'(_0x1d2af0){const _0x3b0d59=a33_0x3853e9,_0x3e4a4b=await listPersonalKnowledgeBaseItems(_0x1d2af0[_0x3b0d59(0x173)]);if(_0x1d2af0['bool'](_0x3b0d59(0x1a0)))return{'ok':!![],'data':{'total':_0x3e4a4b['length'],'items':_0x3e4a4b}};return{'ok':!![],'data':{'total':_0x3e4a4b[_0x3b0d59(0x170)],'items':_0x3e4a4b['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x3853e9(0x183),'description':a33_0x3853e9(0x192),'risk':a33_0x3853e9(0x17e),'flags':[{...ID_FLAG,'description':a33_0x3853e9(0x18c)}],async 'execute'(_0x216650){const _0x139459=a33_0x3853e9,_0x13d57c=await getPersonalKnowledgeBaseItem(_0x216650[_0x139459(0x196)]('id'),_0x216650['appCode']);return{'ok':!![],'data':detailPersonalItem(_0x13d57c)};}},kbCreate={'service':'kb','command':'create','description':a33_0x3853e9(0x175),'risk':a33_0x3853e9(0x19a),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x568190){const _0x50a502=a33_0x3853e9,_0x5d0ed2=_0x568190['str'](_0x50a502(0x169)),_0x2cdbd8=readKnowledgeFile(_0x568190[_0x50a502(0x1a1)](_0x50a502(0x17d))),_0x5ae865=await createPersonalKnowledgeBaseItem(_0x568190['appCode'],{'title':_0x5d0ed2,'content':_0x2cdbd8});return{'ok':!![],'data':summarizePersonalItem(_0x5ae865),'message':_0x50a502(0x165)+_0x5ae865['id']+'\x20('+_0x5ae865[_0x50a502(0x169)]+')'};},async 'dryRun'(_0x5ae7cd){const _0x49de7d=a33_0x3853e9,_0x52fb96=_0x5ae7cd[_0x49de7d(0x1a1)]('title'),_0x5fc7f2=readKnowledgeFile(_0x5ae7cd['str']('file'));return dryRun(_0x49de7d(0x180),_0x49de7d(0x16c))['body']({'appCode':_0x5ae7cd[_0x49de7d(0x173)],'title':_0x52fb96,'content':_0x5fc7f2})[_0x49de7d(0x16e)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x52fb96+'\x22')['build']();}},kbUpdate={'service':'kb','command':a33_0x3853e9(0x18e),'description':a33_0x3853e9(0x16a),'risk':a33_0x3853e9(0x19a),'confirmationDescription':a33_0x3853e9(0x18f),'flags':[{...ID_FLAG,'description':a33_0x3853e9(0x18c)},{...TITLE_FLAG,'required':![],'description':a33_0x3853e9(0x182)},FILE_FLAG],async 'execute'(_0xf00c65){const _0x10717f=a33_0x3853e9,_0x17b41a=_0xf00c65[_0x10717f(0x196)]('id'),_0x3a9487=readKnowledgeFile(_0xf00c65[_0x10717f(0x1a1)](_0x10717f(0x17d))),_0x298748=_0xf00c65['str'](_0x10717f(0x169))||(await getPersonalKnowledgeBaseItem(_0x17b41a,_0xf00c65[_0x10717f(0x173)]))['title'],_0x612a95=await updatePersonalKnowledgeBaseItem(_0x17b41a,_0xf00c65[_0x10717f(0x173)],{'title':_0x298748,'content':_0x3a9487});return{'ok':!![],'data':summarizePersonalItem(_0x612a95),'message':_0x10717f(0x176)+_0x612a95['id']+'\x20('+_0x612a95[_0x10717f(0x169)]+')'};},async 'dryRun'(_0x2a695d){const _0x2bf64b=a33_0x3853e9,_0x6d4dbe=_0x2a695d[_0x2bf64b(0x196)]('id'),_0x5ff12=readKnowledgeFile(_0x2a695d[_0x2bf64b(0x1a1)](_0x2bf64b(0x17d))),_0x30be47=_0x2a695d[_0x2bf64b(0x1a1)]('title')||(await getPersonalKnowledgeBaseItem(_0x6d4dbe,_0x2a695d[_0x2bf64b(0x173)]))['title'];return dryRun(_0x2bf64b(0x180),_0x2bf64b(0x193)+_0x6d4dbe+_0x2bf64b(0x190))['body']({'appCode':_0x2a695d[_0x2bf64b(0x173)],'title':_0x30be47,'content':_0x5ff12})[_0x2bf64b(0x16e)](_0x2bf64b(0x19f)+_0x6d4dbe)[_0x2bf64b(0x166)]();}},kbSearch={'service':'kb','command':a33_0x3853e9(0x18b),'description':a33_0x3853e9(0x181),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x46178f){const _0x35f8c7=a33_0x3853e9;if(!_0x46178f[_0x35f8c7(0x1a1)]('query')[_0x35f8c7(0x199)]())throw CliErrors[_0x35f8c7(0x163)](_0x35f8c7(0x178));readTopK(_0x46178f);},async 'execute'(_0x202ed0){const _0x9cbf28=a33_0x3853e9,_0x2cd259=_0x202ed0[_0x9cbf28(0x1a1)](_0x9cbf28(0x188))[_0x9cbf28(0x199)](),_0x546fde=readTopK(_0x202ed0),_0x5a8047=await searchKnowledgeBase(_0x202ed0['appCode'],{'query':_0x2cd259,'topK':_0x546fde});return{'ok':!![],'data':{'total':_0x5a8047[_0x9cbf28(0x170)],'hits':_0x5a8047[_0x9cbf28(0x198)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a33_0x4fda3f=a33_0x1e3c;function a33_0x1d34(){const _0x1aa221=['7801524qmSTbo','success','7711128zJeZdU','keys','message','error','195874NeCcDk','timestamp','readLogs','73079630xESckf','log','13459957Hlefax','View\x20command\x20history\x20logs','length','duration','logs','\x20logs:\x0a','toLocaleString','details','8nHBkbm','5559132mjHHxP','7QKTljb','warn','level','\x20\x20\x20Details:\x20','\x20\x20\x20Time:\x20','6WMJPDg','\x20\x20\x20Duration:\x20','read','forEach','4679470xRKLUx'];a33_0x1d34=function(){return _0x1aa221;};return a33_0x1d34();}(function(_0x4b98cb,_0x199c84){const _0x26534b=a33_0x1e3c,_0x439354=_0x4b98cb();while(!![]){try{const _0x5855fa=parseInt(_0x26534b(0x152))/0x1*(-parseInt(_0x26534b(0x143))/0x2)+-parseInt(_0x26534b(0x151))/0x3+-parseInt(_0x26534b(0x15c))/0x4+parseInt(_0x26534b(0x15b))/0x5+parseInt(_0x26534b(0x157))/0x6*(-parseInt(_0x26534b(0x148))/0x7)+parseInt(_0x26534b(0x150))/0x8*(-parseInt(_0x26534b(0x15e))/0x9)+parseInt(_0x26534b(0x146))/0xa;if(_0x5855fa===_0x199c84)break;else _0x439354['push'](_0x439354['shift']());}catch(_0x1cae4b){_0x439354['push'](_0x439354['shift']());}}}(a33_0x1d34,0xee17e));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x191b5e){const _0xa1b680=a33_0x1e3c;if(_0x191b5e[_0xa1b680(0x14a)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console[_0xa1b680(0x147)]('*\x20'+CLI_DISPLAY_NAME+_0xa1b680(0x14d)),_0x191b5e[_0xa1b680(0x15a)]((_0xcb1073,_0x14da43)=>{const _0x11f31e=_0xa1b680,_0x24262f=new Date(_0xcb1073[_0x11f31e(0x144)])[_0x11f31e(0x14e)]('en-US'),_0x47121c=_0xcb1073[_0x11f31e(0x154)]===_0x11f31e(0x15d)?'√':_0xcb1073[_0x11f31e(0x154)]===_0x11f31e(0x142)?'×':_0xcb1073[_0x11f31e(0x154)]===_0x11f31e(0x153)?'!':'i';console[_0x11f31e(0x147)](_0x14da43+0x1+'.\x20'+_0x47121c+'\x20['+_0xcb1073['command']+']\x20'+_0xcb1073[_0x11f31e(0x160)]),console[_0x11f31e(0x147)](_0x11f31e(0x156)+_0x24262f),_0xcb1073['duration']&&console[_0x11f31e(0x147)](_0x11f31e(0x158)+_0xcb1073[_0x11f31e(0x14b)]+'ms'),_0xcb1073['details']&&Object[_0x11f31e(0x15f)](_0xcb1073['details'])['length']>0x0&&console[_0x11f31e(0x147)](_0x11f31e(0x155)+JSON['stringify'](_0xcb1073[_0x11f31e(0x14f)],null,0x2)),console[_0x11f31e(0x147)]('');});}function a33_0x1e3c(_0x454202,_0x4af972){_0x454202=_0x454202-0x142;const _0x1d3492=a33_0x1d34();let _0x1e3cdf=_0x1d3492[_0x454202];return _0x1e3cdf;}export const logsDefinitions=[{'service':a33_0x4fda3f(0x14c),'command':'show','description':a33_0x4fda3f(0x149),'risk':a33_0x4fda3f(0x159),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x48314d){const _0x161647=a33_0x4fda3f;return printLogs(logger[_0x161647(0x145)]()),{'ok':!![]};}}];
1
+ const a34_0x5b9481=a34_0x424f;function a34_0x424f(_0x881c95,_0x4e24b7){_0x881c95=_0x881c95-0x14e;const _0x30819e=a34_0x3081();let _0x424f5c=_0x30819e[_0x881c95];return _0x424f5c;}(function(_0x238fc2,_0x22b03a){const _0x46fc25=a34_0x424f,_0x2bb870=_0x238fc2();while(!![]){try{const _0xd07f89=parseInt(_0x46fc25(0x15a))/0x1*(parseInt(_0x46fc25(0x168))/0x2)+parseInt(_0x46fc25(0x151))/0x3+parseInt(_0x46fc25(0x159))/0x4*(-parseInt(_0x46fc25(0x15f))/0x5)+-parseInt(_0x46fc25(0x155))/0x6+parseInt(_0x46fc25(0x15e))/0x7*(-parseInt(_0x46fc25(0x157))/0x8)+-parseInt(_0x46fc25(0x15d))/0x9+parseInt(_0x46fc25(0x169))/0xa;if(_0xd07f89===_0x22b03a)break;else _0x2bb870['push'](_0x2bb870['shift']());}catch(_0x8d43dd){_0x2bb870['push'](_0x2bb870['shift']());}}}(a34_0x3081,0x59ac2));function a34_0x3081(){const _0x5597c7=['message','read','4392594LOlraI','command','24uocJtf','success','214796xRjkDJ','3faUFMu','error','logs','987246ffPSeA','1529479zwjtGJ','35pkLWJc','readLogs','details','\x20\x20\x20Details:\x20','\x20logs:\x0a','show','length','keys','log','134916Eeqeso','18821130MHRrLp','en-US','duration','View\x20command\x20history\x20logs','level','467964vXkLiX','toLocaleString'];a34_0x3081=function(){return _0x5597c7;};return a34_0x3081();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x287c17){const _0x38eb5e=a34_0x424f;if(_0x287c17[_0x38eb5e(0x165)]===0x0){console[_0x38eb5e(0x167)]('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x38eb5e(0x163)),_0x287c17['forEach']((_0x2e1c6c,_0xde7e90)=>{const _0x256ba0=_0x38eb5e,_0x536504=new Date(_0x2e1c6c['timestamp'])[_0x256ba0(0x152)](_0x256ba0(0x16a)),_0x11dc83=_0x2e1c6c[_0x256ba0(0x150)]===_0x256ba0(0x158)?'√':_0x2e1c6c['level']===_0x256ba0(0x15b)?'×':_0x2e1c6c[_0x256ba0(0x150)]==='warn'?'!':'i';console['log'](_0xde7e90+0x1+'.\x20'+_0x11dc83+'\x20['+_0x2e1c6c[_0x256ba0(0x156)]+']\x20'+_0x2e1c6c[_0x256ba0(0x153)]),console[_0x256ba0(0x167)]('\x20\x20\x20Time:\x20'+_0x536504),_0x2e1c6c[_0x256ba0(0x14e)]&&console[_0x256ba0(0x167)]('\x20\x20\x20Duration:\x20'+_0x2e1c6c[_0x256ba0(0x14e)]+'ms'),_0x2e1c6c['details']&&Object[_0x256ba0(0x166)](_0x2e1c6c['details'])[_0x256ba0(0x165)]>0x0&&console['log'](_0x256ba0(0x162)+JSON['stringify'](_0x2e1c6c[_0x256ba0(0x161)],null,0x2)),console[_0x256ba0(0x167)]('');});}export const logsDefinitions=[{'service':a34_0x5b9481(0x15c),'command':a34_0x5b9481(0x164),'description':a34_0x5b9481(0x14f),'risk':a34_0x5b9481(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1752bd){const _0x57499f=a34_0x5b9481;return printLogs(logger[_0x57499f(0x160)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a34_0x3477(_0x3c6e35,_0x23f9fd){_0x3c6e35=_0x3c6e35-0x144;const _0x585dc6=a34_0x585d();let _0x347770=_0x585dc6[_0x3c6e35];return _0x347770;}const a34_0xbec626=a34_0x3477;(function(_0x2000ed,_0x657529){const _0x33a008=a34_0x3477,_0x2fd8de=_0x2000ed();while(!![]){try{const _0x5e4dfe=-parseInt(_0x33a008(0x152))/0x1+parseInt(_0x33a008(0x156))/0x2+parseInt(_0x33a008(0x14f))/0x3+-parseInt(_0x33a008(0x151))/0x4+parseInt(_0x33a008(0x14e))/0x5*(parseInt(_0x33a008(0x145))/0x6)+parseInt(_0x33a008(0x146))/0x7*(parseInt(_0x33a008(0x149))/0x8)+parseInt(_0x33a008(0x157))/0x9;if(_0x5e4dfe===_0x657529)break;else _0x2fd8de['push'](_0x2fd8de['shift']());}catch(_0x17d9e2){_0x2fd8de['push'](_0x2fd8de['shift']());}}}(a34_0x585d,0x2f04f));function a34_0x585d(){const _0x412f77=['length','appCode','read','string','7915iGxcpH','89736VqYsmP','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','796748njJALY','324984xxLUqu','notification','map','\x20notification\x20config(s)','178126aYSSva','1128546Bxpfzr','config-list','702YQYioc','1967gbOfTo','Found\x20','Notification\x20channel\x20type','8176aPcOld'];a34_0x585d=function(){return _0x412f77;};return a34_0x585d();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a34_0xbec626(0x153),'command':a34_0xbec626(0x144),'description':a34_0xbec626(0x150),'risk':a34_0xbec626(0x14c),'flags':[{'name':'type','type':a34_0xbec626(0x14d),'description':a34_0xbec626(0x148),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x32d541){readNotificationChannelType(_0x32d541);},async 'execute'(_0x3da649){const _0x582802=a34_0xbec626,_0x134ec8=readNotificationChannelType(_0x3da649),_0x1146de=await listNotificationChannelConfigs(_0x3da649['appCode'],_0x134ec8),_0x18598e=_0x1146de[_0x582802(0x154)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3da649[_0x582802(0x14b)],'channelType':_0x134ec8,'count':_0x18598e[_0x582802(0x14a)],'configs':_0x18598e},'message':_0x582802(0x147)+_0x18598e[_0x582802(0x14a)]+'\x20'+_0x134ec8+_0x582802(0x155)};}};
1
+ const a35_0x4411d5=a35_0x4e59;(function(_0x501db5,_0x5c69d7){const _0x1f32a0=a35_0x4e59,_0x55b698=_0x501db5();while(!![]){try{const _0x25d452=-parseInt(_0x1f32a0(0x1a0))/0x1+parseInt(_0x1f32a0(0x1a5))/0x2+parseInt(_0x1f32a0(0x194))/0x3*(-parseInt(_0x1f32a0(0x19a))/0x4)+parseInt(_0x1f32a0(0x1a7))/0x5*(parseInt(_0x1f32a0(0x1a1))/0x6)+-parseInt(_0x1f32a0(0x198))/0x7+-parseInt(_0x1f32a0(0x197))/0x8*(-parseInt(_0x1f32a0(0x1a3))/0x9)+parseInt(_0x1f32a0(0x19e))/0xa;if(_0x25d452===_0x5c69d7)break;else _0x55b698['push'](_0x55b698['shift']());}catch(_0x166bb9){_0x55b698['push'](_0x55b698['shift']());}}}(a35_0x1532,0x8515b));function a35_0x4e59(_0x38df2f,_0x39a3f8){_0x38df2f=_0x38df2f-0x191;const _0x15323a=a35_0x1532();let _0x4e598f=_0x15323a[_0x38df2f];return _0x4e598f;}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x1532(){const _0x21b559=['map','213215PTAezu','EMAIL','notification','type','3irWrGQ','\x20notification\x20config(s)','Found\x20','168408MOMVzl','6797553XansZU','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1474772EfqPHz','Notification\x20channel\x20type','config-list','string','1540460LliwRa','appCode','470119sQerpL','78zEmqdz','length','297YGCRdd','read','1903836VtfESJ'];a35_0x1532=function(){return _0x21b559;};return a35_0x1532();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x4411d5(0x192),'command':a35_0x4411d5(0x19c),'description':a35_0x4411d5(0x199),'risk':a35_0x4411d5(0x1a4),'flags':[{'name':a35_0x4411d5(0x193),'type':a35_0x4411d5(0x19d),'description':a35_0x4411d5(0x19b),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x4411d5(0x191)}],async 'validate'(_0x326431){readNotificationChannelType(_0x326431);},async 'execute'(_0x574bb0){const _0x5ce97b=a35_0x4411d5,_0xc89460=readNotificationChannelType(_0x574bb0),_0x3691a3=await listNotificationChannelConfigs(_0x574bb0[_0x5ce97b(0x19f)],_0xc89460),_0x4959dd=_0x3691a3[_0x5ce97b(0x1a6)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x574bb0['appCode'],'channelType':_0xc89460,'count':_0x4959dd[_0x5ce97b(0x1a2)],'configs':_0x4959dd},'message':_0x5ce97b(0x196)+_0x4959dd['length']+'\x20'+_0xc89460+_0x5ce97b(0x195)};}};
@@ -1 +1 @@
1
- function a35_0x33bb(_0x51ab42,_0xa2c4fa){_0x51ab42=_0x51ab42-0x168;const _0x3e7e89=a35_0x3e7e();let _0x33bb60=_0x3e7e89[_0x51ab42];return _0x33bb60;}(function(_0x559919,_0x11e3cf){const _0x4c84c5=a35_0x33bb,_0x3a50f=_0x559919();while(!![]){try{const _0x4e7ef8=parseInt(_0x4c84c5(0x16c))/0x1*(-parseInt(_0x4c84c5(0x174))/0x2)+-parseInt(_0x4c84c5(0x16e))/0x3*(-parseInt(_0x4c84c5(0x172))/0x4)+parseInt(_0x4c84c5(0x173))/0x5*(-parseInt(_0x4c84c5(0x16a))/0x6)+parseInt(_0x4c84c5(0x16b))/0x7*(parseInt(_0x4c84c5(0x170))/0x8)+parseInt(_0x4c84c5(0x168))/0x9*(parseInt(_0x4c84c5(0x171))/0xa)+-parseInt(_0x4c84c5(0x16d))/0xb+parseInt(_0x4c84c5(0x16f))/0xc*(-parseInt(_0x4c84c5(0x169))/0xd);if(_0x4e7ef8===_0x11e3cf)break;else _0x3a50f['push'](_0x3a50f['shift']());}catch(_0x14694d){_0x3a50f['push'](_0x3a50f['shift']());}}}(a35_0x3e7e,0xe91c3));import{notificationConfigList}from'../../commands/notification/config-list.js';function a35_0x3e7e(){const _0x36c444=['102xwhhtP','63028EcVWGx','44596xeWbLm','2723908fNvjUH','90naKyBz','228wxwzon','376qXtsVz','298640ytQxdH','177736jAwHtO','247355XHZStd','2fagMTH','369SGnWuq','610714INEwCq'];a35_0x3e7e=function(){return _0x36c444;};return a35_0x3e7e();}export const notificationDefinitions=[notificationConfigList];
1
+ function a36_0x4fde(_0xb632f2,_0xe5256c){_0xb632f2=_0xb632f2-0x1d9;const _0x22c48b=a36_0x22c4();let _0x4fde0e=_0x22c48b[_0xb632f2];return _0x4fde0e;}(function(_0x233284,_0x16a06d){const _0x472f4b=a36_0x4fde,_0x10d799=_0x233284();while(!![]){try{const _0x3b6614=parseInt(_0x472f4b(0x1dc))/0x1+parseInt(_0x472f4b(0x1dd))/0x2+-parseInt(_0x472f4b(0x1de))/0x3+parseInt(_0x472f4b(0x1da))/0x4+-parseInt(_0x472f4b(0x1d9))/0x5+-parseInt(_0x472f4b(0x1db))/0x6*(-parseInt(_0x472f4b(0x1e1))/0x7)+parseInt(_0x472f4b(0x1df))/0x8*(parseInt(_0x472f4b(0x1e0))/0x9);if(_0x3b6614===_0x16a06d)break;else _0x10d799['push'](_0x10d799['shift']());}catch(_0x4ab553){_0x10d799['push'](_0x10d799['shift']());}}}(a36_0x22c4,0xf3cd9));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x22c4(){const _0x19fda0=['132612rXWBxf','6cpenpC','230930LiPUPC','2214700ERGohD','2669325hEiwwd','240rTQpgQ','486117xTwdUw','1833244EjXiqU','6826615tqIWlg'];a36_0x22c4=function(){return _0x19fda0;};return a36_0x22c4();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a36_0x5b94a9=a36_0x7d5b;function a36_0x7d5b(_0x30c465,_0x5385f5){_0x30c465=_0x30c465-0xe0;const _0x1ef047=a36_0x1ef0();let _0x7d5b69=_0x1ef047[_0x30c465];return _0x7d5b69;}(function(_0x2dec7e,_0x465e7a){const _0xe96dee=a36_0x7d5b,_0x58df92=_0x2dec7e();while(!![]){try{const _0x1aed7c=-parseInt(_0xe96dee(0xf1))/0x1*(parseInt(_0xe96dee(0xf4))/0x2)+parseInt(_0xe96dee(0xf5))/0x3*(-parseInt(_0xe96dee(0x105))/0x4)+parseInt(_0xe96dee(0xf9))/0x5*(parseInt(_0xe96dee(0xfb))/0x6)+-parseInt(_0xe96dee(0x100))/0x7*(parseInt(_0xe96dee(0xe1))/0x8)+parseInt(_0xe96dee(0xed))/0x9*(-parseInt(_0xe96dee(0xe0))/0xa)+-parseInt(_0xe96dee(0xe6))/0xb+parseInt(_0xe96dee(0xea))/0xc;if(_0x1aed7c===_0x465e7a)break;else _0x58df92['push'](_0x58df92['shift']());}catch(_0xbd04b5){_0x58df92['push'](_0x58df92['shift']());}}}(a36_0x1ef0,0xf1b72));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a36_0x5b94a9(0x104),'FEISHU',a36_0x5b94a9(0xf6),a36_0x5b94a9(0x106),a36_0x5b94a9(0xfc)];export function readNotificationChannelType(_0x513d6e){const _0x1142ec=a36_0x5b94a9,_0x35da74=_0x513d6e['str'](_0x1142ec(0xee))[_0x1142ec(0xef)]()||_0x1142ec(0x104);if(!NOTIFICATION_CHANNEL_TYPES[_0x1142ec(0xf7)](_0x35da74))throw CliErrors[_0x1142ec(0xe8)](_0x1142ec(0xf8)+_0x35da74,_0x1142ec(0xfa)+NOTIFICATION_CHANNEL_TYPES[_0x1142ec(0xff)](',\x20')+'.');return _0x35da74;}export function projectNotificationListConfig(_0x2f5f88,_0x54fbdb){const _0x37f219=a36_0x5b94a9,_0x64cf94=requireResponseObject(_0x2f5f88,_0x54fbdb);return{'id':normalizeNullableId(_0x64cf94['id'],_0x54fbdb),'configCode':requireResponseString(_0x64cf94[_0x37f219(0xe7)],'configCode',_0x54fbdb),'configName':requireResponseString(_0x64cf94[_0x37f219(0xeb)],_0x37f219(0xeb),_0x54fbdb),'channelType':requireResponseString(_0x64cf94['channelType'],_0x37f219(0xfd),_0x54fbdb),'description':normalizeNullableString(_0x64cf94[_0x37f219(0xf0)]),'createTime':normalizeNullableString(_0x64cf94[_0x37f219(0xf2)]),'updateTime':normalizeNullableString(_0x64cf94[_0x37f219(0x103)])};}function requireResponseObject(_0x544c82,_0x14a7a9){const _0x3625e8=a36_0x5b94a9;if(typeof _0x544c82!==_0x3625e8(0xe2)||_0x544c82===null||Array['isArray'](_0x544c82))throw CliErrors[_0x3625e8(0xfe)](_0x3625e8(0xe3),'Item\x20'+(_0x14a7a9+0x1)+'\x20must\x20be\x20an\x20object.');return _0x544c82;}function requireResponseString(_0x4d02d6,_0x5cbe0d,_0x4a1f8a){const _0x1a6905=a36_0x5b94a9;if(typeof _0x4d02d6!==_0x1a6905(0x102)||!_0x4d02d6[_0x1a6905(0xef)]())throw CliErrors[_0x1a6905(0xfe)](_0x1a6905(0xe3),_0x1a6905(0x101)+(_0x4a1f8a+0x1)+_0x1a6905(0xe4)+_0x5cbe0d+'\x22.');return _0x4d02d6[_0x1a6905(0xef)]();}function a36_0x1ef0(){const _0x2ee392=['channelType','apiError','join','77MNfSwn','Item\x20','string','updateTime','EMAIL','6613804EKJyaU','WECOM','107330lkSoKr','428384EFNDYG','object','Invalid\x20notification\x20config\x20response.','\x20is\x20missing\x20required\x20field\x20\x22','\x20has\x20invalid\x20field\x20\x22id\x22.','4752715NWDfvx','configCode','validation','number','67387812PccfCr','configName','isSafeInteger','801OdIYbz','type','trim','description','7QpeUec','createTime','test','313104dyqDKv','3xXTXGz','DINGTALK','includes','Invalid\x20--type:\x20','100NcYeNk','Allowed\x20values:\x20','30018suaJHQ','WEBHOOK'];a36_0x1ef0=function(){return _0x2ee392;};return a36_0x1ef0();}function normalizeNullableString(_0x58fdfd){const _0x5e7ac4=a36_0x5b94a9;return typeof _0x58fdfd===_0x5e7ac4(0x102)&&_0x58fdfd[_0x5e7ac4(0xef)]()?_0x58fdfd['trim']():null;}function normalizeNullableId(_0x270798,_0x55c7e2){const _0xa7bcf8=a36_0x5b94a9;if(_0x270798===undefined||_0x270798===null)return null;if(typeof _0x270798===_0xa7bcf8(0xe9)&&Number[_0xa7bcf8(0xec)](_0x270798))return _0x270798;if(typeof _0x270798===_0xa7bcf8(0x102)&&/^-?\d+$/[_0xa7bcf8(0xf3)](_0x270798[_0xa7bcf8(0xef)]()))return _0x270798[_0xa7bcf8(0xef)]();throw CliErrors[_0xa7bcf8(0xfe)](_0xa7bcf8(0xe3),_0xa7bcf8(0x101)+(_0x55c7e2+0x1)+_0xa7bcf8(0xe5));}
1
+ const a37_0x4d17b2=a37_0x28be;function a37_0x4dfa(){const _0x2df468=['updateTime','configCode','isSafeInteger','WEBHOOK','string','\x20is\x20missing\x20required\x20field\x20\x22','8915NaZVUK','type','str','Invalid\x20notification\x20config\x20response.','\x20must\x20be\x20an\x20object.','Item\x20','configName','createTime','channelType','apiError','\x20has\x20invalid\x20field\x20\x22id\x22.','353892ClAkIi','number','796oGpBSt','Allowed\x20values:\x20','EMAIL','107720rMwvHR','40jPUitR','16866RPJFbQ','validation','14168988WGaDpZ','728010jywsbB','description','join','Invalid\x20--type:\x20','36ASEvAM','62426lULCGi','44gZjrUk','WECOM','includes','trim','21wnJzAq'];a37_0x4dfa=function(){return _0x2df468;};return a37_0x4dfa();}(function(_0x46d45b,_0x272e6f){const _0x40230e=a37_0x28be,_0x1f7d43=_0x46d45b();while(!![]){try{const _0x6be5c8=-parseInt(_0x40230e(0xcd))/0x1+-parseInt(_0x40230e(0xb1))/0x2*(parseInt(_0x40230e(0xb0))/0x3)+parseInt(_0x40230e(0xca))/0x4*(-parseInt(_0x40230e(0xbd))/0x5)+parseInt(_0x40230e(0xc8))/0x6*(parseInt(_0x40230e(0xb6))/0x7)+-parseInt(_0x40230e(0xce))/0x8*(-parseInt(_0x40230e(0xcf))/0x9)+parseInt(_0x40230e(0xd2))/0xa*(-parseInt(_0x40230e(0xb2))/0xb)+parseInt(_0x40230e(0xd1))/0xc;if(_0x6be5c8===_0x272e6f)break;else _0x1f7d43['push'](_0x1f7d43['shift']());}catch(_0x23b7a3){_0x1f7d43['push'](_0x1f7d43['shift']());}}}(a37_0x4dfa,0x3a4b0));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL','FEISHU','DINGTALK',a37_0x4d17b2(0xb3),a37_0x4d17b2(0xba)];export function readNotificationChannelType(_0x39b31f){const _0x3ad632=a37_0x4d17b2,_0x36372a=_0x39b31f[_0x3ad632(0xbf)](_0x3ad632(0xbe))[_0x3ad632(0xb5)]()||_0x3ad632(0xcc);if(!NOTIFICATION_CHANNEL_TYPES[_0x3ad632(0xb4)](_0x36372a))throw CliErrors[_0x3ad632(0xd0)](_0x3ad632(0xaf)+_0x36372a,_0x3ad632(0xcb)+NOTIFICATION_CHANNEL_TYPES[_0x3ad632(0xae)](',\x20')+'.');return _0x36372a;}export function projectNotificationListConfig(_0x16f543,_0x123dd7){const _0xcdf98=a37_0x4d17b2,_0x255dfb=requireResponseObject(_0x16f543,_0x123dd7);return{'id':normalizeNullableId(_0x255dfb['id'],_0x123dd7),'configCode':requireResponseString(_0x255dfb[_0xcdf98(0xb8)],_0xcdf98(0xb8),_0x123dd7),'configName':requireResponseString(_0x255dfb[_0xcdf98(0xc3)],_0xcdf98(0xc3),_0x123dd7),'channelType':requireResponseString(_0x255dfb[_0xcdf98(0xc5)],_0xcdf98(0xc5),_0x123dd7),'description':normalizeNullableString(_0x255dfb[_0xcdf98(0xd3)]),'createTime':normalizeNullableString(_0x255dfb[_0xcdf98(0xc4)]),'updateTime':normalizeNullableString(_0x255dfb[_0xcdf98(0xb7)])};}function requireResponseObject(_0x2f9b7c,_0x572a8d){const _0x3f61f2=a37_0x4d17b2;if(typeof _0x2f9b7c!=='object'||_0x2f9b7c===null||Array['isArray'](_0x2f9b7c))throw CliErrors[_0x3f61f2(0xc6)](_0x3f61f2(0xc0),_0x3f61f2(0xc2)+(_0x572a8d+0x1)+_0x3f61f2(0xc1));return _0x2f9b7c;}function requireResponseString(_0x10dcec,_0x588a18,_0x99278a){const _0xb30f03=a37_0x4d17b2;if(typeof _0x10dcec!=='string'||!_0x10dcec['trim']())throw CliErrors[_0xb30f03(0xc6)](_0xb30f03(0xc0),_0xb30f03(0xc2)+(_0x99278a+0x1)+_0xb30f03(0xbc)+_0x588a18+'\x22.');return _0x10dcec[_0xb30f03(0xb5)]();}function normalizeNullableString(_0x14cd3c){const _0x1bc05d=a37_0x4d17b2;return typeof _0x14cd3c==='string'&&_0x14cd3c[_0x1bc05d(0xb5)]()?_0x14cd3c[_0x1bc05d(0xb5)]():null;}function a37_0x28be(_0x388284,_0x1ca60e){_0x388284=_0x388284-0xae;const _0x4dfa78=a37_0x4dfa();let _0x28be0f=_0x4dfa78[_0x388284];return _0x28be0f;}function normalizeNullableId(_0x343f7f,_0x5a24ba){const _0x307ff2=a37_0x4d17b2;if(_0x343f7f===undefined||_0x343f7f===null)return null;if(typeof _0x343f7f===_0x307ff2(0xc9)&&Number[_0x307ff2(0xb9)](_0x343f7f))return _0x343f7f;if(typeof _0x343f7f===_0x307ff2(0xbb)&&/^-?\d+$/['test'](_0x343f7f[_0x307ff2(0xb5)]()))return _0x343f7f[_0x307ff2(0xb5)]();throw CliErrors[_0x307ff2(0xc6)](_0x307ff2(0xc0),_0x307ff2(0xc2)+(_0x5a24ba+0x1)+_0x307ff2(0xc7));}
@@ -1 +1 @@
1
- const a37_0x39437a=a37_0x1d1c;function a37_0x24c3(){const _0x5e5335=['scene','<filePath\x20returned\x20by\x20/client/uploadFile>','build','/client/queryFileUrl','提取票证类业务材料中的文字与结构化字段;不用于通用图片理解','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','string','927832jyFlrU','21PjfoXT','apiError','idcard','548tofEvH','description','/client/uploadFile','idCard','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','read','2970510xyfAkK','File\x20upload\x20response\x20missing\x20filePath.','Invoice','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Preview:\x20recognize\x20','image-file','imageFile','filePath','image-url','/client/ocr','path','.\x20Supported\x20scenes:\x20','body','imageUrl','appCode','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','trim','ocr','POST','3168267xDqmdT','general','4627446UYsEjq','form','recognize','17340dQezDW','General','Publicly\x20accessible\x20image\x20or\x20file\x20URL','3483JIcRRw','\x20OCR\x20from\x20URL','validation','str','2398364tASABY','fileUrl','filter','fileName','1593rlxeCC','File\x20URL\x20response\x20missing\x20fileUrl.','\x20OCR'];a37_0x24c3=function(){return _0x5e5335;};return a37_0x24c3();}(function(_0x2f7732,_0x1d4c8c){const _0x2b0a16=a37_0x1d1c,_0x102f62=_0x2f7732();while(!![]){try{const _0xd37797=-parseInt(_0x2b0a16(0xe0))/0x1*(-parseInt(_0x2b0a16(0xf7))/0x2)+parseInt(_0x2b0a16(0xd8))/0x3+parseInt(_0x2b0a16(0xe4))/0x4+-parseInt(_0x2b0a16(0xfd))/0x5+-parseInt(_0x2b0a16(0xda))/0x6+parseInt(_0x2b0a16(0xf4))/0x7*(-parseInt(_0x2b0a16(0xf3))/0x8)+-parseInt(_0x2b0a16(0xe8))/0x9*(parseInt(_0x2b0a16(0xdd))/0xa);if(_0xd37797===_0x1d4c8c)break;else _0x102f62['push'](_0x102f62['shift']());}catch(_0x512cb9){_0x102f62['push'](_0x102f62['shift']());}}}(a37_0x24c3,0x90000));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a37_0x1d1c(_0x462a55,_0x2a0614){_0x462a55=_0x462a55-0xd4;const _0x24c3f0=a37_0x24c3();let _0x1d1c26=_0x24c3f0[_0x462a55];return _0x1d1c26;}import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=['invoice',a37_0x39437a(0xd9),a37_0x39437a(0xdb),a37_0x39437a(0xfa)],SCENE_TO_LEGACY_TYPE={'invoice':a37_0x39437a(0xff),'general':a37_0x39437a(0xde),'form':'Table','idCard':'IdCard'},SCENE_FLAG={'name':a37_0x39437a(0xeb),'type':a37_0x39437a(0xf2),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a37_0x39437a(0x100)},IMAGE_FILE_FLAG={'name':a37_0x39437a(0x102),'type':'string','description':a37_0x39437a(0xd4)},IMAGE_URL_FLAG={'name':a37_0x39437a(0x105),'type':a37_0x39437a(0xf2),'description':a37_0x39437a(0xdf)};function normalizeScene(_0x1d032f){const _0x438d9c=a37_0x39437a,_0x52f51d=_0x1d032f[_0x438d9c(0xd5)]()['toLowerCase']();if(_0x52f51d===_0x438d9c(0xf6))return'idCard';if(_0x52f51d==='invoice'||_0x52f51d===_0x438d9c(0xd9)||_0x52f51d===_0x438d9c(0xdb))return _0x52f51d;throw CliErrors[_0x438d9c(0xe2)]('Unsupported\x20OCR\x20scene:\x20'+_0x1d032f+_0x438d9c(0x108)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x4cf354){const _0x254b32=a37_0x39437a,_0x13c25c=_0x4cf354['str'](_0x254b32(0x102))[_0x254b32(0xd5)](),_0x1709ca=_0x4cf354[_0x254b32(0xe3)](_0x254b32(0x105))['trim']();return{'imageFile':_0x13c25c,'imageUrl':_0x1709ca,'count':[_0x13c25c,_0x1709ca][_0x254b32(0xe6)](Boolean)['length']};}function validateInputSelection(_0x38e471){const _0x47fa8a=a37_0x39437a,_0x56271b=selectedInputs(_0x38e471);if(_0x56271b['count']!==0x1)throw CliErrors['validation'](_0x47fa8a(0xf1));return _0x56271b;}function withScene(_0x3bbefd,_0x1cad7f,_0x738ec0){const _0x5b6853=a37_0x39437a;return{..._0x3bbefd,'scene':_0x1cad7f,..._0x738ec0?{'sourceFile':{'fileName':_0x738ec0[_0x5b6853(0xe7)],'filePath':_0x738ec0[_0x5b6853(0x104)]}}:{}};}const ocrRecognize={'service':a37_0x39437a(0xd6),'command':a37_0x39437a(0xdc),'description':a37_0x39437a(0xef),'risk':a37_0x39437a(0xfc),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x23ceea){const _0x5a278d=a37_0x39437a,_0x2e0bbb=normalizeScene(_0x23ceea[_0x5a278d(0xe3)](_0x5a278d(0xeb))),_0x57747b=SCENE_TO_LEGACY_TYPE[_0x2e0bbb],_0x42cd24=validateInputSelection(_0x23ceea);if(_0x42cd24[_0x5a278d(0x10a)])return dryRun(_0x5a278d(0xd7),_0x5a278d(0x106))[_0x5a278d(0x109)]({'appCode':_0x23ceea['appCode'],'url':_0x42cd24[_0x5a278d(0x10a)],'type':_0x57747b})[_0x5a278d(0xf8)](_0x5a278d(0x101)+_0x2e0bbb+_0x5a278d(0xe1))[_0x5a278d(0xed)]();const _0x11ca98=requireRuntimeUploadFile(_0x42cd24[_0x5a278d(0x103)],_0x5a278d(0x102));return dryRun(_0x5a278d(0xd7),_0x5a278d(0xf9))[_0x5a278d(0x109)]({'steps':[{'method':_0x5a278d(0xd7),'url':_0x5a278d(0xf9),'body':{'appCode':_0x23ceea[_0x5a278d(0x10b)],'multipart':{'file':_0x11ca98}}},{'method':_0x5a278d(0xd7),'url':_0x5a278d(0xee),'body':{'filePath':_0x5a278d(0xec),'downloadFlag':![]}},{'method':'POST','url':_0x5a278d(0x106),'body':{'appCode':_0x23ceea[_0x5a278d(0x10b)],'url':_0x5a278d(0xf0),'type':_0x57747b}}]})['description'](_0x5a278d(0xfb)+_0x2e0bbb+_0x5a278d(0xea))[_0x5a278d(0xed)]();},async 'execute'(_0x413cf4){const _0x46f078=a37_0x39437a,_0x1ebb80=normalizeScene(_0x413cf4['str'](_0x46f078(0xeb))),_0x1ad81e=SCENE_TO_LEGACY_TYPE[_0x1ebb80],_0x60de92=validateInputSelection(_0x413cf4);if(_0x60de92['imageUrl']){const _0x8d17a1=await recognizeRuntimeOcr(_0x413cf4[_0x46f078(0x10b)],{'url':_0x60de92['imageUrl'],'type':_0x1ad81e});return{'ok':!![],'data':withScene(_0x8d17a1,_0x1ebb80)};}const _0x61d945=requireRuntimeUploadFile(_0x60de92[_0x46f078(0x103)],_0x46f078(0x102)),_0x3571f7=await uploadRuntimeFile(_0x413cf4[_0x46f078(0x10b)],_0x61d945[_0x46f078(0x107)]);if(!_0x3571f7['filePath'])throw CliErrors[_0x46f078(0xf5)](_0x46f078(0xfe));const _0x133c18=await queryRuntimeFileUrl(_0x3571f7['filePath'],{'download':![]});if(!_0x133c18[_0x46f078(0xe5)])throw CliErrors[_0x46f078(0xf5)](_0x46f078(0xe9));const _0x3304c6=await recognizeRuntimeOcr(_0x413cf4[_0x46f078(0x10b)],{'url':_0x133c18[_0x46f078(0xe5)],'type':_0x1ad81e});return{'ok':!![],'data':withScene(_0x3304c6,_0x1ebb80,_0x3571f7)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x49a0db=a38_0xba54;(function(_0xd91fb4,_0x2b8f58){const _0x4046cc=a38_0xba54,_0x4aefbe=_0xd91fb4();while(!![]){try{const _0x45c702=parseInt(_0x4046cc(0x1e9))/0x1+parseInt(_0x4046cc(0x1dc))/0x2+-parseInt(_0x4046cc(0x1f8))/0x3+-parseInt(_0x4046cc(0x1f1))/0x4*(parseInt(_0x4046cc(0x1dd))/0x5)+parseInt(_0x4046cc(0x1d8))/0x6*(-parseInt(_0x4046cc(0x1e1))/0x7)+parseInt(_0x4046cc(0x1f4))/0x8*(parseInt(_0x4046cc(0x1fd))/0x9)+parseInt(_0x4046cc(0x1e4))/0xa*(-parseInt(_0x4046cc(0x1e0))/0xb);if(_0x45c702===_0x2b8f58)break;else _0x4aefbe['push'](_0x4aefbe['shift']());}catch(_0x3e43ad){_0x4aefbe['push'](_0x4aefbe['shift']());}}}(a38_0xe836,0x80c44));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_0x49a0db(0x1d7),a38_0x49a0db(0x1e8),a38_0x49a0db(0x202),a38_0x49a0db(0x1ec)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x49a0db(0x1f2),'general':'General','form':a38_0x49a0db(0x1f0),'idCard':a38_0x49a0db(0x208)},SCENE_FLAG={'name':a38_0x49a0db(0x1fe),'type':a38_0x49a0db(0x203),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x49a0db(0x209)},IMAGE_FILE_FLAG={'name':a38_0x49a0db(0x1d9),'type':a38_0x49a0db(0x203),'description':a38_0x49a0db(0x1de)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x49a0db(0x203),'description':a38_0x49a0db(0x1fa)};function normalizeScene(_0x572fc7){const _0x4d3c80=a38_0x49a0db,_0x382968=_0x572fc7[_0x4d3c80(0x205)]()[_0x4d3c80(0x1e3)]();if(_0x382968===_0x4d3c80(0x1e5))return _0x4d3c80(0x1ec);if(_0x382968==='invoice'||_0x382968===_0x4d3c80(0x1e8)||_0x382968==='form')return _0x382968;throw CliErrors[_0x4d3c80(0x1fb)]('Unsupported\x20OCR\x20scene:\x20'+_0x572fc7+_0x4d3c80(0x1f7)+SUPPORTED_SCENES[_0x4d3c80(0x20c)](',\x20'));}function a38_0xe836(){const _0x5ed45d=['filter','File\x20upload\x20response\x20missing\x20filePath.','join','fileUrl','invoice','70800yDyMPl','image-file','path','File\x20URL\x20response\x20missing\x20fileUrl.','1549364eZumYQ','230GHWXTO','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','121SNOvGs','539Ylcuke','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','toLowerCase','16190dXppgL','idcard','build','<filePath\x20returned\x20by\x20/client/uploadFile>','general','484282wNuKWa','\x20OCR','appCode','idCard','/client/uploadFile','body','POST','Table','4368nACMxB','Invoice','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','59544AsYXsS','/client/ocr','imageUrl','.\x20Supported\x20scenes:\x20','1653888VXEAWF','count','Publicly\x20accessible\x20image\x20or\x20file\x20URL','validation','/client/queryFileUrl','963LNUvJC','scene','str','fileName','filePath','form','string','apiError','trim','description','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','IdCard','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'];a38_0xe836=function(){return _0x5ed45d;};return a38_0xe836();}function a38_0xba54(_0x46b5cb,_0x278df9){_0x46b5cb=_0x46b5cb-0x1d7;const _0xe83691=a38_0xe836();let _0xba540d=_0xe83691[_0x46b5cb];return _0xba540d;}function selectedInputs(_0x500622){const _0x540e46=a38_0x49a0db,_0x256422=_0x500622[_0x540e46(0x1ff)](_0x540e46(0x1d9))[_0x540e46(0x205)](),_0x1141b1=_0x500622['str']('image-url')[_0x540e46(0x205)]();return{'imageFile':_0x256422,'imageUrl':_0x1141b1,'count':[_0x256422,_0x1141b1][_0x540e46(0x20a)](Boolean)['length']};}function validateInputSelection(_0x2d4238){const _0x395caf=a38_0x49a0db,_0x27127b=selectedInputs(_0x2d4238);if(_0x27127b[_0x395caf(0x1f9)]!==0x1)throw CliErrors[_0x395caf(0x1fb)](_0x395caf(0x1e2));return _0x27127b;}function withScene(_0x95f08e,_0x2885d4,_0x17a0ba){const _0x8942f=a38_0x49a0db;return{..._0x95f08e,'scene':_0x2885d4,..._0x17a0ba?{'sourceFile':{'fileName':_0x17a0ba[_0x8942f(0x200)],'filePath':_0x17a0ba[_0x8942f(0x201)]}}:{}};}const ocrRecognize={'service':'ocr','command':'recognize','description':a38_0x49a0db(0x207),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xdfd34a){const _0x322795=a38_0x49a0db,_0x4df26e=normalizeScene(_0xdfd34a['str'](_0x322795(0x1fe))),_0x2d0be3=SCENE_TO_LEGACY_TYPE[_0x4df26e],_0x16e16e=validateInputSelection(_0xdfd34a);if(_0x16e16e[_0x322795(0x1f6)])return dryRun(_0x322795(0x1ef),_0x322795(0x1f5))[_0x322795(0x1ee)]({'appCode':_0xdfd34a[_0x322795(0x1eb)],'url':_0x16e16e['imageUrl'],'type':_0x2d0be3})['description']('Preview:\x20recognize\x20'+_0x4df26e+'\x20OCR\x20from\x20URL')['build']();const _0x2fb165=requireRuntimeUploadFile(_0x16e16e['imageFile'],_0x322795(0x1d9));return dryRun('POST',_0x322795(0x1ed))[_0x322795(0x1ee)]({'steps':[{'method':_0x322795(0x1ef),'url':'/client/uploadFile','body':{'appCode':_0xdfd34a[_0x322795(0x1eb)],'multipart':{'file':_0x2fb165}}},{'method':_0x322795(0x1ef),'url':_0x322795(0x1fc),'body':{'filePath':_0x322795(0x1e7),'downloadFlag':![]}},{'method':'POST','url':_0x322795(0x1f5),'body':{'appCode':_0xdfd34a['appCode'],'url':_0x322795(0x1f3),'type':_0x2d0be3}}]})[_0x322795(0x206)](_0x322795(0x1df)+_0x4df26e+_0x322795(0x1ea))[_0x322795(0x1e6)]();},async 'execute'(_0x52f1e3){const _0x36347c=a38_0x49a0db,_0x3d0c58=normalizeScene(_0x52f1e3[_0x36347c(0x1ff)](_0x36347c(0x1fe))),_0x448875=SCENE_TO_LEGACY_TYPE[_0x3d0c58],_0x114342=validateInputSelection(_0x52f1e3);if(_0x114342[_0x36347c(0x1f6)]){const _0x3be778=await recognizeRuntimeOcr(_0x52f1e3[_0x36347c(0x1eb)],{'url':_0x114342[_0x36347c(0x1f6)],'type':_0x448875});return{'ok':!![],'data':withScene(_0x3be778,_0x3d0c58)};}const _0x51bf54=requireRuntimeUploadFile(_0x114342['imageFile'],'image-file'),_0x5c0890=await uploadRuntimeFile(_0x52f1e3[_0x36347c(0x1eb)],_0x51bf54[_0x36347c(0x1da)]);if(!_0x5c0890['filePath'])throw CliErrors[_0x36347c(0x204)](_0x36347c(0x20b));const _0x572f80=await queryRuntimeFileUrl(_0x5c0890[_0x36347c(0x201)],{'download':![]});if(!_0x572f80[_0x36347c(0x20d)])throw CliErrors[_0x36347c(0x204)](_0x36347c(0x1db));const _0x56fd20=await recognizeRuntimeOcr(_0x52f1e3[_0x36347c(0x1eb)],{'url':_0x572f80[_0x36347c(0x20d)],'type':_0x448875});return{'ok':!![],'data':withScene(_0x56fd20,_0x3d0c58,_0x5c0890)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a38_0x3d73bb=a38_0x3b75;(function(_0x4eabb3,_0x167b70){const _0x18d43d=a38_0x3b75,_0x3928b1=_0x4eabb3();while(!![]){try{const _0x8a6778=-parseInt(_0x18d43d(0x158))/0x1*(-parseInt(_0x18d43d(0x160))/0x2)+-parseInt(_0x18d43d(0x157))/0x3+parseInt(_0x18d43d(0x161))/0x4+-parseInt(_0x18d43d(0x154))/0x5+parseInt(_0x18d43d(0x156))/0x6+-parseInt(_0x18d43d(0x15c))/0x7+parseInt(_0x18d43d(0x165))/0x8*(parseInt(_0x18d43d(0x15e))/0x9);if(_0x8a6778===_0x167b70)break;else _0x3928b1['push'](_0x3928b1['shift']());}catch(_0x2e3473){_0x3928b1['push'](_0x3928b1['shift']());}}}(a38_0x16b9,0x1eb88));function a38_0x3b75(_0x4d0d82,_0x5b392d){_0x4d0d82=_0x4d0d82-0x153;const _0x16b9d1=a38_0x16b9();let _0x3b751e=_0x16b9d1[_0x4d0d82];return _0x3b751e;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a38_0x16b9(){const _0x2aa639=['str','601134OFsONH','434535VQsElW','9084pSJChU','runtime','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','roleName','800149rNbPvG','permit','909AesfnC','appCode','8cbJvRv','512036qqpdHl','role','roleType','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','11056DfaLFn','dataset-get','95660FllGHi'];a38_0x16b9=function(){return _0x2aa639;};return a38_0x16b9();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a38_0x3d73bb(0x15d),'command':a38_0x3d73bb(0x153),'description':a38_0x3d73bb(0x164),'risk':'read','flags':[{'name':'role','type':'string','description':a38_0x3d73bb(0x15a)}],async 'execute'(_0x2995c5){const _0x24dd6e=a38_0x3d73bb,_0x100195=_0x2995c5[_0x24dd6e(0x155)](_0x24dd6e(0x162))['trim']();if(!_0x100195)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x2995c5[_0x24dd6e(0x15f)])}};const _0x2695dc=await resolveRuntimeRoleRef(_0x2995c5[_0x24dd6e(0x15f)],_0x100195);return{'ok':!![],'data':{'scope':_0x24dd6e(0x159),'role':{'id':_0x2695dc['id'],'roleName':_0x2695dc[_0x24dd6e(0x15b)],'roleType':_0x2695dc[_0x24dd6e(0x163)]},'datasets':await listRuntimeDatasetPermits(_0x2995c5[_0x24dd6e(0x15f)],_0x2695dc['id'])}};}};
1
+ const a39_0x4f8802=a39_0x3553;(function(_0x16b86e,_0x166889){const _0x236f65=a39_0x3553,_0x582092=_0x16b86e();while(!![]){try{const _0x5ca652=-parseInt(_0x236f65(0x172))/0x1*(parseInt(_0x236f65(0x182))/0x2)+-parseInt(_0x236f65(0x183))/0x3+parseInt(_0x236f65(0x179))/0x4*(-parseInt(_0x236f65(0x180))/0x5)+-parseInt(_0x236f65(0x178))/0x6*(-parseInt(_0x236f65(0x16e))/0x7)+parseInt(_0x236f65(0x17a))/0x8+-parseInt(_0x236f65(0x17d))/0x9*(-parseInt(_0x236f65(0x171))/0xa)+-parseInt(_0x236f65(0x17e))/0xb*(-parseInt(_0x236f65(0x17b))/0xc);if(_0x5ca652===_0x166889)break;else _0x582092['push'](_0x582092['shift']());}catch(_0x4f26b8){_0x582092['push'](_0x582092['shift']());}}}(a39_0x2a65,0xe6493));function a39_0x2a65(){const _0x123b8a=['171585fEAusB','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','str','dataset-get','trim','runtime','10277862oWrcnH','3713492rNWwNA','5489744aVTAYN','1860atinpo','read','5995467SdfQPt','29557AbLZEq','role','5rlggPd','string','2SRgYGI','4315902GoOXHi','roleName','7fWGuPb','permit','appCode','10MEabll'];a39_0x2a65=function(){return _0x123b8a;};return a39_0x2a65();}function a39_0x3553(_0x5148f8,_0x25f368){_0x5148f8=_0x5148f8-0x16d;const _0x2a6588=a39_0x2a65();let _0x35539f=_0x2a6588[_0x5148f8];return _0x35539f;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x4f8802(0x16f),'command':a39_0x4f8802(0x175),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a39_0x4f8802(0x17c),'flags':[{'name':a39_0x4f8802(0x17f),'type':a39_0x4f8802(0x181),'description':a39_0x4f8802(0x173)}],async 'execute'(_0x1f9dce){const _0x47aeb3=a39_0x4f8802,_0x63dcad=_0x1f9dce[_0x47aeb3(0x174)](_0x47aeb3(0x17f))[_0x47aeb3(0x176)]();if(!_0x63dcad)return{'ok':!![],'data':{'scope':_0x47aeb3(0x177),'datasets':await listRuntimeDatasetRolePermits(_0x1f9dce['appCode'])}};const _0x3f3daa=await resolveRuntimeRoleRef(_0x1f9dce['appCode'],_0x63dcad);return{'ok':!![],'data':{'scope':_0x47aeb3(0x177),'role':{'id':_0x3f3daa['id'],'roleName':_0x3f3daa[_0x47aeb3(0x16d)],'roleType':_0x3f3daa['roleType']},'datasets':await listRuntimeDatasetPermits(_0x1f9dce[_0x47aeb3(0x170)],_0x3f3daa['id'])}};}};
@@ -1 +1 @@
1
- function a39_0x52e0(){const _0x2fd533=['\x20selected\x20runtime\x20dataset\x20actions','after','operation','2258735uKfins','1304mgvnek','appCode','length','grant','warnings','resourceName','授予或收回目标角色对指定数据集动作的权限;变更会影响该角色用户的数据操作能力。','POST','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','roles','dataset-set','datasets','\x20does\x20not\x20expose\x20','rolePermit','high-risk-write','find','Runtime\x20dataset\x20','14031gYeUtE','before','11539SNYoKK','actions','DATA_EXPORT','permit','resourceType','join','permitId','551468FRjHet','bool','description','Comma-separated\x20actions:\x20','changed','1uIKeoI','DATA_DETAIL','datasetCodes','string','866694HHfvTk','\x20already\x20reflects\x20','DATA_ROW','10490MsMWMH','2085853iEENCi','2674680BOcPwv','includes','push','str','DATA_CREATE','Comma-separated\x20runtime\x20dataset\x20codes','toUpperCase','revoke','map','DATA_DELETE','3fTUDRK','datasetCode','permitList'];a39_0x52e0=function(){return _0x2fd533;};return a39_0x52e0();}const a39_0x317276=a39_0x2f95;function a39_0x2f95(_0x50e6ae,_0x2fce9c){_0x50e6ae=_0x50e6ae-0x122;const _0x52e043=a39_0x52e0();let _0x2f9558=_0x52e043[_0x50e6ae];return _0x2f9558;}(function(_0x37b3ab,_0x5abaeb){const _0x518d48=a39_0x2f95,_0x3a9965=_0x37b3ab();while(!![]){try{const _0x5c6b83=parseInt(_0x518d48(0x13f))/0x1*(-parseInt(_0x518d48(0x143))/0x2)+-parseInt(_0x518d48(0x152))/0x3*(-parseInt(_0x518d48(0x13a))/0x4)+-parseInt(_0x518d48(0x158))/0x5+parseInt(_0x518d48(0x148))/0x6+-parseInt(_0x518d48(0x147))/0x7+-parseInt(_0x518d48(0x159))/0x8*(parseInt(_0x518d48(0x131))/0x9)+parseInt(_0x518d48(0x146))/0xa*(parseInt(_0x518d48(0x133))/0xb);if(_0x5c6b83===_0x5abaeb)break;else _0x3a9965['push'](_0x3a9965['shift']());}catch(_0x4807b9){_0x3a9965['push'](_0x3a9965['shift']());}}}(a39_0x52e0,0x3c44a));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=[a39_0x317276(0x14c),'DATA_UPDATE',a39_0x317276(0x151),a39_0x317276(0x140),a39_0x317276(0x135),a39_0x317276(0x145)],DATASETS_FLAG={'name':a39_0x317276(0x12b),'type':a39_0x317276(0x142),'required':!![],'description':a39_0x317276(0x14d)},ACTIONS_FLAG={'name':'actions','type':a39_0x317276(0x142),'required':!![],'description':a39_0x317276(0x13d)+DATA_ACTIONS[a39_0x317276(0x138)](',\x20')};async function prepare(_0x5b8c82){const _0x1a51d8=a39_0x317276;await assertRuntimePermissionManager(_0x5b8c82[_0x1a51d8(0x15a)]);const _0xf5a378=assertGrantOrRevoke(_0x5b8c82['bool'](_0x1a51d8(0x123)),_0x5b8c82[_0x1a51d8(0x13b)]('revoke')),_0x5d8054=await resolveRuntimeRoleRef(_0x5b8c82[_0x1a51d8(0x15a)],_0x5b8c82[_0x1a51d8(0x14b)]('role'));assertRuntimePermitRoleConfigurable(_0x5d8054);const _0x51076f=splitRefs(_0x5b8c82[_0x1a51d8(0x14b)](_0x1a51d8(0x12b)),'--datasets'),_0x4a9d97=[...new Set(splitRefs(_0x5b8c82['str'](_0x1a51d8(0x134)),'--actions')[_0x1a51d8(0x150)](_0x4abde7=>_0x4abde7[_0x1a51d8(0x14e)]()))],_0x17f191=_0x4a9d97['filter'](_0x272884=>!DATA_ACTIONS[_0x1a51d8(0x149)](_0x272884));if(_0x17f191[_0x1a51d8(0x122)]>0x0)throw CliErrors['validation']('Invalid\x20dataset\x20actions:\x20'+_0x17f191['join'](',\x20')+'.');const _0x4c8796=await listRuntimeDatasetRolePermits(_0x5b8c82[_0x1a51d8(0x15a)]),_0x3a8964=await listRuntimePermitRoles(_0x5b8c82[_0x1a51d8(0x15a)]),_0x3c075b=[],_0x38d3c7=[],_0x17f061=[],_0x33a558=[];for(const _0x21d420 of _0x51076f){const _0x1eefaf=_0x4c8796[_0x1a51d8(0x12f)](_0x1f4c00=>_0x1f4c00[_0x1a51d8(0x153)]===_0x21d420);if(!_0x1eefaf)throw CliErrors['validation'](_0x1a51d8(0x130)+_0x21d420+'\x20was\x20not\x20found.');for(const _0x2b868b of _0x4a9d97){const _0x17c3b0=_0x1eefaf['dataPermitList'][_0x1a51d8(0x12f)](_0x512c29=>_0x512c29[_0x1a51d8(0x137)]===_0x2b868b);if(!_0x17c3b0)throw CliErrors['validation']('Dataset\x20'+_0x21d420+_0x1a51d8(0x12c)+_0x2b868b+'.');const _0x73843d=applyRuntimeRolePermission(_0x17c3b0[_0x1a51d8(0x12d)],_0x5d8054,_0x3a8964,_0xf5a378);_0x38d3c7[_0x1a51d8(0x14a)]({'datasetCode':_0x21d420,'resourceType':_0x2b868b,'rolePermit':_0x17c3b0['rolePermit']}),_0x17f061[_0x1a51d8(0x14a)]({'datasetCode':_0x21d420,'resourceType':_0x2b868b,'rolePermit':_0x73843d[_0x1a51d8(0x129)]}),_0x73843d[_0x1a51d8(0x13e)]?_0x3c075b[_0x1a51d8(0x14a)]({..._0x17c3b0[_0x1a51d8(0x139)]!=null?{'id':_0x17c3b0[_0x1a51d8(0x139)]}:{},'appCode':_0x5b8c82[_0x1a51d8(0x15a)],'resourceCode':_0x21d420,'resourceType':_0x2b868b,'resourceName':_0x17c3b0[_0x1a51d8(0x125)],'rolePermit':_0x73843d[_0x1a51d8(0x129)]}):_0x33a558[_0x1a51d8(0x14a)](_0x21d420+'/'+_0x2b868b+_0x1a51d8(0x144)+_0xf5a378+'\x20for\x20role\x20'+_0x5d8054['id']+'.');}}return{'operation':_0xf5a378,'role':_0x5d8054,'datasetCodes':_0x51076f,'actions':_0x4a9d97,'permitList':_0x3c075b,'before':_0x38d3c7,'after':_0x17f061,'warnings':_0x33a558};}export const permitDatasetSet={'service':a39_0x317276(0x136),'command':a39_0x317276(0x12a),'description':a39_0x317276(0x128),'risk':a39_0x317276(0x12e),'confirmationDescription':a39_0x317276(0x126),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x4bf6e3){const _0x3545db=a39_0x317276;assertGrantOrRevoke(_0x4bf6e3['bool']('grant'),_0x4bf6e3[_0x3545db(0x13b)](_0x3545db(0x14f)));},async 'dryRun'(_0x5df1cd){const _0x5b1747=a39_0x317276,_0x1ab990=await prepare(_0x5df1cd);return dryRun(_0x5b1747(0x127),'/client/permit/resource/batch-save-dataset')['body']({'appCode':_0x5df1cd[_0x5b1747(0x15a)],'permitList':_0x1ab990['permitList']})[_0x5b1747(0x13c)]('Preview:\x20'+_0x1ab990[_0x5b1747(0x157)]+_0x5b1747(0x155))['build']();},async 'execute'(_0x541e48){const _0x5375aa=a39_0x317276,_0x5edfb3=await prepare(_0x541e48);return _0x5edfb3[_0x5375aa(0x154)][_0x5375aa(0x122)]>0x0&&await saveRuntimeDatasetRolePermits(_0x541e48[_0x5375aa(0x15a)],_0x5edfb3[_0x5375aa(0x154)]),{'ok':!![],'data':runtimePermitWriteResult('dataset-'+_0x5edfb3['operation'],{'roleId':_0x5edfb3['role']['id'],'datasetCodes':_0x5edfb3[_0x5375aa(0x141)],'actions':_0x5edfb3['actions']},_0x5edfb3[_0x5375aa(0x132)],_0x5edfb3[_0x5375aa(0x156)],{'method':_0x5375aa(0x127),'path':'/client/permit/resource/batch-save-dataset'},_0x5edfb3[_0x5375aa(0x124)])};}};
1
+ const a40_0x2970f9=a40_0x4a7f;function a40_0x31c6(){const _0x851457=['124466cMYifg','permitList','toUpperCase','datasetCodes','\x20was\x20not\x20found.','string','396179WjLHga','appCode','warnings','build','roles','921582cGtOTs','7fQlZMf','Dataset\x20','changed','/client/permit/resource/batch-save-dataset','actions','Invalid\x20dataset\x20actions:\x20','permitId','datasets','str','DATA_ROW','high-risk-write','grant','2051045nSiFPk','DATA_DETAIL','POST','includes','dataPermitList','resourceType','149296TpgJra','role','\x20selected\x20runtime\x20dataset\x20actions','body','\x20does\x20not\x20expose\x20','--datasets','revoke','Runtime\x20dataset\x20','dataset-','join','rolePermit','\x20for\x20role\x20','push','bool','Comma-separated\x20runtime\x20dataset\x20codes','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','DATA_UPDATE','1474554CkGPgz','\x20already\x20reflects\x20','5424nsLlpn','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','Preview:\x20','before','validation','916vzKsMo','operation','resourceName','permit','find','length'];a40_0x31c6=function(){return _0x851457;};return a40_0x31c6();}function a40_0x4a7f(_0x5d7084,_0x3e6a34){_0x5d7084=_0x5d7084-0x181;const _0x31c6ab=a40_0x31c6();let _0x4a7f2a=_0x31c6ab[_0x5d7084];return _0x4a7f2a;}(function(_0xb2d8c3,_0x55b619){const _0x1fef7e=a40_0x4a7f,_0x22f739=_0xb2d8c3();while(!![]){try{const _0x1f3b53=parseInt(_0x1fef7e(0x1b1))/0x1+-parseInt(_0x1fef7e(0x1ab))/0x2+-parseInt(_0x1fef7e(0x1a0))/0x3*(-parseInt(_0x1fef7e(0x1a5))/0x4)+-parseInt(_0x1fef7e(0x187))/0x5+parseInt(_0x1fef7e(0x19e))/0x6*(-parseInt(_0x1fef7e(0x1b7))/0x7)+parseInt(_0x1fef7e(0x18d))/0x8+parseInt(_0x1fef7e(0x1b6))/0x9;if(_0x1f3b53===_0x55b619)break;else _0x22f739['push'](_0x22f739['shift']());}catch(_0x56a26e){_0x22f739['push'](_0x22f739['shift']());}}}(a40_0x31c6,0x3404e));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=['DATA_CREATE',a40_0x2970f9(0x19d),'DATA_DELETE',a40_0x2970f9(0x188),'DATA_EXPORT',a40_0x2970f9(0x184)],DATASETS_FLAG={'name':a40_0x2970f9(0x182),'type':a40_0x2970f9(0x1b0),'required':!![],'description':a40_0x2970f9(0x19b)},ACTIONS_FLAG={'name':a40_0x2970f9(0x1bb),'type':a40_0x2970f9(0x1b0),'required':!![],'description':'Comma-separated\x20actions:\x20'+DATA_ACTIONS['join'](',\x20')};async function prepare(_0x12c648){const _0xae7843=a40_0x2970f9;await assertRuntimePermissionManager(_0x12c648[_0xae7843(0x1b2)]);const _0x3870e2=assertGrantOrRevoke(_0x12c648[_0xae7843(0x19a)](_0xae7843(0x186)),_0x12c648[_0xae7843(0x19a)](_0xae7843(0x193))),_0x436e9e=await resolveRuntimeRoleRef(_0x12c648[_0xae7843(0x1b2)],_0x12c648[_0xae7843(0x183)](_0xae7843(0x18e)));assertRuntimePermitRoleConfigurable(_0x436e9e);const _0x4f0ae3=splitRefs(_0x12c648['str'](_0xae7843(0x182)),_0xae7843(0x192)),_0x203ccb=[...new Set(splitRefs(_0x12c648[_0xae7843(0x183)]('actions'),'--actions')['map'](_0x16e8ac=>_0x16e8ac[_0xae7843(0x1ad)]()))],_0x182eb7=_0x203ccb['filter'](_0x381adb=>!DATA_ACTIONS[_0xae7843(0x18a)](_0x381adb));if(_0x182eb7['length']>0x0)throw CliErrors[_0xae7843(0x1a4)](_0xae7843(0x1bc)+_0x182eb7[_0xae7843(0x196)](',\x20')+'.');const _0x366752=await listRuntimeDatasetRolePermits(_0x12c648[_0xae7843(0x1b2)]),_0x4400fc=await listRuntimePermitRoles(_0x12c648[_0xae7843(0x1b2)]),_0x55a4a1=[],_0x12733d=[],_0x363d91=[],_0x4d9f58=[];for(const _0x20d366 of _0x4f0ae3){const _0x6fe3ce=_0x366752['find'](_0x25d436=>_0x25d436['datasetCode']===_0x20d366);if(!_0x6fe3ce)throw CliErrors[_0xae7843(0x1a4)](_0xae7843(0x194)+_0x20d366+_0xae7843(0x1af));for(const _0x561bd2 of _0x203ccb){const _0x46d48c=_0x6fe3ce[_0xae7843(0x18b)][_0xae7843(0x1a9)](_0x3d43be=>_0x3d43be[_0xae7843(0x18c)]===_0x561bd2);if(!_0x46d48c)throw CliErrors[_0xae7843(0x1a4)](_0xae7843(0x1b8)+_0x20d366+_0xae7843(0x191)+_0x561bd2+'.');const _0x5d9069=applyRuntimeRolePermission(_0x46d48c[_0xae7843(0x197)],_0x436e9e,_0x4400fc,_0x3870e2);_0x12733d[_0xae7843(0x199)]({'datasetCode':_0x20d366,'resourceType':_0x561bd2,'rolePermit':_0x46d48c[_0xae7843(0x197)]}),_0x363d91['push']({'datasetCode':_0x20d366,'resourceType':_0x561bd2,'rolePermit':_0x5d9069[_0xae7843(0x1b5)]}),_0x5d9069[_0xae7843(0x1b9)]?_0x55a4a1[_0xae7843(0x199)]({..._0x46d48c[_0xae7843(0x181)]!=null?{'id':_0x46d48c[_0xae7843(0x181)]}:{},'appCode':_0x12c648[_0xae7843(0x1b2)],'resourceCode':_0x20d366,'resourceType':_0x561bd2,'resourceName':_0x46d48c[_0xae7843(0x1a7)],'rolePermit':_0x5d9069[_0xae7843(0x1b5)]}):_0x4d9f58[_0xae7843(0x199)](_0x20d366+'/'+_0x561bd2+_0xae7843(0x19f)+_0x3870e2+_0xae7843(0x198)+_0x436e9e['id']+'.');}}return{'operation':_0x3870e2,'role':_0x436e9e,'datasetCodes':_0x4f0ae3,'actions':_0x203ccb,'permitList':_0x55a4a1,'before':_0x12733d,'after':_0x363d91,'warnings':_0x4d9f58};}export const permitDatasetSet={'service':a40_0x2970f9(0x1a8),'command':'dataset-set','description':a40_0x2970f9(0x1a1),'risk':a40_0x2970f9(0x185),'confirmationDescription':a40_0x2970f9(0x19c),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x4ec5c2){const _0x45805a=a40_0x2970f9;assertGrantOrRevoke(_0x4ec5c2['bool']('grant'),_0x4ec5c2['bool'](_0x45805a(0x193)));},async 'dryRun'(_0x560d39){const _0x4b6a1d=a40_0x2970f9,_0x404a9b=await prepare(_0x560d39);return dryRun(_0x4b6a1d(0x189),_0x4b6a1d(0x1ba))[_0x4b6a1d(0x190)]({'appCode':_0x560d39['appCode'],'permitList':_0x404a9b[_0x4b6a1d(0x1ac)]})['description'](_0x4b6a1d(0x1a2)+_0x404a9b[_0x4b6a1d(0x1a6)]+_0x4b6a1d(0x18f))[_0x4b6a1d(0x1b4)]();},async 'execute'(_0x461780){const _0x10462c=a40_0x2970f9,_0x44b811=await prepare(_0x461780);return _0x44b811[_0x10462c(0x1ac)][_0x10462c(0x1aa)]>0x0&&await saveRuntimeDatasetRolePermits(_0x461780[_0x10462c(0x1b2)],_0x44b811[_0x10462c(0x1ac)]),{'ok':!![],'data':runtimePermitWriteResult(_0x10462c(0x195)+_0x44b811['operation'],{'roleId':_0x44b811[_0x10462c(0x18e)]['id'],'datasetCodes':_0x44b811[_0x10462c(0x1ae)],'actions':_0x44b811[_0x10462c(0x1bb)]},_0x44b811[_0x10462c(0x1a3)],_0x44b811['after'],{'method':'POST','path':'/client/permit/resource/batch-save-dataset'},_0x44b811[_0x10462c(0x1b3)])};}};
@@ -1 +1 @@
1
- function a40_0x100e(_0x1bff85,_0x4c44e3){_0x1bff85=_0x1bff85-0x9a;const _0x375aee=a40_0x375a();let _0x100eb2=_0x375aee[_0x1bff85];return _0x100eb2;}(function(_0x7d3885,_0x275dd4){const _0x50cd02=a40_0x100e,_0x282287=_0x7d3885();while(!![]){try{const _0x14339c=-parseInt(_0x50cd02(0xa4))/0x1*(-parseInt(_0x50cd02(0x9a))/0x2)+parseInt(_0x50cd02(0xa5))/0x3*(-parseInt(_0x50cd02(0xa2))/0x4)+parseInt(_0x50cd02(0x9e))/0x5*(-parseInt(_0x50cd02(0xa0))/0x6)+parseInt(_0x50cd02(0x9c))/0x7*(parseInt(_0x50cd02(0x9f))/0x8)+-parseInt(_0x50cd02(0xa6))/0x9*(-parseInt(_0x50cd02(0x9b))/0xa)+parseInt(_0x50cd02(0x9d))/0xb*(-parseInt(_0x50cd02(0xa1))/0xc)+parseInt(_0x50cd02(0xa3))/0xd;if(_0x14339c===_0x275dd4)break;else _0x282287['push'](_0x282287['shift']());}catch(_0x4d07c8){_0x282287['push'](_0x282287['shift']());}}}(a40_0x375a,0xee8af));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';function a40_0x375a(){const _0x825298=['4203FHxiHM','9NNxQrx','2185762VYEeoa','7537340WJNdPI','681772WYHdRy','12494317unuKXo','55sKCpmw','8zYONgF','595416OSjgSn','12ZXcgyk','3004StoMVH','30064502BgQTfu','1CAGmMs'];a40_0x375a=function(){return _0x825298;};return a40_0x375a();}import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
1
+ (function(_0x12d740,_0x25b04b){const _0x40300b=a41_0x2844,_0xca0696=_0x12d740();while(!![]){try{const _0x3eb7ad=parseInt(_0x40300b(0x1a0))/0x1+parseInt(_0x40300b(0x19a))/0x2*(-parseInt(_0x40300b(0x19d))/0x3)+-parseInt(_0x40300b(0x19f))/0x4*(parseInt(_0x40300b(0x19b))/0x5)+parseInt(_0x40300b(0x19e))/0x6+-parseInt(_0x40300b(0x199))/0x7*(parseInt(_0x40300b(0x197))/0x8)+-parseInt(_0x40300b(0x1a1))/0x9*(parseInt(_0x40300b(0x19c))/0xa)+-parseInt(_0x40300b(0x198))/0xb;if(_0x3eb7ad===_0x25b04b)break;else _0xca0696['push'](_0xca0696['shift']());}catch(_0x54c89d){_0xca0696['push'](_0xca0696['shift']());}}}(a41_0x3919,0x4ffe1));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';function a41_0x2844(_0x317fec,_0x315925){_0x317fec=_0x317fec-0x197;const _0x391919=a41_0x3919();let _0x2844ab=_0x391919[_0x317fec];return _0x2844ab;}import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';function a41_0x3919(){const _0xedc913=['2140KqmbKt','1394601sMocMk','3552078lMLFrj','28hNZixl','599281JhMsRJ','387fuFnxN','42536SxIoHM','1879394xBsRID','245NPCqTp','2RlAQML','23305ZaBdfP'];a41_0x3919=function(){return _0xedc913;};return a41_0x3919();}import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
@@ -1 +1 @@
1
- function a41_0x10b6(_0x4cfb8e,_0x32a8ee){_0x4cfb8e=_0x4cfb8e-0x1e8;const _0xe1b5b3=a41_0xe1b5();let _0x10b6b5=_0xe1b5b3[_0x4cfb8e];return _0x10b6b5;}const a41_0x1de8ad=a41_0x10b6;(function(_0x16a186,_0xdade96){const _0x111c7a=a41_0x10b6,_0x290685=_0x16a186();while(!![]){try{const _0x4cf972=-parseInt(_0x111c7a(0x1f3))/0x1+parseInt(_0x111c7a(0x1f7))/0x2*(parseInt(_0x111c7a(0x1f1))/0x3)+parseInt(_0x111c7a(0x1f0))/0x4+-parseInt(_0x111c7a(0x1ed))/0x5+parseInt(_0x111c7a(0x1ea))/0x6*(-parseInt(_0x111c7a(0x1ef))/0x7)+parseInt(_0x111c7a(0x1e8))/0x8*(-parseInt(_0x111c7a(0x1eb))/0x9)+-parseInt(_0x111c7a(0x1e9))/0xa*(parseInt(_0x111c7a(0x1f5))/0xb);if(_0x4cf972===_0xdade96)break;else _0x290685['push'](_0x290685['shift']());}catch(_0x230163){_0x290685['push'](_0x290685['shift']());}}}(a41_0xe1b5,0xeaaee));import{getRuntimePagePermit}from'../../core/api-client.js';function a41_0xe1b5(){const _0x57441b=['241385BSmHJA','page-get','1259929kWqICI','runtime','198988tnChHL','1134536CYtKQB','70gEgcfa','573186dwdZAg','9GjsQCf','num','197030DYsZHR','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','7oJRaFU','4746960zqXWYb','33pXlkEE','permit'];a41_0xe1b5=function(){return _0x57441b;};return a41_0xe1b5();}import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a41_0x1de8ad(0x1f2),'command':a41_0x1de8ad(0x1f4),'description':a41_0x1de8ad(0x1ee),'risk':'read','flags':[MENU_ID_FLAG],async 'execute'(_0x3036e2){const _0x44cba0=a41_0x1de8ad,_0xadcb2e=await getRuntimePagePermit(_0x3036e2[_0x44cba0(0x1ec)]('menu-id'));return{'ok':!![],'data':{'scope':_0x44cba0(0x1f6),'page':projectRuntimePagePermit(_0xadcb2e)}};}};
1
+ const a42_0x4c9cc8=a42_0xf283;(function(_0x32db1e,_0x1da213){const _0x8719ca=a42_0xf283,_0x11e571=_0x32db1e();while(!![]){try{const _0x11a6a7=parseInt(_0x8719ca(0x165))/0x1+parseInt(_0x8719ca(0x15d))/0x2*(-parseInt(_0x8719ca(0x161))/0x3)+-parseInt(_0x8719ca(0x162))/0x4*(-parseInt(_0x8719ca(0x15c))/0x5)+-parseInt(_0x8719ca(0x15b))/0x6*(parseInt(_0x8719ca(0x156))/0x7)+parseInt(_0x8719ca(0x158))/0x8+-parseInt(_0x8719ca(0x160))/0x9*(-parseInt(_0x8719ca(0x157))/0xa)+-parseInt(_0x8719ca(0x15e))/0xb*(-parseInt(_0x8719ca(0x163))/0xc);if(_0x11a6a7===_0x1da213)break;else _0x11e571['push'](_0x11e571['shift']());}catch(_0x38a9c3){_0x11e571['push'](_0x11e571['shift']());}}}(a42_0x47a8,0x763e4));function a42_0xf283(_0x39bece,_0x211072){_0x39bece=_0x39bece-0x155;const _0x47a836=a42_0x47a8();let _0xf283a5=_0x47a836[_0x39bece];return _0xf283a5;}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';function a42_0x47a8(){const _0x14d192=['33eugdrE','page-get','147006xEDDOx','577131pQkfKJ','4BATLnj','3026232ntvjUk','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','357698iyKazG','read','1169Ncioll','10sXkfpa','622936GCyKRs','permit','runtime','23082aznlEB','4401005mhyaqe','10JlYPvX'];a42_0x47a8=function(){return _0x14d192;};return a42_0x47a8();}export const permitPageGet={'service':a42_0x4c9cc8(0x159),'command':a42_0x4c9cc8(0x15f),'description':a42_0x4c9cc8(0x164),'risk':a42_0x4c9cc8(0x155),'flags':[MENU_ID_FLAG],async 'execute'(_0xe88893){const _0x5eee9a=a42_0x4c9cc8,_0x369901=await getRuntimePagePermit(_0xe88893['num']('menu-id'));return{'ok':!![],'data':{'scope':_0x5eee9a(0x15a),'page':projectRuntimePagePermit(_0x369901)}};}};