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

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 (190) hide show
  1. package/README.md +12 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.d.ts +3 -0
  38. package/lib/commands/issue/context.js +1 -0
  39. package/lib/commands/issue/index.d.ts +2 -0
  40. package/lib/commands/issue/index.js +1 -0
  41. package/lib/commands/issue/report.d.ts +2 -0
  42. package/lib/commands/issue/report.js +1 -0
  43. package/lib/commands/kb/index.js +1 -1
  44. package/lib/commands/logs/index.js +1 -1
  45. package/lib/commands/notification/config-list.js +1 -1
  46. package/lib/commands/notification/index.js +1 -1
  47. package/lib/commands/notification/shared.js +1 -1
  48. package/lib/commands/ocr/index.js +1 -1
  49. package/lib/commands/permit/dataset-get.js +1 -1
  50. package/lib/commands/permit/dataset-set.js +1 -1
  51. package/lib/commands/permit/index.js +1 -1
  52. package/lib/commands/permit/page-get.js +1 -1
  53. package/lib/commands/permit/page-set.js +1 -1
  54. package/lib/commands/permit/role-menus-set.js +1 -1
  55. package/lib/commands/permit/role-menus.js +1 -1
  56. package/lib/commands/permit/shared.js +1 -1
  57. package/lib/commands/personal-bff/index.js +1 -1
  58. package/lib/commands/registry.js +1 -1
  59. package/lib/commands/role/create.js +1 -1
  60. package/lib/commands/role/delete.js +1 -1
  61. package/lib/commands/role/detail.js +1 -1
  62. package/lib/commands/role/index.js +1 -1
  63. package/lib/commands/role/list.js +1 -1
  64. package/lib/commands/role/shared.js +1 -1
  65. package/lib/commands/role/update.js +1 -1
  66. package/lib/commands/role/user-add.js +1 -1
  67. package/lib/commands/role/user-remove.js +1 -1
  68. package/lib/commands/schedule/index.js +1 -1
  69. package/lib/commands/schema.js +1 -1
  70. package/lib/commands/service/dynamic.js +1 -1
  71. package/lib/commands/service/function-name-adapter.js +1 -1
  72. package/lib/commands/service/index.js +1 -1
  73. package/lib/commands/service/registry.js +1 -1
  74. package/lib/commands/skill/commands/create.js +1 -1
  75. package/lib/commands/skill/commands/diagram.js +1 -1
  76. package/lib/commands/skill/commands/install.js +1 -1
  77. package/lib/commands/skill/commands/list.js +1 -1
  78. package/lib/commands/skill/commands/push.js +1 -1
  79. package/lib/commands/skill/commands/validate.js +1 -1
  80. package/lib/commands/skill/diagram.js +1 -1
  81. package/lib/commands/skill/flags.js +1 -1
  82. package/lib/commands/skill/index.js +1 -1
  83. package/lib/commands/skill/manifest-helpers.js +1 -1
  84. package/lib/commands/skill/push-execute.js +1 -1
  85. package/lib/commands/skill/push-flow-helpers.js +1 -1
  86. package/lib/commands/skill/push-retarget.js +1 -1
  87. package/lib/commands/skill/scopes.js +1 -1
  88. package/lib/commands/skill/summary.js +1 -1
  89. package/lib/commands/skill/templates.js +1 -1
  90. package/lib/commands/skill/validate.js +1 -1
  91. package/lib/commands/sql/detail.js +1 -1
  92. package/lib/commands/sql/exec.js +1 -1
  93. package/lib/commands/sql/index.js +1 -1
  94. package/lib/commands/update.js +1 -1
  95. package/lib/commands/user-account/bind.js +1 -1
  96. package/lib/commands/user-account/index.js +1 -1
  97. package/lib/commands/workspace/index.js +1 -1
  98. package/lib/config/domain-config.js +1 -1
  99. package/lib/config/schema.js +1 -1
  100. package/lib/constant/app.js +1 -1
  101. package/lib/constant/auth-mode.js +1 -1
  102. package/lib/constant/cli.js +1 -1
  103. package/lib/constant/defaults.js +1 -1
  104. package/lib/constant/distribution.js +1 -1
  105. package/lib/constant/domain.js +1 -1
  106. package/lib/constant/env.js +1 -1
  107. package/lib/constant/output.js +1 -1
  108. package/lib/constant/product.js +1 -1
  109. package/lib/constant/region.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.js +1 -1
  112. package/lib/context.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/kb-management-client.js +1 -1
  116. package/lib/core/kb-sdk-errors.js +1 -1
  117. package/lib/core/kb-search-client.js +1 -1
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/access-error.js +1 -1
  121. package/lib/framework/build-all-flags.js +1 -1
  122. package/lib/framework/dryrun.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/preparse.js +1 -1
  128. package/lib/framework/rate-limit.js +1 -1
  129. package/lib/framework/raw-flags.js +1 -1
  130. package/lib/framework/response.js +1 -1
  131. package/lib/framework/runner-confirmation.js +1 -1
  132. package/lib/framework/runner-error.js +1 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/generated/official-routing.js +1 -1
  140. package/lib/generated/routing-contract.js +1 -1
  141. package/lib/help.js +1 -1
  142. package/lib/postinstall.js +1 -1
  143. package/lib/runtime/confirmation.js +1 -1
  144. package/lib/runtime/event.js +1 -1
  145. package/lib/runtime/index.js +1 -1
  146. package/lib/runtime/queue.js +1 -1
  147. package/lib/runtime/resolve.js +1 -1
  148. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  149. package/lib/services/dataset-import/excel-reader.js +1 -1
  150. package/lib/services/dataset-import/image-bytes.js +1 -1
  151. package/lib/services/dataset-import/image-ooxml.js +1 -1
  152. package/lib/services/dataset-import/image-runner.js +1 -1
  153. package/lib/services/dataset-import/metadata.js +1 -1
  154. package/lib/services/dataset-import/preview.js +1 -1
  155. package/lib/services/dataset-import/runner.js +1 -1
  156. package/lib/skills/builtin-skill.js +1 -1
  157. package/lib/skills/npx-skills-add.js +1 -1
  158. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  159. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  160. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  161. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  162. package/lib/skills/runtime-skill-sync/links.js +1 -1
  163. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  164. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  165. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  166. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  167. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  168. package/lib/skills/runtime-skill-sync/push.js +1 -1
  169. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  170. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  171. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  172. package/lib/skills/runtime-skill-sync.js +1 -1
  173. package/lib/skills/skill-presence.js +1 -1
  174. package/lib/utils/access-key-redaction.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cli-version-check.js +1 -1
  177. package/lib/utils/cli-version-policy.js +1 -1
  178. package/lib/utils/logger.js +1 -1
  179. package/lib/utils/lossless-json.js +1 -1
  180. package/lib/utils/params.js +1 -1
  181. package/lib/utils/positive-safe-integer.js +1 -1
  182. package/lib/utils/redaction.js +1 -1
  183. package/lib/utils/runtime-user-id.js +1 -1
  184. package/lib/utils/update-notice.js +1 -1
  185. package/lib/utils/version.js +1 -1
  186. package/lib/utils/write-cli-side-channel.js +1 -1
  187. package/package.json +2 -2
  188. package/skills/lovrabet/SKILL.md +3 -1
  189. package/skills/lovrabet/references/lovrabet-issue-report.md +24 -0
  190. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- const a27_0x2ca052=a27_0x59e8;(function(_0x3c0286,_0x35273d){const _0x4dc5f2=a27_0x59e8,_0x59c984=_0x3c0286();while(!![]){try{const _0x1140fb=-parseInt(_0x4dc5f2(0x197))/0x1+parseInt(_0x4dc5f2(0x1dd))/0x2+parseInt(_0x4dc5f2(0x1e0))/0x3+-parseInt(_0x4dc5f2(0x194))/0x4*(parseInt(_0x4dc5f2(0x1aa))/0x5)+-parseInt(_0x4dc5f2(0x1a6))/0x6*(parseInt(_0x4dc5f2(0x1be))/0x7)+-parseInt(_0x4dc5f2(0x1af))/0x8*(parseInt(_0x4dc5f2(0x1a0))/0x9)+parseInt(_0x4dc5f2(0x195))/0xa;if(_0x1140fb===_0x35273d)break;else _0x59c984['push'](_0x59c984['shift']());}catch(_0x25b1ba){_0x59c984['push'](_0x59c984['shift']());}}}(a27_0x5953,0x88964));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x2ca052(0x1e1),'operation':'filter','risk':a27_0x2ca052(0x196),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x2ca052(0x1b4)+a27_0x2ca052(0x18c),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a27_0x2ca052(0x1cf),a27_0x2ca052(0x18f),a27_0x2ca052(0x1d5),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a27_0x2ca052(0x1d1),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a27_0x2ca052(0x1c6),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a27_0x2ca052(0x1c9),'',a27_0x2ca052(0x17b),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a27_0x2ca052(0x1ce),'',a27_0x2ca052(0x1cd),a27_0x2ca052(0x18d),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a27_0x2ca052(0x1df),a27_0x2ca052(0x1dc),'',a27_0x2ca052(0x1d9),a27_0x2ca052(0x19e),a27_0x2ca052(0x1c3),a27_0x2ca052(0x1bc),a27_0x2ca052(0x1b5),'\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27',a27_0x2ca052(0x1a7),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.']['join']('\x0a')},{'command':'getOne','operation':'getOne','risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a27_0x2ca052(0x17d)},{'command':a27_0x2ca052(0x19a),'operation':a27_0x2ca052(0x19a),'risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x1b8),'confirmationDescription':a27_0x2ca052(0x1ba),'paramsHint':a27_0x2ca052(0x193)},{'command':a27_0x2ca052(0x18a),'operation':a27_0x2ca052(0x18a),'risk':a27_0x2ca052(0x186),'paramsRequired':!![],'description':a27_0x2ca052(0x1a1),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x2ca052(0x1b3),a27_0x2ca052(0x17a),a27_0x2ca052(0x1e5),a27_0x2ca052(0x190),a27_0x2ca052(0x1b0),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.',a27_0x2ca052(0x1c2),a27_0x2ca052(0x1c5),a27_0x2ca052(0x1ad),a27_0x2ca052(0x1de)][a27_0x2ca052(0x1db)]('\x0a'),'confirmationDescription':a27_0x2ca052(0x1b6),'paramsHint':a27_0x2ca052(0x1ab)},{'command':'update','operation':'update','risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x19f),'confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x2ca052(0x1e3)+a27_0x2ca052(0x189)},{'command':a27_0x2ca052(0x1c0),'operation':a27_0x2ca052(0x1c0),'risk':'high-risk-write','paramsRequired':!![],'description':a27_0x2ca052(0x181),'confirmationDescription':a27_0x2ca052(0x1b1),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x2ca052(0x17e),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a27_0x2ca052(0x1b9),'paramsHint':a27_0x2ca052(0x1a4)+a27_0x2ca052(0x1c8),'helpExtra':[a27_0x2ca052(0x19b),a27_0x2ca052(0x1d6),a27_0x2ca052(0x1cb),a27_0x2ca052(0x184),a27_0x2ca052(0x1c4),a27_0x2ca052(0x17f),a27_0x2ca052(0x1e2),a27_0x2ca052(0x182),'','\x20\x20PARAMS\x20STRUCTURE',a27_0x2ca052(0x1d4),a27_0x2ca052(0x17c),a27_0x2ca052(0x1b7),a27_0x2ca052(0x1e7),a27_0x2ca052(0x1cc),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a27_0x2ca052(0x1da),a27_0x2ca052(0x1a8),a27_0x2ca052(0x1a3),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','','\x20\x20DATASET\x20BOUNDARY',a27_0x2ca052(0x198),a27_0x2ca052(0x1e8),a27_0x2ca052(0x185),a27_0x2ca052(0x1e4),'',a27_0x2ca052(0x1a5),a27_0x2ca052(0x188),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a27_0x2ca052(0x1ae),a27_0x2ca052(0x1c1),'',a27_0x2ca052(0x187)][a27_0x2ca052(0x1db)]('\x0a')}];function makeDataCommand(_0x574c78){const _0x540d77=a27_0x2ca052,_0x64d32=_0x540d77(0x183)+_0x574c78[_0x540d77(0x1ac)],_0x526292={'service':_0x540d77(0x1bf),'command':_0x574c78[_0x540d77(0x1ac)],'description':_0x574c78['description'],'risk':_0x574c78[_0x540d77(0x199)],..._0x574c78['confirmationDescription']?{'confirmationDescription':_0x574c78[_0x540d77(0x1d7)]}:{},'helpExtra':_0x574c78[_0x540d77(0x1d2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x574c78['paramsHint']}],'validate':async _0x2b48bc=>{const _0x1fb209=_0x540d77;_0x574c78[_0x1fb209(0x1bd)]&&requireAnyOf(_0x2b48bc,[_0x1fb209(0x1e6)],_0x64d32),_0x574c78[_0x1fb209(0x1bb)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2b48bc[_0x1fb209(0x191)](_0x1fb209(0x1e6)))),_0x574c78['operation']===_0x1fb209(0x1d0)&&parseUpdateIdsFromParams(parseJsonParams(_0x2b48bc['str'](_0x1fb209(0x1e6)))??{});},async 'execute'(_0x1c38ab){const _0x5ce75c=_0x540d77,_0x8ab5d0=_0x1c38ab[_0x5ce75c(0x191)]('code'),_0x48ebea=_0x574c78[_0x5ce75c(0x1bb)]===_0x5ce75c(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1c38ab['str'](_0x5ce75c(0x1e6)))):parseJsonParams(_0x1c38ab[_0x5ce75c(0x191)](_0x5ce75c(0x1e6)))??{},_0x40b603=_0x574c78[_0x5ce75c(0x1bb)]==='update'?parseUpdateIdsFromParams(_0x48ebea):undefined,_0x581708=_0x40b603?normalizeUpdateParamsForRuntime(_0x48ebea,_0x40b603):_0x48ebea,_0x28eba9=Date[_0x5ce75c(0x192)](),_0x43ca18=await executeData(_0x8ab5d0,_0x574c78[_0x5ce75c(0x1bb)],_0x581708),_0xcfd093=Date[_0x5ce75c(0x192)]()-_0x28eba9,_0x2b9250=_0x40b603&&_0x40b603[_0x5ce75c(0x1b2)]>0x1?buildBatchUpdateResult(_0x40b603,_0x43ca18):_0x43ca18;return{'ok':!![],'data':{'result':_0x2b9250,'elapsed':_0xcfd093},'message':_0x5ce75c(0x183)+_0x574c78[_0x5ce75c(0x1ac)]+_0x5ce75c(0x1c7)+_0xcfd093+'ms'};}};return _0x574c78['risk']!==_0x540d77(0x196)&&(_0x526292[_0x540d77(0x1ca)]=async _0x5e6b93=>{const _0x317a57=_0x540d77,_0x3a6f23=_0x5e6b93['str'](_0x317a57(0x1a9)),_0x2d4010=_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5e6b93[_0x317a57(0x191)](_0x317a57(0x1e6)))):parseJsonParams(_0x5e6b93[_0x317a57(0x191)]('params'))??{};let _0x3c2588=_0x2d4010;if(_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x1d0)){const _0x529eeb=parseUpdateIdsFromParams(_0x2d4010);_0x3c2588=normalizeUpdateParamsForRuntime(_0x2d4010,_0x529eeb);}return dryRun(_0x317a57(0x18e),_0x317a57(0x19c)+_0x3a6f23+'/'+_0x574c78[_0x317a57(0x1bb)])['body'](_0x3c2588)[_0x317a57(0x1a2)](_0x317a57(0x19d)+_0x574c78[_0x317a57(0x1ac)]+_0x317a57(0x1d8)+_0x3a6f23)[_0x317a57(0x18b)]();}),_0x526292;}export const dataDefinitions=[...specs[a27_0x2ca052(0x1d3)](makeDataCommand),dataImportExcel];function a27_0x5953(){const _0x242501=['Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','length','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Create\x20one\x20record\x20in\x20the\x20dataset','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','operation','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','paramsRequired','91UtBbUS','data','delete','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20completed\x20in\x20','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','dryRun','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','update','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','helpExtra','map','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','confirmationDescription','\x20on\x20dataset\x20','\x20\x20PAGINATION','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','join','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','632586BFtetL','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','3320148zuhpaD','filter','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','params','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','aggregate','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','batch','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','write','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','batchCreate','build','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','str','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','392hwdRFE','4676550irCirz','read','396280xVnpER','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','risk','create','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','Preview:\x20data\x20','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Update\x20an\x20existing\x20data\x20record','1315044IzgJUb','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','description','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20EXAMPLES','93408TmToBM','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','code','100lQZqvV','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','command','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','40JVAMHz','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.'];a27_0x5953=function(){return _0x242501;};return a27_0x5953();}function a27_0x59e8(_0x1c4aca,_0x2ff767){_0x1c4aca=_0x1c4aca-0x17a;const _0x5953ad=a27_0x5953();let _0x59e8a0=_0x5953ad[_0x1c4aca];return _0x59e8a0;}function buildBatchUpdateResult(_0x3de900,_0x37ce76){const _0x47e22=a27_0x2ca052;return{'operation':_0x47e22(0x1d0),'mode':_0x47e22(0x180),'ids':_0x3de900,'total':_0x3de900[_0x47e22(0x1b2)],'result':_0x37ce76};}
1
+ const a27_0x4efb44=a27_0x2f75;(function(_0x30a401,_0x8eec59){const _0x50e84c=a27_0x2f75,_0x526c75=_0x30a401();while(!![]){try{const _0xb85f78=-parseInt(_0x50e84c(0x1a1))/0x1*(parseInt(_0x50e84c(0x17b))/0x2)+-parseInt(_0x50e84c(0x179))/0x3*(-parseInt(_0x50e84c(0x163))/0x4)+-parseInt(_0x50e84c(0x194))/0x5*(-parseInt(_0x50e84c(0x183))/0x6)+-parseInt(_0x50e84c(0x189))/0x7*(-parseInt(_0x50e84c(0x1bb))/0x8)+-parseInt(_0x50e84c(0x17c))/0x9+parseInt(_0x50e84c(0x195))/0xa*(parseInt(_0x50e84c(0x1b4))/0xb)+parseInt(_0x50e84c(0x15c))/0xc*(-parseInt(_0x50e84c(0x1c0))/0xd);if(_0xb85f78===_0x8eec59)break;else _0x526c75['push'](_0x526c75['shift']());}catch(_0x5266a4){_0x526c75['push'](_0x526c75['shift']());}}}(a27_0x2e43,0xb743f));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x4efb44(0x15f),'operation':a27_0x4efb44(0x15f),'risk':a27_0x4efb44(0x15a),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x4efb44(0x1a9)+a27_0x4efb44(0x19d),'helpExtra':[a27_0x4efb44(0x1be),a27_0x4efb44(0x167),a27_0x4efb44(0x1a4),a27_0x4efb44(0x17d),a27_0x4efb44(0x1b9),a27_0x4efb44(0x15d),a27_0x4efb44(0x190),a27_0x4efb44(0x174),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a27_0x4efb44(0x1a0),'',a27_0x4efb44(0x162),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a27_0x4efb44(0x1b7),a27_0x4efb44(0x187),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a27_0x4efb44(0x1b0),a27_0x4efb44(0x1a5),'',a27_0x4efb44(0x1b5),a27_0x4efb44(0x18a),a27_0x4efb44(0x1a2),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a27_0x4efb44(0x18e),a27_0x4efb44(0x186),'\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x4efb44(0x16e)]('\x0a')},{'command':a27_0x4efb44(0x164),'operation':a27_0x4efb44(0x164),'risk':a27_0x4efb44(0x15a),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a27_0x4efb44(0x1a8)},{'command':a27_0x4efb44(0x172),'operation':a27_0x4efb44(0x172),'risk':a27_0x4efb44(0x1a6),'paramsRequired':!![],'description':a27_0x4efb44(0x1ba),'confirmationDescription':a27_0x4efb44(0x153),'paramsHint':a27_0x4efb44(0x19e)},{'command':a27_0x4efb44(0x196),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','helpExtra':[a27_0x4efb44(0x1b3),a27_0x4efb44(0x156),a27_0x4efb44(0x178),a27_0x4efb44(0x1ad),a27_0x4efb44(0x173),a27_0x4efb44(0x158),a27_0x4efb44(0x182),a27_0x4efb44(0x19f),a27_0x4efb44(0x18f),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x4efb44(0x1bd)][a27_0x4efb44(0x16e)]('\x0a'),'confirmationDescription':'Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x4efb44(0x165)},{'command':a27_0x4efb44(0x1ae),'operation':a27_0x4efb44(0x1ae),'risk':a27_0x4efb44(0x1a6),'paramsRequired':!![],'description':a27_0x4efb44(0x1ab),'confirmationDescription':a27_0x4efb44(0x16c),'paramsHint':a27_0x4efb44(0x171)+a27_0x4efb44(0x155)},{'command':a27_0x4efb44(0x188),'operation':a27_0x4efb44(0x188),'risk':a27_0x4efb44(0x154),'paramsRequired':!![],'description':a27_0x4efb44(0x1bf),'confirmationDescription':a27_0x4efb44(0x181),'paramsHint':a27_0x4efb44(0x1a8)},{'command':'aggregate','operation':a27_0x4efb44(0x16b),'risk':a27_0x4efb44(0x15a),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a27_0x4efb44(0x17e),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a27_0x4efb44(0x1aa),a27_0x4efb44(0x19c),a27_0x4efb44(0x185),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a27_0x4efb44(0x192),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a27_0x4efb44(0x175),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x4efb44(0x1b8),a27_0x4efb44(0x1ac),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x4efb44(0x180),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a27_0x4efb44(0x198),a27_0x4efb44(0x19b),a27_0x4efb44(0x169),a27_0x4efb44(0x159),'',a27_0x4efb44(0x1a7),a27_0x4efb44(0x18c),a27_0x4efb44(0x160),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x4efb44(0x1b6),a27_0x4efb44(0x168),a27_0x4efb44(0x170),'',a27_0x4efb44(0x1bc),a27_0x4efb44(0x193),'',a27_0x4efb44(0x176)]['join']('\x0a')}];function makeDataCommand(_0x57d9ba){const _0x3a83c4=a27_0x4efb44,_0x268c84='data\x20'+_0x57d9ba[_0x3a83c4(0x184)],_0x5bde13={'service':_0x3a83c4(0x199),'command':_0x57d9ba[_0x3a83c4(0x184)],'description':_0x57d9ba[_0x3a83c4(0x15e)],'risk':_0x57d9ba[_0x3a83c4(0x15b)],..._0x57d9ba[_0x3a83c4(0x166)]?{'confirmationDescription':_0x57d9ba[_0x3a83c4(0x166)]}:{},'helpExtra':_0x57d9ba[_0x3a83c4(0x197)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x57d9ba['paramsHint']}],'validate':async _0x4c4404=>{const _0x21ecb3=_0x3a83c4;_0x57d9ba[_0x21ecb3(0x19a)]&&requireAnyOf(_0x4c4404,[_0x21ecb3(0x17f)],_0x268c84),_0x57d9ba[_0x21ecb3(0x157)]===_0x21ecb3(0x196)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4c4404[_0x21ecb3(0x16d)](_0x21ecb3(0x17f)))),_0x57d9ba[_0x21ecb3(0x157)]===_0x21ecb3(0x1ae)&&parseUpdateIdsFromParams(parseJsonParams(_0x4c4404[_0x21ecb3(0x16d)](_0x21ecb3(0x17f)))??{});},async 'execute'(_0x10630d){const _0x16b607=_0x3a83c4,_0xf373a1=_0x10630d[_0x16b607(0x16d)](_0x16b607(0x18b)),_0x43d239=_0x57d9ba[_0x16b607(0x157)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x10630d['str'](_0x16b607(0x17f)))):parseJsonParams(_0x10630d[_0x16b607(0x16d)]('params'))??{},_0x12d473=_0x57d9ba[_0x16b607(0x157)]===_0x16b607(0x1ae)?parseUpdateIdsFromParams(_0x43d239):undefined,_0x3b842d=_0x12d473?normalizeUpdateParamsForRuntime(_0x43d239,_0x12d473):_0x43d239,_0x2a288a=Date['now'](),_0x47d35f=await executeData(_0xf373a1,_0x57d9ba[_0x16b607(0x157)],_0x3b842d),_0x4f1b5d=Date[_0x16b607(0x17a)]()-_0x2a288a,_0x4b9049=_0x12d473&&_0x12d473['length']>0x1?buildBatchUpdateResult(_0x12d473,_0x47d35f):_0x47d35f;return{'ok':!![],'data':{'result':_0x4b9049,'elapsed':_0x4f1b5d},'message':'data\x20'+_0x57d9ba[_0x16b607(0x184)]+_0x16b607(0x191)+_0x4f1b5d+'ms'};}};return _0x57d9ba[_0x3a83c4(0x15b)]!==_0x3a83c4(0x15a)&&(_0x5bde13[_0x3a83c4(0x18d)]=async _0x383150=>{const _0x4b31ac=_0x3a83c4,_0x2c1f11=_0x383150['str'](_0x4b31ac(0x18b)),_0x32110b=_0x57d9ba['operation']===_0x4b31ac(0x196)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x383150['str'](_0x4b31ac(0x17f)))):parseJsonParams(_0x383150[_0x4b31ac(0x16d)]('params'))??{};let _0x3b80d3=_0x32110b;if(_0x57d9ba['operation']===_0x4b31ac(0x1ae)){const _0x58ae0e=parseUpdateIdsFromParams(_0x32110b);_0x3b80d3=normalizeUpdateParamsForRuntime(_0x32110b,_0x58ae0e);}return dryRun(_0x4b31ac(0x1af),_0x4b31ac(0x1a3)+_0x2c1f11+'/'+_0x57d9ba[_0x4b31ac(0x157)])[_0x4b31ac(0x16a)](_0x3b80d3)[_0x4b31ac(0x15e)](_0x4b31ac(0x177)+_0x57d9ba[_0x4b31ac(0x184)]+_0x4b31ac(0x1b1)+_0x2c1f11)[_0x4b31ac(0x161)]();}),_0x5bde13;}export const dataDefinitions=[...specs[a27_0x4efb44(0x16f)](makeDataCommand),dataImportExcel];function a27_0x2f75(_0x2b688b,_0x1be883){_0x2b688b=_0x2b688b-0x153;const _0x2e43e6=a27_0x2e43();let _0x2f75f9=_0x2e43e6[_0x2b688b];return _0x2f75f9;}function buildBatchUpdateResult(_0x3b1fc1,_0xde8a2f){const _0x5150c1=a27_0x4efb44;return{'operation':_0x5150c1(0x1ae),'mode':_0x5150c1(0x1b2),'ids':_0x3b1fc1,'total':_0x3b1fc1['length'],'result':_0xde8a2f};}function a27_0x2e43(){const _0x3fa880=['\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','read','risk','113640DYStyu','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','description','filter','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','build','\x20\x20LOGICAL\x20COMBINATORS','24bHejwn','getOne','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','confirmationDescription','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','body','aggregate','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','str','join','map','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','create','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Preview:\x20data\x20','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','313413nSDbhH','now','14qpULJX','8642529bykfer','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','params','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','2315712AEHIEA','command','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','delete','14zxthiG','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','code','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','dryRun','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20completed\x20in\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','5HjaxeK','9878570RVtaze','batchCreate','helpExtra','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','data','paramsRequired','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','56185ArKYep','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','/api/{appCode}/','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','write','\x20\x20DATASET\x20BOUNDARY','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','Update\x20an\x20existing\x20data\x20record','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','update','POST','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20on\x20dataset\x20','batch','\x20\x20EXCEL\x20ROUTES','11ZVHpHi','\x20\x20PAGINATION','\x20\x20EXAMPLES','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','Create\x20one\x20record\x20in\x20the\x20dataset','528024sfoEDr','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20WHERE\x20OPERATORS','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','39TtgmIO','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','high-risk-write','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','operation'];a27_0x2e43=function(){return _0x3fa880;};return a27_0x2e43();}
@@ -1 +1 @@
1
- const a28_0x384cdd=a28_0x574b;(function(_0x332671,_0x42e2e9){const _0x2dace9=a28_0x574b,_0x2e6d3e=_0x332671();while(!![]){try{const _0x50724b=parseInt(_0x2dace9(0xc9))/0x1+parseInt(_0x2dace9(0xe0))/0x2+parseInt(_0x2dace9(0xb2))/0x3*(-parseInt(_0x2dace9(0xb5))/0x4)+parseInt(_0x2dace9(0xf1))/0x5*(parseInt(_0x2dace9(0xe9))/0x6)+parseInt(_0x2dace9(0xf4))/0x7+-parseInt(_0x2dace9(0xf9))/0x8*(parseInt(_0x2dace9(0xc0))/0x9)+-parseInt(_0x2dace9(0xdb))/0xa*(parseInt(_0x2dace9(0xf5))/0xb);if(_0x50724b===_0x42e2e9)break;else _0x2e6d3e['push'](_0x2e6d3e['shift']());}catch(_0x50cc2d){_0x2e6d3e['push'](_0x2e6d3e['shift']());}}}(a28_0x4605,0x4396e));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x574b(_0xc2a269,_0x5502bc){_0xc2a269=_0xc2a269-0xb2;const _0x460591=a28_0x4605();let _0x574bf2=_0x460591[_0xc2a269];return _0x574bf2;}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x59120e){const _0x41f8c5=a28_0x574b;return _0x59120e!==null&&typeof _0x59120e==='object'&&!Array[_0x41f8c5(0xed)](_0x59120e);}function normalizeField(_0x3307af){const _0x1720f5=a28_0x574b;if(_0x3307af[_0x1720f5(0xc4)])return null;const _0x32f425=Boolean(_0x3307af[_0x1720f5(0xf6)]!==undefined||_0x3307af[_0x1720f5(0xb3)]!==undefined);let _0x5107fd={};if(!_0x32f425&&typeof _0x3307af['extend']===_0x1720f5(0xeb))try{_0x5107fd=JSON[_0x1720f5(0xc8)](_0x3307af[_0x1720f5(0xc7)]);}catch{}const _0x146184=_0x32f425?_0x3307af[_0x1720f5(0xf8)]:_0x3307af[_0x1720f5(0xb4)],_0x2f4466=_0x32f425?_0x3307af['displayName']:_0x3307af[_0x1720f5(0xf8)],_0x3ca9da=_0x32f425?_0x3307af['doType']:_0x3307af[_0x1720f5(0x101)]||_0x3307af[_0x1720f5(0xbe)],_0x15b7b4=_0x32f425?_0x3307af[_0x1720f5(0xf0)]===!![]:_0x5107fd['pkField']===!![],_0x3fc4a8=_0x32f425?_0x3307af[_0x1720f5(0xcf)]===!![]:_0x5107fd[_0x1720f5(0xcf)]===!![],_0x504664=_0x32f425?_0x3307af[_0x1720f5(0xca)]??null:_0x5107fd['options']??null,_0x2ba3b4={'name':_0x146184,'displayName':_0x2f4466||_0x146184,'type':_0x3ca9da,'dbType':_0x3307af[_0x1720f5(0xdc)],'pk':_0x15b7b4,'required':_0x3fc4a8,'description':_0x3307af[_0x1720f5(0xe5)]||undefined};return Array[_0x1720f5(0xed)](_0x504664)&&_0x504664['length']>0x0&&(_0x2ba3b4['options']=_0x504664),_0x2ba3b4;}function parseJsonMaybe(_0xceb4a0){const _0x55eb36=a28_0x574b;if(typeof _0xceb4a0!==_0x55eb36(0xeb))return _0xceb4a0;try{return JSON[_0x55eb36(0xc8)](_0xceb4a0);}catch{return _0xceb4a0;}}function a28_0x4605(){const _0x23416a=['type','144loZnNt','doType','code','27108JtryRc','validateRules','length','afterScriptId','tableName','dblinkInfoDTO','indexes','formatRules','filter','dataType','object','90tYNYVo','logicField','relations','requestFields','deleted','properties','sourceType','extend','parse','237511JmrRXD','options','trim','modelCode','path','operations','required','createTimeField','modelId','beforeScriptId','creatorNameField','allFields','responseFields','dbtableConfig','requestBody','find','modifierNameField','datasetKey','198910afZRZT','dbType','dbId','fields','doVersion','75494cGRmRg','dataset','modifierIdField','split','creatorIdField','description','tableComment','entries','appCode','12RsupaQ','host','string','read','isArray','source','title','pkField','30115ffOpnv','relatedPageInfoList','dbName','3227441rQCyNc','55neLnNz','displayName','columnCodeListWithDeleted','name','37416ISJKvS','labelField','responseBody','detail','method','str','allFieldNames','map'];a28_0x4605=function(){return _0x23416a;};return a28_0x4605();}function normalizeOperationEntry(_0x1db5f6,_0x52d5ad){const _0x542cc6=a28_0x574b;if(!_0x52d5ad||typeof _0x52d5ad!==_0x542cc6(0xbf))return null;if(!_0x52d5ad[_0x542cc6(0xfd)]||!_0x52d5ad[_0x542cc6(0xcd)])return null;const _0x5c5220={'name':_0x1db5f6,'method':_0x52d5ad['method'],'path':_0x52d5ad['path']};if(_0x52d5ad['host'])_0x5c5220['host']=_0x52d5ad[_0x542cc6(0xea)];if(_0x52d5ad[_0x542cc6(0xd7)]!=null)_0x5c5220[_0x542cc6(0xd7)]=parseJsonMaybe(_0x52d5ad['requestBody']);if(_0x52d5ad[_0x542cc6(0xfb)]!=null)_0x5c5220[_0x542cc6(0xfb)]=parseJsonMaybe(_0x52d5ad[_0x542cc6(0xfb)]);if(_0x52d5ad[_0x542cc6(0xd2)]!=null)_0x5c5220[_0x542cc6(0xd2)]=_0x52d5ad['beforeScriptId'];if(_0x52d5ad['afterScriptId']!=null)_0x5c5220[_0x542cc6(0xb8)]=_0x52d5ad[_0x542cc6(0xb8)];if(Array['isArray'](_0x52d5ad['requestFields']))_0x5c5220[_0x542cc6(0xc3)]=_0x52d5ad[_0x542cc6(0xc3)];if(Array['isArray'](_0x52d5ad[_0x542cc6(0xd5)]))_0x5c5220[_0x542cc6(0xd5)]=_0x52d5ad[_0x542cc6(0xd5)];return _0x5c5220;}function summarizeDbtable(_0x4c2240){const _0x3306db=a28_0x574b,_0xd9cb07={},_0xca556a=[_0x3306db(0xdd),_0x3306db(0xf3),'tableName','datasetKey','pkField',_0x3306db(0xd4),_0x3306db(0xc1),_0x3306db(0xd0),'updateTimeField',_0x3306db(0xe4),_0x3306db(0xd3),_0x3306db(0xe2),_0x3306db(0xd9),_0x3306db(0xfa),_0x3306db(0xba)];for(const _0xdae253 of _0xca556a){if(_0x4c2240[_0xdae253]!==undefined)_0xd9cb07[_0xdae253]=_0x4c2240[_0xdae253];}return typeof _0xd9cb07[_0x3306db(0xd4)]===_0x3306db(0xeb)&&_0xd9cb07['allFields'][_0x3306db(0xb7)]>0x0&&(_0xd9cb07[_0x3306db(0xff)]=_0xd9cb07[_0x3306db(0xd4)][_0x3306db(0xe3)](',')['map'](_0x3a8e01=>_0x3a8e01[_0x3306db(0xcb)]())[_0x3306db(0xbd)](Boolean)),_0xd9cb07;}function normalizeRelatedPages(_0x42270d){const _0x19d1b4=a28_0x574b;if(!Array[_0x19d1b4(0xed)](_0x42270d))return[];return _0x42270d['filter'](_0x1f1ce2=>_0x1f1ce2&&typeof _0x1f1ce2===_0x19d1b4(0xbf))['map'](_0x407431=>({'id':_0x407431['id'],'type':_0x407431[_0x19d1b4(0x101)],'code':_0x407431['code'],'title':_0x407431[_0x19d1b4(0xef)],'deleted':_0x407431[_0x19d1b4(0xc4)]===!![]}));}function normalizeFallbackFieldName(_0x1dccc4,_0x216654){const _0x222d75=_0x1dccc4['trim']();if(!_0x222d75)return null;return{'name':_0x222d75,'displayName':_0x222d75,'type':undefined,'dbType':undefined,'pk':_0x222d75===_0x216654,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1c1d09,_0x73c4b7){const _0x4595da=a28_0x574b;if(!_0x1c1d09||!_0x73c4b7)return[];try{const _0x3cc433=await listDatasets(_0x1c1d09,{'code':_0x73c4b7}),_0x2e42d0=_0x3cc433[_0x4595da(0xd8)](_0x3246b0=>_0x3246b0['code']===_0x73c4b7)??_0x3cc433[0x0],_0x1649f4=_0x2e42d0?.['dbtableConfig']??{},_0x41c7dc=typeof _0x1649f4[_0x4595da(0xd4)]===_0x4595da(0xeb)?_0x1649f4[_0x4595da(0xd4)][_0x4595da(0xe3)](','):[];return _0x41c7dc['map'](_0x263324=>normalizeFallbackFieldName(_0x263324,_0x1649f4[_0x4595da(0xf0)]))[_0x4595da(0xbd)](_0x4fe140=>_0x4fe140!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x384cdd(0xe1),'command':a28_0x384cdd(0xfc),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x384cdd(0xec),'flags':[CODE_FLAG],async 'execute'(_0x5f2ed5){const _0x8204=a28_0x384cdd,_0x4ba38e=await getDatasetDetail(_0x5f2ed5['str']('code'));if(!isRecord(_0x4ba38e))throw CliErrors['apiError']('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0x23282e=Array[_0x8204(0xed)](_0x4ba38e['fields'])?_0x4ba38e[_0x8204(0xde)]:Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xc5)])?_0x4ba38e[_0x8204(0xc5)]:[];let _0x9bcbae=_0x23282e[_0x8204(0x100)](_0x430914=>normalizeField(_0x430914))['filter'](_0x3882c8=>_0x3882c8!==null);_0x9bcbae[_0x8204(0xb7)]===0x0&&(_0x9bcbae=await loadListFieldFallback(_0x5f2ed5[_0x8204(0xe8)],_0x5f2ed5[_0x8204(0xfe)]('code')));const _0x2b912e=_0x4ba38e[_0x8204(0xce)]??{},_0x2fcc19=[];for(const [_0x23ee52,_0x3c635c]of Object[_0x8204(0xe7)](_0x2b912e)){const _0x9033ad=normalizeOperationEntry(_0x23ee52,_0x3c635c);if(_0x9033ad)_0x2fcc19['push'](_0x9033ad);}const _0x4a113f=isRecord(_0x4ba38e[_0x8204(0xd6)])?_0x4ba38e['dbtableConfig']:{},_0x40fc56=isRecord(_0x4ba38e['dataset'])?_0x4ba38e[_0x8204(0xe1)]:{},_0x28d935=_0x4a113f[_0x8204(0xdd)]!=null?{'id':_0x4a113f['dbId'],'name':_0x4a113f[_0x8204(0xf3)]??null}:undefined;let _0x2478da;return typeof _0x4ba38e[_0x8204(0xc7)]===_0x8204(0xeb)&&(_0x2478da=parseJsonMaybe(_0x4ba38e[_0x8204(0xc7)])),{'ok':!![],'data':{'id':_0x4ba38e[_0x8204(0xd1)]??_0x4ba38e['id'],'name':_0x4ba38e[_0x8204(0xf8)],'code':_0x4ba38e[_0x8204(0xcc)]||_0x4ba38e[_0x8204(0xb4)],'doVersion':_0x4ba38e[_0x8204(0xdf)],'description':_0x4ba38e['description']||_0x40fc56[_0x8204(0xe6)]||undefined,'source':_0x4ba38e[_0x8204(0xee)]||_0x40fc56[_0x8204(0xc6)],'table':_0x4a113f[_0x8204(0xb9)]||_0x40fc56[_0x8204(0xb9)],'datasetKey':_0x4a113f[_0x8204(0xda)],'pk':_0x4a113f[_0x8204(0xf0)],'db':_0x28d935,'dbtable':summarizeDbtable(_0x4a113f),'fields':_0x9bcbae,'operations':_0x2fcc19,'indexes':Array[_0x8204(0xed)](_0x40fc56[_0x8204(0xbb)])?_0x40fc56[_0x8204(0xbb)]:[],'relations':_0x4ba38e[_0x8204(0xc2)]??null,'relatedPages':normalizeRelatedPages(_0x4ba38e[_0x8204(0xf2)]),...Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xf7)])?{'columnCodeListWithDeleted':_0x4ba38e[_0x8204(0xf7)]}:{},'formatRules':Array[_0x8204(0xed)](_0x4ba38e['formatRules'])?_0x4ba38e[_0x8204(0xbc)]:[],'validateRules':Array['isArray'](_0x4ba38e['validateRules'])?_0x4ba38e[_0x8204(0xb6)]:[],..._0x2478da!==undefined?{'extend':_0x2478da}:{},'stats':{'fieldCount':_0x9bcbae[_0x8204(0xb7)],'operationCount':_0x2fcc19[_0x8204(0xb7)]}}};}};
1
+ const a28_0x51921f=a28_0xdc94;(function(_0x2df7dd,_0x363bf9){const _0x4d6e60=a28_0xdc94,_0x38cb98=_0x2df7dd();while(!![]){try{const _0x585096=-parseInt(_0x4d6e60(0x120))/0x1+parseInt(_0x4d6e60(0xdc))/0x2+-parseInt(_0x4d6e60(0x106))/0x3+-parseInt(_0x4d6e60(0xda))/0x4*(parseInt(_0x4d6e60(0xf4))/0x5)+-parseInt(_0x4d6e60(0x11d))/0x6*(parseInt(_0x4d6e60(0xd8))/0x7)+-parseInt(_0x4d6e60(0x10f))/0x8+parseInt(_0x4d6e60(0x105))/0x9*(parseInt(_0x4d6e60(0x118))/0xa);if(_0x585096===_0x363bf9)break;else _0x38cb98['push'](_0x38cb98['shift']());}catch(_0x2b0f10){_0x38cb98['push'](_0x38cb98['shift']());}}}(a28_0x1ca8,0x8041d));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x1ca8(){const _0x3dd198=['requestFields','str','parse','formatRules','responseBody','afterScriptId','creatorIdField','fields','2015824ZRJWfB','displayName','relations','dblinkInfoDTO','dataset','title','beforeScriptId','split','creatorNameField','14756090LcVbTe','deleted','trim','required','type','65820OKRdhM','modelId','string','462872URjDPZ','responseFields','map','options','dbtableConfig','182aqfTFm','logicField','179044LZosTG','entries','1915532jRcUdT','dbType','dbName','relatedPageInfoList','extend','tableComment','isArray','validateRules','updateTimeField','read','pkField','modelCode','dataType','indexes','sourceType','code','apiError','columnCodeListWithDeleted','name','labelField','tableName','path','find','properties','55MjAyuT','operations','detail','allFields','method','object','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','description','filter','push','dbId','source','requestBody','length','datasetKey','modifierNameField','doType','9peCRjo','1246779JuLRKS'];a28_0x1ca8=function(){return _0x3dd198;};return a28_0x1ca8();}function a28_0xdc94(_0x5aa829,_0x25750a){_0x5aa829=_0x5aa829-0xd4;const _0x1ca8a6=a28_0x1ca8();let _0xdc94c3=_0x1ca8a6[_0x5aa829];return _0xdc94c3;}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x240fa4){const _0x1b7ed9=a28_0xdc94;return _0x240fa4!==null&&typeof _0x240fa4===_0x1b7ed9(0xf9)&&!Array[_0x1b7ed9(0xe2)](_0x240fa4);}function normalizeField(_0x25d687){const _0x2962ab=a28_0xdc94;if(_0x25d687[_0x2962ab(0x119)])return null;const _0x33996a=Boolean(_0x25d687['displayName']!==undefined||_0x25d687[_0x2962ab(0x104)]!==undefined);let _0x2fe67f={};if(!_0x33996a&&typeof _0x25d687[_0x2962ab(0xe0)]===_0x2962ab(0x11f))try{_0x2fe67f=JSON[_0x2962ab(0x109)](_0x25d687['extend']);}catch{}const _0x34763e=_0x33996a?_0x25d687['name']:_0x25d687[_0x2962ab(0xeb)],_0x34c0f4=_0x33996a?_0x25d687[_0x2962ab(0x110)]:_0x25d687[_0x2962ab(0xee)],_0x5f29c1=_0x33996a?_0x25d687[_0x2962ab(0x104)]:_0x25d687[_0x2962ab(0x11c)]||_0x25d687[_0x2962ab(0xe8)],_0x1d14cd=_0x33996a?_0x25d687[_0x2962ab(0xe6)]===!![]:_0x2fe67f[_0x2962ab(0xe6)]===!![],_0x2e4a21=_0x33996a?_0x25d687[_0x2962ab(0x11b)]===!![]:_0x2fe67f[_0x2962ab(0x11b)]===!![],_0x194d31=_0x33996a?_0x25d687['options']??null:_0x2fe67f[_0x2962ab(0xd6)]??null,_0x42c178={'name':_0x34763e,'displayName':_0x34c0f4||_0x34763e,'type':_0x5f29c1,'dbType':_0x25d687[_0x2962ab(0xdd)],'pk':_0x1d14cd,'required':_0x2e4a21,'description':_0x25d687[_0x2962ab(0xfb)]||undefined};return Array[_0x2962ab(0xe2)](_0x194d31)&&_0x194d31['length']>0x0&&(_0x42c178[_0x2962ab(0xd6)]=_0x194d31),_0x42c178;}function parseJsonMaybe(_0x3fd814){const _0x489bb6=a28_0xdc94;if(typeof _0x3fd814!==_0x489bb6(0x11f))return _0x3fd814;try{return JSON[_0x489bb6(0x109)](_0x3fd814);}catch{return _0x3fd814;}}function normalizeOperationEntry(_0x1bd7bc,_0x3d01be){const _0x391dc6=a28_0xdc94;if(!_0x3d01be||typeof _0x3d01be!==_0x391dc6(0xf9))return null;if(!_0x3d01be[_0x391dc6(0xf8)]||!_0x3d01be[_0x391dc6(0xf1)])return null;const _0x253a58={'name':_0x1bd7bc,'method':_0x3d01be[_0x391dc6(0xf8)],'path':_0x3d01be[_0x391dc6(0xf1)]};if(_0x3d01be['host'])_0x253a58['host']=_0x3d01be['host'];if(_0x3d01be[_0x391dc6(0x100)]!=null)_0x253a58[_0x391dc6(0x100)]=parseJsonMaybe(_0x3d01be[_0x391dc6(0x100)]);if(_0x3d01be[_0x391dc6(0x10b)]!=null)_0x253a58['responseBody']=parseJsonMaybe(_0x3d01be[_0x391dc6(0x10b)]);if(_0x3d01be[_0x391dc6(0x115)]!=null)_0x253a58[_0x391dc6(0x115)]=_0x3d01be[_0x391dc6(0x115)];if(_0x3d01be['afterScriptId']!=null)_0x253a58[_0x391dc6(0x10c)]=_0x3d01be[_0x391dc6(0x10c)];if(Array[_0x391dc6(0xe2)](_0x3d01be[_0x391dc6(0x107)]))_0x253a58['requestFields']=_0x3d01be[_0x391dc6(0x107)];if(Array['isArray'](_0x3d01be[_0x391dc6(0xd4)]))_0x253a58['responseFields']=_0x3d01be[_0x391dc6(0xd4)];return _0x253a58;}function summarizeDbtable(_0x2e883c){const _0x597d9a=a28_0xdc94,_0x25dfcd={},_0x1ba96f=[_0x597d9a(0xfe),_0x597d9a(0xde),_0x597d9a(0xf0),_0x597d9a(0x102),_0x597d9a(0xe6),_0x597d9a(0xf7),_0x597d9a(0xd9),'createTimeField',_0x597d9a(0xe4),_0x597d9a(0x10d),_0x597d9a(0x117),'modifierIdField',_0x597d9a(0x103),_0x597d9a(0xef),_0x597d9a(0x112)];for(const _0x1046bb of _0x1ba96f){if(_0x2e883c[_0x1046bb]!==undefined)_0x25dfcd[_0x1046bb]=_0x2e883c[_0x1046bb];}return typeof _0x25dfcd[_0x597d9a(0xf7)]==='string'&&_0x25dfcd[_0x597d9a(0xf7)][_0x597d9a(0x101)]>0x0&&(_0x25dfcd['allFieldNames']=_0x25dfcd[_0x597d9a(0xf7)]['split'](',')['map'](_0x161425=>_0x161425[_0x597d9a(0x11a)]())[_0x597d9a(0xfc)](Boolean)),_0x25dfcd;}function normalizeRelatedPages(_0x508aa4){const _0x106f02=a28_0xdc94;if(!Array[_0x106f02(0xe2)](_0x508aa4))return[];return _0x508aa4[_0x106f02(0xfc)](_0x1a7725=>_0x1a7725&&typeof _0x1a7725==='object')['map'](_0x52b253=>({'id':_0x52b253['id'],'type':_0x52b253[_0x106f02(0x11c)],'code':_0x52b253[_0x106f02(0xeb)],'title':_0x52b253[_0x106f02(0x114)],'deleted':_0x52b253[_0x106f02(0x119)]===!![]}));}function normalizeFallbackFieldName(_0x55b96f,_0x55f149){const _0x50ef73=a28_0xdc94,_0x11c5be=_0x55b96f[_0x50ef73(0x11a)]();if(!_0x11c5be)return null;return{'name':_0x11c5be,'displayName':_0x11c5be,'type':undefined,'dbType':undefined,'pk':_0x11c5be===_0x55f149,'required':![],'description':undefined};}async function loadListFieldFallback(_0x384a5d,_0x51f37c){const _0x5b4b69=a28_0xdc94;if(!_0x384a5d||!_0x51f37c)return[];try{const _0x4cfd01=await listDatasets(_0x384a5d,{'code':_0x51f37c}),_0x450f89=_0x4cfd01[_0x5b4b69(0xf2)](_0xbe903d=>_0xbe903d[_0x5b4b69(0xeb)]===_0x51f37c)??_0x4cfd01[0x0],_0x327eb9=_0x450f89?.[_0x5b4b69(0xd7)]??{},_0x5a12ff=typeof _0x327eb9[_0x5b4b69(0xf7)]===_0x5b4b69(0x11f)?_0x327eb9[_0x5b4b69(0xf7)][_0x5b4b69(0x116)](','):[];return _0x5a12ff[_0x5b4b69(0xd5)](_0x46a536=>normalizeFallbackFieldName(_0x46a536,_0x327eb9[_0x5b4b69(0xe6)]))[_0x5b4b69(0xfc)](_0x29f904=>_0x29f904!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x51921f(0x113),'command':a28_0x51921f(0xf6),'description':a28_0x51921f(0xfa),'risk':a28_0x51921f(0xe5),'flags':[CODE_FLAG],async 'execute'(_0x4c0567){const _0x2a3452=a28_0x51921f,_0x488975=await getDatasetDetail(_0x4c0567['str'](_0x2a3452(0xeb)));if(!isRecord(_0x488975))throw CliErrors[_0x2a3452(0xec)]('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0x149366=Array['isArray'](_0x488975[_0x2a3452(0x10e)])?_0x488975['fields']:Array[_0x2a3452(0xe2)](_0x488975[_0x2a3452(0xf3)])?_0x488975[_0x2a3452(0xf3)]:[];let _0x31b1da=_0x149366['map'](_0x57d5e5=>normalizeField(_0x57d5e5))[_0x2a3452(0xfc)](_0x79792b=>_0x79792b!==null);_0x31b1da[_0x2a3452(0x101)]===0x0&&(_0x31b1da=await loadListFieldFallback(_0x4c0567['appCode'],_0x4c0567[_0x2a3452(0x108)]('code')));const _0x119bf9=_0x488975[_0x2a3452(0xf5)]??{},_0x471207=[];for(const [_0x9536af,_0x346cda]of Object[_0x2a3452(0xdb)](_0x119bf9)){const _0x52e1ae=normalizeOperationEntry(_0x9536af,_0x346cda);if(_0x52e1ae)_0x471207[_0x2a3452(0xfd)](_0x52e1ae);}const _0x177f5c=isRecord(_0x488975[_0x2a3452(0xd7)])?_0x488975[_0x2a3452(0xd7)]:{},_0x59ac09=isRecord(_0x488975[_0x2a3452(0x113)])?_0x488975[_0x2a3452(0x113)]:{},_0x1dcef9=_0x177f5c[_0x2a3452(0xfe)]!=null?{'id':_0x177f5c[_0x2a3452(0xfe)],'name':_0x177f5c[_0x2a3452(0xde)]??null}:undefined;let _0x4d322f;return typeof _0x488975[_0x2a3452(0xe0)]===_0x2a3452(0x11f)&&(_0x4d322f=parseJsonMaybe(_0x488975[_0x2a3452(0xe0)])),{'ok':!![],'data':{'id':_0x488975[_0x2a3452(0x11e)]??_0x488975['id'],'name':_0x488975[_0x2a3452(0xee)],'code':_0x488975[_0x2a3452(0xe7)]||_0x488975[_0x2a3452(0xeb)],'doVersion':_0x488975['doVersion'],'description':_0x488975[_0x2a3452(0xfb)]||_0x59ac09[_0x2a3452(0xe1)]||undefined,'source':_0x488975[_0x2a3452(0xff)]||_0x59ac09[_0x2a3452(0xea)],'table':_0x177f5c['tableName']||_0x59ac09[_0x2a3452(0xf0)],'datasetKey':_0x177f5c[_0x2a3452(0x102)],'pk':_0x177f5c[_0x2a3452(0xe6)],'db':_0x1dcef9,'dbtable':summarizeDbtable(_0x177f5c),'fields':_0x31b1da,'operations':_0x471207,'indexes':Array[_0x2a3452(0xe2)](_0x59ac09[_0x2a3452(0xe9)])?_0x59ac09['indexes']:[],'relations':_0x488975[_0x2a3452(0x111)]??null,'relatedPages':normalizeRelatedPages(_0x488975[_0x2a3452(0xdf)]),...Array['isArray'](_0x488975['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x488975[_0x2a3452(0xed)]}:{},'formatRules':Array['isArray'](_0x488975[_0x2a3452(0x10a)])?_0x488975[_0x2a3452(0x10a)]:[],'validateRules':Array[_0x2a3452(0xe2)](_0x488975[_0x2a3452(0xe3)])?_0x488975[_0x2a3452(0xe3)]:[],..._0x4d322f!==undefined?{'extend':_0x4d322f}:{},'stats':{'fieldCount':_0x31b1da[_0x2a3452(0x101)],'operationCount':_0x471207[_0x2a3452(0x101)]}}};}};
@@ -1 +1 @@
1
- (function(_0x4efbeb,_0x48960e){const _0x5781c6=a29_0x137f,_0x503023=_0x4efbeb();while(!![]){try{const _0x3a6e97=parseInt(_0x5781c6(0x10b))/0x1+parseInt(_0x5781c6(0x106))/0x2*(parseInt(_0x5781c6(0x109))/0x3)+-parseInt(_0x5781c6(0x107))/0x4+-parseInt(_0x5781c6(0x103))/0x5*(parseInt(_0x5781c6(0x108))/0x6)+parseInt(_0x5781c6(0x101))/0x7*(parseInt(_0x5781c6(0x102))/0x8)+parseInt(_0x5781c6(0x104))/0x9*(-parseInt(_0x5781c6(0x105))/0xa)+-parseInt(_0x5781c6(0x10a))/0xb;if(_0x3a6e97===_0x48960e)break;else _0x503023['push'](_0x503023['shift']());}catch(_0x3897ef){_0x503023['push'](_0x503023['shift']());}}}(a29_0x245e,0xb8f2d));import{datasetList}from'../../commands/dataset/list.js';function a29_0x245e(){const _0x563931=['3054884JPdZuW','882OzDLuw','24LFlNwb','12660450cLZSAR','549514SZcXuM','1576841QWDtcZ','48WRkuEb','720rZxZUa','339804OahxYK','120FChbTh','311342qsQwAE'];a29_0x245e=function(){return _0x563931;};return a29_0x245e();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x137f(_0x4ec535,_0x21758d){_0x4ec535=_0x4ec535-0x101;const _0x245e19=a29_0x245e();let _0x137fff=_0x245e19[_0x4ec535];return _0x137fff;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x228394,_0x4fc661){const _0x746525=a29_0x3685,_0x8b1896=_0x228394();while(!![]){try{const _0x2fbd0c=-parseInt(_0x746525(0x7e))/0x1*(-parseInt(_0x746525(0x80))/0x2)+parseInt(_0x746525(0x88))/0x3+-parseInt(_0x746525(0x84))/0x4+-parseInt(_0x746525(0x83))/0x5+parseInt(_0x746525(0x86))/0x6*(parseInt(_0x746525(0x87))/0x7)+-parseInt(_0x746525(0x81))/0x8*(parseInt(_0x746525(0x82))/0x9)+parseInt(_0x746525(0x85))/0xa*(parseInt(_0x746525(0x7f))/0xb);if(_0x2fbd0c===_0x4fc661)break;else _0x8b1896['push'](_0x8b1896['shift']());}catch(_0x518d0d){_0x8b1896['push'](_0x8b1896['shift']());}}}(a29_0x4e83,0xb7721));import{datasetList}from'../../commands/dataset/list.js';function a29_0x3685(_0x46a0b9,_0xfc052f){_0x46a0b9=_0x46a0b9-0x7e;const _0x4e8313=a29_0x4e83();let _0x368563=_0x4e8313[_0x46a0b9];return _0x368563;}import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x4e83(){const _0x682173=['5758552QjOWnc','22491830xEjQiL','6aWjqCM','9878743zLWUpY','1022415UOCOZD','17hIHAyq','11ZUudxn','30834TqXmzR','89376XNGGAA','1107rsKckj','3490695jjnZSx'];a29_0x4e83=function(){return _0x682173;};return a29_0x4e83();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x32d483=a30_0x3251;(function(_0x291394,_0x34aaf6){const _0x31244b=a30_0x3251,_0x1d3c60=_0x291394();while(!![]){try{const _0x13337a=parseInt(_0x31244b(0x188))/0x1*(-parseInt(_0x31244b(0x179))/0x2)+-parseInt(_0x31244b(0x177))/0x3*(-parseInt(_0x31244b(0x185))/0x4)+parseInt(_0x31244b(0x175))/0x5+parseInt(_0x31244b(0x16e))/0x6*(parseInt(_0x31244b(0x17e))/0x7)+parseInt(_0x31244b(0x180))/0x8+parseInt(_0x31244b(0x17c))/0x9*(-parseInt(_0x31244b(0x172))/0xa)+-parseInt(_0x31244b(0x16f))/0xb*(parseInt(_0x31244b(0x18d))/0xc);if(_0x13337a===_0x34aaf6)break;else _0x1d3c60['push'](_0x1d3c60['shift']());}catch(_0x523598){_0x1d3c60['push'](_0x1d3c60['shift']());}}}(a30_0x25a0,0x28d75));function a30_0x25a0(){const _0x48bdb3=['30gbSzzg','11LzaCbk','trim','pkField','3304430ylePWf','read','dbtableConfig','867590LOJnZQ','table-name','12lTDqyf','map','173034LWIGIs','length','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','9RyDiOH','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','399623gETRhn','split','1689096EFwRep','allFields','list','datasetKey','tableName','23656pmFPDo','dataset','name','2JHKwvE','source','appCode','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','str','275928AGCvBa','string','code'];a30_0x25a0=function(){return _0x48bdb3;};return a30_0x25a0();}function a30_0x3251(_0x3760d1,_0x4d9c58){_0x3760d1=_0x3760d1-0x16d;const _0x25a014=a30_0x25a0();let _0x32512c=_0x25a014[_0x3760d1];return _0x32512c;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x32d483(0x186),'command':a30_0x32d483(0x182),'description':a30_0x32d483(0x18b),'risk':a30_0x32d483(0x173),'flags':[{'name':'name','type':'string','description':a30_0x32d483(0x17b)},{'name':a30_0x32d483(0x176),'type':a30_0x32d483(0x18e),'description':a30_0x32d483(0x17d)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x43e8e1){const _0x1b3021=a30_0x32d483,_0x251ea3=_0x43e8e1[_0x1b3021(0x18c)](_0x1b3021(0x187)),_0x192224=_0x43e8e1['str'](_0x1b3021(0x16d)),_0x31e64e=_0x43e8e1[_0x1b3021(0x18c)]('table-name'),_0x5d686d=await listDatasets(_0x43e8e1[_0x1b3021(0x18a)],{..._0x251ea3&&{'name':_0x251ea3},..._0x192224&&{'code':_0x192224},..._0x31e64e&&{'tableName':_0x31e64e}});return{'ok':!![],'data':{'total':_0x5d686d[_0x1b3021(0x17a)],'datasets':_0x5d686d[_0x1b3021(0x178)](_0x18a092=>{const _0x2f8d53=_0x1b3021,_0x43fc88=_0x18a092[_0x2f8d53(0x174)]??{};return{'id':_0x18a092['id'],'code':_0x18a092[_0x2f8d53(0x16d)],'name':_0x18a092[_0x2f8d53(0x187)],'source':_0x18a092[_0x2f8d53(0x189)],'description':_0x18a092['description'],'table':_0x43fc88[_0x2f8d53(0x184)],'datasetKey':_0x43fc88[_0x2f8d53(0x183)],'pk':_0x43fc88[_0x2f8d53(0x171)],'fields':_0x43fc88[_0x2f8d53(0x181)]?_0x43fc88[_0x2f8d53(0x181)][_0x2f8d53(0x17f)](',')[_0x2f8d53(0x178)](_0x5a67db=>_0x5a67db[_0x2f8d53(0x170)]()):[]};})}};}};
1
+ const a30_0x3fb544=a30_0x5815;(function(_0x2fabfa,_0x1f6253){const _0x1b2d4b=a30_0x5815,_0x5bd8af=_0x2fabfa();while(!![]){try{const _0x45266f=-parseInt(_0x1b2d4b(0xa2))/0x1+-parseInt(_0x1b2d4b(0x9a))/0x2+-parseInt(_0x1b2d4b(0x9d))/0x3*(-parseInt(_0x1b2d4b(0xa3))/0x4)+parseInt(_0x1b2d4b(0x9e))/0x5*(parseInt(_0x1b2d4b(0xac))/0x6)+parseInt(_0x1b2d4b(0x97))/0x7+parseInt(_0x1b2d4b(0xa9))/0x8*(-parseInt(_0x1b2d4b(0xaf))/0x9)+parseInt(_0x1b2d4b(0xa6))/0xa*(parseInt(_0x1b2d4b(0xae))/0xb);if(_0x45266f===_0x1f6253)break;else _0x5bd8af['push'](_0x5bd8af['shift']());}catch(_0x43a8ae){_0x5bd8af['push'](_0x5bd8af['shift']());}}}(a30_0x1990,0xb405f));function a30_0x1990(){const _0x31e55b=['3580626xvuWgx','allFields','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','2604292piArqN','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','638325YNhfAp','144355PPBOUm','length','trim','description','561690ALHZXW','4wwtgNz','string','str','1822060bfdihO','datasetKey','appCode','989048OKRiaE','pkField','map','102VPYhjF','source','121JYcqeI','45LtZnwI','code','table-name','list','tableName','dataset','dbtableConfig','name'];a30_0x1990=function(){return _0x31e55b;};return a30_0x1990();}function a30_0x5815(_0xe508d1,_0x41d88b){_0xe508d1=_0xe508d1-0x94;const _0x19909b=a30_0x1990();let _0x5815e2=_0x19909b[_0xe508d1];return _0x5815e2;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x3fb544(0x94),'command':a30_0x3fb544(0xb2),'description':a30_0x3fb544(0x9b),'risk':'read','flags':[{'name':a30_0x3fb544(0x96),'type':'string','description':a30_0x3fb544(0x99)},{'name':'table-name','type':a30_0x3fb544(0xa4),'description':a30_0x3fb544(0x9c)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x18c235){const _0x56229a=a30_0x3fb544,_0x3f1c5e=_0x18c235['str'](_0x56229a(0x96)),_0x5e1db7=_0x18c235['str'](_0x56229a(0xb0)),_0x34ba86=_0x18c235[_0x56229a(0xa5)](_0x56229a(0xb1)),_0x5020fe=await listDatasets(_0x18c235[_0x56229a(0xa8)],{..._0x3f1c5e&&{'name':_0x3f1c5e},..._0x5e1db7&&{'code':_0x5e1db7},..._0x34ba86&&{'tableName':_0x34ba86}});return{'ok':!![],'data':{'total':_0x5020fe[_0x56229a(0x9f)],'datasets':_0x5020fe[_0x56229a(0xab)](_0x4b4f8a=>{const _0xe578ff=_0x56229a,_0xaa3264=_0x4b4f8a[_0xe578ff(0x95)]??{};return{'id':_0x4b4f8a['id'],'code':_0x4b4f8a[_0xe578ff(0xb0)],'name':_0x4b4f8a[_0xe578ff(0x96)],'source':_0x4b4f8a[_0xe578ff(0xad)],'description':_0x4b4f8a[_0xe578ff(0xa1)],'table':_0xaa3264[_0xe578ff(0xb3)],'datasetKey':_0xaa3264[_0xe578ff(0xa7)],'pk':_0xaa3264[_0xe578ff(0xaa)],'fields':_0xaa3264[_0xe578ff(0x98)]?_0xaa3264[_0xe578ff(0x98)]['split'](',')[_0xe578ff(0xab)](_0x4391d9=>_0x4391d9[_0xe578ff(0xa0)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a31_0x4a287f=a31_0x46a0;(function(_0x1dedca,_0xea872e){const _0x2a7327=a31_0x46a0,_0x52f0ee=_0x1dedca();while(!![]){try{const _0x33ce77=parseInt(_0x2a7327(0x136))/0x1*(-parseInt(_0x2a7327(0x137))/0x2)+-parseInt(_0x2a7327(0x13f))/0x3+-parseInt(_0x2a7327(0x13e))/0x4*(parseInt(_0x2a7327(0x13b))/0x5)+parseInt(_0x2a7327(0x134))/0x6+-parseInt(_0x2a7327(0x139))/0x7*(-parseInt(_0x2a7327(0x13c))/0x8)+parseInt(_0x2a7327(0x143))/0x9*(parseInt(_0x2a7327(0x138))/0xa)+parseInt(_0x2a7327(0x135))/0xb;if(_0x33ce77===_0xea872e)break;else _0x52f0ee['push'](_0x52f0ee['shift']());}catch(_0x31b3a2){_0x52f0ee['push'](_0x52f0ee['shift']());}}}(a31_0x14b8,0xd33c8));function a31_0x14b8(){const _0x32e18e=['28iKTnoW','8141320TJsBIO','56TFVmeD','str','5JNUrsz','175040Dovlvo','trim','1694148zxNzph','4248651QDleDB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','code','9snyskF','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','read','string','8981538uwJpnh','8584807CbQAMS','40111WxeVbZ'];a31_0x14b8=function(){return _0x32e18e;};return a31_0x14b8();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a31_0x46a0(_0x5e96fd,_0x5b86c0){_0x5e96fd=_0x5e96fd-0x132;const _0x14b8c8=a31_0x14b8();let _0x46a07c=_0x14b8c8[_0x5e96fd];return _0x46a07c;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4a287f(0x145);export function formatDatasetSdkMarkdown(_0x15a448){const _0x5ae1d3=a31_0x4a287f,_0x2a1451=typeof _0x15a448===_0x5ae1d3(0x133)?_0x15a448[_0x5ae1d3(0x13d)]():'';return _0x2a1451||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a31_0x4a287f(0x141),'risk':a31_0x4a287f(0x132),'flags':[{...CODE_FLAG,'description':a31_0x4a287f(0x140)}],async 'execute'(_0x1ed9fe){const _0x340097=a31_0x4a287f,_0x57205b=_0x1ed9fe[_0x340097(0x13a)](_0x340097(0x142)),_0x25f059=await getDatasetSdkUsageDoc(_0x57205b,_0x1ed9fe['appCode']);return{'ok':!![],'data':{'code':_0x57205b,'appCode':_0x1ed9fe[_0x340097(0x144)],'markdown':formatDatasetSdkMarkdown(_0x25f059)}};}};
1
+ const a31_0x1193af=a31_0x3b45;(function(_0x31e937,_0x3da568){const _0x57ec6b=a31_0x3b45,_0x2179f1=_0x31e937();while(!![]){try{const _0x1b1b57=-parseInt(_0x57ec6b(0x142))/0x1*(-parseInt(_0x57ec6b(0x13c))/0x2)+-parseInt(_0x57ec6b(0x147))/0x3+parseInt(_0x57ec6b(0x14d))/0x4+parseInt(_0x57ec6b(0x141))/0x5*(-parseInt(_0x57ec6b(0x14a))/0x6)+parseInt(_0x57ec6b(0x13b))/0x7*(parseInt(_0x57ec6b(0x145))/0x8)+parseInt(_0x57ec6b(0x14b))/0x9*(-parseInt(_0x57ec6b(0x14c))/0xa)+-parseInt(_0x57ec6b(0x14e))/0xb;if(_0x1b1b57===_0x3da568)break;else _0x2179f1['push'](_0x2179f1['shift']());}catch(_0xe2004a){_0x2179f1['push'](_0x2179f1['shift']());}}}(a31_0x2bac,0x45444));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a31_0x3b45(_0x29deb4,_0x38603f){_0x29deb4=_0x29deb4-0x13b;const _0x2bac80=a31_0x2bac();let _0x3b45e7=_0x2bac80[_0x29deb4];return _0x3b45e7;}const DEFAULT_MARKDOWN=a31_0x1193af(0x148);function a31_0x2bac(){const _0x26983c=['read','1425471VRDTDs','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','13566cnPJFQ','9YtYrMZ','2412350fWRTTg','2108036WkJJjq','968033EOOtZr','string','2689799AuQdse','116pssmqd','dataset','appCode','sdk-doc','trim','595gPaOEY','7688ypkRlY','str','code','8GyEEbR'];a31_0x2bac=function(){return _0x26983c;};return a31_0x2bac();}export function formatDatasetSdkMarkdown(_0x39789a){const _0x4c0fae=a31_0x1193af,_0xbd5eb8=typeof _0x39789a===_0x4c0fae(0x14f)?_0x39789a[_0x4c0fae(0x140)]():'';return _0xbd5eb8||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x1193af(0x13d),'command':a31_0x1193af(0x13f),'description':a31_0x1193af(0x149),'risk':a31_0x1193af(0x146),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x3ae27b){const _0x1a1378=a31_0x1193af,_0x757980=_0x3ae27b[_0x1a1378(0x143)](_0x1a1378(0x144)),_0x20c2cc=await getDatasetSdkUsageDoc(_0x757980,_0x3ae27b[_0x1a1378(0x13e)]);return{'ok':!![],'data':{'code':_0x757980,'appCode':_0x3ae27b[_0x1a1378(0x13e)],'markdown':formatDatasetSdkMarkdown(_0x20c2cc)}};}};
@@ -1 +1 @@
1
- const a32_0x252cc1=a32_0x47cc;(function(_0x153039,_0x404bff){const _0x1002b2=a32_0x47cc,_0xe8fc50=_0x153039();while(!![]){try{const _0x363128=parseInt(_0x1002b2(0x1c8))/0x1+parseInt(_0x1002b2(0x1a5))/0x2+-parseInt(_0x1002b2(0x180))/0x3+-parseInt(_0x1002b2(0x16c))/0x4*(parseInt(_0x1002b2(0x198))/0x5)+parseInt(_0x1002b2(0x1a7))/0x6+-parseInt(_0x1002b2(0x173))/0x7+-parseInt(_0x1002b2(0x177))/0x8*(-parseInt(_0x1002b2(0x19e))/0x9);if(_0x363128===_0x404bff)break;else _0xe8fc50['push'](_0xe8fc50['shift']());}catch(_0x3238e7){_0xe8fc50['push'](_0xe8fc50['shift']());}}}(a32_0x2958,0x36d64));import a32_0xafc843 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,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a32_0x47cc(_0x5b2f2d,_0xf4f62a){_0x5b2f2d=_0x5b2f2d-0x160;const _0x2958b6=a32_0x2958();let _0x47cc02=_0x2958b6[_0x5b2f2d];return _0x47cc02;}async function execute(_0x2b6424){const _0x81763e=a32_0x47cc,_0x1e6272=getCliVersion(),_0x1ee557=buildConfigFromFlags({});let _0x2b5351,_0x1f9773;try{_0x2b5351=normalizeLovrabetRegion(_0x1ee557[_0x81763e(0x1d2)][_0x81763e(0x1ab)]);}catch(_0x50fcb2){_0x1f9773=_0x50fcb2 instanceof Error?_0x50fcb2:new Error(String(_0x50fcb2));}let _0x17bf5e;if(!_0x1f9773)try{await initGlobalEnvironment(_0x1ee557);}catch(_0x78fece){_0x17bf5e=_0x78fece instanceof Error?_0x78fece:new Error(String(_0x78fece));}console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)](CLI_BIN_NAME+_0x81763e(0x184))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('─'[_0x81763e(0x17a)](0x32))),console[_0x81763e(0x1a6)](_0x81763e(0x1bf)+_0x1e6272),console[_0x81763e(0x1a6)](_0x81763e(0x1d1)+process[_0x81763e(0x19f)]),console[_0x81763e(0x1a6)](_0x81763e(0x1b1)+process[_0x81763e(0x19a)]+'\x20'+process[_0x81763e(0x170)]);const _0x5e482e=inspectBuiltinSkill();console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x190))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console['log'](_0x81763e(0x1ae)+(_0x5e482e[_0x81763e(0x1a0)]===_0x81763e(0x17c)?a32_0xafc843[_0x81763e(0x1c4)](_0x81763e(0x1cc)):a32_0xafc843[_0x81763e(0x16d)]('✗\x20'+_0x5e482e[_0x81763e(0x1a0)]))),console[_0x81763e(0x1a6)]('\x20\x20Package\x20Version:\x20'+_0x5e482e[_0x81763e(0x160)]),console[_0x81763e(0x1a6)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x5e482e['skillVersion']||a32_0xafc843[_0x81763e(0x1c5)]('(missing)'))),console[_0x81763e(0x1a6)](_0x81763e(0x164)+(_0x5e482e[_0x81763e(0x166)]||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6))));_0x5e482e[_0x81763e(0x1a0)]!==_0x81763e(0x17c)&&console['log'](_0x81763e(0x19d)+_0x5e482e[_0x81763e(0x1d0)]);_0x5e482e[_0x81763e(0x18e)]&&console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x5e482e[_0x81763e(0x18e)]);console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1c1))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e)));const _0x240aa7=getGlobalConfigPath(),_0x6e1aed=getProjectConfigPath();console[_0x81763e(0x1a6)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x240aa7||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console[_0x81763e(0x1a6)](_0x81763e(0x16b)+(_0x6e1aed||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console['log'](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Config\x20JSON')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));const _0x17777a=(_0x2f1614,_0x337e63)=>{const _0x5bf94a=_0x81763e;if(!_0x337e63){console['log']('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c5)](_0x5bf94a(0x18b)));return;}const _0x1a970d=inspectCliConfigJsonFile(_0x337e63);if(_0x1a970d[_0x5bf94a(0x1b3)]==='ok')console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c4)](_0x5bf94a(0x169)));else{if(_0x1a970d[_0x5bf94a(0x1b3)]===_0x5bf94a(0x1c0))console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1a3)](_0x5bf94a(0x1bb)));else _0x1a970d['status']===_0x5bf94a(0x168)?console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843['gray'](_0x5bf94a(0x1b8))):(console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x5bf94a(0x186))),console[_0x5bf94a(0x1a6)]('\x20\x20'+''[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x1a970d[_0x5bf94a(0x174)])));}};_0x17777a(_0x81763e(0x193),_0x240aa7),_0x17777a(_0x81763e(0x1b6),_0x6e1aed);const _0x2596ff=loadRawConfigLayers(),_0x573e42=[Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'inherit')?'global':null,Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x161)],_0x81763e(0x172))?_0x81763e(0x188):null][_0x81763e(0x1d8)](Boolean);_0x573e42[_0x81763e(0x17b)]>0x0&&(console[_0x81763e(0x1a6)](_0x81763e(0x18c)+a32_0xafc843['yellow'](_0x81763e(0x185)+_0x573e42[_0x81763e(0x1bc)]('\x20+\x20')+_0x81763e(0x179))),_0x573e42[_0x81763e(0x189)](_0x81763e(0x188))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a1)+CLI_BIN_NAME+_0x81763e(0x1b5)),_0x573e42[_0x81763e(0x189)](_0x81763e(0x171))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a2)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x17bf5e&&(console['log'](),console['log'](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ac))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x17bf5e['message']),Object[_0x81763e(0x16a)]['hasOwnProperty']['call'](_0x2596ff[_0x81763e(0x161)],'routing')&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'routing')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x81763e(0x194)));_0x1f9773&&(console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d5))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x1f9773[_0x81763e(0x174)]),Object[_0x81763e(0x16a)]['hasOwnProperty'][_0x81763e(0x1d4)](_0x2596ff['projectConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff['globalConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x19c)+CLI_BIN_NAME+_0x81763e(0x1b0)));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d7))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x1d3)+(_0x1ee557[_0x81763e(0x1ce)]||a32_0xafc843['red'](_0x81763e(0x195)))),console['log'](_0x81763e(0x1a9)+(_0x2b5351??a32_0xafc843[_0x81763e(0x16d)]('(invalid)'))),console[_0x81763e(0x1a6)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x1cb)]),console[_0x81763e(0x1a6)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1ee557['defaultApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](_0x81763e(0x199)+(_0x1ee557['currentApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1ee557[_0x81763e(0x1cd)]||a32_0xafc843['gray'](_0x81763e(0x1ca)+DEFAULT_CONFIG_VALUES[_0x81763e(0x1cd)]+')'))),console[_0x81763e(0x1a6)](_0x81763e(0x187)+(_0x1ee557[_0x81763e(0x1c6)]??a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1cf)))),console[_0x81763e(0x1a6)](_0x81763e(0x1c2)+_0x1ee557[_0x81763e(0x17f)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x182)]),console['log'](_0x81763e(0x1b2)+AUTH_MODE[_0x81763e(0x18a)]),console['log'](_0x81763e(0x191)+(_0x1ee557[_0x81763e(0x163)]?a32_0xafc843[_0x81763e(0x1c4)]('(set,\x20length='+_0x1ee557['accessKey'][_0x81763e(0x17b)]+')'):a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ba))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));_0x17bf5e||_0x1f9773?console['log'](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x81763e(0x1a6)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1c9)+getUserDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1b7)+getRuntimeDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x196)+getSkillDomain()),console[_0x81763e(0x1a6)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x81763e(0x183))));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843['bold']('\x20\x20Service\x20Tree')),console['log'](a32_0xafc843['gray']('\x20\x20─'['repeat'](0x1e)));const _0x2853a6=inspectServiceRegistry();console[_0x81763e(0x1a6)](_0x81763e(0x1c3)+_0x2853a6[_0x81763e(0x17e)]),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x2853a6)),console[_0x81763e(0x1a6)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6['serviceCount']),console[_0x81763e(0x1a6)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6[_0x81763e(0x165)]);for(const _0x30996f of _0x2853a6[_0x81763e(0x178)]){console[_0x81763e(0x1a6)]('\x20\x20'+(_0x30996f[_0x81763e(0x1b4)]+':')['padEnd'](0x11)+'\x20'+(_0x30996f[_0x81763e(0x175)]||a32_0xafc843[_0x81763e(0x1c5)]('(unnamed)'))+'\x20('+_0x30996f[_0x81763e(0x165)]+'\x20commands)'),console[_0x81763e(0x1a6)]('\x20\x20'+''[_0x81763e(0x16e)](0x11)+_0x81763e(0x167)+_0x30996f[_0x81763e(0x1a8)][_0x81763e(0x17d)]);}return console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Auth')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x162)+a32_0xafc843[_0x81763e(0x1c4)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x81763e(0x1a6)](_0x81763e(0x1c7)+a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1b9))),console[_0x81763e(0x1a6)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x40ab44){const _0x23c0de=a32_0x47cc;if(_0x40ab44[_0x23c0de(0x1b3)]==='ok')return a32_0xafc843[_0x23c0de(0x1c4)]('✓\x20Loaded');if(_0x40ab44['status']==='missing')return a32_0xafc843[_0x23c0de(0x1c5)](_0x23c0de(0x1d6));if(_0x40ab44[_0x23c0de(0x1b3)]===_0x23c0de(0x1c0))return a32_0xafc843[_0x23c0de(0x1a3)](_0x23c0de(0x1bd));return a32_0xafc843[_0x23c0de(0x16d)](_0x23c0de(0x1aa)+(_0x40ab44[_0x23c0de(0x174)]?':\x20'+_0x40ab44['message']:''));}function a32_0x2958(){const _0x567d88=['\x20\x20Session\x20check:\x20\x20\x20','315460sIlWRx','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default:\x20','locale','✓\x20current','format','appCode','(default)','repairCommand','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','\x20\x20Country/Region\x20Configuration','(not\x20found)','\x20\x20Merged\x20Config','filter','packageVersion','projectConfig','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Installed\x20Path:\x20\x20','commandCount','installedPath','\x20Imported\x20from:\x20','missing','✓\x20Valid\x20JSON','prototype','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','716BwKiYJ','red','padEnd','read','arch','global','inherit','144865DPUMbp','message','name','\x20\x20─','2184792sbCQXH','services','\x20config','repeat','length','current','path','registryPath','riskLevel','1285944vXcxHd','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','not\x20configured','\x20doctor','ignored\x20in\x20','✗\x20Invalid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','project','includes','ClientAk','(no\x20file)','\x20\x20Legacy\x20inherit:\x20\x20\x20','hasOwnProperty','reason','check','\x20\x20Built-in\x20Skill','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','globalConfig','Global','\x20config\x20delete\x20routing\x20--global','(not\x20set)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9745wJeOau','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','doctor','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9LewYoH','version','state','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','yellow','\x20\x20Repair\x20project:\x20\x20','264448zVgCSo','log','1812258OjCGxB','source','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','region','\x20\x20Routing\x20Configuration','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20config\x20init','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','status','serviceCode','\x20config\x20delete\x20inherit','Project','\x20\x20runtimeDomain:\x20\x20\x20','(missing)','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20API\x20Endpoints','⚠\x20Empty\x20(treated\x20as\x20{})','join','⚠\x20Empty','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','green','gray','pageSize'];a32_0x2958=function(){return _0x567d88;};return a32_0x2958();}export const doctorDefinition={'service':a32_0x252cc1(0x19b),'command':a32_0x252cc1(0x18f),'description':a32_0x252cc1(0x1ad),'risk':a32_0x252cc1(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x19c423=a32_0x5b1f;(function(_0x3dbeef,_0x354110){const _0x5c56ab=a32_0x5b1f,_0x43cf6b=_0x3dbeef();while(!![]){try{const _0x5bf93a=-parseInt(_0x5c56ab(0x21a))/0x1*(-parseInt(_0x5c56ab(0x21b))/0x2)+-parseInt(_0x5c56ab(0x1c2))/0x3+-parseInt(_0x5c56ab(0x1f0))/0x4*(-parseInt(_0x5c56ab(0x1ce))/0x5)+parseInt(_0x5c56ab(0x215))/0x6+parseInt(_0x5c56ab(0x218))/0x7*(parseInt(_0x5c56ab(0x1ba))/0x8)+parseInt(_0x5c56ab(0x1e4))/0x9+-parseInt(_0x5c56ab(0x21d))/0xa;if(_0x5bf93a===_0x354110)break;else _0x43cf6b['push'](_0x43cf6b['shift']());}catch(_0x3b8b45){_0x43cf6b['push'](_0x43cf6b['shift']());}}}(a32_0x2fc2,0x8f250));import a32_0x288962 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,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x454042){const _0x38ea20=a32_0x5b1f,_0xac16ad=getCliVersion(),_0x47c900=buildConfigFromFlags({});let _0x146398,_0x491357;try{_0x146398=normalizeLovrabetRegion(_0x47c900[_0x38ea20(0x21f)][_0x38ea20(0x220)]);}catch(_0x235d5d){_0x491357=_0x235d5d instanceof Error?_0x235d5d:new Error(String(_0x235d5d));}let _0x942b8a;if(!_0x491357)try{await initGlobalEnvironment(_0x47c900);}catch(_0x1e7f00){_0x942b8a=_0x1e7f00 instanceof Error?_0x1e7f00:new Error(String(_0x1e7f00));}console[_0x38ea20(0x1c4)](),console['log'](a32_0x288962[_0x38ea20(0x1d4)](CLI_BIN_NAME+_0x38ea20(0x1dd))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)]('─'[_0x38ea20(0x1ca)](0x32))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1f2)+_0xac16ad),console[_0x38ea20(0x1c4)](_0x38ea20(0x1a5)+process['version']),console[_0x38ea20(0x1c4)](_0x38ea20(0x1bf)+process['platform']+'\x20'+process['arch']);const _0x379945=inspectBuiltinSkill();console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)]('\x20\x20Built-in\x20Skill')),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e6)+(_0x379945['state']==='current'?a32_0x288962[_0x38ea20(0x1b8)]('✓\x20current'):a32_0x288962[_0x38ea20(0x1fa)]('✗\x20'+_0x379945[_0x38ea20(0x1bb)]))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1f3)+_0x379945[_0x38ea20(0x1e9)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x379945[_0x38ea20(0x1d7)]||a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1d9)))),console['log'](_0x38ea20(0x1d6)+(_0x379945['installedPath']||a32_0x288962[_0x38ea20(0x1e8)]('(not\x20found)')));_0x379945[_0x38ea20(0x1bb)]!==_0x38ea20(0x200)&&console['log'](_0x38ea20(0x1da)+_0x379945[_0x38ea20(0x1a8)]);_0x379945[_0x38ea20(0x1f9)]&&console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x379945[_0x38ea20(0x1f9)]);console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x1bd))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e)));const _0xda9048=getGlobalConfigPath(),_0x409462=getProjectConfigPath();console['log'](_0x38ea20(0x1e3)+(_0xda9048||a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1cd)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1ed)+(_0x409462||a32_0x288962[_0x38ea20(0x1e8)]('(not\x20found)'))),console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x211))),console[_0x38ea20(0x1c4)](a32_0x288962['gray']('\x20\x20─'[_0x38ea20(0x1ca)](0x1e)));const _0x7ca13f=(_0x309fcc,_0x1f7082)=>{const _0x26ca3b=_0x38ea20;if(!_0x1f7082){console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1e8)](_0x26ca3b(0x1d1)));return;}const _0x1c64ab=inspectCliConfigJsonFile(_0x1f7082);if(_0x1c64ab[_0x26ca3b(0x1f6)]==='ok')console['log']('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1b8)]('✓\x20Valid\x20JSON'));else{if(_0x1c64ab[_0x26ca3b(0x1f6)]===_0x26ca3b(0x1c8))console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fd)](_0x26ca3b(0x1ef)));else _0x1c64ab['status']===_0x26ca3b(0x217)?console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1e8)](_0x26ca3b(0x1d9))):(console['log']('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fa)](_0x26ca3b(0x221))),console['log']('\x20\x20'+''[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fa)](_0x1c64ab[_0x26ca3b(0x1af)])));}};_0x7ca13f(_0x38ea20(0x1eb),_0xda9048),_0x7ca13f(_0x38ea20(0x1ac),_0x409462);const _0xbf9f10=loadRawConfigLayers(),_0x1a5498=[Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)][_0x38ea20(0x20e)](_0xbf9f10['globalConfig'],_0x38ea20(0x1b7))?_0x38ea20(0x1ae):null,Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)][_0x38ea20(0x20e)](_0xbf9f10[_0x38ea20(0x1c6)],_0x38ea20(0x1b7))?_0x38ea20(0x212):null]['filter'](Boolean);_0x1a5498[_0x38ea20(0x1e0)]>0x0&&(console[_0x38ea20(0x1c4)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0x288962[_0x38ea20(0x1fd)]('ignored\x20in\x20'+_0x1a5498[_0x38ea20(0x1b5)]('\x20+\x20')+_0x38ea20(0x1cb))),_0x1a5498[_0x38ea20(0x1d5)](_0x38ea20(0x212))&&console[_0x38ea20(0x1c4)](_0x38ea20(0x207)+CLI_BIN_NAME+_0x38ea20(0x1ad)),_0x1a5498[_0x38ea20(0x1d5)](_0x38ea20(0x1ae))&&console['log'](_0x38ea20(0x1c5)+CLI_BIN_NAME+_0x38ea20(0x1b9)));_0x942b8a&&(console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x206))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)['repeat'](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x1d2))),console['log'](_0x38ea20(0x1e1)+_0x942b8a[_0x38ea20(0x1af)]),Object[_0x38ea20(0x1b4)]['hasOwnProperty']['call'](_0xbf9f10[_0x38ea20(0x1c6)],_0x38ea20(0x214))&&console[_0x38ea20(0x1c4)](_0x38ea20(0x219)+CLI_BIN_NAME+_0x38ea20(0x1e7)),Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)]['call'](_0xbf9f10['globalConfig'],'routing')&&console[_0x38ea20(0x1c4)](_0x38ea20(0x1ea)+CLI_BIN_NAME+_0x38ea20(0x1cf)));_0x491357&&(console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x38ea20(0x1c4)](a32_0x288962['gray'](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console['log'](_0x38ea20(0x21c)+a32_0x288962['red'](_0x38ea20(0x1d2))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e1)+_0x491357['message']),Object['prototype']['hasOwnProperty'][_0x38ea20(0x20e)](_0xbf9f10[_0x38ea20(0x1c6)],'region')&&console[_0x38ea20(0x1c4)](_0x38ea20(0x219)+CLI_BIN_NAME+_0x38ea20(0x1cc)),Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)]['call'](_0xbf9f10[_0x38ea20(0x1b0)],'region')&&console['log'](_0x38ea20(0x1ea)+CLI_BIN_NAME+_0x38ea20(0x213)));console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1f7))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console['log'](_0x38ea20(0x203)+(_0x47c900[_0x38ea20(0x1b3)]||a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x205)))),console[_0x38ea20(0x1c4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x146398??a32_0x288962['red'](_0x38ea20(0x1c7)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x210)+_0x47c900[_0x38ea20(0x20d)]),console[_0x38ea20(0x1c4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x47c900[_0x38ea20(0x1f5)]||a32_0x288962[_0x38ea20(0x1e8)]('(none)'))),console['log'](_0x38ea20(0x1fe)+(_0x47c900[_0x38ea20(0x1b6)]||a32_0x288962['gray'](_0x38ea20(0x209)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x202)+(_0x47c900[_0x38ea20(0x1df)]||a32_0x288962['gray'](_0x38ea20(0x1bc)+DEFAULT_CONFIG_VALUES[_0x38ea20(0x1df)]+')'))),console[_0x38ea20(0x1c4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47c900[_0x38ea20(0x20c)]??a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1ee)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x208)+_0x47c900[_0x38ea20(0x1c9)]),console[_0x38ea20(0x1c4)](_0x38ea20(0x1a6)+_0x47c900[_0x38ea20(0x1ff)]),console[_0x38ea20(0x1c4)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x38ea20(0x1de)]),console[_0x38ea20(0x1c4)](_0x38ea20(0x1c3)+(_0x47c900[_0x38ea20(0x1b2)]?a32_0x288962['green'](_0x38ea20(0x1c1)+_0x47c900[_0x38ea20(0x1b2)][_0x38ea20(0x1e0)]+')'):a32_0x288962[_0x38ea20(0x1e8)]('(none)'))),console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1ec))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)['repeat'](0x1e)));_0x942b8a||_0x491357?console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x1a7))):(console[_0x38ea20(0x1c4)](_0x38ea20(0x1f4)+getApiDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x201)+getUserDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1be)+getRuntimeDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1c0)+getSkillDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1fc)+(getKbServiceDomain()??'not\x20configured')));console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1b1))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e)));const _0x16239e=inspectServiceRegistry();console['log'](_0x38ea20(0x1d3)+_0x16239e['registryPath']),console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+formatServiceRegistryStatus(_0x16239e)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16239e['serviceCount']),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16239e[_0x38ea20(0x1d0)]);for(const _0x50c1fc of _0x16239e[_0x38ea20(0x1fb)]){console[_0x38ea20(0x1c4)]('\x20\x20'+(_0x50c1fc['serviceCode']+':')[_0x38ea20(0x20a)](0x11)+'\x20'+(_0x50c1fc['name']||a32_0x288962['gray'](_0x38ea20(0x204)))+'\x20('+_0x50c1fc[_0x38ea20(0x1d0)]+_0x38ea20(0x1e5)),console['log']('\x20\x20'+''[_0x38ea20(0x20a)](0x11)+'\x20Imported\x20from:\x20'+_0x50c1fc['source'][_0x38ea20(0x20b)]);}return console[_0x38ea20(0x1c4)](),console['log'](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x1ab))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x216)+a32_0x288962[_0x38ea20(0x1b8)](AUTH_MODE[_0x38ea20(0x1de)]+'\x20(accessKey)')),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e2)+a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x20f))),console[_0x38ea20(0x1c4)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3d2937){const _0x49e59c=a32_0x5b1f;if(_0x3d2937['status']==='ok')return a32_0x288962[_0x49e59c(0x1b8)](_0x49e59c(0x1db));if(_0x3d2937[_0x49e59c(0x1f6)]===_0x49e59c(0x217))return a32_0x288962[_0x49e59c(0x1e8)](_0x49e59c(0x1cd));if(_0x3d2937[_0x49e59c(0x1f6)]===_0x49e59c(0x1c8))return a32_0x288962[_0x49e59c(0x1fd)](_0x49e59c(0x1dc));return a32_0x288962['red'](_0x49e59c(0x1d2)+(_0x3d2937[_0x49e59c(0x1af)]?':\x20'+_0x3d2937[_0x49e59c(0x1af)]:''));}function a32_0x5b1f(_0x51ce39,_0x202b72){_0x51ce39=_0x51ce39-0x1a5;const _0x2fc29e=a32_0x2fc2();let _0x5b1f3f=_0x2fc29e[_0x51ce39];return _0x5b1f3f;}export const doctorDefinition={'service':a32_0x19c423(0x21e),'command':a32_0x19c423(0x1d8),'description':a32_0x19c423(0x1aa),'risk':a32_0x19c423(0x1f8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a32_0x2fc2(){const _0x322ab1=['\x20\x20Service\x20Tree','accessKey','appCode','prototype','join','currentApp','inherit','green','\x20config\x20delete\x20inherit\x20--global','167408nrMxEp','state','(default:\x20','\x20\x20Config\x20Files','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(set,\x20length=','1824480ajMjbE','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Repair\x20global:\x20\x20\x20\x20','projectConfig','(invalid)','empty','riskLevel','repeat','\x20config','\x20config\x20delete\x20region','(not\x20found)','1325IlDzrI','\x20config\x20delete\x20routing\x20--global','commandCount','(no\x20file)','✗\x20Invalid','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','bold','includes','\x20\x20Installed\x20Path:\x20\x20','skillVersion','check','(missing)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','⚠\x20Empty','\x20doctor','ClientAk','format','length','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8284131uSQILj','\x20commands)','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','gray','packageVersion','\x20\x20Repair\x20global:\x20\x20\x20','Global','\x20\x20API\x20Endpoints','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','⚠\x20Empty\x20(treated\x20as\x20{})','12732beQYAM','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','status','\x20\x20Merged\x20Config','read','reason','red','services','\x20\x20kbServiceDomain:\x20','yellow','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','verbose','current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','(not\x20set)','\x20\x20Routing\x20Configuration','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(none)','padEnd','path','pageSize','locale','call','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','project','\x20config\x20init','routing','6737076xzFABA','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','294YPqRXN','\x20\x20Repair\x20project:\x20\x20','1753BUerfz','788guiRbs','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','32618940XRwwFf','doctor','raw','region','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','repairCommand','hasOwnProperty','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Auth','Project','\x20config\x20delete\x20inherit','global','message','globalConfig'];a32_0x2fc2=function(){return _0x322ab1;};return a32_0x2fc2();}
@@ -1 +1 @@
1
- const a33_0x1cf5bc=a33_0x3265;function a33_0x3265(_0x2cbe4d,_0x47e4a3){_0x2cbe4d=_0x2cbe4d-0x1be;const _0x5db669=a33_0x5db6();let _0x326519=_0x5db669[_0x2cbe4d];return _0x326519;}(function(_0xd9bcdf,_0x3276ab){const _0x59e466=a33_0x3265,_0x23a6bb=_0xd9bcdf();while(!![]){try{const _0x3e22d9=-parseInt(_0x59e466(0x1c2))/0x1*(parseInt(_0x59e466(0x1cc))/0x2)+parseInt(_0x59e466(0x1be))/0x3*(parseInt(_0x59e466(0x1da))/0x4)+-parseInt(_0x59e466(0x1c8))/0x5+-parseInt(_0x59e466(0x1cb))/0x6*(parseInt(_0x59e466(0x1ce))/0x7)+-parseInt(_0x59e466(0x1d1))/0x8*(-parseInt(_0x59e466(0x1e1))/0x9)+-parseInt(_0x59e466(0x1dd))/0xa+parseInt(_0x59e466(0x1d6))/0xb*(-parseInt(_0x59e466(0x1e2))/0xc);if(_0x3e22d9===_0x3276ab)break;else _0x23a6bb['push'](_0x23a6bb['shift']());}catch(_0x61cf6e){_0x23a6bb['push'](_0x23a6bb['shift']());}}}(a33_0x5db6,0x9af20));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x5db6(){const _0x2f6e54=['8hcgnvA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','query-url','appCode','string','11YAFRCH','path','upload','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2820CCPaIo','POST','filePath','666740UTlsPy','\x20to\x20runtime\x20app\x20','filePath\x20is\x20required.','long-term','6883506dcTRGV','2661144WhAtKg','trim','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','download','4809PIGAxR','build','/client/uploadFile','validation','145FEuiQT','File','read','file','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1582155JeTxKt','Uploaded\x20file:\x20','description','834uNUSNe','3118BkIwtG','filepath','21623YqzVsT','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','boolean'];a33_0x5db6=function(){return _0x2f6e54;};return a33_0x5db6();}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1cf5bc(0x1c5),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x1cf5bc(0x1cd),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':a33_0x1cf5bc(0x1d2)},DOWNLOAD_FLAG={'name':a33_0x1cf5bc(0x1e5),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1e4)},LONG_TERM_FLAG={'name':a33_0x1cf5bc(0x1e0),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1cf)};function requireFilePath(_0x35ab47){const _0x592821=a33_0x1cf5bc,_0x55144b=_0x35ab47[_0x592821(0x1e3)]();if(!_0x55144b)throw CliErrors[_0x592821(0x1c1)](_0x592821(0x1df));return _0x55144b;}const fileUpload={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d8),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x1cf5bc(0x1c4),'flags':[FILE_FLAG],async 'dryRun'(_0x562ea9){const _0x1862a7=a33_0x1cf5bc,_0x4abfb4=requireRuntimeUploadFile(_0x562ea9[_0x1862a7(0x1c6)](_0x1862a7(0x1c5)),_0x1862a7(0x1c3));return dryRun(_0x1862a7(0x1db),_0x1862a7(0x1c0))['body']({'appCode':_0x562ea9['appCode'],'multipart':{'file':_0x4abfb4}})[_0x1862a7(0x1ca)]('Preview:\x20upload\x20'+_0x4abfb4[_0x1862a7(0x1d7)]+_0x1862a7(0x1de)+_0x562ea9[_0x1862a7(0x1d4)])[_0x1862a7(0x1bf)]();},async 'execute'(_0xfbbe5e){const _0x5b63fe=a33_0x1cf5bc,_0x5b59ff=requireRuntimeUploadFile(_0xfbbe5e['str'](_0x5b63fe(0x1c5)),'File'),_0x176867=await uploadRuntimeFile(_0xfbbe5e['appCode'],_0x5b59ff[_0x5b63fe(0x1d7)]);return{'ok':!![],'data':_0x176867,'message':_0x176867[_0x5b63fe(0x1dc)]?_0x5b63fe(0x1c9)+_0x176867[_0x5b63fe(0x1dc)]+_0x5b63fe(0x1c7):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d3),'description':a33_0x1cf5bc(0x1d9),'risk':a33_0x1cf5bc(0x1c4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x2d56a4){const _0x44f916=a33_0x1cf5bc,_0x209ebc=requireFilePath(_0x2d56a4[_0x44f916(0x1c6)](_0x44f916(0x1cd))),_0x1e68ee=await queryRuntimeFileUrl(_0x209ebc,{'download':_0x2d56a4['bool'](_0x44f916(0x1e5)),'longTerm':_0x2d56a4['bool']('long-term')});return{'ok':!![],'data':_0x1e68ee};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a33_0x40ffcd=a33_0x10e0;(function(_0x58e747,_0x2d369e){const _0xfb2216=a33_0x10e0,_0x2d55e6=_0x58e747();while(!![]){try{const _0x4d726d=parseInt(_0xfb2216(0x17d))/0x1*(-parseInt(_0xfb2216(0x160))/0x2)+-parseInt(_0xfb2216(0x161))/0x3+parseInt(_0xfb2216(0x184))/0x4+-parseInt(_0xfb2216(0x172))/0x5*(-parseInt(_0xfb2216(0x171))/0x6)+parseInt(_0xfb2216(0x164))/0x7+-parseInt(_0xfb2216(0x163))/0x8+-parseInt(_0xfb2216(0x16f))/0x9*(-parseInt(_0xfb2216(0x177))/0xa);if(_0x4d726d===_0x2d369e)break;else _0x2d55e6['push'](_0x2d55e6['shift']());}catch(_0x36e947){_0x2d55e6['push'](_0x2d55e6['shift']());}}}(a33_0x5b35,0x55bae));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a33_0x10e0(_0x39d0da,_0x279bcf){_0x39d0da=_0x39d0da-0x15f;const _0x5b35e8=a33_0x5b35();let _0x10e01d=_0x5b35e8[_0x39d0da];return _0x10e01d;}import{dryRun}from'../../framework/dryrun.js';function a33_0x5b35(){const _0x4e0ca6=['filePath\x20is\x20required.','description','File','upload','4518dVDKZu','read','3613182MbIKOn','5ylnqCb','bool','str','POST','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','7790ngjmaq','filepath','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','build','path','filePath','137633gxaQpR','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','validation','body','trim','Path\x20to\x20the\x20local\x20file\x20to\x20upload','645296VAhZQW','Preview:\x20upload\x20','boolean','10UDNRLf','282378IydvdR','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','5341920PuAleW','4526214ukPdoO','long-term','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','appCode','file','query-url','/client/uploadFile'];a33_0x5b35=function(){return _0x4e0ca6;};return a33_0x5b35();}const FILE_FLAG={'name':'file','type':'string','required':!![],'description':a33_0x40ffcd(0x183)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a33_0x40ffcd(0x162)},DOWNLOAD_FLAG={'name':a33_0x40ffcd(0x17f),'type':a33_0x40ffcd(0x15f),'description':a33_0x40ffcd(0x166)},LONG_TERM_FLAG={'name':a33_0x40ffcd(0x165),'type':a33_0x40ffcd(0x15f),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4cfd86){const _0x1ad867=a33_0x40ffcd,_0x2c9f9a=_0x4cfd86[_0x1ad867(0x182)]();if(!_0x2c9f9a)throw CliErrors[_0x1ad867(0x180)](_0x1ad867(0x16b));return _0x2c9f9a;}const fileUpload={'service':'file','command':a33_0x40ffcd(0x16e),'description':a33_0x40ffcd(0x176),'risk':a33_0x40ffcd(0x170),'flags':[FILE_FLAG],async 'dryRun'(_0x3527ec){const _0x531f1c=a33_0x40ffcd,_0x3dba2c=requireRuntimeUploadFile(_0x3527ec[_0x531f1c(0x174)](_0x531f1c(0x168)),_0x531f1c(0x16d));return dryRun(_0x531f1c(0x175),_0x531f1c(0x16a))[_0x531f1c(0x181)]({'appCode':_0x3527ec[_0x531f1c(0x167)],'multipart':{'file':_0x3dba2c}})[_0x531f1c(0x16c)](_0x531f1c(0x185)+_0x3dba2c['path']+'\x20to\x20runtime\x20app\x20'+_0x3527ec[_0x531f1c(0x167)])[_0x531f1c(0x17a)]();},async 'execute'(_0x1f7529){const _0x52d0c5=a33_0x40ffcd,_0x4e255a=requireRuntimeUploadFile(_0x1f7529[_0x52d0c5(0x174)](_0x52d0c5(0x168)),_0x52d0c5(0x16d)),_0x150d28=await uploadRuntimeFile(_0x1f7529[_0x52d0c5(0x167)],_0x4e255a[_0x52d0c5(0x17b)]);return{'ok':!![],'data':_0x150d28,'message':_0x150d28[_0x52d0c5(0x17c)]?'Uploaded\x20file:\x20'+_0x150d28[_0x52d0c5(0x17c)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x52d0c5(0x17e)};}},fileQueryUrl={'service':a33_0x40ffcd(0x168),'command':a33_0x40ffcd(0x169),'description':a33_0x40ffcd(0x179),'risk':a33_0x40ffcd(0x170),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5accf1){const _0x4e01a4=a33_0x40ffcd,_0x60df03=requireFilePath(_0x5accf1[_0x4e01a4(0x174)](_0x4e01a4(0x178))),_0x2013d1=await queryRuntimeFileUrl(_0x60df03,{'download':_0x5accf1[_0x4e01a4(0x173)](_0x4e01a4(0x17f)),'longTerm':_0x5accf1[_0x4e01a4(0x173)](_0x4e01a4(0x165))});return{'ok':!![],'data':_0x2013d1};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a34_0x33e5(){const _0x153876=['\x20\x20default:\x20','app','defaultApp','env','yes','cwd','Source\x20file\x20not\x20found:\x20','4364uRupcO','\x22.\x20Allowed:\x20','object','Failed\x20to\x20parse\x20source\x20file:\x20','1738940wIXIiG','58BgrfII','string','join','\x20\x20config:\x20\x20','newConfigFileName','2367xxNVRL','log','3368064ZtxXss','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`.','36quGwXS','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','734166PceflY','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','134465GrlWOl','file','Override\x20imported\x20default\x20appcode','boolean','utf8','project','6096bSRnZn','validation','global','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','\x20\x20appcode:\x20','parse','riskLevel','appcode','2469341KyXGtu','apps','message',')\x20instead\x20of\x20project','Override\x20imported\x20default\x20env','Imported\x20from\x20'];a34_0x33e5=function(){return _0x153876;};return a34_0x33e5();}const a34_0x49f4dd=a34_0x1622;(function(_0x40acca,_0x1b63b9){const _0x21bea2=a34_0x1622,_0x439b7a=_0x40acca();while(!![]){try{const _0x239fd8=parseInt(_0x21bea2(0x183))/0x1*(parseInt(_0x21bea2(0x17e))/0x2)+parseInt(_0x21bea2(0x161))/0x3+-parseInt(_0x21bea2(0x15f))/0x4*(parseInt(_0x21bea2(0x163))/0x5)+parseInt(_0x21bea2(0x15d))/0x6+-parseInt(_0x21bea2(0x171))/0x7+-parseInt(_0x21bea2(0x169))/0x8*(-parseInt(_0x21bea2(0x15b))/0x9)+-parseInt(_0x21bea2(0x182))/0xa;if(_0x239fd8===_0x1b63b9)break;else _0x439b7a['push'](_0x439b7a['shift']());}catch(_0x4f4ef5){_0x439b7a['push'](_0x439b7a['shift']());}}}(a34_0x33e5,0x58f2e));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x49f4dd(0x164),'type':'string','description':a34_0x49f4dd(0x160),'required':!![]},{'name':a34_0x49f4dd(0x170),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x165)},{'name':a34_0x49f4dd(0x17a),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x175),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49f4dd(0x16b),'type':a34_0x49f4dd(0x166),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a34_0x49f4dd(0x15a)]+a34_0x49f4dd(0x174),'default':![]},{'name':a34_0x49f4dd(0x17b),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];function a34_0x1622(_0x4cbeaf,_0x46666f){_0x4cbeaf=_0x4cbeaf-0x157;const _0x33e5e9=a34_0x33e5();let _0x162279=_0x33e5e9[_0x4cbeaf];return _0x162279;}export async function runAppImport(_0x52f506){const _0x58c465=a34_0x49f4dd,_0x7d1067=_0x52f506['global']?_0x58c465(0x16b):_0x58c465(0x168),_0x4a22c3=resolveWriteConfigPath(_0x7d1067);await runFromImport(_0x52f506,_0x4a22c3);}async function runFromImport(_0x567cbe,_0x2139b5){const _0x397406=a34_0x49f4dd,_0x29c21f=resolveFilePath(_0x567cbe[_0x397406(0x164)]);if(!existsSync(_0x29c21f))throw CliErrors['validation'](_0x397406(0x17d)+_0x29c21f);const _0x5db2d4=readSourceFile(_0x29c21f),_0x5c844c=convertToRuntimeConfig(_0x5db2d4);_0x567cbe['appcode']&&(_0x5c844c[_0x397406(0x170)]=String(_0x567cbe[_0x397406(0x170)]));_0x567cbe[_0x397406(0x17a)]&&(_0x5c844c['env']=resolveImportEnv(_0x567cbe));if(!_0x5c844c[_0x397406(0x170)])throw CliErrors['validation'](_0x397406(0x162),_0x397406(0x15e));await writeImportConfig(_0x2139b5,_0x5c844c,_0x567cbe),console[_0x397406(0x15c)](_0x397406(0x176)+_0x29c21f),console[_0x397406(0x15c)](_0x397406(0x159)+_0x2139b5),console[_0x397406(0x15c)](_0x397406(0x16d)+_0x5c844c[_0x397406(0x170)]);if(_0x5c844c[_0x397406(0x179)])console['log'](_0x397406(0x177)+_0x5c844c[_0x397406(0x179)]);}function convertToRuntimeConfig(_0x183350){const _0x1fda33=a34_0x49f4dd;if(_0x183350[_0x1fda33(0x172)]&&typeof _0x183350[_0x1fda33(0x172)]===_0x1fda33(0x180))throw CliErrors[_0x1fda33(0x16a)](_0x1fda33(0x16c),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x4e99ca={};for(const _0x3ed6ed of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x183350[_0x3ed6ed]!==undefined&&(_0x4e99ca[_0x3ed6ed]=_0x183350[_0x3ed6ed]);}return!_0x4e99ca[_0x1fda33(0x16f)]&&(_0x4e99ca[_0x1fda33(0x16f)]=DEFAULT_CONFIG_VALUES[_0x1fda33(0x16f)]),_0x4e99ca;}async function writeImportConfig(_0x4fb80a,_0x527659,_0x30e281){const _0x56e370=a34_0x49f4dd;let _0x48bee4={};existsSync(_0x4fb80a)&&!_0x30e281[_0x56e370(0x17b)]&&(_0x48bee4=readConfigFile(_0x4fb80a));for(const [_0x4ca9de,_0x3470f4]of Object['entries'](_0x527659)){_0x3470f4!==undefined&&(_0x48bee4[_0x4ca9de]=_0x3470f4);}if(_0x48bee4[_0x56e370(0x178)])delete _0x48bee4[_0x56e370(0x178)];writeConfigFile(_0x4fb80a,_0x48bee4);}function resolveFilePath(_0x462348){const _0x267896=a34_0x49f4dd;return isAbsolute(_0x462348)?_0x462348:resolve(process[_0x267896(0x17c)](),_0x462348);}function readSourceFile(_0x144ed6){const _0x4b5bd8=a34_0x49f4dd;try{const _0x35979f=readFileSync(_0x144ed6,{'encoding':_0x4b5bd8(0x167)});return JSON[_0x4b5bd8(0x16e)](_0x35979f);}catch(_0x2bc25f){throw CliErrors[_0x4b5bd8(0x16a)](_0x4b5bd8(0x181)+_0x2bc25f[_0x4b5bd8(0x173)]);}}function resolveImportEnv(_0x20ee77){const _0x4f7029=a34_0x49f4dd,_0x33a89b=_0x20ee77[_0x4f7029(0x17a)];if(_0x33a89b===undefined||_0x33a89b==='')return DEFAULT_CONFIG_VALUES[_0x4f7029(0x17a)];if(!RUNTIME_ENV_VALUES['includes'](_0x33a89b))throw CliErrors[_0x4f7029(0x16a)]('Invalid\x20env\x20\x22'+_0x33a89b+_0x4f7029(0x17f)+RUNTIME_ENV_VALUES[_0x4f7029(0x158)](',\x20'));return _0x33a89b;}
1
+ const a34_0x43cf52=a34_0x10af;(function(_0x1502e8,_0x30f79e){const _0x53ec57=a34_0x10af,_0x103427=_0x1502e8();while(!![]){try{const _0x4fef93=parseInt(_0x53ec57(0xbb))/0x1+parseInt(_0x53ec57(0xa6))/0x2*(-parseInt(_0x53ec57(0xb5))/0x3)+parseInt(_0x53ec57(0xa7))/0x4*(-parseInt(_0x53ec57(0x9e))/0x5)+parseInt(_0x53ec57(0xa3))/0x6*(parseInt(_0x53ec57(0xa1))/0x7)+-parseInt(_0x53ec57(0xb2))/0x8+-parseInt(_0x53ec57(0x9a))/0x9+-parseInt(_0x53ec57(0x9d))/0xa*(-parseInt(_0x53ec57(0xb6))/0xb);if(_0x4fef93===_0x30f79e)break;else _0x103427['push'](_0x103427['shift']());}catch(_0x420c75){_0x103427['push'](_0x103427['shift']());}}}(a34_0xcae8,0xa3a02));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 a34_0xcae8(){const _0x1e05ac=['validation','object','6615648ALQwSg','string','Imported\x20from\x20','110cfYata','29770wgIfxn','env','join','473634kHRvKa','app','24Bcbofs','parse','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','3146PqokKX','556EpjMIY',')\x20instead\x20of\x20project','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','boolean','cwd','appcode','\x20\x20default:\x20','includes','yes','Source\x20file\x20not\x20found:\x20','log','8418272rXZXgk','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Invalid\x20env\x20\x22','1953tcXIdp','2872991iWRLDR','global','Skip\x20confirmation\x20when\x20overwriting','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','\x20\x20config:\x20\x20','1165556cdilpH','apps','message','newConfigFileName','\x20\x20appcode:\x20','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`.','Failed\x20to\x20parse\x20source\x20file:\x20','riskLevel','entries','Override\x20imported\x20default\x20env','defaultApp'];a34_0xcae8=function(){return _0x1e05ac;};return a34_0xcae8();}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a34_0x43cf52(0x9b),'description':a34_0x43cf52(0xb9),'required':!![]},{'name':a34_0x43cf52(0xac),'type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a34_0x43cf52(0x9b),'description':a34_0x43cf52(0xc4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x43cf52(0xb7),'type':a34_0x43cf52(0xaa),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a34_0x43cf52(0xbe)]+a34_0x43cf52(0xa8),'default':![]},{'name':a34_0x43cf52(0xaf),'type':'boolean','description':a34_0x43cf52(0xb8),'default':![]}];export async function runAppImport(_0x14fc9e){const _0x3ddf3d=a34_0x43cf52,_0xb932f3=_0x14fc9e['global']?_0x3ddf3d(0xb7):'project',_0x23865d=resolveWriteConfigPath(_0xb932f3);await runFromImport(_0x14fc9e,_0x23865d);}async function runFromImport(_0x16695a,_0x1e9acf){const _0x48309d=a34_0x43cf52,_0x4311a4=resolveFilePath(_0x16695a['file']);if(!existsSync(_0x4311a4))throw CliErrors[_0x48309d(0x98)](_0x48309d(0xb0)+_0x4311a4);const _0x8841bb=readSourceFile(_0x4311a4),_0x39b5f0=convertToRuntimeConfig(_0x8841bb);_0x16695a[_0x48309d(0xac)]&&(_0x39b5f0[_0x48309d(0xac)]=String(_0x16695a[_0x48309d(0xac)]));_0x16695a[_0x48309d(0x9f)]&&(_0x39b5f0['env']=resolveImportEnv(_0x16695a));if(!_0x39b5f0[_0x48309d(0xac)])throw CliErrors[_0x48309d(0x98)](_0x48309d(0xa5),_0x48309d(0xc0));await writeImportConfig(_0x1e9acf,_0x39b5f0,_0x16695a),console[_0x48309d(0xb1)](_0x48309d(0x9c)+_0x4311a4),console[_0x48309d(0xb1)](_0x48309d(0xba)+_0x1e9acf),console[_0x48309d(0xb1)](_0x48309d(0xbf)+_0x39b5f0['appcode']);if(_0x39b5f0[_0x48309d(0xc5)])console[_0x48309d(0xb1)](_0x48309d(0xad)+_0x39b5f0[_0x48309d(0xc5)]);}function a34_0x10af(_0x7fb538,_0x4708b2){_0x7fb538=_0x7fb538-0x98;const _0xcae884=a34_0xcae8();let _0x10af61=_0xcae884[_0x7fb538];return _0x10af61;}function convertToRuntimeConfig(_0x2517d3){const _0x2e6937=a34_0x43cf52;if(_0x2517d3[_0x2e6937(0xbc)]&&typeof _0x2517d3[_0x2e6937(0xbc)]===_0x2e6937(0x99))throw CliErrors['validation'](_0x2e6937(0xa9),_0x2e6937(0xb3));const _0x220251={};for(const _0x1864df of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2517d3[_0x1864df]!==undefined&&(_0x220251[_0x1864df]=_0x2517d3[_0x1864df]);}return!_0x220251['riskLevel']&&(_0x220251[_0x2e6937(0xc2)]=DEFAULT_CONFIG_VALUES[_0x2e6937(0xc2)]),_0x220251;}async function writeImportConfig(_0x2fe39e,_0x3882d0,_0x4abab9){const _0x9e7bba=a34_0x43cf52;let _0x5e09d7={};existsSync(_0x2fe39e)&&!_0x4abab9['yes']&&(_0x5e09d7=readConfigFile(_0x2fe39e));for(const [_0x2febfe,_0xc77e63]of Object[_0x9e7bba(0xc3)](_0x3882d0)){_0xc77e63!==undefined&&(_0x5e09d7[_0x2febfe]=_0xc77e63);}if(_0x5e09d7['app'])delete _0x5e09d7[_0x9e7bba(0xa2)];writeConfigFile(_0x2fe39e,_0x5e09d7);}function resolveFilePath(_0x321b94){const _0x5d81d1=a34_0x43cf52;return isAbsolute(_0x321b94)?_0x321b94:resolve(process[_0x5d81d1(0xab)](),_0x321b94);}function readSourceFile(_0x4cac38){const _0x3ab170=a34_0x43cf52;try{const _0x3c9595=readFileSync(_0x4cac38,{'encoding':'utf8'});return JSON[_0x3ab170(0xa4)](_0x3c9595);}catch(_0x5234a7){throw CliErrors[_0x3ab170(0x98)](_0x3ab170(0xc1)+_0x5234a7[_0x3ab170(0xbd)]);}}function resolveImportEnv(_0x906cef){const _0x1ac6fb=a34_0x43cf52,_0x59b473=_0x906cef[_0x1ac6fb(0x9f)];if(_0x59b473===undefined||_0x59b473==='')return DEFAULT_CONFIG_VALUES[_0x1ac6fb(0x9f)];if(!RUNTIME_ENV_VALUES[_0x1ac6fb(0xae)](_0x59b473))throw CliErrors['validation'](_0x1ac6fb(0xb4)+_0x59b473+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x1ac6fb(0xa0)](',\x20'));return _0x59b473;}
@@ -0,0 +1,3 @@
1
+ import type { IssueReportContext } from "@lovrabet/cli-framework";
2
+ import type { RuntimeContext } from "../../framework/types.js";
3
+ export declare function getIssueReportContext(ctx: RuntimeContext, dryRun: boolean): Promise<IssueReportContext>;
@@ -0,0 +1 @@
1
+ function a35_0x3b03(){const _0x1af19c=['name','appCode','38866zuVJLY','userId','5689701TyHiFS','54YhJDzH','3pufNRu','300445meKsVR','4234044dQFMFM','tenantCode','@lovrabet/lovrabet-cli','nickName','14213023LCJAuE','mergedCli','5CBNNPO','264nLwTMh','26814144mCDjxJ','email','10aSalOJ','156576CwWlkL','envName'];a35_0x3b03=function(){return _0x1af19c;};return a35_0x3b03();}(function(_0x2096a1,_0x32f415){const _0x11be6a=a35_0x4d11,_0x4c494d=_0x2096a1();while(!![]){try{const _0x242e49=-parseInt(_0x11be6a(0xa2))/0x1*(-parseInt(_0x11be6a(0xab))/0x2)+parseInt(_0x11be6a(0xaf))/0x3*(-parseInt(_0x11be6a(0x9c))/0x4)+-parseInt(_0x11be6a(0xb0))/0x5*(parseInt(_0x11be6a(0xae))/0x6)+parseInt(_0x11be6a(0xa7))/0x7*(-parseInt(_0x11be6a(0xa3))/0x8)+parseInt(_0x11be6a(0xad))/0x9*(-parseInt(_0x11be6a(0xa6))/0xa)+parseInt(_0x11be6a(0xa0))/0xb+parseInt(_0x11be6a(0xa4))/0xc;if(_0x242e49===_0x32f415)break;else _0x4c494d['push'](_0x4c494d['shift']());}catch(_0x1de0d5){_0x4c494d['push'](_0x4c494d['shift']());}}}(a35_0x3b03,0x9fb2d));function a35_0x4d11(_0x103e1e,_0x18aca6){_0x103e1e=_0x103e1e-0x9c;const _0x3b0382=a35_0x3b03();let _0x4d1136=_0x3b0382[_0x103e1e];return _0x4d1136;}import{platform,release,arch}from'node:os';import{getLoginUserInfo}from'../../core/api-client.js';import{getCliVersion}from'../../utils/version.js';export async function getIssueReportContext(_0x4d5984,_0x381016){const _0x3fe601=a35_0x4d11,_0x4d40c7=_0x381016?undefined:await getLoginUserInfo();return{'serviceName':_0x3fe601(0x9e),'serviceVersion':getCliVersion(),'environment':_0x4d5984[_0x3fe601(0xa8)]??'production','appCode':_0x4d5984['appCode']||_0x4d5984[_0x3fe601(0xa1)]?.[_0x3fe601(0xaa)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x4d40c7?{'id':String(_0x4d40c7['id']??_0x4d40c7[_0x3fe601(0xac)]??''),'username':_0x4d40c7['username']??_0x4d40c7['userName']??_0x4d40c7['loginName'],'nickname':_0x4d40c7['nickname']??_0x4d40c7[_0x3fe601(0x9f)]??_0x4d40c7[_0x3fe601(0xa9)]??undefined,'email':_0x4d40c7[_0x3fe601(0xa5)]??undefined,'tenantCode':_0x4d40c7[_0x3fe601(0x9d)]}:undefined};}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const issueDefinitions: CommandDefinition[];
@@ -0,0 +1 @@
1
+ (function(_0x5b260c,_0xcfe299){const _0x32d6a5=a36_0x42af,_0x5a63ba=_0x5b260c();while(!![]){try{const _0xeaa609=parseInt(_0x32d6a5(0x117))/0x1*(-parseInt(_0x32d6a5(0x10f))/0x2)+-parseInt(_0x32d6a5(0x116))/0x3*(parseInt(_0x32d6a5(0x111))/0x4)+-parseInt(_0x32d6a5(0x114))/0x5*(-parseInt(_0x32d6a5(0x112))/0x6)+parseInt(_0x32d6a5(0x110))/0x7+-parseInt(_0x32d6a5(0x115))/0x8*(-parseInt(_0x32d6a5(0x119))/0x9)+parseInt(_0x32d6a5(0x113))/0xa+-parseInt(_0x32d6a5(0x118))/0xb;if(_0xeaa609===_0xcfe299)break;else _0x5a63ba['push'](_0x5a63ba['shift']());}catch(_0x421a92){_0x5a63ba['push'](_0x5a63ba['shift']());}}}(a36_0x1951,0x8a21a));import{issueReport}from'./report.js';function a36_0x42af(_0x21b59a,_0x24107a){_0x21b59a=_0x21b59a-0x10f;const _0x1951d4=a36_0x1951();let _0x42af1a=_0x1951d4[_0x21b59a];return _0x42af1a;}export const issueDefinitions=[issueReport];function a36_0x1951(){const _0x8d35e8=['4701788nWYjVX','4GoQFXF','8106HsHKaG','5439170pUgiOl','645lRcUpr','8229608ymSASF','435432ETofhf','397KfvIBy','10054528VegRoX','9yhLkeE','3998sQInOr'];a36_0x1951=function(){return _0x8d35e8;};return a36_0x1951();}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const issueReport: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a37_0x3f5a56=a37_0xdf22;(function(_0x4ecfca,_0x26a530){const _0x3fa865=a37_0xdf22,_0x4fed89=_0x4ecfca();while(!![]){try{const _0x2ff6f0=-parseInt(_0x3fa865(0xdf))/0x1*(parseInt(_0x3fa865(0xbb))/0x2)+-parseInt(_0x3fa865(0xe5))/0x3+parseInt(_0x3fa865(0xcb))/0x4+-parseInt(_0x3fa865(0xe4))/0x5*(-parseInt(_0x3fa865(0xda))/0x6)+-parseInt(_0x3fa865(0xba))/0x7+parseInt(_0x3fa865(0xd0))/0x8*(parseInt(_0x3fa865(0xd8))/0x9)+-parseInt(_0x3fa865(0xc7))/0xa*(parseInt(_0x3fa865(0xea))/0xb);if(_0x2ff6f0===_0x26a530)break;else _0x4fed89['push'](_0x4fed89['shift']());}catch(_0x445e35){_0x4fed89['push'](_0x4fed89['shift']());}}}(a37_0x3a35,0x61dba));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG=a37_0x3f5a56(0xcd);export const issueReport={'service':a37_0x3f5a56(0xd5),'command':'report','description':a37_0x3f5a56(0xe0),'risk':'write','confirmationDescription':a37_0x3f5a56(0xd6),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0x3f5a56(0xd3),'flags':[{'name':a37_0x3f5a56(0xb4),'type':'string','required':!![],'description':a37_0x3f5a56(0xc0)},{'name':a37_0x3f5a56(0xe9),'type':'string','description':a37_0x3f5a56(0xd1)},{'name':DESCRIPTION_FILE_FLAG,'type':a37_0x3f5a56(0xe8),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x2a076b){const _0x88fa71=a37_0x3f5a56,_0x4e0fa0=_0x2a076b['str'](_0x88fa71(0xb4))[_0x88fa71(0xd4)](),_0x14baaf=_0x2a076b[_0x88fa71(0xb7)](_0x88fa71(0xe9))[_0x88fa71(0xd4)](),_0x5e29fd=_0x2a076b[_0x88fa71(0xb7)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4e0fa0)throw CliErrors[_0x88fa71(0xce)](_0x88fa71(0xb4),_0x88fa71(0xe6));const _0x3e9833=_0x14baaf[_0x88fa71(0xe3)]>0x0,_0x3ad57d=_0x5e29fd[_0x88fa71(0xe3)]>0x0;if(_0x3e9833===_0x3ad57d)throw CliErrors['validation'](_0x88fa71(0xb5),_0x88fa71(0xc4));if(_0x3ad57d){const _0x5b85f4=resolve(process[_0x88fa71(0xb8)](),_0x5e29fd);if(!existsSync(_0x5b85f4))throw CliErrors[_0x88fa71(0xe7)](_0x88fa71(0xbf)+_0x5b85f4);}},async 'dryRun'(_0x21cd62){const _0x253406=a37_0x3f5a56,_0x446fa7=await prepareIssueReport(_0x21cd62,!![]);return{'method':_0x253406(0xc8),'url':'otel://'+_0x446fa7[_0x253406(0xc6)]+'/'+_0x446fa7[_0x253406(0xd9)],'body':{'traceName':_0x446fa7[_0x253406(0xc6)],'spanName':_0x446fa7[_0x253406(0xd9)],'logData':_0x446fa7[_0x253406(0xc1)]},'description':[_0x253406(0xdd),_0x253406(0xbd)+_0x446fa7[_0x253406(0xd2)],_0x446fa7[_0x253406(0xcf)]?'descriptionFile:\x20'+_0x446fa7[_0x253406(0xcf)]:null,_0x446fa7[_0x253406(0xc5)][_0x253406(0xd7)]?_0x253406(0xbc)+_0x446fa7[_0x253406(0xc5)][_0x253406(0xcc)]+'\x20bytes':null,_0x446fa7[_0x253406(0xc5)]['redactionCount']>0x0?_0x253406(0xc9)+_0x446fa7[_0x253406(0xc5)][_0x253406(0xdb)]+'\x20('+_0x446fa7['sanitize'][_0x253406(0xdc)][_0x253406(0xc2)](',\x20')+')':null][_0x253406(0xe2)](Boolean)[_0x253406(0xc2)]('\x0a')};},async 'execute'(_0x5132b1){const _0x43afa0=a37_0x3f5a56,_0x409b11=await prepareIssueReport(_0x5132b1,![]);return{'ok':!![],'message':_0x409b11['sanitize'][_0x43afa0(0xdb)]||_0x409b11['sanitize']['truncated']?'Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)':'Issue\x20log\x20submitted','data':{'traceName':_0x409b11[_0x43afa0(0xc6)],'spanName':_0x409b11[_0x43afa0(0xd9)],'logDataKeys':Object[_0x43afa0(0xbe)](_0x409b11[_0x43afa0(0xc1)]),'issue':{'title':_0x409b11[_0x43afa0(0xb4)],'descriptionLength':_0x409b11[_0x43afa0(0xe9)][_0x43afa0(0xe3)],'descriptionSource':_0x409b11['descriptionSource'],..._0x409b11[_0x43afa0(0xcf)]?{'descriptionFile':_0x409b11[_0x43afa0(0xcf)]}:{},'sanitize':{'originalBytes':_0x409b11[_0x43afa0(0xc5)][_0x43afa0(0xcc)],'truncated':_0x409b11[_0x43afa0(0xc5)][_0x43afa0(0xd7)],'redactions':_0x409b11['sanitize'][_0x43afa0(0xdb)],'redactionKinds':_0x409b11['sanitize'][_0x43afa0(0xdc)]}}}};}};async function prepareIssueReport(_0x5a90d9,_0x1e3017){const _0x3826cd=a37_0x3f5a56;await issueReport[_0x3826cd(0xe1)](_0x5a90d9);const _0x4437fe=_0x5a90d9[_0x3826cd(0xb7)](DESCRIPTION_FILE_FLAG)[_0x3826cd(0xd4)](),_0x498c44=_0x4437fe?resolve(process[_0x3826cd(0xb8)](),_0x4437fe):undefined;let _0x2d9846=_0x5a90d9[_0x3826cd(0xb7)](_0x3826cd(0xe9));if(_0x498c44)try{_0x2d9846=await readFile(_0x498c44,_0x3826cd(0xb2));}catch{throw CliErrors['validation'](_0x3826cd(0xb3)+_0x498c44);}if(!_0x2d9846[_0x3826cd(0xd4)]())throw CliErrors[_0x3826cd(0xe7)](_0x3826cd(0xb6));const _0x297f30=await getIssueReportContext(_0x5a90d9,_0x1e3017);try{const _0x1e5690=await reportIssue({'title':_0x5a90d9['str']('title'),'description':_0x2d9846,'context':_0x297f30,'dryRun':_0x1e3017});return{..._0x1e5690,'descriptionSource':_0x498c44?_0x3826cd(0xb9):'inline','descriptionFilePath':_0x498c44};}catch(_0x33d2e5){throw CliErrors['apiError'](_0x3826cd(0xde)+(_0x33d2e5 instanceof Error?_0x33d2e5[_0x3826cd(0xca)]:String(_0x33d2e5)),_0x3826cd(0xc3));}}function a37_0xdf22(_0x264ba7,_0x51f791){_0x264ba7=_0x264ba7-0xb2;const _0x3a3582=a37_0x3a35();let _0xdf22e0=_0x3a3582[_0x264ba7];return _0xdf22e0;}function a37_0x3a35(){const _0x253df7=['string','description','22KVOtwc','utf8','Cannot\x20read\x20issue\x20description\x20file:\x20','title','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Issue\x20description\x20cannot\x20be\x20empty.','str','cwd','file','1425648bhmztV','46ACVNJY','truncated:\x20original\x20','descriptionSource:\x20','keys','File\x20not\x20found:\x20','One-line\x20issue\x20summary','logData','join','Check\x20your\x20login\x20and\x20network\x20connectivity.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','sanitize','traceName','533300YeWDvH','POST','redactions:\x20','message','593588rSRGsi','originalBytes','description-file','flagMissing','descriptionFilePath','4231568kHjNlI','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','descriptionSource','compress','trim','issue','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','truncated','9Xvkpqd','spanName','586146GVstDR','redactionCount','redactionKinds','Submit\x20a\x20problem\x20log','Failed\x20to\x20submit\x20issue\x20log:\x20','438OYFJKK','Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','validate','filter','length','15YpugZX','747576XmYhGD','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','validation'];a37_0x3a35=function(){return _0x253df7;};return a37_0x3a35();}
@@ -1 +1 @@
1
- const a35_0x124643=a35_0x2c29;function a35_0x336b(){const _0x48d655=['858290uAWUCv','120020Gedbsh','Personal\x20knowledge-base\x20entry\x20ID','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','topk','utf8','3vHpYzr','accessKey','method','appCode','Search\x20query\x20is\x20required.','validation','bool','parse','title','query','list','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','isFile','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','string','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','description','str','jsonBody','dryRun','version','write','flag','43911fiLxNH','length','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','detail','search','update','529572BOeala','signal','File\x20is\x20not\x20a\x20regular\x20file:\x20','3mnJYPD','path','780862KyUtcq','kb-service-url','execute','verbose','288hdaATK','updateTime','map','file','build','body','1032756ZXCKJA','content','num','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','createTime','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','create','File\x20not\x20found:\x20','ragErrorMessage','trim','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','11khmtfB','ragStatus','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','103743MGFSpC','read'];a35_0x336b=function(){return _0x48d655;};return a35_0x336b();}(function(_0x47ccdd,_0x446549){const _0x35eb03=a35_0x2c29,_0x1ecc9d=_0x47ccdd();while(!![]){try{const _0x3ae8b2=parseInt(_0x35eb03(0x233))/0x1*(parseInt(_0x35eb03(0x235))/0x2)+-parseInt(_0x35eb03(0x211))/0x3*(parseInt(_0x35eb03(0x1fb))/0x4)+-parseInt(_0x35eb03(0x20c))/0x5+parseInt(_0x35eb03(0x230))/0x6+parseInt(_0x35eb03(0x22a))/0x7+-parseInt(_0x35eb03(0x1f5))/0x8*(parseInt(_0x35eb03(0x209))/0x9)+parseInt(_0x35eb03(0x20b))/0xa*(parseInt(_0x35eb03(0x206))/0xb);if(_0x3ae8b2===_0x446549)break;else _0x1ecc9d['push'](_0x1ecc9d['shift']());}catch(_0xbea78f){_0x1ecc9d['push'](_0x1ecc9d['shift']());}}}(a35_0x336b,0x9fc9c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';function a35_0x2c29(_0x490864,_0x2abd2a){_0x490864=_0x490864-0x1f3;const _0x336b80=a35_0x336b();let _0x2c2973=_0x336b80[_0x490864];return _0x2c2973;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x124643(0x219),'type':a35_0x124643(0x21f),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a35_0x124643(0x1f8),'type':a35_0x124643(0x21f),'required':!![],'description':a35_0x124643(0x21c)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x124643(0x200)},TOPK_FLAG={'name':a35_0x124643(0x20f),'type':'number','description':a35_0x124643(0x221)};function readKnowledgeFile(_0xc7ab3c){const _0x448557=a35_0x124643;if(!_0xc7ab3c)throw CliErrors[_0x448557(0x216)]('File\x20path\x20is\x20required.');if(!existsSync(_0xc7ab3c))throw CliErrors[_0x448557(0x216)](_0x448557(0x202)+_0xc7ab3c);if(!statSync(_0xc7ab3c)[_0x448557(0x21d)]())throw CliErrors[_0x448557(0x216)](_0x448557(0x232)+_0xc7ab3c);return readFileSync(_0xc7ab3c,_0x448557(0x210));}function summarizePersonalItem(_0x35308e){const _0x5a7d37=a35_0x124643;return{'id':_0x35308e['id'],'title':_0x35308e[_0x5a7d37(0x219)],'version':_0x35308e[_0x5a7d37(0x227)],'ragStatus':_0x35308e[_0x5a7d37(0x207)],'ragErrorMessage':_0x35308e[_0x5a7d37(0x203)],'updateTime':_0x35308e[_0x5a7d37(0x1f6)]};}function detailPersonalItem(_0x66e06b){const _0x5e3c05=a35_0x124643;return{'id':_0x66e06b['id'],'appCode':_0x66e06b['appCode'],'scope':_0x66e06b['scope'],'userId':_0x66e06b['userId'],'title':_0x66e06b[_0x5e3c05(0x219)],'content':_0x66e06b[_0x5e3c05(0x1fc)],'version':_0x66e06b[_0x5e3c05(0x227)],'ragStatus':_0x66e06b['ragStatus'],'ragErrorMessage':_0x66e06b['ragErrorMessage'],'createTime':_0x66e06b[_0x5e3c05(0x1ff)],'updateTime':_0x66e06b['updateTime']};}function readTopK(_0x2c0b57){const _0x4b1318=a35_0x124643,_0x32b436=_0x2c0b57['flag'](_0x4b1318(0x20f));if(_0x32b436===undefined||_0x32b436===null||_0x32b436==='')return undefined;const _0x54ebe5=_0x2c0b57[_0x4b1318(0x1fd)](_0x4b1318(0x20f));if(!Number['isSafeInteger'](_0x54ebe5)||_0x54ebe5<0x1||_0x54ebe5>0x32)throw CliErrors['validation']('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x54ebe5;}const kbList={'service':'kb','command':a35_0x124643(0x21b),'description':a35_0x124643(0x205),'risk':a35_0x124643(0x20a),'flags':[VERBOSE_FLAG],async 'execute'(_0x2c9bb6){const _0x23f437=a35_0x124643,_0x45a706=await listPersonalKnowledgeBaseItems(_0x2c9bb6[_0x23f437(0x214)],_0x2c9bb6['signal']);if(_0x2c9bb6[_0x23f437(0x217)](_0x23f437(0x1f4)))return{'ok':!![],'data':{'total':_0x45a706['length'],'items':_0x45a706}};return{'ok':!![],'data':{'total':_0x45a706[_0x23f437(0x22b)],'items':_0x45a706[_0x23f437(0x1f7)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x124643(0x22d),'description':a35_0x124643(0x21e),'risk':'read','flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)}],async 'execute'(_0x5f467c){const _0x2ec9a2=a35_0x124643,_0x5de37f=await getPersonalKnowledgeBaseItem(_0x5f467c['str']('id'),_0x5f467c[_0x2ec9a2(0x214)],_0x5f467c[_0x2ec9a2(0x231)]);return{'ok':!![],'data':detailPersonalItem(_0x5de37f)};}},kbCreate={'service':'kb','command':a35_0x124643(0x201),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x22c),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x1f01e2){const _0x29d740=a35_0x124643,_0x243924=_0x1f01e2[_0x29d740(0x224)](_0x29d740(0x219)),_0x4ef931=readKnowledgeFile(_0x1f01e2['str'](_0x29d740(0x1f8))),_0x118da7=await createPersonalKnowledgeBaseItem(_0x1f01e2[_0x29d740(0x214)],{'title':_0x243924,'content':_0x4ef931},_0x1f01e2['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x118da7),'message':'Created\x20KB\x20entry\x20'+_0x118da7['id']+'\x20('+_0x118da7[_0x29d740(0x219)]+')'};},async 'dryRun'(_0x25e29d){const _0x4bfe81=a35_0x124643,_0x3a91c2=_0x25e29d[_0x4bfe81(0x224)]('title'),_0x45db41=readKnowledgeFile(_0x25e29d[_0x4bfe81(0x224)](_0x4bfe81(0x1f8))),_0x2a9dae=planPersonalKnowledgeWrite(_0x25e29d[_0x4bfe81(0x214)],{'title':_0x3a91c2,'content':_0x45db41});return dryRun(_0x2a9dae[_0x4bfe81(0x213)],_0x2a9dae[_0x4bfe81(0x234)])[_0x4bfe81(0x1fa)](JSON[_0x4bfe81(0x218)](_0x2a9dae[_0x4bfe81(0x225)]))[_0x4bfe81(0x223)](_0x4bfe81(0x208)+_0x3a91c2+'\x22')[_0x4bfe81(0x1f9)]();}},kbUpdate={'service':'kb','command':a35_0x124643(0x22f),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x222),'flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x27ac0e){const _0x5d22cd=a35_0x124643,_0x3a044f=_0x27ac0e['str']('id'),_0x372f17=readKnowledgeFile(_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x1f8))),_0x45c54f=_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x219))||undefined,_0x3b85a3=await updatePersonalKnowledgeBaseItem(_0x3a044f,_0x27ac0e[_0x5d22cd(0x214)],{'title':_0x45c54f,'content':_0x372f17},_0x27ac0e[_0x5d22cd(0x231)]);return{'ok':!![],'data':summarizePersonalItem(_0x3b85a3),'message':'Updated\x20KB\x20entry\x20'+_0x3b85a3['id']+'\x20('+_0x3b85a3[_0x5d22cd(0x219)]+')'};},async 'dryRun'(_0x34c0fb){const _0x4f2e9f=a35_0x124643,_0x70b8ff=_0x34c0fb[_0x4f2e9f(0x224)]('id'),_0x53281e=readKnowledgeFile(_0x34c0fb['str'](_0x4f2e9f(0x1f8))),_0x526aa0=await getPersonalKnowledgeBaseItem(_0x70b8ff,_0x34c0fb['appCode'],_0x34c0fb[_0x4f2e9f(0x231)]),_0x32da48=_0x34c0fb['str'](_0x4f2e9f(0x219))||_0x526aa0[_0x4f2e9f(0x219)],_0x1bdaab=planPersonalKnowledgeWrite(_0x34c0fb['appCode'],{'title':_0x32da48,'content':_0x53281e},_0x70b8ff,_0x526aa0[_0x4f2e9f(0x227)]);return dryRun(_0x1bdaab[_0x4f2e9f(0x213)],_0x1bdaab[_0x4f2e9f(0x234)])['body'](JSON[_0x4f2e9f(0x218)](_0x1bdaab[_0x4f2e9f(0x225)]))[_0x4f2e9f(0x223)](_0x4f2e9f(0x20e)+_0x70b8ff)[_0x4f2e9f(0x1f9)]();}};function readSearchServiceUrl(_0x1a6c73){const _0x488b9f=a35_0x124643;if(_0x1a6c73[_0x488b9f(0x229)]('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1a6c73[_0x488b9f(0x224)]('kb-service-url'));const _0x46f158=getKbServiceDomain();if(!_0x46f158)throw CliErrors['validation']('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x46f158);}const kbSearch={'service':'kb','command':a35_0x124643(0x22e),'description':a35_0x124643(0x1fe),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x124643(0x236),'type':a35_0x124643(0x21f),'required':![],'description':a35_0x124643(0x220)}],async 'validate'(_0x481d0c){const _0x2ad8b8=a35_0x124643;if(!_0x481d0c['str'](_0x2ad8b8(0x21a))['trim']())throw CliErrors[_0x2ad8b8(0x216)](_0x2ad8b8(0x215));readTopK(_0x481d0c),readSearchServiceUrl(_0x481d0c);},async 'execute'(_0x42aa3e){const _0x300ebb=a35_0x124643,_0x4f0257=_0x42aa3e['str'](_0x300ebb(0x21a))[_0x300ebb(0x204)](),_0x53f128=readTopK(_0x42aa3e),_0x12f636=readSearchServiceUrl(_0x42aa3e),_0x137971={'appCode':_0x42aa3e[_0x300ebb(0x214)],'accessKey':_0x42aa3e[_0x300ebb(0x212)]??'','query':_0x4f0257,..._0x53f128!==undefined?{'topK':_0x53f128}:{},'signal':_0x42aa3e[_0x300ebb(0x231)]},_0x41e6d1=await searchDirectKnowledge({..._0x137971,'serviceUrl':_0x12f636});return{'ok':!![],'data':_0x41e6d1};}};function managementCommand(_0x46bfd8){const _0x3b2a46=a35_0x124643;return{..._0x46bfd8,'execute':_0x4edd47=>withKbManagementOrigin(()=>_0x46bfd8[_0x3b2a46(0x1f3)](_0x4edd47)),..._0x46bfd8[_0x3b2a46(0x226)]?{'dryRun':_0x40252e=>withKbManagementOrigin(()=>_0x46bfd8['dryRun'](_0x40252e))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x124643(0x1f7)](managementCommand),kbSearch];
1
+ const a38_0x56c079=a38_0x1030;(function(_0x56b4d0,_0x4071a7){const _0x13dd0a=a38_0x1030,_0x168b98=_0x56b4d0();while(!![]){try{const _0xc6225a=-parseInt(_0x13dd0a(0xe7))/0x1+-parseInt(_0x13dd0a(0xd4))/0x2+parseInt(_0x13dd0a(0xbd))/0x3*(parseInt(_0x13dd0a(0xae))/0x4)+-parseInt(_0x13dd0a(0xa2))/0x5*(-parseInt(_0x13dd0a(0xc1))/0x6)+-parseInt(_0x13dd0a(0xcc))/0x7+parseInt(_0x13dd0a(0xe5))/0x8+parseInt(_0x13dd0a(0xe4))/0x9;if(_0xc6225a===_0x4071a7)break;else _0x168b98['push'](_0x168b98['shift']());}catch(_0x3c04d5){_0x168b98['push'](_0x168b98['shift']());}}}(a38_0x5489,0x5075c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a38_0x1030(_0x51a104,_0x34c7ee){_0x51a104=_0x51a104-0xa2;const _0x548972=a38_0x5489();let _0x103007=_0x548972[_0x51a104];return _0x103007;}import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a38_0x56c079(0xc7),'type':'string','required':!![],'description':a38_0x56c079(0xad)},FILE_FLAG={'name':a38_0x56c079(0xb2),'type':a38_0x56c079(0xbc),'required':!![],'description':a38_0x56c079(0xdb)},QUERY_FLAG={'name':a38_0x56c079(0xb0),'type':a38_0x56c079(0xbc),'required':!![],'description':a38_0x56c079(0xaf)},TOPK_FLAG={'name':a38_0x56c079(0xe2),'type':'number','description':a38_0x56c079(0xc8)};function a38_0x5489(){const _0x24ac3a=['list','accessKey','parse','bool','Created\x20KB\x20entry\x20','appCode','Personal\x20knowledge-base\x20entry\x20title','164ygeZfy','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','query','flag','file','isFile','map','File\x20is\x20not\x20a\x20regular\x20file:\x20','Search\x20query\x20is\x20required.','version','jsonBody','write','dryRun','method','string','34899BzQaVx','scope','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','str','6gNSdvl','updateTime','search','build','signal','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','update','execute','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','1189545HeJhRC','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','trim','path','verbose','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','read','861528tbZbaS','description','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','utf8','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','create','validation','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','length','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Updated\x20KB\x20entry\x20','detail','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','isSafeInteger','topk','userId','420084MBCKnB','2697560pYWbLp','Personal\x20knowledge-base\x20entry\x20ID','120550vXFJhw','949945nWVvMa','kb-service-url','body','ragStatus','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id'];a38_0x5489=function(){return _0x24ac3a;};return a38_0x5489();}function readKnowledgeFile(_0x13c5ed){const _0x431882=a38_0x56c079;if(!_0x13c5ed)throw CliErrors[_0x431882(0xda)]('File\x20path\x20is\x20required.');if(!existsSync(_0x13c5ed))throw CliErrors[_0x431882(0xda)]('File\x20not\x20found:\x20'+_0x13c5ed);if(!statSync(_0x13c5ed)[_0x431882(0xb3)]())throw CliErrors[_0x431882(0xda)](_0x431882(0xb5)+_0x13c5ed);return readFileSync(_0x13c5ed,_0x431882(0xd7));}function summarizePersonalItem(_0xd04d8e){const _0x161f67=a38_0x56c079;return{'id':_0xd04d8e['id'],'title':_0xd04d8e[_0x161f67(0xc7)],'version':_0xd04d8e[_0x161f67(0xb7)],'ragStatus':_0xd04d8e[_0x161f67(0xa5)],'ragErrorMessage':_0xd04d8e['ragErrorMessage'],'updateTime':_0xd04d8e[_0x161f67(0xc2)]};}function detailPersonalItem(_0x2cca81){const _0x3ab370=a38_0x56c079;return{'id':_0x2cca81['id'],'appCode':_0x2cca81[_0x3ab370(0xac)],'scope':_0x2cca81[_0x3ab370(0xbe)],'userId':_0x2cca81[_0x3ab370(0xe3)],'title':_0x2cca81[_0x3ab370(0xc7)],'content':_0x2cca81['content'],'version':_0x2cca81[_0x3ab370(0xb7)],'ragStatus':_0x2cca81[_0x3ab370(0xa5)],'ragErrorMessage':_0x2cca81['ragErrorMessage'],'createTime':_0x2cca81['createTime'],'updateTime':_0x2cca81['updateTime']};}function readTopK(_0x555b2e){const _0x204b8e=a38_0x56c079,_0x119278=_0x555b2e[_0x204b8e(0xb1)](_0x204b8e(0xe2));if(_0x119278===undefined||_0x119278===null||_0x119278==='')return undefined;const _0x5e0091=_0x555b2e['num'](_0x204b8e(0xe2));if(!Number[_0x204b8e(0xe1)](_0x5e0091)||_0x5e0091<0x1||_0x5e0091>0x32)throw CliErrors[_0x204b8e(0xda)](_0x204b8e(0xe0));return _0x5e0091;}const kbList={'service':'kb','command':a38_0x56c079(0xa7),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a38_0x56c079(0xd3),'flags':[VERBOSE_FLAG],async 'execute'(_0x2ee9e4){const _0x34462e=a38_0x56c079,_0x2c8c3c=await listPersonalKnowledgeBaseItems(_0x2ee9e4[_0x34462e(0xac)],_0x2ee9e4[_0x34462e(0xc5)]);if(_0x2ee9e4[_0x34462e(0xaa)](_0x34462e(0xd1)))return{'ok':!![],'data':{'total':_0x2c8c3c[_0x34462e(0xdc)],'items':_0x2c8c3c}};return{'ok':!![],'data':{'total':_0x2c8c3c[_0x34462e(0xdc)],'items':_0x2c8c3c[_0x34462e(0xb4)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x56c079(0xdf),'description':a38_0x56c079(0xa6),'risk':'read','flags':[{...ID_FLAG,'type':a38_0x56c079(0xbc),'description':a38_0x56c079(0xe6)}],async 'execute'(_0x5b4f8a){const _0xd77b75=a38_0x56c079,_0x576884=await getPersonalKnowledgeBaseItem(_0x5b4f8a[_0xd77b75(0xc0)]('id'),_0x5b4f8a[_0xd77b75(0xac)],_0x5b4f8a[_0xd77b75(0xc5)]);return{'ok':!![],'data':detailPersonalItem(_0x576884)};}},kbCreate={'service':'kb','command':a38_0x56c079(0xd9),'description':a38_0x56c079(0xc6),'risk':a38_0x56c079(0xb9),'confirmationDescription':a38_0x56c079(0xce),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x40c17d){const _0x1a69f2=a38_0x56c079,_0x32d6fd=_0x40c17d[_0x1a69f2(0xc0)]('title'),_0x15673f=readKnowledgeFile(_0x40c17d[_0x1a69f2(0xc0)]('file')),_0x4ef5ec=await createPersonalKnowledgeBaseItem(_0x40c17d[_0x1a69f2(0xac)],{'title':_0x32d6fd,'content':_0x15673f},_0x40c17d[_0x1a69f2(0xc5)]);return{'ok':!![],'data':summarizePersonalItem(_0x4ef5ec),'message':_0x1a69f2(0xab)+_0x4ef5ec['id']+'\x20('+_0x4ef5ec['title']+')'};},async 'dryRun'(_0x4e97e3){const _0x2c0537=a38_0x56c079,_0x515e10=_0x4e97e3[_0x2c0537(0xc0)](_0x2c0537(0xc7)),_0x32c440=readKnowledgeFile(_0x4e97e3[_0x2c0537(0xc0)](_0x2c0537(0xb2))),_0x2d09e9=planPersonalKnowledgeWrite(_0x4e97e3[_0x2c0537(0xac)],{'title':_0x515e10,'content':_0x32c440});return dryRun(_0x2d09e9[_0x2c0537(0xbb)],_0x2d09e9[_0x2c0537(0xd0)])[_0x2c0537(0xa4)](JSON[_0x2c0537(0xa9)](_0x2d09e9[_0x2c0537(0xb8)]))[_0x2c0537(0xd5)](_0x2c0537(0xbf)+_0x515e10+'\x22')[_0x2c0537(0xc4)]();}},kbUpdate={'service':'kb','command':a38_0x56c079(0xc9),'description':a38_0x56c079(0xd6),'risk':a38_0x56c079(0xb9),'confirmationDescription':a38_0x56c079(0xdd),'flags':[{...ID_FLAG,'type':a38_0x56c079(0xbc),'description':a38_0x56c079(0xe6)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0xb4447c){const _0x49030b=a38_0x56c079,_0x2489a8=_0xb4447c[_0x49030b(0xc0)]('id'),_0x52b223=readKnowledgeFile(_0xb4447c['str']('file')),_0x5cfc04=_0xb4447c[_0x49030b(0xc0)](_0x49030b(0xc7))||undefined,_0x44cc77=await updatePersonalKnowledgeBaseItem(_0x2489a8,_0xb4447c['appCode'],{'title':_0x5cfc04,'content':_0x52b223},_0xb4447c[_0x49030b(0xc5)]);return{'ok':!![],'data':summarizePersonalItem(_0x44cc77),'message':_0x49030b(0xde)+_0x44cc77['id']+'\x20('+_0x44cc77[_0x49030b(0xc7)]+')'};},async 'dryRun'(_0x6bf320){const _0xab46e8=a38_0x56c079,_0x1f40a4=_0x6bf320['str']('id'),_0x911c25=readKnowledgeFile(_0x6bf320[_0xab46e8(0xc0)](_0xab46e8(0xb2))),_0x5accff=await getPersonalKnowledgeBaseItem(_0x1f40a4,_0x6bf320[_0xab46e8(0xac)],_0x6bf320[_0xab46e8(0xc5)]),_0x72f343=_0x6bf320[_0xab46e8(0xc0)](_0xab46e8(0xc7))||_0x5accff[_0xab46e8(0xc7)],_0x275302=planPersonalKnowledgeWrite(_0x6bf320[_0xab46e8(0xac)],{'title':_0x72f343,'content':_0x911c25},_0x1f40a4,_0x5accff[_0xab46e8(0xb7)]);return dryRun(_0x275302['method'],_0x275302[_0xab46e8(0xd0)])[_0xab46e8(0xa4)](JSON[_0xab46e8(0xa9)](_0x275302[_0xab46e8(0xb8)]))[_0xab46e8(0xd5)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1f40a4)[_0xab46e8(0xc4)]();}};function readSearchServiceUrl(_0x28a344){const _0x6e2ba5=a38_0x56c079;if(_0x28a344['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x28a344['str'](_0x6e2ba5(0xa3)));const _0x1d7536=getKbServiceDomain();if(!_0x1d7536)throw CliErrors[_0x6e2ba5(0xda)](_0x6e2ba5(0xcd),_0x6e2ba5(0xcb));return normalizeKbServiceOrigin(_0x1d7536);}const kbSearch={'service':'kb','command':a38_0x56c079(0xc3),'description':a38_0x56c079(0xd2),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a38_0x56c079(0xbc),'required':![],'description':a38_0x56c079(0xd8)}],async 'validate'(_0x447932){const _0x40269d=a38_0x56c079;if(!_0x447932[_0x40269d(0xc0)](_0x40269d(0xb0))[_0x40269d(0xcf)]())throw CliErrors[_0x40269d(0xda)](_0x40269d(0xb6));readTopK(_0x447932),readSearchServiceUrl(_0x447932);},async 'execute'(_0x81863c){const _0x5490bb=a38_0x56c079,_0x5310b9=_0x81863c['str']('query')[_0x5490bb(0xcf)](),_0x20dedd=readTopK(_0x81863c),_0xd989d=readSearchServiceUrl(_0x81863c),_0x301919={'appCode':_0x81863c['appCode'],'accessKey':_0x81863c[_0x5490bb(0xa8)]??'','query':_0x5310b9,..._0x20dedd!==undefined?{'topK':_0x20dedd}:{},'signal':_0x81863c['signal']},_0x2e4d31=await searchDirectKnowledge({..._0x301919,'serviceUrl':_0xd989d});return{'ok':!![],'data':_0x2e4d31};}};function managementCommand(_0x37d846){const _0x519c4a=a38_0x56c079;return{..._0x37d846,'execute':_0x42f35e=>withKbManagementOrigin(()=>_0x37d846[_0x519c4a(0xca)](_0x42f35e)),..._0x37d846[_0x519c4a(0xba)]?{'dryRun':_0x5de5a8=>withKbManagementOrigin(()=>_0x37d846[_0x519c4a(0xba)](_0x5de5a8))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x56c079(0xb4)](managementCommand),kbSearch];
@@ -1 +1 @@
1
- const a36_0x3b718e=a36_0x2081;(function(_0x15d20b,_0x451820){const _0x12d043=a36_0x2081,_0xc896cb=_0x15d20b();while(!![]){try{const _0x1d17da=parseInt(_0x12d043(0xb7))/0x1*(-parseInt(_0x12d043(0xb0))/0x2)+-parseInt(_0x12d043(0xae))/0x3*(parseInt(_0x12d043(0xaa))/0x4)+-parseInt(_0x12d043(0xa5))/0x5+-parseInt(_0x12d043(0xa7))/0x6+parseInt(_0x12d043(0xa6))/0x7*(parseInt(_0x12d043(0xbb))/0x8)+parseInt(_0x12d043(0xa9))/0x9*(parseInt(_0x12d043(0xc1))/0xa)+parseInt(_0x12d043(0xad))/0xb;if(_0x1d17da===_0x451820)break;else _0xc896cb['push'](_0xc896cb['shift']());}catch(_0x4d5715){_0xc896cb['push'](_0xc896cb['shift']());}}}(a36_0x2d87,0x2beba));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x11211d){const _0xa64ac7=a36_0x2081;if(_0x11211d[_0xa64ac7(0xb2)]===0x0){console['log'](_0xa64ac7(0xc0));return;}console[_0xa64ac7(0xa8)]('*\x20'+CLI_DISPLAY_NAME+_0xa64ac7(0xba)),_0x11211d[_0xa64ac7(0xac)]((_0xa94ebf,_0x5593f3)=>{const _0x17fa8d=_0xa64ac7,_0x5345cb=new Date(_0xa94ebf[_0x17fa8d(0xb8)])[_0x17fa8d(0xa4)](_0x17fa8d(0xbf)),_0x3f615d=_0xa94ebf['level']===_0x17fa8d(0xab)?'√':_0xa94ebf[_0x17fa8d(0xb1)]==='error'?'×':_0xa94ebf[_0x17fa8d(0xb1)]==='warn'?'!':'i';console[_0x17fa8d(0xa8)](_0x5593f3+0x1+'.\x20'+_0x3f615d+'\x20['+_0xa94ebf[_0x17fa8d(0xbd)]+']\x20'+_0xa94ebf[_0x17fa8d(0xb3)]),console[_0x17fa8d(0xa8)](_0x17fa8d(0xaf)+_0x5345cb),_0xa94ebf[_0x17fa8d(0xb4)]&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Duration:\x20'+_0xa94ebf[_0x17fa8d(0xb4)]+'ms'),_0xa94ebf[_0x17fa8d(0xbe)]&&Object['keys'](_0xa94ebf['details'])[_0x17fa8d(0xb2)]>0x0&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0xa94ebf[_0x17fa8d(0xbe)],null,0x2)),console[_0x17fa8d(0xa8)]('');});}function a36_0x2081(_0x4facaf,_0x3d5a45){_0x4facaf=_0x4facaf-0xa4;const _0x2d8786=a36_0x2d87();let _0x2081cd=_0x2d8786[_0x4facaf];return _0x2081cd;}function a36_0x2d87(){const _0x3fdd74=['251961eeSXCY','\x20\x20\x20Time:\x20','2GwsoEY','level','length','message','duration','readLogs','read','40861UogDhe','timestamp','View\x20command\x20history\x20logs','\x20logs:\x0a','256LBwvzG','logs','command','details','en-US','*\x20No\x20logs\x20found','2449260aSiLvM','toLocaleString','1609335WNOhfl','24521xaAuzC','1125498uJCBej','log','9xAcleX','12YnwDwT','success','forEach','6876628qYLyEt'];a36_0x2d87=function(){return _0x3fdd74;};return a36_0x2d87();}export const logsDefinitions=[{'service':a36_0x3b718e(0xbc),'command':'show','description':a36_0x3b718e(0xb9),'risk':a36_0x3b718e(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x467568){const _0x17756f=a36_0x3b718e;return printLogs(logger[_0x17756f(0xb5)]()),{'ok':!![]};}}];
1
+ function a39_0x3d4a(_0x25799d,_0x432ce7){_0x25799d=_0x25799d-0x1be;const _0x46a252=a39_0x46a2();let _0x3d4a31=_0x46a252[_0x25799d];return _0x3d4a31;}const a39_0xcb948=a39_0x3d4a;(function(_0x19367a,_0x13c92e){const _0x1300f8=a39_0x3d4a,_0x55e8ef=_0x19367a();while(!![]){try{const _0x285b25=-parseInt(_0x1300f8(0x1ca))/0x1*(parseInt(_0x1300f8(0x1db))/0x2)+parseInt(_0x1300f8(0x1d9))/0x3+parseInt(_0x1300f8(0x1c5))/0x4*(-parseInt(_0x1300f8(0x1c6))/0x5)+parseInt(_0x1300f8(0x1c3))/0x6*(-parseInt(_0x1300f8(0x1cc))/0x7)+parseInt(_0x1300f8(0x1d0))/0x8+-parseInt(_0x1300f8(0x1d8))/0x9*(-parseInt(_0x1300f8(0x1cd))/0xa)+-parseInt(_0x1300f8(0x1d3))/0xb*(-parseInt(_0x1300f8(0x1cb))/0xc);if(_0x285b25===_0x13c92e)break;else _0x55e8ef['push'](_0x55e8ef['shift']());}catch(_0x1f3f1d){_0x55e8ef['push'](_0x55e8ef['shift']());}}}(a39_0x46a2,0x49e5f));function a39_0x46a2(){const _0x4eff18=['readLogs','*\x20No\x20logs\x20found','2629tuimcH','\x20\x20\x20Details:\x20','error','log','level','16209UHHZfe','1561512PPSVwY','View\x20command\x20history\x20logs','6OVoIIa','toLocaleString','details','stringify','\x20\x20\x20Duration:\x20','logs','1326396ZhqpkD','show','1364sjFcbq','8195wccmxL','duration','\x20logs:\x0a','success','86224KLjwRc','11124mOWbuM','14QEJHGn','2570PYZLkY','command','\x20\x20\x20Time:\x20','2859808dbrfPE'];a39_0x46a2=function(){return _0x4eff18;};return a39_0x46a2();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x425fb3){const _0x511848=a39_0x3d4a;if(_0x425fb3['length']===0x0){console['log'](_0x511848(0x1d2));return;}console[_0x511848(0x1d6)]('*\x20'+CLI_DISPLAY_NAME+_0x511848(0x1c8)),_0x425fb3['forEach']((_0x169fa1,_0x2d0407)=>{const _0x212a01=_0x511848,_0x4e029c=new Date(_0x169fa1['timestamp'])[_0x212a01(0x1be)]('en-US'),_0x1033c3=_0x169fa1['level']===_0x212a01(0x1c9)?'√':_0x169fa1[_0x212a01(0x1d7)]===_0x212a01(0x1d5)?'×':_0x169fa1['level']==='warn'?'!':'i';console[_0x212a01(0x1d6)](_0x2d0407+0x1+'.\x20'+_0x1033c3+'\x20['+_0x169fa1[_0x212a01(0x1ce)]+']\x20'+_0x169fa1['message']),console[_0x212a01(0x1d6)](_0x212a01(0x1cf)+_0x4e029c),_0x169fa1[_0x212a01(0x1c7)]&&console[_0x212a01(0x1d6)](_0x212a01(0x1c1)+_0x169fa1[_0x212a01(0x1c7)]+'ms'),_0x169fa1[_0x212a01(0x1bf)]&&Object['keys'](_0x169fa1[_0x212a01(0x1bf)])['length']>0x0&&console[_0x212a01(0x1d6)](_0x212a01(0x1d4)+JSON[_0x212a01(0x1c0)](_0x169fa1[_0x212a01(0x1bf)],null,0x2)),console[_0x212a01(0x1d6)]('');});}export const logsDefinitions=[{'service':a39_0xcb948(0x1c2),'command':a39_0xcb948(0x1c4),'description':a39_0xcb948(0x1da),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5d7324){const _0xb63a9e=a39_0xcb948;return printLogs(logger[_0xb63a9e(0x1d1)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0xba41e2=a37_0x2091;(function(_0x3d964d,_0x5dfed1){const _0x3025f1=a37_0x2091,_0x3d4d14=_0x3d964d();while(!![]){try{const _0x46a567=parseInt(_0x3025f1(0x75))/0x1+parseInt(_0x3025f1(0x6b))/0x2+parseInt(_0x3025f1(0x6d))/0x3*(-parseInt(_0x3025f1(0x7a))/0x4)+-parseInt(_0x3025f1(0x6f))/0x5+-parseInt(_0x3025f1(0x70))/0x6+parseInt(_0x3025f1(0x69))/0x7+parseInt(_0x3025f1(0x78))/0x8;if(_0x46a567===_0x5dfed1)break;else _0x3d4d14['push'](_0x3d4d14['shift']());}catch(_0x3e270a){_0x3d4d14['push'](_0x3d4d14['shift']());}}}(a37_0x77d2,0xf3350));function a37_0x77d2(){const _0x383a29=['notification','353596vnnvAN','EMAIL','type','config-list','11436824yzEeLO','map','778238Uemoyj','\x20notification\x20config(s)','51TZvVcS','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5859670MtmXbL','9401622bjLRQP','Notification\x20channel\x20type','read','string','appCode','1733291UUshUb','length','Found\x20','11852704eGRPvx'];a37_0x77d2=function(){return _0x383a29;};return a37_0x77d2();}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2091(_0x56b0b4,_0x100f62){_0x56b0b4=_0x56b0b4-0x69;const _0x77d2b6=a37_0x77d2();let _0x209168=_0x77d2b6[_0x56b0b4];return _0x209168;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0xba41e2(0x79),'command':a37_0xba41e2(0x7d),'description':a37_0xba41e2(0x6e),'risk':a37_0xba41e2(0x72),'flags':[{'name':a37_0xba41e2(0x7c),'type':a37_0xba41e2(0x73),'description':a37_0xba41e2(0x71),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0xba41e2(0x7b)}],async 'validate'(_0x4284be){readNotificationChannelType(_0x4284be);},async 'execute'(_0x1419d0){const _0x57ad4f=a37_0xba41e2,_0x1426a4=readNotificationChannelType(_0x1419d0),_0x567589=await listNotificationChannelConfigs(_0x1419d0[_0x57ad4f(0x74)],_0x1426a4),_0x345128=_0x567589[_0x57ad4f(0x6a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1419d0['appCode'],'channelType':_0x1426a4,'count':_0x345128[_0x57ad4f(0x76)],'configs':_0x345128},'message':_0x57ad4f(0x77)+_0x345128[_0x57ad4f(0x76)]+'\x20'+_0x1426a4+_0x57ad4f(0x6c)};}};
1
+ function a40_0x6c54(_0x42fca1,_0x33c7bd){_0x42fca1=_0x42fca1-0x98;const _0x47b5c5=a40_0x47b5();let _0x6c5430=_0x47b5c5[_0x42fca1];return _0x6c5430;}function a40_0x47b5(){const _0x45bc01=['string','\x20notification\x20config(s)','161019GiFarK','EMAIL','notification','273085vvViIa','Notification\x20channel\x20type','953354tkJkDm','length','56OLdbyk','1462929rawSnV','appCode','164969PiPrNi','3719484lyxVwV','map','config-list','2548xsWRCk','type','2330efcaIP','Found\x20'];a40_0x47b5=function(){return _0x45bc01;};return a40_0x47b5();}const a40_0x5633b7=a40_0x6c54;(function(_0x3c19b8,_0x1d196e){const _0x162235=a40_0x6c54,_0x2e8580=_0x3c19b8();while(!![]){try{const _0x232ac8=parseInt(_0x162235(0xa3))/0x1+-parseInt(_0x162235(0xa5))/0x2+parseInt(_0x162235(0xa8))/0x3+parseInt(_0x162235(0x9a))/0x4*(-parseInt(_0x162235(0x9c))/0x5)+parseInt(_0x162235(0xab))/0x6+-parseInt(_0x162235(0xaa))/0x7*(parseInt(_0x162235(0xa7))/0x8)+-parseInt(_0x162235(0xa0))/0x9;if(_0x232ac8===_0x1d196e)break;else _0x2e8580['push'](_0x2e8580['shift']());}catch(_0x28111b){_0x2e8580['push'](_0x2e8580['shift']());}}}(a40_0x47b5,0x67947));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a40_0x5633b7(0xa2),'command':a40_0x5633b7(0x99),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[{'name':a40_0x5633b7(0x9b),'type':a40_0x5633b7(0x9e),'description':a40_0x5633b7(0xa4),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a40_0x5633b7(0xa1)}],async 'validate'(_0x31cdbe){readNotificationChannelType(_0x31cdbe);},async 'execute'(_0x24c96e){const _0x37d046=a40_0x5633b7,_0x16c6c2=readNotificationChannelType(_0x24c96e),_0x14b0f4=await listNotificationChannelConfigs(_0x24c96e[_0x37d046(0xa9)],_0x16c6c2),_0xbe8b0d=_0x14b0f4[_0x37d046(0x98)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x24c96e[_0x37d046(0xa9)],'channelType':_0x16c6c2,'count':_0xbe8b0d[_0x37d046(0xa6)],'configs':_0xbe8b0d},'message':_0x37d046(0x9d)+_0xbe8b0d[_0x37d046(0xa6)]+'\x20'+_0x16c6c2+_0x37d046(0x9f)};}};