@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +3 -3
  184. package/skills/lovrabet/SKILL.md +10 -2
  185. package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
  186. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- function a39_0x3d4a(_0x25799d,_0x432ce7){_0x25799d=_0x25799d-0x1be;const _0x46a252=a39_0x46a2();let _0x3d4a31=_0x46a252[_0x25799d];return _0x3d4a31;}const a39_0xcb948=a39_0x3d4a;(function(_0x19367a,_0x13c92e){const _0x1300f8=a39_0x3d4a,_0x55e8ef=_0x19367a();while(!![]){try{const _0x285b25=-parseInt(_0x1300f8(0x1ca))/0x1*(parseInt(_0x1300f8(0x1db))/0x2)+parseInt(_0x1300f8(0x1d9))/0x3+parseInt(_0x1300f8(0x1c5))/0x4*(-parseInt(_0x1300f8(0x1c6))/0x5)+parseInt(_0x1300f8(0x1c3))/0x6*(-parseInt(_0x1300f8(0x1cc))/0x7)+parseInt(_0x1300f8(0x1d0))/0x8+-parseInt(_0x1300f8(0x1d8))/0x9*(-parseInt(_0x1300f8(0x1cd))/0xa)+-parseInt(_0x1300f8(0x1d3))/0xb*(-parseInt(_0x1300f8(0x1cb))/0xc);if(_0x285b25===_0x13c92e)break;else _0x55e8ef['push'](_0x55e8ef['shift']());}catch(_0x1f3f1d){_0x55e8ef['push'](_0x55e8ef['shift']());}}}(a39_0x46a2,0x49e5f));function a39_0x46a2(){const _0x4eff18=['readLogs','*\x20No\x20logs\x20found','2629tuimcH','\x20\x20\x20Details:\x20','error','log','level','16209UHHZfe','1561512PPSVwY','View\x20command\x20history\x20logs','6OVoIIa','toLocaleString','details','stringify','\x20\x20\x20Duration:\x20','logs','1326396ZhqpkD','show','1364sjFcbq','8195wccmxL','duration','\x20logs:\x0a','success','86224KLjwRc','11124mOWbuM','14QEJHGn','2570PYZLkY','command','\x20\x20\x20Time:\x20','2859808dbrfPE'];a39_0x46a2=function(){return _0x4eff18;};return a39_0x46a2();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x425fb3){const _0x511848=a39_0x3d4a;if(_0x425fb3['length']===0x0){console['log'](_0x511848(0x1d2));return;}console[_0x511848(0x1d6)]('*\x20'+CLI_DISPLAY_NAME+_0x511848(0x1c8)),_0x425fb3['forEach']((_0x169fa1,_0x2d0407)=>{const _0x212a01=_0x511848,_0x4e029c=new Date(_0x169fa1['timestamp'])[_0x212a01(0x1be)]('en-US'),_0x1033c3=_0x169fa1['level']===_0x212a01(0x1c9)?'√':_0x169fa1[_0x212a01(0x1d7)]===_0x212a01(0x1d5)?'×':_0x169fa1['level']==='warn'?'!':'i';console[_0x212a01(0x1d6)](_0x2d0407+0x1+'.\x20'+_0x1033c3+'\x20['+_0x169fa1[_0x212a01(0x1ce)]+']\x20'+_0x169fa1['message']),console[_0x212a01(0x1d6)](_0x212a01(0x1cf)+_0x4e029c),_0x169fa1[_0x212a01(0x1c7)]&&console[_0x212a01(0x1d6)](_0x212a01(0x1c1)+_0x169fa1[_0x212a01(0x1c7)]+'ms'),_0x169fa1[_0x212a01(0x1bf)]&&Object['keys'](_0x169fa1[_0x212a01(0x1bf)])['length']>0x0&&console[_0x212a01(0x1d6)](_0x212a01(0x1d4)+JSON[_0x212a01(0x1c0)](_0x169fa1[_0x212a01(0x1bf)],null,0x2)),console[_0x212a01(0x1d6)]('');});}export const logsDefinitions=[{'service':a39_0xcb948(0x1c2),'command':a39_0xcb948(0x1c4),'description':a39_0xcb948(0x1da),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5d7324){const _0xb63a9e=a39_0xcb948;return printLogs(logger[_0xb63a9e(0x1d1)]()),{'ok':!![]};}}];
