@lovrabet/lovrabet-cli 2.3.11 → 2.3.12-beta.1

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 (187) 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.d.ts +13 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.js +1 -1
  38. package/lib/commands/issue/index.js +1 -1
  39. package/lib/commands/issue/report.js +1 -1
  40. package/lib/commands/kb/index.js +1 -1
  41. package/lib/commands/logs/index.js +1 -1
  42. package/lib/commands/notification/config-list.js +1 -1
  43. package/lib/commands/notification/index.js +1 -1
  44. package/lib/commands/notification/shared.js +1 -1
  45. package/lib/commands/ocr/index.js +1 -1
  46. package/lib/commands/permit/dataset-get.js +1 -1
  47. package/lib/commands/permit/dataset-set.js +1 -1
  48. package/lib/commands/permit/index.js +1 -1
  49. package/lib/commands/permit/page-get.js +1 -1
  50. package/lib/commands/permit/page-set.js +1 -1
  51. package/lib/commands/permit/role-menus-set.js +1 -1
  52. package/lib/commands/permit/role-menus.js +1 -1
  53. package/lib/commands/permit/shared.js +1 -1
  54. package/lib/commands/personal-bff/index.js +1 -1
  55. package/lib/commands/registry.js +1 -1
  56. package/lib/commands/role/create.js +1 -1
  57. package/lib/commands/role/delete.js +1 -1
  58. package/lib/commands/role/detail.js +1 -1
  59. package/lib/commands/role/index.js +1 -1
  60. package/lib/commands/role/list.js +1 -1
  61. package/lib/commands/role/shared.js +1 -1
  62. package/lib/commands/role/update.js +1 -1
  63. package/lib/commands/role/user-add.js +1 -1
  64. package/lib/commands/role/user-remove.js +1 -1
  65. package/lib/commands/schedule/index.js +1 -1
  66. package/lib/commands/schema.js +1 -1
  67. package/lib/commands/service/dynamic.js +1 -1
  68. package/lib/commands/service/function-name-adapter.js +1 -1
  69. package/lib/commands/service/index.js +1 -1
  70. package/lib/commands/service/registry.js +1 -1
  71. package/lib/commands/skill/commands/create.js +1 -1
  72. package/lib/commands/skill/commands/diagram.js +1 -1
  73. package/lib/commands/skill/commands/install.js +1 -1
  74. package/lib/commands/skill/commands/list.js +1 -1
  75. package/lib/commands/skill/commands/push.js +1 -1
  76. package/lib/commands/skill/commands/validate.js +1 -1
  77. package/lib/commands/skill/diagram.js +1 -1
  78. package/lib/commands/skill/flags.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/skill/manifest-helpers.js +1 -1
  81. package/lib/commands/skill/push-execute.js +1 -1
  82. package/lib/commands/skill/push-flow-helpers.js +1 -1
  83. package/lib/commands/skill/push-retarget.js +1 -1
  84. package/lib/commands/skill/scopes.js +1 -1
  85. package/lib/commands/skill/summary.js +1 -1
  86. package/lib/commands/skill/templates.js +1 -1
  87. package/lib/commands/skill/validate.js +1 -1
  88. package/lib/commands/sql/detail.js +1 -1
  89. package/lib/commands/sql/exec.js +1 -1
  90. package/lib/commands/sql/index.js +1 -1
  91. package/lib/commands/update.js +1 -1
  92. package/lib/commands/user-account/bind.js +1 -1
  93. package/lib/commands/user-account/index.js +1 -1
  94. package/lib/commands/workspace/index.js +1 -1
  95. package/lib/config/domain-config.js +1 -1
  96. package/lib/config/schema.js +1 -1
  97. package/lib/constant/app.js +1 -1
  98. package/lib/constant/auth-mode.js +1 -1
  99. package/lib/constant/cli.js +1 -1
  100. package/lib/constant/defaults.js +1 -1
  101. package/lib/constant/distribution.js +1 -1
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.js +1 -1
  104. package/lib/constant/output.js +1 -1
  105. package/lib/constant/product.js +1 -1
  106. package/lib/constant/region.js +1 -1
  107. package/lib/constant/risk.js +1 -1
  108. package/lib/constant/url.js +1 -1
  109. package/lib/context.js +1 -1
  110. package/lib/core/api-client.d.ts +3 -2
  111. package/lib/core/api-client.js +1 -1
  112. package/lib/core/db-resolver.js +1 -1
  113. package/lib/core/kb-management-client.js +1 -1
  114. package/lib/core/kb-sdk-errors.js +1 -1
  115. package/lib/core/kb-search-client.js +1 -1
  116. package/lib/core/sdk-client.js +1 -1
  117. package/lib/errors.js +1 -1
  118. package/lib/framework/access-error.js +1 -1
  119. package/lib/framework/build-all-flags.js +1 -1
  120. package/lib/framework/dryrun.js +1 -1
  121. package/lib/framework/flags.js +1 -1
  122. package/lib/framework/help.js +1 -1
  123. package/lib/framework/index.js +1 -1
  124. package/lib/framework/output.js +1 -1
  125. package/lib/framework/preparse.js +1 -1
  126. package/lib/framework/rate-limit.js +1 -1
  127. package/lib/framework/raw-flags.js +1 -1
  128. package/lib/framework/response.js +1 -1
  129. package/lib/framework/runner-confirmation.js +1 -1
  130. package/lib/framework/runner-error.js +1 -1
  131. package/lib/framework/runner.js +1 -1
  132. package/lib/framework/schema-export.js +1 -1
  133. package/lib/framework/service-order.js +1 -1
  134. package/lib/framework/types.js +1 -1
  135. package/lib/generated/build-info.d.ts +4 -4
  136. package/lib/generated/build-info.js +1 -1
  137. package/lib/generated/official-routing.js +1 -1
  138. package/lib/generated/routing-contract.js +1 -1
  139. package/lib/help.js +1 -1
  140. package/lib/postinstall.js +1 -1
  141. package/lib/runtime/confirmation.js +1 -1
  142. package/lib/runtime/event.js +1 -1
  143. package/lib/runtime/index.js +1 -1
  144. package/lib/runtime/queue.js +1 -1
  145. package/lib/runtime/resolve.js +1 -1
  146. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  147. package/lib/services/dataset-import/excel-reader.js +1 -1
  148. package/lib/services/dataset-import/image-bytes.js +1 -1
  149. package/lib/services/dataset-import/image-ooxml.js +1 -1
  150. package/lib/services/dataset-import/image-runner.js +1 -1
  151. package/lib/services/dataset-import/metadata.js +1 -1
  152. package/lib/services/dataset-import/preview.js +1 -1
  153. package/lib/services/dataset-import/runner.js +1 -1
  154. package/lib/skills/builtin-skill.js +1 -1
  155. package/lib/skills/npx-skills-add.js +1 -1
  156. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  157. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  158. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  159. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  160. package/lib/skills/runtime-skill-sync/links.js +1 -1
  161. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  162. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  163. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  164. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  165. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  166. package/lib/skills/runtime-skill-sync/push.js +1 -1
  167. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  169. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  170. package/lib/skills/runtime-skill-sync.js +1 -1
  171. package/lib/skills/skill-presence.js +1 -1
  172. package/lib/utils/access-key-redaction.js +1 -1
  173. package/lib/utils/apply-jq-filter.js +1 -1
  174. package/lib/utils/cli-version-check.js +1 -1
  175. package/lib/utils/cli-version-policy.js +1 -1
  176. package/lib/utils/logger.js +1 -1
  177. package/lib/utils/lossless-json.js +1 -1
  178. package/lib/utils/params.js +1 -1
  179. package/lib/utils/positive-safe-integer.js +1 -1
  180. package/lib/utils/redaction.js +1 -1
  181. package/lib/utils/runtime-user-id.js +1 -1
  182. package/lib/utils/update-notice.js +1 -1
  183. package/lib/utils/version.js +1 -1
  184. package/lib/utils/write-cli-side-channel.js +1 -1
  185. package/package.json +1 -1
  186. package/skills/lovrabet/SKILL.md +1 -1
  187. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a54_0x290c70=a54_0x1b60;(function(_0x2c121c,_0x51008e){const _0x58394e=a54_0x1b60,_0x20b472=_0x2c121c();while(!![]){try{const _0x2671f9=-parseInt(_0x58394e(0x110))/0x1+-parseInt(_0x58394e(0x109))/0x2*(-parseInt(_0x58394e(0x11b))/0x3)+-parseInt(_0x58394e(0x11e))/0x4+parseInt(_0x58394e(0x106))/0x5+-parseInt(_0x58394e(0x105))/0x6*(parseInt(_0x58394e(0x11a))/0x7)+parseInt(_0x58394e(0x111))/0x8+parseInt(_0x58394e(0x10e))/0x9*(parseInt(_0x58394e(0x11d))/0xa);if(_0x2671f9===_0x51008e)break;else _0x20b472['push'](_0x20b472['shift']());}catch(_0x2ed4f6){_0x20b472['push'](_0x20b472['shift']());}}}(a54_0x1994,0x37e09));import{createRuntimeAppRole}from'../../core/api-client.js';function a54_0x1b60(_0x15ef22,_0x27bd25){_0x15ef22=_0x15ef22-0x105;const _0x199450=a54_0x1994();let _0x1b60ba=_0x199450[_0x15ef22];return _0x1b60ba;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function input(_0x41ac4b){const _0x56ad2f=a54_0x1b60,_0x5c4a90=_0x41ac4b[_0x56ad2f(0x11c)](_0x56ad2f(0x117))[_0x56ad2f(0x114)]();if(!_0x5c4a90)throw CliErrors['validation']('--name\x20must\x20not\x20be\x20blank.');const _0x212904=_0x41ac4b[_0x56ad2f(0x11c)]('remark')[_0x56ad2f(0x114)](),_0x4aebc3=readOptionalRuntimeRoleCode(_0x41ac4b);return{'appCode':_0x41ac4b[_0x56ad2f(0x11f)],'roleName':_0x5c4a90,..._0x4aebc3?{'roleCode':_0x4aebc3}:{},..._0x212904?{'remark':_0x212904}:{}};}export const roleCreate={'service':a54_0x290c70(0x112),'command':a54_0x290c70(0x108),'description':a54_0x290c70(0x10b),'risk':a54_0x290c70(0x10a),'confirmationDescription':a54_0x290c70(0x116),'flags':[{'name':a54_0x290c70(0x117),'type':a54_0x290c70(0x107),'required':!![],'description':a54_0x290c70(0x115)},ROLE_CODE_FLAG,{'name':a54_0x290c70(0x10f),'type':a54_0x290c70(0x107),'description':'Optional\x20role\x20remark'}],async 'validate'(_0x7d1e8b){input(_0x7d1e8b);},async 'dryRun'(_0x5dac6b){const _0x2f99ec=a54_0x290c70;return dryRun('POST',_0x2f99ec(0x119))['body']({'roleType':_0x2f99ec(0x113),...input(_0x5dac6b)})['description'](_0x2f99ec(0x10c))[_0x2f99ec(0x10d)]();},async 'execute'(_0xa32f0){const _0x5d1d24=a54_0x290c70,_0x37b0af=await createRuntimeAppRole(input(_0xa32f0));return{'ok':!![],'data':runtimeRoleWriteResult(_0x5d1d24(0x108),{'roleId':_0x37b0af['id']},null,projectRuntimeRole(_0x37b0af),{'method':_0x5d1d24(0x118),'path':_0x5d1d24(0x119)})};}};function a54_0x1994(){const _0x33881f=['30609NdGgQn','str','90GpsRTz','1544408JWMBjW','appCode','42QzkPVN','686115BLIKqe','string','create','44difIyE','high-risk-write','Create\x20a\x20runtime\x20CUSTOM\x20role','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','build','304911aoizSt','remark','79116PBWpVd','1800024bpYgBP','role','CUSTOM','trim','Role\x20name','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','name','POST','/client/permit/role/create','197512wuWdVQ'];a54_0x1994=function(){return _0x33881f;};return a54_0x1994();}
1
+ function a54_0xc93f(){const _0x3bb9d8=['CUSTOM','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','1427279qtDZeD','33612IdXaCX','Role\x20name','13021710xsmcan','1069CdPqJo','20UZoUUd','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','remark','body','high-risk-write','308IUuywQ','POST','name','create','Create\x20a\x20runtime\x20CUSTOM\x20role','56jAhFLa','validation','description','/client/permit/role/create','15jRTBTe','build','appCode','13730832lFXbsn','role','string','56832EkZkfG','trim','2045184InNaWj','str','276qwoPwO','--name\x20must\x20not\x20be\x20blank.','Optional\x20role\x20remark'];a54_0xc93f=function(){return _0x3bb9d8;};return a54_0xc93f();}const a54_0xe763bf=a54_0x3207;(function(_0x3533c6,_0x14dfd3){const _0x4acd1c=a54_0x3207,_0x8d4e12=_0x3533c6();while(!![]){try{const _0x328fc4=-parseInt(_0x4acd1c(0xc4))/0x1*(parseInt(_0x4acd1c(0xc5))/0x2)+parseInt(_0x4acd1c(0xdd))/0x3*(parseInt(_0x4acd1c(0xd9))/0x4)+parseInt(_0x4acd1c(0xd3))/0x5*(parseInt(_0x4acd1c(0xdb))/0x6)+-parseInt(_0x4acd1c(0xe2))/0x7*(-parseInt(_0x4acd1c(0xcf))/0x8)+-parseInt(_0x4acd1c(0xd6))/0x9+-parseInt(_0x4acd1c(0xc3))/0xa+parseInt(_0x4acd1c(0xca))/0xb*(-parseInt(_0x4acd1c(0xc1))/0xc);if(_0x328fc4===_0x14dfd3)break;else _0x8d4e12['push'](_0x8d4e12['shift']());}catch(_0x5164cc){_0x8d4e12['push'](_0x8d4e12['shift']());}}}(a54_0xc93f,0xcd186));function a54_0x3207(_0x433184,_0x34512b){_0x433184=_0x433184-0xc1;const _0xc93fa0=a54_0xc93f();let _0x32079c=_0xc93fa0[_0x433184];return _0x32079c;}import{createRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function input(_0xf7135e){const _0x35635f=a54_0x3207,_0x2e53de=_0xf7135e[_0x35635f(0xdc)](_0x35635f(0xcc))[_0x35635f(0xda)]();if(!_0x2e53de)throw CliErrors[_0x35635f(0xd0)](_0x35635f(0xde));const _0x3d4356=_0xf7135e['str'](_0x35635f(0xc7))[_0x35635f(0xda)](),_0x40258d=readOptionalRuntimeRoleCode(_0xf7135e);return{'appCode':_0xf7135e[_0x35635f(0xd5)],'roleName':_0x2e53de,..._0x40258d?{'roleCode':_0x40258d}:{},..._0x3d4356?{'remark':_0x3d4356}:{}};}export const roleCreate={'service':a54_0xe763bf(0xd7),'command':a54_0xe763bf(0xcd),'description':a54_0xe763bf(0xce),'risk':a54_0xe763bf(0xc9),'confirmationDescription':a54_0xe763bf(0xe1),'flags':[{'name':a54_0xe763bf(0xcc),'type':a54_0xe763bf(0xd8),'required':!![],'description':a54_0xe763bf(0xc2)},ROLE_CODE_FLAG,{'name':a54_0xe763bf(0xc7),'type':a54_0xe763bf(0xd8),'description':a54_0xe763bf(0xdf)}],async 'validate'(_0x5b96f2){input(_0x5b96f2);},async 'dryRun'(_0x2effe1){const _0x38540e=a54_0xe763bf;return dryRun(_0x38540e(0xcb),_0x38540e(0xd2))[_0x38540e(0xc8)]({'roleType':_0x38540e(0xe0),...input(_0x2effe1)})[_0x38540e(0xd1)](_0x38540e(0xc6))[_0x38540e(0xd4)]();},async 'execute'(_0x5d506d){const _0x308fe1=a54_0xe763bf,_0x570305=await createRuntimeAppRole(input(_0x5d506d));return{'ok':!![],'data':runtimeRoleWriteResult('create',{'roleId':_0x570305['id']},null,projectRuntimeRole(_0x570305),{'method':_0x308fe1(0xcb),'path':'/client/permit/role/create'})};}};
@@ -1 +1 @@
1
- const a55_0x21ded2=a55_0x381f;(function(_0x4af5a2,_0x314e7c){const _0x500a9b=a55_0x381f,_0x102d63=_0x4af5a2();while(!![]){try{const _0x2e4161=parseInt(_0x500a9b(0x147))/0x1*(parseInt(_0x500a9b(0x13e))/0x2)+parseInt(_0x500a9b(0x144))/0x3+parseInt(_0x500a9b(0x146))/0x4+parseInt(_0x500a9b(0x142))/0x5+parseInt(_0x500a9b(0x13b))/0x6+-parseInt(_0x500a9b(0x139))/0x7*(parseInt(_0x500a9b(0x143))/0x8)+-parseInt(_0x500a9b(0x145))/0x9*(parseInt(_0x500a9b(0x138))/0xa);if(_0x2e4161===_0x314e7c)break;else _0x102d63['push'](_0x102d63['shift']());}catch(_0x576613){_0x102d63['push'](_0x102d63['shift']());}}}(a55_0x39ad,0x34222));function a55_0x381f(_0x107619,_0x1a72fa){_0x107619=_0x107619-0x137;const _0x39adfd=a55_0x39ad();let _0x381f8a=_0x39adfd[_0x107619];return _0x381f8a;}function a55_0x39ad(){const _0x58f572=['/client/permit/role/delete','num','2021655AXFEra','88GLdzrJ','1215741awuozn','435627BjBQJu','1382508CFaFir','6362bukkJa','delete','description','Deletes\x20the\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20Membership\x20and\x20permission\x20config\x20for\x20that\x20role\x20may\x20become\x20invalid.','250jnzGtU','139447oPblkT','build','2314482gUEaFW','role','high-risk-write','32evHHqu','POST'];a55_0x39ad=function(){return _0x58f572;};return a55_0x39ad();}import{deleteRuntimeAppRole}from'../../core/api-client.js';import{dryRun}from'../../framework/dryrun.js';import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';async function prepare(_0x20ea1c){const _0x1dd2fb=a55_0x381f,_0x24c157=await getRuntimeRoleById(_0x20ea1c['appCode'],_0x20ea1c[_0x1dd2fb(0x141)]('id'));return assertCustomRuntimeRole(_0x24c157,_0x1dd2fb(0x148)),_0x24c157;}export const roleDelete={'service':a55_0x21ded2(0x13c),'command':'delete','description':'Delete\x20a\x20runtime\x20CUSTOM\x20role','risk':a55_0x21ded2(0x13d),'confirmationDescription':a55_0x21ded2(0x137),'flags':[ROLE_ID_FLAG],async 'dryRun'(_0x499ea1){const _0x19ac35=a55_0x21ded2,_0x316e5c=await prepare(_0x499ea1);return dryRun(_0x19ac35(0x13f),_0x19ac35(0x140))['body']({'id':_0x316e5c['id']})[_0x19ac35(0x149)]('Preview:\x20delete\x20a\x20runtime\x20CUSTOM\x20role')[_0x19ac35(0x13a)]();},async 'execute'(_0x56694b){const _0x1d9cea=a55_0x21ded2,_0x4b8acb=await prepare(_0x56694b);return await deleteRuntimeAppRole(_0x4b8acb['id']),{'ok':!![],'data':runtimeRoleWriteResult(_0x1d9cea(0x148),{'roleId':_0x4b8acb['id']},projectRuntimeRole(_0x4b8acb),null,{'method':_0x1d9cea(0x13f),'path':'/client/permit/role/delete'})};}};
1
+ const a55_0x5ef66b=a55_0x26fa;(function(_0x1efbcc,_0x7eca5){const _0x5e5434=a55_0x26fa,_0x3e4e63=_0x1efbcc();while(!![]){try{const _0x17f152=-parseInt(_0x5e5434(0x13e))/0x1*(-parseInt(_0x5e5434(0x14d))/0x2)+-parseInt(_0x5e5434(0x13d))/0x3+parseInt(_0x5e5434(0x146))/0x4+parseInt(_0x5e5434(0x14e))/0x5+-parseInt(_0x5e5434(0x14b))/0x6*(-parseInt(_0x5e5434(0x14a))/0x7)+parseInt(_0x5e5434(0x148))/0x8*(-parseInt(_0x5e5434(0x149))/0x9)+-parseInt(_0x5e5434(0x147))/0xa;if(_0x17f152===_0x7eca5)break;else _0x3e4e63['push'](_0x3e4e63['shift']());}catch(_0x3971ae){_0x3e4e63['push'](_0x3e4e63['shift']());}}}(a55_0x17c0,0x65e32));function a55_0x26fa(_0x32f5be,_0x5d0ee7){_0x32f5be=_0x32f5be-0x13d;const _0x17c07a=a55_0x17c0();let _0x26fa68=_0x17c07a[_0x32f5be];return _0x26fa68;}import{deleteRuntimeAppRole}from'../../core/api-client.js';import{dryRun}from'../../framework/dryrun.js';import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';async function prepare(_0x3d82e3){const _0xa3772c=a55_0x26fa,_0x40e0fc=await getRuntimeRoleById(_0x3d82e3[_0xa3772c(0x143)],_0x3d82e3[_0xa3772c(0x14c)]('id'));return assertCustomRuntimeRole(_0x40e0fc,_0xa3772c(0x145)),_0x40e0fc;}export const roleDelete={'service':a55_0x5ef66b(0x144),'command':a55_0x5ef66b(0x145),'description':'Delete\x20a\x20runtime\x20CUSTOM\x20role','risk':'high-risk-write','confirmationDescription':a55_0x5ef66b(0x140),'flags':[ROLE_ID_FLAG],async 'dryRun'(_0xfb8715){const _0x5a8832=a55_0x5ef66b,_0x437c17=await prepare(_0xfb8715);return dryRun(_0x5a8832(0x13f),_0x5a8832(0x141))['body']({'id':_0x437c17['id']})[_0x5a8832(0x14f)]('Preview:\x20delete\x20a\x20runtime\x20CUSTOM\x20role')[_0x5a8832(0x142)]();},async 'execute'(_0x9cac0d){const _0x5f04a9=a55_0x5ef66b,_0xa0ffb2=await prepare(_0x9cac0d);return await deleteRuntimeAppRole(_0xa0ffb2['id']),{'ok':!![],'data':runtimeRoleWriteResult(_0x5f04a9(0x145),{'roleId':_0xa0ffb2['id']},projectRuntimeRole(_0xa0ffb2),null,{'method':_0x5f04a9(0x13f),'path':_0x5f04a9(0x141)})};}};function a55_0x17c0(){const _0x53903d=['description','1864827rCAsaj','369137NILvmy','POST','Deletes\x20the\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20Membership\x20and\x20permission\x20config\x20for\x20that\x20role\x20may\x20become\x20invalid.','/client/permit/role/delete','build','appCode','role','delete','2901812iuREfo','7330790cTeCob','16anreIr','817677eweiDb','42WLOwxi','378996USklUq','num','4rGYxgN','555005sKULBP'];a55_0x17c0=function(){return _0x53903d;};return a55_0x17c0();}
@@ -1 +1 @@
1
- const a56_0x889274=a56_0x1c89;function a56_0x1c89(_0x3e326b,_0x1fea57){_0x3e326b=_0x3e326b-0xe0;const _0x497a09=a56_0x497a();let _0x1c89f9=_0x497a09[_0x3e326b];return _0x1c89f9;}function a56_0x497a(){const _0x3e9095=['606027NVNBwD','3378600FIwXWs','8jJYFKs','353038JrIdeG','1671229fDDxEz','role','517wrzWnW','76mXPWve','118205mZuUiA','Show\x20one\x20runtime\x20role\x20by\x20ID','2KxTLwz','159690fLKFoq','num','appCode','1397850oROHZa'];a56_0x497a=function(){return _0x3e9095;};return a56_0x497a();}(function(_0x55f0ba,_0x3e6a90){const _0x7dad2a=a56_0x1c89,_0x5c2dc2=_0x55f0ba();while(!![]){try{const _0xf4121=parseInt(_0x7dad2a(0xe8))/0x1*(-parseInt(_0x7dad2a(0xe1))/0x2)+-parseInt(_0x7dad2a(0xed))/0x3+parseInt(_0x7dad2a(0xe5))/0x4*(parseInt(_0x7dad2a(0xe6))/0x5)+parseInt(_0x7dad2a(0xec))/0x6+-parseInt(_0x7dad2a(0xe2))/0x7+parseInt(_0x7dad2a(0xe0))/0x8*(-parseInt(_0x7dad2a(0xee))/0x9)+parseInt(_0x7dad2a(0xe9))/0xa*(parseInt(_0x7dad2a(0xe4))/0xb);if(_0xf4121===_0x3e6a90)break;else _0x5c2dc2['push'](_0x5c2dc2['shift']());}catch(_0x3791d5){_0x5c2dc2['push'](_0x5c2dc2['shift']());}}}(a56_0x497a,0x4054f));import{getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';export const roleDetail={'service':a56_0x889274(0xe3),'command':'detail','description':a56_0x889274(0xe7),'risk':'read','flags':[ROLE_ID_FLAG],async 'execute'(_0x23795e){const _0x347c48=a56_0x889274,_0x3007c3=await getRuntimeRoleById(_0x23795e[_0x347c48(0xeb)],_0x23795e[_0x347c48(0xea)]('id'));return{'ok':!![],'data':{'scope':'runtime','role':projectRuntimeRole(_0x3007c3)}};}};
1
+ const a56_0x1d6782=a56_0x274c;function a56_0x26be(){const _0x5129f7=['appCode','2519eqSErr','15finrTo','572542SyjSuS','detail','885aeUIDv','294dqxggm','num','7189GfkGzd','5661872KbxhWi','2016MZkGfM','runtime','16166cybGhr','role','Show\x20one\x20runtime\x20role\x20by\x20ID','34660gFRvvs','7460OIFCwM','read','61284MAorVL'];a56_0x26be=function(){return _0x5129f7;};return a56_0x26be();}(function(_0x3fb0cc,_0x3680f6){const _0x42850a=a56_0x274c,_0x1c6217=_0x3fb0cc();while(!![]){try{const _0x326fe8=-parseInt(_0x42850a(0xf6))/0x1+parseInt(_0x42850a(0x100))/0x2*(parseInt(_0x42850a(0xff))/0x3)+-parseInt(_0x42850a(0xf9))/0x4*(-parseInt(_0x42850a(0x102))/0x5)+parseInt(_0x42850a(0x103))/0x6*(-parseInt(_0x42850a(0x105))/0x7)+-parseInt(_0x42850a(0x106))/0x8+-parseInt(_0x42850a(0x107))/0x9*(parseInt(_0x42850a(0xfa))/0xa)+parseInt(_0x42850a(0xfe))/0xb*(-parseInt(_0x42850a(0xfc))/0xc);if(_0x326fe8===_0x3680f6)break;else _0x1c6217['push'](_0x1c6217['shift']());}catch(_0xc5e447){_0x1c6217['push'](_0x1c6217['shift']());}}}(a56_0x26be,0xd08d6));import{getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';function a56_0x274c(_0x4af7fd,_0x449e54){_0x4af7fd=_0x4af7fd-0xf5;const _0x26be52=a56_0x26be();let _0x274caf=_0x26be52[_0x4af7fd];return _0x274caf;}export const roleDetail={'service':a56_0x1d6782(0xf7),'command':a56_0x1d6782(0x101),'description':a56_0x1d6782(0xf8),'risk':a56_0x1d6782(0xfb),'flags':[ROLE_ID_FLAG],async 'execute'(_0x276ea8){const _0x1a7d0b=a56_0x1d6782,_0x4e8dc1=await getRuntimeRoleById(_0x276ea8[_0x1a7d0b(0xfd)],_0x276ea8[_0x1a7d0b(0x104)]('id'));return{'ok':!![],'data':{'scope':_0x1a7d0b(0xf5),'role':projectRuntimeRole(_0x4e8dc1)}};}};
@@ -1 +1 @@
1
- (function(_0x53f956,_0x4adbe9){const _0x304fe9=a57_0x247d,_0x51983f=_0x53f956();while(!![]){try{const _0x2fafdd=-parseInt(_0x304fe9(0x176))/0x1+parseInt(_0x304fe9(0x172))/0x2+-parseInt(_0x304fe9(0x170))/0x3+parseInt(_0x304fe9(0x171))/0x4*(-parseInt(_0x304fe9(0x174))/0x5)+parseInt(_0x304fe9(0x16e))/0x6+-parseInt(_0x304fe9(0x173))/0x7*(parseInt(_0x304fe9(0x175))/0x8)+parseInt(_0x304fe9(0x16f))/0x9;if(_0x2fafdd===_0x4adbe9)break;else _0x51983f['push'](_0x51983f['shift']());}catch(_0x846d99){_0x51983f['push'](_0x51983f['shift']());}}}(a57_0x450c,0x91df6));import{roleList}from'../../commands/role/list.js';import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';function a57_0x450c(){const _0x25e043=['1348095JyOBTt','712rRxHYY','1974PWDAFe','7ePYdIR','25405oaBBKx','2375880ElNHow','315734ymmEkz','1330398alwOjf','21071484aFYrSp'];a57_0x450c=function(){return _0x25e043;};return a57_0x450c();}import{roleUserAdd}from'../../commands/role/user-add.js';function a57_0x247d(_0x529745,_0x28748b){_0x529745=_0x529745-0x16e;const _0x450cdd=a57_0x450c();let _0x247d74=_0x450cdd[_0x529745];return _0x247d74;}import{roleUserRemove}from'../../commands/role/user-remove.js';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserAdd,roleUserRemove];
1
+ (function(_0x58919f,_0x44d26f){const _0x3dd553=a57_0x5945,_0xb65b14=_0x58919f();while(!![]){try{const _0x1849aa=parseInt(_0x3dd553(0xd4))/0x1*(-parseInt(_0x3dd553(0xd7))/0x2)+parseInt(_0x3dd553(0xd9))/0x3+parseInt(_0x3dd553(0xdb))/0x4+-parseInt(_0x3dd553(0xd5))/0x5*(parseInt(_0x3dd553(0xd8))/0x6)+parseInt(_0x3dd553(0xda))/0x7*(-parseInt(_0x3dd553(0xdc))/0x8)+-parseInt(_0x3dd553(0xd3))/0x9+-parseInt(_0x3dd553(0xdd))/0xa*(-parseInt(_0x3dd553(0xd6))/0xb);if(_0x1849aa===_0x44d26f)break;else _0xb65b14['push'](_0xb65b14['shift']());}catch(_0x22caa1){_0xb65b14['push'](_0xb65b14['shift']());}}}(a57_0x15b8,0x926d9));function a57_0x15b8(){const _0x1fe06c=['2394876DMhChu','84399abKZhs','2149804AbBnar','280aZXKcq','40ScSmdc','9922743YzBTWX','757OlqWdn','3132795qfBlPE','5109368xmPvce','1170KjtdLR','6HUuYhy'];a57_0x15b8=function(){return _0x1fe06c;};return a57_0x15b8();}import{roleList}from'../../commands/role/list.js';import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';function a57_0x5945(_0x3bf4c0,_0x59ff63){_0x3bf4c0=_0x3bf4c0-0xd3;const _0x15b8b5=a57_0x15b8();let _0x5945c5=_0x15b8b5[_0x3bf4c0];return _0x5945c5;}import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserAdd,roleUserRemove];
@@ -1 +1 @@
1
- const a58_0xac6aa7=a58_0x4ca9;(function(_0x15561b,_0x1d043b){const _0x3f41be=a58_0x4ca9,_0x503a99=_0x15561b();while(!![]){try{const _0x4b284c=-parseInt(_0x3f41be(0xba))/0x1*(-parseInt(_0x3f41be(0xa6))/0x2)+parseInt(_0x3f41be(0xc5))/0x3*(-parseInt(_0x3f41be(0xc0))/0x4)+-parseInt(_0x3f41be(0xcd))/0x5*(parseInt(_0x3f41be(0xb5))/0x6)+parseInt(_0x3f41be(0xa8))/0x7*(-parseInt(_0x3f41be(0xaa))/0x8)+-parseInt(_0x3f41be(0xbe))/0x9+-parseInt(_0x3f41be(0xc8))/0xa*(parseInt(_0x3f41be(0xae))/0xb)+parseInt(_0x3f41be(0xac))/0xc*(parseInt(_0x3f41be(0xca))/0xd);if(_0x4b284c===_0x1d043b)break;else _0x503a99['push'](_0x503a99['shift']());}catch(_0x1ee676){_0x503a99['push'](_0x503a99['shift']());}}}(a58_0x591a,0xb37be));function a58_0x4ca9(_0x29ef0e,_0xbc5463){_0x29ef0e=_0x29ef0e-0xa4;const _0x591a00=a58_0x591a();let _0x4ca92c=_0x591a00[_0x29ef0e];return _0x4ca92c;}import{listRuntimeAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{listAllRuntimeRoles,projectRuntimeRole,RUNTIME_ROLE_TYPES}from'../../commands/role/shared.js';export const roleList={'service':'role','command':a58_0xac6aa7(0xc9),'description':a58_0xac6aa7(0xbb),'risk':a58_0xac6aa7(0xb9),'flags':[{'name':a58_0xac6aa7(0xb8),'type':a58_0xac6aa7(0xc3),'enum':RUNTIME_ROLE_TYPES,'description':'Runtime\x20role\x20type'},{'name':'name','type':a58_0xac6aa7(0xc3),'description':'Fuzzy\x20role-name\x20filter'},{'name':'page','type':a58_0xac6aa7(0xa5),'default':0x1,'description':a58_0xac6aa7(0xc4)},{'name':a58_0xac6aa7(0xb3),'type':a58_0xac6aa7(0xa5),'default':0x64,'description':a58_0xac6aa7(0xb6)}],async 'validate'(_0x35e590){const _0xcbc0a8=a58_0xac6aa7,_0x36dae1=_0x35e590['str'](_0xcbc0a8(0xb8))[_0xcbc0a8(0xb1)]();if(_0x36dae1&&!RUNTIME_ROLE_TYPES[_0xcbc0a8(0xa7)](_0x36dae1))throw CliErrors[_0xcbc0a8(0xb4)](_0xcbc0a8(0xaf)+_0x36dae1+'.');const _0x2cc899=_0x35e590[_0xcbc0a8(0xcb)](_0xcbc0a8(0xc2),0x1),_0x252f9f=_0x35e590[_0xcbc0a8(0xcb)]('pagesize',0x64);if(!Number['isSafeInteger'](_0x2cc899)||_0x2cc899<0x1)throw CliErrors[_0xcbc0a8(0xb4)](_0xcbc0a8(0xa9));if(!Number['isSafeInteger'](_0x252f9f)||_0x252f9f<0x1||_0x252f9f>0x64)throw CliErrors[_0xcbc0a8(0xb4)](_0xcbc0a8(0xc6));},async 'execute'(_0x26c024){const _0x2324f0=a58_0xac6aa7,_0x4a114a=_0x26c024[_0x2324f0(0xcc)](_0x2324f0(0xb8))[_0x2324f0(0xb1)](),_0x39a288=_0x26c024['str'](_0x2324f0(0xbd))[_0x2324f0(0xb2)](),_0x42bb81=_0x26c024[_0x2324f0(0xcb)](_0x2324f0(0xc2),0x1),_0x59a7b1=_0x26c024[_0x2324f0(0xcb)](_0x2324f0(0xb3),0x64);if(_0x4a114a){const _0x5452f9=(await listAllRuntimeRoles(_0x26c024[_0x2324f0(0xbf)],{..._0x39a288?{'roleName':_0x39a288}:{}}))[_0x2324f0(0xb0)](_0xbc3e94=>_0xbc3e94[_0x2324f0(0xc1)]===_0x4a114a),_0x4b0964=(_0x42bb81-0x1)*_0x59a7b1;return{'ok':!![],'data':{'scope':_0x2324f0(0xad),'roles':_0x5452f9[_0x2324f0(0xbc)](_0x4b0964,_0x4b0964+_0x59a7b1)[_0x2324f0(0xa4)](projectRuntimeRole),'paging':{'currentPage':_0x42bb81,'pageSize':_0x59a7b1,'totalCount':_0x5452f9[_0x2324f0(0xc7)]}}};}const _0x162914=await listRuntimeAppRoles(_0x26c024['appCode'],{..._0x39a288?{'roleName':_0x39a288}:{},'currentPage':_0x42bb81,'pageSize':_0x59a7b1});return{'ok':!![],'data':{'scope':_0x2324f0(0xad),'roles':_0x162914[_0x2324f0(0xb7)][_0x2324f0(0xa4)](projectRuntimeRole),'paging':_0x162914[_0x2324f0(0xab)]}};}};function a58_0x591a(){const _0x1fc8e4=['filter','toUpperCase','trim','pagesize','validation','3135504jsrynb','Page\x20size\x20from\x201\x20to\x20100','items','type','read','535016xZdiOx','List\x20runtime\x20roles\x20for\x20the\x20current\x20app','slice','name','9685584GfaCFb','appCode','20lLbAFe','roleType','page','string','Page\x20number','685068WhepRr','--pagesize\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','length','10eraRFb','list','13ZcCYmM','num','str','5iThaoP','map','number','2SQxLwc','includes','21cxdCsa','--page\x20must\x20be\x20a\x20positive\x20integer.','216184GJZlIn','paging','40038072DvvqoM','runtime','3462217DbrNBB','Invalid\x20runtime\x20role\x20type:\x20'];a58_0x591a=function(){return _0x1fc8e4;};return a58_0x591a();}
1
+ const a58_0x73838e=a58_0x3d90;(function(_0x2bbdc9,_0x295444){const _0x2fe438=a58_0x3d90,_0x1d3d91=_0x2bbdc9();while(!![]){try{const _0x45ce40=parseInt(_0x2fe438(0x150))/0x1*(parseInt(_0x2fe438(0x14b))/0x2)+parseInt(_0x2fe438(0x152))/0x3+parseInt(_0x2fe438(0x149))/0x4*(-parseInt(_0x2fe438(0x161))/0x5)+-parseInt(_0x2fe438(0x164))/0x6+parseInt(_0x2fe438(0x166))/0x7+parseInt(_0x2fe438(0x14a))/0x8+-parseInt(_0x2fe438(0x167))/0x9;if(_0x45ce40===_0x295444)break;else _0x1d3d91['push'](_0x1d3d91['shift']());}catch(_0x9f2a25){_0x1d3d91['push'](_0x1d3d91['shift']());}}}(a58_0x104f,0x25bf2));import{listRuntimeAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a58_0x3d90(_0x2e6609,_0x3bd7dd){_0x2e6609=_0x2e6609-0x148;const _0x104f44=a58_0x104f();let _0x3d9016=_0x104f44[_0x2e6609];return _0x3d9016;}import{listAllRuntimeRoles,projectRuntimeRole,RUNTIME_ROLE_TYPES}from'../../commands/role/shared.js';export const roleList={'service':a58_0x73838e(0x15c),'command':'list','description':'List\x20runtime\x20roles\x20for\x20the\x20current\x20app','risk':a58_0x73838e(0x15b),'flags':[{'name':'type','type':a58_0x73838e(0x154),'enum':RUNTIME_ROLE_TYPES,'description':'Runtime\x20role\x20type'},{'name':a58_0x73838e(0x15d),'type':a58_0x73838e(0x154),'description':'Fuzzy\x20role-name\x20filter'},{'name':a58_0x73838e(0x153),'type':a58_0x73838e(0x156),'default':0x1,'description':a58_0x73838e(0x16a)},{'name':'pagesize','type':a58_0x73838e(0x156),'default':0x64,'description':a58_0x73838e(0x162)}],async 'validate'(_0x10796b){const _0x14d3e2=a58_0x73838e,_0x473f21=_0x10796b[_0x14d3e2(0x148)](_0x14d3e2(0x155))['toUpperCase']();if(_0x473f21&&!RUNTIME_ROLE_TYPES[_0x14d3e2(0x168)](_0x473f21))throw CliErrors['validation'](_0x14d3e2(0x151)+_0x473f21+'.');const _0xb1008=_0x10796b[_0x14d3e2(0x16b)](_0x14d3e2(0x153),0x1),_0x3dcb04=_0x10796b[_0x14d3e2(0x16b)]('pagesize',0x64);if(!Number['isSafeInteger'](_0xb1008)||_0xb1008<0x1)throw CliErrors[_0x14d3e2(0x165)](_0x14d3e2(0x14f));if(!Number[_0x14d3e2(0x14c)](_0x3dcb04)||_0x3dcb04<0x1||_0x3dcb04>0x64)throw CliErrors[_0x14d3e2(0x165)]('--pagesize\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');},async 'execute'(_0x921338){const _0x4ce720=a58_0x73838e,_0x8e9429=_0x921338[_0x4ce720(0x148)](_0x4ce720(0x155))[_0x4ce720(0x158)](),_0x4f0a97=_0x921338[_0x4ce720(0x148)]('name')['trim'](),_0x5733e2=_0x921338[_0x4ce720(0x16b)](_0x4ce720(0x153),0x1),_0x2a5516=_0x921338['num'](_0x4ce720(0x163),0x64);if(_0x8e9429){const _0x469c83=(await listAllRuntimeRoles(_0x921338[_0x4ce720(0x157)],{..._0x4f0a97?{'roleName':_0x4f0a97}:{}}))[_0x4ce720(0x169)](_0x33148f=>_0x33148f[_0x4ce720(0x15f)]===_0x8e9429),_0x144bb1=(_0x5733e2-0x1)*_0x2a5516;return{'ok':!![],'data':{'scope':'runtime','roles':_0x469c83[_0x4ce720(0x15a)](_0x144bb1,_0x144bb1+_0x2a5516)[_0x4ce720(0x15e)](projectRuntimeRole),'paging':{'currentPage':_0x5733e2,'pageSize':_0x2a5516,'totalCount':_0x469c83[_0x4ce720(0x159)]}}};}const _0x5e3693=await listRuntimeAppRoles(_0x921338[_0x4ce720(0x157)],{..._0x4f0a97?{'roleName':_0x4f0a97}:{},'currentPage':_0x5733e2,'pageSize':_0x2a5516});return{'ok':!![],'data':{'scope':_0x4ce720(0x160),'roles':_0x5e3693[_0x4ce720(0x14e)][_0x4ce720(0x15e)](projectRuntimeRole),'paging':_0x5e3693[_0x4ce720(0x14d)]}};}};function a58_0x104f(){const _0x49d202=['validation','1969611jcpuOs','2706075mAMvkx','includes','filter','Page\x20number','num','str','5140ZrvKDT','476184DdyAfk','2XxoeSK','isSafeInteger','paging','items','--page\x20must\x20be\x20a\x20positive\x20integer.','83354TIsrNU','Invalid\x20runtime\x20role\x20type:\x20','829293oAWONU','page','string','type','number','appCode','toUpperCase','length','slice','read','role','name','map','roleType','runtime','225VbOzuy','Page\x20size\x20from\x201\x20to\x20100','pagesize','1125426Bcwvsx'];a58_0x104f=function(){return _0x49d202;};return a58_0x104f();}
@@ -1 +1 @@
1
- const a59_0xe9ac8b=a59_0x1c7b;(function(_0x2afd8e,_0x1dab86){const _0x5d3910=a59_0x1c7b,_0x5ce0a5=_0x2afd8e();while(!![]){try{const _0x3f76f5=-parseInt(_0x5d3910(0x138))/0x1+-parseInt(_0x5d3910(0x11f))/0x2+-parseInt(_0x5d3910(0x13a))/0x3+parseInt(_0x5d3910(0x127))/0x4+parseInt(_0x5d3910(0x149))/0x5*(parseInt(_0x5d3910(0x122))/0x6)+parseInt(_0x5d3910(0x15c))/0x7*(-parseInt(_0x5d3910(0x161))/0x8)+-parseInt(_0x5d3910(0x139))/0x9*(-parseInt(_0x5d3910(0x12b))/0xa);if(_0x3f76f5===_0x1dab86)break;else _0x5ce0a5['push'](_0x5ce0a5['shift']());}catch(_0x27c710){_0x5ce0a5['push'](_0x5ce0a5['shift']());}}}(a59_0x4152,0x5db4f));function a59_0x4152(){const _0x42215d=['userList','\x20is\x20not\x20in\x20runtime\x20role\x20','2507252iyPrVB','Cannot\x20','paging','trim','352300KhHYAu','length','join','applyUserList','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','USER','--role-code\x20must\x20not\x20be\x20blank.','Role\x20ID\x20must\x20be\x20a\x20positive\x20integer.','string','filter','Use\x20a\x20userId\x20returned\x20by\x20the\x20current\x20application\x27s\x20personnel\x20list.','Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','appCode','296090oIvinI','279UDjFsP','1359675XqdSsD','Runtime\x20role\x20member\x20snapshot\x20has\x20an\x20invalid\x20role\x20ID;\x20reload\x20before\x20writing.','Runtime\x20role\x20member\x20has\x20an\x20invalid\x20userId.','--role-code\x20cannot\x20exceed\x2064\x20characters.','\x20is\x20missing\x20from\x20the\x20grouped\x20member\x20snapshot.','OWNER','Pass\x20--role\x20<id|name>.','Runtime\x20userId\x20(string)','roleType','Run\x20`lovrabet\x20role\x20list`\x20and\x20use\x20a\x20role\x20from\x20the\x20current\x20app.','permitCount','flag','userId','OWNER\x20runtime\x20role\x20membership\x20cannot\x20be\x20changed\x20with\x20this\x20command.','Runtime\x20role\x20','85MTrTtx','User\x20','validation','push','items','Transfer\x20or\x20manage\x20application\x20ownership\x20through\x20the\x20dedicated\x20application\x20workflow.','Runtime\x20role\x20ID\x20returned\x20by\x20role\x20list','map','test','Globally\x20unique\x20roleCode\x20(maximum\x2064\x20characters)','includes','ADMIN','Runtime\x20role\x20name\x20\x22','role','roleCode','CUSTOM','userName','Reject\x20when\x20the\x20target\x20role\x20member\x20count\x20has\x20changed','role-code','679MeEEXM','Runtime\x20role\x20member\x20count\x20changed:\x20expected\x20',',\x20found\x20','find','roleName','34392cszEME','number','--expect-user-count\x20must\x20be\x20a\x20non-negative\x20integer.','Pass\x20--user\x20<userId>;\x20name\x20and\x20account\x20lookup\x20are\x20not\x20available\x20in\x20runtime\x20scope.','str','num','\x22\x20was\x20not\x20found\x20in\x20app\x20','expect-user-count','Invalid\x20runtime\x20userId.','Reload\x20the\x20role\x20list\x20and\x20retry\x20after\x20the\x20server\x20state\x20is\x20consistent.','529738nCjPAW','runtime','isSafeInteger','33906YNctJm','\x20was\x20not\x20found\x20in\x20app\x20','\x20built-in\x20runtime\x20role\x20'];a59_0x4152=function(){return _0x42215d;};return a59_0x4152();}import{listRuntimeAppUsers,listRuntimeAppRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{normalizeRuntimeUserId}from'../../utils/runtime-user-id.js';export const RUNTIME_ROLE_TYPES=[a59_0xe9ac8b(0x154),a59_0xe9ac8b(0x130),a59_0xe9ac8b(0x13f),a59_0xe9ac8b(0x158)];const BUILTIN_ROLE_TYPES=[a59_0xe9ac8b(0x154),a59_0xe9ac8b(0x130),a59_0xe9ac8b(0x13f)];export const ROLE_ID_FLAG={'name':'id','type':'number','required':!![],'description':a59_0xe9ac8b(0x14f)};export const ROLE_REF_FLAG={'name':a59_0xe9ac8b(0x156),'type':a59_0xe9ac8b(0x133),'required':!![],'description':a59_0xe9ac8b(0x12f)};export const ROLE_CODE_FLAG={'name':a59_0xe9ac8b(0x15b),'type':a59_0xe9ac8b(0x133),'description':a59_0xe9ac8b(0x152)};export const USER_ID_FLAG={'name':'user','type':'string','required':!![],'description':a59_0xe9ac8b(0x141)};export const EXPECT_USER_COUNT_FLAG={'name':a59_0xe9ac8b(0x11c),'type':a59_0xe9ac8b(0x162),'description':a59_0xe9ac8b(0x15a)};export function isBuiltinRuntimeRole(_0x18802b){const _0x10d800=a59_0xe9ac8b;return BUILTIN_ROLE_TYPES[_0x10d800(0x153)](_0x18802b);}export function assertCustomRuntimeRole(_0x380953,_0x5a2c58){const _0x3e13b3=a59_0xe9ac8b;if(_0x380953[_0x3e13b3(0x142)]!==_0x3e13b3(0x158))throw CliErrors[_0x3e13b3(0x14b)](_0x3e13b3(0x128)+_0x5a2c58+_0x3e13b3(0x124)+_0x380953['roleName']+'\x20('+_0x380953['roleType']+').','Only\x20CUSTOM\x20runtime\x20roles\x20can\x20be\x20modified\x20or\x20deleted.');}export function projectRuntimeRole(_0x32c987){const _0x3d9154=a59_0xe9ac8b;return{'id':_0x32c987['id'],'roleCode':_0x32c987[_0x3d9154(0x157)],'roleName':_0x32c987['roleName'],'roleType':_0x32c987[_0x3d9154(0x142)],'remark':_0x32c987['remark'],'userCount':_0x32c987['userCount']??0x0,'permitCount':_0x32c987[_0x3d9154(0x144)]??0x0,'builtin':isBuiltinRuntimeRole(_0x32c987[_0x3d9154(0x142)])};}export function readOptionalRuntimeRoleCode(_0x1a88b9){const _0xe24d18=a59_0xe9ac8b,_0x20c62d=_0x1a88b9[_0xe24d18(0x145)](_0xe24d18(0x15b));if(_0x20c62d===undefined||_0x20c62d===null)return undefined;const _0x4e5a00=String(_0x20c62d)[_0xe24d18(0x12a)]();if(!_0x4e5a00)throw CliErrors[_0xe24d18(0x14b)](_0xe24d18(0x131));if(_0x4e5a00[_0xe24d18(0x12c)]>0x40)throw CliErrors[_0xe24d18(0x14b)](_0xe24d18(0x13d));return _0x4e5a00;}export async function getRuntimeRoleById(_0xc478dd,_0x30f032){const _0x29f025=a59_0xe9ac8b;if(!Number[_0x29f025(0x121)](_0x30f032)||_0x30f032<=0x0)throw CliErrors[_0x29f025(0x14b)](_0x29f025(0x132));const _0x3baed2=(await listAllRuntimeRoles(_0xc478dd))[_0x29f025(0x134)](_0xbdec3f=>_0xbdec3f['id']===_0x30f032&&(!_0xbdec3f[_0x29f025(0x137)]||_0xbdec3f[_0x29f025(0x137)]===_0xc478dd));if(_0x3baed2[_0x29f025(0x12c)]!==0x1)throw CliErrors[_0x29f025(0x14b)]('Runtime\x20role\x20id\x20'+_0x30f032+'\x20was\x20not\x20found\x20in\x20app\x20'+_0xc478dd+'.',_0x29f025(0x143));const _0x35fbd8=_0x3baed2[0x0],_0x5e4134=_0x35fbd8['id'];if(typeof _0x5e4134!=='number'||!Number[_0x29f025(0x121)](_0x5e4134)||_0x5e4134<=0x0)throw CliErrors[_0x29f025(0x14b)]('Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.');return{..._0x35fbd8,'id':_0x5e4134};}function a59_0x1c7b(_0x4c1c2d,_0x2424b2){_0x4c1c2d=_0x4c1c2d-0x11a;const _0x41527f=a59_0x4152();let _0x1c7bbb=_0x41527f[_0x4c1c2d];return _0x1c7bbb;}export async function listAllRuntimeRoles(_0x489f6c,_0x30bbce={}){const _0xd24206=a59_0xe9ac8b,_0x3787d0=0x64,_0x42c6ef=[];for(let _0x6b87db=0x1;;_0x6b87db+=0x1){const _0xccc2ee=await listRuntimeAppRoles(_0x489f6c,{..._0x30bbce[_0xd24206(0x160)]?{'roleName':_0x30bbce[_0xd24206(0x160)]}:{},'currentPage':_0x6b87db,'pageSize':_0x3787d0});_0x42c6ef[_0xd24206(0x14c)](..._0xccc2ee[_0xd24206(0x14d)]);if(_0xccc2ee[_0xd24206(0x14d)][_0xd24206(0x12c)]<_0x3787d0||_0xccc2ee[_0xd24206(0x129)]&&_0x42c6ef[_0xd24206(0x12c)]>=_0xccc2ee[_0xd24206(0x129)]['totalCount'])return _0x42c6ef;}}export async function resolveRuntimeRoleRef(_0x164343,_0xa62445){const _0x362167=a59_0xe9ac8b,_0xe4269c=_0xa62445[_0x362167(0x12a)]();if(!_0xe4269c)throw CliErrors[_0x362167(0x14b)]('Missing\x20runtime\x20role\x20reference.',_0x362167(0x140));if(/^\d+$/[_0x362167(0x151)](_0xe4269c))return getRuntimeRoleById(_0x164343,Number(_0xe4269c));const _0x4a5947=(await listAllRuntimeRoles(_0x164343))['filter'](_0x2543eb=>_0x2543eb['roleName']===_0xe4269c);if(_0x4a5947[_0x362167(0x12c)]===0x0)throw CliErrors[_0x362167(0x14b)]('Runtime\x20role\x20name\x20\x22'+_0xe4269c+_0x362167(0x11b)+_0x164343+'.','Run\x20`lovrabet\x20role\x20list`\x20or\x20pass\x20--role\x20<id>.');if(_0x4a5947[_0x362167(0x12c)]>0x1)throw CliErrors['validation'](_0x362167(0x155)+_0xe4269c+'\x22\x20is\x20ambiguous.','Pass\x20one\x20role\x20ID:\x20'+_0x4a5947[_0x362167(0x150)](_0x1c2a5d=>_0x1c2a5d['id'])[_0x362167(0x12d)](',\x20')+'.');const _0x24a9c9=_0x4a5947[0x0],_0x3df005=_0x24a9c9['id'];if(typeof _0x3df005!=='number'||!Number[_0x362167(0x121)](_0x3df005)||_0x3df005<=0x0)throw CliErrors[_0x362167(0x14b)](_0x362167(0x136));return{..._0x24a9c9,'id':_0x3df005};}function parseRuntimeUserId(_0x574cf5){const _0x5f0ca5=a59_0xe9ac8b,_0x70a0e9=_0x574cf5[_0x5f0ca5(0x12a)](),_0x4ed72e=normalizeRuntimeUserId(_0x70a0e9);if(_0x4ed72e===undefined)throw CliErrors[_0x5f0ca5(0x14b)](_0x5f0ca5(0x11d),_0x5f0ca5(0x164));return _0x4ed72e;}export async function prepareRuntimeMemberMutation(_0x536c36,_0x4494ec){const _0x4d104e=a59_0xe9ac8b,_0x17ea83=await resolveRuntimeRoleRef(_0x536c36[_0x4d104e(0x137)],_0x536c36[_0x4d104e(0x165)](_0x4d104e(0x156)));if(_0x17ea83['roleType']==='OWNER')throw CliErrors[_0x4d104e(0x14b)](_0x4d104e(0x147),_0x4d104e(0x14e));const _0x3f716b=parseRuntimeUserId(_0x536c36[_0x4d104e(0x165)]('user')),_0x302eb3=(await listRuntimeRoleUsers(_0x536c36[_0x4d104e(0x137)]))[_0x4d104e(0x150)](_0x1105d6=>{const _0x51085c=_0x4d104e;if(typeof _0x1105d6['id']!==_0x51085c(0x162)||!Number[_0x51085c(0x121)](_0x1105d6['id'])||_0x1105d6['id']<=0x0)throw CliErrors[_0x51085c(0x14b)](_0x51085c(0x13b));return{..._0x1105d6,'userList':[..._0x1105d6[_0x51085c(0x125)]??[]],'applyUserList':[..._0x1105d6[_0x51085c(0x12e)]??[]]};}),_0x1bfc0f=_0x302eb3[_0x4d104e(0x15f)](_0x3a4fe2=>_0x3a4fe2['id']===_0x17ea83['id']);if(!_0x1bfc0f)throw CliErrors[_0x4d104e(0x14b)](_0x4d104e(0x148)+_0x17ea83['id']+_0x4d104e(0x13e),_0x4d104e(0x11e));const _0x3cdacf=_0x763f18=>{const _0x301ee6=_0x4d104e,_0x33dd75=normalizeRuntimeUserId(_0x763f18);if(_0x33dd75===undefined)throw CliErrors['validation'](_0x301ee6(0x13c));return _0x33dd75;},_0x2471f3=_0x1bfc0f[_0x4d104e(0x125)]['map'](_0x53f3a5=>_0x3cdacf(_0x53f3a5[_0x4d104e(0x146)])),_0x222726=_0x536c36[_0x4d104e(0x145)](_0x4d104e(0x11c));if(_0x222726!==undefined&&_0x222726!==null&&_0x222726!==''){const _0xdf71da=_0x536c36[_0x4d104e(0x11a)](_0x4d104e(0x11c));if(!Number[_0x4d104e(0x121)](_0xdf71da)||_0xdf71da<0x0)throw CliErrors['validation'](_0x4d104e(0x163));if(_0x2471f3[_0x4d104e(0x12c)]!==_0xdf71da)throw CliErrors[_0x4d104e(0x14b)](_0x4d104e(0x15d)+_0xdf71da+_0x4d104e(0x15e)+_0x2471f3[_0x4d104e(0x12c)]+'.','Read\x20the\x20current\x20members\x20and\x20retry\x20with\x20the\x20new\x20expected\x20count.');}const _0x4f760b=_0x2471f3[_0x4d104e(0x153)](_0x3f716b),_0xd5e4d=[];let _0x1cc48e=!![];if(_0x4494ec==='user-add'){const _0x4cf0f1=await listRuntimeAppUsers(_0x536c36[_0x4d104e(0x137)]),_0xdb74fd=_0x4cf0f1[_0x4d104e(0x134)](_0x33c564=>normalizeRuntimeUserId(_0x33c564['code'])===_0x3f716b);if(_0xdb74fd[_0x4d104e(0x12c)]!==0x1||!_0xdb74fd[0x0][_0x4d104e(0x159)]?.[_0x4d104e(0x12a)]())throw CliErrors['validation']('Runtime\x20user\x20'+_0x3f716b+_0x4d104e(0x123)+_0x536c36[_0x4d104e(0x137)]+'.',_0x4d104e(0x135));_0x4f760b?(_0x1cc48e=![],_0xd5e4d[_0x4d104e(0x14c)](_0x4d104e(0x14a)+_0x3f716b+'\x20is\x20already\x20in\x20runtime\x20role\x20'+_0x17ea83['id']+'.')):_0x1bfc0f[_0x4d104e(0x125)][_0x4d104e(0x14c)]({'userId':_0x3f716b,'username':_0xdb74fd[0x0]['userName']});}else!_0x4f760b?(_0x1cc48e=![],_0xd5e4d[_0x4d104e(0x14c)]('User\x20'+_0x3f716b+_0x4d104e(0x126)+_0x17ea83['id']+'.')):_0x1bfc0f[_0x4d104e(0x125)]=_0x1bfc0f[_0x4d104e(0x125)][_0x4d104e(0x134)](_0x398c89=>_0x3cdacf(_0x398c89['userId'])!==_0x3f716b);return{'role':_0x17ea83,'userId':_0x3f716b,'roleList':_0x302eb3,'before':{'userIds':_0x2471f3},'after':{'userIds':_0x1bfc0f[_0x4d104e(0x125)][_0x4d104e(0x150)](_0x47f07f=>_0x3cdacf(_0x47f07f[_0x4d104e(0x146)]))},'shouldWrite':_0x1cc48e,'warnings':_0xd5e4d};}export function runtimeRoleWriteResult(_0x169479,_0x551c6b,_0x27df01,_0x1e33c3,_0x4a252f,_0x5e2980=[]){const _0x593037=a59_0xe9ac8b;return{'operation':_0x169479,'scope':_0x593037(0x120),'selector':_0x551c6b,'before':_0x27df01,'after':_0x1e33c3,'dryRun':![],'backend':_0x4a252f,'warnings':_0x5e2980};}
1
+ const a59_0x1c1cb5=a59_0xcb2d;(function(_0x5fcdac,_0x4637dd){const _0x428b85=a59_0xcb2d,_0x52a397=_0x5fcdac();while(!![]){try{const _0x150ae3=-parseInt(_0x428b85(0x147))/0x1+-parseInt(_0x428b85(0x141))/0x2+parseInt(_0x428b85(0x13e))/0x3+-parseInt(_0x428b85(0x10c))/0x4*(-parseInt(_0x428b85(0x12d))/0x5)+parseInt(_0x428b85(0x14d))/0x6+-parseInt(_0x428b85(0x114))/0x7*(-parseInt(_0x428b85(0x143))/0x8)+-parseInt(_0x428b85(0x148))/0x9*(parseInt(_0x428b85(0x106))/0xa);if(_0x150ae3===_0x4637dd)break;else _0x52a397['push'](_0x52a397['shift']());}catch(_0x1a9bd8){_0x52a397['push'](_0x52a397['shift']());}}}(a59_0x789a,0x1d80f));import{listRuntimeAppUsers,listRuntimeAppRoles,listRuntimeRoleUsers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{normalizeRuntimeUserId}from'../../utils/runtime-user-id.js';function a59_0x789a(){const _0x3d46e0=['user-add','1143720VzXQee','string','27460UQqZRH','permitCount','roleName','length','userCount','Runtime\x20role\x20id\x20','6476ntCdbZ','Pass\x20--user\x20<userId>;\x20name\x20and\x20account\x20lookup\x20are\x20not\x20available\x20in\x20runtime\x20scope.','push','find','Runtime\x20role\x20member\x20count\x20changed:\x20expected\x20','Runtime\x20userId\x20(string)','userList','Runtime\x20role\x20name\x20\x22','1967wYlPrL','flag','join','Globally\x20unique\x20roleCode\x20(maximum\x2064\x20characters)','--role-code\x20cannot\x20exceed\x2064\x20characters.','Runtime\x20role\x20ID\x20returned\x20by\x20role\x20list','paging','\x20was\x20not\x20found\x20in\x20app\x20','Missing\x20runtime\x20role\x20reference.','Pass\x20--role\x20<id|name>.','Pass\x20one\x20role\x20ID:\x20','\x22\x20was\x20not\x20found\x20in\x20app\x20','validation','runtime','map','num','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','roleType','ADMIN','\x20built-in\x20runtime\x20role\x20','userId','userName','trim','items','str','265fWDXpn','filter','appCode','Runtime\x20role\x20member\x20snapshot\x20has\x20an\x20invalid\x20role\x20ID;\x20reload\x20before\x20writing.','role-code','--expect-user-count\x20must\x20be\x20a\x20non-negative\x20integer.','Runtime\x20user\x20','Cannot\x20','--role-code\x20must\x20not\x20be\x20blank.','\x20is\x20missing\x20from\x20the\x20grouped\x20member\x20snapshot.','Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','Run\x20`lovrabet\x20role\x20list`\x20and\x20use\x20a\x20role\x20from\x20the\x20current\x20app.','Only\x20CUSTOM\x20runtime\x20roles\x20can\x20be\x20modified\x20or\x20deleted.',',\x20found\x20','isSafeInteger','includes','role','460308ARNVKn','OWNER\x20runtime\x20role\x20membership\x20cannot\x20be\x20changed\x20with\x20this\x20command.','USER','474792XeiezY','user','1792pwSAWF','\x22\x20is\x20ambiguous.','User\x20','OWNER','98866NWCMiT','117qtzjBu','Runtime\x20role\x20member\x20has\x20an\x20invalid\x20userId.','number','expect-user-count'];a59_0x789a=function(){return _0x3d46e0;};return a59_0x789a();}export const RUNTIME_ROLE_TYPES=[a59_0x1c1cb5(0x126),a59_0x1c1cb5(0x140),a59_0x1c1cb5(0x146),'CUSTOM'];const BUILTIN_ROLE_TYPES=['ADMIN',a59_0x1c1cb5(0x140),a59_0x1c1cb5(0x146)];export const ROLE_ID_FLAG={'name':'id','type':a59_0x1c1cb5(0x14a),'required':!![],'description':a59_0x1c1cb5(0x119)};export const ROLE_REF_FLAG={'name':a59_0x1c1cb5(0x13d),'type':a59_0x1c1cb5(0x105),'required':!![],'description':a59_0x1c1cb5(0x124)};function a59_0xcb2d(_0x58d1c2,_0x2ada08){_0x58d1c2=_0x58d1c2-0x105;const _0x789aee=a59_0x789a();let _0xcb2d3d=_0x789aee[_0x58d1c2];return _0xcb2d3d;}export const ROLE_CODE_FLAG={'name':a59_0x1c1cb5(0x131),'type':a59_0x1c1cb5(0x105),'description':a59_0x1c1cb5(0x117)};export const USER_ID_FLAG={'name':a59_0x1c1cb5(0x142),'type':a59_0x1c1cb5(0x105),'required':!![],'description':a59_0x1c1cb5(0x111)};export const EXPECT_USER_COUNT_FLAG={'name':a59_0x1c1cb5(0x14b),'type':'number','description':'Reject\x20when\x20the\x20target\x20role\x20member\x20count\x20has\x20changed'};export function isBuiltinRuntimeRole(_0xd98275){const _0x4eceae=a59_0x1c1cb5;return BUILTIN_ROLE_TYPES[_0x4eceae(0x13c)](_0xd98275);}export function assertCustomRuntimeRole(_0x3d2254,_0x6c5ba1){const _0x1c90dd=a59_0x1c1cb5;if(_0x3d2254[_0x1c90dd(0x125)]!=='CUSTOM')throw CliErrors[_0x1c90dd(0x120)](_0x1c90dd(0x134)+_0x6c5ba1+_0x1c90dd(0x127)+_0x3d2254['roleName']+'\x20('+_0x3d2254[_0x1c90dd(0x125)]+').',_0x1c90dd(0x139));}export function projectRuntimeRole(_0x2f0631){const _0xc2bfb6=a59_0x1c1cb5;return{'id':_0x2f0631['id'],'roleCode':_0x2f0631['roleCode'],'roleName':_0x2f0631[_0xc2bfb6(0x108)],'roleType':_0x2f0631[_0xc2bfb6(0x125)],'remark':_0x2f0631['remark'],'userCount':_0x2f0631[_0xc2bfb6(0x10a)]??0x0,'permitCount':_0x2f0631[_0xc2bfb6(0x107)]??0x0,'builtin':isBuiltinRuntimeRole(_0x2f0631[_0xc2bfb6(0x125)])};}export function readOptionalRuntimeRoleCode(_0x205d1b){const _0x42a2ec=a59_0x1c1cb5,_0x279b48=_0x205d1b['flag'](_0x42a2ec(0x131));if(_0x279b48===undefined||_0x279b48===null)return undefined;const _0x457dda=String(_0x279b48)[_0x42a2ec(0x12a)]();if(!_0x457dda)throw CliErrors[_0x42a2ec(0x120)](_0x42a2ec(0x135));if(_0x457dda[_0x42a2ec(0x109)]>0x40)throw CliErrors[_0x42a2ec(0x120)](_0x42a2ec(0x118));return _0x457dda;}export async function getRuntimeRoleById(_0xcda41a,_0x22a82f){const _0x52f449=a59_0x1c1cb5;if(!Number[_0x52f449(0x13b)](_0x22a82f)||_0x22a82f<=0x0)throw CliErrors[_0x52f449(0x120)]('Role\x20ID\x20must\x20be\x20a\x20positive\x20integer.');const _0x31f294=(await listAllRuntimeRoles(_0xcda41a))[_0x52f449(0x12e)](_0x36f5a9=>_0x36f5a9['id']===_0x22a82f&&(!_0x36f5a9[_0x52f449(0x12f)]||_0x36f5a9[_0x52f449(0x12f)]===_0xcda41a));if(_0x31f294['length']!==0x1)throw CliErrors[_0x52f449(0x120)](_0x52f449(0x10b)+_0x22a82f+_0x52f449(0x11b)+_0xcda41a+'.',_0x52f449(0x138));const _0x4fb6b3=_0x31f294[0x0],_0x2262f0=_0x4fb6b3['id'];if(typeof _0x2262f0!==_0x52f449(0x14a)||!Number[_0x52f449(0x13b)](_0x2262f0)||_0x2262f0<=0x0)throw CliErrors[_0x52f449(0x120)](_0x52f449(0x137));return{..._0x4fb6b3,'id':_0x2262f0};}export async function listAllRuntimeRoles(_0x403b69,_0x2c7d7e={}){const _0x5dad69=a59_0x1c1cb5,_0x30dd13=0x64,_0x150eed=[];for(let _0x22f4c4=0x1;;_0x22f4c4+=0x1){const _0x3d035b=await listRuntimeAppRoles(_0x403b69,{..._0x2c7d7e[_0x5dad69(0x108)]?{'roleName':_0x2c7d7e[_0x5dad69(0x108)]}:{},'currentPage':_0x22f4c4,'pageSize':_0x30dd13});_0x150eed['push'](..._0x3d035b[_0x5dad69(0x12b)]);if(_0x3d035b['items'][_0x5dad69(0x109)]<_0x30dd13||_0x3d035b['paging']&&_0x150eed[_0x5dad69(0x109)]>=_0x3d035b[_0x5dad69(0x11a)]['totalCount'])return _0x150eed;}}export async function resolveRuntimeRoleRef(_0x32ca5a,_0x53ef58){const _0x25715f=a59_0x1c1cb5,_0x2c3fea=_0x53ef58[_0x25715f(0x12a)]();if(!_0x2c3fea)throw CliErrors[_0x25715f(0x120)](_0x25715f(0x11c),_0x25715f(0x11d));if(/^\d+$/['test'](_0x2c3fea))return getRuntimeRoleById(_0x32ca5a,Number(_0x2c3fea));const _0x4a1572=(await listAllRuntimeRoles(_0x32ca5a))[_0x25715f(0x12e)](_0x42e808=>_0x42e808['roleName']===_0x2c3fea);if(_0x4a1572[_0x25715f(0x109)]===0x0)throw CliErrors[_0x25715f(0x120)](_0x25715f(0x113)+_0x2c3fea+_0x25715f(0x11f)+_0x32ca5a+'.','Run\x20`lovrabet\x20role\x20list`\x20or\x20pass\x20--role\x20<id>.');if(_0x4a1572[_0x25715f(0x109)]>0x1)throw CliErrors['validation']('Runtime\x20role\x20name\x20\x22'+_0x2c3fea+_0x25715f(0x144),_0x25715f(0x11e)+_0x4a1572[_0x25715f(0x122)](_0x36a772=>_0x36a772['id'])[_0x25715f(0x116)](',\x20')+'.');const _0x3318e7=_0x4a1572[0x0],_0x52d9c7=_0x3318e7['id'];if(typeof _0x52d9c7!==_0x25715f(0x14a)||!Number[_0x25715f(0x13b)](_0x52d9c7)||_0x52d9c7<=0x0)throw CliErrors['validation']('Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.');return{..._0x3318e7,'id':_0x52d9c7};}function parseRuntimeUserId(_0xebf22c){const _0x1457ef=a59_0x1c1cb5,_0x365a5a=_0xebf22c[_0x1457ef(0x12a)](),_0x408eff=normalizeRuntimeUserId(_0x365a5a);if(_0x408eff===undefined)throw CliErrors['validation']('Invalid\x20runtime\x20userId.',_0x1457ef(0x10d));return _0x408eff;}export async function prepareRuntimeMemberMutation(_0x32b90e,_0x379a01){const _0x463a1e=a59_0x1c1cb5,_0x4555dc=await resolveRuntimeRoleRef(_0x32b90e[_0x463a1e(0x12f)],_0x32b90e[_0x463a1e(0x12c)](_0x463a1e(0x13d)));if(_0x4555dc['roleType']==='OWNER')throw CliErrors[_0x463a1e(0x120)](_0x463a1e(0x13f),'Transfer\x20or\x20manage\x20application\x20ownership\x20through\x20the\x20dedicated\x20application\x20workflow.');const _0x5e0957=parseRuntimeUserId(_0x32b90e[_0x463a1e(0x12c)](_0x463a1e(0x142))),_0x4b47e8=(await listRuntimeRoleUsers(_0x32b90e[_0x463a1e(0x12f)]))[_0x463a1e(0x122)](_0x335ae9=>{const _0x296e31=_0x463a1e;if(typeof _0x335ae9['id']!==_0x296e31(0x14a)||!Number[_0x296e31(0x13b)](_0x335ae9['id'])||_0x335ae9['id']<=0x0)throw CliErrors[_0x296e31(0x120)](_0x296e31(0x130));return{..._0x335ae9,'userList':[..._0x335ae9[_0x296e31(0x112)]??[]],'applyUserList':[..._0x335ae9['applyUserList']??[]]};}),_0x186587=_0x4b47e8[_0x463a1e(0x10f)](_0x254502=>_0x254502['id']===_0x4555dc['id']);if(!_0x186587)throw CliErrors[_0x463a1e(0x120)]('Runtime\x20role\x20'+_0x4555dc['id']+_0x463a1e(0x136),'Reload\x20the\x20role\x20list\x20and\x20retry\x20after\x20the\x20server\x20state\x20is\x20consistent.');const _0x111e9b=_0x3067cc=>{const _0x593f5b=_0x463a1e,_0x4ed79e=normalizeRuntimeUserId(_0x3067cc);if(_0x4ed79e===undefined)throw CliErrors['validation'](_0x593f5b(0x149));return _0x4ed79e;},_0x1d1c79=_0x186587[_0x463a1e(0x112)][_0x463a1e(0x122)](_0x1101f0=>_0x111e9b(_0x1101f0[_0x463a1e(0x128)])),_0x2a304b=_0x32b90e[_0x463a1e(0x115)](_0x463a1e(0x14b));if(_0x2a304b!==undefined&&_0x2a304b!==null&&_0x2a304b!==''){const _0x2690c3=_0x32b90e[_0x463a1e(0x123)](_0x463a1e(0x14b));if(!Number['isSafeInteger'](_0x2690c3)||_0x2690c3<0x0)throw CliErrors[_0x463a1e(0x120)](_0x463a1e(0x132));if(_0x1d1c79[_0x463a1e(0x109)]!==_0x2690c3)throw CliErrors[_0x463a1e(0x120)](_0x463a1e(0x110)+_0x2690c3+_0x463a1e(0x13a)+_0x1d1c79[_0x463a1e(0x109)]+'.','Read\x20the\x20current\x20members\x20and\x20retry\x20with\x20the\x20new\x20expected\x20count.');}const _0x29db34=_0x1d1c79[_0x463a1e(0x13c)](_0x5e0957),_0xd4d0ad=[];let _0x37aa33=!![];if(_0x379a01===_0x463a1e(0x14c)){const _0xf3f8e8=await listRuntimeAppUsers(_0x32b90e[_0x463a1e(0x12f)]),_0x4e9f88=_0xf3f8e8[_0x463a1e(0x12e)](_0x2cf335=>normalizeRuntimeUserId(_0x2cf335['code'])===_0x5e0957);if(_0x4e9f88['length']!==0x1||!_0x4e9f88[0x0]['userName']?.[_0x463a1e(0x12a)]())throw CliErrors[_0x463a1e(0x120)](_0x463a1e(0x133)+_0x5e0957+_0x463a1e(0x11b)+_0x32b90e[_0x463a1e(0x12f)]+'.','Use\x20a\x20userId\x20returned\x20by\x20the\x20current\x20application\x27s\x20personnel\x20list.');_0x29db34?(_0x37aa33=![],_0xd4d0ad[_0x463a1e(0x10e)](_0x463a1e(0x145)+_0x5e0957+'\x20is\x20already\x20in\x20runtime\x20role\x20'+_0x4555dc['id']+'.')):_0x186587[_0x463a1e(0x112)][_0x463a1e(0x10e)]({'userId':_0x5e0957,'username':_0x4e9f88[0x0][_0x463a1e(0x129)]});}else!_0x29db34?(_0x37aa33=![],_0xd4d0ad[_0x463a1e(0x10e)]('User\x20'+_0x5e0957+'\x20is\x20not\x20in\x20runtime\x20role\x20'+_0x4555dc['id']+'.')):_0x186587[_0x463a1e(0x112)]=_0x186587['userList']['filter'](_0x49df7d=>_0x111e9b(_0x49df7d[_0x463a1e(0x128)])!==_0x5e0957);return{'role':_0x4555dc,'userId':_0x5e0957,'roleList':_0x4b47e8,'before':{'userIds':_0x1d1c79},'after':{'userIds':_0x186587[_0x463a1e(0x112)][_0x463a1e(0x122)](_0x3457a8=>_0x111e9b(_0x3457a8[_0x463a1e(0x128)]))},'shouldWrite':_0x37aa33,'warnings':_0xd4d0ad};}export function runtimeRoleWriteResult(_0x3dac59,_0x211553,_0x5064bb,_0xad60d6,_0x4c9a3d,_0x1ba946=[]){const _0x22c13c=a59_0x1c1cb5;return{'operation':_0x3dac59,'scope':_0x22c13c(0x121),'selector':_0x211553,'before':_0x5064bb,'after':_0xad60d6,'dryRun':![],'backend':_0x4c9a3d,'warnings':_0x1ba946};}
@@ -1 +1 @@
1
- const a60_0x1e5a84=a60_0x5085;(function(_0x3ae94e,_0x4ca5bc){const _0x2f9d37=a60_0x5085,_0x4638f5=_0x3ae94e();while(!![]){try{const _0x11d57c=-parseInt(_0x2f9d37(0x1d9))/0x1+parseInt(_0x2f9d37(0x1de))/0x2*(-parseInt(_0x2f9d37(0x1e4))/0x3)+parseInt(_0x2f9d37(0x1cd))/0x4+parseInt(_0x2f9d37(0x1d6))/0x5+-parseInt(_0x2f9d37(0x1dc))/0x6*(-parseInt(_0x2f9d37(0x1e1))/0x7)+parseInt(_0x2f9d37(0x1df))/0x8+-parseInt(_0x2f9d37(0x1da))/0x9;if(_0x11d57c===_0x4ca5bc)break;else _0x4638f5['push'](_0x4638f5['shift']());}catch(_0x1560fd){_0x4638f5['push'](_0x4638f5['shift']());}}}(a60_0x5aa1,0x89a88));import{updateRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function a60_0x5aa1(){const _0x2efdaa=['update','/client/permit/role/update','2731180jIAAeA','validation','trim','--remark\x20must\x20not\x20be\x20blank.','name','body','Preview:\x20update\x20a\x20runtime\x20CUSTOM\x20role','Update\x20a\x20runtime\x20CUSTOM\x20role\x27s\x20code,\x20name,\x20or\x20remark','num','4651250KXFVFh','New\x20role\x20name','appCode','1026742VUtduA','2649735UzLJfD','New\x20non-empty\x20role\x20remark','6KCfhLh','Changes\x20the\x20custom\x20role\x20code,\x20name,\x20or\x20note\x20in\x20the\x20current\x20runtime\x20app.\x20The\x20role\x20updates\x20immediately.','214294nYHgXf','4057672SitrNu','flag','5103518TohkeF','string','remark','27ajPuBP','POST','The\x20current\x20runtime\x20role\x20API\x20does\x20not\x20support\x20clearing\x20an\x20existing\x20remark.','str','--name\x20must\x20not\x20be\x20blank.','Pass\x20--role-code,\x20--name,\x20or\x20--remark\x20to\x20update\x20the\x20runtime\x20role.','description'];a60_0x5aa1=function(){return _0x2efdaa;};return a60_0x5aa1();}function updateFields(_0x4b62e0){const _0x50df73=a60_0x5085,_0x4649aa=_0x4b62e0[_0x50df73(0x1e0)]('role-code')!==undefined,_0x552346=_0x4b62e0[_0x50df73(0x1e0)](_0x50df73(0x1d1))!==undefined,_0x80ee54=_0x4b62e0[_0x50df73(0x1e0)](_0x50df73(0x1e3))!==undefined;if(!_0x4649aa&&!_0x552346&&!_0x80ee54)throw CliErrors[_0x50df73(0x1ce)](_0x50df73(0x1e9));const _0x388b2c=readOptionalRuntimeRoleCode(_0x4b62e0),_0x285da0=_0x4b62e0[_0x50df73(0x1e7)](_0x50df73(0x1d1))['trim'](),_0x4c98e9=_0x4b62e0[_0x50df73(0x1e7)]('remark')[_0x50df73(0x1cf)]();if(_0x552346&&!_0x285da0)throw CliErrors[_0x50df73(0x1ce)](_0x50df73(0x1e8));if(_0x80ee54&&!_0x4c98e9)throw CliErrors[_0x50df73(0x1ce)](_0x50df73(0x1d0),_0x50df73(0x1e6));return{..._0x388b2c?{'roleCode':_0x388b2c}:{},..._0x552346?{'roleName':_0x285da0}:{},..._0x80ee54?{'remark':_0x4c98e9}:{}};}function a60_0x5085(_0x5bb86a,_0x2e37f9){_0x5bb86a=_0x5bb86a-0x1ca;const _0x5aa17a=a60_0x5aa1();let _0x50857d=_0x5aa17a[_0x5bb86a];return _0x50857d;}async function prepare(_0x568217){const _0x51d0bf=a60_0x5085,_0x4654df=await getRuntimeRoleById(_0x568217[_0x51d0bf(0x1d8)],_0x568217[_0x51d0bf(0x1d5)]('id'));return assertCustomRuntimeRole(_0x4654df,_0x51d0bf(0x1cb)),{'role':_0x4654df,'body':{'id':_0x4654df['id'],'appCode':_0x568217[_0x51d0bf(0x1d8)],...updateFields(_0x568217)}};}export const roleUpdate={'service':'role','command':a60_0x1e5a84(0x1cb),'description':a60_0x1e5a84(0x1d4),'risk':'high-risk-write','confirmationDescription':a60_0x1e5a84(0x1dd),'flags':[ROLE_ID_FLAG,ROLE_CODE_FLAG,{'name':a60_0x1e5a84(0x1d1),'type':a60_0x1e5a84(0x1e2),'description':a60_0x1e5a84(0x1d7)},{'name':a60_0x1e5a84(0x1e3),'type':a60_0x1e5a84(0x1e2),'description':a60_0x1e5a84(0x1db)}],async 'validate'(_0x12b6c5){updateFields(_0x12b6c5);},async 'dryRun'(_0x73c7b4){const _0x35412a=a60_0x1e5a84,{body:_0x328498}=await prepare(_0x73c7b4);return dryRun(_0x35412a(0x1e5),'/client/permit/role/update')[_0x35412a(0x1d2)](_0x328498)[_0x35412a(0x1ca)](_0x35412a(0x1d3))['build']();},async 'execute'(_0xb480b2){const _0x3977cc=a60_0x1e5a84,{role:_0x3bfe02,body:_0x23181e}=await prepare(_0xb480b2),_0x4983ee=await updateRuntimeAppRole(_0x23181e);return{'ok':!![],'data':runtimeRoleWriteResult('update',{'roleId':_0x3bfe02['id']},projectRuntimeRole(_0x3bfe02),projectRuntimeRole(_0x4983ee),{'method':'POST','path':_0x3977cc(0x1cc)})};}};
1
+ const a60_0xe371f7=a60_0x2710;(function(_0x4ffe85,_0x5bfcc8){const _0x6ed7cb=a60_0x2710,_0x1eed50=_0x4ffe85();while(!![]){try{const _0x45b85f=-parseInt(_0x6ed7cb(0x12a))/0x1*(parseInt(_0x6ed7cb(0x108))/0x2)+-parseInt(_0x6ed7cb(0x114))/0x3*(parseInt(_0x6ed7cb(0x109))/0x4)+parseInt(_0x6ed7cb(0x128))/0x5*(-parseInt(_0x6ed7cb(0x110))/0x6)+parseInt(_0x6ed7cb(0x10f))/0x7+parseInt(_0x6ed7cb(0x10a))/0x8+parseInt(_0x6ed7cb(0x11e))/0x9*(-parseInt(_0x6ed7cb(0x129))/0xa)+parseInt(_0x6ed7cb(0x11b))/0xb*(parseInt(_0x6ed7cb(0x10e))/0xc);if(_0x45b85f===_0x5bfcc8)break;else _0x1eed50['push'](_0x1eed50['shift']());}catch(_0x3a02a3){_0x1eed50['push'](_0x1eed50['shift']());}}}(a60_0x3709,0xdf3ba));import{updateRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function updateFields(_0x4f7ea6){const _0x1ca9f2=a60_0x2710,_0x1147c8=_0x4f7ea6[_0x1ca9f2(0x124)](_0x1ca9f2(0x119))!==undefined,_0x57aff0=_0x4f7ea6[_0x1ca9f2(0x124)](_0x1ca9f2(0x121))!==undefined,_0x1da56d=_0x4f7ea6[_0x1ca9f2(0x124)](_0x1ca9f2(0x11c))!==undefined;if(!_0x1147c8&&!_0x57aff0&&!_0x1da56d)throw CliErrors[_0x1ca9f2(0x117)](_0x1ca9f2(0x123));const _0x4e6950=readOptionalRuntimeRoleCode(_0x4f7ea6),_0x1edddb=_0x4f7ea6[_0x1ca9f2(0x112)]('name')[_0x1ca9f2(0x106)](),_0x3df541=_0x4f7ea6[_0x1ca9f2(0x112)](_0x1ca9f2(0x11c))['trim']();if(_0x57aff0&&!_0x1edddb)throw CliErrors[_0x1ca9f2(0x117)](_0x1ca9f2(0x125));if(_0x1da56d&&!_0x3df541)throw CliErrors['validation']('--remark\x20must\x20not\x20be\x20blank.',_0x1ca9f2(0x122));return{..._0x4e6950?{'roleCode':_0x4e6950}:{},..._0x57aff0?{'roleName':_0x1edddb}:{},..._0x1da56d?{'remark':_0x3df541}:{}};}function a60_0x2710(_0x1dd7fc,_0x45b4f7){_0x1dd7fc=_0x1dd7fc-0x106;const _0x37090f=a60_0x3709();let _0x271007=_0x37090f[_0x1dd7fc];return _0x271007;}async function prepare(_0x2e86ae){const _0x1992c5=a60_0x2710,_0x5830bc=await getRuntimeRoleById(_0x2e86ae[_0x1992c5(0x116)],_0x2e86ae[_0x1992c5(0x127)]('id'));return assertCustomRuntimeRole(_0x5830bc,_0x1992c5(0x111)),{'role':_0x5830bc,'body':{'id':_0x5830bc['id'],'appCode':_0x2e86ae[_0x1992c5(0x116)],...updateFields(_0x2e86ae)}};}export const roleUpdate={'service':a60_0xe371f7(0x115),'command':'update','description':a60_0xe371f7(0x113),'risk':a60_0xe371f7(0x10b),'confirmationDescription':a60_0xe371f7(0x11a),'flags':[ROLE_ID_FLAG,ROLE_CODE_FLAG,{'name':'name','type':a60_0xe371f7(0x11d),'description':a60_0xe371f7(0x11f)},{'name':'remark','type':a60_0xe371f7(0x11d),'description':'New\x20non-empty\x20role\x20remark'}],async 'validate'(_0x70298f){updateFields(_0x70298f);},async 'dryRun'(_0x284999){const _0x1c9dd1=a60_0xe371f7,{body:_0x4650ed}=await prepare(_0x284999);return dryRun(_0x1c9dd1(0x126),_0x1c9dd1(0x120))[_0x1c9dd1(0x10d)](_0x4650ed)[_0x1c9dd1(0x10c)](_0x1c9dd1(0x118))[_0x1c9dd1(0x107)]();},async 'execute'(_0xec36cd){const _0x58e3a0=a60_0xe371f7,{role:_0x51f668,body:_0x146919}=await prepare(_0xec36cd),_0x552889=await updateRuntimeAppRole(_0x146919);return{'ok':!![],'data':runtimeRoleWriteResult(_0x58e3a0(0x111),{'roleId':_0x51f668['id']},projectRuntimeRole(_0x51f668),projectRuntimeRole(_0x552889),{'method':_0x58e3a0(0x126),'path':_0x58e3a0(0x120)})};}};function a60_0x3709(){const _0x20504f=['--name\x20must\x20not\x20be\x20blank.','POST','num','485620GAgCMH','288230dFZEzR','519GzAQLi','trim','build','4258wcaudM','7098716cZkNqa','11425600FaDZHU','high-risk-write','description','body','132rZYVKM','8352526EDKgeC','6TlCwzl','update','str','Update\x20a\x20runtime\x20CUSTOM\x20role\x27s\x20code,\x20name,\x20or\x20remark','3NaavAO','role','appCode','validation','Preview:\x20update\x20a\x20runtime\x20CUSTOM\x20role','role-code','Changes\x20the\x20custom\x20role\x20code,\x20name,\x20or\x20note\x20in\x20the\x20current\x20runtime\x20app.\x20The\x20role\x20updates\x20immediately.','1471459LmWJFC','remark','string','63nwqMOG','New\x20role\x20name','/client/permit/role/update','name','The\x20current\x20runtime\x20role\x20API\x20does\x20not\x20support\x20clearing\x20an\x20existing\x20remark.','Pass\x20--role-code,\x20--name,\x20or\x20--remark\x20to\x20update\x20the\x20runtime\x20role.','flag'];a60_0x3709=function(){return _0x20504f;};return a60_0x3709();}
@@ -1 +1 @@
1
- const a61_0x100ecd=a61_0x2e5e;(function(_0x3acfd1,_0x271fb5){const _0x3865ae=a61_0x2e5e,_0x3b72e1=_0x3acfd1();while(!![]){try{const _0x2ea263=parseInt(_0x3865ae(0x105))/0x1*(parseInt(_0x3865ae(0x109))/0x2)+-parseInt(_0x3865ae(0x10d))/0x3+-parseInt(_0x3865ae(0x108))/0x4+-parseInt(_0x3865ae(0xfd))/0x5+parseInt(_0x3865ae(0x111))/0x6+parseInt(_0x3865ae(0xfb))/0x7*(-parseInt(_0x3865ae(0x102))/0x8)+parseInt(_0x3865ae(0xfc))/0x9*(parseInt(_0x3865ae(0x100))/0xa);if(_0x2ea263===_0x271fb5)break;else _0x3b72e1['push'](_0x3b72e1['shift']());}catch(_0x1f914b){_0x3b72e1['push'](_0x3b72e1['shift']());}}}(a61_0x426c,0xbfaa2));function a61_0x426c(){const _0x482da1=['4770090dggVxT','POST','high-risk-write','Preview:\x20add\x20runtime\x20role\x20member','warnings','1413482euIPHR','81udDUrk','7559115IgizkM','Adds\x20the\x20given\x20runtime\x20user\x20to\x20the\x20target\x20role.\x20The\x20user\x20receives\x20the\x20permissions\x20of\x20that\x20role.','body','2497190hxibAZ','before','16WCCRSF','userId','role','22RfhakH','user-add','shouldWrite','2477268KJMEda','92562vDwSjA','Add\x20a\x20userId\x20to\x20one\x20runtime\x20role','roleList','appCode','2221854NDfNTb','/client/permit/user-role/update-user-list','build','after'];a61_0x426c=function(){return _0x482da1;};return a61_0x426c();}function a61_0x2e5e(_0x45efd4,_0x354206){_0x45efd4=_0x45efd4-0xfb;const _0x426cde=a61_0x426c();let _0x2e5e6e=_0x426cde[_0x45efd4];return _0x2e5e6e;}import{updateRuntimeRoleUsers}from'../../core/api-client.js';import{dryRun}from'../../framework/dryrun.js';import{EXPECT_USER_COUNT_FLAG,prepareRuntimeMemberMutation,ROLE_REF_FLAG,runtimeRoleWriteResult,USER_ID_FLAG}from'../../commands/role/shared.js';export const roleUserAdd={'service':a61_0x100ecd(0x104),'command':a61_0x100ecd(0x106),'description':a61_0x100ecd(0x10a),'risk':a61_0x100ecd(0x113),'confirmationDescription':a61_0x100ecd(0xfe),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x31976b){const _0x2da490=a61_0x100ecd,_0x16aceb=await prepareRuntimeMemberMutation(_0x31976b,_0x2da490(0x106));return dryRun(_0x2da490(0x112),_0x2da490(0x10e))[_0x2da490(0xff)]({'appCode':_0x31976b['appCode'],'roleList':_0x16aceb['roleList']})['description'](_0x16aceb[_0x2da490(0x107)]?_0x2da490(0x114):_0x16aceb[_0x2da490(0x115)][0x0])[_0x2da490(0x10f)]();},async 'execute'(_0x2f75fa){const _0x332184=a61_0x100ecd,_0x489715=await prepareRuntimeMemberMutation(_0x2f75fa,_0x332184(0x106));return _0x489715[_0x332184(0x107)]&&await updateRuntimeRoleUsers(_0x2f75fa[_0x332184(0x10c)],_0x489715[_0x332184(0x10b)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x332184(0x106),{'roleId':_0x489715[_0x332184(0x104)]['id'],'userId':_0x489715[_0x332184(0x103)]},_0x489715[_0x332184(0x101)],_0x489715[_0x332184(0x110)],{'method':'POST','path':_0x332184(0x10e)},_0x489715[_0x332184(0x115)])};}};
1
+ function a61_0x4477(){const _0x13abcc=['role','build','21igmrAe','user-add','shouldWrite','248877dZQYDm','before','Preview:\x20add\x20runtime\x20role\x20member','body','70685EnuIGW','high-risk-write','Add\x20a\x20userId\x20to\x20one\x20runtime\x20role','908142DSMPlp','/client/permit/user-role/update-user-list','warnings','13593654XmJrIR','after','847074smpPGJ','appCode','POST','1261833dwZNIx','userId','92GheaPN','Adds\x20the\x20given\x20runtime\x20user\x20to\x20the\x20target\x20role.\x20The\x20user\x20receives\x20the\x20permissions\x20of\x20that\x20role.','roleList','936464yqcxEO'];a61_0x4477=function(){return _0x13abcc;};return a61_0x4477();}const a61_0xc4b4f0=a61_0xb799;(function(_0x5579d8,_0x1e9ec){const _0x34b02f=a61_0xb799,_0x83f9ca=_0x5579d8();while(!![]){try{const _0x145070=parseInt(_0x34b02f(0x1ae))/0x1+parseInt(_0x34b02f(0x1b5))/0x2+parseInt(_0x34b02f(0x1bd))/0x3+-parseInt(_0x34b02f(0x1a5))/0x4*(-parseInt(_0x34b02f(0x1b2))/0x5)+-parseInt(_0x34b02f(0x1ba))/0x6*(-parseInt(_0x34b02f(0x1ab))/0x7)+-parseInt(_0x34b02f(0x1a8))/0x8+-parseInt(_0x34b02f(0x1b8))/0x9;if(_0x145070===_0x1e9ec)break;else _0x83f9ca['push'](_0x83f9ca['shift']());}catch(_0x2d6540){_0x83f9ca['push'](_0x83f9ca['shift']());}}}(a61_0x4477,0x3bc2f));function a61_0xb799(_0x13d5e3,_0x324e0b){_0x13d5e3=_0x13d5e3-0x1a4;const _0x44779e=a61_0x4477();let _0xb799c5=_0x44779e[_0x13d5e3];return _0xb799c5;}import{updateRuntimeRoleUsers}from'../../core/api-client.js';import{dryRun}from'../../framework/dryrun.js';import{EXPECT_USER_COUNT_FLAG,prepareRuntimeMemberMutation,ROLE_REF_FLAG,runtimeRoleWriteResult,USER_ID_FLAG}from'../../commands/role/shared.js';export const roleUserAdd={'service':a61_0xc4b4f0(0x1a9),'command':a61_0xc4b4f0(0x1ac),'description':a61_0xc4b4f0(0x1b4),'risk':a61_0xc4b4f0(0x1b3),'confirmationDescription':a61_0xc4b4f0(0x1a6),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x452549){const _0x467544=a61_0xc4b4f0,_0x1f5ca2=await prepareRuntimeMemberMutation(_0x452549,_0x467544(0x1ac));return dryRun(_0x467544(0x1bc),_0x467544(0x1b6))[_0x467544(0x1b1)]({'appCode':_0x452549[_0x467544(0x1bb)],'roleList':_0x1f5ca2[_0x467544(0x1a7)]})['description'](_0x1f5ca2[_0x467544(0x1ad)]?_0x467544(0x1b0):_0x1f5ca2[_0x467544(0x1b7)][0x0])[_0x467544(0x1aa)]();},async 'execute'(_0x59e3ae){const _0x42b8dd=a61_0xc4b4f0,_0x44f64b=await prepareRuntimeMemberMutation(_0x59e3ae,_0x42b8dd(0x1ac));return _0x44f64b['shouldWrite']&&await updateRuntimeRoleUsers(_0x59e3ae[_0x42b8dd(0x1bb)],_0x44f64b[_0x42b8dd(0x1a7)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x42b8dd(0x1ac),{'roleId':_0x44f64b['role']['id'],'userId':_0x44f64b[_0x42b8dd(0x1a4)]},_0x44f64b[_0x42b8dd(0x1af)],_0x44f64b[_0x42b8dd(0x1b9)],{'method':_0x42b8dd(0x1bc),'path':_0x42b8dd(0x1b6)},_0x44f64b[_0x42b8dd(0x1b7)])};}};
@@ -1 +1 @@
1
- const a62_0x2783d8=a62_0x4f8b;(function(_0x2906b1,_0x2c0873){const _0x4a4391=a62_0x4f8b,_0x3722bf=_0x2906b1();while(!![]){try{const _0x43c3fc=-parseInt(_0x4a4391(0x129))/0x1+parseInt(_0x4a4391(0x128))/0x2+parseInt(_0x4a4391(0x125))/0x3*(-parseInt(_0x4a4391(0x12f))/0x4)+parseInt(_0x4a4391(0x12d))/0x5*(parseInt(_0x4a4391(0x126))/0x6)+-parseInt(_0x4a4391(0x11f))/0x7*(parseInt(_0x4a4391(0x12e))/0x8)+-parseInt(_0x4a4391(0x124))/0x9*(-parseInt(_0x4a4391(0x133))/0xa)+parseInt(_0x4a4391(0x130))/0xb;if(_0x43c3fc===_0x2c0873)break;else _0x3722bf['push'](_0x3722bf['shift']());}catch(_0x251cd0){_0x3722bf['push'](_0x3722bf['shift']());}}}(a62_0x2069,0x862f1));import{updateRuntimeRoleUsers}from'../../core/api-client.js';function a62_0x4f8b(_0xc91256,_0x43881a){_0xc91256=_0xc91256-0x11c;const _0x206958=a62_0x2069();let _0x4f8bf6=_0x206958[_0xc91256];return _0x4f8bf6;}import{dryRun}from'../../framework/dryrun.js';import{EXPECT_USER_COUNT_FLAG,prepareRuntimeMemberMutation,ROLE_REF_FLAG,runtimeRoleWriteResult,USER_ID_FLAG}from'../../commands/role/shared.js';export const roleUserRemove={'service':'role','command':a62_0x2783d8(0x12c),'description':'Remove\x20a\x20userId\x20from\x20one\x20runtime\x20role','risk':'high-risk-write','confirmationDescription':a62_0x2783d8(0x121),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0xc6075e){const _0x6fd963=a62_0x2783d8,_0x172f22=await prepareRuntimeMemberMutation(_0xc6075e,_0x6fd963(0x12c));return dryRun(_0x6fd963(0x11e),_0x6fd963(0x12a))['body']({'appCode':_0xc6075e[_0x6fd963(0x122)],'roleList':_0x172f22[_0x6fd963(0x127)]})[_0x6fd963(0x132)](_0x172f22[_0x6fd963(0x11d)]?_0x6fd963(0x131):_0x172f22[_0x6fd963(0x120)][0x0])[_0x6fd963(0x11c)]();},async 'execute'(_0x1db2ff){const _0x4e6442=a62_0x2783d8,_0x3caf0c=await prepareRuntimeMemberMutation(_0x1db2ff,_0x4e6442(0x12c));return _0x3caf0c[_0x4e6442(0x11d)]&&await updateRuntimeRoleUsers(_0x1db2ff[_0x4e6442(0x122)],_0x3caf0c[_0x4e6442(0x127)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x4e6442(0x12c),{'roleId':_0x3caf0c['role']['id'],'userId':_0x3caf0c[_0x4e6442(0x12b)]},_0x3caf0c['before'],_0x3caf0c[_0x4e6442(0x123)],{'method':_0x4e6442(0x11e),'path':_0x4e6442(0x12a)},_0x3caf0c['warnings'])};}};function a62_0x2069(){const _0x2fa209=['build','shouldWrite','POST','77LULClR','warnings','Removes\x20the\x20given\x20runtime\x20user\x20from\x20the\x20target\x20role.\x20The\x20user\x20loses\x20permissions\x20granted\x20only\x20by\x20that\x20role.','appCode','after','13779OiSPuZ','15OyvGKc','8754PXmxMF','roleList','1335740Zgtcxw','429006GtHAPA','/client/permit/user-role/update-user-list','userId','user-remove','2360geFUJc','363192WHWRvV','700936JyuZKZ','10923781NsKLwZ','Preview:\x20remove\x20runtime\x20role\x20member','description','30ItnAnp'];a62_0x2069=function(){return _0x2fa209;};return a62_0x2069();}
1
+ const a62_0x1af190=a62_0x48fe;(function(_0x17465e,_0x56e5ea){const _0x33eb62=a62_0x48fe,_0x27b3d4=_0x17465e();while(!![]){try{const _0x51fa87=parseInt(_0x33eb62(0x177))/0x1*(parseInt(_0x33eb62(0x16d))/0x2)+-parseInt(_0x33eb62(0x176))/0x3+parseInt(_0x33eb62(0x171))/0x4+parseInt(_0x33eb62(0x175))/0x5*(parseInt(_0x33eb62(0x16b))/0x6)+parseInt(_0x33eb62(0x178))/0x7+-parseInt(_0x33eb62(0x17b))/0x8*(parseInt(_0x33eb62(0x17d))/0x9)+-parseInt(_0x33eb62(0x16c))/0xa*(parseInt(_0x33eb62(0x170))/0xb);if(_0x51fa87===_0x56e5ea)break;else _0x27b3d4['push'](_0x27b3d4['shift']());}catch(_0x143322){_0x27b3d4['push'](_0x27b3d4['shift']());}}}(a62_0x4539,0x7214f));import{updateRuntimeRoleUsers}from'../../core/api-client.js';function a62_0x48fe(_0x6d7edc,_0x2189f0){_0x6d7edc=_0x6d7edc-0x166;const _0x453971=a62_0x4539();let _0x48fe6a=_0x453971[_0x6d7edc];return _0x48fe6a;}function a62_0x4539(){const _0x4617bb=['roleList','POST','description','shouldWrite','user-remove','6oztAWG','800ZitoVM','22TWJQDf','userId','body','38005SRWsrP','1885240NpDJTx','after','warnings','appCode','1532915UhZcBp','1663521asrBvg','22469VGPxOc','2560047utKbJx','role','Preview:\x20remove\x20runtime\x20role\x20member','3544uBOhNy','high-risk-write','1881IMRYmE','/client/permit/user-role/update-user-list'];a62_0x4539=function(){return _0x4617bb;};return a62_0x4539();}import{dryRun}from'../../framework/dryrun.js';import{EXPECT_USER_COUNT_FLAG,prepareRuntimeMemberMutation,ROLE_REF_FLAG,runtimeRoleWriteResult,USER_ID_FLAG}from'../../commands/role/shared.js';export const roleUserRemove={'service':a62_0x1af190(0x179),'command':a62_0x1af190(0x16a),'description':'Remove\x20a\x20userId\x20from\x20one\x20runtime\x20role','risk':a62_0x1af190(0x17c),'confirmationDescription':'Removes\x20the\x20given\x20runtime\x20user\x20from\x20the\x20target\x20role.\x20The\x20user\x20loses\x20permissions\x20granted\x20only\x20by\x20that\x20role.','flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x40212d){const _0x2d5389=a62_0x1af190,_0x1afacf=await prepareRuntimeMemberMutation(_0x40212d,_0x2d5389(0x16a));return dryRun(_0x2d5389(0x167),_0x2d5389(0x17e))[_0x2d5389(0x16f)]({'appCode':_0x40212d[_0x2d5389(0x174)],'roleList':_0x1afacf[_0x2d5389(0x166)]})[_0x2d5389(0x168)](_0x1afacf[_0x2d5389(0x169)]?_0x2d5389(0x17a):_0x1afacf[_0x2d5389(0x173)][0x0])['build']();},async 'execute'(_0x46ba89){const _0x1aed2c=a62_0x1af190,_0x236870=await prepareRuntimeMemberMutation(_0x46ba89,_0x1aed2c(0x16a));return _0x236870[_0x1aed2c(0x169)]&&await updateRuntimeRoleUsers(_0x46ba89[_0x1aed2c(0x174)],_0x236870[_0x1aed2c(0x166)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x1aed2c(0x16a),{'roleId':_0x236870['role']['id'],'userId':_0x236870[_0x1aed2c(0x16e)]},_0x236870['before'],_0x236870[_0x1aed2c(0x172)],{'method':'POST','path':_0x1aed2c(0x17e)},_0x236870['warnings'])};}};
@@ -1 +1 @@
1
- const a63_0x496e64=a63_0x17b0;(function(_0x436c01,_0x2eef24){const _0x35e8bc=a63_0x17b0,_0x336d8e=_0x436c01();while(!![]){try{const _0xf69030=parseInt(_0x35e8bc(0x1cf))/0x1*(-parseInt(_0x35e8bc(0x1df))/0x2)+-parseInt(_0x35e8bc(0x1e7))/0x3*(-parseInt(_0x35e8bc(0x1a6))/0x4)+parseInt(_0x35e8bc(0x1b6))/0x5+parseInt(_0x35e8bc(0x1bf))/0x6+-parseInt(_0x35e8bc(0x1c2))/0x7+-parseInt(_0x35e8bc(0x1dc))/0x8*(parseInt(_0x35e8bc(0x1de))/0x9)+parseInt(_0x35e8bc(0x1cc))/0xa*(-parseInt(_0x35e8bc(0x1ee))/0xb);if(_0xf69030===_0x2eef24)break;else _0x336d8e['push'](_0x336d8e['shift']());}catch(_0x3c82b1){_0x336d8e['push'](_0x336d8e['shift']());}}}(a63_0x353c,0x41bcd));import{createRuntimeSchedule,deleteRuntimeSchedule,getRuntimeSchedule,listRuntimeSchedules,runRuntimeSchedule,validateRuntimeSchedule}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SCHEDULE_ID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,KIND_FLAG={'name':a63_0x496e64(0x1bd),'type':a63_0x496e64(0x1be),'required':!![],'enum':['CRON',a63_0x496e64(0x1ac)],'description':a63_0x496e64(0x1ec)},CRON_FLAG={'name':a63_0x496e64(0x1c6),'type':a63_0x496e64(0x1be),'description':a63_0x496e64(0x1a9)},SCHEDULED_AT_FLAG={'name':a63_0x496e64(0x1d0),'type':'string','description':a63_0x496e64(0x1c1)},TITLE_FLAG={'name':a63_0x496e64(0x1cd),'type':a63_0x496e64(0x1be),'required':!![],'description':'Schedule\x20title'},PROMPT_FLAG={'name':a63_0x496e64(0x1b0),'type':a63_0x496e64(0x1be),'required':!![],'description':a63_0x496e64(0x1b4)},MODEL_FLAG={'name':a63_0x496e64(0x1ed),'type':a63_0x496e64(0x1be),'enum':['kimi/k3',a63_0x496e64(0x1cb),'deepseek-v4-pro-0813'],'default':a63_0x496e64(0x1cb),'description':'Task\x20model\x20used\x20when\x20the\x20schedule\x20runs'},SCHEDULE_ID_FLAG={'name':'schedule-id','type':'string','required':!![],'description':a63_0x496e64(0x1d2),'pattern':{'regex':SCHEDULE_ID_PATTERN,'description':a63_0x496e64(0x1d5)}},LIMIT_FLAG={'name':a63_0x496e64(0x1b2),'type':a63_0x496e64(0x1bc),'default':0x14,'description':a63_0x496e64(0x1e9)},CURSOR_FLAG={'name':a63_0x496e64(0x1e5),'type':a63_0x496e64(0x1be),'description':a63_0x496e64(0x1ef)},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,MODEL_FLAG];function readScheduleInput(_0xd85263){const _0x5e3a87=a63_0x496e64,_0x228b19=_0xd85263['str']('kind'),_0x51cac3=_0xd85263[_0x5e3a87(0x1ab)](_0x5e3a87(0x1cd))[_0x5e3a87(0x1e8)](),_0x45e52c=_0xd85263[_0x5e3a87(0x1ab)]('prompt')['trim'](),_0x40976c=_0xd85263[_0x5e3a87(0x1ab)](_0x5e3a87(0x1ed)),_0x4a641f=_0xd85263[_0x5e3a87(0x1ab)](_0x5e3a87(0x1c6)),_0x31557f=_0xd85263['str'](_0x5e3a87(0x1d0));if(!_0x51cac3)throw CliErrors['validation'](_0x5e3a87(0x1c5));if(!_0x45e52c)throw CliErrors[_0x5e3a87(0x1e4)](_0x5e3a87(0x1bb));if(_0x228b19===_0x5e3a87(0x1e3)){if(!_0x4a641f||_0x31557f)throw CliErrors['validation']('CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.');return{'kind':_0x228b19,'timezone':_0x5e3a87(0x1d1),'cron':_0x4a641f,'title':_0x51cac3,'prompt':_0x45e52c,'model':_0x40976c};}if(_0x228b19==='ONCE'){if(!_0x31557f||_0x4a641f)throw CliErrors[_0x5e3a87(0x1e4)](_0x5e3a87(0x1c7));return{'kind':_0x228b19,'timezone':_0x5e3a87(0x1d1),'scheduledAt':_0x31557f,'title':_0x51cac3,'prompt':_0x45e52c,'model':_0x40976c};}throw CliErrors[_0x5e3a87(0x1e4)](_0x5e3a87(0x1ae));}function scheduleCollectionPath(_0x31a320){const _0x51a21c=a63_0x496e64;return _0x51a21c(0x1c8)+encodeURIComponent(_0x31a320)+_0x51a21c(0x1ca);}function a63_0x17b0(_0x3e5a76,_0x504e0a){_0x3e5a76=_0x3e5a76-0x1a6;const _0x353c95=a63_0x353c();let _0x17b0ba=_0x353c95[_0x3e5a76];return _0x17b0ba;}function scheduleItemPath(_0x119ed8,_0x372614){return scheduleCollectionPath(_0x119ed8)+'/'+encodeURIComponent(_0x372614);}function a63_0x353c(){const _0x25bb7c=['validate','--title\x20must\x20not\x20be\x20blank.','cron','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','/api/harness/apps/','List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','/schedules','deepseek-v4-flash-0731','10zeMnfN','title','appCode','2OHHNub','scheduled-at','UTC','Schedule\x20UUID','Created\x20','body','a\x20UUID\x20returned\x20by\x20schedule\x20create/list','schedule-id','description','Deleted\x20schedule\x20','\x20immediately','DELETE','length','563032omAqzK','\x20schedule\x20','18IWXJnI','15604BtPDRk','POST','Delete\x20the\x20schedule\x20and\x20stop\x20future\x20triggers','schedule','CRON','validation','cursor','Preview:\x20delete\x20schedule\x20','3aXFhus','trim','Page\x20size\x20from\x201\x20to\x20100','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','Schedule\x20kind:\x20CRON\x20or\x20ONCE','model','1349623yEpzmD','Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call','\x20from\x20schedule\x20','1401868seGvfT','num','create','Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules','delete','str','ONCE','Preview:\x20run\x20schedule\x20','--kind\x20must\x20be\x20CRON\x20or\x20ONCE.','detail','prompt','--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.','limit','Permanently\x20deletes\x20the\x20schedule\x20and\x20stops\x20future\x20auto-triggers.\x20Historical\x20Tasks\x20already\x20created\x20are\x20not\x20affected.','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','build','562290RxGvqk','Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','Preview:\x20create\x20an\x20Agent\x20schedule','Creates\x20a\x20schedule\x20in\x20the\x20current\x20app\x20that\x20can\x20auto-trigger\x20an\x20Agent.\x20At\x20the\x20scheduled\x20time\x20a\x20Task\x20is\x20created\x20and\x20run.','Run\x20the\x20schedule\x20once\x20immediately\x20and\x20create\x20a\x20Task','--prompt\x20must\x20not\x20be\x20blank.','number','kind','string','1320102bMnerm','Schedule\x20input\x20is\x20valid','Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules','942382KgYdZk','high-risk-write'];a63_0x353c=function(){return _0x25bb7c;};return a63_0x353c();}const scheduleValidate={'service':'schedule','command':a63_0x496e64(0x1c4),'description':a63_0x496e64(0x1b7),'risk':'read','flags':INPUT_FLAGS,async 'validate'(_0x1abcab){readScheduleInput(_0x1abcab);},async 'execute'(_0x4670d0){const _0x12823b=a63_0x496e64,_0x495f85=readScheduleInput(_0x4670d0),_0x28cb43=await validateRuntimeSchedule(_0x4670d0[_0x12823b(0x1ce)],_0x495f85);return{'ok':!![],'data':_0x28cb43,'message':_0x12823b(0x1c0)};}},scheduleCreate={'service':a63_0x496e64(0x1e2),'command':a63_0x496e64(0x1a8),'description':'Create\x20a\x20recurring\x20or\x20one-shot\x20Agent\x20schedule','risk':a63_0x496e64(0x1c3),'confirmationDescription':a63_0x496e64(0x1b9),'flags':INPUT_FLAGS,async 'validate'(_0xc16bed){readScheduleInput(_0xc16bed);},async 'execute'(_0x548a15){const _0xd0cead=a63_0x496e64,_0x586c28=readScheduleInput(_0x548a15),_0x45c6f4=await validateRuntimeSchedule(_0x548a15[_0xd0cead(0x1ce)],_0x586c28),_0x283fe4=await createRuntimeSchedule(_0x548a15[_0xd0cead(0x1ce)],_0x45c6f4);return{'ok':!![],'data':_0x283fe4,'message':_0xd0cead(0x1d3)+_0x283fe4[_0xd0cead(0x1bd)]+_0xd0cead(0x1dd)+_0x283fe4['scheduleId']};},async 'dryRun'(_0x3dc32e){const _0x319ca8=a63_0x496e64,_0x395e10=readScheduleInput(_0x3dc32e);return dryRun(_0x319ca8(0x1e0),scheduleCollectionPath(_0x3dc32e[_0x319ca8(0x1ce)]))[_0x319ca8(0x1d4)](_0x395e10)[_0x319ca8(0x1d7)](_0x319ca8(0x1b8))[_0x319ca8(0x1b5)]();}},scheduleList={'service':a63_0x496e64(0x1e2),'command':'list','description':a63_0x496e64(0x1c9),'risk':'read','flags':[KIND_FLAG,LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x20456b){const _0x43711d=a63_0x496e64,_0x1a84e5=_0x20456b[_0x43711d(0x1a7)](_0x43711d(0x1b2));if(!Number['isSafeInteger'](_0x1a84e5)||_0x1a84e5<0x1||_0x1a84e5>0x64)throw CliErrors['validation'](_0x43711d(0x1ea));const _0x45e18f=_0x20456b[_0x43711d(0x1ab)](_0x43711d(0x1e5));if(_0x45e18f&&(_0x45e18f[_0x43711d(0x1db)]>0x400||_0x45e18f[_0x43711d(0x1e8)]()!==_0x45e18f))throw CliErrors[_0x43711d(0x1e4)](_0x43711d(0x1b1));},async 'execute'(_0x3447f2){const _0x1fcf17=a63_0x496e64,_0x292796=_0x3447f2[_0x1fcf17(0x1ab)](_0x1fcf17(0x1e5)),_0x40744b=await listRuntimeSchedules(_0x3447f2[_0x1fcf17(0x1ce)],{'kind':_0x3447f2[_0x1fcf17(0x1ab)](_0x1fcf17(0x1bd)),'limit':_0x3447f2[_0x1fcf17(0x1a7)](_0x1fcf17(0x1b2)),..._0x292796?{'cursor':_0x292796}:{}});return{'ok':!![],'data':_0x40744b};}},scheduleDetail={'service':a63_0x496e64(0x1e2),'command':a63_0x496e64(0x1af),'description':'Show\x20one\x20schedule\x20by\x20schedule\x20ID','risk':a63_0x496e64(0x1eb),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x5901f9){const _0x1396e2=a63_0x496e64,_0x183f3d=await getRuntimeSchedule(_0x5901f9[_0x1396e2(0x1ce)],_0x5901f9['str'](_0x1396e2(0x1d6)));return{'ok':!![],'data':_0x183f3d};}},scheduleRun={'service':a63_0x496e64(0x1e2),'command':'run','description':a63_0x496e64(0x1ba),'risk':a63_0x496e64(0x1c3),'confirmationDescription':'Ignores\x20the\x20original\x20trigger\x20time,\x20runs\x20the\x20schedule\x20once\x20now,\x20and\x20creates\x20a\x20new\x20Agent\x20Task.','flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x645355){const _0x5cd393=a63_0x496e64,_0x1c60d6=_0x645355['str'](_0x5cd393(0x1d6)),_0x45bc0c=await runRuntimeSchedule(_0x645355[_0x5cd393(0x1ce)],_0x1c60d6);return{'ok':!![],'data':_0x45bc0c,'message':'Queued\x20Task\x20'+_0x45bc0c['taskId']+_0x5cd393(0x1f0)+_0x1c60d6};},async 'dryRun'(_0x4528e9){const _0x425d15=a63_0x496e64,_0x54e095=_0x4528e9[_0x425d15(0x1ab)](_0x425d15(0x1d6));return dryRun(_0x425d15(0x1e0),scheduleItemPath(_0x4528e9[_0x425d15(0x1ce)],_0x54e095)+'/run')[_0x425d15(0x1d7)](_0x425d15(0x1ad)+_0x54e095+_0x425d15(0x1d9))[_0x425d15(0x1b5)]();}},scheduleDelete={'service':'schedule','command':a63_0x496e64(0x1aa),'description':a63_0x496e64(0x1e1),'risk':a63_0x496e64(0x1c3),'confirmationDescription':a63_0x496e64(0x1b3),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x45bdb2){const _0x9c9394=a63_0x496e64,_0x329821=_0x45bdb2[_0x9c9394(0x1ab)](_0x9c9394(0x1d6)),_0x3bab29=await deleteRuntimeSchedule(_0x45bdb2[_0x9c9394(0x1ce)],_0x329821);return{'ok':!![],'data':_0x3bab29,'message':_0x9c9394(0x1d8)+_0x329821};},async 'dryRun'(_0x146a41){const _0x277649=a63_0x496e64,_0x4c6603=_0x146a41[_0x277649(0x1ab)](_0x277649(0x1d6));return dryRun(_0x277649(0x1da),scheduleItemPath(_0x146a41[_0x277649(0x1ce)],_0x4c6603))['description'](_0x277649(0x1e6)+_0x4c6603)[_0x277649(0x1b5)]();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
1
+ const a63_0x64e5e9=a63_0x58ca;function a63_0x58ca(_0x30eecf,_0x30c33d){_0x30eecf=_0x30eecf-0x16e;const _0x112be0=a63_0x112b();let _0x58ca04=_0x112be0[_0x30eecf];return _0x58ca04;}(function(_0x165f44,_0x404d53){const _0x1b1fe5=a63_0x58ca,_0x10d95a=_0x165f44();while(!![]){try{const _0x1714b3=-parseInt(_0x1b1fe5(0x19f))/0x1*(-parseInt(_0x1b1fe5(0x17a))/0x2)+-parseInt(_0x1b1fe5(0x17b))/0x3*(parseInt(_0x1b1fe5(0x19a))/0x4)+parseInt(_0x1b1fe5(0x18a))/0x5*(-parseInt(_0x1b1fe5(0x18f))/0x6)+-parseInt(_0x1b1fe5(0x185))/0x7*(-parseInt(_0x1b1fe5(0x18d))/0x8)+parseInt(_0x1b1fe5(0x180))/0x9*(parseInt(_0x1b1fe5(0x16f))/0xa)+-parseInt(_0x1b1fe5(0x1a8))/0xb*(-parseInt(_0x1b1fe5(0x183))/0xc)+-parseInt(_0x1b1fe5(0x187))/0xd*(-parseInt(_0x1b1fe5(0x190))/0xe);if(_0x1714b3===_0x404d53)break;else _0x10d95a['push'](_0x10d95a['shift']());}catch(_0x1e48b0){_0x10d95a['push'](_0x10d95a['shift']());}}}(a63_0x112b,0xb8ad8));import{createRuntimeSchedule,deleteRuntimeSchedule,getRuntimeSchedule,listRuntimeSchedules,runRuntimeSchedule,validateRuntimeSchedule}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SCHEDULE_ID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,KIND_FLAG={'name':a63_0x64e5e9(0x175),'type':a63_0x64e5e9(0x1ac),'required':!![],'enum':[a63_0x64e5e9(0x198),a63_0x64e5e9(0x172)],'description':a63_0x64e5e9(0x1b9)},CRON_FLAG={'name':a63_0x64e5e9(0x1a9),'type':a63_0x64e5e9(0x1ac),'description':a63_0x64e5e9(0x1b0)},SCHEDULED_AT_FLAG={'name':a63_0x64e5e9(0x177),'type':a63_0x64e5e9(0x1ac),'description':a63_0x64e5e9(0x189)},TITLE_FLAG={'name':a63_0x64e5e9(0x1a2),'type':a63_0x64e5e9(0x1ac),'required':!![],'description':a63_0x64e5e9(0x1b8)},PROMPT_FLAG={'name':a63_0x64e5e9(0x174),'type':a63_0x64e5e9(0x1ac),'required':!![],'description':a63_0x64e5e9(0x1b1)},MODEL_FLAG={'name':a63_0x64e5e9(0x1a3),'type':'string','enum':['kimi/k3',a63_0x64e5e9(0x17d),a63_0x64e5e9(0x1b7)],'default':'deepseek-v4-flash-0731','description':a63_0x64e5e9(0x18c)},SCHEDULE_ID_FLAG={'name':a63_0x64e5e9(0x191),'type':a63_0x64e5e9(0x1ac),'required':!![],'description':'Schedule\x20UUID','pattern':{'regex':SCHEDULE_ID_PATTERN,'description':'a\x20UUID\x20returned\x20by\x20schedule\x20create/list'}},LIMIT_FLAG={'name':a63_0x64e5e9(0x178),'type':a63_0x64e5e9(0x1af),'default':0x14,'description':a63_0x64e5e9(0x18e)},CURSOR_FLAG={'name':a63_0x64e5e9(0x184),'type':'string','description':a63_0x64e5e9(0x171)},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,MODEL_FLAG];function readScheduleInput(_0x51c041){const _0x4f271f=a63_0x64e5e9,_0x5957e8=_0x51c041[_0x4f271f(0x1ba)](_0x4f271f(0x175)),_0x3b9714=_0x51c041[_0x4f271f(0x1ba)](_0x4f271f(0x1a2))[_0x4f271f(0x1b6)](),_0x37defc=_0x51c041['str'](_0x4f271f(0x174))['trim'](),_0x5d34fe=_0x51c041[_0x4f271f(0x1ba)](_0x4f271f(0x1a3)),_0x2e6f40=_0x51c041[_0x4f271f(0x1ba)](_0x4f271f(0x1a9)),_0x33de7f=_0x51c041[_0x4f271f(0x1ba)](_0x4f271f(0x177));if(!_0x3b9714)throw CliErrors[_0x4f271f(0x19c)](_0x4f271f(0x1ab));if(!_0x37defc)throw CliErrors[_0x4f271f(0x19c)](_0x4f271f(0x176));if(_0x5957e8==='CRON'){if(!_0x2e6f40||_0x33de7f)throw CliErrors[_0x4f271f(0x19c)](_0x4f271f(0x181));return{'kind':_0x5957e8,'timezone':_0x4f271f(0x1a4),'cron':_0x2e6f40,'title':_0x3b9714,'prompt':_0x37defc,'model':_0x5d34fe};}if(_0x5957e8==='ONCE'){if(!_0x33de7f||_0x2e6f40)throw CliErrors[_0x4f271f(0x19c)](_0x4f271f(0x1aa));return{'kind':_0x5957e8,'timezone':'UTC','scheduledAt':_0x33de7f,'title':_0x3b9714,'prompt':_0x37defc,'model':_0x5d34fe};}throw CliErrors['validation']('--kind\x20must\x20be\x20CRON\x20or\x20ONCE.');}function scheduleCollectionPath(_0x221630){const _0x8859ae=a63_0x64e5e9;return _0x8859ae(0x194)+encodeURIComponent(_0x221630)+'/schedules';}function scheduleItemPath(_0x3880ba,_0x233fe7){return scheduleCollectionPath(_0x3880ba)+'/'+encodeURIComponent(_0x233fe7);}function a63_0x112b(){const _0x539844=['length','trim','deepseek-v4-pro-0813','Schedule\x20title','Schedule\x20kind:\x20CRON\x20or\x20ONCE','str','create','taskId','schedule','10acfEVS','Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call','ONCE','read','prompt','kind','--prompt\x20must\x20not\x20be\x20blank.','scheduled-at','limit','Created\x20','204Clygoo','28554JxcAxd','appCode','deepseek-v4-flash-0731','Ignores\x20the\x20original\x20trigger\x20time,\x20runs\x20the\x20schedule\x20once\x20now,\x20and\x20creates\x20a\x20new\x20Agent\x20Task.','body','2249469NVrdyB','CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.','Preview:\x20create\x20an\x20Agent\x20schedule','12aCCwEX','cursor','49ZXoyNl','Queued\x20Task\x20','10777IloHFs','Preview:\x20run\x20schedule\x20','Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules','5yHSCVX','build','Task\x20model\x20used\x20when\x20the\x20schedule\x20runs','155248UapuuO','Page\x20size\x20from\x201\x20to\x20100','3176286xZryAx','6818tfpiZp','schedule-id','\x20from\x20schedule\x20','list','/api/harness/apps/','POST','Show\x20one\x20schedule\x20by\x20schedule\x20ID','isSafeInteger','CRON','description','164cIPBRY','\x20immediately','validation','\x20schedule\x20','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','6506LRPvmu','Create\x20a\x20recurring\x20or\x20one-shot\x20Agent\x20schedule','detail','title','model','UTC','run','Creates\x20a\x20schedule\x20in\x20the\x20current\x20app\x20that\x20can\x20auto-trigger\x20an\x20Agent.\x20At\x20the\x20scheduled\x20time\x20a\x20Task\x20is\x20created\x20and\x20run.','DELETE','2452351nVqbIK','cron','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','--title\x20must\x20not\x20be\x20blank.','string','high-risk-write','Preview:\x20delete\x20schedule\x20','number','Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','/run','Permanently\x20deletes\x20the\x20schedule\x20and\x20stops\x20future\x20auto-triggers.\x20Historical\x20Tasks\x20already\x20created\x20are\x20not\x20affected.','Run\x20the\x20schedule\x20once\x20immediately\x20and\x20create\x20a\x20Task'];a63_0x112b=function(){return _0x539844;};return a63_0x112b();}const scheduleValidate={'service':'schedule','command':'validate','description':a63_0x64e5e9(0x170),'risk':a63_0x64e5e9(0x173),'flags':INPUT_FLAGS,async 'validate'(_0x2fdaca){readScheduleInput(_0x2fdaca);},async 'execute'(_0x353780){const _0x574a74=a63_0x64e5e9,_0x2107dd=readScheduleInput(_0x353780),_0x142255=await validateRuntimeSchedule(_0x353780[_0x574a74(0x17c)],_0x2107dd);return{'ok':!![],'data':_0x142255,'message':'Schedule\x20input\x20is\x20valid'};}},scheduleCreate={'service':a63_0x64e5e9(0x16e),'command':a63_0x64e5e9(0x1bb),'description':a63_0x64e5e9(0x1a0),'risk':a63_0x64e5e9(0x1ad),'confirmationDescription':a63_0x64e5e9(0x1a6),'flags':INPUT_FLAGS,async 'validate'(_0x436df0){readScheduleInput(_0x436df0);},async 'execute'(_0x34cc2a){const _0x353d91=a63_0x64e5e9,_0x1cbe41=readScheduleInput(_0x34cc2a),_0x35b173=await validateRuntimeSchedule(_0x34cc2a['appCode'],_0x1cbe41),_0x5e4443=await createRuntimeSchedule(_0x34cc2a[_0x353d91(0x17c)],_0x35b173);return{'ok':!![],'data':_0x5e4443,'message':_0x353d91(0x179)+_0x5e4443[_0x353d91(0x175)]+_0x353d91(0x19d)+_0x5e4443['scheduleId']};},async 'dryRun'(_0x2ca14b){const _0x23dd41=a63_0x64e5e9,_0x293852=readScheduleInput(_0x2ca14b);return dryRun(_0x23dd41(0x195),scheduleCollectionPath(_0x2ca14b[_0x23dd41(0x17c)]))[_0x23dd41(0x17f)](_0x293852)[_0x23dd41(0x199)](_0x23dd41(0x182))[_0x23dd41(0x18b)]();}},scheduleList={'service':'schedule','command':a63_0x64e5e9(0x193),'description':'List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','risk':a63_0x64e5e9(0x173),'flags':[KIND_FLAG,LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x33d10a){const _0x5c98cf=a63_0x64e5e9,_0x37357c=_0x33d10a['num'](_0x5c98cf(0x178));if(!Number[_0x5c98cf(0x197)](_0x37357c)||_0x37357c<0x1||_0x37357c>0x64)throw CliErrors[_0x5c98cf(0x19c)](_0x5c98cf(0x19e));const _0x51476b=_0x33d10a[_0x5c98cf(0x1ba)](_0x5c98cf(0x184));if(_0x51476b&&(_0x51476b[_0x5c98cf(0x1b5)]>0x400||_0x51476b[_0x5c98cf(0x1b6)]()!==_0x51476b))throw CliErrors[_0x5c98cf(0x19c)]('--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.');},async 'execute'(_0x3e884b){const _0x25a663=a63_0x64e5e9,_0x24de85=_0x3e884b[_0x25a663(0x1ba)]('cursor'),_0x13dfba=await listRuntimeSchedules(_0x3e884b[_0x25a663(0x17c)],{'kind':_0x3e884b[_0x25a663(0x1ba)](_0x25a663(0x175)),'limit':_0x3e884b['num'](_0x25a663(0x178)),..._0x24de85?{'cursor':_0x24de85}:{}});return{'ok':!![],'data':_0x13dfba};}},scheduleDetail={'service':a63_0x64e5e9(0x16e),'command':a63_0x64e5e9(0x1a1),'description':a63_0x64e5e9(0x196),'risk':a63_0x64e5e9(0x173),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x43813a){const _0x3dac25=a63_0x64e5e9,_0x554347=await getRuntimeSchedule(_0x43813a['appCode'],_0x43813a[_0x3dac25(0x1ba)](_0x3dac25(0x191)));return{'ok':!![],'data':_0x554347};}},scheduleRun={'service':a63_0x64e5e9(0x16e),'command':a63_0x64e5e9(0x1a5),'description':a63_0x64e5e9(0x1b4),'risk':a63_0x64e5e9(0x1ad),'confirmationDescription':a63_0x64e5e9(0x17e),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x426906){const _0x132952=a63_0x64e5e9,_0x163edf=_0x426906[_0x132952(0x1ba)](_0x132952(0x191)),_0x233f5b=await runRuntimeSchedule(_0x426906[_0x132952(0x17c)],_0x163edf);return{'ok':!![],'data':_0x233f5b,'message':_0x132952(0x186)+_0x233f5b[_0x132952(0x1bc)]+_0x132952(0x192)+_0x163edf};},async 'dryRun'(_0x36beba){const _0x13b770=a63_0x64e5e9,_0x41871c=_0x36beba['str']('schedule-id');return dryRun(_0x13b770(0x195),scheduleItemPath(_0x36beba['appCode'],_0x41871c)+_0x13b770(0x1b2))[_0x13b770(0x199)](_0x13b770(0x188)+_0x41871c+_0x13b770(0x19b))[_0x13b770(0x18b)]();}},scheduleDelete={'service':a63_0x64e5e9(0x16e),'command':'delete','description':'Delete\x20the\x20schedule\x20and\x20stop\x20future\x20triggers','risk':a63_0x64e5e9(0x1ad),'confirmationDescription':a63_0x64e5e9(0x1b3),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x230456){const _0x2e8465=a63_0x64e5e9,_0x4949f4=_0x230456[_0x2e8465(0x1ba)](_0x2e8465(0x191)),_0x381a9d=await deleteRuntimeSchedule(_0x230456[_0x2e8465(0x17c)],_0x4949f4);return{'ok':!![],'data':_0x381a9d,'message':'Deleted\x20schedule\x20'+_0x4949f4};},async 'dryRun'(_0x243c1b){const _0x149c01=a63_0x64e5e9,_0x158867=_0x243c1b[_0x149c01(0x1ba)](_0x149c01(0x191));return dryRun(_0x149c01(0x1a7),scheduleItemPath(_0x243c1b[_0x149c01(0x17c)],_0x158867))[_0x149c01(0x199)](_0x149c01(0x1ae)+_0x158867)[_0x149c01(0x18b)]();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
@@ -1 +1 @@
1
- const a64_0x3a60a4=a64_0x166f;(function(_0x373ab8,_0x30a348){const _0x4c6096=a64_0x166f,_0x2b8633=_0x373ab8();while(!![]){try{const _0x394ad0=parseInt(_0x4c6096(0x125))/0x1+-parseInt(_0x4c6096(0x123))/0x2*(-parseInt(_0x4c6096(0x11f))/0x3)+parseInt(_0x4c6096(0x128))/0x4+-parseInt(_0x4c6096(0x126))/0x5+parseInt(_0x4c6096(0x120))/0x6*(-parseInt(_0x4c6096(0x127))/0x7)+-parseInt(_0x4c6096(0x121))/0x8+-parseInt(_0x4c6096(0x11e))/0x9;if(_0x394ad0===_0x30a348)break;else _0x2b8633['push'](_0x2b8633['shift']());}catch(_0xd93e51){_0x2b8633['push'](_0x2b8633['shift']());}}}(a64_0x356c,0x40f93));function a64_0x356c(){const _0x1c64e3=['read','513152Adchfc','664195kjGvho','322lQHxIN','876808WCdZMV','Export\x20machine-readable\x20command\x20schema\x20(JSON)','3169467kUnguX','31743hfXbPM','90GtJIpO','606080fzlpeK','schema','18tloLCd'];a64_0x356c=function(){return _0x1c64e3;};return a64_0x356c();}import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x5a0197){const _0x3966b3=await buildSchemaPayload();return{'ok':!![],'data':_0x3966b3};}function a64_0x166f(_0x18de35,_0x384b40){_0x18de35=_0x18de35-0x11d;const _0x356cd8=a64_0x356c();let _0x166fbb=_0x356cd8[_0x18de35];return _0x166fbb;}export const schemaDefinition={'service':a64_0x3a60a4(0x122),'command':'export','description':a64_0x3a60a4(0x11d),'risk':a64_0x3a60a4(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
1
+ function a64_0x7afe(_0x2883e,_0x11cc1c){_0x2883e=_0x2883e-0xeb;const _0xbeca5b=a64_0xbeca();let _0x7afe82=_0xbeca5b[_0x2883e];return _0x7afe82;}const a64_0x48ccbd=a64_0x7afe;(function(_0xc2f35d,_0xc11638){const _0x1736f0=a64_0x7afe,_0x35af29=_0xc2f35d();while(!![]){try{const _0xb820c8=parseInt(_0x1736f0(0xf0))/0x1*(parseInt(_0x1736f0(0xf3))/0x2)+parseInt(_0x1736f0(0xec))/0x3*(-parseInt(_0x1736f0(0xee))/0x4)+-parseInt(_0x1736f0(0xf4))/0x5+-parseInt(_0x1736f0(0xeb))/0x6+parseInt(_0x1736f0(0xef))/0x7+parseInt(_0x1736f0(0xf1))/0x8*(parseInt(_0x1736f0(0xed))/0x9)+-parseInt(_0x1736f0(0xf2))/0xa*(parseInt(_0x1736f0(0xf6))/0xb);if(_0xb820c8===_0xc11638)break;else _0x35af29['push'](_0x35af29['shift']());}catch(_0x4428cb){_0x35af29['push'](_0x35af29['shift']());}}}(a64_0xbeca,0x9aaae));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x2581d8){const _0x52516e=await buildSchemaPayload();return{'ok':!![],'data':_0x52516e};}export const schemaDefinition={'service':a64_0x48ccbd(0xf7),'command':a64_0x48ccbd(0xf5),'description':'Export\x20machine-readable\x20command\x20schema\x20(JSON)','risk':a64_0x48ccbd(0xf8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};function a64_0xbeca(){const _0x458936=['56574fUjpGj','1012016YCzrEN','8247281qGRJGF','377402hIiTYk','1240raksNY','10RJZZsh','2qmHWdC','166490oBidno','export','4786166NSGLqg','schema','read','2495862HgruqR','12iWUper'];a64_0xbeca=function(){return _0x458936;};return a64_0xbeca();}
@@ -1 +1 @@
1
- (function(_0x3ade68,_0x35dcc2){const _0x3925ad=a65_0x3551,_0x5bdef0=_0x3ade68();while(!![]){try{const _0x453aed=parseInt(_0x3925ad(0x144))/0x1*(-parseInt(_0x3925ad(0x15f))/0x2)+-parseInt(_0x3925ad(0x12b))/0x3+parseInt(_0x3925ad(0x11d))/0x4*(parseInt(_0x3925ad(0x13b))/0x5)+-parseInt(_0x3925ad(0x146))/0x6+parseInt(_0x3925ad(0x11c))/0x7+parseInt(_0x3925ad(0x150))/0x8+parseInt(_0x3925ad(0x141))/0x9;if(_0x453aed===_0x35dcc2)break;else _0x5bdef0['push'](_0x5bdef0['shift']());}catch(_0x39db0d){_0x5bdef0['push'](_0x5bdef0['shift']());}}}(a65_0x3805,0x4a4f3));import{compileServiceTreeCommand,matchServiceTreeCommand}from'@lovrabet/cli-framework';import{getLoginUserInfo,listDatasets}from'../../core/api-client.js';import{executeData,executeSdkBff,executeSdkSql}from'../../core/sdk-client.js';import{CliErrors}from'../../errors.js';import{listLocalServices,listLocalServiceTrees}from'../../commands/service/registry.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a65_0x3805(){const _0x4bb8f1=['11080qghtQg','json','entries','operator','validation','The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20high-risk\x20write.\x20It\x20may\x20make\x20business\x20changes\x20that\x20are\x20hard\x20to\x20reverse.','6087825lEjVBt','datatable','remainingArgs','4MYHUhx','datasetCode','3635898PtmcQz','mapTo','Cannot\x20resolve\x20datatable\x20\x22','appCode','\x20\x20\x20\x20command:\x20','nickName','employeeId','bffId','\x20requires\x20environment\x20\x22','\x22,\x20but\x20the\x20current\x20environment\x20is\x20\x22','1133960mAeFRT','length','\x20\x20\x20\x20sqlCode:\x20','\x20\x20\x20\x20','required','startsWith','sqlCode','const','tree','slice','string','\x20<command>\x20[flags]','high-risk-write','fromEntries','tableName','190906KvBdtg','\x20\x20\x20\x20datasetCode:\x20','appRef','\x20requires\x20target.functionName.','risk','cliPath','ctx.','enum','now','Unsupported\x20service\x20target\x20kind:\x20','loginName','default','commands','\x22\x20in\x20service\x20command\x20','Preview\x20dynamic\x20service\x20command:\x20','\x20\x20\x20\x20kind:\x20\x20\x20\x20','description','map','name','number','find','filter','\x20completed\x20in\x20','app','\x20\x20[','appBindings','Check\x20the\x20service\x20binding\x20and\x20current\x20connection.\x20Do\x20not\x20switch\x20environments\x20or\x20credentials\x20automatically.','tenantCode','bffCode','3641855qTInAS','96xhdElb','Use\x20lovrabet\x20dataset\x20list\x20to\x20confirm\x20the\x20physical\x20table\x20name\x20or\x20add\x20target.datasetCode\x20to\x20the\x20manifest.','kind','params','source','Service\x20command\x20','`\x20to\x20inspect\x20the\x20manifest.','push','Unknown\x20appRef\x20\x22','fullPath','target','\x20->\x20','command','env','298359DbVsnh','join','rawFlags','cliName','appcode','\x20\x20\x20\x20functionName:\x20','args','read','code','scriptName','padEnd','type','data','userId','\x22.\x20','service'];a65_0x3805=function(){return _0x4bb8f1;};return a65_0x3805();}import{isDev,normalizeEnv}from'../../constant/env.js';export function resolveDynamicServiceCommand(_0x5e9b2b,_0x394927){const _0x3e16b7=a65_0x3551,_0x23e05e=listLocalServiceTrees();let _0x17bc06;for(const _0x10c3ea of _0x23e05e){const _0x29f735=matchServiceTreeCommand(_0x10c3ea,_0x5e9b2b);if(!_0x29f735)continue;(!_0x17bc06||_0x29f735[_0x3e16b7(0x129)][_0x3e16b7(0x126)][_0x3e16b7(0x151)]>_0x17bc06[_0x3e16b7(0x129)]['fullPath'][_0x3e16b7(0x151)])&&(_0x17bc06={'tree':_0x10c3ea,'command':_0x29f735[_0x3e16b7(0x129)],'remainingArgs':_0x29f735[_0x3e16b7(0x143)]});}if(!_0x17bc06)return undefined;const _0x13d9b6={..._0x394927};return applyAppBinding(_0x17bc06['tree'],_0x17bc06[_0x3e16b7(0x129)],_0x13d9b6),{'definition':buildDynamicCommandDefinition(_0x17bc06[_0x3e16b7(0x158)],_0x17bc06[_0x3e16b7(0x129)]),'args':_0x17bc06[_0x3e16b7(0x143)],'flags':_0x13d9b6,'tree':_0x17bc06['tree'],'command':_0x17bc06[_0x3e16b7(0x129)]};}export function generateDynamicServiceHelp(_0x43f5f9){const _0x2a261b=a65_0x3551,_0x3b12e9=listLocalServiceTrees()[_0x2a261b(0x113)](_0x414aea=>_0x414aea[_0x2a261b(0x13a)][_0x2a261b(0x133)]===_0x43f5f9);if(!_0x3b12e9)return undefined;const _0x221a70=[CLI_BIN_NAME+'\x20'+_0x43f5f9+_0x2a261b(0x15b),'',_0x3b12e9[_0x2a261b(0x13a)][_0x2a261b(0x111)]||_0x43f5f9,_0x3b12e9['service'][_0x2a261b(0x10f)]?'\x20\x20'+_0x3b12e9[_0x2a261b(0x13a)][_0x2a261b(0x10f)]:'','','Commands:',..._0x3b12e9['commands'][_0x2a261b(0x110)](_0x26528f=>{const _0x3b5123=_0x2a261b,_0x504c32=_0x26528f[_0x3b5123(0x126)]['slice'](0x1)[_0x3b5123(0x12c)]('\x20'),_0x4930f7=_0x26528f[_0x3b5123(0x163)]==='read'?'':'\x20['+_0x26528f[_0x3b5123(0x163)]+']';return'\x20\x20'+_0x504c32[_0x3b5123(0x135)](0x18)+'\x20'+(_0x26528f[_0x3b5123(0x10f)]||'')+_0x4930f7;}),'','Use\x20`'+CLI_BIN_NAME+'\x20service\x20detail\x20--service\x20'+_0x43f5f9+_0x2a261b(0x123)][_0x2a261b(0x114)](Boolean);return _0x221a70[_0x2a261b(0x12c)]('\x0a');}export function listDynamicServiceEntries(){const _0x132724=a65_0x3551;return listLocalServices()[_0x132724(0x110)](_0x1af5ae=>{const _0x577006=_0x132724,_0x41c5b5=_0x1af5ae['normalizedManifest'];return{'service':_0x41c5b5[_0x577006(0x13a)][_0x577006(0x133)],'label':_0x41c5b5[_0x577006(0x13a)][_0x577006(0x111)]||_0x41c5b5[_0x577006(0x13a)][_0x577006(0x133)],'commands':_0x41c5b5[_0x577006(0x10b)]['map'](_0x131784=>({'command':dynamicCommandName(_0x131784),'description':_0x131784[_0x577006(0x10f)]||'Run\x20service\x20command\x20'+_0x131784[_0x577006(0x104)],'tag':riskTag(_0x131784[_0x577006(0x163)])}))};});}export function getDynamicServiceEntry(_0x4d4119){const _0x599af9=a65_0x3551;return listDynamicServiceEntries()[_0x599af9(0x113)](_0xa3b257=>_0xa3b257['service']===_0x4d4119);}export function listDynamicServiceDefinitions(_0x13d6c1){const _0x1dbc8b=a65_0x3551;return listLocalServiceTrees()[_0x1dbc8b(0x114)](_0x354461=>!_0x13d6c1||_0x354461[_0x1dbc8b(0x13a)]['code']===_0x13d6c1)['flatMap'](_0xdfc949=>_0xdfc949['commands'][_0x1dbc8b(0x110)](_0x2365a1=>buildDynamicCommandDefinition(_0xdfc949,_0x2365a1)));}export function getDynamicServiceDefinitions(_0x4bee06){const _0x4b7cd1=listDynamicServiceDefinitions(_0x4bee06);return _0x4b7cd1['length']>0x0?_0x4b7cd1:undefined;}export function findDynamicServiceDefinition(_0x49696a,_0x189914){const _0x1cef5b=a65_0x3551;return listDynamicServiceDefinitions(_0x49696a)[_0x1cef5b(0x113)](_0x52c5e9=>_0x52c5e9['command']===_0x189914);}export function buildDynamicCommandDefinition(_0x1f00dc,_0x5c32d4){const _0x205732=a65_0x3551;return{'service':_0x1f00dc[_0x205732(0x13a)][_0x205732(0x133)],'command':dynamicCommandName(_0x5c32d4),'description':_0x5c32d4['description']||'Run\x20service\x20command\x20'+_0x5c32d4[_0x205732(0x104)],'risk':_0x5c32d4[_0x205732(0x163)],..._0x5c32d4[_0x205732(0x163)]==='read'?{}:{'confirmationDescription':buildDynamicConfirmationDescription(_0x5c32d4)},'requiresAuth':!![],'requiresAppCode':!![],'args':_0x5c32d4[_0x205732(0x131)][_0x205732(0x110)](_0x345e40=>({'name':_0x345e40[_0x205732(0x111)],'description':_0x345e40[_0x205732(0x10f)]||_0x345e40[_0x205732(0x111)],'required':_0x345e40[_0x205732(0x154)]})),'flags':_0x5c32d4['flags'][_0x205732(0x110)](flagToCommandFlag),'helpExtra':()=>renderDynamicCommandHelp(_0x5c32d4),async 'dryRun'(_0x1b5d2c){const _0x3b3e9b=_0x205732,_0x3e8021=await compilePlan(_0x1f00dc,_0x5c32d4,_0x1b5d2c);return{'method':'SERVICE_TREE','url':_0x5c32d4[_0x3b3e9b(0x104)],'body':{'target':targetPreview(_0x3e8021),'params':_0x3e8021[_0x3b3e9b(0x120)]},'description':_0x3b3e9b(0x10d)+_0x5c32d4[_0x3b3e9b(0x104)]};},async 'execute'(_0x4c315c){const _0xa0c4a1=_0x205732,_0x114ffc=await compilePlan(_0x1f00dc,_0x5c32d4,_0x4c315c),_0x5032eb=Date['now'](),_0x43b1bb=await executePlan(_0x114ffc,_0x5c32d4,_0x4c315c),_0x409625=Date[_0xa0c4a1(0x107)]()-_0x5032eb;return{'ok':!![],'data':{'service':_0x1f00dc[_0xa0c4a1(0x13a)],'command':_0x5c32d4[_0xa0c4a1(0x104)],'target':targetPreview(_0x114ffc),'result':_0x43b1bb,'elapsed':_0x409625},'message':_0xa0c4a1(0x122)+_0x5c32d4[_0xa0c4a1(0x104)]+_0xa0c4a1(0x115)+_0x409625+'ms'};}};}function buildDynamicConfirmationDescription(_0x559f2f){const _0x42b439=a65_0x3551,_0x22e607=_0x559f2f['description']||_0x559f2f[_0x42b439(0x104)],_0x286a39=_0x559f2f['risk']===_0x42b439(0x15c)?_0x42b439(0x140):'The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20write.\x20It\x20may\x20change\x20business\x20data\x20or\x20service\x20state.';return'This\x20will\x20run\x20Service\x20Tree\x20command\x20\x22'+_0x22e607+_0x42b439(0x139)+_0x286a39;}function dynamicCommandName(_0x16d6ac){const _0x29964d=a65_0x3551;return _0x16d6ac[_0x29964d(0x126)][_0x29964d(0x159)](0x1)[_0x29964d(0x12c)]('\x20');}function riskTag(_0x236414){const _0x378b64=a65_0x3551;return _0x236414===_0x378b64(0x132)?'':_0x378b64(0x117)+_0x236414+']';}function flagToCommandFlag(_0x2a73a6){const _0x199443=a65_0x3551;return{'name':_0x2a73a6[_0x199443(0x12e)],'type':_0x2a73a6['type']===_0x199443(0x13c)?_0x199443(0x15a):_0x2a73a6[_0x199443(0x136)],'description':_0x2a73a6['description']||_0x2a73a6[_0x199443(0x111)],'required':_0x2a73a6[_0x199443(0x154)],'default':isPrimitiveFlagDefault(_0x2a73a6[_0x199443(0x10a)])?_0x2a73a6[_0x199443(0x10a)]:undefined,'enum':_0x2a73a6[_0x199443(0x106)]};}async function compilePlan(_0x410857,_0x885b93,_0x191571){const _0x2df110=a65_0x3551,_0x20f226=_0x885b93[_0x2df110(0x127)][_0x2df110(0x161)]?_0x410857[_0x2df110(0x118)][_0x885b93[_0x2df110(0x127)]['appRef']]:undefined;if(_0x20f226?.[_0x2df110(0x12a)]){const _0x280252=isDev(_0x20f226['env'])?'development':normalizeEnv(_0x20f226[_0x2df110(0x12a)]);if(_0x280252!==_0x191571['envName'])throw CliErrors[_0x2df110(0x13f)]('Service\x20command\x20'+_0x885b93['cliPath']+_0x2df110(0x14e)+_0x280252+_0x2df110(0x14f)+_0x191571['envName']+'\x22.',_0x2df110(0x119));}return compileServiceTreeCommand(_0x885b93,{'flags':_0x191571[_0x2df110(0x12d)],'args':_0x191571[_0x2df110(0x131)],'context':await buildServiceContext(_0x885b93,_0x191571)});}async function buildServiceContext(_0x52329c,_0x47cae1){const _0x2ade13=a65_0x3551,_0x9df205={'appCode':_0x47cae1[_0x2ade13(0x149)],'env':_0x47cae1['envName'],'envName':_0x47cae1['envName']};if(!usesRuntimeContext(_0x52329c))return _0x9df205;const _0x1e05bd=await getLoginUserInfo(),_0x13382e=pickFirst(_0x1e05bd[_0x2ade13(0x138)],_0x1e05bd['id']);return{..._0x9df205,'user':_0x1e05bd,'userId':_0x13382e,'id':_0x1e05bd['id'],'username':pickFirst(_0x1e05bd['username'],_0x1e05bd['userName'],_0x1e05bd[_0x2ade13(0x109)]),'userName':_0x1e05bd['userName'],'nickname':pickFirst(_0x1e05bd['nickname'],_0x1e05bd[_0x2ade13(0x14b)]),'nickName':_0x1e05bd[_0x2ade13(0x14b)],'tenantCode':_0x1e05bd[_0x2ade13(0x11a)],'employeeId':_0x1e05bd[_0x2ade13(0x14c)]};}function a65_0x3551(_0x2cc30d,_0x43d34f){_0x2cc30d=_0x2cc30d-0x104;const _0x3805e5=a65_0x3805();let _0x355124=_0x3805e5[_0x2cc30d];return _0x355124;}function usesRuntimeContext(_0x2051fd){const _0x376617=a65_0x3551;return _0x2051fd[_0x376617(0x147)]['some'](_0x10b359=>typeof _0x10b359['source']==='string'&&(_0x10b359[_0x376617(0x121)]['startsWith']('context.')||_0x10b359[_0x376617(0x121)][_0x376617(0x155)](_0x376617(0x105))));}function pickFirst(..._0x1bab94){const _0x49e9e=a65_0x3551;return _0x1bab94[_0x49e9e(0x113)](_0x120ffd=>_0x120ffd!==undefined&&_0x120ffd!==null);}async function executePlan(_0x335966,_0x151a08,_0x5bbc67){const _0x55e693=a65_0x3551;if(_0x335966[_0x55e693(0x11f)]===_0x55e693(0x137)){const _0x4080a6=await resolveDatasetCode(_0x335966,_0x151a08,_0x5bbc67);return executeData(_0x4080a6,_0x335966[_0x55e693(0x129)],_0x335966[_0x55e693(0x120)]);}if(_0x335966[_0x55e693(0x11f)]==='sql'){if(!_0x335966[_0x55e693(0x156)])throw CliErrors[_0x55e693(0x13f)](_0x55e693(0x122)+_0x151a08[_0x55e693(0x104)]+'\x20requires\x20target.sqlCode.');return executeSdkSql(_0x335966['sqlCode'],normalizeScalarParams(_0x335966[_0x55e693(0x120)]));}if(_0x335966[_0x55e693(0x11f)]==='bff'){const _0xc30b9=_0x335966['scriptName']||_0x335966['bffCode']||(_0x335966[_0x55e693(0x14d)]==null?'':String(_0x335966[_0x55e693(0x14d)]));if(!_0xc30b9)throw CliErrors['validation']('Service\x20command\x20'+_0x151a08['cliPath']+_0x55e693(0x162));return executeSdkBff(_0xc30b9,_0x335966[_0x55e693(0x120)]);}throw CliErrors[_0x55e693(0x13f)](_0x55e693(0x108)+_0x335966['kind']);}async function resolveDatasetCode(_0x3ad654,_0xaccc02,_0x3c5ccd){const _0x496041=a65_0x3551;if(_0x3ad654['datasetCode'])return _0x3ad654[_0x496041(0x145)];if(!_0x3ad654[_0x496041(0x142)])throw CliErrors[_0x496041(0x13f)](_0x496041(0x122)+_0xaccc02['cliPath']+'\x20requires\x20target.datasetCode\x20or\x20target.datatable.');const _0x5c6d6c=await listDatasets(_0x3c5ccd[_0x496041(0x149)]),_0x21c149=_0x5c6d6c[_0x496041(0x113)](_0x1c0854=>_0x1c0854['dbtableConfig']?.[_0x496041(0x15e)]===_0x3ad654[_0x496041(0x142)]);if(!_0x21c149?.['code'])throw CliErrors[_0x496041(0x13f)](_0x496041(0x148)+_0x3ad654[_0x496041(0x142)]+'\x22\x20to\x20a\x20datasetCode\x20in\x20app\x20'+_0x3c5ccd[_0x496041(0x149)]+'.',_0x496041(0x11e));return _0x21c149[_0x496041(0x133)];}function applyAppBinding(_0x4f18d7,_0x12351c,_0x4978d7){const _0x69f766=a65_0x3551,_0x228215=_0x12351c[_0x69f766(0x127)][_0x69f766(0x161)];if(!_0x228215)return;const _0x11d07c=_0x4f18d7[_0x69f766(0x118)][_0x228215];if(!_0x11d07c)throw CliErrors[_0x69f766(0x13f)](_0x69f766(0x125)+_0x228215+_0x69f766(0x10c)+_0x12351c[_0x69f766(0x104)]+'.','Define\x20the\x20appRef\x20under\x20appBindings\x20or\x20remove\x20target.appRef.');const _0x5d8afd=_0x11d07c[_0x69f766(0x12f)]||_0x11d07c[_0x69f766(0x149)];_0x5d8afd&&!hasText(_0x4978d7[_0x69f766(0x12f)])&&!hasText(_0x4978d7['app'])&&(_0x4978d7[_0x69f766(0x12f)]=_0x5d8afd),_0x11d07c[_0x69f766(0x116)]&&!hasText(_0x4978d7[_0x69f766(0x116)])&&!hasText(_0x4978d7[_0x69f766(0x12f)])&&(_0x4978d7['app']=_0x11d07c[_0x69f766(0x116)]);}function renderDynamicCommandHelp(_0x1e600d){const _0x24c4f8=a65_0x3551,_0x14e7e3=['\x20\x20SERVICE\x20TREE\x20TARGET',_0x24c4f8(0x10e)+_0x1e600d[_0x24c4f8(0x127)]['kind'],_0x24c4f8(0x14a)+_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x129)]];if(_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x145)])_0x14e7e3[_0x24c4f8(0x124)](_0x24c4f8(0x160)+_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x145)]);if(_0x1e600d['target'][_0x24c4f8(0x142)])_0x14e7e3[_0x24c4f8(0x124)]('\x20\x20\x20\x20datatable:\x20'+_0x1e600d['target']['datatable']);if(_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x156)])_0x14e7e3['push'](_0x24c4f8(0x152)+_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x156)]);if(_0x1e600d['target'][_0x24c4f8(0x134)])_0x14e7e3[_0x24c4f8(0x124)](_0x24c4f8(0x130)+_0x1e600d[_0x24c4f8(0x127)][_0x24c4f8(0x134)]);if(_0x1e600d[_0x24c4f8(0x147)][_0x24c4f8(0x151)]>0x0){_0x14e7e3['push']('','\x20\x20MAP\x20TO');for(const _0x32aa43 of _0x1e600d[_0x24c4f8(0x147)]){_0x14e7e3[_0x24c4f8(0x124)](_0x24c4f8(0x153)+(_0x32aa43[_0x24c4f8(0x121)]||_0x24c4f8(0x157))+_0x24c4f8(0x128)+_0x32aa43['target']+(_0x32aa43[_0x24c4f8(0x13e)]?'.'+_0x32aa43['operator']:''));}}return _0x14e7e3[_0x24c4f8(0x12c)]('\x0a');}function targetPreview(_0x376822){const _0x48b49d=a65_0x3551;return{'kind':_0x376822['kind'],'command':_0x376822[_0x48b49d(0x129)],'appRef':_0x376822[_0x48b49d(0x161)],'datasetCode':_0x376822[_0x48b49d(0x145)],'datatable':_0x376822[_0x48b49d(0x142)],'sqlCode':_0x376822[_0x48b49d(0x156)],'bffCode':_0x376822[_0x48b49d(0x11b)],'bffId':_0x376822['bffId'],'functionName':_0x376822[_0x48b49d(0x134)]};}function normalizeScalarParams(_0x55745f){const _0x4aad82=a65_0x3551;return Object[_0x4aad82(0x15d)](Object[_0x4aad82(0x13d)](_0x55745f)['filter'](([,_0x247c85])=>typeof _0x247c85===_0x4aad82(0x15a)||typeof _0x247c85===_0x4aad82(0x112)));}function hasText(_0x1d6f4e){const _0x50727a=a65_0x3551;return typeof _0x1d6f4e===_0x50727a(0x15a)&&_0x1d6f4e['trim']()[_0x50727a(0x151)]>0x0;}function isPrimitiveFlagDefault(_0x1e3fdb){const _0x67f29d=a65_0x3551;return _0x1e3fdb===undefined||typeof _0x1e3fdb==='string'||typeof _0x1e3fdb===_0x67f29d(0x112)||typeof _0x1e3fdb==='boolean';}
1
+ (function(_0x29fbbd,_0x1b3e72){const _0x58cdef=a65_0x4ae5,_0xd43848=_0x29fbbd();while(!![]){try{const _0x1f1a36=parseInt(_0x58cdef(0x1ed))/0x1*(parseInt(_0x58cdef(0x209))/0x2)+-parseInt(_0x58cdef(0x1fa))/0x3*(parseInt(_0x58cdef(0x21b))/0x4)+parseInt(_0x58cdef(0x1f9))/0x5+-parseInt(_0x58cdef(0x23d))/0x6*(parseInt(_0x58cdef(0x1ee))/0x7)+parseInt(_0x58cdef(0x1fb))/0x8*(-parseInt(_0x58cdef(0x1f1))/0x9)+-parseInt(_0x58cdef(0x225))/0xa+parseInt(_0x58cdef(0x240))/0xb;if(_0x1f1a36===_0x1b3e72)break;else _0xd43848['push'](_0xd43848['shift']());}catch(_0x552b94){_0xd43848['push'](_0xd43848['shift']());}}}(a65_0x2760,0x6e43f));import{compileServiceTreeCommand,matchServiceTreeCommand}from'@lovrabet/cli-framework';import{getLoginUserInfo,listDatasets}from'../../core/api-client.js';import{executeData,executeSdkBff,executeSdkSql}from'../../core/sdk-client.js';import{CliErrors}from'../../errors.js';function a65_0x2760(){const _0x56cfba=['\x20\x20\x20\x20functionName:\x20','join','bff','Use\x20`','\x20requires\x20environment\x20\x22','length','employeeId','userName','appCode','map','\x20\x20\x20\x20datasetCode:\x20','12806zFMMAa','Run\x20service\x20command\x20','target','string','datasetCode','command','\x20completed\x20in\x20','\x22\x20in\x20service\x20command\x20','find','type','normalizedManifest','bffCode','service','\x22.\x20','fullPath','filter','push','envName','593492KqqRrD','sqlCode','loginName','tree','code','Check\x20the\x20service\x20binding\x20and\x20current\x20connection.\x20Do\x20not\x20switch\x20environments\x20or\x20credentials\x20automatically.','ctx.','\x20service\x20detail\x20--service\x20','risk','nickname','5471340pZvMHl','appBindings','operator','kind','mapTo','bffId','Define\x20the\x20appRef\x20under\x20appBindings\x20or\x20remove\x20target.appRef.','enum','source','rawFlags','Unsupported\x20service\x20target\x20kind:\x20','tableName','commands','\x20requires\x20target.functionName.','app','\x22\x20to\x20a\x20datasetCode\x20in\x20app\x20','trim','high-risk-write','slice','dbtableConfig','boolean','cliName','validation','datatable','6nPIjSA','The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20high-risk\x20write.\x20It\x20may\x20make\x20business\x20changes\x20that\x20are\x20hard\x20to\x20reverse.','\x20\x20\x20\x20command:\x20','21001464IcXDgn','number','Use\x20lovrabet\x20dataset\x20list\x20to\x20confirm\x20the\x20physical\x20table\x20name\x20or\x20add\x20target.datasetCode\x20to\x20the\x20manifest.','required','The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20write.\x20It\x20may\x20change\x20business\x20data\x20or\x20service\x20state.','params','username','\x20\x20\x20\x20kind:\x20\x20\x20\x20','read','\x20\x20MAP\x20TO','description','\x20\x20\x20\x20sqlCode:\x20','scriptName','nickName','some','\x20->\x20','cliPath','args','Commands:','\x20requires\x20target.datasetCode\x20or\x20target.datatable.','padEnd','appcode','json','now','default','29dLlbtH','5683839EMDrjA','startsWith','env','9jMpVqz','Service\x20command\x20','Cannot\x20resolve\x20datatable\x20\x22','\x20\x20\x20\x20','context.','name','SERVICE_TREE','appRef','1959875tiXTIU','12iMApuu','661088ASQKIW','\x20\x20\x20\x20datatable:\x20','sql'];a65_0x2760=function(){return _0x56cfba;};return a65_0x2760();}import{listLocalServices,listLocalServiceTrees}from'../../commands/service/registry.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{isDev,normalizeEnv}from'../../constant/env.js';export function resolveDynamicServiceCommand(_0x12b110,_0x5a2ac4){const _0x5d324e=a65_0x4ae5,_0x1c75ab=listLocalServiceTrees();let _0x34cc32;for(const _0x55a6fd of _0x1c75ab){const _0x3cc7ff=matchServiceTreeCommand(_0x55a6fd,_0x12b110);if(!_0x3cc7ff)continue;(!_0x34cc32||_0x3cc7ff[_0x5d324e(0x20e)]['fullPath']['length']>_0x34cc32[_0x5d324e(0x20e)]['fullPath'][_0x5d324e(0x203)])&&(_0x34cc32={'tree':_0x55a6fd,'command':_0x3cc7ff['command'],'remainingArgs':_0x3cc7ff['remainingArgs']});}if(!_0x34cc32)return undefined;const _0x4a6298={..._0x5a2ac4};return applyAppBinding(_0x34cc32[_0x5d324e(0x21e)],_0x34cc32[_0x5d324e(0x20e)],_0x4a6298),{'definition':buildDynamicCommandDefinition(_0x34cc32[_0x5d324e(0x21e)],_0x34cc32[_0x5d324e(0x20e)]),'args':_0x34cc32['remainingArgs'],'flags':_0x4a6298,'tree':_0x34cc32[_0x5d324e(0x21e)],'command':_0x34cc32[_0x5d324e(0x20e)]};}export function generateDynamicServiceHelp(_0x4e131c){const _0xe241c8=a65_0x4ae5,_0x3e7fb0=listLocalServiceTrees()[_0xe241c8(0x211)](_0x5e04ab=>_0x5e04ab['service'][_0xe241c8(0x21f)]===_0x4e131c);if(!_0x3e7fb0)return undefined;const _0x34a179=[CLI_BIN_NAME+'\x20'+_0x4e131c+'\x20<command>\x20[flags]','',_0x3e7fb0[_0xe241c8(0x215)][_0xe241c8(0x1f6)]||_0x4e131c,_0x3e7fb0[_0xe241c8(0x215)]['description']?'\x20\x20'+_0x3e7fb0[_0xe241c8(0x215)]['description']:'','',_0xe241c8(0x1e6),..._0x3e7fb0[_0xe241c8(0x231)]['map'](_0x24de73=>{const _0x213d41=_0xe241c8,_0x46583b=_0x24de73[_0x213d41(0x217)]['slice'](0x1)[_0x213d41(0x1ff)]('\x20'),_0x42fb5e=_0x24de73[_0x213d41(0x223)]===_0x213d41(0x248)?'':'\x20['+_0x24de73[_0x213d41(0x223)]+']';return'\x20\x20'+_0x46583b[_0x213d41(0x1e8)](0x18)+'\x20'+(_0x24de73[_0x213d41(0x24a)]||'')+_0x42fb5e;}),'',_0xe241c8(0x201)+CLI_BIN_NAME+_0xe241c8(0x222)+_0x4e131c+'`\x20to\x20inspect\x20the\x20manifest.'][_0xe241c8(0x218)](Boolean);return _0x34a179[_0xe241c8(0x1ff)]('\x0a');}export function listDynamicServiceEntries(){const _0x1da659=a65_0x4ae5;return listLocalServices()[_0x1da659(0x207)](_0x5ad151=>{const _0x4deba5=_0x1da659,_0x1ebde=_0x5ad151[_0x4deba5(0x213)];return{'service':_0x1ebde['service']['code'],'label':_0x1ebde[_0x4deba5(0x215)]['name']||_0x1ebde['service'][_0x4deba5(0x21f)],'commands':_0x1ebde[_0x4deba5(0x231)]['map'](_0x40a8d7=>({'command':dynamicCommandName(_0x40a8d7),'description':_0x40a8d7[_0x4deba5(0x24a)]||'Run\x20service\x20command\x20'+_0x40a8d7['cliPath'],'tag':riskTag(_0x40a8d7[_0x4deba5(0x223)])}))};});}export function getDynamicServiceEntry(_0x419096){const _0x139bbb=a65_0x4ae5;return listDynamicServiceEntries()[_0x139bbb(0x211)](_0x2d9878=>_0x2d9878[_0x139bbb(0x215)]===_0x419096);}export function listDynamicServiceDefinitions(_0x5e674b){const _0x2895b7=a65_0x4ae5;return listLocalServiceTrees()['filter'](_0x2b9044=>!_0x5e674b||_0x2b9044[_0x2895b7(0x215)][_0x2895b7(0x21f)]===_0x5e674b)['flatMap'](_0x1a9045=>_0x1a9045[_0x2895b7(0x231)][_0x2895b7(0x207)](_0x5bfdcf=>buildDynamicCommandDefinition(_0x1a9045,_0x5bfdcf)));}export function getDynamicServiceDefinitions(_0x541974){const _0x389b27=a65_0x4ae5,_0x44b5ca=listDynamicServiceDefinitions(_0x541974);return _0x44b5ca[_0x389b27(0x203)]>0x0?_0x44b5ca:undefined;}export function findDynamicServiceDefinition(_0x159324,_0x217819){const _0x5664fb=a65_0x4ae5;return listDynamicServiceDefinitions(_0x159324)[_0x5664fb(0x211)](_0x4a251b=>_0x4a251b[_0x5664fb(0x20e)]===_0x217819);}export function buildDynamicCommandDefinition(_0x2c0e40,_0x1300c8){const _0x4a2959=a65_0x4ae5;return{'service':_0x2c0e40['service']['code'],'command':dynamicCommandName(_0x1300c8),'description':_0x1300c8[_0x4a2959(0x24a)]||_0x4a2959(0x20a)+_0x1300c8['cliPath'],'risk':_0x1300c8[_0x4a2959(0x223)],..._0x1300c8['risk']===_0x4a2959(0x248)?{}:{'confirmationDescription':buildDynamicConfirmationDescription(_0x1300c8)},'requiresAuth':!![],'requiresAppCode':!![],'args':_0x1300c8[_0x4a2959(0x1e5)][_0x4a2959(0x207)](_0x6803a4=>({'name':_0x6803a4[_0x4a2959(0x1f6)],'description':_0x6803a4[_0x4a2959(0x24a)]||_0x6803a4[_0x4a2959(0x1f6)],'required':_0x6803a4[_0x4a2959(0x243)]})),'flags':_0x1300c8['flags'][_0x4a2959(0x207)](flagToCommandFlag),'helpExtra':()=>renderDynamicCommandHelp(_0x1300c8),async 'dryRun'(_0x1eadea){const _0x543855=_0x4a2959,_0x65a671=await compilePlan(_0x2c0e40,_0x1300c8,_0x1eadea);return{'method':_0x543855(0x1f7),'url':_0x1300c8[_0x543855(0x1e4)],'body':{'target':targetPreview(_0x65a671),'params':_0x65a671['params']},'description':'Preview\x20dynamic\x20service\x20command:\x20'+_0x1300c8[_0x543855(0x1e4)]};},async 'execute'(_0x16d55f){const _0x3a9a84=_0x4a2959,_0x2845df=await compilePlan(_0x2c0e40,_0x1300c8,_0x16d55f),_0x49cf20=Date['now'](),_0x479278=await executePlan(_0x2845df,_0x1300c8,_0x16d55f),_0x1dca2e=Date[_0x3a9a84(0x1eb)]()-_0x49cf20;return{'ok':!![],'data':{'service':_0x2c0e40['service'],'command':_0x1300c8['cliPath'],'target':targetPreview(_0x2845df),'result':_0x479278,'elapsed':_0x1dca2e},'message':'Service\x20command\x20'+_0x1300c8['cliPath']+_0x3a9a84(0x20f)+_0x1dca2e+'ms'};}};}function buildDynamicConfirmationDescription(_0x568127){const _0x5e3d38=a65_0x4ae5,_0x34edc6=_0x568127[_0x5e3d38(0x24a)]||_0x568127[_0x5e3d38(0x1e4)],_0x5a4c9d=_0x568127[_0x5e3d38(0x223)]===_0x5e3d38(0x236)?_0x5e3d38(0x23e):_0x5e3d38(0x244);return'This\x20will\x20run\x20Service\x20Tree\x20command\x20\x22'+_0x34edc6+_0x5e3d38(0x216)+_0x5a4c9d;}function dynamicCommandName(_0x4ba37d){const _0x23d40f=a65_0x4ae5;return _0x4ba37d[_0x23d40f(0x217)][_0x23d40f(0x237)](0x1)[_0x23d40f(0x1ff)]('\x20');}function riskTag(_0x542293){return _0x542293==='read'?'':'\x20\x20['+_0x542293+']';}function flagToCommandFlag(_0x4f8c8b){const _0x49f807=a65_0x4ae5;return{'name':_0x4f8c8b[_0x49f807(0x23a)],'type':_0x4f8c8b[_0x49f807(0x212)]===_0x49f807(0x1ea)?_0x49f807(0x20c):_0x4f8c8b[_0x49f807(0x212)],'description':_0x4f8c8b[_0x49f807(0x24a)]||_0x4f8c8b[_0x49f807(0x1f6)],'required':_0x4f8c8b[_0x49f807(0x243)],'default':isPrimitiveFlagDefault(_0x4f8c8b[_0x49f807(0x1ec)])?_0x4f8c8b[_0x49f807(0x1ec)]:undefined,'enum':_0x4f8c8b[_0x49f807(0x22c)]};}async function compilePlan(_0x23a101,_0x144fe2,_0x2e3305){const _0x1f6a1e=a65_0x4ae5,_0xd7d0a3=_0x144fe2[_0x1f6a1e(0x20b)][_0x1f6a1e(0x1f8)]?_0x23a101[_0x1f6a1e(0x226)][_0x144fe2['target']['appRef']]:undefined;if(_0xd7d0a3?.[_0x1f6a1e(0x1f0)]){const _0x12d852=isDev(_0xd7d0a3['env'])?'development':normalizeEnv(_0xd7d0a3[_0x1f6a1e(0x1f0)]);if(_0x12d852!==_0x2e3305[_0x1f6a1e(0x21a)])throw CliErrors[_0x1f6a1e(0x23b)](_0x1f6a1e(0x1f2)+_0x144fe2[_0x1f6a1e(0x1e4)]+_0x1f6a1e(0x202)+_0x12d852+'\x22,\x20but\x20the\x20current\x20environment\x20is\x20\x22'+_0x2e3305[_0x1f6a1e(0x21a)]+'\x22.',_0x1f6a1e(0x220));}return compileServiceTreeCommand(_0x144fe2,{'flags':_0x2e3305[_0x1f6a1e(0x22e)],'args':_0x2e3305['args'],'context':await buildServiceContext(_0x144fe2,_0x2e3305)});}async function buildServiceContext(_0x4cf493,_0x5cabce){const _0x3e25dc=a65_0x4ae5,_0x5ef99a={'appCode':_0x5cabce['appCode'],'env':_0x5cabce[_0x3e25dc(0x21a)],'envName':_0x5cabce[_0x3e25dc(0x21a)]};if(!usesRuntimeContext(_0x4cf493))return _0x5ef99a;const _0x5315fc=await getLoginUserInfo(),_0x97fcbc=pickFirst(_0x5315fc['userId'],_0x5315fc['id']);return{..._0x5ef99a,'user':_0x5315fc,'userId':_0x97fcbc,'id':_0x5315fc['id'],'username':pickFirst(_0x5315fc[_0x3e25dc(0x246)],_0x5315fc[_0x3e25dc(0x205)],_0x5315fc[_0x3e25dc(0x21d)]),'userName':_0x5315fc[_0x3e25dc(0x205)],'nickname':pickFirst(_0x5315fc[_0x3e25dc(0x224)],_0x5315fc[_0x3e25dc(0x24d)]),'nickName':_0x5315fc[_0x3e25dc(0x24d)],'tenantCode':_0x5315fc['tenantCode'],'employeeId':_0x5315fc[_0x3e25dc(0x204)]};}function a65_0x4ae5(_0x40b839,_0x4888fb){_0x40b839=_0x40b839-0x1e4;const _0x2760e4=a65_0x2760();let _0x4ae543=_0x2760e4[_0x40b839];return _0x4ae543;}function usesRuntimeContext(_0x4aa6ce){const _0x388dbd=a65_0x4ae5;return _0x4aa6ce['mapTo'][_0x388dbd(0x24e)](_0x46e720=>typeof _0x46e720[_0x388dbd(0x22d)]===_0x388dbd(0x20c)&&(_0x46e720[_0x388dbd(0x22d)][_0x388dbd(0x1ef)](_0x388dbd(0x1f5))||_0x46e720['source'][_0x388dbd(0x1ef)](_0x388dbd(0x221))));}function pickFirst(..._0x49da2f){const _0x48b3fa=a65_0x4ae5;return _0x49da2f[_0x48b3fa(0x211)](_0xba33d9=>_0xba33d9!==undefined&&_0xba33d9!==null);}async function executePlan(_0x136d7d,_0xbf747b,_0x710450){const _0x144fdf=a65_0x4ae5;if(_0x136d7d['kind']==='data'){const _0x1a53e4=await resolveDatasetCode(_0x136d7d,_0xbf747b,_0x710450);return executeData(_0x1a53e4,_0x136d7d[_0x144fdf(0x20e)],_0x136d7d[_0x144fdf(0x245)]);}if(_0x136d7d[_0x144fdf(0x228)]===_0x144fdf(0x1fd)){if(!_0x136d7d[_0x144fdf(0x21c)])throw CliErrors[_0x144fdf(0x23b)](_0x144fdf(0x1f2)+_0xbf747b[_0x144fdf(0x1e4)]+'\x20requires\x20target.sqlCode.');return executeSdkSql(_0x136d7d[_0x144fdf(0x21c)],normalizeScalarParams(_0x136d7d['params']));}if(_0x136d7d[_0x144fdf(0x228)]===_0x144fdf(0x200)){const _0x1c9df3=_0x136d7d['scriptName']||_0x136d7d['bffCode']||(_0x136d7d[_0x144fdf(0x22a)]==null?'':String(_0x136d7d[_0x144fdf(0x22a)]));if(!_0x1c9df3)throw CliErrors['validation'](_0x144fdf(0x1f2)+_0xbf747b[_0x144fdf(0x1e4)]+_0x144fdf(0x232));return executeSdkBff(_0x1c9df3,_0x136d7d['params']);}throw CliErrors['validation'](_0x144fdf(0x22f)+_0x136d7d[_0x144fdf(0x228)]);}async function resolveDatasetCode(_0x5ddf69,_0x15f3bb,_0xc0bfe){const _0x420198=a65_0x4ae5;if(_0x5ddf69['datasetCode'])return _0x5ddf69[_0x420198(0x20d)];if(!_0x5ddf69[_0x420198(0x23c)])throw CliErrors[_0x420198(0x23b)](_0x420198(0x1f2)+_0x15f3bb[_0x420198(0x1e4)]+_0x420198(0x1e7));const _0x231ef9=await listDatasets(_0xc0bfe[_0x420198(0x206)]),_0x1dc528=_0x231ef9[_0x420198(0x211)](_0x6863a9=>_0x6863a9[_0x420198(0x238)]?.[_0x420198(0x230)]===_0x5ddf69[_0x420198(0x23c)]);if(!_0x1dc528?.[_0x420198(0x21f)])throw CliErrors[_0x420198(0x23b)](_0x420198(0x1f3)+_0x5ddf69[_0x420198(0x23c)]+_0x420198(0x234)+_0xc0bfe[_0x420198(0x206)]+'.',_0x420198(0x242));return _0x1dc528['code'];}function applyAppBinding(_0x450413,_0x16fc18,_0x2b3d56){const _0x14c148=a65_0x4ae5,_0x3f6027=_0x16fc18[_0x14c148(0x20b)][_0x14c148(0x1f8)];if(!_0x3f6027)return;const _0xa49fce=_0x450413[_0x14c148(0x226)][_0x3f6027];if(!_0xa49fce)throw CliErrors['validation']('Unknown\x20appRef\x20\x22'+_0x3f6027+_0x14c148(0x210)+_0x16fc18[_0x14c148(0x1e4)]+'.',_0x14c148(0x22b));const _0xd20371=_0xa49fce[_0x14c148(0x1e9)]||_0xa49fce[_0x14c148(0x206)];_0xd20371&&!hasText(_0x2b3d56[_0x14c148(0x1e9)])&&!hasText(_0x2b3d56[_0x14c148(0x233)])&&(_0x2b3d56[_0x14c148(0x1e9)]=_0xd20371),_0xa49fce[_0x14c148(0x233)]&&!hasText(_0x2b3d56[_0x14c148(0x233)])&&!hasText(_0x2b3d56[_0x14c148(0x1e9)])&&(_0x2b3d56[_0x14c148(0x233)]=_0xa49fce[_0x14c148(0x233)]);}function renderDynamicCommandHelp(_0x5776f3){const _0x3f7f48=a65_0x4ae5,_0x28be0c=['\x20\x20SERVICE\x20TREE\x20TARGET',_0x3f7f48(0x247)+_0x5776f3['target'][_0x3f7f48(0x228)],_0x3f7f48(0x23f)+_0x5776f3['target'][_0x3f7f48(0x20e)]];if(_0x5776f3[_0x3f7f48(0x20b)][_0x3f7f48(0x20d)])_0x28be0c[_0x3f7f48(0x219)](_0x3f7f48(0x208)+_0x5776f3['target'][_0x3f7f48(0x20d)]);if(_0x5776f3['target'][_0x3f7f48(0x23c)])_0x28be0c['push'](_0x3f7f48(0x1fc)+_0x5776f3['target'][_0x3f7f48(0x23c)]);if(_0x5776f3[_0x3f7f48(0x20b)][_0x3f7f48(0x21c)])_0x28be0c[_0x3f7f48(0x219)](_0x3f7f48(0x24b)+_0x5776f3[_0x3f7f48(0x20b)]['sqlCode']);if(_0x5776f3[_0x3f7f48(0x20b)][_0x3f7f48(0x24c)])_0x28be0c[_0x3f7f48(0x219)](_0x3f7f48(0x1fe)+_0x5776f3[_0x3f7f48(0x20b)][_0x3f7f48(0x24c)]);if(_0x5776f3[_0x3f7f48(0x229)]['length']>0x0){_0x28be0c[_0x3f7f48(0x219)]('',_0x3f7f48(0x249));for(const _0x526489 of _0x5776f3[_0x3f7f48(0x229)]){_0x28be0c[_0x3f7f48(0x219)](_0x3f7f48(0x1f4)+(_0x526489[_0x3f7f48(0x22d)]||'const')+_0x3f7f48(0x24f)+_0x526489[_0x3f7f48(0x20b)]+(_0x526489[_0x3f7f48(0x227)]?'.'+_0x526489[_0x3f7f48(0x227)]:''));}}return _0x28be0c['join']('\x0a');}function targetPreview(_0x2e0f6b){const _0x1da963=a65_0x4ae5;return{'kind':_0x2e0f6b[_0x1da963(0x228)],'command':_0x2e0f6b['command'],'appRef':_0x2e0f6b[_0x1da963(0x1f8)],'datasetCode':_0x2e0f6b[_0x1da963(0x20d)],'datatable':_0x2e0f6b[_0x1da963(0x23c)],'sqlCode':_0x2e0f6b[_0x1da963(0x21c)],'bffCode':_0x2e0f6b[_0x1da963(0x214)],'bffId':_0x2e0f6b['bffId'],'functionName':_0x2e0f6b[_0x1da963(0x24c)]};}function normalizeScalarParams(_0x44c01a){const _0x224a23=a65_0x4ae5;return Object['fromEntries'](Object['entries'](_0x44c01a)['filter'](([,_0x298821])=>typeof _0x298821==='string'||typeof _0x298821===_0x224a23(0x241)));}function hasText(_0x1a64e8){const _0x115845=a65_0x4ae5;return typeof _0x1a64e8===_0x115845(0x20c)&&_0x1a64e8[_0x115845(0x235)]()['length']>0x0;}function isPrimitiveFlagDefault(_0x1df9f5){const _0x12e215=a65_0x4ae5;return _0x1df9f5===undefined||typeof _0x1df9f5===_0x12e215(0x20c)||typeof _0x1df9f5===_0x12e215(0x241)||typeof _0x1df9f5===_0x12e215(0x239);}
@@ -1 +1 @@
1
- function a66_0x2ef1(){const _0x8ecf92=['hasOwnProperty','.resources','bff','functionName','$.commands[','.actions.','68732DqjPnw','3ScVCfd','298295wdiENx','1556208QNafoj','call','.scriptName','string','2819327XijKhl','5921703eAbPhF','Use\x20functionName;\x20scriptName\x20is\x20not\x20part\x20of\x20the\x20runtime\x20Service\x20Tree\x20contract.','error','action','].target','kind','forEach','entries','bff.exec','functionName\x20must\x20be\x20a\x20non-empty\x20string.','scriptName','commands','2794SrsxFF','.functionName','target','trim','resources','isArray','$.resources','1202706znbOCF','343GGkHGJ','map','.target','actions','push','prototype'];a66_0x2ef1=function(){return _0x8ecf92;};return a66_0x2ef1();}(function(_0x4966a1,_0x1b7168){const _0x1edf3a=a66_0x39b3,_0x19f46c=_0x4966a1();while(!![]){try{const _0x213a66=parseInt(_0x1edf3a(0x136))/0x1*(-parseInt(_0x1edf3a(0x12e))/0x2)+parseInt(_0x1edf3a(0x143))/0x3*(parseInt(_0x1edf3a(0x142))/0x4)+parseInt(_0x1edf3a(0x144))/0x5+parseInt(_0x1edf3a(0x135))/0x6+-parseInt(_0x1edf3a(0x149))/0x7+parseInt(_0x1edf3a(0x145))/0x8+parseInt(_0x1edf3a(0x14a))/0x9;if(_0x213a66===_0x1b7168)break;else _0x19f46c['push'](_0x19f46c['shift']());}catch(_0x14e24c){_0x19f46c['push'](_0x19f46c['shift']());}}}(a66_0x2ef1,0x3c82e));export function adaptServiceTreeManifestForLegacyFramework(_0x53084a){const _0x26a03e=a66_0x39b3,_0x60f745=cloneJsonValue(_0x53084a),_0x447b5a=[];if(!isObjectRecord(_0x60f745))return{'manifest':_0x60f745,'errors':_0x447b5a};return Array['isArray'](_0x60f745[_0x26a03e(0x12d)])&&_0x60f745['commands'][_0x26a03e(0x150)]((_0x13d71b,_0x20b4d5)=>{const _0xa03710=_0x26a03e;if(!isObjectRecord(_0x13d71b))return;adaptBffTarget(_0x13d71b['target'],_0xa03710(0x140)+_0x20b4d5+_0xa03710(0x14e),_0x447b5a);}),adaptResources(_0x60f745[_0x26a03e(0x132)],_0x26a03e(0x134),_0x447b5a),{'manifest':_0x60f745,'errors':_0x447b5a};}export function toPublicServiceTreeTarget(_0x120b8c){const _0x4a9dfe=a66_0x39b3,{scriptName:_0x5e9f86,..._0x16c3b0}=_0x120b8c;return typeof _0x5e9f86==='string'&&_0x5e9f86[_0x4a9dfe(0x131)]()&&(_0x16c3b0[_0x4a9dfe(0x13f)]=_0x5e9f86),_0x16c3b0;}function a66_0x39b3(_0x55311d,_0x4fc549){_0x55311d=_0x55311d-0x12c;const _0x2ef1b4=a66_0x2ef1();let _0x39b3c0=_0x2ef1b4[_0x55311d];return _0x39b3c0;}export function toPublicNormalizedServiceTree(_0x1ca62b){const _0x518139=a66_0x39b3;return{..._0x1ca62b,'commands':_0x1ca62b['commands']['map'](_0x1a4acf=>({..._0x1a4acf,'target':toPublicServiceTreeTarget(_0x1a4acf[_0x518139(0x130)])}))};}function adaptResources(_0x30d4bc,_0x441226,_0x3b517b){const _0x266129=a66_0x39b3;if(!isObjectRecord(_0x30d4bc))return;for(const [_0x108b5b,_0x23f88e]of Object[_0x266129(0x151)](_0x30d4bc)){if(!isObjectRecord(_0x23f88e))continue;const _0x3dfddf=_0x441226+'.'+_0x108b5b;if(isObjectRecord(_0x23f88e[_0x266129(0x139)]))for(const [_0xd79e55,_0x363107]of Object['entries'](_0x23f88e[_0x266129(0x139)])){if(!isObjectRecord(_0x363107))continue;const _0x35be39=_0x3dfddf+_0x266129(0x141)+_0xd79e55,_0x153f7b=isObjectRecord(_0x363107[_0x266129(0x130)])&&_0x363107[_0x266129(0x130)]['kind']===_0x266129(0x13e);adaptBffTarget(_0x363107[_0x266129(0x130)],_0x35be39+_0x266129(0x138),_0x3b517b),(_0x153f7b||isBffAction(_0x363107))&&adaptFunctionNameField(_0x363107,_0x35be39,_0x3b517b);}adaptResources(_0x23f88e['resources'],_0x3dfddf+_0x266129(0x13d),_0x3b517b);}}function adaptBffTarget(_0x1bc648,_0x1cabbd,_0x4f2d2a){const _0x140466=a66_0x39b3;if(!isObjectRecord(_0x1bc648)||_0x1bc648[_0x140466(0x14f)]!=='bff')return;adaptFunctionNameField(_0x1bc648,_0x1cabbd,_0x4f2d2a);}function adaptFunctionNameField(_0x379738,_0x11b0bd,_0x2f615d){const _0xdefe6b=a66_0x39b3;Object[_0xdefe6b(0x13b)][_0xdefe6b(0x13c)][_0xdefe6b(0x146)](_0x379738,_0xdefe6b(0x12c))&&_0x2f615d[_0xdefe6b(0x13a)]({'level':_0xdefe6b(0x14c),'path':_0x11b0bd+_0xdefe6b(0x147),'message':_0xdefe6b(0x14b)});if(Object['prototype'][_0xdefe6b(0x13c)][_0xdefe6b(0x146)](_0x379738,'functionName')){if(typeof _0x379738['functionName']!==_0xdefe6b(0x148)||!_0x379738[_0xdefe6b(0x13f)][_0xdefe6b(0x131)]()){_0x2f615d[_0xdefe6b(0x13a)]({'level':_0xdefe6b(0x14c),'path':_0x11b0bd+_0xdefe6b(0x12f),'message':_0xdefe6b(0x153)}),delete _0x379738[_0xdefe6b(0x13f)];return;}_0x379738[_0xdefe6b(0x12c)]=_0x379738[_0xdefe6b(0x13f)],delete _0x379738['functionName'];}}function isBffAction(_0x2226db){const _0x93b4fd=a66_0x39b3;return _0x2226db['kind']===_0x93b4fd(0x13e)||_0x2226db[_0x93b4fd(0x14d)]===_0x93b4fd(0x152)||_0x2226db[_0x93b4fd(0x130)]===_0x93b4fd(0x152);}function cloneJsonValue(_0x570bae){const _0x131856=a66_0x39b3;if(Array[_0x131856(0x133)](_0x570bae))return _0x570bae['map'](_0x153206=>cloneJsonValue(_0x153206));if(isObjectRecord(_0x570bae))return Object['fromEntries'](Object[_0x131856(0x151)](_0x570bae)[_0x131856(0x137)](([_0x4f1da8,_0xfaca1f])=>[_0x4f1da8,cloneJsonValue(_0xfaca1f)]));return _0x570bae;}function isObjectRecord(_0x4f0140){const _0x51a04b=a66_0x39b3;return Boolean(_0x4f0140)&&typeof _0x4f0140==='object'&&!Array[_0x51a04b(0x133)](_0x4f0140);}
1
+ (function(_0x4dc580,_0x48b5f6){const _0x40d183=a66_0x1d7f,_0x4559df=_0x4dc580();while(!![]){try{const _0x53025d=-parseInt(_0x40d183(0x130))/0x1+-parseInt(_0x40d183(0x122))/0x2*(-parseInt(_0x40d183(0x113))/0x3)+parseInt(_0x40d183(0x11e))/0x4+-parseInt(_0x40d183(0x10f))/0x5+parseInt(_0x40d183(0x119))/0x6*(parseInt(_0x40d183(0x12f))/0x7)+parseInt(_0x40d183(0x11f))/0x8*(parseInt(_0x40d183(0x12a))/0x9)+parseInt(_0x40d183(0x112))/0xa;if(_0x53025d===_0x48b5f6)break;else _0x4559df['push'](_0x4559df['shift']());}catch(_0x15bff5){_0x4559df['push'](_0x4559df['shift']());}}}(a66_0xc16a,0xdc4f5));export function adaptServiceTreeManifestForLegacyFramework(_0x35a35c){const _0x598fd1=a66_0x1d7f,_0x4d0cec=cloneJsonValue(_0x35a35c),_0x56bb9a=[];if(!isObjectRecord(_0x4d0cec))return{'manifest':_0x4d0cec,'errors':_0x56bb9a};return Array['isArray'](_0x4d0cec['commands'])&&_0x4d0cec[_0x598fd1(0x135)]['forEach']((_0x5cbd2f,_0x432430)=>{const _0x6cf628=_0x598fd1;if(!isObjectRecord(_0x5cbd2f))return;adaptBffTarget(_0x5cbd2f[_0x6cf628(0x131)],_0x6cf628(0x118)+_0x432430+_0x6cf628(0x120),_0x56bb9a);}),adaptResources(_0x4d0cec[_0x598fd1(0x116)],_0x598fd1(0x129),_0x56bb9a),{'manifest':_0x4d0cec,'errors':_0x56bb9a};}export function toPublicServiceTreeTarget(_0x1a7ee6){const _0x47d65f=a66_0x1d7f,{scriptName:_0x2456ee,..._0x54970a}=_0x1a7ee6;return typeof _0x2456ee===_0x47d65f(0x121)&&_0x2456ee['trim']()&&(_0x54970a[_0x47d65f(0x117)]=_0x2456ee),_0x54970a;}export function toPublicNormalizedServiceTree(_0x2d87a1){const _0x261807=a66_0x1d7f;return{..._0x2d87a1,'commands':_0x2d87a1['commands'][_0x261807(0x10e)](_0x1c1872=>({..._0x1c1872,'target':toPublicServiceTreeTarget(_0x1c1872[_0x261807(0x131)])}))};}function adaptResources(_0x34d031,_0x17dd3b,_0x4bd545){const _0x23b66f=a66_0x1d7f;if(!isObjectRecord(_0x34d031))return;for(const [_0x49b493,_0x1e9ee8]of Object[_0x23b66f(0x125)](_0x34d031)){if(!isObjectRecord(_0x1e9ee8))continue;const _0x444c75=_0x17dd3b+'.'+_0x49b493;if(isObjectRecord(_0x1e9ee8['actions']))for(const [_0xb6a675,_0x5ddfc5]of Object[_0x23b66f(0x125)](_0x1e9ee8['actions'])){if(!isObjectRecord(_0x5ddfc5))continue;const _0x711539=_0x444c75+_0x23b66f(0x12b)+_0xb6a675,_0x39cbb3=isObjectRecord(_0x5ddfc5[_0x23b66f(0x131)])&&_0x5ddfc5[_0x23b66f(0x131)][_0x23b66f(0x127)]===_0x23b66f(0x133);adaptBffTarget(_0x5ddfc5[_0x23b66f(0x131)],_0x711539+'.target',_0x4bd545),(_0x39cbb3||isBffAction(_0x5ddfc5))&&adaptFunctionNameField(_0x5ddfc5,_0x711539,_0x4bd545);}adaptResources(_0x1e9ee8[_0x23b66f(0x116)],_0x444c75+_0x23b66f(0x11c),_0x4bd545);}}function adaptBffTarget(_0x3824c6,_0x2db4f6,_0x499ea9){const _0x30e4f8=a66_0x1d7f;if(!isObjectRecord(_0x3824c6)||_0x3824c6[_0x30e4f8(0x127)]!==_0x30e4f8(0x133))return;adaptFunctionNameField(_0x3824c6,_0x2db4f6,_0x499ea9);}function adaptFunctionNameField(_0xb9958e,_0x17f7e2,_0x727bbe){const _0x1e890b=a66_0x1d7f;Object[_0x1e890b(0x115)][_0x1e890b(0x126)]['call'](_0xb9958e,_0x1e890b(0x11b))&&_0x727bbe[_0x1e890b(0x123)]({'level':'error','path':_0x17f7e2+_0x1e890b(0x12c),'message':_0x1e890b(0x12e)});if(Object[_0x1e890b(0x115)][_0x1e890b(0x126)][_0x1e890b(0x128)](_0xb9958e,_0x1e890b(0x117))){if(typeof _0xb9958e['functionName']!==_0x1e890b(0x121)||!_0xb9958e['functionName'][_0x1e890b(0x134)]()){_0x727bbe[_0x1e890b(0x123)]({'level':_0x1e890b(0x11d),'path':_0x17f7e2+_0x1e890b(0x12d),'message':_0x1e890b(0x11a)}),delete _0xb9958e[_0x1e890b(0x117)];return;}_0xb9958e[_0x1e890b(0x11b)]=_0xb9958e['functionName'],delete _0xb9958e[_0x1e890b(0x117)];}}function a66_0x1d7f(_0x55f91a,_0x1d980c){_0x55f91a=_0x55f91a-0x10e;const _0xc16a0=a66_0xc16a();let _0x1d7fcd=_0xc16a0[_0x55f91a];return _0x1d7fcd;}function isBffAction(_0xc51985){const _0x5cb07e=a66_0x1d7f;return _0xc51985['kind']===_0x5cb07e(0x133)||_0xc51985[_0x5cb07e(0x114)]===_0x5cb07e(0x110)||_0xc51985['target']===_0x5cb07e(0x110);}function cloneJsonValue(_0x311bd8){const _0x35b01d=a66_0x1d7f;if(Array[_0x35b01d(0x124)](_0x311bd8))return _0x311bd8[_0x35b01d(0x10e)](_0x68842=>cloneJsonValue(_0x68842));if(isObjectRecord(_0x311bd8))return Object[_0x35b01d(0x132)](Object['entries'](_0x311bd8)[_0x35b01d(0x10e)](([_0x1af849,_0x251c30])=>[_0x1af849,cloneJsonValue(_0x251c30)]));return _0x311bd8;}function isObjectRecord(_0x48fbd4){const _0xaf0293=a66_0x1d7f;return Boolean(_0x48fbd4)&&typeof _0x48fbd4===_0xaf0293(0x111)&&!Array[_0xaf0293(0x124)](_0x48fbd4);}function a66_0xc16a(){const _0x42b084=['716207XvAfvu','target','fromEntries','bff','trim','commands','map','7394970ArJLMM','bff.exec','object','10089100JYYlnF','89313rnDZlQ','action','prototype','resources','functionName','$.commands[','36RcoIxE','functionName\x20must\x20be\x20a\x20non-empty\x20string.','scriptName','.resources','error','1266876EQQGhu','5576aCCZCG','].target','string','54MxjvvO','push','isArray','entries','hasOwnProperty','kind','call','$.resources','7146gCvWQt','.actions.','.scriptName','.functionName','Use\x20functionName;\x20scriptName\x20is\x20not\x20part\x20of\x20the\x20runtime\x20Service\x20Tree\x20contract.','483847aPIgOZ'];a66_0xc16a=function(){return _0x42b084;};return a66_0xc16a();}
@@ -1 +1 @@
1
- function a67_0x3c41(){const _0x1a321a=['Reads\x20the\x20given\x20manifest\x20into\x20the\x20local\x20Service\x20Tree\x20registry.\x20An\x20existing\x20manifest\x20with\x20the\x20same\x20service\x20code\x20is\x20updated.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20local\x20file\x20paths.','name','updated','WRITE','11244996ihbDyd','import','1gMsRKs','5892804WPFsBI','2508586cgIECj','Removed\x20service\x20','serviceCode','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','filePath','manifest','export','Local\x20service\x20not\x20found:\x20','reduce','hash','Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','version','Service\x20manifest\x20validation\x20passed.','Remove\x20a\x20Service\x20Tree\x20manifest\x20from\x20the\x20local\x20runtime\x20registry','registry','file','replaced','cliPath','importedAt','risk','kind','Imported\x20','type','write','Service\x20registry\x20validation\x20passed.','manifests','registryPath','entry','cliName','3452wosOgz','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','list','27779643DzaObw','6756648OlJTMH','Service\x20Tree\x20manifest\x20file\x20path','serviceCount','lower\x20kebab-case\x20service\x20code','normalizedManifest','detail','Writes\x20the\x20local\x20Service\x20Tree\x20manifest\x20for\x20the\x20given\x20service\x20to\x20a\x20JSON\x20file.\x20An\x20existing\x20file\x20at\x20the\x20target\x20may\x20be\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20local\x20file\x20paths.','Imported','7825ElnUjR','source','str','Export\x20the\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','service','remove','registryIndex','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','entries','validate','description','imported','flags','errors','report','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','target','Removes\x20the\x20given\x20service\x20manifest\x20from\x20the\x20local\x20Service\x20Tree\x20registry.\x20Dynamic\x20commands\x20from\x20that\x20manifest\x20will\x20no\x20longer\x20be\x20available.','warnings','map','string','\x20service\x20','read','length','4341864yxDkMV','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','commands'];a67_0x3c41=function(){return _0x1a321a;};return a67_0x3c41();}const a67_0x460f25=a67_0x5255;(function(_0x1b5743,_0x1e3b87){const _0x3921ed=a67_0x5255,_0x363249=_0x1b5743();while(!![]){try{const _0x39d840=parseInt(_0x3921ed(0xeb))/0x1*(parseInt(_0x3921ed(0xed))/0x2)+-parseInt(_0x3921ed(0xe2))/0x3+-parseInt(_0x3921ed(0xbe))/0x4*(-parseInt(_0x3921ed(0xca))/0x5)+-parseInt(_0x3921ed(0xec))/0x6+-parseInt(_0x3921ed(0xe9))/0x7+-parseInt(_0x3921ed(0xc2))/0x8+parseInt(_0x3921ed(0xc1))/0x9;if(_0x39d840===_0x1e3b87)break;else _0x363249['push'](_0x363249['shift']());}catch(_0x125d09){_0x363249['push'](_0x363249['shift']());}}}(a67_0x3c41,0xc604c));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';const FILE_FLAG={'name':a67_0x460f25(0xb0),'type':a67_0x460f25(0xde),'required':!![],'description':a67_0x460f25(0xc3)},SERVICE_FLAG={'name':a67_0x460f25(0xce),'type':a67_0x460f25(0xde),'required':!![],'description':'Local\x20service\x20code,\x20for\x20example\x20crm','pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a67_0x460f25(0xc5)}};function summarizeService(_0x29568f){const _0x555b26=a67_0x460f25;return{'serviceCode':_0x29568f[_0x555b26(0xef)],'name':_0x29568f[_0x555b26(0xc6)][_0x555b26(0xce)][_0x555b26(0xe6)],'version':_0x29568f['version'],'importedAt':_0x29568f[_0x555b26(0xb3)],'source':_0x29568f[_0x555b26(0xcb)],'commandCount':_0x29568f[_0x555b26(0xc6)]['commands'][_0x555b26(0xe1)],'commands':_0x29568f['normalizedManifest']['commands'][_0x555b26(0xdd)](_0x1b2ea8=>({'path':_0x1b2ea8[_0x555b26(0xb2)],'description':_0x1b2ea8[_0x555b26(0xd4)],'risk':_0x1b2ea8['risk'],'target':toPublicServiceTreeTarget(_0x1b2ea8['target']),'flags':_0x1b2ea8[_0x555b26(0xd6)]['map'](_0x5090e8=>({'name':_0x5090e8['name'],'cliName':_0x5090e8[_0x555b26(0xbd)],'type':_0x5090e8[_0x555b26(0xb7)],'required':_0x5090e8['required']===!![]}))}))};}function summarizeLoadedManifest(_0x41f909){const _0x5500ed=a67_0x460f25;return{'service':_0x41f909[_0x5500ed(0xc6)]?.[_0x5500ed(0xce)],'version':_0x41f909[_0x5500ed(0xc6)]?.[_0x5500ed(0xac)],'commandCount':_0x41f909['normalizedManifest']?.['commands'][_0x5500ed(0xe1)]??0x0,'commands':_0x41f909[_0x5500ed(0xc6)]?.[_0x5500ed(0xe4)][_0x5500ed(0xdd)](_0x2f9cba=>({'path':_0x2f9cba[_0x5500ed(0xb2)],'risk':_0x2f9cba[_0x5500ed(0xb4)],'target':toPublicServiceTreeTarget(_0x2f9cba[_0x5500ed(0xda)])}))??[],'registryIndex':_0x41f909[_0x5500ed(0xd0)],'registryServiceCode':_0x41f909['registryServiceCode'],'errors':_0x41f909[_0x5500ed(0xd8)][_0x5500ed(0xd7)],'warnings':_0x41f909['report']['warnings']};}function a67_0x5255(_0x322ce3,_0x42c2f6){_0x322ce3=_0x322ce3-0xa9;const _0x3c41e2=a67_0x3c41();let _0x525510=_0x3c41e2[_0x322ce3];return _0x525510;}export const serviceDefinitions=[{'service':a67_0x460f25(0xce),'command':a67_0x460f25(0xd3),'description':a67_0x460f25(0xf0),'risk':a67_0x460f25(0xe0),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x2279d0){const _0x5719f8=a67_0x460f25,_0x12c9af=loadServiceManifestFromFile(_0x2279d0[_0x5719f8(0xcc)](_0x5719f8(0xb0)));if(!_0x12c9af['report']['ok'])return{'ok':![],'data':{'file':_0x12c9af[_0x5719f8(0xf1)],'hash':_0x12c9af[_0x5719f8(0xaa)],'kind':_0x12c9af['kind'],'serviceCount':_0x12c9af[_0x5719f8(0xba)][_0x5719f8(0xe1)],'services':_0x12c9af[_0x5719f8(0xba)][_0x5719f8(0xdd)](summarizeLoadedManifest),'errors':_0x12c9af[_0x5719f8(0xd8)][_0x5719f8(0xd7)],'warnings':_0x12c9af[_0x5719f8(0xd8)]['warnings']},'message':formatValidationFailure(_0x12c9af[_0x5719f8(0xd8)])};if(_0x12c9af['kind']===_0x5719f8(0xaf)||_0x12c9af['manifests']['length']!==0x1)return{'ok':!![],'data':{'file':_0x12c9af[_0x5719f8(0xf1)],'hash':_0x12c9af[_0x5719f8(0xaa)],'kind':_0x12c9af[_0x5719f8(0xb5)],'serviceCount':_0x12c9af[_0x5719f8(0xba)][_0x5719f8(0xe1)],'commandCount':_0x12c9af[_0x5719f8(0xba)][_0x5719f8(0xa9)]((_0x4eaf8e,_0x3b170d)=>_0x4eaf8e+(_0x3b170d[_0x5719f8(0xc6)]?.[_0x5719f8(0xe4)][_0x5719f8(0xe1)]??0x0),0x0),'services':_0x12c9af[_0x5719f8(0xba)]['map'](summarizeLoadedManifest),'warnings':_0x12c9af[_0x5719f8(0xd8)]['warnings']},'message':_0x5719f8(0xb9)};return{'ok':!![],'data':{'file':_0x12c9af[_0x5719f8(0xf1)],'hash':_0x12c9af[_0x5719f8(0xaa)],'kind':_0x12c9af[_0x5719f8(0xb5)],'service':_0x12c9af[_0x5719f8(0xc6)]?.['service'],'version':_0x12c9af[_0x5719f8(0xc6)]?.['version'],'commandCount':_0x12c9af[_0x5719f8(0xc6)]?.[_0x5719f8(0xe4)][_0x5719f8(0xe1)]??0x0,'commands':_0x12c9af[_0x5719f8(0xc6)]?.['commands']['map'](_0x16c7a0=>({'path':_0x16c7a0[_0x5719f8(0xb2)],'risk':_0x16c7a0[_0x5719f8(0xb4)],'target':toPublicServiceTreeTarget(_0x16c7a0[_0x5719f8(0xda)])})),'warnings':_0x12c9af['report'][_0x5719f8(0xdc)]},'message':_0x5719f8(0xad)};}},{'service':'service','command':a67_0x460f25(0xea),'description':a67_0x460f25(0xab),'risk':a67_0x460f25(0xb8),'confirmationDescription':a67_0x460f25(0xe5),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x4c5340){const _0x2f4e96=a67_0x460f25,_0x3523a9=loadServiceManifestFromFile(_0x4c5340[_0x2f4e96(0xcc)](_0x2f4e96(0xb0)));return{'method':_0x2f4e96(0xe8),'url':getServiceRegistryPath(),'body':{'file':_0x3523a9[_0x2f4e96(0xf1)],'hash':_0x3523a9['hash'],'kind':_0x3523a9[_0x2f4e96(0xb5)],'ok':_0x3523a9[_0x2f4e96(0xd8)]['ok'],'service':_0x3523a9[_0x2f4e96(0xc6)]?.['service'],'version':_0x3523a9[_0x2f4e96(0xc6)]?.[_0x2f4e96(0xac)],'serviceCount':_0x3523a9[_0x2f4e96(0xba)]['length'],'services':_0x3523a9[_0x2f4e96(0xba)][_0x2f4e96(0xdd)](_0x383ef3=>({'service':_0x383ef3[_0x2f4e96(0xc6)]?.[_0x2f4e96(0xce)],'version':_0x383ef3['normalizedManifest']?.['version'],'commandCount':_0x383ef3[_0x2f4e96(0xc6)]?.[_0x2f4e96(0xe4)][_0x2f4e96(0xe1)]??0x0,'errors':_0x383ef3[_0x2f4e96(0xd8)][_0x2f4e96(0xd7)]})),'errors':_0x3523a9[_0x2f4e96(0xd8)]['errors'],'commandCount':_0x3523a9[_0x2f4e96(0xc6)]?.['commands'][_0x2f4e96(0xe1)]??0x0},'description':_0x2f4e96(0xd9)};},async 'execute'(_0x4edbdb){const _0x83535a=a67_0x460f25,_0x191a05=importServiceManifest(_0x4edbdb[_0x83535a(0xcc)](_0x83535a(0xb0)));if(_0x191a05[_0x83535a(0xd2)]['length']!==0x1)return{'ok':!![],'data':{'registryPath':_0x191a05[_0x83535a(0xbb)],'imported':_0x191a05['imported'],'updated':_0x191a05[_0x83535a(0xe7)],'serviceCount':_0x191a05[_0x83535a(0xc4)],'services':_0x191a05[_0x83535a(0xd2)][_0x83535a(0xdd)](summarizeService)},'message':_0x83535a(0xb6)+_0x191a05['imported']+'\x20service(s),\x20updated\x20'+_0x191a05[_0x83535a(0xe7)]+'\x20service(s).'};return{'ok':!![],'data':{'registryPath':_0x191a05['registryPath'],'replaced':_0x191a05[_0x83535a(0xb1)],'imported':_0x191a05[_0x83535a(0xd5)],'updated':_0x191a05[_0x83535a(0xe7)],'serviceCount':_0x191a05['serviceCount'],'service':summarizeService(_0x191a05[_0x83535a(0xbc)])},'message':(_0x191a05[_0x83535a(0xb1)]?'Updated':_0x83535a(0xc9))+_0x83535a(0xdf)+_0x191a05[_0x83535a(0xbc)][_0x83535a(0xef)]+'.'};}},{'service':a67_0x460f25(0xce),'command':a67_0x460f25(0xf3),'description':a67_0x460f25(0xcd),'risk':a67_0x460f25(0xb8),'confirmationDescription':a67_0x460f25(0xc8),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x58ac4f){const _0x20bd69=a67_0x460f25,_0x1859e5=getLocalServiceEntry(_0x58ac4f[_0x20bd69(0xcc)]('service'));return{'method':_0x20bd69(0xe8),'url':_0x58ac4f[_0x20bd69(0xcc)](_0x20bd69(0xb0)),'body':{'service':_0x58ac4f[_0x20bd69(0xcc)](_0x20bd69(0xce)),'found':Boolean(_0x1859e5),'version':_0x1859e5?.[_0x20bd69(0xac)],'source':_0x1859e5?.['source']},'description':_0x20bd69(0xbf)};},async 'execute'(_0x1b2916){const _0xf48e27=a67_0x460f25,_0x3ba46a=exportServiceManifest(_0x1b2916['str']('service'),_0x1b2916[_0xf48e27(0xcc)](_0xf48e27(0xb0)));return{'ok':!![],'data':{'registryPath':_0x3ba46a[_0xf48e27(0xbb)],'file':_0x3ba46a[_0xf48e27(0xf1)],'service':summarizeService(_0x3ba46a[_0xf48e27(0xbc)])},'message':'Exported\x20service\x20'+_0x3ba46a[_0xf48e27(0xbc)]['serviceCode']+'.'};}},{'service':'service','command':a67_0x460f25(0xc0),'description':'List\x20locally\x20imported\x20Service\x20Tree\x20manifests','risk':a67_0x460f25(0xe0),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x17f38b=a67_0x460f25,_0x5c51ad=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x5c51ad[_0x17f38b(0xe1)],'services':_0x5c51ad['map'](summarizeService)}};}},{'service':'service','command':a67_0x460f25(0xcf),'description':a67_0x460f25(0xae),'risk':a67_0x460f25(0xb8),'confirmationDescription':a67_0x460f25(0xdb),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x339164){const _0x122e14=a67_0x460f25,_0x557988=getLocalServiceEntry(_0x339164[_0x122e14(0xcc)]('service'));return{'method':_0x122e14(0xe8),'url':getServiceRegistryPath(),'body':{'service':_0x339164[_0x122e14(0xcc)](_0x122e14(0xce)),'found':Boolean(_0x557988),'version':_0x557988?.['version'],'source':_0x557988?.['source']},'description':_0x122e14(0xe3)};},async 'execute'(_0x1714cb){const _0x738e12=a67_0x460f25,_0x51b161=removeServiceManifest(_0x1714cb[_0x738e12(0xcc)](_0x738e12(0xce)));return{'ok':!![],'data':{'registryPath':_0x51b161[_0x738e12(0xbb)],'serviceCount':_0x51b161[_0x738e12(0xc4)],'service':summarizeService(_0x51b161['entry'])},'message':_0x738e12(0xee)+_0x51b161[_0x738e12(0xbc)]['serviceCode']+'.'};}},{'service':'service','command':a67_0x460f25(0xc7),'description':a67_0x460f25(0xd1),'risk':a67_0x460f25(0xe0),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0xa9607c){const _0x4a6261=a67_0x460f25,_0x3f4c77=getLocalServiceEntry(_0xa9607c[_0x4a6261(0xcc)](_0x4a6261(0xce)));if(!_0x3f4c77)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0xa9607c[_0x4a6261(0xcc)]('service')},'message':_0x4a6261(0xf4)+_0xa9607c[_0x4a6261(0xcc)](_0x4a6261(0xce))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x3f4c77),'manifest':_0x3f4c77[_0x4a6261(0xf2)],'normalizedManifest':toPublicNormalizedServiceTree(_0x3f4c77[_0x4a6261(0xc6)])}};}}];
1
+ const a67_0x4684bf=a67_0x4fe7;(function(_0x4d3145,_0x15b8a9){const _0x22308e=a67_0x4fe7,_0x1a91ee=_0x4d3145();while(!![]){try{const _0x36eeb8=-parseInt(_0x22308e(0x9a))/0x1+-parseInt(_0x22308e(0xba))/0x2*(-parseInt(_0x22308e(0xd6))/0x3)+parseInt(_0x22308e(0xac))/0x4+parseInt(_0x22308e(0x9f))/0x5+-parseInt(_0x22308e(0xa8))/0x6*(-parseInt(_0x22308e(0xa3))/0x7)+-parseInt(_0x22308e(0xad))/0x8*(parseInt(_0x22308e(0xa6))/0x9)+-parseInt(_0x22308e(0xcb))/0xa;if(_0x36eeb8===_0x15b8a9)break;else _0x1a91ee['push'](_0x1a91ee['shift']());}catch(_0x37f971){_0x1a91ee['push'](_0x1a91ee['shift']());}}}(a67_0x200c,0x8bfa7));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';function a67_0x200c(){const _0x3aed94=['normalizedManifest','4690eSdUIG','Service\x20manifest\x20validation\x20passed.','Removes\x20the\x20given\x20service\x20manifest\x20from\x20the\x20local\x20Service\x20Tree\x20registry.\x20Dynamic\x20commands\x20from\x20that\x20manifest\x20will\x20no\x20longer\x20be\x20available.','51633NXMmkz','\x20service(s).','2994UlBxLW','cliPath','Local\x20service\x20not\x20found:\x20','reduce','1706156PehSpG','1432HQiavi','map','Exported\x20service\x20','Writes\x20the\x20local\x20Service\x20Tree\x20manifest\x20for\x20the\x20given\x20service\x20to\x20a\x20JSON\x20file.\x20An\x20existing\x20file\x20at\x20the\x20target\x20may\x20be\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20local\x20file\x20paths.','Reads\x20the\x20given\x20manifest\x20into\x20the\x20local\x20Service\x20Tree\x20registry.\x20An\x20existing\x20manifest\x20with\x20the\x20same\x20service\x20code\x20is\x20updated.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20local\x20file\x20paths.','imported','warnings','read','name','target','detail','export','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','1017958ETVDRe','entries','report','kind','lower\x20kebab-case\x20service\x20code','replaced','registry','validate','Local\x20service\x20code,\x20for\x20example\x20crm','manifest','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','errors','length','WRITE','string','file','manifests','9018040NHgaum','Service\x20Tree\x20manifest\x20file\x20path','description','serviceCode','risk','updated','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','Updated','registryIndex','\x20service\x20','registryServiceCode','6lNqcvB','hash','commands','type','version','source','\x20service(s),\x20updated\x20','registryPath','entry','service','remove','filePath','261926VaUlFW','write','Imported','required','Imported\x20','4925885WlGnoI','serviceCount','str'];a67_0x200c=function(){return _0x3aed94;};return a67_0x200c();}import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';function a67_0x4fe7(_0x86fdd3,_0x294263){_0x86fdd3=_0x86fdd3-0x95;const _0x200c6f=a67_0x200c();let _0x4fe78d=_0x200c6f[_0x86fdd3];return _0x4fe78d;}const FILE_FLAG={'name':a67_0x4684bf(0xc9),'type':'string','required':!![],'description':a67_0x4684bf(0xcc)},SERVICE_FLAG={'name':'service','type':a67_0x4684bf(0xc8),'required':!![],'description':a67_0x4684bf(0xc2),'pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a67_0x4684bf(0xbe)}};function summarizeService(_0xb3bd4b){const _0x8fb5c=a67_0x4684bf;return{'serviceCode':_0xb3bd4b[_0x8fb5c(0xce)],'name':_0xb3bd4b[_0x8fb5c(0xa2)][_0x8fb5c(0x97)][_0x8fb5c(0xb5)],'version':_0xb3bd4b[_0x8fb5c(0xda)],'importedAt':_0xb3bd4b['importedAt'],'source':_0xb3bd4b['source'],'commandCount':_0xb3bd4b[_0x8fb5c(0xa2)][_0x8fb5c(0xd8)][_0x8fb5c(0xc6)],'commands':_0xb3bd4b['normalizedManifest']['commands'][_0x8fb5c(0xae)](_0x4b2f85=>({'path':_0x4b2f85['cliPath'],'description':_0x4b2f85[_0x8fb5c(0xcd)],'risk':_0x4b2f85[_0x8fb5c(0xcf)],'target':toPublicServiceTreeTarget(_0x4b2f85[_0x8fb5c(0xb6)]),'flags':_0x4b2f85['flags']['map'](_0x28a843=>({'name':_0x28a843[_0x8fb5c(0xb5)],'cliName':_0x28a843['cliName'],'type':_0x28a843[_0x8fb5c(0xd9)],'required':_0x28a843[_0x8fb5c(0x9d)]===!![]}))}))};}function summarizeLoadedManifest(_0x4f3310){const _0x45b089=a67_0x4684bf;return{'service':_0x4f3310[_0x45b089(0xa2)]?.[_0x45b089(0x97)],'version':_0x4f3310[_0x45b089(0xa2)]?.[_0x45b089(0xda)],'commandCount':_0x4f3310[_0x45b089(0xa2)]?.[_0x45b089(0xd8)][_0x45b089(0xc6)]??0x0,'commands':_0x4f3310[_0x45b089(0xa2)]?.[_0x45b089(0xd8)][_0x45b089(0xae)](_0xf7cccd=>({'path':_0xf7cccd[_0x45b089(0xa9)],'risk':_0xf7cccd[_0x45b089(0xcf)],'target':toPublicServiceTreeTarget(_0xf7cccd[_0x45b089(0xb6)])}))??[],'registryIndex':_0x4f3310[_0x45b089(0xd3)],'registryServiceCode':_0x4f3310[_0x45b089(0xd5)],'errors':_0x4f3310[_0x45b089(0xbc)][_0x45b089(0xc5)],'warnings':_0x4f3310[_0x45b089(0xbc)][_0x45b089(0xb3)]};}export const serviceDefinitions=[{'service':a67_0x4684bf(0x97),'command':a67_0x4684bf(0xc1),'description':a67_0x4684bf(0xc4),'risk':a67_0x4684bf(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x3bb101){const _0x40b5fe=a67_0x4684bf,_0x1a74f8=loadServiceManifestFromFile(_0x3bb101['str'](_0x40b5fe(0xc9)));if(!_0x1a74f8['report']['ok'])return{'ok':![],'data':{'file':_0x1a74f8[_0x40b5fe(0x99)],'hash':_0x1a74f8[_0x40b5fe(0xd7)],'kind':_0x1a74f8[_0x40b5fe(0xbd)],'serviceCount':_0x1a74f8[_0x40b5fe(0xca)][_0x40b5fe(0xc6)],'services':_0x1a74f8[_0x40b5fe(0xca)]['map'](summarizeLoadedManifest),'errors':_0x1a74f8[_0x40b5fe(0xbc)][_0x40b5fe(0xc5)],'warnings':_0x1a74f8[_0x40b5fe(0xbc)]['warnings']},'message':formatValidationFailure(_0x1a74f8['report'])};if(_0x1a74f8['kind']===_0x40b5fe(0xc0)||_0x1a74f8['manifests']['length']!==0x1)return{'ok':!![],'data':{'file':_0x1a74f8[_0x40b5fe(0x99)],'hash':_0x1a74f8[_0x40b5fe(0xd7)],'kind':_0x1a74f8[_0x40b5fe(0xbd)],'serviceCount':_0x1a74f8[_0x40b5fe(0xca)][_0x40b5fe(0xc6)],'commandCount':_0x1a74f8[_0x40b5fe(0xca)][_0x40b5fe(0xab)]((_0x14339e,_0x1857d8)=>_0x14339e+(_0x1857d8[_0x40b5fe(0xa2)]?.[_0x40b5fe(0xd8)][_0x40b5fe(0xc6)]??0x0),0x0),'services':_0x1a74f8[_0x40b5fe(0xca)][_0x40b5fe(0xae)](summarizeLoadedManifest),'warnings':_0x1a74f8[_0x40b5fe(0xbc)]['warnings']},'message':'Service\x20registry\x20validation\x20passed.'};return{'ok':!![],'data':{'file':_0x1a74f8['filePath'],'hash':_0x1a74f8['hash'],'kind':_0x1a74f8[_0x40b5fe(0xbd)],'service':_0x1a74f8[_0x40b5fe(0xa2)]?.[_0x40b5fe(0x97)],'version':_0x1a74f8['normalizedManifest']?.[_0x40b5fe(0xda)],'commandCount':_0x1a74f8['normalizedManifest']?.[_0x40b5fe(0xd8)][_0x40b5fe(0xc6)]??0x0,'commands':_0x1a74f8[_0x40b5fe(0xa2)]?.['commands'][_0x40b5fe(0xae)](_0xf62517=>({'path':_0xf62517['cliPath'],'risk':_0xf62517['risk'],'target':toPublicServiceTreeTarget(_0xf62517[_0x40b5fe(0xb6)])})),'warnings':_0x1a74f8[_0x40b5fe(0xbc)][_0x40b5fe(0xb3)]},'message':_0x40b5fe(0xa4)};}},{'service':'service','command':'import','description':'Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','risk':a67_0x4684bf(0x9b),'confirmationDescription':a67_0x4684bf(0xb1),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x599d1c){const _0x2fbe99=a67_0x4684bf,_0x48884a=loadServiceManifestFromFile(_0x599d1c['str'](_0x2fbe99(0xc9)));return{'method':_0x2fbe99(0xc7),'url':getServiceRegistryPath(),'body':{'file':_0x48884a['filePath'],'hash':_0x48884a[_0x2fbe99(0xd7)],'kind':_0x48884a['kind'],'ok':_0x48884a[_0x2fbe99(0xbc)]['ok'],'service':_0x48884a[_0x2fbe99(0xa2)]?.['service'],'version':_0x48884a['normalizedManifest']?.[_0x2fbe99(0xda)],'serviceCount':_0x48884a[_0x2fbe99(0xca)][_0x2fbe99(0xc6)],'services':_0x48884a['manifests'][_0x2fbe99(0xae)](_0x37398e=>({'service':_0x37398e[_0x2fbe99(0xa2)]?.[_0x2fbe99(0x97)],'version':_0x37398e[_0x2fbe99(0xa2)]?.[_0x2fbe99(0xda)],'commandCount':_0x37398e[_0x2fbe99(0xa2)]?.[_0x2fbe99(0xd8)][_0x2fbe99(0xc6)]??0x0,'errors':_0x37398e[_0x2fbe99(0xbc)][_0x2fbe99(0xc5)]})),'errors':_0x48884a[_0x2fbe99(0xbc)][_0x2fbe99(0xc5)],'commandCount':_0x48884a[_0x2fbe99(0xa2)]?.[_0x2fbe99(0xd8)]['length']??0x0},'description':'Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json'};},async 'execute'(_0x2ba745){const _0x5d2df7=a67_0x4684bf,_0x4ff0d2=importServiceManifest(_0x2ba745[_0x5d2df7(0xa1)](_0x5d2df7(0xc9)));if(_0x4ff0d2['entries'][_0x5d2df7(0xc6)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x4ff0d2['registryPath'],'imported':_0x4ff0d2[_0x5d2df7(0xb2)],'updated':_0x4ff0d2[_0x5d2df7(0xd0)],'serviceCount':_0x4ff0d2[_0x5d2df7(0xa0)],'services':_0x4ff0d2[_0x5d2df7(0xbb)][_0x5d2df7(0xae)](summarizeService)},'message':_0x5d2df7(0x9e)+_0x4ff0d2[_0x5d2df7(0xb2)]+_0x5d2df7(0xdc)+_0x4ff0d2['updated']+_0x5d2df7(0xa7)};return{'ok':!![],'data':{'registryPath':_0x4ff0d2[_0x5d2df7(0x95)],'replaced':_0x4ff0d2[_0x5d2df7(0xbf)],'imported':_0x4ff0d2[_0x5d2df7(0xb2)],'updated':_0x4ff0d2[_0x5d2df7(0xd0)],'serviceCount':_0x4ff0d2['serviceCount'],'service':summarizeService(_0x4ff0d2[_0x5d2df7(0x96)])},'message':(_0x4ff0d2[_0x5d2df7(0xbf)]?_0x5d2df7(0xd2):_0x5d2df7(0x9c))+_0x5d2df7(0xd4)+_0x4ff0d2[_0x5d2df7(0x96)][_0x5d2df7(0xce)]+'.'};}},{'service':a67_0x4684bf(0x97),'command':a67_0x4684bf(0xb8),'description':'Export\x20the\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','risk':a67_0x4684bf(0x9b),'confirmationDescription':a67_0x4684bf(0xb0),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x2994e8){const _0x256207=a67_0x4684bf,_0x3e45b1=getLocalServiceEntry(_0x2994e8[_0x256207(0xa1)](_0x256207(0x97)));return{'method':'WRITE','url':_0x2994e8[_0x256207(0xa1)](_0x256207(0xc9)),'body':{'service':_0x2994e8['str'](_0x256207(0x97)),'found':Boolean(_0x3e45b1),'version':_0x3e45b1?.['version'],'source':_0x3e45b1?.[_0x256207(0xdb)]},'description':'Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json'};},async 'execute'(_0x38730a){const _0x1a41b6=a67_0x4684bf,_0x251099=exportServiceManifest(_0x38730a[_0x1a41b6(0xa1)](_0x1a41b6(0x97)),_0x38730a[_0x1a41b6(0xa1)](_0x1a41b6(0xc9)));return{'ok':!![],'data':{'registryPath':_0x251099[_0x1a41b6(0x95)],'file':_0x251099[_0x1a41b6(0x99)],'service':summarizeService(_0x251099[_0x1a41b6(0x96)])},'message':_0x1a41b6(0xaf)+_0x251099['entry'][_0x1a41b6(0xce)]+'.'};}},{'service':'service','command':'list','description':a67_0x4684bf(0xd1),'risk':a67_0x4684bf(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x6a9645=a67_0x4684bf,_0x1e6b45=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x1e6b45[_0x6a9645(0xc6)],'services':_0x1e6b45[_0x6a9645(0xae)](summarizeService)}};}},{'service':a67_0x4684bf(0x97),'command':a67_0x4684bf(0x98),'description':'Remove\x20a\x20Service\x20Tree\x20manifest\x20from\x20the\x20local\x20runtime\x20registry','risk':'write','confirmationDescription':a67_0x4684bf(0xa5),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x4dfcb4){const _0x44bab2=a67_0x4684bf,_0x3436dd=getLocalServiceEntry(_0x4dfcb4[_0x44bab2(0xa1)](_0x44bab2(0x97)));return{'method':_0x44bab2(0xc7),'url':getServiceRegistryPath(),'body':{'service':_0x4dfcb4['str']('service'),'found':Boolean(_0x3436dd),'version':_0x3436dd?.[_0x44bab2(0xda)],'source':_0x3436dd?.[_0x44bab2(0xdb)]},'description':_0x44bab2(0xb9)};},async 'execute'(_0x16f69c){const _0x4d2ca2=a67_0x4684bf,_0x1b309b=removeServiceManifest(_0x16f69c['str'](_0x4d2ca2(0x97)));return{'ok':!![],'data':{'registryPath':_0x1b309b[_0x4d2ca2(0x95)],'serviceCount':_0x1b309b[_0x4d2ca2(0xa0)],'service':summarizeService(_0x1b309b['entry'])},'message':'Removed\x20service\x20'+_0x1b309b['entry'][_0x4d2ca2(0xce)]+'.'};}},{'service':a67_0x4684bf(0x97),'command':a67_0x4684bf(0xb7),'description':'Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','risk':a67_0x4684bf(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x36f98b){const _0xacd31f=a67_0x4684bf,_0x3c93bf=getLocalServiceEntry(_0x36f98b['str'](_0xacd31f(0x97)));if(!_0x3c93bf)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x36f98b['str'](_0xacd31f(0x97))},'message':_0xacd31f(0xaa)+_0x36f98b[_0xacd31f(0xa1)]('service')};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x3c93bf),'manifest':_0x3c93bf[_0xacd31f(0xc3)],'normalizedManifest':toPublicNormalizedServiceTree(_0x3c93bf[_0xacd31f(0xa2)])}};}}];