@lovrabet/lovrabet-cli 2.3.0-beta.5 → 2.3.0-beta.6

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.d.ts +1 -1
  91. package/lib/config/schema.js +1 -1
  92. package/lib/constant/app.js +1 -1
  93. package/lib/constant/auth-mode.js +1 -1
  94. package/lib/constant/cli.js +1 -1
  95. package/lib/constant/defaults.js +1 -1
  96. package/lib/constant/distribution.js +1 -1
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.d.ts +2 -0
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/sdk-client.js +1 -1
  109. package/lib/errors.d.ts +1 -0
  110. package/lib/errors.js +1 -1
  111. package/lib/framework/build-all-flags.js +1 -1
  112. package/lib/framework/dryrun.js +1 -1
  113. package/lib/framework/flags.js +1 -1
  114. package/lib/framework/help.js +1 -1
  115. package/lib/framework/index.js +1 -1
  116. package/lib/framework/output.js +1 -1
  117. package/lib/framework/preparse.js +1 -1
  118. package/lib/framework/rate-limit.js +1 -1
  119. package/lib/framework/raw-flags.js +1 -1
  120. package/lib/framework/response.js +1 -1
  121. package/lib/framework/runner-confirmation.js +1 -1
  122. package/lib/framework/runner-error.js +1 -1
  123. package/lib/framework/runner.d.ts +9 -7
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/help.js +1 -1
  131. package/lib/postinstall.js +1 -1
  132. package/lib/runtime/confirmation.js +1 -1
  133. package/lib/runtime/event.js +1 -1
  134. package/lib/runtime/index.js +1 -1
  135. package/lib/runtime/queue.js +1 -1
  136. package/lib/runtime/resolve.js +1 -1
  137. package/lib/skills/builtin-skill.js +1 -1
  138. package/lib/skills/npx-skills-add.js +1 -1
  139. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  140. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  141. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  142. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  143. package/lib/skills/runtime-skill-sync/links.js +1 -1
  144. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  145. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  146. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  147. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  148. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  149. package/lib/skills/runtime-skill-sync/push.js +1 -1
  150. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  152. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  153. package/lib/skills/runtime-skill-sync.js +1 -1
  154. package/lib/skills/skill-presence.js +1 -1
  155. package/lib/utils/access-key-redaction.js +1 -1
  156. package/lib/utils/apply-jq-filter.js +1 -1
  157. package/lib/utils/cli-version-check.js +1 -1
  158. package/lib/utils/cli-version-policy.js +1 -1
  159. package/lib/utils/logger.js +1 -1
  160. package/lib/utils/lossless-json.js +1 -1
  161. package/lib/utils/params.js +1 -1
  162. package/lib/utils/platform.js +1 -1
  163. package/lib/utils/update-notice.js +1 -1
  164. package/lib/utils/version.js +1 -1
  165. package/lib/utils/write-cli-side-channel.js +1 -1
  166. package/package.json +1 -1
  167. package/skills/lovrabet/SKILL.md +1 -1
  168. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x48db5c,_0x319221){const _0x1c1e40=a27_0x15e8,_0x2d97a2=_0x48db5c();while(!![]){try{const _0x4a939=parseInt(_0x1c1e40(0x132))/0x1*(-parseInt(_0x1c1e40(0x137))/0x2)+parseInt(_0x1c1e40(0x136))/0x3+-parseInt(_0x1c1e40(0x139))/0x4*(-parseInt(_0x1c1e40(0x131))/0x5)+-parseInt(_0x1c1e40(0x13a))/0x6+parseInt(_0x1c1e40(0x134))/0x7*(parseInt(_0x1c1e40(0x130))/0x8)+parseInt(_0x1c1e40(0x138))/0x9*(parseInt(_0x1c1e40(0x133))/0xa)+-parseInt(_0x1c1e40(0x135))/0xb*(parseInt(_0x1c1e40(0x13b))/0xc);if(_0x4a939===_0x319221)break;else _0x2d97a2['push'](_0x2d97a2['shift']());}catch(_0x518da3){_0x2d97a2['push'](_0x2d97a2['shift']());}}}(a27_0x168a,0x68abf));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0x15e8(_0x5750b9,_0x913420){_0x5750b9=_0x5750b9-0x130;const _0x168af4=a27_0x168a();let _0x15e8d9=_0x168af4[_0x5750b9];return _0x15e8d9;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a27_0x168a(){const _0x694183=['134245rvUbYP','4xKYNkl','10FTpgCW','9555gOBuPA','77LqLOMF','1551606PMPlCX','173924KlydLI','7230897DSfNJr','60vIvWgj','1830750hQhbbk','1523532escEYm','1448mjpmLx'];a27_0x168a=function(){return _0x694183;};return a27_0x168a();}
1
+ (function(_0x362baa,_0x28af){const _0x2fcf75=a27_0x5694,_0x561270=_0x362baa();while(!![]){try{const _0x263480=-parseInt(_0x2fcf75(0x144))/0x1*(-parseInt(_0x2fcf75(0x141))/0x2)+parseInt(_0x2fcf75(0x143))/0x3+parseInt(_0x2fcf75(0x13e))/0x4+parseInt(_0x2fcf75(0x13c))/0x5*(parseInt(_0x2fcf75(0x142))/0x6)+parseInt(_0x2fcf75(0x13f))/0x7+-parseInt(_0x2fcf75(0x140))/0x8*(parseInt(_0x2fcf75(0x13d))/0x9)+parseInt(_0x2fcf75(0x145))/0xa*(-parseInt(_0x2fcf75(0x146))/0xb);if(_0x263480===_0x28af)break;else _0x561270['push'](_0x561270['shift']());}catch(_0x1f6d5c){_0x561270['push'](_0x561270['shift']());}}}(a27_0x4fb7,0x98f8a));function a27_0x5694(_0x4c6d44,_0x538367){_0x4c6d44=_0x4c6d44-0x13c;const _0x4fb7d8=a27_0x4fb7();let _0x569472=_0x4fb7d8[_0x4c6d44];return _0x569472;}function a27_0x4fb7(){const _0x167364=['1818CvITuy','3386052KToaWT','233579tbKYpu','10780490rcuvkO','22VScDwO','7025mXVVUz','567WDAHeI','3243740PsZlru','6479942wAZVVx','94216khEIJz','2NKHMUV'];a27_0x4fb7=function(){return _0x167364;};return a27_0x4fb7();}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_0x2c248d=a28_0x57c5;(function(_0x5a6210,_0x3e5ecc){const _0x318ec2=a28_0x57c5,_0x4671b4=_0x5a6210();while(!![]){try{const _0x172e36=-parseInt(_0x318ec2(0xe2))/0x1+-parseInt(_0x318ec2(0xd8))/0x2*(parseInt(_0x318ec2(0xe3))/0x3)+parseInt(_0x318ec2(0xe7))/0x4*(-parseInt(_0x318ec2(0xe1))/0x5)+-parseInt(_0x318ec2(0xe6))/0x6*(parseInt(_0x318ec2(0xe4))/0x7)+-parseInt(_0x318ec2(0xd4))/0x8+parseInt(_0x318ec2(0xdf))/0x9*(parseInt(_0x318ec2(0xdd))/0xa)+parseInt(_0x318ec2(0xcb))/0xb;if(_0x172e36===_0x3e5ecc)break;else _0x4671b4['push'](_0x4671b4['shift']());}catch(_0x4e8a5a){_0x4671b4['push'](_0x4671b4['shift']());}}}(a28_0x5445,0x5b06e));import{listDatasets}from'../../core/api-client.js';function a28_0x5445(){const _0x5d5753=['dataset','source','list','2EPDsKY','map','pkField','string','tableName','1460KyeTBT','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','34065WidMdq','description','1101545PuqgEO','560615UwXnjt','1545519OQvHMi','2317ThrhgG','appCode','9078IYerAp','4eKFCXC','allFields','18787373AkBRLm','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','name','dbtableConfig','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','trim','str','code','datasetKey','726456VimkcC'];a28_0x5445=function(){return _0x5d5753;};return a28_0x5445();}function a28_0x57c5(_0x5902dd,_0x8ed05f){_0x5902dd=_0x5902dd-0xcb;const _0x54450c=a28_0x5445();let _0x57c5f6=_0x54450c[_0x5902dd];return _0x57c5f6;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x2c248d(0xd5),'command':a28_0x2c248d(0xd7),'description':a28_0x2c248d(0xcc),'risk':'read','flags':[{'name':a28_0x2c248d(0xcd),'type':a28_0x2c248d(0xdb),'description':a28_0x2c248d(0xcf)},{...CODE_FLAG,'required':![],'description':a28_0x2c248d(0xde)}],async 'execute'(_0x6b7fd5){const _0x226d4c=a28_0x2c248d,_0x34b8d7=_0x6b7fd5[_0x226d4c(0xd1)]('name'),_0x342ca8=_0x6b7fd5[_0x226d4c(0xd1)](_0x226d4c(0xd2)),_0x1c6d1a=await listDatasets(_0x6b7fd5[_0x226d4c(0xe5)],{..._0x34b8d7&&{'name':_0x34b8d7},..._0x342ca8&&{'code':_0x342ca8}});return{'ok':!![],'data':{'total':_0x1c6d1a['length'],'datasets':_0x1c6d1a['map'](_0x227233=>{const _0x24d66a=_0x226d4c,_0x309d55=_0x227233[_0x24d66a(0xce)]??{};return{'id':_0x227233['id'],'code':_0x227233[_0x24d66a(0xd2)],'name':_0x227233['name'],'source':_0x227233[_0x24d66a(0xd6)],'description':_0x227233[_0x24d66a(0xe0)],'table':_0x309d55[_0x24d66a(0xdc)],'datasetKey':_0x309d55[_0x24d66a(0xd3)],'pk':_0x309d55[_0x24d66a(0xda)],'fields':_0x309d55[_0x24d66a(0xe8)]?_0x309d55[_0x24d66a(0xe8)]['split'](',')[_0x24d66a(0xd9)](_0x1d5d53=>_0x1d5d53[_0x24d66a(0xd0)]()):[]};})}};}};
1
+ const a28_0x3c167c=a28_0x5218;(function(_0x462b0d,_0x598b58){const _0x265f03=a28_0x5218,_0xd644bc=_0x462b0d();while(!![]){try{const _0x156664=-parseInt(_0x265f03(0xd1))/0x1*(-parseInt(_0x265f03(0xda))/0x2)+-parseInt(_0x265f03(0xd6))/0x3+parseInt(_0x265f03(0xe4))/0x4*(-parseInt(_0x265f03(0xe2))/0x5)+parseInt(_0x265f03(0xcd))/0x6+-parseInt(_0x265f03(0xc9))/0x7+parseInt(_0x265f03(0xdc))/0x8+parseInt(_0x265f03(0xca))/0x9;if(_0x156664===_0x598b58)break;else _0xd644bc['push'](_0xd644bc['shift']());}catch(_0x300fd8){_0xd644bc['push'](_0xd644bc['shift']());}}}(a28_0x2ef7,0x611c9));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x5218(_0x4fdbc1,_0x5dde79){_0x4fdbc1=_0x4fdbc1-0xc9;const _0x2ef7ac=a28_0x2ef7();let _0x5218b5=_0x2ef7ac[_0x4fdbc1];return _0x5218b5;}function a28_0x2ef7(){const _0x2dcd3b=['pkField','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','list','str','358113sRVbnA','code','tableName','source','63556balQlE','allFields','1483272nnxfGX','string','map','appCode','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','split','95365vJUEws','length','108VwQiNP','read','3144477WPiwBh','980235taSQge','dbtableConfig','trim','3880632qHevxS','name','description','dataset','17CtiTqW'];a28_0x2ef7=function(){return _0x2dcd3b;};return a28_0x2ef7();}export const datasetList={'service':a28_0x3c167c(0xd0),'command':a28_0x3c167c(0xd4),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a28_0x3c167c(0xe5),'flags':[{'name':a28_0x3c167c(0xce),'type':a28_0x3c167c(0xdd),'description':a28_0x3c167c(0xd3)},{...CODE_FLAG,'required':![],'description':a28_0x3c167c(0xe0)}],async 'execute'(_0x3cfd52){const _0x3e85fe=a28_0x3c167c,_0x31b18a=_0x3cfd52['str'](_0x3e85fe(0xce)),_0x3dee54=_0x3cfd52[_0x3e85fe(0xd5)](_0x3e85fe(0xd7)),_0x229857=await listDatasets(_0x3cfd52[_0x3e85fe(0xdf)],{..._0x31b18a&&{'name':_0x31b18a},..._0x3dee54&&{'code':_0x3dee54}});return{'ok':!![],'data':{'total':_0x229857[_0x3e85fe(0xe3)],'datasets':_0x229857['map'](_0x28d68a=>{const _0xcacc2e=_0x3e85fe,_0x82beaa=_0x28d68a[_0xcacc2e(0xcb)]??{};return{'id':_0x28d68a['id'],'code':_0x28d68a[_0xcacc2e(0xd7)],'name':_0x28d68a[_0xcacc2e(0xce)],'source':_0x28d68a[_0xcacc2e(0xd9)],'description':_0x28d68a[_0xcacc2e(0xcf)],'table':_0x82beaa[_0xcacc2e(0xd8)],'datasetKey':_0x82beaa['datasetKey'],'pk':_0x82beaa[_0xcacc2e(0xd2)],'fields':_0x82beaa[_0xcacc2e(0xdb)]?_0x82beaa['allFields'][_0xcacc2e(0xe1)](',')[_0xcacc2e(0xde)](_0x549022=>_0x549022[_0xcacc2e(0xcc)]()):[]};})}};}};
@@ -1 +1 @@
1
- function a29_0x5260(_0xd6592f,_0x54614d){_0xd6592f=_0xd6592f-0xcc;const _0x3b3966=a29_0x3b39();let _0x526040=_0x3b3966[_0xd6592f];return _0x526040;}const a29_0x3c5d37=a29_0x5260;(function(_0x2248b1,_0x1f07e9){const _0x246b4a=a29_0x5260,_0x5c4b16=_0x2248b1();while(!![]){try{const _0x2890a8=-parseInt(_0x246b4a(0xdd))/0x1*(parseInt(_0x246b4a(0xcf))/0x2)+-parseInt(_0x246b4a(0xcd))/0x3+parseInt(_0x246b4a(0xdc))/0x4+parseInt(_0x246b4a(0xd1))/0x5*(-parseInt(_0x246b4a(0xcc))/0x6)+parseInt(_0x246b4a(0xd4))/0x7*(parseInt(_0x246b4a(0xd6))/0x8)+-parseInt(_0x246b4a(0xd7))/0x9*(-parseInt(_0x246b4a(0xd8))/0xa)+-parseInt(_0x246b4a(0xd2))/0xb*(-parseInt(_0x246b4a(0xda))/0xc);if(_0x2890a8===_0x1f07e9)break;else _0x5c4b16['push'](_0x5c4b16['shift']());}catch(_0x335d45){_0x5c4b16['push'](_0x5c4b16['shift']());}}}(a29_0x3b39,0xa7089));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a29_0x3b39(){const _0x1bae3f=['1811121PiKUZO','appCode','160682IRgGar','trim','21340otUczA','99BBNlBu','str','56623fqgdCw','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','208QSoLzN','389493qUtYVs','110rUofpZ','string','1146480YqUsjM','code','3436480BtIFTt','1yVJYAo','1458vggvdF'];a29_0x3b39=function(){return _0x1bae3f;};return a29_0x3b39();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x18dcb7){const _0x11d6d8=a29_0x5260,_0xe6631f=typeof _0x18dcb7===_0x11d6d8(0xd9)?_0x18dcb7[_0x11d6d8(0xd0)]():'';return _0xe6631f||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a29_0x3c5d37(0xd5),'risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x4df909){const _0x5a0ef4=a29_0x3c5d37,_0x46e8bb=_0x4df909[_0x5a0ef4(0xd3)](_0x5a0ef4(0xdb)),_0x8df4d3=await getDatasetSdkUsageDoc(_0x46e8bb,_0x4df909[_0x5a0ef4(0xce)]);return{'ok':!![],'data':{'code':_0x46e8bb,'appCode':_0x4df909[_0x5a0ef4(0xce)],'markdown':formatDatasetSdkMarkdown(_0x8df4d3)}};}};
1
+ const a29_0x5502e2=a29_0x50ab;(function(_0x79ea9f,_0x163dcd){const _0x1b9971=a29_0x50ab,_0x51f0ce=_0x79ea9f();while(!![]){try{const _0x149a46=parseInt(_0x1b9971(0xad))/0x1*(-parseInt(_0x1b9971(0xac))/0x2)+-parseInt(_0x1b9971(0xb7))/0x3*(parseInt(_0x1b9971(0xb5))/0x4)+parseInt(_0x1b9971(0xb4))/0x5+-parseInt(_0x1b9971(0xb1))/0x6*(parseInt(_0x1b9971(0xb3))/0x7)+-parseInt(_0x1b9971(0xb0))/0x8*(-parseInt(_0x1b9971(0xa8))/0x9)+parseInt(_0x1b9971(0xa9))/0xa*(parseInt(_0x1b9971(0xae))/0xb)+-parseInt(_0x1b9971(0xa7))/0xc;if(_0x149a46===_0x163dcd)break;else _0x51f0ce['push'](_0x51f0ce['shift']());}catch(_0x33e8e7){_0x51f0ce['push'](_0x51f0ce['shift']());}}}(a29_0x4ee0,0x80ab9));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0x50ab(_0x4cba92,_0x315dea){_0x4cba92=_0x4cba92-0xa6;const _0x4ee04a=a29_0x4ee0();let _0x50ab64=_0x4ee04a[_0x4cba92];return _0x50ab64;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x5a6920){const _0x18511e=a29_0x50ab,_0x5c7bd0=typeof _0x5a6920==='string'?_0x5a6920[_0x18511e(0xb9)]():'';return _0x5c7bd0||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x5502e2(0xb2),'command':a29_0x5502e2(0xa6),'description':a29_0x5502e2(0xb8),'risk':a29_0x5502e2(0xaf),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x4995ab){const _0x22d0c1=a29_0x5502e2,_0x139d63=_0x4995ab[_0x22d0c1(0xab)](_0x22d0c1(0xb6)),_0x34eb32=await getDatasetSdkUsageDoc(_0x139d63,_0x4995ab[_0x22d0c1(0xaa)]);return{'ok':!![],'data':{'code':_0x139d63,'appCode':_0x4995ab[_0x22d0c1(0xaa)],'markdown':formatDatasetSdkMarkdown(_0x34eb32)}};}};function a29_0x4ee0(){const _0x4cee57=['2154750GvJxul','408BcdedE','code','8451pKZnsE','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','trim','sdk-doc','2661204zYUaOo','27oMYJOZ','30QKxEwN','appCode','str','26jDrkEl','4806hKkpvv','2986577RnYtst','read','826720KTLstX','6pYWplf','dataset','3198153HLiekd'];a29_0x4ee0=function(){return _0x4cee57;};return a29_0x4ee0();}
@@ -1 +1 @@
1
- const a30_0x15787d=a30_0x2a44;(function(_0x491e60,_0x25a353){const _0x77bef4=a30_0x2a44,_0x5a7b8e=_0x491e60();while(!![]){try{const _0x21b3e=parseInt(_0x77bef4(0xe4))/0x1*(-parseInt(_0x77bef4(0xd8))/0x2)+parseInt(_0x77bef4(0xe0))/0x3*(parseInt(_0x77bef4(0x8d))/0x4)+-parseInt(_0x77bef4(0x84))/0x5+-parseInt(_0x77bef4(0xb0))/0x6*(parseInt(_0x77bef4(0xbf))/0x7)+-parseInt(_0x77bef4(0xb8))/0x8*(-parseInt(_0x77bef4(0xae))/0x9)+-parseInt(_0x77bef4(0x83))/0xa+parseInt(_0x77bef4(0xd4))/0xb*(parseInt(_0x77bef4(0xbe))/0xc);if(_0x21b3e===_0x25a353)break;else _0x5a7b8e['push'](_0x5a7b8e['shift']());}catch(_0x59dc13){_0x5a7b8e['push'](_0x5a7b8e['shift']());}}}(a30_0x2e43,0x60014));function a30_0x2a44(_0x299f90,_0x2bdfca){_0x299f90=_0x299f90-0x7f;const _0x2e4302=a30_0x2e43();let _0x2a44b6=_0x2e4302[_0x299f90];return _0x2a44b6;}import a30_0x315dd0 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a30_0x2e43(){const _0x1150c8=['\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','missing','(not\x20set)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','locale','project','\x20\x20─','red','skillVersion','\x20\x20Installed\x20Path:\x20\x20','⚠\x20Empty','repeat','call','join','\x20config\x20delete\x20inherit','accessKey','(default:\x20','(unnamed)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','padEnd','read','9HlpTFG','currentApp','6YtpPMu','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','installedPath','✗\x20Invalid\x20JSON','gray','\x20\x20Service\x20Tree','2855608IJpKse','inherit','\x20\x20Session\x20check:\x20\x20\x20','\x20(accessKey)','verbose','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','24VYPYvW','3642877urlvpb','registryPath','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','(set,\x20length=','✗\x20Invalid','\x20\x20Legacy\x20inherit:\x20\x20\x20','serviceCode','pageSize','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20doctor','arch','(not\x20found)','includes','filter','defaultApp','\x20\x20auth\x20(effective):\x20','platform','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','9706037ZmQVIq','\x20Imported\x20from:\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','2CgrtZm','(default)','Global','riskLevel','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','hasOwnProperty','\x20\x20runtimeDomain:\x20\x20\x20','commandCount','57MAiXJy','prototype','\x20\x20Auth','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','629611fanarC','green','(none)','Project','current','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20config','packageVersion','✓\x20Valid\x20JSON','empty','raw','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','bold','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20+\x20','name','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','services','status','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3632460bgxGRo','2571110slKkwd','log','ClientAk','\x20commands)','yellow','length','(missing)','\x20\x20Package\x20Version:\x20','\x20\x20Merged\x20Config','62956pOUFmF'];a30_0x2e43=function(){return _0x1150c8;};return a30_0x2e43();}import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x264a4a){const _0x313667=a30_0x2a44,_0x257e7a=getCliVersion(),_0x34b69d=buildConfigFromFlags({});await initGlobalEnvironment(_0x34b69d),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](CLI_BIN_NAME+_0x313667(0xcb))),console[_0x313667(0x85)](a30_0x315dd0['gray']('─'[_0x313667(0x9f)](0x32))),console[_0x313667(0x85)](_0x313667(0xbd)+_0x257e7a),console['log'](_0x313667(0xa8)+process['version']),console[_0x313667(0x85)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x313667(0xd2)]+'\x20'+process[_0x313667(0xcc)]);const _0x3a0c1f=inspectBuiltinSkill();console['log'](),console['log'](a30_0x315dd0['bold']('\x20\x20Built-in\x20Skill')),console['log'](a30_0x315dd0['gray'](_0x313667(0x9a)['repeat'](0x1e))),console[_0x313667(0x85)](_0x313667(0x82)+(_0x3a0c1f[_0x313667(0xa9)]==='current'?a30_0x315dd0[_0x313667(0xe5)](_0x313667(0xf1)):a30_0x315dd0[_0x313667(0x9b)]('✗\x20'+_0x3a0c1f['state']))),console[_0x313667(0x85)](_0x313667(0x8b)+_0x3a0c1f[_0x313667(0xec)]),console[_0x313667(0x85)](_0x313667(0x7f)+(_0x3a0c1f[_0x313667(0x9c)]||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x8a)))),console[_0x313667(0x85)](_0x313667(0x9d)+(_0x3a0c1f[_0x313667(0xb4)]||a30_0x315dd0['gray'](_0x313667(0xcd))));_0x3a0c1f[_0x313667(0xa9)]!==_0x313667(0xe8)&&console[_0x313667(0x85)](_0x313667(0xe9)+_0x3a0c1f[_0x313667(0x96)]);_0x3a0c1f['reason']&&console['log'](_0x313667(0xd6)+_0x3a0c1f['reason']);console[_0x313667(0x85)](),console['log'](a30_0x315dd0[_0x313667(0xf2)]('\x20\x20Config\x20Files')),console['log'](a30_0x315dd0[_0x313667(0xb6)]('\x20\x20─'[_0x313667(0x9f)](0x1e)));const _0x4344e8=getGlobalConfigPath(),_0x2d3cbb=getProjectConfigPath();console[_0x313667(0x85)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4344e8||a30_0x315dd0[_0x313667(0xb6)]('(not\x20found)'))),console[_0x313667(0x85)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d3cbb||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xcd)))),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0xd7))),console['log'](a30_0x315dd0['gray']('\x20\x20─'['repeat'](0x1e)));const _0x15c1e9=(_0x1c1044,_0x5f0207)=>{const _0x3faf9=_0x313667;if(!_0x5f0207){console['log']('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0['gray'](_0x3faf9(0xb1)));return;}const _0x16ebc6=inspectCliConfigJsonFile(_0x5f0207);if(_0x16ebc6[_0x3faf9(0x81)]==='ok')console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0['green'](_0x3faf9(0xed)));else{if(_0x16ebc6[_0x3faf9(0x81)]===_0x3faf9(0xee))console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x88)](_0x3faf9(0xb2)));else _0x16ebc6[_0x3faf9(0x81)]==='missing'?console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0xb6)](_0x3faf9(0x8a))):(console[_0x3faf9(0x85)]('\x20\x20'+_0x1c1044[_0x3faf9(0xac)](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x9b)](_0x3faf9(0xb5))),console[_0x3faf9(0x85)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a30_0x315dd0[_0x3faf9(0x9b)](_0x16ebc6['message'])));}};_0x15c1e9(_0x313667(0xda),_0x4344e8),_0x15c1e9(_0x313667(0xe7),_0x2d3cbb);const _0xbce699=loadRawConfigLayers(),_0x3e2b46=[Object['prototype'][_0x313667(0xdd)][_0x313667(0xa0)](_0xbce699[_0x313667(0xa7)],'inherit')?_0x313667(0xc2):null,Object[_0x313667(0xe1)][_0x313667(0xdd)][_0x313667(0xa0)](_0xbce699['projectConfig'],_0x313667(0xb9))?_0x313667(0x99):null][_0x313667(0xcf)](Boolean);_0x3e2b46[_0x313667(0x89)]>0x0&&(console[_0x313667(0x85)](_0x313667(0xc5)+a30_0x315dd0['yellow'](_0x313667(0xca)+_0x3e2b46[_0x313667(0xa1)](_0x313667(0xf5))+_0x313667(0xeb))),_0x3e2b46['includes'](_0x313667(0x99))&&console['log'](_0x313667(0x90)+CLI_BIN_NAME+_0x313667(0xa2)),_0x3e2b46[_0x313667(0xce)](_0x313667(0xc2))&&console[_0x313667(0x85)](_0x313667(0xab)+CLI_BIN_NAME+_0x313667(0xf4)));console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0x8c))),console[_0x313667(0x85)](a30_0x315dd0['gray'](_0x313667(0x9a)['repeat'](0x1e))),console[_0x313667(0x85)](_0x313667(0xe3)+(_0x34b69d['appCode']||a30_0x315dd0[_0x313667(0x9b)](_0x313667(0x93)))),console[_0x313667(0x85)](_0x313667(0xc1)+_0x34b69d['env']),console[_0x313667(0x85)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+normalizeLovrabetRegion(_0x34b69d[_0x313667(0xef)][_0x313667(0x8f)])),console[_0x313667(0x85)](_0x313667(0x95)+_0x34b69d[_0x313667(0x98)]),console[_0x313667(0x85)](_0x313667(0xaa)+(_0x34b69d[_0x313667(0xd0)]||a30_0x315dd0['gray'](_0x313667(0xe6)))),console[_0x313667(0x85)](_0x313667(0xdc)+(_0x34b69d[_0x313667(0xaf)]||a30_0x315dd0['gray'](_0x313667(0xe6)))),console[_0x313667(0x85)](_0x313667(0xf7)+(_0x34b69d['format']||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xa4)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x313667(0xf0)+(_0x34b69d[_0x313667(0xc7)]??a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xd9)))),console[_0x313667(0x85)](_0x313667(0xa6)+_0x34b69d[_0x313667(0xdb)]),console[_0x313667(0x85)](_0x313667(0xc9)+_0x34b69d[_0x313667(0xbc)]),console[_0x313667(0x85)](_0x313667(0xd1)+AUTH_MODE[_0x313667(0x86)]),console[_0x313667(0x85)](_0x313667(0x8e)+(_0x34b69d[_0x313667(0xa3)]?a30_0x315dd0[_0x313667(0xe5)](_0x313667(0xc3)+_0x34b69d[_0x313667(0xa3)][_0x313667(0x89)]+')'):a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xe6)))),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)]('\x20\x20API\x20Endpoints')),console['log'](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e))),console[_0x313667(0x85)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x313667(0x85)](_0x313667(0xb3)+getUserDomain()),console[_0x313667(0x85)](_0x313667(0xde)+getRuntimeDomain()),console[_0x313667(0x85)](_0x313667(0x94)+getSkillDomain()),console[_0x313667(0x85)](_0x313667(0x97)+getKbDomain()),console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0['bold'](_0x313667(0xb7))),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e)));const _0x4310ff=inspectServiceRegistry();console[_0x313667(0x85)](_0x313667(0xc8)+_0x4310ff[_0x313667(0xc0)]),console[_0x313667(0x85)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x4310ff)),console[_0x313667(0x85)](_0x313667(0x91)+_0x4310ff['serviceCount']),console[_0x313667(0x85)](_0x313667(0xd3)+_0x4310ff['commandCount']);for(const _0x5f49ee of _0x4310ff[_0x313667(0x80)]){console['log']('\x20\x20'+(_0x5f49ee[_0x313667(0xc6)]+':')['padEnd'](0x11)+'\x20'+(_0x5f49ee[_0x313667(0xf6)]||a30_0x315dd0[_0x313667(0xb6)](_0x313667(0xa5)))+'\x20('+_0x5f49ee[_0x313667(0xdf)]+_0x313667(0x87)),console['log']('\x20\x20'+''[_0x313667(0xac)](0x11)+_0x313667(0xd5)+_0x5f49ee['source']['path']);}return console[_0x313667(0x85)](),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xf2)](_0x313667(0xe2))),console[_0x313667(0x85)](a30_0x315dd0[_0x313667(0xb6)](_0x313667(0x9a)[_0x313667(0x9f)](0x1e))),console[_0x313667(0x85)](_0x313667(0xf3)+a30_0x315dd0[_0x313667(0xe5)](AUTH_MODE[_0x313667(0x86)]+_0x313667(0xbb))),console['log'](_0x313667(0xba)+a30_0x315dd0[_0x313667(0xb6)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x313667(0x85)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3d1b2e){const _0x3874ec=a30_0x2a44;if(_0x3d1b2e[_0x3874ec(0x81)]==='ok')return a30_0x315dd0[_0x3874ec(0xe5)]('✓\x20Loaded');if(_0x3d1b2e[_0x3874ec(0x81)]===_0x3874ec(0x92))return a30_0x315dd0['gray'](_0x3874ec(0xcd));if(_0x3d1b2e[_0x3874ec(0x81)]==='empty')return a30_0x315dd0['yellow'](_0x3874ec(0x9e));return a30_0x315dd0['red'](_0x3874ec(0xc4)+(_0x3d1b2e['message']?':\x20'+_0x3d1b2e[_0x3874ec(0xea)]:''));}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a30_0x15787d(0xad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x4687c3=a30_0x5855;(function(_0x14f312,_0x37bcb8){const _0x66ada=a30_0x5855,_0xa99389=_0x14f312();while(!![]){try{const _0x22558e=-parseInt(_0x66ada(0x152))/0x1*(parseInt(_0x66ada(0x1a6))/0x2)+parseInt(_0x66ada(0x17e))/0x3+-parseInt(_0x66ada(0x171))/0x4+-parseInt(_0x66ada(0x198))/0x5+parseInt(_0x66ada(0x150))/0x6+-parseInt(_0x66ada(0x164))/0x7*(-parseInt(_0x66ada(0x182))/0x8)+-parseInt(_0x66ada(0x1a8))/0x9*(-parseInt(_0x66ada(0x15b))/0xa);if(_0x22558e===_0x37bcb8)break;else _0xa99389['push'](_0xa99389['shift']());}catch(_0x48f569){_0xa99389['push'](_0xa99389['shift']());}}}(a30_0x33f9,0x77d92));import a30_0x2f3cc6 from'chalk';function a30_0x5855(_0x4029a5,_0x12ff18){_0x4029a5=_0x4029a5-0x13f;const _0x33f9ba=a30_0x33f9();let _0x58550a=_0x33f9ba[_0x4029a5];return _0x58550a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x1dd44f){const _0x48ce40=a30_0x5855,_0x513fd1=getCliVersion(),_0x20254c=buildConfigFromFlags({});await initGlobalEnvironment(_0x20254c),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6['bold'](CLI_BIN_NAME+_0x48ce40(0x15d))),console['log'](a30_0x2f3cc6[_0x48ce40(0x179)]('─'[_0x48ce40(0x151)](0x32))),console[_0x48ce40(0x1a2)](_0x48ce40(0x16c)+_0x513fd1),console[_0x48ce40(0x1a2)](_0x48ce40(0x146)+process[_0x48ce40(0x1a0)]),console[_0x48ce40(0x1a2)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x48ce40(0x181)]+'\x20'+process['arch']);const _0x1a9a3d=inspectBuiltinSkill();console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x144))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x193)+(_0x1a9a3d[_0x48ce40(0x1a5)]===_0x48ce40(0x145)?a30_0x2f3cc6['green']('✓\x20current'):a30_0x2f3cc6['red']('✗\x20'+_0x1a9a3d[_0x48ce40(0x1a5)]))),console['log'](_0x48ce40(0x15a)+_0x1a9a3d[_0x48ce40(0x162)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x18e)+(_0x1a9a3d['skillVersion']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x15e)))),console['log'](_0x48ce40(0x166)+(_0x1a9a3d['installedPath']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a))));_0x1a9a3d[_0x48ce40(0x1a5)]!==_0x48ce40(0x145)&&console[_0x48ce40(0x1a2)](_0x48ce40(0x190)+_0x1a9a3d[_0x48ce40(0x13f)]);_0x1a9a3d['reason']&&console[_0x48ce40(0x1a2)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1a9a3d[_0x48ce40(0x199)]);console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x19c))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)]('\x20\x20─'[_0x48ce40(0x151)](0x1e)));const _0x4298b6=getGlobalConfigPath(),_0x379f9f=getProjectConfigPath();console[_0x48ce40(0x1a2)](_0x48ce40(0x1a4)+(_0x4298b6||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x379f9f||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x17a)))),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x191))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e)));const _0x579b23=(_0x106e9e,_0x53c93a)=>{const _0x3c6399=_0x48ce40;if(!_0x53c93a){console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x179)](_0x3c6399(0x188)));return;}const _0x3259bc=inspectCliConfigJsonFile(_0x53c93a);if(_0x3259bc[_0x3c6399(0x1a9)]==='ok')console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1aa)](_0x3c6399(0x18f)));else{if(_0x3259bc[_0x3c6399(0x1a9)]===_0x3c6399(0x194))console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x167)](_0x3c6399(0x15f)));else _0x3259bc[_0x3c6399(0x1a9)]===_0x3c6399(0x19f)?console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e['padEnd'](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x179)](_0x3c6399(0x15e))):(console[_0x3c6399(0x1a2)]('\x20\x20'+_0x106e9e[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1b1)](_0x3c6399(0x19e))),console[_0x3c6399(0x1a2)]('\x20\x20'+''[_0x3c6399(0x140)](0x11)+'\x20'+a30_0x2f3cc6[_0x3c6399(0x1b1)](_0x3259bc['message'])));}};_0x579b23(_0x48ce40(0x161),_0x4298b6),_0x579b23(_0x48ce40(0x174),_0x379f9f);const _0x3c0805=loadRawConfigLayers(),_0x1b56bc=[Object[_0x48ce40(0x141)][_0x48ce40(0x18a)][_0x48ce40(0x186)](_0x3c0805[_0x48ce40(0x14c)],_0x48ce40(0x16d))?_0x48ce40(0x16a):null,Object[_0x48ce40(0x141)][_0x48ce40(0x18a)][_0x48ce40(0x186)](_0x3c0805[_0x48ce40(0x18b)],_0x48ce40(0x16d))?_0x48ce40(0x16f):null]['filter'](Boolean);_0x1b56bc[_0x48ce40(0x16e)]>0x0&&(console[_0x48ce40(0x1a2)](_0x48ce40(0x142)+a30_0x2f3cc6[_0x48ce40(0x167)](_0x48ce40(0x153)+_0x1b56bc['join']('\x20+\x20')+_0x48ce40(0x17b))),_0x1b56bc['includes']('project')&&console[_0x48ce40(0x1a2)](_0x48ce40(0x15c)+CLI_BIN_NAME+_0x48ce40(0x1b2)),_0x1b56bc[_0x48ce40(0x19a)](_0x48ce40(0x16a))&&console['log'](_0x48ce40(0x1ad)+CLI_BIN_NAME+_0x48ce40(0x173)));console['log'](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x187))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x165)+(_0x20254c[_0x48ce40(0x196)]||a30_0x2f3cc6[_0x48ce40(0x1b1)](_0x48ce40(0x1ac)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x1ae)+_0x20254c['env']),console[_0x48ce40(0x1a2)](_0x48ce40(0x160)+normalizeLovrabetRegion(_0x20254c['raw'][_0x48ce40(0x17c)])),console[_0x48ce40(0x1a2)](_0x48ce40(0x14a)+_0x20254c[_0x48ce40(0x1ab)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x157)+(_0x20254c['defaultApp']||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x149)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x175)+(_0x20254c[_0x48ce40(0x14d)]||a30_0x2f3cc6['gray']('(none)'))),console[_0x48ce40(0x1a2)](_0x48ce40(0x1b4)+(_0x20254c[_0x48ce40(0x14f)]||a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x18d)+DEFAULT_CONFIG_VALUES[_0x48ce40(0x14f)]+')'))),console[_0x48ce40(0x1a2)](_0x48ce40(0x184)+(_0x20254c[_0x48ce40(0x158)]??a30_0x2f3cc6['gray'](_0x48ce40(0x17d)))),console[_0x48ce40(0x1a2)](_0x48ce40(0x19d)+_0x20254c[_0x48ce40(0x1a1)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x168)+_0x20254c[_0x48ce40(0x159)]),console[_0x48ce40(0x1a2)](_0x48ce40(0x195)+AUTH_MODE['ClientAk']),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x20254c['accessKey']?a30_0x2f3cc6['green'](_0x48ce40(0x169)+_0x20254c[_0x48ce40(0x176)][_0x48ce40(0x16e)]+')'):a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x149)))),console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x14b))),console['log'](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console[_0x48ce40(0x1a2)](_0x48ce40(0x156)+getApiDomain()),console[_0x48ce40(0x1a2)](_0x48ce40(0x183)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x48ce40(0x172)+getSkillDomain()),console[_0x48ce40(0x1a2)](_0x48ce40(0x1b3)+getKbDomain()),console[_0x48ce40(0x1a2)](),console['log'](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x148))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e)));const _0x27e9fb=inspectServiceRegistry();console[_0x48ce40(0x1a2)](_0x48ce40(0x192)+_0x27e9fb['registryPath']),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x27e9fb)),console[_0x48ce40(0x1a2)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x27e9fb['serviceCount']),console[_0x48ce40(0x1a2)](_0x48ce40(0x189)+_0x27e9fb[_0x48ce40(0x185)]);for(const _0x3c26ba of _0x27e9fb['services']){console[_0x48ce40(0x1a2)]('\x20\x20'+(_0x3c26ba[_0x48ce40(0x170)]+':')[_0x48ce40(0x140)](0x11)+'\x20'+(_0x3c26ba[_0x48ce40(0x163)]||a30_0x2f3cc6['gray']('(unnamed)'))+'\x20('+_0x3c26ba[_0x48ce40(0x185)]+_0x48ce40(0x178)),console[_0x48ce40(0x1a2)]('\x20\x20'+''[_0x48ce40(0x140)](0x11)+_0x48ce40(0x19b)+_0x3c26ba[_0x48ce40(0x14e)][_0x48ce40(0x17f)]);}return console[_0x48ce40(0x1a2)](),console[_0x48ce40(0x1a2)](a30_0x2f3cc6[_0x48ce40(0x155)](_0x48ce40(0x154))),console[_0x48ce40(0x1a2)](a30_0x2f3cc6['gray'](_0x48ce40(0x1b0)[_0x48ce40(0x151)](0x1e))),console['log'](_0x48ce40(0x180)+a30_0x2f3cc6['green'](AUTH_MODE[_0x48ce40(0x1a7)]+'\x20(accessKey)')),console['log'](_0x48ce40(0x18c)+a30_0x2f3cc6[_0x48ce40(0x179)](_0x48ce40(0x197))),console[_0x48ce40(0x1a2)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4486f8){const _0x412eba=a30_0x5855;if(_0x4486f8['status']==='ok')return a30_0x2f3cc6['green'](_0x412eba(0x177));if(_0x4486f8['status']===_0x412eba(0x19f))return a30_0x2f3cc6[_0x412eba(0x179)](_0x412eba(0x17a));if(_0x4486f8[_0x412eba(0x1a9)]==='empty')return a30_0x2f3cc6[_0x412eba(0x167)](_0x412eba(0x147));return a30_0x2f3cc6['red']('✗\x20Invalid'+(_0x4486f8[_0x412eba(0x16b)]?':\x20'+_0x4486f8[_0x412eba(0x16b)]:''));}export const doctorDefinition={'service':'doctor','command':a30_0x4687c3(0x1af),'description':a30_0x4687c3(0x1a3),'risk':a30_0x4687c3(0x143),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a30_0x33f9(){const _0x596999=['✗\x20Invalid\x20JSON','missing','version','riskLevel','log','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','8owQKDu','ClientAk','18RiXHBT','status','green','locale','(not\x20set)','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20─','red','\x20config\x20delete\x20inherit','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','padEnd','prototype','\x20\x20Legacy\x20inherit:\x20\x20\x20','read','\x20\x20Built-in\x20Skill','current','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20Service\x20Tree','(none)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','globalConfig','currentApp','source','format','784842IeZoha','repeat','19880RttFgJ','ignored\x20in\x20','\x20\x20Auth','bold','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','pageSize','verbose','\x20\x20Package\x20Version:\x20','2297840foplka','\x20\x20Repair\x20project:\x20\x20\x20','\x20doctor','(missing)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','packageVersion','name','7eskmPc','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','yellow','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','global','message','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','inherit','length','project','serviceCode','3682260QiUcYj','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','Project','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','accessKey','✓\x20Loaded','\x20commands)','gray','(not\x20found)','\x20config','region','(default)','1842582ietVSb','path','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','2924680ofUokN','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','call','\x20\x20Merged\x20Config','(no\x20file)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','projectConfig','\x20\x20Session\x20check:\x20\x20\x20','(default:\x20','\x20\x20Skill\x20Version:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20auth\x20(effective):\x20','appCode','(removed\x20—\x20cookie\x20auth\x20disabled)','395855VBuukr','reason','includes','\x20Imported\x20from:\x20','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'];a30_0x33f9=function(){return _0x596999;};return a30_0x33f9();}
@@ -1 +1 @@
1
- function a31_0x2a17(_0x1ab0ad,_0x1f5277){_0x1ab0ad=_0x1ab0ad-0x191;const _0x1bb035=a31_0x1bb0();let _0x2a17f6=_0x1bb035[_0x1ab0ad];return _0x2a17f6;}const a31_0x106ebd=a31_0x2a17;(function(_0xb2539,_0x356e80){const _0x2879fc=a31_0x2a17,_0x56c8e6=_0xb2539();while(!![]){try{const _0x11fa4c=-parseInt(_0x2879fc(0x1b2))/0x1*(parseInt(_0x2879fc(0x1a1))/0x2)+parseInt(_0x2879fc(0x1ad))/0x3*(parseInt(_0x2879fc(0x198))/0x4)+-parseInt(_0x2879fc(0x1a0))/0x5+parseInt(_0x2879fc(0x1a2))/0x6+parseInt(_0x2879fc(0x19d))/0x7*(parseInt(_0x2879fc(0x1b3))/0x8)+-parseInt(_0x2879fc(0x1a8))/0x9+-parseInt(_0x2879fc(0x1a9))/0xa*(-parseInt(_0x2879fc(0x1a7))/0xb);if(_0x11fa4c===_0x356e80)break;else _0x56c8e6['push'](_0x56c8e6['shift']());}catch(_0x41c5bc){_0x56c8e6['push'](_0x56c8e6['shift']());}}}(a31_0x1bb0,0x7317a));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';function a31_0x1bb0(){const _0x29686c=['Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','path','\x20to\x20runtime\x20app\x20','download','1433948biTEdG','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath\x20is\x20required.','/client/uploadFile','body','125608vjwVTy','read','string','2687570JRxoSS','8WrcPVh','558720UiiWQn','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filepath','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','22zZmLMx','1284228FwHSeR','1578170KtlrJW','POST','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','long-term','6tjSAdL','bool','str','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','38386ZwWQvp','80YBsyNl','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','upload','boolean','Preview:\x20upload\x20','trim'];a31_0x1bb0=function(){return _0x29686c;};return a31_0x1bb0();}const FILE_FLAG={'name':a31_0x106ebd(0x1a5),'type':a31_0x106ebd(0x19f),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a31_0x106ebd(0x1a4),'type':'string','required':!![],'description':a31_0x106ebd(0x1ab)},DOWNLOAD_FLAG={'name':a31_0x106ebd(0x197),'type':a31_0x106ebd(0x191),'description':a31_0x106ebd(0x1a3)},LONG_TERM_FLAG={'name':'long-term','type':a31_0x106ebd(0x191),'description':a31_0x106ebd(0x1b1)};function requireFilePath(_0xb178f2){const _0x59a438=a31_0x106ebd,_0x1fc8f0=_0xb178f2[_0x59a438(0x193)]();if(!_0x1fc8f0)throw CliErrors['validation'](_0x59a438(0x19a));return _0x1fc8f0;}const fileUpload={'service':a31_0x106ebd(0x1a5),'command':a31_0x106ebd(0x1b5),'description':a31_0x106ebd(0x1a6),'risk':a31_0x106ebd(0x19e),'flags':[FILE_FLAG],async 'dryRun'(_0x2efad1){const _0x38aaf3=a31_0x106ebd,_0x3f635f=requireRuntimeUploadFile(_0x2efad1[_0x38aaf3(0x1af)]('file'),'File');return dryRun(_0x38aaf3(0x1aa),_0x38aaf3(0x19b))[_0x38aaf3(0x19c)]({'appCode':_0x2efad1['appCode'],'multipart':{'file':_0x3f635f}})['description'](_0x38aaf3(0x192)+_0x3f635f[_0x38aaf3(0x195)]+_0x38aaf3(0x196)+_0x2efad1['appCode'])['build']();},async 'execute'(_0x1fd1ec){const _0x126e55=a31_0x106ebd,_0x4570c2=requireRuntimeUploadFile(_0x1fd1ec[_0x126e55(0x1af)](_0x126e55(0x1a5)),'File'),_0x18cbbf=await uploadRuntimeFile(_0x1fd1ec['appCode'],_0x4570c2[_0x126e55(0x195)]);return{'ok':!![],'data':_0x18cbbf,'message':_0x18cbbf['filePath']?'Uploaded\x20file:\x20'+_0x18cbbf['filePath']+_0x126e55(0x1b4):_0x126e55(0x199)};}},fileQueryUrl={'service':a31_0x106ebd(0x1a5),'command':a31_0x106ebd(0x1b0),'description':a31_0x106ebd(0x194),'risk':a31_0x106ebd(0x19e),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x55c58b){const _0x1b9083=a31_0x106ebd,_0x452dc2=requireFilePath(_0x55c58b[_0x1b9083(0x1af)](_0x1b9083(0x1a4))),_0x569f87=await queryRuntimeFileUrl(_0x452dc2,{'download':_0x55c58b['bool'](_0x1b9083(0x197)),'longTerm':_0x55c58b[_0x1b9083(0x1ae)](_0x1b9083(0x1ac))});return{'ok':!![],'data':_0x569f87};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x4588b1=a31_0x1504;(function(_0x27f6a3,_0x2f77ce){const _0x8c986=a31_0x1504,_0x2cc6a3=_0x27f6a3();while(!![]){try{const _0x28469a=-parseInt(_0x8c986(0x7e))/0x1*(-parseInt(_0x8c986(0x75))/0x2)+parseInt(_0x8c986(0x8c))/0x3*(-parseInt(_0x8c986(0x7b))/0x4)+-parseInt(_0x8c986(0x8e))/0x5*(-parseInt(_0x8c986(0x89))/0x6)+-parseInt(_0x8c986(0x73))/0x7+-parseInt(_0x8c986(0x77))/0x8*(-parseInt(_0x8c986(0x91))/0x9)+-parseInt(_0x8c986(0x80))/0xa*(parseInt(_0x8c986(0x83))/0xb)+-parseInt(_0x8c986(0x8a))/0xc;if(_0x28469a===_0x2f77ce)break;else _0x2cc6a3['push'](_0x2cc6a3['shift']());}catch(_0x2bb44b){_0x2cc6a3['push'](_0x2cc6a3['shift']());}}}(a31_0x4081,0x4e335));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a31_0x1504(_0x69d993,_0x5743ed){_0x69d993=_0x69d993-0x6d;const _0x4081ee=a31_0x4081();let _0x1504bb=_0x4081ee[_0x69d993];return _0x1504bb;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4588b1(0x78),'type':a31_0x4588b1(0x90),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a31_0x4588b1(0x90),'required':!![],'description':a31_0x4588b1(0x72)},DOWNLOAD_FLAG={'name':a31_0x4588b1(0x81),'type':a31_0x4588b1(0x7d),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a31_0x4588b1(0x8d),'type':a31_0x4588b1(0x7d),'description':a31_0x4588b1(0x79)};function requireFilePath(_0x15c4a1){const _0xba9a23=a31_0x4588b1,_0x2bdc0b=_0x15c4a1[_0xba9a23(0x70)]();if(!_0x2bdc0b)throw CliErrors[_0xba9a23(0x6e)]('filePath\x20is\x20required.');return _0x2bdc0b;}const fileUpload={'service':a31_0x4588b1(0x78),'command':'upload','description':a31_0x4588b1(0x88),'risk':a31_0x4588b1(0x82),'flags':[FILE_FLAG],async 'dryRun'(_0x3c7b31){const _0x5c3f0d=a31_0x4588b1,_0x185927=requireRuntimeUploadFile(_0x3c7b31[_0x5c3f0d(0x85)](_0x5c3f0d(0x78)),_0x5c3f0d(0x84));return dryRun(_0x5c3f0d(0x6d),'/client/uploadFile')['body']({'appCode':_0x3c7b31[_0x5c3f0d(0x76)],'multipart':{'file':_0x185927}})[_0x5c3f0d(0x8b)](_0x5c3f0d(0x8f)+_0x185927[_0x5c3f0d(0x87)]+_0x5c3f0d(0x7a)+_0x3c7b31[_0x5c3f0d(0x76)])[_0x5c3f0d(0x6f)]();},async 'execute'(_0xea7369){const _0x51da80=a31_0x4588b1,_0x1dc0ad=requireRuntimeUploadFile(_0xea7369[_0x51da80(0x85)]('file'),'File'),_0x54c1fc=await uploadRuntimeFile(_0xea7369['appCode'],_0x1dc0ad[_0x51da80(0x87)]);return{'ok':!![],'data':_0x54c1fc,'message':_0x54c1fc['filePath']?_0x51da80(0x71)+_0x54c1fc['filePath']+_0x51da80(0x86):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a31_0x4588b1(0x78),'command':a31_0x4588b1(0x7c),'description':a31_0x4588b1(0x7f),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x56e8f5){const _0x3ff4ec=a31_0x4588b1,_0x5605c0=requireFilePath(_0x56e8f5[_0x3ff4ec(0x85)]('filepath')),_0x2a20e0=await queryRuntimeFileUrl(_0x5605c0,{'download':_0x56e8f5[_0x3ff4ec(0x74)]('download'),'longTerm':_0x56e8f5['bool'](_0x3ff4ec(0x8d))});return{'ok':!![],'data':_0x2a20e0};}};function a31_0x4081(){const _0x1dcc06=['Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','12GYlPhr','1502676irNnGH','description','80274aVuaGd','long-term','866555VwxiII','Preview:\x20upload\x20','string','9kQuvQd','POST','validation','build','trim','Uploaded\x20file:\x20','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','1090166CtBDPA','bool','79682qeBKSE','appCode','4262416qkIxjy','file','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','\x20to\x20runtime\x20app\x20','8KUmKJS','query-url','boolean','7ZYOhjc','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','10xfEMCx','download','read','5538775PGRUlx','File','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','path'];a31_0x4081=function(){return _0x1dcc06;};return a31_0x4081();}export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0x5f302d=a32_0x1c9b;(function(_0x4d430e,_0x328e52){const _0x1e9388=a32_0x1c9b,_0x2d388e=_0x4d430e();while(!![]){try{const _0x3fe638=parseInt(_0x1e9388(0x160))/0x1*(parseInt(_0x1e9388(0x163))/0x2)+parseInt(_0x1e9388(0x157))/0x3*(-parseInt(_0x1e9388(0x179))/0x4)+parseInt(_0x1e9388(0x166))/0x5*(parseInt(_0x1e9388(0x16d))/0x6)+-parseInt(_0x1e9388(0x15d))/0x7*(-parseInt(_0x1e9388(0x174))/0x8)+parseInt(_0x1e9388(0x17b))/0x9*(-parseInt(_0x1e9388(0x154))/0xa)+-parseInt(_0x1e9388(0x177))/0xb+-parseInt(_0x1e9388(0x164))/0xc*(-parseInt(_0x1e9388(0x178))/0xd);if(_0x3fe638===_0x328e52)break;else _0x2d388e['push'](_0x2d388e['shift']());}catch(_0x3869df){_0x2d388e['push'](_0x2d388e['shift']());}}}(a32_0xf40b,0x46f31));function a32_0x1c9b(_0x4c18d1,_0x211bbb){_0x4c18d1=_0x4c18d1-0x154;const _0xf40b94=a32_0xf40b();let _0x1c9b57=_0xf40b94[_0x4c18d1];return _0x1c9b57;}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';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x5f302d(0x176),'type':a32_0x5f302d(0x158),'description':a32_0x5f302d(0x15f),'required':!![]},{'name':'appcode','type':a32_0x5f302d(0x158),'description':'Override\x20imported\x20default\x20appcode'},{'name':a32_0x5f302d(0x175),'type':a32_0x5f302d(0x158),'description':a32_0x5f302d(0x167),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x5f302d(0x15c),'type':'boolean','description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a32_0x5f302d(0x16b)]+a32_0x5f302d(0x165),'default':![]},{'name':a32_0x5f302d(0x162),'type':a32_0x5f302d(0x17e),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runAppImport(_0x4f66cb){const _0x19deb8=a32_0x5f302d,_0x38836a=_0x4f66cb[_0x19deb8(0x15c)]?'global':_0x19deb8(0x16e),_0x4bf448=resolveWriteConfigPath(_0x38836a);await runFromImport(_0x4f66cb,_0x4bf448);}function a32_0xf40b(){const _0x557073=['1137322ECSqHu','900MluQjN',')\x20instead\x20of\x20project','5jRDDQS','Override\x20imported\x20default\x20env','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','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`.','parse','newConfigFileName','object','1651194XQhNZh','project','apps','app','appcode','\x20\x20default:\x20','log','769984cKWWBs','env','file','996006OWrZNQ','5863jlLDXR','48vGqfmG','includes','441891AUJVGq','entries','riskLevel','boolean','message','20MMqqti','\x20\x20appcode:\x20','Imported\x20from\x20','123645JKdLrX','string','Failed\x20to\x20parse\x20source\x20file:\x20','join','defaultApp','global','7AsGwkF','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','1FNufqx','validation','yes'];a32_0xf40b=function(){return _0x557073;};return a32_0xf40b();}async function runFromImport(_0x4f9cd3,_0x2b73aa){const _0x5a2e24=a32_0x5f302d,_0x160df7=resolveFilePath(_0x4f9cd3['file']);if(!existsSync(_0x160df7))throw CliErrors[_0x5a2e24(0x161)]('Source\x20file\x20not\x20found:\x20'+_0x160df7);const _0x38da40=readSourceFile(_0x160df7),_0x47fe1c=convertToRuntimeConfig(_0x38da40);_0x4f9cd3['appcode']&&(_0x47fe1c[_0x5a2e24(0x171)]=String(_0x4f9cd3[_0x5a2e24(0x171)]));_0x4f9cd3[_0x5a2e24(0x175)]&&(_0x47fe1c['env']=resolveImportEnv(_0x4f9cd3));if(!_0x47fe1c[_0x5a2e24(0x171)])throw CliErrors[_0x5a2e24(0x161)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x5a2e24(0x169));await writeImportConfig(_0x2b73aa,_0x47fe1c,_0x4f9cd3),console[_0x5a2e24(0x173)](_0x5a2e24(0x156)+_0x160df7),console[_0x5a2e24(0x173)]('\x20\x20config:\x20\x20'+_0x2b73aa),console['log'](_0x5a2e24(0x155)+_0x47fe1c[_0x5a2e24(0x171)]);if(_0x47fe1c['defaultApp'])console[_0x5a2e24(0x173)](_0x5a2e24(0x172)+_0x47fe1c[_0x5a2e24(0x15b)]);}function convertToRuntimeConfig(_0x26ad35){const _0x57ca02=a32_0x5f302d;if(_0x26ad35[_0x57ca02(0x16f)]&&typeof _0x26ad35[_0x57ca02(0x16f)]===_0x57ca02(0x16c))throw CliErrors[_0x57ca02(0x161)](_0x57ca02(0x15e),_0x57ca02(0x168));const _0x5754f1={};for(const _0x2a1479 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x26ad35[_0x2a1479]!==undefined&&(_0x5754f1[_0x2a1479]=_0x26ad35[_0x2a1479]);}return!_0x5754f1[_0x57ca02(0x17d)]&&(_0x5754f1[_0x57ca02(0x17d)]=DEFAULT_CONFIG_VALUES[_0x57ca02(0x17d)]),_0x5754f1;}async function writeImportConfig(_0x22eddc,_0x441e00,_0x432766){const _0x50de5a=a32_0x5f302d;let _0x544803={};existsSync(_0x22eddc)&&!_0x432766[_0x50de5a(0x162)]&&(_0x544803=readConfigFile(_0x22eddc));for(const [_0xb6c61,_0x4817ac]of Object[_0x50de5a(0x17c)](_0x441e00)){_0x4817ac!==undefined&&(_0x544803[_0xb6c61]=_0x4817ac);}if(_0x544803[_0x50de5a(0x170)])delete _0x544803['app'];writeConfigFile(_0x22eddc,_0x544803);}function resolveFilePath(_0x2bb300){return isAbsolute(_0x2bb300)?_0x2bb300:resolve(process['cwd'](),_0x2bb300);}function readSourceFile(_0x51f589){const _0x3a2e68=a32_0x5f302d;try{const _0x5dcced=readFileSync(_0x51f589,{'encoding':'utf8'});return JSON[_0x3a2e68(0x16a)](_0x5dcced);}catch(_0x17344c){throw CliErrors[_0x3a2e68(0x161)](_0x3a2e68(0x159)+_0x17344c[_0x3a2e68(0x17f)]);}}function resolveImportEnv(_0x2b6324){const _0x318265=a32_0x5f302d,_0x2a7aa2=_0x2b6324[_0x318265(0x175)];if(_0x2a7aa2===undefined||_0x2a7aa2==='')return DEFAULT_CONFIG_VALUES[_0x318265(0x175)];if(!RUNTIME_ENV_VALUES[_0x318265(0x17a)](_0x2a7aa2))throw CliErrors[_0x318265(0x161)]('Invalid\x20env\x20\x22'+_0x2a7aa2+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x318265(0x15a)](',\x20'));return _0x2a7aa2;}
1
+ const a32_0x1a768e=a32_0x44a4;(function(_0x35a51b,_0xe85dd5){const _0x395d1e=a32_0x44a4,_0x38277d=_0x35a51b();while(!![]){try{const _0x1e147d=parseInt(_0x395d1e(0xab))/0x1+-parseInt(_0x395d1e(0x97))/0x2*(-parseInt(_0x395d1e(0x90))/0x3)+parseInt(_0x395d1e(0x85))/0x4*(parseInt(_0x395d1e(0x87))/0x5)+parseInt(_0x395d1e(0x91))/0x6+parseInt(_0x395d1e(0x8c))/0x7+-parseInt(_0x395d1e(0x88))/0x8*(-parseInt(_0x395d1e(0x8e))/0x9)+parseInt(_0x395d1e(0x9d))/0xa*(-parseInt(_0x395d1e(0x8d))/0xb);if(_0x1e147d===_0xe85dd5)break;else _0x38277d['push'](_0x38277d['shift']());}catch(_0x574171){_0x38277d['push'](_0x38277d['shift']());}}}(a32_0xbd99,0x452a4));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a32_0x44a4(_0x301b06,_0x3f2284){_0x301b06=_0x301b06-0x85;const _0xbd9997=a32_0xbd99();let _0x44a404=_0xbd9997[_0x301b06];return _0x44a404;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a32_0xbd99(){const _0x435c29=['log','app','231335pVWVxi','join','string','\x20\x20appcode:\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','entries','global','2062156kfqkqx','Write\x20to\x20global\x20(~/','5QEbAtF','29336jgLgTK','env','utf8','riskLevel','2031463XXeTgV','293249XyBJuv','1206sQOhnx',')\x20instead\x20of\x20project','9jMUMXj','23316BYUfGt','\x20\x20default:\x20','file','boolean','Invalid\x20env\x20\x22','Override\x20imported\x20default\x20appcode','73708OthTti','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','defaultApp','Failed\x20to\x20parse\x20source\x20file:\x20','apps','Skip\x20confirmation\x20when\x20overwriting','510YMmWYH','Imported\x20from\x20','\x22.\x20Allowed:\x20','includes','project','appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','validation','yes','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`.','newConfigFileName','message'];a32_0xbd99=function(){return _0x435c29;};return a32_0xbd99();}export const appImportFlagDefs=[{'name':a32_0x1a768e(0x93),'type':a32_0x1a768e(0xad),'description':a32_0x1a768e(0x98),'required':!![]},{'name':a32_0x1a768e(0xa2),'type':'string','description':a32_0x1a768e(0x96)},{'name':a32_0x1a768e(0x89),'type':a32_0x1a768e(0xad),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1a768e(0xb1),'type':a32_0x1a768e(0x94),'description':a32_0x1a768e(0x86)+PRODUCT_CONFIG[a32_0x1a768e(0xa7)]+a32_0x1a768e(0x8f),'default':![]},{'name':'yes','type':a32_0x1a768e(0x94),'description':a32_0x1a768e(0x9c),'default':![]}];export async function runAppImport(_0x52f96e){const _0xa143e1=a32_0x1a768e,_0xaa3c2=_0x52f96e['global']?_0xa143e1(0xb1):_0xa143e1(0xa1),_0x5c359e=resolveWriteConfigPath(_0xaa3c2);await runFromImport(_0x52f96e,_0x5c359e);}async function runFromImport(_0x3e5dbb,_0x5be145){const _0x588449=a32_0x1a768e,_0x57f74c=resolveFilePath(_0x3e5dbb[_0x588449(0x93)]);if(!existsSync(_0x57f74c))throw CliErrors[_0x588449(0xa4)]('Source\x20file\x20not\x20found:\x20'+_0x57f74c);const _0x188f6f=readSourceFile(_0x57f74c),_0x42f4ad=convertToRuntimeConfig(_0x188f6f);_0x3e5dbb['appcode']&&(_0x42f4ad['appcode']=String(_0x3e5dbb['appcode']));_0x3e5dbb[_0x588449(0x89)]&&(_0x42f4ad[_0x588449(0x89)]=resolveImportEnv(_0x3e5dbb));if(!_0x42f4ad['appcode'])throw CliErrors[_0x588449(0xa4)](_0x588449(0xa3),_0x588449(0xa6));await writeImportConfig(_0x5be145,_0x42f4ad,_0x3e5dbb),console[_0x588449(0xa9)](_0x588449(0x9e)+_0x57f74c),console[_0x588449(0xa9)]('\x20\x20config:\x20\x20'+_0x5be145),console[_0x588449(0xa9)](_0x588449(0xae)+_0x42f4ad[_0x588449(0xa2)]);if(_0x42f4ad[_0x588449(0x99)])console[_0x588449(0xa9)](_0x588449(0x92)+_0x42f4ad[_0x588449(0x99)]);}function convertToRuntimeConfig(_0x1f305e){const _0x43b243=a32_0x1a768e;if(_0x1f305e[_0x43b243(0x9b)]&&typeof _0x1f305e[_0x43b243(0x9b)]==='object')throw CliErrors['validation'](_0x43b243(0xaf),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x111e08={};for(const _0xd2aa6b of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1f305e[_0xd2aa6b]!==undefined&&(_0x111e08[_0xd2aa6b]=_0x1f305e[_0xd2aa6b]);}return!_0x111e08['riskLevel']&&(_0x111e08[_0x43b243(0x8b)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x111e08;}async function writeImportConfig(_0x1a19a2,_0x9bee0c,_0x40f120){const _0x175ff9=a32_0x1a768e;let _0xf04fff={};existsSync(_0x1a19a2)&&!_0x40f120[_0x175ff9(0xa5)]&&(_0xf04fff=readConfigFile(_0x1a19a2));for(const [_0x372774,_0xe432ee]of Object[_0x175ff9(0xb0)](_0x9bee0c)){_0xe432ee!==undefined&&(_0xf04fff[_0x372774]=_0xe432ee);}if(_0xf04fff['app'])delete _0xf04fff[_0x175ff9(0xaa)];writeConfigFile(_0x1a19a2,_0xf04fff);}function resolveFilePath(_0x239b4f){return isAbsolute(_0x239b4f)?_0x239b4f:resolve(process['cwd'](),_0x239b4f);}function readSourceFile(_0x17f294){const _0x1833d7=a32_0x1a768e;try{const _0x4ee0ad=readFileSync(_0x17f294,{'encoding':_0x1833d7(0x8a)});return JSON['parse'](_0x4ee0ad);}catch(_0x4dbf39){throw CliErrors['validation'](_0x1833d7(0x9a)+_0x4dbf39[_0x1833d7(0xa8)]);}}function resolveImportEnv(_0xd0dd64){const _0x6129a1=a32_0x1a768e,_0x2da72b=_0xd0dd64['env'];if(_0x2da72b===undefined||_0x2da72b==='')return DEFAULT_CONFIG_VALUES[_0x6129a1(0x89)];if(!RUNTIME_ENV_VALUES[_0x6129a1(0xa0)](_0x2da72b))throw CliErrors[_0x6129a1(0xa4)](_0x6129a1(0x95)+_0x2da72b+_0x6129a1(0x9f)+RUNTIME_ENV_VALUES[_0x6129a1(0xac)](',\x20'));return _0x2da72b;}
@@ -1 +1 @@
1
- const a33_0xc6863f=a33_0x4296;(function(_0x1a87ff,_0x2881e7){const _0x2d3f3b=a33_0x4296,_0x54aa80=_0x1a87ff();while(!![]){try{const _0x326e0a=parseInt(_0x2d3f3b(0x18b))/0x1+-parseInt(_0x2d3f3b(0x172))/0x2*(parseInt(_0x2d3f3b(0x177))/0x3)+-parseInt(_0x2d3f3b(0x188))/0x4+-parseInt(_0x2d3f3b(0x176))/0x5+-parseInt(_0x2d3f3b(0x191))/0x6+parseInt(_0x2d3f3b(0x16a))/0x7+parseInt(_0x2d3f3b(0x1a0))/0x8*(-parseInt(_0x2d3f3b(0x169))/0x9);if(_0x326e0a===_0x2881e7)break;else _0x54aa80['push'](_0x54aa80['shift']());}catch(_0x2546fd){_0x54aa80['push'](_0x54aa80['shift']());}}}(a33_0x2853,0xce09e));import{existsSync,readFileSync,statSync}from'node:fs';function a33_0x2853(){const _0x58b7aa=['Personal\x20knowledge-base\x20entry\x20title','title','1412040nigUoU','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Override\x20the\x20existing\x20entry\x20title','ragStatus','body','--topk\x20must\x20be\x20a\x20positive\x20number.','verbose','isFile','content','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','isFinite','read','file','num','build','414544TronQg','/client/knowledge-base/personal/','weightedScore','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','File\x20is\x20not\x20a\x20regular\x20file:\x20','metadata','appCode','ragErrorMessage','updateTime','/update','number','version','write','27pROZZH','10996258PlYgrN','map','createTime','Personal\x20knowledge-base\x20entry\x20ID','validation','flag','scope','utf8','18AfIKdP','length','topk','str','4249485aUDxAz','165021nkGZdd','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','search','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','/client/knowledge-base/personal/create','bool','create','list','userId','docId','update','description','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','trim','POST','File\x20path\x20is\x20required.','2063268iiCUks','string','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','1524611lVyyHa','File\x20not\x20found:\x20','detail','query'];a33_0x2853=function(){return _0x58b7aa;};return a33_0x2853();}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0xc6863f(0x190),'type':a33_0xc6863f(0x189),'required':!![],'description':a33_0xc6863f(0x18f)},FILE_FLAG={'name':a33_0xc6863f(0x19d),'type':a33_0xc6863f(0x189),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0xc6863f(0x18e),'type':'string','required':!![],'description':a33_0xc6863f(0x19a)},TOPK_FLAG={'name':'topk','type':a33_0xc6863f(0x166),'description':a33_0xc6863f(0x15f)};function readKnowledgeFile(_0x1a1be6){const _0x299f62=a33_0xc6863f;if(!_0x1a1be6)throw CliErrors[_0x299f62(0x16e)](_0x299f62(0x187));if(!existsSync(_0x1a1be6))throw CliErrors[_0x299f62(0x16e)](_0x299f62(0x18c)+_0x1a1be6);if(!statSync(_0x1a1be6)[_0x299f62(0x198)]())throw CliErrors['validation'](_0x299f62(0x160)+_0x1a1be6);return readFileSync(_0x1a1be6,_0x299f62(0x171));}function a33_0x4296(_0x55dd12,_0x36c9c1){_0x55dd12=_0x55dd12-0x15f;const _0x2853e3=a33_0x2853();let _0x429666=_0x2853e3[_0x55dd12];return _0x429666;}function summarizePersonalItem(_0x3d555b){const _0x5a239f=a33_0xc6863f;return{'id':_0x3d555b['id'],'title':_0x3d555b[_0x5a239f(0x190)],'version':_0x3d555b[_0x5a239f(0x167)],'ragStatus':_0x3d555b[_0x5a239f(0x194)],'ragErrorMessage':_0x3d555b[_0x5a239f(0x163)],'updateTime':_0x3d555b[_0x5a239f(0x164)]};}function detailPersonalItem(_0x3eddb5){const _0x18eefa=a33_0xc6863f;return{'id':_0x3eddb5['id'],'appCode':_0x3eddb5[_0x18eefa(0x162)],'scope':_0x3eddb5[_0x18eefa(0x170)],'userId':_0x3eddb5[_0x18eefa(0x180)],'title':_0x3eddb5['title'],'content':_0x3eddb5[_0x18eefa(0x199)]??'','version':_0x3eddb5[_0x18eefa(0x167)],'ragStatus':_0x3eddb5[_0x18eefa(0x194)],'ragErrorMessage':_0x3eddb5['ragErrorMessage'],'createTime':_0x3eddb5[_0x18eefa(0x16c)],'updateTime':_0x3eddb5[_0x18eefa(0x164)]};}function summarizeSearchHit(_0x28c0e1){const _0x1b54f6=a33_0xc6863f;return{'scope':_0x28c0e1[_0x1b54f6(0x170)],'title':_0x28c0e1[_0x1b54f6(0x190)],'docId':_0x28c0e1[_0x1b54f6(0x181)],'score':_0x28c0e1['score'],'weightedScore':_0x28c0e1[_0x1b54f6(0x1a2)],'content':_0x28c0e1[_0x1b54f6(0x199)],'metadata':_0x28c0e1[_0x1b54f6(0x161)]};}function readTopK(_0x4ef354){const _0x312e47=a33_0xc6863f,_0x550b1e=_0x4ef354[_0x312e47(0x16f)]('topk');if(_0x550b1e===undefined||_0x550b1e===null||_0x550b1e==='')return undefined;const _0xd8f730=_0x4ef354[_0x312e47(0x19e)](_0x312e47(0x174));if(!Number[_0x312e47(0x19b)](_0xd8f730)||_0xd8f730<0x1)throw CliErrors['validation'](_0x312e47(0x196));return _0xd8f730;}const kbList={'service':'kb','command':a33_0xc6863f(0x17f),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a33_0xc6863f(0x19c),'flags':[VERBOSE_FLAG],async 'execute'(_0xdc87a){const _0x59e336=a33_0xc6863f,_0x4e62a1=await listPersonalKnowledgeBaseItems(_0xdc87a[_0x59e336(0x162)]);if(_0xdc87a[_0x59e336(0x17d)](_0x59e336(0x197)))return{'ok':!![],'data':{'total':_0x4e62a1['length'],'items':_0x4e62a1}};return{'ok':!![],'data':{'total':_0x4e62a1[_0x59e336(0x173)],'items':_0x4e62a1[_0x59e336(0x16b)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0xc6863f(0x18d),'description':a33_0xc6863f(0x17b),'risk':a33_0xc6863f(0x19c),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x3074a0){const _0x378c6b=a33_0xc6863f,_0x40e438=await getPersonalKnowledgeBaseItem(_0x3074a0[_0x378c6b(0x19e)]('id'),_0x3074a0[_0x378c6b(0x162)]);return{'ok':!![],'data':detailPersonalItem(_0x40e438)};}},kbCreate={'service':'kb','command':a33_0xc6863f(0x17e),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0xc6863f(0x168),'confirmationDescription':a33_0xc6863f(0x179),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4fa40d){const _0x24ec65=a33_0xc6863f,_0x4e81d1=_0x4fa40d[_0x24ec65(0x175)](_0x24ec65(0x190)),_0x404b57=readKnowledgeFile(_0x4fa40d[_0x24ec65(0x175)](_0x24ec65(0x19d))),_0x42426e=await createPersonalKnowledgeBaseItem(_0x4fa40d[_0x24ec65(0x162)],{'title':_0x4e81d1,'content':_0x404b57});return{'ok':!![],'data':summarizePersonalItem(_0x42426e),'message':'Created\x20KB\x20entry\x20'+_0x42426e['id']+'\x20('+_0x42426e[_0x24ec65(0x190)]+')'};},async 'dryRun'(_0x4f4125){const _0xe2f16c=a33_0xc6863f,_0x1b77e9=_0x4f4125[_0xe2f16c(0x175)](_0xe2f16c(0x190)),_0x2ba318=readKnowledgeFile(_0x4f4125[_0xe2f16c(0x175)](_0xe2f16c(0x19d)));return dryRun(_0xe2f16c(0x186),_0xe2f16c(0x17c))[_0xe2f16c(0x195)]({'appCode':_0x4f4125[_0xe2f16c(0x162)],'title':_0x1b77e9,'content':_0x2ba318})[_0xe2f16c(0x183)](_0xe2f16c(0x184)+_0x1b77e9+'\x22')['build']();}},kbUpdate={'service':'kb','command':a33_0xc6863f(0x182),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0xc6863f(0x168),'confirmationDescription':a33_0xc6863f(0x18a),'flags':[{...ID_FLAG,'description':a33_0xc6863f(0x16d)},{...TITLE_FLAG,'required':![],'description':a33_0xc6863f(0x193)},FILE_FLAG],async 'execute'(_0x14920e){const _0x37e9f8=a33_0xc6863f,_0x1d58b4=_0x14920e[_0x37e9f8(0x19e)]('id'),_0x35cc7c=readKnowledgeFile(_0x14920e[_0x37e9f8(0x175)](_0x37e9f8(0x19d))),_0x4c2b11=_0x14920e['str']('title')||(await getPersonalKnowledgeBaseItem(_0x1d58b4,_0x14920e[_0x37e9f8(0x162)]))['title'],_0x164547=await updatePersonalKnowledgeBaseItem(_0x1d58b4,_0x14920e[_0x37e9f8(0x162)],{'title':_0x4c2b11,'content':_0x35cc7c});return{'ok':!![],'data':summarizePersonalItem(_0x164547),'message':'Updated\x20KB\x20entry\x20'+_0x164547['id']+'\x20('+_0x164547[_0x37e9f8(0x190)]+')'};},async 'dryRun'(_0x313169){const _0x4884ba=a33_0xc6863f,_0x5090ca=_0x313169['num']('id'),_0x82a5a6=readKnowledgeFile(_0x313169[_0x4884ba(0x175)](_0x4884ba(0x19d))),_0x426863=_0x313169[_0x4884ba(0x175)](_0x4884ba(0x190))||(await getPersonalKnowledgeBaseItem(_0x5090ca,_0x313169[_0x4884ba(0x162)]))['title'];return dryRun(_0x4884ba(0x186),_0x4884ba(0x1a1)+_0x5090ca+_0x4884ba(0x165))[_0x4884ba(0x195)]({'appCode':_0x313169[_0x4884ba(0x162)],'title':_0x426863,'content':_0x82a5a6})[_0x4884ba(0x183)](_0x4884ba(0x192)+_0x5090ca)[_0x4884ba(0x19f)]();}},kbSearch={'service':'kb','command':a33_0xc6863f(0x17a),'description':a33_0xc6863f(0x178),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x554a08){const _0x3d99b9=a33_0xc6863f;if(!_0x554a08['str'](_0x3d99b9(0x18e))[_0x3d99b9(0x185)]())throw CliErrors[_0x3d99b9(0x16e)]('Search\x20query\x20is\x20required.');readTopK(_0x554a08);},async 'execute'(_0x190cc5){const _0x22ff5a=a33_0xc6863f,_0x2ecd1d=_0x190cc5['str'](_0x22ff5a(0x18e))['trim'](),_0x2f9bd6=readTopK(_0x190cc5),_0x4749e0=await searchKnowledgeBase(_0x190cc5[_0x22ff5a(0x162)],{'query':_0x2ecd1d,'topK':_0x2f9bd6});return{'ok':!![],'data':{'total':_0x4749e0['length'],'hits':_0x4749e0[_0x22ff5a(0x16b)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x17be29=a33_0x586e;(function(_0x128f07,_0x227953){const _0x49d3e9=a33_0x586e,_0x1c318c=_0x128f07();while(!![]){try{const _0x1d889=-parseInt(_0x49d3e9(0x221))/0x1+-parseInt(_0x49d3e9(0x21f))/0x2*(parseInt(_0x49d3e9(0x20d))/0x3)+-parseInt(_0x49d3e9(0x1ff))/0x4+-parseInt(_0x49d3e9(0x226))/0x5+parseInt(_0x49d3e9(0x1f8))/0x6*(parseInt(_0x49d3e9(0x1fc))/0x7)+-parseInt(_0x49d3e9(0x217))/0x8*(parseInt(_0x49d3e9(0x204))/0x9)+-parseInt(_0x49d3e9(0x1e9))/0xa*(-parseInt(_0x49d3e9(0x1fe))/0xb);if(_0x1d889===_0x227953)break;else _0x1c318c['push'](_0x1c318c['shift']());}catch(_0x1c4233){_0x1c318c['push'](_0x1c318c['shift']());}}}(a33_0x52c3,0xcace6));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a33_0x52c3(){const _0x7c387e=['4288010mKXzfX','map','weightedScore','content','update','string','isFile','flag','File\x20path\x20is\x20required.','POST','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','description','Search\x20query\x20is\x20required.','File\x20is\x20not\x20a\x20regular\x20file:\x20','search','1470zYTeOC','Created\x20KB\x20entry\x20','validation','detail','21665fsZROh','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','121voQxCp','1721912UDTVJV','title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','query','File\x20not\x20found:\x20','54GSKphh','appCode','bool','/update','topk','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','str','isFinite','ragStatus','39684iajvlo','Personal\x20knowledge-base\x20entry\x20ID','body','num','scope','docId','trim','length','Personal\x20knowledge-base\x20entry\x20title','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','2060600jPHNOh','Updated\x20KB\x20entry\x20','score','build','verbose','read','/client/knowledge-base/personal/create','metadata','122zjFEmH','write','382333BtNuAX','updateTime','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','version','file','7396115VejzGE','create','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.'];a33_0x52c3=function(){return _0x7c387e;};return a33_0x52c3();}const TITLE_FLAG={'name':a33_0x17be29(0x200),'type':a33_0x17be29(0x1ee),'required':!![],'description':a33_0x17be29(0x215)},FILE_FLAG={'name':a33_0x17be29(0x225),'type':a33_0x17be29(0x1ee),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a33_0x17be29(0x202),'type':a33_0x17be29(0x1ee),'required':!![],'description':a33_0x17be29(0x209)},TOPK_FLAG={'name':'topk','type':'number','description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x5366e6){const _0x38ecf9=a33_0x17be29;if(!_0x5366e6)throw CliErrors['validation'](_0x38ecf9(0x1f1));if(!existsSync(_0x5366e6))throw CliErrors[_0x38ecf9(0x1fa)](_0x38ecf9(0x203)+_0x5366e6);if(!statSync(_0x5366e6)[_0x38ecf9(0x1ef)]())throw CliErrors[_0x38ecf9(0x1fa)](_0x38ecf9(0x1f6)+_0x5366e6);return readFileSync(_0x5366e6,'utf8');}function a33_0x586e(_0x5ce356,_0x1270fe){_0x5ce356=_0x5ce356-0x1e8;const _0x52c3ae=a33_0x52c3();let _0x586e4a=_0x52c3ae[_0x5ce356];return _0x586e4a;}function summarizePersonalItem(_0x5a9afe){const _0x47b7ca=a33_0x17be29;return{'id':_0x5a9afe['id'],'title':_0x5a9afe['title'],'version':_0x5a9afe['version'],'ragStatus':_0x5a9afe[_0x47b7ca(0x20c)],'ragErrorMessage':_0x5a9afe['ragErrorMessage'],'updateTime':_0x5a9afe['updateTime']};}function detailPersonalItem(_0x13a5f1){const _0x2f2bcd=a33_0x17be29;return{'id':_0x13a5f1['id'],'appCode':_0x13a5f1[_0x2f2bcd(0x205)],'scope':_0x13a5f1[_0x2f2bcd(0x211)],'userId':_0x13a5f1['userId'],'title':_0x13a5f1['title'],'content':_0x13a5f1[_0x2f2bcd(0x1ec)]??'','version':_0x13a5f1[_0x2f2bcd(0x224)],'ragStatus':_0x13a5f1[_0x2f2bcd(0x20c)],'ragErrorMessage':_0x13a5f1['ragErrorMessage'],'createTime':_0x13a5f1['createTime'],'updateTime':_0x13a5f1[_0x2f2bcd(0x222)]};}function summarizeSearchHit(_0x1ca2fb){const _0x113970=a33_0x17be29;return{'scope':_0x1ca2fb[_0x113970(0x211)],'title':_0x1ca2fb['title'],'docId':_0x1ca2fb[_0x113970(0x212)],'score':_0x1ca2fb[_0x113970(0x219)],'weightedScore':_0x1ca2fb[_0x113970(0x1eb)],'content':_0x1ca2fb[_0x113970(0x1ec)],'metadata':_0x1ca2fb[_0x113970(0x21e)]};}function readTopK(_0x304a2e){const _0x417ba1=a33_0x17be29,_0x454b8d=_0x304a2e[_0x417ba1(0x1f0)](_0x417ba1(0x208));if(_0x454b8d===undefined||_0x454b8d===null||_0x454b8d==='')return undefined;const _0x481c83=_0x304a2e[_0x417ba1(0x210)](_0x417ba1(0x208));if(!Number[_0x417ba1(0x20b)](_0x481c83)||_0x481c83<0x1)throw CliErrors[_0x417ba1(0x1fa)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x481c83;}const kbList={'service':'kb','command':'list','description':a33_0x17be29(0x216),'risk':a33_0x17be29(0x21c),'flags':[VERBOSE_FLAG],async 'execute'(_0x53e01f){const _0x4eb784=a33_0x17be29,_0x1a095f=await listPersonalKnowledgeBaseItems(_0x53e01f['appCode']);if(_0x53e01f[_0x4eb784(0x206)](_0x4eb784(0x21b)))return{'ok':!![],'data':{'total':_0x1a095f[_0x4eb784(0x214)],'items':_0x1a095f}};return{'ok':!![],'data':{'total':_0x1a095f[_0x4eb784(0x214)],'items':_0x1a095f[_0x4eb784(0x1ea)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x17be29(0x1fb),'description':a33_0x17be29(0x201),'risk':a33_0x17be29(0x21c),'flags':[{...ID_FLAG,'description':a33_0x17be29(0x20e)}],async 'execute'(_0x5770fb){const _0x3ecd7e=a33_0x17be29,_0x85cc78=await getPersonalKnowledgeBaseItem(_0x5770fb[_0x3ecd7e(0x210)]('id'),_0x5770fb[_0x3ecd7e(0x205)]);return{'ok':!![],'data':detailPersonalItem(_0x85cc78)};}},kbCreate={'service':'kb','command':a33_0x17be29(0x227),'description':a33_0x17be29(0x223),'risk':a33_0x17be29(0x220),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0xaf87aa){const _0x321920=a33_0x17be29,_0x397e02=_0xaf87aa[_0x321920(0x20a)](_0x321920(0x200)),_0x79a7b5=readKnowledgeFile(_0xaf87aa['str'](_0x321920(0x225))),_0x1ae731=await createPersonalKnowledgeBaseItem(_0xaf87aa[_0x321920(0x205)],{'title':_0x397e02,'content':_0x79a7b5});return{'ok':!![],'data':summarizePersonalItem(_0x1ae731),'message':_0x321920(0x1f9)+_0x1ae731['id']+'\x20('+_0x1ae731['title']+')'};},async 'dryRun'(_0x596b67){const _0x171d18=a33_0x17be29,_0x46080e=_0x596b67[_0x171d18(0x20a)](_0x171d18(0x200)),_0x294187=readKnowledgeFile(_0x596b67[_0x171d18(0x20a)](_0x171d18(0x225)));return dryRun(_0x171d18(0x1f2),_0x171d18(0x21d))[_0x171d18(0x20f)]({'appCode':_0x596b67[_0x171d18(0x205)],'title':_0x46080e,'content':_0x294187})[_0x171d18(0x1f4)](_0x171d18(0x1fd)+_0x46080e+'\x22')[_0x171d18(0x21a)]();}},kbUpdate={'service':'kb','command':a33_0x17be29(0x1ed),'description':a33_0x17be29(0x1f3),'risk':'write','confirmationDescription':a33_0x17be29(0x1e8),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x2ff01b){const _0x4dcf97=a33_0x17be29,_0x4a6c44=_0x2ff01b['num']('id'),_0x2c668d=readKnowledgeFile(_0x2ff01b[_0x4dcf97(0x20a)]('file')),_0x454959=_0x2ff01b[_0x4dcf97(0x20a)](_0x4dcf97(0x200))||(await getPersonalKnowledgeBaseItem(_0x4a6c44,_0x2ff01b['appCode']))[_0x4dcf97(0x200)],_0x3b4c55=await updatePersonalKnowledgeBaseItem(_0x4a6c44,_0x2ff01b[_0x4dcf97(0x205)],{'title':_0x454959,'content':_0x2c668d});return{'ok':!![],'data':summarizePersonalItem(_0x3b4c55),'message':_0x4dcf97(0x218)+_0x3b4c55['id']+'\x20('+_0x3b4c55[_0x4dcf97(0x200)]+')'};},async 'dryRun'(_0x2e8251){const _0xd11a44=a33_0x17be29,_0x420e9d=_0x2e8251[_0xd11a44(0x210)]('id'),_0x2a6600=readKnowledgeFile(_0x2e8251['str'](_0xd11a44(0x225))),_0x5c1485=_0x2e8251[_0xd11a44(0x20a)]('title')||(await getPersonalKnowledgeBaseItem(_0x420e9d,_0x2e8251['appCode']))[_0xd11a44(0x200)];return dryRun(_0xd11a44(0x1f2),'/client/knowledge-base/personal/'+_0x420e9d+_0xd11a44(0x207))['body']({'appCode':_0x2e8251[_0xd11a44(0x205)],'title':_0x5c1485,'content':_0x2a6600})[_0xd11a44(0x1f4)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x420e9d)[_0xd11a44(0x21a)]();}},kbSearch={'service':'kb','command':a33_0x17be29(0x1f7),'description':'Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','risk':a33_0x17be29(0x21c),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0xbc585d){const _0x502540=a33_0x17be29;if(!_0xbc585d[_0x502540(0x20a)](_0x502540(0x202))['trim']())throw CliErrors[_0x502540(0x1fa)](_0x502540(0x1f5));readTopK(_0xbc585d);},async 'execute'(_0x20b08f){const _0x37eb5f=a33_0x17be29,_0x113390=_0x20b08f[_0x37eb5f(0x20a)](_0x37eb5f(0x202))[_0x37eb5f(0x213)](),_0x46e98e=readTopK(_0x20b08f),_0xe7bae5=await searchKnowledgeBase(_0x20b08f[_0x37eb5f(0x205)],{'query':_0x113390,'topK':_0x46e98e});return{'ok':!![],'data':{'total':_0xe7bae5[_0x37eb5f(0x214)],'hits':_0xe7bae5[_0x37eb5f(0x1ea)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- function a34_0x359c(){const _0x1dedc9=['toLocaleString','details','message','\x20\x20\x20Duration:\x20','2500ODHtgL','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','3865662AxBXyg','1981ApxUAO','7328BdQrLb','logs','stringify','9717970VHHdVl','readLogs','timestamp','duration','200630IIKJFz','\x20logs:\x0a','length','View\x20command\x20history\x20logs','en-US','success','read','level','1729467QmzShA','66VQwjRy','\x20\x20\x20Details:\x20','2342600ISdBZR','warn','95gvJjxX','log'];a34_0x359c=function(){return _0x1dedc9;};return a34_0x359c();}const a34_0x5e2047=a34_0x1c77;(function(_0x22bd5c,_0x389ad3){const _0xb0ce5f=a34_0x1c77,_0x22d17f=_0x22bd5c();while(!![]){try{const _0x54b436=parseInt(_0xb0ce5f(0x1e8))/0x1*(parseInt(_0xb0ce5f(0x1cf))/0x2)+-parseInt(_0xb0ce5f(0x1e3))/0x3+parseInt(_0xb0ce5f(0x1e6))/0x4+-parseInt(_0xb0ce5f(0x1db))/0x5*(parseInt(_0xb0ce5f(0x1e4))/0x6)+-parseInt(_0xb0ce5f(0x1d3))/0x7*(-parseInt(_0xb0ce5f(0x1d4))/0x8)+-parseInt(_0xb0ce5f(0x1d2))/0x9+parseInt(_0xb0ce5f(0x1d7))/0xa;if(_0x54b436===_0x389ad3)break;else _0x22d17f['push'](_0x22d17f['shift']());}catch(_0x294ec5){_0x22d17f['push'](_0x22d17f['shift']());}}}(a34_0x359c,0x77260));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0xab9b65){const _0x3583d1=a34_0x1c77;if(_0xab9b65[_0x3583d1(0x1dd)]===0x0){console[_0x3583d1(0x1e9)](_0x3583d1(0x1d1));return;}console[_0x3583d1(0x1e9)]('*\x20'+CLI_DISPLAY_NAME+_0x3583d1(0x1dc)),_0xab9b65['forEach']((_0x3d6d91,_0xe4c6e)=>{const _0x4ec0b4=_0x3583d1,_0x321f28=new Date(_0x3d6d91[_0x4ec0b4(0x1d9)])[_0x4ec0b4(0x1ea)](_0x4ec0b4(0x1df)),_0x5213ae=_0x3d6d91[_0x4ec0b4(0x1e2)]===_0x4ec0b4(0x1e0)?'√':_0x3d6d91[_0x4ec0b4(0x1e2)]==='error'?'×':_0x3d6d91['level']===_0x4ec0b4(0x1e7)?'!':'i';console['log'](_0xe4c6e+0x1+'.\x20'+_0x5213ae+'\x20['+_0x3d6d91['command']+']\x20'+_0x3d6d91[_0x4ec0b4(0x1ec)]),console[_0x4ec0b4(0x1e9)](_0x4ec0b4(0x1d0)+_0x321f28),_0x3d6d91[_0x4ec0b4(0x1da)]&&console['log'](_0x4ec0b4(0x1ce)+_0x3d6d91['duration']+'ms'),_0x3d6d91[_0x4ec0b4(0x1eb)]&&Object['keys'](_0x3d6d91[_0x4ec0b4(0x1eb)])[_0x4ec0b4(0x1dd)]>0x0&&console[_0x4ec0b4(0x1e9)](_0x4ec0b4(0x1e5)+JSON[_0x4ec0b4(0x1d6)](_0x3d6d91[_0x4ec0b4(0x1eb)],null,0x2)),console[_0x4ec0b4(0x1e9)]('');});}function a34_0x1c77(_0xc87b99,_0x5d457a){_0xc87b99=_0xc87b99-0x1ce;const _0x359c38=a34_0x359c();let _0x1c77e7=_0x359c38[_0xc87b99];return _0x1c77e7;}export const logsDefinitions=[{'service':a34_0x5e2047(0x1d5),'command':'show','description':a34_0x5e2047(0x1de),'risk':a34_0x5e2047(0x1e1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3ed478){const _0x5b96d9=a34_0x5e2047;return printLogs(logger[_0x5b96d9(0x1d8)]()),{'ok':!![]};}}];
1
+ function a34_0x11ab(_0x3fc045,_0x46775f){_0x3fc045=_0x3fc045-0x1a1;const _0x262530=a34_0x2625();let _0x11abda=_0x262530[_0x3fc045];return _0x11abda;}function a34_0x2625(){const _0x34603a=['\x20\x20\x20Duration:\x20','81350aRrosk','toLocaleString','timestamp','command','\x20\x20\x20Time:\x20','forEach','548frOsUO','106VSlPMy','level','duration','readLogs','details','length','error','68iqdLxs','4873074sHdhot','stringify','5LIBAUN','891hSTAdo','64416ZYaebd','message','log','\x20logs:\x0a','read','3418263MatXWp','\x20\x20\x20Details:\x20','24yXYKpo','*\x20No\x20logs\x20found','98xpyVek','View\x20command\x20history\x20logs','keys','success','23336tebYEj','2850081reqqrB','warn'];a34_0x2625=function(){return _0x34603a;};return a34_0x2625();}const a34_0x535aeb=a34_0x11ab;(function(_0x3e60d6,_0x26832a){const _0x366662=a34_0x11ab,_0x2dc940=_0x3e60d6();while(!![]){try{const _0xe0b6c5=-parseInt(_0x366662(0x1c2))/0x1*(parseInt(_0x366662(0x1c1))/0x2)+-parseInt(_0x366662(0x1aa))/0x3*(-parseInt(_0x366662(0x1a5))/0x4)+parseInt(_0x366662(0x1a8))/0x5*(parseInt(_0x366662(0x1a6))/0x6)+-parseInt(_0x366662(0x1b3))/0x7*(-parseInt(_0x366662(0x1b7))/0x8)+-parseInt(_0x366662(0x1af))/0x9+-parseInt(_0x366662(0x1bb))/0xa*(parseInt(_0x366662(0x1a9))/0xb)+-parseInt(_0x366662(0x1b1))/0xc*(-parseInt(_0x366662(0x1b8))/0xd);if(_0xe0b6c5===_0x26832a)break;else _0x2dc940['push'](_0x2dc940['shift']());}catch(_0x230907){_0x2dc940['push'](_0x2dc940['shift']());}}}(a34_0x2625,0x8fbb9));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0xf77d87){const _0xe646c7=a34_0x11ab;if(_0xf77d87[_0xe646c7(0x1a3)]===0x0){console[_0xe646c7(0x1ac)](_0xe646c7(0x1b2));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0xe646c7(0x1ad)),_0xf77d87[_0xe646c7(0x1c0)]((_0x3585ce,_0x27ab70)=>{const _0x5e0227=_0xe646c7,_0x477c9e=new Date(_0x3585ce[_0x5e0227(0x1bd)])[_0x5e0227(0x1bc)]('en-US'),_0x2d6255=_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1b6)?'√':_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1a4)?'×':_0x3585ce[_0x5e0227(0x1c3)]===_0x5e0227(0x1b9)?'!':'i';console[_0x5e0227(0x1ac)](_0x27ab70+0x1+'.\x20'+_0x2d6255+'\x20['+_0x3585ce[_0x5e0227(0x1be)]+']\x20'+_0x3585ce[_0x5e0227(0x1ab)]),console[_0x5e0227(0x1ac)](_0x5e0227(0x1bf)+_0x477c9e),_0x3585ce[_0x5e0227(0x1c4)]&&console[_0x5e0227(0x1ac)](_0x5e0227(0x1ba)+_0x3585ce['duration']+'ms'),_0x3585ce[_0x5e0227(0x1a2)]&&Object[_0x5e0227(0x1b5)](_0x3585ce[_0x5e0227(0x1a2)])['length']>0x0&&console[_0x5e0227(0x1ac)](_0x5e0227(0x1b0)+JSON[_0x5e0227(0x1a7)](_0x3585ce[_0x5e0227(0x1a2)],null,0x2)),console[_0x5e0227(0x1ac)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a34_0x535aeb(0x1b4),'risk':a34_0x535aeb(0x1ae),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x132cf2){const _0x5559fc=a34_0x535aeb;return printLogs(logger[_0x5559fc(0x1a1)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x55d2ad=a35_0x42f1;function a35_0x684e(){const _0x2e27e9=['2203xoMPIk','29308tezYJd','641570moUJAp','appCode','\x20notification\x20config(s)','type','6sOrlKI','3391531eJprHW','4328usfmrf','config-list','map','Found\x20','9770TfDdXU','length','13833360RlDaAi','168paTmRi','195gqRraf','340WtKGOJ','6979pgeVBJ','7073nhrBFy'];a35_0x684e=function(){return _0x2e27e9;};return a35_0x684e();}(function(_0x28058b,_0x2b45c6){const _0x2063c7=a35_0x42f1,_0x574a85=_0x28058b();while(!![]){try{const _0x3f36e5=-parseInt(_0x2063c7(0x11e))/0x1*(-parseInt(_0x2063c7(0x12f))/0x2)+-parseInt(_0x2063c7(0x12e))/0x3*(parseInt(_0x2063c7(0x11f))/0x4)+parseInt(_0x2063c7(0x120))/0x5*(parseInt(_0x2063c7(0x124))/0x6)+-parseInt(_0x2063c7(0x11c))/0x7*(parseInt(_0x2063c7(0x126))/0x8)+-parseInt(_0x2063c7(0x12c))/0x9+-parseInt(_0x2063c7(0x12a))/0xa*(parseInt(_0x2063c7(0x11d))/0xb)+-parseInt(_0x2063c7(0x12d))/0xc*(-parseInt(_0x2063c7(0x125))/0xd);if(_0x3f36e5===_0x2b45c6)break;else _0x574a85['push'](_0x574a85['shift']());}catch(_0x428b32){_0x574a85['push'](_0x574a85['shift']());}}}(a35_0x684e,0xede17));function a35_0x42f1(_0x23b3b2,_0x4bada6){_0x23b3b2=_0x23b3b2-0x11c;const _0x684e0d=a35_0x684e();let _0x42f1b7=_0x684e0d[_0x23b3b2];return _0x42f1b7;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a35_0x55d2ad(0x127),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[{'name':a35_0x55d2ad(0x123),'type':'string','description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x46c17c){readNotificationChannelType(_0x46c17c);},async 'execute'(_0x40e725){const _0x10e103=a35_0x55d2ad,_0x47bb88=readNotificationChannelType(_0x40e725),_0x14e4cc=await listNotificationChannelConfigs(_0x40e725[_0x10e103(0x121)],_0x47bb88),_0x485bfc=_0x14e4cc[_0x10e103(0x128)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x40e725[_0x10e103(0x121)],'channelType':_0x47bb88,'count':_0x485bfc[_0x10e103(0x12b)],'configs':_0x485bfc},'message':_0x10e103(0x129)+_0x485bfc[_0x10e103(0x12b)]+'\x20'+_0x47bb88+_0x10e103(0x122)};}};
1
+ function a35_0x3439(){const _0x5aa122=['map','Notification\x20channel\x20type','6uncHiJ','24435IzfLCA','length','12anIKBB','530076Debbeg','read','7947533vsabWA','Found\x20','5114410TduoBq','9huuKAZ','notification','EMAIL','type','appCode','string','11296ITjQDA','645307ZjaYak','312357wMWCPj','12DQToAo','973avZaLw'];a35_0x3439=function(){return _0x5aa122;};return a35_0x3439();}function a35_0x5862(_0x27bca6,_0x4320db){_0x27bca6=_0x27bca6-0x122;const _0x34392e=a35_0x3439();let _0x586209=_0x34392e[_0x27bca6];return _0x586209;}const a35_0x2342e6=a35_0x5862;(function(_0xd147ff,_0x5712ed){const _0x57bce4=a35_0x5862,_0x30b322=_0xd147ff();while(!![]){try{const _0x2d9a0e=-parseInt(_0x57bce4(0x126))/0x1+parseInt(_0x57bce4(0x130))/0x2+-parseInt(_0x57bce4(0x127))/0x3*(parseInt(_0x57bce4(0x12f))/0x4)+-parseInt(_0x57bce4(0x12d))/0x5*(parseInt(_0x57bce4(0x12c))/0x6)+-parseInt(_0x57bce4(0x129))/0x7*(parseInt(_0x57bce4(0x125))/0x8)+parseInt(_0x57bce4(0x135))/0x9*(parseInt(_0x57bce4(0x134))/0xa)+-parseInt(_0x57bce4(0x132))/0xb*(-parseInt(_0x57bce4(0x128))/0xc);if(_0x2d9a0e===_0x5712ed)break;else _0x30b322['push'](_0x30b322['shift']());}catch(_0x5741a1){_0x30b322['push'](_0x30b322['shift']());}}}(a35_0x3439,0x530c3));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x2342e6(0x136),'command':'config-list','description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a35_0x2342e6(0x131),'flags':[{'name':a35_0x2342e6(0x122),'type':a35_0x2342e6(0x124),'description':a35_0x2342e6(0x12b),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x2342e6(0x137)}],async 'validate'(_0x468a53){readNotificationChannelType(_0x468a53);},async 'execute'(_0x366008){const _0x59b8e0=a35_0x2342e6,_0x51b4a9=readNotificationChannelType(_0x366008),_0x11b74b=await listNotificationChannelConfigs(_0x366008[_0x59b8e0(0x123)],_0x51b4a9),_0x534b43=_0x11b74b[_0x59b8e0(0x12a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x366008[_0x59b8e0(0x123)],'channelType':_0x51b4a9,'count':_0x534b43[_0x59b8e0(0x12e)],'configs':_0x534b43},'message':_0x59b8e0(0x133)+_0x534b43[_0x59b8e0(0x12e)]+'\x20'+_0x51b4a9+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- function a36_0x1b2b(){const _0x4df820=['12qqTcse','171417igppkT','5256765CswsHF','6495246nfyqxj','1728MNoMkt','37657800LerKtG','6253840pInrJi','536368QUIRrg','6003gGxfIW','4WuOMah'];a36_0x1b2b=function(){return _0x4df820;};return a36_0x1b2b();}function a36_0x2e56(_0x454017,_0x5ce791){_0x454017=_0x454017-0xbf;const _0x1b2bca=a36_0x1b2b();let _0x2e564c=_0x1b2bca[_0x454017];return _0x2e564c;}(function(_0x726027,_0x2a09a6){const _0x1b7bf2=a36_0x2e56,_0x22125c=_0x726027();while(!![]){try{const _0x21ad50=parseInt(_0x1b7bf2(0xc8))/0x1*(-parseInt(_0x1b7bf2(0xc7))/0x2)+-parseInt(_0x1b7bf2(0xbf))/0x3+-parseInt(_0x1b7bf2(0xc6))/0x4*(-parseInt(_0x1b7bf2(0xc3))/0x5)+-parseInt(_0x1b7bf2(0xc0))/0x6+-parseInt(_0x1b7bf2(0xc4))/0x7+parseInt(_0x1b7bf2(0xc1))/0x8*(-parseInt(_0x1b7bf2(0xc5))/0x9)+parseInt(_0x1b7bf2(0xc2))/0xa;if(_0x21ad50===_0x2a09a6)break;else _0x22125c['push'](_0x22125c['shift']());}catch(_0x45ae56){_0x22125c['push'](_0x22125c['shift']());}}}(a36_0x1b2b,0xe3aca));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0xf9cf71,_0x1a4f32){const _0x5cee73=a36_0x37a3,_0x4b0a00=_0xf9cf71();while(!![]){try{const _0x1a78f7=-parseInt(_0x5cee73(0x111))/0x1+-parseInt(_0x5cee73(0x11a))/0x2+parseInt(_0x5cee73(0x118))/0x3*(parseInt(_0x5cee73(0x117))/0x4)+-parseInt(_0x5cee73(0x114))/0x5*(-parseInt(_0x5cee73(0x119))/0x6)+-parseInt(_0x5cee73(0x116))/0x7+parseInt(_0x5cee73(0x115))/0x8+parseInt(_0x5cee73(0x112))/0x9*(-parseInt(_0x5cee73(0x113))/0xa);if(_0x1a78f7===_0x1a4f32)break;else _0x4b0a00['push'](_0x4b0a00['shift']());}catch(_0x54e404){_0x4b0a00['push'](_0x4b0a00['shift']());}}}(a36_0x2a02,0x5c1ea));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x37a3(_0x4e2609,_0x146d60){_0x4e2609=_0x4e2609-0x111;const _0x2a027a=a36_0x2a02();let _0x37a3c9=_0x2a027a[_0x4e2609];return _0x37a3c9;}function a36_0x2a02(){const _0x521ed2=['3259985zykXZZ','4887864tUznnd','3622192WDkSIn','8ITIJJX','1044573NOmeoZ','6onGJre','1111104JhSRQn','175083OjIznE','273231mkhCBT','110UHnWaI'];a36_0x2a02=function(){return _0x521ed2;};return a36_0x2a02();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a37_0x1f0eb6=a37_0x2c44;(function(_0x259ca0,_0x4bfda7){const _0x199e37=a37_0x2c44,_0x51778f=_0x259ca0();while(!![]){try{const _0x1232e2=parseInt(_0x199e37(0x125))/0x1*(parseInt(_0x199e37(0x146))/0x2)+parseInt(_0x199e37(0x126))/0x3*(-parseInt(_0x199e37(0x137))/0x4)+parseInt(_0x199e37(0x139))/0x5+parseInt(_0x199e37(0x144))/0x6+-parseInt(_0x199e37(0x149))/0x7+parseInt(_0x199e37(0x133))/0x8*(-parseInt(_0x199e37(0x129))/0x9)+-parseInt(_0x199e37(0x123))/0xa;if(_0x1232e2===_0x4bfda7)break;else _0x51778f['push'](_0x51778f['shift']());}catch(_0x24bde3){_0x51778f['push'](_0x51778f['shift']());}}}(a37_0x3e29,0x648bc));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x1f0eb6(0x14a),'FEISHU',a37_0x1f0eb6(0x12c),a37_0x1f0eb6(0x130),a37_0x1f0eb6(0x12a)];function a37_0x3e29(){const _0x3d2cad=['str','number','apiError','Invalid\x20--type:\x20','validation','isSafeInteger','type','\x20has\x20invalid\x20field\x20\x22id\x22.','description','3656136PbMowY','updateTime','8fDBEfe','Invalid\x20notification\x20config\x20response.','includes','5369805nmOTjU','EMAIL','6670770MwmEWn','channelType','199832ZlgqHQ','12294wTJnic','join','string','148158WxEsGB','WEBHOOK','configName','DINGTALK','test','Allowed\x20values:\x20','\x20is\x20missing\x20required\x20field\x20\x22','WECOM','isArray','trim','16midqcC','Item\x20','configCode','\x20must\x20be\x20an\x20object.','36cDABet','createTime','2535750esYjXR','object'];a37_0x3e29=function(){return _0x3d2cad;};return a37_0x3e29();}export function readNotificationChannelType(_0x4e62b9){const _0x950f67=a37_0x1f0eb6,_0x160a40=_0x4e62b9[_0x950f67(0x13b)](_0x950f67(0x141))[_0x950f67(0x132)]()||_0x950f67(0x14a);if(!NOTIFICATION_CHANNEL_TYPES[_0x950f67(0x148)](_0x160a40))throw CliErrors[_0x950f67(0x13f)](_0x950f67(0x13e)+_0x160a40,_0x950f67(0x12e)+NOTIFICATION_CHANNEL_TYPES[_0x950f67(0x127)](',\x20')+'.');return _0x160a40;}function a37_0x2c44(_0x27c3ba,_0x10afa7){_0x27c3ba=_0x27c3ba-0x123;const _0x3e29ac=a37_0x3e29();let _0x2c4489=_0x3e29ac[_0x27c3ba];return _0x2c4489;}export function projectNotificationListConfig(_0xe874b6,_0x3ab6e4){const _0x2a1440=a37_0x1f0eb6,_0x5aee19=requireResponseObject(_0xe874b6,_0x3ab6e4);return{'id':normalizeNullableId(_0x5aee19['id'],_0x3ab6e4),'configCode':requireResponseString(_0x5aee19[_0x2a1440(0x135)],_0x2a1440(0x135),_0x3ab6e4),'configName':requireResponseString(_0x5aee19[_0x2a1440(0x12b)],_0x2a1440(0x12b),_0x3ab6e4),'channelType':requireResponseString(_0x5aee19[_0x2a1440(0x124)],'channelType',_0x3ab6e4),'description':normalizeNullableString(_0x5aee19[_0x2a1440(0x143)]),'createTime':normalizeNullableString(_0x5aee19[_0x2a1440(0x138)]),'updateTime':normalizeNullableString(_0x5aee19[_0x2a1440(0x145)])};}function requireResponseObject(_0x4c8177,_0x437f9a){const _0xb46b29=a37_0x1f0eb6;if(typeof _0x4c8177!==_0xb46b29(0x13a)||_0x4c8177===null||Array[_0xb46b29(0x131)](_0x4c8177))throw CliErrors['apiError'](_0xb46b29(0x147),_0xb46b29(0x134)+(_0x437f9a+0x1)+_0xb46b29(0x136));return _0x4c8177;}function requireResponseString(_0x3f4fb2,_0x423315,_0x5a4f96){const _0x6bfd78=a37_0x1f0eb6;if(typeof _0x3f4fb2!==_0x6bfd78(0x128)||!_0x3f4fb2[_0x6bfd78(0x132)]())throw CliErrors[_0x6bfd78(0x13d)](_0x6bfd78(0x147),_0x6bfd78(0x134)+(_0x5a4f96+0x1)+_0x6bfd78(0x12f)+_0x423315+'\x22.');return _0x3f4fb2[_0x6bfd78(0x132)]();}function normalizeNullableString(_0x4e143a){const _0x3a601b=a37_0x1f0eb6;return typeof _0x4e143a===_0x3a601b(0x128)&&_0x4e143a[_0x3a601b(0x132)]()?_0x4e143a[_0x3a601b(0x132)]():null;}function normalizeNullableId(_0x314ce8,_0x290e76){const _0xede29=a37_0x1f0eb6;if(_0x314ce8===undefined||_0x314ce8===null)return null;if(typeof _0x314ce8===_0xede29(0x13c)&&Number[_0xede29(0x140)](_0x314ce8))return _0x314ce8;if(typeof _0x314ce8===_0xede29(0x128)&&/^-?\d+$/[_0xede29(0x12d)](_0x314ce8['trim']()))return _0x314ce8[_0xede29(0x132)]();throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.',_0xede29(0x134)+(_0x290e76+0x1)+_0xede29(0x142));}
1
+ const a37_0x5613e4=a37_0x1447;function a37_0x1cd1(){const _0x4e0f0c=['join','Allowed\x20values:\x20','EMAIL','WECOM','trim','1291032HODfZx','1845114ZTHjPi','configCode','1022877iiLenX','35YLHBLW','includes','314qaKKto','Invalid\x20--type:\x20','6znfqtW','1151336jnilGE','string','4233tGvdyb','validation','35504916wOrfak','test','70CjtWlA','str','\x20has\x20invalid\x20field\x20\x22id\x22.','type','Invalid\x20notification\x20config\x20response.','11LkNjlo','3257365FpJRcU','description','number','DINGTALK','Item\x20','apiError','\x20is\x20missing\x20required\x20field\x20\x22','createTime','configName','channelType','\x20must\x20be\x20an\x20object.'];a37_0x1cd1=function(){return _0x4e0f0c;};return a37_0x1cd1();}(function(_0x65b147,_0x265306){const _0x3d9a71=a37_0x1447,_0x3c5d4a=_0x65b147();while(!![]){try{const _0x2bd100=-parseInt(_0x3d9a71(0xa5))/0x1*(parseInt(_0x3d9a71(0xa0))/0x2)+parseInt(_0x3d9a71(0x9b))/0x3+-parseInt(_0x3d9a71(0x9a))/0x4+-parseInt(_0x3d9a71(0xaf))/0x5*(parseInt(_0x3d9a71(0xa2))/0x6)+parseInt(_0x3d9a71(0x9e))/0x7*(-parseInt(_0x3d9a71(0xa3))/0x8)+parseInt(_0x3d9a71(0x9d))/0x9*(-parseInt(_0x3d9a71(0xa9))/0xa)+-parseInt(_0x3d9a71(0xae))/0xb*(-parseInt(_0x3d9a71(0xa7))/0xc);if(_0x2bd100===_0x265306)break;else _0x3c5d4a['push'](_0x3c5d4a['shift']());}catch(_0x477ddc){_0x3c5d4a['push'](_0x3c5d4a['shift']());}}}(a37_0x1cd1,0x667e5));import{CliErrors}from'../../errors.js';function a37_0x1447(_0x26ab7c,_0x245c97){_0x26ab7c=_0x26ab7c-0x94;const _0x1cd14b=a37_0x1cd1();let _0x144762=_0x1cd14b[_0x26ab7c];return _0x144762;}export const NOTIFICATION_CHANNEL_TYPES=[a37_0x5613e4(0x97),'FEISHU',a37_0x5613e4(0xb2),a37_0x5613e4(0x98),'WEBHOOK'];export function readNotificationChannelType(_0xdbc4fd){const _0x9706b3=a37_0x5613e4,_0x4a5a0a=_0xdbc4fd[_0x9706b3(0xaa)](_0x9706b3(0xac))['trim']()||_0x9706b3(0x97);if(!NOTIFICATION_CHANNEL_TYPES[_0x9706b3(0x9f)](_0x4a5a0a))throw CliErrors[_0x9706b3(0xa6)](_0x9706b3(0xa1)+_0x4a5a0a,_0x9706b3(0x96)+NOTIFICATION_CHANNEL_TYPES[_0x9706b3(0x95)](',\x20')+'.');return _0x4a5a0a;}export function projectNotificationListConfig(_0x5438b3,_0x27fa58){const _0x1a663e=a37_0x5613e4,_0x5aff1a=requireResponseObject(_0x5438b3,_0x27fa58);return{'id':normalizeNullableId(_0x5aff1a['id'],_0x27fa58),'configCode':requireResponseString(_0x5aff1a[_0x1a663e(0x9c)],'configCode',_0x27fa58),'configName':requireResponseString(_0x5aff1a[_0x1a663e(0xb7)],_0x1a663e(0xb7),_0x27fa58),'channelType':requireResponseString(_0x5aff1a[_0x1a663e(0xb8)],_0x1a663e(0xb8),_0x27fa58),'description':normalizeNullableString(_0x5aff1a[_0x1a663e(0xb0)]),'createTime':normalizeNullableString(_0x5aff1a[_0x1a663e(0xb6)]),'updateTime':normalizeNullableString(_0x5aff1a['updateTime'])};}function requireResponseObject(_0x45545f,_0x3bd16a){const _0x561edd=a37_0x5613e4;if(typeof _0x45545f!=='object'||_0x45545f===null||Array['isArray'](_0x45545f))throw CliErrors[_0x561edd(0xb4)](_0x561edd(0xad),_0x561edd(0xb3)+(_0x3bd16a+0x1)+_0x561edd(0x94));return _0x45545f;}function requireResponseString(_0x37d3bc,_0x1e0601,_0x3b72a1){const _0x7a7171=a37_0x5613e4;if(typeof _0x37d3bc!==_0x7a7171(0xa4)||!_0x37d3bc['trim']())throw CliErrors['apiError'](_0x7a7171(0xad),_0x7a7171(0xb3)+(_0x3b72a1+0x1)+_0x7a7171(0xb5)+_0x1e0601+'\x22.');return _0x37d3bc[_0x7a7171(0x99)]();}function normalizeNullableString(_0x596e38){const _0x4e9f28=a37_0x5613e4;return typeof _0x596e38===_0x4e9f28(0xa4)&&_0x596e38[_0x4e9f28(0x99)]()?_0x596e38['trim']():null;}function normalizeNullableId(_0x5f3f15,_0x28f5c5){const _0x1b0244=a37_0x5613e4;if(_0x5f3f15===undefined||_0x5f3f15===null)return null;if(typeof _0x5f3f15===_0x1b0244(0xb1)&&Number['isSafeInteger'](_0x5f3f15))return _0x5f3f15;if(typeof _0x5f3f15==='string'&&/^-?\d+$/[_0x1b0244(0xa8)](_0x5f3f15[_0x1b0244(0x99)]()))return _0x5f3f15[_0x1b0244(0x99)]();throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.',_0x1b0244(0xb3)+(_0x28f5c5+0x1)+_0x1b0244(0xab));}
@@ -1 +1 @@
1
- const a38_0x1629f8=a38_0x3298;(function(_0x182931,_0x32cef2){const _0xf09a9=a38_0x3298,_0x5d66b5=_0x182931();while(!![]){try{const _0x5e1b93=-parseInt(_0xf09a9(0x154))/0x1*(parseInt(_0xf09a9(0x168))/0x2)+parseInt(_0xf09a9(0x148))/0x3+parseInt(_0xf09a9(0x164))/0x4+-parseInt(_0xf09a9(0x15e))/0x5+parseInt(_0xf09a9(0x15d))/0x6*(-parseInt(_0xf09a9(0x165))/0x7)+-parseInt(_0xf09a9(0x149))/0x8+parseInt(_0xf09a9(0x153))/0x9;if(_0x5e1b93===_0x32cef2)break;else _0x5d66b5['push'](_0x5d66b5['shift']());}catch(_0x293594){_0x5d66b5['push'](_0x5d66b5['shift']());}}}(a38_0x4a46,0x9bf78));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a38_0x4a46(){const _0x29c7a8=['str','string','image-url','ocr','build','filePath','File\x20upload\x20response\x20missing\x20filePath.','fileUrl','1662njlxFa','3085095vSNZeO','/client/queryFileUrl','validation','Unsupported\x20OCR\x20scene:\x20','invoice','idCard','3104444lPmuCU','18998rMwucc','\x20OCR','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','495472NcgxSz','POST','IdCard','image-file','idcard','/client/uploadFile','General','general','appCode','imageFile','/client/ocr','toLowerCase','body','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','scene','count','apiError','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','path','<filePath\x20returned\x20by\x20/client/uploadFile>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','2231691doKhtE','6310800MkpojW','Invoice','fileName','imageUrl','description','form','.\x20Supported\x20scenes:\x20','trim','File\x20URL\x20response\x20missing\x20fileUrl.','recognize','18177183cVbFyH','3WNrhQC'];a38_0x4a46=function(){return _0x29c7a8;};return a38_0x4a46();}import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x1629f8(0x162),a38_0x1629f8(0x16f),'form',a38_0x1629f8(0x163)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x1629f8(0x14a),'general':a38_0x1629f8(0x16e),'form':'Table','idCard':a38_0x1629f8(0x16a)},SCENE_FLAG={'name':'scene','type':a38_0x1629f8(0x156),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x1629f8(0x175)},IMAGE_FILE_FLAG={'name':a38_0x1629f8(0x16b),'type':'string','description':a38_0x1629f8(0x147)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x1629f8(0x156),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x58ad4b){const _0x2e95b1=a38_0x1629f8,_0x49235d=_0x58ad4b[_0x2e95b1(0x150)]()[_0x2e95b1(0x173)]();if(_0x49235d===_0x2e95b1(0x16c))return _0x2e95b1(0x163);if(_0x49235d===_0x2e95b1(0x162)||_0x49235d===_0x2e95b1(0x16f)||_0x49235d===_0x2e95b1(0x14e))return _0x49235d;throw CliErrors[_0x2e95b1(0x160)](_0x2e95b1(0x161)+_0x58ad4b+_0x2e95b1(0x14f)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x2ad97){const _0x2602ad=a38_0x1629f8,_0x3946c7=_0x2ad97['str'](_0x2602ad(0x16b))[_0x2602ad(0x150)](),_0x1769bd=_0x2ad97[_0x2602ad(0x155)](_0x2602ad(0x157))[_0x2602ad(0x150)]();return{'imageFile':_0x3946c7,'imageUrl':_0x1769bd,'count':[_0x3946c7,_0x1769bd]['filter'](Boolean)['length']};}function a38_0x3298(_0x4b20cc,_0x30c149){_0x4b20cc=_0x4b20cc-0x146;const _0x4a4688=a38_0x4a46();let _0x32983e=_0x4a4688[_0x4b20cc];return _0x32983e;}function validateInputSelection(_0x3ec04c){const _0x2e0484=a38_0x1629f8,_0x133e2a=selectedInputs(_0x3ec04c);if(_0x133e2a[_0x2e0484(0x177)]!==0x1)throw CliErrors[_0x2e0484(0x160)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x133e2a;}function withScene(_0x31cfe9,_0x16ddcf,_0x1c0934){const _0x2607e9=a38_0x1629f8;return{..._0x31cfe9,'scene':_0x16ddcf,..._0x1c0934?{'sourceFile':{'fileName':_0x1c0934[_0x2607e9(0x14b)],'filePath':_0x1c0934[_0x2607e9(0x15a)]}}:{}};}const ocrRecognize={'service':a38_0x1629f8(0x158),'command':a38_0x1629f8(0x152),'description':a38_0x1629f8(0x179),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x58daa7){const _0x5df19c=a38_0x1629f8,_0x51e015=normalizeScene(_0x58daa7[_0x5df19c(0x155)](_0x5df19c(0x176))),_0x50debd=SCENE_TO_LEGACY_TYPE[_0x51e015],_0xfaf409=validateInputSelection(_0x58daa7);if(_0xfaf409[_0x5df19c(0x14c)])return dryRun(_0x5df19c(0x169),_0x5df19c(0x172))[_0x5df19c(0x174)]({'appCode':_0x58daa7[_0x5df19c(0x170)],'url':_0xfaf409[_0x5df19c(0x14c)],'type':_0x50debd})['description']('Preview:\x20recognize\x20'+_0x51e015+'\x20OCR\x20from\x20URL')[_0x5df19c(0x159)]();const _0x58c6fc=requireRuntimeUploadFile(_0xfaf409[_0x5df19c(0x171)],_0x5df19c(0x16b));return dryRun(_0x5df19c(0x169),_0x5df19c(0x16d))[_0x5df19c(0x174)]({'steps':[{'method':_0x5df19c(0x169),'url':_0x5df19c(0x16d),'body':{'appCode':_0x58daa7[_0x5df19c(0x170)],'multipart':{'file':_0x58c6fc}}},{'method':_0x5df19c(0x169),'url':_0x5df19c(0x15f),'body':{'filePath':_0x5df19c(0x146),'downloadFlag':![]}},{'method':_0x5df19c(0x169),'url':'/client/ocr','body':{'appCode':_0x58daa7[_0x5df19c(0x170)],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x50debd}}]})[_0x5df19c(0x14d)](_0x5df19c(0x167)+_0x51e015+_0x5df19c(0x166))['build']();},async 'execute'(_0x46d2be){const _0x1b1ed1=a38_0x1629f8,_0x56676e=normalizeScene(_0x46d2be['str'](_0x1b1ed1(0x176))),_0xa9d629=SCENE_TO_LEGACY_TYPE[_0x56676e],_0x12ce95=validateInputSelection(_0x46d2be);if(_0x12ce95['imageUrl']){const _0x5f1c8a=await recognizeRuntimeOcr(_0x46d2be[_0x1b1ed1(0x170)],{'url':_0x12ce95[_0x1b1ed1(0x14c)],'type':_0xa9d629});return{'ok':!![],'data':withScene(_0x5f1c8a,_0x56676e)};}const _0x5a5b26=requireRuntimeUploadFile(_0x12ce95[_0x1b1ed1(0x171)],_0x1b1ed1(0x16b)),_0x4e01d4=await uploadRuntimeFile(_0x46d2be[_0x1b1ed1(0x170)],_0x5a5b26[_0x1b1ed1(0x17a)]);if(!_0x4e01d4['filePath'])throw CliErrors[_0x1b1ed1(0x178)](_0x1b1ed1(0x15b));const _0x2f65bc=await queryRuntimeFileUrl(_0x4e01d4[_0x1b1ed1(0x15a)],{'download':![]});if(!_0x2f65bc[_0x1b1ed1(0x15c)])throw CliErrors[_0x1b1ed1(0x178)](_0x1b1ed1(0x151));const _0x403cbb=await recognizeRuntimeOcr(_0x46d2be['appCode'],{'url':_0x2f65bc[_0x1b1ed1(0x15c)],'type':_0xa9d629});return{'ok':!![],'data':withScene(_0x403cbb,_0x56676e,_0x4e01d4)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x40e79c=a38_0x30eb;function a38_0x30eb(_0x2119e3,_0x2ca07e){_0x2119e3=_0x2119e3-0x1ef;const _0x5ace34=a38_0x5ace();let _0x30eb84=_0x5ace34[_0x2119e3];return _0x30eb84;}(function(_0x118770,_0x49c259){const _0x25ddcc=a38_0x30eb,_0x5afeb9=_0x118770();while(!![]){try{const _0x3b99c6=-parseInt(_0x25ddcc(0x20e))/0x1+parseInt(_0x25ddcc(0x207))/0x2+-parseInt(_0x25ddcc(0x201))/0x3+parseInt(_0x25ddcc(0x223))/0x4*(-parseInt(_0x25ddcc(0x21d))/0x5)+-parseInt(_0x25ddcc(0x212))/0x6*(-parseInt(_0x25ddcc(0x205))/0x7)+parseInt(_0x25ddcc(0x204))/0x8+parseInt(_0x25ddcc(0x202))/0x9;if(_0x3b99c6===_0x49c259)break;else _0x5afeb9['push'](_0x5afeb9['shift']());}catch(_0x5ed5f6){_0x5afeb9['push'](_0x5afeb9['shift']());}}}(a38_0x5ace,0x471d6));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_0x40e79c(0x216),a38_0x40e79c(0x1fa),'form',a38_0x40e79c(0x1ef)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x40e79c(0x206),'general':a38_0x40e79c(0x220),'form':a38_0x40e79c(0x1f5),'idCard':a38_0x40e79c(0x20d)},SCENE_FLAG={'name':a38_0x40e79c(0x200),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x40e79c(0x218)},IMAGE_FILE_FLAG={'name':'image-file','type':a38_0x40e79c(0x209),'description':a38_0x40e79c(0x20b)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x40e79c(0x209),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function a38_0x5ace(){const _0x392599=['build','Table','appCode','File\x20upload\x20response\x20missing\x20filePath.','imageFile','/client/ocr','general','description','ocr','count','.\x20Supported\x20scenes:\x20','filePath','scene','1537407SQAcIS','4993254DcIWZv','/client/queryFileUrl','1846888VGtLBF','272244jlnvQa','Invoice','976458wAuzKV','fileName','string','path','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','<filePath\x20returned\x20by\x20/client/uploadFile>','IdCard','81349BebDpa','join','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','POST','6tvIhjz','str','imageUrl','form','invoice','Preview:\x20recognize\x20','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','File\x20URL\x20response\x20missing\x20fileUrl.','trim','/client/uploadFile','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','20yzqcaT','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','toLowerCase','General','\x20OCR\x20from\x20URL','\x20OCR','427684sdOSkf','idCard','Unsupported\x20OCR\x20scene:\x20','validation','body','image-file'];a38_0x5ace=function(){return _0x392599;};return a38_0x5ace();}function normalizeScene(_0x283e78){const _0x2d8cdf=a38_0x40e79c,_0x3e9022=_0x283e78['trim']()[_0x2d8cdf(0x21f)]();if(_0x3e9022==='idcard')return _0x2d8cdf(0x1ef);if(_0x3e9022===_0x2d8cdf(0x216)||_0x3e9022===_0x2d8cdf(0x1fa)||_0x3e9022===_0x2d8cdf(0x215))return _0x3e9022;throw CliErrors['validation'](_0x2d8cdf(0x1f0)+_0x283e78+_0x2d8cdf(0x1fe)+SUPPORTED_SCENES[_0x2d8cdf(0x20f)](',\x20'));}function selectedInputs(_0x55c52a){const _0xc42704=a38_0x40e79c,_0x547e05=_0x55c52a[_0xc42704(0x213)](_0xc42704(0x1f3))[_0xc42704(0x21a)](),_0x3e4187=_0x55c52a['str']('image-url')[_0xc42704(0x21a)]();return{'imageFile':_0x547e05,'imageUrl':_0x3e4187,'count':[_0x547e05,_0x3e4187]['filter'](Boolean)['length']};}function validateInputSelection(_0x23d6db){const _0x454010=a38_0x40e79c,_0x434443=selectedInputs(_0x23d6db);if(_0x434443[_0x454010(0x1fd)]!==0x1)throw CliErrors[_0x454010(0x1f1)](_0x454010(0x21c));return _0x434443;}function withScene(_0x5f558a,_0x1172e3,_0x1abf3a){const _0x375ac9=a38_0x40e79c;return{..._0x5f558a,'scene':_0x1172e3,..._0x1abf3a?{'sourceFile':{'fileName':_0x1abf3a[_0x375ac9(0x208)],'filePath':_0x1abf3a[_0x375ac9(0x1ff)]}}:{}};}const ocrRecognize={'service':a38_0x40e79c(0x1fc),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x32dbaa){const _0x3a1188=a38_0x40e79c,_0x2e4770=normalizeScene(_0x32dbaa[_0x3a1188(0x213)](_0x3a1188(0x200))),_0x4acf17=SCENE_TO_LEGACY_TYPE[_0x2e4770],_0x14b1fe=validateInputSelection(_0x32dbaa);if(_0x14b1fe[_0x3a1188(0x214)])return dryRun(_0x3a1188(0x211),_0x3a1188(0x1f9))[_0x3a1188(0x1f2)]({'appCode':_0x32dbaa['appCode'],'url':_0x14b1fe[_0x3a1188(0x214)],'type':_0x4acf17})[_0x3a1188(0x1fb)](_0x3a1188(0x217)+_0x2e4770+_0x3a1188(0x221))[_0x3a1188(0x1f4)]();const _0x3c1579=requireRuntimeUploadFile(_0x14b1fe[_0x3a1188(0x1f8)],_0x3a1188(0x1f3));return dryRun(_0x3a1188(0x211),_0x3a1188(0x21b))[_0x3a1188(0x1f2)]({'steps':[{'method':_0x3a1188(0x211),'url':'/client/uploadFile','body':{'appCode':_0x32dbaa[_0x3a1188(0x1f6)],'multipart':{'file':_0x3c1579}}},{'method':_0x3a1188(0x211),'url':_0x3a1188(0x203),'body':{'filePath':_0x3a1188(0x20c),'downloadFlag':![]}},{'method':_0x3a1188(0x211),'url':_0x3a1188(0x1f9),'body':{'appCode':_0x32dbaa['appCode'],'url':_0x3a1188(0x21e),'type':_0x4acf17}}]})[_0x3a1188(0x1fb)](_0x3a1188(0x210)+_0x2e4770+_0x3a1188(0x222))[_0x3a1188(0x1f4)]();},async 'execute'(_0x569765){const _0x3391f3=a38_0x40e79c,_0x3943b6=normalizeScene(_0x569765[_0x3391f3(0x213)](_0x3391f3(0x200))),_0x20cc27=SCENE_TO_LEGACY_TYPE[_0x3943b6],_0x1d126a=validateInputSelection(_0x569765);if(_0x1d126a[_0x3391f3(0x214)]){const _0x2a57ce=await recognizeRuntimeOcr(_0x569765[_0x3391f3(0x1f6)],{'url':_0x1d126a[_0x3391f3(0x214)],'type':_0x20cc27});return{'ok':!![],'data':withScene(_0x2a57ce,_0x3943b6)};}const _0x566235=requireRuntimeUploadFile(_0x1d126a[_0x3391f3(0x1f8)],_0x3391f3(0x1f3)),_0x5a255a=await uploadRuntimeFile(_0x569765['appCode'],_0x566235[_0x3391f3(0x20a)]);if(!_0x5a255a[_0x3391f3(0x1ff)])throw CliErrors['apiError'](_0x3391f3(0x1f7));const _0x21aeb2=await queryRuntimeFileUrl(_0x5a255a[_0x3391f3(0x1ff)],{'download':![]});if(!_0x21aeb2['fileUrl'])throw CliErrors['apiError'](_0x3391f3(0x219));const _0x4acef7=await recognizeRuntimeOcr(_0x569765['appCode'],{'url':_0x21aeb2['fileUrl'],'type':_0x20cc27});return{'ok':!![],'data':withScene(_0x4acef7,_0x3943b6,_0x5a255a)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x1ca4bc=a39_0x423e;(function(_0x595628,_0x1fa8aa){const _0xb39313=a39_0x423e,_0x326c17=_0x595628();while(!![]){try{const _0x5a5be0=parseInt(_0xb39313(0x18f))/0x1*(-parseInt(_0xb39313(0x18a))/0x2)+-parseInt(_0xb39313(0x195))/0x3+parseInt(_0xb39313(0x186))/0x4*(parseInt(_0xb39313(0x197))/0x5)+parseInt(_0xb39313(0x196))/0x6*(-parseInt(_0xb39313(0x18b))/0x7)+-parseInt(_0xb39313(0x191))/0x8+-parseInt(_0xb39313(0x192))/0x9*(-parseInt(_0xb39313(0x190))/0xa)+parseInt(_0xb39313(0x18d))/0xb;if(_0x5a5be0===_0x1fa8aa)break;else _0x326c17['push'](_0x326c17['shift']());}catch(_0x556a93){_0x326c17['push'](_0x326c17['shift']());}}}(a39_0x23a5,0xc94c6));function a39_0x23a5(){const _0x23ced0=['str','permit','1997493Smtirf','6EkhQCf','191095UZzdBh','read','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','4ymVSiA','appCode','runtime','role','954oqeHhu','2446549GDGMMl','roleName','22067397DMvKjq','roleType','291WFhvNx','5776080yZdpVS','5146328RrgieV','9tQczPp'];a39_0x23a5=function(){return _0x23ced0;};return a39_0x23a5();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x423e(_0x4e7b73,_0x46cc69){_0x4e7b73=_0x4e7b73-0x185;const _0x23a528=a39_0x23a5();let _0x423e22=_0x23a528[_0x4e7b73];return _0x423e22;}export const permitDatasetGet={'service':a39_0x1ca4bc(0x194),'command':'dataset-get','description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a39_0x1ca4bc(0x198),'flags':[{'name':a39_0x1ca4bc(0x189),'type':'string','description':a39_0x1ca4bc(0x185)}],async 'execute'(_0x18d2f4){const _0x5a0d7f=a39_0x1ca4bc,_0x4fe78a=_0x18d2f4[_0x5a0d7f(0x193)](_0x5a0d7f(0x189))['trim']();if(!_0x4fe78a)return{'ok':!![],'data':{'scope':_0x5a0d7f(0x188),'datasets':await listRuntimeDatasetRolePermits(_0x18d2f4[_0x5a0d7f(0x187)])}};const _0x5c09d4=await resolveRuntimeRoleRef(_0x18d2f4['appCode'],_0x4fe78a);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x5c09d4['id'],'roleName':_0x5c09d4[_0x5a0d7f(0x18c)],'roleType':_0x5c09d4[_0x5a0d7f(0x18e)]},'datasets':await listRuntimeDatasetPermits(_0x18d2f4[_0x5a0d7f(0x187)],_0x5c09d4['id'])}};}};
1
+ const a39_0x2386e6=a39_0x5d8b;(function(_0xe3b7e0,_0x3ff522){const _0x2099bb=a39_0x5d8b,_0x3faa04=_0xe3b7e0();while(!![]){try{const _0x2a6761=-parseInt(_0x2099bb(0x77))/0x1*(parseInt(_0x2099bb(0x7c))/0x2)+-parseInt(_0x2099bb(0x7b))/0x3*(parseInt(_0x2099bb(0x86))/0x4)+-parseInt(_0x2099bb(0x7a))/0x5+parseInt(_0x2099bb(0x7f))/0x6*(-parseInt(_0x2099bb(0x83))/0x7)+parseInt(_0x2099bb(0x80))/0x8*(parseInt(_0x2099bb(0x76))/0x9)+-parseInt(_0x2099bb(0x87))/0xa*(parseInt(_0x2099bb(0x72))/0xb)+parseInt(_0x2099bb(0x74))/0xc;if(_0x2a6761===_0x3ff522)break;else _0x3faa04['push'](_0x3faa04['shift']());}catch(_0x32e59c){_0x3faa04['push'](_0x3faa04['shift']());}}}(a39_0x1e31,0xe825a));function a39_0x1e31(){const _0x25c808=['read','8127820FFNwdS','3FXNGxa','945300shXyvu','roleName','runtime','6AcKZAM','8XthUeZ','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','role','9717358goJgHB','appCode','dataset-get','6022104wxWwwN','13583370IipOoH','str','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','11EscNKU','permit','80565684QBhuML','string','5286042yPjxkN','1rfdYEr','trim'];a39_0x1e31=function(){return _0x25c808;};return a39_0x1e31();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x5d8b(_0x3538d2,_0xf76375){_0x3538d2=_0x3538d2-0x72;const _0x1e31d4=a39_0x1e31();let _0x5d8b78=_0x1e31d4[_0x3538d2];return _0x5d8b78;}export const permitDatasetGet={'service':a39_0x2386e6(0x73),'command':a39_0x2386e6(0x85),'description':a39_0x2386e6(0x81),'risk':a39_0x2386e6(0x79),'flags':[{'name':a39_0x2386e6(0x82),'type':a39_0x2386e6(0x75),'description':a39_0x2386e6(0x89)}],async 'execute'(_0x12301c){const _0x329bb9=a39_0x2386e6,_0x1fa6ad=_0x12301c[_0x329bb9(0x88)](_0x329bb9(0x82))[_0x329bb9(0x78)]();if(!_0x1fa6ad)return{'ok':!![],'data':{'scope':_0x329bb9(0x7e),'datasets':await listRuntimeDatasetRolePermits(_0x12301c[_0x329bb9(0x84)])}};const _0x3474a4=await resolveRuntimeRoleRef(_0x12301c['appCode'],_0x1fa6ad);return{'ok':!![],'data':{'scope':_0x329bb9(0x7e),'role':{'id':_0x3474a4['id'],'roleName':_0x3474a4[_0x329bb9(0x7d)],'roleType':_0x3474a4['roleType']},'datasets':await listRuntimeDatasetPermits(_0x12301c['appCode'],_0x3474a4['id'])}};}};
@@ -1 +1 @@
1
- const a40_0x435a82=a40_0x90f9;function a40_0x90f9(_0x539bbf,_0x408818){_0x539bbf=_0x539bbf-0x11c;const _0x549105=a40_0x5491();let _0x90f9f9=_0x549105[_0x539bbf];return _0x90f9f9;}(function(_0x17d210,_0x23aa24){const _0x6d25ae=a40_0x90f9,_0x1a9abc=_0x17d210();while(!![]){try{const _0x41085e=parseInt(_0x6d25ae(0x152))/0x1+parseInt(_0x6d25ae(0x12c))/0x2*(parseInt(_0x6d25ae(0x155))/0x3)+-parseInt(_0x6d25ae(0x15a))/0x4*(parseInt(_0x6d25ae(0x13b))/0x5)+-parseInt(_0x6d25ae(0x13f))/0x6+parseInt(_0x6d25ae(0x145))/0x7+-parseInt(_0x6d25ae(0x144))/0x8+parseInt(_0x6d25ae(0x157))/0x9*(parseInt(_0x6d25ae(0x129))/0xa);if(_0x41085e===_0x23aa24)break;else _0x1a9abc['push'](_0x1a9abc['shift']());}catch(_0x149ab1){_0x1a9abc['push'](_0x1a9abc['shift']());}}}(a40_0x5491,0xc9b8f));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a40_0x435a82(0x147),a40_0x435a82(0x14b),a40_0x435a82(0x141),a40_0x435a82(0x123),a40_0x435a82(0x138),a40_0x435a82(0x12b)],DATASETS_FLAG={'name':a40_0x435a82(0x136),'type':a40_0x435a82(0x128),'required':!![],'description':'Comma-separated\x20runtime\x20dataset\x20codes'},ACTIONS_FLAG={'name':'actions','type':a40_0x435a82(0x128),'required':!![],'description':a40_0x435a82(0x11f)+DATA_ACTIONS[a40_0x435a82(0x140)](',\x20')};function a40_0x5491(){const _0x5b6121=['operation','map','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','--actions','rolePermit','Comma-separated\x20actions:\x20','validation','permit','Preview:\x20','DATA_DETAIL','includes','find','\x20does\x20not\x20expose\x20','after','string','10858840fRLvgB','changed','DATA_ROW','216434uQVMzd','actions','datasetCodes','\x20was\x20not\x20found.','POST','/client/permit/resource/batch-save-dataset','\x20already\x20reflects\x20','datasetCode','filter','description','datasets','push','DATA_EXPORT','str','role','15mEtcQL','appCode','resourceName','\x20for\x20role\x20','2926464dnrPeh','join','DATA_DELETE','bool','dataset-set','10542048mnIaNo','6667192xmZtyT','length','DATA_CREATE','warnings','before','build','DATA_UPDATE','body','permitId','roles','revoke','grant','dataset-','635030kLTqQT','resourceType','Invalid\x20dataset\x20actions:\x20','21dBQoIF','--datasets','9KKcdGz','Runtime\x20dataset\x20','permitList','1065512JRWFSt'];a40_0x5491=function(){return _0x5b6121;};return a40_0x5491();}async function prepare(_0x11de85){const _0x3208dc=a40_0x435a82;await assertRuntimePermissionManager(_0x11de85[_0x3208dc(0x13c)]);const _0x1d4ad6=assertGrantOrRevoke(_0x11de85[_0x3208dc(0x142)](_0x3208dc(0x150)),_0x11de85[_0x3208dc(0x142)](_0x3208dc(0x14f))),_0x57ec76=await resolveRuntimeRoleRef(_0x11de85['appCode'],_0x11de85[_0x3208dc(0x139)](_0x3208dc(0x13a)));assertRuntimePermitRoleConfigurable(_0x57ec76);const _0x394de3=splitRefs(_0x11de85[_0x3208dc(0x139)]('datasets'),_0x3208dc(0x156)),_0x1ce143=[...new Set(splitRefs(_0x11de85[_0x3208dc(0x139)](_0x3208dc(0x12d)),_0x3208dc(0x11d))[_0x3208dc(0x15c)](_0x701b53=>_0x701b53['toUpperCase']()))],_0x4af7f3=_0x1ce143[_0x3208dc(0x134)](_0x55e1c1=>!DATA_ACTIONS[_0x3208dc(0x124)](_0x55e1c1));if(_0x4af7f3[_0x3208dc(0x146)]>0x0)throw CliErrors[_0x3208dc(0x120)](_0x3208dc(0x154)+_0x4af7f3[_0x3208dc(0x140)](',\x20')+'.');const _0x40628d=await listRuntimeDatasetRolePermits(_0x11de85['appCode']),_0x54ae00=await listRuntimePermitRoles(_0x11de85[_0x3208dc(0x13c)]),_0x26716d=[],_0x450798=[],_0x3441e3=[],_0x51dfbf=[];for(const _0x51ab7d of _0x394de3){const _0x219925=_0x40628d[_0x3208dc(0x125)](_0x2d8cf1=>_0x2d8cf1[_0x3208dc(0x133)]===_0x51ab7d);if(!_0x219925)throw CliErrors[_0x3208dc(0x120)](_0x3208dc(0x158)+_0x51ab7d+_0x3208dc(0x12f));for(const _0x33f85c of _0x1ce143){const _0x5c334=_0x219925['dataPermitList'][_0x3208dc(0x125)](_0x3a9fd8=>_0x3a9fd8[_0x3208dc(0x153)]===_0x33f85c);if(!_0x5c334)throw CliErrors[_0x3208dc(0x120)]('Dataset\x20'+_0x51ab7d+_0x3208dc(0x126)+_0x33f85c+'.');const _0x369ee5=applyRuntimeRolePermission(_0x5c334[_0x3208dc(0x11e)],_0x57ec76,_0x54ae00,_0x1d4ad6);_0x450798['push']({'datasetCode':_0x51ab7d,'resourceType':_0x33f85c,'rolePermit':_0x5c334[_0x3208dc(0x11e)]}),_0x3441e3[_0x3208dc(0x137)]({'datasetCode':_0x51ab7d,'resourceType':_0x33f85c,'rolePermit':_0x369ee5[_0x3208dc(0x14e)]}),_0x369ee5[_0x3208dc(0x12a)]?_0x26716d[_0x3208dc(0x137)]({..._0x5c334[_0x3208dc(0x14d)]!=null?{'id':_0x5c334[_0x3208dc(0x14d)]}:{},'appCode':_0x11de85[_0x3208dc(0x13c)],'resourceCode':_0x51ab7d,'resourceType':_0x33f85c,'resourceName':_0x5c334[_0x3208dc(0x13d)],'rolePermit':_0x369ee5[_0x3208dc(0x14e)]}):_0x51dfbf[_0x3208dc(0x137)](_0x51ab7d+'/'+_0x33f85c+_0x3208dc(0x132)+_0x1d4ad6+_0x3208dc(0x13e)+_0x57ec76['id']+'.');}}return{'operation':_0x1d4ad6,'role':_0x57ec76,'datasetCodes':_0x394de3,'actions':_0x1ce143,'permitList':_0x26716d,'before':_0x450798,'after':_0x3441e3,'warnings':_0x51dfbf};}export const permitDatasetSet={'service':a40_0x435a82(0x121),'command':a40_0x435a82(0x143),'description':a40_0x435a82(0x11c),'risk':'high-risk-write','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'(_0x4323bf){assertGrantOrRevoke(_0x4323bf['bool']('grant'),_0x4323bf['bool']('revoke'));},async 'dryRun'(_0xf18b12){const _0x11be42=a40_0x435a82,_0xf35ca1=await prepare(_0xf18b12);return dryRun(_0x11be42(0x130),'/client/permit/resource/batch-save-dataset')[_0x11be42(0x14c)]({'appCode':_0xf18b12[_0x11be42(0x13c)],'permitList':_0xf35ca1[_0x11be42(0x159)]})[_0x11be42(0x135)](_0x11be42(0x122)+_0xf35ca1[_0x11be42(0x15b)]+'\x20selected\x20runtime\x20dataset\x20actions')[_0x11be42(0x14a)]();},async 'execute'(_0x4d71be){const _0x5b595c=a40_0x435a82,_0x541548=await prepare(_0x4d71be);return _0x541548[_0x5b595c(0x159)][_0x5b595c(0x146)]>0x0&&await saveRuntimeDatasetRolePermits(_0x4d71be[_0x5b595c(0x13c)],_0x541548['permitList']),{'ok':!![],'data':runtimePermitWriteResult(_0x5b595c(0x151)+_0x541548[_0x5b595c(0x15b)],{'roleId':_0x541548[_0x5b595c(0x13a)]['id'],'datasetCodes':_0x541548[_0x5b595c(0x12e)],'actions':_0x541548[_0x5b595c(0x12d)]},_0x541548[_0x5b595c(0x149)],_0x541548[_0x5b595c(0x127)],{'method':_0x5b595c(0x130),'path':_0x5b595c(0x131)},_0x541548[_0x5b595c(0x148)])};}};
1
+ const a40_0x4e7265=a40_0x16a0;(function(_0x43a38e,_0x38c31a){const _0x2b4181=a40_0x16a0,_0x208512=_0x43a38e();while(!![]){try{const _0x5141b9=parseInt(_0x2b4181(0x1b4))/0x1*(parseInt(_0x2b4181(0x1b0))/0x2)+parseInt(_0x2b4181(0x1ac))/0x3*(-parseInt(_0x2b4181(0x185))/0x4)+-parseInt(_0x2b4181(0x188))/0x5*(parseInt(_0x2b4181(0x17f))/0x6)+parseInt(_0x2b4181(0x1b2))/0x7+parseInt(_0x2b4181(0x1af))/0x8+parseInt(_0x2b4181(0x18f))/0x9*(parseInt(_0x2b4181(0x1a8))/0xa)+-parseInt(_0x2b4181(0x1a9))/0xb;if(_0x5141b9===_0x38c31a)break;else _0x208512['push'](_0x208512['shift']());}catch(_0x5e3fad){_0x208512['push'](_0x208512['shift']());}}}(a40_0x2533,0x79d47));function a40_0x2533(){const _0x180045=['\x20does\x20not\x20expose\x20','map','Comma-separated\x20actions:\x20','Preview:\x20','high-risk-write','permitList','actions','\x20selected\x20runtime\x20dataset\x20actions','--datasets','Comma-separated\x20runtime\x20dataset\x20codes','--actions','220146KYFEMU','role','includes','\x20was\x20not\x20found.','permitId','dataset-','109604XqhyoI','\x20for\x20role\x20','DATA_EXPORT','15znyQiY','length','permit','/client/permit/resource/batch-save-dataset','dataset-set','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','Invalid\x20dataset\x20actions:\x20','9RhTIfq','roles','appCode','warnings','join','find','DATA_DETAIL','rolePermit','description','POST','bool','changed','resourceType','dataPermitList','body','push','Runtime\x20dataset\x20','operation','DATA_CREATE','datasetCode','filter','datasets','revoke','build','DATA_DELETE','4376120goWySB','1993354MSCuIJ','before','validation','45jXFkEg','str','\x20already\x20reflects\x20','3375712KeRBrv','2PmthlO','resourceName','1359085LICMEm','Dataset\x20','147586cSSffc'];a40_0x2533=function(){return _0x180045;};return a40_0x2533();}import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a40_0x16a0(_0x42b396,_0x522ccb){_0x42b396=_0x42b396-0x17a;const _0x2533d3=a40_0x2533();let _0x16a061=_0x2533d3[_0x42b396];return _0x16a061;}const DATA_ACTIONS=[a40_0x4e7265(0x1a1),'DATA_UPDATE',a40_0x4e7265(0x1a7),a40_0x4e7265(0x195),a40_0x4e7265(0x187),'DATA_ROW'],DATASETS_FLAG={'name':a40_0x4e7265(0x1a4),'type':'string','required':!![],'description':a40_0x4e7265(0x17d)},ACTIONS_FLAG={'name':'actions','type':'string','required':!![],'description':a40_0x4e7265(0x1b7)+DATA_ACTIONS[a40_0x4e7265(0x193)](',\x20')};async function prepare(_0x5cd404){const _0x4526ea=a40_0x4e7265;await assertRuntimePermissionManager(_0x5cd404['appCode']);const _0x3f8107=assertGrantOrRevoke(_0x5cd404[_0x4526ea(0x199)]('grant'),_0x5cd404[_0x4526ea(0x199)](_0x4526ea(0x1a5))),_0x15f154=await resolveRuntimeRoleRef(_0x5cd404[_0x4526ea(0x191)],_0x5cd404['str']('role'));assertRuntimePermitRoleConfigurable(_0x15f154);const _0x2b3f45=splitRefs(_0x5cd404['str'](_0x4526ea(0x1a4)),_0x4526ea(0x17c)),_0xbfa383=[...new Set(splitRefs(_0x5cd404[_0x4526ea(0x1ad)](_0x4526ea(0x17a)),_0x4526ea(0x17e))[_0x4526ea(0x1b6)](_0x3b6356=>_0x3b6356['toUpperCase']()))],_0x2ec99b=_0xbfa383[_0x4526ea(0x1a3)](_0x19feea=>!DATA_ACTIONS[_0x4526ea(0x181)](_0x19feea));if(_0x2ec99b[_0x4526ea(0x189)]>0x0)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x18e)+_0x2ec99b[_0x4526ea(0x193)](',\x20')+'.');const _0x530045=await listRuntimeDatasetRolePermits(_0x5cd404['appCode']),_0x498da3=await listRuntimePermitRoles(_0x5cd404['appCode']),_0x162b4f=[],_0x2c3276=[],_0x298c6d=[],_0xaf2b81=[];for(const _0x560b58 of _0x2b3f45){const _0x1997ce=_0x530045[_0x4526ea(0x194)](_0x8129f6=>_0x8129f6[_0x4526ea(0x1a2)]===_0x560b58);if(!_0x1997ce)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x19f)+_0x560b58+_0x4526ea(0x182));for(const _0x659be5 of _0xbfa383){const _0x1b8c25=_0x1997ce[_0x4526ea(0x19c)][_0x4526ea(0x194)](_0x24e444=>_0x24e444[_0x4526ea(0x19b)]===_0x659be5);if(!_0x1b8c25)throw CliErrors[_0x4526ea(0x1ab)](_0x4526ea(0x1b3)+_0x560b58+_0x4526ea(0x1b5)+_0x659be5+'.');const _0x177039=applyRuntimeRolePermission(_0x1b8c25[_0x4526ea(0x196)],_0x15f154,_0x498da3,_0x3f8107);_0x2c3276[_0x4526ea(0x19e)]({'datasetCode':_0x560b58,'resourceType':_0x659be5,'rolePermit':_0x1b8c25[_0x4526ea(0x196)]}),_0x298c6d['push']({'datasetCode':_0x560b58,'resourceType':_0x659be5,'rolePermit':_0x177039[_0x4526ea(0x190)]}),_0x177039[_0x4526ea(0x19a)]?_0x162b4f[_0x4526ea(0x19e)]({..._0x1b8c25[_0x4526ea(0x183)]!=null?{'id':_0x1b8c25['permitId']}:{},'appCode':_0x5cd404[_0x4526ea(0x191)],'resourceCode':_0x560b58,'resourceType':_0x659be5,'resourceName':_0x1b8c25[_0x4526ea(0x1b1)],'rolePermit':_0x177039['roles']}):_0xaf2b81[_0x4526ea(0x19e)](_0x560b58+'/'+_0x659be5+_0x4526ea(0x1ae)+_0x3f8107+_0x4526ea(0x186)+_0x15f154['id']+'.');}}return{'operation':_0x3f8107,'role':_0x15f154,'datasetCodes':_0x2b3f45,'actions':_0xbfa383,'permitList':_0x162b4f,'before':_0x2c3276,'after':_0x298c6d,'warnings':_0xaf2b81};}export const permitDatasetSet={'service':a40_0x4e7265(0x18a),'command':a40_0x4e7265(0x18c),'description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':a40_0x4e7265(0x1b9),'confirmationDescription':a40_0x4e7265(0x18d),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x513cf1){const _0x2fb388=a40_0x4e7265;assertGrantOrRevoke(_0x513cf1[_0x2fb388(0x199)]('grant'),_0x513cf1['bool'](_0x2fb388(0x1a5)));},async 'dryRun'(_0x31d837){const _0x544fd5=a40_0x4e7265,_0x4cf7ab=await prepare(_0x31d837);return dryRun(_0x544fd5(0x198),_0x544fd5(0x18b))[_0x544fd5(0x19d)]({'appCode':_0x31d837[_0x544fd5(0x191)],'permitList':_0x4cf7ab[_0x544fd5(0x1ba)]})[_0x544fd5(0x197)](_0x544fd5(0x1b8)+_0x4cf7ab['operation']+_0x544fd5(0x17b))[_0x544fd5(0x1a6)]();},async 'execute'(_0x4b4f2c){const _0x593d55=a40_0x4e7265,_0x264a94=await prepare(_0x4b4f2c);return _0x264a94[_0x593d55(0x1ba)][_0x593d55(0x189)]>0x0&&await saveRuntimeDatasetRolePermits(_0x4b4f2c[_0x593d55(0x191)],_0x264a94[_0x593d55(0x1ba)]),{'ok':!![],'data':runtimePermitWriteResult(_0x593d55(0x184)+_0x264a94[_0x593d55(0x1a0)],{'roleId':_0x264a94[_0x593d55(0x180)]['id'],'datasetCodes':_0x264a94['datasetCodes'],'actions':_0x264a94[_0x593d55(0x17a)]},_0x264a94[_0x593d55(0x1aa)],_0x264a94['after'],{'method':_0x593d55(0x198),'path':'/client/permit/resource/batch-save-dataset'},_0x264a94[_0x593d55(0x192)])};}};
@@ -1 +1 @@
1
- (function(_0x3831bc,_0x47d31a){const _0x5218d9=a41_0x1a81,_0x3f5460=_0x3831bc();while(!![]){try{const _0x25877a=-parseInt(_0x5218d9(0x8d))/0x1*(-parseInt(_0x5218d9(0x8b))/0x2)+parseInt(_0x5218d9(0x8c))/0x3+parseInt(_0x5218d9(0x91))/0x4*(-parseInt(_0x5218d9(0x8f))/0x5)+-parseInt(_0x5218d9(0x90))/0x6+parseInt(_0x5218d9(0x8e))/0x7+parseInt(_0x5218d9(0x8a))/0x8*(-parseInt(_0x5218d9(0x88))/0x9)+parseInt(_0x5218d9(0x89))/0xa;if(_0x25877a===_0x47d31a)break;else _0x3f5460['push'](_0x3f5460['shift']());}catch(_0x2dd23f){_0x3f5460['push'](_0x3f5460['shift']());}}}(a41_0xa404,0xc17f9));function a41_0xa404(){const _0x24c80a=['10pGomRX','3178260FwENsz','2249252fqJHJp','8957223YeJJTV','27072950XbaYox','8ANqwhb','4902GXjlLz','736836IkkgLt','71HXmriI','2206568zCnsCd'];a41_0xa404=function(){return _0x24c80a;};return a41_0xa404();}import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';function a41_0x1a81(_0x3cc74d,_0x23d5a3){_0x3cc74d=_0x3cc74d-0x88;const _0xa40487=a41_0xa404();let _0x1a8132=_0xa40487[_0x3cc74d];return _0x1a8132;}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';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
1
+ function a41_0xbd08(){const _0x36166d=['18OjWAJL','12683170Hhjzqx','4733825EnBwxt','175728CWCLSV','1110571mndvFa','192ieZRQN','24LGPcRM','436912xCimdj','6033948yDRCXa','3814MNRQOr'];a41_0xbd08=function(){return _0x36166d;};return a41_0xbd08();}(function(_0x1de581,_0x3c8b18){const _0x3c0a17=a41_0x5ab4,_0x40487f=_0x1de581();while(!![]){try{const _0x992b66=-parseInt(_0x3c0a17(0x11d))/0x1+parseInt(_0x3c0a17(0x118))/0x2*(parseInt(_0x3c0a17(0x11f))/0x3)+-parseInt(_0x3c0a17(0x116))/0x4+parseInt(_0x3c0a17(0x11b))/0x5+-parseInt(_0x3c0a17(0x117))/0x6+-parseInt(_0x3c0a17(0x11c))/0x7*(parseInt(_0x3c0a17(0x11e))/0x8)+-parseInt(_0x3c0a17(0x119))/0x9*(-parseInt(_0x3c0a17(0x11a))/0xa);if(_0x992b66===_0x3c8b18)break;else _0x40487f['push'](_0x40487f['shift']());}catch(_0x52b74e){_0x40487f['push'](_0x40487f['shift']());}}}(a41_0xbd08,0xa3bee));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';function a41_0x5ab4(_0x20d6bd,_0x179817){_0x20d6bd=_0x20d6bd-0x116;const _0xbd086a=a41_0xbd08();let _0x5ab47a=_0xbd086a[_0x20d6bd];return _0x5ab47a;}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
- const a42_0x5d3218=a42_0xf8c5;function a42_0xf8c5(_0xd35d20,_0x562202){_0xd35d20=_0xd35d20-0xe4;const _0x396ea1=a42_0x396e();let _0xf8c5f0=_0x396ea1[_0xd35d20];return _0xf8c5f0;}(function(_0xcf0966,_0x4217e8){const _0xad3cb0=a42_0xf8c5,_0x4d19d6=_0xcf0966();while(!![]){try{const _0x3ad038=-parseInt(_0xad3cb0(0xf3))/0x1*(-parseInt(_0xad3cb0(0xf2))/0x2)+-parseInt(_0xad3cb0(0xe9))/0x3*(parseInt(_0xad3cb0(0xea))/0x4)+-parseInt(_0xad3cb0(0xf4))/0x5*(-parseInt(_0xad3cb0(0xef))/0x6)+parseInt(_0xad3cb0(0xec))/0x7+-parseInt(_0xad3cb0(0xf5))/0x8*(-parseInt(_0xad3cb0(0xed))/0x9)+parseInt(_0xad3cb0(0xe6))/0xa*(-parseInt(_0xad3cb0(0xe4))/0xb)+parseInt(_0xad3cb0(0xf1))/0xc*(parseInt(_0xad3cb0(0xee))/0xd);if(_0x3ad038===_0x4217e8)break;else _0x4d19d6['push'](_0x4d19d6['shift']());}catch(_0x5b50ed){_0x4d19d6['push'](_0x4d19d6['shift']());}}}(a42_0x396e,0x9f99e));import{getRuntimePagePermit}from'../../core/api-client.js';function a42_0x396e(){const _0xa0799=['permit','432jOoOIW','18QCPhoz','107129hLOhFQ','156710OfmSpf','1276040fkPyWp','6908OMiEKj','menu-id','10190GybzVK','runtime','page-get','91122iRRUNJ','100aKbASx','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','4115006RHqNjF','9jGziOG','55406EgYSXr','36HzVuFo'];a42_0x396e=function(){return _0xa0799;};return a42_0x396e();}import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x5d3218(0xf0),'command':a42_0x5d3218(0xe8),'description':a42_0x5d3218(0xeb),'risk':'read','flags':[MENU_ID_FLAG],async 'execute'(_0x35eef8){const _0x66dd3c=a42_0x5d3218,_0x39992a=await getRuntimePagePermit(_0x35eef8['num'](_0x66dd3c(0xe5)));return{'ok':!![],'data':{'scope':_0x66dd3c(0xe7),'page':projectRuntimePagePermit(_0x39992a)}};}};
1
+ const a42_0x29ebba=a42_0x1a9a;(function(_0x563555,_0x2af78a){const _0x17eac2=a42_0x1a9a,_0x178643=_0x563555();while(!![]){try{const _0x22412f=-parseInt(_0x17eac2(0x19c))/0x1+parseInt(_0x17eac2(0x1aa))/0x2*(-parseInt(_0x17eac2(0x1a8))/0x3)+parseInt(_0x17eac2(0x1ab))/0x4*(-parseInt(_0x17eac2(0x1a6))/0x5)+parseInt(_0x17eac2(0x19a))/0x6*(parseInt(_0x17eac2(0x1a0))/0x7)+parseInt(_0x17eac2(0x1a9))/0x8*(-parseInt(_0x17eac2(0x1a4))/0x9)+parseInt(_0x17eac2(0x19f))/0xa*(parseInt(_0x17eac2(0x19d))/0xb)+parseInt(_0x17eac2(0x19b))/0xc;if(_0x22412f===_0x2af78a)break;else _0x178643['push'](_0x178643['shift']());}catch(_0x112609){_0x178643['push'](_0x178643['shift']());}}}(a42_0x3570,0xa63e7));import{getRuntimePagePermit}from'../../core/api-client.js';function a42_0x3570(){const _0x50bca8=['78407mwUamK','permit','runtime','num','2881242xjxCxK','page-get','1245QSwnha','menu-id','259983CJSuvQ','24SZeCpK','26yFiHec','21132ufjfju','read','498sdMcSD','39667788wegDZP','1190861hhRqMt','22RpcaaC','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','5194690mrgfxs'];a42_0x3570=function(){return _0x50bca8;};return a42_0x3570();}function a42_0x1a9a(_0x4a7485,_0x535d7d){_0x4a7485=_0x4a7485-0x199;const _0x357007=a42_0x3570();let _0x1a9a76=_0x357007[_0x4a7485];return _0x1a9a76;}import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x29ebba(0x1a1),'command':a42_0x29ebba(0x1a5),'description':a42_0x29ebba(0x19e),'risk':a42_0x29ebba(0x199),'flags':[MENU_ID_FLAG],async 'execute'(_0x47e056){const _0x1b880c=a42_0x29ebba,_0xedc789=await getRuntimePagePermit(_0x47e056[_0x1b880c(0x1a3)](_0x1b880c(0x1a7)));return{'ok':!![],'data':{'scope':_0x1b880c(0x1a2),'page':projectRuntimePagePermit(_0xedc789)}};}};