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

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 (185) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a27_0x594597=a27_0xea81;(function(_0x588347,_0x5996c8){const _0x4b5730=a27_0xea81,_0x1cba04=_0x588347();while(!![]){try{const _0x458089=-parseInt(_0x4b5730(0xfe))/0x1*(-parseInt(_0x4b5730(0x123))/0x2)+parseInt(_0x4b5730(0x147))/0x3+parseInt(_0x4b5730(0x155))/0x4+-parseInt(_0x4b5730(0x108))/0x5*(parseInt(_0x4b5730(0xf6))/0x6)+-parseInt(_0x4b5730(0x15f))/0x7*(parseInt(_0x4b5730(0x161))/0x8)+-parseInt(_0x4b5730(0x102))/0x9*(-parseInt(_0x4b5730(0x15b))/0xa)+parseInt(_0x4b5730(0x10c))/0xb*(-parseInt(_0x4b5730(0x10e))/0xc);if(_0x458089===_0x5996c8)break;else _0x1cba04['push'](_0x1cba04['shift']());}catch(_0x3b9831){_0x1cba04['push'](_0x1cba04['shift']());}}}(a27_0x4536,0xa9800));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';function a27_0xea81(_0x57ee89,_0x386afe){_0x57ee89=_0x57ee89-0xf4;const _0x45361a=a27_0x4536();let _0xea81fc=_0x45361a[_0x57ee89];return _0xea81fc;}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_0x594597(0x120),'operation':'filter','risk':a27_0x594597(0x12f),'paramsRequired':![],'description':a27_0x594597(0x103),'paramsHint':a27_0x594597(0x14c)+a27_0x594597(0x136),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a27_0x594597(0x122),'\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}}',a27_0x594597(0x114),a27_0x594597(0x14d),a27_0x594597(0x149),a27_0x594597(0x139),a27_0x594597(0x156),a27_0x594597(0x13a),a27_0x594597(0x13b),a27_0x594597(0x115),'',a27_0x594597(0x13c),a27_0x594597(0x13f),a27_0x594597(0xf4),'',a27_0x594597(0x124),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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]',a27_0x594597(0x12e),a27_0x594597(0x154),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a27_0x594597(0x160),a27_0x594597(0x14e),a27_0x594597(0x10a),a27_0x594597(0x138),a27_0x594597(0x104),a27_0x594597(0x126),a27_0x594597(0x142),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x594597(0x162)]('\x0a')},{'command':a27_0x594597(0x116),'operation':'getOne','risk':a27_0x594597(0x12f),'paramsRequired':!![],'description':a27_0x594597(0x100),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x594597(0x148),'operation':'create','risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x146),'confirmationDescription':a27_0x594597(0x113),'paramsHint':a27_0x594597(0x144)},{'command':a27_0x594597(0x10f),'operation':a27_0x594597(0x10f),'risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x158),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x594597(0x159),a27_0x594597(0x13e),a27_0x594597(0xfc),a27_0x594597(0x14a),a27_0x594597(0x13d),a27_0x594597(0x14f),a27_0x594597(0x125),a27_0x594597(0x15c),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x594597(0x109)][a27_0x594597(0x162)]('\x0a'),'confirmationDescription':a27_0x594597(0xf7),'paramsHint':a27_0x594597(0x105)},{'command':a27_0x594597(0x11b),'operation':a27_0x594597(0x11b),'risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x145),'confirmationDescription':a27_0x594597(0x118),'paramsHint':a27_0x594597(0x129)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':'delete','operation':a27_0x594597(0xfd),'risk':a27_0x594597(0x143),'paramsRequired':!![],'description':a27_0x594597(0x15d),'confirmationDescription':a27_0x594597(0x157),'paramsHint':a27_0x594597(0x14b)},{'command':a27_0x594597(0x11d),'operation':a27_0x594597(0x11d),'risk':a27_0x594597(0x12f),'paramsRequired':![],'description':a27_0x594597(0xf9),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a27_0x594597(0x111),'\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}',a27_0x594597(0x151),a27_0x594597(0x163),a27_0x594597(0xfa),a27_0x594597(0xff),a27_0x594597(0x12d),a27_0x594597(0xfb),'','\x20\x20PARAMS\x20STRUCTURE','\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_0x594597(0x107),a27_0x594597(0x15e),a27_0x594597(0x11c),'\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\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}]','','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x594597(0x150),a27_0x594597(0x112),'','\x20\x20DATASET\x20BOUNDARY',a27_0x594597(0x137),a27_0x594597(0x106),a27_0x594597(0x119),a27_0x594597(0x117),'',a27_0x594597(0x101),a27_0x594597(0x130),a27_0x594597(0x153),'',a27_0x594597(0x131),a27_0x594597(0xf5),'',a27_0x594597(0x10b)][a27_0x594597(0x162)]('\x0a')}];function a27_0x4536(){const _0x388cab=['\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}}','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\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}}]}','helpExtra','/api/{appCode}/','\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','high-risk-write','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Update\x20an\x20existing\x20data\x20record','Create\x20one\x20record\x20in\x20the\x20dataset','3075153bfuvVg','create','\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}}','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','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\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\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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}','build','\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','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','4168452mzDKzQ','\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]}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20completed\x20in\x20','20drxkVP','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','293384idypZn','\x20\x20PAGINATION','40yXQCBG','join','\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\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--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','42tcALtq','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','params','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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\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}','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','delete','125117vamGLu','\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}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20EXAMPLES','4709916ptTvNL','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','286485cQRUWi','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\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\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','13222dSpgnP','command','19308ODbdNa','batchCreate','data\x20','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\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\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}}','getOne','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','length','update','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','aggregate','str','paramsHint','filter','now','\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}}','2VArufU','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\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','operation','dryRun','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','batch','risk','write','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','read','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','description','confirmationDescription','code','data','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\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}}'];a27_0x4536=function(){return _0x388cab;};return a27_0x4536();}function makeDataCommand(_0x581b29){const _0x2c6c40=a27_0x594597,_0x5c1e72=_0x2c6c40(0x110)+_0x581b29[_0x2c6c40(0x10d)],_0x5e8f76={'service':_0x2c6c40(0x135),'command':_0x581b29[_0x2c6c40(0x10d)],'description':_0x581b29[_0x2c6c40(0x132)],'risk':_0x581b29[_0x2c6c40(0x12b)],..._0x581b29[_0x2c6c40(0x133)]?{'confirmationDescription':_0x581b29[_0x2c6c40(0x133)]}:{},'helpExtra':_0x581b29[_0x2c6c40(0x140)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x581b29[_0x2c6c40(0x11f)]}],'validate':async _0x26b81c=>{const _0x8feca9=_0x2c6c40;_0x581b29['paramsRequired']&&requireAnyOf(_0x26b81c,[_0x8feca9(0xf8)],_0x5c1e72),_0x581b29[_0x8feca9(0x127)]===_0x8feca9(0x10f)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x26b81c['str'](_0x8feca9(0xf8)))),_0x581b29[_0x8feca9(0x127)]===_0x8feca9(0x11b)&&parseUpdateIdsFromParams(parseJsonParams(_0x26b81c[_0x8feca9(0x11e)](_0x8feca9(0xf8)))??{});},async 'execute'(_0x22c497){const _0x3f2f23=_0x2c6c40,_0x2bf9e8=_0x22c497['str'](_0x3f2f23(0x134)),_0xf1ee1e=_0x581b29[_0x3f2f23(0x127)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x22c497[_0x3f2f23(0x11e)](_0x3f2f23(0xf8)))):parseJsonParams(_0x22c497['str'](_0x3f2f23(0xf8)))??{},_0x2bab9d=_0x581b29[_0x3f2f23(0x127)]==='update'?parseUpdateIdsFromParams(_0xf1ee1e):undefined,_0x244051=_0x2bab9d?normalizeUpdateParamsForRuntime(_0xf1ee1e,_0x2bab9d):_0xf1ee1e,_0x574c02=Date['now'](),_0x433d77=await executeData(_0x2bf9e8,_0x581b29['operation'],_0x244051),_0x2dff53=Date[_0x3f2f23(0x121)]()-_0x574c02,_0x1c586e=_0x2bab9d&&_0x2bab9d['length']>0x1?buildBatchUpdateResult(_0x2bab9d,_0x433d77):_0x433d77;return{'ok':!![],'data':{'result':_0x1c586e,'elapsed':_0x2dff53},'message':_0x3f2f23(0x110)+_0x581b29[_0x3f2f23(0x10d)]+_0x3f2f23(0x15a)+_0x2dff53+'ms'};}};return _0x581b29[_0x2c6c40(0x12b)]!==_0x2c6c40(0x12f)&&(_0x5e8f76[_0x2c6c40(0x128)]=async _0x3eb5bb=>{const _0xfc7144=_0x2c6c40,_0x5ce503=_0x3eb5bb[_0xfc7144(0x11e)](_0xfc7144(0x134)),_0x53c6f5=_0x581b29[_0xfc7144(0x127)]===_0xfc7144(0x10f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3eb5bb['str']('params'))):parseJsonParams(_0x3eb5bb[_0xfc7144(0x11e)](_0xfc7144(0xf8)))??{};let _0xc60b8b=_0x53c6f5;if(_0x581b29[_0xfc7144(0x127)]==='update'){const _0x3a9ab5=parseUpdateIdsFromParams(_0x53c6f5);_0xc60b8b=normalizeUpdateParamsForRuntime(_0x53c6f5,_0x3a9ab5);}return dryRun('POST',_0xfc7144(0x141)+_0x5ce503+'/'+_0x581b29[_0xfc7144(0x127)])['body'](_0xc60b8b)[_0xfc7144(0x132)]('Preview:\x20data\x20'+_0x581b29[_0xfc7144(0x10d)]+'\x20on\x20dataset\x20'+_0x5ce503)[_0xfc7144(0x152)]();}),_0x5e8f76;}export const dataDefinitions=[...specs['map'](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x268945,_0x1dae85){const _0x27b10d=a27_0x594597;return{'operation':_0x27b10d(0x11b),'mode':_0x27b10d(0x12a),'ids':_0x268945,'total':_0x268945[_0x27b10d(0x11a)],'result':_0x1dae85};}
1
+ const a27_0x43e043=a27_0x1eb6;(function(_0x20d48d,_0x33261a){const _0x5e1598=a27_0x1eb6,_0x88f9bc=_0x20d48d();while(!![]){try{const _0x2874d9=parseInt(_0x5e1598(0x221))/0x1*(-parseInt(_0x5e1598(0x203))/0x2)+-parseInt(_0x5e1598(0x201))/0x3+-parseInt(_0x5e1598(0x202))/0x4*(-parseInt(_0x5e1598(0x1f6))/0x5)+-parseInt(_0x5e1598(0x1cb))/0x6*(-parseInt(_0x5e1598(0x20f))/0x7)+parseInt(_0x5e1598(0x1f7))/0x8*(-parseInt(_0x5e1598(0x1c3))/0x9)+parseInt(_0x5e1598(0x1c7))/0xa*(-parseInt(_0x5e1598(0x1e3))/0xb)+parseInt(_0x5e1598(0x1cc))/0xc*(parseInt(_0x5e1598(0x1c9))/0xd);if(_0x2874d9===_0x33261a)break;else _0x88f9bc['push'](_0x88f9bc['shift']());}catch(_0x4edf2c){_0x88f9bc['push'](_0x88f9bc['shift']());}}}(a27_0x3ca1,0x5449a));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_0x43e043(0x1e4),'operation':a27_0x43e043(0x1e4),'risk':a27_0x43e043(0x1fd),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x43e043(0x1c5)+a27_0x43e043(0x1f5),'helpExtra':[a27_0x43e043(0x227),a27_0x43e043(0x1c4),a27_0x43e043(0x1dc),'\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}}',a27_0x43e043(0x1cd),a27_0x43e043(0x1f3),'\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}}',a27_0x43e043(0x1e0),'\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}}',a27_0x43e043(0x1c1),'\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}}','',a27_0x43e043(0x21f),a27_0x43e043(0x1d2),a27_0x43e043(0x21b),'',a27_0x43e043(0x213),a27_0x43e043(0x215),'\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]',a27_0x43e043(0x204),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a27_0x43e043(0x224),'',a27_0x43e043(0x214),a27_0x43e043(0x1db),a27_0x43e043(0x1ff),a27_0x43e043(0x1ca),'\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x43e043(0x1fe),'\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',a27_0x43e043(0x20a)]['join']('\x0a')},{'command':a27_0x43e043(0x1d5),'operation':a27_0x43e043(0x1d5),'risk':a27_0x43e043(0x1fd),'paramsRequired':!![],'description':a27_0x43e043(0x1f0),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x43e043(0x226),'operation':a27_0x43e043(0x226),'risk':a27_0x43e043(0x206),'paramsRequired':!![],'description':a27_0x43e043(0x22a),'confirmationDescription':a27_0x43e043(0x1fa),'paramsHint':a27_0x43e043(0x209)},{'command':a27_0x43e043(0x1c2),'operation':a27_0x43e043(0x1c2),'risk':a27_0x43e043(0x206),'paramsRequired':!![],'description':a27_0x43e043(0x1ee),'helpExtra':[a27_0x43e043(0x1d3),'\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.',a27_0x43e043(0x1f4),a27_0x43e043(0x20c),a27_0x43e043(0x1ef),a27_0x43e043(0x1ea),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.',a27_0x43e043(0x210),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x43e043(0x211)]['join']('\x0a'),'confirmationDescription':a27_0x43e043(0x212),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a27_0x43e043(0x205),'risk':'write','paramsRequired':!![],'description':a27_0x43e043(0x217),'confirmationDescription':a27_0x43e043(0x1de),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a27_0x43e043(0x1da)},{'command':a27_0x43e043(0x1e8),'operation':a27_0x43e043(0x1e8),'risk':a27_0x43e043(0x1f2),'paramsRequired':!![],'description':a27_0x43e043(0x21d),'confirmationDescription':a27_0x43e043(0x1f8),'paramsHint':a27_0x43e043(0x1fc)},{'command':a27_0x43e043(0x1e1),'operation':'aggregate','risk':a27_0x43e043(0x1fd),'paramsRequired':![],'description':a27_0x43e043(0x21a),'paramsHint':a27_0x43e043(0x1fb)+a27_0x43e043(0x1eb),'helpExtra':[a27_0x43e043(0x220),a27_0x43e043(0x20b),'\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}',a27_0x43e043(0x20d),a27_0x43e043(0x1dd),'\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\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}',a27_0x43e043(0x1e7),'',a27_0x43e043(0x1d4),'\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a27_0x43e043(0x1d7),'\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\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}}',a27_0x43e043(0x219),'',a27_0x43e043(0x1d0),a27_0x43e043(0x1ec),a27_0x43e043(0x1d8),a27_0x43e043(0x229),'',a27_0x43e043(0x1c8),a27_0x43e043(0x20e),a27_0x43e043(0x222),a27_0x43e043(0x1e9),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x43e043(0x1d6),a27_0x43e043(0x207),a27_0x43e043(0x1e2),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a27_0x43e043(0x1e5),'',a27_0x43e043(0x228)][a27_0x43e043(0x218)]('\x0a')}];function a27_0x3ca1(){const _0xdace6a=['\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}','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\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\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','3212027FyDLRL','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20PAGINATION','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','description','Update\x20an\x20existing\x20data\x20record','join','\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}]','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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}}]}','POST','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','paramsRequired','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20AGGREGATE\x20TYPES','172001IARVmF','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','map','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','paramsHint','create','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','Create\x20one\x20record\x20in\x20the\x20dataset','params','batch','\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}}','batchCreate','5999481jFHJbu','\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}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','data\x20','20pIAGoh','\x20\x20DATASET\x20BOUNDARY','26NxUwdx','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','6kGacwJ','10689984npJqbb','\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}}','risk','code','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','operation','\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\x20EXCEL\x20ROUTES','\x20\x20PARAMS\x20STRUCTURE','getOne','\x20\x20EXAMPLES','\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\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','str','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\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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\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}','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','length','\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]}}','aggregate','\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','2123671PmsrXs','filter','\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','dryRun','\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}','delete','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','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\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','build','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','Get\x20a\x20single\x20record\x20by\x20ID','\x20completed\x20in\x20','high-risk-write','\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}}','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','454095mkORht','8sUJzlQ','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','command','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','read','\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\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','confirmationDescription','1252104jzCemf','4JmCwTj','6tGSYeP','\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}]','update','write','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Preview:\x20data\x20','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'];a27_0x3ca1=function(){return _0xdace6a;};return a27_0x3ca1();}function makeDataCommand(_0x4d578f){const _0xc570f4=a27_0x43e043,_0x5c8bd4=_0xc570f4(0x1c6)+_0x4d578f['command'],_0x7c0c76={'service':'data','command':_0x4d578f[_0xc570f4(0x1f9)],'description':_0x4d578f['description'],'risk':_0x4d578f[_0xc570f4(0x1ce)],..._0x4d578f['confirmationDescription']?{'confirmationDescription':_0x4d578f[_0xc570f4(0x200)]}:{},'helpExtra':_0x4d578f['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4d578f[_0xc570f4(0x225)]}],'validate':async _0x4338cc=>{const _0xf78801=_0xc570f4;_0x4d578f[_0xf78801(0x21e)]&&requireAnyOf(_0x4338cc,[_0xf78801(0x22b)],_0x5c8bd4),_0x4d578f[_0xf78801(0x1d1)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4338cc[_0xf78801(0x1d9)](_0xf78801(0x22b)))),_0x4d578f[_0xf78801(0x1d1)]===_0xf78801(0x205)&&parseUpdateIdsFromParams(parseJsonParams(_0x4338cc[_0xf78801(0x1d9)](_0xf78801(0x22b)))??{});},async 'execute'(_0x23e98c){const _0x3bb936=_0xc570f4,_0x294a06=_0x23e98c[_0x3bb936(0x1d9)](_0x3bb936(0x1cf)),_0x31bfc1=_0x4d578f[_0x3bb936(0x1d1)]===_0x3bb936(0x1c2)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x23e98c[_0x3bb936(0x1d9)](_0x3bb936(0x22b)))):parseJsonParams(_0x23e98c[_0x3bb936(0x1d9)]('params'))??{},_0xa9cc9b=_0x4d578f[_0x3bb936(0x1d1)]===_0x3bb936(0x205)?parseUpdateIdsFromParams(_0x31bfc1):undefined,_0x37fed7=_0xa9cc9b?normalizeUpdateParamsForRuntime(_0x31bfc1,_0xa9cc9b):_0x31bfc1,_0x44b75a=Date['now'](),_0x4e86a4=await executeData(_0x294a06,_0x4d578f['operation'],_0x37fed7),_0x49c52f=Date['now']()-_0x44b75a,_0x1eab72=_0xa9cc9b&&_0xa9cc9b[_0x3bb936(0x1df)]>0x1?buildBatchUpdateResult(_0xa9cc9b,_0x4e86a4):_0x4e86a4;return{'ok':!![],'data':{'result':_0x1eab72,'elapsed':_0x49c52f},'message':_0x3bb936(0x1c6)+_0x4d578f['command']+_0x3bb936(0x1f1)+_0x49c52f+'ms'};}};return _0x4d578f[_0xc570f4(0x1ce)]!=='read'&&(_0x7c0c76[_0xc570f4(0x1e6)]=async _0x5edf35=>{const _0xe5d305=_0xc570f4,_0x3ef97b=_0x5edf35[_0xe5d305(0x1d9)](_0xe5d305(0x1cf)),_0x2cc941=_0x4d578f['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5edf35[_0xe5d305(0x1d9)](_0xe5d305(0x22b)))):parseJsonParams(_0x5edf35[_0xe5d305(0x1d9)]('params'))??{};let _0x1d4344=_0x2cc941;if(_0x4d578f[_0xe5d305(0x1d1)]===_0xe5d305(0x205)){const _0x364ff6=parseUpdateIdsFromParams(_0x2cc941);_0x1d4344=normalizeUpdateParamsForRuntime(_0x2cc941,_0x364ff6);}return dryRun(_0xe5d305(0x21c),'/api/{appCode}/'+_0x3ef97b+'/'+_0x4d578f['operation'])['body'](_0x1d4344)[_0xe5d305(0x216)](_0xe5d305(0x208)+_0x4d578f['command']+'\x20on\x20dataset\x20'+_0x3ef97b)[_0xe5d305(0x1ed)]();}),_0x7c0c76;}export const dataDefinitions=[...specs[a27_0x43e043(0x223)](makeDataCommand),dataImportExcel];function a27_0x1eb6(_0x126cf9,_0x4239b1){_0x126cf9=_0x126cf9-0x1c1;const _0x3ca1a5=a27_0x3ca1();let _0x1eb697=_0x3ca1a5[_0x126cf9];return _0x1eb697;}function buildBatchUpdateResult(_0x3b9b99,_0x493bc3){const _0x38431e=a27_0x43e043;return{'operation':_0x38431e(0x205),'mode':_0x38431e(0x22c),'ids':_0x3b9b99,'total':_0x3b9b99[_0x38431e(0x1df)],'result':_0x493bc3};}
@@ -1 +1 @@
1
- const a28_0x311a11=a28_0x12e3;(function(_0x10d725,_0x3025fe){const _0x163f65=a28_0x12e3,_0x246ac5=_0x10d725();while(!![]){try{const _0x52100d=-parseInt(_0x163f65(0x1a8))/0x1+-parseInt(_0x163f65(0x197))/0x2+-parseInt(_0x163f65(0x1aa))/0x3*(-parseInt(_0x163f65(0x1a5))/0x4)+-parseInt(_0x163f65(0x1a7))/0x5+parseInt(_0x163f65(0x183))/0x6+parseInt(_0x163f65(0x19e))/0x7+parseInt(_0x163f65(0x192))/0x8;if(_0x52100d===_0x3025fe)break;else _0x246ac5['push'](_0x246ac5['shift']());}catch(_0xd1652e){_0x246ac5['push'](_0x246ac5['shift']());}}}(a28_0x2c34,0x2e447));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x12e3(_0x5805fe,_0x568e1b){_0x5805fe=_0x5805fe-0x17d;const _0x2c34f4=a28_0x2c34();let _0x12e336=_0x2c34f4[_0x5805fe];return _0x12e336;}import{CliErrors}from'../../errors.js';function isRecord(_0x1c6d00){const _0x19f8c0=a28_0x12e3;return _0x1c6d00!==null&&typeof _0x1c6d00==='object'&&!Array[_0x19f8c0(0x1be)](_0x1c6d00);}function normalizeField(_0x1a5f31){const _0x2681ad=a28_0x12e3;if(_0x1a5f31['deleted'])return null;const _0x49c3ee=Boolean(_0x1a5f31[_0x2681ad(0x1ab)]!==undefined||_0x1a5f31[_0x2681ad(0x18a)]!==undefined);let _0x101e04={};if(!_0x49c3ee&&typeof _0x1a5f31[_0x2681ad(0x1b9)]===_0x2681ad(0x187))try{_0x101e04=JSON[_0x2681ad(0x1af)](_0x1a5f31[_0x2681ad(0x1b9)]);}catch{}const _0x5f5a70=_0x49c3ee?_0x1a5f31[_0x2681ad(0x1c4)]:_0x1a5f31['code'],_0x22bd72=_0x49c3ee?_0x1a5f31[_0x2681ad(0x1ab)]:_0x1a5f31[_0x2681ad(0x1c4)],_0x5418b4=_0x49c3ee?_0x1a5f31[_0x2681ad(0x18a)]:_0x1a5f31['type']||_0x1a5f31[_0x2681ad(0x1ba)],_0x488bed=_0x49c3ee?_0x1a5f31[_0x2681ad(0x18e)]===!![]:_0x101e04['pkField']===!![],_0x462f70=_0x49c3ee?_0x1a5f31[_0x2681ad(0x193)]===!![]:_0x101e04[_0x2681ad(0x193)]===!![],_0x265177=_0x49c3ee?_0x1a5f31['options']??null:_0x101e04['options']??null,_0x48962e={'name':_0x5f5a70,'displayName':_0x22bd72||_0x5f5a70,'type':_0x5418b4,'dbType':_0x1a5f31[_0x2681ad(0x181)],'pk':_0x488bed,'required':_0x462f70,'description':_0x1a5f31[_0x2681ad(0x195)]||undefined};return Array[_0x2681ad(0x1be)](_0x265177)&&_0x265177[_0x2681ad(0x1a0)]>0x0&&(_0x48962e['options']=_0x265177),_0x48962e;}function parseJsonMaybe(_0x1993ea){const _0x291aa5=a28_0x12e3;if(typeof _0x1993ea!==_0x291aa5(0x187))return _0x1993ea;try{return JSON['parse'](_0x1993ea);}catch{return _0x1993ea;}}function normalizeOperationEntry(_0x57aeae,_0x406c95){const _0x4551be=a28_0x12e3;if(!_0x406c95||typeof _0x406c95!==_0x4551be(0x189))return null;if(!_0x406c95[_0x4551be(0x1c5)]||!_0x406c95[_0x4551be(0x19f)])return null;const _0x5c8d80={'name':_0x57aeae,'method':_0x406c95[_0x4551be(0x1c5)],'path':_0x406c95['path']};if(_0x406c95[_0x4551be(0x1a9)])_0x5c8d80['host']=_0x406c95[_0x4551be(0x1a9)];if(_0x406c95[_0x4551be(0x1bb)]!=null)_0x5c8d80[_0x4551be(0x1bb)]=parseJsonMaybe(_0x406c95[_0x4551be(0x1bb)]);if(_0x406c95[_0x4551be(0x1bf)]!=null)_0x5c8d80['responseBody']=parseJsonMaybe(_0x406c95[_0x4551be(0x1bf)]);if(_0x406c95['beforeScriptId']!=null)_0x5c8d80[_0x4551be(0x1c7)]=_0x406c95[_0x4551be(0x1c7)];if(_0x406c95['afterScriptId']!=null)_0x5c8d80[_0x4551be(0x17d)]=_0x406c95[_0x4551be(0x17d)];if(Array[_0x4551be(0x1be)](_0x406c95[_0x4551be(0x1c6)]))_0x5c8d80[_0x4551be(0x1c6)]=_0x406c95[_0x4551be(0x1c6)];if(Array[_0x4551be(0x1be)](_0x406c95[_0x4551be(0x188)]))_0x5c8d80['responseFields']=_0x406c95['responseFields'];return _0x5c8d80;}function summarizeDbtable(_0x4c31b9){const _0x5e759c=a28_0x12e3,_0x16273c={},_0x56aa71=[_0x5e759c(0x1b0),_0x5e759c(0x182),_0x5e759c(0x18f),_0x5e759c(0x1b6),_0x5e759c(0x18e),'allFields','logicField',_0x5e759c(0x1b3),_0x5e759c(0x1b1),_0x5e759c(0x17e),_0x5e759c(0x1ac),_0x5e759c(0x17f),_0x5e759c(0x191),_0x5e759c(0x184),_0x5e759c(0x1c0)];for(const _0x2ce90a of _0x56aa71){if(_0x4c31b9[_0x2ce90a]!==undefined)_0x16273c[_0x2ce90a]=_0x4c31b9[_0x2ce90a];}return typeof _0x16273c[_0x5e759c(0x1bd)]===_0x5e759c(0x187)&&_0x16273c['allFields'][_0x5e759c(0x1a0)]>0x0&&(_0x16273c[_0x5e759c(0x1c2)]=_0x16273c[_0x5e759c(0x1bd)][_0x5e759c(0x180)](',')[_0x5e759c(0x18d)](_0x894d5=>_0x894d5[_0x5e759c(0x1c3)]())[_0x5e759c(0x1a2)](Boolean)),_0x16273c;}function a28_0x2c34(){const _0x1fc965=['1110774BjWYwN','labelField','formatRules','doVersion','string','responseFields','object','doType','operations','dataset','map','pkField','tableName','source','modifierNameField','3263376oJsxbV','required','dbtableConfig','description','modelCode','494932PTdSrr','relatedPageInfoList','title','columnCodeListWithDeleted','validateRules','tableComment','push','486206fxsRnn','path','length','Dataset\x20detail\x20must\x20be\x20an\x20object.','filter','modelId','indexes','240868JbZuje','deleted','1178445CDoGlr','110277qBTDNV','host','6dzbWhQ','displayName','creatorNameField','entries','code','parse','dbId','updateTimeField','relations','createTimeField','appCode','fields','datasetKey','sourceType','properties','extend','dataType','requestBody','str','allFields','isArray','responseBody','dblinkInfoDTO','read','allFieldNames','trim','name','method','requestFields','beforeScriptId','afterScriptId','creatorIdField','modifierIdField','split','dbType','dbName'];a28_0x2c34=function(){return _0x1fc965;};return a28_0x2c34();}function normalizeRelatedPages(_0x116ad5){const _0x22e901=a28_0x12e3;if(!Array[_0x22e901(0x1be)](_0x116ad5))return[];return _0x116ad5[_0x22e901(0x1a2)](_0x3e4526=>_0x3e4526&&typeof _0x3e4526===_0x22e901(0x189))['map'](_0x214af1=>({'id':_0x214af1['id'],'type':_0x214af1['type'],'code':_0x214af1['code'],'title':_0x214af1[_0x22e901(0x199)],'deleted':_0x214af1[_0x22e901(0x1a6)]===!![]}));}function normalizeFallbackFieldName(_0x4e474b,_0x39dd85){const _0x16a8e3=a28_0x12e3,_0x323c72=_0x4e474b[_0x16a8e3(0x1c3)]();if(!_0x323c72)return null;return{'name':_0x323c72,'displayName':_0x323c72,'type':undefined,'dbType':undefined,'pk':_0x323c72===_0x39dd85,'required':![],'description':undefined};}async function loadListFieldFallback(_0xf0893,_0x224bf0){const _0x2e1fcb=a28_0x12e3;if(!_0xf0893||!_0x224bf0)return[];try{const _0x476672=await listDatasets(_0xf0893,{'code':_0x224bf0}),_0x12a9d0=_0x476672['find'](_0x1db789=>_0x1db789[_0x2e1fcb(0x1ae)]===_0x224bf0)??_0x476672[0x0],_0x1812df=_0x12a9d0?.[_0x2e1fcb(0x194)]??{},_0x4698e0=typeof _0x1812df['allFields']==='string'?_0x1812df[_0x2e1fcb(0x1bd)][_0x2e1fcb(0x180)](','):[];return _0x4698e0[_0x2e1fcb(0x18d)](_0x144cc0=>normalizeFallbackFieldName(_0x144cc0,_0x1812df['pkField']))[_0x2e1fcb(0x1a2)](_0x12ddba=>_0x12ddba!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x311a11(0x18c),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x311a11(0x1c1),'flags':[CODE_FLAG],async 'execute'(_0x408fe2){const _0x294715=a28_0x311a11,_0x2749ce=await getDatasetDetail(_0x408fe2[_0x294715(0x1bc)](_0x294715(0x1ae)));if(!isRecord(_0x2749ce))throw CliErrors['apiError'](_0x294715(0x1a1));const _0x37c5bc=Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x1b5)])?_0x2749ce['fields']:Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x1b8)])?_0x2749ce[_0x294715(0x1b8)]:[];let _0x4e5eef=_0x37c5bc['map'](_0x228d4a=>normalizeField(_0x228d4a))[_0x294715(0x1a2)](_0x3a52b9=>_0x3a52b9!==null);_0x4e5eef['length']===0x0&&(_0x4e5eef=await loadListFieldFallback(_0x408fe2[_0x294715(0x1b4)],_0x408fe2[_0x294715(0x1bc)](_0x294715(0x1ae))));const _0x84929e=_0x2749ce[_0x294715(0x18b)]??{},_0x21afa6=[];for(const [_0x5cb422,_0x4a4037]of Object[_0x294715(0x1ad)](_0x84929e)){const _0x19aa78=normalizeOperationEntry(_0x5cb422,_0x4a4037);if(_0x19aa78)_0x21afa6[_0x294715(0x19d)](_0x19aa78);}const _0x39a80a=isRecord(_0x2749ce[_0x294715(0x194)])?_0x2749ce[_0x294715(0x194)]:{},_0x2a8111=isRecord(_0x2749ce[_0x294715(0x18c)])?_0x2749ce[_0x294715(0x18c)]:{},_0x5868b5=_0x39a80a['dbId']!=null?{'id':_0x39a80a[_0x294715(0x1b0)],'name':_0x39a80a[_0x294715(0x182)]??null}:undefined;let _0x70d567;return typeof _0x2749ce[_0x294715(0x1b9)]===_0x294715(0x187)&&(_0x70d567=parseJsonMaybe(_0x2749ce[_0x294715(0x1b9)])),{'ok':!![],'data':{'id':_0x2749ce[_0x294715(0x1a3)]??_0x2749ce['id'],'name':_0x2749ce['name'],'code':_0x2749ce[_0x294715(0x196)]||_0x2749ce[_0x294715(0x1ae)],'doVersion':_0x2749ce[_0x294715(0x186)],'description':_0x2749ce[_0x294715(0x195)]||_0x2a8111[_0x294715(0x19c)]||undefined,'source':_0x2749ce[_0x294715(0x190)]||_0x2a8111[_0x294715(0x1b7)],'table':_0x39a80a[_0x294715(0x18f)]||_0x2a8111[_0x294715(0x18f)],'datasetKey':_0x39a80a[_0x294715(0x1b6)],'pk':_0x39a80a[_0x294715(0x18e)],'db':_0x5868b5,'dbtable':summarizeDbtable(_0x39a80a),'fields':_0x4e5eef,'operations':_0x21afa6,'indexes':Array[_0x294715(0x1be)](_0x2a8111[_0x294715(0x1a4)])?_0x2a8111[_0x294715(0x1a4)]:[],'relations':_0x2749ce[_0x294715(0x1b2)]??null,'relatedPages':normalizeRelatedPages(_0x2749ce[_0x294715(0x198)]),...Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x19a)])?{'columnCodeListWithDeleted':_0x2749ce[_0x294715(0x19a)]}:{},'formatRules':Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x185)])?_0x2749ce[_0x294715(0x185)]:[],'validateRules':Array[_0x294715(0x1be)](_0x2749ce['validateRules'])?_0x2749ce[_0x294715(0x19b)]:[],..._0x70d567!==undefined?{'extend':_0x70d567}:{},'stats':{'fieldCount':_0x4e5eef[_0x294715(0x1a0)],'operationCount':_0x21afa6[_0x294715(0x1a0)]}}};}};
1
+ const a28_0x2739c4=a28_0x53d5;(function(_0x3fd84f,_0x31fac5){const _0x2e2394=a28_0x53d5,_0x42a130=_0x3fd84f();while(!![]){try{const _0x7d78a=-parseInt(_0x2e2394(0x147))/0x1*(parseInt(_0x2e2394(0x13e))/0x2)+-parseInt(_0x2e2394(0x11d))/0x3+-parseInt(_0x2e2394(0x121))/0x4*(parseInt(_0x2e2394(0x137))/0x5)+parseInt(_0x2e2394(0x12c))/0x6*(parseInt(_0x2e2394(0x133))/0x7)+-parseInt(_0x2e2394(0x138))/0x8+parseInt(_0x2e2394(0x11f))/0x9+-parseInt(_0x2e2394(0x150))/0xa*(-parseInt(_0x2e2394(0x130))/0xb);if(_0x7d78a===_0x31fac5)break;else _0x42a130['push'](_0x42a130['shift']());}catch(_0x2a61fa){_0x42a130['push'](_0x42a130['shift']());}}}(a28_0x38e5,0x4b994));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x258552){const _0x52f37e=a28_0x53d5;return _0x258552!==null&&typeof _0x258552===_0x52f37e(0x119)&&!Array[_0x52f37e(0x11a)](_0x258552);}function normalizeField(_0x522b32){const _0x37cccb=a28_0x53d5;if(_0x522b32[_0x37cccb(0x13c)])return null;const _0x5b79bb=Boolean(_0x522b32[_0x37cccb(0x153)]!==undefined||_0x522b32[_0x37cccb(0x14d)]!==undefined);let _0x2a2e46={};if(!_0x5b79bb&&typeof _0x522b32[_0x37cccb(0x111)]===_0x37cccb(0x10d))try{_0x2a2e46=JSON['parse'](_0x522b32[_0x37cccb(0x111)]);}catch{}const _0x5c8b8b=_0x5b79bb?_0x522b32['name']:_0x522b32[_0x37cccb(0x131)],_0x4fcbdc=_0x5b79bb?_0x522b32['displayName']:_0x522b32[_0x37cccb(0x148)],_0x2e7985=_0x5b79bb?_0x522b32[_0x37cccb(0x14d)]:_0x522b32['type']||_0x522b32['dataType'],_0x1cec0f=_0x5b79bb?_0x522b32[_0x37cccb(0x149)]===!![]:_0x2a2e46[_0x37cccb(0x149)]===!![],_0x1f0f7e=_0x5b79bb?_0x522b32[_0x37cccb(0x14b)]===!![]:_0x2a2e46[_0x37cccb(0x14b)]===!![],_0x1edb8d=_0x5b79bb?_0x522b32[_0x37cccb(0x109)]??null:_0x2a2e46['options']??null,_0xb61ecc={'name':_0x5c8b8b,'displayName':_0x4fcbdc||_0x5c8b8b,'type':_0x2e7985,'dbType':_0x522b32['dbType'],'pk':_0x1cec0f,'required':_0x1f0f7e,'description':_0x522b32[_0x37cccb(0x143)]||undefined};return Array[_0x37cccb(0x11a)](_0x1edb8d)&&_0x1edb8d['length']>0x0&&(_0xb61ecc[_0x37cccb(0x109)]=_0x1edb8d),_0xb61ecc;}function parseJsonMaybe(_0xdd5564){const _0x55b3da=a28_0x53d5;if(typeof _0xdd5564!==_0x55b3da(0x10d))return _0xdd5564;try{return JSON[_0x55b3da(0x10e)](_0xdd5564);}catch{return _0xdd5564;}}function normalizeOperationEntry(_0xeac105,_0x39d115){const _0x512ff8=a28_0x53d5;if(!_0x39d115||typeof _0x39d115!==_0x512ff8(0x119))return null;if(!_0x39d115[_0x512ff8(0x145)]||!_0x39d115[_0x512ff8(0x128)])return null;const _0x27bf8e={'name':_0xeac105,'method':_0x39d115[_0x512ff8(0x145)],'path':_0x39d115[_0x512ff8(0x128)]};if(_0x39d115[_0x512ff8(0x107)])_0x27bf8e[_0x512ff8(0x107)]=_0x39d115[_0x512ff8(0x107)];if(_0x39d115['requestBody']!=null)_0x27bf8e[_0x512ff8(0x125)]=parseJsonMaybe(_0x39d115[_0x512ff8(0x125)]);if(_0x39d115[_0x512ff8(0x110)]!=null)_0x27bf8e[_0x512ff8(0x110)]=parseJsonMaybe(_0x39d115['responseBody']);if(_0x39d115['beforeScriptId']!=null)_0x27bf8e[_0x512ff8(0x139)]=_0x39d115[_0x512ff8(0x139)];if(_0x39d115[_0x512ff8(0x13b)]!=null)_0x27bf8e['afterScriptId']=_0x39d115[_0x512ff8(0x13b)];if(Array[_0x512ff8(0x11a)](_0x39d115[_0x512ff8(0x114)]))_0x27bf8e[_0x512ff8(0x114)]=_0x39d115[_0x512ff8(0x114)];if(Array['isArray'](_0x39d115[_0x512ff8(0x116)]))_0x27bf8e['responseFields']=_0x39d115[_0x512ff8(0x116)];return _0x27bf8e;}function summarizeDbtable(_0x5d1ede){const _0x3aea11=a28_0x53d5,_0x4fc311={},_0x5e8c05=[_0x3aea11(0x129),_0x3aea11(0x118),_0x3aea11(0x140),_0x3aea11(0x112),'pkField',_0x3aea11(0x10f),'logicField','createTimeField',_0x3aea11(0x136),'creatorIdField',_0x3aea11(0x12b),_0x3aea11(0x146),_0x3aea11(0x117),_0x3aea11(0x113),_0x3aea11(0x115)];for(const _0x33210a of _0x5e8c05){if(_0x5d1ede[_0x33210a]!==undefined)_0x4fc311[_0x33210a]=_0x5d1ede[_0x33210a];}return typeof _0x4fc311['allFields']===_0x3aea11(0x10d)&&_0x4fc311[_0x3aea11(0x10f)]['length']>0x0&&(_0x4fc311[_0x3aea11(0x10a)]=_0x4fc311['allFields'][_0x3aea11(0x132)](',')[_0x3aea11(0x144)](_0x538746=>_0x538746[_0x3aea11(0x13a)]())[_0x3aea11(0x14a)](Boolean)),_0x4fc311;}function normalizeRelatedPages(_0x25f90a){const _0x3d2f70=a28_0x53d5;if(!Array[_0x3d2f70(0x11a)](_0x25f90a))return[];return _0x25f90a[_0x3d2f70(0x14a)](_0x33cd95=>_0x33cd95&&typeof _0x33cd95==='object')[_0x3d2f70(0x144)](_0x1b7a02=>({'id':_0x1b7a02['id'],'type':_0x1b7a02[_0x3d2f70(0x12a)],'code':_0x1b7a02['code'],'title':_0x1b7a02[_0x3d2f70(0x11c)],'deleted':_0x1b7a02[_0x3d2f70(0x13c)]===!![]}));}function a28_0x53d5(_0x557aeb,_0x392b3e){_0x557aeb=_0x557aeb-0x106;const _0x38e5c9=a28_0x38e5();let _0x53d59a=_0x38e5c9[_0x557aeb];return _0x53d59a;}function normalizeFallbackFieldName(_0x3ed897,_0x15346f){const _0x177372=a28_0x53d5,_0x3dff39=_0x3ed897[_0x177372(0x13a)]();if(!_0x3dff39)return null;return{'name':_0x3dff39,'displayName':_0x3dff39,'type':undefined,'dbType':undefined,'pk':_0x3dff39===_0x15346f,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1bfac3,_0x15f331){const _0x16dd38=a28_0x53d5;if(!_0x1bfac3||!_0x15f331)return[];try{const _0x59f243=await listDatasets(_0x1bfac3,{'code':_0x15f331}),_0x30a035=_0x59f243[_0x16dd38(0x124)](_0x373fd0=>_0x373fd0[_0x16dd38(0x131)]===_0x15f331)??_0x59f243[0x0],_0x4fe2f5=_0x30a035?.['dbtableConfig']??{},_0xd5e1d2=typeof _0x4fe2f5[_0x16dd38(0x10f)]==='string'?_0x4fe2f5[_0x16dd38(0x10f)][_0x16dd38(0x132)](','):[];return _0xd5e1d2[_0x16dd38(0x144)](_0x577301=>normalizeFallbackFieldName(_0x577301,_0x4fe2f5[_0x16dd38(0x149)]))[_0x16dd38(0x14a)](_0x3112aa=>_0x3112aa!==null);}catch{return[];}}function a28_0x38e5(){const _0x431cc5=['operations','read','displayName','modelCode','host','doVersion','options','allFieldNames','indexes','dataset','string','parse','allFields','responseBody','extend','datasetKey','labelField','requestFields','dblinkInfoDTO','responseFields','modifierNameField','dbName','object','isArray','detail','title','837297MlRUCf','validateRules','307674OeJwzS','Dataset\x20detail\x20must\x20be\x20an\x20object.','1121672nHIHYL','relatedPageInfoList','modelId','find','requestBody','relations','appCode','path','dbId','type','creatorNameField','1870836PulEVB','str','formatRules','properties','55UicvWr','code','split','7SMAgJA','source','columnCodeListWithDeleted','updateTimeField','10LmmtbA','1733792yHuYgA','beforeScriptId','trim','afterScriptId','deleted','length','593662PzUvHr','entries','tableName','tableComment','fields','description','map','method','modifierIdField','1dPrwkK','name','pkField','filter','required','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','doType','sourceType','dbtableConfig','2634300pdWifF'];a28_0x38e5=function(){return _0x431cc5;};return a28_0x38e5();}export const datasetDetail={'service':a28_0x2739c4(0x10c),'command':a28_0x2739c4(0x11b),'description':a28_0x2739c4(0x14c),'risk':a28_0x2739c4(0x152),'flags':[CODE_FLAG],async 'execute'(_0xdede8e){const _0x13b64e=a28_0x2739c4,_0x575dab=await getDatasetDetail(_0xdede8e[_0x13b64e(0x12d)](_0x13b64e(0x131)));if(!isRecord(_0x575dab))throw CliErrors['apiError'](_0x13b64e(0x120));const _0x852a4c=Array[_0x13b64e(0x11a)](_0x575dab['fields'])?_0x575dab[_0x13b64e(0x142)]:Array[_0x13b64e(0x11a)](_0x575dab[_0x13b64e(0x12f)])?_0x575dab['properties']:[];let _0x1e34f5=_0x852a4c[_0x13b64e(0x144)](_0x5b233a=>normalizeField(_0x5b233a))[_0x13b64e(0x14a)](_0x14a0d3=>_0x14a0d3!==null);_0x1e34f5['length']===0x0&&(_0x1e34f5=await loadListFieldFallback(_0xdede8e[_0x13b64e(0x127)],_0xdede8e[_0x13b64e(0x12d)]('code')));const _0x392db7=_0x575dab[_0x13b64e(0x151)]??{},_0x3ec98c=[];for(const [_0x14b03a,_0x51e93e]of Object[_0x13b64e(0x13f)](_0x392db7)){const _0x544509=normalizeOperationEntry(_0x14b03a,_0x51e93e);if(_0x544509)_0x3ec98c['push'](_0x544509);}const _0x1bf1e0=isRecord(_0x575dab[_0x13b64e(0x14f)])?_0x575dab[_0x13b64e(0x14f)]:{},_0x3b5345=isRecord(_0x575dab['dataset'])?_0x575dab[_0x13b64e(0x10c)]:{},_0x4809c1=_0x1bf1e0[_0x13b64e(0x129)]!=null?{'id':_0x1bf1e0[_0x13b64e(0x129)],'name':_0x1bf1e0[_0x13b64e(0x118)]??null}:undefined;let _0xb28bb9;return typeof _0x575dab[_0x13b64e(0x111)]===_0x13b64e(0x10d)&&(_0xb28bb9=parseJsonMaybe(_0x575dab['extend'])),{'ok':!![],'data':{'id':_0x575dab[_0x13b64e(0x123)]??_0x575dab['id'],'name':_0x575dab[_0x13b64e(0x148)],'code':_0x575dab[_0x13b64e(0x106)]||_0x575dab['code'],'doVersion':_0x575dab[_0x13b64e(0x108)],'description':_0x575dab[_0x13b64e(0x143)]||_0x3b5345[_0x13b64e(0x141)]||undefined,'source':_0x575dab[_0x13b64e(0x134)]||_0x3b5345[_0x13b64e(0x14e)],'table':_0x1bf1e0[_0x13b64e(0x140)]||_0x3b5345[_0x13b64e(0x140)],'datasetKey':_0x1bf1e0[_0x13b64e(0x112)],'pk':_0x1bf1e0['pkField'],'db':_0x4809c1,'dbtable':summarizeDbtable(_0x1bf1e0),'fields':_0x1e34f5,'operations':_0x3ec98c,'indexes':Array[_0x13b64e(0x11a)](_0x3b5345[_0x13b64e(0x10b)])?_0x3b5345['indexes']:[],'relations':_0x575dab[_0x13b64e(0x126)]??null,'relatedPages':normalizeRelatedPages(_0x575dab[_0x13b64e(0x122)]),...Array[_0x13b64e(0x11a)](_0x575dab[_0x13b64e(0x135)])?{'columnCodeListWithDeleted':_0x575dab['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x13b64e(0x11a)](_0x575dab[_0x13b64e(0x12e)])?_0x575dab[_0x13b64e(0x12e)]:[],'validateRules':Array[_0x13b64e(0x11a)](_0x575dab['validateRules'])?_0x575dab[_0x13b64e(0x11e)]:[],..._0xb28bb9!==undefined?{'extend':_0xb28bb9}:{},'stats':{'fieldCount':_0x1e34f5[_0x13b64e(0x13d)],'operationCount':_0x3ec98c['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x29ba70,_0x39f7f8){const _0x556847=a29_0x9038,_0x1d1777=_0x29ba70();while(!![]){try{const _0x31b6a7=parseInt(_0x556847(0x13b))/0x1+parseInt(_0x556847(0x140))/0x2*(-parseInt(_0x556847(0x138))/0x3)+-parseInt(_0x556847(0x13f))/0x4+-parseInt(_0x556847(0x13c))/0x5*(-parseInt(_0x556847(0x139))/0x6)+parseInt(_0x556847(0x141))/0x7*(-parseInt(_0x556847(0x143))/0x8)+-parseInt(_0x556847(0x142))/0x9*(-parseInt(_0x556847(0x13d))/0xa)+parseInt(_0x556847(0x13e))/0xb*(parseInt(_0x556847(0x13a))/0xc);if(_0x31b6a7===_0x39f7f8)break;else _0x1d1777['push'](_0x1d1777['shift']());}catch(_0x258149){_0x1d1777['push'](_0x1d1777['shift']());}}}(a29_0x3e5e,0x26821));function a29_0x3e5e(){const _0x1ca8f7=['28326Ubuuqk','21JZGnAT','2241onIXkP','307576HxDGDn','27NIpjuP','25812GXypyP','12ZqkxjQ','110619pSxoas','175gPXEeO','2350aZHZgi','3765421aVxapB','1045912ofDmKI'];a29_0x3e5e=function(){return _0x1ca8f7;};return a29_0x3e5e();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x9038(_0x40e0d9,_0x1d9234){_0x40e0d9=_0x40e0d9-0x138;const _0x3e5ee8=a29_0x3e5e();let _0x9038c5=_0x3e5ee8[_0x40e0d9];return _0x9038c5;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x549312,_0x5d8b4f){const _0x4b764c=a29_0x14b0,_0x2e48be=_0x549312();while(!![]){try{const _0x3e4ba0=-parseInt(_0x4b764c(0xab))/0x1*(parseInt(_0x4b764c(0xa7))/0x2)+-parseInt(_0x4b764c(0xa6))/0x3+-parseInt(_0x4b764c(0xad))/0x4*(parseInt(_0x4b764c(0xaf))/0x5)+parseInt(_0x4b764c(0xac))/0x6+parseInt(_0x4b764c(0xa8))/0x7+parseInt(_0x4b764c(0xaa))/0x8+parseInt(_0x4b764c(0xae))/0x9*(parseInt(_0x4b764c(0xa9))/0xa);if(_0x3e4ba0===_0x5d8b4f)break;else _0x2e48be['push'](_0x2e48be['shift']());}catch(_0x2d3848){_0x2e48be['push'](_0x2e48be['shift']());}}}(a29_0x1165,0x19089));import{datasetList}from'../../commands/dataset/list.js';function a29_0x14b0(_0x288a25,_0x3efdf9){_0x288a25=_0x288a25-0xa6;const _0x11655f=a29_0x1165();let _0x14b02d=_0x11655f[_0x288a25];return _0x14b02d;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a29_0x1165(){const _0x305faf=['1115034RyBAII','4ivigEo','1572147WNnKhE','763145iPcQiM','482622XqBUFf','153518qQVosz','853006hMoXSn','10ckSmgT','83352qlePmm','1IBsWVD'];a29_0x1165=function(){return _0x305faf;};return a29_0x1165();}
@@ -1 +1 @@
1
- const a30_0x524806=a30_0x46e4;(function(_0x106619,_0x2629e4){const _0x4e17e2=a30_0x46e4,_0x58e166=_0x106619();while(!![]){try{const _0xdc7b7d=-parseInt(_0x4e17e2(0x175))/0x1*(-parseInt(_0x4e17e2(0x172))/0x2)+parseInt(_0x4e17e2(0x185))/0x3+parseInt(_0x4e17e2(0x17b))/0x4*(-parseInt(_0x4e17e2(0x16d))/0x5)+-parseInt(_0x4e17e2(0x17f))/0x6+parseInt(_0x4e17e2(0x183))/0x7*(parseInt(_0x4e17e2(0x170))/0x8)+parseInt(_0x4e17e2(0x174))/0x9+parseInt(_0x4e17e2(0x182))/0xa;if(_0xdc7b7d===_0x2629e4)break;else _0x58e166['push'](_0x58e166['shift']());}catch(_0x2da7f0){_0x58e166['push'](_0x58e166['shift']());}}}(a30_0x568a,0x8a183));import{listDatasets}from'../../core/api-client.js';function a30_0x46e4(_0x506c39,_0x2c7bce){_0x506c39=_0x506c39-0x16a;const _0x568ad2=a30_0x568a();let _0x46e4f7=_0x568ad2[_0x506c39];return _0x46e4f7;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x524806(0x176),'command':a30_0x524806(0x173),'description':a30_0x524806(0x17a),'risk':'read','flags':[{'name':a30_0x524806(0x16c),'type':a30_0x524806(0x177),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{'name':a30_0x524806(0x178),'type':'string','description':'Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)'},{...CODE_FLAG,'required':![],'description':a30_0x524806(0x16b)}],async 'execute'(_0x21ef7e){const _0x560930=a30_0x524806,_0x22a141=_0x21ef7e['str'](_0x560930(0x16c)),_0x31656a=_0x21ef7e[_0x560930(0x184)](_0x560930(0x16e)),_0x19eecb=_0x21ef7e[_0x560930(0x184)](_0x560930(0x178)),_0x37026c=await listDatasets(_0x21ef7e['appCode'],{..._0x22a141&&{'name':_0x22a141},..._0x31656a&&{'code':_0x31656a},..._0x19eecb&&{'tableName':_0x19eecb}});return{'ok':!![],'data':{'total':_0x37026c[_0x560930(0x179)],'datasets':_0x37026c[_0x560930(0x16f)](_0x3a6f9b=>{const _0x44dbae=_0x560930,_0x5bdeba=_0x3a6f9b[_0x44dbae(0x17e)]??{};return{'id':_0x3a6f9b['id'],'code':_0x3a6f9b[_0x44dbae(0x16e)],'name':_0x3a6f9b[_0x44dbae(0x16c)],'source':_0x3a6f9b['source'],'description':_0x3a6f9b[_0x44dbae(0x17c)],'table':_0x5bdeba[_0x44dbae(0x181)],'datasetKey':_0x5bdeba[_0x44dbae(0x180)],'pk':_0x5bdeba['pkField'],'fields':_0x5bdeba[_0x44dbae(0x171)]?_0x5bdeba['allFields'][_0x44dbae(0x16a)](',')[_0x44dbae(0x16f)](_0xb1585d=>_0xb1585d[_0x44dbae(0x17d)]()):[]};})}};}};function a30_0x568a(){const _0x3b94a8=['table-name','length','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','217928XgwpoW','description','trim','dbtableConfig','5325330UNFirr','datasetKey','tableName','44950TAHIBb','1673aYqPAJ','str','117468yUArZs','split','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','name','25cHMHaZ','code','map','31368zKkFiC','allFields','438370NXdyKd','list','2758140LdDhWj','2ZDkZdH','dataset','string'];a30_0x568a=function(){return _0x3b94a8;};return a30_0x568a();}
1
+ const a30_0x7b8774=a30_0x4b8f;(function(_0x59fc14,_0x1d2d17){const _0x46b60a=a30_0x4b8f,_0x33e2f6=_0x59fc14();while(!![]){try{const _0x5c0c30=parseInt(_0x46b60a(0x17e))/0x1*(parseInt(_0x46b60a(0x196))/0x2)+-parseInt(_0x46b60a(0x193))/0x3*(parseInt(_0x46b60a(0x18c))/0x4)+-parseInt(_0x46b60a(0x17b))/0x5*(-parseInt(_0x46b60a(0x176))/0x6)+parseInt(_0x46b60a(0x17f))/0x7*(parseInt(_0x46b60a(0x194))/0x8)+parseInt(_0x46b60a(0x191))/0x9+-parseInt(_0x46b60a(0x188))/0xa*(-parseInt(_0x46b60a(0x186))/0xb)+-parseInt(_0x46b60a(0x180))/0xc;if(_0x5c0c30===_0x1d2d17)break;else _0x33e2f6['push'](_0x33e2f6['shift']());}catch(_0x34eb0e){_0x33e2f6['push'](_0x33e2f6['shift']());}}}(a30_0x4a9a,0x8c125));import{listDatasets}from'../../core/api-client.js';function a30_0x4b8f(_0x5b2e1f,_0x392e60){_0x5b2e1f=_0x5b2e1f-0x176;const _0x4a9ac0=a30_0x4a9a();let _0x4b8f80=_0x4a9ac0[_0x5b2e1f];return _0x4b8f80;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x7b8774(0x190),'command':a30_0x7b8774(0x195),'description':a30_0x7b8774(0x181),'risk':a30_0x7b8774(0x17a),'flags':[{'name':a30_0x7b8774(0x18e),'type':a30_0x7b8774(0x18f),'description':a30_0x7b8774(0x192)},{'name':a30_0x7b8774(0x177),'type':a30_0x7b8774(0x18f),'description':a30_0x7b8774(0x178)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x442464){const _0x17ecc1=a30_0x7b8774,_0x51f461=_0x442464[_0x17ecc1(0x183)](_0x17ecc1(0x18e)),_0x523534=_0x442464[_0x17ecc1(0x183)](_0x17ecc1(0x187)),_0xbaefc4=_0x442464[_0x17ecc1(0x183)]('table-name'),_0xb69e80=await listDatasets(_0x442464[_0x17ecc1(0x17c)],{..._0x51f461&&{'name':_0x51f461},..._0x523534&&{'code':_0x523534},..._0xbaefc4&&{'tableName':_0xbaefc4}});return{'ok':!![],'data':{'total':_0xb69e80[_0x17ecc1(0x184)],'datasets':_0xb69e80['map'](_0x36e928=>{const _0x2ac155=_0x17ecc1,_0x2ac5ea=_0x36e928[_0x2ac155(0x18a)]??{};return{'id':_0x36e928['id'],'code':_0x36e928[_0x2ac155(0x187)],'name':_0x36e928['name'],'source':_0x36e928[_0x2ac155(0x185)],'description':_0x36e928['description'],'table':_0x2ac5ea[_0x2ac155(0x18d)],'datasetKey':_0x2ac5ea[_0x2ac155(0x179)],'pk':_0x2ac5ea[_0x2ac155(0x182)],'fields':_0x2ac5ea[_0x2ac155(0x189)]?_0x2ac5ea[_0x2ac155(0x189)][_0x2ac155(0x18b)](',')[_0x2ac155(0x17d)](_0x37a62a=>_0x37a62a['trim']()):[]};})}};}};function a30_0x4a9a(){const _0x49eb37=['dataset','1219212IMBjzl','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','1163793GPpLAc','24qkCKlB','list','39122ljwvVA','4314732gSuciI','table-name','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','datasetKey','read','5zkDmWx','appCode','map','41EQcroe','1245965AgDXkq','14940000kMsXQx','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','pkField','str','length','source','44891yemXwC','code','990nNCSbg','allFields','dbtableConfig','split','8ZJZahH','tableName','name','string'];a30_0x4a9a=function(){return _0x49eb37;};return a30_0x4a9a();}
@@ -1 +1 @@
1
- const a31_0x6aca71=a31_0x1f2d;(function(_0x2a5ecc,_0x3e2cbf){const _0x17a1b0=a31_0x1f2d,_0x21ecf4=_0x2a5ecc();while(!![]){try{const _0x2954e6=-parseInt(_0x17a1b0(0x1f1))/0x1+-parseInt(_0x17a1b0(0x1fd))/0x2*(-parseInt(_0x17a1b0(0x1fe))/0x3)+-parseInt(_0x17a1b0(0x202))/0x4+-parseInt(_0x17a1b0(0x1fc))/0x5+parseInt(_0x17a1b0(0x1f2))/0x6*(-parseInt(_0x17a1b0(0x1f3))/0x7)+-parseInt(_0x17a1b0(0x1fb))/0x8*(parseInt(_0x17a1b0(0x1f9))/0x9)+parseInt(_0x17a1b0(0x200))/0xa;if(_0x2954e6===_0x3e2cbf)break;else _0x21ecf4['push'](_0x21ecf4['shift']());}catch(_0x109816){_0x21ecf4['push'](_0x21ecf4['shift']());}}}(a31_0x47d7,0x6519d));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a31_0x1f2d(_0x350c9,_0x5c3a4d){_0x350c9=_0x350c9-0x1f0;const _0x47d7d8=a31_0x47d7();let _0x1f2d9f=_0x47d7d8[_0x350c9];return _0x1f2d9f;}const DEFAULT_MARKDOWN=a31_0x6aca71(0x1f0);function a31_0x47d7(){const _0x24ac76=['18543cpKHla','str','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','sdk-doc','appCode','string','879813KWkyEa','trim','48URsGGA','787830esJDDg','326234IkPTcX','15QOTKny','code','18629500tiqKvG','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2680916qgpIJV','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','344130kLxmQS','1146jyVNTJ'];a31_0x47d7=function(){return _0x24ac76;};return a31_0x47d7();}export function formatDatasetSdkMarkdown(_0x1371e6){const _0x277695=a31_0x6aca71,_0x113222=typeof _0x1371e6===_0x277695(0x1f8)?_0x1371e6[_0x277695(0x1fa)]():'';return _0x113222||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a31_0x6aca71(0x1f6),'description':a31_0x6aca71(0x201),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x6aca71(0x1f5)}],async 'execute'(_0x46c739){const _0x3a796d=a31_0x6aca71,_0x4a03fd=_0x46c739[_0x3a796d(0x1f4)](_0x3a796d(0x1ff)),_0x1ab86c=await getDatasetSdkUsageDoc(_0x4a03fd,_0x46c739['appCode']);return{'ok':!![],'data':{'code':_0x4a03fd,'appCode':_0x46c739[_0x3a796d(0x1f7)],'markdown':formatDatasetSdkMarkdown(_0x1ab86c)}};}};
1
+ const a31_0x5a6986=a31_0x3112;(function(_0x3fc72b,_0x32f610){const _0x519874=a31_0x3112,_0x581d36=_0x3fc72b();while(!![]){try{const _0x19e8cf=-parseInt(_0x519874(0x1df))/0x1+parseInt(_0x519874(0x1da))/0x2+parseInt(_0x519874(0x1dc))/0x3*(parseInt(_0x519874(0x1e8))/0x4)+parseInt(_0x519874(0x1e4))/0x5*(parseInt(_0x519874(0x1d8))/0x6)+-parseInt(_0x519874(0x1db))/0x7+parseInt(_0x519874(0x1e7))/0x8*(-parseInt(_0x519874(0x1e5))/0x9)+-parseInt(_0x519874(0x1e0))/0xa*(-parseInt(_0x519874(0x1d9))/0xb);if(_0x19e8cf===_0x32f610)break;else _0x581d36['push'](_0x581d36['shift']());}catch(_0x5a905a){_0x581d36['push'](_0x581d36['shift']());}}}(a31_0x2859,0x7de68));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x5a6986(0x1e3);export function formatDatasetSdkMarkdown(_0x12023c){const _0x2be057=a31_0x5a6986,_0x46c97a=typeof _0x12023c===_0x2be057(0x1dd)?_0x12023c['trim']():'';return _0x46c97a||DEFAULT_MARKDOWN;}function a31_0x2859(){const _0x2fe1a2=['28780PCBRta','27BXtujG','appCode','814056ixOiip','4YLiXdj','462zGhNmU','11zAFTea','757052pkCmen','3437126DPByzv','724443pQffRB','string','sdk-doc','243789NGKSWw','4925470KFuFbx','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','read','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.'];a31_0x2859=function(){return _0x2fe1a2;};return a31_0x2859();}function a31_0x3112(_0x340473,_0x2723a2){_0x340473=_0x340473-0x1d8;const _0x28597b=a31_0x2859();let _0x311278=_0x28597b[_0x340473];return _0x311278;}export const datasetSdkDoc={'service':'dataset','command':a31_0x5a6986(0x1de),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a31_0x5a6986(0x1e2),'flags':[{...CODE_FLAG,'description':a31_0x5a6986(0x1e1)}],async 'execute'(_0x320125){const _0x9be091=a31_0x5a6986,_0x362c09=_0x320125['str']('code'),_0x578ab0=await getDatasetSdkUsageDoc(_0x362c09,_0x320125['appCode']);return{'ok':!![],'data':{'code':_0x362c09,'appCode':_0x320125[_0x9be091(0x1e6)],'markdown':formatDatasetSdkMarkdown(_0x578ab0)}};}};
@@ -1 +1 @@
1
- const a32_0x29f9c3=a32_0x32a7;(function(_0x20829f,_0x33d3f2){const _0x449c81=a32_0x32a7,_0x18a563=_0x20829f();while(!![]){try{const _0x1017a7=parseInt(_0x449c81(0x197))/0x1*(parseInt(_0x449c81(0x1ae))/0x2)+parseInt(_0x449c81(0x1c6))/0x3+-parseInt(_0x449c81(0x19a))/0x4*(parseInt(_0x449c81(0x17b))/0x5)+-parseInt(_0x449c81(0x1ec))/0x6*(-parseInt(_0x449c81(0x1b9))/0x7)+-parseInt(_0x449c81(0x1de))/0x8+parseInt(_0x449c81(0x1ad))/0x9*(parseInt(_0x449c81(0x1f0))/0xa)+-parseInt(_0x449c81(0x1a6))/0xb*(-parseInt(_0x449c81(0x193))/0xc);if(_0x1017a7===_0x33d3f2)break;else _0x18a563['push'](_0x18a563['shift']());}catch(_0x338303){_0x18a563['push'](_0x18a563['shift']());}}}(a32_0x18bf,0x329c4));function a32_0x32a7(_0x4e77d8,_0x442929){_0x4e77d8=_0x4e77d8-0x17a;const _0x18bfda=a32_0x18bf();let _0x32a721=_0x18bfda[_0x4e77d8];return _0x32a721;}import a32_0x996257 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';function a32_0x18bf(){const _0x1e6d68=['4oCawvk','format','red','currentApp','\x20\x20kbServiceDomain:\x20','\x20config\x20delete\x20routing','\x20+\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','serviceCount','\x20\x20Routing\x20Configuration','check','1359545MvIaCk','globalConfig','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','missing','\x20\x20runtimeDomain:\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','9gWiWPo','3606UdjGZi','hasOwnProperty','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','✗\x20Invalid\x20JSON','\x20doctor','join','\x20\x20Service\x20Tree','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','yellow','gray','63560jyKCuG','\x20\x20Package\x20Version:\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20API\x20Endpoints','\x20\x20Country/Region\x20Configuration','services','filter','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','\x20\x20─','118506hueOWj','locale','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20init','inherit','⚠\x20Empty','appCode','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','projectConfig','reason','state','ignored\x20in\x20','repeat','raw','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','(unnamed)','prototype','length','verbose','green','\x20config','1709784RghIhN','path','padEnd','(removed\x20—\x20cookie\x20auth\x20disabled)','current','\x20\x20Repair\x20project:\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','(set,\x20length=','\x20config\x20delete\x20inherit','\x20\x20Repair\x20global:\x20\x20\x20','accessKey','\x20\x20Merged\x20Config','bold','168hwIhNR','call','includes','(missing)','3073240HePccb','status','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','\x20\x20skillDomain:\x20\x20\x20\x20\x20','serviceCode','region','\x20\x20Built-in\x20Skill','doctor','\x20\x20Config\x20JSON','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Skill\x20Version:\x20\x20\x20','2050075gztdlI','not\x20configured','packageVersion','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','project','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','Project','riskLevel','repairCommand','\x20Imported\x20from:\x20','routing','registryPath','name','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','platform','log','\x20config\x20delete\x20routing\x20--global','12aqSDyd','skillVersion','commandCount','ClientAk','59RZMUYF','(default)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'];a32_0x18bf=function(){return _0x1e6d68;};return a32_0x18bf();}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(_0x2e0e7e){const _0x34dbf6=a32_0x32a7,_0xaf3f69=getCliVersion(),_0x238766=buildConfigFromFlags({});let _0x56bda1,_0x28a847;try{_0x56bda1=normalizeLovrabetRegion(_0x238766[_0x34dbf6(0x1d5)][_0x34dbf6(0x1f6)]);}catch(_0x2c6747){_0x28a847=_0x2c6747 instanceof Error?_0x2c6747:new Error(String(_0x2c6747));}let _0xbe7d5;if(!_0x28a847)try{await initGlobalEnvironment(_0x238766);}catch(_0x27392a){_0xbe7d5=_0x27392a instanceof Error?_0x27392a:new Error(String(_0x27392a));}console[_0x34dbf6(0x191)](),console['log'](a32_0x996257[_0x34dbf6(0x1eb)](CLI_BIN_NAME+_0x34dbf6(0x1b3))),console[_0x34dbf6(0x191)](a32_0x996257['gray']('─'[_0x34dbf6(0x1d4)](0x32))),console[_0x34dbf6(0x191)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0xaf3f69),console[_0x34dbf6(0x191)](_0x34dbf6(0x1d6)+process['version']),console[_0x34dbf6(0x191)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x34dbf6(0x190)]+'\x20'+process['arch']);const _0x3e7daa=inspectBuiltinSkill();console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1f7))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1b0)+(_0x3e7daa[_0x34dbf6(0x1d2)]==='current'?a32_0x996257[_0x34dbf6(0x1dc)](_0x34dbf6(0x1c4)):a32_0x996257['red']('✗\x20'+_0x3e7daa[_0x34dbf6(0x1d2)]))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1ba)+_0x3e7daa[_0x34dbf6(0x17d)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x17a)+(_0x3e7daa[_0x34dbf6(0x194)]||a32_0x996257[_0x34dbf6(0x1b8)]('(missing)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1a8)+(_0x3e7daa['installedPath']||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x18c))));_0x3e7daa[_0x34dbf6(0x1d2)]!==_0x34dbf6(0x1e2)&&console['log'](_0x34dbf6(0x1e4)+_0x3e7daa[_0x34dbf6(0x185)]);_0x3e7daa[_0x34dbf6(0x1d1)]&&console[_0x34dbf6(0x191)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e7daa[_0x34dbf6(0x1d1)]);console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257['bold'](_0x34dbf6(0x1bc))),console['log'](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x3348a9=getGlobalConfigPath(),_0x30a47d=getProjectConfigPath();console[_0x34dbf6(0x191)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3348a9||a32_0x996257[_0x34dbf6(0x1b8)]('(not\x20found)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x181)+(_0x30a47d||a32_0x996257['gray']('(not\x20found)'))),console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1f9))),console['log'](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x21c361=(_0x14dfe7,_0x356257)=>{const _0x3e39c5=_0x34dbf6;if(!_0x356257){console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1b8)](_0x3e39c5(0x1e5)));return;}const _0x1d1dc9=inspectCliConfigJsonFile(_0x356257);if(_0x1d1dc9['status']==='ok')console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1dc)](_0x3e39c5(0x1c9)));else{if(_0x1d1dc9[_0x3e39c5(0x1f1)]===_0x3e39c5(0x18f))console['log']('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1b7)](_0x3e39c5(0x18a)));else _0x1d1dc9[_0x3e39c5(0x1f1)]===_0x3e39c5(0x1aa)?console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257['gray'](_0x3e39c5(0x1ef))):(console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x19c)](_0x3e39c5(0x1b2))),console[_0x3e39c5(0x191)]('\x20\x20'+''[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257['red'](_0x1d1dc9[_0x3e39c5(0x1b1)])));}};_0x21c361('Global',_0x3348a9),_0x21c361(_0x34dbf6(0x183),_0x30a47d);const _0x593634=loadRawConfigLayers(),_0xb36061=[Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x1cc))?'global':null,Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x1cc))?_0x34dbf6(0x17f):null][_0x34dbf6(0x1c2)](Boolean);_0xb36061[_0x34dbf6(0x1da)]>0x0&&(console[_0x34dbf6(0x191)](_0x34dbf6(0x1a9)+a32_0x996257[_0x34dbf6(0x1b7)](_0x34dbf6(0x1d3)+_0xb36061[_0x34dbf6(0x1b4)](_0x34dbf6(0x1a0))+_0x34dbf6(0x1dd))),_0xb36061[_0x34dbf6(0x1ee)](_0x34dbf6(0x17f))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1e7)),_0xb36061['includes'](_0x34dbf6(0x18d))&&console['log'](_0x34dbf6(0x1fa)+CLI_BIN_NAME+_0x34dbf6(0x1ac)));_0xbe7d5&&(console[_0x34dbf6(0x191)](),console['log'](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1a4))),console[_0x34dbf6(0x191)](a32_0x996257['gray'](_0x34dbf6(0x1c5)['repeat'](0x1e))),console[_0x34dbf6(0x191)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x996257[_0x34dbf6(0x19c)]('✗\x20Invalid')),console[_0x34dbf6(0x191)](_0x34dbf6(0x18b)+_0xbe7d5['message']),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x187))&&console[_0x34dbf6(0x191)](_0x34dbf6(0x1e3)+CLI_BIN_NAME+_0x34dbf6(0x19f)),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x187))&&console['log'](_0x34dbf6(0x1e8)+CLI_BIN_NAME+_0x34dbf6(0x192)));_0x28a847&&(console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1c0))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)['repeat'](0x1e))),console['log'](_0x34dbf6(0x1c3)+a32_0x996257[_0x34dbf6(0x19c)](_0x34dbf6(0x1f3))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28a847['message']),Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x1f6))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1be)),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x1f6))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1cb)));console['log'](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1ea))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)]('\x20\x20─'[_0x34dbf6(0x1d4)](0x1e))),console['log'](_0x34dbf6(0x1ca)+(_0x238766[_0x34dbf6(0x1ce)]||a32_0x996257[_0x34dbf6(0x19c)]('(not\x20set)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1c8)+(_0x56bda1??a32_0x996257['red']('(invalid)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1b6)+_0x238766[_0x34dbf6(0x1c7)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x238766['defaultApp']||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1bd)+(_0x238766[_0x34dbf6(0x19d)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1fd)+(_0x238766[_0x34dbf6(0x19b)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1d7)+DEFAULT_CONFIG_VALUES[_0x34dbf6(0x19b)]+')'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1a1)+(_0x238766[_0x34dbf6(0x1a2)]??a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x198)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x238766[_0x34dbf6(0x184)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x18e)+_0x238766[_0x34dbf6(0x1db)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x1fe)+AUTH_MODE[_0x34dbf6(0x196)]),console[_0x34dbf6(0x191)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x238766['accessKey']?a32_0x996257[_0x34dbf6(0x1dc)](_0x34dbf6(0x1e6)+_0x238766[_0x34dbf6(0x1e9)]['length']+')'):a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1bf))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)]('\x20\x20─'['repeat'](0x1e)));_0xbe7d5||_0x28a847?console[_0x34dbf6(0x191)](_0x34dbf6(0x1c3)+a32_0x996257[_0x34dbf6(0x19c)](_0x34dbf6(0x17e))):(console[_0x34dbf6(0x191)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x34dbf6(0x1cf)+getUserDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x1ab)+getRuntimeDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x1f4)+getSkillDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x19e)+(getKbServiceDomain()??_0x34dbf6(0x17c))));console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1b5))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x172bf8=inspectServiceRegistry();console[_0x34dbf6(0x191)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x172bf8[_0x34dbf6(0x188)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x1c3)+formatServiceRegistryStatus(_0x172bf8)),console[_0x34dbf6(0x191)](_0x34dbf6(0x199)+_0x172bf8[_0x34dbf6(0x1a3)]),console['log'](_0x34dbf6(0x1f2)+_0x172bf8[_0x34dbf6(0x195)]);for(const _0x13eb30 of _0x172bf8[_0x34dbf6(0x1c1)]){console['log']('\x20\x20'+(_0x13eb30[_0x34dbf6(0x1f5)]+':')[_0x34dbf6(0x1e0)](0x11)+'\x20'+(_0x13eb30[_0x34dbf6(0x189)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1d8)))+'\x20('+_0x13eb30['commandCount']+'\x20commands)'),console['log']('\x20\x20'+''[_0x34dbf6(0x1e0)](0x11)+_0x34dbf6(0x186)+_0x13eb30['source'][_0x34dbf6(0x1df)]);}return console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x180))),console[_0x34dbf6(0x191)](a32_0x996257['gray'](_0x34dbf6(0x1c5)['repeat'](0x1e))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1bb)+a32_0x996257[_0x34dbf6(0x1dc)](AUTH_MODE[_0x34dbf6(0x196)]+'\x20(accessKey)')),console['log'](_0x34dbf6(0x1fb)+a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1e1))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x54ecdc){const _0x16b560=a32_0x32a7;if(_0x54ecdc['status']==='ok')return a32_0x996257['green']('✓\x20Loaded');if(_0x54ecdc[_0x16b560(0x1f1)]==='missing')return a32_0x996257[_0x16b560(0x1b8)](_0x16b560(0x18c));if(_0x54ecdc[_0x16b560(0x1f1)]==='empty')return a32_0x996257['yellow'](_0x16b560(0x1cd));return a32_0x996257[_0x16b560(0x19c)](_0x16b560(0x1f3)+(_0x54ecdc[_0x16b560(0x1b1)]?':\x20'+_0x54ecdc[_0x16b560(0x1b1)]:''));}export const doctorDefinition={'service':a32_0x29f9c3(0x1f8),'command':a32_0x29f9c3(0x1a5),'description':a32_0x29f9c3(0x1fc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x3b35cd=a32_0x77c6;(function(_0x5c75be,_0x5f5298){const _0x3169c0=a32_0x77c6,_0x902b8d=_0x5c75be();while(!![]){try{const _0x134ee3=-parseInt(_0x3169c0(0xc6))/0x1+-parseInt(_0x3169c0(0x96))/0x2*(-parseInt(_0x3169c0(0x97))/0x3)+parseInt(_0x3169c0(0xce))/0x4*(-parseInt(_0x3169c0(0xb6))/0x5)+parseInt(_0x3169c0(0x9c))/0x6*(parseInt(_0x3169c0(0xc8))/0x7)+parseInt(_0x3169c0(0x100))/0x8+-parseInt(_0x3169c0(0xb0))/0x9+parseInt(_0x3169c0(0xbc))/0xa;if(_0x134ee3===_0x5f5298)break;else _0x902b8d['push'](_0x902b8d['shift']());}catch(_0x4e3c90){_0x902b8d['push'](_0x902b8d['shift']());}}}(a32_0x1a20,0x5ef3e));import a32_0xa6f982 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';function a32_0x77c6(_0x154bd6,_0x369e12){_0x154bd6=_0x154bd6-0x84;const _0x1a202a=a32_0x1a20();let _0x77c62e=_0x1a202a[_0x154bd6];return _0x77c62e;}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(_0x97e0de){const _0x586068=a32_0x77c6,_0x4d5a47=getCliVersion(),_0x1493db=buildConfigFromFlags({});let _0x3652c5,_0x1fc16a;try{_0x3652c5=normalizeLovrabetRegion(_0x1493db['raw'][_0x586068(0xb9)]);}catch(_0x418d9b){_0x1fc16a=_0x418d9b instanceof Error?_0x418d9b:new Error(String(_0x418d9b));}let _0x614b2;if(!_0x1fc16a)try{await initGlobalEnvironment(_0x1493db);}catch(_0x7c27bb){_0x614b2=_0x7c27bb instanceof Error?_0x7c27bb:new Error(String(_0x7c27bb));}console[_0x586068(0xf6)](),console['log'](a32_0xa6f982['bold'](CLI_BIN_NAME+_0x586068(0xb3))),console['log'](a32_0xa6f982[_0x586068(0xa9)]('─'['repeat'](0x32))),console[_0x586068(0xf6)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4d5a47),console[_0x586068(0xf6)](_0x586068(0xfc)+process[_0x586068(0xb4)]),console[_0x586068(0xf6)](_0x586068(0xd5)+process[_0x586068(0x9b)]+'\x20'+process[_0x586068(0x91)]);const _0x21edc3=inspectBuiltinSkill();console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982['bold'](_0x586068(0x84))),console['log'](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)[_0x586068(0xd7)](0x1e))),console[_0x586068(0xf6)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x21edc3[_0x586068(0xb5)]===_0x586068(0x93)?a32_0xa6f982[_0x586068(0xef)](_0x586068(0xf2)):a32_0xa6f982[_0x586068(0xf1)]('✗\x20'+_0x21edc3[_0x586068(0xb5)]))),console[_0x586068(0xf6)](_0x586068(0xec)+_0x21edc3['packageVersion']),console[_0x586068(0xf6)](_0x586068(0xd4)+(_0x21edc3[_0x586068(0x90)]||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0xbd)))),console[_0x586068(0xf6)](_0x586068(0xb7)+(_0x21edc3[_0x586068(0xb2)]||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x92))));_0x21edc3['state']!==_0x586068(0x93)&&console['log'](_0x586068(0xc9)+_0x21edc3[_0x586068(0xda)]);_0x21edc3[_0x586068(0xa1)]&&console[_0x586068(0xf6)](_0x586068(0xfa)+_0x21edc3[_0x586068(0xa1)]);console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982['bold'](_0x586068(0xcb))),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)[_0x586068(0xd7)](0x1e)));const _0xc5df67=getGlobalConfigPath(),_0x8c73ac=getProjectConfigPath();console[_0x586068(0xf6)](_0x586068(0x89)+(_0xc5df67||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x92)))),console[_0x586068(0xf6)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x8c73ac||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x92)))),console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0x101)](_0x586068(0xa8))),console[_0x586068(0xf6)](a32_0xa6f982['gray'](_0x586068(0x86)[_0x586068(0xd7)](0x1e)));const _0x4b5c5a=(_0x3698d6,_0x11e137)=>{const _0x3b3a87=_0x586068;if(!_0x11e137){console[_0x3b3a87(0xf6)]('\x20\x20'+_0x3698d6['padEnd'](0x11)+'\x20'+a32_0xa6f982['gray'](_0x3b3a87(0x8a)));return;}const _0x4f3d80=inspectCliConfigJsonFile(_0x11e137);if(_0x4f3d80[_0x3b3a87(0xf5)]==='ok')console['log']('\x20\x20'+_0x3698d6[_0x3b3a87(0xf9)](0x11)+'\x20'+a32_0xa6f982[_0x3b3a87(0xef)]('✓\x20Valid\x20JSON'));else{if(_0x4f3d80[_0x3b3a87(0xf5)]==='empty')console['log']('\x20\x20'+_0x3698d6[_0x3b3a87(0xf9)](0x11)+'\x20'+a32_0xa6f982[_0x3b3a87(0xe8)](_0x3b3a87(0x9e)));else _0x4f3d80['status']==='missing'?console['log']('\x20\x20'+_0x3698d6[_0x3b3a87(0xf9)](0x11)+'\x20'+a32_0xa6f982[_0x3b3a87(0xa9)](_0x3b3a87(0xbd))):(console['log']('\x20\x20'+_0x3698d6[_0x3b3a87(0xf9)](0x11)+'\x20'+a32_0xa6f982['red'](_0x3b3a87(0xbb))),console[_0x3b3a87(0xf6)]('\x20\x20'+''[_0x3b3a87(0xf9)](0x11)+'\x20'+a32_0xa6f982[_0x3b3a87(0xf1)](_0x4f3d80['message'])));}};_0x4b5c5a(_0x586068(0xde),_0xc5df67),_0x4b5c5a(_0x586068(0xcc),_0x8c73ac);const _0x5a5281=loadRawConfigLayers(),_0x5c9e8f=[Object[_0x586068(0x102)]['hasOwnProperty']['call'](_0x5a5281['globalConfig'],_0x586068(0xbf))?_0x586068(0xc5):null,Object[_0x586068(0x102)][_0x586068(0xaf)]['call'](_0x5a5281[_0x586068(0xc3)],_0x586068(0xbf))?_0x586068(0xba):null][_0x586068(0xfe)](Boolean);_0x5c9e8f[_0x586068(0xe1)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0xa6f982[_0x586068(0xe8)](_0x586068(0x94)+_0x5c9e8f[_0x586068(0xe7)](_0x586068(0x87))+_0x586068(0xad))),_0x5c9e8f[_0x586068(0xae)](_0x586068(0xba))&&console['log'](_0x586068(0xa0)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x5c9e8f[_0x586068(0xae)](_0x586068(0xc5))&&console[_0x586068(0xf6)](_0x586068(0xe2)+CLI_BIN_NAME+_0x586068(0xf0)));_0x614b2&&(console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0x101)](_0x586068(0x8f))),console['log'](a32_0xa6f982['gray'](_0x586068(0x86)[_0x586068(0xd7)](0x1e))),console[_0x586068(0xf6)](_0x586068(0xea)+a32_0xa6f982[_0x586068(0xf1)]('✗\x20Invalid')),console[_0x586068(0xf6)](_0x586068(0xfa)+_0x614b2['message']),Object[_0x586068(0x102)][_0x586068(0xaf)]['call'](_0x5a5281['projectConfig'],_0x586068(0xf4))&&console[_0x586068(0xf6)](_0x586068(0x99)+CLI_BIN_NAME+_0x586068(0xcf)),Object[_0x586068(0x102)][_0x586068(0xaf)]['call'](_0x5a5281[_0x586068(0xa5)],'routing')&&console['log'](_0x586068(0x9f)+CLI_BIN_NAME+_0x586068(0x8b)));_0x1fc16a&&(console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982['bold'](_0x586068(0xaa))),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)[_0x586068(0xd7)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xa6f982[_0x586068(0xf1)](_0x586068(0xdc))),console[_0x586068(0xf6)](_0x586068(0xfa)+_0x1fc16a[_0x586068(0xee)]),Object['prototype'][_0x586068(0xaf)][_0x586068(0xb8)](_0x5a5281[_0x586068(0xc3)],_0x586068(0xb9))&&console[_0x586068(0xf6)](_0x586068(0x99)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x586068(0x102)]['hasOwnProperty']['call'](_0x5a5281[_0x586068(0xa5)],_0x586068(0xb9))&&console['log'](_0x586068(0x9f)+CLI_BIN_NAME+_0x586068(0x8c)));console[_0x586068(0xf6)](),console['log'](a32_0xa6f982[_0x586068(0x101)](_0x586068(0xa4))),console[_0x586068(0xf6)](a32_0xa6f982['gray']('\x20\x20─'[_0x586068(0xd7)](0x1e))),console[_0x586068(0xf6)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1493db[_0x586068(0xd2)]||a32_0xa6f982[_0x586068(0xf1)](_0x586068(0xa6)))),console[_0x586068(0xf6)](_0x586068(0xd8)+(_0x3652c5??a32_0xa6f982['red'](_0x586068(0xac)))),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1493db['locale']),console[_0x586068(0xf6)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1493db['defaultApp']||a32_0xa6f982['gray'](_0x586068(0xdd)))),console[_0x586068(0xf6)](_0x586068(0xf8)+(_0x1493db[_0x586068(0xa3)]||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0xdd)))),console[_0x586068(0xf6)](_0x586068(0xed)+(_0x1493db[_0x586068(0xff)]||a32_0xa6f982[_0x586068(0xa9)](_0x586068(0xe5)+DEFAULT_CONFIG_VALUES[_0x586068(0xff)]+')'))),console[_0x586068(0xf6)](_0x586068(0xb1)+(_0x1493db[_0x586068(0xe4)]??a32_0xa6f982[_0x586068(0xa9)](_0x586068(0xc7)))),console['log'](_0x586068(0x8d)+_0x1493db[_0x586068(0x98)]),console[_0x586068(0xf6)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1493db[_0x586068(0xd9)]),console['log'](_0x586068(0xc1)+AUTH_MODE[_0x586068(0xab)]),console[_0x586068(0xf6)](_0x586068(0xfd)+(_0x1493db['accessKey']?a32_0xa6f982[_0x586068(0xef)]('(set,\x20length='+_0x1493db[_0x586068(0xcd)][_0x586068(0xe1)]+')'):a32_0xa6f982[_0x586068(0xa9)](_0x586068(0xdd)))),console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0x101)](_0x586068(0xd0))),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)['repeat'](0x1e)));_0x614b2||_0x1fc16a?console[_0x586068(0xf6)](_0x586068(0xea)+a32_0xa6f982['red'](_0x586068(0xdf))):(console[_0x586068(0xf6)](_0x586068(0x9a)+getApiDomain()),console[_0x586068(0xf6)](_0x586068(0xe6)+getUserDomain()),console['log'](_0x586068(0xd1)+getRuntimeDomain()),console['log'](_0x586068(0xc0)+getSkillDomain()),console[_0x586068(0xf6)](_0x586068(0xc2)+(getKbServiceDomain()??'not\x20configured')));console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982['bold'](_0x586068(0xf7))),console['log'](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)[_0x586068(0xd7)](0x1e)));const _0x3bc910=inspectServiceRegistry();console[_0x586068(0xf6)](_0x586068(0xc4)+_0x3bc910[_0x586068(0xe0)]),console[_0x586068(0xf6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x3bc910)),console[_0x586068(0xf6)](_0x586068(0x88)+_0x3bc910['serviceCount']),console[_0x586068(0xf6)](_0x586068(0xbe)+_0x3bc910[_0x586068(0xe3)]);for(const _0x501fce of _0x3bc910['services']){console[_0x586068(0xf6)]('\x20\x20'+(_0x501fce[_0x586068(0xdb)]+':')['padEnd'](0x11)+'\x20'+(_0x501fce['name']||a32_0xa6f982[_0x586068(0xa9)]('(unnamed)'))+'\x20('+_0x501fce[_0x586068(0xe3)]+_0x586068(0xeb)),console['log']('\x20\x20'+''[_0x586068(0xf9)](0x11)+_0x586068(0xca)+_0x501fce['source'][_0x586068(0x85)]);}return console[_0x586068(0xf6)](),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0x101)](_0x586068(0x95))),console[_0x586068(0xf6)](a32_0xa6f982[_0x586068(0xa9)](_0x586068(0x86)[_0x586068(0xd7)](0x1e))),console[_0x586068(0xf6)](_0x586068(0x103)+a32_0xa6f982[_0x586068(0xef)](AUTH_MODE[_0x586068(0xab)]+'\x20(accessKey)')),console['log'](_0x586068(0xa2)+a32_0xa6f982['gray'](_0x586068(0x9d))),console[_0x586068(0xf6)](),{'ok':!![]};}function a32_0x1a20(){const _0x33de26=['\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','doctor','repeat','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','repairCommand','serviceCode','✗\x20Invalid','(none)','Global','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','registryPath','length','\x20\x20Repair\x20global:\x20\x20\x20\x20','commandCount','pageSize','(default:\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','join','yellow','read','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','\x20\x20Package\x20Version:\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','green','\x20config\x20delete\x20inherit\x20--global','red','✓\x20current','missing','routing','status','log','\x20\x20Service\x20Tree','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','filter','format','5094072hrQnNg','bold','prototype','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','path','\x20\x20─','\x20+\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20config\x20delete\x20routing\x20--global','\x20config\x20init','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','check','\x20\x20Routing\x20Configuration','skillVersion','arch','(not\x20found)','current','ignored\x20in\x20','\x20\x20Auth','2tGMkdK','2175009MiLXuM','riskLevel','\x20\x20Repair\x20project:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','platform','66yJMkoP','(removed\x20—\x20cookie\x20auth\x20disabled)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','reason','\x20\x20Session\x20check:\x20\x20\x20','currentApp','\x20\x20Merged\x20Config','globalConfig','(not\x20set)','✓\x20Loaded','\x20\x20Config\x20JSON','gray','\x20\x20Country/Region\x20Configuration','ClientAk','(invalid)','\x20config','includes','hasOwnProperty','6982254kdosxF','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','\x20doctor','version','state','195sbYOYt','\x20\x20Installed\x20Path:\x20\x20','call','region','project','✗\x20Invalid\x20JSON','5292840xFMHLY','(missing)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','inherit','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20kbServiceDomain:\x20','projectConfig','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','global','724225oDWkoT','(default)','151501sVvyHV','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','\x20\x20Config\x20Files','Project','accessKey','24632CHxdCO','\x20config\x20delete\x20routing','\x20\x20API\x20Endpoints','\x20\x20runtimeDomain:\x20\x20\x20','appCode','Diagnose\x20CLI\x20configuration\x20and\x20environment'];a32_0x1a20=function(){return _0x33de26;};return a32_0x1a20();}function formatServiceRegistryStatus(_0x3efd67){const _0x31df63=a32_0x77c6;if(_0x3efd67[_0x31df63(0xf5)]==='ok')return a32_0xa6f982['green'](_0x31df63(0xa7));if(_0x3efd67[_0x31df63(0xf5)]===_0x31df63(0xf3))return a32_0xa6f982[_0x31df63(0xa9)](_0x31df63(0x92));if(_0x3efd67['status']===_0x31df63(0xfb))return a32_0xa6f982[_0x31df63(0xe8)]('⚠\x20Empty');return a32_0xa6f982[_0x31df63(0xf1)](_0x31df63(0xdc)+(_0x3efd67[_0x31df63(0xee)]?':\x20'+_0x3efd67[_0x31df63(0xee)]:''));}export const doctorDefinition={'service':a32_0x3b35cd(0xd6),'command':a32_0x3b35cd(0x8e),'description':a32_0x3b35cd(0xd3),'risk':a32_0x3b35cd(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x3c72f2=a33_0x4a32;(function(_0x5a497c,_0x365686){const _0x10fc95=a33_0x4a32,_0x1a53bd=_0x5a497c();while(!![]){try{const _0x3b1560=parseInt(_0x10fc95(0x1ab))/0x1*(parseInt(_0x10fc95(0x1bf))/0x2)+parseInt(_0x10fc95(0x1b7))/0x3+-parseInt(_0x10fc95(0x1be))/0x4+parseInt(_0x10fc95(0x1b0))/0x5+-parseInt(_0x10fc95(0x1b1))/0x6*(parseInt(_0x10fc95(0x1af))/0x7)+-parseInt(_0x10fc95(0x1c4))/0x8+parseInt(_0x10fc95(0x1bc))/0x9*(parseInt(_0x10fc95(0x1b2))/0xa);if(_0x3b1560===_0x365686)break;else _0x1a53bd['push'](_0x1a53bd['shift']());}catch(_0x19b001){_0x1a53bd['push'](_0x1a53bd['shift']());}}}(a33_0x4c86,0xbc6bd));function a33_0x4a32(_0x2462f6,_0x32ae48){_0x2462f6=_0x2462f6-0x1ab;const _0x4c86ae=a33_0x4c86();let _0x4a3291=_0x4c86ae[_0x2462f6];return _0x4a3291;}function a33_0x4c86(){const _0x1e6dfc=['2495480Srqvkq','75882HgNrZp','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','build','upload','/client/uploadFile','5525168ooOGzA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','POST','description','download','path','\x20to\x20runtime\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','31EiArnZ','str','string','long-term','2639wcgyBq','3087300gEkLgO','17646aZZxEA','1355550wnslCl','read','appCode','filePath','body','950925IObIUV','filepath','boolean','file','filePath\x20is\x20required.','72NapFak','Preview:\x20upload\x20'];a33_0x4c86=function(){return _0x1e6dfc;};return a33_0x4c86();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x3c72f2(0x1ba),'type':a33_0x3c72f2(0x1ad),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x3c72f2(0x1ad),'required':!![],'description':a33_0x3c72f2(0x1c5)},DOWNLOAD_FLAG={'name':a33_0x3c72f2(0x1c8),'type':a33_0x3c72f2(0x1b9),'description':a33_0x3c72f2(0x1c0)},LONG_TERM_FLAG={'name':a33_0x3c72f2(0x1ae),'type':a33_0x3c72f2(0x1b9),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4ba35a){const _0x2d2990=a33_0x3c72f2,_0x47558a=_0x4ba35a['trim']();if(!_0x47558a)throw CliErrors['validation'](_0x2d2990(0x1bb));return _0x47558a;}const fileUpload={'service':a33_0x3c72f2(0x1ba),'command':a33_0x3c72f2(0x1c2),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x3c72f2(0x1b3),'flags':[FILE_FLAG],async 'dryRun'(_0x15bb6b){const _0x2b929c=a33_0x3c72f2,_0xe17b50=requireRuntimeUploadFile(_0x15bb6b[_0x2b929c(0x1ac)](_0x2b929c(0x1ba)),'File');return dryRun(_0x2b929c(0x1c6),_0x2b929c(0x1c3))[_0x2b929c(0x1b6)]({'appCode':_0x15bb6b[_0x2b929c(0x1b4)],'multipart':{'file':_0xe17b50}})[_0x2b929c(0x1c7)](_0x2b929c(0x1bd)+_0xe17b50[_0x2b929c(0x1c9)]+_0x2b929c(0x1ca)+_0x15bb6b[_0x2b929c(0x1b4)])[_0x2b929c(0x1c1)]();},async 'execute'(_0x94424d){const _0x2b54e1=a33_0x3c72f2,_0x15a47d=requireRuntimeUploadFile(_0x94424d['str'](_0x2b54e1(0x1ba)),'File'),_0x2e71bc=await uploadRuntimeFile(_0x94424d[_0x2b54e1(0x1b4)],_0x15a47d[_0x2b54e1(0x1c9)]);return{'ok':!![],'data':_0x2e71bc,'message':_0x2e71bc[_0x2b54e1(0x1b5)]?'Uploaded\x20file:\x20'+_0x2e71bc[_0x2b54e1(0x1b5)]+_0x2b54e1(0x1cb):_0x2b54e1(0x1cc)};}},fileQueryUrl={'service':a33_0x3c72f2(0x1ba),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x3c72f2(0x1b3),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4036a1){const _0x5462d5=a33_0x3c72f2,_0x32c0d0=requireFilePath(_0x4036a1[_0x5462d5(0x1ac)](_0x5462d5(0x1b8))),_0x304c58=await queryRuntimeFileUrl(_0x32c0d0,{'download':_0x4036a1['bool'](_0x5462d5(0x1c8)),'longTerm':_0x4036a1['bool'](_0x5462d5(0x1ae))});return{'ok':!![],'data':_0x304c58};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a33_0x24c0(){const _0x530eae=['path','8492iTmlSf','315586lrVnLe','/client/uploadFile','filePath','long-term','1651216yDSGIJ','validation','4790AdfwxD','trim','appCode','1146YWtjMZ','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','upload','filepath','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','body','2BTcFib','Preview:\x20upload\x20','str','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','456zBTtwg','727077KdSlRZ','8YboEeh','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','build','filePath\x20is\x20required.','Uploaded\x20file:\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1334661pBMUDm','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','POST','70650NFRqSh','4xxOibI','string','read','boolean','query-url','File','\x20to\x20runtime\x20app\x20','9730eeClYt','file'];a33_0x24c0=function(){return _0x530eae;};return a33_0x24c0();}const a33_0x16b747=a33_0x42f4;(function(_0x3f1888,_0x1559b0){const _0x5d149f=a33_0x42f4,_0x2bddd5=_0x3f1888();while(!![]){try{const _0x4442c8=parseInt(_0x5d149f(0x207))/0x1*(-parseInt(_0x5d149f(0x218))/0x2)+parseInt(_0x5d149f(0x1f8))/0x3*(-parseInt(_0x5d149f(0x1fc))/0x4)+parseInt(_0x5d149f(0x203))/0x5*(-parseInt(_0x5d149f(0x210))/0x6)+-parseInt(_0x5d149f(0x20b))/0x7+-parseInt(_0x5d149f(0x1f1))/0x8*(-parseInt(_0x5d149f(0x1fb))/0x9)+-parseInt(_0x5d149f(0x20d))/0xa*(parseInt(_0x5d149f(0x206))/0xb)+parseInt(_0x5d149f(0x1ef))/0xc*(parseInt(_0x5d149f(0x1f0))/0xd);if(_0x4442c8===_0x1559b0)break;else _0x2bddd5['push'](_0x2bddd5['shift']());}catch(_0xcb2e64){_0x2bddd5['push'](_0x2bddd5['shift']());}}}(a33_0x24c0,0x60835));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a33_0x42f4(_0x21cd81,_0x52b2df){_0x21cd81=_0x21cd81-0x1ee;const _0x24c0dd=a33_0x24c0();let _0x42f4d9=_0x24c0dd[_0x21cd81];return _0x42f4d9;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x16b747(0x204),'type':'string','required':!![],'description':a33_0x16b747(0x1f7)},FILEPATH_FLAG={'name':a33_0x16b747(0x214),'type':a33_0x16b747(0x1fd),'required':!![],'description':a33_0x16b747(0x1ee)},DOWNLOAD_FLAG={'name':a33_0x16b747(0x1f3),'type':a33_0x16b747(0x1ff),'description':a33_0x16b747(0x216)},LONG_TERM_FLAG={'name':'long-term','type':a33_0x16b747(0x1ff),'description':a33_0x16b747(0x1f9)};function requireFilePath(_0x51e451){const _0xf57cbc=a33_0x16b747,_0x2f0a96=_0x51e451[_0xf57cbc(0x20e)]();if(!_0x2f0a96)throw CliErrors[_0xf57cbc(0x20c)](_0xf57cbc(0x1f5));return _0x2f0a96;}const fileUpload={'service':a33_0x16b747(0x204),'command':a33_0x16b747(0x213),'description':a33_0x16b747(0x215),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0xc25535){const _0x2d4a9a=a33_0x16b747,_0x31e66d=requireRuntimeUploadFile(_0xc25535[_0x2d4a9a(0x21a)](_0x2d4a9a(0x204)),_0x2d4a9a(0x201));return dryRun(_0x2d4a9a(0x1fa),_0x2d4a9a(0x208))[_0x2d4a9a(0x217)]({'appCode':_0xc25535[_0x2d4a9a(0x20f)],'multipart':{'file':_0x31e66d}})['description'](_0x2d4a9a(0x219)+_0x31e66d[_0x2d4a9a(0x205)]+_0x2d4a9a(0x202)+_0xc25535[_0x2d4a9a(0x20f)])[_0x2d4a9a(0x1f4)]();},async 'execute'(_0x9e33ff){const _0x10b729=a33_0x16b747,_0x4613ff=requireRuntimeUploadFile(_0x9e33ff[_0x10b729(0x21a)](_0x10b729(0x204)),_0x10b729(0x201)),_0x55f667=await uploadRuntimeFile(_0x9e33ff[_0x10b729(0x20f)],_0x4613ff['path']);return{'ok':!![],'data':_0x55f667,'message':_0x55f667[_0x10b729(0x209)]?_0x10b729(0x1f6)+_0x55f667[_0x10b729(0x209)]+_0x10b729(0x211):_0x10b729(0x1f2)};}},fileQueryUrl={'service':a33_0x16b747(0x204),'command':a33_0x16b747(0x200),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x16b747(0x1fe),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4dfcfc){const _0x53fa5b=a33_0x16b747,_0x4a9067=requireFilePath(_0x4dfcfc[_0x53fa5b(0x21a)](_0x53fa5b(0x214))),_0xd2de4a=await queryRuntimeFileUrl(_0x4a9067,{'download':_0x4dfcfc['bool'](_0x53fa5b(0x1f3)),'longTerm':_0x4dfcfc[_0x53fa5b(0x212)](_0x53fa5b(0x20a))});return{'ok':!![],'data':_0xd2de4a};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x2d97d2=a34_0x2188;(function(_0x370eb0,_0x19f0cf){const _0x1882a2=a34_0x2188,_0x350d8d=_0x370eb0();while(!![]){try{const _0xe9a6ae=-parseInt(_0x1882a2(0x1da))/0x1*(parseInt(_0x1882a2(0x1d4))/0x2)+parseInt(_0x1882a2(0x1e6))/0x3+-parseInt(_0x1882a2(0x1de))/0x4+parseInt(_0x1882a2(0x1e5))/0x5*(-parseInt(_0x1882a2(0x1dd))/0x6)+parseInt(_0x1882a2(0x1d8))/0x7*(parseInt(_0x1882a2(0x1e8))/0x8)+parseInt(_0x1882a2(0x1f3))/0x9+parseInt(_0x1882a2(0x1d2))/0xa;if(_0xe9a6ae===_0x19f0cf)break;else _0x350d8d['push'](_0x350d8d['shift']());}catch(_0x5349d9){_0x350d8d['push'](_0x350d8d['shift']());}}}(a34_0x3266,0x477be));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a34_0x2188(_0x3f5d64,_0x36fd98){_0x3f5d64=_0x3f5d64-0x1ca;const _0x32662=a34_0x3266();let _0x218860=_0x32662[_0x3f5d64];return _0x218860;}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_0x2d97d2(0x1e0),'type':a34_0x2d97d2(0x1ec),'description':a34_0x2d97d2(0x1db),'required':!![]},{'name':a34_0x2d97d2(0x1f4),'type':'string','description':a34_0x2d97d2(0x1eb)},{'name':a34_0x2d97d2(0x1d3),'type':a34_0x2d97d2(0x1ec),'description':a34_0x2d97d2(0x1d9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x2d97d2(0x1cc),'type':'boolean','description':a34_0x2d97d2(0x1d5)+PRODUCT_CONFIG[a34_0x2d97d2(0x1f2)]+')\x20instead\x20of\x20project','default':![]},{'name':a34_0x2d97d2(0x1d0),'type':a34_0x2d97d2(0x1ce),'description':a34_0x2d97d2(0x1d7),'default':![]}];export async function runAppImport(_0x995454){const _0x378ba0=a34_0x2d97d2,_0x1ebedd=_0x995454[_0x378ba0(0x1cc)]?_0x378ba0(0x1cc):'project',_0xac258b=resolveWriteConfigPath(_0x1ebedd);await runFromImport(_0x995454,_0xac258b);}async function runFromImport(_0x143566,_0x3ee3f7){const _0x351115=a34_0x2d97d2,_0x2a08b2=resolveFilePath(_0x143566[_0x351115(0x1e0)]);if(!existsSync(_0x2a08b2))throw CliErrors[_0x351115(0x1d1)]('Source\x20file\x20not\x20found:\x20'+_0x2a08b2);const _0x4d3392=readSourceFile(_0x2a08b2),_0x38ea26=convertToRuntimeConfig(_0x4d3392);_0x143566[_0x351115(0x1f4)]&&(_0x38ea26[_0x351115(0x1f4)]=String(_0x143566[_0x351115(0x1f4)]));_0x143566[_0x351115(0x1d3)]&&(_0x38ea26['env']=resolveImportEnv(_0x143566));if(!_0x38ea26['appcode'])throw CliErrors[_0x351115(0x1d1)](_0x351115(0x1f0),_0x351115(0x1cb));await writeImportConfig(_0x3ee3f7,_0x38ea26,_0x143566),console[_0x351115(0x1e4)](_0x351115(0x1e2)+_0x2a08b2),console[_0x351115(0x1e4)](_0x351115(0x1e1)+_0x3ee3f7),console[_0x351115(0x1e4)](_0x351115(0x1e3)+_0x38ea26[_0x351115(0x1f4)]);if(_0x38ea26[_0x351115(0x1ca)])console[_0x351115(0x1e4)](_0x351115(0x1ee)+_0x38ea26[_0x351115(0x1ca)]);}function convertToRuntimeConfig(_0x3d8840){const _0x3c3625=a34_0x2d97d2;if(_0x3d8840[_0x3c3625(0x1cd)]&&typeof _0x3d8840['apps']===_0x3c3625(0x1df))throw CliErrors[_0x3c3625(0x1d1)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x3c3625(0x1ef));const _0x1a1d2d={};for(const _0x2d26bd of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3d8840[_0x2d26bd]!==undefined&&(_0x1a1d2d[_0x2d26bd]=_0x3d8840[_0x2d26bd]);}return!_0x1a1d2d[_0x3c3625(0x1dc)]&&(_0x1a1d2d[_0x3c3625(0x1dc)]=DEFAULT_CONFIG_VALUES[_0x3c3625(0x1dc)]),_0x1a1d2d;}async function writeImportConfig(_0x544f3f,_0x4c6ea6,_0x5e0555){const _0x4784c1=a34_0x2d97d2;let _0x4b4470={};existsSync(_0x544f3f)&&!_0x5e0555[_0x4784c1(0x1d0)]&&(_0x4b4470=readConfigFile(_0x544f3f));for(const [_0xabd4dd,_0xd10575]of Object[_0x4784c1(0x1f1)](_0x4c6ea6)){_0xd10575!==undefined&&(_0x4b4470[_0xabd4dd]=_0xd10575);}if(_0x4b4470[_0x4784c1(0x1e9)])delete _0x4b4470[_0x4784c1(0x1e9)];writeConfigFile(_0x544f3f,_0x4b4470);}function resolveFilePath(_0xb302a8){const _0x2bf673=a34_0x2d97d2;return isAbsolute(_0xb302a8)?_0xb302a8:resolve(process[_0x2bf673(0x1ed)](),_0xb302a8);}function a34_0x3266(){const _0xda28da=['Override\x20imported\x20default\x20env','293926VHyVQV','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','riskLevel','42ZJDEQk','782172fveeYi','object','file','\x20\x20config:\x20\x20','Imported\x20from\x20','\x20\x20appcode:\x20','log','154815cvyYvC','527559RXrvTG','parse','8QHcXCO','app','message','Override\x20imported\x20default\x20appcode','string','cwd','\x20\x20default:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','entries','newConfigFileName','2530377STqBgb','appcode','defaultApp','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','global','apps','boolean','\x22.\x20Allowed:\x20','yes','validation','3608110dSscwP','env','2SXUIAK','Write\x20to\x20global\x20(~/','Invalid\x20env\x20\x22','Skip\x20confirmation\x20when\x20overwriting','1268337yFcjCl'];a34_0x3266=function(){return _0xda28da;};return a34_0x3266();}function readSourceFile(_0x397898){const _0xba1f0b=a34_0x2d97d2;try{const _0x13e3d3=readFileSync(_0x397898,{'encoding':'utf8'});return JSON[_0xba1f0b(0x1e7)](_0x13e3d3);}catch(_0x379ebc){throw CliErrors[_0xba1f0b(0x1d1)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x379ebc[_0xba1f0b(0x1ea)]);}}function resolveImportEnv(_0x482936){const _0x7d02de=a34_0x2d97d2,_0x34a716=_0x482936['env'];if(_0x34a716===undefined||_0x34a716==='')return DEFAULT_CONFIG_VALUES[_0x7d02de(0x1d3)];if(!RUNTIME_ENV_VALUES['includes'](_0x34a716))throw CliErrors['validation'](_0x7d02de(0x1d6)+_0x34a716+_0x7d02de(0x1cf)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x34a716;}
1
+ const a34_0x4c6a9e=a34_0x3726;(function(_0x502980,_0x11e56c){const _0x28064=a34_0x3726,_0x2ab7b9=_0x502980();while(!![]){try{const _0x58eda5=parseInt(_0x28064(0xba))/0x1*(-parseInt(_0x28064(0xc5))/0x2)+parseInt(_0x28064(0xc2))/0x3*(parseInt(_0x28064(0xbb))/0x4)+-parseInt(_0x28064(0xce))/0x5+-parseInt(_0x28064(0xc3))/0x6*(-parseInt(_0x28064(0xd7))/0x7)+-parseInt(_0x28064(0xd2))/0x8+parseInt(_0x28064(0xb8))/0x9*(-parseInt(_0x28064(0xda))/0xa)+parseInt(_0x28064(0xb5))/0xb;if(_0x58eda5===_0x11e56c)break;else _0x2ab7b9['push'](_0x2ab7b9['shift']());}catch(_0x55c22f){_0x2ab7b9['push'](_0x2ab7b9['shift']());}}}(a34_0x4498,0x3790e));import{existsSync,readFileSync}from'node:fs';function a34_0x4498(){const _0x1ed430=['riskLevel','Override\x20imported\x20default\x20appcode','Invalid\x20env\x20\x22','352104JzitzO','\x20\x20default:\x20','Imported\x20from\x20','yes','utf8','18557ELHHiY','cwd','env','530oguUBo','\x22.\x20Allowed:\x20','project','app',')\x20instead\x20of\x20project','parse','join','8768793yqTrun','global','object','11277LECcpX','file','4gOzGPg','220JWhaYs','\x20\x20appcode:\x20','validation','Override\x20imported\x20default\x20env','Write\x20to\x20global\x20(~/','defaultApp','apps','24OFZqZT','144wrNKdl','newConfigFileName','65958QYvtQp','Source\x20file\x20not\x20found:\x20','log','string','boolean','message','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`.','appcode','Skip\x20confirmation\x20when\x20overwriting','1956455oZnrnZ'];a34_0x4498=function(){return _0x1ed430;};return a34_0x4498();}import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a34_0x3726(_0x165392,_0x8b4f5f){_0x165392=_0x165392-0xaf;const _0x4498e0=a34_0x4498();let _0x3726ce=_0x4498e0[_0x165392];return _0x3726ce;}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_0x4c6a9e(0xb9),'type':a34_0x4c6a9e(0xc8),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a34_0x4c6a9e(0xcc),'type':a34_0x4c6a9e(0xc8),'description':a34_0x4c6a9e(0xd0)},{'name':'env','type':'string','description':a34_0x4c6a9e(0xbe),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a34_0x4c6a9e(0xc9),'description':a34_0x4c6a9e(0xbf)+PRODUCT_CONFIG[a34_0x4c6a9e(0xc4)]+a34_0x4c6a9e(0xb2),'default':![]},{'name':a34_0x4c6a9e(0xd5),'type':'boolean','description':a34_0x4c6a9e(0xcd),'default':![]}];export async function runAppImport(_0x4189b9){const _0x24df7c=a34_0x4c6a9e,_0x39e733=_0x4189b9['global']?_0x24df7c(0xb6):_0x24df7c(0xb0),_0x2262f1=resolveWriteConfigPath(_0x39e733);await runFromImport(_0x4189b9,_0x2262f1);}async function runFromImport(_0x6da864,_0x1a0a60){const _0x1659a8=a34_0x4c6a9e,_0x1831b4=resolveFilePath(_0x6da864[_0x1659a8(0xb9)]);if(!existsSync(_0x1831b4))throw CliErrors['validation'](_0x1659a8(0xc6)+_0x1831b4);const _0x398784=readSourceFile(_0x1831b4),_0x32dc1a=convertToRuntimeConfig(_0x398784);_0x6da864['appcode']&&(_0x32dc1a[_0x1659a8(0xcc)]=String(_0x6da864['appcode']));_0x6da864[_0x1659a8(0xd9)]&&(_0x32dc1a[_0x1659a8(0xd9)]=resolveImportEnv(_0x6da864));if(!_0x32dc1a[_0x1659a8(0xcc)])throw CliErrors[_0x1659a8(0xbd)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x1659a8(0xcb));await writeImportConfig(_0x1a0a60,_0x32dc1a,_0x6da864),console[_0x1659a8(0xc7)](_0x1659a8(0xd4)+_0x1831b4),console[_0x1659a8(0xc7)]('\x20\x20config:\x20\x20'+_0x1a0a60),console['log'](_0x1659a8(0xbc)+_0x32dc1a[_0x1659a8(0xcc)]);if(_0x32dc1a[_0x1659a8(0xc0)])console[_0x1659a8(0xc7)](_0x1659a8(0xd3)+_0x32dc1a[_0x1659a8(0xc0)]);}function convertToRuntimeConfig(_0x12405d){const _0x46b321=a34_0x4c6a9e;if(_0x12405d['apps']&&typeof _0x12405d[_0x46b321(0xc1)]===_0x46b321(0xb7))throw CliErrors[_0x46b321(0xbd)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0xaf07be={};for(const _0x59b54f of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x12405d[_0x59b54f]!==undefined&&(_0xaf07be[_0x59b54f]=_0x12405d[_0x59b54f]);}return!_0xaf07be[_0x46b321(0xcf)]&&(_0xaf07be[_0x46b321(0xcf)]=DEFAULT_CONFIG_VALUES[_0x46b321(0xcf)]),_0xaf07be;}async function writeImportConfig(_0x9b136e,_0x373250,_0x2ac380){const _0x26907b=a34_0x4c6a9e;let _0x574da1={};existsSync(_0x9b136e)&&!_0x2ac380[_0x26907b(0xd5)]&&(_0x574da1=readConfigFile(_0x9b136e));for(const [_0x1f113f,_0x4d602]of Object['entries'](_0x373250)){_0x4d602!==undefined&&(_0x574da1[_0x1f113f]=_0x4d602);}if(_0x574da1[_0x26907b(0xb1)])delete _0x574da1[_0x26907b(0xb1)];writeConfigFile(_0x9b136e,_0x574da1);}function resolveFilePath(_0x1b34c5){const _0x527a00=a34_0x4c6a9e;return isAbsolute(_0x1b34c5)?_0x1b34c5:resolve(process[_0x527a00(0xd8)](),_0x1b34c5);}function readSourceFile(_0x348c45){const _0x27c981=a34_0x4c6a9e;try{const _0x417e17=readFileSync(_0x348c45,{'encoding':_0x27c981(0xd6)});return JSON[_0x27c981(0xb3)](_0x417e17);}catch(_0x5d212e){throw CliErrors[_0x27c981(0xbd)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x5d212e[_0x27c981(0xca)]);}}function resolveImportEnv(_0x4c8513){const _0x33cf6e=a34_0x4c6a9e,_0x3ac9d9=_0x4c8513[_0x33cf6e(0xd9)];if(_0x3ac9d9===undefined||_0x3ac9d9==='')return DEFAULT_CONFIG_VALUES[_0x33cf6e(0xd9)];if(!RUNTIME_ENV_VALUES['includes'](_0x3ac9d9))throw CliErrors[_0x33cf6e(0xbd)](_0x33cf6e(0xd1)+_0x3ac9d9+_0x33cf6e(0xaf)+RUNTIME_ENV_VALUES[_0x33cf6e(0xb4)](',\x20'));return _0x3ac9d9;}
@@ -1 +1 @@
1
- function a35_0x2af4(){const _0x350c23=['580545eruFxR','userName','mergedCli','username','email','tenantCode','552DlBIgI','@lovrabet/lovrabet-cli','production','1047864kSIDwb','name','100251KrdslU','appCode','envName','nickname','4YXoToN','17978590MGJsYe','loginName','937046sGeQvp','5147315UeSxZh','5179958afGtgI','6dzWPQL'];a35_0x2af4=function(){return _0x350c23;};return a35_0x2af4();}function a35_0x40c3(_0xf4a934,_0x14916e){_0xf4a934=_0xf4a934-0x111;const _0x2af442=a35_0x2af4();let _0x40c3d9=_0x2af442[_0xf4a934];return _0x40c3d9;}(function(_0x5c6ef4,_0x3e8e68){const _0x513d15=a35_0x40c3,_0x5c88d7=_0x5c6ef4();while(!![]){try{const _0x3a23ed=-parseInt(_0x513d15(0x114))/0x1+-parseInt(_0x513d15(0x126))/0x2+-parseInt(_0x513d15(0x11d))/0x3*(-parseInt(_0x513d15(0x123))/0x4)+parseInt(_0x513d15(0x111))/0x5*(parseInt(_0x513d15(0x113))/0x6)+-parseInt(_0x513d15(0x112))/0x7+-parseInt(_0x513d15(0x11a))/0x8*(parseInt(_0x513d15(0x11f))/0x9)+parseInt(_0x513d15(0x124))/0xa;if(_0x3a23ed===_0x3e8e68)break;else _0x5c88d7['push'](_0x5c88d7['shift']());}catch(_0xda7120){_0x5c88d7['push'](_0x5c88d7['shift']());}}}(a35_0x2af4,0x971cd));import{platform,release,arch}from'node:os';import{getLoginUserInfo}from'../../core/api-client.js';import{getCliVersion}from'../../utils/version.js';export async function getIssueReportContext(_0x256aed,_0x2546b5){const _0x2d95e6=a35_0x40c3,_0x1116f1=_0x2546b5?undefined:await getLoginUserInfo();return{'serviceName':_0x2d95e6(0x11b),'serviceVersion':getCliVersion(),'environment':_0x256aed[_0x2d95e6(0x121)]??_0x2d95e6(0x11c),'appCode':_0x256aed['appCode']||_0x256aed[_0x2d95e6(0x116)]?.[_0x2d95e6(0x120)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x1116f1?{'id':String(_0x1116f1['id']??_0x1116f1['userId']??''),'username':_0x1116f1[_0x2d95e6(0x117)]??_0x1116f1[_0x2d95e6(0x115)]??_0x1116f1[_0x2d95e6(0x125)],'nickname':_0x1116f1[_0x2d95e6(0x122)]??_0x1116f1['nickName']??_0x1116f1[_0x2d95e6(0x11e)]??undefined,'email':_0x1116f1[_0x2d95e6(0x118)]??undefined,'tenantCode':_0x1116f1[_0x2d95e6(0x119)]}:undefined};}
1
+ (function(_0x27821f,_0x3ad9f1){const _0x3faee0=a35_0xa9e7,_0x33ac67=_0x27821f();while(!![]){try{const _0x14979f=-parseInt(_0x3faee0(0xdd))/0x1*(-parseInt(_0x3faee0(0xd4))/0x2)+parseInt(_0x3faee0(0xdf))/0x3+-parseInt(_0x3faee0(0xd6))/0x4+-parseInt(_0x3faee0(0xe1))/0x5*(parseInt(_0x3faee0(0xcf))/0x6)+-parseInt(_0x3faee0(0xe0))/0x7+-parseInt(_0x3faee0(0xd7))/0x8*(parseInt(_0x3faee0(0xd2))/0x9)+parseInt(_0x3faee0(0xe2))/0xa;if(_0x14979f===_0x3ad9f1)break;else _0x33ac67['push'](_0x33ac67['shift']());}catch(_0x18a1e7){_0x33ac67['push'](_0x33ac67['shift']());}}}(a35_0x5d15,0x3d7ad));import{platform,release,arch}from'node:os';function a35_0xa9e7(_0x5c55e9,_0x33e4b9){_0x5c55e9=_0x5c55e9-0xce;const _0x5d1511=a35_0x5d15();let _0xa9e70d=_0x5d1511[_0x5c55e9];return _0xa9e70d;}function a35_0x5d15(){const _0x1227f3=['@lovrabet/lovrabet-cli','envName','nickName','nickname','loginName','1tqTOfq','mergedCli','1334457VBSEKH','2705731VVAJxW','175IeQfWD','6641480nOTPEq','name','tenantCode','10284xREadH','email','production','423EmQbma','userId','90246AZxOko','appCode','1007628NYBAhf','34696mIdIGi'];a35_0x5d15=function(){return _0x1227f3;};return a35_0x5d15();}import{getLoginUserInfo}from'../../core/api-client.js';import{getCliVersion}from'../../utils/version.js';export async function getIssueReportContext(_0x51f61b,_0x1fb0e8){const _0x5291d3=a35_0xa9e7,_0x301f2b=_0x1fb0e8?undefined:await getLoginUserInfo();return{'serviceName':_0x5291d3(0xd8),'serviceVersion':getCliVersion(),'environment':_0x51f61b[_0x5291d3(0xd9)]??_0x5291d3(0xd1),'appCode':_0x51f61b[_0x5291d3(0xd5)]||_0x51f61b[_0x5291d3(0xde)]?.[_0x5291d3(0xd5)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x301f2b?{'id':String(_0x301f2b['id']??_0x301f2b[_0x5291d3(0xd3)]??''),'username':_0x301f2b['username']??_0x301f2b['userName']??_0x301f2b[_0x5291d3(0xdc)],'nickname':_0x301f2b[_0x5291d3(0xdb)]??_0x301f2b[_0x5291d3(0xda)]??_0x301f2b[_0x5291d3(0xe3)]??undefined,'email':_0x301f2b[_0x5291d3(0xd0)]??undefined,'tenantCode':_0x301f2b[_0x5291d3(0xce)]}:undefined};}
@@ -1 +1 @@
1
- function a36_0x5595(_0x2c8430,_0xefb822){_0x2c8430=_0x2c8430-0xfe;const _0x3b44f2=a36_0x3b44();let _0x559523=_0x3b44f2[_0x2c8430];return _0x559523;}(function(_0x12835a,_0x1fb42a){const _0x32a833=a36_0x5595,_0x592f4c=_0x12835a();while(!![]){try{const _0x361476=-parseInt(_0x32a833(0x102))/0x1+-parseInt(_0x32a833(0x106))/0x2*(parseInt(_0x32a833(0xff))/0x3)+parseInt(_0x32a833(0x103))/0x4+-parseInt(_0x32a833(0x105))/0x5+parseInt(_0x32a833(0x104))/0x6+parseInt(_0x32a833(0x100))/0x7+parseInt(_0x32a833(0x101))/0x8*(parseInt(_0x32a833(0xfe))/0x9);if(_0x361476===_0x1fb42a)break;else _0x592f4c['push'](_0x592f4c['shift']());}catch(_0x52bb16){_0x592f4c['push'](_0x592f4c['shift']());}}}(a36_0x3b44,0xc6ac0));import{issueReport}from'./report.js';export const issueDefinitions=[issueReport];function a36_0x3b44(){const _0x25b74c=['4953805PkZbhw','694zlScxY','9MydgKY','6333XwjngV','7080717yMaAJy','15153448zVfnye','1423685GGRfnd','2976776dAVIIp','1864902kjJHrm'];a36_0x3b44=function(){return _0x25b74c;};return a36_0x3b44();}
1
+ (function(_0x5fe712,_0x3416f0){const _0x1ae7c6=a36_0x2187,_0x4d61c8=_0x5fe712();while(!![]){try{const _0x149e1d=parseInt(_0x1ae7c6(0x19c))/0x1+-parseInt(_0x1ae7c6(0x198))/0x2*(-parseInt(_0x1ae7c6(0x1a1))/0x3)+parseInt(_0x1ae7c6(0x19e))/0x4*(parseInt(_0x1ae7c6(0x199))/0x5)+-parseInt(_0x1ae7c6(0x1a0))/0x6+-parseInt(_0x1ae7c6(0x19b))/0x7+parseInt(_0x1ae7c6(0x19f))/0x8+-parseInt(_0x1ae7c6(0x19a))/0x9*(parseInt(_0x1ae7c6(0x19d))/0xa);if(_0x149e1d===_0x3416f0)break;else _0x4d61c8['push'](_0x4d61c8['shift']());}catch(_0x470d97){_0x4d61c8['push'](_0x4d61c8['shift']());}}}(a36_0x5026,0x52662));function a36_0x5026(){const _0x57bca3=['1008972jTTtvh','174bgMOBf','14154mwzuMW','275JFcjQw','10338885ItgDyb','617533wLSxyv','567754lyKNSs','10AgCLJK','46204kmvrJH','1033016pWFBOi'];a36_0x5026=function(){return _0x57bca3;};return a36_0x5026();}import{issueReport}from'./report.js';function a36_0x2187(_0x48990f,_0xafbb59){_0x48990f=_0x48990f-0x198;const _0x5026c1=a36_0x5026();let _0x21871a=_0x5026c1[_0x48990f];return _0x21871a;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a37_0xa8fd6b=a37_0x102b;(function(_0x4602e9,_0x219400){const _0x3ba1c2=a37_0x102b,_0x35c015=_0x4602e9();while(!![]){try{const _0x2c3606=-parseInt(_0x3ba1c2(0xf3))/0x1+-parseInt(_0x3ba1c2(0x115))/0x2*(parseInt(_0x3ba1c2(0x114))/0x3)+parseInt(_0x3ba1c2(0x111))/0x4*(parseInt(_0x3ba1c2(0x11b))/0x5)+parseInt(_0x3ba1c2(0xff))/0x6*(-parseInt(_0x3ba1c2(0x118))/0x7)+parseInt(_0x3ba1c2(0x102))/0x8*(parseInt(_0x3ba1c2(0x123))/0x9)+-parseInt(_0x3ba1c2(0xf8))/0xa+parseInt(_0x3ba1c2(0x113))/0xb;if(_0x2c3606===_0x219400)break;else _0x35c015['push'](_0x35c015['shift']());}catch(_0x3695e9){_0x35c015['push'](_0x35c015['shift']());}}}(a37_0x4819,0xe6153));import{existsSync}from'node:fs';function a37_0x4819(){const _0x43a8c6=['1630739dBmUfp','Check\x20your\x20login\x20and\x20network\x20connectivity.','truncated:\x20original\x20','description-file','string','14409050ESBmSS','compress','cwd','filter','length','otel://','validate','334662uEWZwl','originalBytes','redactionCount','2964216bUcAIo','report','logData','title','join','validation','redactionKinds','Issue\x20description\x20cannot\x20be\x20empty.','File\x20not\x20found:\x20','message','traceName','descriptionFile:\x20','descriptionFilePath','Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','13828jPjeaz','POST','23776995SYgXMx','449139yvftIA','10RuXBPe','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','keys','7pkIsYP','description','truncated','2235nPddvD','Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','str','sanitize','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','utf8','trim','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','27dhhZpZ','inline','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20bytes','issue','file'];a37_0x4819=function(){return _0x43a8c6;};return a37_0x4819();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a37_0x102b(_0x128ac7,_0x1d5f8c){_0x128ac7=_0x128ac7-0xf1;const _0x4819e4=a37_0x4819();let _0x102b34=_0x4819e4[_0x128ac7];return _0x102b34;}import{CliErrors}from'../../errors.js';import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG=a37_0xa8fd6b(0xf6);export const issueReport={'service':a37_0xa8fd6b(0xf1),'command':a37_0xa8fd6b(0x103),'description':a37_0xa8fd6b(0x11c),'risk':'write','confirmationDescription':a37_0xa8fd6b(0x11f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0xa8fd6b(0xf9),'flags':[{'name':a37_0xa8fd6b(0x105),'type':a37_0xa8fd6b(0xf7),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a37_0xa8fd6b(0x119),'type':a37_0xa8fd6b(0xf7),'description':a37_0xa8fd6b(0x116)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a37_0xa8fd6b(0x125)}],async 'validate'(_0x31b75d){const _0x3ef523=a37_0xa8fd6b,_0x2d70dc=_0x31b75d[_0x3ef523(0x11d)](_0x3ef523(0x105))[_0x3ef523(0x121)](),_0x414395=_0x31b75d['str'](_0x3ef523(0x119))[_0x3ef523(0x121)](),_0x1085f0=_0x31b75d['str'](DESCRIPTION_FILE_FLAG)[_0x3ef523(0x121)]();if(!_0x2d70dc)throw CliErrors['flagMissing'](_0x3ef523(0x105),_0x3ef523(0x110));const _0x145df8=_0x414395['length']>0x0,_0x12a382=_0x1085f0[_0x3ef523(0xfc)]>0x0;if(_0x145df8===_0x12a382)throw CliErrors['validation'](_0x3ef523(0x122),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x12a382){const _0x188366=resolve(process['cwd'](),_0x1085f0);if(!existsSync(_0x188366))throw CliErrors[_0x3ef523(0x107)](_0x3ef523(0x10a)+_0x188366);}},async 'dryRun'(_0x540d0e){const _0x55eb3c=a37_0xa8fd6b,_0x49f3e9=await prepareIssueReport(_0x540d0e,!![]);return{'method':_0x55eb3c(0x112),'url':_0x55eb3c(0xfd)+_0x49f3e9[_0x55eb3c(0x10c)]+'/'+_0x49f3e9['spanName'],'body':{'traceName':_0x49f3e9[_0x55eb3c(0x10c)],'spanName':_0x49f3e9['spanName'],'logData':_0x49f3e9[_0x55eb3c(0x104)]},'description':['Submit\x20a\x20problem\x20log','descriptionSource:\x20'+_0x49f3e9['descriptionSource'],_0x49f3e9[_0x55eb3c(0x10e)]?_0x55eb3c(0x10d)+_0x49f3e9['descriptionFilePath']:null,_0x49f3e9[_0x55eb3c(0x11e)]['truncated']?_0x55eb3c(0xf5)+_0x49f3e9['sanitize']['originalBytes']+_0x55eb3c(0x126):null,_0x49f3e9['sanitize']['redactionCount']>0x0?'redactions:\x20'+_0x49f3e9[_0x55eb3c(0x11e)][_0x55eb3c(0x101)]+'\x20('+_0x49f3e9[_0x55eb3c(0x11e)][_0x55eb3c(0x108)][_0x55eb3c(0x106)](',\x20')+')':null][_0x55eb3c(0xfb)](Boolean)['join']('\x0a')};},async 'execute'(_0x35297f){const _0x48ead0=a37_0xa8fd6b,_0x144413=await prepareIssueReport(_0x35297f,![]);return{'ok':!![],'message':_0x144413['sanitize'][_0x48ead0(0x101)]||_0x144413[_0x48ead0(0x11e)]['truncated']?_0x48ead0(0x10f):'Issue\x20log\x20submitted','data':{'traceName':_0x144413[_0x48ead0(0x10c)],'spanName':_0x144413['spanName'],'logDataKeys':Object[_0x48ead0(0x117)](_0x144413[_0x48ead0(0x104)]),'issue':{'title':_0x144413[_0x48ead0(0x105)],'descriptionLength':_0x144413[_0x48ead0(0x119)][_0x48ead0(0xfc)],'descriptionSource':_0x144413['descriptionSource'],..._0x144413[_0x48ead0(0x10e)]?{'descriptionFile':_0x144413[_0x48ead0(0x10e)]}:{},'sanitize':{'originalBytes':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x100)],'truncated':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x11a)],'redactions':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x101)],'redactionKinds':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x108)]}}}};}};async function prepareIssueReport(_0x51add7,_0x8f4360){const _0x477240=a37_0xa8fd6b;await issueReport[_0x477240(0xfe)](_0x51add7);const _0x535bf9=_0x51add7[_0x477240(0x11d)](DESCRIPTION_FILE_FLAG)[_0x477240(0x121)](),_0x5d5aa2=_0x535bf9?resolve(process[_0x477240(0xfa)](),_0x535bf9):undefined;let _0x1f2c90=_0x51add7[_0x477240(0x11d)]('description');if(_0x5d5aa2)try{_0x1f2c90=await readFile(_0x5d5aa2,_0x477240(0x120));}catch{throw CliErrors[_0x477240(0x107)]('Cannot\x20read\x20issue\x20description\x20file:\x20'+_0x5d5aa2);}if(!_0x1f2c90[_0x477240(0x121)]())throw CliErrors['validation'](_0x477240(0x109));const _0x447ef4=await getIssueReportContext(_0x51add7,_0x8f4360);try{const _0x3f54a7=await reportIssue({'title':_0x51add7[_0x477240(0x11d)](_0x477240(0x105)),'description':_0x1f2c90,'context':_0x447ef4,'dryRun':_0x8f4360});return{..._0x3f54a7,'descriptionSource':_0x5d5aa2?_0x477240(0xf2):_0x477240(0x124),'descriptionFilePath':_0x5d5aa2};}catch(_0x245fa1){throw CliErrors['apiError']('Failed\x20to\x20submit\x20issue\x20log:\x20'+(_0x245fa1 instanceof Error?_0x245fa1[_0x477240(0x10b)]:String(_0x245fa1)),_0x477240(0xf4));}}
1
+ const a37_0xbd2b76=a37_0x3c50;(function(_0x262f05,_0x1a7378){const _0x2604f7=a37_0x3c50,_0x5b1233=_0x262f05();while(!![]){try{const _0xefce6f=-parseInt(_0x2604f7(0x109))/0x1+-parseInt(_0x2604f7(0xf7))/0x2*(parseInt(_0x2604f7(0x112))/0x3)+-parseInt(_0x2604f7(0x111))/0x4+-parseInt(_0x2604f7(0x10a))/0x5+parseInt(_0x2604f7(0x118))/0x6+parseInt(_0x2604f7(0xfc))/0x7+parseInt(_0x2604f7(0xf4))/0x8*(parseInt(_0x2604f7(0x10d))/0x9);if(_0xefce6f===_0x1a7378)break;else _0x5b1233['push'](_0x5b1233['shift']());}catch(_0x660f0f){_0x5b1233['push'](_0x5b1233['shift']());}}}(a37_0xff42,0xe7d02));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_0xbd2b76(0x119);export const issueReport={'service':a37_0xbd2b76(0xec),'command':'report','description':'Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','risk':a37_0xbd2b76(0x107),'confirmationDescription':a37_0xbd2b76(0xf9),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0xbd2b76(0xf1),'flags':[{'name':a37_0xbd2b76(0xf8),'type':'string','required':!![],'description':a37_0xbd2b76(0x101)},{'name':a37_0xbd2b76(0x10e),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a37_0xbd2b76(0xe8),'description':a37_0xbd2b76(0x113)}],async 'validate'(_0x408187){const _0x463667=a37_0xbd2b76,_0x319009=_0x408187[_0x463667(0xf0)](_0x463667(0xf8))[_0x463667(0xfb)](),_0x411511=_0x408187[_0x463667(0xf0)]('description')[_0x463667(0xfb)](),_0x4194d0=_0x408187[_0x463667(0xf0)](DESCRIPTION_FILE_FLAG)[_0x463667(0xfb)]();if(!_0x319009)throw CliErrors[_0x463667(0xf6)](_0x463667(0xf8),_0x463667(0xf3));const _0x21822b=_0x411511[_0x463667(0x102)]>0x0,_0x5c1811=_0x4194d0[_0x463667(0x102)]>0x0;if(_0x21822b===_0x5c1811)throw CliErrors[_0x463667(0x10c)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x5c1811){const _0x445d28=resolve(process[_0x463667(0xeb)](),_0x4194d0);if(!existsSync(_0x445d28))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x445d28);}},async 'dryRun'(_0x5393b5){const _0x38bffa=a37_0xbd2b76,_0xda5838=await prepareIssueReport(_0x5393b5,!![]);return{'method':_0x38bffa(0xfd),'url':_0x38bffa(0x115)+_0xda5838[_0x38bffa(0xfa)]+'/'+_0xda5838[_0x38bffa(0xea)],'body':{'traceName':_0xda5838[_0x38bffa(0xfa)],'spanName':_0xda5838['spanName'],'logData':_0xda5838['logData']},'description':[_0x38bffa(0x116),'descriptionSource:\x20'+_0xda5838[_0x38bffa(0x110)],_0xda5838[_0x38bffa(0xe6)]?_0x38bffa(0x105)+_0xda5838[_0x38bffa(0xe6)]:null,_0xda5838[_0x38bffa(0x11a)][_0x38bffa(0xe7)]?_0x38bffa(0xee)+_0xda5838['sanitize'][_0x38bffa(0xef)]+'\x20bytes':null,_0xda5838['sanitize'][_0x38bffa(0xed)]>0x0?_0x38bffa(0x108)+_0xda5838[_0x38bffa(0x11a)][_0x38bffa(0xed)]+'\x20('+_0xda5838[_0x38bffa(0x11a)][_0x38bffa(0x103)][_0x38bffa(0x117)](',\x20')+')':null][_0x38bffa(0x10f)](Boolean)[_0x38bffa(0x117)]('\x0a')};},async 'execute'(_0x1c8b32){const _0xa3879a=a37_0xbd2b76,_0x2b266d=await prepareIssueReport(_0x1c8b32,![]);return{'ok':!![],'message':_0x2b266d[_0xa3879a(0x11a)][_0xa3879a(0xed)]||_0x2b266d[_0xa3879a(0x11a)]['truncated']?'Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)':_0xa3879a(0xff),'data':{'traceName':_0x2b266d[_0xa3879a(0xfa)],'spanName':_0x2b266d['spanName'],'logDataKeys':Object[_0xa3879a(0x104)](_0x2b266d['logData']),'issue':{'title':_0x2b266d[_0xa3879a(0xf8)],'descriptionLength':_0x2b266d[_0xa3879a(0x10e)][_0xa3879a(0x102)],'descriptionSource':_0x2b266d[_0xa3879a(0x110)],..._0x2b266d['descriptionFilePath']?{'descriptionFile':_0x2b266d['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x2b266d[_0xa3879a(0x11a)][_0xa3879a(0xef)],'truncated':_0x2b266d[_0xa3879a(0x11a)][_0xa3879a(0xe7)],'redactions':_0x2b266d['sanitize'][_0xa3879a(0xed)],'redactionKinds':_0x2b266d['sanitize'][_0xa3879a(0x103)]}}}};}};async function prepareIssueReport(_0x4e49a1,_0x3410ff){const _0x54f9ab=a37_0xbd2b76;await issueReport[_0x54f9ab(0xf2)](_0x4e49a1);const _0x3bc09d=_0x4e49a1[_0x54f9ab(0xf0)](DESCRIPTION_FILE_FLAG)[_0x54f9ab(0xfb)](),_0x570f6b=_0x3bc09d?resolve(process[_0x54f9ab(0xeb)](),_0x3bc09d):undefined;let _0x40c56f=_0x4e49a1[_0x54f9ab(0xf0)](_0x54f9ab(0x10e));if(_0x570f6b)try{_0x40c56f=await readFile(_0x570f6b,_0x54f9ab(0xfe));}catch{throw CliErrors[_0x54f9ab(0x10c)](_0x54f9ab(0xe9)+_0x570f6b);}if(!_0x40c56f[_0x54f9ab(0xfb)]())throw CliErrors[_0x54f9ab(0x10c)](_0x54f9ab(0x106));const _0x4c5c55=await getIssueReportContext(_0x4e49a1,_0x3410ff);try{const _0x204dbf=await reportIssue({'title':_0x4e49a1[_0x54f9ab(0xf0)](_0x54f9ab(0xf8)),'description':_0x40c56f,'context':_0x4c5c55,'dryRun':_0x3410ff});return{..._0x204dbf,'descriptionSource':_0x570f6b?'file':_0x54f9ab(0x10b),'descriptionFilePath':_0x570f6b};}catch(_0x21818d){throw CliErrors[_0x54f9ab(0xf5)](_0x54f9ab(0x114)+(_0x21818d instanceof Error?_0x21818d['message']:String(_0x21818d)),_0x54f9ab(0x100));}}function a37_0x3c50(_0x27c692,_0x41a598){_0x27c692=_0x27c692-0xe6;const _0xff422c=a37_0xff42();let _0x3c50a6=_0xff422c[_0x27c692];return _0x3c50a6;}function a37_0xff42(){const _0x2b7d3f=['Issue\x20log\x20submitted','Check\x20your\x20login\x20and\x20network\x20connectivity.','One-line\x20issue\x20summary','length','redactionKinds','keys','descriptionFile:\x20','Issue\x20description\x20cannot\x20be\x20empty.','write','redactions:\x20','1196472rpKDAx','1724035APNfjm','inline','validation','359532cICHne','description','filter','descriptionSource','7274516NCRbCH','3SIMYws','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Failed\x20to\x20submit\x20issue\x20log:\x20','otel://','Submit\x20a\x20problem\x20log','join','1011084aoXBwE','description-file','sanitize','descriptionFilePath','truncated','string','Cannot\x20read\x20issue\x20description\x20file:\x20','spanName','cwd','issue','redactionCount','truncated:\x20original\x20','originalBytes','str','compress','validate','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','664hLMKyF','apiError','flagMissing','1886642jqyEMT','title','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','traceName','trim','12379759RDwrRQ','POST','utf8'];a37_0xff42=function(){return _0x2b7d3f;};return a37_0xff42();}
@@ -1 +1 @@
1
- const a38_0x30efe0=a38_0x54ad;(function(_0x4e0bf1,_0x17512a){const _0x101f99=a38_0x54ad,_0x604e52=_0x4e0bf1();while(!![]){try{const _0x96b5d3=-parseInt(_0x101f99(0x218))/0x1*(parseInt(_0x101f99(0x22a))/0x2)+-parseInt(_0x101f99(0x21f))/0x3+-parseInt(_0x101f99(0x21c))/0x4*(-parseInt(_0x101f99(0x20e))/0x5)+parseInt(_0x101f99(0x220))/0x6*(parseInt(_0x101f99(0x209))/0x7)+parseInt(_0x101f99(0x21b))/0x8+parseInt(_0x101f99(0x200))/0x9*(parseInt(_0x101f99(0x1f3))/0xa)+-parseInt(_0x101f99(0x1f2))/0xb*(parseInt(_0x101f99(0x20a))/0xc);if(_0x96b5d3===_0x17512a)break;else _0x604e52['push'](_0x604e52['shift']());}catch(_0x1ca6ee){_0x604e52['push'](_0x604e52['shift']());}}}(a38_0x49c6,0x1a154));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';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_0x30efe0(0x1fa),'type':a38_0x30efe0(0x204),'required':!![],'description':a38_0x30efe0(0x1f7)},FILE_FLAG={'name':a38_0x30efe0(0x216),'type':'string','required':!![],'description':a38_0x30efe0(0x1ff)},QUERY_FLAG={'name':a38_0x30efe0(0x212),'type':a38_0x30efe0(0x204),'required':!![],'description':a38_0x30efe0(0x20b)},TOPK_FLAG={'name':a38_0x30efe0(0x201),'type':'number','description':a38_0x30efe0(0x202)};function readKnowledgeFile(_0x4c00c6){const _0x5213c3=a38_0x30efe0;if(!_0x4c00c6)throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x229));if(!existsSync(_0x4c00c6))throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x210)+_0x4c00c6);if(!statSync(_0x4c00c6)[_0x5213c3(0x22b)]())throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x226)+_0x4c00c6);return readFileSync(_0x4c00c6,_0x5213c3(0x231));}function summarizePersonalItem(_0x3035a9){const _0x15c0f6=a38_0x30efe0;return{'id':_0x3035a9['id'],'title':_0x3035a9[_0x15c0f6(0x1fa)],'version':_0x3035a9[_0x15c0f6(0x21a)],'ragStatus':_0x3035a9[_0x15c0f6(0x20f)],'ragErrorMessage':_0x3035a9[_0x15c0f6(0x214)],'updateTime':_0x3035a9[_0x15c0f6(0x224)]};}function detailPersonalItem(_0x434be0){const _0x5e8b56=a38_0x30efe0;return{'id':_0x434be0['id'],'appCode':_0x434be0['appCode'],'scope':_0x434be0['scope'],'userId':_0x434be0[_0x5e8b56(0x219)],'title':_0x434be0[_0x5e8b56(0x1fa)],'content':_0x434be0[_0x5e8b56(0x232)],'version':_0x434be0[_0x5e8b56(0x21a)],'ragStatus':_0x434be0[_0x5e8b56(0x20f)],'ragErrorMessage':_0x434be0[_0x5e8b56(0x214)],'createTime':_0x434be0[_0x5e8b56(0x1ed)],'updateTime':_0x434be0[_0x5e8b56(0x224)]};}function readTopK(_0x3b1533){const _0x25307d=a38_0x30efe0,_0x1065c7=_0x3b1533['flag']('topk');if(_0x1065c7===undefined||_0x1065c7===null||_0x1065c7==='')return undefined;const _0x23b608=_0x3b1533[_0x25307d(0x230)](_0x25307d(0x201));if(!Number[_0x25307d(0x217)](_0x23b608)||_0x23b608<0x1||_0x23b608>0x32)throw CliErrors[_0x25307d(0x22c)](_0x25307d(0x225));return _0x23b608;}const kbList={'service':'kb','command':a38_0x30efe0(0x1fb),'description':a38_0x30efe0(0x223),'risk':a38_0x30efe0(0x207),'flags':[VERBOSE_FLAG],async 'execute'(_0xf5650){const _0x62116f=a38_0x30efe0,_0x4d1b9a=await listPersonalKnowledgeBaseItems(_0xf5650[_0x62116f(0x21e)],_0xf5650[_0x62116f(0x203)]);if(_0xf5650[_0x62116f(0x228)](_0x62116f(0x1f9)))return{'ok':!![],'data':{'total':_0x4d1b9a['length'],'items':_0x4d1b9a}};return{'ok':!![],'data':{'total':_0x4d1b9a['length'],'items':_0x4d1b9a[_0x62116f(0x21d)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x30efe0(0x213),'description':a38_0x30efe0(0x1f5),'risk':a38_0x30efe0(0x207),'flags':[{...ID_FLAG,'type':a38_0x30efe0(0x204),'description':a38_0x30efe0(0x211)}],async 'execute'(_0x420032){const _0x41cefb=a38_0x30efe0,_0x5755fd=await getPersonalKnowledgeBaseItem(_0x420032[_0x41cefb(0x1f0)]('id'),_0x420032[_0x41cefb(0x21e)],_0x420032[_0x41cefb(0x203)]);return{'ok':!![],'data':detailPersonalItem(_0x5755fd)};}},kbCreate={'service':'kb','command':a38_0x30efe0(0x1f1),'description':a38_0x30efe0(0x1f6),'risk':a38_0x30efe0(0x205),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x23dbbe){const _0x3fa412=a38_0x30efe0,_0x2518f1=_0x23dbbe['str']('title'),_0x3518e4=readKnowledgeFile(_0x23dbbe[_0x3fa412(0x1f0)](_0x3fa412(0x216))),_0x51392c=await createPersonalKnowledgeBaseItem(_0x23dbbe['appCode'],{'title':_0x2518f1,'content':_0x3518e4},_0x23dbbe[_0x3fa412(0x203)]);return{'ok':!![],'data':summarizePersonalItem(_0x51392c),'message':'Created\x20KB\x20entry\x20'+_0x51392c['id']+'\x20('+_0x51392c['title']+')'};},async 'dryRun'(_0x38fdf6){const _0x5e4ee9=a38_0x30efe0,_0x62d0e3=_0x38fdf6[_0x5e4ee9(0x1f0)](_0x5e4ee9(0x1fa)),_0x43bc5d=readKnowledgeFile(_0x38fdf6[_0x5e4ee9(0x1f0)](_0x5e4ee9(0x216))),_0x32887e=planPersonalKnowledgeWrite(_0x38fdf6['appCode'],{'title':_0x62d0e3,'content':_0x43bc5d});return dryRun(_0x32887e['method'],_0x32887e[_0x5e4ee9(0x221)])[_0x5e4ee9(0x20c)](JSON['parse'](_0x32887e['jsonBody']))[_0x5e4ee9(0x1ee)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x62d0e3+'\x22')[_0x5e4ee9(0x1f8)]();}},kbUpdate={'service':'kb','command':'update','description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a38_0x30efe0(0x205),'confirmationDescription':a38_0x30efe0(0x22f),'flags':[{...ID_FLAG,'type':'string','description':a38_0x30efe0(0x211)},{...TITLE_FLAG,'required':![],'description':a38_0x30efe0(0x208)},FILE_FLAG],async 'execute'(_0x1e35f6){const _0x283db6=a38_0x30efe0,_0x583740=_0x1e35f6['str']('id'),_0x3483eb=readKnowledgeFile(_0x1e35f6[_0x283db6(0x1f0)](_0x283db6(0x216))),_0x999910=_0x1e35f6['str']('title')||undefined,_0x5baceb=await updatePersonalKnowledgeBaseItem(_0x583740,_0x1e35f6['appCode'],{'title':_0x999910,'content':_0x3483eb},_0x1e35f6['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x5baceb),'message':_0x283db6(0x22d)+_0x5baceb['id']+'\x20('+_0x5baceb[_0x283db6(0x1fa)]+')'};},async 'dryRun'(_0x18e63c){const _0x2b6da1=a38_0x30efe0,_0x45ced6=_0x18e63c['str']('id'),_0x556eb5=readKnowledgeFile(_0x18e63c['str'](_0x2b6da1(0x216))),_0x43da8b=await getPersonalKnowledgeBaseItem(_0x45ced6,_0x18e63c[_0x2b6da1(0x21e)],_0x18e63c['signal']),_0x210397=_0x18e63c[_0x2b6da1(0x1f0)](_0x2b6da1(0x1fa))||_0x43da8b[_0x2b6da1(0x1fa)],_0x4b7a47=planPersonalKnowledgeWrite(_0x18e63c[_0x2b6da1(0x21e)],{'title':_0x210397,'content':_0x556eb5},_0x45ced6,_0x43da8b[_0x2b6da1(0x21a)]);return dryRun(_0x4b7a47[_0x2b6da1(0x222)],_0x4b7a47[_0x2b6da1(0x221)])[_0x2b6da1(0x20c)](JSON[_0x2b6da1(0x1fc)](_0x4b7a47['jsonBody']))[_0x2b6da1(0x1ee)](_0x2b6da1(0x1fe)+_0x45ced6)[_0x2b6da1(0x1f8)]();}};function readSearchServiceUrl(_0x4c33e5){const _0x5028d9=a38_0x30efe0;if(_0x4c33e5['flag'](_0x5028d9(0x1f4))!==undefined)return normalizeKbServiceOrigin(_0x4c33e5[_0x5028d9(0x1f0)](_0x5028d9(0x1f4)));const _0x2d6741=getKbServiceDomain();if(!_0x2d6741)throw CliErrors[_0x5028d9(0x22c)](_0x5028d9(0x215),_0x5028d9(0x20d));return normalizeKbServiceOrigin(_0x2d6741);}const kbSearch={'service':'kb','command':a38_0x30efe0(0x1fd),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':a38_0x30efe0(0x1f4),'type':a38_0x30efe0(0x204),'required':![],'description':a38_0x30efe0(0x22e)}],async 'validate'(_0x1baae4){const _0x571c65=a38_0x30efe0;if(!_0x1baae4[_0x571c65(0x1f0)](_0x571c65(0x212))['trim']())throw CliErrors[_0x571c65(0x22c)]('Search\x20query\x20is\x20required.');readTopK(_0x1baae4),readSearchServiceUrl(_0x1baae4);},async 'execute'(_0x455095){const _0x309a9c=a38_0x30efe0,_0x4f2963=_0x455095[_0x309a9c(0x1f0)](_0x309a9c(0x212))['trim'](),_0x290f91=readTopK(_0x455095),_0x2e9f8d=readSearchServiceUrl(_0x455095),_0x37694d={'appCode':_0x455095[_0x309a9c(0x21e)],'accessKey':_0x455095[_0x309a9c(0x1ef)]??'','query':_0x4f2963,..._0x290f91!==undefined?{'topK':_0x290f91}:{},'signal':_0x455095[_0x309a9c(0x203)]},_0x1e50c8=await searchDirectKnowledge({..._0x37694d,'serviceUrl':_0x2e9f8d});return{'ok':!![],'data':_0x1e50c8};}};function managementCommand(_0x32c781){const _0x10d815=a38_0x30efe0;return{..._0x32c781,'execute':_0x5992be=>withKbManagementOrigin(()=>_0x32c781[_0x10d815(0x206)](_0x5992be)),..._0x32c781[_0x10d815(0x227)]?{'dryRun':_0x113235=>withKbManagementOrigin(()=>_0x32c781['dryRun'](_0x113235))}:{}};}function a38_0x49c6(){const _0x594ca5=['createTime','description','accessKey','str','create','935AnZPue','364440TcsPus','kb-service-url','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Personal\x20knowledge-base\x20entry\x20title','build','verbose','title','list','parse','search','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','27DioRhd','topk','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','signal','string','write','execute','read','Override\x20the\x20existing\x20entry\x20title','7EGKcar','8388dekLDG','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','body','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','291370YqOXwQ','ragStatus','File\x20not\x20found:\x20','Personal\x20knowledge-base\x20entry\x20ID','query','detail','ragErrorMessage','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','file','isSafeInteger','1907gpsNBL','userId','version','325920vQCOQQ','4AYRmmv','map','appCode','308655Nytosc','444834spARMj','path','method','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','updateTime','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','File\x20is\x20not\x20a\x20regular\x20file:\x20','dryRun','bool','File\x20path\x20is\x20required.','14JvWbbi','isFile','validation','Updated\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','num','utf8','content'];a38_0x49c6=function(){return _0x594ca5;};return a38_0x49c6();}function a38_0x54ad(_0x182d3f,_0x56e08b){_0x182d3f=_0x182d3f-0x1ed;const _0x49c6b1=a38_0x49c6();let _0x54adc3=_0x49c6b1[_0x182d3f];return _0x54adc3;}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x30efe0(0x21d)](managementCommand),kbSearch];
1
+ const a38_0x52ee04=a38_0x1d15;function a38_0x1d15(_0x58adc4,_0x395921){_0x58adc4=_0x58adc4-0x112;const _0x1e8322=a38_0x1e83();let _0x1d159e=_0x1e8322[_0x58adc4];return _0x1d159e;}(function(_0x1e465b,_0x3d1859){const _0x5c6edc=a38_0x1d15,_0x128002=_0x1e465b();while(!![]){try{const _0x351d86=-parseInt(_0x5c6edc(0x141))/0x1*(parseInt(_0x5c6edc(0x134))/0x2)+parseInt(_0x5c6edc(0x120))/0x3+parseInt(_0x5c6edc(0x135))/0x4*(-parseInt(_0x5c6edc(0x12f))/0x5)+parseInt(_0x5c6edc(0x13b))/0x6+-parseInt(_0x5c6edc(0x14a))/0x7*(-parseInt(_0x5c6edc(0x13f))/0x8)+-parseInt(_0x5c6edc(0x145))/0x9+parseInt(_0x5c6edc(0x131))/0xa*(parseInt(_0x5c6edc(0x14d))/0xb);if(_0x351d86===_0x3d1859)break;else _0x128002['push'](_0x128002['shift']());}catch(_0x275ebb){_0x128002['push'](_0x128002['shift']());}}}(a38_0x1e83,0xaa90a));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';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a38_0x1e83(){const _0x1cc8db=['create','Personal\x20knowledge-base\x20entry\x20ID','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','write','title','createTime','update','validation','ragStatus','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','path','Created\x20KB\x20entry\x20','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','method','description','updateTime','flag','content','1023819KSfXpI','File\x20path\x20is\x20required.','scope','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','length','trim','execute','isSafeInteger','map','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','file','dryRun','File\x20not\x20found:\x20','query','version','1030Dsovgm','detail','100FWmOWV','string','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','1270562rndyHB','7632CQnYBm','kb-service-url','verbose','jsonBody','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','topk','7354110AbtTqC','read','parse','Search\x20query\x20is\x20required.','16DlFPOh','userId','1IPDsHo','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','str','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','1583469YwFkBA','ragErrorMessage','Personal\x20knowledge-base\x20entry\x20title','appCode','search','380821QhDlHc','signal','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','249854pZLnot','isFile'];a38_0x1e83=function(){return _0x1cc8db;};return a38_0x1e83();}import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a38_0x52ee04(0x112),'type':a38_0x52ee04(0x132),'required':!![],'description':a38_0x52ee04(0x147)},FILE_FLAG={'name':a38_0x52ee04(0x12a),'type':a38_0x52ee04(0x132),'required':!![],'description':a38_0x52ee04(0x129)},QUERY_FLAG={'name':a38_0x52ee04(0x12d),'type':a38_0x52ee04(0x132),'required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a38_0x52ee04(0x13a),'type':'number','description':a38_0x52ee04(0x14c)};function readKnowledgeFile(_0x7990be){const _0x24cc96=a38_0x52ee04;if(!_0x7990be)throw CliErrors[_0x24cc96(0x115)](_0x24cc96(0x121));if(!existsSync(_0x7990be))throw CliErrors[_0x24cc96(0x115)](_0x24cc96(0x12c)+_0x7990be);if(!statSync(_0x7990be)[_0x24cc96(0x14e)]())throw CliErrors[_0x24cc96(0x115)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x7990be);return readFileSync(_0x7990be,'utf8');}function summarizePersonalItem(_0x598353){const _0x4f8222=a38_0x52ee04;return{'id':_0x598353['id'],'title':_0x598353[_0x4f8222(0x112)],'version':_0x598353[_0x4f8222(0x12e)],'ragStatus':_0x598353[_0x4f8222(0x116)],'ragErrorMessage':_0x598353[_0x4f8222(0x146)],'updateTime':_0x598353[_0x4f8222(0x11d)]};}function detailPersonalItem(_0x501731){const _0x34418d=a38_0x52ee04;return{'id':_0x501731['id'],'appCode':_0x501731['appCode'],'scope':_0x501731[_0x34418d(0x122)],'userId':_0x501731[_0x34418d(0x140)],'title':_0x501731[_0x34418d(0x112)],'content':_0x501731[_0x34418d(0x11f)],'version':_0x501731['version'],'ragStatus':_0x501731[_0x34418d(0x116)],'ragErrorMessage':_0x501731[_0x34418d(0x146)],'createTime':_0x501731[_0x34418d(0x113)],'updateTime':_0x501731[_0x34418d(0x11d)]};}function readTopK(_0x2caf95){const _0x340061=a38_0x52ee04,_0x219b11=_0x2caf95[_0x340061(0x11e)]('topk');if(_0x219b11===undefined||_0x219b11===null||_0x219b11==='')return undefined;const _0x1c4b4e=_0x2caf95['num'](_0x340061(0x13a));if(!Number[_0x340061(0x127)](_0x1c4b4e)||_0x1c4b4e<0x1||_0x1c4b4e>0x32)throw CliErrors[_0x340061(0x115)](_0x340061(0x151));return _0x1c4b4e;}const kbList={'service':'kb','command':'list','description':a38_0x52ee04(0x139),'risk':a38_0x52ee04(0x13c),'flags':[VERBOSE_FLAG],async 'execute'(_0x58369c){const _0x5163f4=a38_0x52ee04,_0x174370=await listPersonalKnowledgeBaseItems(_0x58369c[_0x5163f4(0x148)],_0x58369c[_0x5163f4(0x14b)]);if(_0x58369c['bool'](_0x5163f4(0x137)))return{'ok':!![],'data':{'total':_0x174370[_0x5163f4(0x124)],'items':_0x174370}};return{'ok':!![],'data':{'total':_0x174370[_0x5163f4(0x124)],'items':_0x174370[_0x5163f4(0x128)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x52ee04(0x130),'description':a38_0x52ee04(0x133),'risk':'read','flags':[{...ID_FLAG,'type':a38_0x52ee04(0x132),'description':a38_0x52ee04(0x150)}],async 'execute'(_0x2727c5){const _0x15b4d5=a38_0x52ee04,_0x3f4185=await getPersonalKnowledgeBaseItem(_0x2727c5[_0x15b4d5(0x143)]('id'),_0x2727c5['appCode'],_0x2727c5[_0x15b4d5(0x14b)]);return{'ok':!![],'data':detailPersonalItem(_0x3f4185)};}},kbCreate={'service':'kb','command':a38_0x52ee04(0x14f),'description':a38_0x52ee04(0x144),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x5eeb04){const _0x24742b=a38_0x52ee04,_0x204d0e=_0x5eeb04[_0x24742b(0x143)](_0x24742b(0x112)),_0xfe5ef5=readKnowledgeFile(_0x5eeb04[_0x24742b(0x143)](_0x24742b(0x12a))),_0xf14cb0=await createPersonalKnowledgeBaseItem(_0x5eeb04['appCode'],{'title':_0x204d0e,'content':_0xfe5ef5},_0x5eeb04[_0x24742b(0x14b)]);return{'ok':!![],'data':summarizePersonalItem(_0xf14cb0),'message':_0x24742b(0x119)+_0xf14cb0['id']+'\x20('+_0xf14cb0[_0x24742b(0x112)]+')'};},async 'dryRun'(_0x562ca4){const _0x485281=a38_0x52ee04,_0x1de9b9=_0x562ca4[_0x485281(0x143)](_0x485281(0x112)),_0x5468b8=readKnowledgeFile(_0x562ca4[_0x485281(0x143)](_0x485281(0x12a))),_0xae1787=planPersonalKnowledgeWrite(_0x562ca4[_0x485281(0x148)],{'title':_0x1de9b9,'content':_0x5468b8});return dryRun(_0xae1787[_0x485281(0x11b)],_0xae1787[_0x485281(0x118)])['body'](JSON[_0x485281(0x13d)](_0xae1787['jsonBody']))['description'](_0x485281(0x123)+_0x1de9b9+'\x22')['build']();}},kbUpdate={'service':'kb','command':a38_0x52ee04(0x114),'description':a38_0x52ee04(0x152),'risk':a38_0x52ee04(0x155),'confirmationDescription':a38_0x52ee04(0x153),'flags':[{...ID_FLAG,'type':a38_0x52ee04(0x132),'description':a38_0x52ee04(0x150)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x5a3301){const _0x7e2338=a38_0x52ee04,_0x5b3574=_0x5a3301[_0x7e2338(0x143)]('id'),_0x2c37b4=readKnowledgeFile(_0x5a3301[_0x7e2338(0x143)]('file')),_0x41b1f6=_0x5a3301[_0x7e2338(0x143)](_0x7e2338(0x112))||undefined,_0x1048fa=await updatePersonalKnowledgeBaseItem(_0x5b3574,_0x5a3301[_0x7e2338(0x148)],{'title':_0x41b1f6,'content':_0x2c37b4},_0x5a3301[_0x7e2338(0x14b)]);return{'ok':!![],'data':summarizePersonalItem(_0x1048fa),'message':'Updated\x20KB\x20entry\x20'+_0x1048fa['id']+'\x20('+_0x1048fa[_0x7e2338(0x112)]+')'};},async 'dryRun'(_0x2e31fe){const _0x56520e=a38_0x52ee04,_0x1edeae=_0x2e31fe[_0x56520e(0x143)]('id'),_0x5d9bdb=readKnowledgeFile(_0x2e31fe[_0x56520e(0x143)](_0x56520e(0x12a))),_0x4e0b68=await getPersonalKnowledgeBaseItem(_0x1edeae,_0x2e31fe[_0x56520e(0x148)],_0x2e31fe[_0x56520e(0x14b)]),_0x241fc5=_0x2e31fe[_0x56520e(0x143)](_0x56520e(0x112))||_0x4e0b68[_0x56520e(0x112)],_0x32643c=planPersonalKnowledgeWrite(_0x2e31fe[_0x56520e(0x148)],{'title':_0x241fc5,'content':_0x5d9bdb},_0x1edeae,_0x4e0b68['version']);return dryRun(_0x32643c[_0x56520e(0x11b)],_0x32643c['path'])['body'](JSON[_0x56520e(0x13d)](_0x32643c[_0x56520e(0x138)]))[_0x56520e(0x11c)](_0x56520e(0x142)+_0x1edeae)['build']();}};function readSearchServiceUrl(_0x29875b){const _0x15442c=a38_0x52ee04;if(_0x29875b[_0x15442c(0x11e)]('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x29875b['str'](_0x15442c(0x136)));const _0x18a8ef=getKbServiceDomain();if(!_0x18a8ef)throw CliErrors[_0x15442c(0x115)](_0x15442c(0x11a),'Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x18a8ef);}const kbSearch={'service':'kb','command':a38_0x52ee04(0x149),'description':a38_0x52ee04(0x154),'risk':a38_0x52ee04(0x13c),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a38_0x52ee04(0x132),'required':![],'description':a38_0x52ee04(0x117)}],async 'validate'(_0x100c4c){const _0x5651fc=a38_0x52ee04;if(!_0x100c4c[_0x5651fc(0x143)](_0x5651fc(0x12d))[_0x5651fc(0x125)]())throw CliErrors['validation'](_0x5651fc(0x13e));readTopK(_0x100c4c),readSearchServiceUrl(_0x100c4c);},async 'execute'(_0x13e371){const _0x3076dd=a38_0x52ee04,_0x47046b=_0x13e371['str'](_0x3076dd(0x12d))[_0x3076dd(0x125)](),_0xe3aedf=readTopK(_0x13e371),_0x23b689=readSearchServiceUrl(_0x13e371),_0x19ac31={'appCode':_0x13e371[_0x3076dd(0x148)],'accessKey':_0x13e371['accessKey']??'','query':_0x47046b,..._0xe3aedf!==undefined?{'topK':_0xe3aedf}:{},'signal':_0x13e371[_0x3076dd(0x14b)]},_0x279cb4=await searchDirectKnowledge({..._0x19ac31,'serviceUrl':_0x23b689});return{'ok':!![],'data':_0x279cb4};}};function managementCommand(_0x40c31d){const _0x2358b4=a38_0x52ee04;return{..._0x40c31d,'execute':_0x4b1a15=>withKbManagementOrigin(()=>_0x40c31d[_0x2358b4(0x126)](_0x4b1a15)),..._0x40c31d[_0x2358b4(0x12b)]?{'dryRun':_0x5ec7d0=>withKbManagementOrigin(()=>_0x40c31d[_0x2358b4(0x12b)](_0x5ec7d0))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x52ee04(0x128)](managementCommand),kbSearch];