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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +6 -18
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-management-client.js +1 -1
  110. package/lib/core/kb-sdk-errors.d.ts +3 -0
  111. package/lib/core/kb-sdk-errors.js +1 -0
  112. package/lib/core/kb-search-client.d.ts +3 -21
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.d.ts +2 -0
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/access-error.js +1 -1
  118. package/lib/framework/build-all-flags.js +1 -1
  119. package/lib/framework/dryrun.js +1 -1
  120. package/lib/framework/flags.js +1 -1
  121. package/lib/framework/help.js +1 -1
  122. package/lib/framework/index.js +1 -1
  123. package/lib/framework/output.js +1 -1
  124. package/lib/framework/preparse.js +1 -1
  125. package/lib/framework/rate-limit.js +1 -1
  126. package/lib/framework/raw-flags.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-confirmation.js +1 -1
  129. package/lib/framework/runner-error.js +1 -1
  130. package/lib/framework/runner.js +1 -1
  131. package/lib/framework/schema-export.js +1 -1
  132. package/lib/framework/service-order.js +1 -1
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.js +1 -1
  137. package/lib/generated/routing-contract.js +1 -1
  138. package/lib/help.js +1 -1
  139. package/lib/postinstall.js +1 -1
  140. package/lib/runtime/confirmation.js +1 -1
  141. package/lib/runtime/event.js +1 -1
  142. package/lib/runtime/index.js +1 -1
  143. package/lib/runtime/queue.js +1 -1
  144. package/lib/runtime/resolve.js +1 -1
  145. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  146. package/lib/services/dataset-import/excel-reader.js +1 -1
  147. package/lib/services/dataset-import/image-bytes.js +1 -1
  148. package/lib/services/dataset-import/image-ooxml.js +1 -1
  149. package/lib/services/dataset-import/image-runner.js +1 -1
  150. package/lib/services/dataset-import/metadata.js +1 -1
  151. package/lib/services/dataset-import/preview.js +1 -1
  152. package/lib/services/dataset-import/runner.js +1 -1
  153. package/lib/skills/builtin-skill.js +1 -1
  154. package/lib/skills/npx-skills-add.js +1 -1
  155. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  156. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  157. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  158. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  159. package/lib/skills/runtime-skill-sync/links.js +1 -1
  160. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  161. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  162. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  163. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  164. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  165. package/lib/skills/runtime-skill-sync/push.js +1 -1
  166. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  169. package/lib/skills/runtime-skill-sync.js +1 -1
  170. package/lib/skills/skill-presence.js +1 -1
  171. package/lib/utils/access-key-redaction.js +1 -1
  172. package/lib/utils/apply-jq-filter.js +1 -1
  173. package/lib/utils/cli-version-check.js +1 -1
  174. package/lib/utils/cli-version-policy.js +1 -1
  175. package/lib/utils/logger.js +1 -1
  176. package/lib/utils/lossless-json.js +1 -1
  177. package/lib/utils/params.js +1 -1
  178. package/lib/utils/positive-safe-integer.js +1 -1
  179. package/lib/utils/redaction.js +1 -1
  180. package/lib/utils/runtime-user-id.js +1 -1
  181. package/lib/utils/update-notice.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/write-cli-side-channel.js +1 -1
  184. package/package.json +2 -2
  185. package/skills/lovrabet/SKILL.md +1 -1
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a27_0x1ffb(_0xf8225d,_0x52e042){_0xf8225d=_0xf8225d-0x1de;const _0x5addcf=a27_0x5add();let _0x1ffbac=_0x5addcf[_0xf8225d];return _0x1ffbac;}const a27_0x3bf33a=a27_0x1ffb;(function(_0x29def1,_0x3d212f){const _0x318e95=a27_0x1ffb,_0x4c090f=_0x29def1();while(!![]){try{const _0x26a5e9=parseInt(_0x318e95(0x205))/0x1*(parseInt(_0x318e95(0x230))/0x2)+parseInt(_0x318e95(0x226))/0x3*(-parseInt(_0x318e95(0x1e4))/0x4)+parseInt(_0x318e95(0x21c))/0x5+-parseInt(_0x318e95(0x23e))/0x6+parseInt(_0x318e95(0x209))/0x7+parseInt(_0x318e95(0x20c))/0x8*(-parseInt(_0x318e95(0x1e2))/0x9)+parseInt(_0x318e95(0x21a))/0xa;if(_0x26a5e9===_0x3d212f)break;else _0x4c090f['push'](_0x4c090f['shift']());}catch(_0x4802e4){_0x4c090f['push'](_0x4c090f['shift']());}}}(a27_0x5add,0xb56de));import{dataImportExcel}from'./import-excel.js';function a27_0x5add(){const _0x5b1b69=['\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','aggregate','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','6cUdXRz','batch','\x20\x20EXAMPLES','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\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\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\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}}','create','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}','882RNrvca','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','read','body','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\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','\x20on\x20dataset\x20','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','map','1386552LgZGNp','risk','POST','description','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','length','command','getOne','paramsRequired','\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\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\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','515547qAqvDo','\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}','2693572zTwsMF','\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}}','params','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','join','Preview:\x20data\x20','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\x20\x20PARAMS\x20STRUCTURE','Update\x20an\x20existing\x20data\x20record','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','str','helpExtra','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','build','write','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20DATASET\x20BOUNDARY','\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}','/api/{appCode}/','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','high-risk-write','\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\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20WHERE\x20OPERATORS','2819YYQnUX','update','\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}}]}','batchCreate','5257364VgJLzN','delete','\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}}','80eHdSFa','\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]}}','Create\x20one\x20record\x20in\x20the\x20dataset','\x20\x20AGGREGATE\x20TYPES','confirmationDescription','filter','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','operation','data\x20','now','paramsHint','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','3052140kWydCw','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','2971985Exjmeh','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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}}]}','code','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)'];a27_0x5add=function(){return _0x5b1b69;};return a27_0x5add();}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':'filter','operation':a27_0x3bf33a(0x211),'risk':a27_0x3bf33a(0x235),'paramsRequired':![],'description':a27_0x3bf33a(0x22e),'paramsHint':a27_0x3bf33a(0x1e7)+a27_0x3bf33a(0x21f),'helpExtra':[a27_0x3bf33a(0x204),a27_0x3bf33a(0x22c),'\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_0x3bf33a(0x1e5),a27_0x3bf33a(0x1ff),'\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\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_0x3bf33a(0x20d),a27_0x3bf33a(0x1e0),a27_0x3bf33a(0x232),'\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_0x3bf33a(0x1de),a27_0x3bf33a(0x220),a27_0x3bf33a(0x207),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a27_0x3bf33a(0x1df),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a27_0x3bf33a(0x222),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a27_0x3bf33a(0x1f6),a27_0x3bf33a(0x22a),a27_0x3bf33a(0x21e),'\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x3bf33a(0x23a),a27_0x3bf33a(0x229),a27_0x3bf33a(0x202)][a27_0x3bf33a(0x1e8)]('\x0a')},{'command':a27_0x3bf33a(0x247),'operation':a27_0x3bf33a(0x247),'risk':a27_0x3bf33a(0x235),'paramsRequired':!![],'description':a27_0x3bf33a(0x243),'paramsHint':a27_0x3bf33a(0x1fb)},{'command':a27_0x3bf33a(0x22d),'operation':a27_0x3bf33a(0x22d),'risk':'write','paramsRequired':!![],'description':a27_0x3bf33a(0x20e),'confirmationDescription':a27_0x3bf33a(0x238),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a27_0x3bf33a(0x208),'operation':a27_0x3bf33a(0x208),'risk':'write','paramsRequired':!![],'description':a27_0x3bf33a(0x212),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x3bf33a(0x223),a27_0x3bf33a(0x1eb),a27_0x3bf33a(0x1f1),'\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.',a27_0x3bf33a(0x217),a27_0x3bf33a(0x239),a27_0x3bf33a(0x200),a27_0x3bf33a(0x218),a27_0x3bf33a(0x219),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.']['join']('\x0a'),'confirmationDescription':a27_0x3bf33a(0x1ea),'paramsHint':a27_0x3bf33a(0x201)},{'command':a27_0x3bf33a(0x206),'operation':a27_0x3bf33a(0x206),'risk':a27_0x3bf33a(0x1f4),'paramsRequired':!![],'description':a27_0x3bf33a(0x1ed),'confirmationDescription':a27_0x3bf33a(0x1f7),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'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_0x3bf33a(0x20a),'risk':a27_0x3bf33a(0x1fe),'paramsRequired':!![],'description':'Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','confirmationDescription':a27_0x3bf33a(0x242),'paramsHint':a27_0x3bf33a(0x1fb)},{'command':a27_0x3bf33a(0x224),'operation':'aggregate','risk':a27_0x3bf33a(0x235),'paramsRequired':![],'description':a27_0x3bf33a(0x1fc),'paramsHint':a27_0x3bf33a(0x233)+a27_0x3bf33a(0x237),'helpExtra':[a27_0x3bf33a(0x20f),a27_0x3bf33a(0x22b),a27_0x3bf33a(0x24b),a27_0x3bf33a(0x1f9),a27_0x3bf33a(0x1e3),'\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_0x3bf33a(0x22f),'',a27_0x3bf33a(0x1ec),a27_0x3bf33a(0x1e1),a27_0x3bf33a(0x231),a27_0x3bf33a(0x1f2),a27_0x3bf33a(0x225),a27_0x3bf33a(0x20b),a27_0x3bf33a(0x24a),'','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY',a27_0x3bf33a(0x234),a27_0x3bf33a(0x1ee),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','',a27_0x3bf33a(0x1f8),a27_0x3bf33a(0x21b),a27_0x3bf33a(0x1fd),a27_0x3bf33a(0x23c),a27_0x3bf33a(0x244),'',a27_0x3bf33a(0x228),a27_0x3bf33a(0x1f5),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a27_0x3bf33a(0x21d),a27_0x3bf33a(0x203),'',a27_0x3bf33a(0x249)][a27_0x3bf33a(0x1e8)]('\x0a')}];function makeDataCommand(_0x241af0){const _0x232c0c=a27_0x3bf33a,_0x20bedb=_0x232c0c(0x214)+_0x241af0['command'],_0x3a05e0={'service':'data','command':_0x241af0[_0x232c0c(0x246)],'description':_0x241af0[_0x232c0c(0x241)],'risk':_0x241af0[_0x232c0c(0x23f)],..._0x241af0[_0x232c0c(0x210)]?{'confirmationDescription':_0x241af0[_0x232c0c(0x210)]}:{},'helpExtra':_0x241af0[_0x232c0c(0x1f0)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x241af0[_0x232c0c(0x216)]}],'validate':async _0x46ff08=>{const _0x1e452d=_0x232c0c;_0x241af0[_0x1e452d(0x248)]&&requireAnyOf(_0x46ff08,['params'],_0x20bedb),_0x241af0[_0x1e452d(0x213)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x46ff08[_0x1e452d(0x1ef)]('params'))),_0x241af0[_0x1e452d(0x213)]===_0x1e452d(0x206)&&parseUpdateIdsFromParams(parseJsonParams(_0x46ff08['str'](_0x1e452d(0x1e6)))??{});},async 'execute'(_0xa9233c){const _0x91ab08=_0x232c0c,_0xa1f5e9=_0xa9233c[_0x91ab08(0x1ef)](_0x91ab08(0x221)),_0xe3b283=_0x241af0[_0x91ab08(0x213)]===_0x91ab08(0x208)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xa9233c[_0x91ab08(0x1ef)](_0x91ab08(0x1e6)))):parseJsonParams(_0xa9233c[_0x91ab08(0x1ef)](_0x91ab08(0x1e6)))??{},_0x29b15d=_0x241af0[_0x91ab08(0x213)]==='update'?parseUpdateIdsFromParams(_0xe3b283):undefined,_0x32eb99=_0x29b15d?normalizeUpdateParamsForRuntime(_0xe3b283,_0x29b15d):_0xe3b283,_0x492d12=Date[_0x91ab08(0x215)](),_0x1324ea=await executeData(_0xa1f5e9,_0x241af0[_0x91ab08(0x213)],_0x32eb99),_0x20fed5=Date[_0x91ab08(0x215)]()-_0x492d12,_0x58b50b=_0x29b15d&&_0x29b15d[_0x91ab08(0x245)]>0x1?buildBatchUpdateResult(_0x29b15d,_0x1324ea):_0x1324ea;return{'ok':!![],'data':{'result':_0x58b50b,'elapsed':_0x20fed5},'message':_0x91ab08(0x214)+_0x241af0['command']+'\x20completed\x20in\x20'+_0x20fed5+'ms'};}};return _0x241af0[_0x232c0c(0x23f)]!==_0x232c0c(0x235)&&(_0x3a05e0['dryRun']=async _0x474810=>{const _0x47c276=_0x232c0c,_0x2daa9d=_0x474810['str'](_0x47c276(0x221)),_0x5dd4e6=_0x241af0[_0x47c276(0x213)]===_0x47c276(0x208)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x474810[_0x47c276(0x1ef)]('params'))):parseJsonParams(_0x474810[_0x47c276(0x1ef)]('params'))??{};let _0x5d2d8a=_0x5dd4e6;if(_0x241af0['operation']===_0x47c276(0x206)){const _0x5ece80=parseUpdateIdsFromParams(_0x5dd4e6);_0x5d2d8a=normalizeUpdateParamsForRuntime(_0x5dd4e6,_0x5ece80);}return dryRun(_0x47c276(0x240),_0x47c276(0x1fa)+_0x2daa9d+'/'+_0x241af0[_0x47c276(0x213)])[_0x47c276(0x236)](_0x5d2d8a)[_0x47c276(0x241)](_0x47c276(0x1e9)+_0x241af0[_0x47c276(0x246)]+_0x47c276(0x23b)+_0x2daa9d)[_0x47c276(0x1f3)]();}),_0x3a05e0;}export const dataDefinitions=[...specs[a27_0x3bf33a(0x23d)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x13e334,_0x55d9c2){const _0x834887=a27_0x3bf33a;return{'operation':'update','mode':_0x834887(0x227),'ids':_0x13e334,'total':_0x13e334[_0x834887(0x245)],'result':_0x55d9c2};}
1
+ const a27_0x2ca052=a27_0x59e8;(function(_0x3c0286,_0x35273d){const _0x4dc5f2=a27_0x59e8,_0x59c984=_0x3c0286();while(!![]){try{const _0x1140fb=-parseInt(_0x4dc5f2(0x197))/0x1+parseInt(_0x4dc5f2(0x1dd))/0x2+parseInt(_0x4dc5f2(0x1e0))/0x3+-parseInt(_0x4dc5f2(0x194))/0x4*(parseInt(_0x4dc5f2(0x1aa))/0x5)+-parseInt(_0x4dc5f2(0x1a6))/0x6*(parseInt(_0x4dc5f2(0x1be))/0x7)+-parseInt(_0x4dc5f2(0x1af))/0x8*(parseInt(_0x4dc5f2(0x1a0))/0x9)+parseInt(_0x4dc5f2(0x195))/0xa;if(_0x1140fb===_0x35273d)break;else _0x59c984['push'](_0x59c984['shift']());}catch(_0x25b1ba){_0x59c984['push'](_0x59c984['shift']());}}}(a27_0x5953,0x88964));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x2ca052(0x1e1),'operation':'filter','risk':a27_0x2ca052(0x196),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x2ca052(0x1b4)+a27_0x2ca052(0x18c),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a27_0x2ca052(0x1cf),a27_0x2ca052(0x18f),a27_0x2ca052(0x1d5),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a27_0x2ca052(0x1d1),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a27_0x2ca052(0x1c6),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a27_0x2ca052(0x1c9),'',a27_0x2ca052(0x17b),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a27_0x2ca052(0x1ce),'',a27_0x2ca052(0x1cd),a27_0x2ca052(0x18d),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a27_0x2ca052(0x1df),a27_0x2ca052(0x1dc),'',a27_0x2ca052(0x1d9),a27_0x2ca052(0x19e),a27_0x2ca052(0x1c3),a27_0x2ca052(0x1bc),a27_0x2ca052(0x1b5),'\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27',a27_0x2ca052(0x1a7),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.']['join']('\x0a')},{'command':'getOne','operation':'getOne','risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a27_0x2ca052(0x17d)},{'command':a27_0x2ca052(0x19a),'operation':a27_0x2ca052(0x19a),'risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x1b8),'confirmationDescription':a27_0x2ca052(0x1ba),'paramsHint':a27_0x2ca052(0x193)},{'command':a27_0x2ca052(0x18a),'operation':a27_0x2ca052(0x18a),'risk':a27_0x2ca052(0x186),'paramsRequired':!![],'description':a27_0x2ca052(0x1a1),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x2ca052(0x1b3),a27_0x2ca052(0x17a),a27_0x2ca052(0x1e5),a27_0x2ca052(0x190),a27_0x2ca052(0x1b0),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.',a27_0x2ca052(0x1c2),a27_0x2ca052(0x1c5),a27_0x2ca052(0x1ad),a27_0x2ca052(0x1de)][a27_0x2ca052(0x1db)]('\x0a'),'confirmationDescription':a27_0x2ca052(0x1b6),'paramsHint':a27_0x2ca052(0x1ab)},{'command':'update','operation':'update','risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x19f),'confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x2ca052(0x1e3)+a27_0x2ca052(0x189)},{'command':a27_0x2ca052(0x1c0),'operation':a27_0x2ca052(0x1c0),'risk':'high-risk-write','paramsRequired':!![],'description':a27_0x2ca052(0x181),'confirmationDescription':a27_0x2ca052(0x1b1),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x2ca052(0x17e),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a27_0x2ca052(0x1b9),'paramsHint':a27_0x2ca052(0x1a4)+a27_0x2ca052(0x1c8),'helpExtra':[a27_0x2ca052(0x19b),a27_0x2ca052(0x1d6),a27_0x2ca052(0x1cb),a27_0x2ca052(0x184),a27_0x2ca052(0x1c4),a27_0x2ca052(0x17f),a27_0x2ca052(0x1e2),a27_0x2ca052(0x182),'','\x20\x20PARAMS\x20STRUCTURE',a27_0x2ca052(0x1d4),a27_0x2ca052(0x17c),a27_0x2ca052(0x1b7),a27_0x2ca052(0x1e7),a27_0x2ca052(0x1cc),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a27_0x2ca052(0x1da),a27_0x2ca052(0x1a8),a27_0x2ca052(0x1a3),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','','\x20\x20DATASET\x20BOUNDARY',a27_0x2ca052(0x198),a27_0x2ca052(0x1e8),a27_0x2ca052(0x185),a27_0x2ca052(0x1e4),'',a27_0x2ca052(0x1a5),a27_0x2ca052(0x188),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a27_0x2ca052(0x1ae),a27_0x2ca052(0x1c1),'',a27_0x2ca052(0x187)][a27_0x2ca052(0x1db)]('\x0a')}];function makeDataCommand(_0x574c78){const _0x540d77=a27_0x2ca052,_0x64d32=_0x540d77(0x183)+_0x574c78[_0x540d77(0x1ac)],_0x526292={'service':_0x540d77(0x1bf),'command':_0x574c78[_0x540d77(0x1ac)],'description':_0x574c78['description'],'risk':_0x574c78[_0x540d77(0x199)],..._0x574c78['confirmationDescription']?{'confirmationDescription':_0x574c78[_0x540d77(0x1d7)]}:{},'helpExtra':_0x574c78[_0x540d77(0x1d2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x574c78['paramsHint']}],'validate':async _0x2b48bc=>{const _0x1fb209=_0x540d77;_0x574c78[_0x1fb209(0x1bd)]&&requireAnyOf(_0x2b48bc,[_0x1fb209(0x1e6)],_0x64d32),_0x574c78[_0x1fb209(0x1bb)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2b48bc[_0x1fb209(0x191)](_0x1fb209(0x1e6)))),_0x574c78['operation']===_0x1fb209(0x1d0)&&parseUpdateIdsFromParams(parseJsonParams(_0x2b48bc['str'](_0x1fb209(0x1e6)))??{});},async 'execute'(_0x1c38ab){const _0x5ce75c=_0x540d77,_0x8ab5d0=_0x1c38ab[_0x5ce75c(0x191)]('code'),_0x48ebea=_0x574c78[_0x5ce75c(0x1bb)]===_0x5ce75c(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1c38ab['str'](_0x5ce75c(0x1e6)))):parseJsonParams(_0x1c38ab[_0x5ce75c(0x191)](_0x5ce75c(0x1e6)))??{},_0x40b603=_0x574c78[_0x5ce75c(0x1bb)]==='update'?parseUpdateIdsFromParams(_0x48ebea):undefined,_0x581708=_0x40b603?normalizeUpdateParamsForRuntime(_0x48ebea,_0x40b603):_0x48ebea,_0x28eba9=Date[_0x5ce75c(0x192)](),_0x43ca18=await executeData(_0x8ab5d0,_0x574c78[_0x5ce75c(0x1bb)],_0x581708),_0xcfd093=Date[_0x5ce75c(0x192)]()-_0x28eba9,_0x2b9250=_0x40b603&&_0x40b603[_0x5ce75c(0x1b2)]>0x1?buildBatchUpdateResult(_0x40b603,_0x43ca18):_0x43ca18;return{'ok':!![],'data':{'result':_0x2b9250,'elapsed':_0xcfd093},'message':_0x5ce75c(0x183)+_0x574c78[_0x5ce75c(0x1ac)]+_0x5ce75c(0x1c7)+_0xcfd093+'ms'};}};return _0x574c78['risk']!==_0x540d77(0x196)&&(_0x526292[_0x540d77(0x1ca)]=async _0x5e6b93=>{const _0x317a57=_0x540d77,_0x3a6f23=_0x5e6b93['str'](_0x317a57(0x1a9)),_0x2d4010=_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5e6b93[_0x317a57(0x191)](_0x317a57(0x1e6)))):parseJsonParams(_0x5e6b93[_0x317a57(0x191)]('params'))??{};let _0x3c2588=_0x2d4010;if(_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x1d0)){const _0x529eeb=parseUpdateIdsFromParams(_0x2d4010);_0x3c2588=normalizeUpdateParamsForRuntime(_0x2d4010,_0x529eeb);}return dryRun(_0x317a57(0x18e),_0x317a57(0x19c)+_0x3a6f23+'/'+_0x574c78[_0x317a57(0x1bb)])['body'](_0x3c2588)[_0x317a57(0x1a2)](_0x317a57(0x19d)+_0x574c78[_0x317a57(0x1ac)]+_0x317a57(0x1d8)+_0x3a6f23)[_0x317a57(0x18b)]();}),_0x526292;}export const dataDefinitions=[...specs[a27_0x2ca052(0x1d3)](makeDataCommand),dataImportExcel];function a27_0x5953(){const _0x242501=['Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','length','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Create\x20one\x20record\x20in\x20the\x20dataset','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','operation','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','paramsRequired','91UtBbUS','data','delete','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20completed\x20in\x20','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','dryRun','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','update','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','helpExtra','map','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','confirmationDescription','\x20on\x20dataset\x20','\x20\x20PAGINATION','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','join','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','632586BFtetL','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','3320148zuhpaD','filter','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','params','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','aggregate','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','batch','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','data\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','write','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','batchCreate','build','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','str','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','392hwdRFE','4676550irCirz','read','396280xVnpER','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','risk','create','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','Preview:\x20data\x20','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Update\x20an\x20existing\x20data\x20record','1315044IzgJUb','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','description','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20EXAMPLES','93408TmToBM','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','code','100lQZqvV','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','command','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','40JVAMHz','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.'];a27_0x5953=function(){return _0x242501;};return a27_0x5953();}function a27_0x59e8(_0x1c4aca,_0x2ff767){_0x1c4aca=_0x1c4aca-0x17a;const _0x5953ad=a27_0x5953();let _0x59e8a0=_0x5953ad[_0x1c4aca];return _0x59e8a0;}function buildBatchUpdateResult(_0x3de900,_0x37ce76){const _0x47e22=a27_0x2ca052;return{'operation':_0x47e22(0x1d0),'mode':_0x47e22(0x180),'ids':_0x3de900,'total':_0x3de900[_0x47e22(0x1b2)],'result':_0x37ce76};}
@@ -1 +1 @@
1
- function a28_0x4a30(){const _0x283f61=['responseFields','8ceQVmv','modifierIdField','dblinkInfoDTO','apiError','dbId','4809760LdKFEF','detail','datasetKey','allFields','afterScriptId','map','createTimeField','dataset','extend','parse','code','creatorNameField','tableName','isArray','3531234OZzXsI','updateTimeField','validateRules','indexes','filter','string','dataType','method','object','2036043bVkcwf','fields','name','host','trim','requestFields','read','push','split','type','options','required','logicField','modelCode','displayName','properties','description','str','responseBody','length','1084878DYFVEv','creatorIdField','8954162gOEWFi','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','dbType','979819phKUvC','operations','appCode','path','pkField','beforeScriptId','allFieldNames','dbtableConfig','1176552XjZGmv','requestBody','doType','modelId','labelField','deleted','columnCodeListWithDeleted','formatRules','entries','dbName','relations','modifierNameField'];a28_0x4a30=function(){return _0x283f61;};return a28_0x4a30();}const a28_0x2a38a0=a28_0x4a62;(function(_0x5d6bab,_0x2171f3){const _0x56029d=a28_0x4a62,_0xfe66e5=_0x5d6bab();while(!![]){try{const _0x4bb424=parseInt(_0x56029d(0xd0))/0x1+-parseInt(_0x56029d(0xcb))/0x2+parseInt(_0x56029d(0xb7))/0x3+parseInt(_0x56029d(0x8e))/0x4+parseInt(_0x56029d(0xa0))/0x5+-parseInt(_0x56029d(0xae))/0x6+parseInt(_0x56029d(0xcd))/0x7*(-parseInt(_0x56029d(0x9b))/0x8);if(_0x4bb424===_0x2171f3)break;else _0xfe66e5['push'](_0xfe66e5['shift']());}catch(_0x1f9c37){_0xfe66e5['push'](_0xfe66e5['shift']());}}}(a28_0x4a30,0x7b27e));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x40ec5c){const _0x1b6899=a28_0x4a62;return _0x40ec5c!==null&&typeof _0x40ec5c==='object'&&!Array[_0x1b6899(0xad)](_0x40ec5c);}function normalizeField(_0x37f5b6){const _0x3fa6bb=a28_0x4a62;if(_0x37f5b6[_0x3fa6bb(0x93)])return null;const _0x9abda8=Boolean(_0x37f5b6['displayName']!==undefined||_0x37f5b6['doType']!==undefined);let _0x26dada={};if(!_0x9abda8&&typeof _0x37f5b6['extend']===_0x3fa6bb(0xb3))try{_0x26dada=JSON[_0x3fa6bb(0xa9)](_0x37f5b6[_0x3fa6bb(0xa8)]);}catch{}const _0x342399=_0x9abda8?_0x37f5b6[_0x3fa6bb(0xb9)]:_0x37f5b6[_0x3fa6bb(0xaa)],_0x2782be=_0x9abda8?_0x37f5b6[_0x3fa6bb(0xc5)]:_0x37f5b6[_0x3fa6bb(0xb9)],_0xd8fc22=_0x9abda8?_0x37f5b6[_0x3fa6bb(0x90)]:_0x37f5b6['type']||_0x37f5b6[_0x3fa6bb(0xb4)],_0x309444=_0x9abda8?_0x37f5b6['pkField']===!![]:_0x26dada[_0x3fa6bb(0x8a)]===!![],_0x3a78c8=_0x9abda8?_0x37f5b6[_0x3fa6bb(0xc2)]===!![]:_0x26dada[_0x3fa6bb(0xc2)]===!![],_0x1db2c7=_0x9abda8?_0x37f5b6[_0x3fa6bb(0xc1)]??null:_0x26dada[_0x3fa6bb(0xc1)]??null,_0x4fab12={'name':_0x342399,'displayName':_0x2782be||_0x342399,'type':_0xd8fc22,'dbType':_0x37f5b6[_0x3fa6bb(0xcf)],'pk':_0x309444,'required':_0x3a78c8,'description':_0x37f5b6[_0x3fa6bb(0xc7)]||undefined};return Array['isArray'](_0x1db2c7)&&_0x1db2c7[_0x3fa6bb(0xca)]>0x0&&(_0x4fab12[_0x3fa6bb(0xc1)]=_0x1db2c7),_0x4fab12;}function a28_0x4a62(_0x5eca85,_0x2cba13){_0x5eca85=_0x5eca85-0x88;const _0x4a3012=a28_0x4a30();let _0x4a623e=_0x4a3012[_0x5eca85];return _0x4a623e;}function parseJsonMaybe(_0x543534){const _0x53235e=a28_0x4a62;if(typeof _0x543534!==_0x53235e(0xb3))return _0x543534;try{return JSON[_0x53235e(0xa9)](_0x543534);}catch{return _0x543534;}}function normalizeOperationEntry(_0x112ea7,_0x1dc749){const _0x82661c=a28_0x4a62;if(!_0x1dc749||typeof _0x1dc749!==_0x82661c(0xb6))return null;if(!_0x1dc749[_0x82661c(0xb5)]||!_0x1dc749['path'])return null;const _0x2d332e={'name':_0x112ea7,'method':_0x1dc749[_0x82661c(0xb5)],'path':_0x1dc749[_0x82661c(0x89)]};if(_0x1dc749[_0x82661c(0xba)])_0x2d332e['host']=_0x1dc749[_0x82661c(0xba)];if(_0x1dc749[_0x82661c(0x8f)]!=null)_0x2d332e[_0x82661c(0x8f)]=parseJsonMaybe(_0x1dc749[_0x82661c(0x8f)]);if(_0x1dc749['responseBody']!=null)_0x2d332e['responseBody']=parseJsonMaybe(_0x1dc749[_0x82661c(0xc9)]);if(_0x1dc749[_0x82661c(0x8b)]!=null)_0x2d332e[_0x82661c(0x8b)]=_0x1dc749['beforeScriptId'];if(_0x1dc749[_0x82661c(0xa4)]!=null)_0x2d332e[_0x82661c(0xa4)]=_0x1dc749[_0x82661c(0xa4)];if(Array['isArray'](_0x1dc749[_0x82661c(0xbc)]))_0x2d332e[_0x82661c(0xbc)]=_0x1dc749[_0x82661c(0xbc)];if(Array[_0x82661c(0xad)](_0x1dc749[_0x82661c(0x9a)]))_0x2d332e[_0x82661c(0x9a)]=_0x1dc749[_0x82661c(0x9a)];return _0x2d332e;}function summarizeDbtable(_0x1d0aa9){const _0x4a22d7=a28_0x4a62,_0x3a663c={},_0x3c922c=[_0x4a22d7(0x9f),_0x4a22d7(0x97),'tableName',_0x4a22d7(0xa2),_0x4a22d7(0x8a),'allFields',_0x4a22d7(0xc3),_0x4a22d7(0xa6),_0x4a22d7(0xaf),_0x4a22d7(0xcc),_0x4a22d7(0xab),_0x4a22d7(0x9c),_0x4a22d7(0x99),_0x4a22d7(0x92),_0x4a22d7(0x9d)];for(const _0x1b09f7 of _0x3c922c){if(_0x1d0aa9[_0x1b09f7]!==undefined)_0x3a663c[_0x1b09f7]=_0x1d0aa9[_0x1b09f7];}return typeof _0x3a663c[_0x4a22d7(0xa3)]===_0x4a22d7(0xb3)&&_0x3a663c['allFields'][_0x4a22d7(0xca)]>0x0&&(_0x3a663c[_0x4a22d7(0x8c)]=_0x3a663c['allFields'][_0x4a22d7(0xbf)](',')[_0x4a22d7(0xa5)](_0x5bef3a=>_0x5bef3a['trim']())[_0x4a22d7(0xb2)](Boolean)),_0x3a663c;}function normalizeRelatedPages(_0x56bd36){const _0x291036=a28_0x4a62;if(!Array[_0x291036(0xad)](_0x56bd36))return[];return _0x56bd36['filter'](_0x59e56a=>_0x59e56a&&typeof _0x59e56a===_0x291036(0xb6))[_0x291036(0xa5)](_0x539a69=>({'id':_0x539a69['id'],'type':_0x539a69[_0x291036(0xc0)],'code':_0x539a69['code'],'title':_0x539a69['title'],'deleted':_0x539a69[_0x291036(0x93)]===!![]}));}function normalizeFallbackFieldName(_0x79925,_0x26b285){const _0x7bea8a=a28_0x4a62,_0xa4b7c8=_0x79925[_0x7bea8a(0xbb)]();if(!_0xa4b7c8)return null;return{'name':_0xa4b7c8,'displayName':_0xa4b7c8,'type':undefined,'dbType':undefined,'pk':_0xa4b7c8===_0x26b285,'required':![],'description':undefined};}async function loadListFieldFallback(_0x53f72a,_0x3de537){const _0x19ca2a=a28_0x4a62;if(!_0x53f72a||!_0x3de537)return[];try{const _0x251c8d=await listDatasets(_0x53f72a,{'code':_0x3de537}),_0x4a022d=_0x251c8d['find'](_0xa779a7=>_0xa779a7[_0x19ca2a(0xaa)]===_0x3de537)??_0x251c8d[0x0],_0x325da8=_0x4a022d?.[_0x19ca2a(0x8d)]??{},_0x14b79a=typeof _0x325da8[_0x19ca2a(0xa3)]===_0x19ca2a(0xb3)?_0x325da8[_0x19ca2a(0xa3)][_0x19ca2a(0xbf)](','):[];return _0x14b79a['map'](_0x342598=>normalizeFallbackFieldName(_0x342598,_0x325da8['pkField']))[_0x19ca2a(0xb2)](_0x328306=>_0x328306!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x2a38a0(0xa7),'command':a28_0x2a38a0(0xa1),'description':a28_0x2a38a0(0xce),'risk':a28_0x2a38a0(0xbd),'flags':[CODE_FLAG],async 'execute'(_0x51fd62){const _0x53ad56=a28_0x2a38a0,_0x105096=await getDatasetDetail(_0x51fd62[_0x53ad56(0xc8)](_0x53ad56(0xaa)));if(!isRecord(_0x105096))throw CliErrors[_0x53ad56(0x9e)]('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0xe758bc=Array[_0x53ad56(0xad)](_0x105096[_0x53ad56(0xb8)])?_0x105096[_0x53ad56(0xb8)]:Array[_0x53ad56(0xad)](_0x105096['properties'])?_0x105096[_0x53ad56(0xc6)]:[];let _0x4b494e=_0xe758bc[_0x53ad56(0xa5)](_0x27d490=>normalizeField(_0x27d490))[_0x53ad56(0xb2)](_0x580f00=>_0x580f00!==null);_0x4b494e[_0x53ad56(0xca)]===0x0&&(_0x4b494e=await loadListFieldFallback(_0x51fd62[_0x53ad56(0x88)],_0x51fd62['str'](_0x53ad56(0xaa))));const _0x3aeee3=_0x105096[_0x53ad56(0xd1)]??{},_0x5c6b1f=[];for(const [_0x1b03f3,_0x4172d7]of Object[_0x53ad56(0x96)](_0x3aeee3)){const _0x5d426d=normalizeOperationEntry(_0x1b03f3,_0x4172d7);if(_0x5d426d)_0x5c6b1f[_0x53ad56(0xbe)](_0x5d426d);}const _0x402fda=isRecord(_0x105096[_0x53ad56(0x8d)])?_0x105096['dbtableConfig']:{},_0x54ad4c=isRecord(_0x105096['dataset'])?_0x105096['dataset']:{},_0x39cf80=_0x402fda[_0x53ad56(0x9f)]!=null?{'id':_0x402fda['dbId'],'name':_0x402fda[_0x53ad56(0x97)]??null}:undefined;let _0x3f40b3;return typeof _0x105096['extend']===_0x53ad56(0xb3)&&(_0x3f40b3=parseJsonMaybe(_0x105096[_0x53ad56(0xa8)])),{'ok':!![],'data':{'id':_0x105096[_0x53ad56(0x91)]??_0x105096['id'],'name':_0x105096[_0x53ad56(0xb9)],'code':_0x105096[_0x53ad56(0xc4)]||_0x105096[_0x53ad56(0xaa)],'doVersion':_0x105096['doVersion'],'description':_0x105096['description']||_0x54ad4c['tableComment']||undefined,'source':_0x105096['source']||_0x54ad4c['sourceType'],'table':_0x402fda[_0x53ad56(0xac)]||_0x54ad4c[_0x53ad56(0xac)],'datasetKey':_0x402fda[_0x53ad56(0xa2)],'pk':_0x402fda[_0x53ad56(0x8a)],'db':_0x39cf80,'dbtable':summarizeDbtable(_0x402fda),'fields':_0x4b494e,'operations':_0x5c6b1f,'indexes':Array[_0x53ad56(0xad)](_0x54ad4c['indexes'])?_0x54ad4c[_0x53ad56(0xb1)]:[],'relations':_0x105096[_0x53ad56(0x98)]??null,'relatedPages':normalizeRelatedPages(_0x105096['relatedPageInfoList']),...Array['isArray'](_0x105096['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x105096[_0x53ad56(0x94)]}:{},'formatRules':Array['isArray'](_0x105096[_0x53ad56(0x95)])?_0x105096[_0x53ad56(0x95)]:[],'validateRules':Array['isArray'](_0x105096[_0x53ad56(0xb0)])?_0x105096[_0x53ad56(0xb0)]:[],..._0x3f40b3!==undefined?{'extend':_0x3f40b3}:{},'stats':{'fieldCount':_0x4b494e[_0x53ad56(0xca)],'operationCount':_0x5c6b1f[_0x53ad56(0xca)]}}};}};
1
+ const a28_0x384cdd=a28_0x574b;(function(_0x332671,_0x42e2e9){const _0x2dace9=a28_0x574b,_0x2e6d3e=_0x332671();while(!![]){try{const _0x50724b=parseInt(_0x2dace9(0xc9))/0x1+parseInt(_0x2dace9(0xe0))/0x2+parseInt(_0x2dace9(0xb2))/0x3*(-parseInt(_0x2dace9(0xb5))/0x4)+parseInt(_0x2dace9(0xf1))/0x5*(parseInt(_0x2dace9(0xe9))/0x6)+parseInt(_0x2dace9(0xf4))/0x7+-parseInt(_0x2dace9(0xf9))/0x8*(parseInt(_0x2dace9(0xc0))/0x9)+-parseInt(_0x2dace9(0xdb))/0xa*(parseInt(_0x2dace9(0xf5))/0xb);if(_0x50724b===_0x42e2e9)break;else _0x2e6d3e['push'](_0x2e6d3e['shift']());}catch(_0x50cc2d){_0x2e6d3e['push'](_0x2e6d3e['shift']());}}}(a28_0x4605,0x4396e));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x574b(_0xc2a269,_0x5502bc){_0xc2a269=_0xc2a269-0xb2;const _0x460591=a28_0x4605();let _0x574bf2=_0x460591[_0xc2a269];return _0x574bf2;}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x59120e){const _0x41f8c5=a28_0x574b;return _0x59120e!==null&&typeof _0x59120e==='object'&&!Array[_0x41f8c5(0xed)](_0x59120e);}function normalizeField(_0x3307af){const _0x1720f5=a28_0x574b;if(_0x3307af[_0x1720f5(0xc4)])return null;const _0x32f425=Boolean(_0x3307af[_0x1720f5(0xf6)]!==undefined||_0x3307af[_0x1720f5(0xb3)]!==undefined);let _0x5107fd={};if(!_0x32f425&&typeof _0x3307af['extend']===_0x1720f5(0xeb))try{_0x5107fd=JSON[_0x1720f5(0xc8)](_0x3307af[_0x1720f5(0xc7)]);}catch{}const _0x146184=_0x32f425?_0x3307af[_0x1720f5(0xf8)]:_0x3307af[_0x1720f5(0xb4)],_0x2f4466=_0x32f425?_0x3307af['displayName']:_0x3307af[_0x1720f5(0xf8)],_0x3ca9da=_0x32f425?_0x3307af['doType']:_0x3307af[_0x1720f5(0x101)]||_0x3307af[_0x1720f5(0xbe)],_0x15b7b4=_0x32f425?_0x3307af[_0x1720f5(0xf0)]===!![]:_0x5107fd['pkField']===!![],_0x3fc4a8=_0x32f425?_0x3307af[_0x1720f5(0xcf)]===!![]:_0x5107fd[_0x1720f5(0xcf)]===!![],_0x504664=_0x32f425?_0x3307af[_0x1720f5(0xca)]??null:_0x5107fd['options']??null,_0x2ba3b4={'name':_0x146184,'displayName':_0x2f4466||_0x146184,'type':_0x3ca9da,'dbType':_0x3307af[_0x1720f5(0xdc)],'pk':_0x15b7b4,'required':_0x3fc4a8,'description':_0x3307af[_0x1720f5(0xe5)]||undefined};return Array[_0x1720f5(0xed)](_0x504664)&&_0x504664['length']>0x0&&(_0x2ba3b4['options']=_0x504664),_0x2ba3b4;}function parseJsonMaybe(_0xceb4a0){const _0x55eb36=a28_0x574b;if(typeof _0xceb4a0!==_0x55eb36(0xeb))return _0xceb4a0;try{return JSON[_0x55eb36(0xc8)](_0xceb4a0);}catch{return _0xceb4a0;}}function a28_0x4605(){const _0x23416a=['type','144loZnNt','doType','code','27108JtryRc','validateRules','length','afterScriptId','tableName','dblinkInfoDTO','indexes','formatRules','filter','dataType','object','90tYNYVo','logicField','relations','requestFields','deleted','properties','sourceType','extend','parse','237511JmrRXD','options','trim','modelCode','path','operations','required','createTimeField','modelId','beforeScriptId','creatorNameField','allFields','responseFields','dbtableConfig','requestBody','find','modifierNameField','datasetKey','198910afZRZT','dbType','dbId','fields','doVersion','75494cGRmRg','dataset','modifierIdField','split','creatorIdField','description','tableComment','entries','appCode','12RsupaQ','host','string','read','isArray','source','title','pkField','30115ffOpnv','relatedPageInfoList','dbName','3227441rQCyNc','55neLnNz','displayName','columnCodeListWithDeleted','name','37416ISJKvS','labelField','responseBody','detail','method','str','allFieldNames','map'];a28_0x4605=function(){return _0x23416a;};return a28_0x4605();}function normalizeOperationEntry(_0x1db5f6,_0x52d5ad){const _0x542cc6=a28_0x574b;if(!_0x52d5ad||typeof _0x52d5ad!==_0x542cc6(0xbf))return null;if(!_0x52d5ad[_0x542cc6(0xfd)]||!_0x52d5ad[_0x542cc6(0xcd)])return null;const _0x5c5220={'name':_0x1db5f6,'method':_0x52d5ad['method'],'path':_0x52d5ad['path']};if(_0x52d5ad['host'])_0x5c5220['host']=_0x52d5ad[_0x542cc6(0xea)];if(_0x52d5ad[_0x542cc6(0xd7)]!=null)_0x5c5220[_0x542cc6(0xd7)]=parseJsonMaybe(_0x52d5ad['requestBody']);if(_0x52d5ad[_0x542cc6(0xfb)]!=null)_0x5c5220[_0x542cc6(0xfb)]=parseJsonMaybe(_0x52d5ad[_0x542cc6(0xfb)]);if(_0x52d5ad[_0x542cc6(0xd2)]!=null)_0x5c5220[_0x542cc6(0xd2)]=_0x52d5ad['beforeScriptId'];if(_0x52d5ad['afterScriptId']!=null)_0x5c5220[_0x542cc6(0xb8)]=_0x52d5ad[_0x542cc6(0xb8)];if(Array['isArray'](_0x52d5ad['requestFields']))_0x5c5220[_0x542cc6(0xc3)]=_0x52d5ad[_0x542cc6(0xc3)];if(Array['isArray'](_0x52d5ad[_0x542cc6(0xd5)]))_0x5c5220[_0x542cc6(0xd5)]=_0x52d5ad[_0x542cc6(0xd5)];return _0x5c5220;}function summarizeDbtable(_0x4c2240){const _0x3306db=a28_0x574b,_0xd9cb07={},_0xca556a=[_0x3306db(0xdd),_0x3306db(0xf3),'tableName','datasetKey','pkField',_0x3306db(0xd4),_0x3306db(0xc1),_0x3306db(0xd0),'updateTimeField',_0x3306db(0xe4),_0x3306db(0xd3),_0x3306db(0xe2),_0x3306db(0xd9),_0x3306db(0xfa),_0x3306db(0xba)];for(const _0xdae253 of _0xca556a){if(_0x4c2240[_0xdae253]!==undefined)_0xd9cb07[_0xdae253]=_0x4c2240[_0xdae253];}return typeof _0xd9cb07[_0x3306db(0xd4)]===_0x3306db(0xeb)&&_0xd9cb07['allFields'][_0x3306db(0xb7)]>0x0&&(_0xd9cb07[_0x3306db(0xff)]=_0xd9cb07[_0x3306db(0xd4)][_0x3306db(0xe3)](',')['map'](_0x3a8e01=>_0x3a8e01[_0x3306db(0xcb)]())[_0x3306db(0xbd)](Boolean)),_0xd9cb07;}function normalizeRelatedPages(_0x42270d){const _0x19d1b4=a28_0x574b;if(!Array[_0x19d1b4(0xed)](_0x42270d))return[];return _0x42270d['filter'](_0x1f1ce2=>_0x1f1ce2&&typeof _0x1f1ce2===_0x19d1b4(0xbf))['map'](_0x407431=>({'id':_0x407431['id'],'type':_0x407431[_0x19d1b4(0x101)],'code':_0x407431['code'],'title':_0x407431[_0x19d1b4(0xef)],'deleted':_0x407431[_0x19d1b4(0xc4)]===!![]}));}function normalizeFallbackFieldName(_0x1dccc4,_0x216654){const _0x222d75=_0x1dccc4['trim']();if(!_0x222d75)return null;return{'name':_0x222d75,'displayName':_0x222d75,'type':undefined,'dbType':undefined,'pk':_0x222d75===_0x216654,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1c1d09,_0x73c4b7){const _0x4595da=a28_0x574b;if(!_0x1c1d09||!_0x73c4b7)return[];try{const _0x3cc433=await listDatasets(_0x1c1d09,{'code':_0x73c4b7}),_0x2e42d0=_0x3cc433[_0x4595da(0xd8)](_0x3246b0=>_0x3246b0['code']===_0x73c4b7)??_0x3cc433[0x0],_0x1649f4=_0x2e42d0?.['dbtableConfig']??{},_0x41c7dc=typeof _0x1649f4[_0x4595da(0xd4)]===_0x4595da(0xeb)?_0x1649f4[_0x4595da(0xd4)][_0x4595da(0xe3)](','):[];return _0x41c7dc['map'](_0x263324=>normalizeFallbackFieldName(_0x263324,_0x1649f4[_0x4595da(0xf0)]))[_0x4595da(0xbd)](_0x4fe140=>_0x4fe140!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x384cdd(0xe1),'command':a28_0x384cdd(0xfc),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x384cdd(0xec),'flags':[CODE_FLAG],async 'execute'(_0x5f2ed5){const _0x8204=a28_0x384cdd,_0x4ba38e=await getDatasetDetail(_0x5f2ed5['str']('code'));if(!isRecord(_0x4ba38e))throw CliErrors['apiError']('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0x23282e=Array[_0x8204(0xed)](_0x4ba38e['fields'])?_0x4ba38e[_0x8204(0xde)]:Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xc5)])?_0x4ba38e[_0x8204(0xc5)]:[];let _0x9bcbae=_0x23282e[_0x8204(0x100)](_0x430914=>normalizeField(_0x430914))['filter'](_0x3882c8=>_0x3882c8!==null);_0x9bcbae[_0x8204(0xb7)]===0x0&&(_0x9bcbae=await loadListFieldFallback(_0x5f2ed5[_0x8204(0xe8)],_0x5f2ed5[_0x8204(0xfe)]('code')));const _0x2b912e=_0x4ba38e[_0x8204(0xce)]??{},_0x2fcc19=[];for(const [_0x23ee52,_0x3c635c]of Object[_0x8204(0xe7)](_0x2b912e)){const _0x9033ad=normalizeOperationEntry(_0x23ee52,_0x3c635c);if(_0x9033ad)_0x2fcc19['push'](_0x9033ad);}const _0x4a113f=isRecord(_0x4ba38e[_0x8204(0xd6)])?_0x4ba38e['dbtableConfig']:{},_0x40fc56=isRecord(_0x4ba38e['dataset'])?_0x4ba38e[_0x8204(0xe1)]:{},_0x28d935=_0x4a113f[_0x8204(0xdd)]!=null?{'id':_0x4a113f['dbId'],'name':_0x4a113f[_0x8204(0xf3)]??null}:undefined;let _0x2478da;return typeof _0x4ba38e[_0x8204(0xc7)]===_0x8204(0xeb)&&(_0x2478da=parseJsonMaybe(_0x4ba38e[_0x8204(0xc7)])),{'ok':!![],'data':{'id':_0x4ba38e[_0x8204(0xd1)]??_0x4ba38e['id'],'name':_0x4ba38e[_0x8204(0xf8)],'code':_0x4ba38e[_0x8204(0xcc)]||_0x4ba38e[_0x8204(0xb4)],'doVersion':_0x4ba38e[_0x8204(0xdf)],'description':_0x4ba38e['description']||_0x40fc56[_0x8204(0xe6)]||undefined,'source':_0x4ba38e[_0x8204(0xee)]||_0x40fc56[_0x8204(0xc6)],'table':_0x4a113f[_0x8204(0xb9)]||_0x40fc56[_0x8204(0xb9)],'datasetKey':_0x4a113f[_0x8204(0xda)],'pk':_0x4a113f[_0x8204(0xf0)],'db':_0x28d935,'dbtable':summarizeDbtable(_0x4a113f),'fields':_0x9bcbae,'operations':_0x2fcc19,'indexes':Array[_0x8204(0xed)](_0x40fc56[_0x8204(0xbb)])?_0x40fc56[_0x8204(0xbb)]:[],'relations':_0x4ba38e[_0x8204(0xc2)]??null,'relatedPages':normalizeRelatedPages(_0x4ba38e[_0x8204(0xf2)]),...Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xf7)])?{'columnCodeListWithDeleted':_0x4ba38e[_0x8204(0xf7)]}:{},'formatRules':Array[_0x8204(0xed)](_0x4ba38e['formatRules'])?_0x4ba38e[_0x8204(0xbc)]:[],'validateRules':Array['isArray'](_0x4ba38e['validateRules'])?_0x4ba38e[_0x8204(0xb6)]:[],..._0x2478da!==undefined?{'extend':_0x2478da}:{},'stats':{'fieldCount':_0x9bcbae[_0x8204(0xb7)],'operationCount':_0x2fcc19[_0x8204(0xb7)]}}};}};
@@ -1 +1 @@
1
- function a29_0x2e6c(_0x18dd41,_0x4fe307){_0x18dd41=_0x18dd41-0xbc;const _0x5f55a5=a29_0x5f55();let _0x2e6c18=_0x5f55a5[_0x18dd41];return _0x2e6c18;}function a29_0x5f55(){const _0x51957c=['668904UzuCgo','29855580DDBpAP','6583216DzSHzN','545xWSNVV','6Irgroh','2790663rMEdOQ','9rOJiZy','257264YZGiAU','43556guCAtc','5120759HcgmTc'];a29_0x5f55=function(){return _0x51957c;};return a29_0x5f55();}(function(_0x544f42,_0x299513){const _0x1f0b75=a29_0x2e6c,_0x31c524=_0x544f42();while(!![]){try{const _0x359519=parseInt(_0x1f0b75(0xc0))/0x1+-parseInt(_0x1f0b75(0xc3))/0x2+parseInt(_0x1f0b75(0xbe))/0x3+parseInt(_0x1f0b75(0xc1))/0x4*(parseInt(_0x1f0b75(0xbc))/0x5)+parseInt(_0x1f0b75(0xbd))/0x6*(parseInt(_0x1f0b75(0xc2))/0x7)+parseInt(_0x1f0b75(0xc5))/0x8+-parseInt(_0x1f0b75(0xbf))/0x9*(parseInt(_0x1f0b75(0xc4))/0xa);if(_0x359519===_0x299513)break;else _0x31c524['push'](_0x31c524['shift']());}catch(_0x4b7760){_0x31c524['push'](_0x31c524['shift']());}}}(a29_0x5f55,0x94a2f));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x4efbeb,_0x48960e){const _0x5781c6=a29_0x137f,_0x503023=_0x4efbeb();while(!![]){try{const _0x3a6e97=parseInt(_0x5781c6(0x10b))/0x1+parseInt(_0x5781c6(0x106))/0x2*(parseInt(_0x5781c6(0x109))/0x3)+-parseInt(_0x5781c6(0x107))/0x4+-parseInt(_0x5781c6(0x103))/0x5*(parseInt(_0x5781c6(0x108))/0x6)+parseInt(_0x5781c6(0x101))/0x7*(parseInt(_0x5781c6(0x102))/0x8)+parseInt(_0x5781c6(0x104))/0x9*(-parseInt(_0x5781c6(0x105))/0xa)+-parseInt(_0x5781c6(0x10a))/0xb;if(_0x3a6e97===_0x48960e)break;else _0x503023['push'](_0x503023['shift']());}catch(_0x3897ef){_0x503023['push'](_0x503023['shift']());}}}(a29_0x245e,0xb8f2d));import{datasetList}from'../../commands/dataset/list.js';function a29_0x245e(){const _0x563931=['3054884JPdZuW','882OzDLuw','24LFlNwb','12660450cLZSAR','549514SZcXuM','1576841QWDtcZ','48WRkuEb','720rZxZUa','339804OahxYK','120FChbTh','311342qsQwAE'];a29_0x245e=function(){return _0x563931;};return a29_0x245e();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x137f(_0x4ec535,_0x21758d){_0x4ec535=_0x4ec535-0x101;const _0x245e19=a29_0x245e();let _0x137fff=_0x245e19[_0x4ec535];return _0x137fff;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x4c764c=a30_0x2da8;(function(_0x2a7012,_0x3f2802){const _0x8104=a30_0x2da8,_0x3b18e5=_0x2a7012();while(!![]){try{const _0x53f308=parseInt(_0x8104(0xfd))/0x1+parseInt(_0x8104(0xf6))/0x2*(parseInt(_0x8104(0xf1))/0x3)+parseInt(_0x8104(0x105))/0x4*(parseInt(_0x8104(0xf8))/0x5)+-parseInt(_0x8104(0xf5))/0x6*(parseInt(_0x8104(0xf9))/0x7)+parseInt(_0x8104(0xf3))/0x8+parseInt(_0x8104(0xf2))/0x9+parseInt(_0x8104(0xfe))/0xa*(-parseInt(_0x8104(0xf0))/0xb);if(_0x53f308===_0x3f2802)break;else _0x3b18e5['push'](_0x3b18e5['shift']());}catch(_0x58fa47){_0x3b18e5['push'](_0x3b18e5['shift']());}}}(a30_0x5df5,0x7acfc));function a30_0x5df5(){const _0x5ec275=['table-name','source','109080tzNSOW','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','pkField','appCode','code','read','277893vbvMjW','33EiLLhj','8028576FOMenz','1708104LXjRTl','allFields','753828QSSHKF','27596FqfTiE','split','30oAirvL','49zJamYy','str','string','dataset','946784fZVhxq','390qIwBFp','name','datasetKey','description','dbtableConfig'];a30_0x5df5=function(){return _0x5ec275;};return a30_0x5df5();}function a30_0x2da8(_0x5d931d,_0x45d545){_0x5d931d=_0x5d931d-0xec;const _0x5df561=a30_0x5df5();let _0x2da82b=_0x5df561[_0x5d931d];return _0x2da82b;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x4c764c(0xfc),'command':'list','description':a30_0x4c764c(0x106),'risk':a30_0x4c764c(0xef),'flags':[{'name':a30_0x4c764c(0xff),'type':a30_0x4c764c(0xfb),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{'name':a30_0x4c764c(0x103),'type':a30_0x4c764c(0xfb),'description':'Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)'},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x12315d){const _0x5b095c=a30_0x4c764c,_0x510a0a=_0x12315d[_0x5b095c(0xfa)](_0x5b095c(0xff)),_0x119cc8=_0x12315d['str']('code'),_0x408bbc=_0x12315d[_0x5b095c(0xfa)]('table-name'),_0x8e6db0=await listDatasets(_0x12315d[_0x5b095c(0xed)],{..._0x510a0a&&{'name':_0x510a0a},..._0x119cc8&&{'code':_0x119cc8},..._0x408bbc&&{'tableName':_0x408bbc}});return{'ok':!![],'data':{'total':_0x8e6db0['length'],'datasets':_0x8e6db0['map'](_0xb1922f=>{const _0x353bf2=_0x5b095c,_0x8ca925=_0xb1922f[_0x353bf2(0x102)]??{};return{'id':_0xb1922f['id'],'code':_0xb1922f[_0x353bf2(0xee)],'name':_0xb1922f[_0x353bf2(0xff)],'source':_0xb1922f[_0x353bf2(0x104)],'description':_0xb1922f[_0x353bf2(0x101)],'table':_0x8ca925['tableName'],'datasetKey':_0x8ca925[_0x353bf2(0x100)],'pk':_0x8ca925[_0x353bf2(0xec)],'fields':_0x8ca925[_0x353bf2(0xf4)]?_0x8ca925[_0x353bf2(0xf4)][_0x353bf2(0xf7)](',')['map'](_0x19330f=>_0x19330f['trim']()):[]};})}};}};
1
+ const a30_0x32d483=a30_0x3251;(function(_0x291394,_0x34aaf6){const _0x31244b=a30_0x3251,_0x1d3c60=_0x291394();while(!![]){try{const _0x13337a=parseInt(_0x31244b(0x188))/0x1*(-parseInt(_0x31244b(0x179))/0x2)+-parseInt(_0x31244b(0x177))/0x3*(-parseInt(_0x31244b(0x185))/0x4)+parseInt(_0x31244b(0x175))/0x5+parseInt(_0x31244b(0x16e))/0x6*(parseInt(_0x31244b(0x17e))/0x7)+parseInt(_0x31244b(0x180))/0x8+parseInt(_0x31244b(0x17c))/0x9*(-parseInt(_0x31244b(0x172))/0xa)+-parseInt(_0x31244b(0x16f))/0xb*(parseInt(_0x31244b(0x18d))/0xc);if(_0x13337a===_0x34aaf6)break;else _0x1d3c60['push'](_0x1d3c60['shift']());}catch(_0x523598){_0x1d3c60['push'](_0x1d3c60['shift']());}}}(a30_0x25a0,0x28d75));function a30_0x25a0(){const _0x48bdb3=['30gbSzzg','11LzaCbk','trim','pkField','3304430ylePWf','read','dbtableConfig','867590LOJnZQ','table-name','12lTDqyf','map','173034LWIGIs','length','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','9RyDiOH','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','399623gETRhn','split','1689096EFwRep','allFields','list','datasetKey','tableName','23656pmFPDo','dataset','name','2JHKwvE','source','appCode','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','str','275928AGCvBa','string','code'];a30_0x25a0=function(){return _0x48bdb3;};return a30_0x25a0();}function a30_0x3251(_0x3760d1,_0x4d9c58){_0x3760d1=_0x3760d1-0x16d;const _0x25a014=a30_0x25a0();let _0x32512c=_0x25a014[_0x3760d1];return _0x32512c;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x32d483(0x186),'command':a30_0x32d483(0x182),'description':a30_0x32d483(0x18b),'risk':a30_0x32d483(0x173),'flags':[{'name':'name','type':'string','description':a30_0x32d483(0x17b)},{'name':a30_0x32d483(0x176),'type':a30_0x32d483(0x18e),'description':a30_0x32d483(0x17d)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x43e8e1){const _0x1b3021=a30_0x32d483,_0x251ea3=_0x43e8e1[_0x1b3021(0x18c)](_0x1b3021(0x187)),_0x192224=_0x43e8e1['str'](_0x1b3021(0x16d)),_0x31e64e=_0x43e8e1[_0x1b3021(0x18c)]('table-name'),_0x5d686d=await listDatasets(_0x43e8e1[_0x1b3021(0x18a)],{..._0x251ea3&&{'name':_0x251ea3},..._0x192224&&{'code':_0x192224},..._0x31e64e&&{'tableName':_0x31e64e}});return{'ok':!![],'data':{'total':_0x5d686d[_0x1b3021(0x17a)],'datasets':_0x5d686d[_0x1b3021(0x178)](_0x18a092=>{const _0x2f8d53=_0x1b3021,_0x43fc88=_0x18a092[_0x2f8d53(0x174)]??{};return{'id':_0x18a092['id'],'code':_0x18a092[_0x2f8d53(0x16d)],'name':_0x18a092[_0x2f8d53(0x187)],'source':_0x18a092[_0x2f8d53(0x189)],'description':_0x18a092['description'],'table':_0x43fc88[_0x2f8d53(0x184)],'datasetKey':_0x43fc88[_0x2f8d53(0x183)],'pk':_0x43fc88[_0x2f8d53(0x171)],'fields':_0x43fc88[_0x2f8d53(0x181)]?_0x43fc88[_0x2f8d53(0x181)][_0x2f8d53(0x17f)](',')[_0x2f8d53(0x178)](_0x5a67db=>_0x5a67db[_0x2f8d53(0x170)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a31_0x237439=a31_0x1e20;(function(_0x54be02,_0x43d7d8){const _0x762d69=a31_0x1e20,_0x1f0395=_0x54be02();while(!![]){try{const _0x3525b2=-parseInt(_0x762d69(0x1fb))/0x1*(parseInt(_0x762d69(0x1f4))/0x2)+parseInt(_0x762d69(0x1f2))/0x3*(-parseInt(_0x762d69(0x201))/0x4)+-parseInt(_0x762d69(0x1f9))/0x5*(parseInt(_0x762d69(0x1f6))/0x6)+-parseInt(_0x762d69(0x1f5))/0x7+-parseInt(_0x762d69(0x1f1))/0x8+parseInt(_0x762d69(0x202))/0x9+-parseInt(_0x762d69(0x1fd))/0xa*(-parseInt(_0x762d69(0x1ff))/0xb);if(_0x3525b2===_0x43d7d8)break;else _0x1f0395['push'](_0x1f0395['shift']());}catch(_0x4da86c){_0x1f0395['push'](_0x1f0395['shift']());}}}(a31_0xb51d,0x1c9da));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x237439(0x1fc);function a31_0x1e20(_0x780f60,_0x2b952f){_0x780f60=_0x780f60-0x1f0;const _0xb51da9=a31_0xb51d();let _0x1e2042=_0xb51da9[_0x780f60];return _0x1e2042;}export function formatDatasetSdkMarkdown(_0x8c9151){const _0x27c81c=a31_0x237439,_0xa00f6d=typeof _0x8c9151==='string'?_0x8c9151[_0x27c81c(0x200)]():'';return _0xa00f6d||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x237439(0x1f8),'command':a31_0x237439(0x1fa),'description':a31_0x237439(0x1f7),'risk':a31_0x237439(0x1f3),'flags':[{...CODE_FLAG,'description':a31_0x237439(0x1fe)}],async 'execute'(_0x294e91){const _0x478775=a31_0x237439,_0x4bf5d4=_0x294e91[_0x478775(0x203)](_0x478775(0x1f0)),_0x472252=await getDatasetSdkUsageDoc(_0x4bf5d4,_0x294e91[_0x478775(0x204)]);return{'ok':!![],'data':{'code':_0x4bf5d4,'appCode':_0x294e91['appCode'],'markdown':formatDatasetSdkMarkdown(_0x472252)}};}};function a31_0xb51d(){const _0x4a1161=['dataset','197040ElbNTh','sdk-doc','2HxqZmN','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','3357630wWnnEL','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','22mzfYxV','trim','892280pRmlph','697482pWcQlu','str','appCode','code','433272mMDMYu','3Zklofw','read','188154NUmoQQ','613305HTcRRu','12wgQcQy','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a31_0xb51d=function(){return _0x4a1161;};return a31_0xb51d();}
1
+ const a31_0x4a287f=a31_0x46a0;(function(_0x1dedca,_0xea872e){const _0x2a7327=a31_0x46a0,_0x52f0ee=_0x1dedca();while(!![]){try{const _0x33ce77=parseInt(_0x2a7327(0x136))/0x1*(-parseInt(_0x2a7327(0x137))/0x2)+-parseInt(_0x2a7327(0x13f))/0x3+-parseInt(_0x2a7327(0x13e))/0x4*(parseInt(_0x2a7327(0x13b))/0x5)+parseInt(_0x2a7327(0x134))/0x6+-parseInt(_0x2a7327(0x139))/0x7*(-parseInt(_0x2a7327(0x13c))/0x8)+parseInt(_0x2a7327(0x143))/0x9*(parseInt(_0x2a7327(0x138))/0xa)+parseInt(_0x2a7327(0x135))/0xb;if(_0x33ce77===_0xea872e)break;else _0x52f0ee['push'](_0x52f0ee['shift']());}catch(_0x31b3a2){_0x52f0ee['push'](_0x52f0ee['shift']());}}}(a31_0x14b8,0xd33c8));function a31_0x14b8(){const _0x32e18e=['28iKTnoW','8141320TJsBIO','56TFVmeD','str','5JNUrsz','175040Dovlvo','trim','1694148zxNzph','4248651QDleDB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','code','9snyskF','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','read','string','8981538uwJpnh','8584807CbQAMS','40111WxeVbZ'];a31_0x14b8=function(){return _0x32e18e;};return a31_0x14b8();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a31_0x46a0(_0x5e96fd,_0x5b86c0){_0x5e96fd=_0x5e96fd-0x132;const _0x14b8c8=a31_0x14b8();let _0x46a07c=_0x14b8c8[_0x5e96fd];return _0x46a07c;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4a287f(0x145);export function formatDatasetSdkMarkdown(_0x15a448){const _0x5ae1d3=a31_0x4a287f,_0x2a1451=typeof _0x15a448===_0x5ae1d3(0x133)?_0x15a448[_0x5ae1d3(0x13d)]():'';return _0x2a1451||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a31_0x4a287f(0x141),'risk':a31_0x4a287f(0x132),'flags':[{...CODE_FLAG,'description':a31_0x4a287f(0x140)}],async 'execute'(_0x1ed9fe){const _0x340097=a31_0x4a287f,_0x57205b=_0x1ed9fe[_0x340097(0x13a)](_0x340097(0x142)),_0x25f059=await getDatasetSdkUsageDoc(_0x57205b,_0x1ed9fe['appCode']);return{'ok':!![],'data':{'code':_0x57205b,'appCode':_0x1ed9fe[_0x340097(0x144)],'markdown':formatDatasetSdkMarkdown(_0x25f059)}};}};
@@ -1 +1 @@
1
- const a32_0x25225f=a32_0x3159;function a32_0x3159(_0x20e1e4,_0x4cfd0a){_0x20e1e4=_0x20e1e4-0x1b4;const _0x581404=a32_0x5814();let _0x3159b3=_0x581404[_0x20e1e4];return _0x3159b3;}(function(_0x18a339,_0x2f604f){const _0x203740=a32_0x3159,_0x34f487=_0x18a339();while(!![]){try{const _0x176746=-parseInt(_0x203740(0x1c3))/0x1*(parseInt(_0x203740(0x1e5))/0x2)+-parseInt(_0x203740(0x1d7))/0x3+-parseInt(_0x203740(0x1eb))/0x4*(-parseInt(_0x203740(0x21b))/0x5)+-parseInt(_0x203740(0x219))/0x6+-parseInt(_0x203740(0x1cf))/0x7*(parseInt(_0x203740(0x222))/0x8)+-parseInt(_0x203740(0x1e8))/0x9*(-parseInt(_0x203740(0x1e4))/0xa)+parseInt(_0x203740(0x209))/0xb;if(_0x176746===_0x2f604f)break;else _0x34f487['push'](_0x34f487['shift']());}catch(_0x5630b7){_0x34f487['push'](_0x34f487['shift']());}}}(a32_0x5814,0xf0b9b));import a32_0x518bcf from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x45105b){const _0x46bdec=a32_0x3159,_0xf75188=getCliVersion(),_0x7511ea=buildConfigFromFlags({});let _0x2a7ed1,_0x39c721;try{_0x2a7ed1=normalizeLovrabetRegion(_0x7511ea[_0x46bdec(0x22a)][_0x46bdec(0x1ff)]);}catch(_0x3c15cb){_0x39c721=_0x3c15cb instanceof Error?_0x3c15cb:new Error(String(_0x3c15cb));}let _0x2dd692;if(!_0x39c721)try{await initGlobalEnvironment(_0x7511ea);}catch(_0x306b14){_0x2dd692=_0x306b14 instanceof Error?_0x306b14:new Error(String(_0x306b14));}console[_0x46bdec(0x20c)](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)](CLI_BIN_NAME+'\x20doctor')),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x213)]('─'[_0x46bdec(0x227)](0x32))),console['log'](_0x46bdec(0x1b7)+_0xf75188),console[_0x46bdec(0x20c)](_0x46bdec(0x226)+process['version']),console[_0x46bdec(0x20c)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process['arch']);const _0x220a7d=inspectBuiltinSkill();console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)](_0x46bdec(0x1c0))),console['log'](a32_0x518bcf['gray'](_0x46bdec(0x202)['repeat'](0x1e))),console[_0x46bdec(0x20c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x220a7d[_0x46bdec(0x21c)]===_0x46bdec(0x1f0)?a32_0x518bcf[_0x46bdec(0x1c1)]('✓\x20current'):a32_0x518bcf['red']('✗\x20'+_0x220a7d[_0x46bdec(0x21c)]))),console[_0x46bdec(0x20c)](_0x46bdec(0x21d)+_0x220a7d['packageVersion']),console[_0x46bdec(0x20c)](_0x46bdec(0x1ef)+(_0x220a7d['skillVersion']||a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1f5)))),console[_0x46bdec(0x20c)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x220a7d['installedPath']||a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1c2))));_0x220a7d['state']!==_0x46bdec(0x1f0)&&console['log'](_0x46bdec(0x1cc)+_0x220a7d[_0x46bdec(0x1b6)]);_0x220a7d[_0x46bdec(0x1bb)]&&console['log'](_0x46bdec(0x21f)+_0x220a7d[_0x46bdec(0x1bb)]);console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)]('\x20\x20Config\x20Files')),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e)));const _0x296c86=getGlobalConfigPath(),_0xaa85b6=getProjectConfigPath();console[_0x46bdec(0x20c)](_0x46bdec(0x1bc)+(_0x296c86||a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1c2)))),console[_0x46bdec(0x20c)](_0x46bdec(0x1f7)+(_0xaa85b6||a32_0x518bcf['gray'](_0x46bdec(0x1c2)))),console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)](_0x46bdec(0x1d4))),console[_0x46bdec(0x20c)](a32_0x518bcf['gray'](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e)));const _0x94aa88=(_0x473e2c,_0x199b9d)=>{const _0x27dcd8=_0x46bdec;if(!_0x199b9d){console[_0x27dcd8(0x20c)]('\x20\x20'+_0x473e2c[_0x27dcd8(0x1c4)](0x11)+'\x20'+a32_0x518bcf[_0x27dcd8(0x213)](_0x27dcd8(0x1f1)));return;}const _0x19a988=inspectCliConfigJsonFile(_0x199b9d);if(_0x19a988[_0x27dcd8(0x214)]==='ok')console[_0x27dcd8(0x20c)]('\x20\x20'+_0x473e2c[_0x27dcd8(0x1c4)](0x11)+'\x20'+a32_0x518bcf['green'](_0x27dcd8(0x1e9)));else{if(_0x19a988[_0x27dcd8(0x214)]===_0x27dcd8(0x212))console[_0x27dcd8(0x20c)]('\x20\x20'+_0x473e2c['padEnd'](0x11)+'\x20'+a32_0x518bcf['yellow'](_0x27dcd8(0x200)));else _0x19a988[_0x27dcd8(0x214)]===_0x27dcd8(0x208)?console['log']('\x20\x20'+_0x473e2c[_0x27dcd8(0x1c4)](0x11)+'\x20'+a32_0x518bcf[_0x27dcd8(0x213)](_0x27dcd8(0x1f5))):(console[_0x27dcd8(0x20c)]('\x20\x20'+_0x473e2c[_0x27dcd8(0x1c4)](0x11)+'\x20'+a32_0x518bcf['red'](_0x27dcd8(0x225))),console[_0x27dcd8(0x20c)]('\x20\x20'+''[_0x27dcd8(0x1c4)](0x11)+'\x20'+a32_0x518bcf['red'](_0x19a988[_0x27dcd8(0x1dd)])));}};_0x94aa88(_0x46bdec(0x1e6),_0x296c86),_0x94aa88(_0x46bdec(0x1ca),_0xaa85b6);const _0x21b87a=loadRawConfigLayers(),_0x1b7442=[Object[_0x46bdec(0x1d3)][_0x46bdec(0x1fd)][_0x46bdec(0x1e7)](_0x21b87a[_0x46bdec(0x1f4)],_0x46bdec(0x221))?'global':null,Object[_0x46bdec(0x1d3)][_0x46bdec(0x1fd)]['call'](_0x21b87a['projectConfig'],_0x46bdec(0x221))?_0x46bdec(0x21a):null][_0x46bdec(0x1df)](Boolean);_0x1b7442[_0x46bdec(0x1ee)]>0x0&&(console[_0x46bdec(0x20c)](_0x46bdec(0x1ba)+a32_0x518bcf['yellow'](_0x46bdec(0x204)+_0x1b7442[_0x46bdec(0x206)](_0x46bdec(0x1d5))+'\x20config')),_0x1b7442[_0x46bdec(0x1bd)]('project')&&console[_0x46bdec(0x20c)](_0x46bdec(0x229)+CLI_BIN_NAME+_0x46bdec(0x21e)),_0x1b7442[_0x46bdec(0x1bd)]('global')&&console[_0x46bdec(0x20c)](_0x46bdec(0x1bf)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x2dd692&&(console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf['bold']('\x20\x20Routing\x20Configuration')),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x213)]('\x20\x20─'[_0x46bdec(0x227)](0x1e))),console[_0x46bdec(0x20c)](_0x46bdec(0x20a)+a32_0x518bcf[_0x46bdec(0x205)](_0x46bdec(0x1f3))),console[_0x46bdec(0x20c)](_0x46bdec(0x21f)+_0x2dd692[_0x46bdec(0x1dd)]),Object[_0x46bdec(0x1d3)]['hasOwnProperty']['call'](_0x21b87a['projectConfig'],'routing')&&console[_0x46bdec(0x20c)](_0x46bdec(0x1fe)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x46bdec(0x1d3)][_0x46bdec(0x1fd)][_0x46bdec(0x1e7)](_0x21b87a[_0x46bdec(0x1f4)],_0x46bdec(0x1f9))&&console[_0x46bdec(0x20c)](_0x46bdec(0x1b4)+CLI_BIN_NAME+_0x46bdec(0x220)));_0x39c721&&(console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)](_0x46bdec(0x1cd))),console['log'](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e))),console[_0x46bdec(0x20c)](_0x46bdec(0x20a)+a32_0x518bcf['red'](_0x46bdec(0x1f3))),console[_0x46bdec(0x20c)](_0x46bdec(0x21f)+_0x39c721[_0x46bdec(0x1dd)]),Object[_0x46bdec(0x1d3)][_0x46bdec(0x1fd)]['call'](_0x21b87a['projectConfig'],_0x46bdec(0x1ff))&&console[_0x46bdec(0x20c)](_0x46bdec(0x1fe)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x46bdec(0x1d3)][_0x46bdec(0x1fd)]['call'](_0x21b87a['globalConfig'],_0x46bdec(0x1ff))&&console[_0x46bdec(0x20c)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20init'));console[_0x46bdec(0x20c)](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)](_0x46bdec(0x1d6))),console['log'](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e))),console[_0x46bdec(0x20c)](_0x46bdec(0x217)+(_0x7511ea['appCode']||a32_0x518bcf['red'](_0x46bdec(0x215)))),console['log'](_0x46bdec(0x1ed)+(_0x2a7ed1??a32_0x518bcf[_0x46bdec(0x205)](_0x46bdec(0x1be)))),console[_0x46bdec(0x20c)](_0x46bdec(0x211)+_0x7511ea[_0x46bdec(0x1d1)]),console[_0x46bdec(0x20c)](_0x46bdec(0x1fc)+(_0x7511ea[_0x46bdec(0x20f)]||a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1f2)))),console[_0x46bdec(0x20c)](_0x46bdec(0x1db)+(_0x7511ea[_0x46bdec(0x1d0)]||a32_0x518bcf[_0x46bdec(0x213)]('(none)'))),console[_0x46bdec(0x20c)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x7511ea[_0x46bdec(0x1d2)]||a32_0x518bcf[_0x46bdec(0x213)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x46bdec(0x1d2)]+')'))),console[_0x46bdec(0x20c)](_0x46bdec(0x1ce)+(_0x7511ea[_0x46bdec(0x223)]??a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1dc)))),console[_0x46bdec(0x20c)](_0x46bdec(0x1c8)+_0x7511ea[_0x46bdec(0x1ea)]),console[_0x46bdec(0x20c)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7511ea[_0x46bdec(0x1da)]),console[_0x46bdec(0x20c)](_0x46bdec(0x203)+AUTH_MODE['ClientAk']),console[_0x46bdec(0x20c)](_0x46bdec(0x1e1)+(_0x7511ea['accessKey']?a32_0x518bcf[_0x46bdec(0x1c1)](_0x46bdec(0x1e2)+_0x7511ea['accessKey']['length']+')'):a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1f2)))),console[_0x46bdec(0x20c)](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)]('\x20\x20API\x20Endpoints')),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e)));_0x2dd692||_0x39c721?console[_0x46bdec(0x20c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x518bcf[_0x46bdec(0x205)](_0x46bdec(0x1d9))):(console[_0x46bdec(0x20c)](_0x46bdec(0x1c6)+getApiDomain()),console['log'](_0x46bdec(0x1fb)+getUserDomain()),console[_0x46bdec(0x20c)](_0x46bdec(0x228)+getRuntimeDomain()),console[_0x46bdec(0x20c)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x46bdec(0x20c)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x46bdec(0x1b9))));console['log'](),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x224)]('\x20\x20Service\x20Tree')),console['log'](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e)));const _0x5f0c4f=inspectServiceRegistry();console['log'](_0x46bdec(0x1b8)+_0x5f0c4f[_0x46bdec(0x216)]),console[_0x46bdec(0x20c)](_0x46bdec(0x20a)+formatServiceRegistryStatus(_0x5f0c4f)),console[_0x46bdec(0x20c)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f0c4f[_0x46bdec(0x20d)]),console[_0x46bdec(0x20c)](_0x46bdec(0x218)+_0x5f0c4f[_0x46bdec(0x20e)]);for(const _0x334e3d of _0x5f0c4f[_0x46bdec(0x1e3)]){console[_0x46bdec(0x20c)]('\x20\x20'+(_0x334e3d[_0x46bdec(0x1d8)]+':')['padEnd'](0x11)+'\x20'+(_0x334e3d[_0x46bdec(0x1cb)]||a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1de)))+'\x20('+_0x334e3d[_0x46bdec(0x20e)]+_0x46bdec(0x1b5)),console['log']('\x20\x20'+''[_0x46bdec(0x1c4)](0x11)+_0x46bdec(0x20b)+_0x334e3d[_0x46bdec(0x1e0)][_0x46bdec(0x1fa)]);}return console[_0x46bdec(0x20c)](),console['log'](a32_0x518bcf['bold']('\x20\x20Auth')),console[_0x46bdec(0x20c)](a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x202)[_0x46bdec(0x227)](0x1e))),console['log'](_0x46bdec(0x1ec)+a32_0x518bcf[_0x46bdec(0x1c1)](AUTH_MODE[_0x46bdec(0x1f6)]+_0x46bdec(0x1c7))),console[_0x46bdec(0x20c)](_0x46bdec(0x207)+a32_0x518bcf[_0x46bdec(0x213)](_0x46bdec(0x1c9))),console[_0x46bdec(0x20c)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1e26a1){const _0x2fa7f8=a32_0x3159;if(_0x1e26a1['status']==='ok')return a32_0x518bcf[_0x2fa7f8(0x1c1)]('✓\x20Loaded');if(_0x1e26a1[_0x2fa7f8(0x214)]==='missing')return a32_0x518bcf[_0x2fa7f8(0x213)](_0x2fa7f8(0x1c2));if(_0x1e26a1[_0x2fa7f8(0x214)]===_0x2fa7f8(0x212))return a32_0x518bcf[_0x2fa7f8(0x201)]('⚠\x20Empty');return a32_0x518bcf[_0x2fa7f8(0x205)]('✗\x20Invalid'+(_0x1e26a1['message']?':\x20'+_0x1e26a1[_0x2fa7f8(0x1dd)]:''));}function a32_0x5814(){const _0x459899=['includes','(invalid)','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','green','(not\x20found)','3bEvYSo','padEnd','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','Project','name','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','9793UUqeDI','currentApp','locale','format','prototype','\x20\x20Config\x20JSON','\x20+\x20','\x20\x20Merged\x20Config','5459469fVpTNp','serviceCode','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','verbose','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(default)','message','(unnamed)','filter','source','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','services','39550eBekST','775574YJgjDA','Global','call','2529wlGxck','✓\x20Valid\x20JSON','riskLevel','2200808vrClTM','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Skill\x20Version:\x20\x20\x20','current','(no\x20file)','(none)','✗\x20Invalid','globalConfig','(missing)','ClientAk','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','routing','path','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20','region','⚠\x20Empty\x20(treated\x20as\x20{})','yellow','\x20\x20─','\x20\x20auth\x20(effective):\x20','ignored\x20in\x20','red','join','\x20\x20Session\x20check:\x20\x20\x20','missing','42588931lgIKpl','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','log','serviceCount','commandCount','defaultApp','read','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','empty','gray','status','(not\x20set)','registryPath','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','10671150sTRsGd','project','10DHJeqw','state','\x20\x20Package\x20Version:\x20','\x20config\x20delete\x20inherit','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','inherit','1920tNRMgB','pageSize','bold','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','raw','\x20\x20Repair\x20global:\x20\x20\x20','\x20commands)','repairCommand','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','not\x20configured','\x20\x20Legacy\x20inherit:\x20\x20\x20','reason','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a32_0x5814=function(){return _0x459899;};return a32_0x5814();}export const doctorDefinition={'service':a32_0x25225f(0x1f8),'command':'check','description':a32_0x25225f(0x1c5),'risk':a32_0x25225f(0x210),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x252cc1=a32_0x47cc;(function(_0x153039,_0x404bff){const _0x1002b2=a32_0x47cc,_0xe8fc50=_0x153039();while(!![]){try{const _0x363128=parseInt(_0x1002b2(0x1c8))/0x1+parseInt(_0x1002b2(0x1a5))/0x2+-parseInt(_0x1002b2(0x180))/0x3+-parseInt(_0x1002b2(0x16c))/0x4*(parseInt(_0x1002b2(0x198))/0x5)+parseInt(_0x1002b2(0x1a7))/0x6+-parseInt(_0x1002b2(0x173))/0x7+-parseInt(_0x1002b2(0x177))/0x8*(-parseInt(_0x1002b2(0x19e))/0x9);if(_0x363128===_0x404bff)break;else _0xe8fc50['push'](_0xe8fc50['shift']());}catch(_0x3238e7){_0xe8fc50['push'](_0xe8fc50['shift']());}}}(a32_0x2958,0x36d64));import a32_0xafc843 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a32_0x47cc(_0x5b2f2d,_0xf4f62a){_0x5b2f2d=_0x5b2f2d-0x160;const _0x2958b6=a32_0x2958();let _0x47cc02=_0x2958b6[_0x5b2f2d];return _0x47cc02;}async function execute(_0x2b6424){const _0x81763e=a32_0x47cc,_0x1e6272=getCliVersion(),_0x1ee557=buildConfigFromFlags({});let _0x2b5351,_0x1f9773;try{_0x2b5351=normalizeLovrabetRegion(_0x1ee557[_0x81763e(0x1d2)][_0x81763e(0x1ab)]);}catch(_0x50fcb2){_0x1f9773=_0x50fcb2 instanceof Error?_0x50fcb2:new Error(String(_0x50fcb2));}let _0x17bf5e;if(!_0x1f9773)try{await initGlobalEnvironment(_0x1ee557);}catch(_0x78fece){_0x17bf5e=_0x78fece instanceof Error?_0x78fece:new Error(String(_0x78fece));}console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)](CLI_BIN_NAME+_0x81763e(0x184))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('─'[_0x81763e(0x17a)](0x32))),console[_0x81763e(0x1a6)](_0x81763e(0x1bf)+_0x1e6272),console[_0x81763e(0x1a6)](_0x81763e(0x1d1)+process[_0x81763e(0x19f)]),console[_0x81763e(0x1a6)](_0x81763e(0x1b1)+process[_0x81763e(0x19a)]+'\x20'+process[_0x81763e(0x170)]);const _0x5e482e=inspectBuiltinSkill();console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x190))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console['log'](_0x81763e(0x1ae)+(_0x5e482e[_0x81763e(0x1a0)]===_0x81763e(0x17c)?a32_0xafc843[_0x81763e(0x1c4)](_0x81763e(0x1cc)):a32_0xafc843[_0x81763e(0x16d)]('✗\x20'+_0x5e482e[_0x81763e(0x1a0)]))),console[_0x81763e(0x1a6)]('\x20\x20Package\x20Version:\x20'+_0x5e482e[_0x81763e(0x160)]),console[_0x81763e(0x1a6)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x5e482e['skillVersion']||a32_0xafc843[_0x81763e(0x1c5)]('(missing)'))),console[_0x81763e(0x1a6)](_0x81763e(0x164)+(_0x5e482e[_0x81763e(0x166)]||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6))));_0x5e482e[_0x81763e(0x1a0)]!==_0x81763e(0x17c)&&console['log'](_0x81763e(0x19d)+_0x5e482e[_0x81763e(0x1d0)]);_0x5e482e[_0x81763e(0x18e)]&&console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x5e482e[_0x81763e(0x18e)]);console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1c1))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e)));const _0x240aa7=getGlobalConfigPath(),_0x6e1aed=getProjectConfigPath();console[_0x81763e(0x1a6)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x240aa7||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console[_0x81763e(0x1a6)](_0x81763e(0x16b)+(_0x6e1aed||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console['log'](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Config\x20JSON')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));const _0x17777a=(_0x2f1614,_0x337e63)=>{const _0x5bf94a=_0x81763e;if(!_0x337e63){console['log']('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c5)](_0x5bf94a(0x18b)));return;}const _0x1a970d=inspectCliConfigJsonFile(_0x337e63);if(_0x1a970d[_0x5bf94a(0x1b3)]==='ok')console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c4)](_0x5bf94a(0x169)));else{if(_0x1a970d[_0x5bf94a(0x1b3)]===_0x5bf94a(0x1c0))console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1a3)](_0x5bf94a(0x1bb)));else _0x1a970d['status']===_0x5bf94a(0x168)?console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843['gray'](_0x5bf94a(0x1b8))):(console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x5bf94a(0x186))),console[_0x5bf94a(0x1a6)]('\x20\x20'+''[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x1a970d[_0x5bf94a(0x174)])));}};_0x17777a(_0x81763e(0x193),_0x240aa7),_0x17777a(_0x81763e(0x1b6),_0x6e1aed);const _0x2596ff=loadRawConfigLayers(),_0x573e42=[Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'inherit')?'global':null,Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x161)],_0x81763e(0x172))?_0x81763e(0x188):null][_0x81763e(0x1d8)](Boolean);_0x573e42[_0x81763e(0x17b)]>0x0&&(console[_0x81763e(0x1a6)](_0x81763e(0x18c)+a32_0xafc843['yellow'](_0x81763e(0x185)+_0x573e42[_0x81763e(0x1bc)]('\x20+\x20')+_0x81763e(0x179))),_0x573e42[_0x81763e(0x189)](_0x81763e(0x188))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a1)+CLI_BIN_NAME+_0x81763e(0x1b5)),_0x573e42[_0x81763e(0x189)](_0x81763e(0x171))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a2)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x17bf5e&&(console['log'](),console['log'](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ac))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x17bf5e['message']),Object[_0x81763e(0x16a)]['hasOwnProperty']['call'](_0x2596ff[_0x81763e(0x161)],'routing')&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'routing')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x81763e(0x194)));_0x1f9773&&(console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d5))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x1f9773[_0x81763e(0x174)]),Object[_0x81763e(0x16a)]['hasOwnProperty'][_0x81763e(0x1d4)](_0x2596ff['projectConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff['globalConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x19c)+CLI_BIN_NAME+_0x81763e(0x1b0)));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d7))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x1d3)+(_0x1ee557[_0x81763e(0x1ce)]||a32_0xafc843['red'](_0x81763e(0x195)))),console['log'](_0x81763e(0x1a9)+(_0x2b5351??a32_0xafc843[_0x81763e(0x16d)]('(invalid)'))),console[_0x81763e(0x1a6)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x1cb)]),console[_0x81763e(0x1a6)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1ee557['defaultApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](_0x81763e(0x199)+(_0x1ee557['currentApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1ee557[_0x81763e(0x1cd)]||a32_0xafc843['gray'](_0x81763e(0x1ca)+DEFAULT_CONFIG_VALUES[_0x81763e(0x1cd)]+')'))),console[_0x81763e(0x1a6)](_0x81763e(0x187)+(_0x1ee557[_0x81763e(0x1c6)]??a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1cf)))),console[_0x81763e(0x1a6)](_0x81763e(0x1c2)+_0x1ee557[_0x81763e(0x17f)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x182)]),console['log'](_0x81763e(0x1b2)+AUTH_MODE[_0x81763e(0x18a)]),console['log'](_0x81763e(0x191)+(_0x1ee557[_0x81763e(0x163)]?a32_0xafc843[_0x81763e(0x1c4)]('(set,\x20length='+_0x1ee557['accessKey'][_0x81763e(0x17b)]+')'):a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ba))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));_0x17bf5e||_0x1f9773?console['log'](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x81763e(0x1a6)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1c9)+getUserDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1b7)+getRuntimeDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x196)+getSkillDomain()),console[_0x81763e(0x1a6)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x81763e(0x183))));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843['bold']('\x20\x20Service\x20Tree')),console['log'](a32_0xafc843['gray']('\x20\x20─'['repeat'](0x1e)));const _0x2853a6=inspectServiceRegistry();console[_0x81763e(0x1a6)](_0x81763e(0x1c3)+_0x2853a6[_0x81763e(0x17e)]),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x2853a6)),console[_0x81763e(0x1a6)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6['serviceCount']),console[_0x81763e(0x1a6)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6[_0x81763e(0x165)]);for(const _0x30996f of _0x2853a6[_0x81763e(0x178)]){console[_0x81763e(0x1a6)]('\x20\x20'+(_0x30996f[_0x81763e(0x1b4)]+':')['padEnd'](0x11)+'\x20'+(_0x30996f[_0x81763e(0x175)]||a32_0xafc843[_0x81763e(0x1c5)]('(unnamed)'))+'\x20('+_0x30996f[_0x81763e(0x165)]+'\x20commands)'),console[_0x81763e(0x1a6)]('\x20\x20'+''[_0x81763e(0x16e)](0x11)+_0x81763e(0x167)+_0x30996f[_0x81763e(0x1a8)][_0x81763e(0x17d)]);}return console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Auth')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x162)+a32_0xafc843[_0x81763e(0x1c4)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x81763e(0x1a6)](_0x81763e(0x1c7)+a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1b9))),console[_0x81763e(0x1a6)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x40ab44){const _0x23c0de=a32_0x47cc;if(_0x40ab44[_0x23c0de(0x1b3)]==='ok')return a32_0xafc843[_0x23c0de(0x1c4)]('✓\x20Loaded');if(_0x40ab44['status']==='missing')return a32_0xafc843[_0x23c0de(0x1c5)](_0x23c0de(0x1d6));if(_0x40ab44[_0x23c0de(0x1b3)]===_0x23c0de(0x1c0))return a32_0xafc843[_0x23c0de(0x1a3)](_0x23c0de(0x1bd));return a32_0xafc843[_0x23c0de(0x16d)](_0x23c0de(0x1aa)+(_0x40ab44[_0x23c0de(0x174)]?':\x20'+_0x40ab44['message']:''));}function a32_0x2958(){const _0x567d88=['\x20\x20Session\x20check:\x20\x20\x20','315460sIlWRx','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default:\x20','locale','✓\x20current','format','appCode','(default)','repairCommand','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','\x20\x20Country/Region\x20Configuration','(not\x20found)','\x20\x20Merged\x20Config','filter','packageVersion','projectConfig','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Installed\x20Path:\x20\x20','commandCount','installedPath','\x20Imported\x20from:\x20','missing','✓\x20Valid\x20JSON','prototype','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','716BwKiYJ','red','padEnd','read','arch','global','inherit','144865DPUMbp','message','name','\x20\x20─','2184792sbCQXH','services','\x20config','repeat','length','current','path','registryPath','riskLevel','1285944vXcxHd','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','not\x20configured','\x20doctor','ignored\x20in\x20','✗\x20Invalid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','project','includes','ClientAk','(no\x20file)','\x20\x20Legacy\x20inherit:\x20\x20\x20','hasOwnProperty','reason','check','\x20\x20Built-in\x20Skill','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','globalConfig','Global','\x20config\x20delete\x20routing\x20--global','(not\x20set)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9745wJeOau','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','doctor','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9LewYoH','version','state','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','yellow','\x20\x20Repair\x20project:\x20\x20','264448zVgCSo','log','1812258OjCGxB','source','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','region','\x20\x20Routing\x20Configuration','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20config\x20init','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','status','serviceCode','\x20config\x20delete\x20inherit','Project','\x20\x20runtimeDomain:\x20\x20\x20','(missing)','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20API\x20Endpoints','⚠\x20Empty\x20(treated\x20as\x20{})','join','⚠\x20Empty','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','green','gray','pageSize'];a32_0x2958=function(){return _0x567d88;};return a32_0x2958();}export const doctorDefinition={'service':a32_0x252cc1(0x19b),'command':a32_0x252cc1(0x18f),'description':a32_0x252cc1(0x1ad),'risk':a32_0x252cc1(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x11e2db=a33_0x421c;function a33_0x4d0e(){const _0x51132d=['4181751KpXjLz','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Path\x20to\x20the\x20local\x20file\x20to\x20upload','read','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','file','1140208oxolvB','bool','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','File','appCode','7943296wHZhiH','9lnYLhu','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','2515814GgCWiE','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath','string','upload','filepath','str','boolean','path','\x20to\x20runtime\x20app\x20','description','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','long-term','validation','trim','14215SEmqFx','Uploaded\x20file:\x20','1116bwNWXj','307814NToQKt','Preview:\x20upload\x20','query-url','POST','body','8409078jBMWOV','download','/client/uploadFile'];a33_0x4d0e=function(){return _0x51132d;};return a33_0x4d0e();}(function(_0x942e70,_0x2309da){const _0x3934d0=a33_0x421c,_0x5efe6e=_0x942e70();while(!![]){try{const _0x50fa56=parseInt(_0x3934d0(0x1e3))/0x1*(parseInt(_0x3934d0(0x1f7))/0x2)+-parseInt(_0x3934d0(0x1ff))/0x3+-parseInt(_0x3934d0(0x205))/0x4+-parseInt(_0x3934d0(0x1f4))/0x5*(parseInt(_0x3934d0(0x1f6))/0x6)+-parseInt(_0x3934d0(0x1e5))/0x7+parseInt(_0x3934d0(0x1e2))/0x8+parseInt(_0x3934d0(0x1fc))/0x9;if(_0x50fa56===_0x2309da)break;else _0x5efe6e['push'](_0x5efe6e['shift']());}catch(_0x41b9bc){_0x5efe6e['push'](_0x5efe6e['shift']());}}}(a33_0x4d0e,0xb5f20));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x421c(_0x2d400b,_0x25ed94){_0x2d400b=_0x2d400b-0x1e0;const _0x4d0e4a=a33_0x4d0e();let _0x421c10=_0x4d0e4a[_0x2d400b];return _0x421c10;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x11e2db(0x204),'type':a33_0x11e2db(0x1e8),'required':!![],'description':a33_0x11e2db(0x201)},FILEPATH_FLAG={'name':a33_0x11e2db(0x1ea),'type':a33_0x11e2db(0x1e8),'required':!![],'description':a33_0x11e2db(0x207)},DOWNLOAD_FLAG={'name':a33_0x11e2db(0x1fd),'type':'boolean','description':a33_0x11e2db(0x200)},LONG_TERM_FLAG={'name':a33_0x11e2db(0x1f1),'type':a33_0x11e2db(0x1ec),'description':a33_0x11e2db(0x1f0)};function requireFilePath(_0x117bef){const _0x407868=a33_0x11e2db,_0x342b53=_0x117bef[_0x407868(0x1f3)]();if(!_0x342b53)throw CliErrors[_0x407868(0x1f2)]('filePath\x20is\x20required.');return _0x342b53;}const fileUpload={'service':'file','command':a33_0x11e2db(0x1e9),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x11e2db(0x202),'flags':[FILE_FLAG],async 'dryRun'(_0xf2b822){const _0x2ed98b=a33_0x11e2db,_0x2fc513=requireRuntimeUploadFile(_0xf2b822[_0x2ed98b(0x1eb)](_0x2ed98b(0x204)),'File');return dryRun(_0x2ed98b(0x1fa),_0x2ed98b(0x1fe))[_0x2ed98b(0x1fb)]({'appCode':_0xf2b822['appCode'],'multipart':{'file':_0x2fc513}})[_0x2ed98b(0x1ef)](_0x2ed98b(0x1f8)+_0x2fc513[_0x2ed98b(0x1ed)]+_0x2ed98b(0x1ee)+_0xf2b822[_0x2ed98b(0x1e1)])['build']();},async 'execute'(_0x15e18a){const _0x3971c6=a33_0x11e2db,_0x24561e=requireRuntimeUploadFile(_0x15e18a['str']('file'),_0x3971c6(0x1e0)),_0x4b2f0c=await uploadRuntimeFile(_0x15e18a[_0x3971c6(0x1e1)],_0x24561e[_0x3971c6(0x1ed)]);return{'ok':!![],'data':_0x4b2f0c,'message':_0x4b2f0c[_0x3971c6(0x1e7)]?_0x3971c6(0x1f5)+_0x4b2f0c[_0x3971c6(0x1e7)]+_0x3971c6(0x1e6):_0x3971c6(0x1e4)};}},fileQueryUrl={'service':a33_0x11e2db(0x204),'command':a33_0x11e2db(0x1f9),'description':a33_0x11e2db(0x203),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x42d488){const _0x115998=a33_0x11e2db,_0x4eb7be=requireFilePath(_0x42d488[_0x115998(0x1eb)](_0x115998(0x1ea))),_0x5e3231=await queryRuntimeFileUrl(_0x4eb7be,{'download':_0x42d488[_0x115998(0x206)]('download'),'longTerm':_0x42d488['bool'](_0x115998(0x1f1))});return{'ok':!![],'data':_0x5e3231};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a33_0x1cf5bc=a33_0x3265;function a33_0x3265(_0x2cbe4d,_0x47e4a3){_0x2cbe4d=_0x2cbe4d-0x1be;const _0x5db669=a33_0x5db6();let _0x326519=_0x5db669[_0x2cbe4d];return _0x326519;}(function(_0xd9bcdf,_0x3276ab){const _0x59e466=a33_0x3265,_0x23a6bb=_0xd9bcdf();while(!![]){try{const _0x3e22d9=-parseInt(_0x59e466(0x1c2))/0x1*(parseInt(_0x59e466(0x1cc))/0x2)+parseInt(_0x59e466(0x1be))/0x3*(parseInt(_0x59e466(0x1da))/0x4)+-parseInt(_0x59e466(0x1c8))/0x5+-parseInt(_0x59e466(0x1cb))/0x6*(parseInt(_0x59e466(0x1ce))/0x7)+-parseInt(_0x59e466(0x1d1))/0x8*(-parseInt(_0x59e466(0x1e1))/0x9)+-parseInt(_0x59e466(0x1dd))/0xa+parseInt(_0x59e466(0x1d6))/0xb*(-parseInt(_0x59e466(0x1e2))/0xc);if(_0x3e22d9===_0x3276ab)break;else _0x23a6bb['push'](_0x23a6bb['shift']());}catch(_0x61cf6e){_0x23a6bb['push'](_0x23a6bb['shift']());}}}(a33_0x5db6,0x9af20));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x5db6(){const _0x2f6e54=['8hcgnvA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','query-url','appCode','string','11YAFRCH','path','upload','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2820CCPaIo','POST','filePath','666740UTlsPy','\x20to\x20runtime\x20app\x20','filePath\x20is\x20required.','long-term','6883506dcTRGV','2661144WhAtKg','trim','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','download','4809PIGAxR','build','/client/uploadFile','validation','145FEuiQT','File','read','file','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1582155JeTxKt','Uploaded\x20file:\x20','description','834uNUSNe','3118BkIwtG','filepath','21623YqzVsT','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','boolean'];a33_0x5db6=function(){return _0x2f6e54;};return a33_0x5db6();}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1cf5bc(0x1c5),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x1cf5bc(0x1cd),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':a33_0x1cf5bc(0x1d2)},DOWNLOAD_FLAG={'name':a33_0x1cf5bc(0x1e5),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1e4)},LONG_TERM_FLAG={'name':a33_0x1cf5bc(0x1e0),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1cf)};function requireFilePath(_0x35ab47){const _0x592821=a33_0x1cf5bc,_0x55144b=_0x35ab47[_0x592821(0x1e3)]();if(!_0x55144b)throw CliErrors[_0x592821(0x1c1)](_0x592821(0x1df));return _0x55144b;}const fileUpload={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d8),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x1cf5bc(0x1c4),'flags':[FILE_FLAG],async 'dryRun'(_0x562ea9){const _0x1862a7=a33_0x1cf5bc,_0x4abfb4=requireRuntimeUploadFile(_0x562ea9[_0x1862a7(0x1c6)](_0x1862a7(0x1c5)),_0x1862a7(0x1c3));return dryRun(_0x1862a7(0x1db),_0x1862a7(0x1c0))['body']({'appCode':_0x562ea9['appCode'],'multipart':{'file':_0x4abfb4}})[_0x1862a7(0x1ca)]('Preview:\x20upload\x20'+_0x4abfb4[_0x1862a7(0x1d7)]+_0x1862a7(0x1de)+_0x562ea9[_0x1862a7(0x1d4)])[_0x1862a7(0x1bf)]();},async 'execute'(_0xfbbe5e){const _0x5b63fe=a33_0x1cf5bc,_0x5b59ff=requireRuntimeUploadFile(_0xfbbe5e['str'](_0x5b63fe(0x1c5)),'File'),_0x176867=await uploadRuntimeFile(_0xfbbe5e['appCode'],_0x5b59ff[_0x5b63fe(0x1d7)]);return{'ok':!![],'data':_0x176867,'message':_0x176867[_0x5b63fe(0x1dc)]?_0x5b63fe(0x1c9)+_0x176867[_0x5b63fe(0x1dc)]+_0x5b63fe(0x1c7):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d3),'description':a33_0x1cf5bc(0x1d9),'risk':a33_0x1cf5bc(0x1c4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x2d56a4){const _0x44f916=a33_0x1cf5bc,_0x209ebc=requireFilePath(_0x2d56a4[_0x44f916(0x1c6)](_0x44f916(0x1cd))),_0x1e68ee=await queryRuntimeFileUrl(_0x209ebc,{'download':_0x2d56a4['bool'](_0x44f916(0x1e5)),'longTerm':_0x2d56a4['bool']('long-term')});return{'ok':!![],'data':_0x1e68ee};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x3a7b92=a34_0x28c4;(function(_0x12a988,_0x929f73){const _0x5ab9c1=a34_0x28c4,_0x48ab39=_0x12a988();while(!![]){try{const _0x4cc359=-parseInt(_0x5ab9c1(0x14a))/0x1+parseInt(_0x5ab9c1(0x13c))/0x2+parseInt(_0x5ab9c1(0x124))/0x3*(-parseInt(_0x5ab9c1(0x12c))/0x4)+-parseInt(_0x5ab9c1(0x128))/0x5+parseInt(_0x5ab9c1(0x122))/0x6*(-parseInt(_0x5ab9c1(0x145))/0x7)+-parseInt(_0x5ab9c1(0x133))/0x8*(-parseInt(_0x5ab9c1(0x12e))/0x9)+-parseInt(_0x5ab9c1(0x126))/0xa*(-parseInt(_0x5ab9c1(0x138))/0xb);if(_0x4cc359===_0x929f73)break;else _0x48ab39['push'](_0x48ab39['shift']());}catch(_0x458380){_0x48ab39['push'](_0x48ab39['shift']());}}}(a34_0x22de,0x31083));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a34_0x22de(){const _0x46862a=['parse','riskLevel','236836RFMuAA','Override\x20imported\x20default\x20env','Invalid\x20env\x20\x22','boolean','yes','201468oPKKHs','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`.','3ESIheT','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','10RcbxDq','Source\x20file\x20not\x20found:\x20','479610IvZsdg','\x20\x20appcode:\x20','\x20\x20config:\x20\x20','project','785080nhFyiq','\x20\x20default:\x20','765lXIhsH','appcode','validation','Failed\x20to\x20parse\x20source\x20file:\x20','log','16696ObUuJo','cwd','apps','utf8','app','6413198aexdKP','global','string','entries','408992kwAwGx','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','newConfigFileName','join','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','object','env','Override\x20imported\x20default\x20appcode','49QGobYW','defaultApp','\x22.\x20Allowed:\x20'];a34_0x22de=function(){return _0x46862a;};return a34_0x22de();}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':'file','type':'string','description':a34_0x3a7b92(0x125),'required':!![]},{'name':a34_0x3a7b92(0x12f),'type':a34_0x3a7b92(0x13a),'description':a34_0x3a7b92(0x144)},{'name':a34_0x3a7b92(0x143),'type':a34_0x3a7b92(0x13a),'description':a34_0x3a7b92(0x11e),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x3a7b92(0x139),'type':a34_0x3a7b92(0x120),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a34_0x3a7b92(0x13f)]+')\x20instead\x20of\x20project','default':![]},{'name':a34_0x3a7b92(0x121),'type':a34_0x3a7b92(0x120),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runAppImport(_0x11e7e4){const _0x36849b=a34_0x3a7b92,_0x5d2a5c=_0x11e7e4[_0x36849b(0x139)]?_0x36849b(0x139):_0x36849b(0x12b),_0x4abd40=resolveWriteConfigPath(_0x5d2a5c);await runFromImport(_0x11e7e4,_0x4abd40);}async function runFromImport(_0x4fa781,_0x18919c){const _0x46e882=a34_0x3a7b92,_0x34d83b=resolveFilePath(_0x4fa781['file']);if(!existsSync(_0x34d83b))throw CliErrors[_0x46e882(0x130)](_0x46e882(0x127)+_0x34d83b);const _0x37f3f2=readSourceFile(_0x34d83b),_0x324e6f=convertToRuntimeConfig(_0x37f3f2);_0x4fa781[_0x46e882(0x12f)]&&(_0x324e6f[_0x46e882(0x12f)]=String(_0x4fa781[_0x46e882(0x12f)]));_0x4fa781[_0x46e882(0x143)]&&(_0x324e6f[_0x46e882(0x143)]=resolveImportEnv(_0x4fa781));if(!_0x324e6f[_0x46e882(0x12f)])throw CliErrors[_0x46e882(0x130)](_0x46e882(0x13e),_0x46e882(0x123));await writeImportConfig(_0x18919c,_0x324e6f,_0x4fa781),console['log'](_0x46e882(0x13d)+_0x34d83b),console['log'](_0x46e882(0x12a)+_0x18919c),console[_0x46e882(0x132)](_0x46e882(0x129)+_0x324e6f[_0x46e882(0x12f)]);if(_0x324e6f[_0x46e882(0x146)])console[_0x46e882(0x132)](_0x46e882(0x12d)+_0x324e6f[_0x46e882(0x146)]);}function convertToRuntimeConfig(_0x28a13a){const _0x107553=a34_0x3a7b92;if(_0x28a13a[_0x107553(0x135)]&&typeof _0x28a13a['apps']===_0x107553(0x142))throw CliErrors[_0x107553(0x130)](_0x107553(0x141),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x56744c={};for(const _0x4d4bc4 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x28a13a[_0x4d4bc4]!==undefined&&(_0x56744c[_0x4d4bc4]=_0x28a13a[_0x4d4bc4]);}return!_0x56744c['riskLevel']&&(_0x56744c[_0x107553(0x149)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x56744c;}function a34_0x28c4(_0x435570,_0x2a7812){_0x435570=_0x435570-0x11e;const _0x22de9d=a34_0x22de();let _0x28c44f=_0x22de9d[_0x435570];return _0x28c44f;}async function writeImportConfig(_0x40e63f,_0x5c7d3c,_0x46955b){const _0x2fa0dd=a34_0x3a7b92;let _0x3344ea={};existsSync(_0x40e63f)&&!_0x46955b['yes']&&(_0x3344ea=readConfigFile(_0x40e63f));for(const [_0x1c3fdd,_0x5056a6]of Object[_0x2fa0dd(0x13b)](_0x5c7d3c)){_0x5056a6!==undefined&&(_0x3344ea[_0x1c3fdd]=_0x5056a6);}if(_0x3344ea[_0x2fa0dd(0x137)])delete _0x3344ea[_0x2fa0dd(0x137)];writeConfigFile(_0x40e63f,_0x3344ea);}function resolveFilePath(_0x36b411){const _0x2e9926=a34_0x3a7b92;return isAbsolute(_0x36b411)?_0x36b411:resolve(process[_0x2e9926(0x134)](),_0x36b411);}function readSourceFile(_0x5dc5b2){const _0x5340e0=a34_0x3a7b92;try{const _0xb9a60c=readFileSync(_0x5dc5b2,{'encoding':_0x5340e0(0x136)});return JSON[_0x5340e0(0x148)](_0xb9a60c);}catch(_0x535145){throw CliErrors[_0x5340e0(0x130)](_0x5340e0(0x131)+_0x535145['message']);}}function resolveImportEnv(_0x33230d){const _0xa26971=a34_0x3a7b92,_0x1f1de0=_0x33230d[_0xa26971(0x143)];if(_0x1f1de0===undefined||_0x1f1de0==='')return DEFAULT_CONFIG_VALUES[_0xa26971(0x143)];if(!RUNTIME_ENV_VALUES['includes'](_0x1f1de0))throw CliErrors['validation'](_0xa26971(0x11f)+_0x1f1de0+_0xa26971(0x147)+RUNTIME_ENV_VALUES[_0xa26971(0x140)](',\x20'));return _0x1f1de0;}
1
+ function a34_0x33e5(){const _0x153876=['\x20\x20default:\x20','app','defaultApp','env','yes','cwd','Source\x20file\x20not\x20found:\x20','4364uRupcO','\x22.\x20Allowed:\x20','object','Failed\x20to\x20parse\x20source\x20file:\x20','1738940wIXIiG','58BgrfII','string','join','\x20\x20config:\x20\x20','newConfigFileName','2367xxNVRL','log','3368064ZtxXss','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','36quGwXS','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','734166PceflY','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','134465GrlWOl','file','Override\x20imported\x20default\x20appcode','boolean','utf8','project','6096bSRnZn','validation','global','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','\x20\x20appcode:\x20','parse','riskLevel','appcode','2469341KyXGtu','apps','message',')\x20instead\x20of\x20project','Override\x20imported\x20default\x20env','Imported\x20from\x20'];a34_0x33e5=function(){return _0x153876;};return a34_0x33e5();}const a34_0x49f4dd=a34_0x1622;(function(_0x40acca,_0x1b63b9){const _0x21bea2=a34_0x1622,_0x439b7a=_0x40acca();while(!![]){try{const _0x239fd8=parseInt(_0x21bea2(0x183))/0x1*(parseInt(_0x21bea2(0x17e))/0x2)+parseInt(_0x21bea2(0x161))/0x3+-parseInt(_0x21bea2(0x15f))/0x4*(parseInt(_0x21bea2(0x163))/0x5)+parseInt(_0x21bea2(0x15d))/0x6+-parseInt(_0x21bea2(0x171))/0x7+-parseInt(_0x21bea2(0x169))/0x8*(-parseInt(_0x21bea2(0x15b))/0x9)+-parseInt(_0x21bea2(0x182))/0xa;if(_0x239fd8===_0x1b63b9)break;else _0x439b7a['push'](_0x439b7a['shift']());}catch(_0x4f4ef5){_0x439b7a['push'](_0x439b7a['shift']());}}}(a34_0x33e5,0x58f2e));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x49f4dd(0x164),'type':'string','description':a34_0x49f4dd(0x160),'required':!![]},{'name':a34_0x49f4dd(0x170),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x165)},{'name':a34_0x49f4dd(0x17a),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x175),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49f4dd(0x16b),'type':a34_0x49f4dd(0x166),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a34_0x49f4dd(0x15a)]+a34_0x49f4dd(0x174),'default':![]},{'name':a34_0x49f4dd(0x17b),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];function a34_0x1622(_0x4cbeaf,_0x46666f){_0x4cbeaf=_0x4cbeaf-0x157;const _0x33e5e9=a34_0x33e5();let _0x162279=_0x33e5e9[_0x4cbeaf];return _0x162279;}export async function runAppImport(_0x52f506){const _0x58c465=a34_0x49f4dd,_0x7d1067=_0x52f506['global']?_0x58c465(0x16b):_0x58c465(0x168),_0x4a22c3=resolveWriteConfigPath(_0x7d1067);await runFromImport(_0x52f506,_0x4a22c3);}async function runFromImport(_0x567cbe,_0x2139b5){const _0x397406=a34_0x49f4dd,_0x29c21f=resolveFilePath(_0x567cbe[_0x397406(0x164)]);if(!existsSync(_0x29c21f))throw CliErrors['validation'](_0x397406(0x17d)+_0x29c21f);const _0x5db2d4=readSourceFile(_0x29c21f),_0x5c844c=convertToRuntimeConfig(_0x5db2d4);_0x567cbe['appcode']&&(_0x5c844c[_0x397406(0x170)]=String(_0x567cbe[_0x397406(0x170)]));_0x567cbe[_0x397406(0x17a)]&&(_0x5c844c['env']=resolveImportEnv(_0x567cbe));if(!_0x5c844c[_0x397406(0x170)])throw CliErrors['validation'](_0x397406(0x162),_0x397406(0x15e));await writeImportConfig(_0x2139b5,_0x5c844c,_0x567cbe),console[_0x397406(0x15c)](_0x397406(0x176)+_0x29c21f),console[_0x397406(0x15c)](_0x397406(0x159)+_0x2139b5),console[_0x397406(0x15c)](_0x397406(0x16d)+_0x5c844c[_0x397406(0x170)]);if(_0x5c844c[_0x397406(0x179)])console['log'](_0x397406(0x177)+_0x5c844c[_0x397406(0x179)]);}function convertToRuntimeConfig(_0x183350){const _0x1fda33=a34_0x49f4dd;if(_0x183350[_0x1fda33(0x172)]&&typeof _0x183350[_0x1fda33(0x172)]===_0x1fda33(0x180))throw CliErrors[_0x1fda33(0x16a)](_0x1fda33(0x16c),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x4e99ca={};for(const _0x3ed6ed of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x183350[_0x3ed6ed]!==undefined&&(_0x4e99ca[_0x3ed6ed]=_0x183350[_0x3ed6ed]);}return!_0x4e99ca[_0x1fda33(0x16f)]&&(_0x4e99ca[_0x1fda33(0x16f)]=DEFAULT_CONFIG_VALUES[_0x1fda33(0x16f)]),_0x4e99ca;}async function writeImportConfig(_0x4fb80a,_0x527659,_0x30e281){const _0x56e370=a34_0x49f4dd;let _0x48bee4={};existsSync(_0x4fb80a)&&!_0x30e281[_0x56e370(0x17b)]&&(_0x48bee4=readConfigFile(_0x4fb80a));for(const [_0x4ca9de,_0x3470f4]of Object['entries'](_0x527659)){_0x3470f4!==undefined&&(_0x48bee4[_0x4ca9de]=_0x3470f4);}if(_0x48bee4[_0x56e370(0x178)])delete _0x48bee4[_0x56e370(0x178)];writeConfigFile(_0x4fb80a,_0x48bee4);}function resolveFilePath(_0x462348){const _0x267896=a34_0x49f4dd;return isAbsolute(_0x462348)?_0x462348:resolve(process[_0x267896(0x17c)](),_0x462348);}function readSourceFile(_0x144ed6){const _0x4b5bd8=a34_0x49f4dd;try{const _0x35979f=readFileSync(_0x144ed6,{'encoding':_0x4b5bd8(0x167)});return JSON[_0x4b5bd8(0x16e)](_0x35979f);}catch(_0x2bc25f){throw CliErrors[_0x4b5bd8(0x16a)](_0x4b5bd8(0x181)+_0x2bc25f[_0x4b5bd8(0x173)]);}}function resolveImportEnv(_0x20ee77){const _0x4f7029=a34_0x49f4dd,_0x33a89b=_0x20ee77[_0x4f7029(0x17a)];if(_0x33a89b===undefined||_0x33a89b==='')return DEFAULT_CONFIG_VALUES[_0x4f7029(0x17a)];if(!RUNTIME_ENV_VALUES['includes'](_0x33a89b))throw CliErrors[_0x4f7029(0x16a)]('Invalid\x20env\x20\x22'+_0x33a89b+_0x4f7029(0x17f)+RUNTIME_ENV_VALUES[_0x4f7029(0x158)](',\x20'));return _0x33a89b;}
@@ -1 +1 @@
1
- const a35_0x44bc8c=a35_0x4d0e;(function(_0x59d81d,_0x4da766){const _0x4ad0a6=a35_0x4d0e,_0x115dcc=_0x59d81d();while(!![]){try{const _0x39985f=-parseInt(_0x4ad0a6(0x10d))/0x1+parseInt(_0x4ad0a6(0x137))/0x2*(parseInt(_0x4ad0a6(0x104))/0x3)+-parseInt(_0x4ad0a6(0x135))/0x4*(parseInt(_0x4ad0a6(0x114))/0x5)+-parseInt(_0x4ad0a6(0xf4))/0x6+parseInt(_0x4ad0a6(0x12a))/0x7*(parseInt(_0x4ad0a6(0x12d))/0x8)+parseInt(_0x4ad0a6(0x132))/0x9*(-parseInt(_0x4ad0a6(0x11a))/0xa)+parseInt(_0x4ad0a6(0xfd))/0xb;if(_0x39985f===_0x4da766)break;else _0x115dcc['push'](_0x115dcc['shift']());}catch(_0x1da90f){_0x115dcc['push'](_0x115dcc['shift']());}}}(a35_0x35a2,0xd00b1));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';function a35_0x4d0e(_0x4bba5b,_0x29e01f){_0x4bba5b=_0x4bba5b-0xf1;const _0x35a233=a35_0x35a2();let _0x4d0eb7=_0x35a233[_0x4bba5b];return _0x4d0eb7;}import{getKbServiceDomain}from'../../constant/domain.js';function a35_0x35a2(){const _0x2557b2=['Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','body','path','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','description','1559244EIaoEP','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','number','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','title','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','detail','Personal\x20knowledge-base\x20entry\x20ID','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','16870073pPjDQI','file','map','createTime','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','version','ragErrorMessage','9sajIje','string','topk','method','str','execute','scope','Override\x20the\x20existing\x20entry\x20title','File\x20is\x20not\x20a\x20regular\x20file:\x20','337909zeVnRO','update','appCode','query','write','Created\x20KB\x20entry\x20','File\x20not\x20found:\x20','4066625IGUTzF','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','read','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','validation','search','24010tGyBKL','verbose','signal','bool','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','utf8','num','parse','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','ragStatus','content','trim','kb-service-url','build','updateTime','flag','14ywjcCe','userId','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','3216784jkDfia','accessKey','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','length','Personal\x20knowledge-base\x20entry\x20title','2259XYUmJo','dryRun','isSafeInteger','8fHLAZc','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','894260WOXsnS','isFile','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file'];a35_0x35a2=function(){return _0x2557b2;};return a35_0x35a2();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x44bc8c(0xf8),'type':a35_0x44bc8c(0x105),'required':!![],'description':a35_0x44bc8c(0x131)},FILE_FLAG={'name':'file','type':a35_0x44bc8c(0x105),'required':!![],'description':a35_0x44bc8c(0x115)},QUERY_FLAG={'name':a35_0x44bc8c(0x110),'type':'string','required':!![],'description':a35_0x44bc8c(0x13a)},TOPK_FLAG={'name':a35_0x44bc8c(0x106),'type':a35_0x44bc8c(0xf6),'description':a35_0x44bc8c(0xf7)};function readKnowledgeFile(_0x437941){const _0x5cf548=a35_0x44bc8c;if(!_0x437941)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x437941))throw CliErrors[_0x5cf548(0x118)](_0x5cf548(0x113)+_0x437941);if(!statSync(_0x437941)[_0x5cf548(0x138)]())throw CliErrors[_0x5cf548(0x118)](_0x5cf548(0x10c)+_0x437941);return readFileSync(_0x437941,_0x5cf548(0x11f));}function summarizePersonalItem(_0x4d64c0){const _0x4b8552=a35_0x44bc8c;return{'id':_0x4d64c0['id'],'title':_0x4d64c0[_0x4b8552(0xf8)],'version':_0x4d64c0[_0x4b8552(0x102)],'ragStatus':_0x4d64c0[_0x4b8552(0x123)],'ragErrorMessage':_0x4d64c0[_0x4b8552(0x103)],'updateTime':_0x4d64c0[_0x4b8552(0x128)]};}function detailPersonalItem(_0x24bd37){const _0x3e12e9=a35_0x44bc8c;return{'id':_0x24bd37['id'],'appCode':_0x24bd37['appCode'],'scope':_0x24bd37[_0x3e12e9(0x10a)],'userId':_0x24bd37[_0x3e12e9(0x12b)],'title':_0x24bd37[_0x3e12e9(0xf8)],'content':_0x24bd37[_0x3e12e9(0x124)],'version':_0x24bd37['version'],'ragStatus':_0x24bd37[_0x3e12e9(0x123)],'ragErrorMessage':_0x24bd37[_0x3e12e9(0x103)],'createTime':_0x24bd37[_0x3e12e9(0x100)],'updateTime':_0x24bd37['updateTime']};}function readTopK(_0x41559e){const _0x4d0d22=a35_0x44bc8c,_0x5c312a=_0x41559e[_0x4d0d22(0x129)](_0x4d0d22(0x106));if(_0x5c312a===undefined||_0x5c312a===null||_0x5c312a==='')return undefined;const _0x341ea1=_0x41559e[_0x4d0d22(0x120)]('topk');if(!Number[_0x4d0d22(0x134)](_0x341ea1)||_0x341ea1<0x1||_0x341ea1>0x32)throw CliErrors[_0x4d0d22(0x118)](_0x4d0d22(0x101));return _0x341ea1;}const kbList={'service':'kb','command':'list','description':a35_0x44bc8c(0xf9),'risk':a35_0x44bc8c(0x116),'flags':[VERBOSE_FLAG],async 'execute'(_0xdbaff){const _0x2a4ccb=a35_0x44bc8c,_0x2401d3=await listPersonalKnowledgeBaseItems(_0xdbaff['appCode'],_0xdbaff['signal']);if(_0xdbaff[_0x2a4ccb(0x11d)](_0x2a4ccb(0x11b)))return{'ok':!![],'data':{'total':_0x2401d3[_0x2a4ccb(0x130)],'items':_0x2401d3}};return{'ok':!![],'data':{'total':_0x2401d3['length'],'items':_0x2401d3['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x44bc8c(0xfa),'description':a35_0x44bc8c(0x12f),'risk':'read','flags':[{...ID_FLAG,'type':a35_0x44bc8c(0x105),'description':a35_0x44bc8c(0xfb)}],async 'execute'(_0x15fd17){const _0x1a36ae=a35_0x44bc8c,_0x3e2f8a=await getPersonalKnowledgeBaseItem(_0x15fd17[_0x1a36ae(0x108)]('id'),_0x15fd17[_0x1a36ae(0x10f)],_0x15fd17[_0x1a36ae(0x11c)]);return{'ok':!![],'data':detailPersonalItem(_0x3e2f8a)};}},kbCreate={'service':'kb','command':'create','description':a35_0x44bc8c(0x139),'risk':a35_0x44bc8c(0x111),'confirmationDescription':a35_0x44bc8c(0xf2),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x40e993){const _0xe04e91=a35_0x44bc8c,_0x545fbc=_0x40e993[_0xe04e91(0x108)](_0xe04e91(0xf8)),_0x167358=readKnowledgeFile(_0x40e993[_0xe04e91(0x108)](_0xe04e91(0xfe))),_0xb5e2e1=await createPersonalKnowledgeBaseItem(_0x40e993[_0xe04e91(0x10f)],{'title':_0x545fbc,'content':_0x167358},_0x40e993['signal']);return{'ok':!![],'data':summarizePersonalItem(_0xb5e2e1),'message':_0xe04e91(0x112)+_0xb5e2e1['id']+'\x20('+_0xb5e2e1[_0xe04e91(0xf8)]+')'};},async 'dryRun'(_0x354183){const _0x390417=a35_0x44bc8c,_0x3a8525=_0x354183[_0x390417(0x108)](_0x390417(0xf8)),_0x87f3ae=readKnowledgeFile(_0x354183[_0x390417(0x108)](_0x390417(0xfe))),_0x3fdbd2=planPersonalKnowledgeWrite(_0x354183[_0x390417(0x10f)],{'title':_0x3a8525,'content':_0x87f3ae});return dryRun(_0x3fdbd2['method'],_0x3fdbd2['path'])[_0x390417(0x13b)](JSON['parse'](_0x3fdbd2['jsonBody']))[_0x390417(0xf3)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x3a8525+'\x22')[_0x390417(0x127)]();}},kbUpdate={'service':'kb','command':a35_0x44bc8c(0x10e),'description':a35_0x44bc8c(0x122),'risk':'write','confirmationDescription':a35_0x44bc8c(0x11e),'flags':[{...ID_FLAG,'type':a35_0x44bc8c(0x105),'description':a35_0x44bc8c(0xfb)},{...TITLE_FLAG,'required':![],'description':a35_0x44bc8c(0x10b)},FILE_FLAG],async 'execute'(_0x4b262b){const _0x19f3f5=a35_0x44bc8c,_0x226a44=_0x4b262b[_0x19f3f5(0x108)]('id'),_0x9c01d7=readKnowledgeFile(_0x4b262b[_0x19f3f5(0x108)](_0x19f3f5(0xfe))),_0x1eb305=_0x4b262b[_0x19f3f5(0x108)](_0x19f3f5(0xf8))||undefined,_0x52abcc=await updatePersonalKnowledgeBaseItem(_0x226a44,_0x4b262b[_0x19f3f5(0x10f)],{'title':_0x1eb305,'content':_0x9c01d7},_0x4b262b[_0x19f3f5(0x11c)]);return{'ok':!![],'data':summarizePersonalItem(_0x52abcc),'message':'Updated\x20KB\x20entry\x20'+_0x52abcc['id']+'\x20('+_0x52abcc['title']+')'};},async 'dryRun'(_0x10ffb9){const _0x1472a5=a35_0x44bc8c,_0x5c88a6=_0x10ffb9['str']('id'),_0x4d3e64=readKnowledgeFile(_0x10ffb9[_0x1472a5(0x108)](_0x1472a5(0xfe))),_0x48d1f8=await getPersonalKnowledgeBaseItem(_0x5c88a6,_0x10ffb9[_0x1472a5(0x10f)],_0x10ffb9[_0x1472a5(0x11c)]),_0x4a78b6=_0x10ffb9[_0x1472a5(0x108)](_0x1472a5(0xf8))||_0x48d1f8[_0x1472a5(0xf8)],_0x38d429=planPersonalKnowledgeWrite(_0x10ffb9['appCode'],{'title':_0x4a78b6,'content':_0x4d3e64},_0x5c88a6,_0x48d1f8['version']);return dryRun(_0x38d429[_0x1472a5(0x107)],_0x38d429[_0x1472a5(0xf1)])[_0x1472a5(0x13b)](JSON[_0x1472a5(0x121)](_0x38d429['jsonBody']))['description'](_0x1472a5(0x117)+_0x5c88a6)[_0x1472a5(0x127)]();}};function readSearchServiceUrl(_0x12209a){const _0x25cb27=a35_0x44bc8c;if(_0x12209a[_0x25cb27(0x129)]('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x12209a[_0x25cb27(0x108)]('kb-service-url'));const _0x14b2e2=getKbServiceDomain();if(!_0x14b2e2)throw CliErrors['validation'](_0x25cb27(0x136),_0x25cb27(0xfc));return normalizeKbServiceOrigin(_0x14b2e2);}const kbSearch={'service':'kb','command':a35_0x44bc8c(0x119),'description':a35_0x44bc8c(0x12c),'risk':a35_0x44bc8c(0x116),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x44bc8c(0x126),'type':'string','required':![],'description':a35_0x44bc8c(0xf5)}],async 'validate'(_0x1e039e){const _0x5835d7=a35_0x44bc8c;if(!_0x1e039e[_0x5835d7(0x108)](_0x5835d7(0x110))['trim']())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x1e039e),readSearchServiceUrl(_0x1e039e);},async 'execute'(_0x1aa1d5){const _0x28ab05=a35_0x44bc8c,_0x3ce0b6=_0x1aa1d5[_0x28ab05(0x108)]('query')[_0x28ab05(0x125)](),_0x1e4b1=readTopK(_0x1aa1d5),_0x33368c=readSearchServiceUrl(_0x1aa1d5),_0x5e73f1={'appCode':_0x1aa1d5[_0x28ab05(0x10f)],'accessKey':_0x1aa1d5[_0x28ab05(0x12e)]??'','query':_0x3ce0b6,..._0x1e4b1!==undefined?{'topK':_0x1e4b1}:{},'signal':_0x1aa1d5[_0x28ab05(0x11c)]},_0x3d58df=await searchDirectKnowledge({..._0x5e73f1,'serviceUrl':_0x33368c});return{'ok':!![],'data':_0x3d58df};}};function managementCommand(_0x1a814f){const _0x97a6dc=a35_0x44bc8c;return{..._0x1a814f,'execute':_0x46e18d=>withKbManagementOrigin(()=>_0x1a814f[_0x97a6dc(0x109)](_0x46e18d)),..._0x1a814f[_0x97a6dc(0x133)]?{'dryRun':_0x39d759=>withKbManagementOrigin(()=>_0x1a814f[_0x97a6dc(0x133)](_0x39d759))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x44bc8c(0xff)](managementCommand),kbSearch];
1
+ const a35_0x124643=a35_0x2c29;function a35_0x336b(){const _0x48d655=['858290uAWUCv','120020Gedbsh','Personal\x20knowledge-base\x20entry\x20ID','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','topk','utf8','3vHpYzr','accessKey','method','appCode','Search\x20query\x20is\x20required.','validation','bool','parse','title','query','list','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','isFile','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','string','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','description','str','jsonBody','dryRun','version','write','flag','43911fiLxNH','length','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','detail','search','update','529572BOeala','signal','File\x20is\x20not\x20a\x20regular\x20file:\x20','3mnJYPD','path','780862KyUtcq','kb-service-url','execute','verbose','288hdaATK','updateTime','map','file','build','body','1032756ZXCKJA','content','num','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','createTime','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','create','File\x20not\x20found:\x20','ragErrorMessage','trim','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','11khmtfB','ragStatus','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','103743MGFSpC','read'];a35_0x336b=function(){return _0x48d655;};return a35_0x336b();}(function(_0x47ccdd,_0x446549){const _0x35eb03=a35_0x2c29,_0x1ecc9d=_0x47ccdd();while(!![]){try{const _0x3ae8b2=parseInt(_0x35eb03(0x233))/0x1*(parseInt(_0x35eb03(0x235))/0x2)+-parseInt(_0x35eb03(0x211))/0x3*(parseInt(_0x35eb03(0x1fb))/0x4)+-parseInt(_0x35eb03(0x20c))/0x5+parseInt(_0x35eb03(0x230))/0x6+parseInt(_0x35eb03(0x22a))/0x7+-parseInt(_0x35eb03(0x1f5))/0x8*(parseInt(_0x35eb03(0x209))/0x9)+parseInt(_0x35eb03(0x20b))/0xa*(parseInt(_0x35eb03(0x206))/0xb);if(_0x3ae8b2===_0x446549)break;else _0x1ecc9d['push'](_0x1ecc9d['shift']());}catch(_0xbea78f){_0x1ecc9d['push'](_0x1ecc9d['shift']());}}}(a35_0x336b,0x9fc9c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';function a35_0x2c29(_0x490864,_0x2abd2a){_0x490864=_0x490864-0x1f3;const _0x336b80=a35_0x336b();let _0x2c2973=_0x336b80[_0x490864];return _0x2c2973;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x124643(0x219),'type':a35_0x124643(0x21f),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a35_0x124643(0x1f8),'type':a35_0x124643(0x21f),'required':!![],'description':a35_0x124643(0x21c)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x124643(0x200)},TOPK_FLAG={'name':a35_0x124643(0x20f),'type':'number','description':a35_0x124643(0x221)};function readKnowledgeFile(_0xc7ab3c){const _0x448557=a35_0x124643;if(!_0xc7ab3c)throw CliErrors[_0x448557(0x216)]('File\x20path\x20is\x20required.');if(!existsSync(_0xc7ab3c))throw CliErrors[_0x448557(0x216)](_0x448557(0x202)+_0xc7ab3c);if(!statSync(_0xc7ab3c)[_0x448557(0x21d)]())throw CliErrors[_0x448557(0x216)](_0x448557(0x232)+_0xc7ab3c);return readFileSync(_0xc7ab3c,_0x448557(0x210));}function summarizePersonalItem(_0x35308e){const _0x5a7d37=a35_0x124643;return{'id':_0x35308e['id'],'title':_0x35308e[_0x5a7d37(0x219)],'version':_0x35308e[_0x5a7d37(0x227)],'ragStatus':_0x35308e[_0x5a7d37(0x207)],'ragErrorMessage':_0x35308e[_0x5a7d37(0x203)],'updateTime':_0x35308e[_0x5a7d37(0x1f6)]};}function detailPersonalItem(_0x66e06b){const _0x5e3c05=a35_0x124643;return{'id':_0x66e06b['id'],'appCode':_0x66e06b['appCode'],'scope':_0x66e06b['scope'],'userId':_0x66e06b['userId'],'title':_0x66e06b[_0x5e3c05(0x219)],'content':_0x66e06b[_0x5e3c05(0x1fc)],'version':_0x66e06b[_0x5e3c05(0x227)],'ragStatus':_0x66e06b['ragStatus'],'ragErrorMessage':_0x66e06b['ragErrorMessage'],'createTime':_0x66e06b[_0x5e3c05(0x1ff)],'updateTime':_0x66e06b['updateTime']};}function readTopK(_0x2c0b57){const _0x4b1318=a35_0x124643,_0x32b436=_0x2c0b57['flag'](_0x4b1318(0x20f));if(_0x32b436===undefined||_0x32b436===null||_0x32b436==='')return undefined;const _0x54ebe5=_0x2c0b57[_0x4b1318(0x1fd)](_0x4b1318(0x20f));if(!Number['isSafeInteger'](_0x54ebe5)||_0x54ebe5<0x1||_0x54ebe5>0x32)throw CliErrors['validation']('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x54ebe5;}const kbList={'service':'kb','command':a35_0x124643(0x21b),'description':a35_0x124643(0x205),'risk':a35_0x124643(0x20a),'flags':[VERBOSE_FLAG],async 'execute'(_0x2c9bb6){const _0x23f437=a35_0x124643,_0x45a706=await listPersonalKnowledgeBaseItems(_0x2c9bb6[_0x23f437(0x214)],_0x2c9bb6['signal']);if(_0x2c9bb6[_0x23f437(0x217)](_0x23f437(0x1f4)))return{'ok':!![],'data':{'total':_0x45a706['length'],'items':_0x45a706}};return{'ok':!![],'data':{'total':_0x45a706[_0x23f437(0x22b)],'items':_0x45a706[_0x23f437(0x1f7)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x124643(0x22d),'description':a35_0x124643(0x21e),'risk':'read','flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)}],async 'execute'(_0x5f467c){const _0x2ec9a2=a35_0x124643,_0x5de37f=await getPersonalKnowledgeBaseItem(_0x5f467c['str']('id'),_0x5f467c[_0x2ec9a2(0x214)],_0x5f467c[_0x2ec9a2(0x231)]);return{'ok':!![],'data':detailPersonalItem(_0x5de37f)};}},kbCreate={'service':'kb','command':a35_0x124643(0x201),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x22c),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x1f01e2){const _0x29d740=a35_0x124643,_0x243924=_0x1f01e2[_0x29d740(0x224)](_0x29d740(0x219)),_0x4ef931=readKnowledgeFile(_0x1f01e2['str'](_0x29d740(0x1f8))),_0x118da7=await createPersonalKnowledgeBaseItem(_0x1f01e2[_0x29d740(0x214)],{'title':_0x243924,'content':_0x4ef931},_0x1f01e2['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x118da7),'message':'Created\x20KB\x20entry\x20'+_0x118da7['id']+'\x20('+_0x118da7[_0x29d740(0x219)]+')'};},async 'dryRun'(_0x25e29d){const _0x4bfe81=a35_0x124643,_0x3a91c2=_0x25e29d[_0x4bfe81(0x224)]('title'),_0x45db41=readKnowledgeFile(_0x25e29d[_0x4bfe81(0x224)](_0x4bfe81(0x1f8))),_0x2a9dae=planPersonalKnowledgeWrite(_0x25e29d[_0x4bfe81(0x214)],{'title':_0x3a91c2,'content':_0x45db41});return dryRun(_0x2a9dae[_0x4bfe81(0x213)],_0x2a9dae[_0x4bfe81(0x234)])[_0x4bfe81(0x1fa)](JSON[_0x4bfe81(0x218)](_0x2a9dae[_0x4bfe81(0x225)]))[_0x4bfe81(0x223)](_0x4bfe81(0x208)+_0x3a91c2+'\x22')[_0x4bfe81(0x1f9)]();}},kbUpdate={'service':'kb','command':a35_0x124643(0x22f),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x222),'flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x27ac0e){const _0x5d22cd=a35_0x124643,_0x3a044f=_0x27ac0e['str']('id'),_0x372f17=readKnowledgeFile(_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x1f8))),_0x45c54f=_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x219))||undefined,_0x3b85a3=await updatePersonalKnowledgeBaseItem(_0x3a044f,_0x27ac0e[_0x5d22cd(0x214)],{'title':_0x45c54f,'content':_0x372f17},_0x27ac0e[_0x5d22cd(0x231)]);return{'ok':!![],'data':summarizePersonalItem(_0x3b85a3),'message':'Updated\x20KB\x20entry\x20'+_0x3b85a3['id']+'\x20('+_0x3b85a3[_0x5d22cd(0x219)]+')'};},async 'dryRun'(_0x34c0fb){const _0x4f2e9f=a35_0x124643,_0x70b8ff=_0x34c0fb[_0x4f2e9f(0x224)]('id'),_0x53281e=readKnowledgeFile(_0x34c0fb['str'](_0x4f2e9f(0x1f8))),_0x526aa0=await getPersonalKnowledgeBaseItem(_0x70b8ff,_0x34c0fb['appCode'],_0x34c0fb[_0x4f2e9f(0x231)]),_0x32da48=_0x34c0fb['str'](_0x4f2e9f(0x219))||_0x526aa0[_0x4f2e9f(0x219)],_0x1bdaab=planPersonalKnowledgeWrite(_0x34c0fb['appCode'],{'title':_0x32da48,'content':_0x53281e},_0x70b8ff,_0x526aa0[_0x4f2e9f(0x227)]);return dryRun(_0x1bdaab[_0x4f2e9f(0x213)],_0x1bdaab[_0x4f2e9f(0x234)])['body'](JSON[_0x4f2e9f(0x218)](_0x1bdaab[_0x4f2e9f(0x225)]))[_0x4f2e9f(0x223)](_0x4f2e9f(0x20e)+_0x70b8ff)[_0x4f2e9f(0x1f9)]();}};function readSearchServiceUrl(_0x1a6c73){const _0x488b9f=a35_0x124643;if(_0x1a6c73[_0x488b9f(0x229)]('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1a6c73[_0x488b9f(0x224)]('kb-service-url'));const _0x46f158=getKbServiceDomain();if(!_0x46f158)throw CliErrors['validation']('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x46f158);}const kbSearch={'service':'kb','command':a35_0x124643(0x22e),'description':a35_0x124643(0x1fe),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x124643(0x236),'type':a35_0x124643(0x21f),'required':![],'description':a35_0x124643(0x220)}],async 'validate'(_0x481d0c){const _0x2ad8b8=a35_0x124643;if(!_0x481d0c['str'](_0x2ad8b8(0x21a))['trim']())throw CliErrors[_0x2ad8b8(0x216)](_0x2ad8b8(0x215));readTopK(_0x481d0c),readSearchServiceUrl(_0x481d0c);},async 'execute'(_0x42aa3e){const _0x300ebb=a35_0x124643,_0x4f0257=_0x42aa3e['str'](_0x300ebb(0x21a))[_0x300ebb(0x204)](),_0x53f128=readTopK(_0x42aa3e),_0x12f636=readSearchServiceUrl(_0x42aa3e),_0x137971={'appCode':_0x42aa3e[_0x300ebb(0x214)],'accessKey':_0x42aa3e[_0x300ebb(0x212)]??'','query':_0x4f0257,..._0x53f128!==undefined?{'topK':_0x53f128}:{},'signal':_0x42aa3e[_0x300ebb(0x231)]},_0x41e6d1=await searchDirectKnowledge({..._0x137971,'serviceUrl':_0x12f636});return{'ok':!![],'data':_0x41e6d1};}};function managementCommand(_0x46bfd8){const _0x3b2a46=a35_0x124643;return{..._0x46bfd8,'execute':_0x4edd47=>withKbManagementOrigin(()=>_0x46bfd8[_0x3b2a46(0x1f3)](_0x4edd47)),..._0x46bfd8[_0x3b2a46(0x226)]?{'dryRun':_0x40252e=>withKbManagementOrigin(()=>_0x46bfd8['dryRun'](_0x40252e))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x124643(0x1f7)](managementCommand),kbSearch];
@@ -1 +1 @@
1
- const a36_0x46ff81=a36_0x2489;function a36_0x2489(_0x16cda0,_0x5d69b2){_0x16cda0=_0x16cda0-0xcb;const _0x70571d=a36_0x7057();let _0x248912=_0x70571d[_0x16cda0];return _0x248912;}(function(_0x3f3202,_0x4c9578){const _0x3f7609=a36_0x2489,_0xcac36d=_0x3f3202();while(!![]){try{const _0x2c0357=-parseInt(_0x3f7609(0xcf))/0x1*(-parseInt(_0x3f7609(0xcd))/0x2)+-parseInt(_0x3f7609(0xe5))/0x3+parseInt(_0x3f7609(0xe3))/0x4*(-parseInt(_0x3f7609(0xd4))/0x5)+-parseInt(_0x3f7609(0xdf))/0x6*(-parseInt(_0x3f7609(0xdd))/0x7)+parseInt(_0x3f7609(0xd6))/0x8+-parseInt(_0x3f7609(0xe2))/0x9*(parseInt(_0x3f7609(0xcc))/0xa)+parseInt(_0x3f7609(0xe4))/0xb;if(_0x2c0357===_0x4c9578)break;else _0xcac36d['push'](_0xcac36d['shift']());}catch(_0x69d933){_0xcac36d['push'](_0xcac36d['shift']());}}}(a36_0x7057,0x894c0));function a36_0x7057(){const _0x5ad53d=['details','5084830dFGumF','logs','5282440NjkkNJ','timestamp','\x20\x20\x20Duration:\x20','log','en-US','read','\x20\x20\x20Details:\x20','500059pfwIgx','duration','12BLeyON','keys','toLocaleString','9tWyPAH','4AyOyQM','9998527gobiVo','362025NHeDGM','stringify','\x20logs:\x0a','1748050UjAoTY','76PayIyu','level','4281EZTLpO','length','\x20\x20\x20Time:\x20','command'];a36_0x7057=function(){return _0x5ad53d;};return a36_0x7057();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x3134b4){const _0x57b649=a36_0x2489;if(_0x3134b4['length']===0x0){console[_0x57b649(0xd9)]('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x57b649(0xcb)),_0x3134b4['forEach']((_0x521047,_0x2babd3)=>{const _0x4361ea=_0x57b649,_0x287d86=new Date(_0x521047[_0x4361ea(0xd7)])[_0x4361ea(0xe1)](_0x4361ea(0xda)),_0x31f80b=_0x521047[_0x4361ea(0xce)]==='success'?'√':_0x521047['level']==='error'?'×':_0x521047[_0x4361ea(0xce)]==='warn'?'!':'i';console[_0x4361ea(0xd9)](_0x2babd3+0x1+'.\x20'+_0x31f80b+'\x20['+_0x521047[_0x4361ea(0xd2)]+']\x20'+_0x521047['message']),console['log'](_0x4361ea(0xd1)+_0x287d86),_0x521047[_0x4361ea(0xde)]&&console[_0x4361ea(0xd9)](_0x4361ea(0xd8)+_0x521047[_0x4361ea(0xde)]+'ms'),_0x521047[_0x4361ea(0xd3)]&&Object[_0x4361ea(0xe0)](_0x521047[_0x4361ea(0xd3)])[_0x4361ea(0xd0)]>0x0&&console[_0x4361ea(0xd9)](_0x4361ea(0xdc)+JSON[_0x4361ea(0xe6)](_0x521047[_0x4361ea(0xd3)],null,0x2)),console[_0x4361ea(0xd9)]('');});}export const logsDefinitions=[{'service':a36_0x46ff81(0xd5),'command':'show','description':'View\x20command\x20history\x20logs','risk':a36_0x46ff81(0xdb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5196ac){return printLogs(logger['readLogs']()),{'ok':!![]};}}];
1
+ const a36_0x3b718e=a36_0x2081;(function(_0x15d20b,_0x451820){const _0x12d043=a36_0x2081,_0xc896cb=_0x15d20b();while(!![]){try{const _0x1d17da=parseInt(_0x12d043(0xb7))/0x1*(-parseInt(_0x12d043(0xb0))/0x2)+-parseInt(_0x12d043(0xae))/0x3*(parseInt(_0x12d043(0xaa))/0x4)+-parseInt(_0x12d043(0xa5))/0x5+-parseInt(_0x12d043(0xa7))/0x6+parseInt(_0x12d043(0xa6))/0x7*(parseInt(_0x12d043(0xbb))/0x8)+parseInt(_0x12d043(0xa9))/0x9*(parseInt(_0x12d043(0xc1))/0xa)+parseInt(_0x12d043(0xad))/0xb;if(_0x1d17da===_0x451820)break;else _0xc896cb['push'](_0xc896cb['shift']());}catch(_0x4d5715){_0xc896cb['push'](_0xc896cb['shift']());}}}(a36_0x2d87,0x2beba));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x11211d){const _0xa64ac7=a36_0x2081;if(_0x11211d[_0xa64ac7(0xb2)]===0x0){console['log'](_0xa64ac7(0xc0));return;}console[_0xa64ac7(0xa8)]('*\x20'+CLI_DISPLAY_NAME+_0xa64ac7(0xba)),_0x11211d[_0xa64ac7(0xac)]((_0xa94ebf,_0x5593f3)=>{const _0x17fa8d=_0xa64ac7,_0x5345cb=new Date(_0xa94ebf[_0x17fa8d(0xb8)])[_0x17fa8d(0xa4)](_0x17fa8d(0xbf)),_0x3f615d=_0xa94ebf['level']===_0x17fa8d(0xab)?'√':_0xa94ebf[_0x17fa8d(0xb1)]==='error'?'×':_0xa94ebf[_0x17fa8d(0xb1)]==='warn'?'!':'i';console[_0x17fa8d(0xa8)](_0x5593f3+0x1+'.\x20'+_0x3f615d+'\x20['+_0xa94ebf[_0x17fa8d(0xbd)]+']\x20'+_0xa94ebf[_0x17fa8d(0xb3)]),console[_0x17fa8d(0xa8)](_0x17fa8d(0xaf)+_0x5345cb),_0xa94ebf[_0x17fa8d(0xb4)]&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Duration:\x20'+_0xa94ebf[_0x17fa8d(0xb4)]+'ms'),_0xa94ebf[_0x17fa8d(0xbe)]&&Object['keys'](_0xa94ebf['details'])[_0x17fa8d(0xb2)]>0x0&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0xa94ebf[_0x17fa8d(0xbe)],null,0x2)),console[_0x17fa8d(0xa8)]('');});}function a36_0x2081(_0x4facaf,_0x3d5a45){_0x4facaf=_0x4facaf-0xa4;const _0x2d8786=a36_0x2d87();let _0x2081cd=_0x2d8786[_0x4facaf];return _0x2081cd;}function a36_0x2d87(){const _0x3fdd74=['251961eeSXCY','\x20\x20\x20Time:\x20','2GwsoEY','level','length','message','duration','readLogs','read','40861UogDhe','timestamp','View\x20command\x20history\x20logs','\x20logs:\x0a','256LBwvzG','logs','command','details','en-US','*\x20No\x20logs\x20found','2449260aSiLvM','toLocaleString','1609335WNOhfl','24521xaAuzC','1125498uJCBej','log','9xAcleX','12YnwDwT','success','forEach','6876628qYLyEt'];a36_0x2d87=function(){return _0x3fdd74;};return a36_0x2d87();}export const logsDefinitions=[{'service':a36_0x3b718e(0xbc),'command':'show','description':a36_0x3b718e(0xb9),'risk':a36_0x3b718e(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x467568){const _0x17756f=a36_0x3b718e;return printLogs(logger[_0x17756f(0xb5)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0x187bf4=a37_0x45d2;(function(_0x53fc9e,_0x5d0ce7){const _0x12e83f=a37_0x45d2,_0x5efcd7=_0x53fc9e();while(!![]){try{const _0x58b9ff=-parseInt(_0x12e83f(0x165))/0x1*(-parseInt(_0x12e83f(0x161))/0x2)+-parseInt(_0x12e83f(0x16b))/0x3*(-parseInt(_0x12e83f(0x168))/0x4)+parseInt(_0x12e83f(0x16a))/0x5*(parseInt(_0x12e83f(0x167))/0x6)+parseInt(_0x12e83f(0x15c))/0x7*(-parseInt(_0x12e83f(0x15b))/0x8)+parseInt(_0x12e83f(0x16d))/0x9*(-parseInt(_0x12e83f(0x166))/0xa)+parseInt(_0x12e83f(0x15a))/0xb*(parseInt(_0x12e83f(0x16c))/0xc)+-parseInt(_0x12e83f(0x162))/0xd*(parseInt(_0x12e83f(0x15d))/0xe);if(_0x58b9ff===_0x5d0ce7)break;else _0x5efcd7['push'](_0x5efcd7['shift']());}catch(_0x2be4a2){_0x5efcd7['push'](_0x5efcd7['shift']());}}}(a37_0x4324,0x73a84));function a37_0x45d2(_0x278995,_0x5122a8){_0x278995=_0x278995-0x159;const _0x4324cd=a37_0x4324();let _0x45d210=_0x4324cd[_0x278995];return _0x45d210;}function a37_0x4324(){const _0x3f485f=['config-list','read','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','2thNEnh','43953zYBiIs','EMAIL','Found\x20','281551mKwAMh','410wTfJVN','5898luvyVu','143228Apypvp','string','3310RfjGKa','60QIwyWp','12SKZsAQ','85851znqVXp','map','Notification\x20channel\x20type','appCode','length','5180527TYCoQZ','992oVSQvt','38948MFQyJv','2338AGWYhL'];a37_0x4324=function(){return _0x3f485f;};return a37_0x4324();}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a37_0x187bf4(0x15e),'description':a37_0x187bf4(0x160),'risk':a37_0x187bf4(0x15f),'flags':[{'name':'type','type':a37_0x187bf4(0x169),'description':a37_0x187bf4(0x16f),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x187bf4(0x163)}],async 'validate'(_0x269ad2){readNotificationChannelType(_0x269ad2);},async 'execute'(_0x88bc02){const _0x57f532=a37_0x187bf4,_0x2d0fdc=readNotificationChannelType(_0x88bc02),_0x5caf08=await listNotificationChannelConfigs(_0x88bc02[_0x57f532(0x170)],_0x2d0fdc),_0x15f0f7=_0x5caf08[_0x57f532(0x16e)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x88bc02['appCode'],'channelType':_0x2d0fdc,'count':_0x15f0f7[_0x57f532(0x159)],'configs':_0x15f0f7},'message':_0x57f532(0x164)+_0x15f0f7[_0x57f532(0x159)]+'\x20'+_0x2d0fdc+'\x20notification\x20config(s)'};}};
1
+ const a37_0xba41e2=a37_0x2091;(function(_0x3d964d,_0x5dfed1){const _0x3025f1=a37_0x2091,_0x3d4d14=_0x3d964d();while(!![]){try{const _0x46a567=parseInt(_0x3025f1(0x75))/0x1+parseInt(_0x3025f1(0x6b))/0x2+parseInt(_0x3025f1(0x6d))/0x3*(-parseInt(_0x3025f1(0x7a))/0x4)+-parseInt(_0x3025f1(0x6f))/0x5+-parseInt(_0x3025f1(0x70))/0x6+parseInt(_0x3025f1(0x69))/0x7+parseInt(_0x3025f1(0x78))/0x8;if(_0x46a567===_0x5dfed1)break;else _0x3d4d14['push'](_0x3d4d14['shift']());}catch(_0x3e270a){_0x3d4d14['push'](_0x3d4d14['shift']());}}}(a37_0x77d2,0xf3350));function a37_0x77d2(){const _0x383a29=['notification','353596vnnvAN','EMAIL','type','config-list','11436824yzEeLO','map','778238Uemoyj','\x20notification\x20config(s)','51TZvVcS','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5859670MtmXbL','9401622bjLRQP','Notification\x20channel\x20type','read','string','appCode','1733291UUshUb','length','Found\x20','11852704eGRPvx'];a37_0x77d2=function(){return _0x383a29;};return a37_0x77d2();}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2091(_0x56b0b4,_0x100f62){_0x56b0b4=_0x56b0b4-0x69;const _0x77d2b6=a37_0x77d2();let _0x209168=_0x77d2b6[_0x56b0b4];return _0x209168;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0xba41e2(0x79),'command':a37_0xba41e2(0x7d),'description':a37_0xba41e2(0x6e),'risk':a37_0xba41e2(0x72),'flags':[{'name':a37_0xba41e2(0x7c),'type':a37_0xba41e2(0x73),'description':a37_0xba41e2(0x71),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0xba41e2(0x7b)}],async 'validate'(_0x4284be){readNotificationChannelType(_0x4284be);},async 'execute'(_0x1419d0){const _0x57ad4f=a37_0xba41e2,_0x1426a4=readNotificationChannelType(_0x1419d0),_0x567589=await listNotificationChannelConfigs(_0x1419d0[_0x57ad4f(0x74)],_0x1426a4),_0x345128=_0x567589[_0x57ad4f(0x6a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1419d0['appCode'],'channelType':_0x1426a4,'count':_0x345128[_0x57ad4f(0x76)],'configs':_0x345128},'message':_0x57ad4f(0x77)+_0x345128[_0x57ad4f(0x76)]+'\x20'+_0x1426a4+_0x57ad4f(0x6c)};}};
@@ -1 +1 @@
1
- function a38_0x2076(_0x16eaaa,_0x2599b8){_0x16eaaa=_0x16eaaa-0x1ef;const _0x231d09=a38_0x231d();let _0x2076ea=_0x231d09[_0x16eaaa];return _0x2076ea;}function a38_0x231d(){const _0x594246=['6095840xrcmkg','2316927RnWTJj','29834208iCvdQD','8106574nzdBVE','4yoCBvd','2035344iNhiNJ','2347608QaxrVP','839276DutilT'];a38_0x231d=function(){return _0x594246;};return a38_0x231d();}(function(_0x571415,_0x2b459f){const _0x33d223=a38_0x2076,_0x5299e0=_0x571415();while(!![]){try{const _0x557f60=-parseInt(_0x33d223(0x1f4))/0x1+-parseInt(_0x33d223(0x1f2))/0x2+parseInt(_0x33d223(0x1f6))/0x3*(-parseInt(_0x33d223(0x1f1))/0x4)+-parseInt(_0x33d223(0x1f5))/0x5+-parseInt(_0x33d223(0x1f3))/0x6+parseInt(_0x33d223(0x1f0))/0x7+parseInt(_0x33d223(0x1ef))/0x8;if(_0x557f60===_0x2b459f)break;else _0x5299e0['push'](_0x5299e0['shift']());}catch(_0x21f55a){_0x5299e0['push'](_0x5299e0['shift']());}}}(a38_0x231d,0x9e1f1));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x47c56c,_0x37c122){const _0x5826a7=a38_0x3f8b,_0x94b7bc=_0x47c56c();while(!![]){try{const _0x40447e=-parseInt(_0x5826a7(0x182))/0x1*(parseInt(_0x5826a7(0x176))/0x2)+-parseInt(_0x5826a7(0x17b))/0x3*(parseInt(_0x5826a7(0x17d))/0x4)+parseInt(_0x5826a7(0x181))/0x5*(-parseInt(_0x5826a7(0x177))/0x6)+-parseInt(_0x5826a7(0x179))/0x7*(parseInt(_0x5826a7(0x183))/0x8)+-parseInt(_0x5826a7(0x17a))/0x9*(-parseInt(_0x5826a7(0x180))/0xa)+-parseInt(_0x5826a7(0x17e))/0xb*(-parseInt(_0x5826a7(0x17c))/0xc)+-parseInt(_0x5826a7(0x178))/0xd*(-parseInt(_0x5826a7(0x17f))/0xe);if(_0x40447e===_0x37c122)break;else _0x94b7bc['push'](_0x94b7bc['shift']());}catch(_0x5c65a7){_0x94b7bc['push'](_0x94b7bc['shift']());}}}(a38_0xd186,0x5cc3e));function a38_0xd186(){const _0x4b6cf6=['696635mUqCst','274312tZLSGp','2wpNpfv','2688678tpAnPn','104gKbaBM','21ewsgAR','9SmxNbU','15237KkBsfA','12iaROuP','340AVTmDE','4865069kNLWAm','1943900mznwVZ','5062170qIzlZr','5HpRCIs'];a38_0xd186=function(){return _0x4b6cf6;};return a38_0xd186();}function a38_0x3f8b(_0x130b11,_0x2166e2){_0x130b11=_0x130b11-0x176;const _0xd18638=a38_0xd186();let _0x3f8b72=_0xd18638[_0x130b11];return _0x3f8b72;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a39_0x3d531a=a39_0x4c17;(function(_0x3fc41a,_0x488f55){const _0x18906d=a39_0x4c17,_0x4941dd=_0x3fc41a();while(!![]){try{const _0x130274=-parseInt(_0x18906d(0x103))/0x1*(-parseInt(_0x18906d(0xf9))/0x2)+-parseInt(_0x18906d(0x106))/0x3+parseInt(_0x18906d(0xf8))/0x4+-parseInt(_0x18906d(0x108))/0x5+-parseInt(_0x18906d(0xf1))/0x6*(-parseInt(_0x18906d(0xfb))/0x7)+-parseInt(_0x18906d(0xf2))/0x8*(-parseInt(_0x18906d(0x10c))/0x9)+-parseInt(_0x18906d(0x109))/0xa;if(_0x130274===_0x488f55)break;else _0x4941dd['push'](_0x4941dd['shift']());}catch(_0x22431a){_0x4941dd['push'](_0x4941dd['shift']());}}}(a39_0x48ec,0x60736));function a39_0x4c17(_0x3e84e7,_0xf6745){_0x3e84e7=_0x3e84e7-0xf1;const _0x48ecc1=a39_0x48ec();let _0x4c17a3=_0x48ecc1[_0x3e84e7];return _0x4c17a3;}function a39_0x48ec(){const _0x58fe13=['WEBHOOK','6wfhZJR','16RkohRA','Invalid\x20notification\x20config\x20response.','isArray','join','Invalid\x20--type:\x20','trim','2623992snvQjj','2wIFQDQ','Allowed\x20values:\x20','3569377dtekmD','validation','apiError','object','includes','Item\x20','channelType','EMAIL','79641SJTWLW','WECOM','str','37788dJvWTb','DINGTALK','3946350OvxeSY','606480ywZsnN','\x20is\x20missing\x20required\x20field\x20\x22','description','54117ykBcGo'];a39_0x48ec=function(){return _0x58fe13;};return a39_0x48ec();}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x3d531a(0x102),'FEISHU',a39_0x3d531a(0x107),a39_0x3d531a(0x104),a39_0x3d531a(0x10d)];export function readNotificationChannelType(_0x1351c8){const _0x338a1b=a39_0x3d531a,_0x448983=_0x1351c8[_0x338a1b(0x105)]('type')['trim']()||_0x338a1b(0x102);if(!NOTIFICATION_CHANNEL_TYPES[_0x338a1b(0xff)](_0x448983))throw CliErrors[_0x338a1b(0xfc)](_0x338a1b(0xf6)+_0x448983,_0x338a1b(0xfa)+NOTIFICATION_CHANNEL_TYPES[_0x338a1b(0xf5)](',\x20')+'.');return _0x448983;}export function projectNotificationListConfig(_0x18bde4,_0x3202bc){const _0x4ad519=a39_0x3d531a,_0x927bb=requireResponseObject(_0x18bde4,_0x3202bc);return{'configCode':requireResponseString(_0x927bb['configCode'],'configCode',_0x3202bc),'configName':requireResponseString(_0x927bb['configName'],'configName',_0x3202bc),'channelType':requireResponseString(_0x927bb[_0x4ad519(0x101)],'channelType',_0x3202bc),'description':normalizeNullableString(_0x927bb[_0x4ad519(0x10b)])};}function requireResponseObject(_0x55c7da,_0x2f20cc){const _0x2b5b8a=a39_0x3d531a;if(typeof _0x55c7da!==_0x2b5b8a(0xfe)||_0x55c7da===null||Array[_0x2b5b8a(0xf4)](_0x55c7da))throw CliErrors[_0x2b5b8a(0xfd)](_0x2b5b8a(0xf3),_0x2b5b8a(0x100)+(_0x2f20cc+0x1)+'\x20must\x20be\x20an\x20object.');return _0x55c7da;}function requireResponseString(_0x108e97,_0x420f94,_0x3360af){const _0x44dc58=a39_0x3d531a;if(typeof _0x108e97!=='string'||!_0x108e97['trim']())throw CliErrors[_0x44dc58(0xfd)](_0x44dc58(0xf3),_0x44dc58(0x100)+(_0x3360af+0x1)+_0x44dc58(0x10a)+_0x420f94+'\x22.');return _0x108e97['trim']();}function normalizeNullableString(_0x530e59){const _0x3eacb0=a39_0x3d531a;return typeof _0x530e59==='string'&&_0x530e59[_0x3eacb0(0xf7)]()?_0x530e59[_0x3eacb0(0xf7)]():null;}
1
+ const a39_0x32a487=a39_0x12cb;(function(_0x2db49c,_0x51b68c){const _0x3d020e=a39_0x12cb,_0x3e1ca7=_0x2db49c();while(!![]){try{const _0x3b9941=parseInt(_0x3d020e(0x1e3))/0x1*(parseInt(_0x3d020e(0x1f2))/0x2)+parseInt(_0x3d020e(0x1fd))/0x3+parseInt(_0x3d020e(0x1e9))/0x4+parseInt(_0x3d020e(0x1f7))/0x5+parseInt(_0x3d020e(0x1e6))/0x6*(parseInt(_0x3d020e(0x1fa))/0x7)+-parseInt(_0x3d020e(0x1ff))/0x8*(-parseInt(_0x3d020e(0x1f4))/0x9)+-parseInt(_0x3d020e(0x1e8))/0xa*(parseInt(_0x3d020e(0x1fe))/0xb);if(_0x3b9941===_0x51b68c)break;else _0x3e1ca7['push'](_0x3e1ca7['shift']());}catch(_0x3e6bec){_0x3e1ca7['push'](_0x3e1ca7['shift']());}}}(a39_0x1311,0x370a8));function a39_0x12cb(_0x2df4a0,_0x2e87ad){_0x2df4a0=_0x2df4a0-0x1e3;const _0x131133=a39_0x1311();let _0x12cb18=_0x131133[_0x2df4a0];return _0x12cb18;}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x32a487(0x1f9),a39_0x32a487(0x1fb),'DINGTALK',a39_0x32a487(0x1f6),'WEBHOOK'];export function readNotificationChannelType(_0xcb55d5){const _0x56029b=a39_0x32a487,_0x2494bb=_0xcb55d5['str'](_0x56029b(0x1f5))[_0x56029b(0x1e5)]()||_0x56029b(0x1f9);if(!NOTIFICATION_CHANNEL_TYPES[_0x56029b(0x1ed)](_0x2494bb))throw CliErrors[_0x56029b(0x201)](_0x56029b(0x1f1)+_0x2494bb,_0x56029b(0x1ec)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x2494bb;}export function projectNotificationListConfig(_0x33a192,_0xe36435){const _0xeafa4a=a39_0x32a487,_0xd9611f=requireResponseObject(_0x33a192,_0xe36435);return{'configCode':requireResponseString(_0xd9611f['configCode'],_0xeafa4a(0x1ea),_0xe36435),'configName':requireResponseString(_0xd9611f[_0xeafa4a(0x1ee)],_0xeafa4a(0x1ee),_0xe36435),'channelType':requireResponseString(_0xd9611f[_0xeafa4a(0x1f0)],_0xeafa4a(0x1f0),_0xe36435),'description':normalizeNullableString(_0xd9611f[_0xeafa4a(0x1eb)])};}function a39_0x1311(){const _0x865d91=['\x20must\x20be\x20an\x20object.','649521owgzLc','11650892NQXRMg','8OjUSXP','apiError','validation','844jsKtqY','\x20is\x20missing\x20required\x20field\x20\x22','trim','2346tyaDoz','Item\x20','10tKdTVd','1383828fVZHEf','configCode','description','Allowed\x20values:\x20','includes','configName','Invalid\x20notification\x20config\x20response.','channelType','Invalid\x20--type:\x20','818JsmxAw','isArray','329256xoQvCF','type','WECOM','1306970CcYlRr','string','EMAIL','1414nqseeA','FEISHU'];a39_0x1311=function(){return _0x865d91;};return a39_0x1311();}function requireResponseObject(_0x4b473a,_0x35da11){const _0x36cf98=a39_0x32a487;if(typeof _0x4b473a!=='object'||_0x4b473a===null||Array[_0x36cf98(0x1f3)](_0x4b473a))throw CliErrors[_0x36cf98(0x200)](_0x36cf98(0x1ef),_0x36cf98(0x1e7)+(_0x35da11+0x1)+_0x36cf98(0x1fc));return _0x4b473a;}function requireResponseString(_0x3f2e71,_0x1cb97d,_0x5e1cef){const _0x43ea9b=a39_0x32a487;if(typeof _0x3f2e71!=='string'||!_0x3f2e71[_0x43ea9b(0x1e5)]())throw CliErrors['apiError'](_0x43ea9b(0x1ef),_0x43ea9b(0x1e7)+(_0x5e1cef+0x1)+_0x43ea9b(0x1e4)+_0x1cb97d+'\x22.');return _0x3f2e71[_0x43ea9b(0x1e5)]();}function normalizeNullableString(_0x95e671){const _0x39737c=a39_0x32a487;return typeof _0x95e671===_0x39737c(0x1f8)&&_0x95e671[_0x39737c(0x1e5)]()?_0x95e671[_0x39737c(0x1e5)]():null;}