@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-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 (168) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +2 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
  167. package/lib/utils/platform.d.ts +0 -17
  168. package/lib/utils/platform.js +0 -1
@@ -1 +1 @@
1
- (function(_0x3bd21a,_0x18dba6){const _0x70bfe8=a27_0x2113,_0x59d0c1=_0x3bd21a();while(!![]){try{const _0x78e9ac=-parseInt(_0x70bfe8(0xac))/0x1+-parseInt(_0x70bfe8(0xb1))/0x2+-parseInt(_0x70bfe8(0xaf))/0x3+parseInt(_0x70bfe8(0xaa))/0x4+parseInt(_0x70bfe8(0xab))/0x5*(-parseInt(_0x70bfe8(0xb0))/0x6)+-parseInt(_0x70bfe8(0xad))/0x7+parseInt(_0x70bfe8(0xae))/0x8;if(_0x78e9ac===_0x18dba6)break;else _0x59d0c1['push'](_0x59d0c1['shift']());}catch(_0x3a2924){_0x59d0c1['push'](_0x59d0c1['shift']());}}}(a27_0x12bc,0xf0aaa));import{datasetList}from'../../commands/dataset/list.js';function a27_0x12bc(){const _0x2fb92a=['275VKMHHA','212192QnutNS','1488249CXHldM','28481768kiLCVs','3215322tXrZHX','80628npDTyK','678280cMmVxJ','1408MLJhEP'];a27_0x12bc=function(){return _0x2fb92a;};return a27_0x12bc();}function a27_0x2113(_0x47500d,_0x194dad){_0x47500d=_0x47500d-0xaa;const _0x12bc47=a27_0x12bc();let _0x211335=_0x12bc47[_0x47500d];return _0x211335;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x42021a,_0x161231){const _0x2dff84=a27_0x505e,_0x26f614=_0x42021a();while(!![]){try{const _0x463f10=-parseInt(_0x2dff84(0x1d0))/0x1*(parseInt(_0x2dff84(0x1c7))/0x2)+-parseInt(_0x2dff84(0x1cc))/0x3*(-parseInt(_0x2dff84(0x1c9))/0x4)+parseInt(_0x2dff84(0x1cf))/0x5+-parseInt(_0x2dff84(0x1ca))/0x6+parseInt(_0x2dff84(0x1cb))/0x7*(parseInt(_0x2dff84(0x1d1))/0x8)+-parseInt(_0x2dff84(0x1cd))/0x9*(parseInt(_0x2dff84(0x1c8))/0xa)+-parseInt(_0x2dff84(0x1ce))/0xb*(parseInt(_0x2dff84(0x1c6))/0xc);if(_0x463f10===_0x161231)break;else _0x26f614['push'](_0x26f614['shift']());}catch(_0x1d879d){_0x26f614['push'](_0x26f614['shift']());}}}(a27_0x257f,0x43ce4));function a27_0x505e(_0x1caa92,_0x6aefe1){_0x1caa92=_0x1caa92-0x1c6;const _0x257f61=a27_0x257f();let _0x505e10=_0x257f61[_0x1caa92];return _0x505e10;}function a27_0x257f(){const _0x463561=['36iRlTvV','10288VoUIYi','1204460tjRUTC','56gDqUwn','2055234pKnCyg','7dKenaT','118677IVIfJm','27KHRdnI','373571dcbUJr','2757200pIGJjj','63ybjkaQ','2418384EobpfE'];a27_0x257f=function(){return _0x463561;};return a27_0x257f();}import{datasetList}from'../../commands/dataset/list.js';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 a28_0x50ecc5=a28_0x2e68;(function(_0x176f95,_0xb4e6ef){const _0x1e4bf9=a28_0x2e68,_0x161a1a=_0x176f95();while(!![]){try{const _0x2a95f9=-parseInt(_0x1e4bf9(0xc9))/0x1*(-parseInt(_0x1e4bf9(0xbe))/0x2)+parseInt(_0x1e4bf9(0xbb))/0x3*(-parseInt(_0x1e4bf9(0xc5))/0x4)+parseInt(_0x1e4bf9(0xb1))/0x5+parseInt(_0x1e4bf9(0xc1))/0x6*(parseInt(_0x1e4bf9(0xb9))/0x7)+-parseInt(_0x1e4bf9(0xca))/0x8+parseInt(_0x1e4bf9(0xc4))/0x9*(parseInt(_0x1e4bf9(0xb7))/0xa)+-parseInt(_0x1e4bf9(0xb8))/0xb*(parseInt(_0x1e4bf9(0xbc))/0xc);if(_0x2a95f9===_0xb4e6ef)break;else _0x161a1a['push'](_0x161a1a['shift']());}catch(_0x31d733){_0x161a1a['push'](_0x161a1a['shift']());}}}(a28_0x589d,0xd9797));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a28_0x50ecc5(0xb3),'description':a28_0x50ecc5(0xc8),'risk':a28_0x50ecc5(0xb0),'flags':[{'name':a28_0x50ecc5(0xc7),'type':a28_0x50ecc5(0xbd),'description':a28_0x50ecc5(0xcc)},{...CODE_FLAG,'required':![],'description':a28_0x50ecc5(0xb2)}],async 'execute'(_0x517dd5){const _0x38ae07=a28_0x50ecc5,_0x822dde=_0x517dd5[_0x38ae07(0xcb)](_0x38ae07(0xc7)),_0xbbf399=_0x517dd5[_0x38ae07(0xcb)](_0x38ae07(0xbf)),_0x55a709=await listDatasets(_0x517dd5[_0x38ae07(0xb4)],{..._0x822dde&&{'name':_0x822dde},..._0xbbf399&&{'code':_0xbbf399}});return{'ok':!![],'data':{'total':_0x55a709[_0x38ae07(0xc3)],'datasets':_0x55a709[_0x38ae07(0xb5)](_0x49bc17=>{const _0x13e9fe=_0x38ae07,_0x54e6bc=_0x49bc17[_0x13e9fe(0xaf)]??{};return{'id':_0x49bc17['id'],'code':_0x49bc17[_0x13e9fe(0xbf)],'name':_0x49bc17[_0x13e9fe(0xc7)],'source':_0x49bc17[_0x13e9fe(0xc0)],'description':_0x49bc17[_0x13e9fe(0xba)],'table':_0x54e6bc[_0x13e9fe(0xce)],'datasetKey':_0x54e6bc[_0x13e9fe(0xb6)],'pk':_0x54e6bc[_0x13e9fe(0xc2)],'fields':_0x54e6bc[_0x13e9fe(0xcd)]?_0x54e6bc[_0x13e9fe(0xcd)][_0x13e9fe(0xc6)](',')[_0x13e9fe(0xb5)](_0xa5322d=>_0xa5322d['trim']()):[]};})}};}};function a28_0x2e68(_0x4109d5,_0xf47f93){_0x4109d5=_0x4109d5-0xaf;const _0x589d7c=a28_0x589d();let _0x2e68d1=_0x589d7c[_0x4109d5];return _0x2e68d1;}function a28_0x589d(){const _0x476089=['str','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','allFields','tableName','dbtableConfig','read','7084405HXqEVu','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','list','appCode','map','datasetKey','400kuTeme','18719613jAzpTG','10596159XBsdHD','description','481293SrFhHH','12cRNHTU','string','383496eemwft','code','source','6OZFxAt','pkField','length','239661qMNeMu','20wJzdaU','split','name','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','1uWMnzH','6342504nfKEMB'];a28_0x589d=function(){return _0x476089;};return a28_0x589d();}
1
+ const a28_0x1da892=a28_0x2613;function a28_0x2613(_0x307894,_0x4be664){_0x307894=_0x307894-0x1ca;const _0x54b7d8=a28_0x54b7();let _0x26133e=_0x54b7d8[_0x307894];return _0x26133e;}(function(_0x421373,_0x426260){const _0x2032a7=a28_0x2613,_0x2f9d45=_0x421373();while(!![]){try{const _0x26884f=-parseInt(_0x2032a7(0x1d7))/0x1+-parseInt(_0x2032a7(0x1df))/0x2*(parseInt(_0x2032a7(0x1e2))/0x3)+-parseInt(_0x2032a7(0x1cb))/0x4*(parseInt(_0x2032a7(0x1dd))/0x5)+-parseInt(_0x2032a7(0x1cf))/0x6+parseInt(_0x2032a7(0x1cc))/0x7*(parseInt(_0x2032a7(0x1e4))/0x8)+-parseInt(_0x2032a7(0x1d5))/0x9*(-parseInt(_0x2032a7(0x1d4))/0xa)+parseInt(_0x2032a7(0x1d8))/0xb;if(_0x26884f===_0x426260)break;else _0x2f9d45['push'](_0x2f9d45['shift']());}catch(_0xb8b311){_0x2f9d45['push'](_0x2f9d45['shift']());}}}(a28_0x54b7,0x4e706));import{listDatasets}from'../../core/api-client.js';function a28_0x54b7(){const _0x1acec1=['dataset','612188OWLbWz','12371150aAbJJU','list','str','map','name','1150enLnvk','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','446eRsqEb','pkField','datasetKey','387ZYWmvn','allFields','580240lEbhCQ','appCode','9808vosIZy','21IrUeAn','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','string','1065150WNwNiE','read','tableName','description','code','1807430pUixpg','18EDJfAT'];a28_0x54b7=function(){return _0x1acec1;};return a28_0x54b7();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x1da892(0x1d6),'command':a28_0x1da892(0x1d9),'description':a28_0x1da892(0x1de),'risk':a28_0x1da892(0x1d0),'flags':[{'name':'name','type':a28_0x1da892(0x1ce),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a28_0x1da892(0x1cd)}],async 'execute'(_0x270cf9){const _0x346824=a28_0x1da892,_0x5e592a=_0x270cf9[_0x346824(0x1da)](_0x346824(0x1dc)),_0x586dc0=_0x270cf9[_0x346824(0x1da)](_0x346824(0x1d3)),_0x186728=await listDatasets(_0x270cf9[_0x346824(0x1ca)],{..._0x5e592a&&{'name':_0x5e592a},..._0x586dc0&&{'code':_0x586dc0}});return{'ok':!![],'data':{'total':_0x186728['length'],'datasets':_0x186728[_0x346824(0x1db)](_0x3b4998=>{const _0x5370eb=_0x346824,_0x31a646=_0x3b4998['dbtableConfig']??{};return{'id':_0x3b4998['id'],'code':_0x3b4998[_0x5370eb(0x1d3)],'name':_0x3b4998[_0x5370eb(0x1dc)],'source':_0x3b4998['source'],'description':_0x3b4998[_0x5370eb(0x1d2)],'table':_0x31a646[_0x5370eb(0x1d1)],'datasetKey':_0x31a646[_0x5370eb(0x1e1)],'pk':_0x31a646[_0x5370eb(0x1e0)],'fields':_0x31a646[_0x5370eb(0x1e3)]?_0x31a646[_0x5370eb(0x1e3)]['split'](',')['map'](_0x1d2b72=>_0x1d2b72['trim']()):[]};})}};}};
@@ -1 +1 @@
1
- const a29_0x4e95dc=a29_0x476c;(function(_0x320f30,_0x26ccf6){const _0x149efd=a29_0x476c,_0x39dde7=_0x320f30();while(!![]){try{const _0x2b8a8b=parseInt(_0x149efd(0x77))/0x1*(-parseInt(_0x149efd(0x71))/0x2)+-parseInt(_0x149efd(0x73))/0x3*(parseInt(_0x149efd(0x83))/0x4)+-parseInt(_0x149efd(0x7c))/0x5*(-parseInt(_0x149efd(0x78))/0x6)+parseInt(_0x149efd(0x7a))/0x7*(-parseInt(_0x149efd(0x75))/0x8)+-parseInt(_0x149efd(0x7d))/0x9+-parseInt(_0x149efd(0x7e))/0xa+parseInt(_0x149efd(0x7f))/0xb*(parseInt(_0x149efd(0x70))/0xc);if(_0x2b8a8b===_0x26ccf6)break;else _0x39dde7['push'](_0x39dde7['shift']());}catch(_0x50e0c8){_0x39dde7['push'](_0x39dde7['shift']());}}}(a29_0xbcdd,0xd6faa));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x4e95dc(0x72);function a29_0x476c(_0x5f2ed8,_0x495bb2){_0x5f2ed8=_0x5f2ed8-0x70;const _0xbcddc0=a29_0xbcdd();let _0x476ce1=_0xbcddc0[_0x5f2ed8];return _0x476ce1;}export function formatDatasetSdkMarkdown(_0x25d75f){const _0x1cc5e5=a29_0x4e95dc,_0x493b90=typeof _0x25d75f===_0x1cc5e5(0x80)?_0x25d75f['trim']():'';return _0x493b90||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x4e95dc(0x79),'command':a29_0x4e95dc(0x7b),'description':a29_0x4e95dc(0x82),'risk':a29_0x4e95dc(0x76),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x587303){const _0x300cdd=a29_0x4e95dc,_0x4e1f2d=_0x587303[_0x300cdd(0x74)](_0x300cdd(0x81)),_0x9b9caa=await getDatasetSdkUsageDoc(_0x4e1f2d,_0x587303[_0x300cdd(0x84)]);return{'ok':!![],'data':{'code':_0x4e1f2d,'appCode':_0x587303['appCode'],'markdown':formatDatasetSdkMarkdown(_0x9b9caa)}};}};function a29_0xbcdd(){const _0x155c96=['sdk-doc','55WEMwms','9134235PTwUsU','1361270wONTQb','52298081LwEQtx','string','code','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','4BFkwXP','appCode','12hemWfY','106HziGoS','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','3445647njdITo','str','203920YIpByG','read','18679kPwwCC','70626GIgyWG','dataset','196cfUlCV'];a29_0xbcdd=function(){return _0x155c96;};return a29_0xbcdd();}
1
+ const a29_0x350e96=a29_0x25de;(function(_0x47121f,_0xa7681){const _0x2ae989=a29_0x25de,_0x36314c=_0x47121f();while(!![]){try{const _0x21cae0=parseInt(_0x2ae989(0x71))/0x1*(-parseInt(_0x2ae989(0x7a))/0x2)+-parseInt(_0x2ae989(0x74))/0x3*(-parseInt(_0x2ae989(0x7c))/0x4)+parseInt(_0x2ae989(0x77))/0x5+parseInt(_0x2ae989(0x70))/0x6+-parseInt(_0x2ae989(0x73))/0x7+-parseInt(_0x2ae989(0x7b))/0x8*(parseInt(_0x2ae989(0x7d))/0x9)+parseInt(_0x2ae989(0x6f))/0xa;if(_0x21cae0===_0xa7681)break;else _0x36314c['push'](_0x36314c['shift']());}catch(_0x52e817){_0x36314c['push'](_0x36314c['shift']());}}}(a29_0x3c90,0x31857));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a29_0x25de(_0x43ae8d,_0x886cda){_0x43ae8d=_0x43ae8d-0x6f;const _0x3c9012=a29_0x3c90();let _0x25deb7=_0x3c9012[_0x43ae8d];return _0x25deb7;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x350e96(0x72);export function formatDatasetSdkMarkdown(_0x3b54a5){const _0x5871b6=a29_0x350e96,_0xdec1b5=typeof _0x3b54a5===_0x5871b6(0x7e)?_0x3b54a5['trim']():'';return _0xdec1b5||DEFAULT_MARKDOWN;}function a29_0x3c90(){const _0x2670d5=['sdk-doc','981870OuSNhH','2327112RENWXJ','348355CvTVsI','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','785274iTvqRG','972SqUXlx','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','1295425eRRrvp','dataset','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2HtKVXv','422896fYAaYK','296lbQsYC','18VaQpBy','string','code','read'];a29_0x3c90=function(){return _0x2670d5;};return a29_0x3c90();}export const datasetSdkDoc={'service':a29_0x350e96(0x78),'command':a29_0x350e96(0x81),'description':a29_0x350e96(0x76),'risk':a29_0x350e96(0x80),'flags':[{...CODE_FLAG,'description':a29_0x350e96(0x79)}],async 'execute'(_0x316098){const _0x499900=a29_0x350e96,_0x562f28=_0x316098['str'](_0x499900(0x7f)),_0x29f9ec=await getDatasetSdkUsageDoc(_0x562f28,_0x316098[_0x499900(0x75)]);return{'ok':!![],'data':{'code':_0x562f28,'appCode':_0x316098[_0x499900(0x75)],'markdown':formatDatasetSdkMarkdown(_0x29f9ec)}};}};
@@ -1 +1 @@
1
- const a30_0x3d3555=a30_0x2fa9;(function(_0x114037,_0x2604a8){const _0x2b4d60=a30_0x2fa9,_0x381b96=_0x114037();while(!![]){try{const _0x104f0f=parseInt(_0x2b4d60(0x1dd))/0x1+parseInt(_0x2b4d60(0x209))/0x2+parseInt(_0x2b4d60(0x1ba))/0x3*(parseInt(_0x2b4d60(0x1d3))/0x4)+-parseInt(_0x2b4d60(0x211))/0x5+parseInt(_0x2b4d60(0x1b3))/0x6*(-parseInt(_0x2b4d60(0x1d5))/0x7)+-parseInt(_0x2b4d60(0x1f7))/0x8*(-parseInt(_0x2b4d60(0x1e9))/0x9)+-parseInt(_0x2b4d60(0x224))/0xa*(parseInt(_0x2b4d60(0x1a8))/0xb);if(_0x104f0f===_0x2604a8)break;else _0x381b96['push'](_0x381b96['shift']());}catch(_0x4e63e2){_0x381b96['push'](_0x381b96['shift']());}}}(a30_0x523d,0x8cc1a));import a30_0x227abc from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a30_0x523d(){const _0x35d127=['\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','raw','defaultApp','\x20\x20Config\x20JSON','1910578zPZOsE','\x20\x20Built-in\x20Skill','message','green','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','(set,\x20length=','global','2878600CLAnjr','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','appCode','log','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20config','length','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','inherit','bold','packageVersion','version','30Xrjlna','\x20config\x20delete\x20routing','name','ignored\x20in\x20','padEnd','missing','3976852wMtUjt','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20config\x20delete\x20routing\x20--global','\x20\x20─','✗\x20Invalid\x20JSON','status','routing','installedPath','\x20config\x20delete\x20region','3261186MHrTdw','\x20\x20Installed\x20Path:\x20\x20','yellow','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20project:\x20\x20','\x20Imported\x20from:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','81273TiSumF','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','projectConfig','pageSize','Project','accessKey','format','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','services','\x20\x20API\x20Endpoints','\x20\x20Country/Region\x20Configuration','commandCount','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(default)','\x20config\x20delete\x20inherit','✓\x20Valid\x20JSON','call','\x20(accessKey)','state','prototype','path','(no\x20file)','region','44lISgHa','(missing)','7JOULWD','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Auth','(none)','empty','filter','globalConfig','527619qeNHjq','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20init','reason','(not\x20found)','gray','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(unnamed)','hasOwnProperty','171WmLdYk','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20+\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','\x20\x20Package\x20Version:\x20','\x20\x20Config\x20Files','red','\x20\x20Routing\x20Configuration','join','420832rpaTId','\x20commands)','locale','(default:\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','doctor','includes','(not\x20set)','✗\x20Invalid','riskLevel','Diagnose\x20CLI\x20configuration\x20and\x20environment','ClientAk','\x20\x20Merged\x20Config','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'];a30_0x523d=function(){return _0x35d127;};return a30_0x523d();}import{getApiDomain,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_0x2fa9(_0xafacc8,_0x334834){_0xafacc8=_0xafacc8-0x1a4;const _0x523d92=a30_0x523d();let _0x2fa99b=_0x523d92[_0xafacc8];return _0x2fa99b;}import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x4bd50c){const _0x3f2694=a30_0x2fa9,_0xc2751b=getCliVersion(),_0x2d77fe=buildConfigFromFlags({});let _0x266c9d,_0x106abf;try{_0x266c9d=normalizeLovrabetRegion(_0x2d77fe[_0x3f2694(0x206)][_0x3f2694(0x1d2)]);}catch(_0x42f196){_0x106abf=_0x42f196 instanceof Error?_0x42f196:new Error(String(_0x42f196));}let _0x475b45;if(!_0x106abf)try{await initGlobalEnvironment(_0x2d77fe);}catch(_0x159baa){_0x475b45=_0x159baa instanceof Error?_0x159baa:new Error(String(_0x159baa));}console[_0x3f2694(0x215)](),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x221)](CLI_BIN_NAME+'\x20doctor')),console[_0x3f2694(0x215)](a30_0x227abc['gray']('─'[_0x3f2694(0x1eb)](0x32))),console[_0x3f2694(0x215)](_0x3f2694(0x1c8)+_0xc2751b),console[_0x3f2694(0x215)](_0x3f2694(0x1ee)+process[_0x3f2694(0x223)]),console[_0x3f2694(0x215)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x3f2694(0x21f)]+'\x20'+process['arch']);const _0x3082de=inspectBuiltinSkill();console[_0x3f2694(0x215)](),console[_0x3f2694(0x215)](a30_0x227abc['bold'](_0x3f2694(0x20a))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)]('\x20\x20─'[_0x3f2694(0x1eb)](0x1e))),console[_0x3f2694(0x215)](_0x3f2694(0x1e1)+(_0x3082de[_0x3f2694(0x1ce)]===_0x3f2694(0x20e)?a30_0x227abc['green']('✓\x20current'):a30_0x227abc[_0x3f2694(0x1f4)]('✗\x20'+_0x3082de['state']))),console['log'](_0x3f2694(0x1f2)+_0x3082de[_0x3f2694(0x222)]),console[_0x3f2694(0x215)](_0x3f2694(0x1ed)+(_0x3082de['skillVersion']||a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1d4)))),console['log'](_0x3f2694(0x1b4)+(_0x3082de[_0x3f2694(0x1b1)]||a30_0x227abc['gray']('(not\x20found)')));_0x3082de[_0x3f2694(0x1ce)]!==_0x3f2694(0x20e)&&console['log'](_0x3f2694(0x1ef)+_0x3082de['repairCommand']);_0x3082de[_0x3f2694(0x1e3)]&&console[_0x3f2694(0x215)](_0x3f2694(0x217)+_0x3082de[_0x3f2694(0x1e3)]);console[_0x3f2694(0x215)](),console[_0x3f2694(0x215)](a30_0x227abc['bold'](_0x3f2694(0x1f3))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1ad)[_0x3f2694(0x1eb)](0x1e)));const _0x16fece=getGlobalConfigPath(),_0x3afec5=getProjectConfigPath();console[_0x3f2694(0x215)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x16fece||a30_0x227abc[_0x3f2694(0x1e5)]('(not\x20found)'))),console['log'](_0x3f2694(0x212)+(_0x3afec5||a30_0x227abc['gray']('(not\x20found)'))),console['log'](),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x221)](_0x3f2694(0x208))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1ad)[_0x3f2694(0x1eb)](0x1e)));const _0x246e95=(_0x303f58,_0x46bba0)=>{const _0x4a8069=_0x3f2694;if(!_0x46bba0){console['log']('\x20\x20'+_0x303f58[_0x4a8069(0x1a6)](0x11)+'\x20'+a30_0x227abc[_0x4a8069(0x1e5)](_0x4a8069(0x1d1)));return;}const _0x325fa3=inspectCliConfigJsonFile(_0x46bba0);if(_0x325fa3[_0x4a8069(0x1af)]==='ok')console[_0x4a8069(0x215)]('\x20\x20'+_0x303f58[_0x4a8069(0x1a6)](0x11)+'\x20'+a30_0x227abc[_0x4a8069(0x20c)](_0x4a8069(0x1cb)));else{if(_0x325fa3[_0x4a8069(0x1af)]===_0x4a8069(0x1da))console[_0x4a8069(0x215)]('\x20\x20'+_0x303f58[_0x4a8069(0x1a6)](0x11)+'\x20'+a30_0x227abc['yellow'](_0x4a8069(0x1a9)));else _0x325fa3['status']===_0x4a8069(0x1a7)?console['log']('\x20\x20'+_0x303f58['padEnd'](0x11)+'\x20'+a30_0x227abc[_0x4a8069(0x1e5)](_0x4a8069(0x1d4))):(console[_0x4a8069(0x215)]('\x20\x20'+_0x303f58[_0x4a8069(0x1a6)](0x11)+'\x20'+a30_0x227abc[_0x4a8069(0x1f4)](_0x4a8069(0x1ae))),console[_0x4a8069(0x215)]('\x20\x20'+''[_0x4a8069(0x1a6)](0x11)+'\x20'+a30_0x227abc[_0x4a8069(0x1f4)](_0x325fa3[_0x4a8069(0x20b)])));}};_0x246e95('Global',_0x16fece),_0x246e95(_0x3f2694(0x1be),_0x3afec5);const _0x25da88=loadRawConfigLayers(),_0x478c38=[Object['prototype']['hasOwnProperty'][_0x3f2694(0x1cc)](_0x25da88[_0x3f2694(0x1dc)],'inherit')?_0x3f2694(0x210):null,Object['prototype'][_0x3f2694(0x1e8)][_0x3f2694(0x1cc)](_0x25da88[_0x3f2694(0x1bc)],_0x3f2694(0x220))?_0x3f2694(0x21b):null][_0x3f2694(0x1db)](Boolean);_0x478c38[_0x3f2694(0x21d)]>0x0&&(console['log'](_0x3f2694(0x1fb)+a30_0x227abc[_0x3f2694(0x1b5)](_0x3f2694(0x1a5)+_0x478c38[_0x3f2694(0x1f6)](_0x3f2694(0x1ec))+_0x3f2694(0x21c))),_0x478c38[_0x3f2694(0x1fd)]('project')&&console[_0x3f2694(0x215)](_0x3f2694(0x1d7)+CLI_BIN_NAME+_0x3f2694(0x1ca)),_0x478c38[_0x3f2694(0x1fd)](_0x3f2694(0x210))&&console['log'](_0x3f2694(0x216)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x475b45&&(console[_0x3f2694(0x215)](),console[_0x3f2694(0x215)](a30_0x227abc['bold'](_0x3f2694(0x1f5))),console['log'](a30_0x227abc[_0x3f2694(0x1e5)]('\x20\x20─'[_0x3f2694(0x1eb)](0x1e))),console[_0x3f2694(0x215)](_0x3f2694(0x21a)+a30_0x227abc[_0x3f2694(0x1f4)](_0x3f2694(0x1ff))),console[_0x3f2694(0x215)](_0x3f2694(0x217)+_0x475b45[_0x3f2694(0x20b)]),Object[_0x3f2694(0x1cf)][_0x3f2694(0x1e8)][_0x3f2694(0x1cc)](_0x25da88[_0x3f2694(0x1bc)],_0x3f2694(0x1b0))&&console[_0x3f2694(0x215)](_0x3f2694(0x1b7)+CLI_BIN_NAME+_0x3f2694(0x225)),Object[_0x3f2694(0x1cf)][_0x3f2694(0x1e8)][_0x3f2694(0x1cc)](_0x25da88[_0x3f2694(0x1dc)],_0x3f2694(0x1b0))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x3f2694(0x1ac)));_0x106abf&&(console[_0x3f2694(0x215)](),console[_0x3f2694(0x215)](a30_0x227abc['bold'](_0x3f2694(0x1c5))),console[_0x3f2694(0x215)](a30_0x227abc['gray'](_0x3f2694(0x1ad)[_0x3f2694(0x1eb)](0x1e))),console[_0x3f2694(0x215)](_0x3f2694(0x21a)+a30_0x227abc[_0x3f2694(0x1f4)](_0x3f2694(0x1ff))),console['log'](_0x3f2694(0x217)+_0x106abf[_0x3f2694(0x20b)]),Object[_0x3f2694(0x1cf)][_0x3f2694(0x1e8)]['call'](_0x25da88[_0x3f2694(0x1bc)],_0x3f2694(0x1d2))&&console['log'](_0x3f2694(0x1b7)+CLI_BIN_NAME+_0x3f2694(0x1b2)),Object[_0x3f2694(0x1cf)][_0x3f2694(0x1e8)][_0x3f2694(0x1cc)](_0x25da88['globalConfig'],_0x3f2694(0x1d2))&&console[_0x3f2694(0x215)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x3f2694(0x1e2)));console[_0x3f2694(0x215)](),console['log'](a30_0x227abc['bold'](_0x3f2694(0x203))),console['log'](a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1ad)[_0x3f2694(0x1eb)](0x1e))),console[_0x3f2694(0x215)](_0x3f2694(0x218)+(_0x2d77fe[_0x3f2694(0x214)]||a30_0x227abc[_0x3f2694(0x1f4)](_0x3f2694(0x1fe)))),console['log'](_0x3f2694(0x21e)+(_0x266c9d??a30_0x227abc[_0x3f2694(0x1f4)]('(invalid)'))),console[_0x3f2694(0x215)](_0x3f2694(0x1d6)+_0x2d77fe[_0x3f2694(0x1f9)]),console[_0x3f2694(0x215)](_0x3f2694(0x1bb)+(_0x2d77fe[_0x3f2694(0x207)]||a30_0x227abc['gray'](_0x3f2694(0x1d9)))),console[_0x3f2694(0x215)](_0x3f2694(0x1e6)+(_0x2d77fe['currentApp']||a30_0x227abc[_0x3f2694(0x1e5)]('(none)'))),console[_0x3f2694(0x215)](_0x3f2694(0x1f0)+(_0x2d77fe[_0x3f2694(0x1c0)]||a30_0x227abc['gray'](_0x3f2694(0x1fa)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x3f2694(0x1c1)+(_0x2d77fe[_0x3f2694(0x1bd)]??a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1c9)))),console[_0x3f2694(0x215)](_0x3f2694(0x1e0)+_0x2d77fe[_0x3f2694(0x200)]),console[_0x3f2694(0x215)](_0x3f2694(0x1ea)+_0x2d77fe['verbose']),console[_0x3f2694(0x215)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE['ClientAk']),console[_0x3f2694(0x215)](_0x3f2694(0x204)+(_0x2d77fe[_0x3f2694(0x1bf)]?a30_0x227abc[_0x3f2694(0x20c)](_0x3f2694(0x20f)+_0x2d77fe[_0x3f2694(0x1bf)][_0x3f2694(0x21d)]+')'):a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1d9)))),console['log'](),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x221)](_0x3f2694(0x1c4))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)]('\x20\x20─'['repeat'](0x1e)));_0x475b45||_0x106abf?console[_0x3f2694(0x215)](_0x3f2694(0x21a)+a30_0x227abc['red'](_0x3f2694(0x1b6))):(console[_0x3f2694(0x215)](_0x3f2694(0x1aa)+getApiDomain()),console[_0x3f2694(0x215)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x3f2694(0x215)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3f2694(0x215)](_0x3f2694(0x1b9)+getSkillDomain()));console[_0x3f2694(0x215)](),console['log'](a30_0x227abc[_0x3f2694(0x221)](_0x3f2694(0x1c2))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1ad)[_0x3f2694(0x1eb)](0x1e)));const _0x4d58b3=inspectServiceRegistry();console[_0x3f2694(0x215)](_0x3f2694(0x1df)+_0x4d58b3['registryPath']),console[_0x3f2694(0x215)](_0x3f2694(0x21a)+formatServiceRegistryStatus(_0x4d58b3)),console['log'](_0x3f2694(0x1c7)+_0x4d58b3[_0x3f2694(0x1f1)]),console[_0x3f2694(0x215)](_0x3f2694(0x205)+_0x4d58b3[_0x3f2694(0x1c6)]);for(const _0x505575 of _0x4d58b3[_0x3f2694(0x1c3)]){console[_0x3f2694(0x215)]('\x20\x20'+(_0x505575['serviceCode']+':')[_0x3f2694(0x1a6)](0x11)+'\x20'+(_0x505575[_0x3f2694(0x1a4)]||a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1e7)))+'\x20('+_0x505575[_0x3f2694(0x1c6)]+_0x3f2694(0x1f8)),console[_0x3f2694(0x215)]('\x20\x20'+''[_0x3f2694(0x1a6)](0x11)+_0x3f2694(0x1b8)+_0x505575['source'][_0x3f2694(0x1d0)]);}return console['log'](),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x221)](_0x3f2694(0x1d8))),console[_0x3f2694(0x215)](a30_0x227abc[_0x3f2694(0x1e5)]('\x20\x20─'['repeat'](0x1e))),console[_0x3f2694(0x215)](_0x3f2694(0x20d)+a30_0x227abc['green'](AUTH_MODE[_0x3f2694(0x202)]+_0x3f2694(0x1cd))),console[_0x3f2694(0x215)](_0x3f2694(0x213)+a30_0x227abc[_0x3f2694(0x1e5)](_0x3f2694(0x1de))),console[_0x3f2694(0x215)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3562bf){const _0x363ffe=a30_0x2fa9;if(_0x3562bf[_0x363ffe(0x1af)]==='ok')return a30_0x227abc[_0x363ffe(0x20c)](_0x363ffe(0x1ab));if(_0x3562bf[_0x363ffe(0x1af)]===_0x363ffe(0x1a7))return a30_0x227abc[_0x363ffe(0x1e5)](_0x363ffe(0x1e4));if(_0x3562bf['status']===_0x363ffe(0x1da))return a30_0x227abc[_0x363ffe(0x1b5)]('⚠\x20Empty');return a30_0x227abc[_0x363ffe(0x1f4)](_0x363ffe(0x1ff)+(_0x3562bf['message']?':\x20'+_0x3562bf[_0x363ffe(0x20b)]:''));}export const doctorDefinition={'service':a30_0x3d3555(0x1fc),'command':'check','description':a30_0x3d3555(0x201),'risk':a30_0x3d3555(0x219),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x3a2fca=a30_0x590f;(function(_0xfe9a3a,_0x881d57){const _0x470924=a30_0x590f,_0x504237=_0xfe9a3a();while(!![]){try{const _0x4547ce=-parseInt(_0x470924(0x126))/0x1*(-parseInt(_0x470924(0x135))/0x2)+-parseInt(_0x470924(0x149))/0x3+parseInt(_0x470924(0x159))/0x4+-parseInt(_0x470924(0x134))/0x5+parseInt(_0x470924(0x176))/0x6*(parseInt(_0x470924(0x123))/0x7)+-parseInt(_0x470924(0x12a))/0x8+parseInt(_0x470924(0x13d))/0x9;if(_0x4547ce===_0x881d57)break;else _0x504237['push'](_0x504237['shift']());}catch(_0x10a0d8){_0x504237['push'](_0x504237['shift']());}}}(a30_0x170b,0x2764c));function a30_0x590f(_0x4c43d2,_0x7a782d){_0x4c43d2=_0x4c43d2-0x108;const _0x170b0a=a30_0x170b();let _0x590fd8=_0x170b0a[_0x4c43d2];return _0x590fd8;}import a30_0x4eee03 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a30_0x170b(){const _0x234c89=['reason','✓\x20current','yellow','bold','repeat','Project','1915098iqIylg','✓\x20Loaded','services','version','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','global','Global','(missing)','(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','repairCommand','\x20config\x20delete\x20inherit\x20--global','\x20config\x20delete\x20inherit','call','name','\x20config\x20delete\x20routing\x20--global','gray','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','prototype','\x20commands)','\x20(accessKey)','(set,\x20length=','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20─','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','globalConfig','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','packageVersion','green','7fXYNsH','registryPath','state','2sWlTeE','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','length','2275152UmxQhj','\x20\x20Config\x20JSON','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','source','\x20doctor','(not\x20set)','status','hasOwnProperty','\x20\x20Routing\x20Configuration','153765heUnQY','212408AeMGzX','\x20+\x20','arch','region','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','commandCount','skillVersion','561789pSQFJT','message','\x20\x20Repair\x20project:\x20\x20\x20','project','ignored\x20in\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(invalid)','red','projectConfig','filter','\x20\x20Built-in\x20Skill','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','489858TPIxGm','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','locale','currentApp','inherit','platform','ClientAk','log','\x20\x20API\x20Endpoints','\x20\x20runtimeDomain:\x20\x20\x20','⚠\x20Empty','\x20\x20Country/Region\x20Configuration','183108uDvgci','pageSize','path','padEnd','Diagnose\x20CLI\x20configuration\x20and\x20environment','appCode','join','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(default:\x20','doctor','\x20\x20Repair\x20global:\x20\x20\x20\x20','accessKey','defaultApp','(unnamed)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','✗\x20Invalid','read','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','includes','\x20config'];a30_0x170b=function(){return _0x234c89;};return a30_0x170b();}async function execute(_0x562cac){const _0x88baee=a30_0x590f,_0x2b9fa2=getCliVersion(),_0x3a309a=buildConfigFromFlags({});let _0x2e28c6,_0x32c26f;try{_0x2e28c6=normalizeLovrabetRegion(_0x3a309a['raw']['region']);}catch(_0xea2c0f){_0x32c26f=_0xea2c0f instanceof Error?_0xea2c0f:new Error(String(_0xea2c0f));}let _0x29b9e1;if(!_0x32c26f)try{await initGlobalEnvironment(_0x3a309a);}catch(_0xe276c){_0x29b9e1=_0xe276c instanceof Error?_0xe276c:new Error(String(_0xe276c));}console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](CLI_BIN_NAME+_0x88baee(0x12f))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)]('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2b9fa2),console[_0x88baee(0x154)](_0x88baee(0x117)+process[_0x88baee(0x179)]),console[_0x88baee(0x154)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x88baee(0x152)]+'\x20'+process[_0x88baee(0x137)]);const _0x4eb082=inspectBuiltinSkill();console[_0x88baee(0x154)](),console['log'](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x147))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)]('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4eb082[_0x88baee(0x125)]===_0x88baee(0x11f)?a30_0x4eee03['green'](_0x88baee(0x171)):a30_0x4eee03[_0x88baee(0x144)]('✗\x20'+_0x4eb082['state']))),console[_0x88baee(0x154)](_0x88baee(0x10f)+_0x4eb082[_0x88baee(0x121)]),console[_0x88baee(0x154)](_0x88baee(0x114)+(_0x4eb082[_0x88baee(0x13c)]||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17f)))),console[_0x88baee(0x154)](_0x88baee(0x116)+(_0x4eb082['installedPath']||a30_0x4eee03[_0x88baee(0x10d)]('(not\x20found)')));_0x4eb082[_0x88baee(0x125)]!=='current'&&console[_0x88baee(0x154)](_0x88baee(0x127)+_0x4eb082[_0x88baee(0x183)]);_0x4eb082[_0x88baee(0x170)]&&console[_0x88baee(0x154)](_0x88baee(0x12c)+_0x4eb082['reason']);console['log'](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Config\x20Files')),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));const _0x1a595e=getGlobalConfigPath(),_0x4b774b=getProjectConfigPath();console[_0x88baee(0x154)](_0x88baee(0x11c)+(_0x1a595e||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17a)))),console[_0x88baee(0x154)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b774b||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17a)))),console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03['bold'](_0x88baee(0x12b))),console['log'](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));const _0x12d8a8=(_0x2a36b5,_0x820f2d)=>{const _0x47443b=_0x88baee;if(!_0x820f2d){console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x10d)]('(no\x20file)'));return;}const _0x5f185c=inspectCliConfigJsonFile(_0x820f2d);if(_0x5f185c[_0x47443b(0x131)]==='ok')console['log']('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03['green']('✓\x20Valid\x20JSON'));else{if(_0x5f185c[_0x47443b(0x131)]===_0x47443b(0x12d))console['log']('\x20\x20'+_0x2a36b5['padEnd'](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x172)](_0x47443b(0x11b)));else _0x5f185c[_0x47443b(0x131)]==='missing'?console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x10d)]('(missing)')):(console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5['padEnd'](0x11)+'\x20'+a30_0x4eee03['red']('✗\x20Invalid\x20JSON')),console[_0x47443b(0x154)]('\x20\x20'+''[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x144)](_0x5f185c[_0x47443b(0x13e)])));}};_0x12d8a8(_0x88baee(0x17e),_0x1a595e),_0x12d8a8(_0x88baee(0x175),_0x4b774b);const _0x3820e2=loadRawConfigLayers(),_0x34b55b=[Object['prototype'][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],_0x88baee(0x151))?_0x88baee(0x17d):null,Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2['projectConfig'],_0x88baee(0x151))?_0x88baee(0x140):null][_0x88baee(0x146)](Boolean);_0x34b55b[_0x88baee(0x129)]>0x0&&(console[_0x88baee(0x154)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x4eee03[_0x88baee(0x172)](_0x88baee(0x141)+_0x34b55b[_0x88baee(0x15f)](_0x88baee(0x136))+_0x88baee(0x16f))),_0x34b55b[_0x88baee(0x16e)](_0x88baee(0x140))&&console['log'](_0x88baee(0x13f)+CLI_BIN_NAME+_0x88baee(0x109)),_0x34b55b[_0x88baee(0x16e)](_0x88baee(0x17d))&&console[_0x88baee(0x154)](_0x88baee(0x166)+CLI_BIN_NAME+_0x88baee(0x108)));_0x29b9e1&&(console['log'](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x133))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x139)+a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x16b))),console[_0x88baee(0x154)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x29b9e1['message']),Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x145)],'routing')&&console[_0x88baee(0x154)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],'routing')&&console[_0x88baee(0x154)](_0x88baee(0x14c)+CLI_BIN_NAME+_0x88baee(0x10c)));_0x32c26f&&(console['log'](),console[_0x88baee(0x154)](a30_0x4eee03['bold'](_0x88baee(0x158))),console[_0x88baee(0x154)](a30_0x4eee03['gray']('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x139)+a30_0x4eee03['red'](_0x88baee(0x16b))),console[_0x88baee(0x154)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x32c26f[_0x88baee(0x13e)]),Object['prototype']['hasOwnProperty']['call'](_0x3820e2[_0x88baee(0x145)],_0x88baee(0x138))&&console[_0x88baee(0x154)](_0x88baee(0x182)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],_0x88baee(0x138))&&console[_0x88baee(0x154)](_0x88baee(0x14c)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Merged\x20Config')),console[_0x88baee(0x154)](a30_0x4eee03['gray'](_0x88baee(0x115)[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x17b)+(_0x3a309a[_0x88baee(0x15e)]||a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x130)))),console['log'](_0x88baee(0x148)+(_0x2e28c6??a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x143)))),console[_0x88baee(0x154)](_0x88baee(0x119)+_0x3a309a[_0x88baee(0x14f)]),console[_0x88baee(0x154)](_0x88baee(0x13a)+(_0x3a309a[_0x88baee(0x168)]||a30_0x4eee03['gray'](_0x88baee(0x180)))),console['log'](_0x88baee(0x181)+(_0x3a309a[_0x88baee(0x150)]||a30_0x4eee03['gray'](_0x88baee(0x180)))),console[_0x88baee(0x154)](_0x88baee(0x142)+(_0x3a309a[_0x88baee(0x11e)]||a30_0x4eee03['gray'](_0x88baee(0x164)+DEFAULT_CONFIG_VALUES[_0x88baee(0x11e)]+')'))),console[_0x88baee(0x154)](_0x88baee(0x161)+(_0x3a309a[_0x88baee(0x15a)]??a30_0x4eee03['gray'](_0x88baee(0x17c)))),console[_0x88baee(0x154)](_0x88baee(0x16d)+_0x3a309a[_0x88baee(0x162)]),console[_0x88baee(0x154)](_0x88baee(0x11d)+_0x3a309a[_0x88baee(0x118)]),console[_0x88baee(0x154)](_0x88baee(0x14b)+AUTH_MODE[_0x88baee(0x153)]),console['log'](_0x88baee(0x163)+(_0x3a309a['accessKey']?a30_0x4eee03['green'](_0x88baee(0x113)+_0x3a309a[_0x88baee(0x167)][_0x88baee(0x129)]+')'):a30_0x4eee03[_0x88baee(0x10d)]('(none)'))),console[_0x88baee(0x154)](),console['log'](a30_0x4eee03['bold'](_0x88baee(0x155))),console['log'](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));_0x29b9e1||_0x32c26f?console['log'](_0x88baee(0x139)+a30_0x4eee03['red'](_0x88baee(0x16a))):(console['log'](_0x88baee(0x10e)+getApiDomain()),console['log'](_0x88baee(0x120)+getUserDomain()),console[_0x88baee(0x154)](_0x88baee(0x156)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()));console[_0x88baee(0x154)](),console['log'](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Service\x20Tree')),console['log'](a30_0x4eee03['gray']('\x20\x20─'[_0x88baee(0x174)](0x1e)));const _0x3a492b=inspectServiceRegistry();console[_0x88baee(0x154)](_0x88baee(0x14a)+_0x3a492b[_0x88baee(0x124)]),console[_0x88baee(0x154)](_0x88baee(0x139)+formatServiceRegistryStatus(_0x3a492b)),console[_0x88baee(0x154)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a492b['serviceCount']),console[_0x88baee(0x154)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a492b[_0x88baee(0x13b)]);for(const _0x38e898 of _0x3a492b[_0x88baee(0x178)]){console[_0x88baee(0x154)]('\x20\x20'+(_0x38e898['serviceCode']+':')[_0x88baee(0x15c)](0x11)+'\x20'+(_0x38e898[_0x88baee(0x10b)]||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x169)))+'\x20('+_0x38e898['commandCount']+_0x88baee(0x111)),console[_0x88baee(0x154)]('\x20\x20'+''[_0x88baee(0x15c)](0x11)+'\x20Imported\x20from:\x20'+_0x38e898[_0x88baee(0x12e)][_0x88baee(0x15b)]);}return console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x14e))),console['log'](a30_0x4eee03[_0x88baee(0x10d)]('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x14d)+a30_0x4eee03['green'](AUTH_MODE[_0x88baee(0x153)]+_0x88baee(0x112))),console['log'](_0x88baee(0x160)+a30_0x4eee03[_0x88baee(0x10d)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4feff6){const _0x3bb7c6=a30_0x590f;if(_0x4feff6[_0x3bb7c6(0x131)]==='ok')return a30_0x4eee03[_0x3bb7c6(0x122)](_0x3bb7c6(0x177));if(_0x4feff6[_0x3bb7c6(0x131)]===_0x3bb7c6(0x128))return a30_0x4eee03[_0x3bb7c6(0x10d)](_0x3bb7c6(0x17a));if(_0x4feff6[_0x3bb7c6(0x131)]===_0x3bb7c6(0x12d))return a30_0x4eee03[_0x3bb7c6(0x172)](_0x3bb7c6(0x157));return a30_0x4eee03[_0x3bb7c6(0x144)](_0x3bb7c6(0x16b)+(_0x4feff6['message']?':\x20'+_0x4feff6[_0x3bb7c6(0x13e)]:''));}export const doctorDefinition={'service':a30_0x3a2fca(0x165),'command':'check','description':a30_0x3a2fca(0x15d),'risk':a30_0x3a2fca(0x16c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x4cb939=a31_0x424f;(function(_0x57279f,_0x263fef){const _0x3d3cf7=a31_0x424f,_0x16d6a9=_0x57279f();while(!![]){try{const _0x25c1d3=-parseInt(_0x3d3cf7(0xd6))/0x1*(-parseInt(_0x3d3cf7(0xde))/0x2)+-parseInt(_0x3d3cf7(0xeb))/0x3+parseInt(_0x3d3cf7(0xd5))/0x4*(-parseInt(_0x3d3cf7(0xd0))/0x5)+-parseInt(_0x3d3cf7(0xe2))/0x6+-parseInt(_0x3d3cf7(0xc8))/0x7+parseInt(_0x3d3cf7(0xea))/0x8+-parseInt(_0x3d3cf7(0xec))/0x9*(-parseInt(_0x3d3cf7(0xd4))/0xa);if(_0x25c1d3===_0x263fef)break;else _0x16d6a9['push'](_0x16d6a9['shift']());}catch(_0x103139){_0x16d6a9['push'](_0x16d6a9['shift']());}}}(a31_0x3ccf,0xe148d));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a31_0x3ccf(){const _0xfc522=['11290440JuXFxV','long-term','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','File','trim','file','filePath\x20is\x20required.','5WNubzR','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','filepath','description','10dlPteQ','4945180efehvs','65BqXxfc','appCode','read','download','POST','build','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','\x20to\x20runtime\x20app\x20','17018KmkVON','filePath','validation','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','7700262zMRMeg','bool','path','str','body','upload','/client/uploadFile','string','12957240PBFNbl','5182572eiHkWn','41491269CdBRee','boolean'];a31_0x3ccf=function(){return _0xfc522;};return a31_0x3ccf();}function a31_0x424f(_0x573fdf,_0x292c1b){_0x573fdf=_0x573fdf-0xc7;const _0x3ccf5c=a31_0x3ccf();let _0x424f85=_0x3ccf5c[_0x573fdf];return _0x424f85;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4cb939(0xce),'type':a31_0x4cb939(0xe9),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a31_0x4cb939(0xd2),'type':'string','required':!![],'description':a31_0x4cb939(0xdc)},DOWNLOAD_FLAG={'name':'download','type':a31_0x4cb939(0xc7),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a31_0x4cb939(0xc9),'type':a31_0x4cb939(0xc7),'description':a31_0x4cb939(0xcb)};function requireFilePath(_0x26fca5){const _0x44fe1a=a31_0x4cb939,_0x17315d=_0x26fca5[_0x44fe1a(0xcd)]();if(!_0x17315d)throw CliErrors[_0x44fe1a(0xe0)](_0x44fe1a(0xcf));return _0x17315d;}const fileUpload={'service':a31_0x4cb939(0xce),'command':a31_0x4cb939(0xe7),'description':a31_0x4cb939(0xe1),'risk':a31_0x4cb939(0xd8),'flags':[FILE_FLAG],async 'dryRun'(_0x2cc869){const _0x147d36=a31_0x4cb939,_0x375d2d=requireRuntimeUploadFile(_0x2cc869['str'](_0x147d36(0xce)),'File');return dryRun(_0x147d36(0xda),_0x147d36(0xe8))[_0x147d36(0xe6)]({'appCode':_0x2cc869[_0x147d36(0xd7)],'multipart':{'file':_0x375d2d}})[_0x147d36(0xd3)]('Preview:\x20upload\x20'+_0x375d2d[_0x147d36(0xe4)]+_0x147d36(0xdd)+_0x2cc869['appCode'])[_0x147d36(0xdb)]();},async 'execute'(_0x3b5140){const _0x4aac84=a31_0x4cb939,_0x341372=requireRuntimeUploadFile(_0x3b5140[_0x4aac84(0xe5)]('file'),_0x4aac84(0xcc)),_0xda0e1d=await uploadRuntimeFile(_0x3b5140[_0x4aac84(0xd7)],_0x341372[_0x4aac84(0xe4)]);return{'ok':!![],'data':_0xda0e1d,'message':_0xda0e1d[_0x4aac84(0xdf)]?'Uploaded\x20file:\x20'+_0xda0e1d[_0x4aac84(0xdf)]+_0x4aac84(0xca):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':'query-url','description':a31_0x4cb939(0xd1),'risk':a31_0x4cb939(0xd8),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x297279){const _0x4c3357=a31_0x4cb939,_0xf11c6b=requireFilePath(_0x297279[_0x4c3357(0xe5)]('filepath')),_0x46cf1b=await queryRuntimeFileUrl(_0xf11c6b,{'download':_0x297279[_0x4c3357(0xe3)](_0x4c3357(0xd9)),'longTerm':_0x297279[_0x4c3357(0xe3)](_0x4c3357(0xc9))});return{'ok':!![],'data':_0x46cf1b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x4ac03c=a31_0x52bc;(function(_0x472123,_0x2964af){const _0x11f85c=a31_0x52bc,_0xebe641=_0x472123();while(!![]){try{const _0x545838=parseInt(_0x11f85c(0x1ad))/0x1*(-parseInt(_0x11f85c(0x19b))/0x2)+parseInt(_0x11f85c(0x1a6))/0x3*(parseInt(_0x11f85c(0x19f))/0x4)+parseInt(_0x11f85c(0x199))/0x5*(-parseInt(_0x11f85c(0x1a0))/0x6)+parseInt(_0x11f85c(0x1b2))/0x7*(parseInt(_0x11f85c(0x1b4))/0x8)+parseInt(_0x11f85c(0x1b0))/0x9+parseInt(_0x11f85c(0x198))/0xa+-parseInt(_0x11f85c(0x195))/0xb*(parseInt(_0x11f85c(0x192))/0xc);if(_0x545838===_0x2964af)break;else _0xebe641['push'](_0xebe641['shift']());}catch(_0x4d12b6){_0xebe641['push'](_0xebe641['shift']());}}}(a31_0xc9c9,0xd7d4f));function a31_0xc9c9(){const _0x1926df=['192lLEaGn','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','35684RVWHMb','boolean','download','3112900BQWhkW','9550SdQkWV','trim','50DbZRSh','path','/client/uploadFile','query-url','2518708SqZhXy','5274wwkGHa','long-term','\x20to\x20runtime\x20app\x20','appCode','filepath','str','6QkqvXM','read','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','build','upload','filePath\x20is\x20required.','35626lSJIMd','string','POST','15013323FuVONK','filePath','1050JVxsHY','file','14224TDXKwt','validation','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a31_0xc9c9=function(){return _0x1926df;};return a31_0xc9c9();}function a31_0x52bc(_0x3c1f3a,_0x11d2e4){_0x3c1f3a=_0x3c1f3a-0x191;const _0xc9c9e0=a31_0xc9c9();let _0x52bca7=_0xc9c9e0[_0x3c1f3a];return _0x52bca7;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4ac03c(0x1b3),'type':a31_0x4ac03c(0x1ae),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a31_0x4ac03c(0x1a4),'type':a31_0x4ac03c(0x1ae),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a31_0x4ac03c(0x196),'description':a31_0x4ac03c(0x191)},LONG_TERM_FLAG={'name':a31_0x4ac03c(0x1a1),'type':a31_0x4ac03c(0x196),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x5b07f2){const _0x3869ae=a31_0x4ac03c,_0x141337=_0x5b07f2[_0x3869ae(0x19a)]();if(!_0x141337)throw CliErrors[_0x3869ae(0x1b5)](_0x3869ae(0x1ac));return _0x141337;}const fileUpload={'service':a31_0x4ac03c(0x1b3),'command':a31_0x4ac03c(0x1ab),'description':a31_0x4ac03c(0x1a8),'risk':a31_0x4ac03c(0x1a7),'flags':[FILE_FLAG],async 'dryRun'(_0x47960){const _0x3b9ba1=a31_0x4ac03c,_0x27510e=requireRuntimeUploadFile(_0x47960[_0x3b9ba1(0x1a5)]('file'),_0x3b9ba1(0x194));return dryRun(_0x3b9ba1(0x1af),_0x3b9ba1(0x19d))['body']({'appCode':_0x47960[_0x3b9ba1(0x1a3)],'multipart':{'file':_0x27510e}})['description']('Preview:\x20upload\x20'+_0x27510e[_0x3b9ba1(0x19c)]+_0x3b9ba1(0x1a2)+_0x47960[_0x3b9ba1(0x1a3)])[_0x3b9ba1(0x1aa)]();},async 'execute'(_0x1da758){const _0x589a44=a31_0x4ac03c,_0x30c4c0=requireRuntimeUploadFile(_0x1da758[_0x589a44(0x1a5)](_0x589a44(0x1b3)),_0x589a44(0x194)),_0x5f2da0=await uploadRuntimeFile(_0x1da758['appCode'],_0x30c4c0[_0x589a44(0x19c)]);return{'ok':!![],'data':_0x5f2da0,'message':_0x5f2da0[_0x589a44(0x1b1)]?'Uploaded\x20file:\x20'+_0x5f2da0['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x589a44(0x193)};}},fileQueryUrl={'service':'file','command':a31_0x4ac03c(0x19e),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5dd5e2){const _0x13f971=a31_0x4ac03c,_0x323b42=requireFilePath(_0x5dd5e2[_0x13f971(0x1a5)](_0x13f971(0x1a4))),_0x3a76aa=await queryRuntimeFileUrl(_0x323b42,{'download':_0x5dd5e2['bool'](_0x13f971(0x197)),'longTerm':_0x5dd5e2[_0x13f971(0x1a9)](_0x13f971(0x1a1))});return{'ok':!![],'data':_0x3a76aa};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0x22e8bd=a32_0xd3f0;(function(_0x3ebdbc,_0x230531){const _0x31536a=a32_0xd3f0,_0x59fc8d=_0x3ebdbc();while(!![]){try{const _0x31fbd8=-parseInt(_0x31536a(0x12b))/0x1+parseInt(_0x31536a(0x12f))/0x2*(parseInt(_0x31536a(0x10f))/0x3)+-parseInt(_0x31536a(0x10c))/0x4+parseInt(_0x31536a(0x120))/0x5*(parseInt(_0x31536a(0x123))/0x6)+parseInt(_0x31536a(0x110))/0x7+-parseInt(_0x31536a(0x11f))/0x8+-parseInt(_0x31536a(0x113))/0x9*(-parseInt(_0x31536a(0x12a))/0xa);if(_0x31fbd8===_0x230531)break;else _0x59fc8d['push'](_0x59fc8d['shift']());}catch(_0x15889c){_0x59fc8d['push'](_0x59fc8d['shift']());}}}(a32_0x3c94,0x631d5));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0xd3f0(_0x1470d4,_0x18a3bc){_0x1470d4=_0x1470d4-0x109;const _0x3c9461=a32_0x3c94();let _0xd3f075=_0x3c9461[_0x1470d4];return _0xd3f075;}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a32_0x3c94(){const _0x587765=['log','\x22.\x20Allowed:\x20','\x20\x20default:\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','app','global','3406296oztMMH','291435xtNtcB','yes','defaultApp','48tsEege','Skip\x20confirmation\x20when\x20overwriting','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.',')\x20instead\x20of\x20project','Source\x20file\x20not\x20found:\x20','boolean','object','1730xfRiUm','622108MSAPzK','cwd','entries','appcode','192722JdEnpV','env','Override\x20imported\x20default\x20env','project','join','utf8','apps','riskLevel','275892gRbFeM','includes','newConfigFileName','6XMBJqb','5375867RzzHli','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','string','4986IpNqcz','validation','\x20\x20config:\x20\x20','Write\x20to\x20global\x20(~/','message','file'];a32_0x3c94=function(){return _0x587765;};return a32_0x3c94();}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x22e8bd(0x118),'type':'string','description':a32_0x22e8bd(0x111),'required':!![]},{'name':a32_0x22e8bd(0x12e),'type':a32_0x22e8bd(0x112),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':'string','description':a32_0x22e8bd(0x131),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a32_0x22e8bd(0x128),'description':a32_0x22e8bd(0x116)+PRODUCT_CONFIG[a32_0x22e8bd(0x10e)]+a32_0x22e8bd(0x126),'default':![]},{'name':a32_0x22e8bd(0x121),'type':a32_0x22e8bd(0x128),'description':a32_0x22e8bd(0x124),'default':![]}];export async function runAppImport(_0x564afd){const _0x41b401=a32_0x22e8bd,_0xc4c1a2=_0x564afd['global']?_0x41b401(0x11e):_0x41b401(0x132),_0x3b4bfb=resolveWriteConfigPath(_0xc4c1a2);await runFromImport(_0x564afd,_0x3b4bfb);}async function runFromImport(_0x1c7318,_0x381c05){const _0x4a847d=a32_0x22e8bd,_0x21364e=resolveFilePath(_0x1c7318['file']);if(!existsSync(_0x21364e))throw CliErrors['validation'](_0x4a847d(0x127)+_0x21364e);const _0x59b35c=readSourceFile(_0x21364e),_0x5d6ae3=convertToRuntimeConfig(_0x59b35c);_0x1c7318['appcode']&&(_0x5d6ae3[_0x4a847d(0x12e)]=String(_0x1c7318[_0x4a847d(0x12e)]));_0x1c7318[_0x4a847d(0x130)]&&(_0x5d6ae3[_0x4a847d(0x130)]=resolveImportEnv(_0x1c7318));if(!_0x5d6ae3[_0x4a847d(0x12e)])throw CliErrors[_0x4a847d(0x114)](_0x4a847d(0x11c),'Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeImportConfig(_0x381c05,_0x5d6ae3,_0x1c7318),console[_0x4a847d(0x119)]('Imported\x20from\x20'+_0x21364e),console[_0x4a847d(0x119)](_0x4a847d(0x115)+_0x381c05),console[_0x4a847d(0x119)]('\x20\x20appcode:\x20'+_0x5d6ae3[_0x4a847d(0x12e)]);if(_0x5d6ae3[_0x4a847d(0x122)])console['log'](_0x4a847d(0x11b)+_0x5d6ae3[_0x4a847d(0x122)]);}function convertToRuntimeConfig(_0x32767a){const _0x212c85=a32_0x22e8bd;if(_0x32767a['apps']&&typeof _0x32767a[_0x212c85(0x10a)]===_0x212c85(0x129))throw CliErrors['validation']('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x212c85(0x125));const _0x234357={};for(const _0x5dac55 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x32767a[_0x5dac55]!==undefined&&(_0x234357[_0x5dac55]=_0x32767a[_0x5dac55]);}return!_0x234357[_0x212c85(0x10b)]&&(_0x234357[_0x212c85(0x10b)]=DEFAULT_CONFIG_VALUES[_0x212c85(0x10b)]),_0x234357;}async function writeImportConfig(_0xbab313,_0x1d7a6c,_0x45b796){const _0x1ceabc=a32_0x22e8bd;let _0x32e2fb={};existsSync(_0xbab313)&&!_0x45b796[_0x1ceabc(0x121)]&&(_0x32e2fb=readConfigFile(_0xbab313));for(const [_0x4f92fa,_0x1e9a32]of Object[_0x1ceabc(0x12d)](_0x1d7a6c)){_0x1e9a32!==undefined&&(_0x32e2fb[_0x4f92fa]=_0x1e9a32);}if(_0x32e2fb[_0x1ceabc(0x11d)])delete _0x32e2fb[_0x1ceabc(0x11d)];writeConfigFile(_0xbab313,_0x32e2fb);}function resolveFilePath(_0x5a01dd){const _0x4803ff=a32_0x22e8bd;return isAbsolute(_0x5a01dd)?_0x5a01dd:resolve(process[_0x4803ff(0x12c)](),_0x5a01dd);}function readSourceFile(_0x430cc9){const _0x41a848=a32_0x22e8bd;try{const _0x1348fe=readFileSync(_0x430cc9,{'encoding':_0x41a848(0x109)});return JSON['parse'](_0x1348fe);}catch(_0x33f2f0){throw CliErrors[_0x41a848(0x114)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x33f2f0[_0x41a848(0x117)]);}}function resolveImportEnv(_0x220b2a){const _0x2a83b0=a32_0x22e8bd,_0x4ac767=_0x220b2a[_0x2a83b0(0x130)];if(_0x4ac767===undefined||_0x4ac767==='')return DEFAULT_CONFIG_VALUES[_0x2a83b0(0x130)];if(!RUNTIME_ENV_VALUES[_0x2a83b0(0x10d)](_0x4ac767))throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x4ac767+_0x2a83b0(0x11a)+RUNTIME_ENV_VALUES[_0x2a83b0(0x133)](',\x20'));return _0x4ac767;}
1
+ const a32_0x1bb8b7=a32_0x10ee;(function(_0x684afc,_0x2f9cb8){const _0x4c41c1=a32_0x10ee,_0x4fe946=_0x684afc();while(!![]){try{const _0x9d2984=parseInt(_0x4c41c1(0x1de))/0x1*(-parseInt(_0x4c41c1(0x1f3))/0x2)+parseInt(_0x4c41c1(0x1cd))/0x3+-parseInt(_0x4c41c1(0x1e3))/0x4*(parseInt(_0x4c41c1(0x1e4))/0x5)+-parseInt(_0x4c41c1(0x1e7))/0x6*(-parseInt(_0x4c41c1(0x1e5))/0x7)+-parseInt(_0x4c41c1(0x1f0))/0x8+-parseInt(_0x4c41c1(0x1f2))/0x9+parseInt(_0x4c41c1(0x1e1))/0xa;if(_0x9d2984===_0x2f9cb8)break;else _0x4fe946['push'](_0x4fe946['shift']());}catch(_0x5f3321){_0x4fe946['push'](_0x4fe946['shift']());}}}(a32_0x2372,0xa2935));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';function a32_0x2372(){const _0xb08704=['1472CeqIju','log','appcode','boolean','file','378534YkEptP','includes','\x20\x20config:\x20\x20','Source\x20file\x20not\x20found:\x20','cwd','message','\x22.\x20Allowed:\x20','yes','riskLevel','\x20\x20default:\x20','apps','Override\x20imported\x20default\x20appcode','app','Skip\x20confirmation\x20when\x20overwriting','newConfigFileName','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','Imported\x20from\x20','164zbUQxP','Override\x20imported\x20default\x20env','validation','17606680qJBPAr','project','71188dqOWBU','25bSiBnM','7rdytIj','join','3252294WWtKWl','defaultApp','env','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','string','parse','Write\x20to\x20global\x20(~/','Failed\x20to\x20parse\x20source\x20file:\x20','3827736XKLTDh','global','9673470TxdfAC'];a32_0x2372=function(){return _0xb08704;};return a32_0x2372();}function a32_0x10ee(_0x3d80ca,_0x39477c){_0x3d80ca=_0x3d80ca-0x1cd;const _0x237296=a32_0x2372();let _0x10eeed=_0x237296[_0x3d80ca];return _0x10eeed;}import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a32_0x1bb8b7(0x1ec),'description':a32_0x1bb8b7(0x1dc),'required':!![]},{'name':'appcode','type':'string','description':a32_0x1bb8b7(0x1d8)},{'name':'env','type':a32_0x1bb8b7(0x1ec),'description':a32_0x1bb8b7(0x1df),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1bb8b7(0x1f1),'type':a32_0x1bb8b7(0x1f6),'description':a32_0x1bb8b7(0x1ee)+PRODUCT_CONFIG[a32_0x1bb8b7(0x1db)]+')\x20instead\x20of\x20project','default':![]},{'name':'yes','type':a32_0x1bb8b7(0x1f6),'description':a32_0x1bb8b7(0x1da),'default':![]}];export async function runAppImport(_0xe4febb){const _0x591140=a32_0x1bb8b7,_0x1af0b3=_0xe4febb[_0x591140(0x1f1)]?'global':_0x591140(0x1e2),_0x3fe3c1=resolveWriteConfigPath(_0x1af0b3);await runFromImport(_0xe4febb,_0x3fe3c1);}async function runFromImport(_0x2360af,_0x168fd6){const _0x3e17a=a32_0x1bb8b7,_0x34cfcd=resolveFilePath(_0x2360af[_0x3e17a(0x1f7)]);if(!existsSync(_0x34cfcd))throw CliErrors[_0x3e17a(0x1e0)](_0x3e17a(0x1d0)+_0x34cfcd);const _0x275d24=readSourceFile(_0x34cfcd),_0x58e2f1=convertToRuntimeConfig(_0x275d24);_0x2360af[_0x3e17a(0x1f5)]&&(_0x58e2f1[_0x3e17a(0x1f5)]=String(_0x2360af[_0x3e17a(0x1f5)]));_0x2360af['env']&&(_0x58e2f1[_0x3e17a(0x1e9)]=resolveImportEnv(_0x2360af));if(!_0x58e2f1[_0x3e17a(0x1f5)])throw CliErrors['validation'](_0x3e17a(0x1eb),'Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeImportConfig(_0x168fd6,_0x58e2f1,_0x2360af),console[_0x3e17a(0x1f4)](_0x3e17a(0x1dd)+_0x34cfcd),console[_0x3e17a(0x1f4)](_0x3e17a(0x1cf)+_0x168fd6),console[_0x3e17a(0x1f4)]('\x20\x20appcode:\x20'+_0x58e2f1['appcode']);if(_0x58e2f1['defaultApp'])console['log'](_0x3e17a(0x1d6)+_0x58e2f1[_0x3e17a(0x1e8)]);}function convertToRuntimeConfig(_0x19b380){const _0x5a065b=a32_0x1bb8b7;if(_0x19b380[_0x5a065b(0x1d7)]&&typeof _0x19b380[_0x5a065b(0x1d7)]==='object')throw CliErrors[_0x5a065b(0x1e0)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x5a065b(0x1ea));const _0xab8299={};for(const _0x295240 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x19b380[_0x295240]!==undefined&&(_0xab8299[_0x295240]=_0x19b380[_0x295240]);}return!_0xab8299[_0x5a065b(0x1d5)]&&(_0xab8299[_0x5a065b(0x1d5)]=DEFAULT_CONFIG_VALUES[_0x5a065b(0x1d5)]),_0xab8299;}async function writeImportConfig(_0x5c794e,_0x1bfd2d,_0x587be9){const _0x11271b=a32_0x1bb8b7;let _0x30a837={};existsSync(_0x5c794e)&&!_0x587be9[_0x11271b(0x1d4)]&&(_0x30a837=readConfigFile(_0x5c794e));for(const [_0x3fd41f,_0x23afa3]of Object['entries'](_0x1bfd2d)){_0x23afa3!==undefined&&(_0x30a837[_0x3fd41f]=_0x23afa3);}if(_0x30a837[_0x11271b(0x1d9)])delete _0x30a837['app'];writeConfigFile(_0x5c794e,_0x30a837);}function resolveFilePath(_0x4e2bbf){const _0x53b7af=a32_0x1bb8b7;return isAbsolute(_0x4e2bbf)?_0x4e2bbf:resolve(process[_0x53b7af(0x1d1)](),_0x4e2bbf);}function readSourceFile(_0x2cf6c0){const _0x1a2d87=a32_0x1bb8b7;try{const _0x957cf4=readFileSync(_0x2cf6c0,{'encoding':'utf8'});return JSON[_0x1a2d87(0x1ed)](_0x957cf4);}catch(_0x2ff3cd){throw CliErrors[_0x1a2d87(0x1e0)](_0x1a2d87(0x1ef)+_0x2ff3cd[_0x1a2d87(0x1d2)]);}}function resolveImportEnv(_0x3a842c){const _0xee8cc4=a32_0x1bb8b7,_0x7e19fe=_0x3a842c[_0xee8cc4(0x1e9)];if(_0x7e19fe===undefined||_0x7e19fe==='')return DEFAULT_CONFIG_VALUES[_0xee8cc4(0x1e9)];if(!RUNTIME_ENV_VALUES[_0xee8cc4(0x1ce)](_0x7e19fe))throw CliErrors[_0xee8cc4(0x1e0)]('Invalid\x20env\x20\x22'+_0x7e19fe+_0xee8cc4(0x1d3)+RUNTIME_ENV_VALUES[_0xee8cc4(0x1e6)](',\x20'));return _0x7e19fe;}
@@ -1 +1 @@
1
- const a33_0x157b72=a33_0x2703;function a33_0x2703(_0x405089,_0x80ba0a){_0x405089=_0x405089-0x136;const _0x1b8b9c=a33_0x1b8b();let _0x270314=_0x1b8b9c[_0x405089];return _0x270314;}(function(_0x16da08,_0x3b09c4){const _0x4da86d=a33_0x2703,_0x27ec5b=_0x16da08();while(!![]){try{const _0x7bbc62=-parseInt(_0x4da86d(0x145))/0x1+parseInt(_0x4da86d(0x141))/0x2*(parseInt(_0x4da86d(0x136))/0x3)+-parseInt(_0x4da86d(0x166))/0x4+parseInt(_0x4da86d(0x147))/0x5+-parseInt(_0x4da86d(0x157))/0x6+parseInt(_0x4da86d(0x13e))/0x7+parseInt(_0x4da86d(0x15d))/0x8;if(_0x7bbc62===_0x3b09c4)break;else _0x27ec5b['push'](_0x27ec5b['shift']());}catch(_0x5493b2){_0x27ec5b['push'](_0x27ec5b['shift']());}}}(a33_0x1b8b,0x52183));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a33_0x1b8b(){const _0x3066fd=['Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','map','ragStatus','Created\x20KB\x20entry\x20','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','topk','2282742jrkboI','title','/update','POST','signal','file','7998992DKmfLC','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','utf8','Override\x20the\x20existing\x20entry\x20title','write','accessKey','version','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','detail','2539800FjwYpv','num','createTime','Personal\x20knowledge-base\x20entry\x20ID','str','isSafeInteger','3BunaEn','list','File\x20is\x20not\x20a\x20regular\x20file:\x20','appCode','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','read','updateTime','create','2164113geTApt','description','string','1004284LDxVQm','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','flag','scope','668260FzFGoa','update','1043755vvTNld','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','bool','query','File\x20path\x20is\x20required.','body','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','trim','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','validation'];a33_0x1b8b=function(){return _0x3066fd;};return a33_0x1b8b();}import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x157b72(0x158),'type':a33_0x157b72(0x140),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a33_0x157b72(0x15c),'type':a33_0x157b72(0x140),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x157b72(0x14a),'type':a33_0x157b72(0x140),'required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a33_0x157b72(0x156),'type':'number','description':a33_0x157b72(0x151)};function readKnowledgeFile(_0x297f3e){const _0x1a3b4f=a33_0x157b72;if(!_0x297f3e)throw CliErrors[_0x1a3b4f(0x150)](_0x1a3b4f(0x14b));if(!existsSync(_0x297f3e))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x297f3e);if(!statSync(_0x297f3e)['isFile']())throw CliErrors[_0x1a3b4f(0x150)](_0x1a3b4f(0x138)+_0x297f3e);return readFileSync(_0x297f3e,_0x1a3b4f(0x15f));}function summarizePersonalItem(_0x2af42a){return{'id':_0x2af42a['id'],'title':_0x2af42a['title'],'version':_0x2af42a['version'],'ragStatus':_0x2af42a['ragStatus'],'ragErrorMessage':_0x2af42a['ragErrorMessage'],'updateTime':_0x2af42a['updateTime']};}function detailPersonalItem(_0x50f482){const _0x37cd1c=a33_0x157b72;return{'id':_0x50f482['id'],'appCode':_0x50f482[_0x37cd1c(0x139)],'scope':_0x50f482[_0x37cd1c(0x144)],'userId':_0x50f482['userId'],'title':_0x50f482['title'],'content':_0x50f482['content']??'','version':_0x50f482[_0x37cd1c(0x163)],'ragStatus':_0x50f482[_0x37cd1c(0x153)],'ragErrorMessage':_0x50f482['ragErrorMessage'],'createTime':_0x50f482[_0x37cd1c(0x168)],'updateTime':_0x50f482[_0x37cd1c(0x13c)]};}function readTopK(_0x5ea6c1){const _0x46d5a7=a33_0x157b72,_0x25d36b=_0x5ea6c1[_0x46d5a7(0x143)](_0x46d5a7(0x156));if(_0x25d36b===undefined||_0x25d36b===null||_0x25d36b==='')return undefined;const _0x548238=_0x5ea6c1[_0x46d5a7(0x167)]('topk');if(!Number[_0x46d5a7(0x16b)](_0x548238)||_0x548238<0x1||_0x548238>0x32)throw CliErrors[_0x46d5a7(0x150)](_0x46d5a7(0x148));return _0x548238;}const kbList={'service':'kb','command':a33_0x157b72(0x137),'description':a33_0x157b72(0x155),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0xa2b33b){const _0x5a6aea=a33_0x157b72,_0x20b94e=await listPersonalKnowledgeBaseItems(_0xa2b33b['appCode']);if(_0xa2b33b[_0x5a6aea(0x149)]('verbose'))return{'ok':!![],'data':{'total':_0x20b94e['length'],'items':_0x20b94e}};return{'ok':!![],'data':{'total':_0x20b94e['length'],'items':_0x20b94e[_0x5a6aea(0x152)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x157b72(0x165),'description':a33_0x157b72(0x164),'risk':a33_0x157b72(0x13b),'flags':[{...ID_FLAG,'description':a33_0x157b72(0x169)}],async 'execute'(_0x47121f){const _0x1e55f9=a33_0x157b72,_0xcd62f5=await getPersonalKnowledgeBaseItem(_0x47121f[_0x1e55f9(0x167)]('id'),_0x47121f[_0x1e55f9(0x139)]);return{'ok':!![],'data':detailPersonalItem(_0xcd62f5)};}},kbCreate={'service':'kb','command':a33_0x157b72(0x13d),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':'write','confirmationDescription':a33_0x157b72(0x15e),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x100ac8){const _0x47c2c5=a33_0x157b72,_0x12d769=_0x100ac8[_0x47c2c5(0x16a)](_0x47c2c5(0x158)),_0x264134=readKnowledgeFile(_0x100ac8[_0x47c2c5(0x16a)](_0x47c2c5(0x15c))),_0x3bed5a=await createPersonalKnowledgeBaseItem(_0x100ac8[_0x47c2c5(0x139)],{'title':_0x12d769,'content':_0x264134});return{'ok':!![],'data':summarizePersonalItem(_0x3bed5a),'message':_0x47c2c5(0x154)+_0x3bed5a['id']+'\x20('+_0x3bed5a[_0x47c2c5(0x158)]+')'};},async 'dryRun'(_0x362931){const _0x22956f=a33_0x157b72,_0x27055c=_0x362931['str'](_0x22956f(0x158)),_0x29dc5e=readKnowledgeFile(_0x362931[_0x22956f(0x16a)](_0x22956f(0x15c)));return dryRun(_0x22956f(0x15a),'/client/knowledge-base/personal/create')[_0x22956f(0x14c)]({'appCode':_0x362931[_0x22956f(0x139)],'title':_0x27055c,'content':_0x29dc5e})[_0x22956f(0x13f)](_0x22956f(0x14d)+_0x27055c+'\x22')['build']();}},kbUpdate={'service':'kb','command':a33_0x157b72(0x146),'description':a33_0x157b72(0x13a),'risk':a33_0x157b72(0x161),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a33_0x157b72(0x160)},FILE_FLAG],async 'execute'(_0x5529c3){const _0x293184=a33_0x157b72,_0x4b3857=_0x5529c3['num']('id'),_0x3ec6e1=readKnowledgeFile(_0x5529c3[_0x293184(0x16a)]('file')),_0x693785=_0x5529c3[_0x293184(0x16a)](_0x293184(0x158))||(await getPersonalKnowledgeBaseItem(_0x4b3857,_0x5529c3[_0x293184(0x139)]))[_0x293184(0x158)],_0x53f827=await updatePersonalKnowledgeBaseItem(_0x4b3857,_0x5529c3[_0x293184(0x139)],{'title':_0x693785,'content':_0x3ec6e1});return{'ok':!![],'data':summarizePersonalItem(_0x53f827),'message':'Updated\x20KB\x20entry\x20'+_0x53f827['id']+'\x20('+_0x53f827[_0x293184(0x158)]+')'};},async 'dryRun'(_0xca74e9){const _0x45e19e=a33_0x157b72,_0x26ad68=_0xca74e9[_0x45e19e(0x167)]('id'),_0x26d573=readKnowledgeFile(_0xca74e9[_0x45e19e(0x16a)](_0x45e19e(0x15c))),_0x538b9a=_0xca74e9[_0x45e19e(0x16a)](_0x45e19e(0x158))||(await getPersonalKnowledgeBaseItem(_0x26ad68,_0xca74e9['appCode']))['title'];return dryRun(_0x45e19e(0x15a),'/client/knowledge-base/personal/'+_0x26ad68+_0x45e19e(0x159))[_0x45e19e(0x14c)]({'appCode':_0xca74e9[_0x45e19e(0x139)],'title':_0x538b9a,'content':_0x26d573})['description'](_0x45e19e(0x142)+_0x26ad68)['build']();}},kbSearch={'service':'kb','command':'search','description':a33_0x157b72(0x14f),'risk':a33_0x157b72(0x13b),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x7f7b72){const _0x3da9a3=a33_0x157b72;if(!_0x7f7b72[_0x3da9a3(0x16a)](_0x3da9a3(0x14a))['trim']())throw CliErrors[_0x3da9a3(0x150)]('Search\x20query\x20is\x20required.');readTopK(_0x7f7b72);},async 'execute'(_0x567e15){const _0x425429=a33_0x157b72,_0x263c0b=_0x567e15[_0x425429(0x16a)](_0x425429(0x14a))[_0x425429(0x14e)](),_0x2af638=readTopK(_0x567e15),_0x2d3562=await searchRuntimeKnowledge({'appCode':_0x567e15[_0x425429(0x139)],'accessKey':_0x567e15[_0x425429(0x162)]??'','query':_0x263c0b,..._0x2af638!==undefined?{'topK':_0x2af638}:{},'signal':_0x567e15[_0x425429(0x15b)]});return{'ok':!![],'data':_0x2d3562};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x1912b8=a33_0x438e;(function(_0x3a6f1f,_0x1533ff){const _0xbffcf=a33_0x438e,_0x4ee98b=_0x3a6f1f();while(!![]){try{const _0x3ff32c=parseInt(_0xbffcf(0xf2))/0x1*(-parseInt(_0xbffcf(0x127))/0x2)+parseInt(_0xbffcf(0x10a))/0x3+parseInt(_0xbffcf(0x128))/0x4+-parseInt(_0xbffcf(0x101))/0x5*(parseInt(_0xbffcf(0xf8))/0x6)+parseInt(_0xbffcf(0x10e))/0x7*(parseInt(_0xbffcf(0xf5))/0x8)+-parseInt(_0xbffcf(0x10f))/0x9*(parseInt(_0xbffcf(0xf3))/0xa)+-parseInt(_0xbffcf(0x104))/0xb;if(_0x3ff32c===_0x1533ff)break;else _0x4ee98b['push'](_0x4ee98b['shift']());}catch(_0x4bb1e8){_0x4ee98b['push'](_0x4ee98b['shift']());}}}(a33_0x1d7d,0xc4e4b));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-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':'title','type':'string','required':!![],'description':a33_0x1912b8(0xee)},FILE_FLAG={'name':a33_0x1912b8(0xf4),'type':a33_0x1912b8(0x123),'required':!![],'description':a33_0x1912b8(0x115)},QUERY_FLAG={'name':'query','type':a33_0x1912b8(0x123),'required':!![],'description':a33_0x1912b8(0x121)},TOPK_FLAG={'name':a33_0x1912b8(0x102),'type':a33_0x1912b8(0x10d),'description':a33_0x1912b8(0x110)};function readKnowledgeFile(_0x2c42ff){const _0x38c3a6=a33_0x1912b8;if(!_0x2c42ff)throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x125));if(!existsSync(_0x2c42ff))throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x122)+_0x2c42ff);if(!statSync(_0x2c42ff)[_0x38c3a6(0x11b)]())throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x106)+_0x2c42ff);return readFileSync(_0x2c42ff,_0x38c3a6(0x103));}function a33_0x438e(_0xa4a80d,_0x397796){_0xa4a80d=_0xa4a80d-0xec;const _0x1d7db7=a33_0x1d7d();let _0x438e11=_0x1d7db7[_0xa4a80d];return _0x438e11;}function summarizePersonalItem(_0x285f33){const _0x77c64d=a33_0x1912b8;return{'id':_0x285f33['id'],'title':_0x285f33[_0x77c64d(0xfd)],'version':_0x285f33[_0x77c64d(0xfb)],'ragStatus':_0x285f33[_0x77c64d(0x118)],'ragErrorMessage':_0x285f33[_0x77c64d(0x105)],'updateTime':_0x285f33['updateTime']};}function detailPersonalItem(_0x103a34){const _0xa9a57d=a33_0x1912b8;return{'id':_0x103a34['id'],'appCode':_0x103a34[_0xa9a57d(0xfe)],'scope':_0x103a34[_0xa9a57d(0x109)],'userId':_0x103a34['userId'],'title':_0x103a34['title'],'content':_0x103a34[_0xa9a57d(0x117)]??'','version':_0x103a34[_0xa9a57d(0xfb)],'ragStatus':_0x103a34['ragStatus'],'ragErrorMessage':_0x103a34[_0xa9a57d(0x105)],'createTime':_0x103a34[_0xa9a57d(0x126)],'updateTime':_0x103a34[_0xa9a57d(0x114)]};}function readTopK(_0x5a55b7){const _0x1e5199=a33_0x1912b8,_0x4dcc56=_0x5a55b7['flag'](_0x1e5199(0x102));if(_0x4dcc56===undefined||_0x4dcc56===null||_0x4dcc56==='')return undefined;const _0xbf2651=_0x5a55b7[_0x1e5199(0x120)]('topk');if(!Number[_0x1e5199(0x111)](_0xbf2651)||_0xbf2651<0x1||_0xbf2651>0x32)throw CliErrors[_0x1e5199(0x11c)](_0x1e5199(0x116));return _0xbf2651;}const kbList={'service':'kb','command':'list','description':a33_0x1912b8(0xf0),'risk':a33_0x1912b8(0xfa),'flags':[VERBOSE_FLAG],async 'execute'(_0x1a1cb3){const _0x5b621f=a33_0x1912b8,_0x24dbe4=await listPersonalKnowledgeBaseItems(_0x1a1cb3[_0x5b621f(0xfe)]);if(_0x1a1cb3[_0x5b621f(0xff)](_0x5b621f(0x10c)))return{'ok':!![],'data':{'total':_0x24dbe4[_0x5b621f(0x11a)],'items':_0x24dbe4}};return{'ok':!![],'data':{'total':_0x24dbe4['length'],'items':_0x24dbe4['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x1912b8(0x100),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a33_0x1912b8(0xf1)}],async 'execute'(_0x1d8395){const _0x4fcfbb=a33_0x1912b8,_0x10e4a8=await getPersonalKnowledgeBaseItem(_0x1d8395['num']('id'),_0x1d8395[_0x4fcfbb(0xfe)]);return{'ok':!![],'data':detailPersonalItem(_0x10e4a8)};}},kbCreate={'service':'kb','command':'create','description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0x1912b8(0xfc),'confirmationDescription':a33_0x1912b8(0x124),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x41158a){const _0x94521d=a33_0x1912b8,_0x57d78d=_0x41158a[_0x94521d(0x119)](_0x94521d(0xfd)),_0x4fb355=readKnowledgeFile(_0x41158a['str'](_0x94521d(0xf4))),_0xd1777b=await createPersonalKnowledgeBaseItem(_0x41158a['appCode'],{'title':_0x57d78d,'content':_0x4fb355});return{'ok':!![],'data':summarizePersonalItem(_0xd1777b),'message':'Created\x20KB\x20entry\x20'+_0xd1777b['id']+'\x20('+_0xd1777b['title']+')'};},async 'dryRun'(_0x52c4b9){const _0x5e4756=a33_0x1912b8,_0xfcf16=_0x52c4b9[_0x5e4756(0x119)]('title'),_0x4acb31=readKnowledgeFile(_0x52c4b9[_0x5e4756(0x119)](_0x5e4756(0xf4)));return dryRun(_0x5e4756(0x11d),_0x5e4756(0x11f))[_0x5e4756(0x10b)]({'appCode':_0x52c4b9[_0x5e4756(0xfe)],'title':_0xfcf16,'content':_0x4acb31})[_0x5e4756(0x113)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0xfcf16+'\x22')['build']();}},kbUpdate={'service':'kb','command':a33_0x1912b8(0xf6),'description':a33_0x1912b8(0x108),'risk':'write','confirmationDescription':a33_0x1912b8(0x107),'flags':[{...ID_FLAG,'description':a33_0x1912b8(0xf1)},{...TITLE_FLAG,'required':![],'description':a33_0x1912b8(0xf9)},FILE_FLAG],async 'execute'(_0x3783e9){const _0x5813a3=a33_0x1912b8,_0x299a28=_0x3783e9['num']('id'),_0x7bf692=readKnowledgeFile(_0x3783e9[_0x5813a3(0x119)]('file')),_0x4e2c87=_0x3783e9[_0x5813a3(0x119)](_0x5813a3(0xfd))||(await getPersonalKnowledgeBaseItem(_0x299a28,_0x3783e9[_0x5813a3(0xfe)]))[_0x5813a3(0xfd)],_0x15c86a=await updatePersonalKnowledgeBaseItem(_0x299a28,_0x3783e9[_0x5813a3(0xfe)],{'title':_0x4e2c87,'content':_0x7bf692});return{'ok':!![],'data':summarizePersonalItem(_0x15c86a),'message':_0x5813a3(0x129)+_0x15c86a['id']+'\x20('+_0x15c86a['title']+')'};},async 'dryRun'(_0x2b713d){const _0x3d23d7=a33_0x1912b8,_0x1de42e=_0x2b713d[_0x3d23d7(0x120)]('id'),_0x8ad611=readKnowledgeFile(_0x2b713d[_0x3d23d7(0x119)]('file')),_0x542b63=_0x2b713d[_0x3d23d7(0x119)](_0x3d23d7(0xfd))||(await getPersonalKnowledgeBaseItem(_0x1de42e,_0x2b713d[_0x3d23d7(0xfe)]))[_0x3d23d7(0xfd)];return dryRun('POST','/client/knowledge-base/personal/'+_0x1de42e+_0x3d23d7(0xef))[_0x3d23d7(0x10b)]({'appCode':_0x2b713d[_0x3d23d7(0xfe)],'title':_0x542b63,'content':_0x8ad611})[_0x3d23d7(0x113)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1de42e)[_0x3d23d7(0xf7)]();}},kbSearch={'service':'kb','command':'search','description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a33_0x1912b8(0xfa),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x19d3c2){const _0x418bd5=a33_0x1912b8;if(!_0x19d3c2[_0x418bd5(0x119)](_0x418bd5(0xed))[_0x418bd5(0x112)]())throw CliErrors['validation'](_0x418bd5(0xec));readTopK(_0x19d3c2);},async 'execute'(_0x41c74b){const _0x2f9e77=a33_0x1912b8,_0x590690=_0x41c74b[_0x2f9e77(0x119)]('query')[_0x2f9e77(0x112)](),_0x1de134=readTopK(_0x41c74b),_0x5df7da=await searchRuntimeKnowledge({'appCode':_0x41c74b[_0x2f9e77(0xfe)],'accessKey':_0x41c74b['accessKey']??'','query':_0x590690,..._0x1de134!==undefined?{'topK':_0x1de134}:{},'signal':_0x41c74b[_0x2f9e77(0x11e)]});return{'ok':!![],'data':_0x5df7da};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];function a33_0x1d7d(){const _0x3dc471=['Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','content','ragStatus','str','length','isFile','validation','POST','signal','/client/knowledge-base/personal/create','num','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','File\x20not\x20found:\x20','string','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','File\x20path\x20is\x20required.','createTime','173750RtglSq','3039952uvkIyz','Updated\x20KB\x20entry\x20','Search\x20query\x20is\x20required.','query','Personal\x20knowledge-base\x20entry\x20title','/update','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Personal\x20knowledge-base\x20entry\x20ID','1TJgarD','10MUWJtj','file','8160rrJVmw','update','build','10722klBwOI','Override\x20the\x20existing\x20entry\x20title','read','version','write','title','appCode','bool','detail','595GprBDK','topk','utf8','6592586pCVNmj','ragErrorMessage','File\x20is\x20not\x20a\x20regular\x20file:\x20','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','scope','3470364TMIhDN','body','verbose','number','791fAXIzu','2940363AnwjJa','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','isSafeInteger','trim','description','updateTime'];a33_0x1d7d=function(){return _0x3dc471;};return a33_0x1d7d();}
@@ -1 +1 @@
1
- const a34_0x1a2806=a34_0x2236;function a34_0x2236(_0x2cc8cc,_0x3e6554){_0x2cc8cc=_0x2cc8cc-0xb0;const _0x3ae788=a34_0x3ae7();let _0x223648=_0x3ae788[_0x2cc8cc];return _0x223648;}(function(_0x572d7f,_0x55cfbd){const _0x1118a9=a34_0x2236,_0x368b92=_0x572d7f();while(!![]){try{const _0x5420ba=-parseInt(_0x1118a9(0xca))/0x1*(parseInt(_0x1118a9(0xc5))/0x2)+-parseInt(_0x1118a9(0xb8))/0x3*(parseInt(_0x1118a9(0xcb))/0x4)+-parseInt(_0x1118a9(0xbf))/0x5+-parseInt(_0x1118a9(0xc7))/0x6*(parseInt(_0x1118a9(0xb2))/0x7)+-parseInt(_0x1118a9(0xb7))/0x8+parseInt(_0x1118a9(0xba))/0x9+parseInt(_0x1118a9(0xbd))/0xa*(parseInt(_0x1118a9(0xb1))/0xb);if(_0x5420ba===_0x55cfbd)break;else _0x368b92['push'](_0x368b92['shift']());}catch(_0x255928){_0x368b92['push'](_0x368b92['shift']());}}}(a34_0x3ae7,0x610e8));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x2242bf){const _0x172e26=a34_0x2236;if(_0x2242bf[_0x172e26(0xc3)]===0x0){console[_0x172e26(0xc4)]('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x2242bf[_0x172e26(0xcc)]((_0x178087,_0x4cdb55)=>{const _0x49d5e4=_0x172e26,_0x5c8ef2=new Date(_0x178087[_0x49d5e4(0xb0)])[_0x49d5e4(0xbe)](_0x49d5e4(0xc6)),_0x1970f6=_0x178087[_0x49d5e4(0xb9)]==='success'?'√':_0x178087[_0x49d5e4(0xb9)]===_0x49d5e4(0xb6)?'×':_0x178087[_0x49d5e4(0xb9)]===_0x49d5e4(0xc8)?'!':'i';console[_0x49d5e4(0xc4)](_0x4cdb55+0x1+'.\x20'+_0x1970f6+'\x20['+_0x178087['command']+']\x20'+_0x178087['message']),console[_0x49d5e4(0xc4)](_0x49d5e4(0xbb)+_0x5c8ef2),_0x178087[_0x49d5e4(0xb5)]&&console[_0x49d5e4(0xc4)](_0x49d5e4(0xc0)+_0x178087[_0x49d5e4(0xb5)]+'ms'),_0x178087[_0x49d5e4(0xbc)]&&Object[_0x49d5e4(0xb3)](_0x178087['details'])['length']>0x0&&console[_0x49d5e4(0xc4)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x178087[_0x49d5e4(0xbc)],null,0x2)),console[_0x49d5e4(0xc4)]('');});}export const logsDefinitions=[{'service':a34_0x1a2806(0xc2),'command':'show','description':a34_0x1a2806(0xc1),'risk':a34_0x1a2806(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1b862b){const _0x52d185=a34_0x1a2806;return printLogs(logger[_0x52d185(0xc9)]()),{'ok':!![]};}}];function a34_0x3ae7(){const _0x4eba04=['toLocaleString','3267775Gxcong','\x20\x20\x20Duration:\x20','View\x20command\x20history\x20logs','logs','length','log','2fwrGOu','en-US','378owMoen','warn','readLogs','786391hdJSFg','2906748WVIdzy','forEach','timestamp','15348949hkBzUK','35896Seirra','keys','read','duration','error','5154088jgegdl','3TWdYQR','level','6667056QLiaZw','\x20\x20\x20Time:\x20','details','20KukBFx'];a34_0x3ae7=function(){return _0x4eba04;};return a34_0x3ae7();}
1
+ const a34_0x1ddf00=a34_0x35c1;(function(_0x566e12,_0x1b4c4f){const _0x33c088=a34_0x35c1,_0x1b161f=_0x566e12();while(!![]){try{const _0x58111b=-parseInt(_0x33c088(0x9b))/0x1*(-parseInt(_0x33c088(0x93))/0x2)+parseInt(_0x33c088(0x88))/0x3*(-parseInt(_0x33c088(0x9e))/0x4)+-parseInt(_0x33c088(0x98))/0x5+-parseInt(_0x33c088(0x9f))/0x6+parseInt(_0x33c088(0x84))/0x7+-parseInt(_0x33c088(0x8f))/0x8+parseInt(_0x33c088(0x95))/0x9;if(_0x58111b===_0x1b4c4f)break;else _0x1b161f['push'](_0x1b161f['shift']());}catch(_0x11f21d){_0x1b161f['push'](_0x1b161f['shift']());}}}(a34_0x9a27,0x7d053));import{logger}from'../../utils/logger.js';function a34_0x9a27(){const _0x212870=['level','378789ApsQyO','warn','details','\x20\x20\x20Duration:\x20','toLocaleString','readLogs','duration','3716272zmbtGM','forEach','log','timestamp','78HNzeLD','error','14479614WkqxnA','en-US','message','4848780XvCkpI','command','View\x20command\x20history\x20logs','19914APQPKb','logs','length','12bnuqQJ','4742358emBXPt','stringify','\x20\x20\x20Time:\x20','5110441yqSOfL','*\x20No\x20logs\x20found','read'];a34_0x9a27=function(){return _0x212870;};return a34_0x9a27();}function a34_0x35c1(_0x2e6910,_0x18181c){_0x2e6910=_0x2e6910-0x83;const _0x9a276c=a34_0x9a27();let _0x35c137=_0x9a276c[_0x2e6910];return _0x35c137;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x524fd8){const _0x27121a=a34_0x35c1;if(_0x524fd8[_0x27121a(0x9d)]===0x0){console[_0x27121a(0x91)](_0x27121a(0x85));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x524fd8[_0x27121a(0x90)]((_0x5152ea,_0x37c7ae)=>{const _0x4fef1d=_0x27121a,_0x34be95=new Date(_0x5152ea[_0x4fef1d(0x92)])[_0x4fef1d(0x8c)](_0x4fef1d(0x96)),_0xb9e940=_0x5152ea[_0x4fef1d(0x87)]==='success'?'√':_0x5152ea[_0x4fef1d(0x87)]===_0x4fef1d(0x94)?'×':_0x5152ea[_0x4fef1d(0x87)]===_0x4fef1d(0x89)?'!':'i';console['log'](_0x37c7ae+0x1+'.\x20'+_0xb9e940+'\x20['+_0x5152ea[_0x4fef1d(0x99)]+']\x20'+_0x5152ea[_0x4fef1d(0x97)]),console['log'](_0x4fef1d(0x83)+_0x34be95),_0x5152ea[_0x4fef1d(0x8e)]&&console[_0x4fef1d(0x91)](_0x4fef1d(0x8b)+_0x5152ea[_0x4fef1d(0x8e)]+'ms'),_0x5152ea['details']&&Object['keys'](_0x5152ea[_0x4fef1d(0x8a)])[_0x4fef1d(0x9d)]>0x0&&console[_0x4fef1d(0x91)]('\x20\x20\x20Details:\x20'+JSON[_0x4fef1d(0xa0)](_0x5152ea['details'],null,0x2)),console[_0x4fef1d(0x91)]('');});}export const logsDefinitions=[{'service':a34_0x1ddf00(0x9c),'command':'show','description':a34_0x1ddf00(0x9a),'risk':a34_0x1ddf00(0x86),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x212f7a){const _0x740085=a34_0x1ddf00;return printLogs(logger[_0x740085(0x8d)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x50106d=a35_0x131f;(function(_0x2a29e5,_0x352a24){const _0x72eb72=a35_0x131f,_0x2563df=_0x2a29e5();while(!![]){try{const _0x5fe81c=-parseInt(_0x72eb72(0x107))/0x1*(-parseInt(_0x72eb72(0x100))/0x2)+parseInt(_0x72eb72(0xfc))/0x3+parseInt(_0x72eb72(0xf6))/0x4*(parseInt(_0x72eb72(0x101))/0x5)+parseInt(_0x72eb72(0x103))/0x6+-parseInt(_0x72eb72(0xfe))/0x7+-parseInt(_0x72eb72(0xff))/0x8*(-parseInt(_0x72eb72(0xfd))/0x9)+-parseInt(_0x72eb72(0xf7))/0xa;if(_0x5fe81c===_0x352a24)break;else _0x2563df['push'](_0x2563df['shift']());}catch(_0x584dd6){_0x2563df['push'](_0x2563df['shift']());}}}(a35_0x443c,0x32e41));function a35_0x443c(){const _0x3d2596=['4448NdsBUP','119855BzNibG','config-list','190344jnPpbn','length','type','map','98OogJjd','\x20notification\x20config(s)','56wCiPPH','6516160rPCIMw','appCode','notification','EMAIL','read','256767CFjSpc','522YYZwHU','524076fxUYuW','36424pekSJk'];a35_0x443c=function(){return _0x3d2596;};return a35_0x443c();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a35_0x131f(_0x516898,_0x277c3c){_0x516898=_0x516898-0xf5;const _0x443c4c=a35_0x443c();let _0x131ffa=_0x443c4c[_0x516898];return _0x131ffa;}export const notificationConfigList={'service':a35_0x50106d(0xf9),'command':a35_0x50106d(0x102),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a35_0x50106d(0xfb),'flags':[{'name':a35_0x50106d(0x105),'type':'string','description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x50106d(0xfa)}],async 'validate'(_0x4cf859){readNotificationChannelType(_0x4cf859);},async 'execute'(_0x326db0){const _0x235d28=a35_0x50106d,_0x160b92=readNotificationChannelType(_0x326db0),_0x46cda9=await listNotificationChannelConfigs(_0x326db0['appCode'],_0x160b92),_0x50c2d4=_0x46cda9[_0x235d28(0x106)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x326db0[_0x235d28(0xf8)],'channelType':_0x160b92,'count':_0x50c2d4[_0x235d28(0x104)],'configs':_0x50c2d4},'message':'Found\x20'+_0x50c2d4['length']+'\x20'+_0x160b92+_0x235d28(0xf5)};}};
1
+ function a35_0x13e7(){const _0x1047f0=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','appCode','config-list','120470rBXiSx','16WoFkqG','1324512xmuUBx','string','436032vPNWjR','EMAIL','type','\x20notification\x20config(s)','Notification\x20channel\x20type','259452WFADgN','read','233575OYZXGp','1280376ZCntAD','2746336unMjNR','length','notification'];a35_0x13e7=function(){return _0x1047f0;};return a35_0x13e7();}const a35_0x5393f8=a35_0x59fb;function a35_0x59fb(_0x5a68d3,_0x1dbdfa){_0x5a68d3=_0x5a68d3-0x9e;const _0x13e7ca=a35_0x13e7();let _0x59fb3b=_0x13e7ca[_0x5a68d3];return _0x59fb3b;}(function(_0x4b69a0,_0x26b071){const _0x5927c0=a35_0x59fb,_0x581d82=_0x4b69a0();while(!![]){try{const _0x180345=parseInt(_0x5927c0(0xad))/0x1+parseInt(_0x5927c0(0x9e))/0x2+-parseInt(_0x5927c0(0xa3))/0x3+parseInt(_0x5927c0(0xae))/0x4*(parseInt(_0x5927c0(0xa5))/0x5)+parseInt(_0x5927c0(0xa6))/0x6+-parseInt(_0x5927c0(0xaf))/0x7+-parseInt(_0x5927c0(0xa7))/0x8;if(_0x180345===_0x26b071)break;else _0x581d82['push'](_0x581d82['shift']());}catch(_0x5061ed){_0x581d82['push'](_0x581d82['shift']());}}}(a35_0x13e7,0x1d3c6));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x5393f8(0xa9),'command':a35_0x5393f8(0xac),'description':a35_0x5393f8(0xaa),'risk':a35_0x5393f8(0xa4),'flags':[{'name':a35_0x5393f8(0xa0),'type':a35_0x5393f8(0xb0),'description':a35_0x5393f8(0xa2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x5393f8(0x9f)}],async 'validate'(_0x7391fe){readNotificationChannelType(_0x7391fe);},async 'execute'(_0x2862a7){const _0x3cdad3=a35_0x5393f8,_0x3fff93=readNotificationChannelType(_0x2862a7),_0x5ac7f1=await listNotificationChannelConfigs(_0x2862a7[_0x3cdad3(0xab)],_0x3fff93),_0x1f3f1e=_0x5ac7f1['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2862a7['appCode'],'channelType':_0x3fff93,'count':_0x1f3f1e[_0x3cdad3(0xa8)],'configs':_0x1f3f1e},'message':'Found\x20'+_0x1f3f1e[_0x3cdad3(0xa8)]+'\x20'+_0x3fff93+_0x3cdad3(0xa1)};}};
@@ -1 +1 @@
1
- function a36_0x343e(){const _0x47acd7=['5JkXLud','33EvUSnS','9313740eHbTZK','1138440pugJTw','94362LetqbE','116arSJRa','21976884kWetLx','5437980ezeegl','49eRBAje','4464762BCKkFi','236MihiqS','7207QKOnES'];a36_0x343e=function(){return _0x47acd7;};return a36_0x343e();}function a36_0x4ea8(_0x517366,_0x5ada22){_0x517366=_0x517366-0x166;const _0x343ee=a36_0x343e();let _0x4ea846=_0x343ee[_0x517366];return _0x4ea846;}(function(_0x4b7970,_0x401819){const _0x2e930d=a36_0x4ea8,_0x44f4fb=_0x4b7970();while(!![]){try{const _0x4613c3=-parseInt(_0x2e930d(0x167))/0x1*(-parseInt(_0x2e930d(0x166))/0x2)+-parseInt(_0x2e930d(0x16c))/0x3*(parseInt(_0x2e930d(0x16d))/0x4)+-parseInt(_0x2e930d(0x168))/0x5*(-parseInt(_0x2e930d(0x171))/0x6)+-parseInt(_0x2e930d(0x170))/0x7*(parseInt(_0x2e930d(0x16b))/0x8)+parseInt(_0x2e930d(0x16a))/0x9+parseInt(_0x2e930d(0x16f))/0xa*(-parseInt(_0x2e930d(0x169))/0xb)+parseInt(_0x2e930d(0x16e))/0xc;if(_0x4613c3===_0x401819)break;else _0x44f4fb['push'](_0x44f4fb['shift']());}catch(_0x4e78f3){_0x44f4fb['push'](_0x44f4fb['shift']());}}}(a36_0x343e,0xe0e25));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ function a36_0x581b(){const _0x1c70ed=['1bxkFdX','79263ZTWXIi','2949930vCfEaR','12544BQUAKw','8cWewIm','1030VfXeNy','3616TPojpg','831925abZgmm','99910BpMFhk','30050229ohSOVy','6227430lwQija'];a36_0x581b=function(){return _0x1c70ed;};return a36_0x581b();}function a36_0x1b7e(_0x4f9069,_0x1dac73){_0x4f9069=_0x4f9069-0x161;const _0x581b33=a36_0x581b();let _0x1b7e2d=_0x581b33[_0x4f9069];return _0x1b7e2d;}(function(_0x471325,_0xdfa43c){const _0x4d6703=a36_0x1b7e,_0x489d9b=_0x471325();while(!![]){try{const _0x7309d8=parseInt(_0x4d6703(0x166))/0x1*(parseInt(_0x4d6703(0x163))/0x2)+-parseInt(_0x4d6703(0x168))/0x3+parseInt(_0x4d6703(0x16a))/0x4*(-parseInt(_0x4d6703(0x162))/0x5)+-parseInt(_0x4d6703(0x165))/0x6+-parseInt(_0x4d6703(0x169))/0x7*(parseInt(_0x4d6703(0x161))/0x8)+-parseInt(_0x4d6703(0x167))/0x9*(-parseInt(_0x4d6703(0x16b))/0xa)+parseInt(_0x4d6703(0x164))/0xb;if(_0x7309d8===_0xdfa43c)break;else _0x489d9b['push'](_0x489d9b['shift']());}catch(_0x2cb772){_0x489d9b['push'](_0x489d9b['shift']());}}}(a36_0x581b,0x80292));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a37_0x2bfe70=a37_0x18d6;(function(_0x13d4c5,_0x3296e6){const _0xe3879f=a37_0x18d6,_0x1b3076=_0x13d4c5();while(!![]){try{const _0x5327d1=parseInt(_0xe3879f(0x1e6))/0x1+parseInt(_0xe3879f(0x1ec))/0x2*(parseInt(_0xe3879f(0x1eb))/0x3)+parseInt(_0xe3879f(0x1d8))/0x4*(parseInt(_0xe3879f(0x1ea))/0x5)+parseInt(_0xe3879f(0x1df))/0x6*(-parseInt(_0xe3879f(0x1ed))/0x7)+-parseInt(_0xe3879f(0x1e3))/0x8*(-parseInt(_0xe3879f(0x1ee))/0x9)+parseInt(_0xe3879f(0x1f6))/0xa+-parseInt(_0xe3879f(0x1e0))/0xb;if(_0x5327d1===_0x3296e6)break;else _0x1b3076['push'](_0x1b3076['shift']());}catch(_0x13763d){_0x1b3076['push'](_0x1b3076['shift']());}}}(a37_0x5d82,0x371b4));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x2bfe70(0x1f2),a37_0x2bfe70(0x1f0),a37_0x2bfe70(0x1e9),a37_0x2bfe70(0x1f5),a37_0x2bfe70(0x1e5)];export function readNotificationChannelType(_0x2c4dcf){const _0x4857df=a37_0x2bfe70,_0x593056=_0x2c4dcf[_0x4857df(0x1d9)](_0x4857df(0x1f3))[_0x4857df(0x1e4)]()||_0x4857df(0x1f2);if(!NOTIFICATION_CHANNEL_TYPES[_0x4857df(0x1dd)](_0x593056))throw CliErrors[_0x4857df(0x1db)](_0x4857df(0x1da)+_0x593056,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x4857df(0x1e2)](',\x20')+'.');return _0x593056;}export function projectNotificationListConfig(_0x5c9207,_0x423ccd){const _0xa6db7c=a37_0x2bfe70,_0x2d9124=requireResponseObject(_0x5c9207,_0x423ccd);return{'configCode':requireResponseString(_0x2d9124[_0xa6db7c(0x1f8)],'configCode',_0x423ccd),'configName':requireResponseString(_0x2d9124[_0xa6db7c(0x1e1)],_0xa6db7c(0x1e1),_0x423ccd),'channelType':requireResponseString(_0x2d9124[_0xa6db7c(0x1f1)],'channelType',_0x423ccd),'description':normalizeNullableString(_0x2d9124[_0xa6db7c(0x1e8)])};}function a37_0x18d6(_0x5ee4fc,_0x5604d8){_0x5ee4fc=_0x5ee4fc-0x1d8;const _0x5d828f=a37_0x5d82();let _0x18d6c0=_0x5d828f[_0x5ee4fc];return _0x18d6c0;}function requireResponseObject(_0x59d990,_0x21b9c5){const _0x2ddc0f=a37_0x2bfe70;if(typeof _0x59d990!=='object'||_0x59d990===null||Array[_0x2ddc0f(0x1f7)](_0x59d990))throw CliErrors[_0x2ddc0f(0x1de)]('Invalid\x20notification\x20config\x20response.',_0x2ddc0f(0x1dc)+(_0x21b9c5+0x1)+'\x20must\x20be\x20an\x20object.');return _0x59d990;}function a37_0x5d82(){const _0x15f789=['includes','apiError','3180NYFnHw','9234599HawDoq','configName','join','8dIcvGn','trim','WEBHOOK','73832hBTtON','string','description','DINGTALK','455065cnxPjc','81qFEdKC','14244XUpMMp','777buffIy','1339551kWmADK','\x20is\x20missing\x20required\x20field\x20\x22','FEISHU','channelType','EMAIL','type','Invalid\x20notification\x20config\x20response.','WECOM','3450380QeGjGx','isArray','configCode','16GYJzmN','str','Invalid\x20--type:\x20','validation','Item\x20'];a37_0x5d82=function(){return _0x15f789;};return a37_0x5d82();}function requireResponseString(_0xe8b590,_0x53e830,_0x1cc733){const _0x29cf2a=a37_0x2bfe70;if(typeof _0xe8b590!==_0x29cf2a(0x1e7)||!_0xe8b590[_0x29cf2a(0x1e4)]())throw CliErrors[_0x29cf2a(0x1de)](_0x29cf2a(0x1f4),_0x29cf2a(0x1dc)+(_0x1cc733+0x1)+_0x29cf2a(0x1ef)+_0x53e830+'\x22.');return _0xe8b590[_0x29cf2a(0x1e4)]();}function normalizeNullableString(_0x277c13){const _0x37bba9=a37_0x2bfe70;return typeof _0x277c13==='string'&&_0x277c13['trim']()?_0x277c13[_0x37bba9(0x1e4)]():null;}
1
+ const a37_0xb81c36=a37_0x8bf9;(function(_0x25d22b,_0x5ce6be){const _0x219f56=a37_0x8bf9,_0x3e3a03=_0x25d22b();while(!![]){try{const _0x96b9e9=-parseInt(_0x219f56(0x198))/0x1*(-parseInt(_0x219f56(0x1a6))/0x2)+parseInt(_0x219f56(0x1a9))/0x3+parseInt(_0x219f56(0x194))/0x4*(parseInt(_0x219f56(0x1a4))/0x5)+-parseInt(_0x219f56(0x196))/0x6+parseInt(_0x219f56(0x19b))/0x7+-parseInt(_0x219f56(0x1a1))/0x8+-parseInt(_0x219f56(0x1ae))/0x9;if(_0x96b9e9===_0x5ce6be)break;else _0x3e3a03['push'](_0x3e3a03['shift']());}catch(_0x3a79b2){_0x3e3a03['push'](_0x3e3a03['shift']());}}}(a37_0x4dff,0x3d98e));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0xb81c36(0x1ab),'FEISHU',a37_0xb81c36(0x199),a37_0xb81c36(0x1a5),a37_0xb81c36(0x19c)];export function readNotificationChannelType(_0x3fce90){const _0x50f460=a37_0xb81c36,_0xd0a350=_0x3fce90[_0x50f460(0x1a2)](_0x50f460(0x1aa))[_0x50f460(0x195)]()||_0x50f460(0x1ab);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0xd0a350))throw CliErrors['validation']('Invalid\x20--type:\x20'+_0xd0a350,_0x50f460(0x1ac)+NOTIFICATION_CHANNEL_TYPES[_0x50f460(0x19a)](',\x20')+'.');return _0xd0a350;}export function projectNotificationListConfig(_0x2f5d25,_0x38b631){const _0x3aa78e=a37_0xb81c36,_0x35255b=requireResponseObject(_0x2f5d25,_0x38b631);return{'configCode':requireResponseString(_0x35255b[_0x3aa78e(0x1a0)],'configCode',_0x38b631),'configName':requireResponseString(_0x35255b['configName'],_0x3aa78e(0x1ad),_0x38b631),'channelType':requireResponseString(_0x35255b[_0x3aa78e(0x19f)],_0x3aa78e(0x19f),_0x38b631),'description':normalizeNullableString(_0x35255b[_0x3aa78e(0x1a7)])};}function requireResponseObject(_0x5cecc5,_0x5f8c2f){const _0x3038b3=a37_0xb81c36;if(typeof _0x5cecc5!=='object'||_0x5cecc5===null||Array[_0x3038b3(0x19e)](_0x5cecc5))throw CliErrors['apiError'](_0x3038b3(0x1a8),'Item\x20'+(_0x5f8c2f+0x1)+_0x3038b3(0x1a3));return _0x5cecc5;}function a37_0x8bf9(_0x524a28,_0x1cd4c2){_0x524a28=_0x524a28-0x194;const _0x4dffff=a37_0x4dff();let _0x8bf9e=_0x4dffff[_0x524a28];return _0x8bf9e;}function requireResponseString(_0x4af599,_0x4aac32,_0x985f8b){const _0x1ece90=a37_0xb81c36;if(typeof _0x4af599!==_0x1ece90(0x19d)||!_0x4af599[_0x1ece90(0x195)]())throw CliErrors['apiError'](_0x1ece90(0x1a8),'Item\x20'+(_0x985f8b+0x1)+_0x1ece90(0x197)+_0x4aac32+'\x22.');return _0x4af599[_0x1ece90(0x195)]();}function normalizeNullableString(_0x1b3f9b){const _0x5c9170=a37_0xb81c36;return typeof _0x1b3f9b===_0x5c9170(0x19d)&&_0x1b3f9b[_0x5c9170(0x195)]()?_0x1b3f9b['trim']():null;}function a37_0x4dff(){const _0x2d310f=['Allowed\x20values:\x20','configName','2244582Bymhoy','64600gEjFbi','trim','497760KSrrXT','\x20is\x20missing\x20required\x20field\x20\x22','66754FxifMm','DINGTALK','join','779289QzQxVr','WEBHOOK','string','isArray','channelType','configCode','3605272CuPBpO','str','\x20must\x20be\x20an\x20object.','125pUiKHX','WECOM','14LVbpyq','description','Invalid\x20notification\x20config\x20response.','158892rKKIQA','type','EMAIL'];a37_0x4dff=function(){return _0x2d310f;};return a37_0x4dff();}
@@ -1 +1 @@
1
- const a38_0x2173eb=a38_0x18b9;(function(_0x1222d6,_0x2efc97){const _0x2ae3ca=a38_0x18b9,_0x6b9637=_0x1222d6();while(!![]){try{const _0x3ac5e7=-parseInt(_0x2ae3ca(0x13c))/0x1+-parseInt(_0x2ae3ca(0x116))/0x2+parseInt(_0x2ae3ca(0x140))/0x3*(parseInt(_0x2ae3ca(0x12a))/0x4)+parseInt(_0x2ae3ca(0x137))/0x5+-parseInt(_0x2ae3ca(0x125))/0x6*(-parseInt(_0x2ae3ca(0x113))/0x7)+-parseInt(_0x2ae3ca(0x114))/0x8*(-parseInt(_0x2ae3ca(0x136))/0x9)+-parseInt(_0x2ae3ca(0x139))/0xa;if(_0x3ac5e7===_0x2efc97)break;else _0x6b9637['push'](_0x6b9637['shift']());}catch(_0x38f61f){_0x6b9637['push'](_0x6b9637['shift']());}}}(a38_0x5421,0xe3ba8));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_0x2173eb(0x110),'general',a38_0x2173eb(0x13e),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x2173eb(0x13a),'general':a38_0x2173eb(0x10d),'form':a38_0x2173eb(0x12c),'idCard':a38_0x2173eb(0x118)},SCENE_FLAG={'name':a38_0x2173eb(0x11a),'type':a38_0x2173eb(0x126),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x2173eb(0x131)},IMAGE_FILE_FLAG={'name':a38_0x2173eb(0x112),'type':a38_0x2173eb(0x126),'description':a38_0x2173eb(0x11d)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x2173eb(0x126),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function a38_0x18b9(_0x4bd4fe,_0x534215){_0x4bd4fe=_0x4bd4fe-0x10c;const _0x54212b=a38_0x5421();let _0x18b959=_0x54212b[_0x4bd4fe];return _0x18b959;}function normalizeScene(_0x450cec){const _0x386006=a38_0x2173eb,_0x2df429=_0x450cec[_0x386006(0x12f)]()['toLowerCase']();if(_0x2df429===_0x386006(0x134))return _0x386006(0x117);if(_0x2df429===_0x386006(0x110)||_0x2df429===_0x386006(0x12e)||_0x2df429===_0x386006(0x13e))return _0x2df429;throw CliErrors['validation']('Unsupported\x20OCR\x20scene:\x20'+_0x450cec+_0x386006(0x124)+SUPPORTED_SCENES[_0x386006(0x13b)](',\x20'));}function selectedInputs(_0x93b4b9){const _0x4b1492=a38_0x2173eb,_0x4de1ae=_0x93b4b9[_0x4b1492(0x128)](_0x4b1492(0x112))['trim'](),_0x4674f8=_0x93b4b9[_0x4b1492(0x128)](_0x4b1492(0x11f))['trim']();return{'imageFile':_0x4de1ae,'imageUrl':_0x4674f8,'count':[_0x4de1ae,_0x4674f8]['filter'](Boolean)['length']};}function validateInputSelection(_0x56653c){const _0x49fa28=a38_0x2173eb,_0x58a386=selectedInputs(_0x56653c);if(_0x58a386[_0x49fa28(0x135)]!==0x1)throw CliErrors[_0x49fa28(0x120)](_0x49fa28(0x11c));return _0x58a386;}function withScene(_0x364176,_0x2b73cf,_0x5dbf32){const _0x39e432=a38_0x2173eb;return{..._0x364176,'scene':_0x2b73cf,..._0x5dbf32?{'sourceFile':{'fileName':_0x5dbf32[_0x39e432(0x122)],'filePath':_0x5dbf32[_0x39e432(0x133)]}}:{}};}const ocrRecognize={'service':'ocr','command':a38_0x2173eb(0x12d),'description':a38_0x2173eb(0x10f),'risk':a38_0x2173eb(0x138),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x2d460c){const _0x3f51b0=a38_0x2173eb,_0x3e2892=normalizeScene(_0x2d460c['str'](_0x3f51b0(0x11a))),_0xaff80a=SCENE_TO_LEGACY_TYPE[_0x3e2892],_0x34bbdd=validateInputSelection(_0x2d460c);if(_0x34bbdd[_0x3f51b0(0x12b)])return dryRun(_0x3f51b0(0x129),'/client/ocr')['body']({'appCode':_0x2d460c['appCode'],'url':_0x34bbdd[_0x3f51b0(0x12b)],'type':_0xaff80a})[_0x3f51b0(0x11e)]('Preview:\x20recognize\x20'+_0x3e2892+'\x20OCR\x20from\x20URL')[_0x3f51b0(0x13d)]();const _0x2615a5=requireRuntimeUploadFile(_0x34bbdd[_0x3f51b0(0x119)],_0x3f51b0(0x112));return dryRun(_0x3f51b0(0x129),_0x3f51b0(0x13f))[_0x3f51b0(0x121)]({'steps':[{'method':_0x3f51b0(0x129),'url':_0x3f51b0(0x13f),'body':{'appCode':_0x2d460c[_0x3f51b0(0x111)],'multipart':{'file':_0x2615a5}}},{'method':_0x3f51b0(0x129),'url':_0x3f51b0(0x11b),'body':{'filePath':_0x3f51b0(0x10c),'downloadFlag':![]}},{'method':_0x3f51b0(0x129),'url':_0x3f51b0(0x132),'body':{'appCode':_0x2d460c[_0x3f51b0(0x111)],'url':_0x3f51b0(0x10e),'type':_0xaff80a}}]})[_0x3f51b0(0x11e)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x3e2892+_0x3f51b0(0x123))[_0x3f51b0(0x13d)]();},async 'execute'(_0x3c420e){const _0x17a7b5=a38_0x2173eb,_0x567495=normalizeScene(_0x3c420e[_0x17a7b5(0x128)](_0x17a7b5(0x11a))),_0x37e2b4=SCENE_TO_LEGACY_TYPE[_0x567495],_0x4e2480=validateInputSelection(_0x3c420e);if(_0x4e2480['imageUrl']){const _0x16dbea=await recognizeRuntimeOcr(_0x3c420e[_0x17a7b5(0x111)],{'url':_0x4e2480['imageUrl'],'type':_0x37e2b4});return{'ok':!![],'data':withScene(_0x16dbea,_0x567495)};}const _0x29cf03=requireRuntimeUploadFile(_0x4e2480[_0x17a7b5(0x119)],_0x17a7b5(0x112)),_0x482391=await uploadRuntimeFile(_0x3c420e[_0x17a7b5(0x111)],_0x29cf03[_0x17a7b5(0x127)]);if(!_0x482391[_0x17a7b5(0x133)])throw CliErrors[_0x17a7b5(0x130)](_0x17a7b5(0x115));const _0x2bcb2a=await queryRuntimeFileUrl(_0x482391[_0x17a7b5(0x133)],{'download':![]});if(!_0x2bcb2a['fileUrl'])throw CliErrors[_0x17a7b5(0x130)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x3ba4e1=await recognizeRuntimeOcr(_0x3c420e[_0x17a7b5(0x111)],{'url':_0x2bcb2a['fileUrl'],'type':_0x37e2b4});return{'ok':!![],'data':withScene(_0x3ba4e1,_0x567495,_0x482391)};}};function a38_0x5421(){const _0x34e14d=['.\x20Supported\x20scenes:\x20','384rDwXlA','string','path','str','POST','28GZbpkl','imageUrl','Table','recognize','general','trim','apiError','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','/client/ocr','filePath','idcard','count','9vLptsW','5254010TwDpnL','read','80020sxEzGS','Invoice','join','784691CiYJEE','build','form','/client/uploadFile','10398wIcejo','<filePath\x20returned\x20by\x20/client/uploadFile>','General','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','invoice','appCode','image-file','165403tpLoMa','1402472zFdBNt','File\x20upload\x20response\x20missing\x20filePath.','2074320aKRAnZ','idCard','IdCard','imageFile','scene','/client/queryFileUrl','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','description','image-url','validation','body','fileName','\x20OCR'];a38_0x5421=function(){return _0x34e14d;};return a38_0x5421();}export const ocrDefinitions=[ocrRecognize];
1
+ function a38_0x26af(){const _0x55e491=['139202bqssiz','scene','/client/ocr','string','length','invoice','str','ocr','recognize','join','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','body','6455jlrYKF','toLowerCase','validation','apiError','fileName','general','Unsupported\x20OCR\x20scene:\x20','1640MpkjDz','\x20OCR','/client/uploadFile','69714UDErmb','Invoice','File\x20URL\x20response\x20missing\x20fileUrl.','fileUrl','POST','General','3BdCYll','.\x20Supported\x20scenes:\x20','<filePath\x20returned\x20by\x20/client/uploadFile>','889344MqvRNz','174ButKpq','File\x20upload\x20response\x20missing\x20filePath.','build','Table','imageUrl','idcard','description','image-file','path','341190jUXUBD','image-url','IdCard','Publicly\x20accessible\x20image\x20or\x20file\x20URL','form','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','2583lSWLkY','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','\x20OCR\x20from\x20URL','imageFile','filePath','appCode','1946140QqQGJa','trim','/client/queryFileUrl','idCard'];a38_0x26af=function(){return _0x55e491;};return a38_0x26af();}const a38_0x2b56bb=a38_0xe0e1;(function(_0x591b63,_0x494068){const _0x25e090=a38_0xe0e1,_0x9088a7=_0x591b63();while(!![]){try{const _0x4e04e0=parseInt(_0x25e090(0x20b))/0x1+parseInt(_0x25e090(0x1f5))/0x2*(-parseInt(_0x25e090(0x211))/0x3)+-parseInt(_0x25e090(0x214))/0x4+parseInt(_0x25e090(0x201))/0x5*(parseInt(_0x25e090(0x215))/0x6)+parseInt(_0x25e090(0x224))/0x7*(parseInt(_0x25e090(0x208))/0x8)+parseInt(_0x25e090(0x21e))/0x9+parseInt(_0x25e090(0x1f1))/0xa;if(_0x4e04e0===_0x494068)break;else _0x9088a7['push'](_0x9088a7['shift']());}catch(_0x39c5a1){_0x9088a7['push'](_0x9088a7['shift']());}}}(a38_0x26af,0x1e1f9));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_0x2b56bb(0x1fa),a38_0x2b56bb(0x206),a38_0x2b56bb(0x222),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x2b56bb(0x20c),'general':a38_0x2b56bb(0x210),'form':a38_0x2b56bb(0x218),'idCard':a38_0x2b56bb(0x220)},SCENE_FLAG={'name':a38_0x2b56bb(0x1f6),'type':a38_0x2b56bb(0x1f8),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x2b56bb(0x225)},IMAGE_FILE_FLAG={'name':a38_0x2b56bb(0x21c),'type':a38_0x2b56bb(0x1f8),'description':a38_0x2b56bb(0x223)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x2b56bb(0x1f8),'description':a38_0x2b56bb(0x221)};function normalizeScene(_0x5099ef){const _0x493625=a38_0x2b56bb,_0x1354e5=_0x5099ef['trim']()[_0x493625(0x202)]();if(_0x1354e5===_0x493625(0x21a))return _0x493625(0x1f4);if(_0x1354e5===_0x493625(0x1fa)||_0x1354e5===_0x493625(0x206)||_0x1354e5===_0x493625(0x222))return _0x1354e5;throw CliErrors[_0x493625(0x203)](_0x493625(0x207)+_0x5099ef+_0x493625(0x212)+SUPPORTED_SCENES[_0x493625(0x1fe)](',\x20'));}function selectedInputs(_0x582010){const _0x47385f=a38_0x2b56bb,_0xf24ee6=_0x582010[_0x47385f(0x1fb)](_0x47385f(0x21c))[_0x47385f(0x1f2)](),_0x4b3cb1=_0x582010[_0x47385f(0x1fb)](_0x47385f(0x21f))[_0x47385f(0x1f2)]();return{'imageFile':_0xf24ee6,'imageUrl':_0x4b3cb1,'count':[_0xf24ee6,_0x4b3cb1]['filter'](Boolean)[_0x47385f(0x1f9)]};}function validateInputSelection(_0x2a8b7b){const _0x5a219c=a38_0x2b56bb,_0x4b6f07=selectedInputs(_0x2a8b7b);if(_0x4b6f07['count']!==0x1)throw CliErrors[_0x5a219c(0x203)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x4b6f07;}function withScene(_0x3bfaa8,_0x3f3de1,_0x250a36){const _0x393e63=a38_0x2b56bb;return{..._0x3bfaa8,'scene':_0x3f3de1,..._0x250a36?{'sourceFile':{'fileName':_0x250a36[_0x393e63(0x205)],'filePath':_0x250a36[_0x393e63(0x1ef)]}}:{}};}function a38_0xe0e1(_0x33ce68,_0x3e24bf){_0x33ce68=_0x33ce68-0x1ee;const _0x26afdc=a38_0x26af();let _0xe0e15b=_0x26afdc[_0x33ce68];return _0xe0e15b;}const ocrRecognize={'service':a38_0x2b56bb(0x1fc),'command':a38_0x2b56bb(0x1fd),'description':a38_0x2b56bb(0x1ff),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x256bcc){const _0x45753a=a38_0x2b56bb,_0x2d06be=normalizeScene(_0x256bcc[_0x45753a(0x1fb)](_0x45753a(0x1f6))),_0x5a43ad=SCENE_TO_LEGACY_TYPE[_0x2d06be],_0x29c4c1=validateInputSelection(_0x256bcc);if(_0x29c4c1['imageUrl'])return dryRun('POST',_0x45753a(0x1f7))[_0x45753a(0x200)]({'appCode':_0x256bcc[_0x45753a(0x1f0)],'url':_0x29c4c1[_0x45753a(0x219)],'type':_0x5a43ad})[_0x45753a(0x21b)]('Preview:\x20recognize\x20'+_0x2d06be+_0x45753a(0x226))[_0x45753a(0x217)]();const _0x4ad4c6=requireRuntimeUploadFile(_0x29c4c1[_0x45753a(0x1ee)],'image-file');return dryRun('POST','/client/uploadFile')[_0x45753a(0x200)]({'steps':[{'method':_0x45753a(0x20f),'url':_0x45753a(0x20a),'body':{'appCode':_0x256bcc['appCode'],'multipart':{'file':_0x4ad4c6}}},{'method':'POST','url':_0x45753a(0x1f3),'body':{'filePath':_0x45753a(0x213),'downloadFlag':![]}},{'method':'POST','url':_0x45753a(0x1f7),'body':{'appCode':_0x256bcc[_0x45753a(0x1f0)],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x5a43ad}}]})['description']('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x2d06be+_0x45753a(0x209))['build']();},async 'execute'(_0x553533){const _0x4bb130=a38_0x2b56bb,_0x244623=normalizeScene(_0x553533[_0x4bb130(0x1fb)](_0x4bb130(0x1f6))),_0x24b069=SCENE_TO_LEGACY_TYPE[_0x244623],_0x4fc235=validateInputSelection(_0x553533);if(_0x4fc235[_0x4bb130(0x219)]){const _0x1293f0=await recognizeRuntimeOcr(_0x553533[_0x4bb130(0x1f0)],{'url':_0x4fc235[_0x4bb130(0x219)],'type':_0x24b069});return{'ok':!![],'data':withScene(_0x1293f0,_0x244623)};}const _0x68ebb3=requireRuntimeUploadFile(_0x4fc235['imageFile'],_0x4bb130(0x21c)),_0x4dfbb5=await uploadRuntimeFile(_0x553533['appCode'],_0x68ebb3[_0x4bb130(0x21d)]);if(!_0x4dfbb5[_0x4bb130(0x1ef)])throw CliErrors[_0x4bb130(0x204)](_0x4bb130(0x216));const _0x2369f6=await queryRuntimeFileUrl(_0x4dfbb5[_0x4bb130(0x1ef)],{'download':![]});if(!_0x2369f6[_0x4bb130(0x20e)])throw CliErrors[_0x4bb130(0x204)](_0x4bb130(0x20d));const _0x88f606=await recognizeRuntimeOcr(_0x553533[_0x4bb130(0x1f0)],{'url':_0x2369f6[_0x4bb130(0x20e)],'type':_0x24b069});return{'ok':!![],'data':withScene(_0x88f606,_0x244623,_0x4dfbb5)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x2bd7fe=a39_0x72f6;(function(_0x1ef656,_0x3b1a78){const _0x5904ab=a39_0x72f6,_0x451395=_0x1ef656();while(!![]){try{const _0x7bc6c5=parseInt(_0x5904ab(0xff))/0x1*(-parseInt(_0x5904ab(0x102))/0x2)+-parseInt(_0x5904ab(0xf0))/0x3+-parseInt(_0x5904ab(0xf3))/0x4*(-parseInt(_0x5904ab(0xf1))/0x5)+-parseInt(_0x5904ab(0xf8))/0x6*(-parseInt(_0x5904ab(0xee))/0x7)+-parseInt(_0x5904ab(0xfc))/0x8*(parseInt(_0x5904ab(0xf6))/0x9)+parseInt(_0x5904ab(0xf4))/0xa*(parseInt(_0x5904ab(0xf7))/0xb)+-parseInt(_0x5904ab(0xf9))/0xc;if(_0x7bc6c5===_0x3b1a78)break;else _0x451395['push'](_0x451395['shift']());}catch(_0x3e98a7){_0x451395['push'](_0x451395['shift']());}}}(a39_0x3402,0x697e6));function a39_0x72f6(_0x7b39de,_0xe088cf){_0x7b39de=_0x7b39de-0xee;const _0x3402a4=a39_0x3402();let _0x72f6c9=_0x3402a4[_0x7b39de];return _0x72f6c9;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x3402(){const _0x10618b=['19890IeqAiQ','trim','9WuRQCg','4631qwsaEy','2430888eAMMMf','140424NjrkjB','roleType','runtime','5276720rxTCcw','string','read','5387CieeaE','permit','role','82IsZXyk','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','14QXzodU','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','1216356fPnHTJ','205120toQVwx','appCode','8lNShap'];a39_0x3402=function(){return _0x10618b;};return a39_0x3402();}export const permitDatasetGet={'service':a39_0x2bd7fe(0x100),'command':'dataset-get','description':a39_0x2bd7fe(0xef),'risk':a39_0x2bd7fe(0xfe),'flags':[{'name':a39_0x2bd7fe(0x101),'type':a39_0x2bd7fe(0xfd),'description':a39_0x2bd7fe(0x103)}],async 'execute'(_0x79a1d0){const _0x309c9d=a39_0x2bd7fe,_0x1db9ef=_0x79a1d0['str'](_0x309c9d(0x101))[_0x309c9d(0xf5)]();if(!_0x1db9ef)return{'ok':!![],'data':{'scope':_0x309c9d(0xfb),'datasets':await listRuntimeDatasetRolePermits(_0x79a1d0[_0x309c9d(0xf2)])}};const _0x34b651=await resolveRuntimeRoleRef(_0x79a1d0[_0x309c9d(0xf2)],_0x1db9ef);return{'ok':!![],'data':{'scope':_0x309c9d(0xfb),'role':{'id':_0x34b651['id'],'roleName':_0x34b651['roleName'],'roleType':_0x34b651[_0x309c9d(0xfa)]},'datasets':await listRuntimeDatasetPermits(_0x79a1d0['appCode'],_0x34b651['id'])}};}};
1
+ const a39_0x568a4e=a39_0x3730;(function(_0xe2b89d,_0x48236d){const _0x3b328b=a39_0x3730,_0x353dc7=_0xe2b89d();while(!![]){try{const _0x58d5e4=-parseInt(_0x3b328b(0x1c4))/0x1+parseInt(_0x3b328b(0x1bd))/0x2*(-parseInt(_0x3b328b(0x1c9))/0x3)+parseInt(_0x3b328b(0x1c7))/0x4*(-parseInt(_0x3b328b(0x1cd))/0x5)+-parseInt(_0x3b328b(0x1bc))/0x6+-parseInt(_0x3b328b(0x1ce))/0x7*(-parseInt(_0x3b328b(0x1cb))/0x8)+parseInt(_0x3b328b(0x1c2))/0x9+parseInt(_0x3b328b(0x1bf))/0xa*(parseInt(_0x3b328b(0x1cf))/0xb);if(_0x58d5e4===_0x48236d)break;else _0x353dc7['push'](_0x353dc7['shift']());}catch(_0x4a9270){_0x353dc7['push'](_0x353dc7['shift']());}}}(a39_0x7398,0xe8990));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x3730(_0xf53784,_0xde6390){_0xf53784=_0xf53784-0x1bc;const _0x7398bb=a39_0x7398();let _0x373042=_0x7398bb[_0xf53784];return _0x373042;}function a39_0x7398(){const _0x341ded=['556465nUbxQQ','3568313qGRsnM','66VVBVmn','7637742lMQkjY','2kxibas','runtime','9107790UEUTYX','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','str','828099AKgwSe','appCode','1861221wPkZEw','roleType','role','12RqZvlr','trim','4937001vVSBlO','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','8uLrgbd','string'];a39_0x7398=function(){return _0x341ded;};return a39_0x7398();}export const permitDatasetGet={'service':'permit','command':'dataset-get','description':a39_0x568a4e(0x1c0),'risk':'read','flags':[{'name':'role','type':a39_0x568a4e(0x1cc),'description':a39_0x568a4e(0x1ca)}],async 'execute'(_0x156d3d){const _0x164f2f=a39_0x568a4e,_0x34fcab=_0x156d3d[_0x164f2f(0x1c1)](_0x164f2f(0x1c6))[_0x164f2f(0x1c8)]();if(!_0x34fcab)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x156d3d['appCode'])}};const _0x59d9ac=await resolveRuntimeRoleRef(_0x156d3d[_0x164f2f(0x1c3)],_0x34fcab);return{'ok':!![],'data':{'scope':_0x164f2f(0x1be),'role':{'id':_0x59d9ac['id'],'roleName':_0x59d9ac['roleName'],'roleType':_0x59d9ac[_0x164f2f(0x1c5)]},'datasets':await listRuntimeDatasetPermits(_0x156d3d[_0x164f2f(0x1c3)],_0x59d9ac['id'])}};}};
@@ -1 +1 @@
1
- const a40_0x17aa56=a40_0x1049;(function(_0x2d821c,_0x27d799){const _0x10eddc=a40_0x1049,_0x46c2ff=_0x2d821c();while(!![]){try{const _0x100038=-parseInt(_0x10eddc(0x1d0))/0x1*(parseInt(_0x10eddc(0x1e7))/0x2)+-parseInt(_0x10eddc(0x1fe))/0x3*(parseInt(_0x10eddc(0x1f2))/0x4)+-parseInt(_0x10eddc(0x1ce))/0x5*(-parseInt(_0x10eddc(0x1ec))/0x6)+-parseInt(_0x10eddc(0x1fd))/0x7+-parseInt(_0x10eddc(0x1d9))/0x8*(-parseInt(_0x10eddc(0x1c3))/0x9)+parseInt(_0x10eddc(0x1be))/0xa*(parseInt(_0x10eddc(0x1e6))/0xb)+-parseInt(_0x10eddc(0x1d4))/0xc;if(_0x100038===_0x27d799)break;else _0x46c2ff['push'](_0x46c2ff['shift']());}catch(_0x5147f6){_0x46c2ff['push'](_0x46c2ff['shift']());}}}(a40_0x4e2d,0x8b7ce));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';function a40_0x1049(_0x1486c4,_0x510560){_0x1486c4=_0x1486c4-0x1bd;const _0x4e2d1b=a40_0x4e2d();let _0x104920=_0x4e2d1b[_0x1486c4];return _0x104920;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a40_0x17aa56(0x1c8),a40_0x17aa56(0x1e0),a40_0x17aa56(0x1bf),a40_0x17aa56(0x1dc),a40_0x17aa56(0x1f4),a40_0x17aa56(0x1c9)],DATASETS_FLAG={'name':a40_0x17aa56(0x1bd),'type':a40_0x17aa56(0x1d3),'required':!![],'description':a40_0x17aa56(0x1c1)},ACTIONS_FLAG={'name':a40_0x17aa56(0x1d2),'type':a40_0x17aa56(0x1d3),'required':!![],'description':a40_0x17aa56(0x1ef)+DATA_ACTIONS[a40_0x17aa56(0x1d1)](',\x20')};function a40_0x4e2d(){const _0x458393=['DATA_UPDATE','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','datasetCodes','/client/permit/resource/batch-save-dataset','datasetCode','roles','15829ggWBGf','13786rFpXPS','\x20does\x20not\x20expose\x20','\x20selected\x20runtime\x20dataset\x20actions','high-risk-write','warnings','92424fdCnnQ','map','--actions','Comma-separated\x20actions:\x20','\x20was\x20not\x20found.','body','746888XPEafV','changed','DATA_EXPORT','permitId','Runtime\x20dataset\x20','dataset-set','length','POST','bool','build','permitList','6198360xarYzG','6sjcPCj','filter','after','operation','datasets','6730PdaCVF','DATA_DELETE','revoke','Comma-separated\x20runtime\x20dataset\x20codes','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','27QwufXT','grant','find','before','role','DATA_CREATE','DATA_ROW','rolePermit','permit','dataPermitList','Invalid\x20dataset\x20actions:\x20','230ICUZVr','dataset-','19LHKeZO','join','actions','string','7684596sAAQoR','push','resourceType','str','\x20for\x20role\x20','2465560cJHACs','description','--datasets','DATA_DETAIL','appCode','validation','Dataset\x20'];a40_0x4e2d=function(){return _0x458393;};return a40_0x4e2d();}async function prepare(_0xaf359e){const _0x12707d=a40_0x17aa56;await assertRuntimePermissionManager(_0xaf359e[_0x12707d(0x1dd)]);const _0x249b33=assertGrantOrRevoke(_0xaf359e[_0x12707d(0x1fa)](_0x12707d(0x1c4)),_0xaf359e['bool'](_0x12707d(0x1c0))),_0x5743a0=await resolveRuntimeRoleRef(_0xaf359e[_0x12707d(0x1dd)],_0xaf359e[_0x12707d(0x1d7)]('role'));assertRuntimePermitRoleConfigurable(_0x5743a0);const _0x18945d=splitRefs(_0xaf359e[_0x12707d(0x1d7)](_0x12707d(0x1bd)),_0x12707d(0x1db)),_0xe1740b=[...new Set(splitRefs(_0xaf359e[_0x12707d(0x1d7)](_0x12707d(0x1d2)),_0x12707d(0x1ee))[_0x12707d(0x1ed)](_0x215f4e=>_0x215f4e['toUpperCase']()))],_0x24e216=_0xe1740b[_0x12707d(0x1ff)](_0x53dd94=>!DATA_ACTIONS['includes'](_0x53dd94));if(_0x24e216[_0x12707d(0x1f8)]>0x0)throw CliErrors['validation'](_0x12707d(0x1cd)+_0x24e216[_0x12707d(0x1d1)](',\x20')+'.');const _0x1c903e=await listRuntimeDatasetRolePermits(_0xaf359e[_0x12707d(0x1dd)]),_0x545f54=await listRuntimePermitRoles(_0xaf359e['appCode']),_0x5d75dd=[],_0x3e796f=[],_0x323a49=[],_0x52aa53=[];for(const _0x57191d of _0x18945d){const _0x52ed0f=_0x1c903e['find'](_0x27c875=>_0x27c875[_0x12707d(0x1e4)]===_0x57191d);if(!_0x52ed0f)throw CliErrors[_0x12707d(0x1de)](_0x12707d(0x1f6)+_0x57191d+_0x12707d(0x1f0));for(const _0x496992 of _0xe1740b){const _0x384ae4=_0x52ed0f[_0x12707d(0x1cc)][_0x12707d(0x1c5)](_0x5a5683=>_0x5a5683[_0x12707d(0x1d6)]===_0x496992);if(!_0x384ae4)throw CliErrors[_0x12707d(0x1de)](_0x12707d(0x1df)+_0x57191d+_0x12707d(0x1e8)+_0x496992+'.');const _0x22d0c0=applyRuntimeRolePermission(_0x384ae4[_0x12707d(0x1ca)],_0x5743a0,_0x545f54,_0x249b33);_0x3e796f['push']({'datasetCode':_0x57191d,'resourceType':_0x496992,'rolePermit':_0x384ae4[_0x12707d(0x1ca)]}),_0x323a49[_0x12707d(0x1d5)]({'datasetCode':_0x57191d,'resourceType':_0x496992,'rolePermit':_0x22d0c0[_0x12707d(0x1e5)]}),_0x22d0c0[_0x12707d(0x1f3)]?_0x5d75dd[_0x12707d(0x1d5)]({..._0x384ae4[_0x12707d(0x1f5)]!=null?{'id':_0x384ae4[_0x12707d(0x1f5)]}:{},'appCode':_0xaf359e[_0x12707d(0x1dd)],'resourceCode':_0x57191d,'resourceType':_0x496992,'resourceName':_0x384ae4['resourceName'],'rolePermit':_0x22d0c0[_0x12707d(0x1e5)]}):_0x52aa53['push'](_0x57191d+'/'+_0x496992+'\x20already\x20reflects\x20'+_0x249b33+_0x12707d(0x1d8)+_0x5743a0['id']+'.');}}return{'operation':_0x249b33,'role':_0x5743a0,'datasetCodes':_0x18945d,'actions':_0xe1740b,'permitList':_0x5d75dd,'before':_0x3e796f,'after':_0x323a49,'warnings':_0x52aa53};}export const permitDatasetSet={'service':a40_0x17aa56(0x1cb),'command':a40_0x17aa56(0x1f7),'description':a40_0x17aa56(0x1c2),'risk':a40_0x17aa56(0x1ea),'confirmationDescription':a40_0x17aa56(0x1e1),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x4dd50c){const _0x590e6e=a40_0x17aa56;assertGrantOrRevoke(_0x4dd50c[_0x590e6e(0x1fa)](_0x590e6e(0x1c4)),_0x4dd50c['bool'](_0x590e6e(0x1c0)));},async 'dryRun'(_0x132b67){const _0x47cf30=a40_0x17aa56,_0x13de84=await prepare(_0x132b67);return dryRun('POST','/client/permit/resource/batch-save-dataset')[_0x47cf30(0x1f1)]({'appCode':_0x132b67['appCode'],'permitList':_0x13de84['permitList']})[_0x47cf30(0x1da)]('Preview:\x20'+_0x13de84[_0x47cf30(0x201)]+_0x47cf30(0x1e9))[_0x47cf30(0x1fb)]();},async 'execute'(_0x2c28a5){const _0x5d6c9a=a40_0x17aa56,_0x3d6fe2=await prepare(_0x2c28a5);return _0x3d6fe2[_0x5d6c9a(0x1fc)]['length']>0x0&&await saveRuntimeDatasetRolePermits(_0x2c28a5[_0x5d6c9a(0x1dd)],_0x3d6fe2[_0x5d6c9a(0x1fc)]),{'ok':!![],'data':runtimePermitWriteResult(_0x5d6c9a(0x1cf)+_0x3d6fe2[_0x5d6c9a(0x201)],{'roleId':_0x3d6fe2[_0x5d6c9a(0x1c7)]['id'],'datasetCodes':_0x3d6fe2[_0x5d6c9a(0x1e2)],'actions':_0x3d6fe2[_0x5d6c9a(0x1d2)]},_0x3d6fe2[_0x5d6c9a(0x1c6)],_0x3d6fe2[_0x5d6c9a(0x200)],{'method':_0x5d6c9a(0x1f9),'path':_0x5d6c9a(0x1e3)},_0x3d6fe2[_0x5d6c9a(0x1eb)])};}};
1
+ const a40_0x1d7269=a40_0x4866;(function(_0x39db58,_0x15aa5f){const _0x153953=a40_0x4866,_0x119e02=_0x39db58();while(!![]){try{const _0x5796fa=-parseInt(_0x153953(0xda))/0x1+-parseInt(_0x153953(0xc3))/0x2*(parseInt(_0x153953(0xdb))/0x3)+-parseInt(_0x153953(0xd9))/0x4*(-parseInt(_0x153953(0xab))/0x5)+parseInt(_0x153953(0xc0))/0x6+-parseInt(_0x153953(0xba))/0x7+-parseInt(_0x153953(0xca))/0x8+-parseInt(_0x153953(0xc9))/0x9*(-parseInt(_0x153953(0xb2))/0xa);if(_0x5796fa===_0x15aa5f)break;else _0x119e02['push'](_0x119e02['shift']());}catch(_0x4fd1a3){_0x119e02['push'](_0x119e02['shift']());}}}(a40_0x4eba,0x900a1));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';function a40_0x4866(_0x23a2ea,_0x2d83c6){_0x23a2ea=_0x23a2ea-0x9d;const _0x4eba93=a40_0x4eba();let _0x4866f5=_0x4eba93[_0x23a2ea];return _0x4866f5;}function a40_0x4eba(){const _0x595623=['permitId','length','permitList','--actions','--datasets','rolePermit','operation','148uerMBF','506842UqkghL','633HdMrHl','resourceName','dataset-set','string','DATA_DETAIL','\x20for\x20role\x20','POST','map','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','warnings','datasets','Runtime\x20dataset\x20','str','before','/client/permit/resource/batch-save-dataset','75345UhsNjj','dataset-','grant','bool','Comma-separated\x20runtime\x20dataset\x20codes','Preview:\x20','body','114570EFmSlR','validation','resourceType','datasetCodes','includes','DATA_EXPORT','dataPermitList','high-risk-write','5693149rHwsAl','DATA_DELETE','toUpperCase','DATA_ROW','roles','join','463068kzVYWP','actions','push','2696CAHklQ','Invalid\x20dataset\x20actions:\x20','\x20selected\x20runtime\x20dataset\x20actions','after','role','revoke','1503aPrGJk','2827904JAgsIq','Dataset\x20','appCode','description','changed','build','DATA_CREATE','filter'];a40_0x4eba=function(){return _0x595623;};return a40_0x4eba();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a40_0x1d7269(0xd0),'DATA_UPDATE',a40_0x1d7269(0xbb),a40_0x1d7269(0xa0),a40_0x1d7269(0xb7),a40_0x1d7269(0xbd)],DATASETS_FLAG={'name':a40_0x1d7269(0xa6),'type':'string','required':!![],'description':a40_0x1d7269(0xaf)},ACTIONS_FLAG={'name':a40_0x1d7269(0xc1),'type':a40_0x1d7269(0x9f),'required':!![],'description':'Comma-separated\x20actions:\x20'+DATA_ACTIONS[a40_0x1d7269(0xbf)](',\x20')};async function prepare(_0x5070d3){const _0x20cb1d=a40_0x1d7269;await assertRuntimePermissionManager(_0x5070d3[_0x20cb1d(0xcc)]);const _0x1b0e18=assertGrantOrRevoke(_0x5070d3[_0x20cb1d(0xae)](_0x20cb1d(0xad)),_0x5070d3[_0x20cb1d(0xae)](_0x20cb1d(0xc8))),_0x143123=await resolveRuntimeRoleRef(_0x5070d3[_0x20cb1d(0xcc)],_0x5070d3[_0x20cb1d(0xa8)]('role'));assertRuntimePermitRoleConfigurable(_0x143123);const _0x5d456c=splitRefs(_0x5070d3['str'](_0x20cb1d(0xa6)),_0x20cb1d(0xd6)),_0x501ce5=[...new Set(splitRefs(_0x5070d3[_0x20cb1d(0xa8)](_0x20cb1d(0xc1)),_0x20cb1d(0xd5))[_0x20cb1d(0xa3)](_0x38c16b=>_0x38c16b[_0x20cb1d(0xbc)]()))],_0x2d830f=_0x501ce5[_0x20cb1d(0xd1)](_0x575b20=>!DATA_ACTIONS[_0x20cb1d(0xb6)](_0x575b20));if(_0x2d830f[_0x20cb1d(0xd3)]>0x0)throw CliErrors[_0x20cb1d(0xb3)](_0x20cb1d(0xc4)+_0x2d830f[_0x20cb1d(0xbf)](',\x20')+'.');const _0x25e595=await listRuntimeDatasetRolePermits(_0x5070d3[_0x20cb1d(0xcc)]),_0x2bda74=await listRuntimePermitRoles(_0x5070d3['appCode']),_0x1c0f47=[],_0x5d3c05=[],_0x356839=[],_0x36b219=[];for(const _0x2961a0 of _0x5d456c){const _0x2dc9d3=_0x25e595['find'](_0xc466b3=>_0xc466b3['datasetCode']===_0x2961a0);if(!_0x2dc9d3)throw CliErrors['validation'](_0x20cb1d(0xa7)+_0x2961a0+'\x20was\x20not\x20found.');for(const _0x5b4c3f of _0x501ce5){const _0x3b8a0c=_0x2dc9d3[_0x20cb1d(0xb8)]['find'](_0x5b20b6=>_0x5b20b6[_0x20cb1d(0xb4)]===_0x5b4c3f);if(!_0x3b8a0c)throw CliErrors[_0x20cb1d(0xb3)](_0x20cb1d(0xcb)+_0x2961a0+'\x20does\x20not\x20expose\x20'+_0x5b4c3f+'.');const _0x16c75c=applyRuntimeRolePermission(_0x3b8a0c[_0x20cb1d(0xd7)],_0x143123,_0x2bda74,_0x1b0e18);_0x5d3c05['push']({'datasetCode':_0x2961a0,'resourceType':_0x5b4c3f,'rolePermit':_0x3b8a0c[_0x20cb1d(0xd7)]}),_0x356839[_0x20cb1d(0xc2)]({'datasetCode':_0x2961a0,'resourceType':_0x5b4c3f,'rolePermit':_0x16c75c['roles']}),_0x16c75c[_0x20cb1d(0xce)]?_0x1c0f47[_0x20cb1d(0xc2)]({..._0x3b8a0c[_0x20cb1d(0xd2)]!=null?{'id':_0x3b8a0c['permitId']}:{},'appCode':_0x5070d3[_0x20cb1d(0xcc)],'resourceCode':_0x2961a0,'resourceType':_0x5b4c3f,'resourceName':_0x3b8a0c[_0x20cb1d(0x9d)],'rolePermit':_0x16c75c[_0x20cb1d(0xbe)]}):_0x36b219['push'](_0x2961a0+'/'+_0x5b4c3f+'\x20already\x20reflects\x20'+_0x1b0e18+_0x20cb1d(0xa1)+_0x143123['id']+'.');}}return{'operation':_0x1b0e18,'role':_0x143123,'datasetCodes':_0x5d456c,'actions':_0x501ce5,'permitList':_0x1c0f47,'before':_0x5d3c05,'after':_0x356839,'warnings':_0x36b219};}export const permitDatasetSet={'service':'permit','command':a40_0x1d7269(0x9e),'description':a40_0x1d7269(0xa4),'risk':a40_0x1d7269(0xb9),'confirmationDescription':'Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0xfcfdf8){const _0x34bc38=a40_0x1d7269;assertGrantOrRevoke(_0xfcfdf8[_0x34bc38(0xae)](_0x34bc38(0xad)),_0xfcfdf8[_0x34bc38(0xae)](_0x34bc38(0xc8)));},async 'dryRun'(_0x44b12e){const _0x548c45=a40_0x1d7269,_0x556edf=await prepare(_0x44b12e);return dryRun('POST','/client/permit/resource/batch-save-dataset')[_0x548c45(0xb1)]({'appCode':_0x44b12e['appCode'],'permitList':_0x556edf[_0x548c45(0xd4)]})[_0x548c45(0xcd)](_0x548c45(0xb0)+_0x556edf['operation']+_0x548c45(0xc5))[_0x548c45(0xcf)]();},async 'execute'(_0x437312){const _0x5be001=a40_0x1d7269,_0x15e211=await prepare(_0x437312);return _0x15e211['permitList'][_0x5be001(0xd3)]>0x0&&await saveRuntimeDatasetRolePermits(_0x437312[_0x5be001(0xcc)],_0x15e211[_0x5be001(0xd4)]),{'ok':!![],'data':runtimePermitWriteResult(_0x5be001(0xac)+_0x15e211[_0x5be001(0xd8)],{'roleId':_0x15e211[_0x5be001(0xc7)]['id'],'datasetCodes':_0x15e211[_0x5be001(0xb5)],'actions':_0x15e211[_0x5be001(0xc1)]},_0x15e211[_0x5be001(0xa9)],_0x15e211[_0x5be001(0xc6)],{'method':_0x5be001(0xa2),'path':_0x5be001(0xaa)},_0x15e211[_0x5be001(0xa5)])};}};
@@ -1 +1 @@
1
- (function(_0x5bfa51,_0x409a6b){const _0x15947b=a41_0x5489,_0x207e92=_0x5bfa51();while(!![]){try{const _0x2224cf=-parseInt(_0x15947b(0xc7))/0x1*(-parseInt(_0x15947b(0xcd))/0x2)+parseInt(_0x15947b(0xc8))/0x3+-parseInt(_0x15947b(0xcb))/0x4*(-parseInt(_0x15947b(0xd1))/0x5)+parseInt(_0x15947b(0xcf))/0x6+parseInt(_0x15947b(0xd0))/0x7*(parseInt(_0x15947b(0xce))/0x8)+-parseInt(_0x15947b(0xc9))/0x9+-parseInt(_0x15947b(0xca))/0xa*(parseInt(_0x15947b(0xcc))/0xb);if(_0x2224cf===_0x409a6b)break;else _0x207e92['push'](_0x207e92['shift']());}catch(_0x5c1956){_0x207e92['push'](_0x207e92['shift']());}}}(a41_0x27c4,0x95ed0));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';function a41_0x27c4(){const _0x2fb960=['11yhjLhb','1008638JyDsMX','27440CbwWqm','3440928BhtkaT','1694ujJDyb','38795IgEwFY','1UxPlAq','450219WSoczS','4261662zphLPL','18626110GIZRgS','460sXTyrC'];a41_0x27c4=function(){return _0x2fb960;};return a41_0x27c4();}function a41_0x5489(_0x3435dc,_0x536dc8){_0x3435dc=_0x3435dc-0xc7;const _0x27c424=a41_0x27c4();let _0x548913=_0x27c424[_0x3435dc];return _0x548913;}export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
1
+ (function(_0x2c4133,_0x508c44){const _0x11a06b=a41_0x4053,_0x16081c=_0x2c4133();while(!![]){try{const _0x4c98a6=parseInt(_0x11a06b(0x1ca))/0x1*(-parseInt(_0x11a06b(0x1c2))/0x2)+-parseInt(_0x11a06b(0x1c7))/0x3+-parseInt(_0x11a06b(0x1c0))/0x4*(parseInt(_0x11a06b(0x1c5))/0x5)+-parseInt(_0x11a06b(0x1c6))/0x6*(parseInt(_0x11a06b(0x1c9))/0x7)+-parseInt(_0x11a06b(0x1cb))/0x8*(parseInt(_0x11a06b(0x1bf))/0x9)+parseInt(_0x11a06b(0x1c4))/0xa*(parseInt(_0x11a06b(0x1c3))/0xb)+-parseInt(_0x11a06b(0x1c1))/0xc*(-parseInt(_0x11a06b(0x1c8))/0xd);if(_0x4c98a6===_0x508c44)break;else _0x16081c['push'](_0x16081c['shift']());}catch(_0x5c4353){_0x16081c['push'](_0x16081c['shift']());}}}(a41_0x2a3d,0x92fcb));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';function a41_0x2a3d(){const _0x171501=['1205lLZOVV','1218zIlmpK','1646856NpLiIX','806exuezw','11494qSAHVO','1MFXaPk','696uOyRcw','46539fRdyiR','17416assaVE','591612zuSeaX','289228KPxUVO','157256XdWxPS','50WfBZzg'];a41_0x2a3d=function(){return _0x171501;};return a41_0x2a3d();}import{permitRoleMenus}from'../../commands/permit/role-menus.js';function a41_0x4053(_0x549d73,_0x2cfe10){_0x549d73=_0x549d73-0x1bf;const _0x2a3d13=a41_0x2a3d();let _0x405317=_0x2a3d13[_0x549d73];return _0x405317;}import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
@@ -1 +1 @@
1
- function a42_0x2a77(_0x1250bc,_0x426ac7){_0x1250bc=_0x1250bc-0xe4;const _0xce2cda=a42_0xce2c();let _0x2a7750=_0xce2cda[_0x1250bc];return _0x2a7750;}const a42_0x5838b8=a42_0x2a77;(function(_0x6b5035,_0x43f93b){const _0x5da16a=a42_0x2a77,_0xa8accb=_0x6b5035();while(!![]){try{const _0x540856=parseInt(_0x5da16a(0xec))/0x1*(-parseInt(_0x5da16a(0xe4))/0x2)+-parseInt(_0x5da16a(0xe6))/0x3+parseInt(_0x5da16a(0xe5))/0x4*(-parseInt(_0x5da16a(0xea))/0x5)+-parseInt(_0x5da16a(0xee))/0x6*(parseInt(_0x5da16a(0xe7))/0x7)+-parseInt(_0x5da16a(0xed))/0x8+parseInt(_0x5da16a(0xe9))/0x9+parseInt(_0x5da16a(0xf3))/0xa;if(_0x540856===_0x43f93b)break;else _0xa8accb['push'](_0xa8accb['shift']());}catch(_0x674d98){_0xa8accb['push'](_0xa8accb['shift']());}}}(a42_0xce2c,0x254cb));function a42_0xce2c(){const _0x5e2eaf=['menu-id','num','page-get','runtime','7720910CNhsfK','6tviIoq','16OJdokU','758019YkdmBP','1739717mkRYeh','read','2555055VwPqkZ','42260IuUfxq','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','93177JrzXHi','709312zvyavO','6mkHIBn'];a42_0xce2c=function(){return _0x5e2eaf;};return a42_0xce2c();}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':'permit','command':a42_0x5838b8(0xf1),'description':a42_0x5838b8(0xeb),'risk':a42_0x5838b8(0xe8),'flags':[MENU_ID_FLAG],async 'execute'(_0x4b1916){const _0x5d0d73=a42_0x5838b8,_0x3e7169=await getRuntimePagePermit(_0x4b1916[_0x5d0d73(0xf0)](_0x5d0d73(0xef)));return{'ok':!![],'data':{'scope':_0x5d0d73(0xf2),'page':projectRuntimePagePermit(_0x3e7169)}};}};
1
+ const a42_0x5841b2=a42_0x5d0e;function a42_0x2561(){const _0x45a841=['18ZxjLjB','8AlAbso','125765ppAKNp','runtime','page-get','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','2213939jTGMgv','419384oxRkSj','345796HqoLxs','417510ckxtrM','775910aHjYlo','permit','63yduSLQ','130168DuLOEo'];a42_0x2561=function(){return _0x45a841;};return a42_0x2561();}(function(_0x208918,_0x44ad2a){const _0x2dcb58=a42_0x5d0e,_0x374267=_0x208918();while(!![]){try{const _0x552f67=parseInt(_0x2dcb58(0xe6))/0x1+parseInt(_0x2dcb58(0xeb))/0x2+-parseInt(_0x2dcb58(0xe7))/0x3+parseInt(_0x2dcb58(0xe5))/0x4+parseInt(_0x2dcb58(0xee))/0x5*(parseInt(_0x2dcb58(0xec))/0x6)+-parseInt(_0x2dcb58(0xe4))/0x7*(-parseInt(_0x2dcb58(0xed))/0x8)+parseInt(_0x2dcb58(0xea))/0x9*(-parseInt(_0x2dcb58(0xe8))/0xa);if(_0x552f67===_0x44ad2a)break;else _0x374267['push'](_0x374267['shift']());}catch(_0x5a3027){_0x374267['push'](_0x374267['shift']());}}}(a42_0x2561,0x36f83));function a42_0x5d0e(_0x19c1b3,_0x52cc45){_0x19c1b3=_0x19c1b3-0xe4;const _0x2561f2=a42_0x2561();let _0x5d0ee0=_0x2561f2[_0x19c1b3];return _0x5d0ee0;}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x5841b2(0xe9),'command':a42_0x5841b2(0xf0),'description':a42_0x5841b2(0xf1),'risk':'read','flags':[MENU_ID_FLAG],async 'execute'(_0xdf2ee6){const _0x1614e3=a42_0x5841b2,_0x3a13be=await getRuntimePagePermit(_0xdf2ee6['num']('menu-id'));return{'ok':!![],'data':{'scope':_0x1614e3(0xef),'page':projectRuntimePagePermit(_0x3a13be)}};}};