1
+ const a39_0x1e0023=a39_0x2a04;function a39_0xf807(){const _0x503614=['command','readLogs','timestamp','187458zcTlvP','message','duration','error','length','keys','\x20\x20\x20Details:\x20','9268819TtJZKD','show','1071460bJAjuP','warn','37044xOerYV','503YrArjW','800wUdFTn','1528xCfOrZ','492CGJuxa','\x20\x20\x20Time:\x20','6HMEmIz','\x20logs:\x0a','toLocaleString','\x20\x20\x20Duration:\x20','4129550LZtioc','log','details','logs','20mRthaE','886GVqlhi','level','174878lHCpby','View\x20command\x20history\x20logs'];a39_0xf807=function(){return _0x503614;};return a39_0xf807();}(function(_0x10c23a,_0x423a3b){const _0x20c0df=a39_0x2a04,_0xdaed9b=_0x10c23a();while(!![]){try{const _0x689780=-parseInt(_0x20c0df(0x7b))/0x1*(parseInt(_0x20c0df(0x89))/0x2)+-parseInt(_0x20c0df(0x90))/0x3*(-parseInt(_0x20c0df(0x88))/0x4)+-parseInt(_0x20c0df(0x84))/0x5+-parseInt(_0x20c0df(0x80))/0x6*(parseInt(_0x20c0df(0x76))/0x7)+parseInt(_0x20c0df(0x7d))/0x8*(parseInt(_0x20c0df(0x7a))/0x9)+-parseInt(_0x20c0df(0x7c))/0xa*(parseInt(_0x20c0df(0x8b))/0xb)+parseInt(_0x20c0df(0x7e))/0xc*(parseInt(_0x20c0df(0x78))/0xd);if(_0x689780===_0x423a3b)break;else _0xdaed9b['push'](_0xdaed9b['shift']());}catch(_0x44adcf){_0xdaed9b['push'](_0xdaed9b['shift']());}}}(a39_0xf807,0xcb656));function a39_0x2a04(_0x32df94,_0x19de2f){_0x32df94=_0x32df94-0x73;const _0xf807d1=a39_0xf807();let _0x2a04d8=_0xf807d1[_0x32df94];return _0x2a04d8;}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x1b859b){const _0x57767d=a39_0x2a04;if(_0x1b859b[_0x57767d(0x73)]===0x0){console[_0x57767d(0x85)]('*\x20No\x20logs\x20found');return;}console[_0x57767d(0x85)]('*\x20'+CLI_DISPLAY_NAME+_0x57767d(0x81)),_0x1b859b['forEach']((_0x4b414c,_0x2b7149)=>{const _0x5c0a41=_0x57767d,_0x59a7a5=new Date(_0x4b414c[_0x5c0a41(0x8f)])[_0x5c0a41(0x82)]('en-US'),_0x197734=_0x4b414c[_0x5c0a41(0x8a)]==='success'?'√':_0x4b414c[_0x5c0a41(0x8a)]===_0x5c0a41(0x93)?'×':_0x4b414c[_0x5c0a41(0x8a)]===_0x5c0a41(0x79)?'!':'i';console[_0x5c0a41(0x85)](_0x2b7149+0x1+'.\x20'+_0x197734+'\x20['+_0x4b414c[_0x5c0a41(0x8d)]+']\x20'+_0x4b414c[_0x5c0a41(0x91)]),console['log'](_0x5c0a41(0x7f)+_0x59a7a5),_0x4b414c['duration']&&console[_0x5c0a41(0x85)](_0x5c0a41(0x83)+_0x4b414c[_0x5c0a41(0x92)]+'ms'),_0x4b414c['details']&&Object[_0x5c0a41(0x74)](_0x4b414c['details'])[_0x5c0a41(0x73)]>0x0&&console['log'](_0x5c0a41(0x75)+JSON['stringify'](_0x4b414c[_0x5c0a41(0x86)],null,0x2)),console[_0x5c0a41(0x85)]('');});}export const logsDefinitions=[{'service':a39_0x1e0023(0x87),'command':a39_0x1e0023(0x77),'description':a39_0x1e0023(0x8c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x298c8f){const _0x1528e3=a39_0x1e0023;return printLogs(logger[_0x1528e3(0x8e)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a40_0x6c54(_0x42fca1,_0x33c7bd){_0x42fca1=_0x42fca1-0x98;const _0x47b5c5=a40_0x47b5();let _0x6c5430=_0x47b5c5[_0x42fca1];return _0x6c5430;}function a40_0x47b5(){const _0x45bc01=['string','\x20notification\x20config(s)','161019GiFarK','EMAIL','notification','273085vvViIa','Notification\x20channel\x20type','953354tkJkDm','length','56OLdbyk','1462929rawSnV','appCode','164969PiPrNi','3719484lyxVwV','map','config-list','2548xsWRCk','type','2330efcaIP','Found\x20'];a40_0x47b5=function(){return _0x45bc01;};return a40_0x47b5();}const a40_0x5633b7=a40_0x6c54;(function(_0x3c19b8,_0x1d196e){const _0x162235=a40_0x6c54,_0x2e8580=_0x3c19b8();while(!![]){try{const _0x232ac8=parseInt(_0x162235(0xa3))/0x1+-parseInt(_0x162235(0xa5))/0x2+parseInt(_0x162235(0xa8))/0x3+parseInt(_0x162235(0x9a))/0x4*(-parseInt(_0x162235(0x9c))/0x5)+parseInt(_0x162235(0xab))/0x6+-parseInt(_0x162235(0xaa))/0x7*(parseInt(_0x162235(0xa7))/0x8)+-parseInt(_0x162235(0xa0))/0x9;if(_0x232ac8===_0x1d196e)break;else _0x2e8580['push'](_0x2e8580['shift']());}catch(_0x28111b){_0x2e8580['push'](_0x2e8580['shift']());}}}(a40_0x47b5,0x67947));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a40_0x5633b7(0xa2),'command':a40_0x5633b7(0x99),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[{'name':a40_0x5633b7(0x9b),'type':a40_0x5633b7(0x9e),'description':a40_0x5633b7(0xa4),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a40_0x5633b7(0xa1)}],async 'validate'(_0x31cdbe){readNotificationChannelType(_0x31cdbe);},async 'execute'(_0x24c96e){const _0x37d046=a40_0x5633b7,_0x16c6c2=readNotificationChannelType(_0x24c96e),_0x14b0f4=await listNotificationChannelConfigs(_0x24c96e[_0x37d046(0xa9)],_0x16c6c2),_0xbe8b0d=_0x14b0f4[_0x37d046(0x98)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x24c96e[_0x37d046(0xa9)],'channelType':_0x16c6c2,'count':_0xbe8b0d[_0x37d046(0xa6)],'configs':_0xbe8b0d},'message':_0x37d046(0x9d)+_0xbe8b0d[_0x37d046(0xa6)]+'\x20'+_0x16c6c2+_0x37d046(0x9f)};}};
1
+ const a40_0x31df84=a40_0x1399;function a40_0x1399(_0xe2e49e,_0x465817){_0xe2e49e=_0xe2e49e-0x6d;const _0x115d64=a40_0x115d();let _0x139997=_0x115d64[_0xe2e49e];return _0x139997;}(function(_0x319af8,_0x59e55c){const _0x5dc903=a40_0x1399,_0x422ee2=_0x319af8();while(!![]){try{const _0x3a9990=parseInt(_0x5dc903(0x78))/0x1*(parseInt(_0x5dc903(0x7b))/0x2)+-parseInt(_0x5dc903(0x80))/0x3+-parseInt(_0x5dc903(0x7c))/0x4+-parseInt(_0x5dc903(0x7d))/0x5+-parseInt(_0x5dc903(0x79))/0x6*(parseInt(_0x5dc903(0x77))/0x7)+parseInt(_0x5dc903(0x7e))/0x8*(-parseInt(_0x5dc903(0x75))/0x9)+parseInt(_0x5dc903(0x72))/0xa;if(_0x3a9990===_0x59e55c)break;else _0x422ee2['push'](_0x422ee2['shift']());}catch(_0x4a366c){_0x422ee2['push'](_0x422ee2['shift']());}}}(a40_0x115d,0xa178f));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a40_0x115d(){const _0x183186=['762BSUZKi','Notification\x20channel\x20type','1731494hwNCvw','2093504WjXSiu','2123410MaHsaI','5008136UonhRx','length','2933862RbTlZY','appCode','string','notification','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','map','37422940bnkLOa','config-list','\x20notification\x20config(s)','18erNnHH','Found\x20','42364xtInae','1iZKTIO'];a40_0x115d=function(){return _0x183186;};return a40_0x115d();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a40_0x31df84(0x6f),'command':a40_0x31df84(0x73),'description':a40_0x31df84(0x70),'risk':'read','flags':[{'name':'type','type':a40_0x31df84(0x6e),'description':a40_0x31df84(0x7a),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x412b47){readNotificationChannelType(_0x412b47);},async 'execute'(_0x240c58){const _0x106eee=a40_0x31df84,_0x58b731=readNotificationChannelType(_0x240c58),_0x493292=await listNotificationChannelConfigs(_0x240c58['appCode'],_0x58b731),_0x43989a=_0x493292[_0x106eee(0x71)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x240c58[_0x106eee(0x6d)],'channelType':_0x58b731,'count':_0x43989a[_0x106eee(0x7f)],'configs':_0x43989a},'message':_0x106eee(0x76)+_0x43989a[_0x106eee(0x7f)]+'\x20'+_0x58b731+_0x106eee(0x74)};}};
@@ -1 +1 @@
1
- (function(_0x43d66a,_0x5c19f8){const _0x38f572=a41_0x1896,_0x4c37a6=_0x43d66a();while(!![]){try{const _0x591f18=parseInt(_0x38f572(0x157))/0x1+-parseInt(_0x38f572(0x154))/0x2+-parseInt(_0x38f572(0x153))/0x3+parseInt(_0x38f572(0x152))/0x4*(parseInt(_0x38f572(0x158))/0x5)+parseInt(_0x38f572(0x159))/0x6+parseInt(_0x38f572(0x156))/0x7+-parseInt(_0x38f572(0x155))/0x8;if(_0x591f18===_0x5c19f8)break;else _0x4c37a6['push'](_0x4c37a6['shift']());}catch(_0x30ae93){_0x4c37a6['push'](_0x4c37a6['shift']());}}}(a41_0x2f3a,0x8fe1c));function a41_0x2f3a(){const _0x4f394d=['572444kXhEah','290043ScAEnC','1668090dPbkip','5926144ybDRrp','4606210gGeuJv','842681rSKewY','5xThgeW','3702072PrnQVH'];a41_0x2f3a=function(){return _0x4f394d;};return a41_0x2f3a();}import{notificationConfigList}from'../../commands/notification/config-list.js';function a41_0x1896(_0x1a7530,_0x3c1613){_0x1a7530=_0x1a7530-0x152;const _0x2f3a99=a41_0x2f3a();let _0x1896f8=_0x2f3a99[_0x1a7530];return _0x1896f8;}export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x2c19df,_0x4468c3){const _0x49e0a7=a41_0x5250,_0x520794=_0x2c19df();while(!![]){try{const _0xd4d504=parseInt(_0x49e0a7(0x1e7))/0x1+parseInt(_0x49e0a7(0x1e6))/0x2*(parseInt(_0x49e0a7(0x1e1))/0x3)+parseInt(_0x49e0a7(0x1e2))/0x4+-parseInt(_0x49e0a7(0x1e8))/0x5*(-parseInt(_0x49e0a7(0x1e0))/0x6)+-parseInt(_0x49e0a7(0x1df))/0x7+parseInt(_0x49e0a7(0x1e3))/0x8*(parseInt(_0x49e0a7(0x1e5))/0x9)+-parseInt(_0x49e0a7(0x1e4))/0xa;if(_0xd4d504===_0x4468c3)break;else _0x520794['push'](_0x520794['shift']());}catch(_0x46681f){_0x520794['push'](_0x520794['shift']());}}}(a41_0x54cc,0x376f4));function a41_0x54cc(){const _0x4494e0=['6082310ZCiaqS','36ieVnJO','34CIQQCq','284736pXKhPX','10ezYcyP','2124255lmLupX','823206JEDpjG','19887NQTrgM','158964UdIjvQ','854368HvnKXy'];a41_0x54cc=function(){return _0x4494e0;};return a41_0x54cc();}function a41_0x5250(_0x47d08b,_0x4947ba){_0x47d08b=_0x47d08b-0x1df;const _0x54cc49=a41_0x54cc();let _0x5250c4=_0x54cc49[_0x47d08b];return _0x5250c4;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a42_0x4caa7a=a42_0x1a51;(function(_0x358def,_0x511e16){const _0x811c50=a42_0x1a51,_0x5a646d=_0x358def();while(!![]){try{const _0x31e251=parseInt(_0x811c50(0x1be))/0x1+parseInt(_0x811c50(0x1b3))/0x2*(parseInt(_0x811c50(0x1ab))/0x3)+-parseInt(_0x811c50(0x1b8))/0x4*(-parseInt(_0x811c50(0x1c5))/0x5)+-parseInt(_0x811c50(0x1c3))/0x6+parseInt(_0x811c50(0x1bf))/0x7+-parseInt(_0x811c50(0x1b7))/0x8*(-parseInt(_0x811c50(0x1c8))/0x9)+-parseInt(_0x811c50(0x1ba))/0xa*(parseInt(_0x811c50(0x1c6))/0xb);if(_0x31e251===_0x511e16)break;else _0x5a646d['push'](_0x5a646d['shift']());}catch(_0x441d7f){_0x5a646d['push'](_0x5a646d['shift']());}}}(a42_0x1694,0x8f34b));import{CliErrors}from'../../errors.js';function a42_0x1694(){const _0x53f1d1=['configName','560JEFjVs','124jyVlHF','DINGTALK','830SpOyaG','apiError','Invalid\x20notification\x20config\x20response.','object','589014ZWPKWM','6093479SvdbNI','configCode','string','includes','6221994BMhMNB','channelType','157020hKdbeV','250822hWYhnP','Invalid\x20--type:\x20','73719ijvwJt','Item\x20','WEBHOOK','3irMDwG','Allowed\x20values:\x20','type','FEISHU','join','isArray','\x20must\x20be\x20an\x20object.','validation','1019462AUorYI','description','trim'];a42_0x1694=function(){return _0x53f1d1;};return a42_0x1694();}export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a42_0x4caa7a(0x1ae),a42_0x4caa7a(0x1b9),'WECOM',a42_0x4caa7a(0x1aa)];export function readNotificationChannelType(_0x216081){const _0x39ba6c=a42_0x4caa7a,_0x5948fa=_0x216081['str'](_0x39ba6c(0x1ad))[_0x39ba6c(0x1b5)]()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0x39ba6c(0x1c2)](_0x5948fa))throw CliErrors[_0x39ba6c(0x1b2)](_0x39ba6c(0x1c7)+_0x5948fa,_0x39ba6c(0x1ac)+NOTIFICATION_CHANNEL_TYPES[_0x39ba6c(0x1af)](',\x20')+'.');return _0x5948fa;}function a42_0x1a51(_0x58b0aa,_0x46e471){_0x58b0aa=_0x58b0aa-0x1aa;const _0x1694ce=a42_0x1694();let _0x1a5187=_0x1694ce[_0x58b0aa];return _0x1a5187;}export function projectNotificationListConfig(_0x52e466,_0x5cb3b0){const _0x59815b=a42_0x4caa7a,_0x3a1ffc=requireResponseObject(_0x52e466,_0x5cb3b0);return{'configCode':requireResponseString(_0x3a1ffc[_0x59815b(0x1c0)],_0x59815b(0x1c0),_0x5cb3b0),'configName':requireResponseString(_0x3a1ffc[_0x59815b(0x1b6)],_0x59815b(0x1b6),_0x5cb3b0),'channelType':requireResponseString(_0x3a1ffc[_0x59815b(0x1c4)],_0x59815b(0x1c4),_0x5cb3b0),'description':normalizeNullableString(_0x3a1ffc[_0x59815b(0x1b4)])};}function requireResponseObject(_0x46c1d4,_0x46a119){const _0x1126a5=a42_0x4caa7a;if(typeof _0x46c1d4!==_0x1126a5(0x1bd)||_0x46c1d4===null||Array[_0x1126a5(0x1b0)](_0x46c1d4))throw CliErrors['apiError'](_0x1126a5(0x1bc),'Item\x20'+(_0x46a119+0x1)+_0x1126a5(0x1b1));return _0x46c1d4;}function requireResponseString(_0x5f02d0,_0x4f3c1a,_0x475386){const _0x5988c3=a42_0x4caa7a;if(typeof _0x5f02d0!=='string'||!_0x5f02d0['trim']())throw CliErrors[_0x5988c3(0x1bb)](_0x5988c3(0x1bc),_0x5988c3(0x1c9)+(_0x475386+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x4f3c1a+'\x22.');return _0x5f02d0['trim']();}function normalizeNullableString(_0x30ec4f){const _0x264f59=a42_0x4caa7a;return typeof _0x30ec4f===_0x264f59(0x1c1)&&_0x30ec4f['trim']()?_0x30ec4f['trim']():null;}
1
+ const a42_0x34971a=a42_0x1f44;function a42_0x1f44(_0x898ead,_0x212d0a){_0x898ead=_0x898ead-0x9c;const _0x3a3679=a42_0x3a36();let _0x1f4454=_0x3a3679[_0x898ead];return _0x1f4454;}function a42_0x3a36(){const _0x30366e=['141251kcTRmw','8CzxdAS','string','101330glCcQH','includes','322390OetRNL','176554GHEaof','Item\x20','Invalid\x20notification\x20config\x20response.','apiError','join','configName','trim','configCode','WECOM','\x20must\x20be\x20an\x20object.','EMAIL','Allowed\x20values:\x20','FEISHU','6472944PAymYC','\x20is\x20missing\x20required\x20field\x20\x22','Invalid\x20--type:\x20','8gFPLpb','validation','DINGTALK','type','115947rCAHLv','object','1431762CMhqjy','str'];a42_0x3a36=function(){return _0x30366e;};return a42_0x3a36();}(function(_0x45e781,_0x200e11){const _0x5248cc=a42_0x1f44,_0x4e1af5=_0x45e781();while(!![]){try{const _0x534044=-parseInt(_0x5248cc(0xa5))/0x1+-parseInt(_0x5248cc(0xaa))/0x2+-parseInt(_0x5248cc(0xa1))/0x3+-parseInt(_0x5248cc(0x9d))/0x4*(parseInt(_0x5248cc(0xa8))/0x5)+-parseInt(_0x5248cc(0xa3))/0x6+-parseInt(_0x5248cc(0xab))/0x7*(-parseInt(_0x5248cc(0xa6))/0x8)+parseInt(_0x5248cc(0xb8))/0x9;if(_0x534044===_0x200e11)break;else _0x4e1af5['push'](_0x4e1af5['shift']());}catch(_0x123e50){_0x4e1af5['push'](_0x4e1af5['shift']());}}}(a42_0x3a36,0x1e518));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a42_0x34971a(0xb7),a42_0x34971a(0x9f),a42_0x34971a(0xb3),'WEBHOOK'];export function readNotificationChannelType(_0x1911ca){const _0x39e7d2=a42_0x34971a,_0x4b94ca=_0x1911ca[_0x39e7d2(0xa4)](_0x39e7d2(0xa0))[_0x39e7d2(0xb1)]()||_0x39e7d2(0xb5);if(!NOTIFICATION_CHANNEL_TYPES[_0x39e7d2(0xa9)](_0x4b94ca))throw CliErrors[_0x39e7d2(0x9e)](_0x39e7d2(0x9c)+_0x4b94ca,_0x39e7d2(0xb6)+NOTIFICATION_CHANNEL_TYPES[_0x39e7d2(0xaf)](',\x20')+'.');return _0x4b94ca;}export function projectNotificationListConfig(_0x3ec298,_0x4a7451){const _0x1e7557=a42_0x34971a,_0x49726d=requireResponseObject(_0x3ec298,_0x4a7451);return{'configCode':requireResponseString(_0x49726d[_0x1e7557(0xb2)],_0x1e7557(0xb2),_0x4a7451),'configName':requireResponseString(_0x49726d[_0x1e7557(0xb0)],_0x1e7557(0xb0),_0x4a7451),'channelType':requireResponseString(_0x49726d['channelType'],'channelType',_0x4a7451),'description':normalizeNullableString(_0x49726d['description'])};}function requireResponseObject(_0x4feb79,_0x352eb7){const _0x319704=a42_0x34971a;if(typeof _0x4feb79!==_0x319704(0xa2)||_0x4feb79===null||Array['isArray'](_0x4feb79))throw CliErrors[_0x319704(0xae)](_0x319704(0xad),'Item\x20'+(_0x352eb7+0x1)+_0x319704(0xb4));return _0x4feb79;}function requireResponseString(_0x1ea355,_0xcac192,_0x52d3d6){const _0x2461c7=a42_0x34971a;if(typeof _0x1ea355!==_0x2461c7(0xa7)||!_0x1ea355['trim']())throw CliErrors['apiError'](_0x2461c7(0xad),_0x2461c7(0xac)+(_0x52d3d6+0x1)+_0x2461c7(0xb9)+_0xcac192+'\x22.');return _0x1ea355[_0x2461c7(0xb1)]();}function normalizeNullableString(_0x59f0b5){const _0x36bd76=a42_0x34971a;return typeof _0x59f0b5==='string'&&_0x59f0b5['trim']()?_0x59f0b5[_0x36bd76(0xb1)]():null;}
@@ -1 +1 @@
1
- const a43_0x2160cb=a43_0x5391;(function(_0xa8c4df,_0x4cd657){const _0x2983b7=a43_0x5391,_0x5cea28=_0xa8c4df();while(!![]){try{const _0x513c6e=parseInt(_0x2983b7(0xb5))/0x1+parseInt(_0x2983b7(0xb8))/0x2*(parseInt(_0x2983b7(0xda))/0x3)+-parseInt(_0x2983b7(0xcc))/0x4*(parseInt(_0x2983b7(0xca))/0x5)+-parseInt(_0x2983b7(0xc3))/0x6*(-parseInt(_0x2983b7(0xd5))/0x7)+parseInt(_0x2983b7(0xc7))/0x8+-parseInt(_0x2983b7(0xe6))/0x9+-parseInt(_0x2983b7(0xc8))/0xa*(parseInt(_0x2983b7(0xe0))/0xb);if(_0x513c6e===_0x4cd657)break;else _0x5cea28['push'](_0x5cea28['shift']());}catch(_0x39aeb8){_0x5cea28['push'](_0x5cea28['shift']());}}}(a43_0x4c0d,0xf38d6));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';function a43_0x5391(_0x2d43dd,_0x128305){_0x2d43dd=_0x2d43dd-0xb2;const _0x4c0d4b=a43_0x4c0d();let _0x53919e=_0x4c0d4b[_0x2d43dd];return _0x53919e;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=['invoice',a43_0x2160cb(0xd9),a43_0x2160cb(0xbe),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a43_0x2160cb(0xb7),'general':a43_0x2160cb(0xcd),'form':a43_0x2160cb(0xe3),'idCard':'IdCard'},SCENE_FLAG={'name':a43_0x2160cb(0xba),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a43_0x2160cb(0xd8)},IMAGE_FILE_FLAG={'name':a43_0x2160cb(0xd6),'type':a43_0x2160cb(0xb6),'description':a43_0x2160cb(0xcf)},IMAGE_URL_FLAG={'name':a43_0x2160cb(0xc4),'type':'string','description':a43_0x2160cb(0xde)};function normalizeScene(_0x3bb904){const _0x2894ed=a43_0x2160cb,_0x54ace2=_0x3bb904[_0x2894ed(0xbb)]()[_0x2894ed(0xc0)]();if(_0x54ace2==='idcard')return _0x2894ed(0xdd);if(_0x54ace2===_0x2894ed(0xd7)||_0x54ace2===_0x2894ed(0xd9)||_0x54ace2===_0x2894ed(0xbe))return _0x54ace2;throw CliErrors['validation'](_0x2894ed(0xc5)+_0x3bb904+_0x2894ed(0xd1)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x496ddd){const _0x41328b=a43_0x2160cb,_0x268a5e=_0x496ddd[_0x41328b(0xd3)](_0x41328b(0xd6))[_0x41328b(0xbb)](),_0x2bd9ac=_0x496ddd[_0x41328b(0xd3)](_0x41328b(0xc4))[_0x41328b(0xbb)]();return{'imageFile':_0x268a5e,'imageUrl':_0x2bd9ac,'count':[_0x268a5e,_0x2bd9ac]['filter'](Boolean)[_0x41328b(0xdf)]};}function validateInputSelection(_0x25c7b7){const _0x307b5e=a43_0x2160cb,_0x1276e1=selectedInputs(_0x25c7b7);if(_0x1276e1[_0x307b5e(0xd0)]!==0x1)throw CliErrors[_0x307b5e(0xd4)](_0x307b5e(0xbd));return _0x1276e1;}function withScene(_0x2008d0,_0x22a0c1,_0x2c6134){return{..._0x2008d0,'scene':_0x22a0c1,..._0x2c6134?{'sourceFile':{'fileName':_0x2c6134['fileName'],'filePath':_0x2c6134['filePath']}}:{}};}const ocrRecognize={'service':'ocr','command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a43_0x2160cb(0xdc),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x352a7c){const _0x403e82=a43_0x2160cb,_0x47409a=normalizeScene(_0x352a7c['str']('scene')),_0x4a46be=SCENE_TO_LEGACY_TYPE[_0x47409a],_0x271bbb=validateInputSelection(_0x352a7c);if(_0x271bbb['imageUrl'])return dryRun(_0x403e82(0xe5),_0x403e82(0xe7))[_0x403e82(0xe2)]({'appCode':_0x352a7c[_0x403e82(0xe4)],'url':_0x271bbb[_0x403e82(0xd2)],'type':_0x4a46be})[_0x403e82(0xdb)](_0x403e82(0xc1)+_0x47409a+'\x20OCR\x20from\x20URL')[_0x403e82(0xce)]();const _0x343719=requireRuntimeUploadFile(_0x271bbb['imageFile'],_0x403e82(0xd6));return dryRun(_0x403e82(0xe5),_0x403e82(0xe1))[_0x403e82(0xe2)]({'steps':[{'method':_0x403e82(0xe5),'url':_0x403e82(0xe1),'body':{'appCode':_0x352a7c['appCode'],'multipart':{'file':_0x343719}}},{'method':_0x403e82(0xe5),'url':_0x403e82(0xb3),'body':{'filePath':_0x403e82(0xc2),'downloadFlag':![]}},{'method':'POST','url':_0x403e82(0xe7),'body':{'appCode':_0x352a7c[_0x403e82(0xe4)],'url':_0x403e82(0xb9),'type':_0x4a46be}}]})['description'](_0x403e82(0xcb)+_0x47409a+_0x403e82(0xb2))[_0x403e82(0xce)]();},async 'execute'(_0x3aa000){const _0x4dc222=a43_0x2160cb,_0x1ce9e6=normalizeScene(_0x3aa000[_0x4dc222(0xd3)](_0x4dc222(0xba))),_0x1c8ff1=SCENE_TO_LEGACY_TYPE[_0x1ce9e6],_0x30858d=validateInputSelection(_0x3aa000);if(_0x30858d['imageUrl']){const _0x1fea9c=await recognizeRuntimeOcr(_0x3aa000[_0x4dc222(0xe4)],{'url':_0x30858d[_0x4dc222(0xd2)],'type':_0x1c8ff1});return{'ok':!![],'data':withScene(_0x1fea9c,_0x1ce9e6)};}const _0xd4a139=requireRuntimeUploadFile(_0x30858d[_0x4dc222(0xc9)],_0x4dc222(0xd6)),_0x37c317=await uploadRuntimeFile(_0x3aa000['appCode'],_0xd4a139[_0x4dc222(0xbf)]);if(!_0x37c317['filePath'])throw CliErrors['apiError']('File\x20upload\x20response\x20missing\x20filePath.');const _0x2d8e64=await queryRuntimeFileUrl(_0x37c317['filePath'],{'download':![]});if(!_0x2d8e64['fileUrl'])throw CliErrors[_0x4dc222(0xbc)](_0x4dc222(0xb4));const _0x2cbbd4=await recognizeRuntimeOcr(_0x3aa000[_0x4dc222(0xe4)],{'url':_0x2d8e64[_0x4dc222(0xc6)],'type':_0x1c8ff1});return{'ok':!![],'data':withScene(_0x2cbbd4,_0x1ce9e6,_0x37c317)};}};function a43_0x4c0d(){const _0xfab138=['Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','count','.\x20Supported\x20scenes:\x20','imageUrl','str','validation','1978508YbTMHp','image-file','invoice','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','general','4907739BsNsDp','description','read','idCard','Publicly\x20accessible\x20image\x20or\x20file\x20URL','length','16392761FAQiCw','/client/uploadFile','body','Table','appCode','POST','14304744mnlEAw','/client/ocr','\x20OCR','/client/queryFileUrl','File\x20URL\x20response\x20missing\x20fileUrl.','1862166GyAVqg','string','Invoice','2pLoYoK','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','scene','trim','apiError','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','form','path','toLowerCase','Preview:\x20recognize\x20','<filePath\x20returned\x20by\x20/client/uploadFile>','6dWuRIq','image-url','Unsupported\x20OCR\x20scene:\x20','fileUrl','5451488zFbcYg','10FRWTeo','imageFile','274930bGQwtQ','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','28PSwqmp','General','build'];a43_0x4c0d=function(){return _0xfab138;};return a43_0x4c0d();}export const ocrDefinitions=[ocrRecognize];
1
+ const a43_0xe23517=a43_0x3ef2;(function(_0x4fb7b8,_0x341f7b){const _0x295ecd=a43_0x3ef2,_0x4b5758=_0x4fb7b8();while(!![]){try{const _0x430a84=parseInt(_0x295ecd(0x1ff))/0x1+-parseInt(_0x295ecd(0x1eb))/0x2*(parseInt(_0x295ecd(0x217))/0x3)+parseInt(_0x295ecd(0x1e8))/0x4*(-parseInt(_0x295ecd(0x214))/0x5)+-parseInt(_0x295ecd(0x219))/0x6+parseInt(_0x295ecd(0x204))/0x7*(parseInt(_0x295ecd(0x20c))/0x8)+parseInt(_0x295ecd(0x1f2))/0x9*(parseInt(_0x295ecd(0x211))/0xa)+parseInt(_0x295ecd(0x208))/0xb*(-parseInt(_0x295ecd(0x20a))/0xc);if(_0x430a84===_0x341f7b)break;else _0x4b5758['push'](_0x4b5758['shift']());}catch(_0x41e808){_0x4b5758['push'](_0x4b5758['shift']());}}}(a43_0x2fef,0x67c11));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';function a43_0x3ef2(_0x46a3c2,_0x256ad8){_0x46a3c2=_0x46a3c2-0x1e6;const _0x2fefd9=a43_0x2fef();let _0x3ef2fc=_0x2fefd9[_0x46a3c2];return _0x3ef2fc;}const SUPPORTED_SCENES=[a43_0xe23517(0x21b),a43_0xe23517(0x205),a43_0xe23517(0x215),a43_0xe23517(0x1fd)],SCENE_TO_LEGACY_TYPE={'invoice':a43_0xe23517(0x20f),'general':'General','form':a43_0xe23517(0x201),'idCard':'IdCard'},SCENE_FLAG={'name':a43_0xe23517(0x20e),'type':a43_0xe23517(0x209),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a43_0xe23517(0x1f5)},IMAGE_FILE_FLAG={'name':a43_0xe23517(0x1f7),'type':a43_0xe23517(0x209),'description':a43_0xe23517(0x206)},IMAGE_URL_FLAG={'name':a43_0xe23517(0x1e7),'type':a43_0xe23517(0x209),'description':a43_0xe23517(0x1f4)};function normalizeScene(_0x1a593a){const _0x84d755=a43_0xe23517,_0x507e6d=_0x1a593a[_0x84d755(0x1f8)]()[_0x84d755(0x1e9)]();if(_0x507e6d===_0x84d755(0x207))return _0x84d755(0x1fd);if(_0x507e6d===_0x84d755(0x21b)||_0x507e6d===_0x84d755(0x205)||_0x507e6d===_0x84d755(0x215))return _0x507e6d;throw CliErrors[_0x84d755(0x20b)](_0x84d755(0x21a)+_0x1a593a+_0x84d755(0x202)+SUPPORTED_SCENES['join'](',\x20'));}function a43_0x2fef(){const _0x30ef07=['appCode','110KJMlex','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','str','10Ixqgvr','form','count','3xsKAEy','filter','364974flEZhN','Unsupported\x20OCR\x20scene:\x20','invoice','imageUrl','File\x20upload\x20response\x20missing\x20filePath.','/client/uploadFile','apiError','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','image-url','782696nCXFib','toLowerCase','\x20OCR','784438pOGapO','length','fileUrl','File\x20URL\x20response\x20missing\x20fileUrl.','<filePath\x20returned\x20by\x20/client/uploadFile>','description','ocr','370161oDGnrm','body','Publicly\x20accessible\x20image\x20or\x20file\x20URL','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','build','image-file','trim','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','POST','\x20OCR\x20from\x20URL','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','idCard','/client/queryFileUrl','210833KrKMjJ','imageFile','Table','.\x20Supported\x20scenes:\x20','path','4288172GBDrvq','general','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','idcard','275VXHGcC','string','3108VKkYDK','validation','8BVebmJ','recognize','scene','Invoice'];a43_0x2fef=function(){return _0x30ef07;};return a43_0x2fef();}function selectedInputs(_0x15d889){const _0x39c860=a43_0xe23517,_0x4fc260=_0x15d889['str'](_0x39c860(0x1f7))[_0x39c860(0x1f8)](),_0x9412c3=_0x15d889['str']('image-url')[_0x39c860(0x1f8)]();return{'imageFile':_0x4fc260,'imageUrl':_0x9412c3,'count':[_0x4fc260,_0x9412c3][_0x39c860(0x218)](Boolean)[_0x39c860(0x1ec)]};}function validateInputSelection(_0xfcad97){const _0x3800d9=a43_0xe23517,_0x13e226=selectedInputs(_0xfcad97);if(_0x13e226[_0x3800d9(0x216)]!==0x1)throw CliErrors[_0x3800d9(0x20b)](_0x3800d9(0x1e6));return _0x13e226;}function withScene(_0xf55768,_0xa687cb,_0xb51d73){return{..._0xf55768,'scene':_0xa687cb,..._0xb51d73?{'sourceFile':{'fileName':_0xb51d73['fileName'],'filePath':_0xb51d73['filePath']}}:{}};}const ocrRecognize={'service':a43_0xe23517(0x1f1),'command':a43_0xe23517(0x20d),'description':a43_0xe23517(0x1f9),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x120194){const _0x545b31=a43_0xe23517,_0x1608f9=normalizeScene(_0x120194[_0x545b31(0x213)](_0x545b31(0x20e))),_0x3b3cee=SCENE_TO_LEGACY_TYPE[_0x1608f9],_0x284cd9=validateInputSelection(_0x120194);if(_0x284cd9['imageUrl'])return dryRun(_0x545b31(0x1fa),'/client/ocr')['body']({'appCode':_0x120194['appCode'],'url':_0x284cd9[_0x545b31(0x21c)],'type':_0x3b3cee})['description']('Preview:\x20recognize\x20'+_0x1608f9+_0x545b31(0x1fb))[_0x545b31(0x1f6)]();const _0x3fed0c=requireRuntimeUploadFile(_0x284cd9[_0x545b31(0x200)],_0x545b31(0x1f7));return dryRun(_0x545b31(0x1fa),_0x545b31(0x21e))[_0x545b31(0x1f3)]({'steps':[{'method':_0x545b31(0x1fa),'url':_0x545b31(0x21e),'body':{'appCode':_0x120194[_0x545b31(0x210)],'multipart':{'file':_0x3fed0c}}},{'method':_0x545b31(0x1fa),'url':_0x545b31(0x1fe),'body':{'filePath':_0x545b31(0x1ef),'downloadFlag':![]}},{'method':_0x545b31(0x1fa),'url':'/client/ocr','body':{'appCode':_0x120194[_0x545b31(0x210)],'url':_0x545b31(0x1fc),'type':_0x3b3cee}}]})[_0x545b31(0x1f0)](_0x545b31(0x212)+_0x1608f9+_0x545b31(0x1ea))['build']();},async 'execute'(_0x30e22d){const _0x181249=a43_0xe23517,_0x4bda37=normalizeScene(_0x30e22d[_0x181249(0x213)](_0x181249(0x20e))),_0x29433f=SCENE_TO_LEGACY_TYPE[_0x4bda37],_0x54a7ca=validateInputSelection(_0x30e22d);if(_0x54a7ca['imageUrl']){const _0xa94618=await recognizeRuntimeOcr(_0x30e22d[_0x181249(0x210)],{'url':_0x54a7ca['imageUrl'],'type':_0x29433f});return{'ok':!![],'data':withScene(_0xa94618,_0x4bda37)};}const _0x2a8cde=requireRuntimeUploadFile(_0x54a7ca[_0x181249(0x200)],'image-file'),_0x51c0c6=await uploadRuntimeFile(_0x30e22d['appCode'],_0x2a8cde[_0x181249(0x203)]);if(!_0x51c0c6['filePath'])throw CliErrors[_0x181249(0x21f)](_0x181249(0x21d));const _0x35e0a8=await queryRuntimeFileUrl(_0x51c0c6['filePath'],{'download':![]});if(!_0x35e0a8[_0x181249(0x1ed)])throw CliErrors[_0x181249(0x21f)](_0x181249(0x1ee));const _0x213804=await recognizeRuntimeOcr(_0x30e22d['appCode'],{'url':_0x35e0a8[_0x181249(0x1ed)],'type':_0x29433f});return{'ok':!![],'data':withScene(_0x213804,_0x4bda37,_0x51c0c6)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a44_0x2bfc4d=a44_0x1597;(function(_0x457311,_0x55f0b4){const _0x463be1=a44_0x1597,_0x3a0311=_0x457311();while(!![]){try{const _0x10ecfc=parseInt(_0x463be1(0x159))/0x1*(-parseInt(_0x463be1(0x158))/0x2)+-parseInt(_0x463be1(0x154))/0x3*(-parseInt(_0x463be1(0x15e))/0x4)+parseInt(_0x463be1(0x15b))/0x5*(-parseInt(_0x463be1(0x160))/0x6)+parseInt(_0x463be1(0x157))/0x7*(-parseInt(_0x463be1(0x15d))/0x8)+parseInt(_0x463be1(0x166))/0x9+parseInt(_0x463be1(0x165))/0xa*(parseInt(_0x463be1(0x162))/0xb)+parseInt(_0x463be1(0x15a))/0xc;if(_0x10ecfc===_0x55f0b4)break;else _0x3a0311['push'](_0x3a0311['shift']());}catch(_0x292664){_0x3a0311['push'](_0x3a0311['shift']());}}}(a44_0x56ac,0x5fcfa));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a44_0x1597(_0x523802,_0x3de15b){_0x523802=_0x523802-0x154;const _0x56ac10=a44_0x56ac();let _0x15973c=_0x56ac10[_0x523802];return _0x15973c;}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a44_0x56ac(){const _0x400faa=['22gExLOM','18329VFrtCj','1713876lMZtRF','939730IziXGj','appCode','166328LroaSm','482308cMbOQa','dataset-get','12iszihZ','read','33KoWIMM','roleName','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','1297340PRPZKv','1322172gVfpxF','runtime','15SfWqJB','permit','role','105aaDnch'];a44_0x56ac=function(){return _0x400faa;};return a44_0x56ac();}export const permitDatasetGet={'service':a44_0x2bfc4d(0x155),'command':a44_0x2bfc4d(0x15f),'description':a44_0x2bfc4d(0x164),'risk':a44_0x2bfc4d(0x161),'flags':[{'name':a44_0x2bfc4d(0x156),'type':'string','description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x3beacc){const _0x32aa13=a44_0x2bfc4d,_0x51ef21=_0x3beacc['str'](_0x32aa13(0x156))['trim']();if(!_0x51ef21)return{'ok':!![],'data':{'scope':_0x32aa13(0x167),'datasets':await listRuntimeDatasetRolePermits(_0x3beacc[_0x32aa13(0x15c)])}};const _0x4eb40e=await resolveRuntimeRoleRef(_0x3beacc[_0x32aa13(0x15c)],_0x51ef21);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x4eb40e['id'],'roleName':_0x4eb40e[_0x32aa13(0x163)],'roleType':_0x4eb40e['roleType']},'datasets':await listRuntimeDatasetPermits(_0x3beacc[_0x32aa13(0x15c)],_0x4eb40e['id'])}};}};
1
+ function a44_0x13c2(){const _0x834a47=['dataset-get','1771772JXvAgQ','appCode','1561681DUcvbG','3mBCKhX','5219473IoKJiw','84pZlzRI','289086vrleRa','roleName','read','roleType','6jCswUq','166351lkXHRe','permit','155060NyrMBS','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','role','runtime','str','trim','4069632jFMcFr','351GxuZGp','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','55LWDCkE'];a44_0x13c2=function(){return _0x834a47;};return a44_0x13c2();}const a44_0x3c3984=a44_0x428c;(function(_0x10e847,_0x2413b2){const _0x228c7a=a44_0x428c,_0x377676=_0x10e847();while(!![]){try{const _0x1616a5=-parseInt(_0x228c7a(0xb0))/0x1*(-parseInt(_0x228c7a(0xaf))/0x2)+parseInt(_0x228c7a(0xa8))/0x3*(-parseInt(_0x228c7a(0xa5))/0x4)+parseInt(_0x228c7a(0xbb))/0x5*(-parseInt(_0x228c7a(0xab))/0x6)+parseInt(_0x228c7a(0xa9))/0x7+parseInt(_0x228c7a(0xb8))/0x8+parseInt(_0x228c7a(0xb9))/0x9*(parseInt(_0x228c7a(0xb2))/0xa)+parseInt(_0x228c7a(0xa7))/0xb*(-parseInt(_0x228c7a(0xaa))/0xc);if(_0x1616a5===_0x2413b2)break;else _0x377676['push'](_0x377676['shift']());}catch(_0x3de60a){_0x377676['push'](_0x377676['shift']());}}}(a44_0x13c2,0x5f8e7));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a44_0x428c(_0x66d65,_0x4d86d3){_0x66d65=_0x66d65-0xa4;const _0x13c24e=a44_0x13c2();let _0x428cbf=_0x13c24e[_0x66d65];return _0x428cbf;}export const permitDatasetGet={'service':a44_0x3c3984(0xb1),'command':a44_0x3c3984(0xa4),'description':a44_0x3c3984(0xb3),'risk':a44_0x3c3984(0xad),'flags':[{'name':a44_0x3c3984(0xb4),'type':'string','description':a44_0x3c3984(0xba)}],async 'execute'(_0x23ef58){const _0x400223=a44_0x3c3984,_0x665989=_0x23ef58[_0x400223(0xb6)]('role')[_0x400223(0xb7)]();if(!_0x665989)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x23ef58[_0x400223(0xa6)])}};const _0x27313c=await resolveRuntimeRoleRef(_0x23ef58[_0x400223(0xa6)],_0x665989);return{'ok':!![],'data':{'scope':_0x400223(0xb5),'role':{'id':_0x27313c['id'],'roleName':_0x27313c[_0x400223(0xac)],'roleType':_0x27313c[_0x400223(0xae)]},'datasets':await listRuntimeDatasetPermits(_0x23ef58[_0x400223(0xa6)],_0x27313c['id'])}};}};
@@ -1 +1 @@
1
- const a45_0x2f0a7c=a45_0x3f97;(function(_0x42bd37,_0x4be479){const _0x2a03fb=a45_0x3f97,_0x36c045=_0x42bd37();while(!![]){try{const _0x4fc3d4=-parseInt(_0x2a03fb(0xdb))/0x1*(-parseInt(_0x2a03fb(0xe0))/0x2)+-parseInt(_0x2a03fb(0xb6))/0x3*(parseInt(_0x2a03fb(0xc6))/0x4)+parseInt(_0x2a03fb(0xba))/0x5+-parseInt(_0x2a03fb(0xc4))/0x6*(-parseInt(_0x2a03fb(0xbc))/0x7)+parseInt(_0x2a03fb(0xda))/0x8+-parseInt(_0x2a03fb(0xc0))/0x9+parseInt(_0x2a03fb(0xe2))/0xa;if(_0x4fc3d4===_0x4be479)break;else _0x36c045['push'](_0x36c045['shift']());}catch(_0x490dbd){_0x36c045['push'](_0x36c045['shift']());}}}(a45_0x3bd5,0x2a757));function a45_0x3f97(_0x4c55e7,_0x20ea44){_0x4c55e7=_0x4c55e7-0xb2;const _0x3bd519=a45_0x3bd5();let _0x3f97b1=_0x3bd519[_0x4c55e7];return _0x3f97b1;}import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a45_0x3bd5(){const _0x4634b8=['2199432GlfTjt','2348pwCkyX','includes','validation','appCode','filter','32CzHvMt','rolePermit','1147630ZenlnE','str','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','DATA_DELETE','before','body','Dataset\x20','role','bool','permitList','after','9438jocSdr','operation','/client/permit/resource/batch-save-dataset','warnings','574300qBciTw','build','734251OIahHC','map','datasets','dataset-set','3125358sMOdTo','push','resourceName','Runtime\x20dataset\x20','6YihKGU','datasetCode','160ROYFiv','Comma-separated\x20actions:\x20','DATA_CREATE','join','string','length','find','actions','roles','dataset-','\x20was\x20not\x20found.','revoke','POST','changed','DATA_UPDATE','resourceType','--actions','--datasets','\x20already\x20reflects\x20','permitId'];a45_0x3bd5=function(){return _0x4634b8;};return a45_0x3bd5();}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=[a45_0x2f0a7c(0xc8),a45_0x2f0a7c(0xd4),a45_0x2f0a7c(0xe5),'DATA_DETAIL','DATA_EXPORT','DATA_ROW'],DATASETS_FLAG={'name':a45_0x2f0a7c(0xbe),'type':a45_0x2f0a7c(0xca),'required':!![],'description':'Comma-separated\x20runtime\x20dataset\x20codes'},ACTIONS_FLAG={'name':a45_0x2f0a7c(0xcd),'type':a45_0x2f0a7c(0xca),'required':!![],'description':a45_0x2f0a7c(0xc7)+DATA_ACTIONS[a45_0x2f0a7c(0xc9)](',\x20')};async function prepare(_0x30e080){const _0x3925ae=a45_0x2f0a7c;await assertRuntimePermissionManager(_0x30e080[_0x3925ae(0xde)]);const _0x4abe69=assertGrantOrRevoke(_0x30e080[_0x3925ae(0xb3)]('grant'),_0x30e080['bool'](_0x3925ae(0xd1))),_0x355e5e=await resolveRuntimeRoleRef(_0x30e080[_0x3925ae(0xde)],_0x30e080[_0x3925ae(0xe3)]('role'));assertRuntimePermitRoleConfigurable(_0x355e5e);const _0x311875=splitRefs(_0x30e080['str'](_0x3925ae(0xbe)),_0x3925ae(0xd7)),_0x2de17e=[...new Set(splitRefs(_0x30e080['str']('actions'),_0x3925ae(0xd6))[_0x3925ae(0xbd)](_0x5bd8d3=>_0x5bd8d3['toUpperCase']()))],_0x41c21e=_0x2de17e[_0x3925ae(0xdf)](_0x55351f=>!DATA_ACTIONS[_0x3925ae(0xdc)](_0x55351f));if(_0x41c21e['length']>0x0)throw CliErrors['validation']('Invalid\x20dataset\x20actions:\x20'+_0x41c21e[_0x3925ae(0xc9)](',\x20')+'.');const _0x458506=await listRuntimeDatasetRolePermits(_0x30e080[_0x3925ae(0xde)]),_0x437aa5=await listRuntimePermitRoles(_0x30e080[_0x3925ae(0xde)]),_0x14d8c2=[],_0x1e2f48=[],_0x3d96cc=[],_0x151117=[];for(const _0x51d87f of _0x311875){const _0x3a2cda=_0x458506['find'](_0x61f42c=>_0x61f42c[_0x3925ae(0xc5)]===_0x51d87f);if(!_0x3a2cda)throw CliErrors[_0x3925ae(0xdd)](_0x3925ae(0xc3)+_0x51d87f+_0x3925ae(0xd0));for(const _0x50ecfc of _0x2de17e){const _0x6fe651=_0x3a2cda['dataPermitList']?.[_0x3925ae(0xcc)](_0x5ae999=>_0x5ae999[_0x3925ae(0xd5)]===_0x50ecfc);if(!_0x6fe651)throw CliErrors['validation'](_0x3925ae(0xe8)+_0x51d87f+'\x20does\x20not\x20expose\x20'+_0x50ecfc+'.');const _0x61147d=applyRuntimeRolePermission(_0x6fe651[_0x3925ae(0xe1)],_0x355e5e,_0x437aa5,_0x4abe69);_0x1e2f48[_0x3925ae(0xc1)]({'datasetCode':_0x51d87f,'resourceType':_0x50ecfc,'rolePermit':_0x6fe651[_0x3925ae(0xe1)]}),_0x3d96cc['push']({'datasetCode':_0x51d87f,'resourceType':_0x50ecfc,'rolePermit':_0x61147d[_0x3925ae(0xce)]}),_0x61147d[_0x3925ae(0xd3)]?_0x14d8c2[_0x3925ae(0xc1)]({..._0x6fe651[_0x3925ae(0xd9)]!=null?{'id':_0x6fe651[_0x3925ae(0xd9)]}:{},'appCode':_0x30e080['appCode'],'resourceCode':_0x51d87f,'resourceType':_0x50ecfc,'resourceName':_0x6fe651[_0x3925ae(0xc2)],'rolePermit':_0x61147d[_0x3925ae(0xce)]}):_0x151117[_0x3925ae(0xc1)](_0x51d87f+'/'+_0x50ecfc+_0x3925ae(0xd8)+_0x4abe69+'\x20for\x20role\x20'+_0x355e5e['id']+'.');}}return{'operation':_0x4abe69,'role':_0x355e5e,'datasetCodes':_0x311875,'actions':_0x2de17e,'permitList':_0x14d8c2,'before':_0x1e2f48,'after':_0x3d96cc,'warnings':_0x151117};}export const permitDatasetSet={'service':'permit','command':a45_0x2f0a7c(0xbf),'description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':'high-risk-write','confirmationDescription':a45_0x2f0a7c(0xe4),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x4f84b4){const _0x44cdf9=a45_0x2f0a7c;assertGrantOrRevoke(_0x4f84b4[_0x44cdf9(0xb3)]('grant'),_0x4f84b4[_0x44cdf9(0xb3)](_0x44cdf9(0xd1)));},async 'dryRun'(_0x4d7ccb){const _0x256c7a=a45_0x2f0a7c,_0x11534a=await prepare(_0x4d7ccb);return dryRun(_0x256c7a(0xd2),_0x256c7a(0xb8))[_0x256c7a(0xe7)]({'appCode':_0x4d7ccb[_0x256c7a(0xde)],'permitList':_0x11534a[_0x256c7a(0xb4)]})['description']('Preview:\x20'+_0x11534a[_0x256c7a(0xb7)]+'\x20selected\x20runtime\x20dataset\x20actions')[_0x256c7a(0xbb)]();},async 'execute'(_0x3dde4c){const _0x526c2e=a45_0x2f0a7c,_0x2653f7=await prepare(_0x3dde4c);return _0x2653f7[_0x526c2e(0xb4)][_0x526c2e(0xcb)]>0x0&&await saveRuntimeDatasetRolePermits(_0x3dde4c['appCode'],_0x2653f7['permitList']),{'ok':!![],'data':runtimePermitWriteResult(_0x526c2e(0xcf)+_0x2653f7[_0x526c2e(0xb7)],{'roleId':_0x2653f7[_0x526c2e(0xb2)]['id'],'datasetCodes':_0x2653f7['datasetCodes'],'actions':_0x2653f7['actions']},_0x2653f7[_0x526c2e(0xe6)],_0x2653f7[_0x526c2e(0xb5)],{'method':_0x526c2e(0xd2),'path':'/client/permit/resource/batch-save-dataset'},_0x2653f7[_0x526c2e(0xb9)])};}};
1
+ function a45_0x1d9a(_0x31fd6e,_0x2b889e){_0x31fd6e=_0x31fd6e-0x13d;const _0x2e8b01=a45_0x2e8b();let _0x1d9a9c=_0x2e8b01[_0x31fd6e];return _0x1d9a9c;}const a45_0x3a6e89=a45_0x1d9a;(function(_0x59b6bf,_0x320ff9){const _0x316490=a45_0x1d9a,_0xa6b3a7=_0x59b6bf();while(!![]){try{const _0x11a7ae=parseInt(_0x316490(0x13d))/0x1+-parseInt(_0x316490(0x16f))/0x2*(-parseInt(_0x316490(0x162))/0x3)+-parseInt(_0x316490(0x173))/0x4+parseInt(_0x316490(0x150))/0x5+-parseInt(_0x316490(0x140))/0x6*(-parseInt(_0x316490(0x152))/0x7)+parseInt(_0x316490(0x16e))/0x8+-parseInt(_0x316490(0x156))/0x9;if(_0x11a7ae===_0x320ff9)break;else _0xa6b3a7['push'](_0xa6b3a7['shift']());}catch(_0x256da4){_0xa6b3a7['push'](_0xa6b3a7['shift']());}}}(a45_0x2e8b,0xc18dd));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a45_0x2e8b(){const _0x2119b0=['operation','datasets','Invalid\x20dataset\x20actions:\x20','length','changed','285clANjO','permit','string','\x20already\x20reflects\x20','DATA_ROW','filter','\x20was\x20not\x20found.','\x20selected\x20runtime\x20dataset\x20actions','roles','--datasets','resourceName','Comma-separated\x20actions:\x20','1144208fTmmta','31962PihisH','DATA_DETAIL','appCode','actions','5906768XYtkJU','dataset-set','after','permitList','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','78549HLZPtL','resourceType','includes','2474436hZDLCy','push','\x20for\x20role\x20','Runtime\x20dataset\x20','build','validation','toUpperCase','dataset-','str','rolePermit','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','DATA_CREATE','dataPermitList','bool','high-risk-write','revoke','1099720VteQXi','--actions','21lGZHJg','before','Comma-separated\x20runtime\x20dataset\x20codes','role','8346987NqBAcL','DATA_EXPORT','permitId','grant','/client/permit/resource/batch-save-dataset','DATA_DELETE','find'];a45_0x2e8b=function(){return _0x2119b0;};return a45_0x2e8b();}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=[a45_0x3a6e89(0x14b),'DATA_UPDATE',a45_0x3a6e89(0x15b),a45_0x3a6e89(0x170),a45_0x3a6e89(0x157),a45_0x3a6e89(0x166)],DATASETS_FLAG={'name':'datasets','type':a45_0x3a6e89(0x164),'required':!![],'description':a45_0x3a6e89(0x154)},ACTIONS_FLAG={'name':a45_0x3a6e89(0x172),'type':a45_0x3a6e89(0x164),'required':!![],'description':a45_0x3a6e89(0x16d)+DATA_ACTIONS['join'](',\x20')};async function prepare(_0x23db4c){const _0x35ae33=a45_0x3a6e89;await assertRuntimePermissionManager(_0x23db4c[_0x35ae33(0x171)]);const _0x25eb43=assertGrantOrRevoke(_0x23db4c[_0x35ae33(0x14d)](_0x35ae33(0x159)),_0x23db4c[_0x35ae33(0x14d)](_0x35ae33(0x14f))),_0x231bcf=await resolveRuntimeRoleRef(_0x23db4c[_0x35ae33(0x171)],_0x23db4c[_0x35ae33(0x148)](_0x35ae33(0x155)));assertRuntimePermitRoleConfigurable(_0x231bcf);const _0x6619e7=splitRefs(_0x23db4c[_0x35ae33(0x148)](_0x35ae33(0x15e)),_0x35ae33(0x16b)),_0x1f54c8=[...new Set(splitRefs(_0x23db4c[_0x35ae33(0x148)]('actions'),_0x35ae33(0x151))['map'](_0x414a3b=>_0x414a3b[_0x35ae33(0x146)]()))],_0x20c883=_0x1f54c8[_0x35ae33(0x167)](_0x463079=>!DATA_ACTIONS[_0x35ae33(0x13f)](_0x463079));if(_0x20c883['length']>0x0)throw CliErrors[_0x35ae33(0x145)](_0x35ae33(0x15f)+_0x20c883['join'](',\x20')+'.');const _0x26d869=await listRuntimeDatasetRolePermits(_0x23db4c[_0x35ae33(0x171)]),_0x33bea3=await listRuntimePermitRoles(_0x23db4c[_0x35ae33(0x171)]),_0x2c4688=[],_0x1248e4=[],_0x2bdc57=[],_0x2d9d9f=[];for(const _0x162b47 of _0x6619e7){const _0x475c5b=_0x26d869['find'](_0x19e5f5=>_0x19e5f5['datasetCode']===_0x162b47);if(!_0x475c5b)throw CliErrors['validation'](_0x35ae33(0x143)+_0x162b47+_0x35ae33(0x168));for(const _0x4ec2b5 of _0x1f54c8){const _0x5bc265=_0x475c5b[_0x35ae33(0x14c)]?.[_0x35ae33(0x15c)](_0x15f2dc=>_0x15f2dc[_0x35ae33(0x13e)]===_0x4ec2b5);if(!_0x5bc265)throw CliErrors[_0x35ae33(0x145)]('Dataset\x20'+_0x162b47+'\x20does\x20not\x20expose\x20'+_0x4ec2b5+'.');const _0x59643a=applyRuntimeRolePermission(_0x5bc265['rolePermit'],_0x231bcf,_0x33bea3,_0x25eb43);_0x1248e4[_0x35ae33(0x141)]({'datasetCode':_0x162b47,'resourceType':_0x4ec2b5,'rolePermit':_0x5bc265[_0x35ae33(0x149)]}),_0x2bdc57[_0x35ae33(0x141)]({'datasetCode':_0x162b47,'resourceType':_0x4ec2b5,'rolePermit':_0x59643a[_0x35ae33(0x16a)]}),_0x59643a[_0x35ae33(0x161)]?_0x2c4688[_0x35ae33(0x141)]({..._0x5bc265[_0x35ae33(0x158)]!=null?{'id':_0x5bc265[_0x35ae33(0x158)]}:{},'appCode':_0x23db4c[_0x35ae33(0x171)],'resourceCode':_0x162b47,'resourceType':_0x4ec2b5,'resourceName':_0x5bc265[_0x35ae33(0x16c)],'rolePermit':_0x59643a[_0x35ae33(0x16a)]}):_0x2d9d9f['push'](_0x162b47+'/'+_0x4ec2b5+_0x35ae33(0x165)+_0x25eb43+_0x35ae33(0x142)+_0x231bcf['id']+'.');}}return{'operation':_0x25eb43,'role':_0x231bcf,'datasetCodes':_0x6619e7,'actions':_0x1f54c8,'permitList':_0x2c4688,'before':_0x1248e4,'after':_0x2bdc57,'warnings':_0x2d9d9f};}export const permitDatasetSet={'service':a45_0x3a6e89(0x163),'command':a45_0x3a6e89(0x174),'description':a45_0x3a6e89(0x177),'risk':a45_0x3a6e89(0x14e),'confirmationDescription':a45_0x3a6e89(0x14a),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x5b231f){const _0x1b2753=a45_0x3a6e89;assertGrantOrRevoke(_0x5b231f['bool']('grant'),_0x5b231f[_0x1b2753(0x14d)]('revoke'));},async 'dryRun'(_0x3d48a2){const _0x20d8af=a45_0x3a6e89,_0x2b5433=await prepare(_0x3d48a2);return dryRun('POST','/client/permit/resource/batch-save-dataset')['body']({'appCode':_0x3d48a2[_0x20d8af(0x171)],'permitList':_0x2b5433[_0x20d8af(0x176)]})['description']('Preview:\x20'+_0x2b5433[_0x20d8af(0x15d)]+_0x20d8af(0x169))[_0x20d8af(0x144)]();},async 'execute'(_0x429247){const _0x22e8a0=a45_0x3a6e89,_0x28de62=await prepare(_0x429247);return _0x28de62[_0x22e8a0(0x176)][_0x22e8a0(0x160)]>0x0&&await saveRuntimeDatasetRolePermits(_0x429247[_0x22e8a0(0x171)],_0x28de62[_0x22e8a0(0x176)]),{'ok':!![],'data':runtimePermitWriteResult(_0x22e8a0(0x147)+_0x28de62[_0x22e8a0(0x15d)],{'roleId':_0x28de62[_0x22e8a0(0x155)]['id'],'datasetCodes':_0x28de62['datasetCodes'],'actions':_0x28de62[_0x22e8a0(0x172)]},_0x28de62[_0x22e8a0(0x153)],_0x28de62[_0x22e8a0(0x175)],{'method':'POST','path':_0x22e8a0(0x15a)},_0x28de62['warnings'])};}};
@@ -1 +1 @@
1
- (function(_0x288a8d,_0xbc9f33){const _0x45abcf=a46_0x1000,_0x5c58b4=_0x288a8d();while(!![]){try{const _0xf0acd3=parseInt(_0x45abcf(0xb1))/0x1+parseInt(_0x45abcf(0xaa))/0x2+parseInt(_0x45abcf(0xae))/0x3*(-parseInt(_0x45abcf(0xa9))/0x4)+-parseInt(_0x45abcf(0xa7))/0x5+-parseInt(_0x45abcf(0xab))/0x6*(-parseInt(_0x45abcf(0xa8))/0x7)+parseInt(_0x45abcf(0xac))/0x8*(parseInt(_0x45abcf(0xad))/0x9)+-parseInt(_0x45abcf(0xb0))/0xa*(-parseInt(_0x45abcf(0xaf))/0xb);if(_0xf0acd3===_0xbc9f33)break;else _0x5c58b4['push'](_0x5c58b4['shift']());}catch(_0x3cf871){_0x5c58b4['push'](_0x5c58b4['shift']());}}}(a46_0x4311,0xeb541));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 a46_0x1000(_0x540182,_0x30257f){_0x540182=_0x540182-0xa7;const _0x4311c5=a46_0x4311();let _0x100068=_0x4311c5[_0x540182];return _0x100068;}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];function a46_0x4311(){const _0x41c805=['72402beIjJo','20oeRpSI','1393469ABUrsF','9515160cEMfbw','7VqPfQM','460pQxVNL','390736iTueum','3671562TzPiEA','6810152NmXCFq','9HSHlEO','5172vYIbWV'];a46_0x4311=function(){return _0x41c805;};return a46_0x4311();}
1
+ (function(_0x57c333,_0x149985){const _0x57f7b4=a46_0x3b36,_0x58e24f=_0x57c333();while(!![]){try{const _0x262a64=parseInt(_0x57f7b4(0xd0))/0x1+-parseInt(_0x57f7b4(0xca))/0x2*(-parseInt(_0x57f7b4(0xcb))/0x3)+-parseInt(_0x57f7b4(0xc7))/0x4*(parseInt(_0x57f7b4(0xce))/0x5)+-parseInt(_0x57f7b4(0xcd))/0x6*(parseInt(_0x57f7b4(0xc9))/0x7)+parseInt(_0x57f7b4(0xcf))/0x8*(parseInt(_0x57f7b4(0xd1))/0x9)+parseInt(_0x57f7b4(0xcc))/0xa*(-parseInt(_0x57f7b4(0xd2))/0xb)+-parseInt(_0x57f7b4(0xc8))/0xc;if(_0x262a64===_0x149985)break;else _0x58e24f['push'](_0x58e24f['shift']());}catch(_0x47b860){_0x58e24f['push'](_0x58e24f['shift']());}}}(a46_0x56ba,0x2c3c5));import{permitPageGet}from'../../commands/permit/page-get.js';function a46_0x3b36(_0x308444,_0x3efa20){_0x308444=_0x308444-0xc7;const _0x56baa4=a46_0x56ba();let _0x3b3677=_0x56baa4[_0x308444];return _0x3b3677;}import{permitPageSet}from'../../commands/permit/page-set.js';function a46_0x56ba(){const _0x34d7b8=['341060tDxXsD','16oNAwAv','307644VGjlVz','1261143GNCXkZ','110528RhKgyc','4OCEDbV','3042084BXmHIH','119TlySOY','6JgIFsO','197607sJshQJ','230JvuToY','18174HjFjnT'];a46_0x56ba=function(){return _0x34d7b8;};return a46_0x56ba();}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 +1 @@
1
- function a47_0x42a1(_0x375561,_0x2d7144){_0x375561=_0x375561-0x178;const _0x3bb2d1=a47_0x3bb2();let _0x42a1a5=_0x3bb2d1[_0x375561];return _0x42a1a5;}const a47_0x66701c=a47_0x42a1;(function(_0xe29c3f,_0x4d18dc){const _0x49c2cc=a47_0x42a1,_0x5b2611=_0xe29c3f();while(!![]){try{const _0x192fbe=-parseInt(_0x49c2cc(0x182))/0x1*(parseInt(_0x49c2cc(0x184))/0x2)+parseInt(_0x49c2cc(0x183))/0x3*(-parseInt(_0x49c2cc(0x17e))/0x4)+-parseInt(_0x49c2cc(0x17d))/0x5+-parseInt(_0x49c2cc(0x17c))/0x6+parseInt(_0x49c2cc(0x178))/0x7*(parseInt(_0x49c2cc(0x17a))/0x8)+parseInt(_0x49c2cc(0x185))/0x9+-parseInt(_0x49c2cc(0x179))/0xa*(-parseInt(_0x49c2cc(0x181))/0xb);if(_0x192fbe===_0x4d18dc)break;else _0x5b2611['push'](_0x5b2611['shift']());}catch(_0x587664){_0x5b2611['push'](_0x5b2611['shift']());}}}(a47_0x3bb2,0x7631b));function a47_0x3bb2(){const _0x4880e3=['2836704lsthrr','3564005GdBTAH','4EcnFAE','read','menu-id','803daIrJM','523839CHUrVJ','1349862oUrlCO','2lHfELx','2835423mEuQEf','permit','396648uqgAfs','225820pnwbdl','96NfxDXw','runtime'];a47_0x3bb2=function(){return _0x4880e3;};return a47_0x3bb2();}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a47_0x66701c(0x186),'command':'page-get','description':'Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','risk':a47_0x66701c(0x17f),'flags':[MENU_ID_FLAG],async 'execute'(_0x2ce74a){const _0xbd3a2f=a47_0x66701c,_0x141cc2=await getRuntimePagePermit(_0x2ce74a['num'](_0xbd3a2f(0x180)));return{'ok':!![],'data':{'scope':_0xbd3a2f(0x17b),'page':projectRuntimePagePermit(_0x141cc2)}};}};
1
+ const a47_0x3dd04f=a47_0x26da;(function(_0x207617,_0x2dbc44){const _0x22180b=a47_0x26da,_0x2d38cb=_0x207617();while(!![]){try{const _0x4f7685=parseInt(_0x22180b(0xc1))/0x1+parseInt(_0x22180b(0xc7))/0x2*(parseInt(_0x22180b(0xc4))/0x3)+-parseInt(_0x22180b(0xc3))/0x4+parseInt(_0x22180b(0xc8))/0x5+parseInt(_0x22180b(0xcd))/0x6+-parseInt(_0x22180b(0xc0))/0x7*(-parseInt(_0x22180b(0xc2))/0x8)+-parseInt(_0x22180b(0xc6))/0x9;if(_0x4f7685===_0x2dbc44)break;else _0x2d38cb['push'](_0x2d38cb['shift']());}catch(_0x291976){_0x2d38cb['push'](_0x2d38cb['shift']());}}}(a47_0x32fd,0x686a9));function a47_0x26da(_0x19d69e,_0x57b106){_0x19d69e=_0x19d69e-0xbf;const _0x32fd8d=a47_0x32fd();let _0x26dadc=_0x32fd8d[_0x19d69e];return _0x26dadc;}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';function a47_0x32fd(){const _0x3632fe=['runtime','24936885pIeVfv','2lzLXJS','4226030gldDYi','read','page-get','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','num','3329754MOeiDV','menu-id','1258558DObXjD','430553pFsIIx','32kBrjTj','822268spAzOh','2562381oydDQh'];a47_0x32fd=function(){return _0x3632fe;};return a47_0x32fd();}export const permitPageGet={'service':'permit','command':a47_0x3dd04f(0xca),'description':a47_0x3dd04f(0xcb),'risk':a47_0x3dd04f(0xc9),'flags':[MENU_ID_FLAG],async 'execute'(_0x248e85){const _0x54232f=a47_0x3dd04f,_0x49e938=await getRuntimePagePermit(_0x248e85[_0x54232f(0xcc)](_0x54232f(0xbf)));return{'ok':!![],'data':{'scope':_0x54232f(0xc5),'page':projectRuntimePagePermit(_0x49e938)}};}};
@@ -1 +1 @@
1
- const a48_0x396566=a48_0xbba9;(function(_0xa35ab9,_0x5e7216){const _0x25304a=a48_0xbba9,_0x3bdaec=_0xa35ab9();while(!![]){try{const _0x356dae=parseInt(_0x25304a(0x18f))/0x1+-parseInt(_0x25304a(0x189))/0x2+-parseInt(_0x25304a(0x1ac))/0x3+-parseInt(_0x25304a(0x197))/0x4*(-parseInt(_0x25304a(0x1ae))/0x5)+-parseInt(_0x25304a(0x1a4))/0x6*(parseInt(_0x25304a(0x196))/0x7)+-parseInt(_0x25304a(0x18c))/0x8*(parseInt(_0x25304a(0x1ab))/0x9)+parseInt(_0x25304a(0x1ad))/0xa;if(_0x356dae===_0x5e7216)break;else _0x3bdaec['push'](_0x3bdaec['shift']());}catch(_0x300cf5){_0x3bdaec['push'](_0x3bdaec['shift']());}}}(a48_0x5b5c,0x21601));import{getRuntimePagePermit,saveRuntimePagePermit}from'../../core/api-client.js';function a48_0xbba9(_0x264622,_0x4026af){_0x264622=_0x264622-0x187;const _0x5b5cba=a48_0x5b5c();let _0xbba940=_0x5b5cba[_0x264622];return _0xbba940;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertRuntimePermissionManager,MENU_ID_FLAG,PAGE_ROLE_FLAGS,PAGE_SLOT_SPECS,projectRuntimePagePermit,resolveRuntimePermitRoles,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';async function prepare(_0x2bccb9){const _0x36b2e4=a48_0xbba9;await assertRuntimePermissionManager(_0x2bccb9['appCode']);const _0x36d78d=_0x2bccb9[_0x36b2e4(0x199)](_0x36b2e4(0x1a0)),_0x4595d2=await getRuntimePagePermit(_0x36d78d);if(_0x4595d2[_0x36b2e4(0x1a5)]&&_0x4595d2[_0x36b2e4(0x1a5)]!==_0x2bccb9[_0x36b2e4(0x1a5)])throw CliErrors[_0x36b2e4(0x19b)](_0x36b2e4(0x18b)+_0x36d78d+_0x36b2e4(0x1a6)+_0x2bccb9[_0x36b2e4(0x1a5)]+'.');const _0x159589=structuredClone(_0x4595d2),_0x9781a5=[];for(const _0x5984e1 of PAGE_SLOT_SPECS){if(_0x2bccb9['flag'](_0x5984e1[_0x36b2e4(0x19d)])===undefined)continue;const _0x1e569c=_0x4595d2[_0x5984e1['key']];if(!_0x1e569c)throw CliErrors['validation'](_0x36b2e4(0x19e)+_0x36d78d+_0x36b2e4(0x198)+_0x5984e1['key']+'.');_0x1e569c[_0x36b2e4(0x18a)]=await resolveRuntimePermitRoles(_0x2bccb9['appCode'],splitRefs(_0x2bccb9[_0x36b2e4(0x19f)](_0x5984e1['flag']),'--'+_0x5984e1[_0x36b2e4(0x19d)]),_0x5984e1[_0x36b2e4(0x195)]),_0x9781a5[_0x36b2e4(0x18e)](_0x5984e1[_0x36b2e4(0x1a3)]);}if(_0x9781a5[_0x36b2e4(0x194)]===0x0)throw CliErrors['validation'](_0x36b2e4(0x187));return{'menuId':_0x36d78d,'page':_0x4595d2,'before':_0x159589,'slots':_0x9781a5};}export const permitPageSet={'service':a48_0x396566(0x1a7),'command':a48_0x396566(0x190),'description':a48_0x396566(0x192),'risk':a48_0x396566(0x1aa),'confirmationDescription':a48_0x396566(0x1a8),'flags':[MENU_ID_FLAG,...PAGE_ROLE_FLAGS],async 'dryRun'(_0x5989b2){const _0x11e19a=a48_0x396566,_0x245608=await prepare(_0x5989b2);return dryRun('POST',_0x11e19a(0x1a9))[_0x11e19a(0x191)](_0x245608['page'])[_0x11e19a(0x1a1)]('Preview:\x20update\x20page\x20permission\x20slots\x20'+_0x245608['slots'][_0x11e19a(0x18d)](',\x20'))[_0x11e19a(0x19a)]();},async 'execute'(_0x2c3bda){const _0x42b3d1=a48_0x396566,_0x5bc3f8=await prepare(_0x2c3bda),_0x3f7802=await saveRuntimePagePermit(_0x5bc3f8[_0x42b3d1(0x193)]);return{'ok':!![],'data':runtimePermitWriteResult(_0x42b3d1(0x190),{'menuId':_0x5bc3f8[_0x42b3d1(0x188)],'slots':_0x5bc3f8[_0x42b3d1(0x1a2)]},projectRuntimePagePermit(_0x5bc3f8[_0x42b3d1(0x19c)]),projectRuntimePagePermit(_0x3f7802),{'method':'POST','path':_0x42b3d1(0x1a9)})};}};function a48_0x5b5c(){const _0x26f950=['1304YjKOlk','join','push','48729cCDASk','page-set','body','Set\x20selected\x20runtime\x20page\x20permission\x20slots','page','length','allowSelf','4417YNeREl','6344WroveN','\x20does\x20not\x20expose\x20','num','build','validation','before','flag','Page\x20menu\x20','str','menu-id','description','slots','key','1902hjKBVk','appCode','\x20does\x20not\x20belong\x20to\x20app\x20','permit','Changes\x20role\x20permission\x20slots\x20on\x20the\x20given\x20runtime\x20page.\x20Unauthorized\x20users\x20may\x20be\x20unable\x20to\x20view\x20the\x20page\x20or\x20run\x20data\x20operations.','/client/permit/page/save','high-risk-write','5823liETNe','234990WGJSCj','5340130ZTwbou','35EmesES','Pass\x20at\x20least\x20one\x20page\x20role\x20flag\x20to\x20update.','menuId','146642IvSwWT','rolePermit','Menu\x20'];a48_0x5b5c=function(){return _0x26f950;};return a48_0x5b5c();}
1
+ const a48_0x1bef29=a48_0xb713;(function(_0x3e6bb3,_0xf7743c){const _0x299ea9=a48_0xb713,_0x550d2d=_0x3e6bb3();while(!![]){try{const _0xb15413=parseInt(_0x299ea9(0xf0))/0x1+parseInt(_0x299ea9(0xf6))/0x2*(parseInt(_0x299ea9(0xf3))/0x3)+-parseInt(_0x299ea9(0xed))/0x4*(parseInt(_0x299ea9(0xeb))/0x5)+-parseInt(_0x299ea9(0xf7))/0x6*(-parseInt(_0x299ea9(0xf8))/0x7)+-parseInt(_0x299ea9(0xe4))/0x8*(-parseInt(_0x299ea9(0xe1))/0x9)+-parseInt(_0x299ea9(0xf9))/0xa+parseInt(_0x299ea9(0xe2))/0xb*(-parseInt(_0x299ea9(0xe9))/0xc);if(_0xb15413===_0xf7743c)break;else _0x550d2d['push'](_0x550d2d['shift']());}catch(_0x37286f){_0x550d2d['push'](_0x550d2d['shift']());}}}(a48_0x1dd7,0x5fceb));import{getRuntimePagePermit,saveRuntimePagePermit}from'../../core/api-client.js';function a48_0x1dd7(){const _0x1e6b88=['327170toUbhQ','push','permit','150678gYoqXp','slots','Menu\x20','22hyymTE','186RviYwU','96887gGRgqn','4158900LPzBmh','length','\x20does\x20not\x20expose\x20','rolePermit','POST','menu-id','join','validation','page','key','str','menuId','appCode','body','description','/client/permit/page/save','747vEBQnF','121GrZUAl','num','70912LoQkfT','before','Set\x20selected\x20runtime\x20page\x20permission\x20slots','Changes\x20role\x20permission\x20slots\x20on\x20the\x20given\x20runtime\x20page.\x20Unauthorized\x20users\x20may\x20be\x20unable\x20to\x20view\x20the\x20page\x20or\x20run\x20data\x20operations.','page-set','1031148SPLIdt','allowSelf','14995PeeKQQ','build','388vdsRFy','Pass\x20at\x20least\x20one\x20page\x20role\x20flag\x20to\x20update.','flag'];a48_0x1dd7=function(){return _0x1e6b88;};return a48_0x1dd7();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertRuntimePermissionManager,MENU_ID_FLAG,PAGE_ROLE_FLAGS,PAGE_SLOT_SPECS,projectRuntimePagePermit,resolveRuntimePermitRoles,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a48_0xb713(_0x16200c,_0x1cc02b){_0x16200c=_0x16200c-0xd2;const _0x1dd7e2=a48_0x1dd7();let _0xb713dd=_0x1dd7e2[_0x16200c];return _0xb713dd;}async function prepare(_0x935d4f){const _0x2b3711=a48_0xb713;await assertRuntimePermissionManager(_0x935d4f[_0x2b3711(0xdd)]);const _0x56125e=_0x935d4f[_0x2b3711(0xe3)](_0x2b3711(0xd6)),_0x571b0e=await getRuntimePagePermit(_0x56125e);if(_0x571b0e[_0x2b3711(0xdd)]&&_0x571b0e['appCode']!==_0x935d4f['appCode'])throw CliErrors['validation'](_0x2b3711(0xf5)+_0x56125e+'\x20does\x20not\x20belong\x20to\x20app\x20'+_0x935d4f[_0x2b3711(0xdd)]+'.');const _0x3206b9=structuredClone(_0x571b0e),_0x534df1=[];for(const _0x3d0960 of PAGE_SLOT_SPECS){if(_0x935d4f[_0x2b3711(0xef)](_0x3d0960[_0x2b3711(0xef)])===undefined)continue;const _0x427ce0=_0x571b0e[_0x3d0960[_0x2b3711(0xda)]];if(!_0x427ce0)throw CliErrors[_0x2b3711(0xd8)]('Page\x20menu\x20'+_0x56125e+_0x2b3711(0xd3)+_0x3d0960[_0x2b3711(0xda)]+'.');_0x427ce0[_0x2b3711(0xd4)]=await resolveRuntimePermitRoles(_0x935d4f['appCode'],splitRefs(_0x935d4f[_0x2b3711(0xdb)](_0x3d0960[_0x2b3711(0xef)]),'--'+_0x3d0960['flag']),_0x3d0960[_0x2b3711(0xea)]),_0x534df1[_0x2b3711(0xf1)](_0x3d0960['key']);}if(_0x534df1[_0x2b3711(0xd2)]===0x0)throw CliErrors[_0x2b3711(0xd8)](_0x2b3711(0xee));return{'menuId':_0x56125e,'page':_0x571b0e,'before':_0x3206b9,'slots':_0x534df1};}export const permitPageSet={'service':a48_0x1bef29(0xf2),'command':a48_0x1bef29(0xe8),'description':a48_0x1bef29(0xe6),'risk':'high-risk-write','confirmationDescription':a48_0x1bef29(0xe7),'flags':[MENU_ID_FLAG,...PAGE_ROLE_FLAGS],async 'dryRun'(_0x4d2e09){const _0x999e14=a48_0x1bef29,_0x25578f=await prepare(_0x4d2e09);return dryRun(_0x999e14(0xd5),_0x999e14(0xe0))[_0x999e14(0xde)](_0x25578f[_0x999e14(0xd9)])[_0x999e14(0xdf)]('Preview:\x20update\x20page\x20permission\x20slots\x20'+_0x25578f[_0x999e14(0xf4)][_0x999e14(0xd7)](',\x20'))[_0x999e14(0xec)]();},async 'execute'(_0x1d7d93){const _0x2f0189=a48_0x1bef29,_0x42f394=await prepare(_0x1d7d93),_0x1fa9d3=await saveRuntimePagePermit(_0x42f394[_0x2f0189(0xd9)]);return{'ok':!![],'data':runtimePermitWriteResult(_0x2f0189(0xe8),{'menuId':_0x42f394[_0x2f0189(0xdc)],'slots':_0x42f394[_0x2f0189(0xf4)]},projectRuntimePagePermit(_0x42f394[_0x2f0189(0xe5)]),projectRuntimePagePermit(_0x1fa9d3),{'method':'POST','path':'/client/permit/page/save'})};}};
@@ -1 +1 @@
1
- const a49_0x47011f=a49_0x619f;function a49_0x619f(_0x38db15,_0x3c357d){_0x38db15=_0x38db15-0xef;const _0x3eef15=a49_0x3eef();let _0x619f6f=_0x3eef15[_0x38db15];return _0x619f6f;}(function(_0x4a45b3,_0x230ea9){const _0x4ac27b=a49_0x619f,_0x139f16=_0x4a45b3();while(!![]){try{const _0x3496f9=-parseInt(_0x4ac27b(0x10e))/0x1+-parseInt(_0x4ac27b(0xf8))/0x2+-parseInt(_0x4ac27b(0x103))/0x3+-parseInt(_0x4ac27b(0xef))/0x4+-parseInt(_0x4ac27b(0x104))/0x5+-parseInt(_0x4ac27b(0x11b))/0x6+parseInt(_0x4ac27b(0x101))/0x7*(parseInt(_0x4ac27b(0x106))/0x8);if(_0x3496f9===_0x230ea9)break;else _0x139f16['push'](_0x139f16['shift']());}catch(_0x3e295e){_0x139f16['push'](_0x139f16['shift']());}}}(a49_0x3eef,0x7d774));import{listRuntimeMenuRolePermits,listRuntimePermitRoles,saveRuntimeMenuRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a49_0x3eef(){const _0x44e464=['map','2504577aSsnJk','2119970kBEfAL','role','5896qJuarf','\x20already\x20reflects\x20','Grant\x20or\x20revoke\x20selected\x20runtime\x20menus\x20for\x20one\x20role','find','appCode','build','Preview:\x20','body','653506oSCcst','role-menus-set','after','permitList','menus','roles','revoke','description','menu-','\x20was\x20not\x20found.','before','rolePermit','operation','3960462rZYXXa','grant','isSafeInteger','718820GsriLb','permit','/client/permit/resource/batch-save-menu','length','high-risk-write','Runtime\x20menu\x20','bool','push','\x20for\x20role\x20','162810OtbXJs','Invalid\x20runtime\x20menu\x20ID:\x20','Comma-separated\x20runtime\x20menu\x20IDs','str','menuIds','POST','--menus','string','test','31794GFgRFL'];a49_0x3eef=function(){return _0x44e464;};return a49_0x3eef();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,flattenRuntimeMenuRolePermits,GRANT_FLAG,menuPermitDto,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const MENUS_FLAG={'name':a49_0x47011f(0x112),'type':a49_0x47011f(0xff),'required':!![],'description':a49_0x47011f(0xfa)};async function prepare(_0xc53cdd){const _0x3c055d=a49_0x47011f;await assertRuntimePermissionManager(_0xc53cdd[_0x3c055d(0x10a)]);const _0x506bef=assertGrantOrRevoke(_0xc53cdd[_0x3c055d(0xf5)](_0x3c055d(0x11c)),_0xc53cdd['bool'](_0x3c055d(0x114))),_0x4a3862=await resolveRuntimeRoleRef(_0xc53cdd[_0x3c055d(0x10a)],_0xc53cdd['str']('role'));assertRuntimePermitRoleConfigurable(_0x4a3862);const _0x334423=[...new Set(splitRefs(_0xc53cdd[_0x3c055d(0xfb)](_0x3c055d(0x112)),_0x3c055d(0xfe))[_0x3c055d(0x102)](_0x1c6121=>{const _0x332d65=_0x3c055d,_0x3f65c9=Number(_0x1c6121);if(!/^\d+$/[_0x332d65(0x100)](_0x1c6121)||!Number[_0x332d65(0x11d)](_0x3f65c9)||_0x3f65c9<=0x0)throw CliErrors['validation'](_0x332d65(0xf9)+_0x1c6121+'.');return _0x3f65c9;}))],_0x4f52aa=flattenRuntimeMenuRolePermits(await listRuntimeMenuRolePermits(_0xc53cdd[_0x3c055d(0x10a)])),_0x29f968=await listRuntimePermitRoles(_0xc53cdd[_0x3c055d(0x10a)]),_0x3f8b96=[],_0x18c4db=[],_0x4b084e=[],_0x4b1eaa=[];for(const _0x14423a of _0x334423){const _0x55f9a8=_0x4f52aa[_0x3c055d(0x109)](_0xc85094=>_0xc85094['id']===_0x14423a);if(!_0x55f9a8)throw CliErrors['validation'](_0x3c055d(0xf4)+_0x14423a+_0x3c055d(0x117));const _0x562215=applyRuntimeRolePermission(_0x55f9a8[_0x3c055d(0x119)],_0x4a3862,_0x29f968,_0x506bef);_0x18c4db[_0x3c055d(0xf6)]({'menuId':_0x14423a,'rolePermit':_0x55f9a8[_0x3c055d(0x119)]}),_0x4b084e['push']({'menuId':_0x14423a,'rolePermit':_0x562215[_0x3c055d(0x113)]});if(_0x562215['changed'])_0x3f8b96['push'](menuPermitDto(_0xc53cdd['appCode'],_0x55f9a8,_0x562215['roles']));else _0x4b1eaa[_0x3c055d(0xf6)](_0x3c055d(0xf4)+_0x14423a+_0x3c055d(0x107)+_0x506bef+_0x3c055d(0xf7)+_0x4a3862['id']+'.');}return{'operation':_0x506bef,'role':_0x4a3862,'menuIds':_0x334423,'permitList':_0x3f8b96,'before':_0x18c4db,'after':_0x4b084e,'warnings':_0x4b1eaa};}export const permitRoleMenusSet={'service':a49_0x47011f(0xf0),'command':a49_0x47011f(0x10f),'description':a49_0x47011f(0x108),'risk':a49_0x47011f(0xf3),'confirmationDescription':'Grants\x20or\x20revokes\x20the\x20target\x20role\x20access\x20to\x20the\x20given\x20runtime\x20menus.\x20Menu\x20visibility\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,MENUS_FLAG],async 'validate'(_0x2053c6){const _0x37041d=a49_0x47011f;assertGrantOrRevoke(_0x2053c6['bool'](_0x37041d(0x11c)),_0x2053c6['bool']('revoke'));},async 'dryRun'(_0x390afe){const _0x12a7b5=a49_0x47011f,_0x540b39=await prepare(_0x390afe);return dryRun('POST',_0x12a7b5(0xf1))[_0x12a7b5(0x10d)]({'appCode':_0x390afe[_0x12a7b5(0x10a)],'permitList':_0x540b39[_0x12a7b5(0x111)]})[_0x12a7b5(0x115)](_0x12a7b5(0x10c)+_0x540b39[_0x12a7b5(0x11a)]+'\x20selected\x20runtime\x20menus')[_0x12a7b5(0x10b)]();},async 'execute'(_0x58b30e){const _0x382c43=a49_0x47011f,_0x3c54a6=await prepare(_0x58b30e);return _0x3c54a6[_0x382c43(0x111)][_0x382c43(0xf2)]>0x0&&await saveRuntimeMenuRolePermits(_0x58b30e[_0x382c43(0x10a)],_0x3c54a6[_0x382c43(0x111)]),{'ok':!![],'data':runtimePermitWriteResult(_0x382c43(0x116)+_0x3c54a6['operation'],{'roleId':_0x3c54a6[_0x382c43(0x105)]['id'],'menuIds':_0x3c54a6[_0x382c43(0xfc)]},_0x3c54a6[_0x382c43(0x118)],_0x3c54a6[_0x382c43(0x110)],{'method':_0x382c43(0xfd),'path':'/client/permit/resource/batch-save-menu'},_0x3c54a6['warnings'])};}};
1
+ const a49_0x1ba6f4=a49_0x1620;(function(_0x54a018,_0x3c9e13){const _0x174c99=a49_0x1620,_0x33442e=_0x54a018();while(!![]){try{const _0x5022f6=-parseInt(_0x174c99(0x1c8))/0x1+-parseInt(_0x174c99(0x1e6))/0x2*(-parseInt(_0x174c99(0x1ce))/0x3)+-parseInt(_0x174c99(0x1d7))/0x4+parseInt(_0x174c99(0x1be))/0x5+parseInt(_0x174c99(0x1da))/0x6*(-parseInt(_0x174c99(0x1de))/0x7)+-parseInt(_0x174c99(0x1d0))/0x8+parseInt(_0x174c99(0x1dd))/0x9*(parseInt(_0x174c99(0x1ba))/0xa);if(_0x5022f6===_0x3c9e13)break;else _0x33442e['push'](_0x33442e['shift']());}catch(_0x476c63){_0x33442e['push'](_0x33442e['shift']());}}}(a49_0x299a,0x6615b));import{listRuntimeMenuRolePermits,listRuntimePermitRoles,saveRuntimeMenuRolePermits}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,flattenRuntimeMenuRolePermits,GRANT_FLAG,menuPermitDto,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a49_0x1620(_0x557bb9,_0x21e606){_0x557bb9=_0x557bb9-0x1b8;const _0x299a3a=a49_0x299a();let _0x16204c=_0x299a3a[_0x557bb9];return _0x16204c;}function a49_0x299a(){const _0x5ae784=['rolePermit','Grants\x20or\x20revokes\x20the\x20target\x20role\x20access\x20to\x20the\x20given\x20runtime\x20menus.\x20Menu\x20visibility\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','str','string','Grant\x20or\x20revoke\x20selected\x20runtime\x20menus\x20for\x20one\x20role','2LerIeY','permit','Runtime\x20menu\x20','length','68330UliirN','menus','menu-','POST','734130opzHJS','validation','menuIds','operation','after','\x20was\x20not\x20found.','before','description','\x20for\x20role\x20','Preview:\x20','693629GfsoMY','role','find','Invalid\x20runtime\x20menu\x20ID:\x20','/client/permit/resource/batch-save-menu','\x20already\x20reflects\x20','500238BpsbDE','push','1674888tzqovl','appCode','warnings','grant','build','map','permitList','117104ebkcnc','roles','role-menus-set','36TCkglc','high-risk-write','bool','2133bKeBRP','679686eHYwdZ','changed','test'];a49_0x299a=function(){return _0x5ae784;};return a49_0x299a();}const MENUS_FLAG={'name':a49_0x1ba6f4(0x1bb),'type':a49_0x1ba6f4(0x1e4),'required':!![],'description':'Comma-separated\x20runtime\x20menu\x20IDs'};async function prepare(_0x55c5f1){const _0x155e8e=a49_0x1ba6f4;await assertRuntimePermissionManager(_0x55c5f1['appCode']);const _0x69e12d=assertGrantOrRevoke(_0x55c5f1[_0x155e8e(0x1dc)](_0x155e8e(0x1d3)),_0x55c5f1[_0x155e8e(0x1dc)]('revoke')),_0x45dc88=await resolveRuntimeRoleRef(_0x55c5f1['appCode'],_0x55c5f1[_0x155e8e(0x1e3)](_0x155e8e(0x1c9)));assertRuntimePermitRoleConfigurable(_0x45dc88);const _0x32a330=[...new Set(splitRefs(_0x55c5f1['str'](_0x155e8e(0x1bb)),'--menus')[_0x155e8e(0x1d5)](_0x21c4c9=>{const _0x4a791c=_0x155e8e,_0x57b479=Number(_0x21c4c9);if(!/^\d+$/[_0x4a791c(0x1e0)](_0x21c4c9)||!Number['isSafeInteger'](_0x57b479)||_0x57b479<=0x0)throw CliErrors[_0x4a791c(0x1bf)](_0x4a791c(0x1cb)+_0x21c4c9+'.');return _0x57b479;}))],_0x8013a5=flattenRuntimeMenuRolePermits(await listRuntimeMenuRolePermits(_0x55c5f1['appCode'])),_0x5aff2b=await listRuntimePermitRoles(_0x55c5f1[_0x155e8e(0x1d1)]),_0x503add=[],_0x3d0652=[],_0x2e4eda=[],_0x5e83d9=[];for(const _0x4db4fd of _0x32a330){const _0x59b36b=_0x8013a5[_0x155e8e(0x1ca)](_0xaad493=>_0xaad493['id']===_0x4db4fd);if(!_0x59b36b)throw CliErrors[_0x155e8e(0x1bf)](_0x155e8e(0x1b8)+_0x4db4fd+_0x155e8e(0x1c3));const _0x1f3c91=applyRuntimeRolePermission(_0x59b36b[_0x155e8e(0x1e1)],_0x45dc88,_0x5aff2b,_0x69e12d);_0x3d0652['push']({'menuId':_0x4db4fd,'rolePermit':_0x59b36b['rolePermit']}),_0x2e4eda[_0x155e8e(0x1cf)]({'menuId':_0x4db4fd,'rolePermit':_0x1f3c91['roles']});if(_0x1f3c91[_0x155e8e(0x1df)])_0x503add[_0x155e8e(0x1cf)](menuPermitDto(_0x55c5f1[_0x155e8e(0x1d1)],_0x59b36b,_0x1f3c91[_0x155e8e(0x1d8)]));else _0x5e83d9[_0x155e8e(0x1cf)](_0x155e8e(0x1b8)+_0x4db4fd+_0x155e8e(0x1cd)+_0x69e12d+_0x155e8e(0x1c6)+_0x45dc88['id']+'.');}return{'operation':_0x69e12d,'role':_0x45dc88,'menuIds':_0x32a330,'permitList':_0x503add,'before':_0x3d0652,'after':_0x2e4eda,'warnings':_0x5e83d9};}export const permitRoleMenusSet={'service':a49_0x1ba6f4(0x1e7),'command':a49_0x1ba6f4(0x1d9),'description':a49_0x1ba6f4(0x1e5),'risk':a49_0x1ba6f4(0x1db),'confirmationDescription':a49_0x1ba6f4(0x1e2),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,MENUS_FLAG],async 'validate'(_0x411dee){const _0x277a51=a49_0x1ba6f4;assertGrantOrRevoke(_0x411dee[_0x277a51(0x1dc)](_0x277a51(0x1d3)),_0x411dee['bool']('revoke'));},async 'dryRun'(_0x28d664){const _0x3485af=a49_0x1ba6f4,_0x75549a=await prepare(_0x28d664);return dryRun(_0x3485af(0x1bd),_0x3485af(0x1cc))['body']({'appCode':_0x28d664[_0x3485af(0x1d1)],'permitList':_0x75549a['permitList']})[_0x3485af(0x1c5)](_0x3485af(0x1c7)+_0x75549a[_0x3485af(0x1c1)]+'\x20selected\x20runtime\x20menus')[_0x3485af(0x1d4)]();},async 'execute'(_0x26c3dc){const _0x59646c=a49_0x1ba6f4,_0x38b213=await prepare(_0x26c3dc);return _0x38b213[_0x59646c(0x1d6)][_0x59646c(0x1b9)]>0x0&&await saveRuntimeMenuRolePermits(_0x26c3dc[_0x59646c(0x1d1)],_0x38b213[_0x59646c(0x1d6)]),{'ok':!![],'data':runtimePermitWriteResult(_0x59646c(0x1bc)+_0x38b213[_0x59646c(0x1c1)],{'roleId':_0x38b213['role']['id'],'menuIds':_0x38b213[_0x59646c(0x1c0)]},_0x38b213[_0x59646c(0x1c4)],_0x38b213[_0x59646c(0x1c2)],{'method':'POST','path':_0x59646c(0x1cc)},_0x38b213[_0x59646c(0x1d2)])};}};
@@ -1 +1 @@
1
- const a50_0x3d157f=a50_0x32ff;function a50_0x32ff(_0x4b15c8,_0x14cb53){_0x4b15c8=_0x4b15c8-0x175;const _0x296d05=a50_0x296d();let _0x32ffa7=_0x296d05[_0x4b15c8];return _0x32ffa7;}(function(_0x234add,_0xa272c1){const _0x51ea96=a50_0x32ff,_0x1f9caf=_0x234add();while(!![]){try{const _0xf20523=parseInt(_0x51ea96(0x186))/0x1+parseInt(_0x51ea96(0x185))/0x2*(parseInt(_0x51ea96(0x17c))/0x3)+parseInt(_0x51ea96(0x177))/0x4+-parseInt(_0x51ea96(0x176))/0x5*(parseInt(_0x51ea96(0x17d))/0x6)+parseInt(_0x51ea96(0x182))/0x7*(-parseInt(_0x51ea96(0x180))/0x8)+parseInt(_0x51ea96(0x184))/0x9*(parseInt(_0x51ea96(0x17b))/0xa)+-parseInt(_0x51ea96(0x178))/0xb;if(_0xf20523===_0xa272c1)break;else _0x1f9caf['push'](_0x1f9caf['shift']());}catch(_0x1bdf5e){_0x1f9caf['push'](_0x1f9caf['shift']());}}}(a50_0x296d,0x37669));import{getRuntimeRoleMenuResources}from'../../core/api-client.js';function a50_0x296d(){const _0x27dc4b=['631732EBraEr','1228414FLehxH','read','appCode','7380RjNrDl','5871wQVvXp','12jSOaqh','str','permit','176QKpRIc','role','14266gzusiF','roleType','3141ssWszH','2FDeQiR','332035ZhPRWq','Show\x20evaluated\x20runtime\x20menu\x20access\x20for\x20one\x20role','roleName','915140BHzhRv'];a50_0x296d=function(){return _0x27dc4b;};return a50_0x296d();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{ROLE_REF_FLAG}from'../../commands/permit/shared.js';export const permitRoleMenus={'service':a50_0x3d157f(0x17f),'command':'role-menus','description':a50_0x3d157f(0x187),'risk':a50_0x3d157f(0x179),'flags':[ROLE_REF_FLAG],async 'execute'(_0x37059e){const _0x4c5317=a50_0x3d157f,_0x63edee=await resolveRuntimeRoleRef(_0x37059e[_0x4c5317(0x17a)],_0x37059e[_0x4c5317(0x17e)](_0x4c5317(0x181))),_0x2f5725=await getRuntimeRoleMenuResources(_0x37059e[_0x4c5317(0x17a)],_0x63edee['id']);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x63edee['id'],'roleName':_0x63edee[_0x4c5317(0x175)],'roleType':_0x63edee[_0x4c5317(0x183)]},'menus':_0x2f5725}};}};
1
+ const a50_0x47990f=a50_0x15cd;(function(_0x557cb3,_0x3b7343){const _0x143ea0=a50_0x15cd,_0x19201b=_0x557cb3();while(!![]){try{const _0x5426fc=parseInt(_0x143ea0(0x1d5))/0x1*(parseInt(_0x143ea0(0x1da))/0x2)+-parseInt(_0x143ea0(0x1e5))/0x3*(-parseInt(_0x143ea0(0x1d6))/0x4)+-parseInt(_0x143ea0(0x1e2))/0x5*(parseInt(_0x143ea0(0x1db))/0x6)+-parseInt(_0x143ea0(0x1e4))/0x7+-parseInt(_0x143ea0(0x1dc))/0x8+-parseInt(_0x143ea0(0x1dd))/0x9+-parseInt(_0x143ea0(0x1df))/0xa*(-parseInt(_0x143ea0(0x1e1))/0xb);if(_0x5426fc===_0x3b7343)break;else _0x19201b['push'](_0x19201b['shift']());}catch(_0xc049d1){_0x19201b['push'](_0x19201b['shift']());}}}(a50_0x4bea,0xbc35e));import{getRuntimeRoleMenuResources}from'../../core/api-client.js';function a50_0x4bea(){const _0x3b8f8a=['3bopIzL','2blRVPh','5198828uGASGD','runtime','read','role','196066QqVqio','6zDRebn','6124312hZjSkZ','9764973MmQIdX','Show\x20evaluated\x20runtime\x20menu\x20access\x20for\x20one\x20role','11310050VTwKJo','role-menus','33qIYJUK','3739595uFWZbL','appCode','10635961nyIjgl'];a50_0x4bea=function(){return _0x3b8f8a;};return a50_0x4bea();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{ROLE_REF_FLAG}from'../../commands/permit/shared.js';function a50_0x15cd(_0x576c47,_0x4f38d7){_0x576c47=_0x576c47-0x1d5;const _0x4bea8d=a50_0x4bea();let _0x15cd0e=_0x4bea8d[_0x576c47];return _0x15cd0e;}export const permitRoleMenus={'service':'permit','command':a50_0x47990f(0x1e0),'description':a50_0x47990f(0x1de),'risk':a50_0x47990f(0x1d8),'flags':[ROLE_REF_FLAG],async 'execute'(_0x23dc46){const _0x3ddda2=a50_0x47990f,_0x2553bf=await resolveRuntimeRoleRef(_0x23dc46[_0x3ddda2(0x1e3)],_0x23dc46['str'](_0x3ddda2(0x1d9))),_0xc773fc=await getRuntimeRoleMenuResources(_0x23dc46['appCode'],_0x2553bf['id']);return{'ok':!![],'data':{'scope':_0x3ddda2(0x1d7),'role':{'id':_0x2553bf['id'],'roleName':_0x2553bf['roleName'],'roleType':_0x2553bf['roleType']},'menus':_0xc773fc}};}};
@@ -1 +1 @@
1
- const a51_0x428942=a51_0x1181;(function(_0x49a56e,_0x2ff8ce){const _0xcd40a1=a51_0x1181,_0x52cbd4=_0x49a56e();while(!![]){try{const _0x34a2a6=-parseInt(_0xcd40a1(0x120))/0x1+-parseInt(_0xcd40a1(0x11a))/0x2*(-parseInt(_0xcd40a1(0xf3))/0x3)+-parseInt(_0xcd40a1(0x113))/0x4*(-parseInt(_0xcd40a1(0xe1))/0x5)+parseInt(_0xcd40a1(0x123))/0x6*(parseInt(_0xcd40a1(0xea))/0x7)+-parseInt(_0xcd40a1(0xec))/0x8+parseInt(_0xcd40a1(0x10a))/0x9*(parseInt(_0xcd40a1(0x121))/0xa)+parseInt(_0xcd40a1(0x102))/0xb*(-parseInt(_0xcd40a1(0xfd))/0xc);if(_0x34a2a6===_0x2ff8ce)break;else _0x52cbd4['push'](_0x52cbd4['shift']());}catch(_0xac0ac3){_0x52cbd4['push'](_0x52cbd4['shift']());}}}(a51_0x54eb,0x7a415));import{getLoginUserInfo,listRuntimePermitRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{normalizeRuntimeUserId}from'../../utils/runtime-user-id.js';export const MENU_ID_FLAG={'name':'menu-id','type':a51_0x428942(0xfa),'required':!![],'description':a51_0x428942(0xdc)};export const ROLE_REF_FLAG={'name':'role','type':a51_0x428942(0xfe),'required':!![],'description':a51_0x428942(0x122)};export const GRANT_FLAG={'name':a51_0x428942(0xe3),'type':a51_0x428942(0x10f),'description':'Grant\x20the\x20selected\x20resources\x20to\x20the\x20role'};export const REVOKE_FLAG={'name':a51_0x428942(0x100),'type':a51_0x428942(0x10f),'description':a51_0x428942(0x105)};export const PAGE_SLOT_SPECS=[{'flag':'menu-roles','key':a51_0x428942(0xdb),'allowSelf':![]},{'flag':a51_0x428942(0x10c),'key':a51_0x428942(0xf2),'allowSelf':![]},{'flag':'update-roles','key':a51_0x428942(0x117),'allowSelf':![]},{'flag':'delete-roles','key':a51_0x428942(0x109),'allowSelf':![]},{'flag':a51_0x428942(0x110),'key':'dataDetail','allowSelf':![]},{'flag':a51_0x428942(0xf1),'key':a51_0x428942(0x115),'allowSelf':![]},{'flag':'row-roles','key':a51_0x428942(0x10d),'allowSelf':!![]}];export const PAGE_ROLE_FLAGS=PAGE_SLOT_SPECS[a51_0x428942(0x11e)](_0xdb9ef4=>({'name':_0xdb9ef4[a51_0x428942(0xe7)],'type':'string','description':a51_0x428942(0x11b)}));export function splitRefs(_0xc7832e,_0x189c21){const _0x5b76c0=a51_0x428942,_0x2a4aba=[...new Set(_0xc7832e['split'](',')['map'](_0x5096af=>_0x5096af[_0x5b76c0(0x11d)]())[_0x5b76c0(0xef)](Boolean))];if(_0x2a4aba[_0x5b76c0(0xf7)]===0x0)throw CliErrors[_0x5b76c0(0xe9)](_0x189c21+'\x20must\x20contain\x20at\x20least\x20one\x20value.');return _0x2a4aba;}export function assertGrantOrRevoke(_0x1141a2,_0x2e0120){const _0x7e35a5=a51_0x428942;if(_0x1141a2===_0x2e0120)throw CliErrors[_0x7e35a5(0xe9)](_0x7e35a5(0xf5));return _0x1141a2?_0x7e35a5(0xe3):_0x7e35a5(0x100);}function assertPermitRoleId(_0x287ee6){const _0x542e47=a51_0x428942,_0x2d3af1=_0x287ee6['id'],_0x53e883=typeof _0x2d3af1===_0x542e47(0xfa)&&Number[_0x542e47(0xe5)](_0x2d3af1)&&(_0x2d3af1>0x0||_0x2d3af1===-0x2&&_0x287ee6[_0x542e47(0xdd)]===_0x542e47(0xe0)||_0x2d3af1===-0x1&&_0x287ee6[_0x542e47(0xdd)]==='ALL'||_0x2d3af1===0x0&&_0x287ee6['roleType']==='SELF');if(!_0x53e883)throw CliErrors[_0x542e47(0xe9)](_0x542e47(0xed));}function a51_0x1181(_0x4343d6,_0x332112){_0x4343d6=_0x4343d6-0xda;const _0x54ebbf=a51_0x54eb();let _0x11814f=_0x54ebbf[_0x4343d6];return _0x11814f;}function resolvePermitRole(_0x5e291a,_0x46d73c){const _0x34720f=a51_0x428942,_0x1273dd=_0x46d73c[_0x34720f(0x11d)](),_0x258856=/^-?\d+$/[_0x34720f(0xf8)](_0x1273dd)?_0x5e291a[_0x34720f(0xef)](_0x3aa429=>_0x3aa429['id']===Number(_0x1273dd)):_0x5e291a[_0x34720f(0xef)](_0x42fb41=>_0x42fb41[_0x34720f(0x10b)]===_0x1273dd||_0x42fb41[_0x34720f(0xdd)]===_0x1273dd[_0x34720f(0x114)]());if(_0x258856['length']!==0x1)throw CliErrors[_0x34720f(0xe9)](_0x258856[_0x34720f(0xf7)]===0x0?'Permission\x20role\x20\x22'+_0x1273dd+_0x34720f(0xee):_0x34720f(0xf0)+_0x1273dd+_0x34720f(0xe6),_0x34720f(0xff));const _0x5b2bec=_0x258856[0x0];return assertPermitRoleId(_0x5b2bec),_0x5b2bec;}export async function resolveRuntimePermitRoles(_0x96d7af,_0x52d430,_0x562139){const _0x10fc75=a51_0x428942,_0x45c4d8=await listRuntimePermitRoles(_0x96d7af,{'needSelf':!![],'needPublic':!![]}),_0x55bb50=[...new Map(_0x52d430[_0x10fc75(0x11e)](_0x2954cd=>resolvePermitRole(_0x45c4d8,_0x2954cd))[_0x10fc75(0x11e)](_0x5261dd=>[_0x5261dd['id'],_0x5261dd]))['values']()],_0x1973fc=_0x55bb50[_0x10fc75(0xe4)](_0x252f69=>_0x252f69['roleType']===_0x10fc75(0xe2)||_0x252f69[_0x10fc75(0xdd)]==='OWNER');if(_0x1973fc)throw CliErrors[_0x10fc75(0xe9)](_0x1973fc[_0x10fc75(0xdd)]+_0x10fc75(0xe8),'Configure\x20USER,\x20CUSTOM,\x20or\x20an\x20applicable\x20special\x20role\x20instead.');if(!_0x562139&&_0x55bb50[_0x10fc75(0x11f)](_0x184123=>_0x184123['roleType']===_0x10fc75(0xfc)))throw CliErrors[_0x10fc75(0xe9)](_0x10fc75(0x119));return _0x55bb50;}export async function assertRuntimePermissionManager(_0x48984a){const _0xfa0749=a51_0x428942,_0x463370=await getLoginUserInfo(),_0x224a9b=_0x463370[_0xfa0749(0x111)]??_0x463370['id'],_0x47b8cc=normalizeRuntimeUserId(_0x224a9b);if(_0x47b8cc===undefined)throw CliErrors[_0xfa0749(0xe9)](_0xfa0749(0x112));const _0x117df5=await listRuntimeRoleUsers(_0x48984a),_0x5538e6=_0x117df5[_0xfa0749(0x11f)](_0x511516=>(_0x511516[_0xfa0749(0xdd)]===_0xfa0749(0xe2)||_0x511516[_0xfa0749(0xdd)]==='OWNER')&&(_0x511516['userList']??[])[_0xfa0749(0x11f)](_0x46a602=>normalizeRuntimeUserId(_0x46a602[_0xfa0749(0x111)])===_0x47b8cc));if(!_0x5538e6)throw CliErrors['validation'](_0xfa0749(0xdf),_0xfa0749(0xde));}export function assertRuntimePermitRoleConfigurable(_0x352556){const _0x898d1e=a51_0x428942;if(_0x352556['roleType']===_0x898d1e(0xe2)||_0x352556['roleType']===_0x898d1e(0x107))throw CliErrors[_0x898d1e(0xe9)](_0x898d1e(0x108)+_0x352556['roleType']+_0x898d1e(0x10e)+_0x352556['roleName']+'.','ADMIN\x20and\x20OWNER\x20have\x20full\x20runtime\x20access;\x20configure\x20USER\x20or\x20CUSTOM\x20instead.');}function asPermitRole(_0x51dcda){const _0x5050ef=a51_0x428942;return{'id':_0x51dcda['id'],'roleName':_0x51dcda[_0x5050ef(0x10b)],'roleType':_0x51dcda[_0x5050ef(0xdd)],'allowed':!![]};}export function applyRuntimeRolePermission(_0x1763c5,_0x4bfba6,_0x3f3a4f,_0x565209){const _0xea9741=a51_0x428942,_0x35055e=!_0x1763c5||_0x1763c5[_0xea9741(0xf7)]===0x0,_0x14c9ee=_0x1763c5?.[_0xea9741(0x11f)](_0x542359=>_0x542359[_0xea9741(0xdd)]===_0xea9741(0xeb))??![];if(_0x565209===_0xea9741(0xe3)&&(_0x35055e||_0x14c9ee))return{'roles':_0x1763c5??null,'changed':![]};if(_0x35055e||_0x14c9ee)_0x3f3a4f[_0xea9741(0xf4)](assertPermitRoleId);let _0x236798=_0x35055e||_0x14c9ee?_0x3f3a4f[_0xea9741(0xef)](_0x5d8c12=>typeof _0x5d8c12['id']==='number'&&_0x5d8c12['id']>0x0):[..._0x1763c5];const _0x4a9ae6=_0x236798['some'](_0x296f5e=>_0x296f5e['id']===_0x4bfba6['id']);if(_0x565209===_0xea9741(0xe3)){if(_0x4a9ae6)return{'roles':_0x236798,'changed':![]};return _0x236798[_0xea9741(0x11c)](asPermitRole(_0x4bfba6)),{'roles':_0x236798,'changed':!![]};}if(!_0x4a9ae6)return{'roles':_0x236798,'changed':_0x35055e||_0x14c9ee};_0x236798=_0x236798['filter'](_0x5008b6=>_0x5008b6['id']!==_0x4bfba6['id']);if(_0x236798[_0xea9741(0xf7)]===0x0)throw CliErrors[_0xea9741(0xe9)](_0xea9741(0x101),'The\x20current\x20service\x20contract\x20does\x20not\x20persist\x20an\x20empty\x20rolePermit;\x20grant\x20another\x20role\x20first.');return{'roles':_0x236798,'changed':!![]};}function a51_0x54eb(){const _0x484748=['pageId','length','test','rolePermit','number','resourceType','SELF','36MagQeo','string','Use\x20a\x20role\x20ID\x20from\x20`lovrabet\x20role\x20list`.','revoke','Cannot\x20revoke\x20the\x20last\x20role\x20from\x20a\x20runtime\x20resource.','1101650FWKvlF','resourceCode','key','Revoke\x20the\x20selected\x20resources\x20from\x20the\x20role','permitId','OWNER','Cannot\x20change\x20resource\x20permissions\x20for\x20','dataDelete','16416zHewXs','roleName','create-roles','dataPermit','\x20runtime\x20role\x20','boolean','detail-roles','userId','Cannot\x20resolve\x20the\x20current\x20AK\x20userId\x20for\x20permission\x20management.','52gVGyfz','toUpperCase','dataExport','children','dataUpdate','datasetCode','SELF\x20is\x20only\x20valid\x20for\x20--row-roles.','1312crqVfr','Comma-separated\x20runtime\x20role\x20IDs\x20or\x20names','push','trim','map','some','941415RNsGjM','760UuLDfH','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','28092bBWNhB','menuId','menuPermit','Runtime\x20menu\x20ID','roleType','Ask\x20an\x20application\x20manager\x20to\x20perform\x20this\x20operation.','Runtime\x20resource\x20permission\x20changes\x20require\x20an\x20ADMIN\x20or\x20OWNER\x20role.','PUBLIC','324335HmzSUr','ADMIN','grant','find','isSafeInteger','\x22\x20is\x20ambiguous.','flag','\x20has\x20full\x20runtime\x20access\x20and\x20cannot\x20be\x20a\x20resource\x20permission\x20target.','validation','1169VITjFh','ALL','2231800pOOBLp','Permission\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','\x22\x20was\x20not\x20found.','filter','Permission\x20role\x20\x22','export-roles','dataCreate','1179EUIrEQ','forEach','Pass\x20exactly\x20one\x20of\x20--grant\x20or\x20--revoke.'];a51_0x54eb=function(){return _0x484748;};return a51_0x54eb();}export function projectRuntimePagePermit(_0x4f319c){const _0x2f84c8=a51_0x428942,_0x4b3fa5={'menuId':_0x4f319c[_0x2f84c8(0xda)],'pageId':_0x4f319c[_0x2f84c8(0xf6)],'appCode':_0x4f319c['appCode'],'datasetCode':_0x4f319c[_0x2f84c8(0x118)]};for(const _0x7bb683 of PAGE_SLOT_SPECS){const _0x52b248=_0x4f319c[_0x7bb683[_0x2f84c8(0x104)]];_0x52b248&&(_0x4b3fa5[_0x7bb683[_0x2f84c8(0x104)]]={'resourceCode':_0x52b248[_0x2f84c8(0x103)],'resourceType':_0x52b248[_0x2f84c8(0xfb)],'roles':(_0x52b248[_0x2f84c8(0xf9)]??[])[_0x2f84c8(0x11e)](_0x542b08=>({'id':_0x542b08['id'],'roleName':_0x542b08[_0x2f84c8(0x10b)],'roleType':_0x542b08['roleType']}))});}return _0x4b3fa5;}export function flattenRuntimeMenuRolePermits(_0x2011e9){const _0x51ba70=[],_0x52a832=_0x246a4b=>{const _0x7329c5=a51_0x1181;_0x51ba70[_0x7329c5(0x11c)](_0x246a4b);for(const _0x5858ce of _0x246a4b[_0x7329c5(0x116)]??[])_0x52a832(_0x5858ce);};for(const _0x572ac7 of _0x2011e9)_0x52a832(_0x572ac7);return _0x51ba70;}export function runtimePermitWriteResult(_0x46160d,_0x5bbce3,_0x1b1469,_0x1e2d8a,_0xb1859e,_0x9c9db0=[]){return{'operation':_0x46160d,'scope':'runtime','selector':_0x5bbce3,'before':_0x1b1469,'after':_0x1e2d8a,'dryRun':![],'backend':_0xb1859e,'warnings':_0x9c9db0};}export function menuPermitDto(_0x15411b,_0x266668,_0x15b39e){const _0x129be6=a51_0x428942;return{..._0x266668[_0x129be6(0x106)]!=null?{'id':_0x266668[_0x129be6(0x106)]}:{},'appCode':_0x15411b,'menuId':_0x266668['id'],'pageId':_0x266668[_0x129be6(0xf6)]??null,'resourceCode':String(_0x266668['id']),'resourceType':'MENU','resourceName':_0x266668['label'],'rolePermit':_0x15b39e};}
1
+ const a51_0x538b04=a51_0x5d4d;(function(_0x3d51a8,_0x5515ea){const _0x5c2072=a51_0x5d4d,_0x2743b4=_0x3d51a8();while(!![]){try{const _0x199570=-parseInt(_0x5c2072(0x9a))/0x1*(-parseInt(_0x5c2072(0xc5))/0x2)+-parseInt(_0x5c2072(0xa9))/0x3*(-parseInt(_0x5c2072(0x8e))/0x4)+parseInt(_0x5c2072(0x95))/0x5*(-parseInt(_0x5c2072(0xc3))/0x6)+parseInt(_0x5c2072(0xa4))/0x7+-parseInt(_0x5c2072(0x96))/0x8*(-parseInt(_0x5c2072(0xc4))/0x9)+parseInt(_0x5c2072(0xa1))/0xa*(-parseInt(_0x5c2072(0xa3))/0xb)+parseInt(_0x5c2072(0xae))/0xc*(-parseInt(_0x5c2072(0xb8))/0xd);if(_0x199570===_0x5515ea)break;else _0x2743b4['push'](_0x2743b4['shift']());}catch(_0xc399e7){_0x2743b4['push'](_0x2743b4['shift']());}}}(a51_0x1138,0xadc9c));import{getLoginUserInfo,listRuntimePermitRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{normalizeRuntimeUserId}from'../../utils/runtime-user-id.js';export const MENU_ID_FLAG={'name':a51_0x538b04(0xb3),'type':a51_0x538b04(0x89),'required':!![],'description':'Runtime\x20menu\x20ID'};export const ROLE_REF_FLAG={'name':'role','type':a51_0x538b04(0x7c),'required':!![],'description':a51_0x538b04(0xc6)};export const GRANT_FLAG={'name':'grant','type':a51_0x538b04(0xb1),'description':a51_0x538b04(0xbb)};export const REVOKE_FLAG={'name':a51_0x538b04(0x87),'type':a51_0x538b04(0xb1),'description':a51_0x538b04(0x82)};export const PAGE_SLOT_SPECS=[{'flag':a51_0x538b04(0xa0),'key':a51_0x538b04(0x86),'allowSelf':![]},{'flag':a51_0x538b04(0x8d),'key':'dataCreate','allowSelf':![]},{'flag':'update-roles','key':a51_0x538b04(0xad),'allowSelf':![]},{'flag':a51_0x538b04(0x7d),'key':a51_0x538b04(0xac),'allowSelf':![]},{'flag':a51_0x538b04(0x9f),'key':a51_0x538b04(0xbe),'allowSelf':![]},{'flag':'export-roles','key':a51_0x538b04(0xbc),'allowSelf':![]},{'flag':a51_0x538b04(0x9d),'key':a51_0x538b04(0x98),'allowSelf':!![]}];export const PAGE_ROLE_FLAGS=PAGE_SLOT_SPECS[a51_0x538b04(0xbf)](_0x53daea=>({'name':_0x53daea[a51_0x538b04(0xb4)],'type':a51_0x538b04(0x7c),'description':'Comma-separated\x20runtime\x20role\x20IDs\x20or\x20names'}));export function splitRefs(_0x1ea42c,_0x1a4473){const _0x4b7c3e=a51_0x538b04,_0x50aa91=[...new Set(_0x1ea42c[_0x4b7c3e(0x9b)](',')['map'](_0x306d79=>_0x306d79[_0x4b7c3e(0x85)]())['filter'](Boolean))];if(_0x50aa91[_0x4b7c3e(0xba)]===0x0)throw CliErrors['validation'](_0x1a4473+'\x20must\x20contain\x20at\x20least\x20one\x20value.');return _0x50aa91;}export function assertGrantOrRevoke(_0x322569,_0x38d6dd){const _0x4096e6=a51_0x538b04;if(_0x322569===_0x38d6dd)throw CliErrors['validation'](_0x4096e6(0xc2));return _0x322569?'grant':_0x4096e6(0x87);}function assertPermitRoleId(_0x48d5f9){const _0x46ea31=a51_0x538b04,_0x3ca988=_0x48d5f9['id'],_0x223f9e=typeof _0x3ca988==='number'&&Number['isSafeInteger'](_0x3ca988)&&(_0x3ca988>0x0||_0x3ca988===-0x2&&_0x48d5f9['roleType']==='PUBLIC'||_0x3ca988===-0x1&&_0x48d5f9[_0x46ea31(0xbd)]==='ALL'||_0x3ca988===0x0&&_0x48d5f9[_0x46ea31(0xbd)]===_0x46ea31(0x81));if(!_0x223f9e)throw CliErrors[_0x46ea31(0xb9)](_0x46ea31(0x90));}function resolvePermitRole(_0x1dd49c,_0x5b8d7e){const _0x40843f=a51_0x538b04,_0x3d2eee=_0x5b8d7e[_0x40843f(0x85)](),_0x133a49=/^-?\d+$/[_0x40843f(0x80)](_0x3d2eee)?_0x1dd49c[_0x40843f(0x8f)](_0x4d131e=>_0x4d131e['id']===Number(_0x3d2eee)):_0x1dd49c['filter'](_0x34e1eb=>_0x34e1eb[_0x40843f(0x92)]===_0x3d2eee||_0x34e1eb['roleType']===_0x3d2eee[_0x40843f(0x91)]());if(_0x133a49[_0x40843f(0xba)]!==0x1)throw CliErrors[_0x40843f(0xb9)](_0x133a49['length']===0x0?_0x40843f(0xa8)+_0x3d2eee+_0x40843f(0xc8):_0x40843f(0xa8)+_0x3d2eee+_0x40843f(0xb7),'Use\x20a\x20role\x20ID\x20from\x20`lovrabet\x20role\x20list`.');const _0x42d56e=_0x133a49[0x0];return assertPermitRoleId(_0x42d56e),_0x42d56e;}export async function resolveRuntimePermitRoles(_0x462e52,_0x522b77,_0x485d5d){const _0x2b59fb=a51_0x538b04,_0x153b4d=await listRuntimePermitRoles(_0x462e52,{'needSelf':!![],'needPublic':!![]}),_0x222e7e=[...new Map(_0x522b77['map'](_0x3e6271=>resolvePermitRole(_0x153b4d,_0x3e6271))[_0x2b59fb(0xbf)](_0x33be51=>[_0x33be51['id'],_0x33be51]))[_0x2b59fb(0x7b)]()],_0x6c5d0a=_0x222e7e[_0x2b59fb(0x7e)](_0x344540=>_0x344540[_0x2b59fb(0xbd)]===_0x2b59fb(0xb6)||_0x344540[_0x2b59fb(0xbd)]===_0x2b59fb(0x8a));if(_0x6c5d0a)throw CliErrors[_0x2b59fb(0xb9)](_0x6c5d0a['roleType']+_0x2b59fb(0x94),_0x2b59fb(0x9c));if(!_0x485d5d&&_0x222e7e[_0x2b59fb(0xb5)](_0x556dda=>_0x556dda['roleType']===_0x2b59fb(0x81)))throw CliErrors[_0x2b59fb(0xb9)](_0x2b59fb(0xb2));return _0x222e7e;}export async function assertRuntimePermissionManager(_0x563826){const _0x5e53bb=a51_0x538b04,_0x1c431f=await getLoginUserInfo(),_0x4c86be=_0x1c431f[_0x5e53bb(0x8b)]??_0x1c431f['id'],_0x588944=normalizeRuntimeUserId(_0x4c86be);if(_0x588944===undefined)throw CliErrors[_0x5e53bb(0xb9)](_0x5e53bb(0x99));const _0x56de61=await listRuntimeRoleUsers(_0x563826),_0xcdf4a8=_0x56de61[_0x5e53bb(0xb5)](_0x1865c9=>(_0x1865c9['roleType']===_0x5e53bb(0xb6)||_0x1865c9[_0x5e53bb(0xbd)]===_0x5e53bb(0x8a))&&(_0x1865c9[_0x5e53bb(0xab)]??[])['some'](_0x34ea91=>normalizeRuntimeUserId(_0x34ea91['userId'])===_0x588944));if(!_0xcdf4a8)throw CliErrors['validation'](_0x5e53bb(0xa7),'Ask\x20an\x20application\x20manager\x20to\x20perform\x20this\x20operation.');}function a51_0x1138(){const _0x1e38a6=['userId','grant','create-roles','5460OYeHaA','filter','Permission\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','toUpperCase','roleName','key','\x20has\x20full\x20runtime\x20access\x20and\x20cannot\x20be\x20a\x20resource\x20permission\x20target.','4835515rGtwwG','8AQcmIO','The\x20current\x20service\x20contract\x20does\x20not\x20persist\x20an\x20empty\x20rolePermit;\x20grant\x20another\x20role\x20first.','dataPermit','Cannot\x20resolve\x20the\x20current\x20AK\x20userId\x20for\x20permission\x20management.','969yLvdzQ','split','Configure\x20USER,\x20CUSTOM,\x20or\x20an\x20applicable\x20special\x20role\x20instead.','row-roles','Cannot\x20revoke\x20the\x20last\x20role\x20from\x20a\x20runtime\x20resource.','detail-roles','menu-roles','210akXzPE','rolePermit','208989DPUGZk','5361804vuoplc','menuId','label','Runtime\x20resource\x20permission\x20changes\x20require\x20an\x20ADMIN\x20or\x20OWNER\x20role.','Permission\x20role\x20\x22','2085DiKRFl','ADMIN\x20and\x20OWNER\x20have\x20full\x20runtime\x20access;\x20configure\x20USER\x20or\x20CUSTOM\x20instead.','userList','dataDelete','dataUpdate','12ZRZqUJ','resourceType','pageId','boolean','SELF\x20is\x20only\x20valid\x20for\x20--row-roles.','menu-id','flag','some','ADMIN','\x22\x20is\x20ambiguous.','16703505uTMCxA','validation','length','Grant\x20the\x20selected\x20resources\x20to\x20the\x20role','dataExport','roleType','dataDetail','map','push','ALL','Pass\x20exactly\x20one\x20of\x20--grant\x20or\x20--revoke.','6VZvugw','6086241UdoFgA','2006ibnSnQ','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','children','\x22\x20was\x20not\x20found.','values','string','delete-roles','find','resourceCode','test','SELF','Revoke\x20the\x20selected\x20resources\x20from\x20the\x20role','\x20runtime\x20role\x20','Cannot\x20change\x20resource\x20permissions\x20for\x20','trim','menuPermit','revoke','MENU','number','OWNER'];a51_0x1138=function(){return _0x1e38a6;};return a51_0x1138();}export function assertRuntimePermitRoleConfigurable(_0x299c3c){const _0x4faca7=a51_0x538b04;if(_0x299c3c[_0x4faca7(0xbd)]==='ADMIN'||_0x299c3c[_0x4faca7(0xbd)]==='OWNER')throw CliErrors[_0x4faca7(0xb9)](_0x4faca7(0x84)+_0x299c3c[_0x4faca7(0xbd)]+_0x4faca7(0x83)+_0x299c3c[_0x4faca7(0x92)]+'.',_0x4faca7(0xaa));}function asPermitRole(_0x2a75d3){const _0x3b5975=a51_0x538b04;return{'id':_0x2a75d3['id'],'roleName':_0x2a75d3[_0x3b5975(0x92)],'roleType':_0x2a75d3[_0x3b5975(0xbd)],'allowed':!![]};}export function applyRuntimeRolePermission(_0x2fec23,_0x2df5cb,_0x387f4e,_0x9ff06){const _0x50c2e3=a51_0x538b04,_0x5c0959=!_0x2fec23||_0x2fec23[_0x50c2e3(0xba)]===0x0,_0x246a32=_0x2fec23?.['some'](_0x40a133=>_0x40a133[_0x50c2e3(0xbd)]===_0x50c2e3(0xc1))??![];if(_0x9ff06==='grant'&&(_0x5c0959||_0x246a32))return{'roles':_0x2fec23??null,'changed':![]};if(_0x5c0959||_0x246a32)_0x387f4e['forEach'](assertPermitRoleId);let _0x511709=_0x5c0959||_0x246a32?_0x387f4e['filter'](_0x4c6de7=>typeof _0x4c6de7['id']==='number'&&_0x4c6de7['id']>0x0):[..._0x2fec23];const _0x5293df=_0x511709[_0x50c2e3(0xb5)](_0x1e0cf5=>_0x1e0cf5['id']===_0x2df5cb['id']);if(_0x9ff06===_0x50c2e3(0x8c)){if(_0x5293df)return{'roles':_0x511709,'changed':![]};return _0x511709[_0x50c2e3(0xc0)](asPermitRole(_0x2df5cb)),{'roles':_0x511709,'changed':!![]};}if(!_0x5293df)return{'roles':_0x511709,'changed':_0x5c0959||_0x246a32};_0x511709=_0x511709[_0x50c2e3(0x8f)](_0x49d882=>_0x49d882['id']!==_0x2df5cb['id']);if(_0x511709['length']===0x0)throw CliErrors['validation'](_0x50c2e3(0x9e),_0x50c2e3(0x97));return{'roles':_0x511709,'changed':!![]};}export function projectRuntimePagePermit(_0x5e5e2c){const _0x3f436c=a51_0x538b04,_0x3c314a={'menuId':_0x5e5e2c[_0x3f436c(0xa5)],'pageId':_0x5e5e2c[_0x3f436c(0xb0)],'appCode':_0x5e5e2c['appCode'],'datasetCode':_0x5e5e2c['datasetCode']};for(const _0xa7d7d4 of PAGE_SLOT_SPECS){const _0x100427=_0x5e5e2c[_0xa7d7d4[_0x3f436c(0x93)]];_0x100427&&(_0x3c314a[_0xa7d7d4[_0x3f436c(0x93)]]={'resourceCode':_0x100427[_0x3f436c(0x7f)],'resourceType':_0x100427[_0x3f436c(0xaf)],'roles':(_0x100427[_0x3f436c(0xa2)]??[])['map'](_0x264715=>({'id':_0x264715['id'],'roleName':_0x264715[_0x3f436c(0x92)],'roleType':_0x264715[_0x3f436c(0xbd)]}))});}return _0x3c314a;}export function flattenRuntimeMenuRolePermits(_0xe9a10f){const _0x31ba12=[],_0x1a38fa=_0x473593=>{const _0x17f658=a51_0x5d4d;_0x31ba12[_0x17f658(0xc0)](_0x473593);for(const _0x5c29fb of _0x473593[_0x17f658(0xc7)]??[])_0x1a38fa(_0x5c29fb);};for(const _0x5a3900 of _0xe9a10f)_0x1a38fa(_0x5a3900);return _0x31ba12;}function a51_0x5d4d(_0x3412e2,_0x67f82b){_0x3412e2=_0x3412e2-0x7b;const _0x113818=a51_0x1138();let _0x5d4da9=_0x113818[_0x3412e2];return _0x5d4da9;}export function runtimePermitWriteResult(_0x14ff16,_0x541c7b,_0x352d76,_0x5b0846,_0x10f417,_0x3b8e5f=[]){return{'operation':_0x14ff16,'scope':'runtime','selector':_0x541c7b,'before':_0x352d76,'after':_0x5b0846,'dryRun':![],'backend':_0x10f417,'warnings':_0x3b8e5f};}export function menuPermitDto(_0x5ca2ae,_0x535dac,_0x10daef){const _0x186d7b=a51_0x538b04;return{..._0x535dac['permitId']!=null?{'id':_0x535dac['permitId']}:{},'appCode':_0x5ca2ae,'menuId':_0x535dac['id'],'pageId':_0x535dac[_0x186d7b(0xb0)]??null,'resourceCode':String(_0x535dac['id']),'resourceType':_0x186d7b(0x88),'resourceName':_0x535dac[_0x186d7b(0xa6)],'rolePermit':_0x10daef};}
@@ -1 +1 @@
1
- const a52_0x549888=a52_0x6d13;(function(_0x15f0bc,_0x475278){const _0x4bdf43=a52_0x6d13,_0x3b0991=_0x15f0bc();while(!![]){try{const _0x423e4f=-parseInt(_0x4bdf43(0x1f4))/0x1+parseInt(_0x4bdf43(0x1d8))/0x2+parseInt(_0x4bdf43(0x1b6))/0x3+parseInt(_0x4bdf43(0x1f6))/0x4*(-parseInt(_0x4bdf43(0x1ca))/0x5)+-parseInt(_0x4bdf43(0x1cb))/0x6+-parseInt(_0x4bdf43(0x1d1))/0x7+-parseInt(_0x4bdf43(0x1b7))/0x8*(-parseInt(_0x4bdf43(0x1e3))/0x9);if(_0x423e4f===_0x475278)break;else _0x3b0991['push'](_0x3b0991['shift']());}catch(_0x5535c9){_0x3b0991['push'](_0x3b0991['shift']());}}}(a52_0x2b90,0x91a2c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a52_0x6d13(_0x3bef88,_0x17052f){_0x3bef88=_0x3bef88-0x1b6;const _0x2b9006=a52_0x2b90();let _0x6d1393=_0x2b9006[_0x3bef88];return _0x6d1393;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a52_0x549888(0x1f7),'type':a52_0x549888(0x1be),'description':a52_0x549888(0x1bf)},FUNCTION_NAME_FLAG={'name':'name','type':'string','required':!![],'description':'Personal\x20Backend\x20Function\x20name,\x20for\x20example\x20loadOrders'},DESCRIPTION_FLAG={'name':a52_0x549888(0x1bc),'type':a52_0x549888(0x1be),'description':a52_0x549888(0x1dc)},SOURCE_SESSION_FLAG={'name':'source-session-id','type':a52_0x549888(0x1be),'description':'Optional\x20source\x20RuntimeAgent\x20session\x20id'};function normalizeFunctionName(_0x5c7f1a){const _0x437dbb=a52_0x549888,_0x5ab551=String(_0x5c7f1a||'')[_0x437dbb(0x1c9)]();if(!_0x5ab551||!FUNCTION_NAME_PATTERN[_0x437dbb(0x1d5)](_0x5ab551))throw CliErrors['validation'](_0x437dbb(0x1d4));return _0x5ab551;}function readScriptFile(_0x35de8e){const _0x1a1617=a52_0x549888;if(!_0x35de8e)throw CliErrors['validation'](_0x1a1617(0x1d6));if(!existsSync(_0x35de8e))throw CliErrors[_0x1a1617(0x1c6)](_0x1a1617(0x1ec)+_0x35de8e);if(!statSync(_0x35de8e)[_0x1a1617(0x1de)]())throw CliErrors['validation'](_0x1a1617(0x1cd)+_0x35de8e);const _0x226157=readFileSync(_0x35de8e,_0x1a1617(0x1cc));if(!_0x226157[_0x1a1617(0x1c9)]())throw CliErrors[_0x1a1617(0x1c6)](_0x1a1617(0x1f5));return _0x226157;}function optionalTrimmed(_0x127384){const _0x3bcde4=a52_0x549888,_0x26f849=String(_0x127384||'')[_0x3bcde4(0x1c9)]();return _0x26f849||undefined;}function summarizeBff(_0x2abe90){const _0x195d64=a52_0x549888;return{'id':_0x2abe90['id'],'appCode':_0x2abe90[_0x195d64(0x1c4)],'functionName':_0x2abe90[_0x195d64(0x1b8)],'description':_0x2abe90['description'],'scriptType':_0x2abe90[_0x195d64(0x1c5)],'version':_0x2abe90[_0x195d64(0x1d2)],'gmtModified':_0x2abe90[_0x195d64(0x1ce)],'updateTime':_0x2abe90[_0x195d64(0x1bd)]};}function detailBff(_0x3cb6f9){const _0x3c0f43=a52_0x549888;return{'id':_0x3cb6f9['id'],'appCode':_0x3cb6f9[_0x3c0f43(0x1c4)],'functionName':_0x3cb6f9[_0x3c0f43(0x1b8)],'description':_0x3cb6f9[_0x3c0f43(0x1bc)],'scriptType':_0x3cb6f9[_0x3c0f43(0x1c5)],'scriptContent':_0x3cb6f9[_0x3c0f43(0x1c2)]??'','config':_0x3cb6f9[_0x3c0f43(0x1e6)],'version':_0x3cb6f9[_0x3c0f43(0x1d2)],'createUserId':_0x3cb6f9[_0x3c0f43(0x1c3)],'gmtCreate':_0x3cb6f9[_0x3c0f43(0x1bb)],'gmtModified':_0x3cb6f9[_0x3c0f43(0x1ce)],'createTime':_0x3cb6f9[_0x3c0f43(0x1e8)],'updateTime':_0x3cb6f9['updateTime']};}function buildCreateInput(_0x5da4d8){const _0x331f42=a52_0x549888;return{'functionName':normalizeFunctionName(_0x5da4d8['str']('name')),...optionalTrimmed(_0x5da4d8['str'](_0x331f42(0x1bc)))?{'description':optionalTrimmed(_0x5da4d8[_0x331f42(0x1f9)](_0x331f42(0x1bc)))}:{},'scriptContent':readScriptFile(_0x5da4d8[_0x331f42(0x1f9)](_0x331f42(0x1f7))),...optionalTrimmed(_0x5da4d8[_0x331f42(0x1f9)]('source-session-id'))?{'sourceSessionId':optionalTrimmed(_0x5da4d8[_0x331f42(0x1f9)](_0x331f42(0x1e7)))}:{}};}function buildUpdateInput(_0x4bd4c4){const _0x5cb2c0=a52_0x549888,_0x5e2878={};optionalTrimmed(_0x4bd4c4[_0x5cb2c0(0x1f9)](_0x5cb2c0(0x1e5)))&&(_0x5e2878[_0x5cb2c0(0x1b8)]=normalizeFunctionName(_0x4bd4c4[_0x5cb2c0(0x1f9)](_0x5cb2c0(0x1e5))));_0x4bd4c4[_0x5cb2c0(0x1c1)](_0x5cb2c0(0x1bc))!==undefined&&(_0x5e2878['description']=_0x4bd4c4[_0x5cb2c0(0x1f9)](_0x5cb2c0(0x1bc)));optionalTrimmed(_0x4bd4c4[_0x5cb2c0(0x1f9)](_0x5cb2c0(0x1f7)))&&(_0x5e2878['scriptContent']=readScriptFile(_0x4bd4c4[_0x5cb2c0(0x1f9)]('file')));_0x4bd4c4[_0x5cb2c0(0x1c1)](_0x5cb2c0(0x1e7))!==undefined&&(_0x5e2878['sourceSessionId']=_0x4bd4c4['str'](_0x5cb2c0(0x1e7)));if(Object['keys'](_0x5e2878)[_0x5cb2c0(0x1cf)]===0x0)throw CliErrors[_0x5cb2c0(0x1c6)](_0x5cb2c0(0x1e4));return _0x5e2878;}function parseExecParams(_0x2d2fa5){const _0x2d7b4b=a52_0x549888,_0x2ac3b7=parseJsonParams(_0x2d2fa5)??{};if(Array['isArray'](_0x2ac3b7))throw CliErrors[_0x2d7b4b(0x1c6)](_0x2d7b4b(0x1b9));return _0x2ac3b7;}const personalBffList={'service':a52_0x549888(0x1e2),'command':a52_0x549888(0x1fc),'description':a52_0x549888(0x1f8),'risk':a52_0x549888(0x1d7),'flags':[VERBOSE_FLAG],async 'execute'(_0x1b54c4){const _0x2bdfb2=a52_0x549888,_0x38c3c3=await listPersonalBffs(_0x1b54c4[_0x2bdfb2(0x1c4)]);return{'ok':!![],'data':{'total':_0x38c3c3[_0x2bdfb2(0x1cf)],'items':_0x1b54c4['bool'](_0x2bdfb2(0x1dd))?_0x38c3c3:_0x38c3c3[_0x2bdfb2(0x1c8)](summarizeBff)}};}},personalBffDetail={'service':a52_0x549888(0x1e2),'command':'detail','description':a52_0x549888(0x1e9),'risk':a52_0x549888(0x1d7),'flags':[{...ID_FLAG,'description':a52_0x549888(0x1ea)}],async 'execute'(_0xed3620){const _0x3f6554=a52_0x549888,_0x44857b=await getPersonalBff(_0xed3620['num']('id'),_0xed3620[_0x3f6554(0x1c4)]);return{'ok':!![],'data':detailBff(_0x44857b)};}},personalBffCreate={'service':a52_0x549888(0x1e2),'command':'create','description':a52_0x549888(0x1db),'risk':a52_0x549888(0x1eb),'confirmationDescription':a52_0x549888(0x1e0),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x40181){const _0x4ec53b=a52_0x549888,_0x3ef355=buildCreateInput(_0x40181),_0x17d305=await createPersonalBff(_0x40181['appCode'],_0x3ef355);return{'ok':!![],'data':detailBff(_0x17d305),'message':_0x4ec53b(0x1f2)+_0x17d305['id']+(_0x17d305['functionName']?'\x20('+_0x17d305[_0x4ec53b(0x1b8)]+')':'')};},async 'dryRun'(_0x412751){const _0x1318e9=a52_0x549888,_0x3a4258=buildCreateInput(_0x412751);return dryRun(_0x1318e9(0x1f1),_0x1318e9(0x1f0))[_0x1318e9(0x1ee)]({'appCode':_0x412751['appCode'],..._0x3a4258})['description'](_0x1318e9(0x1fb)+_0x3a4258[_0x1318e9(0x1b8)])['build']();}},personalBffUpdate={'service':a52_0x549888(0x1e2),'command':a52_0x549888(0x1f3),'description':a52_0x549888(0x1e1),'risk':a52_0x549888(0x1eb),'confirmationDescription':a52_0x549888(0x1d0),'flags':[{...ID_FLAG,'description':a52_0x549888(0x1ea)},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x2b4c1a){const _0x3e1135=a52_0x549888,_0xd882f3=_0x2b4c1a[_0x3e1135(0x1ed)]('id'),_0x53c431=buildUpdateInput(_0x2b4c1a),_0x481515=await updatePersonalBff(_0xd882f3,_0x2b4c1a[_0x3e1135(0x1c4)],_0x53c431);return{'ok':!![],'data':detailBff(_0x481515),'message':_0x3e1135(0x1c7)+_0x481515['id']+(_0x481515[_0x3e1135(0x1b8)]?'\x20('+_0x481515['functionName']+')':'')};},async 'dryRun'(_0x57da3b){const _0xd8a7ae=a52_0x549888,_0x2b4bf8=_0x57da3b['num']('id'),_0x5eee5c=buildUpdateInput(_0x57da3b);return dryRun(_0xd8a7ae(0x1f1),'/client/runtime-bff/personal/'+_0x2b4bf8+_0xd8a7ae(0x1d9))[_0xd8a7ae(0x1ee)]({'appCode':_0x57da3b[_0xd8a7ae(0x1c4)],..._0x5eee5c})['description'](_0xd8a7ae(0x1c0)+_0x2b4bf8)[_0xd8a7ae(0x1df)]();}},personalBffExec={'service':a52_0x549888(0x1e2),'command':'exec','description':a52_0x549888(0x1ef),'risk':a52_0x549888(0x1eb),'confirmationDescription':a52_0x549888(0x1fa),'flags':[{...ID_FLAG,'description':a52_0x549888(0x1ea)},{...PARAMS_FLAG,'description':a52_0x549888(0x1da)}],async 'validate'(_0x572899){const _0x22a081=a52_0x549888;parseExecParams(_0x572899['str'](_0x22a081(0x1d3)));},async 'execute'(_0x3fcf87){const _0xc5975d=a52_0x549888,_0x5d0df0=_0x3fcf87[_0xc5975d(0x1ed)]('id'),_0x5eff56=parseExecParams(_0x3fcf87[_0xc5975d(0x1f9)]('params')),_0x2a8fb2=await executePersonalBff(_0x5d0df0,_0x3fcf87[_0xc5975d(0x1c4)],_0x5eff56);return{'ok':!![],'data':{'result':_0x2a8fb2},'message':_0xc5975d(0x1ba)+_0x5d0df0};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];function a52_0x2b90(){const _0x2cabe6=['scriptType','validation','Updated\x20Personal\x20Backend\x20Function\x20','map','trim','965xMFcmH','195336KNYTKX','utf8','File\x20is\x20not\x20a\x20regular\x20file:\x20','gmtModified','length','Updates\x20the\x20Personal\x20Backend\x20Function\x20script\x20or\x20metadata.\x20Later\x20calls\x20use\x20the\x20new\x20version.','2684087gUuySg','version','params','--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.','test','File\x20path\x20is\x20required.','read','1710486dxneEc','/update','JSON\x20object\x20passed\x20to\x20the\x20Personal\x20Backend\x20Function\x20execution','Create\x20a\x20Personal\x20Backend\x20Function\x20from\x20a\x20local\x20script\x20file','Personal\x20Backend\x20Function\x20description','verbose','isFile','build','Saves\x20the\x20local\x20script\x20as\x20a\x20Personal\x20Backend\x20Function.\x20The\x20script\x20can\x20then\x20be\x20called\x20in\x20the\x20current\x20app.','Update\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID','personal-bff','6590439hqOdul','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','name','config','source-session-id','createTime','Show\x20one\x20Personal\x20Backend\x20Function\x20by\x20id','Personal\x20Backend\x20Function\x20script\x20ID','write','File\x20not\x20found:\x20','num','body','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID,\x20optionally\x20with\x20JSON\x20params','/client/runtime-bff/personal/create','POST','Created\x20Personal\x20Backend\x20Function\x20','update','1177910cMgbnB','Personal\x20Backend\x20Function\x20script\x20file\x20is\x20blank.','8572lqZuvj','file','List\x20current\x20user\x27s\x20Personal\x20Backend\x20Function\x20scripts\x20for\x20the\x20current\x20app','str','Runs\x20the\x20Personal\x20Backend\x20Function\x20script.\x20The\x20script\x20may\x20read\x20or\x20change\x20business\x20data,\x20or\x20call\x20external\x20services.','Preview:\x20create\x20Personal\x20Backend\x20Function\x20','list','3049548ZUMcOY','8kYuzbx','functionName','--params\x20must\x20be\x20a\x20JSON\x20object.','Executed\x20Personal\x20Backend\x20Function\x20','gmtCreate','description','updateTime','string','Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file','Preview:\x20update\x20Personal\x20Backend\x20Function\x20','flag','scriptContent','createUserId','appCode'];a52_0x2b90=function(){return _0x2cabe6;};return a52_0x2b90();}
1
+ function a52_0x4a80(_0x13f875,_0x402c47){_0x13f875=_0x13f875-0x113;const _0x53b468=a52_0x53b4();let _0x4a80a7=_0x53b468[_0x13f875];return _0x4a80a7;}const a52_0x5aadc5=a52_0x4a80;(function(_0x41b167,_0x4bc288){const _0x4f7f89=a52_0x4a80,_0x3bf803=_0x41b167();while(!![]){try{const _0x20597c=parseInt(_0x4f7f89(0x135))/0x1+-parseInt(_0x4f7f89(0x13c))/0x2+parseInt(_0x4f7f89(0x128))/0x3+-parseInt(_0x4f7f89(0x122))/0x4*(-parseInt(_0x4f7f89(0x11c))/0x5)+-parseInt(_0x4f7f89(0x13a))/0x6+-parseInt(_0x4f7f89(0x144))/0x7*(-parseInt(_0x4f7f89(0x117))/0x8)+parseInt(_0x4f7f89(0x14f))/0x9*(-parseInt(_0x4f7f89(0x134))/0xa);if(_0x20597c===_0x4bc288)break;else _0x3bf803['push'](_0x3bf803['shift']());}catch(_0x1c5b05){_0x3bf803['push'](_0x3bf803['shift']());}}}(a52_0x53b4,0x637a9));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a52_0x5aadc5(0x131),'type':a52_0x5aadc5(0x149),'description':'Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file'},FUNCTION_NAME_FLAG={'name':'name','type':a52_0x5aadc5(0x149),'required':!![],'description':'Personal\x20Backend\x20Function\x20name,\x20for\x20example\x20loadOrders'},DESCRIPTION_FLAG={'name':'description','type':a52_0x5aadc5(0x149),'description':a52_0x5aadc5(0x11a)},SOURCE_SESSION_FLAG={'name':a52_0x5aadc5(0x13d),'type':a52_0x5aadc5(0x149),'description':'Optional\x20source\x20RuntimeAgent\x20session\x20id'};function normalizeFunctionName(_0x3fbb30){const _0x2df379=a52_0x5aadc5,_0x8d433e=String(_0x3fbb30||'')[_0x2df379(0x151)]();if(!_0x8d433e||!FUNCTION_NAME_PATTERN['test'](_0x8d433e))throw CliErrors['validation']('--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.');return _0x8d433e;}function readScriptFile(_0x433293){const _0x582564=a52_0x5aadc5;if(!_0x433293)throw CliErrors[_0x582564(0x137)](_0x582564(0x125));if(!existsSync(_0x433293))throw CliErrors[_0x582564(0x137)](_0x582564(0x12f)+_0x433293);if(!statSync(_0x433293)[_0x582564(0x12b)]())throw CliErrors['validation'](_0x582564(0x12c)+_0x433293);const _0x466ae7=readFileSync(_0x433293,'utf8');if(!_0x466ae7[_0x582564(0x151)]())throw CliErrors[_0x582564(0x137)]('Personal\x20Backend\x20Function\x20script\x20file\x20is\x20blank.');return _0x466ae7;}function optionalTrimmed(_0x3df70d){const _0x18172b=a52_0x5aadc5,_0x8bbf1e=String(_0x3df70d||'')[_0x18172b(0x151)]();return _0x8bbf1e||undefined;}function summarizeBff(_0x7e4017){const _0x30d8d7=a52_0x5aadc5;return{'id':_0x7e4017['id'],'appCode':_0x7e4017[_0x30d8d7(0x153)],'functionName':_0x7e4017[_0x30d8d7(0x132)],'description':_0x7e4017['description'],'scriptType':_0x7e4017[_0x30d8d7(0x126)],'version':_0x7e4017[_0x30d8d7(0x120)],'gmtModified':_0x7e4017[_0x30d8d7(0x143)],'updateTime':_0x7e4017[_0x30d8d7(0x13e)]};}function detailBff(_0x21e25d){const _0x592f2b=a52_0x5aadc5;return{'id':_0x21e25d['id'],'appCode':_0x21e25d[_0x592f2b(0x153)],'functionName':_0x21e25d[_0x592f2b(0x132)],'description':_0x21e25d[_0x592f2b(0x140)],'scriptType':_0x21e25d[_0x592f2b(0x126)],'scriptContent':_0x21e25d[_0x592f2b(0x145)]??'','config':_0x21e25d[_0x592f2b(0x12d)],'version':_0x21e25d[_0x592f2b(0x120)],'createUserId':_0x21e25d[_0x592f2b(0x124)],'gmtCreate':_0x21e25d['gmtCreate'],'gmtModified':_0x21e25d[_0x592f2b(0x143)],'createTime':_0x21e25d['createTime'],'updateTime':_0x21e25d['updateTime']};}function buildCreateInput(_0x1ad477){const _0x3e6f4a=a52_0x5aadc5;return{'functionName':normalizeFunctionName(_0x1ad477[_0x3e6f4a(0x142)](_0x3e6f4a(0x133))),...optionalTrimmed(_0x1ad477['str'](_0x3e6f4a(0x140)))?{'description':optionalTrimmed(_0x1ad477[_0x3e6f4a(0x142)](_0x3e6f4a(0x140)))}:{},'scriptContent':readScriptFile(_0x1ad477[_0x3e6f4a(0x142)](_0x3e6f4a(0x131))),...optionalTrimmed(_0x1ad477[_0x3e6f4a(0x142)](_0x3e6f4a(0x13d)))?{'sourceSessionId':optionalTrimmed(_0x1ad477[_0x3e6f4a(0x142)]('source-session-id'))}:{}};}function a52_0x53b4(){const _0x24b3dc=['File\x20is\x20not\x20a\x20regular\x20file:\x20','config','POST','File\x20not\x20found:\x20','personal-bff','file','functionName','name','860ZXCMan','611542TSQflD','exec','validation','build','num','1628538ESAmDd','JSON\x20object\x20passed\x20to\x20the\x20Personal\x20Backend\x20Function\x20execution','531332BeVUkU','source-session-id','updateTime','Create\x20a\x20Personal\x20Backend\x20Function\x20from\x20a\x20local\x20script\x20file','description','update','str','gmtModified','49lGyZNk','scriptContent','--params\x20must\x20be\x20a\x20JSON\x20object.','Preview:\x20create\x20Personal\x20Backend\x20Function\x20','Show\x20one\x20Personal\x20Backend\x20Function\x20by\x20id','string','Personal\x20Backend\x20Function\x20script\x20ID','length','isArray','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID,\x20optionally\x20with\x20JSON\x20params','Updates\x20the\x20Personal\x20Backend\x20Function\x20script\x20or\x20metadata.\x20Later\x20calls\x20use\x20the\x20new\x20version.','138447zcjCfE','map','trim','Runs\x20the\x20Personal\x20Backend\x20Function\x20script.\x20The\x20script\x20may\x20read\x20or\x20change\x20business\x20data,\x20or\x20call\x20external\x20services.','appCode','create','Preview:\x20update\x20Personal\x20Backend\x20Function\x20','Executed\x20Personal\x20Backend\x20Function\x20','params','930416EedIgT','flag','write','Personal\x20Backend\x20Function\x20description','bool','15mmniuE','verbose','body','Created\x20Personal\x20Backend\x20Function\x20','version','list','498812LsFAVf','Saves\x20the\x20local\x20script\x20as\x20a\x20Personal\x20Backend\x20Function.\x20The\x20script\x20can\x20then\x20be\x20called\x20in\x20the\x20current\x20app.','createUserId','File\x20path\x20is\x20required.','scriptType','List\x20current\x20user\x27s\x20Personal\x20Backend\x20Function\x20scripts\x20for\x20the\x20current\x20app','1403181UVsscl','detail','keys','isFile'];a52_0x53b4=function(){return _0x24b3dc;};return a52_0x53b4();}function buildUpdateInput(_0x316c1b){const _0x47fb85=a52_0x5aadc5,_0x1761c9={};optionalTrimmed(_0x316c1b[_0x47fb85(0x142)](_0x47fb85(0x133)))&&(_0x1761c9[_0x47fb85(0x132)]=normalizeFunctionName(_0x316c1b['str']('name')));_0x316c1b[_0x47fb85(0x118)](_0x47fb85(0x140))!==undefined&&(_0x1761c9[_0x47fb85(0x140)]=_0x316c1b['str']('description'));optionalTrimmed(_0x316c1b['str'](_0x47fb85(0x131)))&&(_0x1761c9[_0x47fb85(0x145)]=readScriptFile(_0x316c1b[_0x47fb85(0x142)](_0x47fb85(0x131))));_0x316c1b['flag'](_0x47fb85(0x13d))!==undefined&&(_0x1761c9['sourceSessionId']=_0x316c1b[_0x47fb85(0x142)](_0x47fb85(0x13d)));if(Object[_0x47fb85(0x12a)](_0x1761c9)['length']===0x0)throw CliErrors['validation']('personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.');return _0x1761c9;}function parseExecParams(_0x3e2fce){const _0x4c4365=a52_0x5aadc5,_0x396855=parseJsonParams(_0x3e2fce)??{};if(Array[_0x4c4365(0x14c)](_0x396855))throw CliErrors['validation'](_0x4c4365(0x146));return _0x396855;}const personalBffList={'service':'personal-bff','command':a52_0x5aadc5(0x121),'description':a52_0x5aadc5(0x127),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x595e24){const _0x328c67=a52_0x5aadc5,_0x1b9380=await listPersonalBffs(_0x595e24['appCode']);return{'ok':!![],'data':{'total':_0x1b9380[_0x328c67(0x14b)],'items':_0x595e24[_0x328c67(0x11b)](_0x328c67(0x11d))?_0x1b9380:_0x1b9380[_0x328c67(0x150)](summarizeBff)}};}},personalBffDetail={'service':a52_0x5aadc5(0x130),'command':a52_0x5aadc5(0x129),'description':a52_0x5aadc5(0x148),'risk':'read','flags':[{...ID_FLAG,'description':a52_0x5aadc5(0x14a)}],async 'execute'(_0x44d11e){const _0x1d136e=a52_0x5aadc5,_0x4ca829=await getPersonalBff(_0x44d11e[_0x1d136e(0x139)]('id'),_0x44d11e[_0x1d136e(0x153)]);return{'ok':!![],'data':detailBff(_0x4ca829)};}},personalBffCreate={'service':'personal-bff','command':a52_0x5aadc5(0x113),'description':a52_0x5aadc5(0x13f),'risk':a52_0x5aadc5(0x119),'confirmationDescription':a52_0x5aadc5(0x123),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x1caa8b){const _0x35ca03=a52_0x5aadc5,_0x2fd727=buildCreateInput(_0x1caa8b),_0x2d5d8d=await createPersonalBff(_0x1caa8b['appCode'],_0x2fd727);return{'ok':!![],'data':detailBff(_0x2d5d8d),'message':_0x35ca03(0x11f)+_0x2d5d8d['id']+(_0x2d5d8d[_0x35ca03(0x132)]?'\x20('+_0x2d5d8d[_0x35ca03(0x132)]+')':'')};},async 'dryRun'(_0x150f5d){const _0x2cf384=a52_0x5aadc5,_0x279b52=buildCreateInput(_0x150f5d);return dryRun(_0x2cf384(0x12e),'/client/runtime-bff/personal/create')[_0x2cf384(0x11e)]({'appCode':_0x150f5d[_0x2cf384(0x153)],..._0x279b52})[_0x2cf384(0x140)](_0x2cf384(0x147)+_0x279b52[_0x2cf384(0x132)])[_0x2cf384(0x138)]();}},personalBffUpdate={'service':'personal-bff','command':a52_0x5aadc5(0x141),'description':'Update\x20a\x20Personal\x20Backend\x20Function\x20by\x20ID','risk':a52_0x5aadc5(0x119),'confirmationDescription':a52_0x5aadc5(0x14e),'flags':[{...ID_FLAG,'description':a52_0x5aadc5(0x14a)},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0xf87af1){const _0xdb23d9=a52_0x5aadc5,_0x92e7e=_0xf87af1['num']('id'),_0xc742ee=buildUpdateInput(_0xf87af1),_0x49022e=await updatePersonalBff(_0x92e7e,_0xf87af1[_0xdb23d9(0x153)],_0xc742ee);return{'ok':!![],'data':detailBff(_0x49022e),'message':'Updated\x20Personal\x20Backend\x20Function\x20'+_0x49022e['id']+(_0x49022e[_0xdb23d9(0x132)]?'\x20('+_0x49022e[_0xdb23d9(0x132)]+')':'')};},async 'dryRun'(_0x577e76){const _0x710240=a52_0x5aadc5,_0x5c0753=_0x577e76[_0x710240(0x139)]('id'),_0x179b24=buildUpdateInput(_0x577e76);return dryRun(_0x710240(0x12e),'/client/runtime-bff/personal/'+_0x5c0753+'/update')['body']({'appCode':_0x577e76['appCode'],..._0x179b24})[_0x710240(0x140)](_0x710240(0x114)+_0x5c0753)[_0x710240(0x138)]();}},personalBffExec={'service':a52_0x5aadc5(0x130),'command':a52_0x5aadc5(0x136),'description':a52_0x5aadc5(0x14d),'risk':a52_0x5aadc5(0x119),'confirmationDescription':a52_0x5aadc5(0x152),'flags':[{...ID_FLAG,'description':'Personal\x20Backend\x20Function\x20script\x20ID'},{...PARAMS_FLAG,'description':a52_0x5aadc5(0x13b)}],async 'validate'(_0x240e9b){const _0x2c1a0d=a52_0x5aadc5;parseExecParams(_0x240e9b[_0x2c1a0d(0x142)](_0x2c1a0d(0x116)));},async 'execute'(_0x2402d2){const _0x3ae483=a52_0x5aadc5,_0x223e0c=_0x2402d2['num']('id'),_0x56a8c7=parseExecParams(_0x2402d2[_0x3ae483(0x142)](_0x3ae483(0x116))),_0x574daa=await executePersonalBff(_0x223e0c,_0x2402d2[_0x3ae483(0x153)],_0x56a8c7);return{'ok':!![],'data':{'result':_0x574daa},'message':_0x3ae483(0x115)+_0x223e0c};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
@@ -1 +1 @@
1
- const a53_0x262ba7=a53_0x5790;(function(_0x24f160,_0x54437c){const _0xbd9a84=a53_0x5790,_0x219d0c=_0x24f160();while(!![]){try{const _0x1b43fc=parseInt(_0xbd9a84(0x20b))/0x1+-parseInt(_0xbd9a84(0x1f9))/0x2*(parseInt(_0xbd9a84(0x222))/0x3)+-parseInt(_0xbd9a84(0x227))/0x4*(parseInt(_0xbd9a84(0x21c))/0x5)+-parseInt(_0xbd9a84(0x230))/0x6*(-parseInt(_0xbd9a84(0x1f2))/0x7)+parseInt(_0xbd9a84(0x1ff))/0x8*(parseInt(_0xbd9a84(0x21d))/0x9)+-parseInt(_0xbd9a84(0x204))/0xa*(-parseInt(_0xbd9a84(0x1f8))/0xb)+parseInt(_0xbd9a84(0x1ef))/0xc*(-parseInt(_0xbd9a84(0x220))/0xd);if(_0x1b43fc===_0x54437c)break;else _0x219d0c['push'](_0x219d0c['shift']());}catch(_0x209f43){_0x219d0c['push'](_0x219d0c['shift']());}}}(a53_0x1238,0x1dadd));import{authDefinitions}from'../commands/auth/index.js';import{issueDefinitions}from'../commands/issue/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{serviceDefinitions}from'../commands/service/index.js';import{updateDefinition}from'../commands/update.js';import{doctorDefinition}from'../commands/doctor.js';function a53_0x5790(_0x3d4170,_0x20f871){_0x3d4170=_0x3d4170-0x1ec;const _0x1238ad=a53_0x1238();let _0x5790c1=_0x1238ad[_0x3d4170];return _0x5790c1;}import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{artifactDefinitions}from'../commands/artifact/index.js';import{personalBffDefinitions}from'../commands/personal-bff/index.js';import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{scheduleDefinitions}from'../commands/schedule/index.js';import{approvalDefinitions}from'../commands/approval/index.js';import{userAccountDefinitions}from'../commands/user-account/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x9ebefe){const _0xc503a2=a53_0x5790;for(const _0xdb8aa7 of _0x9ebefe){definitions[_0xc503a2(0x216)](_0xdb8aa7[_0xc503a2(0x210)]+':'+_0xdb8aa7[_0xc503a2(0x22b)],_0xdb8aa7);let _0x477bc8=serviceGroups[_0xc503a2(0x223)](_0xdb8aa7[_0xc503a2(0x210)]);!_0x477bc8&&(_0x477bc8=[],serviceGroups[_0xc503a2(0x216)](_0xdb8aa7[_0xc503a2(0x210)],_0x477bc8)),_0x477bc8[_0xc503a2(0x22d)](_0xdb8aa7);}}function registerService(_0x39a653,_0x162db2,_0x30032d){const _0x392cb4=a53_0x5790;registerDefinitions(_0x162db2);const _0x5012c2=_0x199e04=>_0x199e04==='read'?'':_0x199e04==='write'?_0x392cb4(0x1f4):_0x392cb4(0x203),_0x3da188={'service':_0x162db2[0x0]['service'],'label':_0x39a653,'commands':_0x162db2[_0x392cb4(0x21a)](_0x2a958b=>({'command':_0x2a958b['command'],'description':_0x2a958b['description'],'tag':_0x5012c2(_0x2a958b[_0x392cb4(0x1f0)])})),'defaultCommand':_0x30032d?.[_0x392cb4(0x217)]??(_0x30032d?.[_0x392cb4(0x1fb)]?_0x162db2[0x0]['command']:undefined),'isSingleCommand':_0x30032d?.['isSingleCommand']};serviceRegistry[_0x392cb4(0x22d)](_0x3da188),serviceByName['set'](_0x3da188[_0x392cb4(0x210)],_0x3da188);}registerService(a53_0x262ba7(0x200),authDefinitions,{'defaultCommand':a53_0x262ba7(0x1f3)}),registerService(a53_0x262ba7(0x226),userAccountDefinitions),registerService(a53_0x262ba7(0x219),appDefinitions,{'defaultCommand':a53_0x262ba7(0x1ec)}),registerService(a53_0x262ba7(0x214),workspaceDefinitions),registerService('Runtime\x20App\x20Config',appConfigDefinitions),registerService('Configuration',configDefinitions,{'defaultCommand':'list'}),registerService('Runtime\x20Roles',roleDefinitions,{'defaultCommand':'list'}),registerService('Runtime\x20Permissions',permitDefinitions),registerService(a53_0x262ba7(0x20e),apiDocDefinitions),registerService(a53_0x262ba7(0x22f),datasetDefinitions),registerService(a53_0x262ba7(0x1f6),dataDefinitions),registerService(a53_0x262ba7(0x1ee),sqlDefinitions),registerService('Backend\x20Function\x20Scripts',bffDefinitions),registerService(a53_0x262ba7(0x229),personalBffDefinitions),registerService(a53_0x262ba7(0x212),artifactDefinitions),registerService(a53_0x262ba7(0x1fc),fileDefinitions),registerService(a53_0x262ba7(0x20c),ocrDefinitions),registerService(a53_0x262ba7(0x22a),kbDefinitions),registerService(a53_0x262ba7(0x1f7),notificationDefinitions,{'defaultCommand':a53_0x262ba7(0x224)}),registerService(a53_0x262ba7(0x1f1),scheduleDefinitions,{'defaultCommand':a53_0x262ba7(0x1ec)}),registerService(a53_0x262ba7(0x22c),approvalDefinitions),registerService(a53_0x262ba7(0x213),serviceDefinitions,{'defaultCommand':a53_0x262ba7(0x1ec)}),registerService(a53_0x262ba7(0x20d),skillDefinitions,{'defaultCommand':a53_0x262ba7(0x202)}),registerService(a53_0x262ba7(0x207),cliSkillDefinitions,{'defaultCommand':a53_0x262ba7(0x202)}),registerService(a53_0x262ba7(0x22e),[updateDefinition],{'defaultCommand':a53_0x262ba7(0x21b),'isSingleCommand':!![]}),registerService(a53_0x262ba7(0x206),[doctorDefinition],{'isSingleCommand':!![]}),registerService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerService(a53_0x262ba7(0x1fd),issueDefinitions),registerService(a53_0x262ba7(0x221),logsDefinitions,{'defaultCommand':a53_0x262ba7(0x228)});export function findDefinition(_0x21c74f,_0x58a341){const _0x5e1f41=a53_0x262ba7;return definitions[_0x5e1f41(0x223)](_0x21c74f+':'+_0x58a341);}export function resolveRemovedCommand(_0xccc328,_0x55a619){const _0x41b3c2=a53_0x262ba7;if(_0xccc328==='auth'&&_0x55a619==='init')return{'command':_0x41b3c2(0x225),'message':_0x41b3c2(0x1f5),'hint':_0x41b3c2(0x20f)};if(_0xccc328===_0x41b3c2(0x208)&&_0x55a619===_0x41b3c2(0x1fa))return{'command':_0x41b3c2(0x205),'message':'`lovrabet\x20app\x20init`\x20has\x20been\x20removed.','hint':_0x41b3c2(0x211)};if(_0xccc328===_0x41b3c2(0x208)&&_0x55a619==='use')return{'command':_0x41b3c2(0x1ed),'message':_0x41b3c2(0x215),'hint':_0x41b3c2(0x209)};if(_0xccc328==='logs'&&_0x55a619===_0x41b3c2(0x201))return{'command':_0x41b3c2(0x21f),'message':_0x41b3c2(0x21e),'hint':_0x41b3c2(0x20a)};return undefined;}export function isKnownService(_0x371845){const _0x942bb6=a53_0x262ba7;return serviceByName[_0x942bb6(0x1fe)](_0x371845);}function a53_0x1238(){const _0x2bdc19=['61128atHoyt','risk','Agent\x20Schedules','7uOeZye','login','\x20\x20[write]','`lovrabet\x20auth\x20init`\x20has\x20been\x20removed.','Instant\x20API','Notification\x20Configs','43153NLbAEk','2IInQwJ','init','isSingleCommand','File','Issue\x20Reports','has','32WJwGTy','Authentication','clear','install','\x20\x20[high-risk-write]','530ivgkYc','app\x20init','Diagnostics','CLI\x20Built-in\x20Skill','app','Use\x20`lovrabet\x20workspace\x20use\x20--app\x20<name>`\x20instead.','Use\x20`lovrabet\x20logs\x20show`\x20to\x20view\x20command\x20history.','35136QsWFZY','OCR','Skills','API\x20Documentation','Use\x20`lovrabet\x20config\x20init`\x20for\x20node\x20configuration,\x20then\x20`lovrabet\x20auth\x20login`\x20for\x20AccessKey\x20authentication.','service','Use\x20`lovrabet\x20workspace\x20init\x20--appcode\x20<code>`\x20instead.','Artifacts','Service\x20Tree','Workspace','`lovrabet\x20app\x20use`\x20has\x20been\x20removed.','set','defaultCommand','values','App\x20Management','map','run','48395SrBqAn','310671eOnXEo','`lovrabet\x20logs\x20clear`\x20has\x20been\x20removed.','logs\x20clear','429kwFLCo','Logs','66786WHQDsZ','get','config-list','auth\x20init','User\x20Accounts','44pUzCVz','show','Personal\x20Backend\x20Function','Knowledge\x20Base','command','Approvals','push','Self\x20Update','Datasets','223602LKfpob','list','app\x20use','SQL\x20Queries'];a53_0x1238=function(){return _0x2bdc19;};return a53_0x1238();}export function getServiceEntry(_0x3ab8a4){const _0x4ed82c=a53_0x262ba7;return serviceByName[_0x4ed82c(0x223)](_0x3ab8a4);}export function getAllDefinitions(){const _0x1cd96c=a53_0x262ba7;return Array['from'](definitions[_0x1cd96c(0x218)]());}
1
+ const a53_0x56631b=a53_0x1b10;(function(_0x525831,_0x5623fe){const _0x38eeb8=a53_0x1b10,_0x1fda76=_0x525831();while(!![]){try{const _0xee274=parseInt(_0x38eeb8(0x192))/0x1+parseInt(_0x38eeb8(0x199))/0x2*(parseInt(_0x38eeb8(0x17c))/0x3)+-parseInt(_0x38eeb8(0x178))/0x4+-parseInt(_0x38eeb8(0x18f))/0x5+-parseInt(_0x38eeb8(0x182))/0x6*(parseInt(_0x38eeb8(0x1a3))/0x7)+parseInt(_0x38eeb8(0x16d))/0x8*(parseInt(_0x38eeb8(0x175))/0x9)+-parseInt(_0x38eeb8(0x1a1))/0xa*(-parseInt(_0x38eeb8(0x17f))/0xb);if(_0xee274===_0x5623fe)break;else _0x1fda76['push'](_0x1fda76['shift']());}catch(_0x168afd){_0x1fda76['push'](_0x1fda76['shift']());}}}(a53_0x56f5,0x59ff4));import{authDefinitions}from'../commands/auth/index.js';import{issueDefinitions}from'../commands/issue/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{serviceDefinitions}from'../commands/service/index.js';import{updateDefinition}from'../commands/update.js';import{doctorDefinition}from'../commands/doctor.js';function a53_0x56f5(){const _0xea7aa7=['command','3VbaAaX','Use\x20`lovrabet\x20logs\x20show`\x20to\x20view\x20command\x20history.','Use\x20`lovrabet\x20workspace\x20init\x20--appcode\x20<code>`\x20instead.','11inKntx','map','Use\x20`lovrabet\x20config\x20init`\x20for\x20node\x20configuration,\x20then\x20`lovrabet\x20auth\x20login`\x20for\x20AccessKey\x20authentication.','2418942KEMiLt','app\x20use','Diagnostics','Notification\x20Configs','get','Issue\x20Reports','\x20\x20[write]','Skills','Schema','`lovrabet\x20logs\x20clear`\x20has\x20been\x20removed.','OCR','set','description','1086860FjQcLF','Artifacts','Backend\x20Function\x20Scripts','147519rXxQRk','config-list','init','defaultCommand','Runtime\x20App\x20Config','show','auth\x20init','357886QmCFgP','Self\x20Update','Datasets','Logs','Personal\x20Backend\x20Function','Workspace','use','logs\x20clear','7249390YrlAXI','list','7CcZXfP','File','login','Runtime\x20Roles','service','CLI\x20Built-in\x20Skill','8zItPjq','push','Approvals','`lovrabet\x20app\x20init`\x20has\x20been\x20removed.','Knowledge\x20Base','Use\x20`lovrabet\x20workspace\x20use\x20--app\x20<name>`\x20instead.','install','Agent\x20Schedules','3234501UiUekx','`lovrabet\x20app\x20use`\x20has\x20been\x20removed.','isSingleCommand','1686532UVnPMv','SQL\x20Queries','Authentication'];a53_0x56f5=function(){return _0xea7aa7;};return a53_0x56f5();}import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{artifactDefinitions}from'../commands/artifact/index.js';import{personalBffDefinitions}from'../commands/personal-bff/index.js';import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{scheduleDefinitions}from'../commands/schedule/index.js';import{approvalDefinitions}from'../commands/approval/index.js';import{userAccountDefinitions}from'../commands/user-account/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';function a53_0x1b10(_0x3dec98,_0x215a1d){_0x3dec98=_0x3dec98-0x168;const _0x56f549=a53_0x56f5();let _0x1b104d=_0x56f549[_0x3dec98];return _0x1b104d;}export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x3a248e){const _0x29c104=a53_0x1b10;for(const _0x4bc5cc of _0x3a248e){definitions[_0x29c104(0x18d)](_0x4bc5cc[_0x29c104(0x16b)]+':'+_0x4bc5cc[_0x29c104(0x17b)],_0x4bc5cc);let _0x1991bd=serviceGroups['get'](_0x4bc5cc['service']);!_0x1991bd&&(_0x1991bd=[],serviceGroups['set'](_0x4bc5cc[_0x29c104(0x16b)],_0x1991bd)),_0x1991bd[_0x29c104(0x16e)](_0x4bc5cc);}}function registerService(_0x6ba451,_0x16000b,_0x445f66){const _0x31eb2c=a53_0x1b10;registerDefinitions(_0x16000b);const _0x220152=_0x1b6fe7=>_0x1b6fe7==='read'?'':_0x1b6fe7==='write'?_0x31eb2c(0x188):'\x20\x20[high-risk-write]',_0x22e323={'service':_0x16000b[0x0][_0x31eb2c(0x16b)],'label':_0x6ba451,'commands':_0x16000b[_0x31eb2c(0x180)](_0x16da95=>({'command':_0x16da95[_0x31eb2c(0x17b)],'description':_0x16da95[_0x31eb2c(0x18e)],'tag':_0x220152(_0x16da95['risk'])})),'defaultCommand':_0x445f66?.[_0x31eb2c(0x195)]??(_0x445f66?.['isSingleCommand']?_0x16000b[0x0][_0x31eb2c(0x17b)]:undefined),'isSingleCommand':_0x445f66?.[_0x31eb2c(0x177)]};serviceRegistry[_0x31eb2c(0x16e)](_0x22e323),serviceByName[_0x31eb2c(0x18d)](_0x22e323[_0x31eb2c(0x16b)],_0x22e323);}registerService(a53_0x56631b(0x17a),authDefinitions,{'defaultCommand':a53_0x56631b(0x169)}),registerService('User\x20Accounts',userAccountDefinitions),registerService('App\x20Management',appDefinitions,{'defaultCommand':a53_0x56631b(0x1a2)}),registerService(a53_0x56631b(0x19e),workspaceDefinitions),registerService(a53_0x56631b(0x196),appConfigDefinitions),registerService('Configuration',configDefinitions,{'defaultCommand':a53_0x56631b(0x1a2)}),registerService(a53_0x56631b(0x16a),roleDefinitions,{'defaultCommand':a53_0x56631b(0x1a2)}),registerService('Runtime\x20Permissions',permitDefinitions),registerService('API\x20Documentation',apiDocDefinitions),registerService(a53_0x56631b(0x19b),datasetDefinitions),registerService('Instant\x20API',dataDefinitions),registerService(a53_0x56631b(0x179),sqlDefinitions),registerService(a53_0x56631b(0x191),bffDefinitions),registerService(a53_0x56631b(0x19d),personalBffDefinitions),registerService(a53_0x56631b(0x190),artifactDefinitions),registerService(a53_0x56631b(0x168),fileDefinitions),registerService(a53_0x56631b(0x18c),ocrDefinitions),registerService(a53_0x56631b(0x171),kbDefinitions),registerService(a53_0x56631b(0x185),notificationDefinitions,{'defaultCommand':a53_0x56631b(0x193)}),registerService(a53_0x56631b(0x174),scheduleDefinitions,{'defaultCommand':a53_0x56631b(0x1a2)}),registerService(a53_0x56631b(0x16f),approvalDefinitions),registerService('Service\x20Tree',serviceDefinitions,{'defaultCommand':'list'}),registerService(a53_0x56631b(0x189),skillDefinitions,{'defaultCommand':a53_0x56631b(0x173)}),registerService(a53_0x56631b(0x16c),cliSkillDefinitions,{'defaultCommand':a53_0x56631b(0x173)}),registerService(a53_0x56631b(0x19a),[updateDefinition],{'defaultCommand':'run','isSingleCommand':!![]}),registerService(a53_0x56631b(0x184),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a53_0x56631b(0x18a),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a53_0x56631b(0x187),issueDefinitions),registerService(a53_0x56631b(0x19c),logsDefinitions,{'defaultCommand':a53_0x56631b(0x197)});export function findDefinition(_0x25c49b,_0x33e46c){const _0x255858=a53_0x56631b;return definitions[_0x255858(0x186)](_0x25c49b+':'+_0x33e46c);}export function resolveRemovedCommand(_0xcccf05,_0x2da0a8){const _0x31f6e8=a53_0x56631b;if(_0xcccf05==='auth'&&_0x2da0a8===_0x31f6e8(0x194))return{'command':_0x31f6e8(0x198),'message':'`lovrabet\x20auth\x20init`\x20has\x20been\x20removed.','hint':_0x31f6e8(0x181)};if(_0xcccf05==='app'&&_0x2da0a8==='init')return{'command':'app\x20init','message':_0x31f6e8(0x170),'hint':_0x31f6e8(0x17e)};if(_0xcccf05==='app'&&_0x2da0a8===_0x31f6e8(0x19f))return{'command':_0x31f6e8(0x183),'message':_0x31f6e8(0x176),'hint':_0x31f6e8(0x172)};if(_0xcccf05==='logs'&&_0x2da0a8==='clear')return{'command':_0x31f6e8(0x1a0),'message':_0x31f6e8(0x18b),'hint':_0x31f6e8(0x17d)};return undefined;}export function isKnownService(_0x52b5b9){return serviceByName['has'](_0x52b5b9);}export function getServiceEntry(_0x2a9dd4){const _0x9c24a=a53_0x56631b;return serviceByName[_0x9c24a(0x186)](_0x2a9dd4);}export function getAllDefinitions(){return Array['from'](definitions['values']());}
@@ -1 +1 @@
1
- const a54_0x49c4f9=a54_0x268b;(function(_0x1ea522,_0x16c8ab){const _0x8ff732=a54_0x268b,_0x5e8032=_0x1ea522();while(!![]){try{const _0xcc6e45=-parseInt(_0x8ff732(0x16f))/0x1*(parseInt(_0x8ff732(0x160))/0x2)+-parseInt(_0x8ff732(0x16c))/0x3+parseInt(_0x8ff732(0x164))/0x4+-parseInt(_0x8ff732(0x15f))/0x5+-parseInt(_0x8ff732(0x156))/0x6*(parseInt(_0x8ff732(0x170))/0x7)+parseInt(_0x8ff732(0x162))/0x8+parseInt(_0x8ff732(0x16d))/0x9;if(_0xcc6e45===_0x16c8ab)break;else _0x5e8032['push'](_0x5e8032['shift']());}catch(_0x533948){_0x5e8032['push'](_0x5e8032['shift']());}}}(a54_0xb213,0x41a42));import{createRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a54_0xb213(){const _0x3506d5=['/client/permit/role/create','13ccnBIv','7fsQxGu','1524378UvCyWA','CUSTOM','str','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','remark','trim','Role\x20name','body','high-risk-write','1463160WhQmRq','41246HUbYds','string','3232480OXsrHA','validation','941408WwxoOg','appCode','POST','build','--name\x20must\x20not\x20be\x20blank.','role','description','Optional\x20role\x20remark','626994JcrdVW','5879214TfLpvQ'];a54_0xb213=function(){return _0x3506d5;};return a54_0xb213();}function a54_0x268b(_0x36db03,_0xcf7ebc){_0x36db03=_0x36db03-0x156;const _0xb21398=a54_0xb213();let _0x268b70=_0xb21398[_0x36db03];return _0x268b70;}import{projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function input(_0x1d0d5d){const _0x27e430=a54_0x268b,_0x2ee127=_0x1d0d5d[_0x27e430(0x158)]('name')[_0x27e430(0x15b)]();if(!_0x2ee127)throw CliErrors[_0x27e430(0x163)](_0x27e430(0x168));const _0x1c2b24=_0x1d0d5d[_0x27e430(0x158)](_0x27e430(0x15a))[_0x27e430(0x15b)](),_0x25b610=readOptionalRuntimeRoleCode(_0x1d0d5d);return{'appCode':_0x1d0d5d[_0x27e430(0x165)],'roleName':_0x2ee127,..._0x25b610?{'roleCode':_0x25b610}:{},..._0x1c2b24?{'remark':_0x1c2b24}:{}};}export const roleCreate={'service':a54_0x49c4f9(0x169),'command':'create','description':'Create\x20a\x20runtime\x20CUSTOM\x20role','risk':a54_0x49c4f9(0x15e),'confirmationDescription':'Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','flags':[{'name':'name','type':a54_0x49c4f9(0x161),'required':!![],'description':a54_0x49c4f9(0x15c)},ROLE_CODE_FLAG,{'name':a54_0x49c4f9(0x15a),'type':'string','description':a54_0x49c4f9(0x16b)}],async 'validate'(_0x18286d){input(_0x18286d);},async 'dryRun'(_0x2abf02){const _0x53dd61=a54_0x49c4f9;return dryRun(_0x53dd61(0x166),_0x53dd61(0x16e))[_0x53dd61(0x15d)]({'roleType':_0x53dd61(0x157),...input(_0x2abf02)})[_0x53dd61(0x16a)](_0x53dd61(0x159))[_0x53dd61(0x167)]();},async 'execute'(_0x33e48f){const _0x53363b=a54_0x49c4f9,_0x1b8175=await createRuntimeAppRole(input(_0x33e48f));return{'ok':!![],'data':runtimeRoleWriteResult('create',{'roleId':_0x1b8175['id']},null,projectRuntimeRole(_0x1b8175),{'method':'POST','path':_0x53363b(0x16e)})};}};
1
+ const a54_0x412a15=a54_0x5621;(function(_0x1e3e1b,_0x1823bb){const _0x569c36=a54_0x5621,_0x2737ac=_0x1e3e1b();while(!![]){try{const _0x5ddd2c=-parseInt(_0x569c36(0x175))/0x1*(-parseInt(_0x569c36(0x166))/0x2)+-parseInt(_0x569c36(0x163))/0x3*(-parseInt(_0x569c36(0x17b))/0x4)+parseInt(_0x569c36(0x16d))/0x5+-parseInt(_0x569c36(0x168))/0x6+-parseInt(_0x569c36(0x174))/0x7*(parseInt(_0x569c36(0x173))/0x8)+-parseInt(_0x569c36(0x176))/0x9+-parseInt(_0x569c36(0x16c))/0xa;if(_0x5ddd2c===_0x1823bb)break;else _0x2737ac['push'](_0x2737ac['shift']());}catch(_0x5f53d6){_0x2737ac['push'](_0x2737ac['shift']());}}}(a54_0xf1a3,0xdd00a));import{createRuntimeAppRole}from'../../core/api-client.js';function a54_0x5621(_0x374f26,_0x5bebd6){_0x374f26=_0x374f26-0x161;const _0xf1a3bb=a54_0xf1a3();let _0x56212c=_0xf1a3bb[_0x374f26];return _0x56212c;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function a54_0xf1a3(){const _0x4ea460=['POST','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','3652040YUOWCX','7027670liZjlD','--name\x20must\x20not\x20be\x20blank.','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','validation','trim','create','8iKgCEC','5279113pjHvWD','122SUIfwU','12734001wEQTST','Role\x20name','build','str','role','4EHEiCZ','string','remark','3578583QWwoAD','/client/permit/role/create','appCode','17076mYsEBo','name','1203318OLLOzv','CUSTOM'];a54_0xf1a3=function(){return _0x4ea460;};return a54_0xf1a3();}function input(_0x58b530){const _0xea8036=a54_0x5621,_0x1cd80a=_0x58b530[_0xea8036(0x179)]('name')[_0xea8036(0x171)]();if(!_0x1cd80a)throw CliErrors[_0xea8036(0x170)](_0xea8036(0x16e));const _0x243266=_0x58b530['str'](_0xea8036(0x162))['trim'](),_0x176ec9=readOptionalRuntimeRoleCode(_0x58b530);return{'appCode':_0x58b530[_0xea8036(0x165)],'roleName':_0x1cd80a,..._0x176ec9?{'roleCode':_0x176ec9}:{},..._0x243266?{'remark':_0x243266}:{}};}export const roleCreate={'service':a54_0x412a15(0x17a),'command':a54_0x412a15(0x172),'description':'Create\x20a\x20runtime\x20CUSTOM\x20role','risk':'high-risk-write','confirmationDescription':a54_0x412a15(0x16f),'flags':[{'name':a54_0x412a15(0x167),'type':a54_0x412a15(0x161),'required':!![],'description':a54_0x412a15(0x177)},ROLE_CODE_FLAG,{'name':a54_0x412a15(0x162),'type':'string','description':'Optional\x20role\x20remark'}],async 'validate'(_0xa39f56){input(_0xa39f56);},async 'dryRun'(_0x587547){const _0x5cad99=a54_0x412a15;return dryRun(_0x5cad99(0x16a),_0x5cad99(0x164))['body']({'roleType':_0x5cad99(0x169),...input(_0x587547)})['description'](_0x5cad99(0x16b))[_0x5cad99(0x178)]();},async 'execute'(_0x3672e9){const _0x438b7f=a54_0x412a15,_0x421aa3=await createRuntimeAppRole(input(_0x3672e9));return{'ok':!![],'data':runtimeRoleWriteResult(_0x438b7f(0x172),{'roleId':_0x421aa3['id']},null,projectRuntimeRole(_0x421aa3),{'method':_0x438b7f(0x16a),'path':_0x438b7f(0x164)})};}};