@lovrabet/lovrabet-cli 2.3.0 → 2.3.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/help.js +1 -1
  132. package/lib/postinstall.js +1 -1
  133. package/lib/runtime/confirmation.js +1 -1
  134. package/lib/runtime/event.js +1 -1
  135. package/lib/runtime/index.js +1 -1
  136. package/lib/runtime/queue.js +1 -1
  137. package/lib/runtime/resolve.js +1 -1
  138. package/lib/skills/builtin-skill.js +1 -1
  139. package/lib/skills/npx-skills-add.js +1 -1
  140. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  141. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  142. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  143. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  144. package/lib/skills/runtime-skill-sync/links.js +1 -1
  145. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  146. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  147. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  148. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  149. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  150. package/lib/skills/runtime-skill-sync/push.js +1 -1
  151. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  152. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  154. package/lib/skills/runtime-skill-sync.js +1 -1
  155. package/lib/skills/skill-presence.js +1 -1
  156. package/lib/utils/access-key-redaction.js +1 -1
  157. package/lib/utils/apply-jq-filter.js +1 -1
  158. package/lib/utils/cli-version-check.js +1 -1
  159. package/lib/utils/cli-version-policy.js +1 -1
  160. package/lib/utils/logger.js +1 -1
  161. package/lib/utils/lossless-json.js +1 -1
  162. package/lib/utils/params.js +1 -1
  163. package/lib/utils/platform.js +1 -1
  164. package/lib/utils/update-notice.js +1 -1
  165. package/lib/utils/version.js +1 -1
  166. package/lib/utils/write-cli-side-channel.js +1 -1
  167. package/package.json +1 -1
  168. package/skills/lovrabet/SKILL.md +3 -2
  169. package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
  170. package/skills/lovrabet/references/lovrabet-config-commands.md +2 -2
  171. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  172. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  173. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  174. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +32 -0
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a27_0x1337(_0x55462d,_0x13895a){_0x55462d=_0x55462d-0x9b;const _0x50777d=a27_0x5077();let _0x133748=_0x50777d[_0x55462d];return _0x133748;}(function(_0x2f2bfb,_0x37ace3){const _0x211f42=a27_0x1337,_0x2938a5=_0x2f2bfb();while(!![]){try{const _0x49798c=parseInt(_0x211f42(0x9e))/0x1+parseInt(_0x211f42(0x9d))/0x2+parseInt(_0x211f42(0xa4))/0x3*(parseInt(_0x211f42(0x9c))/0x4)+-parseInt(_0x211f42(0xa2))/0x5+parseInt(_0x211f42(0xa1))/0x6+parseInt(_0x211f42(0xa3))/0x7*(parseInt(_0x211f42(0x9f))/0x8)+-parseInt(_0x211f42(0x9b))/0x9*(parseInt(_0x211f42(0xa0))/0xa);if(_0x49798c===_0x37ace3)break;else _0x2938a5['push'](_0x2938a5['shift']());}catch(_0x45e284){_0x2938a5['push'](_0x2938a5['shift']());}}}(a27_0x5077,0xdb505));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a27_0x5077(){const _0x5ac665=['603hxWqpW','4CpqnGb','720666kmCfgg','1600792FEbYlx','136EQqJIO','97210dWylyn','3623160PJPBpn','7833905bjlDse','56168BZOmrN','1245012GVfIiJ'];a27_0x5077=function(){return _0x5ac665;};return a27_0x5077();}
1
+ function a27_0x488c(){const _0x1f93af=['5TFXzdC','216NYJERl','1361538MDusMF','4SIKRDg','2556702UhKAEK','2799573fCsyms','518067DUQTnc','229853lsItkd','124EazEyM','23874jOENev','30oFgGyB','2708712NwCkKq'];a27_0x488c=function(){return _0x1f93af;};return a27_0x488c();}(function(_0x10cdd4,_0x1d4b2b){const _0x2910b5=a27_0x11b6,_0x29e448=_0x10cdd4();while(!![]){try{const _0x1a0c47=-parseInt(_0x2910b5(0x152))/0x1*(parseInt(_0x2910b5(0x14e))/0x2)+parseInt(_0x2910b5(0x154))/0x3*(-parseInt(_0x2910b5(0x153))/0x4)+parseInt(_0x2910b5(0x157))/0x5*(-parseInt(_0x2910b5(0x14f))/0x6)+parseInt(_0x2910b5(0x150))/0x7+-parseInt(_0x2910b5(0x156))/0x8+parseInt(_0x2910b5(0x159))/0x9*(parseInt(_0x2910b5(0x155))/0xa)+parseInt(_0x2910b5(0x151))/0xb*(parseInt(_0x2910b5(0x158))/0xc);if(_0x1a0c47===_0x1d4b2b)break;else _0x29e448['push'](_0x29e448['shift']());}catch(_0x13feaf){_0x29e448['push'](_0x29e448['shift']());}}}(a27_0x488c,0x38415));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0x11b6(_0x328da3,_0x29bde8){_0x328da3=_0x328da3-0x14e;const _0x488cb7=a27_0x488c();let _0x11b624=_0x488cb7[_0x328da3];return _0x11b624;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a28_0x4bbc48=a28_0x14cf;function a28_0x14cf(_0x103ba1,_0x46dca8){_0x103ba1=_0x103ba1-0x7d;const _0x213666=a28_0x2136();let _0x14cf18=_0x213666[_0x103ba1];return _0x14cf18;}(function(_0x13cb8a,_0x1e6c60){const _0x2d0a75=a28_0x14cf,_0x2ee9b7=_0x13cb8a();while(!![]){try{const _0x1a1f1e=parseInt(_0x2d0a75(0x86))/0x1*(-parseInt(_0x2d0a75(0x9b))/0x2)+parseInt(_0x2d0a75(0x82))/0x3+parseInt(_0x2d0a75(0x83))/0x4*(-parseInt(_0x2d0a75(0x8e))/0x5)+-parseInt(_0x2d0a75(0x96))/0x6+parseInt(_0x2d0a75(0x85))/0x7*(parseInt(_0x2d0a75(0x93))/0x8)+-parseInt(_0x2d0a75(0x99))/0x9*(-parseInt(_0x2d0a75(0x87))/0xa)+parseInt(_0x2d0a75(0x88))/0xb*(parseInt(_0x2d0a75(0x81))/0xc);if(_0x1a1f1e===_0x1e6c60)break;else _0x2ee9b7['push'](_0x2ee9b7['shift']());}catch(_0x4b2d57){_0x2ee9b7['push'](_0x2ee9b7['shift']());}}}(a28_0x2136,0x26084));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a28_0x4bbc48(0x8a),'description':a28_0x4bbc48(0x90),'risk':'read','flags':[{'name':a28_0x4bbc48(0x8d),'type':a28_0x4bbc48(0x7f),'description':a28_0x4bbc48(0x95)},{...CODE_FLAG,'required':![],'description':a28_0x4bbc48(0x7e)}],async 'execute'(_0x400017){const _0x28b507=a28_0x4bbc48,_0x544e9f=_0x400017[_0x28b507(0x97)]('name'),_0x553eea=_0x400017[_0x28b507(0x97)](_0x28b507(0x92)),_0x244f90=await listDatasets(_0x400017[_0x28b507(0x7d)],{..._0x544e9f&&{'name':_0x544e9f},..._0x553eea&&{'code':_0x553eea}});return{'ok':!![],'data':{'total':_0x244f90[_0x28b507(0x89)],'datasets':_0x244f90[_0x28b507(0x80)](_0x1fbcef=>{const _0x5c9196=_0x28b507,_0x1179d1=_0x1fbcef[_0x5c9196(0x98)]??{};return{'id':_0x1fbcef['id'],'code':_0x1fbcef[_0x5c9196(0x92)],'name':_0x1fbcef[_0x5c9196(0x8d)],'source':_0x1fbcef[_0x5c9196(0x9a)],'description':_0x1fbcef[_0x5c9196(0x8f)],'table':_0x1179d1['tableName'],'datasetKey':_0x1179d1[_0x5c9196(0x8b)],'pk':_0x1179d1[_0x5c9196(0x84)],'fields':_0x1179d1[_0x5c9196(0x8c)]?_0x1179d1[_0x5c9196(0x8c)][_0x5c9196(0x91)](',')[_0x5c9196(0x80)](_0x440cf7=>_0x440cf7[_0x5c9196(0x94)]()):[]};})}};}};function a28_0x2136(){const _0x19327b=['Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','1317930knTeVm','str','dbtableConfig','851490IEshTt','source','19996XpPdWn','appCode','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','string','map','732UjCNgS','175005JLSkfD','4ifrbYK','pkField','7YqGuaD','2KmJVHb','20NINXYA','31625qCydOE','length','list','datasetKey','allFields','name','335380GfRChY','description','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','split','code','316616DPUBJH','trim'];a28_0x2136=function(){return _0x19327b;};return a28_0x2136();}
1
+ const a28_0x16ab87=a28_0x49d0;(function(_0x4c5305,_0x5997b7){const _0x3e39ee=a28_0x49d0,_0xf0f498=_0x4c5305();while(!![]){try{const _0x360079=-parseInt(_0x3e39ee(0x115))/0x1*(-parseInt(_0x3e39ee(0x108))/0x2)+-parseInt(_0x3e39ee(0x105))/0x3*(-parseInt(_0x3e39ee(0x106))/0x4)+parseInt(_0x3e39ee(0x116))/0x5+parseInt(_0x3e39ee(0x111))/0x6+parseInt(_0x3e39ee(0x10c))/0x7*(-parseInt(_0x3e39ee(0x10b))/0x8)+parseInt(_0x3e39ee(0x101))/0x9*(-parseInt(_0x3e39ee(0x113))/0xa)+parseInt(_0x3e39ee(0x107))/0xb*(-parseInt(_0x3e39ee(0x104))/0xc);if(_0x360079===_0x5997b7)break;else _0xf0f498['push'](_0xf0f498['shift']());}catch(_0x5311e1){_0xf0f498['push'](_0xf0f498['shift']());}}}(a28_0x154e,0xd82f7));function a28_0x49d0(_0x57919d,_0x262951){_0x57919d=_0x57919d-0xff;const _0x154edf=a28_0x154e();let _0x49d01=_0x154edf[_0x57919d];return _0x49d01;}import{listDatasets}from'../../core/api-client.js';function a28_0x154e(){const _0x1ec21e=['dataset','12uhssys','1167Bdgwvb','11188eDAUJd','25776377XzHXer','28zUsSlH','map','length','288CyIvra','181489WHtLRE','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','source','read','description','4209654lKbBFF','tableName','20qKNfUP','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','108027JTstyq','6960100OxehGX','name','list','allFields','code','str','datasetKey','trim','2393397HpbEKj','string'];a28_0x154e=function(){return _0x1ec21e;};return a28_0x154e();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x16ab87(0x103),'command':a28_0x16ab87(0x118),'description':a28_0x16ab87(0x10d),'risk':a28_0x16ab87(0x10f),'flags':[{'name':'name','type':a28_0x16ab87(0x102),'description':a28_0x16ab87(0x114)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x4f17d6){const _0x58a5ee=a28_0x16ab87,_0x289063=_0x4f17d6['str'](_0x58a5ee(0x117)),_0x4385ff=_0x4f17d6[_0x58a5ee(0x11b)](_0x58a5ee(0x11a)),_0x200688=await listDatasets(_0x4f17d6['appCode'],{..._0x289063&&{'name':_0x289063},..._0x4385ff&&{'code':_0x4385ff}});return{'ok':!![],'data':{'total':_0x200688[_0x58a5ee(0x10a)],'datasets':_0x200688[_0x58a5ee(0x109)](_0x5ddf30=>{const _0x286602=_0x58a5ee,_0x41d98a=_0x5ddf30['dbtableConfig']??{};return{'id':_0x5ddf30['id'],'code':_0x5ddf30[_0x286602(0x11a)],'name':_0x5ddf30[_0x286602(0x117)],'source':_0x5ddf30[_0x286602(0x10e)],'description':_0x5ddf30[_0x286602(0x110)],'table':_0x41d98a[_0x286602(0x112)],'datasetKey':_0x41d98a[_0x286602(0xff)],'pk':_0x41d98a['pkField'],'fields':_0x41d98a[_0x286602(0x119)]?_0x41d98a[_0x286602(0x119)]['split'](',')[_0x286602(0x109)](_0x30b945=>_0x30b945[_0x286602(0x100)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a29_0x47e192=a29_0x53b3;(function(_0x358776,_0xa3a90f){const _0x8d5000=a29_0x53b3,_0x3ba656=_0x358776();while(!![]){try{const _0x65624a=-parseInt(_0x8d5000(0x14b))/0x1+parseInt(_0x8d5000(0x146))/0x2+parseInt(_0x8d5000(0x14a))/0x3+parseInt(_0x8d5000(0x141))/0x4+-parseInt(_0x8d5000(0x14d))/0x5+-parseInt(_0x8d5000(0x150))/0x6*(parseInt(_0x8d5000(0x145))/0x7)+parseInt(_0x8d5000(0x14e))/0x8;if(_0x65624a===_0xa3a90f)break;else _0x3ba656['push'](_0x3ba656['shift']());}catch(_0x520d40){_0x3ba656['push'](_0x3ba656['shift']());}}}(a29_0x46c3,0x212c6));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x47e192(0x144);export function formatDatasetSdkMarkdown(_0x4a7cc4){const _0x579e1a=a29_0x47e192,_0xe988ec=typeof _0x4a7cc4===_0x579e1a(0x151)?_0x4a7cc4[_0x579e1a(0x14c)]():'';return _0xe988ec||DEFAULT_MARKDOWN;}function a29_0x46c3(){const _0x3211f4=['401040sZdkNH','code','read','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','453318kQJrmB','257833MCCFlH','trim','1303230AbmShu','2499344zvdoYp','appCode','6VQYEGH','string','564076bgYaBE','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','str','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','1054942sdqYYi'];a29_0x46c3=function(){return _0x3211f4;};return a29_0x46c3();}function a29_0x53b3(_0x1f5b3f,_0x4da524){_0x1f5b3f=_0x1f5b3f-0x141;const _0x46c377=a29_0x46c3();let _0x53b376=_0x46c377[_0x1f5b3f];return _0x53b376;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a29_0x47e192(0x142),'risk':a29_0x47e192(0x148),'flags':[{...CODE_FLAG,'description':a29_0x47e192(0x149)}],async 'execute'(_0x28293a){const _0x428ead=a29_0x47e192,_0x562ec1=_0x28293a[_0x428ead(0x143)](_0x428ead(0x147)),_0x193a4d=await getDatasetSdkUsageDoc(_0x562ec1,_0x28293a['appCode']);return{'ok':!![],'data':{'code':_0x562ec1,'appCode':_0x28293a[_0x428ead(0x14f)],'markdown':formatDatasetSdkMarkdown(_0x193a4d)}};}};
1
+ const a29_0x70f805=a29_0xcd1d;(function(_0x10911b,_0x22e6a0){const _0x4c6f4b=a29_0xcd1d,_0x3cc6cb=_0x10911b();while(!![]){try{const _0x2fbb04=parseInt(_0x4c6f4b(0x133))/0x1*(parseInt(_0x4c6f4b(0x12a))/0x2)+-parseInt(_0x4c6f4b(0x136))/0x3+parseInt(_0x4c6f4b(0x135))/0x4+parseInt(_0x4c6f4b(0x12f))/0x5+parseInt(_0x4c6f4b(0x132))/0x6*(-parseInt(_0x4c6f4b(0x130))/0x7)+parseInt(_0x4c6f4b(0x128))/0x8*(parseInt(_0x4c6f4b(0x12b))/0x9)+-parseInt(_0x4c6f4b(0x129))/0xa;if(_0x2fbb04===_0x22e6a0)break;else _0x3cc6cb['push'](_0x3cc6cb['shift']());}catch(_0x27f595){_0x3cc6cb['push'](_0x3cc6cb['shift']());}}}(a29_0x38aa,0x84efa));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0xcd1d(_0x392fc1,_0x31d1bf){_0x392fc1=_0x392fc1-0x128;const _0x38aa51=a29_0x38aa();let _0xcd1d9e=_0x38aa51[_0x392fc1];return _0xcd1d9e;}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';function a29_0x38aa(){const _0x38f4ef=['42RStskx','18013NAICtR','read','1378524pWZoTT','1671327LsAXCN','dataset','string','sdk-doc','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3429832GToKwo','3064020saFYjp','62lzfzjG','18zJnJqx','code','appCode','trim','1024290JItdEq','557333kyIzmw','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a29_0x38aa=function(){return _0x38f4ef;};return a29_0x38aa();}export function formatDatasetSdkMarkdown(_0x331e51){const _0x534c5c=a29_0xcd1d,_0x4bc340=typeof _0x331e51===_0x534c5c(0x138)?_0x331e51[_0x534c5c(0x12e)]():'';return _0x4bc340||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0x70f805(0x137),'command':a29_0x70f805(0x139),'description':a29_0x70f805(0x131),'risk':a29_0x70f805(0x134),'flags':[{...CODE_FLAG,'description':a29_0x70f805(0x13a)}],async 'execute'(_0x15a734){const _0x2408ea=a29_0x70f805,_0x254cd0=_0x15a734['str'](_0x2408ea(0x12c)),_0x1043ae=await getDatasetSdkUsageDoc(_0x254cd0,_0x15a734[_0x2408ea(0x12d)]);return{'ok':!![],'data':{'code':_0x254cd0,'appCode':_0x15a734[_0x2408ea(0x12d)],'markdown':formatDatasetSdkMarkdown(_0x1043ae)}};}};
@@ -1 +1 @@
1
- const a30_0xe2a714=a30_0x4fe7;(function(_0x1a54bf,_0x122c19){const _0x3766fe=a30_0x4fe7,_0x596645=_0x1a54bf();while(!![]){try{const _0x29edbe=-parseInt(_0x3766fe(0x1d7))/0x1*(parseInt(_0x3766fe(0x1d1))/0x2)+-parseInt(_0x3766fe(0x1db))/0x3*(parseInt(_0x3766fe(0x1c5))/0x4)+-parseInt(_0x3766fe(0x1a3))/0x5+parseInt(_0x3766fe(0x1f7))/0x6+-parseInt(_0x3766fe(0x1fd))/0x7*(parseInt(_0x3766fe(0x1ca))/0x8)+-parseInt(_0x3766fe(0x1fc))/0x9+parseInt(_0x3766fe(0x1f0))/0xa;if(_0x29edbe===_0x122c19)break;else _0x596645['push'](_0x596645['shift']());}catch(_0x536bae){_0x596645['push'](_0x596645['shift']());}}}(a30_0x25f2,0x9ec89));import a30_0x2dee60 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a30_0x25f2(){const _0x3c2de4=['riskLevel','(unnamed)','locale','length','raw','1716480uQFFqT','platform','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','registryPath','bold','green','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','version','installedPath','source','missing','⚠\x20Empty\x20(treated\x20as\x20{})','region','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20Merged\x20Config','repeat','padEnd','Global','Project','\x20\x20Config\x20JSON','\x20\x20Installed\x20Path:\x20\x20','✓\x20Loaded','\x20\x20Skill\x20Version:\x20\x20\x20','(none)','accessKey','commandCount','message','ignored\x20in\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','gray','global','4MXmtZK','serviceCode','pageSize','status','path','11816kgfGUm','globalConfig','prototype','\x20config\x20delete\x20inherit','\x20\x20Built-in\x20Skill','inherit','\x20Imported\x20from:\x20','2ZTyDxU','state','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','currentApp','349814BFYdkz','call','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✓\x20current','950043AAuSbK','join','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','name','✗\x20Invalid\x20JSON','\x20\x20Auth','\x20doctor','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','filter','\x20\x20Repair\x20global:\x20\x20\x20\x20','hasOwnProperty','read','reason','verbose','services','\x20\x20Legacy\x20inherit:\x20\x20\x20','(missing)','29302130QgrlTQ','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','check','projectConfig','\x20\x20Session\x20check:\x20\x20\x20','49470BKWcAU','ClientAk','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','format','doctor','2545128kyLNTQ','4718HXuDTU','\x20\x20─','(set,\x20length=','(not\x20set)','arch','empty','\x20config','\x20\x20Package\x20Version:\x20','serviceCount','repairCommand','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','red','skillVersion','log','\x20\x20Config\x20Files','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','yellow','✗\x20Invalid','project','appCode','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','current','(default:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a30_0x25f2=function(){return _0x3c2de4;};return a30_0x25f2();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';function a30_0x4fe7(_0x59c961,_0x245cab){_0x59c961=_0x59c961-0x1a1;const _0x25f220=a30_0x25f2();let _0x4fe766=_0x25f220[_0x59c961];return _0x4fe766;}import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x33c72c){const _0xb9c425=a30_0x4fe7,_0x2a7bcc=getCliVersion(),_0x31c526=buildConfigFromFlags({});await initGlobalEnvironment(_0x31c526),console[_0xb9c425(0x20c)](),console[_0xb9c425(0x20c)](a30_0x2dee60['bold'](CLI_BIN_NAME+_0xb9c425(0x1e1))),console[_0xb9c425(0x20c)](a30_0x2dee60['gray']('─'['repeat'](0x32))),console[_0xb9c425(0x20c)](_0xb9c425(0x1f9)+_0x2a7bcc),console[_0xb9c425(0x20c)](_0xb9c425(0x1dd)+process[_0xb9c425(0x1ac)]),console[_0xb9c425(0x20c)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xb9c425(0x1a4)]+'\x20'+process[_0xb9c425(0x201)]);const _0x84692d=inspectBuiltinSkill();console['log'](),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1a8)](_0xb9c425(0x1ce))),console['log'](a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1fe)[_0xb9c425(0x1b5)](0x1e))),console[_0xb9c425(0x20c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x84692d[_0xb9c425(0x1d2)]===_0xb9c425(0x214)?a30_0x2dee60['green'](_0xb9c425(0x1da)):a30_0x2dee60[_0xb9c425(0x20a)]('✗\x20'+_0x84692d[_0xb9c425(0x1d2)]))),console[_0xb9c425(0x20c)](_0xb9c425(0x204)+_0x84692d['packageVersion']),console[_0xb9c425(0x20c)](_0xb9c425(0x1bc)+(_0x84692d[_0xb9c425(0x20b)]||a30_0x2dee60[_0xb9c425(0x1c3)]('(missing)'))),console[_0xb9c425(0x20c)](_0xb9c425(0x1ba)+(_0x84692d[_0xb9c425(0x1ad)]||a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1d5))));_0x84692d[_0xb9c425(0x1d2)]!==_0xb9c425(0x214)&&console[_0xb9c425(0x20c)](_0xb9c425(0x1f1)+_0x84692d[_0xb9c425(0x206)]);_0x84692d[_0xb9c425(0x1eb)]&&console[_0xb9c425(0x20c)](_0xb9c425(0x1d3)+_0x84692d[_0xb9c425(0x1eb)]);console[_0xb9c425(0x20c)](),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1a8)](_0xb9c425(0x20d))),console['log'](a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1fe)[_0xb9c425(0x1b5)](0x1e)));const _0x3477d8=getGlobalConfigPath(),_0x35520c=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3477d8||a30_0x2dee60['gray'](_0xb9c425(0x1d5)))),console[_0xb9c425(0x20c)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x35520c||a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1d5)))),console['log'](),console['log'](a30_0x2dee60[_0xb9c425(0x1a8)](_0xb9c425(0x1b9))),console['log'](a30_0x2dee60[_0xb9c425(0x1c3)]('\x20\x20─'[_0xb9c425(0x1b5)](0x1e)));const _0x4012a1=(_0x61ac39,_0x552562)=>{const _0x377640=_0xb9c425;if(!_0x552562){console[_0x377640(0x20c)]('\x20\x20'+_0x61ac39[_0x377640(0x1b6)](0x11)+'\x20'+a30_0x2dee60['gray']('(no\x20file)'));return;}const _0x461b0d=inspectCliConfigJsonFile(_0x552562);if(_0x461b0d[_0x377640(0x1c8)]==='ok')console[_0x377640(0x20c)]('\x20\x20'+_0x61ac39[_0x377640(0x1b6)](0x11)+'\x20'+a30_0x2dee60[_0x377640(0x1a9)](_0x377640(0x1e3)));else{if(_0x461b0d['status']===_0x377640(0x202))console[_0x377640(0x20c)]('\x20\x20'+_0x61ac39[_0x377640(0x1b6)](0x11)+'\x20'+a30_0x2dee60[_0x377640(0x20f)](_0x377640(0x1b0)));else _0x461b0d['status']==='missing'?console[_0x377640(0x20c)]('\x20\x20'+_0x61ac39[_0x377640(0x1b6)](0x11)+'\x20'+a30_0x2dee60[_0x377640(0x1c3)](_0x377640(0x1ef))):(console[_0x377640(0x20c)]('\x20\x20'+_0x61ac39[_0x377640(0x1b6)](0x11)+'\x20'+a30_0x2dee60[_0x377640(0x20a)](_0x377640(0x1df))),console[_0x377640(0x20c)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a30_0x2dee60[_0x377640(0x20a)](_0x461b0d[_0x377640(0x1c0)])));}};_0x4012a1(_0xb9c425(0x1b7),_0x3477d8),_0x4012a1(_0xb9c425(0x1b8),_0x35520c);const _0x310631=loadRawConfigLayers(),_0xf1125b=[Object[_0xb9c425(0x1cc)][_0xb9c425(0x1e9)][_0xb9c425(0x1d8)](_0x310631[_0xb9c425(0x1cb)],_0xb9c425(0x1cf))?_0xb9c425(0x1c4):null,Object[_0xb9c425(0x1cc)][_0xb9c425(0x1e9)][_0xb9c425(0x1d8)](_0x310631[_0xb9c425(0x1f5)],'inherit')?'project':null][_0xb9c425(0x1e7)](Boolean);_0xf1125b[_0xb9c425(0x1a1)]>0x0&&(console['log'](_0xb9c425(0x1ee)+a30_0x2dee60[_0xb9c425(0x20f)](_0xb9c425(0x1c1)+_0xf1125b[_0xb9c425(0x1dc)]('\x20+\x20')+_0xb9c425(0x203))),_0xf1125b['includes'](_0xb9c425(0x211))&&console[_0xb9c425(0x20c)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0xb9c425(0x1cd)),_0xf1125b['includes'](_0xb9c425(0x1c4))&&console[_0xb9c425(0x20c)](_0xb9c425(0x1e8)+CLI_BIN_NAME+_0xb9c425(0x1e5)));console[_0xb9c425(0x20c)](),console['log'](a30_0x2dee60[_0xb9c425(0x1a8)](_0xb9c425(0x1b4))),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1c3)]('\x20\x20─'[_0xb9c425(0x1b5)](0x1e))),console[_0xb9c425(0x20c)](_0xb9c425(0x1f2)+(_0x31c526[_0xb9c425(0x212)]||a30_0x2dee60[_0xb9c425(0x20a)](_0xb9c425(0x200)))),console[_0xb9c425(0x20c)](_0xb9c425(0x216)+_0x31c526['env']),console[_0xb9c425(0x20c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+normalizeLovrabetRegion(_0x31c526[_0xb9c425(0x1a2)][_0xb9c425(0x1b1)])),console[_0xb9c425(0x20c)](_0xb9c425(0x1ab)+_0x31c526[_0xb9c425(0x219)]),console[_0xb9c425(0x20c)](_0xb9c425(0x1a6)+(_0x31c526['defaultApp']||a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1bd)))),console['log'](_0xb9c425(0x1f3)+(_0x31c526[_0xb9c425(0x1d6)]||a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1bd)))),console[_0xb9c425(0x20c)](_0xb9c425(0x1e2)+(_0x31c526[_0xb9c425(0x1fa)]||a30_0x2dee60['gray'](_0xb9c425(0x215)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xb9c425(0x20c)](_0xb9c425(0x1e4)+(_0x31c526[_0xb9c425(0x1c7)]??a30_0x2dee60[_0xb9c425(0x1c3)]('(default)'))),console['log'](_0xb9c425(0x1e6)+_0x31c526[_0xb9c425(0x217)]),console[_0xb9c425(0x20c)](_0xb9c425(0x1d4)+_0x31c526[_0xb9c425(0x1ec)]),console[_0xb9c425(0x20c)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0xb9c425(0x1f8)]),console[_0xb9c425(0x20c)](_0xb9c425(0x1b2)+(_0x31c526['accessKey']?a30_0x2dee60[_0xb9c425(0x1a9)](_0xb9c425(0x1ff)+_0x31c526[_0xb9c425(0x1be)][_0xb9c425(0x1a1)]+')'):a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1bd)))),console[_0xb9c425(0x20c)](),console['log'](a30_0x2dee60['bold'](_0xb9c425(0x1b3))),console['log'](a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1fe)[_0xb9c425(0x1b5)](0x1e))),console['log'](_0xb9c425(0x1d9)+getApiDomain()),console['log'](_0xb9c425(0x213)+getUserDomain()),console[_0xb9c425(0x20c)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0xb9c425(0x20c)](_0xb9c425(0x1aa)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0xb9c425(0x20c)](),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1a8)]('\x20\x20Service\x20Tree')),console[_0xb9c425(0x20c)](a30_0x2dee60['gray']('\x20\x20─'[_0xb9c425(0x1b5)](0x1e)));const _0x1d9762=inspectServiceRegistry();console[_0xb9c425(0x20c)](_0xb9c425(0x207)+_0x1d9762[_0xb9c425(0x1a7)]),console[_0xb9c425(0x20c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x1d9762)),console['log'](_0xb9c425(0x20e)+_0x1d9762[_0xb9c425(0x205)]),console[_0xb9c425(0x20c)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d9762[_0xb9c425(0x1bf)]);for(const _0x5eed5f of _0x1d9762[_0xb9c425(0x1ed)]){console[_0xb9c425(0x20c)]('\x20\x20'+(_0x5eed5f[_0xb9c425(0x1c6)]+':')['padEnd'](0x11)+'\x20'+(_0x5eed5f[_0xb9c425(0x1de)]||a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x218)))+'\x20('+_0x5eed5f[_0xb9c425(0x1bf)]+'\x20commands)'),console['log']('\x20\x20'+''[_0xb9c425(0x1b6)](0x11)+_0xb9c425(0x1d0)+_0x5eed5f[_0xb9c425(0x1ae)][_0xb9c425(0x1c9)]);}return console[_0xb9c425(0x20c)](),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1a8)](_0xb9c425(0x1e0))),console[_0xb9c425(0x20c)](a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1fe)['repeat'](0x1e))),console['log'](_0xb9c425(0x208)+a30_0x2dee60[_0xb9c425(0x1a9)](AUTH_MODE['ClientAk']+_0xb9c425(0x209))),console[_0xb9c425(0x20c)](_0xb9c425(0x1f6)+a30_0x2dee60[_0xb9c425(0x1c3)](_0xb9c425(0x1c2))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3ca502){const _0xa3c5f2=a30_0x4fe7;if(_0x3ca502[_0xa3c5f2(0x1c8)]==='ok')return a30_0x2dee60[_0xa3c5f2(0x1a9)](_0xa3c5f2(0x1bb));if(_0x3ca502['status']===_0xa3c5f2(0x1af))return a30_0x2dee60[_0xa3c5f2(0x1c3)](_0xa3c5f2(0x1d5));if(_0x3ca502[_0xa3c5f2(0x1c8)]===_0xa3c5f2(0x202))return a30_0x2dee60[_0xa3c5f2(0x20f)]('⚠\x20Empty');return a30_0x2dee60[_0xa3c5f2(0x20a)](_0xa3c5f2(0x210)+(_0x3ca502[_0xa3c5f2(0x1c0)]?':\x20'+_0x3ca502[_0xa3c5f2(0x1c0)]:''));}export const doctorDefinition={'service':a30_0xe2a714(0x1fb),'command':a30_0xe2a714(0x1f4),'description':a30_0xe2a714(0x1a5),'risk':a30_0xe2a714(0x1ea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a30_0x2add(_0x5f54b1,_0x57ad66){_0x5f54b1=_0x5f54b1-0xd7;const _0x455670=a30_0x4556();let _0x2addc8=_0x455670[_0x5f54b1];return _0x2addc8;}const a30_0xe33880=a30_0x2add;(function(_0x4e0cd4,_0x232c83){const _0x574bd0=a30_0x2add,_0x5f5575=_0x4e0cd4();while(!![]){try{const _0x147292=parseInt(_0x574bd0(0xda))/0x1+parseInt(_0x574bd0(0x135))/0x2*(parseInt(_0x574bd0(0x12b))/0x3)+-parseInt(_0x574bd0(0x122))/0x4+-parseInt(_0x574bd0(0x117))/0x5*(parseInt(_0x574bd0(0xfa))/0x6)+-parseInt(_0x574bd0(0x113))/0x7+parseInt(_0x574bd0(0x141))/0x8*(parseInt(_0x574bd0(0xf6))/0x9)+parseInt(_0x574bd0(0x110))/0xa*(parseInt(_0x574bd0(0xe0))/0xb);if(_0x147292===_0x232c83)break;else _0x5f5575['push'](_0x5f5575['shift']());}catch(_0x217638){_0x5f5575['push'](_0x5f5575['shift']());}}}(a30_0x4556,0x9c367));import a30_0x22eb2f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a30_0x4556(){const _0x245cd3=['\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4707072IPNvVd','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Auth','ClientAk','(missing)','✓\x20current','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','471VgogHx','includes','read','(not\x20found)','global','repeat','\x20\x20Service\x20Tree','\x20\x20Config\x20JSON','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','14660Pgzcts','join','✗\x20Invalid','(no\x20file)','length','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','projectConfig','defaultApp','prototype','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','459296UVVoKT','platform','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(unnamed)','format','621273iMghvJ','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','7634DcCzMp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','serviceCount','inherit','hasOwnProperty','message','Project','currentApp','env','✓\x20Valid\x20JSON','\x20+\x20','globalConfig','empty','\x20\x20Config\x20Files','\x20(accessKey)','packageVersion','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','check','✗\x20Invalid\x20JSON','version','arch','registryPath','27pKpcYj','log','verbose','doctor','6AkAYuh','\x20config\x20delete\x20inherit\x20--global','bold','\x20\x20skillDomain:\x20\x20\x20\x20\x20','current','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','raw','⚠\x20Empty','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','services','appCode','project','Diagnose\x20CLI\x20configuration\x20and\x20environment','(default)','commandCount','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','riskLevel','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','5480qiUQEf','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1447649IEccrH','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Merged\x20Config','yellow','1506045DVibbo','\x20commands)','\x20\x20Built-in\x20Skill','(none)','green','status','state','ignored\x20in\x20','\x20Imported\x20from:\x20','red'];a30_0x4556=function(){return _0x245cd3;};return a30_0x4556();}import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x366f94){const _0x452362=a30_0x2add,_0x1fa624=getCliVersion(),_0x5b323a=buildConfigFromFlags({});await initGlobalEnvironment(_0x5b323a),console['log'](),console['log'](a30_0x22eb2f['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)]('─'[_0x452362(0x130)](0x32))),console['log'](_0x452362(0xd7)+_0x1fa624),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x452362(0xf3)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x452362(0x142)]+'\x20'+process[_0x452362(0xf4)]);const _0x4cf8f0=inspectBuiltinSkill();console[_0x452362(0xf7)](),console['log'](a30_0x22eb2f['bold'](_0x452362(0x119))),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x140)[_0x452362(0x130)](0x1e))),console[_0x452362(0xf7)](_0x452362(0x133)+(_0x4cf8f0['state']===_0x452362(0xfe)?a30_0x22eb2f[_0x452362(0x11b)](_0x452362(0x128)):a30_0x22eb2f[_0x452362(0x120)]('✗\x20'+_0x4cf8f0['state']))),console[_0x452362(0xf7)]('\x20\x20Package\x20Version:\x20'+_0x4cf8f0[_0x452362(0xef)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x4cf8f0[_0x452362(0x10d)]||a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x127)))),console[_0x452362(0xf7)](_0x452362(0x114)+(_0x4cf8f0['installedPath']||a30_0x22eb2f[_0x452362(0x10b)]('(not\x20found)')));_0x4cf8f0[_0x452362(0x11d)]!==_0x452362(0xfe)&&console[_0x452362(0xf7)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4cf8f0[_0x452362(0xdd)]);_0x4cf8f0[_0x452362(0x134)]&&console[_0x452362(0xf7)](_0x452362(0x121)+_0x4cf8f0['reason']);console[_0x452362(0xf7)](),console[_0x452362(0xf7)](a30_0x22eb2f['bold'](_0x452362(0xed))),console[_0x452362(0xf7)](a30_0x22eb2f['gray'](_0x452362(0x140)[_0x452362(0x130)](0x1e)));const _0x18337f=getGlobalConfigPath(),_0x1ff8c4=getProjectConfigPath();console[_0x452362(0xf7)](_0x452362(0xdc)+(_0x18337f||a30_0x22eb2f[_0x452362(0x10b)]('(not\x20found)'))),console[_0x452362(0xf7)](_0x452362(0x10f)+(_0x1ff8c4||a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x12e)))),console['log'](),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0xfc)](_0x452362(0x132))),console['log'](a30_0x22eb2f['gray'](_0x452362(0x140)['repeat'](0x1e)));const _0x3581b3=(_0x2b91f2,_0x2b5dc2)=>{const _0xfd72f=_0x452362;if(!_0x2b5dc2){console[_0xfd72f(0xf7)]('\x20\x20'+_0x2b91f2[_0xfd72f(0xdb)](0x11)+'\x20'+a30_0x22eb2f['gray'](_0xfd72f(0x138)));return;}const _0x13ddfd=inspectCliConfigJsonFile(_0x2b5dc2);if(_0x13ddfd[_0xfd72f(0x11c)]==='ok')console[_0xfd72f(0xf7)]('\x20\x20'+_0x2b91f2['padEnd'](0x11)+'\x20'+a30_0x22eb2f[_0xfd72f(0x11b)](_0xfd72f(0xe9)));else{if(_0x13ddfd[_0xfd72f(0x11c)]==='empty')console['log']('\x20\x20'+_0x2b91f2['padEnd'](0x11)+'\x20'+a30_0x22eb2f['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x13ddfd[_0xfd72f(0x11c)]==='missing'?console[_0xfd72f(0xf7)]('\x20\x20'+_0x2b91f2['padEnd'](0x11)+'\x20'+a30_0x22eb2f[_0xfd72f(0x10b)](_0xfd72f(0x127))):(console['log']('\x20\x20'+_0x2b91f2['padEnd'](0x11)+'\x20'+a30_0x22eb2f[_0xfd72f(0x120)](_0xfd72f(0xf2))),console['log']('\x20\x20'+''[_0xfd72f(0xdb)](0x11)+'\x20'+a30_0x22eb2f[_0xfd72f(0x120)](_0x13ddfd[_0xfd72f(0xe5)])));}};_0x3581b3('Global',_0x18337f),_0x3581b3(_0x452362(0xe6),_0x1ff8c4);const _0xe50d91=loadRawConfigLayers(),_0x14881e=[Object[_0x452362(0x13e)][_0x452362(0xe4)][_0x452362(0x13b)](_0xe50d91[_0x452362(0xeb)],_0x452362(0xe3))?_0x452362(0x12f):null,Object['prototype'][_0x452362(0xe4)][_0x452362(0x13b)](_0xe50d91[_0x452362(0x13c)],_0x452362(0xe3))?_0x452362(0x106):null]['filter'](Boolean);_0x14881e[_0x452362(0x139)]>0x0&&(console[_0x452362(0xf7)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x22eb2f[_0x452362(0x116)](_0x452362(0x11e)+_0x14881e[_0x452362(0x136)](_0x452362(0xea))+_0x452362(0x12a))),_0x14881e[_0x452362(0x12c)](_0x452362(0x106))&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x14881e[_0x452362(0x12c)]('global')&&console[_0x452362(0xf7)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x452362(0xfb)));console[_0x452362(0xf7)](),console[_0x452362(0xf7)](a30_0x22eb2f['bold'](_0x452362(0x115))),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x140)[_0x452362(0x130)](0x1e))),console[_0x452362(0xf7)](_0x452362(0x13a)+(_0x5b323a[_0x452362(0x105)]||a30_0x22eb2f[_0x452362(0x120)](_0x452362(0x100)))),console[_0x452362(0xf7)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b323a[_0x452362(0xe8)]),console['log'](_0x452362(0x129)+normalizeLovrabetRegion(_0x5b323a[_0x452362(0x101)]['region'])),console['log'](_0x452362(0x103)+_0x5b323a['locale']),console['log'](_0x452362(0x111)+(_0x5b323a[_0x452362(0x13d)]||a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x11a)))),console['log'](_0x452362(0xe1)+(_0x5b323a[_0x452362(0xe7)]||a30_0x22eb2f['gray']('(none)'))),console[_0x452362(0xf7)](_0x452362(0x10c)+(_0x5b323a[_0x452362(0xd9)]||a30_0x22eb2f[_0x452362(0x10b)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x452362(0xd9)]+')'))),console[_0x452362(0xf7)](_0x452362(0xf0)+(_0x5b323a['pageSize']??a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x108)))),console[_0x452362(0xf7)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5b323a[_0x452362(0x10e)]),console[_0x452362(0xf7)](_0x452362(0x123)+_0x5b323a[_0x452362(0xf8)]),console[_0x452362(0xf7)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x452362(0x126)]),console[_0x452362(0xf7)](_0x452362(0xde)+(_0x5b323a[_0x452362(0x124)]?a30_0x22eb2f[_0x452362(0x11b)]('(set,\x20length='+_0x5b323a[_0x452362(0x124)]['length']+')'):a30_0x22eb2f['gray'](_0x452362(0x11a)))),console[_0x452362(0xf7)](),console[_0x452362(0xf7)](a30_0x22eb2f['bold']('\x20\x20API\x20Endpoints')),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x140)[_0x452362(0x130)](0x1e))),console[_0x452362(0xf7)](_0x452362(0xff)+getApiDomain()),console[_0x452362(0xf7)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x452362(0xf7)](_0x452362(0xfd)+getSkillDomain()),console[_0x452362(0xf7)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x452362(0xf7)](),console[_0x452362(0xf7)](a30_0x22eb2f['bold'](_0x452362(0x131))),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)]('\x20\x20─'[_0x452362(0x130)](0x1e)));const _0x128bab=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x128bab[_0x452362(0xf5)]),console[_0x452362(0xf7)](_0x452362(0x112)+formatServiceRegistryStatus(_0x128bab)),console[_0x452362(0xf7)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x128bab[_0x452362(0xe2)]),console[_0x452362(0xf7)](_0x452362(0x10a)+_0x128bab['commandCount']);for(const _0x2587a2 of _0x128bab[_0x452362(0x104)]){console[_0x452362(0xf7)]('\x20\x20'+(_0x2587a2['serviceCode']+':')[_0x452362(0xdb)](0x11)+'\x20'+(_0x2587a2['name']||a30_0x22eb2f['gray'](_0x452362(0xd8)))+'\x20('+_0x2587a2[_0x452362(0x109)]+_0x452362(0x118)),console[_0x452362(0xf7)]('\x20\x20'+''['padEnd'](0x11)+_0x452362(0x11f)+_0x2587a2['source']['path']);}return console[_0x452362(0xf7)](),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0xfc)](_0x452362(0x125))),console[_0x452362(0xf7)](a30_0x22eb2f[_0x452362(0x10b)](_0x452362(0x140)[_0x452362(0x130)](0x1e))),console[_0x452362(0xf7)](_0x452362(0x13f)+a30_0x22eb2f['green'](AUTH_MODE['ClientAk']+_0x452362(0xee))),console['log']('\x20\x20Session\x20check:\x20\x20\x20'+a30_0x22eb2f[_0x452362(0x10b)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0xacdcca){const _0x36b14d=a30_0x2add;if(_0xacdcca[_0x36b14d(0x11c)]==='ok')return a30_0x22eb2f[_0x36b14d(0x11b)](_0x36b14d(0xdf));if(_0xacdcca[_0x36b14d(0x11c)]==='missing')return a30_0x22eb2f[_0x36b14d(0x10b)]('(not\x20found)');if(_0xacdcca['status']===_0x36b14d(0xec))return a30_0x22eb2f[_0x36b14d(0x116)](_0x36b14d(0x102));return a30_0x22eb2f['red'](_0x36b14d(0x137)+(_0xacdcca[_0x36b14d(0xe5)]?':\x20'+_0xacdcca[_0x36b14d(0xe5)]:''));}export const doctorDefinition={'service':a30_0xe33880(0xf9),'command':a30_0xe33880(0xf1),'description':a30_0xe33880(0x107),'risk':a30_0xe33880(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x2390ad=a31_0x3ca3;(function(_0x25a79c,_0x20d64e){const _0x320c60=a31_0x3ca3,_0x282b01=_0x25a79c();while(!![]){try{const _0x14e699=-parseInt(_0x320c60(0x12c))/0x1+-parseInt(_0x320c60(0x11c))/0x2*(parseInt(_0x320c60(0x122))/0x3)+-parseInt(_0x320c60(0x139))/0x4+-parseInt(_0x320c60(0x138))/0x5+-parseInt(_0x320c60(0x129))/0x6*(-parseInt(_0x320c60(0x13d))/0x7)+parseInt(_0x320c60(0x136))/0x8+parseInt(_0x320c60(0x11d))/0x9;if(_0x14e699===_0x20d64e)break;else _0x282b01['push'](_0x282b01['shift']());}catch(_0x1c549a){_0x282b01['push'](_0x282b01['shift']());}}}(a31_0x4e13,0x1fa5a));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a31_0x3ca3(_0x4eb0da,_0x2b716c){_0x4eb0da=_0x4eb0da-0x11b;const _0x4e1313=a31_0x4e13();let _0x3ca34c=_0x4e1313[_0x4eb0da];return _0x3ca34c;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a31_0x2390ad(0x120),'required':!![],'description':a31_0x2390ad(0x127)},FILEPATH_FLAG={'name':a31_0x2390ad(0x12e),'type':'string','required':!![],'description':a31_0x2390ad(0x135)},DOWNLOAD_FLAG={'name':'download','type':a31_0x2390ad(0x132),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':a31_0x2390ad(0x132),'description':a31_0x2390ad(0x13b)};function requireFilePath(_0x490d05){const _0x1cc173=a31_0x2390ad,_0x7425cf=_0x490d05['trim']();if(!_0x7425cf)throw CliErrors[_0x1cc173(0x130)](_0x1cc173(0x133));return _0x7425cf;}function a31_0x4e13(){const _0x54979f=['validation','download','boolean','filePath\x20is\x20required.','Uploaded\x20file:\x20','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','1800776zHOrQU','appCode','1235060NIIHZa','527464CBGqAh','path','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','query-url','52472KkYDQC','POST','2Psfakn','3819249diZYqd','build','Preview:\x20upload\x20','string','filePath','539229JTHZAN','str','read','bool','File','Path\x20to\x20the\x20local\x20file\x20to\x20upload','file','156dcyUZw','\x20to\x20runtime\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','156107erBZod','body','filepath','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access'];a31_0x4e13=function(){return _0x54979f;};return a31_0x4e13();}const fileUpload={'service':a31_0x2390ad(0x128),'command':'upload','description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a31_0x2390ad(0x124),'flags':[FILE_FLAG],async 'dryRun'(_0x2f8d1c){const _0x449103=a31_0x2390ad,_0x1ab1c8=requireRuntimeUploadFile(_0x2f8d1c[_0x449103(0x123)](_0x449103(0x128)),_0x449103(0x126));return dryRun(_0x449103(0x11b),'/client/uploadFile')[_0x449103(0x12d)]({'appCode':_0x2f8d1c['appCode'],'multipart':{'file':_0x1ab1c8}})['description'](_0x449103(0x11f)+_0x1ab1c8[_0x449103(0x13a)]+_0x449103(0x12a)+_0x2f8d1c[_0x449103(0x137)])[_0x449103(0x11e)]();},async 'execute'(_0x2e5010){const _0x5c2b28=a31_0x2390ad,_0x5b90fb=requireRuntimeUploadFile(_0x2e5010[_0x5c2b28(0x123)](_0x5c2b28(0x128)),_0x5c2b28(0x126)),_0x414d8a=await uploadRuntimeFile(_0x2e5010[_0x5c2b28(0x137)],_0x5b90fb[_0x5c2b28(0x13a)]);return{'ok':!![],'data':_0x414d8a,'message':_0x414d8a[_0x5c2b28(0x121)]?_0x5c2b28(0x134)+_0x414d8a[_0x5c2b28(0x121)]+_0x5c2b28(0x12b):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':a31_0x2390ad(0x13c),'description':a31_0x2390ad(0x12f),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x124e16){const _0x34e131=a31_0x2390ad,_0x218940=requireFilePath(_0x124e16[_0x34e131(0x123)](_0x34e131(0x12e))),_0x5ac770=await queryRuntimeFileUrl(_0x218940,{'download':_0x124e16[_0x34e131(0x125)](_0x34e131(0x131)),'longTerm':_0x124e16['bool']('long-term')});return{'ok':!![],'data':_0x5ac770};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x5c22cb=a31_0x456a;function a31_0x456a(_0x3e0804,_0x35f2dd){_0x3e0804=_0x3e0804-0x130;const _0x112c25=a31_0x112c();let _0x456a0a=_0x112c25[_0x3e0804];return _0x456a0a;}(function(_0x27c52b,_0x578b74){const _0x487650=a31_0x456a,_0x27dc51=_0x27c52b();while(!![]){try{const _0x23e753=-parseInt(_0x487650(0x142))/0x1+-parseInt(_0x487650(0x140))/0x2+parseInt(_0x487650(0x14d))/0x3+-parseInt(_0x487650(0x149))/0x4*(parseInt(_0x487650(0x136))/0x5)+parseInt(_0x487650(0x143))/0x6+-parseInt(_0x487650(0x14f))/0x7+-parseInt(_0x487650(0x152))/0x8*(-parseInt(_0x487650(0x144))/0x9);if(_0x23e753===_0x578b74)break;else _0x27dc51['push'](_0x27dc51['shift']());}catch(_0x51cf0b){_0x27dc51['push'](_0x27dc51['shift']());}}}(a31_0x112c,0x96ef0));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':'string','required':!![],'description':a31_0x5c22cb(0x153)},FILEPATH_FLAG={'name':a31_0x5c22cb(0x131),'type':a31_0x5c22cb(0x141),'required':!![],'description':a31_0x5c22cb(0x13e)},DOWNLOAD_FLAG={'name':a31_0x5c22cb(0x133),'type':a31_0x5c22cb(0x148),'description':a31_0x5c22cb(0x13a)},LONG_TERM_FLAG={'name':a31_0x5c22cb(0x137),'type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x1cab64){const _0x243eda=a31_0x5c22cb,_0x235f38=_0x1cab64['trim']();if(!_0x235f38)throw CliErrors[_0x243eda(0x14e)](_0x243eda(0x14b));return _0x235f38;}function a31_0x112c(){const _0x11d733=['bool','2117234KjNXJw','string','761393MfHYkx','241158xCVhbA','24070239fZzTAt','Uploaded\x20file:\x20','upload','read','boolean','16JoUQxG','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath\x20is\x20required.','appCode','3053961TQVYMW','validation','6391763gRvURT','description','file','8SbdFQG','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath','filepath','path','download','\x20to\x20runtime\x20app\x20','/client/uploadFile','476635xafLZd','long-term','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','File','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','body','str','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'];a31_0x112c=function(){return _0x11d733;};return a31_0x112c();}const fileUpload={'service':a31_0x5c22cb(0x151),'command':a31_0x5c22cb(0x146),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a31_0x5c22cb(0x147),'flags':[FILE_FLAG],async 'dryRun'(_0x2c09e3){const _0x41748c=a31_0x5c22cb,_0x5a7da7=requireRuntimeUploadFile(_0x2c09e3[_0x41748c(0x13d)](_0x41748c(0x151)),_0x41748c(0x139));return dryRun('POST',_0x41748c(0x135))[_0x41748c(0x13c)]({'appCode':_0x2c09e3[_0x41748c(0x14c)],'multipart':{'file':_0x5a7da7}})[_0x41748c(0x150)]('Preview:\x20upload\x20'+_0x5a7da7[_0x41748c(0x132)]+_0x41748c(0x134)+_0x2c09e3[_0x41748c(0x14c)])['build']();},async 'execute'(_0x52a98f){const _0x19b924=a31_0x5c22cb,_0xdf2d0c=requireRuntimeUploadFile(_0x52a98f[_0x19b924(0x13d)](_0x19b924(0x151)),_0x19b924(0x139)),_0xcfd76b=await uploadRuntimeFile(_0x52a98f[_0x19b924(0x14c)],_0xdf2d0c[_0x19b924(0x132)]);return{'ok':!![],'data':_0xcfd76b,'message':_0xcfd76b[_0x19b924(0x130)]?_0x19b924(0x145)+_0xcfd76b['filePath']+_0x19b924(0x14a):_0x19b924(0x13b)};}},fileQueryUrl={'service':a31_0x5c22cb(0x151),'command':'query-url','description':a31_0x5c22cb(0x138),'risk':a31_0x5c22cb(0x147),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x312bd0){const _0x4bb71a=a31_0x5c22cb,_0x35e35e=requireFilePath(_0x312bd0[_0x4bb71a(0x13d)](_0x4bb71a(0x131))),_0x431338=await queryRuntimeFileUrl(_0x35e35e,{'download':_0x312bd0[_0x4bb71a(0x13f)](_0x4bb71a(0x133)),'longTerm':_0x312bd0[_0x4bb71a(0x13f)](_0x4bb71a(0x137))});return{'ok':!![],'data':_0x431338};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0xd89d25=a32_0x2f1f;(function(_0x1e8521,_0x52a475){const _0x162505=a32_0x2f1f,_0x47728f=_0x1e8521();while(!![]){try{const _0x79615a=parseInt(_0x162505(0xdc))/0x1+-parseInt(_0x162505(0xe2))/0x2*(-parseInt(_0x162505(0xca))/0x3)+parseInt(_0x162505(0xdb))/0x4+-parseInt(_0x162505(0xe4))/0x5+parseInt(_0x162505(0xf1))/0x6+-parseInt(_0x162505(0xf0))/0x7*(parseInt(_0x162505(0xd5))/0x8)+-parseInt(_0x162505(0xcc))/0x9*(parseInt(_0x162505(0xed))/0xa);if(_0x79615a===_0x52a475)break;else _0x47728f['push'](_0x47728f['shift']());}catch(_0x2e782c){_0x47728f['push'](_0x47728f['shift']());}}}(a32_0x4b21,0xec864));function a32_0x2f1f(_0x5317c0,_0x5ccbd9){_0x5317c0=_0x5317c0-0xc6;const _0x4b217d=a32_0x4b21();let _0x2f1f37=_0x4b217d[_0x5317c0];return _0x2f1f37;}import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a32_0x4b21(){const _0x48b7c8=['Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','2567240IRgJtU','995866YpDkOr','defaultApp','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','join','\x20\x20default:\x20','Override\x20imported\x20default\x20env','348520YJqIXf','object','144775DkRGAF','Invalid\x20env\x20\x22','entries','global','Skip\x20confirmation\x20when\x20overwriting','boolean','Source\x20file\x20not\x20found:\x20',')\x20instead\x20of\x20project','parse','10iVLboz','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','log','9282763NhfgJH','6930270fjEOPC','file','message','apps','Write\x20to\x20global\x20(~/','6VVGYkn','Failed\x20to\x20parse\x20source\x20file:\x20','7356357TyTITR','project','env','validation','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','yes','string','riskLevel','Imported\x20from\x20','8ZdAXLZ','app','appcode','utf8','newConfigFileName'];a32_0x4b21=function(){return _0x48b7c8;};return a32_0x4b21();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0xd89d25(0xc6),'type':a32_0xd89d25(0xd2),'description':a32_0xd89d25(0xd0),'required':!![]},{'name':'appcode','type':a32_0xd89d25(0xd2),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a32_0xd89d25(0xd2),'description':a32_0xd89d25(0xe1),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0xd89d25(0xe7),'type':'boolean','description':a32_0xd89d25(0xc9)+PRODUCT_CONFIG[a32_0xd89d25(0xd9)]+a32_0xd89d25(0xeb),'default':![]},{'name':'yes','type':a32_0xd89d25(0xe9),'description':a32_0xd89d25(0xe8),'default':![]}];export async function runAppImport(_0x1363cb){const _0x5bfb80=a32_0xd89d25,_0x353f90=_0x1363cb['global']?_0x5bfb80(0xe7):_0x5bfb80(0xcd),_0x1110ab=resolveWriteConfigPath(_0x353f90);await runFromImport(_0x1363cb,_0x1110ab);}async function runFromImport(_0x205906,_0x574a12){const _0x4d1810=a32_0xd89d25,_0x20f7c5=resolveFilePath(_0x205906[_0x4d1810(0xc6)]);if(!existsSync(_0x20f7c5))throw CliErrors[_0x4d1810(0xcf)](_0x4d1810(0xea)+_0x20f7c5);const _0x5a0ffb=readSourceFile(_0x20f7c5),_0x1a5178=convertToRuntimeConfig(_0x5a0ffb);_0x205906['appcode']&&(_0x1a5178[_0x4d1810(0xd7)]=String(_0x205906[_0x4d1810(0xd7)]));_0x205906[_0x4d1810(0xce)]&&(_0x1a5178[_0x4d1810(0xce)]=resolveImportEnv(_0x205906));if(!_0x1a5178['appcode'])throw CliErrors[_0x4d1810(0xcf)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x4d1810(0xde));await writeImportConfig(_0x574a12,_0x1a5178,_0x205906),console[_0x4d1810(0xef)](_0x4d1810(0xd4)+_0x20f7c5),console[_0x4d1810(0xef)]('\x20\x20config:\x20\x20'+_0x574a12),console[_0x4d1810(0xef)]('\x20\x20appcode:\x20'+_0x1a5178['appcode']);if(_0x1a5178[_0x4d1810(0xdd)])console[_0x4d1810(0xef)](_0x4d1810(0xe0)+_0x1a5178['defaultApp']);}function convertToRuntimeConfig(_0x1724fd){const _0x384f40=a32_0xd89d25;if(_0x1724fd[_0x384f40(0xc8)]&&typeof _0x1724fd[_0x384f40(0xc8)]===_0x384f40(0xe3))throw CliErrors[_0x384f40(0xcf)](_0x384f40(0xda),_0x384f40(0xee));const _0x292525={};for(const _0x4caa10 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1724fd[_0x4caa10]!==undefined&&(_0x292525[_0x4caa10]=_0x1724fd[_0x4caa10]);}return!_0x292525[_0x384f40(0xd3)]&&(_0x292525[_0x384f40(0xd3)]=DEFAULT_CONFIG_VALUES[_0x384f40(0xd3)]),_0x292525;}async function writeImportConfig(_0x3a012a,_0xf16109,_0x18fcd3){const _0x502252=a32_0xd89d25;let _0x34b1bf={};existsSync(_0x3a012a)&&!_0x18fcd3[_0x502252(0xd1)]&&(_0x34b1bf=readConfigFile(_0x3a012a));for(const [_0x39c023,_0x2e7b35]of Object[_0x502252(0xe6)](_0xf16109)){_0x2e7b35!==undefined&&(_0x34b1bf[_0x39c023]=_0x2e7b35);}if(_0x34b1bf[_0x502252(0xd6)])delete _0x34b1bf['app'];writeConfigFile(_0x3a012a,_0x34b1bf);}function resolveFilePath(_0x54f1f3){return isAbsolute(_0x54f1f3)?_0x54f1f3:resolve(process['cwd'](),_0x54f1f3);}function readSourceFile(_0x177af1){const _0x5eb599=a32_0xd89d25;try{const _0x84175=readFileSync(_0x177af1,{'encoding':_0x5eb599(0xd8)});return JSON[_0x5eb599(0xec)](_0x84175);}catch(_0x58c8d8){throw CliErrors[_0x5eb599(0xcf)](_0x5eb599(0xcb)+_0x58c8d8[_0x5eb599(0xc7)]);}}function resolveImportEnv(_0x45d8fc){const _0x4be52a=a32_0xd89d25,_0x3ffe01=_0x45d8fc['env'];if(_0x3ffe01===undefined||_0x3ffe01==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES['includes'](_0x3ffe01))throw CliErrors[_0x4be52a(0xcf)](_0x4be52a(0xe5)+_0x3ffe01+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x4be52a(0xdf)](',\x20'));return _0x3ffe01;}
1
+ const a32_0x475393=a32_0x4e61;(function(_0x3f5fa9,_0x1ba31d){const _0x5a16e3=a32_0x4e61,_0x39ca38=_0x3f5fa9();while(!![]){try{const _0x54b4d6=parseInt(_0x5a16e3(0xdc))/0x1+-parseInt(_0x5a16e3(0xcf))/0x2*(-parseInt(_0x5a16e3(0xf8))/0x3)+-parseInt(_0x5a16e3(0xd9))/0x4+parseInt(_0x5a16e3(0xef))/0x5+-parseInt(_0x5a16e3(0xf5))/0x6+-parseInt(_0x5a16e3(0xe3))/0x7+parseInt(_0x5a16e3(0xd6))/0x8*(parseInt(_0x5a16e3(0xd5))/0x9);if(_0x54b4d6===_0x1ba31d)break;else _0x39ca38['push'](_0x39ca38['shift']());}catch(_0x1f44d5){_0x39ca38['push'](_0x39ca38['shift']());}}}(a32_0x5d2f,0x7040a));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a32_0x4e61(_0xb01468,_0x199c38){_0xb01468=_0xb01468-0xcd;const _0x5d2fad=a32_0x5d2f();let _0x4e61a3=_0x5d2fad[_0xb01468];return _0x4e61a3;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x475393(0xd1),'type':a32_0x475393(0xd2),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a32_0x475393(0xf4),'type':a32_0x475393(0xd2),'description':a32_0x475393(0xd4)},{'name':a32_0x475393(0xf2),'type':a32_0x475393(0xd2),'description':a32_0x475393(0xe8),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x475393(0xdf),'type':'boolean','description':a32_0x475393(0xdd)+PRODUCT_CONFIG[a32_0x475393(0xe7)]+')\x20instead\x20of\x20project','default':![]},{'name':a32_0x475393(0xdb),'type':a32_0x475393(0xd3),'description':a32_0x475393(0xd0),'default':![]}];export async function runAppImport(_0x35e8b8){const _0x4ecd4a=a32_0x475393,_0x5cb458=_0x35e8b8['global']?_0x4ecd4a(0xdf):_0x4ecd4a(0xde),_0x1e2f01=resolveWriteConfigPath(_0x5cb458);await runFromImport(_0x35e8b8,_0x1e2f01);}function a32_0x5d2f(){const _0x2e6a5c=['appcode','1156044tNdFVr','\x20\x20config:\x20\x20','app','51xVBjZB','\x20\x20default:\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','99494FbWKZy','Skip\x20confirmation\x20when\x20overwriting','file','string','boolean','Override\x20imported\x20default\x20appcode','9SbkObT','38008DhtmwO','validation','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','2627524zLPgGJ','Invalid\x20env\x20\x22','yes','711116AmWChi','Write\x20to\x20global\x20(~/','project','global','cwd','defaultApp','Source\x20file\x20not\x20found:\x20','2690856CLZgej','Imported\x20from\x20','join','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','newConfigFileName','Override\x20imported\x20default\x20env','\x20\x20appcode:\x20','entries','apps','object','riskLevel','log','660915jTusEw','includes','Failed\x20to\x20parse\x20source\x20file:\x20','env','utf8'];a32_0x5d2f=function(){return _0x2e6a5c;};return a32_0x5d2f();}async function runFromImport(_0x410ccf,_0x57fde9){const _0x3708dd=a32_0x475393,_0xc9488=resolveFilePath(_0x410ccf['file']);if(!existsSync(_0xc9488))throw CliErrors[_0x3708dd(0xd7)](_0x3708dd(0xe2)+_0xc9488);const _0x3b00b2=readSourceFile(_0xc9488),_0x9f88b9=convertToRuntimeConfig(_0x3b00b2);_0x410ccf['appcode']&&(_0x9f88b9[_0x3708dd(0xf4)]=String(_0x410ccf[_0x3708dd(0xf4)]));_0x410ccf[_0x3708dd(0xf2)]&&(_0x9f88b9['env']=resolveImportEnv(_0x410ccf));if(!_0x9f88b9['appcode'])throw CliErrors[_0x3708dd(0xd7)](_0x3708dd(0xce),_0x3708dd(0xe6));await writeImportConfig(_0x57fde9,_0x9f88b9,_0x410ccf),console['log'](_0x3708dd(0xe4)+_0xc9488),console[_0x3708dd(0xee)](_0x3708dd(0xf6)+_0x57fde9),console['log'](_0x3708dd(0xe9)+_0x9f88b9['appcode']);if(_0x9f88b9['defaultApp'])console[_0x3708dd(0xee)](_0x3708dd(0xcd)+_0x9f88b9[_0x3708dd(0xe1)]);}function convertToRuntimeConfig(_0xf7c168){const _0x4d66e4=a32_0x475393;if(_0xf7c168['apps']&&typeof _0xf7c168[_0x4d66e4(0xeb)]===_0x4d66e4(0xec))throw CliErrors[_0x4d66e4(0xd7)](_0x4d66e4(0xd8),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x445665={};for(const _0xaba565 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xf7c168[_0xaba565]!==undefined&&(_0x445665[_0xaba565]=_0xf7c168[_0xaba565]);}return!_0x445665[_0x4d66e4(0xed)]&&(_0x445665[_0x4d66e4(0xed)]=DEFAULT_CONFIG_VALUES[_0x4d66e4(0xed)]),_0x445665;}async function writeImportConfig(_0x176909,_0x526030,_0x4bff9a){const _0x34c0ab=a32_0x475393;let _0x2cef38={};existsSync(_0x176909)&&!_0x4bff9a[_0x34c0ab(0xdb)]&&(_0x2cef38=readConfigFile(_0x176909));for(const [_0x38b189,_0x2a353b]of Object[_0x34c0ab(0xea)](_0x526030)){_0x2a353b!==undefined&&(_0x2cef38[_0x38b189]=_0x2a353b);}if(_0x2cef38[_0x34c0ab(0xf7)])delete _0x2cef38['app'];writeConfigFile(_0x176909,_0x2cef38);}function resolveFilePath(_0x13176c){const _0x497ee8=a32_0x475393;return isAbsolute(_0x13176c)?_0x13176c:resolve(process[_0x497ee8(0xe0)](),_0x13176c);}function readSourceFile(_0x240bb9){const _0x589cc9=a32_0x475393;try{const _0xee9fc7=readFileSync(_0x240bb9,{'encoding':_0x589cc9(0xf3)});return JSON['parse'](_0xee9fc7);}catch(_0x2a6362){throw CliErrors[_0x589cc9(0xd7)](_0x589cc9(0xf1)+_0x2a6362['message']);}}function resolveImportEnv(_0x4bd9d9){const _0x2bcf48=a32_0x475393,_0x1ed0f2=_0x4bd9d9[_0x2bcf48(0xf2)];if(_0x1ed0f2===undefined||_0x1ed0f2==='')return DEFAULT_CONFIG_VALUES[_0x2bcf48(0xf2)];if(!RUNTIME_ENV_VALUES[_0x2bcf48(0xf0)](_0x1ed0f2))throw CliErrors[_0x2bcf48(0xd7)](_0x2bcf48(0xda)+_0x1ed0f2+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x2bcf48(0xe5)](',\x20'));return _0x1ed0f2;}
@@ -1 +1 @@
1
- function a33_0xe607(){const _0x2f9fe9=['Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','verbose','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','string','isFinite','/client/knowledge-base/personal/create','scope','Personal\x20knowledge-base\x20entry\x20title','content','search','--topk\x20must\x20be\x20a\x20positive\x20number.','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','map','str','updateTime','topk','createTime','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','ragStatus','title','bool','flag','appCode','query','1278875ENBczE','9294soMXpm','File\x20path\x20is\x20required.','write','POST','isFile','309191PttGLv','4239496JVuFwz','create','validation','/client/knowledge-base/personal/','utf8','length','3027270mdGrJo','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','list','docId','file','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','1328732Auptpz','Updated\x20KB\x20entry\x20','9TcNfYV','userId','336fXTDrs','trim','File\x20is\x20not\x20a\x20regular\x20file:\x20','3379663dWqgRo','Personal\x20knowledge-base\x20entry\x20ID','weightedScore','update','Created\x20KB\x20entry\x20','build','metadata','version','body','File\x20not\x20found:\x20','description','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','num','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','ragErrorMessage','read'];a33_0xe607=function(){return _0x2f9fe9;};return a33_0xe607();}const a33_0x115f9b=a33_0x40e3;(function(_0x346f15,_0x4c4619){const _0x9a9598=a33_0x40e3,_0x593242=_0x346f15();while(!![]){try{const _0x341a19=parseInt(_0x9a9598(0x154))/0x1+parseInt(_0x9a9598(0x165))/0x2*(parseInt(_0x9a9598(0x14f))/0x3)+-parseInt(_0x9a9598(0x161))/0x4+parseInt(_0x9a9598(0x14e))/0x5+-parseInt(_0x9a9598(0x15b))/0x6+-parseInt(_0x9a9598(0x168))/0x7+-parseInt(_0x9a9598(0x155))/0x8*(-parseInt(_0x9a9598(0x163))/0x9);if(_0x341a19===_0x4c4619)break;else _0x593242['push'](_0x593242['shift']());}catch(_0x21f3b3){_0x593242['push'](_0x593242['shift']());}}}(a33_0xe607,0x48396));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a33_0x40e3(_0x23db5b,_0x52d31b){_0x23db5b=_0x23db5b-0x137;const _0xe607be=a33_0xe607();let _0x40e3a3=_0xe607be[_0x23db5b];return _0x40e3a3;}const TITLE_FLAG={'name':a33_0x115f9b(0x149),'type':a33_0x115f9b(0x139),'required':!![],'description':a33_0x115f9b(0x13d)},FILE_FLAG={'name':a33_0x115f9b(0x15f),'type':a33_0x115f9b(0x139),'required':!![],'description':a33_0x115f9b(0x178)},QUERY_FLAG={'name':a33_0x115f9b(0x14d),'type':'string','required':!![],'description':a33_0x115f9b(0x15c)},TOPK_FLAG={'name':'topk','type':'number','description':a33_0x115f9b(0x141)};function readKnowledgeFile(_0x4cddd1){const _0x19a4b8=a33_0x115f9b;if(!_0x4cddd1)throw CliErrors[_0x19a4b8(0x157)](_0x19a4b8(0x150));if(!existsSync(_0x4cddd1))throw CliErrors[_0x19a4b8(0x157)](_0x19a4b8(0x171)+_0x4cddd1);if(!statSync(_0x4cddd1)[_0x19a4b8(0x153)]())throw CliErrors[_0x19a4b8(0x157)](_0x19a4b8(0x167)+_0x4cddd1);return readFileSync(_0x4cddd1,_0x19a4b8(0x159));}function summarizePersonalItem(_0x5f51ab){const _0x359fd7=a33_0x115f9b;return{'id':_0x5f51ab['id'],'title':_0x5f51ab[_0x359fd7(0x149)],'version':_0x5f51ab[_0x359fd7(0x16f)],'ragStatus':_0x5f51ab[_0x359fd7(0x148)],'ragErrorMessage':_0x5f51ab[_0x359fd7(0x176)],'updateTime':_0x5f51ab[_0x359fd7(0x144)]};}function detailPersonalItem(_0x31373e){const _0x15b52d=a33_0x115f9b;return{'id':_0x31373e['id'],'appCode':_0x31373e[_0x15b52d(0x14c)],'scope':_0x31373e['scope'],'userId':_0x31373e[_0x15b52d(0x164)],'title':_0x31373e['title'],'content':_0x31373e[_0x15b52d(0x13e)]??'','version':_0x31373e[_0x15b52d(0x16f)],'ragStatus':_0x31373e['ragStatus'],'ragErrorMessage':_0x31373e[_0x15b52d(0x176)],'createTime':_0x31373e[_0x15b52d(0x146)],'updateTime':_0x31373e[_0x15b52d(0x144)]};}function summarizeSearchHit(_0x8313e1){const _0x311dfc=a33_0x115f9b;return{'scope':_0x8313e1[_0x311dfc(0x13c)],'title':_0x8313e1['title'],'docId':_0x8313e1[_0x311dfc(0x15e)],'score':_0x8313e1['score'],'weightedScore':_0x8313e1[_0x311dfc(0x16a)],'content':_0x8313e1['content'],'metadata':_0x8313e1[_0x311dfc(0x16e)]};}function readTopK(_0x5e4317){const _0x42d1b5=a33_0x115f9b,_0x3f5d1a=_0x5e4317[_0x42d1b5(0x14b)](_0x42d1b5(0x145));if(_0x3f5d1a===undefined||_0x3f5d1a===null||_0x3f5d1a==='')return undefined;const _0x14bfcc=_0x5e4317[_0x42d1b5(0x174)](_0x42d1b5(0x145));if(!Number[_0x42d1b5(0x13a)](_0x14bfcc)||_0x14bfcc<0x1)throw CliErrors[_0x42d1b5(0x157)](_0x42d1b5(0x140));return _0x14bfcc;}const kbList={'service':'kb','command':a33_0x115f9b(0x15d),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a33_0x115f9b(0x177),'flags':[VERBOSE_FLAG],async 'execute'(_0x850bb1){const _0x29923d=a33_0x115f9b,_0x3ded7a=await listPersonalKnowledgeBaseItems(_0x850bb1[_0x29923d(0x14c)]);if(_0x850bb1[_0x29923d(0x14a)](_0x29923d(0x137)))return{'ok':!![],'data':{'total':_0x3ded7a[_0x29923d(0x15a)],'items':_0x3ded7a}};return{'ok':!![],'data':{'total':_0x3ded7a[_0x29923d(0x15a)],'items':_0x3ded7a[_0x29923d(0x142)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a33_0x115f9b(0x175),'risk':a33_0x115f9b(0x177),'flags':[{...ID_FLAG,'description':a33_0x115f9b(0x169)}],async 'execute'(_0x47ed38){const _0x59c885=a33_0x115f9b,_0x5e47a0=await getPersonalKnowledgeBaseItem(_0x47ed38[_0x59c885(0x174)]('id'),_0x47ed38[_0x59c885(0x14c)]);return{'ok':!![],'data':detailPersonalItem(_0x5e47a0)};}},kbCreate={'service':'kb','command':a33_0x115f9b(0x156),'description':a33_0x115f9b(0x173),'risk':a33_0x115f9b(0x151),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x202f06){const _0x53d09c=a33_0x115f9b,_0x5a2447=_0x202f06[_0x53d09c(0x143)](_0x53d09c(0x149)),_0x2df734=readKnowledgeFile(_0x202f06['str'](_0x53d09c(0x15f))),_0x171527=await createPersonalKnowledgeBaseItem(_0x202f06[_0x53d09c(0x14c)],{'title':_0x5a2447,'content':_0x2df734});return{'ok':!![],'data':summarizePersonalItem(_0x171527),'message':_0x53d09c(0x16c)+_0x171527['id']+'\x20('+_0x171527[_0x53d09c(0x149)]+')'};},async 'dryRun'(_0x330eb2){const _0x2f498e=a33_0x115f9b,_0x3f1ef4=_0x330eb2['str']('title'),_0x6c4124=readKnowledgeFile(_0x330eb2[_0x2f498e(0x143)]('file'));return dryRun(_0x2f498e(0x152),_0x2f498e(0x13b))['body']({'appCode':_0x330eb2[_0x2f498e(0x14c)],'title':_0x3f1ef4,'content':_0x6c4124})[_0x2f498e(0x172)](_0x2f498e(0x138)+_0x3f1ef4+'\x22')[_0x2f498e(0x16d)]();}},kbUpdate={'service':'kb','command':a33_0x115f9b(0x16b),'description':a33_0x115f9b(0x147),'risk':'write','confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x34a9c4){const _0x175df4=a33_0x115f9b,_0x259f1c=_0x34a9c4['num']('id'),_0x4c146b=readKnowledgeFile(_0x34a9c4[_0x175df4(0x143)]('file')),_0x5c80bf=_0x34a9c4[_0x175df4(0x143)](_0x175df4(0x149))||(await getPersonalKnowledgeBaseItem(_0x259f1c,_0x34a9c4[_0x175df4(0x14c)]))[_0x175df4(0x149)],_0x3d3b6b=await updatePersonalKnowledgeBaseItem(_0x259f1c,_0x34a9c4['appCode'],{'title':_0x5c80bf,'content':_0x4c146b});return{'ok':!![],'data':summarizePersonalItem(_0x3d3b6b),'message':_0x175df4(0x162)+_0x3d3b6b['id']+'\x20('+_0x3d3b6b['title']+')'};},async 'dryRun'(_0x16884c){const _0x56a4c1=a33_0x115f9b,_0x5193cf=_0x16884c['num']('id'),_0x213760=readKnowledgeFile(_0x16884c[_0x56a4c1(0x143)](_0x56a4c1(0x15f))),_0x12ff68=_0x16884c[_0x56a4c1(0x143)](_0x56a4c1(0x149))||(await getPersonalKnowledgeBaseItem(_0x5193cf,_0x16884c[_0x56a4c1(0x14c)]))['title'];return dryRun('POST',_0x56a4c1(0x158)+_0x5193cf+'/update')[_0x56a4c1(0x170)]({'appCode':_0x16884c[_0x56a4c1(0x14c)],'title':_0x12ff68,'content':_0x213760})[_0x56a4c1(0x172)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x5193cf)['build']();}},kbSearch={'service':'kb','command':a33_0x115f9b(0x13f),'description':a33_0x115f9b(0x160),'risk':a33_0x115f9b(0x177),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x213cf2){const _0x25c1f2=a33_0x115f9b;if(!_0x213cf2[_0x25c1f2(0x143)](_0x25c1f2(0x14d))[_0x25c1f2(0x166)]())throw CliErrors[_0x25c1f2(0x157)]('Search\x20query\x20is\x20required.');readTopK(_0x213cf2);},async 'execute'(_0x3dd87d){const _0xa5475b=a33_0x115f9b,_0x5a9e47=_0x3dd87d['str']('query')[_0xa5475b(0x166)](),_0x5375d1=readTopK(_0x3dd87d),_0x1586b8=await searchKnowledgeBase(_0x3dd87d['appCode'],{'query':_0x5a9e47,'topK':_0x5375d1});return{'ok':!![],'data':{'total':_0x1586b8[_0xa5475b(0x15a)],'hits':_0x1586b8[_0xa5475b(0x142)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x1e4e62=a33_0x5729;(function(_0x3a5630,_0xc35525){const _0x2e629c=a33_0x5729,_0x5186eb=_0x3a5630();while(!![]){try{const _0x4950ec=-parseInt(_0x2e629c(0x18f))/0x1+-parseInt(_0x2e629c(0x194))/0x2*(parseInt(_0x2e629c(0x186))/0x3)+-parseInt(_0x2e629c(0x172))/0x4*(parseInt(_0x2e629c(0x190))/0x5)+parseInt(_0x2e629c(0x18d))/0x6+parseInt(_0x2e629c(0x17b))/0x7*(-parseInt(_0x2e629c(0x176))/0x8)+parseInt(_0x2e629c(0x178))/0x9+-parseInt(_0x2e629c(0x182))/0xa*(-parseInt(_0x2e629c(0x177))/0xb);if(_0x4950ec===_0xc35525)break;else _0x5186eb['push'](_0x5186eb['shift']());}catch(_0x4475a3){_0x5186eb['push'](_0x5186eb['shift']());}}}(a33_0x5bf4,0x70853));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x1e4e62(0x187),'type':a33_0x1e4e62(0x170),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a33_0x1e4e62(0x1ac),'type':'string','required':!![],'description':a33_0x1e4e62(0x1a0)},QUERY_FLAG={'name':a33_0x1e4e62(0x1a3),'type':a33_0x1e4e62(0x170),'required':!![],'description':a33_0x1e4e62(0x17a)},TOPK_FLAG={'name':'topk','type':a33_0x1e4e62(0x188),'description':a33_0x1e4e62(0x1a5)};function a33_0x5729(_0x41a1b8,_0x485f17){_0x41a1b8=_0x41a1b8-0x170;const _0x5bf4f1=a33_0x5bf4();let _0x5729d4=_0x5bf4f1[_0x41a1b8];return _0x5729d4;}function readKnowledgeFile(_0x90433c){const _0x2d68ef=a33_0x1e4e62;if(!_0x90433c)throw CliErrors[_0x2d68ef(0x18e)]('File\x20path\x20is\x20required.');if(!existsSync(_0x90433c))throw CliErrors[_0x2d68ef(0x18e)](_0x2d68ef(0x17f)+_0x90433c);if(!statSync(_0x90433c)['isFile']())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x90433c);return readFileSync(_0x90433c,_0x2d68ef(0x185));}function summarizePersonalItem(_0x1c35ac){const _0x376750=a33_0x1e4e62;return{'id':_0x1c35ac['id'],'title':_0x1c35ac[_0x376750(0x187)],'version':_0x1c35ac[_0x376750(0x171)],'ragStatus':_0x1c35ac[_0x376750(0x1a6)],'ragErrorMessage':_0x1c35ac['ragErrorMessage'],'updateTime':_0x1c35ac[_0x376750(0x184)]};}function detailPersonalItem(_0xfb18af){const _0x79d345=a33_0x1e4e62;return{'id':_0xfb18af['id'],'appCode':_0xfb18af[_0x79d345(0x1a7)],'scope':_0xfb18af[_0x79d345(0x173)],'userId':_0xfb18af[_0x79d345(0x1a2)],'title':_0xfb18af['title'],'content':_0xfb18af[_0x79d345(0x193)]??'','version':_0xfb18af[_0x79d345(0x171)],'ragStatus':_0xfb18af['ragStatus'],'ragErrorMessage':_0xfb18af[_0x79d345(0x19e)],'createTime':_0xfb18af['createTime'],'updateTime':_0xfb18af[_0x79d345(0x184)]};}function readTopK(_0x5f34bb){const _0x210d0f=a33_0x1e4e62,_0x442dde=_0x5f34bb[_0x210d0f(0x17c)](_0x210d0f(0x183));if(_0x442dde===undefined||_0x442dde===null||_0x442dde==='')return undefined;const _0x24d42a=_0x5f34bb[_0x210d0f(0x195)](_0x210d0f(0x183));if(!Number[_0x210d0f(0x175)](_0x24d42a)||_0x24d42a<0x1||_0x24d42a>0x32)throw CliErrors['validation'](_0x210d0f(0x17e));return _0x24d42a;}const kbList={'service':'kb','command':a33_0x1e4e62(0x1a1),'description':a33_0x1e4e62(0x18b),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x316555){const _0x423ac4=a33_0x1e4e62,_0xba0e7d=await listPersonalKnowledgeBaseItems(_0x316555[_0x423ac4(0x1a7)]);if(_0x316555[_0x423ac4(0x181)]('verbose'))return{'ok':!![],'data':{'total':_0xba0e7d[_0x423ac4(0x19c)],'items':_0xba0e7d}};return{'ok':!![],'data':{'total':_0xba0e7d[_0x423ac4(0x19c)],'items':_0xba0e7d[_0x423ac4(0x1ad)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x1e4e62(0x1a8),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a33_0x1e4e62(0x19a),'flags':[{...ID_FLAG,'description':a33_0x1e4e62(0x180)}],async 'execute'(_0x255312){const _0x214566=a33_0x1e4e62,_0x432ff4=await getPersonalKnowledgeBaseItem(_0x255312['num']('id'),_0x255312[_0x214566(0x1a7)]);return{'ok':!![],'data':detailPersonalItem(_0x432ff4)};}},kbCreate={'service':'kb','command':a33_0x1e4e62(0x191),'description':a33_0x1e4e62(0x1ab),'risk':a33_0x1e4e62(0x1ae),'confirmationDescription':a33_0x1e4e62(0x198),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4aebdd){const _0x5cef0f=a33_0x1e4e62,_0xe94a70=_0x4aebdd[_0x5cef0f(0x189)]('title'),_0x6d8b5=readKnowledgeFile(_0x4aebdd['str']('file')),_0x42d299=await createPersonalKnowledgeBaseItem(_0x4aebdd['appCode'],{'title':_0xe94a70,'content':_0x6d8b5});return{'ok':!![],'data':summarizePersonalItem(_0x42d299),'message':_0x5cef0f(0x19f)+_0x42d299['id']+'\x20('+_0x42d299[_0x5cef0f(0x187)]+')'};},async 'dryRun'(_0x541cbe){const _0xa240b1=a33_0x1e4e62,_0x182671=_0x541cbe[_0xa240b1(0x189)](_0xa240b1(0x187)),_0x5bdb28=readKnowledgeFile(_0x541cbe['str'](_0xa240b1(0x1ac)));return dryRun(_0xa240b1(0x1aa),_0xa240b1(0x1a4))[_0xa240b1(0x197)]({'appCode':_0x541cbe[_0xa240b1(0x1a7)],'title':_0x182671,'content':_0x5bdb28})[_0xa240b1(0x174)](_0xa240b1(0x192)+_0x182671+'\x22')[_0xa240b1(0x18a)]();}},kbUpdate={'service':'kb','command':a33_0x1e4e62(0x1a9),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0x1e4e62(0x1ae),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':a33_0x1e4e62(0x180)},{...TITLE_FLAG,'required':![],'description':a33_0x1e4e62(0x18c)},FILE_FLAG],async 'execute'(_0x5be618){const _0x118d73=a33_0x1e4e62,_0x398519=_0x5be618[_0x118d73(0x195)]('id'),_0x5e2d10=readKnowledgeFile(_0x5be618[_0x118d73(0x189)](_0x118d73(0x1ac))),_0x3a3834=_0x5be618[_0x118d73(0x189)](_0x118d73(0x187))||(await getPersonalKnowledgeBaseItem(_0x398519,_0x5be618[_0x118d73(0x1a7)]))[_0x118d73(0x187)],_0x2705fa=await updatePersonalKnowledgeBaseItem(_0x398519,_0x5be618['appCode'],{'title':_0x3a3834,'content':_0x5e2d10});return{'ok':!![],'data':summarizePersonalItem(_0x2705fa),'message':'Updated\x20KB\x20entry\x20'+_0x2705fa['id']+'\x20('+_0x2705fa[_0x118d73(0x187)]+')'};},async 'dryRun'(_0x4bef84){const _0x510813=a33_0x1e4e62,_0x5e9cdc=_0x4bef84[_0x510813(0x195)]('id'),_0x56495e=readKnowledgeFile(_0x4bef84['str'](_0x510813(0x1ac))),_0x57f35b=_0x4bef84[_0x510813(0x189)](_0x510813(0x187))||(await getPersonalKnowledgeBaseItem(_0x5e9cdc,_0x4bef84['appCode']))[_0x510813(0x187)];return dryRun('POST',_0x510813(0x196)+_0x5e9cdc+_0x510813(0x179))['body']({'appCode':_0x4bef84['appCode'],'title':_0x57f35b,'content':_0x56495e})[_0x510813(0x174)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x5e9cdc)['build']();}},kbSearch={'service':'kb','command':a33_0x1e4e62(0x19d),'description':a33_0x1e4e62(0x199),'risk':a33_0x1e4e62(0x19a),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x35fc39){const _0x4b6ffc=a33_0x1e4e62;if(!_0x35fc39[_0x4b6ffc(0x189)]('query')[_0x4b6ffc(0x17d)]())throw CliErrors['validation'](_0x4b6ffc(0x19b));readTopK(_0x35fc39);},async 'execute'(_0xedf088){const _0x843302=a33_0x1e4e62,_0x577f9f=_0xedf088[_0x843302(0x189)](_0x843302(0x1a3))['trim'](),_0x720dc0=readTopK(_0xedf088),_0xfbdc65=await searchRuntimeKnowledge({'appCode':_0xedf088[_0x843302(0x1a7)],'accessKey':_0xedf088['accessKey']??'','query':_0x577f9f,..._0x720dc0!==undefined?{'topK':_0x720dc0}:{},'signal':_0xedf088['signal']});return{'ok':!![],'data':_0xfbdc65};}};function a33_0x5bf4(){const _0x3a0a73=['detail','update','POST','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','file','map','write','string','version','137740eoVcBs','scope','description','isSafeInteger','2496056hIcqwj','935ODgkmq','1376469eHAayM','/update','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','7bfhrhd','flag','trim','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','File\x20not\x20found:\x20','Personal\x20knowledge-base\x20entry\x20ID','bool','200610YiIGfV','topk','updateTime','utf8','4683fSpjpz','title','number','str','build','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Override\x20the\x20existing\x20entry\x20title','2147706RcooVe','validation','282434HUOpKD','50tRaBlM','create','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','content','1046bMouaq','num','/client/knowledge-base/personal/','body','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','read','Search\x20query\x20is\x20required.','length','search','ragErrorMessage','Created\x20KB\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','list','userId','query','/client/knowledge-base/personal/create','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','ragStatus','appCode'];a33_0x5bf4=function(){return _0x3a0a73;};return a33_0x5bf4();}export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a34_0x288cbd=a34_0x2895;function a34_0x2895(_0x147213,_0x1bc49f){_0x147213=_0x147213-0x115;const _0x2eedad=a34_0x2eed();let _0x289524=_0x2eedad[_0x147213];return _0x289524;}(function(_0x533126,_0x3afe86){const _0x4e6800=a34_0x2895,_0x34f2c6=_0x533126();while(!![]){try{const _0x3c3d8d=parseInt(_0x4e6800(0x12b))/0x1*(parseInt(_0x4e6800(0x118))/0x2)+parseInt(_0x4e6800(0x11e))/0x3*(parseInt(_0x4e6800(0x117))/0x4)+-parseInt(_0x4e6800(0x116))/0x5*(-parseInt(_0x4e6800(0x11b))/0x6)+-parseInt(_0x4e6800(0x121))/0x7*(-parseInt(_0x4e6800(0x120))/0x8)+-parseInt(_0x4e6800(0x133))/0x9*(parseInt(_0x4e6800(0x122))/0xa)+-parseInt(_0x4e6800(0x11f))/0xb+-parseInt(_0x4e6800(0x119))/0xc*(parseInt(_0x4e6800(0x12c))/0xd);if(_0x3c3d8d===_0x3afe86)break;else _0x34f2c6['push'](_0x34f2c6['shift']());}catch(_0x514a9e){_0x34f2c6['push'](_0x34f2c6['shift']());}}}(a34_0x2eed,0x34baf));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x224f40){const _0x46227f=a34_0x2895;if(_0x224f40[_0x46227f(0x11d)]===0x0){console[_0x46227f(0x12e)]('*\x20No\x20logs\x20found');return;}console[_0x46227f(0x12e)]('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x224f40[_0x46227f(0x127)]((_0x2a8b92,_0x35ec54)=>{const _0x9a91ea=_0x46227f,_0x5ed9f4=new Date(_0x2a8b92[_0x9a91ea(0x130)])[_0x9a91ea(0x125)](_0x9a91ea(0x11c)),_0x2cf6a6=_0x2a8b92[_0x9a91ea(0x123)]===_0x9a91ea(0x11a)?'√':_0x2a8b92[_0x9a91ea(0x123)]===_0x9a91ea(0x126)?'×':_0x2a8b92[_0x9a91ea(0x123)]==='warn'?'!':'i';console[_0x9a91ea(0x12e)](_0x35ec54+0x1+'.\x20'+_0x2cf6a6+'\x20['+_0x2a8b92['command']+']\x20'+_0x2a8b92['message']),console['log'](_0x9a91ea(0x12a)+_0x5ed9f4),_0x2a8b92[_0x9a91ea(0x129)]&&console[_0x9a91ea(0x12e)](_0x9a91ea(0x134)+_0x2a8b92['duration']+'ms'),_0x2a8b92[_0x9a91ea(0x115)]&&Object[_0x9a91ea(0x131)](_0x2a8b92[_0x9a91ea(0x115)])['length']>0x0&&console[_0x9a91ea(0x12e)](_0x9a91ea(0x12d)+JSON['stringify'](_0x2a8b92[_0x9a91ea(0x115)],null,0x2)),console[_0x9a91ea(0x12e)]('');});}export const logsDefinitions=[{'service':a34_0x288cbd(0x124),'command':'show','description':a34_0x288cbd(0x12f),'risk':a34_0x288cbd(0x132),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2730d2){const _0x57fb74=a34_0x288cbd;return printLogs(logger[_0x57fb74(0x128)]()),{'ok':!![]};}}];function a34_0x2eed(){const _0x3ebdf7=['level','logs','toLocaleString','error','forEach','readLogs','duration','\x20\x20\x20Time:\x20','20qrRchO','1983397tOmhCu','\x20\x20\x20Details:\x20','log','View\x20command\x20history\x20logs','timestamp','keys','read','9IvjDhH','\x20\x20\x20Duration:\x20','details','36445icuWqQ','164048JjWSRz','25678kcdYCv','12OcWpcF','success','120LChDFO','en-US','length','24ezBWGF','2255495MSFJiv','855944FFwDaS','7ZZkrOd','2640520pzktHg'];a34_0x2eed=function(){return _0x3ebdf7;};return a34_0x2eed();}
1
+ const a34_0x4e7b50=a34_0x51b5;function a34_0x51b5(_0x39770d,_0x29440b){_0x39770d=_0x39770d-0x16f;const _0x5cd1af=a34_0x5cd1();let _0x51b598=_0x5cd1af[_0x39770d];return _0x51b598;}(function(_0x4571a3,_0xe2d4dc){const _0x2ed544=a34_0x51b5,_0x4cfb3c=_0x4571a3();while(!![]){try{const _0x3a6375=-parseInt(_0x2ed544(0x17b))/0x1+parseInt(_0x2ed544(0x183))/0x2+parseInt(_0x2ed544(0x179))/0x3+-parseInt(_0x2ed544(0x174))/0x4+-parseInt(_0x2ed544(0x16f))/0x5*(parseInt(_0x2ed544(0x18c))/0x6)+parseInt(_0x2ed544(0x171))/0x7*(-parseInt(_0x2ed544(0x17c))/0x8)+parseInt(_0x2ed544(0x189))/0x9;if(_0x3a6375===_0xe2d4dc)break;else _0x4cfb3c['push'](_0x4cfb3c['shift']());}catch(_0x32d286){_0x4cfb3c['push'](_0x4cfb3c['shift']());}}}(a34_0x5cd1,0x54148));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a34_0x5cd1(){const _0x25e6f1=['details','level','208774LDuxUE','readLogs','show','command','message','View\x20command\x20history\x20logs','8807193TCSNNY','en-US','stringify','19896dTTxpH','415QQYhtH','length','101129urRxyf','error','read','1141160iDtXJW','toLocaleString','log','keys','\x20logs:\x0a','34626AGRkKH','duration','146255lKhDFQ','24yjTsco','\x20\x20\x20Time:\x20','logs','\x20\x20\x20Duration:\x20','success'];a34_0x5cd1=function(){return _0x25e6f1;};return a34_0x5cd1();}function printLogs(_0x2e178f){const _0x5ad910=a34_0x51b5;if(_0x2e178f[_0x5ad910(0x170)]===0x0){console[_0x5ad910(0x176)]('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x5ad910(0x178)),_0x2e178f['forEach']((_0x218fbe,_0x1967ab)=>{const _0x5a9b3d=_0x5ad910,_0x1cbb9f=new Date(_0x218fbe['timestamp'])[_0x5a9b3d(0x175)](_0x5a9b3d(0x18a)),_0x548a23=_0x218fbe[_0x5a9b3d(0x182)]===_0x5a9b3d(0x180)?'√':_0x218fbe[_0x5a9b3d(0x182)]===_0x5a9b3d(0x172)?'×':_0x218fbe[_0x5a9b3d(0x182)]==='warn'?'!':'i';console[_0x5a9b3d(0x176)](_0x1967ab+0x1+'.\x20'+_0x548a23+'\x20['+_0x218fbe[_0x5a9b3d(0x186)]+']\x20'+_0x218fbe[_0x5a9b3d(0x187)]),console[_0x5a9b3d(0x176)](_0x5a9b3d(0x17d)+_0x1cbb9f),_0x218fbe[_0x5a9b3d(0x17a)]&&console[_0x5a9b3d(0x176)](_0x5a9b3d(0x17f)+_0x218fbe[_0x5a9b3d(0x17a)]+'ms'),_0x218fbe[_0x5a9b3d(0x181)]&&Object[_0x5a9b3d(0x177)](_0x218fbe[_0x5a9b3d(0x181)])[_0x5a9b3d(0x170)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5a9b3d(0x18b)](_0x218fbe[_0x5a9b3d(0x181)],null,0x2)),console[_0x5a9b3d(0x176)]('');});}export const logsDefinitions=[{'service':a34_0x4e7b50(0x17e),'command':a34_0x4e7b50(0x185),'description':a34_0x4e7b50(0x188),'risk':a34_0x4e7b50(0x173),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x505073){const _0x35d511=a34_0x4e7b50;return printLogs(logger[_0x35d511(0x184)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x2f4b93=a35_0x470b;(function(_0x423623,_0x45b485){const _0x19aaff=a35_0x470b,_0x1c640c=_0x423623();while(!![]){try{const _0x17436e=parseInt(_0x19aaff(0x1ad))/0x1*(-parseInt(_0x19aaff(0x1a6))/0x2)+-parseInt(_0x19aaff(0x1a4))/0x3+-parseInt(_0x19aaff(0x1a9))/0x4*(parseInt(_0x19aaff(0x1b0))/0x5)+-parseInt(_0x19aaff(0x1b1))/0x6+parseInt(_0x19aaff(0x1a3))/0x7+-parseInt(_0x19aaff(0x1af))/0x8+-parseInt(_0x19aaff(0x1aa))/0x9*(-parseInt(_0x19aaff(0x1ac))/0xa);if(_0x17436e===_0x45b485)break;else _0x1c640c['push'](_0x1c640c['shift']());}catch(_0x5f11ae){_0x1c640c['push'](_0x1c640c['shift']());}}}(a35_0x3b2d,0x3e348));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x470b(_0x109b90,_0x1295b8){_0x109b90=_0x109b90-0x1a1;const _0x3b2dab=a35_0x3b2d();let _0x470b26=_0x3b2dab[_0x109b90];return _0x470b26;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a35_0x3b2d(){const _0x29ecb4=['4219983sVJZQR','EMAIL','20HpGGFF','302aFBjqP','appCode','634872NfZscG','848110FyqcuF','1970334uzNWzt','Notification\x20channel\x20type','length','config-list','string','notification','3101938kyjQnZ','585312hpzbvH','read','2342HDPnnA','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','map','4PSjxMM'];a35_0x3b2d=function(){return _0x29ecb4;};return a35_0x3b2d();}export const notificationConfigList={'service':a35_0x2f4b93(0x1a2),'command':a35_0x2f4b93(0x1b4),'description':a35_0x2f4b93(0x1a7),'risk':a35_0x2f4b93(0x1a5),'flags':[{'name':'type','type':a35_0x2f4b93(0x1a1),'description':a35_0x2f4b93(0x1b2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x2f4b93(0x1ab)}],async 'validate'(_0x150d43){readNotificationChannelType(_0x150d43);},async 'execute'(_0x16055b){const _0x16c9e3=a35_0x2f4b93,_0x354b52=readNotificationChannelType(_0x16055b),_0x5a4fc8=await listNotificationChannelConfigs(_0x16055b[_0x16c9e3(0x1ae)],_0x354b52),_0x1c0105=_0x5a4fc8[_0x16c9e3(0x1a8)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x16055b[_0x16c9e3(0x1ae)],'channelType':_0x354b52,'count':_0x1c0105[_0x16c9e3(0x1b3)],'configs':_0x1c0105},'message':'Found\x20'+_0x1c0105[_0x16c9e3(0x1b3)]+'\x20'+_0x354b52+'\x20notification\x20config(s)'};}};
1
+ const a35_0x539941=a35_0x251b;function a35_0x251b(_0x52b4ad,_0x3f9145){_0x52b4ad=_0x52b4ad-0xa9;const _0x47bcf6=a35_0x47bc();let _0x251b3f=_0x47bcf6[_0x52b4ad];return _0x251b3f;}(function(_0x103525,_0x596d31){const _0x5a14e8=a35_0x251b,_0x530cfe=_0x103525();while(!![]){try{const _0x301b89=parseInt(_0x5a14e8(0xba))/0x1+parseInt(_0x5a14e8(0xaf))/0x2+-parseInt(_0x5a14e8(0xab))/0x3*(-parseInt(_0x5a14e8(0xb7))/0x4)+-parseInt(_0x5a14e8(0xbd))/0x5*(-parseInt(_0x5a14e8(0xb2))/0x6)+parseInt(_0x5a14e8(0xb8))/0x7*(-parseInt(_0x5a14e8(0xb4))/0x8)+-parseInt(_0x5a14e8(0xb6))/0x9*(parseInt(_0x5a14e8(0xbb))/0xa)+-parseInt(_0x5a14e8(0xac))/0xb;if(_0x301b89===_0x596d31)break;else _0x530cfe['push'](_0x530cfe['shift']());}catch(_0x4f5ddf){_0x530cfe['push'](_0x530cfe['shift']());}}}(a35_0x47bc,0x9ba6f));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x47bc(){const _0x190ca3=['Notification\x20channel\x20type','30384MfORld','length','3160600tkUpQA','notification','23931cTZGUq','4tYiuJK','7JIJhZX','appCode','208533SSXBFw','310MECYlf','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','950whtIGr','map','read','128091wLwzXX','1909831cUyqLB','EMAIL','string','150572LJZfSo','\x20notification\x20config(s)'];a35_0x47bc=function(){return _0x190ca3;};return a35_0x47bc();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x539941(0xb5),'command':'config-list','description':a35_0x539941(0xbc),'risk':a35_0x539941(0xaa),'flags':[{'name':'type','type':a35_0x539941(0xae),'description':a35_0x539941(0xb1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x539941(0xad)}],async 'validate'(_0x1c685e){readNotificationChannelType(_0x1c685e);},async 'execute'(_0x5503b5){const _0x1aed4f=a35_0x539941,_0x5abf87=readNotificationChannelType(_0x5503b5),_0xa5c0ef=await listNotificationChannelConfigs(_0x5503b5[_0x1aed4f(0xb9)],_0x5abf87),_0x12cee1=_0xa5c0ef[_0x1aed4f(0xa9)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5503b5['appCode'],'channelType':_0x5abf87,'count':_0x12cee1['length'],'configs':_0x12cee1},'message':'Found\x20'+_0x12cee1[_0x1aed4f(0xb3)]+'\x20'+_0x5abf87+_0x1aed4f(0xb0)};}};
@@ -1 +1 @@
1
- function a36_0x2a24(_0x595235,_0x103d7f){_0x595235=_0x595235-0xa7;const _0x5b62b5=a36_0x5b62();let _0x2a2486=_0x5b62b5[_0x595235];return _0x2a2486;}(function(_0x38e264,_0x9845b2){const _0x2fe734=a36_0x2a24,_0xa42f2c=_0x38e264();while(!![]){try{const _0x3e72c9=parseInt(_0x2fe734(0xad))/0x1+parseInt(_0x2fe734(0xa8))/0x2*(parseInt(_0x2fe734(0xb0))/0x3)+parseInt(_0x2fe734(0xac))/0x4+-parseInt(_0x2fe734(0xaa))/0x5*(-parseInt(_0x2fe734(0xa7))/0x6)+parseInt(_0x2fe734(0xae))/0x7*(parseInt(_0x2fe734(0xab))/0x8)+-parseInt(_0x2fe734(0xa9))/0x9+-parseInt(_0x2fe734(0xaf))/0xa;if(_0x3e72c9===_0x9845b2)break;else _0xa42f2c['push'](_0xa42f2c['shift']());}catch(_0xeb4f69){_0xa42f2c['push'](_0xa42f2c['shift']());}}}(a36_0x5b62,0x1cf91));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x5b62(){const _0x5ab8f8=['4580acKagF','1270024mTZoPK','368732SzDQLT','221606CjZTUW','7VuCQev','4307170ulPSfo','4083jvIEiP','216JjOYIx','218Qslwfz','940293XRHfzn'];a36_0x5b62=function(){return _0x5ab8f8;};return a36_0x5b62();}export const notificationDefinitions=[notificationConfigList];
1
+ function a36_0x4276(){const _0x3a1629=['26zUTbXk','723340bHrrsL','457362JJKRtS','15121UDvxXB','14pTXrlP','4NgBGOz','56CJskGq','98586RjQQcw','776830eVvNEj','6650892MZhUOD','11vCctdu','393021PtEWxe'];a36_0x4276=function(){return _0x3a1629;};return a36_0x4276();}(function(_0x4e6a17,_0x5bd543){const _0x47eca1=a36_0x57e3,_0x50f3b4=_0x4e6a17();while(!![]){try{const _0x3b2963=parseInt(_0x47eca1(0x1b9))/0x1*(-parseInt(_0x47eca1(0x1b6))/0x2)+-parseInt(_0x47eca1(0x1b8))/0x3+parseInt(_0x47eca1(0x1af))/0x4*(parseInt(_0x47eca1(0x1b2))/0x5)+parseInt(_0x47eca1(0x1b1))/0x6*(parseInt(_0x47eca1(0x1ba))/0x7)+parseInt(_0x47eca1(0x1b0))/0x8*(-parseInt(_0x47eca1(0x1b5))/0x9)+parseInt(_0x47eca1(0x1b7))/0xa+parseInt(_0x47eca1(0x1b4))/0xb*(parseInt(_0x47eca1(0x1b3))/0xc);if(_0x3b2963===_0x5bd543)break;else _0x50f3b4['push'](_0x50f3b4['shift']());}catch(_0x46a7af){_0x50f3b4['push'](_0x50f3b4['shift']());}}}(a36_0x4276,0x2715d));function a36_0x57e3(_0x5510a4,_0x4f863f){_0x5510a4=_0x5510a4-0x1af;const _0x42761d=a36_0x4276();let _0x57e363=_0x42761d[_0x5510a4];return _0x57e363;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- function a37_0x4a57(_0x5c2626,_0x4185f8){_0x5c2626=_0x5c2626-0x151;const _0xed3eed=a37_0xed3e();let _0x4a57f3=_0xed3eed[_0x5c2626];return _0x4a57f3;}const a37_0x1fbedf=a37_0x4a57;(function(_0x29541d,_0x1e1c16){const _0x4f9f0a=a37_0x4a57,_0x53821e=_0x29541d();while(!![]){try{const _0x193569=parseInt(_0x4f9f0a(0x176))/0x1*(-parseInt(_0x4f9f0a(0x174))/0x2)+parseInt(_0x4f9f0a(0x16b))/0x3*(-parseInt(_0x4f9f0a(0x158))/0x4)+parseInt(_0x4f9f0a(0x15d))/0x5+parseInt(_0x4f9f0a(0x170))/0x6*(parseInt(_0x4f9f0a(0x159))/0x7)+parseInt(_0x4f9f0a(0x16d))/0x8*(parseInt(_0x4f9f0a(0x16a))/0x9)+parseInt(_0x4f9f0a(0x169))/0xa+-parseInt(_0x4f9f0a(0x173))/0xb*(parseInt(_0x4f9f0a(0x151))/0xc);if(_0x193569===_0x1e1c16)break;else _0x53821e['push'](_0x53821e['shift']());}catch(_0x2e4c4b){_0x53821e['push'](_0x53821e['shift']());}}}(a37_0xed3e,0xac89a));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x1fbedf(0x16f),a37_0x1fbedf(0x153),a37_0x1fbedf(0x165),'WECOM',a37_0x1fbedf(0x160)];export function readNotificationChannelType(_0x560c22){const _0xc2370d=a37_0x1fbedf,_0x3722e1=_0x560c22[_0xc2370d(0x15b)](_0xc2370d(0x155))['trim']()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0xc2370d(0x162)](_0x3722e1))throw CliErrors[_0xc2370d(0x164)](_0xc2370d(0x16e)+_0x3722e1,_0xc2370d(0x15f)+NOTIFICATION_CHANNEL_TYPES[_0xc2370d(0x171)](',\x20')+'.');return _0x3722e1;}export function projectNotificationListConfig(_0x34bdfd,_0x24973c){const _0x5cde5f=a37_0x1fbedf,_0x3d6530=requireResponseObject(_0x34bdfd,_0x24973c);return{'id':normalizeNullableId(_0x3d6530['id'],_0x24973c),'configCode':requireResponseString(_0x3d6530[_0x5cde5f(0x152)],_0x5cde5f(0x152),_0x24973c),'configName':requireResponseString(_0x3d6530[_0x5cde5f(0x168)],_0x5cde5f(0x168),_0x24973c),'channelType':requireResponseString(_0x3d6530['channelType'],_0x5cde5f(0x154),_0x24973c),'description':normalizeNullableString(_0x3d6530[_0x5cde5f(0x167)]),'createTime':normalizeNullableString(_0x3d6530[_0x5cde5f(0x166)]),'updateTime':normalizeNullableString(_0x3d6530['updateTime'])};}function requireResponseObject(_0x2b808e,_0x1560ac){const _0x20d775=a37_0x1fbedf;if(typeof _0x2b808e!==_0x20d775(0x163)||_0x2b808e===null||Array[_0x20d775(0x15e)](_0x2b808e))throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.','Item\x20'+(_0x1560ac+0x1)+_0x20d775(0x16c));return _0x2b808e;}function requireResponseString(_0x22c70f,_0x3508fe,_0x14a47e){const _0x16fcac=a37_0x1fbedf;if(typeof _0x22c70f!==_0x16fcac(0x175)||!_0x22c70f[_0x16fcac(0x157)]())throw CliErrors[_0x16fcac(0x156)](_0x16fcac(0x15c),'Item\x20'+(_0x14a47e+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x3508fe+'\x22.');return _0x22c70f[_0x16fcac(0x157)]();}function normalizeNullableString(_0x4baa3b){const _0xce26e2=a37_0x1fbedf;return typeof _0x4baa3b==='string'&&_0x4baa3b[_0xce26e2(0x157)]()?_0x4baa3b[_0xce26e2(0x157)]():null;}function a37_0xed3e(){const _0xa419fb=['object','validation','DINGTALK','createTime','description','configName','13316770WBRkZr','27NgTKkY','177HCWIKi','\x20must\x20be\x20an\x20object.','204520eXFDLB','Invalid\x20--type:\x20','EMAIL','6635598zezZXI','join','Item\x20','3487qcjQso','73026EpWmSd','string','14DEaRZW','35928WznoHX','configCode','FEISHU','channelType','type','apiError','trim','84228svduzS','7NjhDlb','test','str','Invalid\x20notification\x20config\x20response.','4475260dlOXQL','isArray','Allowed\x20values:\x20','WEBHOOK','number','includes'];a37_0xed3e=function(){return _0xa419fb;};return a37_0xed3e();}function normalizeNullableId(_0x237a24,_0x516306){const _0x39f7ea=a37_0x1fbedf;if(_0x237a24===undefined||_0x237a24===null)return null;if(typeof _0x237a24===_0x39f7ea(0x161)&&Number['isSafeInteger'](_0x237a24))return _0x237a24;if(typeof _0x237a24==='string'&&/^-?\d+$/[_0x39f7ea(0x15a)](_0x237a24[_0x39f7ea(0x157)]()))return _0x237a24[_0x39f7ea(0x157)]();throw CliErrors[_0x39f7ea(0x156)](_0x39f7ea(0x15c),_0x39f7ea(0x172)+(_0x516306+0x1)+'\x20has\x20invalid\x20field\x20\x22id\x22.');}
1
+ const a37_0x1d2b31=a37_0x5dcb;(function(_0x361325,_0x20b240){const _0x36d692=a37_0x5dcb,_0x5bd350=_0x361325();while(!![]){try{const _0xf92c84=parseInt(_0x36d692(0x1dd))/0x1*(-parseInt(_0x36d692(0x1ee))/0x2)+parseInt(_0x36d692(0x1ed))/0x3+parseInt(_0x36d692(0x1e0))/0x4*(-parseInt(_0x36d692(0x1e7))/0x5)+parseInt(_0x36d692(0x1e4))/0x6*(parseInt(_0x36d692(0x1d9))/0x7)+parseInt(_0x36d692(0x1ec))/0x8+parseInt(_0x36d692(0x1de))/0x9+-parseInt(_0x36d692(0x1e1))/0xa*(parseInt(_0x36d692(0x1da))/0xb);if(_0xf92c84===_0x20b240)break;else _0x5bd350['push'](_0x5bd350['shift']());}catch(_0x622c18){_0x5bd350['push'](_0x5bd350['shift']());}}}(a37_0x5da4,0xb4131));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x1d2b31(0x1e9),a37_0x1d2b31(0x1e8),a37_0x1d2b31(0x1eb),'WECOM',a37_0x1d2b31(0x1df)];export function readNotificationChannelType(_0x5d0486){const _0x2b26aa=a37_0x1d2b31,_0x390340=_0x5d0486[_0x2b26aa(0x1ea)]('type')[_0x2b26aa(0x1e3)]()||_0x2b26aa(0x1e9);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x390340))throw CliErrors['validation']('Invalid\x20--type:\x20'+_0x390340,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x390340;}export function projectNotificationListConfig(_0x3e4c4f,_0x209388){const _0x4363ed=a37_0x1d2b31,_0x5a79c6=requireResponseObject(_0x3e4c4f,_0x209388);return{'id':normalizeNullableId(_0x5a79c6['id'],_0x209388),'configCode':requireResponseString(_0x5a79c6[_0x4363ed(0x1d8)],_0x4363ed(0x1d8),_0x209388),'configName':requireResponseString(_0x5a79c6[_0x4363ed(0x1f0)],'configName',_0x209388),'channelType':requireResponseString(_0x5a79c6[_0x4363ed(0x1f3)],_0x4363ed(0x1f3),_0x209388),'description':normalizeNullableString(_0x5a79c6['description']),'createTime':normalizeNullableString(_0x5a79c6[_0x4363ed(0x1d6)]),'updateTime':normalizeNullableString(_0x5a79c6['updateTime'])};}function requireResponseObject(_0x506826,_0x2824cc){const _0x397a9f=a37_0x1d2b31;if(typeof _0x506826!=='object'||_0x506826===null||Array[_0x397a9f(0x1f2)](_0x506826))throw CliErrors[_0x397a9f(0x1ef)]('Invalid\x20notification\x20config\x20response.',_0x397a9f(0x1f1)+(_0x2824cc+0x1)+_0x397a9f(0x1dc));return _0x506826;}function a37_0x5dcb(_0x28ecc3,_0x48ede8){_0x28ecc3=_0x28ecc3-0x1d6;const _0x5da4a4=a37_0x5da4();let _0x5dcbe3=_0x5da4a4[_0x28ecc3];return _0x5dcbe3;}function a37_0x5da4(){const _0x2334b3=['2675904wmypeI','1766uwnfAi','apiError','configName','Item\x20','isArray','channelType','createTime','\x20is\x20missing\x20required\x20field\x20\x22','configCode','47831fIhvao','16140773lvgAss','string','\x20must\x20be\x20an\x20object.','1454dHnmiz','9013050LPwHwr','WEBHOOK','4ggjyrY','10JZHSJO','test','trim','708wzUgdI','isSafeInteger','Invalid\x20notification\x20config\x20response.','1709585OvSuUW','FEISHU','EMAIL','str','DINGTALK','9048120kiBQzE'];a37_0x5da4=function(){return _0x2334b3;};return a37_0x5da4();}function requireResponseString(_0x29e6e3,_0xaf9392,_0xcd45a4){const _0xcb937a=a37_0x1d2b31;if(typeof _0x29e6e3!==_0xcb937a(0x1db)||!_0x29e6e3[_0xcb937a(0x1e3)]())throw CliErrors['apiError'](_0xcb937a(0x1e6),_0xcb937a(0x1f1)+(_0xcd45a4+0x1)+_0xcb937a(0x1d7)+_0xaf9392+'\x22.');return _0x29e6e3[_0xcb937a(0x1e3)]();}function normalizeNullableString(_0x102275){const _0x5bb796=a37_0x1d2b31;return typeof _0x102275===_0x5bb796(0x1db)&&_0x102275[_0x5bb796(0x1e3)]()?_0x102275[_0x5bb796(0x1e3)]():null;}function normalizeNullableId(_0x3999f4,_0x45a187){const _0x283d6a=a37_0x1d2b31;if(_0x3999f4===undefined||_0x3999f4===null)return null;if(typeof _0x3999f4==='number'&&Number[_0x283d6a(0x1e5)](_0x3999f4))return _0x3999f4;if(typeof _0x3999f4==='string'&&/^-?\d+$/[_0x283d6a(0x1e2)](_0x3999f4[_0x283d6a(0x1e3)]()))return _0x3999f4[_0x283d6a(0x1e3)]();throw CliErrors[_0x283d6a(0x1ef)](_0x283d6a(0x1e6),'Item\x20'+(_0x45a187+0x1)+'\x20has\x20invalid\x20field\x20\x22id\x22.');}
@@ -1 +1 @@
1
- const a38_0x5cb132=a38_0x574c;function a38_0x574c(_0x4ab8b3,_0x102f31){_0x4ab8b3=_0x4ab8b3-0x19f;const _0xcf5d50=a38_0xcf5d();let _0x574c2d=_0xcf5d50[_0x4ab8b3];return _0x574c2d;}(function(_0x12b3fd,_0x1aed80){const _0x1ffc69=a38_0x574c,_0x2912b4=_0x12b3fd();while(!![]){try{const _0x3e9dc2=parseInt(_0x1ffc69(0x1d3))/0x1*(-parseInt(_0x1ffc69(0x1cf))/0x2)+parseInt(_0x1ffc69(0x1c5))/0x3+-parseInt(_0x1ffc69(0x1bc))/0x4*(-parseInt(_0x1ffc69(0x1ba))/0x5)+-parseInt(_0x1ffc69(0x1a9))/0x6*(-parseInt(_0x1ffc69(0x1a6))/0x7)+parseInt(_0x1ffc69(0x1c7))/0x8*(parseInt(_0x1ffc69(0x1d2))/0x9)+-parseInt(_0x1ffc69(0x1c9))/0xa*(-parseInt(_0x1ffc69(0x1b0))/0xb)+-parseInt(_0x1ffc69(0x1c8))/0xc;if(_0x3e9dc2===_0x1aed80)break;else _0x2912b4['push'](_0x2912b4['shift']());}catch(_0x1ae541){_0x2912b4['push'](_0x2912b4['shift']());}}}(a38_0xcf5d,0x2664a));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x5cb132(0x1a1),'general',a38_0x5cb132(0x1a4),a38_0x5cb132(0x1c2)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x5cb132(0x1ca),'general':'General','form':'Table','idCard':a38_0x5cb132(0x1b9)},SCENE_FLAG={'name':a38_0x5cb132(0x1b6),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':'image-file','type':a38_0x5cb132(0x1a2),'description':a38_0x5cb132(0x1d0)},IMAGE_URL_FLAG={'name':a38_0x5cb132(0x1a0),'type':a38_0x5cb132(0x1a2),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x58fbfa){const _0x110a93=a38_0x5cb132,_0x5cd1b5=_0x58fbfa['trim']()[_0x110a93(0x1b4)]();if(_0x5cd1b5===_0x110a93(0x1ad))return'idCard';if(_0x5cd1b5===_0x110a93(0x1a1)||_0x5cd1b5==='general'||_0x5cd1b5==='form')return _0x5cd1b5;throw CliErrors[_0x110a93(0x1bf)]('Unsupported\x20OCR\x20scene:\x20'+_0x58fbfa+_0x110a93(0x1b7)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x5370dd){const _0x58fb45=a38_0x5cb132,_0x3bf933=_0x5370dd[_0x58fb45(0x1be)](_0x58fb45(0x1cb))['trim'](),_0x2265a8=_0x5370dd['str'](_0x58fb45(0x1a0))[_0x58fb45(0x1b8)]();return{'imageFile':_0x3bf933,'imageUrl':_0x2265a8,'count':[_0x3bf933,_0x2265a8][_0x58fb45(0x1b2)](Boolean)[_0x58fb45(0x1d4)]};}function validateInputSelection(_0x231f74){const _0x2ab8e0=a38_0x5cb132,_0x70c05e=selectedInputs(_0x231f74);if(_0x70c05e[_0x2ab8e0(0x1bb)]!==0x1)throw CliErrors[_0x2ab8e0(0x1bf)](_0x2ab8e0(0x1a8));return _0x70c05e;}function a38_0xcf5d(){const _0x5c2351=['Invoice','image-file','imageUrl','\x20OCR\x20from\x20URL','POST','10LBnLJv','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','1170783SaxVQb','27383blOZiR','length','fileUrl','image-url','invoice','string','/client/ocr','form','/client/uploadFile','371PuTYPs','description','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','29382eUAcok','/client/queryFileUrl','appCode','build','idcard','ocr','body','1032977bdQPMC','imageFile','filter','read','toLowerCase','recognize','scene','.\x20Supported\x20scenes:\x20','trim','IdCard','1016300yqTvNT','count','4hsSsGX','apiError','str','validation','\x20OCR','filePath','idCard','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','File\x20URL\x20response\x20missing\x20fileUrl.','754365cZoTEH','<filePath\x20returned\x20by\x20/client/uploadFile>','16TscVLM','9289968PqwqCw','10FrsiiQ'];a38_0xcf5d=function(){return _0x5c2351;};return a38_0xcf5d();}function withScene(_0x1b4446,_0x2c9205,_0x3ef186){const _0x4dcceb=a38_0x5cb132;return{..._0x1b4446,'scene':_0x2c9205,..._0x3ef186?{'sourceFile':{'fileName':_0x3ef186['fileName'],'filePath':_0x3ef186[_0x4dcceb(0x1c1)]}}:{}};}const ocrRecognize={'service':a38_0x5cb132(0x1ae),'command':a38_0x5cb132(0x1b5),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a38_0x5cb132(0x1b3),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x158afd){const _0x55359a=a38_0x5cb132,_0x266473=normalizeScene(_0x158afd[_0x55359a(0x1be)]('scene')),_0x4571f4=SCENE_TO_LEGACY_TYPE[_0x266473],_0x5b7105=validateInputSelection(_0x158afd);if(_0x5b7105['imageUrl'])return dryRun('POST',_0x55359a(0x1a3))[_0x55359a(0x1af)]({'appCode':_0x158afd['appCode'],'url':_0x5b7105['imageUrl'],'type':_0x4571f4})[_0x55359a(0x1a7)]('Preview:\x20recognize\x20'+_0x266473+_0x55359a(0x1cd))[_0x55359a(0x1ac)]();const _0x54bc36=requireRuntimeUploadFile(_0x5b7105[_0x55359a(0x1b1)],'image-file');return dryRun(_0x55359a(0x1ce),_0x55359a(0x1a5))[_0x55359a(0x1af)]({'steps':[{'method':_0x55359a(0x1ce),'url':_0x55359a(0x1a5),'body':{'appCode':_0x158afd['appCode'],'multipart':{'file':_0x54bc36}}},{'method':_0x55359a(0x1ce),'url':_0x55359a(0x1aa),'body':{'filePath':_0x55359a(0x1c6),'downloadFlag':![]}},{'method':_0x55359a(0x1ce),'url':'/client/ocr','body':{'appCode':_0x158afd['appCode'],'url':_0x55359a(0x1c3),'type':_0x4571f4}}]})['description']('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x266473+_0x55359a(0x1c0))[_0x55359a(0x1ac)]();},async 'execute'(_0x18ef6d){const _0x3a56de=a38_0x5cb132,_0x555562=normalizeScene(_0x18ef6d['str']('scene')),_0x349c5f=SCENE_TO_LEGACY_TYPE[_0x555562],_0x5a6485=validateInputSelection(_0x18ef6d);if(_0x5a6485[_0x3a56de(0x1cc)]){const _0x153b99=await recognizeRuntimeOcr(_0x18ef6d['appCode'],{'url':_0x5a6485[_0x3a56de(0x1cc)],'type':_0x349c5f});return{'ok':!![],'data':withScene(_0x153b99,_0x555562)};}const _0x57d34e=requireRuntimeUploadFile(_0x5a6485['imageFile'],'image-file'),_0x30e0e1=await uploadRuntimeFile(_0x18ef6d[_0x3a56de(0x1ab)],_0x57d34e['path']);if(!_0x30e0e1[_0x3a56de(0x1c1)])throw CliErrors['apiError'](_0x3a56de(0x1d1));const _0x47cea9=await queryRuntimeFileUrl(_0x30e0e1[_0x3a56de(0x1c1)],{'download':![]});if(!_0x47cea9[_0x3a56de(0x19f)])throw CliErrors[_0x3a56de(0x1bd)](_0x3a56de(0x1c4));const _0x182b08=await recognizeRuntimeOcr(_0x18ef6d['appCode'],{'url':_0x47cea9[_0x3a56de(0x19f)],'type':_0x349c5f});return{'ok':!![],'data':withScene(_0x182b08,_0x555562,_0x30e0e1)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x5728d5=a38_0x33ea;(function(_0x2bf166,_0x5b34a0){const _0xabf2b3=a38_0x33ea,_0x49edf0=_0x2bf166();while(!![]){try{const _0x2fde23=-parseInt(_0xabf2b3(0xdb))/0x1*(-parseInt(_0xabf2b3(0xf5))/0x2)+-parseInt(_0xabf2b3(0xe7))/0x3+-parseInt(_0xabf2b3(0xc5))/0x4+-parseInt(_0xabf2b3(0xe9))/0x5+parseInt(_0xabf2b3(0xee))/0x6*(-parseInt(_0xabf2b3(0xfc))/0x7)+parseInt(_0xabf2b3(0xf9))/0x8*(-parseInt(_0xabf2b3(0xf1))/0x9)+parseInt(_0xabf2b3(0xe4))/0xa;if(_0x2fde23===_0x5b34a0)break;else _0x49edf0['push'](_0x49edf0['shift']());}catch(_0x457628){_0x49edf0['push'](_0x49edf0['shift']());}}}(a38_0x28ea,0xe739b));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';function a38_0x33ea(_0x116a04,_0x5605bd){_0x116a04=_0x116a04-0xc5;const _0x28eaad=a38_0x28ea();let _0x33ea31=_0x28eaad[_0x116a04];return _0x33ea31;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x5728d5(0xec),a38_0x5728d5(0xe6),a38_0x5728d5(0xda),a38_0x5728d5(0xe3)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x5728d5(0xe0),'general':a38_0x5728d5(0xfd),'form':a38_0x5728d5(0xd6),'idCard':a38_0x5728d5(0xd3)},SCENE_FLAG={'name':a38_0x5728d5(0xc7),'type':a38_0x5728d5(0xfb),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x5728d5(0xd8)},IMAGE_FILE_FLAG={'name':a38_0x5728d5(0xd7),'type':a38_0x5728d5(0xfb),'description':a38_0x5728d5(0xcf)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x5728d5(0xfb),'description':a38_0x5728d5(0xce)};function a38_0x28ea(){const _0x108fcb=['POST','idcard','.\x20Supported\x20scenes:\x20','path','Invoice','count','apiError','idCard','48619110QQrDts','Unsupported\x20OCR\x20scene:\x20','general','4949361RHrUnq','/client/uploadFile','1482555RYVthk','imageUrl','/client/queryFileUrl','invoice','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','737592lscaho','build','<filePath\x20returned\x20by\x20/client/uploadFile>','1431tXykfc','description','filePath','trim','216696OYwJdF','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','fileUrl','imageFile','8824dQkpLz','appCode','string','14STMGor','General','7055876WrACsl','read','scene','str','toLowerCase','File\x20upload\x20response\x20missing\x20filePath.','validation','\x20OCR\x20from\x20URL','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','join','recognize','/client/ocr','IdCard','Preview:\x20recognize\x20','filter','Table','image-file','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','length','form','2MAembp'];a38_0x28ea=function(){return _0x108fcb;};return a38_0x28ea();}function normalizeScene(_0x27f398){const _0x5d04cf=a38_0x5728d5,_0x1a86df=_0x27f398[_0x5d04cf(0xf4)]()[_0x5d04cf(0xc9)]();if(_0x1a86df===_0x5d04cf(0xdd))return _0x5d04cf(0xe3);if(_0x1a86df===_0x5d04cf(0xec)||_0x1a86df===_0x5d04cf(0xe6)||_0x1a86df===_0x5d04cf(0xda))return _0x1a86df;throw CliErrors[_0x5d04cf(0xcb)](_0x5d04cf(0xe5)+_0x27f398+_0x5d04cf(0xde)+SUPPORTED_SCENES[_0x5d04cf(0xd0)](',\x20'));}function selectedInputs(_0x36c8fa){const _0x2309f5=a38_0x5728d5,_0xd6ff48=_0x36c8fa[_0x2309f5(0xc8)](_0x2309f5(0xd7))['trim'](),_0x3747f4=_0x36c8fa[_0x2309f5(0xc8)]('image-url')[_0x2309f5(0xf4)]();return{'imageFile':_0xd6ff48,'imageUrl':_0x3747f4,'count':[_0xd6ff48,_0x3747f4][_0x2309f5(0xd5)](Boolean)[_0x2309f5(0xd9)]};}function validateInputSelection(_0x3b439e){const _0x189137=a38_0x5728d5,_0x3a855a=selectedInputs(_0x3b439e);if(_0x3a855a[_0x189137(0xe1)]!==0x1)throw CliErrors['validation'](_0x189137(0xcd));return _0x3a855a;}function withScene(_0x2dda1d,_0x199c1d,_0x30ae4a){const _0x353b8f=a38_0x5728d5;return{..._0x2dda1d,'scene':_0x199c1d,..._0x30ae4a?{'sourceFile':{'fileName':_0x30ae4a['fileName'],'filePath':_0x30ae4a[_0x353b8f(0xf3)]}}:{}};}const ocrRecognize={'service':'ocr','command':a38_0x5728d5(0xd1),'description':a38_0x5728d5(0xed),'risk':a38_0x5728d5(0xc6),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x32dc68){const _0x1986fc=a38_0x5728d5,_0x2aecc2=normalizeScene(_0x32dc68['str'](_0x1986fc(0xc7))),_0x1b947f=SCENE_TO_LEGACY_TYPE[_0x2aecc2],_0x340bfc=validateInputSelection(_0x32dc68);if(_0x340bfc[_0x1986fc(0xea)])return dryRun(_0x1986fc(0xdc),'/client/ocr')['body']({'appCode':_0x32dc68['appCode'],'url':_0x340bfc[_0x1986fc(0xea)],'type':_0x1b947f})[_0x1986fc(0xf2)](_0x1986fc(0xd4)+_0x2aecc2+_0x1986fc(0xcc))[_0x1986fc(0xef)]();const _0x4c8169=requireRuntimeUploadFile(_0x340bfc[_0x1986fc(0xf8)],_0x1986fc(0xd7));return dryRun(_0x1986fc(0xdc),'/client/uploadFile')['body']({'steps':[{'method':_0x1986fc(0xdc),'url':_0x1986fc(0xe8),'body':{'appCode':_0x32dc68[_0x1986fc(0xfa)],'multipart':{'file':_0x4c8169}}},{'method':'POST','url':_0x1986fc(0xeb),'body':{'filePath':_0x1986fc(0xf0),'downloadFlag':![]}},{'method':_0x1986fc(0xdc),'url':_0x1986fc(0xd2),'body':{'appCode':_0x32dc68[_0x1986fc(0xfa)],'url':_0x1986fc(0xf6),'type':_0x1b947f}}]})[_0x1986fc(0xf2)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x2aecc2+'\x20OCR')[_0x1986fc(0xef)]();},async 'execute'(_0x449ea5){const _0x4dcb81=a38_0x5728d5,_0x18db2b=normalizeScene(_0x449ea5[_0x4dcb81(0xc8)](_0x4dcb81(0xc7))),_0x1c0065=SCENE_TO_LEGACY_TYPE[_0x18db2b],_0x24b26f=validateInputSelection(_0x449ea5);if(_0x24b26f['imageUrl']){const _0x212ef2=await recognizeRuntimeOcr(_0x449ea5[_0x4dcb81(0xfa)],{'url':_0x24b26f[_0x4dcb81(0xea)],'type':_0x1c0065});return{'ok':!![],'data':withScene(_0x212ef2,_0x18db2b)};}const _0x2a5c6e=requireRuntimeUploadFile(_0x24b26f[_0x4dcb81(0xf8)],'image-file'),_0x19ab9d=await uploadRuntimeFile(_0x449ea5['appCode'],_0x2a5c6e[_0x4dcb81(0xdf)]);if(!_0x19ab9d['filePath'])throw CliErrors['apiError'](_0x4dcb81(0xca));const _0x299f38=await queryRuntimeFileUrl(_0x19ab9d[_0x4dcb81(0xf3)],{'download':![]});if(!_0x299f38[_0x4dcb81(0xf7)])throw CliErrors[_0x4dcb81(0xe2)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x508932=await recognizeRuntimeOcr(_0x449ea5[_0x4dcb81(0xfa)],{'url':_0x299f38[_0x4dcb81(0xf7)],'type':_0x1c0065});return{'ok':!![],'data':withScene(_0x508932,_0x18db2b,_0x19ab9d)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x3c72d0=a39_0xa9ff;(function(_0x111a38,_0x198a07){const _0xa2b365=a39_0xa9ff,_0x126920=_0x111a38();while(!![]){try{const _0x24416b=-parseInt(_0xa2b365(0x82))/0x1*(-parseInt(_0xa2b365(0x7e))/0x2)+parseInt(_0xa2b365(0x89))/0x3*(-parseInt(_0xa2b365(0x88))/0x4)+parseInt(_0xa2b365(0x8a))/0x5+-parseInt(_0xa2b365(0x8d))/0x6*(-parseInt(_0xa2b365(0x80))/0x7)+parseInt(_0xa2b365(0x7d))/0x8+parseInt(_0xa2b365(0x85))/0x9+-parseInt(_0xa2b365(0x81))/0xa;if(_0x24416b===_0x198a07)break;else _0x126920['push'](_0x126920['shift']());}catch(_0x230d4c){_0x126920['push'](_0x126920['shift']());}}}(a39_0x3c24,0x33798));function a39_0xa9ff(_0x766a42,_0x4d50c2){_0x766a42=_0x766a42-0x7b;const _0x3c2473=a39_0x3c24();let _0xa9ffee=_0x3c2473[_0x766a42];return _0xa9ffee;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':'permit','command':'dataset-get','description':a39_0x3c72d0(0x84),'risk':a39_0x3c72d0(0x8b),'flags':[{'name':a39_0x3c72d0(0x86),'type':a39_0x3c72d0(0x8c),'description':a39_0x3c72d0(0x87)}],async 'execute'(_0x518371){const _0x493eda=a39_0x3c72d0,_0x1a4e63=_0x518371[_0x493eda(0x8f)](_0x493eda(0x86))[_0x493eda(0x8e)]();if(!_0x1a4e63)return{'ok':!![],'data':{'scope':_0x493eda(0x7c),'datasets':await listRuntimeDatasetRolePermits(_0x518371[_0x493eda(0x7f)])}};const _0x5e53af=await resolveRuntimeRoleRef(_0x518371[_0x493eda(0x7f)],_0x1a4e63);return{'ok':!![],'data':{'scope':_0x493eda(0x7c),'role':{'id':_0x5e53af['id'],'roleName':_0x5e53af[_0x493eda(0x83)],'roleType':_0x5e53af[_0x493eda(0x7b)]},'datasets':await listRuntimeDatasetPermits(_0x518371[_0x493eda(0x7f)],_0x5e53af['id'])}};}};function a39_0x3c24(){const _0x4b6b5c=['1057jRqvGp','5697720XoeHlU','901xGFAbg','roleName','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','210591ZPObhw','role','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','436PuXYQs','1629KnKGml','1955305nqBDYx','read','string','16158ttvavU','trim','str','roleType','runtime','55864UQduTz','26tkITVO','appCode'];a39_0x3c24=function(){return _0x4b6b5c;};return a39_0x3c24();}
1
+ function a39_0x36ef(){const _0x4d56cd=['Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','read','3149928TGEwJf','runtime','role','dataset-get','appCode','628xkKnvv','permit','1433507sNDEgd','8769850pwZPCj','2598100SYMeTR','99otPcWw','11576fPVWoA','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','732XTaCkw','36579bEHBAg','1498cBkHps','string'];a39_0x36ef=function(){return _0x4d56cd;};return a39_0x36ef();}function a39_0x46e4(_0x2474dc,_0x3f4002){_0x2474dc=_0x2474dc-0x111;const _0x36ef0f=a39_0x36ef();let _0x46e4e8=_0x36ef0f[_0x2474dc];return _0x46e4e8;}const a39_0x2a9d02=a39_0x46e4;(function(_0x48a901,_0x5e0dd6){const _0x41bb1a=a39_0x46e4,_0x49b58d=_0x48a901();while(!![]){try{const _0x1b1823=-parseInt(_0x41bb1a(0x118))/0x1+-parseInt(_0x41bb1a(0x111))/0x2+-parseInt(_0x41bb1a(0x11f))/0x3*(-parseInt(_0x41bb1a(0x116))/0x4)+parseInt(_0x41bb1a(0x119))/0x5+-parseInt(_0x41bb1a(0x11e))/0x6*(-parseInt(_0x41bb1a(0x120))/0x7)+parseInt(_0x41bb1a(0x11c))/0x8*(parseInt(_0x41bb1a(0x11b))/0x9)+parseInt(_0x41bb1a(0x11a))/0xa;if(_0x1b1823===_0x5e0dd6)break;else _0x49b58d['push'](_0x49b58d['shift']());}catch(_0x1f52da){_0x49b58d['push'](_0x49b58d['shift']());}}}(a39_0x36ef,0xeac63));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x2a9d02(0x117),'command':a39_0x2a9d02(0x114),'description':a39_0x2a9d02(0x11d),'risk':a39_0x2a9d02(0x123),'flags':[{'name':a39_0x2a9d02(0x113),'type':a39_0x2a9d02(0x121),'description':a39_0x2a9d02(0x122)}],async 'execute'(_0x36d41b){const _0x3d3823=a39_0x2a9d02,_0x18fb4b=_0x36d41b['str'](_0x3d3823(0x113))['trim']();if(!_0x18fb4b)return{'ok':!![],'data':{'scope':_0x3d3823(0x112),'datasets':await listRuntimeDatasetRolePermits(_0x36d41b[_0x3d3823(0x115)])}};const _0x584d92=await resolveRuntimeRoleRef(_0x36d41b['appCode'],_0x18fb4b);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x584d92['id'],'roleName':_0x584d92['roleName'],'roleType':_0x584d92['roleType']},'datasets':await listRuntimeDatasetPermits(_0x36d41b['appCode'],_0x584d92['id'])}};}};
@@ -1 +1 @@
1
- function a40_0x5a66(){const _0x130b6b=['role','Comma-separated\x20runtime\x20dataset\x20codes','2346200BuduKf','10qeBqCv','datasetCodes','map','21797040IcLoOb','\x20was\x20not\x20found.','filter','bool','permitList','DATA_CREATE','DATA_DETAIL','/client/permit/resource/batch-save-dataset','high-risk-write','operation','body','--actions','40axYixT','--datasets','validation','find','DATA_DELETE','resourceName','join','87789CZcXxd','push','dataPermitList','DATA_ROW','string','before','24715POBZkJ','Comma-separated\x20actions:\x20','POST','includes','appCode','Preview:\x20','Dataset\x20','67293zjVqlk','960BPOmbc','revoke','after','datasetCode','2219310kvmuUN','dataset-','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','grant','DATA_EXPORT','str','build','roles','\x20selected\x20runtime\x20dataset\x20actions','1078105yHSwPl','datasets','permitId','\x20does\x20not\x20expose\x20','length','rolePermit','changed','actions'];a40_0x5a66=function(){return _0x130b6b;};return a40_0x5a66();}const a40_0x4f69aa=a40_0x4dcc;(function(_0x2dcee8,_0x5ec925){const _0x245fd2=a40_0x4dcc,_0x14a2c2=_0x2dcee8();while(!![]){try{const _0x3ce1f9=-parseInt(_0x245fd2(0x6f))/0x1*(parseInt(_0x245fd2(0x95))/0x2)+-parseInt(_0x245fd2(0x81))/0x3+-parseInt(_0x245fd2(0x94))/0x4+-parseInt(_0x245fd2(0x75))/0x5*(-parseInt(_0x245fd2(0x7d))/0x6)+-parseInt(_0x245fd2(0x8a))/0x7*(parseInt(_0x245fd2(0xa4))/0x8)+parseInt(_0x245fd2(0x7c))/0x9+parseInt(_0x245fd2(0x98))/0xa;if(_0x3ce1f9===_0x5ec925)break;else _0x14a2c2['push'](_0x14a2c2['shift']());}catch(_0x63c7f1){_0x14a2c2['push'](_0x14a2c2['shift']());}}}(a40_0x5a66,0x6c161));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';function a40_0x4dcc(_0x30d1bc,_0x25eefc){_0x30d1bc=_0x30d1bc-0x6e;const _0x5a6612=a40_0x5a66();let _0x4dcc0e=_0x5a6612[_0x30d1bc];return _0x4dcc0e;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a40_0x4f69aa(0x9d),'DATA_UPDATE',a40_0x4f69aa(0xa8),a40_0x4f69aa(0x9e),a40_0x4f69aa(0x85),a40_0x4f69aa(0x72)],DATASETS_FLAG={'name':a40_0x4f69aa(0x8b),'type':a40_0x4f69aa(0x73),'required':!![],'description':a40_0x4f69aa(0x93)},ACTIONS_FLAG={'name':a40_0x4f69aa(0x91),'type':a40_0x4f69aa(0x73),'required':!![],'description':a40_0x4f69aa(0x76)+DATA_ACTIONS[a40_0x4f69aa(0x6e)](',\x20')};async function prepare(_0x1d9d3a){const _0x423e8e=a40_0x4f69aa;await assertRuntimePermissionManager(_0x1d9d3a[_0x423e8e(0x79)]);const _0x4367b7=assertGrantOrRevoke(_0x1d9d3a[_0x423e8e(0x9b)](_0x423e8e(0x84)),_0x1d9d3a[_0x423e8e(0x9b)](_0x423e8e(0x7e))),_0x8df816=await resolveRuntimeRoleRef(_0x1d9d3a[_0x423e8e(0x79)],_0x1d9d3a[_0x423e8e(0x86)](_0x423e8e(0x92)));assertRuntimePermitRoleConfigurable(_0x8df816);const _0x3646b4=splitRefs(_0x1d9d3a['str']('datasets'),_0x423e8e(0xa5)),_0x15a486=[...new Set(splitRefs(_0x1d9d3a['str'](_0x423e8e(0x91)),_0x423e8e(0xa3))[_0x423e8e(0x97)](_0x41c735=>_0x41c735['toUpperCase']()))],_0x31f764=_0x15a486[_0x423e8e(0x9a)](_0xf8c524=>!DATA_ACTIONS[_0x423e8e(0x78)](_0xf8c524));if(_0x31f764[_0x423e8e(0x8e)]>0x0)throw CliErrors[_0x423e8e(0xa6)]('Invalid\x20dataset\x20actions:\x20'+_0x31f764[_0x423e8e(0x6e)](',\x20')+'.');const _0x2be44d=await listRuntimeDatasetRolePermits(_0x1d9d3a[_0x423e8e(0x79)]),_0x1b1402=await listRuntimePermitRoles(_0x1d9d3a[_0x423e8e(0x79)]),_0x42fa98=[],_0x2e807c=[],_0x61ecb4=[],_0x538e81=[];for(const _0x310cdd of _0x3646b4){const _0xfda9c4=_0x2be44d[_0x423e8e(0xa7)](_0x4a743f=>_0x4a743f[_0x423e8e(0x80)]===_0x310cdd);if(!_0xfda9c4)throw CliErrors[_0x423e8e(0xa6)]('Runtime\x20dataset\x20'+_0x310cdd+_0x423e8e(0x99));for(const _0x2efefe of _0x15a486){const _0x396c4f=_0xfda9c4[_0x423e8e(0x71)][_0x423e8e(0xa7)](_0x4e0ac0=>_0x4e0ac0['resourceType']===_0x2efefe);if(!_0x396c4f)throw CliErrors[_0x423e8e(0xa6)](_0x423e8e(0x7b)+_0x310cdd+_0x423e8e(0x8d)+_0x2efefe+'.');const _0x243145=applyRuntimeRolePermission(_0x396c4f[_0x423e8e(0x8f)],_0x8df816,_0x1b1402,_0x4367b7);_0x2e807c[_0x423e8e(0x70)]({'datasetCode':_0x310cdd,'resourceType':_0x2efefe,'rolePermit':_0x396c4f[_0x423e8e(0x8f)]}),_0x61ecb4['push']({'datasetCode':_0x310cdd,'resourceType':_0x2efefe,'rolePermit':_0x243145[_0x423e8e(0x88)]}),_0x243145[_0x423e8e(0x90)]?_0x42fa98[_0x423e8e(0x70)]({..._0x396c4f['permitId']!=null?{'id':_0x396c4f[_0x423e8e(0x8c)]}:{},'appCode':_0x1d9d3a['appCode'],'resourceCode':_0x310cdd,'resourceType':_0x2efefe,'resourceName':_0x396c4f[_0x423e8e(0xa9)],'rolePermit':_0x243145[_0x423e8e(0x88)]}):_0x538e81['push'](_0x310cdd+'/'+_0x2efefe+'\x20already\x20reflects\x20'+_0x4367b7+'\x20for\x20role\x20'+_0x8df816['id']+'.');}}return{'operation':_0x4367b7,'role':_0x8df816,'datasetCodes':_0x3646b4,'actions':_0x15a486,'permitList':_0x42fa98,'before':_0x2e807c,'after':_0x61ecb4,'warnings':_0x538e81};}export const permitDatasetSet={'service':'permit','command':'dataset-set','description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':a40_0x4f69aa(0xa0),'confirmationDescription':a40_0x4f69aa(0x83),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x1efd2a){const _0x521b4d=a40_0x4f69aa;assertGrantOrRevoke(_0x1efd2a[_0x521b4d(0x9b)]('grant'),_0x1efd2a[_0x521b4d(0x9b)](_0x521b4d(0x7e)));},async 'dryRun'(_0x4cec75){const _0x5e05ac=a40_0x4f69aa,_0x29d490=await prepare(_0x4cec75);return dryRun(_0x5e05ac(0x77),_0x5e05ac(0x9f))[_0x5e05ac(0xa2)]({'appCode':_0x4cec75[_0x5e05ac(0x79)],'permitList':_0x29d490[_0x5e05ac(0x9c)]})['description'](_0x5e05ac(0x7a)+_0x29d490['operation']+_0x5e05ac(0x89))[_0x5e05ac(0x87)]();},async 'execute'(_0x11d4ac){const _0x1f06ab=a40_0x4f69aa,_0x2ebb96=await prepare(_0x11d4ac);return _0x2ebb96['permitList'][_0x1f06ab(0x8e)]>0x0&&await saveRuntimeDatasetRolePermits(_0x11d4ac[_0x1f06ab(0x79)],_0x2ebb96[_0x1f06ab(0x9c)]),{'ok':!![],'data':runtimePermitWriteResult(_0x1f06ab(0x82)+_0x2ebb96[_0x1f06ab(0xa1)],{'roleId':_0x2ebb96['role']['id'],'datasetCodes':_0x2ebb96[_0x1f06ab(0x96)],'actions':_0x2ebb96[_0x1f06ab(0x91)]},_0x2ebb96[_0x1f06ab(0x74)],_0x2ebb96[_0x1f06ab(0x7f)],{'method':_0x1f06ab(0x77),'path':_0x1f06ab(0x9f)},_0x2ebb96['warnings'])};}};
1
+ const a40_0xb92846=a40_0x1064;(function(_0x28ca9c,_0x1e37d3){const _0x53411b=a40_0x1064,_0x1de2c8=_0x28ca9c();while(!![]){try{const _0x4d543e=-parseInt(_0x53411b(0x116))/0x1+parseInt(_0x53411b(0x136))/0x2+parseInt(_0x53411b(0x13c))/0x3+parseInt(_0x53411b(0x12a))/0x4*(-parseInt(_0x53411b(0x147))/0x5)+-parseInt(_0x53411b(0x144))/0x6+parseInt(_0x53411b(0x14a))/0x7*(parseInt(_0x53411b(0x142))/0x8)+parseInt(_0x53411b(0x13a))/0x9;if(_0x4d543e===_0x1e37d3)break;else _0x1de2c8['push'](_0x1de2c8['shift']());}catch(_0x2196b4){_0x1de2c8['push'](_0x1de2c8['shift']());}}}(a40_0x516b,0xb8f26));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a40_0x1064(_0x436730,_0x4979da){_0x436730=_0x436730-0x113;const _0x516b9f=a40_0x516b();let _0x106460=_0x516b9f[_0x436730];return _0x106460;}const DATA_ACTIONS=[a40_0xb92846(0x146),a40_0xb92846(0x145),a40_0xb92846(0x138),a40_0xb92846(0x113),'DATA_EXPORT',a40_0xb92846(0x13f)],DATASETS_FLAG={'name':'datasets','type':a40_0xb92846(0x121),'required':!![],'description':a40_0xb92846(0x114)},ACTIONS_FLAG={'name':a40_0xb92846(0x120),'type':'string','required':!![],'description':'Comma-separated\x20actions:\x20'+DATA_ACTIONS[a40_0xb92846(0x14b)](',\x20')};function a40_0x516b(){const _0x192c75=['map','Invalid\x20dataset\x20actions:\x20','\x20selected\x20runtime\x20dataset\x20actions','--actions','Runtime\x20dataset\x20','13504zWuYRM','revoke','role','/client/permit/resource/batch-save-dataset','warnings','operation','resourceName','grant','appCode','Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','dataset-set','push','2887626XarsJE','roles','DATA_DELETE','build','3557835IBwfqt','\x20for\x20role\x20','3079818faXvry','bool','\x20does\x20not\x20expose\x20','DATA_ROW','datasets','high-risk-write','9971992BELrGO','body','3028404aNYanF','DATA_UPDATE','DATA_CREATE','2130XFIEbD','\x20was\x20not\x20found.','before','7KiwqAn','join','length','dataPermitList','POST','DATA_DETAIL','Comma-separated\x20runtime\x20dataset\x20codes','Dataset\x20','1411781yIZpLP','\x20already\x20reflects\x20','validation','toUpperCase','permitList','find','after','rolePermit','Grants\x20or\x20revokes\x20the\x20target\x20role\x20permission\x20for\x20the\x20given\x20dataset\x20actions.\x20Data\x20operations\x20for\x20users\x20in\x20that\x20role\x20will\x20change.','Preview:\x20','actions','string','str','permitId','datasetCodes'];a40_0x516b=function(){return _0x192c75;};return a40_0x516b();}async function prepare(_0x174f5d){const _0x278db5=a40_0xb92846;await assertRuntimePermissionManager(_0x174f5d[_0x278db5(0x132)]);const _0xe88616=assertGrantOrRevoke(_0x174f5d[_0x278db5(0x13d)](_0x278db5(0x131)),_0x174f5d[_0x278db5(0x13d)]('revoke')),_0x51f34f=await resolveRuntimeRoleRef(_0x174f5d['appCode'],_0x174f5d[_0x278db5(0x122)](_0x278db5(0x12c)));assertRuntimePermitRoleConfigurable(_0x51f34f);const _0x46915e=splitRefs(_0x174f5d['str'](_0x278db5(0x140)),'--datasets'),_0x431d99=[...new Set(splitRefs(_0x174f5d[_0x278db5(0x122)]('actions'),_0x278db5(0x128))[_0x278db5(0x125)](_0x423928=>_0x423928[_0x278db5(0x119)]()))],_0x102e3a=_0x431d99['filter'](_0x40ca73=>!DATA_ACTIONS['includes'](_0x40ca73));if(_0x102e3a['length']>0x0)throw CliErrors[_0x278db5(0x118)](_0x278db5(0x126)+_0x102e3a[_0x278db5(0x14b)](',\x20')+'.');const _0x2071ff=await listRuntimeDatasetRolePermits(_0x174f5d[_0x278db5(0x132)]),_0x48dd3b=await listRuntimePermitRoles(_0x174f5d[_0x278db5(0x132)]),_0x176b2d=[],_0x7a92c3=[],_0x5ddb93=[],_0x4e2f32=[];for(const _0x4fa4b0 of _0x46915e){const _0x506c3a=_0x2071ff[_0x278db5(0x11b)](_0x21dd6c=>_0x21dd6c['datasetCode']===_0x4fa4b0);if(!_0x506c3a)throw CliErrors[_0x278db5(0x118)](_0x278db5(0x129)+_0x4fa4b0+_0x278db5(0x148));for(const _0x19e89e of _0x431d99){const _0x436f92=_0x506c3a[_0x278db5(0x14d)][_0x278db5(0x11b)](_0x4f8d3e=>_0x4f8d3e['resourceType']===_0x19e89e);if(!_0x436f92)throw CliErrors[_0x278db5(0x118)](_0x278db5(0x115)+_0x4fa4b0+_0x278db5(0x13e)+_0x19e89e+'.');const _0x4940f5=applyRuntimeRolePermission(_0x436f92[_0x278db5(0x11d)],_0x51f34f,_0x48dd3b,_0xe88616);_0x7a92c3[_0x278db5(0x135)]({'datasetCode':_0x4fa4b0,'resourceType':_0x19e89e,'rolePermit':_0x436f92['rolePermit']}),_0x5ddb93[_0x278db5(0x135)]({'datasetCode':_0x4fa4b0,'resourceType':_0x19e89e,'rolePermit':_0x4940f5['roles']}),_0x4940f5['changed']?_0x176b2d[_0x278db5(0x135)]({..._0x436f92['permitId']!=null?{'id':_0x436f92[_0x278db5(0x123)]}:{},'appCode':_0x174f5d[_0x278db5(0x132)],'resourceCode':_0x4fa4b0,'resourceType':_0x19e89e,'resourceName':_0x436f92[_0x278db5(0x130)],'rolePermit':_0x4940f5[_0x278db5(0x137)]}):_0x4e2f32[_0x278db5(0x135)](_0x4fa4b0+'/'+_0x19e89e+_0x278db5(0x117)+_0xe88616+_0x278db5(0x13b)+_0x51f34f['id']+'.');}}return{'operation':_0xe88616,'role':_0x51f34f,'datasetCodes':_0x46915e,'actions':_0x431d99,'permitList':_0x176b2d,'before':_0x7a92c3,'after':_0x5ddb93,'warnings':_0x4e2f32};}export const permitDatasetSet={'service':'permit','command':a40_0xb92846(0x134),'description':a40_0xb92846(0x133),'risk':a40_0xb92846(0x141),'confirmationDescription':a40_0xb92846(0x11e),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x4a109e){const _0x16a01b=a40_0xb92846;assertGrantOrRevoke(_0x4a109e[_0x16a01b(0x13d)]('grant'),_0x4a109e[_0x16a01b(0x13d)](_0x16a01b(0x12b)));},async 'dryRun'(_0xfa59b6){const _0x324712=a40_0xb92846,_0x56a310=await prepare(_0xfa59b6);return dryRun(_0x324712(0x14e),'/client/permit/resource/batch-save-dataset')[_0x324712(0x143)]({'appCode':_0xfa59b6[_0x324712(0x132)],'permitList':_0x56a310[_0x324712(0x11a)]})['description'](_0x324712(0x11f)+_0x56a310[_0x324712(0x12f)]+_0x324712(0x127))[_0x324712(0x139)]();},async 'execute'(_0x55a96d){const _0x5e5711=a40_0xb92846,_0x8cede8=await prepare(_0x55a96d);return _0x8cede8[_0x5e5711(0x11a)][_0x5e5711(0x14c)]>0x0&&await saveRuntimeDatasetRolePermits(_0x55a96d[_0x5e5711(0x132)],_0x8cede8[_0x5e5711(0x11a)]),{'ok':!![],'data':runtimePermitWriteResult('dataset-'+_0x8cede8['operation'],{'roleId':_0x8cede8['role']['id'],'datasetCodes':_0x8cede8[_0x5e5711(0x124)],'actions':_0x8cede8['actions']},_0x8cede8[_0x5e5711(0x149)],_0x8cede8[_0x5e5711(0x11c)],{'method':_0x5e5711(0x14e),'path':_0x5e5711(0x12d)},_0x8cede8[_0x5e5711(0x12e)])};}};
@@ -1 +1 @@
1
- (function(_0x22b3f7,_0x161429){const _0x4ee302=a41_0x3ab4,_0x449b0d=_0x22b3f7();while(!![]){try{const _0x343c6e=parseInt(_0x4ee302(0xc9))/0x1*(-parseInt(_0x4ee302(0xca))/0x2)+-parseInt(_0x4ee302(0xcf))/0x3+parseInt(_0x4ee302(0xce))/0x4+parseInt(_0x4ee302(0xcc))/0x5+-parseInt(_0x4ee302(0xd0))/0x6+parseInt(_0x4ee302(0xcd))/0x7+-parseInt(_0x4ee302(0xcb))/0x8;if(_0x343c6e===_0x161429)break;else _0x449b0d['push'](_0x449b0d['shift']());}catch(_0x52f421){_0x449b0d['push'](_0x449b0d['shift']());}}}(a41_0x3703,0x45a37));function a41_0x3ab4(_0x460b6b,_0x485204){_0x460b6b=_0x460b6b-0xc9;const _0x370311=a41_0x3703();let _0x3ab4ef=_0x370311[_0x460b6b];return _0x3ab4ef;}import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];function a41_0x3703(){const _0x158c02=['1017894NQcHMj','13260cENUJC','2RHxjhp','35798yHSUaK','700616vIQdKx','2433855tvPKmY','1435875iSPCsm','232904RcAcfT'];a41_0x3703=function(){return _0x158c02;};return a41_0x3703();}
1
+ (function(_0x25950a,_0x5ea1ca){const _0x383b7e=a41_0x2a69,_0x56f6e2=_0x25950a();while(!![]){try{const _0x3ebaa6=-parseInt(_0x383b7e(0xc5))/0x1*(parseInt(_0x383b7e(0xc6))/0x2)+-parseInt(_0x383b7e(0xc1))/0x3+parseInt(_0x383b7e(0xc7))/0x4+-parseInt(_0x383b7e(0xbf))/0x5+parseInt(_0x383b7e(0xc3))/0x6*(-parseInt(_0x383b7e(0xc0))/0x7)+-parseInt(_0x383b7e(0xbe))/0x8+-parseInt(_0x383b7e(0xc4))/0x9*(-parseInt(_0x383b7e(0xc2))/0xa);if(_0x3ebaa6===_0x5ea1ca)break;else _0x56f6e2['push'](_0x56f6e2['shift']());}catch(_0x1cfb0b){_0x56f6e2['push'](_0x56f6e2['shift']());}}}(a41_0x3b34,0x9e64e));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';function a41_0x2a69(_0x829761,_0x2065f1){_0x829761=_0x829761-0xbe;const _0x3b3447=a41_0x3b34();let _0x2a69ce=_0x3b3447[_0x829761];return _0x2a69ce;}import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';function a41_0x3b34(){const _0x171adb=['8vMwdPH','5157260XaSIEH','6835720MAPUhI','320455ZBZZsm','369747ERPNYr','274554LATBXQ','431620AIbPQX','6zKMzzE','225ZZdGEV','164172blQzCi'];a41_0x3b34=function(){return _0x171adb;};return a41_0x3b34();}import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
@@ -1 +1 @@
1
- const a42_0x56ef84=a42_0x464c;(function(_0x490594,_0x1cf71e){const _0x5c1873=a42_0x464c,_0x246fe6=_0x490594();while(!![]){try{const _0xfd15a1=parseInt(_0x5c1873(0x1c5))/0x1*(-parseInt(_0x5c1873(0x1c7))/0x2)+parseInt(_0x5c1873(0x1cf))/0x3*(-parseInt(_0x5c1873(0x1cb))/0x4)+parseInt(_0x5c1873(0x1c8))/0x5*(parseInt(_0x5c1873(0x1d3))/0x6)+parseInt(_0x5c1873(0x1c6))/0x7*(-parseInt(_0x5c1873(0x1ca))/0x8)+-parseInt(_0x5c1873(0x1cd))/0x9+-parseInt(_0x5c1873(0x1d5))/0xa+parseInt(_0x5c1873(0x1d1))/0xb*(parseInt(_0x5c1873(0x1cc))/0xc);if(_0xfd15a1===_0x1cf71e)break;else _0x246fe6['push'](_0x246fe6['shift']());}catch(_0x20ae45){_0x246fe6['push'](_0x246fe6['shift']());}}}(a42_0x350e,0x9728f));import{getRuntimePagePermit}from'../../core/api-client.js';function a42_0x464c(_0x119945,_0x64d04){_0x119945=_0x119945-0x1c5;const _0x350e85=a42_0x350e();let _0x464cc2=_0x350e85[_0x119945];return _0x464cc2;}import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x56ef84(0x1c9),'command':a42_0x56ef84(0x1ce),'description':a42_0x56ef84(0x1d0),'risk':a42_0x56ef84(0x1d4),'flags':[MENU_ID_FLAG],async 'execute'(_0x155c74){const _0x1af764=a42_0x56ef84,_0x2159e9=await getRuntimePagePermit(_0x155c74['num'](_0x1af764(0x1d2)));return{'ok':!![],'data':{'scope':'runtime','page':projectRuntimePagePermit(_0x2159e9)}};}};function a42_0x350e(){const _0x13c909=['6283398bJNfRx','read','7051380xpMBhw','3IjYISw','21WJoSUc','9400oFNXJR','5NPeBQx','permit','1708808YwmlOV','4628400gvHLbk','168WsREhE','4270455pEjWwp','page-get','3pBsETj','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','2014221bFXWho','menu-id'];a42_0x350e=function(){return _0x13c909;};return a42_0x350e();}
1
+ const a42_0x3f4249=a42_0x3f0e;function a42_0x3f0e(_0x275e0d,_0x47c264){_0x275e0d=_0x275e0d-0xa0;const _0x3beba2=a42_0x3beb();let _0x3f0ed6=_0x3beba2[_0x275e0d];return _0x3f0ed6;}(function(_0x55274e,_0x5383fa){const _0x2c89fd=a42_0x3f0e,_0x18610f=_0x55274e();while(!![]){try{const _0x2f931b=parseInt(_0x2c89fd(0xa2))/0x1+parseInt(_0x2c89fd(0xae))/0x2*(-parseInt(_0x2c89fd(0xa6))/0x3)+parseInt(_0x2c89fd(0xa5))/0x4+parseInt(_0x2c89fd(0xa9))/0x5*(-parseInt(_0x2c89fd(0xa4))/0x6)+parseInt(_0x2c89fd(0xac))/0x7*(parseInt(_0x2c89fd(0xa0))/0x8)+parseInt(_0x2c89fd(0xa8))/0x9+-parseInt(_0x2c89fd(0xa3))/0xa;if(_0x2f931b===_0x5383fa)break;else _0x18610f['push'](_0x18610f['shift']());}catch(_0xfe7504){_0x18610f['push'](_0x18610f['shift']());}}}(a42_0x3beb,0x1f5c7));function a42_0x3beb(){const _0x55ca4b=['runtime','13237iZNYGp','num','3826AKnuPl','392bYXTOH','Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','228403nhGUFZ','2087490jJuqaK','150NpEsiF','642916JoRvRU','159YdJkkB','permit','1821168NRnZNd','49110sAazXG','page-get'];a42_0x3beb=function(){return _0x55ca4b;};return a42_0x3beb();}import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a42_0x3f4249(0xa7),'command':a42_0x3f4249(0xaa),'description':a42_0x3f4249(0xa1),'risk':'read','flags':[MENU_ID_FLAG],async 'execute'(_0x42aefe){const _0x4f6397=a42_0x3f4249,_0x1238ee=await getRuntimePagePermit(_0x42aefe[_0x4f6397(0xad)]('menu-id'));return{'ok':!![],'data':{'scope':_0x4f6397(0xab),'page':projectRuntimePagePermit(_0x1238ee)}};}};