@lovrabet/lovrabet-cli 2.3.8 → 2.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a54_0x46b9(){const _0x1d1d94=['Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','206649wekoVW','114689vkMVTD','remark','validation','3541344cxUDDC','role','1272486ZqlbCF','str','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','trim','high-risk-write','description','POST','1788374IDMVGW','string','559305MLJGTE','build','appCode','39114pazoIX','name','create','/client/permit/role/create','4usePEJ'];a54_0x46b9=function(){return _0x1d1d94;};return a54_0x46b9();}function a54_0x3b34(_0x106db9,_0x1165ba){_0x106db9=_0x106db9-0xad;const _0x46b97c=a54_0x46b9();let _0x3b3486=_0x46b97c[_0x106db9];return _0x3b3486;}const a54_0x31d50f=a54_0x3b34;(function(_0x23ac37,_0x19c414){const _0x3a4727=a54_0x3b34,_0xbb2880=_0x23ac37();while(!![]){try{const _0x202da8=parseInt(_0x3a4727(0xbc))/0x1+parseInt(_0x3a4727(0xb5))/0x2+parseInt(_0x3a4727(0xbb))/0x3*(-parseInt(_0x3a4727(0xb9))/0x4)+parseInt(_0x3a4727(0xb2))/0x5+-parseInt(_0x3a4727(0xc1))/0x6+-parseInt(_0x3a4727(0xb0))/0x7+parseInt(_0x3a4727(0xbf))/0x8;if(_0x202da8===_0x19c414)break;else _0xbb2880['push'](_0xbb2880['shift']());}catch(_0x1ebf18){_0xbb2880['push'](_0xbb2880['shift']());}}}(a54_0x46b9,0x25309));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(_0x120401){const _0x5b881b=a54_0x3b34,_0x30db10=_0x120401[_0x5b881b(0xc2)](_0x5b881b(0xb6))[_0x5b881b(0xc4)]();if(!_0x30db10)throw CliErrors[_0x5b881b(0xbe)]('--name\x20must\x20not\x20be\x20blank.');const _0x428c27=_0x120401[_0x5b881b(0xc2)](_0x5b881b(0xbd))[_0x5b881b(0xc4)](),_0x1966e3=readOptionalRuntimeRoleCode(_0x120401);return{'appCode':_0x120401[_0x5b881b(0xb4)],'roleName':_0x30db10,..._0x1966e3?{'roleCode':_0x1966e3}:{},..._0x428c27?{'remark':_0x428c27}:{}};}export const roleCreate={'service':a54_0x31d50f(0xc0),'command':a54_0x31d50f(0xb7),'description':'Create\x20a\x20runtime\x20CUSTOM\x20role','risk':a54_0x31d50f(0xad),'confirmationDescription':a54_0x31d50f(0xc3),'flags':[{'name':a54_0x31d50f(0xb6),'type':a54_0x31d50f(0xb1),'required':!![],'description':'Role\x20name'},ROLE_CODE_FLAG,{'name':a54_0x31d50f(0xbd),'type':'string','description':'Optional\x20role\x20remark'}],async 'validate'(_0x4e99b5){input(_0x4e99b5);},async 'dryRun'(_0x451b44){const _0x84c61c=a54_0x31d50f;return dryRun(_0x84c61c(0xaf),_0x84c61c(0xb8))['body']({'roleType':'CUSTOM',...input(_0x451b44)})[_0x84c61c(0xae)](_0x84c61c(0xba))[_0x84c61c(0xb3)]();},async 'execute'(_0x26cafa){const _0x4f6af3=a54_0x31d50f,_0x420a2e=await createRuntimeAppRole(input(_0x26cafa));return{'ok':!![],'data':runtimeRoleWriteResult(_0x4f6af3(0xb7),{'roleId':_0x420a2e['id']},null,projectRuntimeRole(_0x420a2e),{'method':_0x4f6af3(0xaf),'path':_0x4f6af3(0xb8)})};}};
1
+ const a54_0xb00f38=a54_0x3d2a;function a54_0x3d2a(_0x16b57c,_0x2e3d12){_0x16b57c=_0x16b57c-0x1b1;const _0x3bf144=a54_0x3bf1();let _0x3d2ab7=_0x3bf144[_0x16b57c];return _0x3d2ab7;}(function(_0x21afe8,_0x494a5f){const _0x2601c9=a54_0x3d2a,_0x37f128=_0x21afe8();while(!![]){try{const _0x55feb1=-parseInt(_0x2601c9(0x1c2))/0x1*(parseInt(_0x2601c9(0x1cb))/0x2)+-parseInt(_0x2601c9(0x1b1))/0x3*(parseInt(_0x2601c9(0x1c7))/0x4)+parseInt(_0x2601c9(0x1c5))/0x5*(parseInt(_0x2601c9(0x1ca))/0x6)+-parseInt(_0x2601c9(0x1bb))/0x7*(-parseInt(_0x2601c9(0x1b2))/0x8)+-parseInt(_0x2601c9(0x1cf))/0x9*(-parseInt(_0x2601c9(0x1c4))/0xa)+-parseInt(_0x2601c9(0x1be))/0xb*(parseInt(_0x2601c9(0x1b8))/0xc)+-parseInt(_0x2601c9(0x1b5))/0xd;if(_0x55feb1===_0x494a5f)break;else _0x37f128['push'](_0x37f128['shift']());}catch(_0x425283){_0x37f128['push'](_0x37f128['shift']());}}}(a54_0x3bf1,0xa3547));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 a54_0x3bf1(){const _0x313d46=['2125744dGLCcH','high-risk-write','trim','16413475OOpMpy','Optional\x20role\x20remark','appCode','21024OfqGEM','role','CUSTOM','35DgFnMn','string','remark','352dFVWfv','create','Creates\x20a\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20After\x20creation\x20it\x20can\x20be\x20used\x20for\x20member\x20and\x20resource\x20permissions.','/client/permit/role/create','4zeFaWx','name','10dzqfeE','5tXoBZO','POST','4ILdJCI','description','Create\x20a\x20runtime\x20CUSTOM\x20role','5969778HXqNlG','611850sGUJPg','body','build','Preview:\x20create\x20a\x20runtime\x20CUSTOM\x20role','9429093XlotUw','str','479676IiAlMi'];a54_0x3bf1=function(){return _0x313d46;};return a54_0x3bf1();}function input(_0x5e87d2){const _0x629a5d=a54_0x3d2a,_0x23956f=_0x5e87d2[_0x629a5d(0x1d0)]('name')[_0x629a5d(0x1b4)]();if(!_0x23956f)throw CliErrors['validation']('--name\x20must\x20not\x20be\x20blank.');const _0x2e819c=_0x5e87d2[_0x629a5d(0x1d0)](_0x629a5d(0x1bd))[_0x629a5d(0x1b4)](),_0x214ade=readOptionalRuntimeRoleCode(_0x5e87d2);return{'appCode':_0x5e87d2[_0x629a5d(0x1b7)],'roleName':_0x23956f,..._0x214ade?{'roleCode':_0x214ade}:{},..._0x2e819c?{'remark':_0x2e819c}:{}};}export const roleCreate={'service':a54_0xb00f38(0x1b9),'command':'create','description':a54_0xb00f38(0x1c9),'risk':a54_0xb00f38(0x1b3),'confirmationDescription':a54_0xb00f38(0x1c0),'flags':[{'name':a54_0xb00f38(0x1c3),'type':a54_0xb00f38(0x1bc),'required':!![],'description':'Role\x20name'},ROLE_CODE_FLAG,{'name':a54_0xb00f38(0x1bd),'type':a54_0xb00f38(0x1bc),'description':a54_0xb00f38(0x1b6)}],async 'validate'(_0x76fa78){input(_0x76fa78);},async 'dryRun'(_0x113b7c){const _0x1fa615=a54_0xb00f38;return dryRun('POST',_0x1fa615(0x1c1))[_0x1fa615(0x1cc)]({'roleType':_0x1fa615(0x1ba),...input(_0x113b7c)})[_0x1fa615(0x1c8)](_0x1fa615(0x1ce))[_0x1fa615(0x1cd)]();},async 'execute'(_0x5bd9f5){const _0x58350c=a54_0xb00f38,_0x46d25e=await createRuntimeAppRole(input(_0x5bd9f5));return{'ok':!![],'data':runtimeRoleWriteResult(_0x58350c(0x1bf),{'roleId':_0x46d25e['id']},null,projectRuntimeRole(_0x46d25e),{'method':_0x58350c(0x1c6),'path':_0x58350c(0x1c1)})};}};
@@ -1 +1 @@
1
- function a55_0x3780(){const _0x51d340=['9npFbig','3190831jAkMVU','2470770SDCbZV','delete','6713100vWJEdD','2804559DfrMjv','Delete\x20a\x20runtime\x20CUSTOM\x20role','appCode','high-risk-write','523259ZHcjcQ','role','num','/client/permit/role/delete','7UcQWGI','91192ZEcZci','4hjAtjq','12JkeXnI','876scquVX','7427856xqChme','build','Deletes\x20the\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20Membership\x20and\x20permission\x20config\x20for\x20that\x20role\x20may\x20become\x20invalid.'];a55_0x3780=function(){return _0x51d340;};return a55_0x3780();}const a55_0x1ec5ba=a55_0x5efb;function a55_0x5efb(_0x438ae7,_0x51b34c){_0x438ae7=_0x438ae7-0x162;const _0x3780ab=a55_0x3780();let _0x5efb61=_0x3780ab[_0x438ae7];return _0x5efb61;}(function(_0x5c0e3a,_0x14ec99){const _0x3c03cd=a55_0x5efb,_0x1f2244=_0x5c0e3a();while(!![]){try{const _0x2335d8=parseInt(_0x3c03cd(0x163))/0x1*(parseInt(_0x3c03cd(0x164))/0x2)+parseInt(_0x3c03cd(0x170))/0x3*(parseInt(_0x3c03cd(0x165))/0x4)+parseInt(_0x3c03cd(0x16d))/0x5+-parseInt(_0x3c03cd(0x166))/0x6*(-parseInt(_0x3c03cd(0x16c))/0x7)+parseInt(_0x3c03cd(0x168))/0x8+-parseInt(_0x3c03cd(0x16b))/0x9*(-parseInt(_0x3c03cd(0x16f))/0xa)+-parseInt(_0x3c03cd(0x174))/0xb*(parseInt(_0x3c03cd(0x167))/0xc);if(_0x2335d8===_0x14ec99)break;else _0x1f2244['push'](_0x1f2244['shift']());}catch(_0x13b197){_0x1f2244['push'](_0x1f2244['shift']());}}}(a55_0x3780,0xc029c));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(_0xf607b6){const _0x552907=a55_0x5efb,_0x2bd33c=await getRuntimeRoleById(_0xf607b6[_0x552907(0x172)],_0xf607b6[_0x552907(0x176)]('id'));return assertCustomRuntimeRole(_0x2bd33c,'delete'),_0x2bd33c;}export const roleDelete={'service':a55_0x1ec5ba(0x175),'command':a55_0x1ec5ba(0x16e),'description':a55_0x1ec5ba(0x171),'risk':a55_0x1ec5ba(0x173),'confirmationDescription':a55_0x1ec5ba(0x16a),'flags':[ROLE_ID_FLAG],async 'dryRun'(_0x5558ef){const _0x54e58f=a55_0x1ec5ba,_0x477b87=await prepare(_0x5558ef);return dryRun('POST','/client/permit/role/delete')['body']({'id':_0x477b87['id']})['description']('Preview:\x20delete\x20a\x20runtime\x20CUSTOM\x20role')[_0x54e58f(0x169)]();},async 'execute'(_0x4aae82){const _0x4c4846=a55_0x1ec5ba,_0x4ec0d1=await prepare(_0x4aae82);return await deleteRuntimeAppRole(_0x4ec0d1['id']),{'ok':!![],'data':runtimeRoleWriteResult(_0x4c4846(0x16e),{'roleId':_0x4ec0d1['id']},projectRuntimeRole(_0x4ec0d1),null,{'method':'POST','path':_0x4c4846(0x162)})};}};
1
+ function a55_0x3730(_0x4e258f,_0x3b423d){_0x4e258f=_0x4e258f-0x66;const _0x548b89=a55_0x548b();let _0x373089=_0x548b89[_0x4e258f];return _0x373089;}const a55_0x22b76b=a55_0x3730;function a55_0x548b(){const _0x224abb=['689368xDmPNC','num','1764798KEYzCs','325PzVYef','6710802sQyxmj','delete','high-risk-write','6Enzqcu','build','16800690evaSXS','11935890NqdLtg','8vCTnqm','body','appCode','2837602qbEkjQ','Delete\x20a\x20runtime\x20CUSTOM\x20role','description','role','/client/permit/role/delete','POST','159630NLaBKX'];a55_0x548b=function(){return _0x224abb;};return a55_0x548b();}(function(_0x1fad57,_0x18654e){const _0x520b35=a55_0x3730,_0x552251=_0x1fad57();while(!![]){try{const _0x5e6fba=-parseInt(_0x520b35(0x6d))/0x1+-parseInt(_0x520b35(0x79))/0x2+-parseInt(_0x520b35(0x72))/0x3*(-parseInt(_0x520b35(0x6b))/0x4)+parseInt(_0x520b35(0x6e))/0x5*(parseInt(_0x520b35(0x6a))/0x6)+-parseInt(_0x520b35(0x6f))/0x7*(parseInt(_0x520b35(0x76))/0x8)+parseInt(_0x520b35(0x75))/0x9+parseInt(_0x520b35(0x74))/0xa;if(_0x5e6fba===_0x18654e)break;else _0x552251['push'](_0x552251['shift']());}catch(_0x52e8db){_0x552251['push'](_0x552251['shift']());}}}(a55_0x548b,0xe5013));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(_0x515649){const _0x5b95bc=a55_0x3730,_0x309a1f=await getRuntimeRoleById(_0x515649[_0x5b95bc(0x78)],_0x515649[_0x5b95bc(0x6c)]('id'));return assertCustomRuntimeRole(_0x309a1f,_0x5b95bc(0x70)),_0x309a1f;}export const roleDelete={'service':a55_0x22b76b(0x67),'command':a55_0x22b76b(0x70),'description':a55_0x22b76b(0x7a),'risk':a55_0x22b76b(0x71),'confirmationDescription':'Deletes\x20the\x20custom\x20role\x20in\x20the\x20current\x20runtime\x20app.\x20Membership\x20and\x20permission\x20config\x20for\x20that\x20role\x20may\x20become\x20invalid.','flags':[ROLE_ID_FLAG],async 'dryRun'(_0x57e457){const _0x3eadd8=a55_0x22b76b,_0x476a36=await prepare(_0x57e457);return dryRun(_0x3eadd8(0x69),_0x3eadd8(0x68))[_0x3eadd8(0x77)]({'id':_0x476a36['id']})[_0x3eadd8(0x66)]('Preview:\x20delete\x20a\x20runtime\x20CUSTOM\x20role')[_0x3eadd8(0x73)]();},async 'execute'(_0x2be12a){const _0x616c19=a55_0x22b76b,_0x27daf0=await prepare(_0x2be12a);return await deleteRuntimeAppRole(_0x27daf0['id']),{'ok':!![],'data':runtimeRoleWriteResult(_0x616c19(0x70),{'roleId':_0x27daf0['id']},projectRuntimeRole(_0x27daf0),null,{'method':_0x616c19(0x69),'path':'/client/permit/role/delete'})};}};
@@ -1 +1 @@
1
- const a56_0x2db39b=a56_0xf699;(function(_0x2794a4,_0x39fa1e){const _0x29eaf1=a56_0xf699,_0x39e45b=_0x2794a4();while(!![]){try{const _0x16c69e=parseInt(_0x29eaf1(0x14d))/0x1*(parseInt(_0x29eaf1(0x14b))/0x2)+-parseInt(_0x29eaf1(0x14a))/0x3+-parseInt(_0x29eaf1(0x148))/0x4*(-parseInt(_0x29eaf1(0x14c))/0x5)+parseInt(_0x29eaf1(0x14f))/0x6+parseInt(_0x29eaf1(0x149))/0x7+-parseInt(_0x29eaf1(0x147))/0x8+-parseInt(_0x29eaf1(0x150))/0x9*(parseInt(_0x29eaf1(0x14e))/0xa);if(_0x16c69e===_0x39fa1e)break;else _0x39e45b['push'](_0x39e45b['shift']());}catch(_0x590a56){_0x39e45b['push'](_0x39e45b['shift']());}}}(a56_0x6a1f,0xb83d2));import{getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';function a56_0xf699(_0x364707,_0x5a2591){_0x364707=_0x364707-0x143;const _0x6a1fd0=a56_0x6a1f();let _0xf699fa=_0x6a1fd0[_0x364707];return _0xf699fa;}function a56_0x6a1f(){const _0x31633a=['detail','appCode','num','role','read','10960216TIHCaI','268tvvQuz','9162391hLHpfW','1947825WQpGFt','13022DYQltl','61760oLehpw','195aytrDk','220lbOqtQ','3666396dsnuTC','508608BlJNBI'];a56_0x6a1f=function(){return _0x31633a;};return a56_0x6a1f();}export const roleDetail={'service':a56_0x2db39b(0x145),'command':a56_0x2db39b(0x151),'description':'Show\x20one\x20runtime\x20role\x20by\x20ID','risk':a56_0x2db39b(0x146),'flags':[ROLE_ID_FLAG],async 'execute'(_0x2db3a8){const _0x39b817=a56_0x2db39b,_0xc1eeed=await getRuntimeRoleById(_0x2db3a8[_0x39b817(0x143)],_0x2db3a8[_0x39b817(0x144)]('id'));return{'ok':!![],'data':{'scope':'runtime','role':projectRuntimeRole(_0xc1eeed)}};}};
1
+ function a56_0x4ff7(_0x46da9d,_0x158411){_0x46da9d=_0x46da9d-0x128;const _0x55d545=a56_0x55d5();let _0x4ff7dc=_0x55d545[_0x46da9d];return _0x4ff7dc;}const a56_0x652cf=a56_0x4ff7;(function(_0x510e1c,_0xe5bf5e){const _0x37b286=a56_0x4ff7,_0x334a44=_0x510e1c();while(!![]){try{const _0xf42143=-parseInt(_0x37b286(0x136))/0x1+-parseInt(_0x37b286(0x133))/0x2*(-parseInt(_0x37b286(0x132))/0x3)+-parseInt(_0x37b286(0x131))/0x4+parseInt(_0x37b286(0x12f))/0x5+parseInt(_0x37b286(0x130))/0x6+parseInt(_0x37b286(0x12c))/0x7*(parseInt(_0x37b286(0x129))/0x8)+parseInt(_0x37b286(0x12b))/0x9*(-parseInt(_0x37b286(0x135))/0xa);if(_0xf42143===_0xe5bf5e)break;else _0x334a44['push'](_0x334a44['shift']());}catch(_0x342f5f){_0x334a44['push'](_0x334a44['shift']());}}}(a56_0x55d5,0x2c52d));import{getRuntimeRoleById,projectRuntimeRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';export const roleDetail={'service':a56_0x652cf(0x128),'command':a56_0x652cf(0x12a),'description':a56_0x652cf(0x12d),'risk':'read','flags':[ROLE_ID_FLAG],async 'execute'(_0xaeb919){const _0x11bc99=a56_0x652cf,_0x2395df=await getRuntimeRoleById(_0xaeb919['appCode'],_0xaeb919[_0x11bc99(0x12e)]('id'));return{'ok':!![],'data':{'scope':_0x11bc99(0x134),'role':projectRuntimeRole(_0x2395df)}};}};function a56_0x55d5(){const _0x4c83a2=['386894kkYrtf','runtime','9530nbewXk','151869qbLUme','role','1080SRZSQA','detail','4941zeaVmR','9975HMRdJB','Show\x20one\x20runtime\x20role\x20by\x20ID','num','1637095BqNSgk','942906FUZXRS','55108nGpshd','3Xiwkop'];a56_0x55d5=function(){return _0x4c83a2;};return a56_0x55d5();}
@@ -1 +1 @@
1
- (function(_0x2703bc,_0x8a7bc2){const _0x340427=a57_0x9f47,_0x3f0985=_0x2703bc();while(!![]){try{const _0x47f046=parseInt(_0x340427(0x16f))/0x1+-parseInt(_0x340427(0x179))/0x2*(parseInt(_0x340427(0x176))/0x3)+-parseInt(_0x340427(0x173))/0x4*(-parseInt(_0x340427(0x171))/0x5)+-parseInt(_0x340427(0x172))/0x6*(-parseInt(_0x340427(0x174))/0x7)+parseInt(_0x340427(0x178))/0x8*(-parseInt(_0x340427(0x170))/0x9)+-parseInt(_0x340427(0x175))/0xa+parseInt(_0x340427(0x177))/0xb;if(_0x47f046===_0x8a7bc2)break;else _0x3f0985['push'](_0x3f0985['shift']());}catch(_0x1dab5d){_0x3f0985['push'](_0x3f0985['shift']());}}}(a57_0x46c7,0x7ecfb));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';import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';function a57_0x46c7(){const _0x179109=['559778pLPieB','5220981GEZbyH','24275zeiAAL','1899498sfZlib','500qWUCYL','14MPTuSS','5028020NAgREF','238461ExAQKl','9194262prhwoq','8hyyPCW','26ljIQcA'];a57_0x46c7=function(){return _0x179109;};return a57_0x46c7();}function a57_0x9f47(_0x900b99,_0x5ca2a5){_0x900b99=_0x900b99-0x16f;const _0x46c7e9=a57_0x46c7();let _0x9f4784=_0x46c7e9[_0x900b99];return _0x9f4784;}export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserAdd,roleUserRemove];
1
+ (function(_0xec43b7,_0x44c687){const _0x1306bc=a57_0x35d0,_0xbf6336=_0xec43b7();while(!![]){try{const _0x2ad5f1=parseInt(_0x1306bc(0x164))/0x1+parseInt(_0x1306bc(0x168))/0x2*(-parseInt(_0x1306bc(0x169))/0x3)+-parseInt(_0x1306bc(0x16b))/0x4+parseInt(_0x1306bc(0x166))/0x5*(parseInt(_0x1306bc(0x167))/0x6)+-parseInt(_0x1306bc(0x16d))/0x7*(parseInt(_0x1306bc(0x165))/0x8)+-parseInt(_0x1306bc(0x163))/0x9+parseInt(_0x1306bc(0x16a))/0xa*(parseInt(_0x1306bc(0x16c))/0xb);if(_0x2ad5f1===_0x44c687)break;else _0xbf6336['push'](_0xbf6336['shift']());}catch(_0x5974a1){_0xbf6336['push'](_0xbf6336['shift']());}}}(a57_0x5582,0x1b4cd));import{roleList}from'../../commands/role/list.js';function a57_0x35d0(_0x4b41bc,_0xae5d27){_0x4b41bc=_0x4b41bc-0x163;const _0x5582d4=a57_0x5582();let _0x35d0a0=_0x5582d4[_0x4b41bc];return _0x35d0a0;}import{roleDetail}from'../../commands/role/detail.js';function a57_0x5582(){const _0x303596=['625660NfInkZ','1441zZZPpF','409178GkIPxS','491040xzMmAg','114393LZbhEb','8xXFJll','65JLKOlJ','96030NcQzxl','2AtsKrh','303477FANhLF','12210YsOlke'];a57_0x5582=function(){return _0x303596;};return a57_0x5582();}import{roleCreate}from'../../commands/role/create.js';import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';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_0x4790bf=a58_0x1003;function a58_0x3a54(){const _0x28aefd=['str','519QCXvIE','33628463FqbckD','page','54888ZCsDSq','2784177CqRDXV','6441526TNkNHx','Invalid\x20runtime\x20role\x20type:\x20','8OBKDMC','length','Fuzzy\x20role-name\x20filter','runtime','834508csyPLA','items','name','12434XNxasa','List\x20runtime\x20roles\x20for\x20the\x20current\x20app','340hMKdGC','list','pagesize','filter','trim','validation','includes','number','num','map','Runtime\x20role\x20type','62644zgKLab','type','--pagesize\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','appCode','50hFJLnq','isSafeInteger','--page\x20must\x20be\x20a\x20positive\x20integer.','toUpperCase'];a58_0x3a54=function(){return _0x28aefd;};return a58_0x3a54();}(function(_0x4a46f3,_0x511ca3){const _0x2759d4=a58_0x1003,_0x462096=_0x4a46f3();while(!![]){try{const _0x523f41=-parseInt(_0x2759d4(0x12a))/0x1+-parseInt(_0x2759d4(0x11d))/0x2*(-parseInt(_0x2759d4(0x133))/0x3)+-parseInt(_0x2759d4(0x11a))/0x4+parseInt(_0x2759d4(0x11f))/0x5*(parseInt(_0x2759d4(0x136))/0x6)+-parseInt(_0x2759d4(0x138))/0x7*(-parseInt(_0x2759d4(0x116))/0x8)+-parseInt(_0x2759d4(0x137))/0x9*(-parseInt(_0x2759d4(0x12e))/0xa)+-parseInt(_0x2759d4(0x134))/0xb;if(_0x523f41===_0x511ca3)break;else _0x462096['push'](_0x462096['shift']());}catch(_0xa00d01){_0x462096['push'](_0x462096['shift']());}}}(a58_0x3a54,0xcc258));function a58_0x1003(_0x50d2ab,_0x4fd170){_0x50d2ab=_0x50d2ab-0x116;const _0x3a549d=a58_0x3a54();let _0x1003a2=_0x3a549d[_0x50d2ab];return _0x1003a2;}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_0x4790bf(0x120),'description':a58_0x4790bf(0x11e),'risk':'read','flags':[{'name':a58_0x4790bf(0x12b),'type':'string','enum':RUNTIME_ROLE_TYPES,'description':a58_0x4790bf(0x129)},{'name':a58_0x4790bf(0x11c),'type':'string','description':a58_0x4790bf(0x118)},{'name':'page','type':a58_0x4790bf(0x126),'default':0x1,'description':'Page\x20number'},{'name':a58_0x4790bf(0x121),'type':'number','default':0x64,'description':'Page\x20size\x20from\x201\x20to\x20100'}],async 'validate'(_0x42a46d){const _0x3f6038=a58_0x4790bf,_0xa642b7=_0x42a46d[_0x3f6038(0x132)](_0x3f6038(0x12b))[_0x3f6038(0x131)]();if(_0xa642b7&&!RUNTIME_ROLE_TYPES[_0x3f6038(0x125)](_0xa642b7))throw CliErrors[_0x3f6038(0x124)](_0x3f6038(0x139)+_0xa642b7+'.');const _0x52d099=_0x42a46d[_0x3f6038(0x127)](_0x3f6038(0x135),0x1),_0x420659=_0x42a46d[_0x3f6038(0x127)]('pagesize',0x64);if(!Number[_0x3f6038(0x12f)](_0x52d099)||_0x52d099<0x1)throw CliErrors['validation'](_0x3f6038(0x130));if(!Number[_0x3f6038(0x12f)](_0x420659)||_0x420659<0x1||_0x420659>0x64)throw CliErrors['validation'](_0x3f6038(0x12c));},async 'execute'(_0x191a85){const _0x398084=a58_0x4790bf,_0xa125e0=_0x191a85[_0x398084(0x132)]('type')[_0x398084(0x131)](),_0x2aabd1=_0x191a85[_0x398084(0x132)](_0x398084(0x11c))[_0x398084(0x123)](),_0x451acf=_0x191a85[_0x398084(0x127)](_0x398084(0x135),0x1),_0x446b02=_0x191a85['num'](_0x398084(0x121),0x64);if(_0xa125e0){const _0x48b51a=(await listAllRuntimeRoles(_0x191a85[_0x398084(0x12d)],{..._0x2aabd1?{'roleName':_0x2aabd1}:{}}))[_0x398084(0x122)](_0x5feba2=>_0x5feba2['roleType']===_0xa125e0),_0x20ffcf=(_0x451acf-0x1)*_0x446b02;return{'ok':!![],'data':{'scope':_0x398084(0x119),'roles':_0x48b51a['slice'](_0x20ffcf,_0x20ffcf+_0x446b02)['map'](projectRuntimeRole),'paging':{'currentPage':_0x451acf,'pageSize':_0x446b02,'totalCount':_0x48b51a[_0x398084(0x117)]}}};}const _0x49571c=await listRuntimeAppRoles(_0x191a85['appCode'],{..._0x2aabd1?{'roleName':_0x2aabd1}:{},'currentPage':_0x451acf,'pageSize':_0x446b02});return{'ok':!![],'data':{'scope':_0x398084(0x119),'roles':_0x49571c[_0x398084(0x11b)][_0x398084(0x128)](projectRuntimeRole),'paging':_0x49571c['paging']}};}};
1
+ const a58_0x2ec275=a58_0x1165;function a58_0x1165(_0x26255b,_0x1ecde7){_0x26255b=_0x26255b-0x10b;const _0x4b25b4=a58_0x4b25();let _0x116527=_0x4b25b4[_0x26255b];return _0x116527;}(function(_0x14ad06,_0x270ae6){const _0x4ac0ab=a58_0x1165,_0x2d66a4=_0x14ad06();while(!![]){try{const _0x34775c=parseInt(_0x4ac0ab(0x11a))/0x1+-parseInt(_0x4ac0ab(0x120))/0x2+parseInt(_0x4ac0ab(0x11f))/0x3+parseInt(_0x4ac0ab(0x122))/0x4*(parseInt(_0x4ac0ab(0x118))/0x5)+parseInt(_0x4ac0ab(0x10d))/0x6*(parseInt(_0x4ac0ab(0x10b))/0x7)+-parseInt(_0x4ac0ab(0x12d))/0x8+parseInt(_0x4ac0ab(0x12f))/0x9*(parseInt(_0x4ac0ab(0x115))/0xa);if(_0x34775c===_0x270ae6)break;else _0x2d66a4['push'](_0x2d66a4['shift']());}catch(_0x2e2b14){_0x2d66a4['push'](_0x2d66a4['shift']());}}}(a58_0x4b25,0xcfacd));import{listRuntimeAppRoles}from'../../core/api-client.js';function a58_0x4b25(){const _0x458ac0=['page','List\x20runtime\x20roles\x20for\x20the\x20current\x20app','slice','13413480jTvfTE','items','9ryTHWZ','133xNKcLL','--page\x20must\x20be\x20a\x20positive\x20integer.','78738dfhEQd','paging','string','roleType','map','filter','appCode','name','792430tlIWtE','str','toUpperCase','5KLzJeE','list','7721jSgToo','num','Page\x20number','number','Page\x20size\x20from\x201\x20to\x20100','2439789jKkoTj','594538qQqToG','validation','6700108SDhYQr','--pagesize\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','role','length','isSafeInteger','Invalid\x20runtime\x20role\x20type:\x20','pagesize','type'];a58_0x4b25=function(){return _0x458ac0;};return a58_0x4b25();}import{CliErrors}from'../../errors.js';import{listAllRuntimeRoles,projectRuntimeRole,RUNTIME_ROLE_TYPES}from'../../commands/role/shared.js';export const roleList={'service':a58_0x2ec275(0x124),'command':a58_0x2ec275(0x119),'description':a58_0x2ec275(0x12b),'risk':'read','flags':[{'name':a58_0x2ec275(0x129),'type':a58_0x2ec275(0x10f),'enum':RUNTIME_ROLE_TYPES,'description':'Runtime\x20role\x20type'},{'name':a58_0x2ec275(0x114),'type':'string','description':'Fuzzy\x20role-name\x20filter'},{'name':a58_0x2ec275(0x12a),'type':a58_0x2ec275(0x11d),'default':0x1,'description':a58_0x2ec275(0x11c)},{'name':'pagesize','type':a58_0x2ec275(0x11d),'default':0x64,'description':a58_0x2ec275(0x11e)}],async 'validate'(_0x3e8206){const _0x2ff557=a58_0x2ec275,_0x35a860=_0x3e8206[_0x2ff557(0x116)](_0x2ff557(0x129))[_0x2ff557(0x117)]();if(_0x35a860&&!RUNTIME_ROLE_TYPES['includes'](_0x35a860))throw CliErrors[_0x2ff557(0x121)](_0x2ff557(0x127)+_0x35a860+'.');const _0x36b59b=_0x3e8206['num'](_0x2ff557(0x12a),0x1),_0x109884=_0x3e8206[_0x2ff557(0x11b)](_0x2ff557(0x128),0x64);if(!Number[_0x2ff557(0x126)](_0x36b59b)||_0x36b59b<0x1)throw CliErrors[_0x2ff557(0x121)](_0x2ff557(0x10c));if(!Number[_0x2ff557(0x126)](_0x109884)||_0x109884<0x1||_0x109884>0x64)throw CliErrors['validation'](_0x2ff557(0x123));},async 'execute'(_0x5c6629){const _0x4747fe=a58_0x2ec275,_0x435667=_0x5c6629['str'](_0x4747fe(0x129))[_0x4747fe(0x117)](),_0x54373e=_0x5c6629[_0x4747fe(0x116)](_0x4747fe(0x114))['trim'](),_0x46cfa1=_0x5c6629[_0x4747fe(0x11b)](_0x4747fe(0x12a),0x1),_0x34c9fd=_0x5c6629[_0x4747fe(0x11b)]('pagesize',0x64);if(_0x435667){const _0x32bfbb=(await listAllRuntimeRoles(_0x5c6629[_0x4747fe(0x113)],{..._0x54373e?{'roleName':_0x54373e}:{}}))[_0x4747fe(0x112)](_0x5170c8=>_0x5170c8[_0x4747fe(0x110)]===_0x435667),_0x481aab=(_0x46cfa1-0x1)*_0x34c9fd;return{'ok':!![],'data':{'scope':'runtime','roles':_0x32bfbb[_0x4747fe(0x12c)](_0x481aab,_0x481aab+_0x34c9fd)[_0x4747fe(0x111)](projectRuntimeRole),'paging':{'currentPage':_0x46cfa1,'pageSize':_0x34c9fd,'totalCount':_0x32bfbb[_0x4747fe(0x125)]}}};}const _0x507590=await listRuntimeAppRoles(_0x5c6629['appCode'],{..._0x54373e?{'roleName':_0x54373e}:{},'currentPage':_0x46cfa1,'pageSize':_0x34c9fd});return{'ok':!![],'data':{'scope':'runtime','roles':_0x507590[_0x4747fe(0x12e)][_0x4747fe(0x111)](projectRuntimeRole),'paging':_0x507590[_0x4747fe(0x10e)]}};}};
@@ -1 +1 @@
1
- function a59_0x581a(){const _0x9264f5=['2xBXHDU','421743YsBFVM','OWNER\x20runtime\x20role\x20membership\x20cannot\x20be\x20changed\x20with\x20this\x20command.','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','Transfer\x20or\x20manage\x20application\x20ownership\x20through\x20the\x20dedicated\x20application\x20workflow.','OWNER','Runtime\x20role\x20member\x20has\x20an\x20invalid\x20userId.','role-code','Globally\x20unique\x20roleCode\x20(maximum\x2064\x20characters)','paging','permitCount','Runtime\x20userId\x20(string)','validation','totalCount','ADMIN','28EvMrJH','trim','includes','runtime','test','399291KwxFLs','Invalid\x20runtime\x20userId.','userId','number','4120920cAUrvL','Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','Use\x20a\x20userId\x20returned\x20by\x20the\x20current\x20application\x27s\x20personnel\x20list.','Runtime\x20role\x20name\x20\x22','Missing\x20runtime\x20role\x20reference.','495444mXQzhm','find','Runtime\x20role\x20member\x20count\x20changed:\x20expected\x20','\x20was\x20not\x20found\x20in\x20app\x20','expect-user-count','roleCode','Run\x20`lovrabet\x20role\x20list`\x20or\x20pass\x20--role\x20<id>.','Cannot\x20','join','654572lHmPyI','--expect-user-count\x20must\x20be\x20a\x20non-negative\x20integer.','filter','userCount','string','USER','user-add','Reject\x20when\x20the\x20target\x20role\x20member\x20count\x20has\x20changed','Read\x20the\x20current\x20members\x20and\x20retry\x20with\x20the\x20new\x20expected\x20count.','map','length','Runtime\x20user\x20','roleType','Pass\x20--user\x20<userId>;\x20name\x20and\x20account\x20lookup\x20are\x20not\x20available\x20in\x20runtime\x20scope.','Runtime\x20role\x20id\x20','role','items','1718451UQpToR','userName','--role-code\x20must\x20not\x20be\x20blank.','86603jAYHuJ','Pass\x20--role\x20<id|name>.','5cFfWgE','appCode','430EYfTdH','num','\x20is\x20missing\x20from\x20the\x20grouped\x20member\x20snapshot.','remark','\x20is\x20already\x20in\x20runtime\x20role\x20','Runtime\x20role\x20member\x20snapshot\x20has\x20an\x20invalid\x20role\x20ID;\x20reload\x20before\x20writing.','\x22\x20is\x20ambiguous.','str','Runtime\x20role\x20ID\x20returned\x20by\x20role\x20list','flag','userList','push','8RBRUaf','isSafeInteger','user','\x20is\x20not\x20in\x20runtime\x20role\x20','\x22\x20was\x20not\x20found\x20in\x20app\x20','applyUserList','Role\x20ID\x20must\x20be\x20a\x20positive\x20integer.','roleName','Reload\x20the\x20role\x20list\x20and\x20retry\x20after\x20the\x20server\x20state\x20is\x20consistent.','Run\x20`lovrabet\x20role\x20list`\x20and\x20use\x20a\x20role\x20from\x20the\x20current\x20app.','Runtime\x20role\x20'];a59_0x581a=function(){return _0x9264f5;};return a59_0x581a();}const a59_0x4078d5=a59_0x5bf9;(function(_0x68215c,_0x92cb61){const _0x14e010=a59_0x5bf9,_0x4e625f=_0x68215c();while(!![]){try{const _0x39be52=parseInt(_0x14e010(0x1d5))/0x1+parseInt(_0x14e010(0x1d4))/0x2*(-parseInt(_0x14e010(0x1e8))/0x3)+parseInt(_0x14e010(0x1fa))/0x4*(-parseInt(_0x14e010(0x210))/0x5)+-parseInt(_0x14e010(0x1f1))/0x6*(-parseInt(_0x14e010(0x1e3))/0x7)+parseInt(_0x14e010(0x1c9))/0x8*(-parseInt(_0x14e010(0x20b))/0x9)+parseInt(_0x14e010(0x212))/0xa*(parseInt(_0x14e010(0x20e))/0xb)+-parseInt(_0x14e010(0x1ec))/0xc;if(_0x39be52===_0x92cb61)break;else _0x4e625f['push'](_0x4e625f['shift']());}catch(_0x49b64c){_0x4e625f['push'](_0x4e625f['shift']());}}}(a59_0x581a,0x3f5a1));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_0x4078d5(0x1e2),a59_0x4078d5(0x1ff),a59_0x4078d5(0x1d9),'CUSTOM'];const BUILTIN_ROLE_TYPES=[a59_0x4078d5(0x1e2),a59_0x4078d5(0x1ff),a59_0x4078d5(0x1d9)];function a59_0x5bf9(_0x45252a,_0x232630){_0x45252a=_0x45252a-0x1c9;const _0x581a1a=a59_0x581a();let _0x5bf9b5=_0x581a1a[_0x45252a];return _0x5bf9b5;}export const ROLE_ID_FLAG={'name':'id','type':a59_0x4078d5(0x1eb),'required':!![],'description':a59_0x4078d5(0x21a)};export const ROLE_REF_FLAG={'name':'role','type':a59_0x4078d5(0x1fe),'required':!![],'description':a59_0x4078d5(0x1d7)};export const ROLE_CODE_FLAG={'name':'role-code','type':'string','description':a59_0x4078d5(0x1dc)};export const USER_ID_FLAG={'name':'user','type':'string','required':!![],'description':a59_0x4078d5(0x1df)};export const EXPECT_USER_COUNT_FLAG={'name':a59_0x4078d5(0x1f5),'type':a59_0x4078d5(0x1eb),'description':a59_0x4078d5(0x201)};export function isBuiltinRuntimeRole(_0x46a8cf){return BUILTIN_ROLE_TYPES['includes'](_0x46a8cf);}export function assertCustomRuntimeRole(_0xd89983,_0x5e5e74){const _0x84bfc5=a59_0x4078d5;if(_0xd89983[_0x84bfc5(0x206)]!=='CUSTOM')throw CliErrors['validation'](_0x84bfc5(0x1f8)+_0x5e5e74+'\x20built-in\x20runtime\x20role\x20'+_0xd89983[_0x84bfc5(0x1d0)]+'\x20('+_0xd89983[_0x84bfc5(0x206)]+').','Only\x20CUSTOM\x20runtime\x20roles\x20can\x20be\x20modified\x20or\x20deleted.');}export function projectRuntimeRole(_0x80383e){const _0x46eb9a=a59_0x4078d5;return{'id':_0x80383e['id'],'roleCode':_0x80383e[_0x46eb9a(0x1f6)],'roleName':_0x80383e['roleName'],'roleType':_0x80383e['roleType'],'remark':_0x80383e[_0x46eb9a(0x215)],'userCount':_0x80383e[_0x46eb9a(0x1fd)]??0x0,'permitCount':_0x80383e[_0x46eb9a(0x1de)]??0x0,'builtin':isBuiltinRuntimeRole(_0x80383e[_0x46eb9a(0x206)])};}export function readOptionalRuntimeRoleCode(_0x416ef8){const _0x2d9a26=a59_0x4078d5,_0x4364b9=_0x416ef8[_0x2d9a26(0x21b)](_0x2d9a26(0x1db));if(_0x4364b9===undefined||_0x4364b9===null)return undefined;const _0x42963b=String(_0x4364b9)[_0x2d9a26(0x1e4)]();if(!_0x42963b)throw CliErrors[_0x2d9a26(0x1e0)](_0x2d9a26(0x20d));if(_0x42963b['length']>0x40)throw CliErrors[_0x2d9a26(0x1e0)]('--role-code\x20cannot\x20exceed\x2064\x20characters.');return _0x42963b;}export async function getRuntimeRoleById(_0x157076,_0x248426){const _0x4631d6=a59_0x4078d5;if(!Number[_0x4631d6(0x1ca)](_0x248426)||_0x248426<=0x0)throw CliErrors[_0x4631d6(0x1e0)](_0x4631d6(0x1cf));const _0x2fcd9c=(await listAllRuntimeRoles(_0x157076))['filter'](_0x3f0dc1=>_0x3f0dc1['id']===_0x248426&&(!_0x3f0dc1[_0x4631d6(0x211)]||_0x3f0dc1[_0x4631d6(0x211)]===_0x157076));if(_0x2fcd9c['length']!==0x1)throw CliErrors[_0x4631d6(0x1e0)](_0x4631d6(0x208)+_0x248426+'\x20was\x20not\x20found\x20in\x20app\x20'+_0x157076+'.',_0x4631d6(0x1d2));const _0x6d308c=_0x2fcd9c[0x0],_0x27099f=_0x6d308c['id'];if(typeof _0x27099f!==_0x4631d6(0x1eb)||!Number[_0x4631d6(0x1ca)](_0x27099f)||_0x27099f<=0x0)throw CliErrors[_0x4631d6(0x1e0)](_0x4631d6(0x1ed));return{..._0x6d308c,'id':_0x27099f};}export async function listAllRuntimeRoles(_0x48e4c0,_0x580885={}){const _0x39994e=a59_0x4078d5,_0x9b0b45=0x64,_0xbe07f4=[];for(let _0x4e31a3=0x1;;_0x4e31a3+=0x1){const _0x3bf5e0=await listRuntimeAppRoles(_0x48e4c0,{..._0x580885[_0x39994e(0x1d0)]?{'roleName':_0x580885['roleName']}:{},'currentPage':_0x4e31a3,'pageSize':_0x9b0b45});_0xbe07f4[_0x39994e(0x21d)](..._0x3bf5e0[_0x39994e(0x20a)]);if(_0x3bf5e0[_0x39994e(0x20a)][_0x39994e(0x204)]<_0x9b0b45||_0x3bf5e0['paging']&&_0xbe07f4[_0x39994e(0x204)]>=_0x3bf5e0[_0x39994e(0x1dd)][_0x39994e(0x1e1)])return _0xbe07f4;}}export async function resolveRuntimeRoleRef(_0x37d27e,_0x46f870){const _0x33c21=a59_0x4078d5,_0x360159=_0x46f870['trim']();if(!_0x360159)throw CliErrors[_0x33c21(0x1e0)](_0x33c21(0x1f0),_0x33c21(0x20f));if(/^\d+$/[_0x33c21(0x1e7)](_0x360159))return getRuntimeRoleById(_0x37d27e,Number(_0x360159));const _0x5025df=(await listAllRuntimeRoles(_0x37d27e))[_0x33c21(0x1fc)](_0x3f5c3b=>_0x3f5c3b[_0x33c21(0x1d0)]===_0x360159);if(_0x5025df[_0x33c21(0x204)]===0x0)throw CliErrors[_0x33c21(0x1e0)](_0x33c21(0x1ef)+_0x360159+_0x33c21(0x1cd)+_0x37d27e+'.',_0x33c21(0x1f7));if(_0x5025df['length']>0x1)throw CliErrors[_0x33c21(0x1e0)](_0x33c21(0x1ef)+_0x360159+_0x33c21(0x218),'Pass\x20one\x20role\x20ID:\x20'+_0x5025df[_0x33c21(0x203)](_0x1a8277=>_0x1a8277['id'])[_0x33c21(0x1f9)](',\x20')+'.');const _0x23e50e=_0x5025df[0x0],_0x2853ab=_0x23e50e['id'];if(typeof _0x2853ab!=='number'||!Number[_0x33c21(0x1ca)](_0x2853ab)||_0x2853ab<=0x0)throw CliErrors[_0x33c21(0x1e0)](_0x33c21(0x1ed));return{..._0x23e50e,'id':_0x2853ab};}function parseRuntimeUserId(_0x2891dc){const _0xcba80b=a59_0x4078d5,_0x2ff87c=_0x2891dc[_0xcba80b(0x1e4)](),_0x4ffcb6=normalizeRuntimeUserId(_0x2ff87c);if(_0x4ffcb6===undefined)throw CliErrors[_0xcba80b(0x1e0)](_0xcba80b(0x1e9),_0xcba80b(0x207));return _0x4ffcb6;}export async function prepareRuntimeMemberMutation(_0x1e5f42,_0x5c78c5){const _0xb7c7f=a59_0x4078d5,_0x28808e=await resolveRuntimeRoleRef(_0x1e5f42['appCode'],_0x1e5f42['str'](_0xb7c7f(0x209)));if(_0x28808e[_0xb7c7f(0x206)]===_0xb7c7f(0x1d9))throw CliErrors[_0xb7c7f(0x1e0)](_0xb7c7f(0x1d6),_0xb7c7f(0x1d8));const _0xfbc183=parseRuntimeUserId(_0x1e5f42[_0xb7c7f(0x219)](_0xb7c7f(0x1cb))),_0x447f6b=(await listRuntimeRoleUsers(_0x1e5f42[_0xb7c7f(0x211)]))[_0xb7c7f(0x203)](_0x5a1f54=>{const _0x4e1f04=_0xb7c7f;if(typeof _0x5a1f54['id']!=='number'||!Number[_0x4e1f04(0x1ca)](_0x5a1f54['id'])||_0x5a1f54['id']<=0x0)throw CliErrors['validation'](_0x4e1f04(0x217));return{..._0x5a1f54,'userList':[..._0x5a1f54[_0x4e1f04(0x21c)]??[]],'applyUserList':[..._0x5a1f54[_0x4e1f04(0x1ce)]??[]]};}),_0x38f4f5=_0x447f6b[_0xb7c7f(0x1f2)](_0x9aed76=>_0x9aed76['id']===_0x28808e['id']);if(!_0x38f4f5)throw CliErrors[_0xb7c7f(0x1e0)](_0xb7c7f(0x1d3)+_0x28808e['id']+_0xb7c7f(0x214),_0xb7c7f(0x1d1));const _0x2c9833=_0x3fd817=>{const _0x5b5950=_0xb7c7f,_0x522ab5=normalizeRuntimeUserId(_0x3fd817);if(_0x522ab5===undefined)throw CliErrors[_0x5b5950(0x1e0)](_0x5b5950(0x1da));return _0x522ab5;},_0x55f5a6=_0x38f4f5[_0xb7c7f(0x21c)]['map'](_0x1a2fc8=>_0x2c9833(_0x1a2fc8[_0xb7c7f(0x1ea)])),_0x46c087=_0x1e5f42[_0xb7c7f(0x21b)](_0xb7c7f(0x1f5));if(_0x46c087!==undefined&&_0x46c087!==null&&_0x46c087!==''){const _0xde3520=_0x1e5f42[_0xb7c7f(0x213)](_0xb7c7f(0x1f5));if(!Number['isSafeInteger'](_0xde3520)||_0xde3520<0x0)throw CliErrors['validation'](_0xb7c7f(0x1fb));if(_0x55f5a6[_0xb7c7f(0x204)]!==_0xde3520)throw CliErrors[_0xb7c7f(0x1e0)](_0xb7c7f(0x1f3)+_0xde3520+',\x20found\x20'+_0x55f5a6['length']+'.',_0xb7c7f(0x202));}const _0x5c54db=_0x55f5a6[_0xb7c7f(0x1e5)](_0xfbc183),_0x5edb50=[];let _0x7ff4da=!![];if(_0x5c78c5===_0xb7c7f(0x200)){const _0x58ecc1=await listRuntimeAppUsers(_0x1e5f42['appCode']),_0x4e5b6b=_0x58ecc1['filter'](_0x40b65b=>normalizeRuntimeUserId(_0x40b65b['code'])===_0xfbc183);if(_0x4e5b6b[_0xb7c7f(0x204)]!==0x1||!_0x4e5b6b[0x0][_0xb7c7f(0x20c)]?.[_0xb7c7f(0x1e4)]())throw CliErrors[_0xb7c7f(0x1e0)](_0xb7c7f(0x205)+_0xfbc183+_0xb7c7f(0x1f4)+_0x1e5f42[_0xb7c7f(0x211)]+'.',_0xb7c7f(0x1ee));_0x5c54db?(_0x7ff4da=![],_0x5edb50[_0xb7c7f(0x21d)]('User\x20'+_0xfbc183+_0xb7c7f(0x216)+_0x28808e['id']+'.')):_0x38f4f5[_0xb7c7f(0x21c)][_0xb7c7f(0x21d)]({'userId':_0xfbc183,'username':_0x4e5b6b[0x0][_0xb7c7f(0x20c)]});}else!_0x5c54db?(_0x7ff4da=![],_0x5edb50['push']('User\x20'+_0xfbc183+_0xb7c7f(0x1cc)+_0x28808e['id']+'.')):_0x38f4f5[_0xb7c7f(0x21c)]=_0x38f4f5['userList']['filter'](_0x908327=>_0x2c9833(_0x908327[_0xb7c7f(0x1ea)])!==_0xfbc183);return{'role':_0x28808e,'userId':_0xfbc183,'roleList':_0x447f6b,'before':{'userIds':_0x55f5a6},'after':{'userIds':_0x38f4f5[_0xb7c7f(0x21c)][_0xb7c7f(0x203)](_0x137ca5=>_0x2c9833(_0x137ca5[_0xb7c7f(0x1ea)]))},'shouldWrite':_0x7ff4da,'warnings':_0x5edb50};}export function runtimeRoleWriteResult(_0x3a1db1,_0x2fb1ec,_0x38e919,_0x510e9f,_0x42e95c,_0x173875=[]){const _0x5d0c12=a59_0x4078d5;return{'operation':_0x3a1db1,'scope':_0x5d0c12(0x1e6),'selector':_0x2fb1ec,'before':_0x38e919,'after':_0x510e9f,'dryRun':![],'backend':_0x42e95c,'warnings':_0x173875};}
1
+ const a59_0xd5639d=a59_0x160b;(function(_0x4cf0db,_0x24802e){const _0x1eb77b=a59_0x160b,_0x4c1231=_0x4cf0db();while(!![]){try{const _0x22a985=parseInt(_0x1eb77b(0x19b))/0x1+-parseInt(_0x1eb77b(0x185))/0x2*(-parseInt(_0x1eb77b(0x1af))/0x3)+parseInt(_0x1eb77b(0x1a4))/0x4+-parseInt(_0x1eb77b(0x1cb))/0x5+-parseInt(_0x1eb77b(0x181))/0x6+parseInt(_0x1eb77b(0x1a7))/0x7+-parseInt(_0x1eb77b(0x187))/0x8;if(_0x22a985===_0x24802e)break;else _0x4c1231['push'](_0x4c1231['shift']());}catch(_0x220283){_0x4c1231['push'](_0x4c1231['shift']());}}}(a59_0x10f4,0x6eb09));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_0xd5639d(0x191),'USER',a59_0xd5639d(0x1a6),a59_0xd5639d(0x1b7)];const BUILTIN_ROLE_TYPES=[a59_0xd5639d(0x191),'USER',a59_0xd5639d(0x1a6)];export const ROLE_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Runtime\x20role\x20ID\x20returned\x20by\x20role\x20list'};export const ROLE_REF_FLAG={'name':a59_0xd5639d(0x1a5),'type':a59_0xd5639d(0x18f),'required':!![],'description':a59_0xd5639d(0x1c2)};function a59_0x160b(_0x412781,_0x1050c7){_0x412781=_0x412781-0x17f;const _0x10f4d2=a59_0x10f4();let _0x160b5f=_0x10f4d2[_0x412781];return _0x160b5f;}export const ROLE_CODE_FLAG={'name':a59_0xd5639d(0x18b),'type':a59_0xd5639d(0x18f),'description':a59_0xd5639d(0x195)};export const USER_ID_FLAG={'name':a59_0xd5639d(0x19f),'type':a59_0xd5639d(0x18f),'required':!![],'description':'Runtime\x20userId\x20(string)'};function a59_0x10f4(){const _0x184188=['Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','\x20is\x20not\x20in\x20runtime\x20role\x20','num','Runtime\x20role\x20name\x20\x22','\x22\x20is\x20ambiguous.','Pass\x20--user\x20<userId>;\x20name\x20and\x20account\x20lookup\x20are\x20not\x20available\x20in\x20runtime\x20scope.','Runtime\x20role\x20member\x20snapshot\x20has\x20an\x20invalid\x20role\x20ID;\x20reload\x20before\x20writing.','Transfer\x20or\x20manage\x20application\x20ownership\x20through\x20the\x20dedicated\x20application\x20workflow.','\x20built-in\x20runtime\x20role\x20','3702625BtOCZY','appCode','join','3505380EjWkyS','applyUserList','Runtime\x20role\x20id\x20','\x22\x20was\x20not\x20found\x20in\x20app\x20','234574QEuApX','Runtime\x20role\x20member\x20has\x20an\x20invalid\x20userId.','969960AlZxxu','flag','Run\x20`lovrabet\x20role\x20list`\x20and\x20use\x20a\x20role\x20from\x20the\x20current\x20app.','\x20was\x20not\x20found\x20in\x20app\x20','role-code','OWNER\x20runtime\x20role\x20membership\x20cannot\x20be\x20changed\x20with\x20this\x20command.','User\x20','Invalid\x20runtime\x20userId.','string','filter','ADMIN','userCount','Reload\x20the\x20role\x20list\x20and\x20retry\x20after\x20the\x20server\x20state\x20is\x20consistent.','test','Globally\x20unique\x20roleCode\x20(maximum\x2064\x20characters)','remark','trim','\x20is\x20already\x20in\x20runtime\x20role\x20','push','paging','352924VMwRIR','number','map','user-add','user','isSafeInteger','Runtime\x20user\x20','userList','validation','1249620yEfasx','role','OWNER','6175365ZMeopJ','Pass\x20--role\x20<id|name>.','userName','items','runtime','Runtime\x20role\x20','length','str','9yEoTqW','roleName','roleType','\x20is\x20missing\x20from\x20the\x20grouped\x20member\x20snapshot.','Missing\x20runtime\x20role\x20reference.','code',',\x20found\x20','userId','CUSTOM','totalCount','Runtime\x20role\x20member\x20count\x20changed:\x20expected\x20','Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.','expect-user-count','Role\x20ID\x20must\x20be\x20a\x20positive\x20integer.','Cannot\x20','--expect-user-count\x20must\x20be\x20a\x20non-negative\x20integer.','permitCount','--role-code\x20cannot\x20exceed\x2064\x20characters.','includes'];a59_0x10f4=function(){return _0x184188;};return a59_0x10f4();}export const EXPECT_USER_COUNT_FLAG={'name':a59_0xd5639d(0x1bb),'type':'number','description':'Reject\x20when\x20the\x20target\x20role\x20member\x20count\x20has\x20changed'};export function isBuiltinRuntimeRole(_0x58101d){const _0xd696c0=a59_0xd5639d;return BUILTIN_ROLE_TYPES[_0xd696c0(0x1c1)](_0x58101d);}export function assertCustomRuntimeRole(_0x36ff8e,_0x51e42c){const _0x5a894f=a59_0xd5639d;if(_0x36ff8e[_0x5a894f(0x1b1)]!=='CUSTOM')throw CliErrors[_0x5a894f(0x1a3)](_0x5a894f(0x1bd)+_0x51e42c+_0x5a894f(0x1ca)+_0x36ff8e['roleName']+'\x20('+_0x36ff8e[_0x5a894f(0x1b1)]+').','Only\x20CUSTOM\x20runtime\x20roles\x20can\x20be\x20modified\x20or\x20deleted.');}export function projectRuntimeRole(_0x4f60ca){const _0x5a545f=a59_0xd5639d;return{'id':_0x4f60ca['id'],'roleCode':_0x4f60ca['roleCode'],'roleName':_0x4f60ca[_0x5a545f(0x1b0)],'roleType':_0x4f60ca[_0x5a545f(0x1b1)],'remark':_0x4f60ca[_0x5a545f(0x196)],'userCount':_0x4f60ca[_0x5a545f(0x192)]??0x0,'permitCount':_0x4f60ca[_0x5a545f(0x1bf)]??0x0,'builtin':isBuiltinRuntimeRole(_0x4f60ca[_0x5a545f(0x1b1)])};}export function readOptionalRuntimeRoleCode(_0x3765e2){const _0x2df5ef=a59_0xd5639d,_0x24e4c1=_0x3765e2['flag'](_0x2df5ef(0x18b));if(_0x24e4c1===undefined||_0x24e4c1===null)return undefined;const _0x158e2d=String(_0x24e4c1)[_0x2df5ef(0x197)]();if(!_0x158e2d)throw CliErrors[_0x2df5ef(0x1a3)]('--role-code\x20must\x20not\x20be\x20blank.');if(_0x158e2d[_0x2df5ef(0x1ad)]>0x40)throw CliErrors[_0x2df5ef(0x1a3)](_0x2df5ef(0x1c0));return _0x158e2d;}export async function getRuntimeRoleById(_0x5e8b42,_0x30034e){const _0x5b4e1d=a59_0xd5639d;if(!Number['isSafeInteger'](_0x30034e)||_0x30034e<=0x0)throw CliErrors[_0x5b4e1d(0x1a3)](_0x5b4e1d(0x1bc));const _0x5a4951=(await listAllRuntimeRoles(_0x5e8b42))['filter'](_0x1b81a9=>_0x1b81a9['id']===_0x30034e&&(!_0x1b81a9[_0x5b4e1d(0x17f)]||_0x1b81a9[_0x5b4e1d(0x17f)]===_0x5e8b42));if(_0x5a4951[_0x5b4e1d(0x1ad)]!==0x1)throw CliErrors['validation'](_0x5b4e1d(0x183)+_0x30034e+_0x5b4e1d(0x18a)+_0x5e8b42+'.',_0x5b4e1d(0x189));const _0x5995c6=_0x5a4951[0x0],_0x106982=_0x5995c6['id'];if(typeof _0x106982!=='number'||!Number[_0x5b4e1d(0x1a0)](_0x106982)||_0x106982<=0x0)throw CliErrors[_0x5b4e1d(0x1a3)]('Runtime\x20role\x20has\x20an\x20invalid\x20ID;\x20reload\x20roles\x20before\x20writing.');return{..._0x5995c6,'id':_0x106982};}export async function listAllRuntimeRoles(_0x5720b8,_0x5b87fc={}){const _0x2b213f=a59_0xd5639d,_0x48779f=0x64,_0x3bb018=[];for(let _0x1d6306=0x1;;_0x1d6306+=0x1){const _0x3b68ff=await listRuntimeAppRoles(_0x5720b8,{..._0x5b87fc[_0x2b213f(0x1b0)]?{'roleName':_0x5b87fc[_0x2b213f(0x1b0)]}:{},'currentPage':_0x1d6306,'pageSize':_0x48779f});_0x3bb018[_0x2b213f(0x199)](..._0x3b68ff[_0x2b213f(0x1aa)]);if(_0x3b68ff['items'][_0x2b213f(0x1ad)]<_0x48779f||_0x3b68ff[_0x2b213f(0x19a)]&&_0x3bb018[_0x2b213f(0x1ad)]>=_0x3b68ff[_0x2b213f(0x19a)][_0x2b213f(0x1b8)])return _0x3bb018;}}export async function resolveRuntimeRoleRef(_0x19f859,_0x4aaa8a){const _0x2a22dc=a59_0xd5639d,_0x42e023=_0x4aaa8a[_0x2a22dc(0x197)]();if(!_0x42e023)throw CliErrors['validation'](_0x2a22dc(0x1b3),_0x2a22dc(0x1a8));if(/^\d+$/[_0x2a22dc(0x194)](_0x42e023))return getRuntimeRoleById(_0x19f859,Number(_0x42e023));const _0x517ec5=(await listAllRuntimeRoles(_0x19f859))[_0x2a22dc(0x190)](_0x2072b5=>_0x2072b5['roleName']===_0x42e023);if(_0x517ec5[_0x2a22dc(0x1ad)]===0x0)throw CliErrors[_0x2a22dc(0x1a3)]('Runtime\x20role\x20name\x20\x22'+_0x42e023+_0x2a22dc(0x184)+_0x19f859+'.','Run\x20`lovrabet\x20role\x20list`\x20or\x20pass\x20--role\x20<id>.');if(_0x517ec5[_0x2a22dc(0x1ad)]>0x1)throw CliErrors['validation'](_0x2a22dc(0x1c5)+_0x42e023+_0x2a22dc(0x1c6),'Pass\x20one\x20role\x20ID:\x20'+_0x517ec5[_0x2a22dc(0x19d)](_0x141fbb=>_0x141fbb['id'])[_0x2a22dc(0x180)](',\x20')+'.');const _0x2fdfef=_0x517ec5[0x0],_0x5613c5=_0x2fdfef['id'];if(typeof _0x5613c5!==_0x2a22dc(0x19c)||!Number['isSafeInteger'](_0x5613c5)||_0x5613c5<=0x0)throw CliErrors[_0x2a22dc(0x1a3)](_0x2a22dc(0x1ba));return{..._0x2fdfef,'id':_0x5613c5};}function parseRuntimeUserId(_0x476d00){const _0x35566a=a59_0xd5639d,_0x497efc=_0x476d00[_0x35566a(0x197)](),_0x3b091a=normalizeRuntimeUserId(_0x497efc);if(_0x3b091a===undefined)throw CliErrors['validation'](_0x35566a(0x18e),_0x35566a(0x1c7));return _0x3b091a;}export async function prepareRuntimeMemberMutation(_0x40e80c,_0x30f15b){const _0x5b15d0=a59_0xd5639d,_0x345356=await resolveRuntimeRoleRef(_0x40e80c[_0x5b15d0(0x17f)],_0x40e80c[_0x5b15d0(0x1ae)](_0x5b15d0(0x1a5)));if(_0x345356[_0x5b15d0(0x1b1)]===_0x5b15d0(0x1a6))throw CliErrors[_0x5b15d0(0x1a3)](_0x5b15d0(0x18c),_0x5b15d0(0x1c9));const _0x4ebd0=parseRuntimeUserId(_0x40e80c[_0x5b15d0(0x1ae)](_0x5b15d0(0x19f))),_0x17a8e3=(await listRuntimeRoleUsers(_0x40e80c[_0x5b15d0(0x17f)]))['map'](_0x30bd91=>{const _0x34a328=_0x5b15d0;if(typeof _0x30bd91['id']!=='number'||!Number[_0x34a328(0x1a0)](_0x30bd91['id'])||_0x30bd91['id']<=0x0)throw CliErrors[_0x34a328(0x1a3)](_0x34a328(0x1c8));return{..._0x30bd91,'userList':[..._0x30bd91[_0x34a328(0x1a2)]??[]],'applyUserList':[..._0x30bd91[_0x34a328(0x182)]??[]]};}),_0x3afc7c=_0x17a8e3['find'](_0xf66086=>_0xf66086['id']===_0x345356['id']);if(!_0x3afc7c)throw CliErrors[_0x5b15d0(0x1a3)](_0x5b15d0(0x1ac)+_0x345356['id']+_0x5b15d0(0x1b2),_0x5b15d0(0x193));const _0x1e0c30=_0x4478bb=>{const _0x27321b=_0x5b15d0,_0x51f93a=normalizeRuntimeUserId(_0x4478bb);if(_0x51f93a===undefined)throw CliErrors[_0x27321b(0x1a3)](_0x27321b(0x186));return _0x51f93a;},_0x2bcd0e=_0x3afc7c[_0x5b15d0(0x1a2)][_0x5b15d0(0x19d)](_0x121dac=>_0x1e0c30(_0x121dac['userId'])),_0x2a99a3=_0x40e80c[_0x5b15d0(0x188)](_0x5b15d0(0x1bb));if(_0x2a99a3!==undefined&&_0x2a99a3!==null&&_0x2a99a3!==''){const _0x50bacc=_0x40e80c[_0x5b15d0(0x1c4)](_0x5b15d0(0x1bb));if(!Number['isSafeInteger'](_0x50bacc)||_0x50bacc<0x0)throw CliErrors['validation'](_0x5b15d0(0x1be));if(_0x2bcd0e[_0x5b15d0(0x1ad)]!==_0x50bacc)throw CliErrors[_0x5b15d0(0x1a3)](_0x5b15d0(0x1b9)+_0x50bacc+_0x5b15d0(0x1b5)+_0x2bcd0e[_0x5b15d0(0x1ad)]+'.','Read\x20the\x20current\x20members\x20and\x20retry\x20with\x20the\x20new\x20expected\x20count.');}const _0x5cd468=_0x2bcd0e['includes'](_0x4ebd0),_0x1239ac=[];let _0x36fed6=!![];if(_0x30f15b===_0x5b15d0(0x19e)){const _0x27e532=await listRuntimeAppUsers(_0x40e80c[_0x5b15d0(0x17f)]),_0x542891=_0x27e532[_0x5b15d0(0x190)](_0x56be3b=>normalizeRuntimeUserId(_0x56be3b[_0x5b15d0(0x1b4)])===_0x4ebd0);if(_0x542891[_0x5b15d0(0x1ad)]!==0x1||!_0x542891[0x0]['userName']?.[_0x5b15d0(0x197)]())throw CliErrors[_0x5b15d0(0x1a3)](_0x5b15d0(0x1a1)+_0x4ebd0+_0x5b15d0(0x18a)+_0x40e80c['appCode']+'.','Use\x20a\x20userId\x20returned\x20by\x20the\x20current\x20application\x27s\x20personnel\x20list.');_0x5cd468?(_0x36fed6=![],_0x1239ac[_0x5b15d0(0x199)](_0x5b15d0(0x18d)+_0x4ebd0+_0x5b15d0(0x198)+_0x345356['id']+'.')):_0x3afc7c['userList']['push']({'userId':_0x4ebd0,'username':_0x542891[0x0][_0x5b15d0(0x1a9)]});}else!_0x5cd468?(_0x36fed6=![],_0x1239ac[_0x5b15d0(0x199)]('User\x20'+_0x4ebd0+_0x5b15d0(0x1c3)+_0x345356['id']+'.')):_0x3afc7c[_0x5b15d0(0x1a2)]=_0x3afc7c[_0x5b15d0(0x1a2)][_0x5b15d0(0x190)](_0x388b79=>_0x1e0c30(_0x388b79[_0x5b15d0(0x1b6)])!==_0x4ebd0);return{'role':_0x345356,'userId':_0x4ebd0,'roleList':_0x17a8e3,'before':{'userIds':_0x2bcd0e},'after':{'userIds':_0x3afc7c[_0x5b15d0(0x1a2)]['map'](_0x5108d9=>_0x1e0c30(_0x5108d9['userId']))},'shouldWrite':_0x36fed6,'warnings':_0x1239ac};}export function runtimeRoleWriteResult(_0x162230,_0x27af3b,_0x39c189,_0xa4d9b9,_0x13c6ad,_0x25cbae=[]){const _0x3c52b2=a59_0xd5639d;return{'operation':_0x162230,'scope':_0x3c52b2(0x1ab),'selector':_0x27af3b,'before':_0x39c189,'after':_0xa4d9b9,'dryRun':![],'backend':_0x13c6ad,'warnings':_0x25cbae};}
@@ -1 +1 @@
1
- const a60_0x380493=a60_0x1b67;(function(_0x41a7ff,_0x545482){const _0x245c27=a60_0x1b67,_0x588027=_0x41a7ff();while(!![]){try{const _0x483b6a=parseInt(_0x245c27(0x1ed))/0x1+parseInt(_0x245c27(0x1db))/0x2+-parseInt(_0x245c27(0x1d9))/0x3*(-parseInt(_0x245c27(0x1df))/0x4)+parseInt(_0x245c27(0x1e1))/0x5*(-parseInt(_0x245c27(0x1eb))/0x6)+-parseInt(_0x245c27(0x1f1))/0x7*(parseInt(_0x245c27(0x1e9))/0x8)+parseInt(_0x245c27(0x1f7))/0x9+-parseInt(_0x245c27(0x1e8))/0xa*(-parseInt(_0x245c27(0x1f6))/0xb);if(_0x483b6a===_0x545482)break;else _0x588027['push'](_0x588027['shift']());}catch(_0x5a5597){_0x588027['push'](_0x588027['shift']());}}}(a60_0x31f5,0x5b979));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_0x1b67(_0x2fc2e4,_0xc8f58){_0x2fc2e4=_0x2fc2e4-0x1d8;const _0x31f5c0=a60_0x31f5();let _0x1b6764=_0x31f5c0[_0x2fc2e4];return _0x1b6764;}function updateFields(_0x48360b){const _0x43919d=a60_0x1b67,_0x401297=_0x48360b[_0x43919d(0x1e2)](_0x43919d(0x1f3))!==undefined,_0x5600ba=_0x48360b[_0x43919d(0x1e2)](_0x43919d(0x1dd))!==undefined,_0x186901=_0x48360b[_0x43919d(0x1e2)]('remark')!==undefined;if(!_0x401297&&!_0x5600ba&&!_0x186901)throw CliErrors['validation'](_0x43919d(0x1e6));const _0x4b0598=readOptionalRuntimeRoleCode(_0x48360b),_0x211e76=_0x48360b[_0x43919d(0x1ef)](_0x43919d(0x1dd))[_0x43919d(0x1ea)](),_0x276148=_0x48360b[_0x43919d(0x1ef)](_0x43919d(0x1da))[_0x43919d(0x1ea)]();if(_0x5600ba&&!_0x211e76)throw CliErrors[_0x43919d(0x1dc)](_0x43919d(0x1de));if(_0x186901&&!_0x276148)throw CliErrors[_0x43919d(0x1dc)](_0x43919d(0x1d8),_0x43919d(0x1e5));return{..._0x4b0598?{'roleCode':_0x4b0598}:{},..._0x5600ba?{'roleName':_0x211e76}:{},..._0x186901?{'remark':_0x276148}:{}};}async function prepare(_0x29594f){const _0x129191=a60_0x1b67,_0x240a80=await getRuntimeRoleById(_0x29594f[_0x129191(0x1f2)],_0x29594f['num']('id'));return assertCustomRuntimeRole(_0x240a80,_0x129191(0x1e3)),{'role':_0x240a80,'body':{'id':_0x240a80['id'],'appCode':_0x29594f['appCode'],...updateFields(_0x29594f)}};}export const roleUpdate={'service':'role','command':a60_0x380493(0x1e3),'description':a60_0x380493(0x1ee),'risk':a60_0x380493(0x1e7),'confirmationDescription':a60_0x380493(0x1ec),'flags':[ROLE_ID_FLAG,ROLE_CODE_FLAG,{'name':a60_0x380493(0x1dd),'type':a60_0x380493(0x1e4),'description':'New\x20role\x20name'},{'name':a60_0x380493(0x1da),'type':'string','description':'New\x20non-empty\x20role\x20remark'}],async 'validate'(_0x58e5e1){updateFields(_0x58e5e1);},async 'dryRun'(_0x51844e){const _0x354698=a60_0x380493,{body:_0x160de9}=await prepare(_0x51844e);return dryRun(_0x354698(0x1f0),_0x354698(0x1f4))[_0x354698(0x1e0)](_0x160de9)['description'](_0x354698(0x1f5))['build']();},async 'execute'(_0x558b18){const _0x403045=a60_0x380493,{role:_0x53cee7,body:_0x1ed4ac}=await prepare(_0x558b18),_0x5612f0=await updateRuntimeAppRole(_0x1ed4ac);return{'ok':!![],'data':runtimeRoleWriteResult(_0x403045(0x1e3),{'roleId':_0x53cee7['id']},projectRuntimeRole(_0x53cee7),projectRuntimeRole(_0x5612f0),{'method':_0x403045(0x1f0),'path':'/client/permit/role/update'})};}};function a60_0x31f5(){const _0x5d81da=['body','565SuKUAX','flag','update','string','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.','high-risk-write','10LWIBZz','24mGcsOH','trim','13278HYZgRf','Changes\x20the\x20custom\x20role\x20code,\x20name,\x20or\x20note\x20in\x20the\x20current\x20runtime\x20app.\x20The\x20role\x20updates\x20immediately.','428486esowON','Update\x20a\x20runtime\x20CUSTOM\x20role\x27s\x20code,\x20name,\x20or\x20remark','str','POST','660590FMkIGZ','appCode','role-code','/client/permit/role/update','Preview:\x20update\x20a\x20runtime\x20CUSTOM\x20role','2014837XsBNLN','981117gclfFN','--remark\x20must\x20not\x20be\x20blank.','122025WaDxFm','remark','131298jQHVrD','validation','name','--name\x20must\x20not\x20be\x20blank.','12ILZvXh'];a60_0x31f5=function(){return _0x5d81da;};return a60_0x31f5();}
1
+ const a60_0x57b67c=a60_0x18bb;(function(_0x9a2bd6,_0x4bb315){const _0x1954a6=a60_0x18bb,_0x2a9731=_0x9a2bd6();while(!![]){try{const _0x43d004=-parseInt(_0x1954a6(0x123))/0x1+-parseInt(_0x1954a6(0x124))/0x2+-parseInt(_0x1954a6(0x113))/0x3+parseInt(_0x1954a6(0x11b))/0x4+parseInt(_0x1954a6(0x114))/0x5*(parseInt(_0x1954a6(0x110))/0x6)+parseInt(_0x1954a6(0x11f))/0x7+parseInt(_0x1954a6(0x126))/0x8;if(_0x43d004===_0x4bb315)break;else _0x2a9731['push'](_0x2a9731['shift']());}catch(_0x1afbbe){_0x2a9731['push'](_0x2a9731['shift']());}}}(a60_0x24e9,0x504e9));import{updateRuntimeAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a60_0x18bb(_0x28e718,_0x5a6e2c){_0x28e718=_0x28e718-0x10e;const _0x24e95f=a60_0x24e9();let _0x18bba2=_0x24e95f[_0x28e718];return _0x18bba2;}import{assertCustomRuntimeRole,getRuntimeRoleById,projectRuntimeRole,readOptionalRuntimeRoleCode,ROLE_CODE_FLAG,ROLE_ID_FLAG,runtimeRoleWriteResult}from'../../commands/role/shared.js';function a60_0x24e9(){const _0x2a8415=['/client/permit/role/update','high-risk-write','flag','2486348PUhSIL','name','build','role-code','2598708cBPZDN','Update\x20a\x20runtime\x20CUSTOM\x20role\x27s\x20code,\x20name,\x20or\x20remark','--name\x20must\x20not\x20be\x20blank.','validation','617409bmfaYL','33844QlzOjp','New\x20non-empty\x20role\x20remark','2920496yaZnBl','str','--remark\x20must\x20not\x20be\x20blank.','New\x20role\x20name','trim','appCode','6XlJUaf','update','remark','1743024vJSreq','931915KVnCSa','role','Pass\x20--role-code,\x20--name,\x20or\x20--remark\x20to\x20update\x20the\x20runtime\x20role.','num'];a60_0x24e9=function(){return _0x2a8415;};return a60_0x24e9();}function updateFields(_0x102692){const _0x3456ab=a60_0x18bb,_0x1d35f2=_0x102692[_0x3456ab(0x11a)](_0x3456ab(0x11e))!==undefined,_0x5ae452=_0x102692[_0x3456ab(0x11a)](_0x3456ab(0x11c))!==undefined,_0x44132a=_0x102692[_0x3456ab(0x11a)](_0x3456ab(0x112))!==undefined;if(!_0x1d35f2&&!_0x5ae452&&!_0x44132a)throw CliErrors[_0x3456ab(0x122)](_0x3456ab(0x116));const _0x52ad38=readOptionalRuntimeRoleCode(_0x102692),_0x1e69ae=_0x102692[_0x3456ab(0x127)]('name')['trim'](),_0x5a69df=_0x102692['str'](_0x3456ab(0x112))[_0x3456ab(0x10e)]();if(_0x5ae452&&!_0x1e69ae)throw CliErrors['validation'](_0x3456ab(0x121));if(_0x44132a&&!_0x5a69df)throw CliErrors['validation'](_0x3456ab(0x128),'The\x20current\x20runtime\x20role\x20API\x20does\x20not\x20support\x20clearing\x20an\x20existing\x20remark.');return{..._0x52ad38?{'roleCode':_0x52ad38}:{},..._0x5ae452?{'roleName':_0x1e69ae}:{},..._0x44132a?{'remark':_0x5a69df}:{}};}async function prepare(_0x22e82a){const _0x3bbfee=a60_0x18bb,_0x472120=await getRuntimeRoleById(_0x22e82a['appCode'],_0x22e82a[_0x3bbfee(0x117)]('id'));return assertCustomRuntimeRole(_0x472120,'update'),{'role':_0x472120,'body':{'id':_0x472120['id'],'appCode':_0x22e82a[_0x3bbfee(0x10f)],...updateFields(_0x22e82a)}};}export const roleUpdate={'service':a60_0x57b67c(0x115),'command':'update','description':a60_0x57b67c(0x120),'risk':a60_0x57b67c(0x119),'confirmationDescription':'Changes\x20the\x20custom\x20role\x20code,\x20name,\x20or\x20note\x20in\x20the\x20current\x20runtime\x20app.\x20The\x20role\x20updates\x20immediately.','flags':[ROLE_ID_FLAG,ROLE_CODE_FLAG,{'name':a60_0x57b67c(0x11c),'type':'string','description':a60_0x57b67c(0x129)},{'name':a60_0x57b67c(0x112),'type':'string','description':a60_0x57b67c(0x125)}],async 'validate'(_0x2535dd){updateFields(_0x2535dd);},async 'dryRun'(_0x15fdc0){const _0x41bf6f=a60_0x57b67c,{body:_0x3725a5}=await prepare(_0x15fdc0);return dryRun('POST',_0x41bf6f(0x118))['body'](_0x3725a5)['description']('Preview:\x20update\x20a\x20runtime\x20CUSTOM\x20role')[_0x41bf6f(0x11d)]();},async 'execute'(_0x653846){const _0x1076c1=a60_0x57b67c,{role:_0x1c0437,body:_0xcc6783}=await prepare(_0x653846),_0x93377a=await updateRuntimeAppRole(_0xcc6783);return{'ok':!![],'data':runtimeRoleWriteResult(_0x1076c1(0x111),{'roleId':_0x1c0437['id']},projectRuntimeRole(_0x1c0437),projectRuntimeRole(_0x93377a),{'method':'POST','path':_0x1076c1(0x118)})};}};
@@ -1 +1 @@
1
- const a61_0x25365b=a61_0x3fa9;function a61_0x3fa9(_0x38facc,_0x5b62b6){_0x38facc=_0x38facc-0xc4;const _0x7f89bc=a61_0x7f89();let _0x3fa990=_0x7f89bc[_0x38facc];return _0x3fa990;}function a61_0x7f89(){const _0x1281f2=['8QcskAy','Adds\x20the\x20given\x20runtime\x20user\x20to\x20the\x20target\x20role.\x20The\x20user\x20receives\x20the\x20permissions\x20of\x20that\x20role.','365625TwhdPt','12zDTdmb','userId','high-risk-write','roleList','279977ZqVPFO','2330881weMuLo','30VubuHp','shouldWrite','16BHVeUC','build','warnings','body','after','316668tAnbNC','Add\x20a\x20userId\x20to\x20one\x20runtime\x20role','1660380PUmGYa','3566694RLYPym','user-add','/client/permit/user-role/update-user-list','appCode','role','POST','15006013Besydf'];a61_0x7f89=function(){return _0x1281f2;};return a61_0x7f89();}(function(_0x5e871f,_0x22e662){const _0x12a37c=a61_0x3fa9,_0x532d09=_0x5e871f();while(!![]){try{const _0x4f8a57=parseInt(_0x12a37c(0xd3))/0x1+-parseInt(_0x12a37c(0xdc))/0x2*(-parseInt(_0x12a37c(0xcf))/0x3)+-parseInt(_0x12a37c(0xcc))/0x4*(parseInt(_0x12a37c(0xc4))/0x5)+-parseInt(_0x12a37c(0xc5))/0x6+-parseInt(_0x12a37c(0xd4))/0x7*(parseInt(_0x12a37c(0xd7))/0x8)+-parseInt(_0x12a37c(0xce))/0x9*(-parseInt(_0x12a37c(0xd5))/0xa)+parseInt(_0x12a37c(0xcb))/0xb;if(_0x4f8a57===_0x22e662)break;else _0x532d09['push'](_0x532d09['shift']());}catch(_0x50b26b){_0x532d09['push'](_0x532d09['shift']());}}}(a61_0x7f89,0x73eb4));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':'role','command':a61_0x25365b(0xc6),'description':a61_0x25365b(0xdd),'risk':a61_0x25365b(0xd1),'confirmationDescription':a61_0x25365b(0xcd),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x13498c){const _0x36d03c=a61_0x25365b,_0x2d9e89=await prepareRuntimeMemberMutation(_0x13498c,_0x36d03c(0xc6));return dryRun(_0x36d03c(0xca),'/client/permit/user-role/update-user-list')[_0x36d03c(0xda)]({'appCode':_0x13498c[_0x36d03c(0xc8)],'roleList':_0x2d9e89[_0x36d03c(0xd2)]})['description'](_0x2d9e89[_0x36d03c(0xd6)]?'Preview:\x20add\x20runtime\x20role\x20member':_0x2d9e89[_0x36d03c(0xd9)][0x0])[_0x36d03c(0xd8)]();},async 'execute'(_0x6ab569){const _0x562c8c=a61_0x25365b,_0x1b21bf=await prepareRuntimeMemberMutation(_0x6ab569,_0x562c8c(0xc6));return _0x1b21bf[_0x562c8c(0xd6)]&&await updateRuntimeRoleUsers(_0x6ab569[_0x562c8c(0xc8)],_0x1b21bf[_0x562c8c(0xd2)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x562c8c(0xc6),{'roleId':_0x1b21bf[_0x562c8c(0xc9)]['id'],'userId':_0x1b21bf[_0x562c8c(0xd0)]},_0x1b21bf['before'],_0x1b21bf[_0x562c8c(0xdb)],{'method':_0x562c8c(0xca),'path':_0x562c8c(0xc7)},_0x1b21bf[_0x562c8c(0xd9)])};}};
1
+ const a61_0x2c0cf3=a61_0x2033;(function(_0x455d82,_0x3d570a){const _0xd552c2=a61_0x2033,_0x50f91f=_0x455d82();while(!![]){try{const _0x138f58=parseInt(_0xd552c2(0xc0))/0x1*(-parseInt(_0xd552c2(0xcd))/0x2)+-parseInt(_0xd552c2(0xd3))/0x3*(parseInt(_0xd552c2(0xcc))/0x4)+parseInt(_0xd552c2(0xcb))/0x5*(-parseInt(_0xd552c2(0xd1))/0x6)+parseInt(_0xd552c2(0xd6))/0x7*(-parseInt(_0xd552c2(0xc1))/0x8)+-parseInt(_0xd552c2(0xc6))/0x9*(parseInt(_0xd552c2(0xbe))/0xa)+parseInt(_0xd552c2(0xc2))/0xb*(parseInt(_0xd552c2(0xca))/0xc)+parseInt(_0xd552c2(0xd0))/0xd;if(_0x138f58===_0x3d570a)break;else _0x50f91f['push'](_0x50f91f['shift']());}catch(_0x19d6aa){_0x50f91f['push'](_0x50f91f['shift']());}}}(a61_0x21bc,0xd0b87));import{updateRuntimeRoleUsers}from'../../core/api-client.js';function a61_0x21bc(){const _0x4499af=['125310GEkJcn','Preview:\x20add\x20runtime\x20role\x20member','5qnTfcY','63464yRlZOe','238282raJkbJ','high-risk-write','role','after','9VabCzT','description','user-add','body','708anzOOT','5zBTKLV','20INxjWx','28876rFmGzB','POST','userId','27897376piakjS','4710498FGARzH','warnings','167568lpOezV','shouldWrite','/client/permit/user-role/update-user-list','1253ySNtSw','appCode'];a61_0x21bc=function(){return _0x4499af;};return a61_0x21bc();}import{dryRun}from'../../framework/dryrun.js';function a61_0x2033(_0x13f5b3,_0x3855dd){_0x13f5b3=_0x13f5b3-0xbe;const _0x21bc03=a61_0x21bc();let _0x20332b=_0x21bc03[_0x13f5b3];return _0x20332b;}import{EXPECT_USER_COUNT_FLAG,prepareRuntimeMemberMutation,ROLE_REF_FLAG,runtimeRoleWriteResult,USER_ID_FLAG}from'../../commands/role/shared.js';export const roleUserAdd={'service':'role','command':a61_0x2c0cf3(0xc8),'description':'Add\x20a\x20userId\x20to\x20one\x20runtime\x20role','risk':a61_0x2c0cf3(0xc3),'confirmationDescription':'Adds\x20the\x20given\x20runtime\x20user\x20to\x20the\x20target\x20role.\x20The\x20user\x20receives\x20the\x20permissions\x20of\x20that\x20role.','flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x1309b4){const _0x473816=a61_0x2c0cf3,_0x146af9=await prepareRuntimeMemberMutation(_0x1309b4,_0x473816(0xc8));return dryRun('POST','/client/permit/user-role/update-user-list')[_0x473816(0xc9)]({'appCode':_0x1309b4[_0x473816(0xd7)],'roleList':_0x146af9['roleList']})[_0x473816(0xc7)](_0x146af9[_0x473816(0xd4)]?_0x473816(0xbf):_0x146af9[_0x473816(0xd2)][0x0])['build']();},async 'execute'(_0x441b66){const _0x4988ba=a61_0x2c0cf3,_0x5e242e=await prepareRuntimeMemberMutation(_0x441b66,_0x4988ba(0xc8));return _0x5e242e['shouldWrite']&&await updateRuntimeRoleUsers(_0x441b66['appCode'],_0x5e242e['roleList']),{'ok':!![],'data':runtimeRoleWriteResult('user-add',{'roleId':_0x5e242e[_0x4988ba(0xc4)]['id'],'userId':_0x5e242e[_0x4988ba(0xcf)]},_0x5e242e['before'],_0x5e242e[_0x4988ba(0xc5)],{'method':_0x4988ba(0xce),'path':_0x4988ba(0xd5)},_0x5e242e['warnings'])};}};
@@ -1 +1 @@
1
- const a62_0x74cd8a=a62_0x194c;(function(_0x16e6a5,_0x4656d0){const _0x121632=a62_0x194c,_0x11e23c=_0x16e6a5();while(!![]){try{const _0x2279b5=-parseInt(_0x121632(0x1c7))/0x1+-parseInt(_0x121632(0x1bc))/0x2+-parseInt(_0x121632(0x1bb))/0x3*(parseInt(_0x121632(0x1c4))/0x4)+-parseInt(_0x121632(0x1ca))/0x5+-parseInt(_0x121632(0x1cc))/0x6*(-parseInt(_0x121632(0x1b8))/0x7)+-parseInt(_0x121632(0x1cb))/0x8+parseInt(_0x121632(0x1be))/0x9*(parseInt(_0x121632(0x1c1))/0xa);if(_0x2279b5===_0x4656d0)break;else _0x11e23c['push'](_0x11e23c['shift']());}catch(_0x230c74){_0x11e23c['push'](_0x11e23c['shift']());}}}(a62_0x4420,0x1da61));import{updateRuntimeRoleUsers}from'../../core/api-client.js';function a62_0x4420(){const _0x5acaa6=['appCode','40NVUnHe','build','shouldWrite','27746TtxZZn','role','roleList','871610xKArGQ','1378920enloXn','111906ObMLMb','Preview:\x20remove\x20runtime\x20role\x20member','userId','warnings','body','28scnaiy','/client/permit/user-role/update-user-list','Removes\x20the\x20given\x20runtime\x20user\x20from\x20the\x20target\x20role.\x20The\x20user\x20loses\x20permissions\x20granted\x20only\x20by\x20that\x20role.','65586VgiMED','15014jBndQV','high-risk-write','81kBDKpA','user-remove','POST','719330ICMxtX','Remove\x20a\x20userId\x20from\x20one\x20runtime\x20role'];a62_0x4420=function(){return _0x5acaa6;};return a62_0x4420();}function a62_0x194c(_0x2ba622,_0x1bdb76){_0x2ba622=_0x2ba622-0x1b7;const _0x44206b=a62_0x4420();let _0x194c4=_0x44206b[_0x2ba622];return _0x194c4;}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_0x74cd8a(0x1c8),'command':a62_0x74cd8a(0x1bf),'description':a62_0x74cd8a(0x1c2),'risk':a62_0x74cd8a(0x1bd),'confirmationDescription':a62_0x74cd8a(0x1ba),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0xbb9a49){const _0x1e83d4=a62_0x74cd8a,_0x4bcf5a=await prepareRuntimeMemberMutation(_0xbb9a49,_0x1e83d4(0x1bf));return dryRun(_0x1e83d4(0x1c0),_0x1e83d4(0x1b9))[_0x1e83d4(0x1b7)]({'appCode':_0xbb9a49[_0x1e83d4(0x1c3)],'roleList':_0x4bcf5a[_0x1e83d4(0x1c9)]})['description'](_0x4bcf5a[_0x1e83d4(0x1c6)]?_0x1e83d4(0x1cd):_0x4bcf5a[_0x1e83d4(0x1cf)][0x0])[_0x1e83d4(0x1c5)]();},async 'execute'(_0x2d721c){const _0x1bd581=a62_0x74cd8a,_0x583e2e=await prepareRuntimeMemberMutation(_0x2d721c,'user-remove');return _0x583e2e['shouldWrite']&&await updateRuntimeRoleUsers(_0x2d721c[_0x1bd581(0x1c3)],_0x583e2e[_0x1bd581(0x1c9)]),{'ok':!![],'data':runtimeRoleWriteResult(_0x1bd581(0x1bf),{'roleId':_0x583e2e['role']['id'],'userId':_0x583e2e[_0x1bd581(0x1ce)]},_0x583e2e['before'],_0x583e2e['after'],{'method':_0x1bd581(0x1c0),'path':_0x1bd581(0x1b9)},_0x583e2e[_0x1bd581(0x1cf)])};}};
1
+ const a62_0x1ed9f5=a62_0x508f;(function(_0x264232,_0x14dd8b){const _0x2448a7=a62_0x508f,_0x5666ba=_0x264232();while(!![]){try{const _0x4a447e=parseInt(_0x2448a7(0x125))/0x1*(parseInt(_0x2448a7(0x13c))/0x2)+-parseInt(_0x2448a7(0x137))/0x3*(parseInt(_0x2448a7(0x134))/0x4)+-parseInt(_0x2448a7(0x139))/0x5+parseInt(_0x2448a7(0x13d))/0x6+-parseInt(_0x2448a7(0x12d))/0x7*(-parseInt(_0x2448a7(0x12b))/0x8)+-parseInt(_0x2448a7(0x13b))/0x9*(parseInt(_0x2448a7(0x123))/0xa)+parseInt(_0x2448a7(0x12a))/0xb*(parseInt(_0x2448a7(0x131))/0xc);if(_0x4a447e===_0x14dd8b)break;else _0x5666ba['push'](_0x5666ba['shift']());}catch(_0x2e4654){_0x5666ba['push'](_0x5666ba['shift']());}}}(a62_0x5cd3,0x4cf63));function a62_0x5cd3(){const _0x128938=['Preview:\x20remove\x20runtime\x20role\x20member','build','492WdijIn','high-risk-write','role','2620kkxiWF','warnings','POST','1047axvEWt','/client/permit/user-role/update-user-list','1341160RhRkqh','user-remove','331281yWXDPm','934qmFmbj','1226316jczEMX','shouldWrite','90lzovPG','body','155aRbmfy','appCode','Removes\x20the\x20given\x20runtime\x20user\x20from\x20the\x20target\x20role.\x20The\x20user\x20loses\x20permissions\x20granted\x20only\x20by\x20that\x20role.','description','before','126742wZtRRC','336QYQGuF','userId','65695ESwFAw','roleList'];a62_0x5cd3=function(){return _0x128938;};return a62_0x5cd3();}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';function a62_0x508f(_0x3f6207,_0x49595c){_0x3f6207=_0x3f6207-0x123;const _0x5cd3db=a62_0x5cd3();let _0x508f33=_0x5cd3db[_0x3f6207];return _0x508f33;}export const roleUserRemove={'service':a62_0x1ed9f5(0x133),'command':'user-remove','description':'Remove\x20a\x20userId\x20from\x20one\x20runtime\x20role','risk':a62_0x1ed9f5(0x132),'confirmationDescription':a62_0x1ed9f5(0x127),'flags':[ROLE_REF_FLAG,USER_ID_FLAG,EXPECT_USER_COUNT_FLAG],async 'dryRun'(_0x2f7397){const _0x29a42b=a62_0x1ed9f5,_0x2932b5=await prepareRuntimeMemberMutation(_0x2f7397,_0x29a42b(0x13a));return dryRun(_0x29a42b(0x136),'/client/permit/user-role/update-user-list')[_0x29a42b(0x124)]({'appCode':_0x2f7397[_0x29a42b(0x126)],'roleList':_0x2932b5[_0x29a42b(0x12e)]})[_0x29a42b(0x128)](_0x2932b5[_0x29a42b(0x13e)]?_0x29a42b(0x12f):_0x2932b5[_0x29a42b(0x135)][0x0])[_0x29a42b(0x130)]();},async 'execute'(_0x337791){const _0x35e51f=a62_0x1ed9f5,_0x4f38f9=await prepareRuntimeMemberMutation(_0x337791,'user-remove');return _0x4f38f9[_0x35e51f(0x13e)]&&await updateRuntimeRoleUsers(_0x337791[_0x35e51f(0x126)],_0x4f38f9['roleList']),{'ok':!![],'data':runtimeRoleWriteResult(_0x35e51f(0x13a),{'roleId':_0x4f38f9['role']['id'],'userId':_0x4f38f9[_0x35e51f(0x12c)]},_0x4f38f9[_0x35e51f(0x129)],_0x4f38f9['after'],{'method':_0x35e51f(0x136),'path':_0x35e51f(0x138)},_0x4f38f9['warnings'])};}};
@@ -1 +1 @@
1
- const a63_0x3939d6=a63_0x4fef;(function(_0x2a7eda,_0x6b271d){const _0x1d1d8c=a63_0x4fef,_0x174e8a=_0x2a7eda();while(!![]){try{const _0x38bfbe=parseInt(_0x1d1d8c(0xb8))/0x1*(-parseInt(_0x1d1d8c(0x95))/0x2)+parseInt(_0x1d1d8c(0xa6))/0x3+parseInt(_0x1d1d8c(0x9f))/0x4+parseInt(_0x1d1d8c(0x73))/0x5+-parseInt(_0x1d1d8c(0xbc))/0x6+parseInt(_0x1d1d8c(0x94))/0x7+parseInt(_0x1d1d8c(0x75))/0x8*(parseInt(_0x1d1d8c(0x8f))/0x9);if(_0x38bfbe===_0x6b271d)break;else _0x174e8a['push'](_0x174e8a['shift']());}catch(_0x120e01){_0x174e8a['push'](_0x174e8a['shift']());}}}(a63_0x2a42,0xa79dc));import{createRuntimeSchedule,deleteRuntimeSchedule,getRuntimeSchedule,listRuntimeSchedules,runRuntimeSchedule,validateRuntimeSchedule}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a63_0x2a42(){const _0x29e56f=['description','2180751XSVRGi','kind','num','Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules','str','kimi/k3','appCode','List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','Show\x20one\x20schedule\x20by\x20schedule\x20ID','ONCE','cursor','CRON','limit','Delete\x20the\x20schedule\x20and\x20stop\x20future\x20triggers','CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.','--prompt\x20must\x20not\x20be\x20blank.','DELETE','deepseek-v4-flash-0731','95geiKDc','Schedule\x20kind:\x20CRON\x20or\x20ONCE','/api/harness/apps/','--title\x20must\x20not\x20be\x20blank.','4125396FXmuYJ','string','789830UlfHDh','Preview:\x20create\x20an\x20Agent\x20schedule','8ysJIbr','Deleted\x20schedule\x20','Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','model','length','schedule','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','run','POST','Task\x20model\x20used\x20when\x20the\x20schedule\x20runs','Preview:\x20run\x20schedule\x20','/schedules','/run','taskId','Queued\x20Task\x20','scheduled-at','number','delete','Schedule\x20input\x20is\x20valid','isSafeInteger','Creates\x20a\x20schedule\x20in\x20the\x20current\x20app\x20that\x20can\x20auto-trigger\x20an\x20Agent.\x20At\x20the\x20scheduled\x20time\x20a\x20Task\x20is\x20created\x20and\x20run.','Permanently\x20deletes\x20the\x20schedule\x20and\x20stops\x20future\x20auto-triggers.\x20Historical\x20Tasks\x20already\x20created\x20are\x20not\x20affected.','\x20from\x20schedule\x20','create','--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','10025739CAfCjN','Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules','read','Created\x20','Run\x20the\x20schedule\x20once\x20immediately\x20and\x20create\x20a\x20Task','3814300iEXOem','27768YhEkzS','validation','--kind\x20must\x20be\x20CRON\x20or\x20ONCE.','prompt','Ignores\x20the\x20original\x20trigger\x20time,\x20runs\x20the\x20schedule\x20once\x20now,\x20and\x20creates\x20a\x20new\x20Agent\x20Task.','list','cron','trim','scheduleId','body','597392OdPbuk','schedule-id','high-risk-write','UTC','title','a\x20UUID\x20returned\x20by\x20schedule\x20create/list'];a63_0x2a42=function(){return _0x29e56f;};return a63_0x2a42();}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_0x3939d6(0xa7),'type':a63_0x3939d6(0xbd),'required':!![],'enum':[a63_0x3939d6(0xb1),a63_0x3939d6(0xaf)],'description':a63_0x3939d6(0xb9)},CRON_FLAG={'name':'cron','type':a63_0x3939d6(0xbd),'description':a63_0x3939d6(0xa9)},SCHEDULED_AT_FLAG={'name':a63_0x3939d6(0x84),'type':a63_0x3939d6(0xbd),'description':a63_0x3939d6(0x90)},TITLE_FLAG={'name':a63_0x3939d6(0xa3),'type':a63_0x3939d6(0xbd),'required':!![],'description':'Schedule\x20title'},PROMPT_FLAG={'name':a63_0x3939d6(0x98),'type':a63_0x3939d6(0xbd),'required':!![],'description':a63_0x3939d6(0x7b)},MODEL_FLAG={'name':a63_0x3939d6(0x78),'type':a63_0x3939d6(0xbd),'enum':[a63_0x3939d6(0xab),a63_0x3939d6(0xb7),'deepseek-v4-pro-0813'],'default':a63_0x3939d6(0xb7),'description':a63_0x3939d6(0x7e)},SCHEDULE_ID_FLAG={'name':'schedule-id','type':'string','required':!![],'description':'Schedule\x20UUID','pattern':{'regex':SCHEDULE_ID_PATTERN,'description':a63_0x3939d6(0xa4)}},LIMIT_FLAG={'name':a63_0x3939d6(0xb2),'type':a63_0x3939d6(0x85),'default':0x14,'description':'Page\x20size\x20from\x201\x20to\x20100'},CURSOR_FLAG={'name':a63_0x3939d6(0xb0),'type':a63_0x3939d6(0xbd),'description':'Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call'},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,MODEL_FLAG];function readScheduleInput(_0x1f9efe){const _0x562d66=a63_0x3939d6,_0x50ecc3=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0xa7)),_0x2c98f3=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0xa3))[_0x562d66(0x9c)](),_0x2e6f7c=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0x98))[_0x562d66(0x9c)](),_0x201a34=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0x78)),_0xa95055=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0x9b)),_0x45509e=_0x1f9efe[_0x562d66(0xaa)](_0x562d66(0x84));if(!_0x2c98f3)throw CliErrors[_0x562d66(0x96)](_0x562d66(0xbb));if(!_0x2e6f7c)throw CliErrors['validation'](_0x562d66(0xb5));if(_0x50ecc3===_0x562d66(0xb1)){if(!_0xa95055||_0x45509e)throw CliErrors[_0x562d66(0x96)](_0x562d66(0xb4));return{'kind':_0x50ecc3,'timezone':_0x562d66(0xa2),'cron':_0xa95055,'title':_0x2c98f3,'prompt':_0x2e6f7c,'model':_0x201a34};}if(_0x50ecc3==='ONCE'){if(!_0x45509e||_0xa95055)throw CliErrors[_0x562d66(0x96)](_0x562d66(0x8e));return{'kind':_0x50ecc3,'timezone':_0x562d66(0xa2),'scheduledAt':_0x45509e,'title':_0x2c98f3,'prompt':_0x2e6f7c,'model':_0x201a34};}throw CliErrors[_0x562d66(0x96)](_0x562d66(0x97));}function scheduleCollectionPath(_0x520442){const _0x757357=a63_0x3939d6;return _0x757357(0xba)+encodeURIComponent(_0x520442)+_0x757357(0x80);}function scheduleItemPath(_0x33972c,_0x2eb577){return scheduleCollectionPath(_0x33972c)+'/'+encodeURIComponent(_0x2eb577);}function a63_0x4fef(_0x18208f,_0x1ed180){_0x18208f=_0x18208f-0x73;const _0x2a42a1=a63_0x2a42();let _0x4fef34=_0x2a42a1[_0x18208f];return _0x4fef34;}const scheduleValidate={'service':a63_0x3939d6(0x7a),'command':'validate','description':a63_0x3939d6(0x77),'risk':a63_0x3939d6(0x91),'flags':INPUT_FLAGS,async 'validate'(_0xa38cc){readScheduleInput(_0xa38cc);},async 'execute'(_0x3ba0a1){const _0x450ad6=a63_0x3939d6,_0x27ad88=readScheduleInput(_0x3ba0a1),_0x34963e=await validateRuntimeSchedule(_0x3ba0a1[_0x450ad6(0xac)],_0x27ad88);return{'ok':!![],'data':_0x34963e,'message':_0x450ad6(0x87)};}},scheduleCreate={'service':a63_0x3939d6(0x7a),'command':a63_0x3939d6(0x8c),'description':'Create\x20a\x20recurring\x20or\x20one-shot\x20Agent\x20schedule','risk':a63_0x3939d6(0xa1),'confirmationDescription':a63_0x3939d6(0x89),'flags':INPUT_FLAGS,async 'validate'(_0x27e614){readScheduleInput(_0x27e614);},async 'execute'(_0x4dee3f){const _0x109114=a63_0x3939d6,_0xe95a57=readScheduleInput(_0x4dee3f),_0x29d3b5=await validateRuntimeSchedule(_0x4dee3f['appCode'],_0xe95a57),_0x4a526f=await createRuntimeSchedule(_0x4dee3f[_0x109114(0xac)],_0x29d3b5);return{'ok':!![],'data':_0x4a526f,'message':_0x109114(0x92)+_0x4a526f[_0x109114(0xa7)]+'\x20schedule\x20'+_0x4a526f[_0x109114(0x9d)]};},async 'dryRun'(_0x2034e4){const _0x2c5423=a63_0x3939d6,_0x226cd2=readScheduleInput(_0x2034e4);return dryRun(_0x2c5423(0x7d),scheduleCollectionPath(_0x2034e4[_0x2c5423(0xac)]))[_0x2c5423(0x9e)](_0x226cd2)[_0x2c5423(0xa5)](_0x2c5423(0x74))['build']();}},scheduleList={'service':a63_0x3939d6(0x7a),'command':a63_0x3939d6(0x9a),'description':a63_0x3939d6(0xad),'risk':a63_0x3939d6(0x91),'flags':[KIND_FLAG,LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x4d7317){const _0x3ca4af=a63_0x3939d6,_0x1234aa=_0x4d7317[_0x3ca4af(0xa8)]('limit');if(!Number[_0x3ca4af(0x88)](_0x1234aa)||_0x1234aa<0x1||_0x1234aa>0x64)throw CliErrors[_0x3ca4af(0x96)]('--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');const _0x557e3e=_0x4d7317['str']('cursor');if(_0x557e3e&&(_0x557e3e[_0x3ca4af(0x79)]>0x400||_0x557e3e[_0x3ca4af(0x9c)]()!==_0x557e3e))throw CliErrors[_0x3ca4af(0x96)](_0x3ca4af(0x8d));},async 'execute'(_0x51107f){const _0xc11eda=a63_0x3939d6,_0x2ada31=_0x51107f[_0xc11eda(0xaa)](_0xc11eda(0xb0)),_0x1c1d77=await listRuntimeSchedules(_0x51107f[_0xc11eda(0xac)],{'kind':_0x51107f[_0xc11eda(0xaa)](_0xc11eda(0xa7)),'limit':_0x51107f[_0xc11eda(0xa8)](_0xc11eda(0xb2)),..._0x2ada31?{'cursor':_0x2ada31}:{}});return{'ok':!![],'data':_0x1c1d77};}},scheduleDetail={'service':a63_0x3939d6(0x7a),'command':'detail','description':a63_0x3939d6(0xae),'risk':'read','flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x4bcaba){const _0x50ee9e=a63_0x3939d6,_0x4ffded=await getRuntimeSchedule(_0x4bcaba['appCode'],_0x4bcaba[_0x50ee9e(0xaa)](_0x50ee9e(0xa0)));return{'ok':!![],'data':_0x4ffded};}},scheduleRun={'service':'schedule','command':a63_0x3939d6(0x7c),'description':a63_0x3939d6(0x93),'risk':a63_0x3939d6(0xa1),'confirmationDescription':a63_0x3939d6(0x99),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x10ef26){const _0xf9e350=a63_0x3939d6,_0x1b7aa3=_0x10ef26[_0xf9e350(0xaa)](_0xf9e350(0xa0)),_0x332247=await runRuntimeSchedule(_0x10ef26[_0xf9e350(0xac)],_0x1b7aa3);return{'ok':!![],'data':_0x332247,'message':_0xf9e350(0x83)+_0x332247[_0xf9e350(0x82)]+_0xf9e350(0x8b)+_0x1b7aa3};},async 'dryRun'(_0x396d55){const _0x85c74d=a63_0x3939d6,_0x13169a=_0x396d55[_0x85c74d(0xaa)](_0x85c74d(0xa0));return dryRun('POST',scheduleItemPath(_0x396d55['appCode'],_0x13169a)+_0x85c74d(0x81))['description'](_0x85c74d(0x7f)+_0x13169a+'\x20immediately')['build']();}},scheduleDelete={'service':a63_0x3939d6(0x7a),'command':a63_0x3939d6(0x86),'description':a63_0x3939d6(0xb3),'risk':a63_0x3939d6(0xa1),'confirmationDescription':a63_0x3939d6(0x8a),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x287a1c){const _0x56f66f=a63_0x3939d6,_0x558d2b=_0x287a1c['str'](_0x56f66f(0xa0)),_0x176260=await deleteRuntimeSchedule(_0x287a1c[_0x56f66f(0xac)],_0x558d2b);return{'ok':!![],'data':_0x176260,'message':_0x56f66f(0x76)+_0x558d2b};},async 'dryRun'(_0x56b7a3){const _0x455a18=a63_0x3939d6,_0x294926=_0x56b7a3[_0x455a18(0xaa)]('schedule-id');return dryRun(_0x455a18(0xb6),scheduleItemPath(_0x56b7a3['appCode'],_0x294926))[_0x455a18(0xa5)]('Preview:\x20delete\x20schedule\x20'+_0x294926)['build']();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
1
+ const a63_0x31fade=a63_0x29e3;(function(_0x5c6093,_0x66d52f){const _0x1e9404=a63_0x29e3,_0x5b46ef=_0x5c6093();while(!![]){try{const _0x340d13=-parseInt(_0x1e9404(0x127))/0x1*(-parseInt(_0x1e9404(0xf7))/0x2)+-parseInt(_0x1e9404(0x138))/0x3*(-parseInt(_0x1e9404(0x118))/0x4)+-parseInt(_0x1e9404(0x108))/0x5+-parseInt(_0x1e9404(0x124))/0x6+-parseInt(_0x1e9404(0x11c))/0x7+-parseInt(_0x1e9404(0x126))/0x8+parseInt(_0x1e9404(0x120))/0x9*(parseInt(_0x1e9404(0x104))/0xa);if(_0x340d13===_0x66d52f)break;else _0x5b46ef['push'](_0x5b46ef['shift']());}catch(_0x2b0a1d){_0x5b46ef['push'](_0x5b46ef['shift']());}}}(a63_0x1448,0x605b2));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_0x31fade(0xf5),'type':a63_0x31fade(0x129),'required':!![],'enum':[a63_0x31fade(0xf8),a63_0x31fade(0x117)],'description':a63_0x31fade(0x12b)},CRON_FLAG={'name':'cron','type':a63_0x31fade(0x129),'description':'Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules'},SCHEDULED_AT_FLAG={'name':a63_0x31fade(0xfe),'type':a63_0x31fade(0x129),'description':'Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules'},TITLE_FLAG={'name':a63_0x31fade(0x10f),'type':a63_0x31fade(0x129),'required':!![],'description':'Schedule\x20title'},PROMPT_FLAG={'name':a63_0x31fade(0x130),'type':a63_0x31fade(0x129),'required':!![],'description':a63_0x31fade(0x10c)},MODEL_FLAG={'name':a63_0x31fade(0x11b),'type':a63_0x31fade(0x129),'enum':['kimi/k3',a63_0x31fade(0x13a),'deepseek-v4-pro-0813'],'default':'deepseek-v4-flash-0731','description':a63_0x31fade(0x10e)},SCHEDULE_ID_FLAG={'name':'schedule-id','type':a63_0x31fade(0x129),'required':!![],'description':a63_0x31fade(0xfa),'pattern':{'regex':SCHEDULE_ID_PATTERN,'description':a63_0x31fade(0x131)}},LIMIT_FLAG={'name':'limit','type':'number','default':0x14,'description':'Page\x20size\x20from\x201\x20to\x20100'},CURSOR_FLAG={'name':a63_0x31fade(0x12c),'type':'string','description':a63_0x31fade(0x13b)},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,MODEL_FLAG];function a63_0x29e3(_0x22cde2,_0xdef125){_0x22cde2=_0x22cde2-0xf5;const _0x144837=a63_0x1448();let _0x29e3a8=_0x144837[_0x22cde2];return _0x29e3a8;}function readScheduleInput(_0x44c281){const _0x256693=a63_0x31fade,_0x4852d4=_0x44c281[_0x256693(0x107)](_0x256693(0xf5)),_0x23174f=_0x44c281[_0x256693(0x107)](_0x256693(0x10f))[_0x256693(0xfc)](),_0x5ed78d=_0x44c281[_0x256693(0x107)](_0x256693(0x130))[_0x256693(0xfc)](),_0x1ad90e=_0x44c281[_0x256693(0x107)]('model'),_0x658c46=_0x44c281['str'](_0x256693(0x109)),_0x4ea096=_0x44c281['str']('scheduled-at');if(!_0x23174f)throw CliErrors[_0x256693(0xf9)](_0x256693(0x116));if(!_0x5ed78d)throw CliErrors[_0x256693(0xf9)](_0x256693(0xfd));if(_0x4852d4===_0x256693(0xf8)){if(!_0x658c46||_0x4ea096)throw CliErrors[_0x256693(0xf9)](_0x256693(0x111));return{'kind':_0x4852d4,'timezone':_0x256693(0x121),'cron':_0x658c46,'title':_0x23174f,'prompt':_0x5ed78d,'model':_0x1ad90e};}if(_0x4852d4===_0x256693(0x117)){if(!_0x4ea096||_0x658c46)throw CliErrors[_0x256693(0xf9)](_0x256693(0x136));return{'kind':_0x4852d4,'timezone':_0x256693(0x121),'scheduledAt':_0x4ea096,'title':_0x23174f,'prompt':_0x5ed78d,'model':_0x1ad90e};}throw CliErrors[_0x256693(0xf9)](_0x256693(0x125));}function scheduleCollectionPath(_0x24e7a6){const _0x144e57=a63_0x31fade;return _0x144e57(0x123)+encodeURIComponent(_0x24e7a6)+_0x144e57(0x13e);}function a63_0x1448(){const _0x26d9ed=['\x20from\x20schedule\x20','Schedule\x20input\x20is\x20valid','Permanently\x20deletes\x20the\x20schedule\x20and\x20stops\x20future\x20auto-triggers.\x20Historical\x20Tasks\x20already\x20created\x20are\x20not\x20affected.','schedule-id','num','22290030rGAWoP','high-risk-write','schedule','str','2676750puYDwc','cron','DELETE','body','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','/run','Task\x20model\x20used\x20when\x20the\x20schedule\x20runs','title','run','CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.','POST','taskId','Create\x20a\x20recurring\x20or\x20one-shot\x20Agent\x20schedule','Ignores\x20the\x20original\x20trigger\x20time,\x20runs\x20the\x20schedule\x20once\x20now,\x20and\x20creates\x20a\x20new\x20Agent\x20Task.','--title\x20must\x20not\x20be\x20blank.','ONCE','4xnKqMq','Run\x20the\x20schedule\x20once\x20immediately\x20and\x20create\x20a\x20Task','Deleted\x20schedule\x20','model','3282307zfcSps','scheduleId','Delete\x20the\x20schedule\x20and\x20stop\x20future\x20triggers','length','9wgPYux','UTC','appCode','/api/harness/apps/','4433622ZIZXBQ','--kind\x20must\x20be\x20CRON\x20or\x20ONCE.','3801392dJNazd','2341FJYmhK','Queued\x20Task\x20','string','List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','Schedule\x20kind:\x20CRON\x20or\x20ONCE','cursor','description','Show\x20one\x20schedule\x20by\x20schedule\x20ID','list','prompt','a\x20UUID\x20returned\x20by\x20schedule\x20create/list','Preview:\x20create\x20an\x20Agent\x20schedule','Created\x20','\x20immediately','read','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','Preview:\x20run\x20schedule\x20','899271EZLKaF','create','deepseek-v4-flash-0731','Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call','validate','limit','/schedules','kind','build','72RSZDPp','CRON','validation','Schedule\x20UUID','\x20schedule\x20','trim','--prompt\x20must\x20not\x20be\x20blank.','scheduled-at'];a63_0x1448=function(){return _0x26d9ed;};return a63_0x1448();}function scheduleItemPath(_0x235d30,_0x2e7df1){return scheduleCollectionPath(_0x235d30)+'/'+encodeURIComponent(_0x2e7df1);}const scheduleValidate={'service':'schedule','command':a63_0x31fade(0x13c),'description':'Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','risk':a63_0x31fade(0x135),'flags':INPUT_FLAGS,async 'validate'(_0x28643b){readScheduleInput(_0x28643b);},async 'execute'(_0x1267f9){const _0x391d74=a63_0x31fade,_0x366a71=readScheduleInput(_0x1267f9),_0x35a6c8=await validateRuntimeSchedule(_0x1267f9[_0x391d74(0x122)],_0x366a71);return{'ok':!![],'data':_0x35a6c8,'message':_0x391d74(0x100)};}},scheduleCreate={'service':'schedule','command':a63_0x31fade(0x139),'description':a63_0x31fade(0x114),'risk':'high-risk-write','confirmationDescription':'Creates\x20a\x20schedule\x20in\x20the\x20current\x20app\x20that\x20can\x20auto-trigger\x20an\x20Agent.\x20At\x20the\x20scheduled\x20time\x20a\x20Task\x20is\x20created\x20and\x20run.','flags':INPUT_FLAGS,async 'validate'(_0x4dae12){readScheduleInput(_0x4dae12);},async 'execute'(_0x37726b){const _0x38cad3=a63_0x31fade,_0x32055f=readScheduleInput(_0x37726b),_0x2c27ac=await validateRuntimeSchedule(_0x37726b['appCode'],_0x32055f),_0x1186d5=await createRuntimeSchedule(_0x37726b['appCode'],_0x2c27ac);return{'ok':!![],'data':_0x1186d5,'message':_0x38cad3(0x133)+_0x1186d5[_0x38cad3(0xf5)]+_0x38cad3(0xfb)+_0x1186d5[_0x38cad3(0x11d)]};},async 'dryRun'(_0x28390d){const _0x12b02c=a63_0x31fade,_0x2b5e6a=readScheduleInput(_0x28390d);return dryRun(_0x12b02c(0x112),scheduleCollectionPath(_0x28390d[_0x12b02c(0x122)]))[_0x12b02c(0x10b)](_0x2b5e6a)['description'](_0x12b02c(0x132))['build']();}},scheduleList={'service':a63_0x31fade(0x106),'command':a63_0x31fade(0x12f),'description':a63_0x31fade(0x12a),'risk':'read','flags':[KIND_FLAG,LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x1fbaac){const _0x2afb2f=a63_0x31fade,_0x548761=_0x1fbaac['num']('limit');if(!Number['isSafeInteger'](_0x548761)||_0x548761<0x1||_0x548761>0x64)throw CliErrors[_0x2afb2f(0xf9)]('--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');const _0x49c752=_0x1fbaac[_0x2afb2f(0x107)](_0x2afb2f(0x12c));if(_0x49c752&&(_0x49c752[_0x2afb2f(0x11f)]>0x400||_0x49c752[_0x2afb2f(0xfc)]()!==_0x49c752))throw CliErrors[_0x2afb2f(0xf9)]('--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.');},async 'execute'(_0x460989){const _0x8908ef=a63_0x31fade,_0x474d18=_0x460989[_0x8908ef(0x107)]('cursor'),_0x341178=await listRuntimeSchedules(_0x460989[_0x8908ef(0x122)],{'kind':_0x460989[_0x8908ef(0x107)]('kind'),'limit':_0x460989[_0x8908ef(0x103)](_0x8908ef(0x13d)),..._0x474d18?{'cursor':_0x474d18}:{}});return{'ok':!![],'data':_0x341178};}},scheduleDetail={'service':a63_0x31fade(0x106),'command':'detail','description':a63_0x31fade(0x12e),'risk':'read','flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x4b1df4){const _0x194250=a63_0x31fade,_0x412e48=await getRuntimeSchedule(_0x4b1df4[_0x194250(0x122)],_0x4b1df4[_0x194250(0x107)](_0x194250(0x102)));return{'ok':!![],'data':_0x412e48};}},scheduleRun={'service':a63_0x31fade(0x106),'command':a63_0x31fade(0x110),'description':a63_0x31fade(0x119),'risk':a63_0x31fade(0x105),'confirmationDescription':a63_0x31fade(0x115),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x24fb9e){const _0x1c9a8a=a63_0x31fade,_0x5c5961=_0x24fb9e[_0x1c9a8a(0x107)](_0x1c9a8a(0x102)),_0x21d350=await runRuntimeSchedule(_0x24fb9e['appCode'],_0x5c5961);return{'ok':!![],'data':_0x21d350,'message':_0x1c9a8a(0x128)+_0x21d350[_0x1c9a8a(0x113)]+_0x1c9a8a(0xff)+_0x5c5961};},async 'dryRun'(_0x54a387){const _0x20d943=a63_0x31fade,_0x4ab838=_0x54a387[_0x20d943(0x107)](_0x20d943(0x102));return dryRun(_0x20d943(0x112),scheduleItemPath(_0x54a387[_0x20d943(0x122)],_0x4ab838)+_0x20d943(0x10d))[_0x20d943(0x12d)](_0x20d943(0x137)+_0x4ab838+_0x20d943(0x134))[_0x20d943(0xf6)]();}},scheduleDelete={'service':a63_0x31fade(0x106),'command':'delete','description':a63_0x31fade(0x11e),'risk':a63_0x31fade(0x105),'confirmationDescription':a63_0x31fade(0x101),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x46ea44){const _0x11bc1d=a63_0x31fade,_0x361499=_0x46ea44[_0x11bc1d(0x107)](_0x11bc1d(0x102)),_0x4ff3ac=await deleteRuntimeSchedule(_0x46ea44[_0x11bc1d(0x122)],_0x361499);return{'ok':!![],'data':_0x4ff3ac,'message':_0x11bc1d(0x11a)+_0x361499};},async 'dryRun'(_0x422710){const _0x5afd71=a63_0x31fade,_0x4596a1=_0x422710['str'](_0x5afd71(0x102));return dryRun(_0x5afd71(0x10a),scheduleItemPath(_0x422710[_0x5afd71(0x122)],_0x4596a1))['description']('Preview:\x20delete\x20schedule\x20'+_0x4596a1)[_0x5afd71(0xf6)]();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
@@ -1 +1 @@
1
- function a64_0x2d5b(){const _0x3276d0=['7696374nbCMLC','410PsfEpv','4339688hLyvXw','3330651XNeBnn','4646474dHXATq','2884UHrNAS','572134tHpjmD','export','read','2fDEdIm','5474880kpMJBU','18fXtTGA'];a64_0x2d5b=function(){return _0x3276d0;};return a64_0x2d5b();}function a64_0x457b(_0x56db3c,_0x24d7a1){_0x56db3c=_0x56db3c-0x1d4;const _0x2d5bec=a64_0x2d5b();let _0x457b02=_0x2d5bec[_0x56db3c];return _0x457b02;}const a64_0x3e97db=a64_0x457b;(function(_0x7f84f3,_0x328501){const _0x177c64=a64_0x457b,_0x12e6d6=_0x7f84f3();while(!![]){try{const _0x2c6878=parseInt(_0x177c64(0x1dc))/0x1*(-parseInt(_0x177c64(0x1df))/0x2)+parseInt(_0x177c64(0x1d9))/0x3+parseInt(_0x177c64(0x1db))/0x4*(parseInt(_0x177c64(0x1d7))/0x5)+parseInt(_0x177c64(0x1d6))/0x6+-parseInt(_0x177c64(0x1da))/0x7+-parseInt(_0x177c64(0x1d8))/0x8*(parseInt(_0x177c64(0x1d5))/0x9)+parseInt(_0x177c64(0x1d4))/0xa;if(_0x2c6878===_0x328501)break;else _0x12e6d6['push'](_0x12e6d6['shift']());}catch(_0x3c3307){_0x12e6d6['push'](_0x12e6d6['shift']());}}}(a64_0x2d5b,0xa5b3e));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x55af53){const _0x3895e9=await buildSchemaPayload();return{'ok':!![],'data':_0x3895e9};}export const schemaDefinition={'service':'schema','command':a64_0x3e97db(0x1dd),'description':'Export\x20machine-readable\x20command\x20schema\x20(JSON)','risk':a64_0x3e97db(0x1de),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
1
+ const a64_0x23c6e4=a64_0x6fa9;(function(_0x483f44,_0x4a6049){const _0x36f5f9=a64_0x6fa9,_0x387d7e=_0x483f44();while(!![]){try{const _0x575c0c=-parseInt(_0x36f5f9(0x172))/0x1+-parseInt(_0x36f5f9(0x16a))/0x2+-parseInt(_0x36f5f9(0x16e))/0x3+-parseInt(_0x36f5f9(0x173))/0x4*(parseInt(_0x36f5f9(0x16c))/0x5)+parseInt(_0x36f5f9(0x171))/0x6+-parseInt(_0x36f5f9(0x16f))/0x7*(parseInt(_0x36f5f9(0x169))/0x8)+parseInt(_0x36f5f9(0x168))/0x9*(parseInt(_0x36f5f9(0x16d))/0xa);if(_0x575c0c===_0x4a6049)break;else _0x387d7e['push'](_0x387d7e['shift']());}catch(_0x15d6bd){_0x387d7e['push'](_0x387d7e['shift']());}}}(a64_0x2cf2,0xdd367));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x2026e5){const _0x3cd7ca=await buildSchemaPayload();return{'ok':!![],'data':_0x3cd7ca};}function a64_0x6fa9(_0x3e65f7,_0x101986){_0x3e65f7=_0x3e65f7-0x168;const _0x2cf243=a64_0x2cf2();let _0x6fa9b0=_0x2cf243[_0x3e65f7];return _0x6fa9b0;}function a64_0x2cf2(){const _0x2b1457=['7mYVuky','read','4537176aWDhzw','1230286mQUnEr','44lczWHp','67383GDsOiF','5184808omzeQz','3544354ePPXVT','Export\x20machine-readable\x20command\x20schema\x20(JSON)','778660yMUYNP','8090KuJjIU','1630428EGvjkX'];a64_0x2cf2=function(){return _0x2b1457;};return a64_0x2cf2();}export const schemaDefinition={'service':'schema','command':'export','description':a64_0x23c6e4(0x16b),'risk':a64_0x23c6e4(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2a280f,_0x24e3b4){const _0x3492b1=a65_0x31fa,_0x2d6a95=_0x2a280f();while(!![]){try{const _0x287a16=parseInt(_0x3492b1(0xd8))/0x1+parseInt(_0x3492b1(0xe6))/0x2*(-parseInt(_0x3492b1(0xdd))/0x3)+parseInt(_0x3492b1(0x9c))/0x4*(-parseInt(_0x3492b1(0xfc))/0x5)+-parseInt(_0x3492b1(0xb0))/0x6+-parseInt(_0x3492b1(0xec))/0x7*(parseInt(_0x3492b1(0xe8))/0x8)+parseInt(_0x3492b1(0xb8))/0x9+parseInt(_0x3492b1(0xc5))/0xa*(-parseInt(_0x3492b1(0x98))/0xb);if(_0x287a16===_0x24e3b4)break;else _0x2d6a95['push'](_0x2d6a95['shift']());}catch(_0x583621){_0x2d6a95['push'](_0x2d6a95['shift']());}}}(a65_0x3bf8,0x6898f));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';export function resolveDynamicServiceCommand(_0x1545b4,_0xd3b0e6){const _0x31b1b4=a65_0x31fa,_0x2d4332=listLocalServiceTrees();let _0x4b08f9;for(const _0x53f246 of _0x2d4332){const _0x2a06ff=matchServiceTreeCommand(_0x53f246,_0x1545b4);if(!_0x2a06ff)continue;(!_0x4b08f9||_0x2a06ff[_0x31b1b4(0xf8)][_0x31b1b4(0xe7)]['length']>_0x4b08f9['command']['fullPath'][_0x31b1b4(0xd7)])&&(_0x4b08f9={'tree':_0x53f246,'command':_0x2a06ff['command'],'remainingArgs':_0x2a06ff[_0x31b1b4(0xcd)]});}if(!_0x4b08f9)return undefined;const _0x150c05={..._0xd3b0e6};return applyAppBinding(_0x4b08f9[_0x31b1b4(0xc8)],_0x4b08f9[_0x31b1b4(0xf8)],_0x150c05),{'definition':buildDynamicCommandDefinition(_0x4b08f9[_0x31b1b4(0xc8)],_0x4b08f9[_0x31b1b4(0xf8)]),'args':_0x4b08f9[_0x31b1b4(0xcd)],'flags':_0x150c05,'tree':_0x4b08f9[_0x31b1b4(0xc8)],'command':_0x4b08f9[_0x31b1b4(0xf8)]};}export function generateDynamicServiceHelp(_0x4e128b){const _0x17981f=a65_0x31fa,_0x423fcb=listLocalServiceTrees()[_0x17981f(0xaa)](_0x5b21e0=>_0x5b21e0[_0x17981f(0xb5)]['code']===_0x4e128b);if(!_0x423fcb)return undefined;const _0x2359c5=[CLI_BIN_NAME+'\x20'+_0x4e128b+_0x17981f(0xe3),'',_0x423fcb[_0x17981f(0xb5)]['name']||_0x4e128b,_0x423fcb[_0x17981f(0xb5)][_0x17981f(0xac)]?'\x20\x20'+_0x423fcb['service'][_0x17981f(0xac)]:'','',_0x17981f(0xe0),..._0x423fcb['commands'][_0x17981f(0xf1)](_0xf1de4f=>{const _0x12f9fb=_0x17981f,_0x595239=_0xf1de4f[_0x12f9fb(0xe7)]['slice'](0x1)[_0x12f9fb(0xfa)]('\x20'),_0x4999f8=_0xf1de4f[_0x12f9fb(0xbf)]===_0x12f9fb(0xca)?'':'\x20['+_0xf1de4f['risk']+']';return'\x20\x20'+_0x595239['padEnd'](0x18)+'\x20'+(_0xf1de4f[_0x12f9fb(0xac)]||'')+_0x4999f8;}),'',_0x17981f(0xdc)+CLI_BIN_NAME+_0x17981f(0xa5)+_0x4e128b+_0x17981f(0xb4)][_0x17981f(0x9a)](Boolean);return _0x2359c5[_0x17981f(0xfa)]('\x0a');}export function listDynamicServiceEntries(){const _0x3d3e40=a65_0x31fa;return listLocalServices()[_0x3d3e40(0xf1)](_0x27546a=>{const _0x2e2bd3=_0x3d3e40,_0x131293=_0x27546a['normalizedManifest'];return{'service':_0x131293[_0x2e2bd3(0xb5)]['code'],'label':_0x131293[_0x2e2bd3(0xb5)]['name']||_0x131293['service']['code'],'commands':_0x131293[_0x2e2bd3(0xf3)][_0x2e2bd3(0xf1)](_0x4aaedb=>({'command':dynamicCommandName(_0x4aaedb),'description':_0x4aaedb[_0x2e2bd3(0xac)]||_0x2e2bd3(0xa9)+_0x4aaedb['cliPath'],'tag':riskTag(_0x4aaedb[_0x2e2bd3(0xbf)])}))};});}export function getDynamicServiceEntry(_0x52856b){const _0x2bf1df=a65_0x31fa;return listDynamicServiceEntries()[_0x2bf1df(0xaa)](_0x4848d1=>_0x4848d1[_0x2bf1df(0xb5)]===_0x52856b);}export function listDynamicServiceDefinitions(_0x1bbbbb){const _0x4010c4=a65_0x31fa;return listLocalServiceTrees()[_0x4010c4(0x9a)](_0x1918f4=>!_0x1bbbbb||_0x1918f4[_0x4010c4(0xb5)]['code']===_0x1bbbbb)[_0x4010c4(0xd5)](_0x4aa2ec=>_0x4aa2ec[_0x4010c4(0xf3)][_0x4010c4(0xf1)](_0xa28d29=>buildDynamicCommandDefinition(_0x4aa2ec,_0xa28d29)));}function a65_0x3bf8(){const _0x49dccc=['The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20high-risk\x20write.\x20It\x20may\x20make\x20business\x20changes\x20that\x20are\x20hard\x20to\x20reverse.','Run\x20service\x20command\x20','find','\x20\x20\x20\x20functionName:\x20','description','operator','\x20requires\x20target.functionName.','\x20\x20SERVICE\x20TREE\x20TARGET','294030nWDcKw','cliName','\x20\x20MAP\x20TO','app','`\x20to\x20inspect\x20the\x20manifest.','service','validation','SERVICE_TREE','6379317ggDnTp','number','\x20\x20\x20\x20','data','sql','mapTo','args','risk','const','scriptName','enum','\x20->\x20','Define\x20the\x20appRef\x20under\x20appBindings\x20or\x20remove\x20target.appRef.','19280zmOgbE','appBindings','nickName','tree','code','read','\x22\x20to\x20a\x20datasetCode\x20in\x20app\x20','tenantCode','remainingArgs','ctx.','env','envName','\x20\x20\x20\x20kind:\x20\x20\x20\x20','Service\x20command\x20','default','Cannot\x20resolve\x20datatable\x20\x22','flatMap','appcode','length','762007ktTneZ','trim','fromEntries','required','Use\x20`','12YNFxLK','name','rawFlags','Commands:','cliPath','This\x20will\x20run\x20Service\x20Tree\x20command\x20\x22','\x20<command>\x20[flags]','boolean','now','180552KQGYzv','fullPath','337120PaicoA','bffCode','slice','datasetCode','21TDnXmj','datatable','type','appRef','startsWith','map','sqlCode','commands','high-risk-write','Preview\x20dynamic\x20service\x20command:\x20','employeeId','\x22.\x20','command','appCode','join','target','4340PNlNZu','userName','tableName','\x20\x20[','bff','\x20requires\x20target.datasetCode\x20or\x20target.datatable.','string','loginName','\x20\x20\x20\x20datatable:\x20','2277mMNVks','bffId','filter','\x20\x20\x20\x20datasetCode:\x20','492TWRvZG','flags','username','source','dbtableConfig','\x20completed\x20in\x20','kind','userId','entries','\x20service\x20detail\x20--service\x20','params','push'];a65_0x3bf8=function(){return _0x49dccc;};return a65_0x3bf8();}export function getDynamicServiceDefinitions(_0x1d23d8){const _0xbe16ce=listDynamicServiceDefinitions(_0x1d23d8);return _0xbe16ce['length']>0x0?_0xbe16ce:undefined;}export function findDynamicServiceDefinition(_0x3d5740,_0x261750){const _0x2a145f=a65_0x31fa;return listDynamicServiceDefinitions(_0x3d5740)[_0x2a145f(0xaa)](_0x1060f8=>_0x1060f8[_0x2a145f(0xf8)]===_0x261750);}export function buildDynamicCommandDefinition(_0x2e7aa2,_0x333e06){const _0x662cd4=a65_0x31fa;return{'service':_0x2e7aa2[_0x662cd4(0xb5)][_0x662cd4(0xc9)],'command':dynamicCommandName(_0x333e06),'description':_0x333e06[_0x662cd4(0xac)]||_0x662cd4(0xa9)+_0x333e06[_0x662cd4(0xe1)],'risk':_0x333e06['risk'],..._0x333e06['risk']==='read'?{}:{'confirmationDescription':buildDynamicConfirmationDescription(_0x333e06)},'requiresAuth':!![],'requiresAppCode':!![],'args':_0x333e06['args']['map'](_0x109c7d=>({'name':_0x109c7d[_0x662cd4(0xde)],'description':_0x109c7d['description']||_0x109c7d['name'],'required':_0x109c7d[_0x662cd4(0xdb)]})),'flags':_0x333e06[_0x662cd4(0x9d)][_0x662cd4(0xf1)](flagToCommandFlag),'helpExtra':()=>renderDynamicCommandHelp(_0x333e06),async 'dryRun'(_0x5990b8){const _0x28749a=_0x662cd4,_0x16b4e6=await compilePlan(_0x333e06,_0x5990b8);return{'method':_0x28749a(0xb7),'url':_0x333e06[_0x28749a(0xe1)],'body':{'target':targetPreview(_0x16b4e6),'params':_0x16b4e6['params']},'description':_0x28749a(0xf5)+_0x333e06[_0x28749a(0xe1)]};},async 'execute'(_0x12a176){const _0x55c368=_0x662cd4,_0x384e46=await compilePlan(_0x333e06,_0x12a176),_0x593281=Date[_0x55c368(0xe5)](),_0x42085b=await executePlan(_0x384e46,_0x333e06,_0x12a176),_0x13ad5d=Date[_0x55c368(0xe5)]()-_0x593281;return{'ok':!![],'data':{'service':_0x2e7aa2[_0x55c368(0xb5)],'command':_0x333e06['cliPath'],'target':targetPreview(_0x384e46),'result':_0x42085b,'elapsed':_0x13ad5d},'message':'Service\x20command\x20'+_0x333e06[_0x55c368(0xe1)]+_0x55c368(0xa1)+_0x13ad5d+'ms'};}};}function buildDynamicConfirmationDescription(_0x504ef8){const _0x4b53bd=a65_0x31fa,_0x3686cf=_0x504ef8[_0x4b53bd(0xac)]||_0x504ef8[_0x4b53bd(0xe1)],_0x3ed1c6=_0x504ef8['risk']===_0x4b53bd(0xf4)?_0x4b53bd(0xa8):'The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20write.\x20It\x20may\x20change\x20business\x20data\x20or\x20service\x20state.';return _0x4b53bd(0xe2)+_0x3686cf+_0x4b53bd(0xf7)+_0x3ed1c6;}function dynamicCommandName(_0x2143ea){const _0x442e8f=a65_0x31fa;return _0x2143ea[_0x442e8f(0xe7)][_0x442e8f(0xea)](0x1)[_0x442e8f(0xfa)]('\x20');}function riskTag(_0x57532e){const _0x438a83=a65_0x31fa;return _0x57532e===_0x438a83(0xca)?'':_0x438a83(0x92)+_0x57532e+']';}function flagToCommandFlag(_0x573e54){const _0x532b86=a65_0x31fa;return{'name':_0x573e54[_0x532b86(0xb1)],'type':_0x573e54[_0x532b86(0xee)]==='json'?_0x532b86(0x95):_0x573e54[_0x532b86(0xee)],'description':_0x573e54['description']||_0x573e54[_0x532b86(0xde)],'required':_0x573e54[_0x532b86(0xdb)],'default':isPrimitiveFlagDefault(_0x573e54[_0x532b86(0xd3)])?_0x573e54[_0x532b86(0xd3)]:undefined,'enum':_0x573e54[_0x532b86(0xc2)]};}async function compilePlan(_0x587bb5,_0x5574a1){const _0x5df85d=a65_0x31fa;return compileServiceTreeCommand(_0x587bb5,{'flags':_0x5574a1[_0x5df85d(0xdf)],'args':_0x5574a1[_0x5df85d(0xbe)],'context':await buildServiceContext(_0x587bb5,_0x5574a1)});}async function buildServiceContext(_0x5a1970,_0x2c1727){const _0x3ca744=a65_0x31fa,_0xc13043={'appCode':_0x2c1727[_0x3ca744(0xf9)],'env':_0x2c1727['envName'],'envName':_0x2c1727[_0x3ca744(0xd0)]};if(!usesRuntimeContext(_0x5a1970))return _0xc13043;const _0x59a5e1=await getLoginUserInfo(),_0x1c43e3=pickFirst(_0x59a5e1[_0x3ca744(0xa3)],_0x59a5e1['id']);return{..._0xc13043,'user':_0x59a5e1,'userId':_0x1c43e3,'id':_0x59a5e1['id'],'username':pickFirst(_0x59a5e1[_0x3ca744(0x9e)],_0x59a5e1['userName'],_0x59a5e1[_0x3ca744(0x96)]),'userName':_0x59a5e1[_0x3ca744(0xfd)],'nickname':pickFirst(_0x59a5e1['nickname'],_0x59a5e1[_0x3ca744(0xc7)]),'nickName':_0x59a5e1['nickName'],'tenantCode':_0x59a5e1[_0x3ca744(0xcc)],'employeeId':_0x59a5e1[_0x3ca744(0xf6)]};}function usesRuntimeContext(_0x5b6038){const _0x2c9192=a65_0x31fa;return _0x5b6038[_0x2c9192(0xbd)]['some'](_0x59d9db=>typeof _0x59d9db['source']===_0x2c9192(0x95)&&(_0x59d9db[_0x2c9192(0x9f)][_0x2c9192(0xf0)]('context.')||_0x59d9db['source'][_0x2c9192(0xf0)](_0x2c9192(0xce))));}function pickFirst(..._0x5af354){const _0x182e69=a65_0x31fa;return _0x5af354[_0x182e69(0xaa)](_0x43527e=>_0x43527e!==undefined&&_0x43527e!==null);}async function executePlan(_0x1bf759,_0x329a50,_0x2c524f){const _0x3671fa=a65_0x31fa;if(_0x1bf759[_0x3671fa(0xa2)]===_0x3671fa(0xbb)){const _0x25b3fb=await resolveDatasetCode(_0x1bf759,_0x329a50,_0x2c524f);return executeData(_0x25b3fb,_0x1bf759['command'],_0x1bf759[_0x3671fa(0xa6)]);}if(_0x1bf759[_0x3671fa(0xa2)]===_0x3671fa(0xbc)){if(!_0x1bf759[_0x3671fa(0xf2)])throw CliErrors[_0x3671fa(0xb6)](_0x3671fa(0xd2)+_0x329a50[_0x3671fa(0xe1)]+'\x20requires\x20target.sqlCode.');return executeSdkSql(_0x1bf759[_0x3671fa(0xf2)],normalizeScalarParams(_0x1bf759[_0x3671fa(0xa6)]));}if(_0x1bf759[_0x3671fa(0xa2)]===_0x3671fa(0x93)){const _0x531501=_0x1bf759[_0x3671fa(0xc1)]||_0x1bf759[_0x3671fa(0xe9)]||(_0x1bf759[_0x3671fa(0x99)]==null?'':String(_0x1bf759[_0x3671fa(0x99)]));if(!_0x531501)throw CliErrors[_0x3671fa(0xb6)](_0x3671fa(0xd2)+_0x329a50[_0x3671fa(0xe1)]+_0x3671fa(0xae));return executeSdkBff(_0x531501,_0x1bf759[_0x3671fa(0xa6)]);}throw CliErrors[_0x3671fa(0xb6)]('Unsupported\x20service\x20target\x20kind:\x20'+_0x1bf759[_0x3671fa(0xa2)]);}async function resolveDatasetCode(_0x49db08,_0x27c21a,_0x27e6c7){const _0x5b32ff=a65_0x31fa;if(_0x49db08[_0x5b32ff(0xeb)])return _0x49db08['datasetCode'];if(!_0x49db08[_0x5b32ff(0xed)])throw CliErrors[_0x5b32ff(0xb6)](_0x5b32ff(0xd2)+_0x27c21a[_0x5b32ff(0xe1)]+_0x5b32ff(0x94));const _0x3b0494=await listDatasets(_0x27e6c7[_0x5b32ff(0xf9)]),_0x7f2cc5=_0x3b0494[_0x5b32ff(0xaa)](_0x588ec3=>_0x588ec3[_0x5b32ff(0xa0)]?.[_0x5b32ff(0x91)]===_0x49db08[_0x5b32ff(0xed)]);if(!_0x7f2cc5?.['code'])throw CliErrors['validation'](_0x5b32ff(0xd4)+_0x49db08['datatable']+_0x5b32ff(0xcb)+_0x27e6c7[_0x5b32ff(0xf9)]+'.','Use\x20lovrabet\x20dataset\x20list\x20to\x20confirm\x20the\x20physical\x20table\x20name\x20or\x20add\x20target.datasetCode\x20to\x20the\x20manifest.');return _0x7f2cc5[_0x5b32ff(0xc9)];}function applyAppBinding(_0x3ac152,_0x33c670,_0x5b662e){const _0x51ae90=a65_0x31fa,_0x68c2f9=_0x33c670[_0x51ae90(0xfb)][_0x51ae90(0xef)];if(!_0x68c2f9)return;const _0x4b9703=_0x3ac152[_0x51ae90(0xc6)][_0x68c2f9];if(!_0x4b9703)throw CliErrors['validation']('Unknown\x20appRef\x20\x22'+_0x68c2f9+'\x22\x20in\x20service\x20command\x20'+_0x33c670[_0x51ae90(0xe1)]+'.',_0x51ae90(0xc4));const _0x1e84c5=_0x4b9703[_0x51ae90(0xd6)]||_0x4b9703[_0x51ae90(0xf9)];_0x1e84c5&&!hasText(_0x5b662e['appcode'])&&(_0x5b662e[_0x51ae90(0xd6)]=_0x1e84c5),_0x4b9703[_0x51ae90(0xb3)]&&!hasText(_0x5b662e['app'])&&!hasText(_0x5b662e[_0x51ae90(0xd6)])&&(_0x5b662e[_0x51ae90(0xb3)]=_0x4b9703['app']),_0x4b9703['env']&&!hasText(_0x5b662e['env'])&&(_0x5b662e[_0x51ae90(0xcf)]=_0x4b9703[_0x51ae90(0xcf)]);}function renderDynamicCommandHelp(_0xef613){const _0x158d29=a65_0x31fa,_0x3cf82f=[_0x158d29(0xaf),_0x158d29(0xd1)+_0xef613[_0x158d29(0xfb)][_0x158d29(0xa2)],'\x20\x20\x20\x20command:\x20'+_0xef613['target']['command']];if(_0xef613[_0x158d29(0xfb)][_0x158d29(0xeb)])_0x3cf82f['push'](_0x158d29(0x9b)+_0xef613['target'][_0x158d29(0xeb)]);if(_0xef613[_0x158d29(0xfb)][_0x158d29(0xed)])_0x3cf82f[_0x158d29(0xa7)](_0x158d29(0x97)+_0xef613[_0x158d29(0xfb)][_0x158d29(0xed)]);if(_0xef613[_0x158d29(0xfb)]['sqlCode'])_0x3cf82f[_0x158d29(0xa7)]('\x20\x20\x20\x20sqlCode:\x20'+_0xef613['target']['sqlCode']);if(_0xef613[_0x158d29(0xfb)][_0x158d29(0xc1)])_0x3cf82f[_0x158d29(0xa7)](_0x158d29(0xab)+_0xef613[_0x158d29(0xfb)]['scriptName']);if(_0xef613['mapTo']['length']>0x0){_0x3cf82f[_0x158d29(0xa7)]('',_0x158d29(0xb2));for(const _0x380771 of _0xef613[_0x158d29(0xbd)]){_0x3cf82f[_0x158d29(0xa7)](_0x158d29(0xba)+(_0x380771['source']||_0x158d29(0xc0))+_0x158d29(0xc3)+_0x380771['target']+(_0x380771[_0x158d29(0xad)]?'.'+_0x380771[_0x158d29(0xad)]:''));}}return _0x3cf82f[_0x158d29(0xfa)]('\x0a');}function targetPreview(_0x5c55c4){const _0x64b5d6=a65_0x31fa;return{'kind':_0x5c55c4['kind'],'command':_0x5c55c4[_0x64b5d6(0xf8)],'appRef':_0x5c55c4[_0x64b5d6(0xef)],'datasetCode':_0x5c55c4[_0x64b5d6(0xeb)],'datatable':_0x5c55c4[_0x64b5d6(0xed)],'sqlCode':_0x5c55c4[_0x64b5d6(0xf2)],'bffCode':_0x5c55c4[_0x64b5d6(0xe9)],'bffId':_0x5c55c4[_0x64b5d6(0x99)],'functionName':_0x5c55c4[_0x64b5d6(0xc1)]};}function normalizeScalarParams(_0x2fdd29){const _0x443bc1=a65_0x31fa;return Object[_0x443bc1(0xda)](Object[_0x443bc1(0xa4)](_0x2fdd29)[_0x443bc1(0x9a)](([,_0x5eb478])=>typeof _0x5eb478===_0x443bc1(0x95)||typeof _0x5eb478===_0x443bc1(0xb9)));}function hasText(_0x307261){const _0x13ee36=a65_0x31fa;return typeof _0x307261===_0x13ee36(0x95)&&_0x307261[_0x13ee36(0xd9)]()[_0x13ee36(0xd7)]>0x0;}function a65_0x31fa(_0x1c3b08,_0x226f7c){_0x1c3b08=_0x1c3b08-0x91;const _0x3bf8cf=a65_0x3bf8();let _0x31fa93=_0x3bf8cf[_0x1c3b08];return _0x31fa93;}function isPrimitiveFlagDefault(_0x33e438){const _0x55d670=a65_0x31fa;return _0x33e438===undefined||typeof _0x33e438===_0x55d670(0x95)||typeof _0x33e438===_0x55d670(0xb9)||typeof _0x33e438===_0x55d670(0xe4);}
1
+ (function(_0xc3fb9c,_0x132206){const _0x3e341c=a65_0x1717,_0x25a5b2=_0xc3fb9c();while(!![]){try{const _0x37b3b0=parseInt(_0x3e341c(0x94))/0x1*(parseInt(_0x3e341c(0xd5))/0x2)+-parseInt(_0x3e341c(0xc6))/0x3+-parseInt(_0x3e341c(0xc0))/0x4+parseInt(_0x3e341c(0xde))/0x5+parseInt(_0x3e341c(0x9a))/0x6+parseInt(_0x3e341c(0xd3))/0x7+-parseInt(_0x3e341c(0xb3))/0x8*(parseInt(_0x3e341c(0xad))/0x9);if(_0x37b3b0===_0x132206)break;else _0x25a5b2['push'](_0x25a5b2['shift']());}catch(_0x240201){_0x25a5b2['push'](_0x25a5b2['shift']());}}}(a65_0x5466,0xae86f));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';function a65_0x5466(){const _0x512899=['params','required','name','source','sql','ctx.','rawFlags','risk','envName','datasetCode','8961204hGqRlY','number','2082eWyFdL','userName','read','dbtableConfig','Define\x20the\x20appRef\x20under\x20appBindings\x20or\x20remove\x20target.appRef.','flags','trim','scriptName','join','5893510bHNUDG','slice','The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20high-risk\x20write.\x20It\x20may\x20make\x20business\x20changes\x20that\x20are\x20hard\x20to\x20reverse.','flatMap','filter','enum','cliName','operator','boolean','appcode','cliPath','json','Unknown\x20appRef\x20\x22','app','Commands:','appRef','padEnd','type','\x20<command>\x20[flags]','nickName','commands','const','\x22\x20in\x20service\x20command\x20','mapTo','find','\x20\x20MAP\x20TO','554eeVZiN','some','userId','length','env','startsWith','3201600NbWtOh','\x20\x20\x20\x20datatable:\x20','\x20completed\x20in\x20','Use\x20`','description','data','\x20->\x20','Run\x20service\x20command\x20','string','bffCode','normalizedManifest','args','appBindings','fromEntries','remainingArgs','\x20service\x20detail\x20--service\x20','appCode','sqlCode','validation','17973SAyLqy','`\x20to\x20inspect\x20the\x20manifest.','tenantCode','datatable','service','SERVICE_TREE','2792CHEzzx','now','kind','Service\x20command\x20','fullPath','bffId','This\x20will\x20run\x20Service\x20Tree\x20command\x20\x22','code','\x20\x20[','tableName','\x20\x20\x20\x20command:\x20','tree','map','3315072uvPUCm','target','command','push','high-risk-write','loginName','3985812eTrgrP','bff','Unsupported\x20service\x20target\x20kind:\x20'];a65_0x5466=function(){return _0x512899;};return a65_0x5466();}import{CLI_BIN_NAME}from'../../constant/cli.js';export function resolveDynamicServiceCommand(_0x3d68c4,_0x3d5e5c){const _0x5340f9=a65_0x1717,_0x1436ee=listLocalServiceTrees();let _0x311fde;for(const _0x9f3bda of _0x1436ee){const _0x123290=matchServiceTreeCommand(_0x9f3bda,_0x3d68c4);if(!_0x123290)continue;(!_0x311fde||_0x123290[_0x5340f9(0xc2)][_0x5340f9(0xb7)][_0x5340f9(0x97)]>_0x311fde[_0x5340f9(0xc2)][_0x5340f9(0xb7)][_0x5340f9(0x97)])&&(_0x311fde={'tree':_0x9f3bda,'command':_0x123290[_0x5340f9(0xc2)],'remainingArgs':_0x123290[_0x5340f9(0xa8)]});}if(!_0x311fde)return undefined;const _0x5e141c={..._0x3d5e5c};return applyAppBinding(_0x311fde[_0x5340f9(0xbe)],_0x311fde[_0x5340f9(0xc2)],_0x5e141c),{'definition':buildDynamicCommandDefinition(_0x311fde['tree'],_0x311fde['command']),'args':_0x311fde[_0x5340f9(0xa8)],'flags':_0x5e141c,'tree':_0x311fde[_0x5340f9(0xbe)],'command':_0x311fde[_0x5340f9(0xc2)]};}export function generateDynamicServiceHelp(_0x38def3){const _0x4d93a7=a65_0x1717,_0x2850ae=listLocalServiceTrees()['find'](_0x25826b=>_0x25826b[_0x4d93a7(0xb1)][_0x4d93a7(0xba)]===_0x38def3);if(!_0x2850ae)return undefined;const _0x22ff43=[CLI_BIN_NAME+'\x20'+_0x38def3+_0x4d93a7(0x8c),'',_0x2850ae[_0x4d93a7(0xb1)]['name']||_0x38def3,_0x2850ae[_0x4d93a7(0xb1)][_0x4d93a7(0x9e)]?'\x20\x20'+_0x2850ae['service']['description']:'','',_0x4d93a7(0x88),..._0x2850ae[_0x4d93a7(0x8e)][_0x4d93a7(0xbf)](_0x533e62=>{const _0x354c33=_0x4d93a7,_0x3d180c=_0x533e62[_0x354c33(0xb7)][_0x354c33(0xdf)](0x1)[_0x354c33(0xdd)]('\x20'),_0x2be06a=_0x533e62[_0x354c33(0xd0)]===_0x354c33(0xd7)?'':'\x20['+_0x533e62[_0x354c33(0xd0)]+']';return'\x20\x20'+_0x3d180c[_0x354c33(0x8a)](0x18)+'\x20'+(_0x533e62[_0x354c33(0x9e)]||'')+_0x2be06a;}),'',_0x4d93a7(0x9d)+CLI_BIN_NAME+_0x4d93a7(0xa9)+_0x38def3+_0x4d93a7(0xae)]['filter'](Boolean);return _0x22ff43[_0x4d93a7(0xdd)]('\x0a');}export function listDynamicServiceEntries(){const _0x2d2d77=a65_0x1717;return listLocalServices()[_0x2d2d77(0xbf)](_0x12773e=>{const _0xc5f544=_0x2d2d77,_0x787f0c=_0x12773e[_0xc5f544(0xa4)];return{'service':_0x787f0c[_0xc5f544(0xb1)][_0xc5f544(0xba)],'label':_0x787f0c[_0xc5f544(0xb1)][_0xc5f544(0xcb)]||_0x787f0c[_0xc5f544(0xb1)][_0xc5f544(0xba)],'commands':_0x787f0c[_0xc5f544(0x8e)][_0xc5f544(0xbf)](_0x3bcbaf=>({'command':dynamicCommandName(_0x3bcbaf),'description':_0x3bcbaf[_0xc5f544(0x9e)]||_0xc5f544(0xa1)+_0x3bcbaf['cliPath'],'tag':riskTag(_0x3bcbaf[_0xc5f544(0xd0)])}))};});}export function getDynamicServiceEntry(_0x2032a4){const _0xcc98fe=a65_0x1717;return listDynamicServiceEntries()[_0xcc98fe(0x92)](_0x111036=>_0x111036[_0xcc98fe(0xb1)]===_0x2032a4);}export function listDynamicServiceDefinitions(_0x3fd9fb){const _0x3c875f=a65_0x1717;return listLocalServiceTrees()[_0x3c875f(0xe2)](_0x5aef16=>!_0x3fd9fb||_0x5aef16[_0x3c875f(0xb1)][_0x3c875f(0xba)]===_0x3fd9fb)[_0x3c875f(0xe1)](_0x595a2c=>_0x595a2c[_0x3c875f(0x8e)][_0x3c875f(0xbf)](_0x5001e7=>buildDynamicCommandDefinition(_0x595a2c,_0x5001e7)));}export function getDynamicServiceDefinitions(_0x20dcfb){const _0x3808b1=listDynamicServiceDefinitions(_0x20dcfb);return _0x3808b1['length']>0x0?_0x3808b1:undefined;}export function findDynamicServiceDefinition(_0x1ccf47,_0x334525){const _0x3daadf=a65_0x1717;return listDynamicServiceDefinitions(_0x1ccf47)[_0x3daadf(0x92)](_0x290b05=>_0x290b05[_0x3daadf(0xc2)]===_0x334525);}export function buildDynamicCommandDefinition(_0x31cedb,_0x1d0b6a){const _0xadd2ae=a65_0x1717;return{'service':_0x31cedb[_0xadd2ae(0xb1)][_0xadd2ae(0xba)],'command':dynamicCommandName(_0x1d0b6a),'description':_0x1d0b6a[_0xadd2ae(0x9e)]||_0xadd2ae(0xa1)+_0x1d0b6a[_0xadd2ae(0x84)],'risk':_0x1d0b6a[_0xadd2ae(0xd0)],..._0x1d0b6a[_0xadd2ae(0xd0)]===_0xadd2ae(0xd7)?{}:{'confirmationDescription':buildDynamicConfirmationDescription(_0x1d0b6a)},'requiresAuth':!![],'requiresAppCode':!![],'args':_0x1d0b6a['args'][_0xadd2ae(0xbf)](_0x3a0383=>({'name':_0x3a0383[_0xadd2ae(0xcb)],'description':_0x3a0383[_0xadd2ae(0x9e)]||_0x3a0383[_0xadd2ae(0xcb)],'required':_0x3a0383[_0xadd2ae(0xca)]})),'flags':_0x1d0b6a[_0xadd2ae(0xda)][_0xadd2ae(0xbf)](flagToCommandFlag),'helpExtra':()=>renderDynamicCommandHelp(_0x1d0b6a),async 'dryRun'(_0x1b3174){const _0x13c51b=_0xadd2ae,_0x43acdf=await compilePlan(_0x1d0b6a,_0x1b3174);return{'method':_0x13c51b(0xb2),'url':_0x1d0b6a['cliPath'],'body':{'target':targetPreview(_0x43acdf),'params':_0x43acdf[_0x13c51b(0xc9)]},'description':'Preview\x20dynamic\x20service\x20command:\x20'+_0x1d0b6a[_0x13c51b(0x84)]};},async 'execute'(_0x2063e6){const _0x426a46=_0xadd2ae,_0x143333=await compilePlan(_0x1d0b6a,_0x2063e6),_0x4401db=Date['now'](),_0xf583a2=await executePlan(_0x143333,_0x1d0b6a,_0x2063e6),_0x52b211=Date[_0x426a46(0xb4)]()-_0x4401db;return{'ok':!![],'data':{'service':_0x31cedb[_0x426a46(0xb1)],'command':_0x1d0b6a[_0x426a46(0x84)],'target':targetPreview(_0x143333),'result':_0xf583a2,'elapsed':_0x52b211},'message':_0x426a46(0xb6)+_0x1d0b6a[_0x426a46(0x84)]+_0x426a46(0x9c)+_0x52b211+'ms'};}};}function buildDynamicConfirmationDescription(_0x2362be){const _0x245091=a65_0x1717,_0x2854ed=_0x2362be[_0x245091(0x9e)]||_0x2362be[_0x245091(0x84)],_0x178825=_0x2362be[_0x245091(0xd0)]===_0x245091(0xc4)?_0x245091(0xe0):'The\x20manifest\x20marks\x20this\x20command\x20as\x20a\x20write.\x20It\x20may\x20change\x20business\x20data\x20or\x20service\x20state.';return _0x245091(0xb9)+_0x2854ed+'\x22.\x20'+_0x178825;}function dynamicCommandName(_0x3fa6d3){const _0x517f2a=a65_0x1717;return _0x3fa6d3['fullPath'][_0x517f2a(0xdf)](0x1)[_0x517f2a(0xdd)]('\x20');}function riskTag(_0x254f01){const _0x349b77=a65_0x1717;return _0x254f01===_0x349b77(0xd7)?'':_0x349b77(0xbb)+_0x254f01+']';}function flagToCommandFlag(_0xea9eb5){const _0x4c65da=a65_0x1717;return{'name':_0xea9eb5[_0x4c65da(0xe4)],'type':_0xea9eb5['type']===_0x4c65da(0x85)?_0x4c65da(0xa2):_0xea9eb5[_0x4c65da(0x8b)],'description':_0xea9eb5[_0x4c65da(0x9e)]||_0xea9eb5['name'],'required':_0xea9eb5[_0x4c65da(0xca)],'default':isPrimitiveFlagDefault(_0xea9eb5['default'])?_0xea9eb5['default']:undefined,'enum':_0xea9eb5[_0x4c65da(0xe3)]};}async function compilePlan(_0x23b3ba,_0x283b37){const _0x21d98f=a65_0x1717;return compileServiceTreeCommand(_0x23b3ba,{'flags':_0x283b37[_0x21d98f(0xcf)],'args':_0x283b37[_0x21d98f(0xa5)],'context':await buildServiceContext(_0x23b3ba,_0x283b37)});}async function buildServiceContext(_0x313d5c,_0x333f17){const _0x2f82df=a65_0x1717,_0x410e78={'appCode':_0x333f17[_0x2f82df(0xaa)],'env':_0x333f17[_0x2f82df(0xd1)],'envName':_0x333f17[_0x2f82df(0xd1)]};if(!usesRuntimeContext(_0x313d5c))return _0x410e78;const _0x71e95d=await getLoginUserInfo(),_0x30e1d1=pickFirst(_0x71e95d[_0x2f82df(0x96)],_0x71e95d['id']);return{..._0x410e78,'user':_0x71e95d,'userId':_0x30e1d1,'id':_0x71e95d['id'],'username':pickFirst(_0x71e95d['username'],_0x71e95d[_0x2f82df(0xd6)],_0x71e95d[_0x2f82df(0xc5)]),'userName':_0x71e95d[_0x2f82df(0xd6)],'nickname':pickFirst(_0x71e95d['nickname'],_0x71e95d[_0x2f82df(0x8d)]),'nickName':_0x71e95d[_0x2f82df(0x8d)],'tenantCode':_0x71e95d[_0x2f82df(0xaf)],'employeeId':_0x71e95d['employeeId']};}function usesRuntimeContext(_0xbf17a9){const _0x58b5c1=a65_0x1717;return _0xbf17a9[_0x58b5c1(0x91)][_0x58b5c1(0x95)](_0x36cfbc=>typeof _0x36cfbc[_0x58b5c1(0xcc)]===_0x58b5c1(0xa2)&&(_0x36cfbc[_0x58b5c1(0xcc)][_0x58b5c1(0x99)]('context.')||_0x36cfbc[_0x58b5c1(0xcc)][_0x58b5c1(0x99)](_0x58b5c1(0xce))));}function pickFirst(..._0x17bb0a){const _0x8c98ed=a65_0x1717;return _0x17bb0a[_0x8c98ed(0x92)](_0x47eaeb=>_0x47eaeb!==undefined&&_0x47eaeb!==null);}async function executePlan(_0xd68ed8,_0x55644e,_0x15a137){const _0x2cc5e5=a65_0x1717;if(_0xd68ed8[_0x2cc5e5(0xb5)]===_0x2cc5e5(0x9f)){const _0x49cddb=await resolveDatasetCode(_0xd68ed8,_0x55644e,_0x15a137);return executeData(_0x49cddb,_0xd68ed8[_0x2cc5e5(0xc2)],_0xd68ed8[_0x2cc5e5(0xc9)]);}if(_0xd68ed8[_0x2cc5e5(0xb5)]===_0x2cc5e5(0xcd)){if(!_0xd68ed8[_0x2cc5e5(0xab)])throw CliErrors[_0x2cc5e5(0xac)](_0x2cc5e5(0xb6)+_0x55644e[_0x2cc5e5(0x84)]+'\x20requires\x20target.sqlCode.');return executeSdkSql(_0xd68ed8['sqlCode'],normalizeScalarParams(_0xd68ed8[_0x2cc5e5(0xc9)]));}if(_0xd68ed8[_0x2cc5e5(0xb5)]===_0x2cc5e5(0xc7)){const _0x500587=_0xd68ed8[_0x2cc5e5(0xdc)]||_0xd68ed8[_0x2cc5e5(0xa3)]||(_0xd68ed8['bffId']==null?'':String(_0xd68ed8[_0x2cc5e5(0xb8)]));if(!_0x500587)throw CliErrors[_0x2cc5e5(0xac)]('Service\x20command\x20'+_0x55644e[_0x2cc5e5(0x84)]+'\x20requires\x20target.functionName.');return executeSdkBff(_0x500587,_0xd68ed8[_0x2cc5e5(0xc9)]);}throw CliErrors[_0x2cc5e5(0xac)](_0x2cc5e5(0xc8)+_0xd68ed8[_0x2cc5e5(0xb5)]);}async function resolveDatasetCode(_0x894a1f,_0x445efa,_0x416ec0){const _0x5caf48=a65_0x1717;if(_0x894a1f['datasetCode'])return _0x894a1f['datasetCode'];if(!_0x894a1f['datatable'])throw CliErrors[_0x5caf48(0xac)](_0x5caf48(0xb6)+_0x445efa[_0x5caf48(0x84)]+'\x20requires\x20target.datasetCode\x20or\x20target.datatable.');const _0x1561dc=await listDatasets(_0x416ec0[_0x5caf48(0xaa)]),_0xb6b8d3=_0x1561dc[_0x5caf48(0x92)](_0x18582f=>_0x18582f[_0x5caf48(0xd8)]?.[_0x5caf48(0xbc)]===_0x894a1f[_0x5caf48(0xb0)]);if(!_0xb6b8d3?.[_0x5caf48(0xba)])throw CliErrors[_0x5caf48(0xac)]('Cannot\x20resolve\x20datatable\x20\x22'+_0x894a1f[_0x5caf48(0xb0)]+'\x22\x20to\x20a\x20datasetCode\x20in\x20app\x20'+_0x416ec0[_0x5caf48(0xaa)]+'.','Use\x20lovrabet\x20dataset\x20list\x20to\x20confirm\x20the\x20physical\x20table\x20name\x20or\x20add\x20target.datasetCode\x20to\x20the\x20manifest.');return _0xb6b8d3['code'];}function a65_0x1717(_0x30ab9e,_0x2d27e0){_0x30ab9e=_0x30ab9e-0x84;const _0x54660a=a65_0x5466();let _0x171747=_0x54660a[_0x30ab9e];return _0x171747;}function applyAppBinding(_0x2d3662,_0x4df70e,_0x291bb4){const _0x10f703=a65_0x1717,_0x1fb06a=_0x4df70e['target'][_0x10f703(0x89)];if(!_0x1fb06a)return;const _0x3d05b1=_0x2d3662[_0x10f703(0xa6)][_0x1fb06a];if(!_0x3d05b1)throw CliErrors[_0x10f703(0xac)](_0x10f703(0x86)+_0x1fb06a+_0x10f703(0x90)+_0x4df70e[_0x10f703(0x84)]+'.',_0x10f703(0xd9));const _0x19f01f=_0x3d05b1[_0x10f703(0xe7)]||_0x3d05b1[_0x10f703(0xaa)];_0x19f01f&&!hasText(_0x291bb4[_0x10f703(0xe7)])&&(_0x291bb4[_0x10f703(0xe7)]=_0x19f01f),_0x3d05b1[_0x10f703(0x87)]&&!hasText(_0x291bb4[_0x10f703(0x87)])&&!hasText(_0x291bb4['appcode'])&&(_0x291bb4[_0x10f703(0x87)]=_0x3d05b1[_0x10f703(0x87)]),_0x3d05b1[_0x10f703(0x98)]&&!hasText(_0x291bb4[_0x10f703(0x98)])&&(_0x291bb4[_0x10f703(0x98)]=_0x3d05b1[_0x10f703(0x98)]);}function renderDynamicCommandHelp(_0x5768a7){const _0x3e4235=a65_0x1717,_0x218d72=['\x20\x20SERVICE\x20TREE\x20TARGET','\x20\x20\x20\x20kind:\x20\x20\x20\x20'+_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xb5)],_0x3e4235(0xbd)+_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xc2)]];if(_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xd2)])_0x218d72[_0x3e4235(0xc3)]('\x20\x20\x20\x20datasetCode:\x20'+_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xd2)]);if(_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xb0)])_0x218d72[_0x3e4235(0xc3)](_0x3e4235(0x9b)+_0x5768a7['target'][_0x3e4235(0xb0)]);if(_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xab)])_0x218d72[_0x3e4235(0xc3)]('\x20\x20\x20\x20sqlCode:\x20'+_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xab)]);if(_0x5768a7[_0x3e4235(0xc1)][_0x3e4235(0xdc)])_0x218d72[_0x3e4235(0xc3)]('\x20\x20\x20\x20functionName:\x20'+_0x5768a7[_0x3e4235(0xc1)]['scriptName']);if(_0x5768a7[_0x3e4235(0x91)][_0x3e4235(0x97)]>0x0){_0x218d72[_0x3e4235(0xc3)]('',_0x3e4235(0x93));for(const _0x4c1566 of _0x5768a7[_0x3e4235(0x91)]){_0x218d72[_0x3e4235(0xc3)]('\x20\x20\x20\x20'+(_0x4c1566[_0x3e4235(0xcc)]||_0x3e4235(0x8f))+_0x3e4235(0xa0)+_0x4c1566[_0x3e4235(0xc1)]+(_0x4c1566[_0x3e4235(0xe5)]?'.'+_0x4c1566[_0x3e4235(0xe5)]:''));}}return _0x218d72[_0x3e4235(0xdd)]('\x0a');}function targetPreview(_0xcb30ea){const _0x4d9b82=a65_0x1717;return{'kind':_0xcb30ea[_0x4d9b82(0xb5)],'command':_0xcb30ea['command'],'appRef':_0xcb30ea[_0x4d9b82(0x89)],'datasetCode':_0xcb30ea[_0x4d9b82(0xd2)],'datatable':_0xcb30ea[_0x4d9b82(0xb0)],'sqlCode':_0xcb30ea[_0x4d9b82(0xab)],'bffCode':_0xcb30ea['bffCode'],'bffId':_0xcb30ea[_0x4d9b82(0xb8)],'functionName':_0xcb30ea[_0x4d9b82(0xdc)]};}function normalizeScalarParams(_0x569761){const _0x122c7d=a65_0x1717;return Object[_0x122c7d(0xa7)](Object['entries'](_0x569761)['filter'](([,_0xe41ff7])=>typeof _0xe41ff7==='string'||typeof _0xe41ff7==='number'));}function hasText(_0x3d30f9){const _0x5d8cb1=a65_0x1717;return typeof _0x3d30f9==='string'&&_0x3d30f9[_0x5d8cb1(0xdb)]()['length']>0x0;}function isPrimitiveFlagDefault(_0x5555f4){const _0x9c6ec0=a65_0x1717;return _0x5555f4===undefined||typeof _0x5555f4===_0x9c6ec0(0xa2)||typeof _0x5555f4===_0x9c6ec0(0xd4)||typeof _0x5555f4===_0x9c6ec0(0xe6);}
@@ -1 +1 @@
1
- (function(_0x660fe9,_0x55fa82){const _0x110082=a66_0x2144,_0x23a7ee=_0x660fe9();while(!![]){try{const _0x1270ba=parseInt(_0x110082(0xf4))/0x1+parseInt(_0x110082(0xdb))/0x2*(-parseInt(_0x110082(0xe8))/0x3)+parseInt(_0x110082(0xd9))/0x4*(parseInt(_0x110082(0xef))/0x5)+-parseInt(_0x110082(0xdf))/0x6*(-parseInt(_0x110082(0xeb))/0x7)+-parseInt(_0x110082(0xf5))/0x8*(-parseInt(_0x110082(0xec))/0x9)+parseInt(_0x110082(0x100))/0xa*(-parseInt(_0x110082(0xfe))/0xb)+parseInt(_0x110082(0xe5))/0xc*(parseInt(_0x110082(0xf1))/0xd);if(_0x1270ba===_0x55fa82)break;else _0x23a7ee['push'](_0x23a7ee['shift']());}catch(_0x17e8ad){_0x23a7ee['push'](_0x23a7ee['shift']());}}}(a66_0x3bd9,0xd447a));export function adaptServiceTreeManifestForLegacyFramework(_0x1c1e07){const _0x24d31c=a66_0x2144,_0x30919a=cloneJsonValue(_0x1c1e07),_0x4f78d0=[];if(!isObjectRecord(_0x30919a))return{'manifest':_0x30919a,'errors':_0x4f78d0};return Array[_0x24d31c(0xd8)](_0x30919a['commands'])&&_0x30919a[_0x24d31c(0xe0)][_0x24d31c(0xe2)]((_0x5c4105,_0x21f8cc)=>{const _0x1ab668=_0x24d31c;if(!isObjectRecord(_0x5c4105))return;adaptBffTarget(_0x5c4105[_0x1ab668(0xf0)],'$.commands['+_0x21f8cc+_0x1ab668(0xe1),_0x4f78d0);}),adaptResources(_0x30919a[_0x24d31c(0xfd)],_0x24d31c(0xda),_0x4f78d0),{'manifest':_0x30919a,'errors':_0x4f78d0};}export function toPublicServiceTreeTarget(_0x52c9a5){const _0x1593c7=a66_0x2144,{scriptName:_0x112bf9,..._0x41fb36}=_0x52c9a5;return typeof _0x112bf9===_0x1593c7(0xf8)&&_0x112bf9[_0x1593c7(0xe9)]()&&(_0x41fb36[_0x1593c7(0xdd)]=_0x112bf9),_0x41fb36;}export function toPublicNormalizedServiceTree(_0x1e7e81){const _0x385b33=a66_0x2144;return{..._0x1e7e81,'commands':_0x1e7e81[_0x385b33(0xe0)][_0x385b33(0xed)](_0x49615b=>({..._0x49615b,'target':toPublicServiceTreeTarget(_0x49615b[_0x385b33(0xf0)])}))};}function adaptResources(_0x2663fd,_0x5f2ce2,_0x58ae0b){const _0x4c980b=a66_0x2144;if(!isObjectRecord(_0x2663fd))return;for(const [_0x4b6ed5,_0x47300d]of Object[_0x4c980b(0xe6)](_0x2663fd)){if(!isObjectRecord(_0x47300d))continue;const _0x201108=_0x5f2ce2+'.'+_0x4b6ed5;if(isObjectRecord(_0x47300d[_0x4c980b(0xde)]))for(const [_0x37cc2e,_0x43efa5]of Object['entries'](_0x47300d[_0x4c980b(0xde)])){if(!isObjectRecord(_0x43efa5))continue;const _0x5b948e=_0x201108+_0x4c980b(0xdc)+_0x37cc2e,_0x3ad481=isObjectRecord(_0x43efa5[_0x4c980b(0xf0)])&&_0x43efa5['target'][_0x4c980b(0xf2)]===_0x4c980b(0xe4);adaptBffTarget(_0x43efa5[_0x4c980b(0xf0)],_0x5b948e+'.target',_0x58ae0b),(_0x3ad481||isBffAction(_0x43efa5))&&adaptFunctionNameField(_0x43efa5,_0x5b948e,_0x58ae0b);}adaptResources(_0x47300d[_0x4c980b(0xfd)],_0x201108+_0x4c980b(0xf7),_0x58ae0b);}}function adaptBffTarget(_0x2d49ff,_0x5056fb,_0x200030){const _0x1b98ed=a66_0x2144;if(!isObjectRecord(_0x2d49ff)||_0x2d49ff[_0x1b98ed(0xf2)]!==_0x1b98ed(0xe4))return;adaptFunctionNameField(_0x2d49ff,_0x5056fb,_0x200030);}function adaptFunctionNameField(_0x119863,_0x34f2d8,_0xfd961b){const _0x5cd2bc=a66_0x2144;Object['prototype'][_0x5cd2bc(0xfa)][_0x5cd2bc(0xf9)](_0x119863,'scriptName')&&_0xfd961b[_0x5cd2bc(0xfc)]({'level':_0x5cd2bc(0xee),'path':_0x34f2d8+_0x5cd2bc(0xf3),'message':_0x5cd2bc(0xe3)});if(Object[_0x5cd2bc(0xea)][_0x5cd2bc(0xfa)][_0x5cd2bc(0xf9)](_0x119863,_0x5cd2bc(0xdd))){if(typeof _0x119863[_0x5cd2bc(0xdd)]!==_0x5cd2bc(0xf8)||!_0x119863[_0x5cd2bc(0xdd)][_0x5cd2bc(0xe9)]()){_0xfd961b[_0x5cd2bc(0xfc)]({'level':_0x5cd2bc(0xee),'path':_0x34f2d8+_0x5cd2bc(0xf6),'message':_0x5cd2bc(0xd7)}),delete _0x119863[_0x5cd2bc(0xdd)];return;}_0x119863['scriptName']=_0x119863[_0x5cd2bc(0xdd)],delete _0x119863[_0x5cd2bc(0xdd)];}}function isBffAction(_0x292d30){const _0x452316=a66_0x2144;return _0x292d30[_0x452316(0xf2)]===_0x452316(0xe4)||_0x292d30['action']==='bff.exec'||_0x292d30['target']===_0x452316(0xe7);}function a66_0x2144(_0x3fa76d,_0x2d4d84){_0x3fa76d=_0x3fa76d-0xd7;const _0x3bd9ca=a66_0x3bd9();let _0x21442f=_0x3bd9ca[_0x3fa76d];return _0x21442f;}function cloneJsonValue(_0x1dce2c){const _0x5e5f68=a66_0x2144;if(Array[_0x5e5f68(0xd8)](_0x1dce2c))return _0x1dce2c['map'](_0x5a18ee=>cloneJsonValue(_0x5a18ee));if(isObjectRecord(_0x1dce2c))return Object[_0x5e5f68(0xff)](Object[_0x5e5f68(0xe6)](_0x1dce2c)[_0x5e5f68(0xed)](([_0x2abd2d,_0x539ce4])=>[_0x2abd2d,cloneJsonValue(_0x539ce4)]));return _0x1dce2c;}function isObjectRecord(_0x3b0ebf){const _0x28c0a0=a66_0x2144;return Boolean(_0x3b0ebf)&&typeof _0x3b0ebf===_0x28c0a0(0xfb)&&!Array[_0x28c0a0(0xd8)](_0x3b0ebf);}function a66_0x3bd9(){const _0x24b4dc=['error','1720txbcKw','target','16189004KuqNjk','kind','.scriptName','706411vvxqfE','6322552AUakGw','.functionName','.resources','string','call','hasOwnProperty','object','push','resources','578644BfBEDQ','fromEntries','310tCvCzr','functionName\x20must\x20be\x20a\x20non-empty\x20string.','isArray','13276FsEHQx','$.resources','4ObSMqs','.actions.','functionName','actions','6kmMuBl','commands','].target','forEach','Use\x20functionName;\x20scriptName\x20is\x20not\x20part\x20of\x20the\x20runtime\x20Service\x20Tree\x20contract.','bff','12vnycAu','entries','bff.exec','2597349reFfjt','trim','prototype','2436098ZOlJJK','9FqZNTp','map'];a66_0x3bd9=function(){return _0x24b4dc;};return a66_0x3bd9();}
1
+ (function(_0x3c6b48,_0x5e5f8f){const _0xd7d043=a66_0x37ae,_0x27b8c5=_0x3c6b48();while(!![]){try{const _0x18ec92=-parseInt(_0xd7d043(0x13e))/0x1*(-parseInt(_0xd7d043(0x11d))/0x2)+-parseInt(_0xd7d043(0x144))/0x3*(-parseInt(_0xd7d043(0x13c))/0x4)+-parseInt(_0xd7d043(0x134))/0x5+-parseInt(_0xd7d043(0x128))/0x6+parseInt(_0xd7d043(0x142))/0x7*(-parseInt(_0xd7d043(0x120))/0x8)+-parseInt(_0xd7d043(0x12f))/0x9*(parseInt(_0xd7d043(0x12a))/0xa)+parseInt(_0xd7d043(0x132))/0xb;if(_0x18ec92===_0x5e5f8f)break;else _0x27b8c5['push'](_0x27b8c5['shift']());}catch(_0x577b44){_0x27b8c5['push'](_0x27b8c5['shift']());}}}(a66_0x54b1,0xbb1e7));export function adaptServiceTreeManifestForLegacyFramework(_0x2473ce){const _0x18277c=a66_0x37ae,_0x118a50=cloneJsonValue(_0x2473ce),_0x4b07b1=[];if(!isObjectRecord(_0x118a50))return{'manifest':_0x118a50,'errors':_0x4b07b1};return Array[_0x18277c(0x12c)](_0x118a50[_0x18277c(0x130)])&&_0x118a50[_0x18277c(0x130)]['forEach']((_0x4a0071,_0xeebb6f)=>{const _0x6a2b6d=_0x18277c;if(!isObjectRecord(_0x4a0071))return;adaptBffTarget(_0x4a0071['target'],_0x6a2b6d(0x12e)+_0xeebb6f+_0x6a2b6d(0x143),_0x4b07b1);}),adaptResources(_0x118a50[_0x18277c(0x124)],_0x18277c(0x13f),_0x4b07b1),{'manifest':_0x118a50,'errors':_0x4b07b1};}function a66_0x37ae(_0x1dffc5,_0x1d94b7){_0x1dffc5=_0x1dffc5-0x11d;const _0x54b1fd=a66_0x54b1();let _0x37aeec=_0x54b1fd[_0x1dffc5];return _0x37aeec;}export function toPublicServiceTreeTarget(_0x590af0){const _0xa5d689=a66_0x37ae,{scriptName:_0x4b8233,..._0x2adaa2}=_0x590af0;return typeof _0x4b8233===_0xa5d689(0x12d)&&_0x4b8233[_0xa5d689(0x122)]()&&(_0x2adaa2[_0xa5d689(0x145)]=_0x4b8233),_0x2adaa2;}export function toPublicNormalizedServiceTree(_0x8927a0){const _0x1af8f0=a66_0x37ae;return{..._0x8927a0,'commands':_0x8927a0[_0x1af8f0(0x130)][_0x1af8f0(0x12b)](_0x1dc37f=>({..._0x1dc37f,'target':toPublicServiceTreeTarget(_0x1dc37f[_0x1af8f0(0x13d)])}))};}function a66_0x54b1(){const _0x5bd8e6=['kind','.target','actions','push','call','40144fKeEEI','target','392499lfTOlz','$.resources','.resources','Use\x20functionName;\x20scriptName\x20is\x20not\x20part\x20of\x20the\x20runtime\x20Service\x20Tree\x20contract.','14tGfvtp','].target','447qcYIRI','functionName','action','2ZwEPaa','.actions.','prototype','2975296BJciIY','bff.exec','trim','.scriptName','resources','functionName\x20must\x20be\x20a\x20non-empty\x20string.','scriptName','.functionName','2443638YaxbPZ','bff','10JvyhQw','map','isArray','string','$.commands[','13688424hNzuge','commands','entries','21715100hedNEL','object','2117455eMTtyD','error','hasOwnProperty'];a66_0x54b1=function(){return _0x5bd8e6;};return a66_0x54b1();}function adaptResources(_0x1823af,_0x1be159,_0xb7529d){const _0x5797cc=a66_0x37ae;if(!isObjectRecord(_0x1823af))return;for(const [_0x334b2e,_0x41ec28]of Object[_0x5797cc(0x131)](_0x1823af)){if(!isObjectRecord(_0x41ec28))continue;const _0x3a967e=_0x1be159+'.'+_0x334b2e;if(isObjectRecord(_0x41ec28[_0x5797cc(0x139)]))for(const [_0x2664fb,_0x180052]of Object[_0x5797cc(0x131)](_0x41ec28['actions'])){if(!isObjectRecord(_0x180052))continue;const _0x40bac5=_0x3a967e+_0x5797cc(0x11e)+_0x2664fb,_0x524e46=isObjectRecord(_0x180052[_0x5797cc(0x13d)])&&_0x180052['target']['kind']===_0x5797cc(0x129);adaptBffTarget(_0x180052[_0x5797cc(0x13d)],_0x40bac5+_0x5797cc(0x138),_0xb7529d),(_0x524e46||isBffAction(_0x180052))&&adaptFunctionNameField(_0x180052,_0x40bac5,_0xb7529d);}adaptResources(_0x41ec28[_0x5797cc(0x124)],_0x3a967e+_0x5797cc(0x140),_0xb7529d);}}function adaptBffTarget(_0x1d2c48,_0x2502e4,_0x27772d){const _0x74f719=a66_0x37ae;if(!isObjectRecord(_0x1d2c48)||_0x1d2c48['kind']!==_0x74f719(0x129))return;adaptFunctionNameField(_0x1d2c48,_0x2502e4,_0x27772d);}function adaptFunctionNameField(_0x218c4b,_0x5805b8,_0x2fa86b){const _0x2f83a2=a66_0x37ae;Object[_0x2f83a2(0x11f)]['hasOwnProperty'][_0x2f83a2(0x13b)](_0x218c4b,_0x2f83a2(0x126))&&_0x2fa86b[_0x2f83a2(0x13a)]({'level':_0x2f83a2(0x135),'path':_0x5805b8+_0x2f83a2(0x123),'message':_0x2f83a2(0x141)});if(Object[_0x2f83a2(0x11f)][_0x2f83a2(0x136)][_0x2f83a2(0x13b)](_0x218c4b,'functionName')){if(typeof _0x218c4b[_0x2f83a2(0x145)]!=='string'||!_0x218c4b[_0x2f83a2(0x145)][_0x2f83a2(0x122)]()){_0x2fa86b[_0x2f83a2(0x13a)]({'level':_0x2f83a2(0x135),'path':_0x5805b8+_0x2f83a2(0x127),'message':_0x2f83a2(0x125)}),delete _0x218c4b[_0x2f83a2(0x145)];return;}_0x218c4b['scriptName']=_0x218c4b[_0x2f83a2(0x145)],delete _0x218c4b[_0x2f83a2(0x145)];}}function isBffAction(_0x17ebe6){const _0x2e0eb2=a66_0x37ae;return _0x17ebe6[_0x2e0eb2(0x137)]==='bff'||_0x17ebe6[_0x2e0eb2(0x146)]===_0x2e0eb2(0x121)||_0x17ebe6[_0x2e0eb2(0x13d)]==='bff.exec';}function cloneJsonValue(_0x27e85b){const _0x30f7ad=a66_0x37ae;if(Array['isArray'](_0x27e85b))return _0x27e85b[_0x30f7ad(0x12b)](_0x80b63d=>cloneJsonValue(_0x80b63d));if(isObjectRecord(_0x27e85b))return Object['fromEntries'](Object['entries'](_0x27e85b)[_0x30f7ad(0x12b)](([_0x450979,_0x1d1ec2])=>[_0x450979,cloneJsonValue(_0x1d1ec2)]));return _0x27e85b;}function isObjectRecord(_0x260b69){const _0x58d73a=a66_0x37ae;return Boolean(_0x260b69)&&typeof _0x260b69===_0x58d73a(0x133)&&!Array[_0x58d73a(0x12c)](_0x260b69);}
@@ -1 +1 @@
1
- const a67_0x19959d=a67_0x3c27;function a67_0x19f6(){const _0xb8c022=['4645iCFqlo','commands','lower\x20kebab-case\x20service\x20code','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','serviceCount','entries','manifests','name','updated','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','filePath','4434727YONGsj','1507719VlhyyJ','\x20service(s).','WRITE','str','Local\x20service\x20not\x20found:\x20','entry','service','source','16YSssIV','2568ewzILO','cliPath','length','\x20service\x20','Removes\x20the\x20given\x20service\x20manifest\x20from\x20the\x20local\x20Service\x20Tree\x20registry.\x20Dynamic\x20commands\x20from\x20that\x20manifest\x20will\x20no\x20longer\x20be\x20available.','kind','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','map','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.','cliName','imported','import','importedAt','target','list','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.','replaced','write','errors','warnings','export','4204270BtWdIj','3298MDQYbS','read','string','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','type','manifest','18ZprtcT','Imported','risk','registry','flags','580538NkzJeH','version','description','hash','file','required','Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json','normalizedManifest','1545348iUCGMd','109MCJKdz','registryPath','Exported\x20service\x20','Service\x20registry\x20validation\x20passed.','serviceCode','registryServiceCode','report','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','Removed\x20service\x20','Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','Remove\x20a\x20Service\x20Tree\x20manifest\x20from\x20the\x20local\x20runtime\x20registry'];a67_0x19f6=function(){return _0xb8c022;};return a67_0x19f6();}(function(_0x35fc2e,_0x56057b){const _0x21ffaf=a67_0x3c27,_0x2a8c7c=_0x35fc2e();while(!![]){try{const _0x3e42de=parseInt(_0x21ffaf(0x1f1))/0x1*(-parseInt(_0x21ffaf(0x1dd))/0x2)+-parseInt(_0x21ffaf(0x1be))/0x3+parseInt(_0x21ffaf(0x1c7))/0x4*(parseInt(_0x21ffaf(0x1b2))/0x5)+parseInt(_0x21ffaf(0x1f0))/0x6+parseInt(_0x21ffaf(0x1e8))/0x7*(-parseInt(_0x21ffaf(0x1c6))/0x8)+-parseInt(_0x21ffaf(0x1e3))/0x9*(-parseInt(_0x21ffaf(0x1dc))/0xa)+-parseInt(_0x21ffaf(0x1bd))/0xb;if(_0x3e42de===_0x56057b)break;else _0x2a8c7c['push'](_0x2a8c7c['shift']());}catch(_0x2252f0){_0x2a8c7c['push'](_0x2a8c7c['shift']());}}}(a67_0x19f6,0x6c463));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':'file','type':'string','required':!![],'description':'Service\x20Tree\x20manifest\x20file\x20path'},SERVICE_FLAG={'name':a67_0x19959d(0x1c4),'type':a67_0x19959d(0x1df),'required':!![],'description':'Local\x20service\x20code,\x20for\x20example\x20crm','pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':a67_0x19959d(0x1b4)}};function a67_0x3c27(_0x45fa78,_0x400fde){_0x45fa78=_0x45fa78-0x1ab;const _0x19f6f3=a67_0x19f6();let _0x3c2757=_0x19f6f3[_0x45fa78];return _0x3c2757;}function summarizeService(_0x1d3071){const _0x413af4=a67_0x19959d;return{'serviceCode':_0x1d3071['serviceCode'],'name':_0x1d3071[_0x413af4(0x1ef)][_0x413af4(0x1c4)][_0x413af4(0x1b9)],'version':_0x1d3071[_0x413af4(0x1e9)],'importedAt':_0x1d3071[_0x413af4(0x1d3)],'source':_0x1d3071['source'],'commandCount':_0x1d3071[_0x413af4(0x1ef)][_0x413af4(0x1b3)][_0x413af4(0x1c9)],'commands':_0x1d3071['normalizedManifest'][_0x413af4(0x1b3)][_0x413af4(0x1ce)](_0x33d081=>({'path':_0x33d081['cliPath'],'description':_0x33d081[_0x413af4(0x1ea)],'risk':_0x33d081[_0x413af4(0x1e5)],'target':toPublicServiceTreeTarget(_0x33d081[_0x413af4(0x1d4)]),'flags':_0x33d081[_0x413af4(0x1e7)]['map'](_0x4b7f0d=>({'name':_0x4b7f0d['name'],'cliName':_0x4b7f0d[_0x413af4(0x1d0)],'type':_0x4b7f0d[_0x413af4(0x1e1)],'required':_0x4b7f0d[_0x413af4(0x1ed)]===!![]}))}))};}function summarizeLoadedManifest(_0x183a9e){const _0x5b3606=a67_0x19959d;return{'service':_0x183a9e[_0x5b3606(0x1ef)]?.[_0x5b3606(0x1c4)],'version':_0x183a9e[_0x5b3606(0x1ef)]?.[_0x5b3606(0x1e9)],'commandCount':_0x183a9e[_0x5b3606(0x1ef)]?.[_0x5b3606(0x1b3)]['length']??0x0,'commands':_0x183a9e[_0x5b3606(0x1ef)]?.[_0x5b3606(0x1b3)][_0x5b3606(0x1ce)](_0x4f66f9=>({'path':_0x4f66f9[_0x5b3606(0x1c8)],'risk':_0x4f66f9['risk'],'target':toPublicServiceTreeTarget(_0x4f66f9[_0x5b3606(0x1d4)])}))??[],'registryIndex':_0x183a9e['registryIndex'],'registryServiceCode':_0x183a9e[_0x5b3606(0x1ac)],'errors':_0x183a9e[_0x5b3606(0x1ad)]['errors'],'warnings':_0x183a9e[_0x5b3606(0x1ad)][_0x5b3606(0x1da)]};}export const serviceDefinitions=[{'service':'service','command':'validate','description':a67_0x19959d(0x1cd),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x4a4a90){const _0x537db1=a67_0x19959d,_0x1eab6e=loadServiceManifestFromFile(_0x4a4a90[_0x537db1(0x1c1)]('file'));if(!_0x1eab6e['report']['ok'])return{'ok':![],'data':{'file':_0x1eab6e['filePath'],'hash':_0x1eab6e[_0x537db1(0x1eb)],'kind':_0x1eab6e[_0x537db1(0x1cc)],'serviceCount':_0x1eab6e[_0x537db1(0x1b8)]['length'],'services':_0x1eab6e[_0x537db1(0x1b8)]['map'](summarizeLoadedManifest),'errors':_0x1eab6e['report'][_0x537db1(0x1d9)],'warnings':_0x1eab6e[_0x537db1(0x1ad)][_0x537db1(0x1da)]},'message':formatValidationFailure(_0x1eab6e[_0x537db1(0x1ad)])};if(_0x1eab6e[_0x537db1(0x1cc)]===_0x537db1(0x1e6)||_0x1eab6e[_0x537db1(0x1b8)]['length']!==0x1)return{'ok':!![],'data':{'file':_0x1eab6e[_0x537db1(0x1bc)],'hash':_0x1eab6e[_0x537db1(0x1eb)],'kind':_0x1eab6e[_0x537db1(0x1cc)],'serviceCount':_0x1eab6e[_0x537db1(0x1b8)][_0x537db1(0x1c9)],'commandCount':_0x1eab6e[_0x537db1(0x1b8)]['reduce']((_0x3eff10,_0x59dbc5)=>_0x3eff10+(_0x59dbc5[_0x537db1(0x1ef)]?.[_0x537db1(0x1b3)]['length']??0x0),0x0),'services':_0x1eab6e[_0x537db1(0x1b8)][_0x537db1(0x1ce)](summarizeLoadedManifest),'warnings':_0x1eab6e[_0x537db1(0x1ad)]['warnings']},'message':_0x537db1(0x1f4)};return{'ok':!![],'data':{'file':_0x1eab6e[_0x537db1(0x1bc)],'hash':_0x1eab6e['hash'],'kind':_0x1eab6e[_0x537db1(0x1cc)],'service':_0x1eab6e[_0x537db1(0x1ef)]?.['service'],'version':_0x1eab6e[_0x537db1(0x1ef)]?.[_0x537db1(0x1e9)],'commandCount':_0x1eab6e['normalizedManifest']?.[_0x537db1(0x1b3)]['length']??0x0,'commands':_0x1eab6e[_0x537db1(0x1ef)]?.[_0x537db1(0x1b3)][_0x537db1(0x1ce)](_0x58f6cb=>({'path':_0x58f6cb['cliPath'],'risk':_0x58f6cb[_0x537db1(0x1e5)],'target':toPublicServiceTreeTarget(_0x58f6cb[_0x537db1(0x1d4)])})),'warnings':_0x1eab6e[_0x537db1(0x1ad)][_0x537db1(0x1da)]},'message':'Service\x20manifest\x20validation\x20passed.'};}},{'service':'service','command':a67_0x19959d(0x1d2),'description':a67_0x19959d(0x1b0),'risk':a67_0x19959d(0x1d8),'confirmationDescription':a67_0x19959d(0x1d6),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x22b0aa){const _0x4330d6=a67_0x19959d,_0x5e3958=loadServiceManifestFromFile(_0x22b0aa[_0x4330d6(0x1c1)](_0x4330d6(0x1ec)));return{'method':_0x4330d6(0x1c0),'url':getServiceRegistryPath(),'body':{'file':_0x5e3958[_0x4330d6(0x1bc)],'hash':_0x5e3958[_0x4330d6(0x1eb)],'kind':_0x5e3958['kind'],'ok':_0x5e3958[_0x4330d6(0x1ad)]['ok'],'service':_0x5e3958['normalizedManifest']?.[_0x4330d6(0x1c4)],'version':_0x5e3958['normalizedManifest']?.[_0x4330d6(0x1e9)],'serviceCount':_0x5e3958[_0x4330d6(0x1b8)][_0x4330d6(0x1c9)],'services':_0x5e3958['manifests'][_0x4330d6(0x1ce)](_0x2e07e4=>({'service':_0x2e07e4[_0x4330d6(0x1ef)]?.['service'],'version':_0x2e07e4[_0x4330d6(0x1ef)]?.['version'],'commandCount':_0x2e07e4[_0x4330d6(0x1ef)]?.[_0x4330d6(0x1b3)]['length']??0x0,'errors':_0x2e07e4[_0x4330d6(0x1ad)][_0x4330d6(0x1d9)]})),'errors':_0x5e3958[_0x4330d6(0x1ad)]['errors'],'commandCount':_0x5e3958['normalizedManifest']?.[_0x4330d6(0x1b3)][_0x4330d6(0x1c9)]??0x0},'description':_0x4330d6(0x1b5)};},async 'execute'(_0x330ea3){const _0x231131=a67_0x19959d,_0x182d25=importServiceManifest(_0x330ea3[_0x231131(0x1c1)]('file'));if(_0x182d25[_0x231131(0x1b7)][_0x231131(0x1c9)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x182d25['registryPath'],'imported':_0x182d25[_0x231131(0x1d1)],'updated':_0x182d25['updated'],'serviceCount':_0x182d25[_0x231131(0x1b6)],'services':_0x182d25[_0x231131(0x1b7)]['map'](summarizeService)},'message':'Imported\x20'+_0x182d25[_0x231131(0x1d1)]+'\x20service(s),\x20updated\x20'+_0x182d25[_0x231131(0x1ba)]+_0x231131(0x1bf)};return{'ok':!![],'data':{'registryPath':_0x182d25[_0x231131(0x1f2)],'replaced':_0x182d25['replaced'],'imported':_0x182d25[_0x231131(0x1d1)],'updated':_0x182d25[_0x231131(0x1ba)],'serviceCount':_0x182d25['serviceCount'],'service':summarizeService(_0x182d25[_0x231131(0x1c3)])},'message':(_0x182d25[_0x231131(0x1d7)]?'Updated':_0x231131(0x1e4))+_0x231131(0x1ca)+_0x182d25[_0x231131(0x1c3)]['serviceCode']+'.'};}},{'service':a67_0x19959d(0x1c4),'command':a67_0x19959d(0x1db),'description':'Export\x20the\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','risk':'write','confirmationDescription':a67_0x19959d(0x1cf),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x6a18e3){const _0x304149=a67_0x19959d,_0x441c2e=getLocalServiceEntry(_0x6a18e3['str'](_0x304149(0x1c4)));return{'method':_0x304149(0x1c0),'url':_0x6a18e3[_0x304149(0x1c1)](_0x304149(0x1ec)),'body':{'service':_0x6a18e3[_0x304149(0x1c1)]('service'),'found':Boolean(_0x441c2e),'version':_0x441c2e?.[_0x304149(0x1e9)],'source':_0x441c2e?.[_0x304149(0x1c5)]},'description':_0x304149(0x1ee)};},async 'execute'(_0x6ff158){const _0x368e1b=a67_0x19959d,_0x461a88=exportServiceManifest(_0x6ff158[_0x368e1b(0x1c1)](_0x368e1b(0x1c4)),_0x6ff158[_0x368e1b(0x1c1)](_0x368e1b(0x1ec)));return{'ok':!![],'data':{'registryPath':_0x461a88['registryPath'],'file':_0x461a88[_0x368e1b(0x1bc)],'service':summarizeService(_0x461a88[_0x368e1b(0x1c3)])},'message':_0x368e1b(0x1f3)+_0x461a88[_0x368e1b(0x1c3)][_0x368e1b(0x1ab)]+'.'};}},{'service':a67_0x19959d(0x1c4),'command':a67_0x19959d(0x1d5),'description':a67_0x19959d(0x1bb),'risk':a67_0x19959d(0x1de),'requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x9b3b5d=a67_0x19959d,_0x594ae7=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x594ae7[_0x9b3b5d(0x1c9)],'services':_0x594ae7['map'](summarizeService)}};}},{'service':a67_0x19959d(0x1c4),'command':'remove','description':a67_0x19959d(0x1b1),'risk':a67_0x19959d(0x1d8),'confirmationDescription':a67_0x19959d(0x1cb),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x35c2e7){const _0x110200=a67_0x19959d,_0x1fb0ee=getLocalServiceEntry(_0x35c2e7[_0x110200(0x1c1)](_0x110200(0x1c4)));return{'method':_0x110200(0x1c0),'url':getServiceRegistryPath(),'body':{'service':_0x35c2e7['str'](_0x110200(0x1c4)),'found':Boolean(_0x1fb0ee),'version':_0x1fb0ee?.[_0x110200(0x1e9)],'source':_0x1fb0ee?.[_0x110200(0x1c5)]},'description':_0x110200(0x1ae)};},async 'execute'(_0x57915e){const _0x4b6f95=a67_0x19959d,_0x519b91=removeServiceManifest(_0x57915e[_0x4b6f95(0x1c1)](_0x4b6f95(0x1c4)));return{'ok':!![],'data':{'registryPath':_0x519b91[_0x4b6f95(0x1f2)],'serviceCount':_0x519b91[_0x4b6f95(0x1b6)],'service':summarizeService(_0x519b91['entry'])},'message':_0x4b6f95(0x1af)+_0x519b91[_0x4b6f95(0x1c3)][_0x4b6f95(0x1ab)]+'.'};}},{'service':a67_0x19959d(0x1c4),'command':'detail','description':a67_0x19959d(0x1e0),'risk':a67_0x19959d(0x1de),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x5a087c){const _0xb13c00=a67_0x19959d,_0x3bb0b7=getLocalServiceEntry(_0x5a087c['str'](_0xb13c00(0x1c4)));if(!_0x3bb0b7)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x5a087c['str'](_0xb13c00(0x1c4))},'message':_0xb13c00(0x1c2)+_0x5a087c['str'](_0xb13c00(0x1c4))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x3bb0b7),'manifest':_0x3bb0b7[_0xb13c00(0x1e2)],'normalizedManifest':toPublicNormalizedServiceTree(_0x3bb0b7[_0xb13c00(0x1ef)])}};}}];
1
+ const a67_0xcdb8ce=a67_0x2775;(function(_0x194e5a,_0x524d4a){const _0x584949=a67_0x2775,_0x209b50=_0x194e5a();while(!![]){try{const _0x3e4273=parseInt(_0x584949(0x8c))/0x1+-parseInt(_0x584949(0xd0))/0x2*(parseInt(_0x584949(0xad))/0x3)+-parseInt(_0x584949(0x88))/0x4*(-parseInt(_0x584949(0x85))/0x5)+-parseInt(_0x584949(0xa3))/0x6+-parseInt(_0x584949(0x8f))/0x7*(parseInt(_0x584949(0x9a))/0x8)+-parseInt(_0x584949(0xa9))/0x9+-parseInt(_0x584949(0x8a))/0xa*(-parseInt(_0x584949(0xb6))/0xb);if(_0x3e4273===_0x524d4a)break;else _0x209b50['push'](_0x209b50['shift']());}catch(_0x5584b0){_0x209b50['push'](_0x209b50['shift']());}}}(a67_0x171a,0xd1192));import{exportServiceManifest,formatValidationFailure,getLocalServiceEntry,getServiceRegistryPath,importServiceManifest,listLocalServices,loadServiceManifestFromFile,removeServiceManifest}from'../../commands/service/registry.js';import{toPublicNormalizedServiceTree,toPublicServiceTreeTarget}from'../../commands/service/function-name-adapter.js';function a67_0x2775(_0x5c13cb,_0x2c4079){_0x5c13cb=_0x5c13cb-0x85;const _0x171adb=a67_0x171a();let _0x2775a3=_0x171adb[_0x5c13cb];return _0x2775a3;}function a67_0x171a(){const _0x2306d9=['warnings','3563856gsvRuT','imported','source','export','string','entry','13928184UASYBz','Import\x20a\x20Service\x20Tree\x20manifest\x20into\x20the\x20local\x20runtime\x20registry','validate','Service\x20Tree\x20manifest\x20file\x20path','137805RmIQsT','type','Export\x20the\x20local\x20Service\x20Tree\x20manifest\x20to\x20a\x20JSON\x20file','target','Service\x20manifest\x20validation\x20passed.','Show\x20a\x20locally\x20imported\x20Service\x20Tree\x20manifest','map','list','hash','5071ZZcukj','List\x20locally\x20imported\x20Service\x20Tree\x20manifests','cliPath','Remove\x20a\x20Service\x20Tree\x20manifest\x20from\x20the\x20local\x20runtime\x20registry','entries','risk','str','\x20service\x20','commands','Local\x20service\x20not\x20found:\x20','Local\x20service\x20code,\x20for\x20example\x20crm','\x20service(s).','Preview\x20Service\x20Tree\x20import\x20into\x20~/.lovrabet/service.json','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\x20','filePath','description','Imported','serviceCount','cliName','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.','import','Validate\x20a\x20Service\x20Tree\x20JSON\x20manifest','manifests','detail','Removed\x20service\x20','50sBHBuz','936670yFUkAh','Preview\x20Service\x20Tree\x20removal\x20from\x20~/.lovrabet/service.json','registry','24OxlfWj','registryServiceCode','62570todkKH','updated','1016491fiHqVT','kind','importedAt','133YJtRuL','Service\x20registry\x20validation\x20passed.','read','Updated','reduce','name','file','registryPath','report','errors','service','369928VkEFGz','length','version','serviceCode','flags','write','\x20service(s),\x20updated\x20','normalizedManifest'];a67_0x171a=function(){return _0x2306d9;};return a67_0x171a();}const FILE_FLAG={'name':a67_0xcdb8ce(0x95),'type':'string','required':!![],'description':a67_0xcdb8ce(0xac)},SERVICE_FLAG={'name':'service','type':a67_0xcdb8ce(0xa7),'required':!![],'description':a67_0xcdb8ce(0xc0),'pattern':{'regex':/^[a-z][a-z0-9-]*$/,'description':'lower\x20kebab-case\x20service\x20code'}};function summarizeService(_0x3b9337){const _0x330812=a67_0xcdb8ce;return{'serviceCode':_0x3b9337[_0x330812(0x9d)],'name':_0x3b9337[_0x330812(0xa1)][_0x330812(0x99)][_0x330812(0x94)],'version':_0x3b9337['version'],'importedAt':_0x3b9337[_0x330812(0x8e)],'source':_0x3b9337[_0x330812(0xa5)],'commandCount':_0x3b9337[_0x330812(0xa1)][_0x330812(0xbe)][_0x330812(0x9b)],'commands':_0x3b9337[_0x330812(0xa1)][_0x330812(0xbe)][_0x330812(0xb3)](_0x5b87b1=>({'path':_0x5b87b1[_0x330812(0xb8)],'description':_0x5b87b1[_0x330812(0xc6)],'risk':_0x5b87b1['risk'],'target':toPublicServiceTreeTarget(_0x5b87b1[_0x330812(0xb0)]),'flags':_0x5b87b1[_0x330812(0x9e)][_0x330812(0xb3)](_0x19a56e=>({'name':_0x19a56e['name'],'cliName':_0x19a56e[_0x330812(0xc9)],'type':_0x19a56e[_0x330812(0xae)],'required':_0x19a56e['required']===!![]}))}))};}function summarizeLoadedManifest(_0x4bc2e7){const _0x4600b8=a67_0xcdb8ce;return{'service':_0x4bc2e7['normalizedManifest']?.[_0x4600b8(0x99)],'version':_0x4bc2e7[_0x4600b8(0xa1)]?.[_0x4600b8(0x9c)],'commandCount':_0x4bc2e7['normalizedManifest']?.[_0x4600b8(0xbe)][_0x4600b8(0x9b)]??0x0,'commands':_0x4bc2e7[_0x4600b8(0xa1)]?.[_0x4600b8(0xbe)][_0x4600b8(0xb3)](_0x58230c=>({'path':_0x58230c['cliPath'],'risk':_0x58230c['risk'],'target':toPublicServiceTreeTarget(_0x58230c['target'])}))??[],'registryIndex':_0x4bc2e7['registryIndex'],'registryServiceCode':_0x4bc2e7[_0x4600b8(0x89)],'errors':_0x4bc2e7[_0x4600b8(0x97)][_0x4600b8(0x98)],'warnings':_0x4bc2e7[_0x4600b8(0x97)][_0x4600b8(0xa2)]};}export const serviceDefinitions=[{'service':'service','command':a67_0xcdb8ce(0xab),'description':a67_0xcdb8ce(0xcc),'risk':a67_0xcdb8ce(0x91),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'execute'(_0x276ece){const _0x46d5e7=a67_0xcdb8ce,_0x34bd0d=loadServiceManifestFromFile(_0x276ece[_0x46d5e7(0xbc)]('file'));if(!_0x34bd0d[_0x46d5e7(0x97)]['ok'])return{'ok':![],'data':{'file':_0x34bd0d[_0x46d5e7(0xc5)],'hash':_0x34bd0d[_0x46d5e7(0xb5)],'kind':_0x34bd0d[_0x46d5e7(0x8d)],'serviceCount':_0x34bd0d['manifests'][_0x46d5e7(0x9b)],'services':_0x34bd0d[_0x46d5e7(0xcd)][_0x46d5e7(0xb3)](summarizeLoadedManifest),'errors':_0x34bd0d[_0x46d5e7(0x97)]['errors'],'warnings':_0x34bd0d[_0x46d5e7(0x97)][_0x46d5e7(0xa2)]},'message':formatValidationFailure(_0x34bd0d[_0x46d5e7(0x97)])};if(_0x34bd0d[_0x46d5e7(0x8d)]===_0x46d5e7(0x87)||_0x34bd0d[_0x46d5e7(0xcd)]['length']!==0x1)return{'ok':!![],'data':{'file':_0x34bd0d[_0x46d5e7(0xc5)],'hash':_0x34bd0d[_0x46d5e7(0xb5)],'kind':_0x34bd0d['kind'],'serviceCount':_0x34bd0d['manifests'][_0x46d5e7(0x9b)],'commandCount':_0x34bd0d[_0x46d5e7(0xcd)][_0x46d5e7(0x93)]((_0x426c68,_0x3b90e7)=>_0x426c68+(_0x3b90e7[_0x46d5e7(0xa1)]?.[_0x46d5e7(0xbe)][_0x46d5e7(0x9b)]??0x0),0x0),'services':_0x34bd0d[_0x46d5e7(0xcd)]['map'](summarizeLoadedManifest),'warnings':_0x34bd0d[_0x46d5e7(0x97)][_0x46d5e7(0xa2)]},'message':_0x46d5e7(0x90)};return{'ok':!![],'data':{'file':_0x34bd0d[_0x46d5e7(0xc5)],'hash':_0x34bd0d[_0x46d5e7(0xb5)],'kind':_0x34bd0d[_0x46d5e7(0x8d)],'service':_0x34bd0d[_0x46d5e7(0xa1)]?.['service'],'version':_0x34bd0d[_0x46d5e7(0xa1)]?.['version'],'commandCount':_0x34bd0d[_0x46d5e7(0xa1)]?.['commands']['length']??0x0,'commands':_0x34bd0d['normalizedManifest']?.[_0x46d5e7(0xbe)][_0x46d5e7(0xb3)](_0x238a88=>({'path':_0x238a88[_0x46d5e7(0xb8)],'risk':_0x238a88[_0x46d5e7(0xbb)],'target':toPublicServiceTreeTarget(_0x238a88[_0x46d5e7(0xb0)])})),'warnings':_0x34bd0d[_0x46d5e7(0x97)]['warnings']},'message':_0x46d5e7(0xb1)};}},{'service':a67_0xcdb8ce(0x99),'command':a67_0xcdb8ce(0xcb),'description':a67_0xcdb8ce(0xaa),'risk':'write','confirmationDescription':a67_0xcdb8ce(0xc3),'requiresAuth':![],'requiresAppCode':![],'flags':[FILE_FLAG],async 'dryRun'(_0x3fb469){const _0x5735ec=a67_0xcdb8ce,_0x2b427a=loadServiceManifestFromFile(_0x3fb469[_0x5735ec(0xbc)]('file'));return{'method':'WRITE','url':getServiceRegistryPath(),'body':{'file':_0x2b427a['filePath'],'hash':_0x2b427a[_0x5735ec(0xb5)],'kind':_0x2b427a[_0x5735ec(0x8d)],'ok':_0x2b427a[_0x5735ec(0x97)]['ok'],'service':_0x2b427a[_0x5735ec(0xa1)]?.[_0x5735ec(0x99)],'version':_0x2b427a[_0x5735ec(0xa1)]?.[_0x5735ec(0x9c)],'serviceCount':_0x2b427a[_0x5735ec(0xcd)]['length'],'services':_0x2b427a[_0x5735ec(0xcd)][_0x5735ec(0xb3)](_0x14fa72=>({'service':_0x14fa72['normalizedManifest']?.[_0x5735ec(0x99)],'version':_0x14fa72[_0x5735ec(0xa1)]?.['version'],'commandCount':_0x14fa72[_0x5735ec(0xa1)]?.[_0x5735ec(0xbe)][_0x5735ec(0x9b)]??0x0,'errors':_0x14fa72[_0x5735ec(0x97)][_0x5735ec(0x98)]})),'errors':_0x2b427a[_0x5735ec(0x97)][_0x5735ec(0x98)],'commandCount':_0x2b427a[_0x5735ec(0xa1)]?.['commands'][_0x5735ec(0x9b)]??0x0},'description':_0x5735ec(0xc2)};},async 'execute'(_0x4b4d5e){const _0x2e5d5d=a67_0xcdb8ce,_0x1c260d=importServiceManifest(_0x4b4d5e[_0x2e5d5d(0xbc)]('file'));if(_0x1c260d[_0x2e5d5d(0xba)][_0x2e5d5d(0x9b)]!==0x1)return{'ok':!![],'data':{'registryPath':_0x1c260d[_0x2e5d5d(0x96)],'imported':_0x1c260d[_0x2e5d5d(0xa4)],'updated':_0x1c260d[_0x2e5d5d(0x8b)],'serviceCount':_0x1c260d[_0x2e5d5d(0xc8)],'services':_0x1c260d['entries'][_0x2e5d5d(0xb3)](summarizeService)},'message':_0x2e5d5d(0xc4)+_0x1c260d['imported']+_0x2e5d5d(0xa0)+_0x1c260d[_0x2e5d5d(0x8b)]+_0x2e5d5d(0xc1)};return{'ok':!![],'data':{'registryPath':_0x1c260d[_0x2e5d5d(0x96)],'replaced':_0x1c260d['replaced'],'imported':_0x1c260d[_0x2e5d5d(0xa4)],'updated':_0x1c260d[_0x2e5d5d(0x8b)],'serviceCount':_0x1c260d[_0x2e5d5d(0xc8)],'service':summarizeService(_0x1c260d['entry'])},'message':(_0x1c260d['replaced']?_0x2e5d5d(0x92):_0x2e5d5d(0xc7))+_0x2e5d5d(0xbd)+_0x1c260d[_0x2e5d5d(0xa8)][_0x2e5d5d(0x9d)]+'.'};}},{'service':a67_0xcdb8ce(0x99),'command':a67_0xcdb8ce(0xa6),'description':a67_0xcdb8ce(0xaf),'risk':a67_0xcdb8ce(0x9f),'confirmationDescription':a67_0xcdb8ce(0xca),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG,FILE_FLAG],async 'dryRun'(_0x2feef4){const _0xa4be1=a67_0xcdb8ce,_0x55f5b9=getLocalServiceEntry(_0x2feef4['str']('service'));return{'method':'WRITE','url':_0x2feef4[_0xa4be1(0xbc)](_0xa4be1(0x95)),'body':{'service':_0x2feef4['str']('service'),'found':Boolean(_0x55f5b9),'version':_0x55f5b9?.[_0xa4be1(0x9c)],'source':_0x55f5b9?.[_0xa4be1(0xa5)]},'description':'Preview\x20Service\x20Tree\x20export\x20from\x20~/.lovrabet/service.json'};},async 'execute'(_0x146e98){const _0x299ca1=a67_0xcdb8ce,_0x117311=exportServiceManifest(_0x146e98[_0x299ca1(0xbc)](_0x299ca1(0x99)),_0x146e98[_0x299ca1(0xbc)](_0x299ca1(0x95)));return{'ok':!![],'data':{'registryPath':_0x117311[_0x299ca1(0x96)],'file':_0x117311[_0x299ca1(0xc5)],'service':summarizeService(_0x117311[_0x299ca1(0xa8)])},'message':'Exported\x20service\x20'+_0x117311[_0x299ca1(0xa8)][_0x299ca1(0x9d)]+'.'};}},{'service':a67_0xcdb8ce(0x99),'command':a67_0xcdb8ce(0xb4),'description':a67_0xcdb8ce(0xb7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[],async 'execute'(){const _0x551ba2=a67_0xcdb8ce,_0x5b9800=listLocalServices();return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'total':_0x5b9800[_0x551ba2(0x9b)],'services':_0x5b9800[_0x551ba2(0xb3)](summarizeService)}};}},{'service':a67_0xcdb8ce(0x99),'command':'remove','description':a67_0xcdb8ce(0xb9),'risk':a67_0xcdb8ce(0x9f),'confirmationDescription':'Removes\x20the\x20given\x20service\x20manifest\x20from\x20the\x20local\x20Service\x20Tree\x20registry.\x20Dynamic\x20commands\x20from\x20that\x20manifest\x20will\x20no\x20longer\x20be\x20available.','requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'dryRun'(_0x5a618f){const _0xedc769=a67_0xcdb8ce,_0x3923b2=getLocalServiceEntry(_0x5a618f[_0xedc769(0xbc)](_0xedc769(0x99)));return{'method':'WRITE','url':getServiceRegistryPath(),'body':{'service':_0x5a618f[_0xedc769(0xbc)](_0xedc769(0x99)),'found':Boolean(_0x3923b2),'version':_0x3923b2?.[_0xedc769(0x9c)],'source':_0x3923b2?.[_0xedc769(0xa5)]},'description':_0xedc769(0x86)};},async 'execute'(_0x1edae4){const _0x2c806d=a67_0xcdb8ce,_0x1b0c94=removeServiceManifest(_0x1edae4[_0x2c806d(0xbc)]('service'));return{'ok':!![],'data':{'registryPath':_0x1b0c94['registryPath'],'serviceCount':_0x1b0c94[_0x2c806d(0xc8)],'service':summarizeService(_0x1b0c94['entry'])},'message':_0x2c806d(0xcf)+_0x1b0c94['entry']['serviceCode']+'.'};}},{'service':'service','command':a67_0xcdb8ce(0xce),'description':a67_0xcdb8ce(0xb2),'risk':a67_0xcdb8ce(0x91),'requiresAuth':![],'requiresAppCode':![],'flags':[SERVICE_FLAG],async 'execute'(_0x2a26a2){const _0x1eb238=a67_0xcdb8ce,_0x3663b0=getLocalServiceEntry(_0x2a26a2[_0x1eb238(0xbc)]('service'));if(!_0x3663b0)return{'ok':![],'data':{'registryPath':getServiceRegistryPath(),'service':_0x2a26a2[_0x1eb238(0xbc)](_0x1eb238(0x99))},'message':_0x1eb238(0xbf)+_0x2a26a2[_0x1eb238(0xbc)](_0x1eb238(0x99))};return{'ok':!![],'data':{'registryPath':getServiceRegistryPath(),'service':summarizeService(_0x3663b0),'manifest':_0x3663b0['manifest'],'normalizedManifest':toPublicNormalizedServiceTree(_0x3663b0['normalizedManifest'])}};}}];