@lovrabet/lovrabet-cli 2.3.10-beta.1 → 2.3.10-beta.3

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 (195) 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.d.ts +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/issue/context.js +1 -1
  38. package/lib/commands/issue/index.js +1 -1
  39. package/lib/commands/issue/report.js +1 -1
  40. package/lib/commands/kb/index.js +1 -1
  41. package/lib/commands/logs/index.js +1 -1
  42. package/lib/commands/notification/config-list.js +1 -1
  43. package/lib/commands/notification/index.js +1 -1
  44. package/lib/commands/notification/shared.js +1 -1
  45. package/lib/commands/ocr/index.js +1 -1
  46. package/lib/commands/permit/dataset-get.js +1 -1
  47. package/lib/commands/permit/dataset-set.js +1 -1
  48. package/lib/commands/permit/index.js +1 -1
  49. package/lib/commands/permit/page-get.js +1 -1
  50. package/lib/commands/permit/page-set.js +1 -1
  51. package/lib/commands/permit/role-menus-set.js +1 -1
  52. package/lib/commands/permit/role-menus.js +1 -1
  53. package/lib/commands/permit/shared.js +1 -1
  54. package/lib/commands/personal-bff/index.js +1 -1
  55. package/lib/commands/registry.js +1 -1
  56. package/lib/commands/role/create.js +1 -1
  57. package/lib/commands/role/delete.js +1 -1
  58. package/lib/commands/role/detail.js +1 -1
  59. package/lib/commands/role/index.js +1 -1
  60. package/lib/commands/role/list.js +1 -1
  61. package/lib/commands/role/shared.js +1 -1
  62. package/lib/commands/role/update.js +1 -1
  63. package/lib/commands/role/user-add.js +1 -1
  64. package/lib/commands/role/user-remove.js +1 -1
  65. package/lib/commands/schedule/index.js +1 -1
  66. package/lib/commands/schema.js +1 -1
  67. package/lib/commands/service/dynamic.js +1 -1
  68. package/lib/commands/service/function-name-adapter.js +1 -1
  69. package/lib/commands/service/index.js +1 -1
  70. package/lib/commands/service/registry.js +1 -1
  71. package/lib/commands/skill/commands/create.js +1 -1
  72. package/lib/commands/skill/commands/diagram.js +1 -1
  73. package/lib/commands/skill/commands/install.js +1 -1
  74. package/lib/commands/skill/commands/list.js +1 -1
  75. package/lib/commands/skill/commands/push.js +1 -1
  76. package/lib/commands/skill/commands/validate.js +1 -1
  77. package/lib/commands/skill/diagram.js +1 -1
  78. package/lib/commands/skill/flags.js +1 -1
  79. package/lib/commands/skill/index.js +1 -1
  80. package/lib/commands/skill/manifest-helpers.js +1 -1
  81. package/lib/commands/skill/push-execute.js +1 -1
  82. package/lib/commands/skill/push-flow-helpers.js +1 -1
  83. package/lib/commands/skill/push-retarget.js +1 -1
  84. package/lib/commands/skill/scopes.js +1 -1
  85. package/lib/commands/skill/summary.js +1 -1
  86. package/lib/commands/skill/templates.js +1 -1
  87. package/lib/commands/skill/validate.js +1 -1
  88. package/lib/commands/sql/detail.js +1 -1
  89. package/lib/commands/sql/exec.js +1 -1
  90. package/lib/commands/sql/index.js +1 -1
  91. package/lib/commands/update.js +1 -1
  92. package/lib/commands/user-account/bind.js +1 -1
  93. package/lib/commands/user-account/index.js +1 -1
  94. package/lib/commands/workspace/index.js +1 -1
  95. package/lib/config/domain-config.d.ts +1 -1
  96. package/lib/config/domain-config.js +1 -1
  97. package/lib/config/schema.d.ts +1 -1
  98. package/lib/config/schema.js +1 -1
  99. package/lib/constant/app.js +1 -1
  100. package/lib/constant/auth-mode.js +1 -1
  101. package/lib/constant/cli.js +1 -1
  102. package/lib/constant/defaults.js +1 -1
  103. package/lib/constant/distribution.js +1 -1
  104. package/lib/constant/domain.d.ts +5 -1
  105. package/lib/constant/domain.js +1 -1
  106. package/lib/constant/env.js +1 -1
  107. package/lib/constant/output.js +1 -1
  108. package/lib/constant/product.js +1 -1
  109. package/lib/constant/region.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.js +1 -1
  112. package/lib/context.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/db-resolver.js +1 -1
  115. package/lib/core/kb-management-client.js +1 -1
  116. package/lib/core/kb-sdk-errors.js +1 -1
  117. package/lib/core/kb-search-client.js +1 -1
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/access-error.js +1 -1
  121. package/lib/framework/build-all-flags.js +1 -1
  122. package/lib/framework/dryrun.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/preparse.js +1 -1
  128. package/lib/framework/rate-limit.js +1 -1
  129. package/lib/framework/raw-flags.js +1 -1
  130. package/lib/framework/response.js +1 -1
  131. package/lib/framework/runner-confirmation.js +1 -1
  132. package/lib/framework/runner-error.js +1 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/generated/official-routing.d.ts +6 -1
  140. package/lib/generated/official-routing.js +1 -1
  141. package/lib/generated/routing-contract.d.ts +3 -3
  142. package/lib/generated/routing-contract.js +1 -1
  143. package/lib/help.js +1 -1
  144. package/lib/postinstall.js +1 -1
  145. package/lib/runtime/confirmation.js +1 -1
  146. package/lib/runtime/event.js +1 -1
  147. package/lib/runtime/index.js +1 -1
  148. package/lib/runtime/queue.js +1 -1
  149. package/lib/runtime/resolve.js +1 -1
  150. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  151. package/lib/services/dataset-import/excel-reader.js +1 -1
  152. package/lib/services/dataset-import/image-bytes.js +1 -1
  153. package/lib/services/dataset-import/image-ooxml.js +1 -1
  154. package/lib/services/dataset-import/image-runner.js +1 -1
  155. package/lib/services/dataset-import/metadata.js +1 -1
  156. package/lib/services/dataset-import/preview.js +1 -1
  157. package/lib/services/dataset-import/runner.js +1 -1
  158. package/lib/skills/builtin-skill.js +1 -1
  159. package/lib/skills/npx-skills-add.js +1 -1
  160. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  161. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  162. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  163. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  164. package/lib/skills/runtime-skill-sync/links.js +1 -1
  165. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  166. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  167. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  168. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  169. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  170. package/lib/skills/runtime-skill-sync/push.js +1 -1
  171. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  172. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  173. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  174. package/lib/skills/runtime-skill-sync.js +1 -1
  175. package/lib/skills/skill-presence.js +1 -1
  176. package/lib/utils/access-key-redaction.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/logger.js +1 -1
  181. package/lib/utils/lossless-json.js +1 -1
  182. package/lib/utils/params.js +1 -1
  183. package/lib/utils/positive-safe-integer.js +1 -1
  184. package/lib/utils/redaction.js +1 -1
  185. package/lib/utils/runtime-user-id.js +1 -1
  186. package/lib/utils/update-notice.js +1 -1
  187. package/lib/utils/version.js +1 -1
  188. package/lib/utils/write-cli-side-channel.js +1 -1
  189. package/package.json +1 -1
  190. package/skills/lovrabet/SKILL.md +1 -1
  191. package/skills/lovrabet/references/lovrabet-config-commands.md +17 -33
  192. package/skills/lovrabet/references/lovrabet-config.md +11 -3
  193. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  194. package/skills/lovrabet/references/lovrabet-kb-workflow.md +4 -4
  195. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a27_0x5eb45d=a27_0x4f26;(function(_0x6b92b7,_0x143c7a){const _0x4c5a44=a27_0x4f26,_0x441c99=_0x6b92b7();while(!![]){try{const _0x28c85e=-parseInt(_0x4c5a44(0x174))/0x1*(parseInt(_0x4c5a44(0x14e))/0x2)+-parseInt(_0x4c5a44(0x177))/0x3*(-parseInt(_0x4c5a44(0x173))/0x4)+parseInt(_0x4c5a44(0x17e))/0x5+parseInt(_0x4c5a44(0x15a))/0x6+-parseInt(_0x4c5a44(0x138))/0x7*(-parseInt(_0x4c5a44(0x15f))/0x8)+parseInt(_0x4c5a44(0x17b))/0x9*(-parseInt(_0x4c5a44(0x18e))/0xa)+-parseInt(_0x4c5a44(0x18b))/0xb;if(_0x28c85e===_0x143c7a)break;else _0x441c99['push'](_0x441c99['shift']());}catch(_0x269bbc){_0x441c99['push'](_0x441c99['shift']());}}}(a27_0x57dc,0xb4e20));import{dataImportExcel}from'./import-excel.js';function a27_0x57dc(){const _0x3317e7=['\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\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','high-risk-write','confirmationDescription','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Filter\x20dataset\x20records\x20with\x20query\x20conditions','length','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','map','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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$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\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\x20DATASET\x20BOUNDARY','\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}','3678944TpTuAp','2APOnpf','\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]','data\x20','3GUWOBd','\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}]','\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\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','6183BxfSCq','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','2066800bUeWsH','command','\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}','Create\x20one\x20record\x20in\x20the\x20dataset','now','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20completed\x20in\x20','\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\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}}','risk','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','32138590RaIqSS','\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--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','510RTsKau','batchCreate','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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}','str','Get\x20a\x20single\x20record\x20by\x20ID','read','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\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\x20LOGICAL\x20COMBINATORS','create','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','paramsHint','filter','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','4277OZsNAD','\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\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20EXAMPLES','\x20\x20PARAMS\x20STRUCTURE','POST','operation','\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}}','\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\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','join','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','write','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data','\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}}','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','123998WMoupj','params','aggregate','\x20on\x20dataset\x20','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','description','update','/api/{appCode}/','Update\x20an\x20existing\x20data\x20record','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','getOne','7771452itIpmm','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20WHERE\x20OPERATORS','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','15624FLrdGF','paramsRequired','\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_0x57dc=function(){return _0x3317e7;};return a27_0x57dc();}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';function a27_0x4f26(_0x4d8ad0,_0x27f02c){_0x4d8ad0=_0x4d8ad0-0x132;const _0x57dc4d=a27_0x57dc();let _0x4f26a2=_0x57dc4d[_0x4d8ad0];return _0x4f26a2;}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x5eb45d(0x136),'operation':a27_0x5eb45d(0x136),'risk':a27_0x5eb45d(0x194),'paramsRequired':![],'description':a27_0x5eb45d(0x168),'paramsHint':a27_0x5eb45d(0x199)+a27_0x5eb45d(0x166),'helpExtra':[a27_0x5eb45d(0x15d),a27_0x5eb45d(0x15b),a27_0x5eb45d(0x13b),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a27_0x5eb45d(0x179),a27_0x5eb45d(0x16e),a27_0x5eb45d(0x142),'\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_0x5eb45d(0x16f),a27_0x5eb45d(0x14c),a27_0x5eb45d(0x187),'',a27_0x5eb45d(0x197),'\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_0x5eb45d(0x18c),'',a27_0x5eb45d(0x16d),a27_0x5eb45d(0x14a),a27_0x5eb45d(0x18a),a27_0x5eb45d(0x178),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a27_0x5eb45d(0x184),'\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.',a27_0x5eb45d(0x19a),'\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x5eb45d(0x161),a27_0x5eb45d(0x186),a27_0x5eb45d(0x15c)][a27_0x5eb45d(0x146)]('\x0a')},{'command':a27_0x5eb45d(0x159),'operation':a27_0x5eb45d(0x159),'risk':'read','paramsRequired':!![],'description':a27_0x5eb45d(0x193),'paramsHint':a27_0x5eb45d(0x133)},{'command':a27_0x5eb45d(0x198),'operation':a27_0x5eb45d(0x198),'risk':a27_0x5eb45d(0x149),'paramsRequired':!![],'description':a27_0x5eb45d(0x181),'confirmationDescription':a27_0x5eb45d(0x14d),'paramsHint':a27_0x5eb45d(0x16a)},{'command':a27_0x5eb45d(0x18f),'operation':a27_0x5eb45d(0x18f),'risk':a27_0x5eb45d(0x149),'paramsRequired':!![],'description':a27_0x5eb45d(0x152),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x5eb45d(0x144),a27_0x5eb45d(0x19b),a27_0x5eb45d(0x183),'\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.',a27_0x5eb45d(0x18d),a27_0x5eb45d(0x13a),a27_0x5eb45d(0x153),'\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.',a27_0x5eb45d(0x17d),a27_0x5eb45d(0x17a)][a27_0x5eb45d(0x146)]('\x0a'),'confirmationDescription':a27_0x5eb45d(0x137),'paramsHint':a27_0x5eb45d(0x134)},{'command':a27_0x5eb45d(0x155),'operation':a27_0x5eb45d(0x155),'risk':a27_0x5eb45d(0x149),'paramsRequired':!![],'description':a27_0x5eb45d(0x157),'confirmationDescription':a27_0x5eb45d(0x195),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a27_0x5eb45d(0x147)},{'command':'delete','operation':'delete','risk':a27_0x5eb45d(0x164),'paramsRequired':!![],'description':a27_0x5eb45d(0x148),'confirmationDescription':'Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','paramsHint':a27_0x5eb45d(0x133)},{'command':'aggregate','operation':a27_0x5eb45d(0x150),'risk':a27_0x5eb45d(0x194),'paramsRequired':![],'description':a27_0x5eb45d(0x190),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a27_0x5eb45d(0x15e),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a27_0x5eb45d(0x139),a27_0x5eb45d(0x191),a27_0x5eb45d(0x196),a27_0x5eb45d(0x172),a27_0x5eb45d(0x170),a27_0x5eb45d(0x180),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a27_0x5eb45d(0x13f),a27_0x5eb45d(0x175),a27_0x5eb45d(0x189),a27_0x5eb45d(0x16b),a27_0x5eb45d(0x158),'\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}',a27_0x5eb45d(0x143),'','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY',a27_0x5eb45d(0x132),a27_0x5eb45d(0x13d),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','',a27_0x5eb45d(0x171),a27_0x5eb45d(0x145),a27_0x5eb45d(0x13c),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x5eb45d(0x13e),a27_0x5eb45d(0x17c),'\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_0x5eb45d(0x163),a27_0x5eb45d(0x162),'',a27_0x5eb45d(0x167)]['join']('\x0a')}];function makeDataCommand(_0x2ba0d1){const _0x1e91e0=a27_0x5eb45d,_0x40d74a=_0x1e91e0(0x176)+_0x2ba0d1[_0x1e91e0(0x17f)],_0x43c80c={'service':_0x1e91e0(0x14b),'command':_0x2ba0d1[_0x1e91e0(0x17f)],'description':_0x2ba0d1[_0x1e91e0(0x154)],'risk':_0x2ba0d1[_0x1e91e0(0x188)],..._0x2ba0d1['confirmationDescription']?{'confirmationDescription':_0x2ba0d1[_0x1e91e0(0x165)]}:{},'helpExtra':_0x2ba0d1['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x2ba0d1[_0x1e91e0(0x135)]}],'validate':async _0x4cd8ba=>{const _0x17ee8a=_0x1e91e0;_0x2ba0d1[_0x17ee8a(0x160)]&&requireAnyOf(_0x4cd8ba,[_0x17ee8a(0x14f)],_0x40d74a),_0x2ba0d1[_0x17ee8a(0x141)]===_0x17ee8a(0x18f)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4cd8ba[_0x17ee8a(0x192)](_0x17ee8a(0x14f)))),_0x2ba0d1[_0x17ee8a(0x141)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x4cd8ba[_0x17ee8a(0x192)](_0x17ee8a(0x14f)))??{});},async 'execute'(_0x57379f){const _0x3ed621=_0x1e91e0,_0x1883a1=_0x57379f[_0x3ed621(0x192)]('code'),_0xecb381=_0x2ba0d1['operation']===_0x3ed621(0x18f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x57379f[_0x3ed621(0x192)](_0x3ed621(0x14f)))):parseJsonParams(_0x57379f['str']('params'))??{},_0x338cde=_0x2ba0d1['operation']===_0x3ed621(0x155)?parseUpdateIdsFromParams(_0xecb381):undefined,_0x24c77d=_0x338cde?normalizeUpdateParamsForRuntime(_0xecb381,_0x338cde):_0xecb381,_0x484134=Date[_0x3ed621(0x182)](),_0x4e538c=await executeData(_0x1883a1,_0x2ba0d1['operation'],_0x24c77d),_0x71275f=Date[_0x3ed621(0x182)]()-_0x484134,_0x2bc98c=_0x338cde&&_0x338cde[_0x3ed621(0x169)]>0x1?buildBatchUpdateResult(_0x338cde,_0x4e538c):_0x4e538c;return{'ok':!![],'data':{'result':_0x2bc98c,'elapsed':_0x71275f},'message':'data\x20'+_0x2ba0d1[_0x3ed621(0x17f)]+_0x3ed621(0x185)+_0x71275f+'ms'};}};return _0x2ba0d1['risk']!==_0x1e91e0(0x194)&&(_0x43c80c['dryRun']=async _0x32405a=>{const _0x581ed2=_0x1e91e0,_0x365644=_0x32405a[_0x581ed2(0x192)]('code'),_0x87d75=_0x2ba0d1[_0x581ed2(0x141)]===_0x581ed2(0x18f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x32405a[_0x581ed2(0x192)](_0x581ed2(0x14f)))):parseJsonParams(_0x32405a[_0x581ed2(0x192)]('params'))??{};let _0x336969=_0x87d75;if(_0x2ba0d1[_0x581ed2(0x141)]===_0x581ed2(0x155)){const _0x17a5cd=parseUpdateIdsFromParams(_0x87d75);_0x336969=normalizeUpdateParamsForRuntime(_0x87d75,_0x17a5cd);}return dryRun(_0x581ed2(0x140),_0x581ed2(0x156)+_0x365644+'/'+_0x2ba0d1[_0x581ed2(0x141)])['body'](_0x336969)[_0x581ed2(0x154)]('Preview:\x20data\x20'+_0x2ba0d1[_0x581ed2(0x17f)]+_0x581ed2(0x151)+_0x365644)['build']();}),_0x43c80c;}export const dataDefinitions=[...specs[a27_0x5eb45d(0x16c)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x2621a0,_0x5730db){const _0x1f6e87=a27_0x5eb45d;return{'operation':_0x1f6e87(0x155),'mode':'batch','ids':_0x2621a0,'total':_0x2621a0[_0x1f6e87(0x169)],'result':_0x5730db};}
1
+ const a27_0x365366=a27_0x1764;(function(_0xbdb010,_0xff6cc1){const _0x29302c=a27_0x1764,_0x11038d=_0xbdb010();while(!![]){try{const _0x233c89=-parseInt(_0x29302c(0x106))/0x1+-parseInt(_0x29302c(0xec))/0x2*(-parseInt(_0x29302c(0xf6))/0x3)+-parseInt(_0x29302c(0xf3))/0x4*(parseInt(_0x29302c(0x13a))/0x5)+-parseInt(_0x29302c(0x11b))/0x6*(-parseInt(_0x29302c(0xe0))/0x7)+parseInt(_0x29302c(0x10f))/0x8+parseInt(_0x29302c(0xe5))/0x9*(-parseInt(_0x29302c(0x109))/0xa)+-parseInt(_0x29302c(0x138))/0xb*(-parseInt(_0x29302c(0x113))/0xc);if(_0x233c89===_0xff6cc1)break;else _0x11038d['push'](_0x11038d['shift']());}catch(_0x573fb5){_0x11038d['push'](_0x11038d['shift']());}}}(a27_0x188f,0xaa3f2));import{dataImportExcel}from'./import-excel.js';function a27_0x188f(){const _0x2756c3=['Preview:\x20data\x20','join','\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]','2280PgmoJY','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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}','build','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','helpExtra','confirmationDescription','732FFGtZK','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','data','POST','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\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}]','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','aggregate','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20EXAMPLES','\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]}}','paramsHint','\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\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','batchCreate','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','command','\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.','write','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','length','112288BAGASY','now','110coVvsr','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','\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\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','filter','\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}}','create','\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}}','\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','\x20completed\x20in\x20','\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\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','params','body','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','update','2569LNShya','delete','dryRun','read','\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}}','1107CVFMEP','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\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}','risk','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','14vkFfuE','data\x20','\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\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20on\x20dataset\x20','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','8852Hvfmkn','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20AGGREGATE\x20TYPES','88110hMtaQM','\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}}]}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}}','description','Create\x20one\x20record\x20in\x20the\x20dataset','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','str','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','Update\x20an\x20existing\x20data\x20record','high-risk-write','373264pktFWx','operation','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','92450QLJQJL','\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}','code','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','getOne','\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}','532248zJxTVS'];a27_0x188f=function(){return _0x2756c3;};return a27_0x188f();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a27_0x1764(_0x592795,_0x4b2e79){_0x592795=_0x592795-0xde;const _0x188f59=a27_0x188f();let _0x17641e=_0x188f59[_0x592795];return _0x17641e;}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_0x365366(0x13e),'operation':a27_0x365366(0x13e),'risk':a27_0x365366(0xe3),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x365366(0xff)+a27_0x365366(0xf8),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a27_0x365366(0x101),a27_0x365366(0x12e),a27_0x365366(0xfa),'\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}}',a27_0x365366(0xee),a27_0x365366(0xe4),a27_0x365366(0x127),a27_0x365366(0x142),a27_0x365366(0x13c),'\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}}','','\x20\x20LOGICAL\x20COMBINATORS',a27_0x365366(0xf7),a27_0x365366(0x135),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a27_0x365366(0xea),a27_0x365366(0x112),a27_0x365366(0x122),a27_0x365366(0x11c),a27_0x365366(0x108),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a27_0x365366(0x133),a27_0x365366(0x103),'\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x365366(0x130),a27_0x365366(0x143),a27_0x365366(0xef)][a27_0x365366(0x111)]('\x0a')},{'command':a27_0x365366(0x10d),'operation':a27_0x365366(0x10d),'risk':a27_0x365366(0xe3),'paramsRequired':!![],'description':a27_0x365366(0x149),'paramsHint':a27_0x365366(0xf9)},{'command':a27_0x365366(0x140),'operation':a27_0x365366(0x140),'risk':a27_0x365366(0x134),'paramsRequired':!![],'description':a27_0x365366(0xfc),'confirmationDescription':a27_0x365366(0x11e),'paramsHint':a27_0x365366(0x13d)},{'command':a27_0x365366(0x12c),'operation':a27_0x365366(0x12c),'risk':a27_0x365366(0x134),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x365366(0xfd),'\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,',a27_0x365366(0x121),a27_0x365366(0xeb),a27_0x365366(0x146),a27_0x365366(0xf4),a27_0x365366(0x12a),a27_0x365366(0x141),a27_0x365366(0xf0),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.']['join']('\x0a'),'confirmationDescription':'Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x365366(0xe9)},{'command':'update','operation':a27_0x365366(0xdf),'risk':a27_0x365366(0x134),'paramsRequired':!![],'description':a27_0x365366(0x104),'confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x365366(0x102)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a27_0x365366(0xe1),'operation':'delete','risk':a27_0x365366(0x105),'paramsRequired':!![],'description':'Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','confirmationDescription':a27_0x365366(0x123),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x365366(0x124),'operation':a27_0x365366(0x124),'risk':a27_0x365366(0xe3),'paramsRequired':![],'description':a27_0x365366(0xf2),'paramsHint':a27_0x365366(0x125)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a27_0x365366(0xf5),a27_0x365366(0x10a),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a27_0x365366(0x129),a27_0x365366(0x145),a27_0x365366(0x10e),a27_0x365366(0x115),a27_0x365366(0xe7),'','\x20\x20PARAMS\x20STRUCTURE',a27_0x365366(0x136),a27_0x365366(0x131),a27_0x365366(0x12b),a27_0x365366(0x118),a27_0x365366(0x13f),'\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_0x365366(0xe6),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x365366(0x114),a27_0x365366(0x13b),'','\x20\x20DATASET\x20BOUNDARY',a27_0x365366(0xde),a27_0x365366(0x10c),a27_0x365366(0x12f),a27_0x365366(0x100),'',a27_0x365366(0x126),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a27_0x365366(0x12d),'',a27_0x365366(0x11d),'\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','',a27_0x365366(0x117)]['join']('\x0a')}];function makeDataCommand(_0x43882f){const _0x3efa98=a27_0x365366,_0x1ba237=_0x3efa98(0xed)+_0x43882f[_0x3efa98(0x132)],_0x3eacfa={'service':_0x3efa98(0x11f),'command':_0x43882f[_0x3efa98(0x132)],'description':_0x43882f[_0x3efa98(0xfb)],'risk':_0x43882f[_0x3efa98(0xe8)],..._0x43882f[_0x3efa98(0x11a)]?{'confirmationDescription':_0x43882f[_0x3efa98(0x11a)]}:{},'helpExtra':_0x43882f[_0x3efa98(0x119)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x43882f[_0x3efa98(0x128)]}],'validate':async _0x1908dd=>{const _0x11c9ab=_0x3efa98;_0x43882f['paramsRequired']&&requireAnyOf(_0x1908dd,[_0x11c9ab(0x147)],_0x1ba237),_0x43882f['operation']===_0x11c9ab(0x12c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1908dd[_0x11c9ab(0xfe)](_0x11c9ab(0x147)))),_0x43882f[_0x11c9ab(0x107)]===_0x11c9ab(0xdf)&&parseUpdateIdsFromParams(parseJsonParams(_0x1908dd[_0x11c9ab(0xfe)](_0x11c9ab(0x147)))??{});},async 'execute'(_0x238371){const _0x1f93cb=_0x3efa98,_0x61297=_0x238371[_0x1f93cb(0xfe)](_0x1f93cb(0x10b)),_0x21f76b=_0x43882f[_0x1f93cb(0x107)]===_0x1f93cb(0x12c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x238371[_0x1f93cb(0xfe)]('params'))):parseJsonParams(_0x238371[_0x1f93cb(0xfe)](_0x1f93cb(0x147)))??{},_0x4c88e2=_0x43882f[_0x1f93cb(0x107)]===_0x1f93cb(0xdf)?parseUpdateIdsFromParams(_0x21f76b):undefined,_0x257aca=_0x4c88e2?normalizeUpdateParamsForRuntime(_0x21f76b,_0x4c88e2):_0x21f76b,_0x26b8c4=Date[_0x1f93cb(0x139)](),_0x172040=await executeData(_0x61297,_0x43882f['operation'],_0x257aca),_0x3bcd93=Date[_0x1f93cb(0x139)]()-_0x26b8c4,_0x4f58a4=_0x4c88e2&&_0x4c88e2['length']>0x1?buildBatchUpdateResult(_0x4c88e2,_0x172040):_0x172040;return{'ok':!![],'data':{'result':_0x4f58a4,'elapsed':_0x3bcd93},'message':'data\x20'+_0x43882f['command']+_0x1f93cb(0x144)+_0x3bcd93+'ms'};}};return _0x43882f[_0x3efa98(0xe8)]!==_0x3efa98(0xe3)&&(_0x3eacfa[_0x3efa98(0xe2)]=async _0x2d5850=>{const _0x42944d=_0x3efa98,_0xc18eea=_0x2d5850[_0x42944d(0xfe)](_0x42944d(0x10b)),_0x4a1abe=_0x43882f[_0x42944d(0x107)]===_0x42944d(0x12c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d5850[_0x42944d(0xfe)]('params'))):parseJsonParams(_0x2d5850['str'](_0x42944d(0x147)))??{};let _0x3c0186=_0x4a1abe;if(_0x43882f[_0x42944d(0x107)]===_0x42944d(0xdf)){const _0x4f1299=parseUpdateIdsFromParams(_0x4a1abe);_0x3c0186=normalizeUpdateParamsForRuntime(_0x4a1abe,_0x4f1299);}return dryRun(_0x42944d(0x120),'/api/{appCode}/'+_0xc18eea+'/'+_0x43882f[_0x42944d(0x107)])[_0x42944d(0x148)](_0x3c0186)['description'](_0x42944d(0x110)+_0x43882f[_0x42944d(0x132)]+_0x42944d(0xf1)+_0xc18eea)[_0x42944d(0x116)]();}),_0x3eacfa;}export const dataDefinitions=[...specs['map'](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x30174f,_0x383988){const _0x2dd12b=a27_0x365366;return{'operation':_0x2dd12b(0xdf),'mode':'batch','ids':_0x30174f,'total':_0x30174f[_0x2dd12b(0x137)],'result':_0x383988};}
@@ -1 +1 @@
1
- const a28_0x3b05fe=a28_0xbbf2;(function(_0x42dab3,_0x43a697){const _0xc904a0=a28_0xbbf2,_0x560930=_0x42dab3();while(!![]){try{const _0x4cc164=-parseInt(_0xc904a0(0xc6))/0x1*(-parseInt(_0xc904a0(0xbe))/0x2)+-parseInt(_0xc904a0(0xbf))/0x3*(parseInt(_0xc904a0(0xcd))/0x4)+-parseInt(_0xc904a0(0xe6))/0x5+parseInt(_0xc904a0(0xc3))/0x6*(parseInt(_0xc904a0(0xb0))/0x7)+-parseInt(_0xc904a0(0xcc))/0x8*(parseInt(_0xc904a0(0xda))/0x9)+-parseInt(_0xc904a0(0xbc))/0xa*(parseInt(_0xc904a0(0xba))/0xb)+parseInt(_0xc904a0(0xd9))/0xc;if(_0x4cc164===_0x43a697)break;else _0x560930['push'](_0x560930['shift']());}catch(_0x306e2b){_0x560930['push'](_0x560930['shift']());}}}(a28_0x6314,0xbf698));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0xbbf2(_0x50ec98,_0x3b3070){_0x50ec98=_0x50ec98-0x9b;const _0x6314c7=a28_0x6314();let _0xbbf235=_0x6314c7[_0x50ec98];return _0xbbf235;}import{CliErrors}from'../../errors.js';function isRecord(_0x41acd5){const _0x26b4a0=a28_0xbbf2;return _0x41acd5!==null&&typeof _0x41acd5===_0x26b4a0(0xa8)&&!Array[_0x26b4a0(0xdc)](_0x41acd5);}function normalizeField(_0x39c170){const _0x55b512=a28_0xbbf2;if(_0x39c170[_0x55b512(0x9d)])return null;const _0x38207e=Boolean(_0x39c170[_0x55b512(0xd2)]!==undefined||_0x39c170[_0x55b512(0xa4)]!==undefined);let _0x2f99b0={};if(!_0x38207e&&typeof _0x39c170['extend']===_0x55b512(0xd6))try{_0x2f99b0=JSON[_0x55b512(0xa3)](_0x39c170[_0x55b512(0xdf)]);}catch{}const _0x32bebd=_0x38207e?_0x39c170['name']:_0x39c170[_0x55b512(0xd0)],_0x376cb7=_0x38207e?_0x39c170[_0x55b512(0xd2)]:_0x39c170[_0x55b512(0xa1)],_0x3890dd=_0x38207e?_0x39c170['doType']:_0x39c170[_0x55b512(0xb9)]||_0x39c170[_0x55b512(0xca)],_0x33dc8f=_0x38207e?_0x39c170['pkField']===!![]:_0x2f99b0[_0x55b512(0xb3)]===!![],_0xd59eae=_0x38207e?_0x39c170[_0x55b512(0xb8)]===!![]:_0x2f99b0[_0x55b512(0xb8)]===!![],_0x4d07d9=_0x38207e?_0x39c170[_0x55b512(0xe4)]??null:_0x2f99b0['options']??null,_0x2f0591={'name':_0x32bebd,'displayName':_0x376cb7||_0x32bebd,'type':_0x3890dd,'dbType':_0x39c170[_0x55b512(0x9b)],'pk':_0x33dc8f,'required':_0xd59eae,'description':_0x39c170['description']||undefined};return Array[_0x55b512(0xdc)](_0x4d07d9)&&_0x4d07d9['length']>0x0&&(_0x2f0591[_0x55b512(0xe4)]=_0x4d07d9),_0x2f0591;}function parseJsonMaybe(_0x2573e3){const _0x3199e8=a28_0xbbf2;if(typeof _0x2573e3!==_0x3199e8(0xd6))return _0x2573e3;try{return JSON[_0x3199e8(0xa3)](_0x2573e3);}catch{return _0x2573e3;}}function a28_0x6314(){const _0x581b31=['doVersion','isArray','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','modifierIdField','extend','responseBody','fields','creatorNameField','responseFields','options','datasetKey','1351645qjbOmz','dbType','host','deleted','entries','modifierNameField','find','name','read','parse','doType','Dataset\x20detail\x20must\x20be\x20an\x20object.','afterScriptId','updateTimeField','object','logicField','dbtableConfig','filter','split','beforeScriptId','dbId','str','10604972rYEBLn','allFieldNames','allFields','pkField','appCode','modelCode','dbName','tableComment','required','type','5313UXMHan','creatorIdField','13130Qtrgum','requestFields','2SAhNVG','90579dtvIzA','dataset','description','detail','6rMaGlc','validateRules','trim','1000679AEhdOx','properties','formatRules','length','dataType','source','545912pskonk','12hdIFNV','columnCodeListWithDeleted','requestBody','code','relations','displayName','createTimeField','tableName','method','string','map','path','6719724vYApbs','171GYJoyv'];a28_0x6314=function(){return _0x581b31;};return a28_0x6314();}function normalizeOperationEntry(_0x136d1f,_0x145667){const _0xbe1033=a28_0xbbf2;if(!_0x145667||typeof _0x145667!=='object')return null;if(!_0x145667[_0xbe1033(0xd5)]||!_0x145667[_0xbe1033(0xd8)])return null;const _0xfc571={'name':_0x136d1f,'method':_0x145667['method'],'path':_0x145667[_0xbe1033(0xd8)]};if(_0x145667['host'])_0xfc571[_0xbe1033(0x9c)]=_0x145667['host'];if(_0x145667[_0xbe1033(0xcf)]!=null)_0xfc571[_0xbe1033(0xcf)]=parseJsonMaybe(_0x145667[_0xbe1033(0xcf)]);if(_0x145667[_0xbe1033(0xe0)]!=null)_0xfc571[_0xbe1033(0xe0)]=parseJsonMaybe(_0x145667[_0xbe1033(0xe0)]);if(_0x145667[_0xbe1033(0xad)]!=null)_0xfc571[_0xbe1033(0xad)]=_0x145667[_0xbe1033(0xad)];if(_0x145667[_0xbe1033(0xa6)]!=null)_0xfc571[_0xbe1033(0xa6)]=_0x145667[_0xbe1033(0xa6)];if(Array['isArray'](_0x145667[_0xbe1033(0xbd)]))_0xfc571[_0xbe1033(0xbd)]=_0x145667[_0xbe1033(0xbd)];if(Array[_0xbe1033(0xdc)](_0x145667[_0xbe1033(0xe3)]))_0xfc571[_0xbe1033(0xe3)]=_0x145667['responseFields'];return _0xfc571;}function summarizeDbtable(_0xa66af8){const _0x4faead=a28_0xbbf2,_0x88ade3={},_0x3f088a=['dbId',_0x4faead(0xb6),_0x4faead(0xd4),_0x4faead(0xe5),_0x4faead(0xb3),_0x4faead(0xb2),_0x4faead(0xa9),_0x4faead(0xd3),_0x4faead(0xa7),_0x4faead(0xbb),_0x4faead(0xe2),_0x4faead(0xde),_0x4faead(0x9f),'labelField','dblinkInfoDTO'];for(const _0x4cf196 of _0x3f088a){if(_0xa66af8[_0x4cf196]!==undefined)_0x88ade3[_0x4cf196]=_0xa66af8[_0x4cf196];}return typeof _0x88ade3['allFields']===_0x4faead(0xd6)&&_0x88ade3['allFields'][_0x4faead(0xc9)]>0x0&&(_0x88ade3[_0x4faead(0xb1)]=_0x88ade3['allFields']['split'](',')[_0x4faead(0xd7)](_0x3f7795=>_0x3f7795['trim']())[_0x4faead(0xab)](Boolean)),_0x88ade3;}function normalizeRelatedPages(_0x365e99){const _0x3f9eae=a28_0xbbf2;if(!Array[_0x3f9eae(0xdc)](_0x365e99))return[];return _0x365e99[_0x3f9eae(0xab)](_0x12a8a2=>_0x12a8a2&&typeof _0x12a8a2===_0x3f9eae(0xa8))[_0x3f9eae(0xd7)](_0x2970a3=>({'id':_0x2970a3['id'],'type':_0x2970a3[_0x3f9eae(0xb9)],'code':_0x2970a3[_0x3f9eae(0xd0)],'title':_0x2970a3['title'],'deleted':_0x2970a3['deleted']===!![]}));}function normalizeFallbackFieldName(_0x539c2f,_0x5b0c22){const _0x18ff50=a28_0xbbf2,_0x36f468=_0x539c2f[_0x18ff50(0xc5)]();if(!_0x36f468)return null;return{'name':_0x36f468,'displayName':_0x36f468,'type':undefined,'dbType':undefined,'pk':_0x36f468===_0x5b0c22,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4d883a,_0x5192ec){const _0x32c858=a28_0xbbf2;if(!_0x4d883a||!_0x5192ec)return[];try{const _0x2896e0=await listDatasets(_0x4d883a,{'code':_0x5192ec}),_0x185e6f=_0x2896e0[_0x32c858(0xa0)](_0xe1b107=>_0xe1b107[_0x32c858(0xd0)]===_0x5192ec)??_0x2896e0[0x0],_0x5f1d40=_0x185e6f?.[_0x32c858(0xaa)]??{},_0x144e82=typeof _0x5f1d40[_0x32c858(0xb2)]===_0x32c858(0xd6)?_0x5f1d40[_0x32c858(0xb2)][_0x32c858(0xac)](','):[];return _0x144e82[_0x32c858(0xd7)](_0x58ff8c=>normalizeFallbackFieldName(_0x58ff8c,_0x5f1d40['pkField']))['filter'](_0xbc86a7=>_0xbc86a7!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a28_0x3b05fe(0xc2),'description':a28_0x3b05fe(0xdd),'risk':a28_0x3b05fe(0xa2),'flags':[CODE_FLAG],async 'execute'(_0x348b2a){const _0x40941e=a28_0x3b05fe,_0x460919=await getDatasetDetail(_0x348b2a[_0x40941e(0xaf)]('code'));if(!isRecord(_0x460919))throw CliErrors['apiError'](_0x40941e(0xa5));const _0x407824=Array[_0x40941e(0xdc)](_0x460919['fields'])?_0x460919[_0x40941e(0xe1)]:Array['isArray'](_0x460919['properties'])?_0x460919[_0x40941e(0xc7)]:[];let _0x1e10fa=_0x407824[_0x40941e(0xd7)](_0xcdead=>normalizeField(_0xcdead))[_0x40941e(0xab)](_0x1ec33f=>_0x1ec33f!==null);_0x1e10fa[_0x40941e(0xc9)]===0x0&&(_0x1e10fa=await loadListFieldFallback(_0x348b2a[_0x40941e(0xb4)],_0x348b2a[_0x40941e(0xaf)](_0x40941e(0xd0))));const _0x56be77=_0x460919['operations']??{},_0xfc1daa=[];for(const [_0x580a2a,_0x219004]of Object[_0x40941e(0x9e)](_0x56be77)){const _0x29b896=normalizeOperationEntry(_0x580a2a,_0x219004);if(_0x29b896)_0xfc1daa['push'](_0x29b896);}const _0x87c9ed=isRecord(_0x460919[_0x40941e(0xaa)])?_0x460919['dbtableConfig']:{},_0x21e2cc=isRecord(_0x460919['dataset'])?_0x460919[_0x40941e(0xc0)]:{},_0xd9cb25=_0x87c9ed[_0x40941e(0xae)]!=null?{'id':_0x87c9ed[_0x40941e(0xae)],'name':_0x87c9ed[_0x40941e(0xb6)]??null}:undefined;let _0x10641c;return typeof _0x460919[_0x40941e(0xdf)]==='string'&&(_0x10641c=parseJsonMaybe(_0x460919[_0x40941e(0xdf)])),{'ok':!![],'data':{'id':_0x460919['modelId']??_0x460919['id'],'name':_0x460919[_0x40941e(0xa1)],'code':_0x460919[_0x40941e(0xb5)]||_0x460919[_0x40941e(0xd0)],'doVersion':_0x460919[_0x40941e(0xdb)],'description':_0x460919[_0x40941e(0xc1)]||_0x21e2cc[_0x40941e(0xb7)]||undefined,'source':_0x460919[_0x40941e(0xcb)]||_0x21e2cc['sourceType'],'table':_0x87c9ed[_0x40941e(0xd4)]||_0x21e2cc[_0x40941e(0xd4)],'datasetKey':_0x87c9ed[_0x40941e(0xe5)],'pk':_0x87c9ed[_0x40941e(0xb3)],'db':_0xd9cb25,'dbtable':summarizeDbtable(_0x87c9ed),'fields':_0x1e10fa,'operations':_0xfc1daa,'indexes':Array['isArray'](_0x21e2cc['indexes'])?_0x21e2cc['indexes']:[],'relations':_0x460919[_0x40941e(0xd1)]??null,'relatedPages':normalizeRelatedPages(_0x460919['relatedPageInfoList']),...Array[_0x40941e(0xdc)](_0x460919[_0x40941e(0xce)])?{'columnCodeListWithDeleted':_0x460919[_0x40941e(0xce)]}:{},'formatRules':Array[_0x40941e(0xdc)](_0x460919[_0x40941e(0xc8)])?_0x460919[_0x40941e(0xc8)]:[],'validateRules':Array['isArray'](_0x460919[_0x40941e(0xc4)])?_0x460919['validateRules']:[],..._0x10641c!==undefined?{'extend':_0x10641c}:{},'stats':{'fieldCount':_0x1e10fa['length'],'operationCount':_0xfc1daa[_0x40941e(0xc9)]}}};}};
1
+ const a28_0x5d1db6=a28_0x1507;(function(_0x3a8e45,_0xc2dbaa){const _0x3e01a7=a28_0x1507,_0xa791cd=_0x3a8e45();while(!![]){try{const _0x2cce2a=-parseInt(_0x3e01a7(0x1c6))/0x1*(-parseInt(_0x3e01a7(0x1d9))/0x2)+parseInt(_0x3e01a7(0x1f4))/0x3*(parseInt(_0x3e01a7(0x1de))/0x4)+parseInt(_0x3e01a7(0x1ff))/0x5+parseInt(_0x3e01a7(0x1d3))/0x6*(parseInt(_0x3e01a7(0x1f1))/0x7)+parseInt(_0x3e01a7(0x20b))/0x8*(-parseInt(_0x3e01a7(0x20e))/0x9)+-parseInt(_0x3e01a7(0x1f7))/0xa*(-parseInt(_0x3e01a7(0x205))/0xb)+-parseInt(_0x3e01a7(0x1dd))/0xc;if(_0x2cce2a===_0xc2dbaa)break;else _0xa791cd['push'](_0xa791cd['shift']());}catch(_0x28e831){_0xa791cd['push'](_0xa791cd['shift']());}}}(a28_0x2d88,0x3fee2));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x314707){const _0x4e02b5=a28_0x1507;return _0x314707!==null&&typeof _0x314707===_0x4e02b5(0x1e3)&&!Array['isArray'](_0x314707);}function normalizeField(_0x20d37a){const _0x3de70c=a28_0x1507;if(_0x20d37a[_0x3de70c(0x1fa)])return null;const _0x19144d=Boolean(_0x20d37a['displayName']!==undefined||_0x20d37a[_0x3de70c(0x201)]!==undefined);let _0x556607={};if(!_0x19144d&&typeof _0x20d37a[_0x3de70c(0x204)]===_0x3de70c(0x1ed))try{_0x556607=JSON['parse'](_0x20d37a['extend']);}catch{}const _0xf95a40=_0x19144d?_0x20d37a[_0x3de70c(0x1e4)]:_0x20d37a[_0x3de70c(0x1ce)],_0x2c5759=_0x19144d?_0x20d37a[_0x3de70c(0x1ef)]:_0x20d37a[_0x3de70c(0x1e4)],_0x49269f=_0x19144d?_0x20d37a[_0x3de70c(0x201)]:_0x20d37a['type']||_0x20d37a[_0x3de70c(0x1eb)],_0x35003c=_0x19144d?_0x20d37a[_0x3de70c(0x20c)]===!![]:_0x556607['pkField']===!![],_0x2fbfb8=_0x19144d?_0x20d37a[_0x3de70c(0x1ea)]===!![]:_0x556607[_0x3de70c(0x1ea)]===!![],_0x1be810=_0x19144d?_0x20d37a[_0x3de70c(0x1f6)]??null:_0x556607[_0x3de70c(0x1f6)]??null,_0x4b2603={'name':_0xf95a40,'displayName':_0x2c5759||_0xf95a40,'type':_0x49269f,'dbType':_0x20d37a[_0x3de70c(0x1e1)],'pk':_0x35003c,'required':_0x2fbfb8,'description':_0x20d37a[_0x3de70c(0x1e9)]||undefined};return Array[_0x3de70c(0x1cc)](_0x1be810)&&_0x1be810[_0x3de70c(0x20a)]>0x0&&(_0x4b2603['options']=_0x1be810),_0x4b2603;}function a28_0x1507(_0x1fcae4,_0xe55971){_0x1fcae4=_0x1fcae4-0x1c6;const _0x2d88f5=a28_0x2d88();let _0x15073d=_0x2d88f5[_0x1fcae4];return _0x15073d;}function a28_0x2d88(){const _0x185d22=['dbtableConfig','dbName','6SONQVC','source','beforeScriptId','apiError','createTimeField','responseBody','2nTkkjU','host','method','afterScriptId','5837076CvfTTB','11316jDNuMX','title','push','dbType','properties','object','name','modifierNameField','validateRules','columnCodeListWithDeleted','filter','description','required','dataType','allFieldNames','string','formatRules','displayName','trim','21959PrTCfw','relations','modelCode','21eLyIrq','tableName','options','812650jDViiu','tableComment','requestFields','deleted','labelField','parse','type','updateTimeField','2546390vbSpiu','dataset','doType','split','path','extend','11NGuedS','operations','map','modifierIdField','responseFields','length','32qkJbpg','pkField','dbId','606069fkjtHN','fields','str','logicField','404162DmDJLc','datasetKey','creatorNameField','allFields','requestBody','indexes','isArray','dblinkInfoDTO','code','doVersion','find'];a28_0x2d88=function(){return _0x185d22;};return a28_0x2d88();}function parseJsonMaybe(_0x223904){const _0x1f6a31=a28_0x1507;if(typeof _0x223904!==_0x1f6a31(0x1ed))return _0x223904;try{return JSON[_0x1f6a31(0x1fc)](_0x223904);}catch{return _0x223904;}}function normalizeOperationEntry(_0x468410,_0x3d5274){const _0x2c1bb5=a28_0x1507;if(!_0x3d5274||typeof _0x3d5274!==_0x2c1bb5(0x1e3))return null;if(!_0x3d5274['method']||!_0x3d5274[_0x2c1bb5(0x203)])return null;const _0x496d68={'name':_0x468410,'method':_0x3d5274[_0x2c1bb5(0x1db)],'path':_0x3d5274[_0x2c1bb5(0x203)]};if(_0x3d5274[_0x2c1bb5(0x1da)])_0x496d68[_0x2c1bb5(0x1da)]=_0x3d5274['host'];if(_0x3d5274[_0x2c1bb5(0x1ca)]!=null)_0x496d68[_0x2c1bb5(0x1ca)]=parseJsonMaybe(_0x3d5274[_0x2c1bb5(0x1ca)]);if(_0x3d5274[_0x2c1bb5(0x1d8)]!=null)_0x496d68[_0x2c1bb5(0x1d8)]=parseJsonMaybe(_0x3d5274[_0x2c1bb5(0x1d8)]);if(_0x3d5274[_0x2c1bb5(0x1d5)]!=null)_0x496d68[_0x2c1bb5(0x1d5)]=_0x3d5274[_0x2c1bb5(0x1d5)];if(_0x3d5274[_0x2c1bb5(0x1dc)]!=null)_0x496d68[_0x2c1bb5(0x1dc)]=_0x3d5274[_0x2c1bb5(0x1dc)];if(Array[_0x2c1bb5(0x1cc)](_0x3d5274[_0x2c1bb5(0x1f9)]))_0x496d68[_0x2c1bb5(0x1f9)]=_0x3d5274[_0x2c1bb5(0x1f9)];if(Array['isArray'](_0x3d5274[_0x2c1bb5(0x209)]))_0x496d68[_0x2c1bb5(0x209)]=_0x3d5274[_0x2c1bb5(0x209)];return _0x496d68;}function summarizeDbtable(_0x47d9e2){const _0x22cc1d=a28_0x1507,_0x51bdbf={},_0x598009=[_0x22cc1d(0x20d),_0x22cc1d(0x1d2),_0x22cc1d(0x1f5),_0x22cc1d(0x1c7),_0x22cc1d(0x20c),_0x22cc1d(0x1c9),_0x22cc1d(0x211),_0x22cc1d(0x1d7),_0x22cc1d(0x1fe),'creatorIdField',_0x22cc1d(0x1c8),_0x22cc1d(0x208),_0x22cc1d(0x1e5),_0x22cc1d(0x1fb),_0x22cc1d(0x1cd)];for(const _0x2d3bd1 of _0x598009){if(_0x47d9e2[_0x2d3bd1]!==undefined)_0x51bdbf[_0x2d3bd1]=_0x47d9e2[_0x2d3bd1];}return typeof _0x51bdbf[_0x22cc1d(0x1c9)]==='string'&&_0x51bdbf['allFields']['length']>0x0&&(_0x51bdbf[_0x22cc1d(0x1ec)]=_0x51bdbf[_0x22cc1d(0x1c9)]['split'](',')['map'](_0x176879=>_0x176879[_0x22cc1d(0x1f0)]())[_0x22cc1d(0x1e8)](Boolean)),_0x51bdbf;}function normalizeRelatedPages(_0x38a40e){const _0x359398=a28_0x1507;if(!Array[_0x359398(0x1cc)](_0x38a40e))return[];return _0x38a40e[_0x359398(0x1e8)](_0x18d756=>_0x18d756&&typeof _0x18d756===_0x359398(0x1e3))[_0x359398(0x207)](_0x58009a=>({'id':_0x58009a['id'],'type':_0x58009a[_0x359398(0x1fd)],'code':_0x58009a[_0x359398(0x1ce)],'title':_0x58009a[_0x359398(0x1df)],'deleted':_0x58009a[_0x359398(0x1fa)]===!![]}));}function normalizeFallbackFieldName(_0x7f5bf5,_0x17a2d1){const _0x36468b=a28_0x1507,_0x44bb85=_0x7f5bf5[_0x36468b(0x1f0)]();if(!_0x44bb85)return null;return{'name':_0x44bb85,'displayName':_0x44bb85,'type':undefined,'dbType':undefined,'pk':_0x44bb85===_0x17a2d1,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1f24d0,_0x51c183){const _0x4f55ac=a28_0x1507;if(!_0x1f24d0||!_0x51c183)return[];try{const _0x1cc469=await listDatasets(_0x1f24d0,{'code':_0x51c183}),_0x37636d=_0x1cc469[_0x4f55ac(0x1d0)](_0x699745=>_0x699745[_0x4f55ac(0x1ce)]===_0x51c183)??_0x1cc469[0x0],_0xe765b1=_0x37636d?.[_0x4f55ac(0x1d1)]??{},_0x572ee1=typeof _0xe765b1[_0x4f55ac(0x1c9)]===_0x4f55ac(0x1ed)?_0xe765b1[_0x4f55ac(0x1c9)][_0x4f55ac(0x202)](','):[];return _0x572ee1['map'](_0x5e934d=>normalizeFallbackFieldName(_0x5e934d,_0xe765b1[_0x4f55ac(0x20c)]))[_0x4f55ac(0x1e8)](_0x5b9dca=>_0x5b9dca!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x5d1db6(0x200),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x4a654a){const _0x410586=a28_0x5d1db6,_0x1d3c59=await getDatasetDetail(_0x4a654a[_0x410586(0x210)](_0x410586(0x1ce)));if(!isRecord(_0x1d3c59))throw CliErrors[_0x410586(0x1d6)]('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0x346189=Array['isArray'](_0x1d3c59[_0x410586(0x20f)])?_0x1d3c59[_0x410586(0x20f)]:Array[_0x410586(0x1cc)](_0x1d3c59[_0x410586(0x1e2)])?_0x1d3c59[_0x410586(0x1e2)]:[];let _0x497484=_0x346189[_0x410586(0x207)](_0x597117=>normalizeField(_0x597117))['filter'](_0x3036cf=>_0x3036cf!==null);_0x497484[_0x410586(0x20a)]===0x0&&(_0x497484=await loadListFieldFallback(_0x4a654a['appCode'],_0x4a654a[_0x410586(0x210)](_0x410586(0x1ce))));const _0x18308f=_0x1d3c59[_0x410586(0x206)]??{},_0x267b78=[];for(const [_0x5c93f6,_0x469829]of Object['entries'](_0x18308f)){const _0x1ed7ae=normalizeOperationEntry(_0x5c93f6,_0x469829);if(_0x1ed7ae)_0x267b78[_0x410586(0x1e0)](_0x1ed7ae);}const _0x799db8=isRecord(_0x1d3c59[_0x410586(0x1d1)])?_0x1d3c59[_0x410586(0x1d1)]:{},_0x4a277c=isRecord(_0x1d3c59[_0x410586(0x200)])?_0x1d3c59['dataset']:{},_0x625b98=_0x799db8[_0x410586(0x20d)]!=null?{'id':_0x799db8[_0x410586(0x20d)],'name':_0x799db8[_0x410586(0x1d2)]??null}:undefined;let _0x57a70a;return typeof _0x1d3c59['extend']===_0x410586(0x1ed)&&(_0x57a70a=parseJsonMaybe(_0x1d3c59[_0x410586(0x204)])),{'ok':!![],'data':{'id':_0x1d3c59['modelId']??_0x1d3c59['id'],'name':_0x1d3c59['name'],'code':_0x1d3c59[_0x410586(0x1f3)]||_0x1d3c59[_0x410586(0x1ce)],'doVersion':_0x1d3c59[_0x410586(0x1cf)],'description':_0x1d3c59[_0x410586(0x1e9)]||_0x4a277c[_0x410586(0x1f8)]||undefined,'source':_0x1d3c59[_0x410586(0x1d4)]||_0x4a277c['sourceType'],'table':_0x799db8[_0x410586(0x1f5)]||_0x4a277c[_0x410586(0x1f5)],'datasetKey':_0x799db8[_0x410586(0x1c7)],'pk':_0x799db8[_0x410586(0x20c)],'db':_0x625b98,'dbtable':summarizeDbtable(_0x799db8),'fields':_0x497484,'operations':_0x267b78,'indexes':Array[_0x410586(0x1cc)](_0x4a277c[_0x410586(0x1cb)])?_0x4a277c[_0x410586(0x1cb)]:[],'relations':_0x1d3c59[_0x410586(0x1f2)]??null,'relatedPages':normalizeRelatedPages(_0x1d3c59['relatedPageInfoList']),...Array[_0x410586(0x1cc)](_0x1d3c59['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x1d3c59[_0x410586(0x1e7)]}:{},'formatRules':Array['isArray'](_0x1d3c59[_0x410586(0x1ee)])?_0x1d3c59[_0x410586(0x1ee)]:[],'validateRules':Array[_0x410586(0x1cc)](_0x1d3c59[_0x410586(0x1e6)])?_0x1d3c59['validateRules']:[],..._0x57a70a!==undefined?{'extend':_0x57a70a}:{},'stats':{'fieldCount':_0x497484[_0x410586(0x20a)],'operationCount':_0x267b78['length']}}};}};
@@ -1 +1 @@
1
- function a29_0x5254(){const _0x486f81=['821832cKCCKP','1840808unexOT','246gklRqW','659720GWRHlB','795874KxsgfW','17530FhGvRp','470968bHqGte','63gHvuIE','1684704GfdDkB'];a29_0x5254=function(){return _0x486f81;};return a29_0x5254();}(function(_0x227216,_0x4e59ad){const _0x57fb33=a29_0x185b,_0x1f3317=_0x227216();while(!![]){try{const _0x398429=-parseInt(_0x57fb33(0xfb))/0x1+-parseInt(_0x57fb33(0xf9))/0x2+-parseInt(_0x57fb33(0xf5))/0x3+parseInt(_0x57fb33(0xf8))/0x4+-parseInt(_0x57fb33(0xfa))/0x5*(parseInt(_0x57fb33(0xf7))/0x6)+-parseInt(_0x57fb33(0xfd))/0x7+-parseInt(_0x57fb33(0xf6))/0x8*(-parseInt(_0x57fb33(0xfc))/0x9);if(_0x398429===_0x4e59ad)break;else _0x1f3317['push'](_0x1f3317['shift']());}catch(_0x42a7b2){_0x1f3317['push'](_0x1f3317['shift']());}}}(a29_0x5254,0x3ca32));function a29_0x185b(_0x5de1cb,_0x14c9fa){_0x5de1cb=_0x5de1cb-0xf5;const _0x525438=a29_0x5254();let _0x185b36=_0x525438[_0x5de1cb];return _0x185b36;}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(_0x10f919,_0x182c74){const _0x3f7b23=a29_0x41e4,_0x1bf89e=_0x10f919();while(!![]){try{const _0x5124f6=parseInt(_0x3f7b23(0xde))/0x1+-parseInt(_0x3f7b23(0xe5))/0x2*(-parseInt(_0x3f7b23(0xe0))/0x3)+-parseInt(_0x3f7b23(0xdc))/0x4+-parseInt(_0x3f7b23(0xdd))/0x5+parseInt(_0x3f7b23(0xe3))/0x6+parseInt(_0x3f7b23(0xdf))/0x7*(-parseInt(_0x3f7b23(0xe1))/0x8)+parseInt(_0x3f7b23(0xe4))/0x9*(parseInt(_0x3f7b23(0xe2))/0xa);if(_0x5124f6===_0x182c74)break;else _0x1bf89e['push'](_0x1bf89e['shift']());}catch(_0x128efd){_0x1bf89e['push'](_0x1bf89e['shift']());}}}(a29_0x5c94,0x853a1));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a29_0x41e4(_0x185e60,_0x2aa547){_0x185e60=_0x185e60-0xdc;const _0x5c94ab=a29_0x5c94();let _0x41e45a=_0x5c94ab[_0x185e60];return _0x41e45a;}function a29_0x5c94(){const _0x27d78c=['1178000djGjEB','5354400waDgoW','845023fSeatM','217xGfqoG','660252BpRlZP','9528MmfwaL','660KxRkWb','963678MTiyvb','68481tkXdhD','4yqFskC'];a29_0x5c94=function(){return _0x27d78c;};return a29_0x5c94();}
@@ -1 +1 @@
1
- function a30_0x406b(){const _0x5398c4=['datasetKey','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','740842IYkmdW','14937DVRtCV','9588978viUrkm','code','length','table-name','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','133664GHYeWN','658205OuGbKg','str','628mRtYTi','read','56wbLRWg','24668974mXzqfg','dbtableConfig','8334080LVfsEH','allFields','source','name','48hRWGlc','string','map','pkField','trim','1pRAAcQ','split','list','appCode','tableName'];a30_0x406b=function(){return _0x5398c4;};return a30_0x406b();}const a30_0x1df73e=a30_0x1389;(function(_0x5ef59e,_0x2d0a15){const _0x2686e6=a30_0x1389,_0x50f20e=_0x5ef59e();while(!![]){try{const _0x430c70=parseInt(_0x2686e6(0x128))/0x1*(parseInt(_0x2686e6(0x130))/0x2)+-parseInt(_0x2686e6(0x131))/0x3*(-parseInt(_0x2686e6(0x13a))/0x4)+parseInt(_0x2686e6(0x138))/0x5*(-parseInt(_0x2686e6(0x123))/0x6)+parseInt(_0x2686e6(0x13c))/0x7*(parseInt(_0x2686e6(0x137))/0x8)+-parseInt(_0x2686e6(0x132))/0x9+-parseInt(_0x2686e6(0x11f))/0xa+parseInt(_0x2686e6(0x13d))/0xb;if(_0x430c70===_0x2d0a15)break;else _0x50f20e['push'](_0x50f20e['shift']());}catch(_0xe20e35){_0x50f20e['push'](_0x50f20e['shift']());}}}(a30_0x406b,0x8cbbc));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a30_0x1389(_0x1def19,_0x235ac1){_0x1def19=_0x1def19-0x11f;const _0x406b99=a30_0x406b();let _0x138953=_0x406b99[_0x1def19];return _0x138953;}export const datasetList={'service':'dataset','command':a30_0x1df73e(0x12a),'description':a30_0x1df73e(0x12e),'risk':a30_0x1df73e(0x13b),'flags':[{'name':'name','type':a30_0x1df73e(0x124),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{'name':'table-name','type':a30_0x1df73e(0x124),'description':a30_0x1df73e(0x12f)},{...CODE_FLAG,'required':![],'description':a30_0x1df73e(0x136)}],async 'execute'(_0x440a3f){const _0x5d8129=a30_0x1df73e,_0x2688e3=_0x440a3f[_0x5d8129(0x139)](_0x5d8129(0x122)),_0x8ff4a2=_0x440a3f['str'](_0x5d8129(0x133)),_0x229e68=_0x440a3f[_0x5d8129(0x139)](_0x5d8129(0x135)),_0x1d2ba7=await listDatasets(_0x440a3f[_0x5d8129(0x12b)],{..._0x2688e3&&{'name':_0x2688e3},..._0x8ff4a2&&{'code':_0x8ff4a2},..._0x229e68&&{'tableName':_0x229e68}});return{'ok':!![],'data':{'total':_0x1d2ba7[_0x5d8129(0x134)],'datasets':_0x1d2ba7[_0x5d8129(0x125)](_0x31c149=>{const _0x28a1ce=_0x5d8129,_0x41f242=_0x31c149[_0x28a1ce(0x13e)]??{};return{'id':_0x31c149['id'],'code':_0x31c149['code'],'name':_0x31c149['name'],'source':_0x31c149[_0x28a1ce(0x121)],'description':_0x31c149['description'],'table':_0x41f242[_0x28a1ce(0x12c)],'datasetKey':_0x41f242[_0x28a1ce(0x12d)],'pk':_0x41f242[_0x28a1ce(0x126)],'fields':_0x41f242[_0x28a1ce(0x120)]?_0x41f242[_0x28a1ce(0x120)][_0x28a1ce(0x129)](',')['map'](_0x25c017=>_0x25c017[_0x28a1ce(0x127)]()):[]};})}};}};
1
+ function a30_0x42b4(_0x37ddb2,_0x1d4884){_0x37ddb2=_0x37ddb2-0xfd;const _0x97f1ef=a30_0x97f1();let _0x42b40e=_0x97f1ef[_0x37ddb2];return _0x42b40e;}const a30_0x139231=a30_0x42b4;(function(_0x2340b6,_0x18999a){const _0x223f2a=a30_0x42b4,_0x1eb1a3=_0x2340b6();while(!![]){try{const _0x3520c7=-parseInt(_0x223f2a(0x113))/0x1+parseInt(_0x223f2a(0x112))/0x2+-parseInt(_0x223f2a(0xfd))/0x3*(parseInt(_0x223f2a(0x103))/0x4)+-parseInt(_0x223f2a(0x101))/0x5+-parseInt(_0x223f2a(0x10b))/0x6+-parseInt(_0x223f2a(0x10f))/0x7+-parseInt(_0x223f2a(0x104))/0x8*(-parseInt(_0x223f2a(0x10d))/0x9);if(_0x3520c7===_0x18999a)break;else _0x1eb1a3['push'](_0x1eb1a3['shift']());}catch(_0x28905b){_0x1eb1a3['push'](_0x1eb1a3['shift']());}}}(a30_0x97f1,0x546bf));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x139231(0x106),'command':a30_0x139231(0x116),'description':a30_0x139231(0x10a),'risk':a30_0x139231(0x100),'flags':[{'name':'name','type':a30_0x139231(0x102),'description':a30_0x139231(0x107)},{'name':a30_0x139231(0xff),'type':a30_0x139231(0x102),'description':'Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)'},{...CODE_FLAG,'required':![],'description':a30_0x139231(0x108)}],async 'execute'(_0x213c32){const _0x4b6265=a30_0x139231,_0x2a1c48=_0x213c32[_0x4b6265(0x10e)]('name'),_0x5e5b73=_0x213c32[_0x4b6265(0x10e)](_0x4b6265(0x115)),_0x3f6aa9=_0x213c32[_0x4b6265(0x10e)]('table-name'),_0x4413ba=await listDatasets(_0x213c32[_0x4b6265(0x111)],{..._0x2a1c48&&{'name':_0x2a1c48},..._0x5e5b73&&{'code':_0x5e5b73},..._0x3f6aa9&&{'tableName':_0x3f6aa9}});return{'ok':!![],'data':{'total':_0x4413ba[_0x4b6265(0x10c)],'datasets':_0x4413ba[_0x4b6265(0x114)](_0x306177=>{const _0x2c373a=_0x4b6265,_0x2a8292=_0x306177['dbtableConfig']??{};return{'id':_0x306177['id'],'code':_0x306177[_0x2c373a(0x115)],'name':_0x306177['name'],'source':_0x306177['source'],'description':_0x306177[_0x2c373a(0xfe)],'table':_0x2a8292['tableName'],'datasetKey':_0x2a8292[_0x2c373a(0x109)],'pk':_0x2a8292['pkField'],'fields':_0x2a8292[_0x2c373a(0x110)]?_0x2a8292[_0x2c373a(0x110)]['split'](',')[_0x2c373a(0x114)](_0x2947f3=>_0x2947f3[_0x2c373a(0x105)]()):[]};})}};}};function a30_0x97f1(){const _0xbc0456=['description','table-name','read','3023930uFVkPN','string','5312CCpxmw','9603224KuKvWs','trim','dataset','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','datasetKey','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','280614GQkknZ','length','9svknht','str','1023050uASraY','allFields','appCode','1341586jIxkRm','673252WFXBrH','map','code','list','123IvNeGd'];a30_0x97f1=function(){return _0xbc0456;};return a30_0x97f1();}
@@ -1 +1 @@
1
- const a31_0x287cd7=a31_0x3b42;(function(_0x13000a,_0x28e38c){const _0x239618=a31_0x3b42,_0x4db262=_0x13000a();while(!![]){try{const _0x542c81=-parseInt(_0x239618(0x1d8))/0x1+-parseInt(_0x239618(0x1d4))/0x2+-parseInt(_0x239618(0x1dc))/0x3*(parseInt(_0x239618(0x1df))/0x4)+-parseInt(_0x239618(0x1d2))/0x5*(parseInt(_0x239618(0x1d0))/0x6)+parseInt(_0x239618(0x1ce))/0x7*(parseInt(_0x239618(0x1d3))/0x8)+-parseInt(_0x239618(0x1d5))/0x9+parseInt(_0x239618(0x1d6))/0xa;if(_0x542c81===_0x28e38c)break;else _0x4db262['push'](_0x4db262['shift']());}catch(_0x5bc52e){_0x4db262['push'](_0x4db262['shift']());}}}(a31_0x46f8,0x8a01a));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a31_0x46f8(){const _0x396868=['dataset','270gpTQwd','233624LpXYzz','1077586xLKIOB','9837954wrEEuB','36738640dxSJnn','appCode','619923utJqFA','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','str','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','3oiKVOf','code','string','2203428tXsvYC','35nRSSCl','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','50214xMvZOl'];a31_0x46f8=function(){return _0x396868;};return a31_0x46f8();}function a31_0x3b42(_0x33961a,_0x29d74b){_0x33961a=_0x33961a-0x1ce;const _0x46f882=a31_0x46f8();let _0x3b4218=_0x46f882[_0x33961a];return _0x3b4218;}const DEFAULT_MARKDOWN=a31_0x287cd7(0x1d9);export function formatDatasetSdkMarkdown(_0x22151e){const _0x3b9fa8=a31_0x287cd7,_0x4571c7=typeof _0x22151e===_0x3b9fa8(0x1de)?_0x22151e['trim']():'';return _0x4571c7||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x287cd7(0x1d1),'command':'sdk-doc','description':a31_0x287cd7(0x1db),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x287cd7(0x1cf)}],async 'execute'(_0x539a9e){const _0x383c22=a31_0x287cd7,_0x52dbc5=_0x539a9e[_0x383c22(0x1da)](_0x383c22(0x1dd)),_0x36eac3=await getDatasetSdkUsageDoc(_0x52dbc5,_0x539a9e[_0x383c22(0x1d7)]);return{'ok':!![],'data':{'code':_0x52dbc5,'appCode':_0x539a9e[_0x383c22(0x1d7)],'markdown':formatDatasetSdkMarkdown(_0x36eac3)}};}};
1
+ const a31_0x3df5bb=a31_0x4e65;(function(_0x3bcaf0,_0x263580){const _0x5d47af=a31_0x4e65,_0x3758a0=_0x3bcaf0();while(!![]){try{const _0x836446=-parseInt(_0x5d47af(0x16a))/0x1+parseInt(_0x5d47af(0x172))/0x2+-parseInt(_0x5d47af(0x16c))/0x3+-parseInt(_0x5d47af(0x16e))/0x4*(-parseInt(_0x5d47af(0x16f))/0x5)+-parseInt(_0x5d47af(0x169))/0x6+parseInt(_0x5d47af(0x167))/0x7*(parseInt(_0x5d47af(0x173))/0x8)+parseInt(_0x5d47af(0x16b))/0x9;if(_0x836446===_0x263580)break;else _0x3758a0['push'](_0x3758a0['shift']());}catch(_0x1aab3f){_0x3758a0['push'](_0x3758a0['shift']());}}}(a31_0x2d61,0xb78d3));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';function a31_0x4e65(_0x139b79,_0x907cca){_0x139b79=_0x139b79-0x165;const _0x2d6135=a31_0x2d61();let _0x4e6571=_0x2d6135[_0x139b79];return _0x4e6571;}export function formatDatasetSdkMarkdown(_0x2de21d){const _0x3d968b=typeof _0x2de21d==='string'?_0x2de21d['trim']():'';return _0x3d968b||DEFAULT_MARKDOWN;}function a31_0x2d61(){const _0x106238=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','49aPGRUW','code','4674654QTUraa','175055CfDNOj','5196537daOxKJ','2801991CXxYtX','dataset','374712ZhmFJY','45tlwRdb','str','sdk-doc','2039328duwwTH','228376EEtWFK','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code'];a31_0x2d61=function(){return _0x106238;};return a31_0x2d61();}export const datasetSdkDoc={'service':a31_0x3df5bb(0x16d),'command':a31_0x3df5bb(0x171),'description':a31_0x3df5bb(0x165),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x3df5bb(0x166)}],async 'execute'(_0x18687a){const _0x165f8f=a31_0x3df5bb,_0x399a49=_0x18687a[_0x165f8f(0x170)](_0x165f8f(0x168)),_0x48480f=await getDatasetSdkUsageDoc(_0x399a49,_0x18687a['appCode']);return{'ok':!![],'data':{'code':_0x399a49,'appCode':_0x18687a['appCode'],'markdown':formatDatasetSdkMarkdown(_0x48480f)}};}};
@@ -1 +1 @@
1
- const a32_0x7ce924=a32_0x3cf5;(function(_0x1801e6,_0x4e9b2e){const _0x444150=a32_0x3cf5,_0x512ae9=_0x1801e6();while(!![]){try{const _0x2248c9=-parseInt(_0x444150(0x22a))/0x1+-parseInt(_0x444150(0x1f5))/0x2*(-parseInt(_0x444150(0x225))/0x3)+parseInt(_0x444150(0x1ec))/0x4*(-parseInt(_0x444150(0x23e))/0x5)+parseInt(_0x444150(0x206))/0x6+parseInt(_0x444150(0x248))/0x7*(-parseInt(_0x444150(0x21f))/0x8)+-parseInt(_0x444150(0x21e))/0x9*(-parseInt(_0x444150(0x24e))/0xa)+-parseInt(_0x444150(0x245))/0xb*(-parseInt(_0x444150(0x255))/0xc);if(_0x2248c9===_0x4e9b2e)break;else _0x512ae9['push'](_0x512ae9['shift']());}catch(_0x4f5432){_0x512ae9['push'](_0x512ae9['shift']());}}}(a32_0xc07e,0x1b7c7));import a32_0x45ada8 from'chalk';function a32_0xc07e(){const _0x53a9a1=['\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','\x20\x20Legacy\x20inherit:\x20\x20\x20','name','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','services','state','✓\x20Loaded','packageVersion','accessKey','platform','\x20config\x20delete\x20region','\x20commands)','603600cktgeV','(not\x20found)','\x20config','verbose','(removed\x20—\x20cookie\x20auth\x20disabled)','length','region','serviceCount','registryPath','\x20\x20Routing\x20Configuration','missing','read','commandCount','appCode','(missing)','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','str','inherit','hasOwnProperty','appcode','\x20\x20Repair\x20global:\x20\x20\x20\x20','(no\x20file)','message','27isvLwl','8YBGnkZ','red','green','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','skillVersion','3AEzRqB','\x20Imported\x20from:\x20','\x20\x20Config\x20Files','\x20config\x20delete\x20inherit\x20--global','globalConfig','210238jpnUek','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20AK\x20source:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','✗\x20Invalid','repairCommand','\x20+\x20','\x20\x20Session\x20check:\x20\x20\x20','installedPath','project','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','status','path','✓\x20Valid\x20JSON','\x20\x20Auth','5ngfMDr','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','bold','includes','\x20\x20Repair\x20project:\x20\x20','\x20\x20─','⚠\x20Empty','6083GjNnaB','(none)','global','3913Jprunf','\x20config\x20delete\x20inherit','\x20\x20runtimeDomain:\x20\x20\x20','(default:\x20','(set,\x20length=','env','75610zxHXxS','log','padEnd','projectConfig','reason','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','format','3228tclcjx','repeat','call','current','check','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing\x20--global','doctor','Project','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','accessKeySource','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20\x20API\x20Endpoints','(not\x20set)','currentApp','riskLevel','arch','\x20config\x20init','locale','empty','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','yellow','gray','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','165508ZamFwD','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20doctor','filter','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','ignored\x20in\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','185434MSarOa','\x20\x20Repair\x20global:\x20\x20\x20','prototype'];a32_0xc07e=function(){return _0x53a9a1;};return a32_0xc07e();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a32_0x3cf5(_0x37375b,_0x9d6b2){_0x37375b=_0x37375b-0x1e6;const _0xc07e5c=a32_0xc07e();let _0x3cf58b=_0xc07e5c[_0x37375b];return _0x3cf58b;}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(_0x219ab6){const _0x1a99a9=a32_0x3cf5,_0x152247=getCliVersion(),_0x115136=buildConfigFromFlags({'app':_0x219ab6[_0x1a99a9(0x217)]?.('app'),'appcode':_0x219ab6[_0x1a99a9(0x217)]?.(_0x1a99a9(0x21a)),'env':_0x219ab6[_0x1a99a9(0x217)]?.(_0x1a99a9(0x24d))});let _0x4dafca,_0x2eda36;try{_0x4dafca=normalizeLovrabetRegion(_0x115136['raw']['region']);}catch(_0x449e00){_0x2eda36=_0x449e00 instanceof Error?_0x449e00:new Error(String(_0x449e00));}let _0x41a734;if(!_0x2eda36)try{await initGlobalEnvironment(_0x115136);}catch(_0x3f2b2b){_0x41a734=_0x3f2b2b instanceof Error?_0x3f2b2b:new Error(String(_0x3f2b2b));}console[_0x1a99a9(0x24f)](),console['log'](a32_0x45ada8['bold'](CLI_BIN_NAME+_0x1a99a9(0x1ef))),console['log'](a32_0x45ada8[_0x1a99a9(0x1ea)]('─'['repeat'](0x32))),console[_0x1a99a9(0x24f)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x152247),console['log'](_0x1a99a9(0x1fc)+process['version']),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1a99a9(0x203)]+'\x20'+process[_0x1a99a9(0x266)]);const _0x4f530e=inspectBuiltinSkill();console[_0x1a99a9(0x24f)](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)]('\x20\x20Built-in\x20Skill')),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x243)[_0x1a99a9(0x256)](0x1e))),console[_0x1a99a9(0x24f)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4f530e[_0x1a99a9(0x1ff)]===_0x1a99a9(0x258)?a32_0x45ada8[_0x1a99a9(0x221)]('✓\x20current'):a32_0x45ada8['red']('✗\x20'+_0x4f530e['state']))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x261)+_0x4f530e[_0x1a99a9(0x201)]),console[_0x1a99a9(0x24f)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x4f530e[_0x1a99a9(0x224)]||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x214)))),console['log'](_0x1a99a9(0x223)+(_0x4f530e[_0x1a99a9(0x236)]||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x207))));_0x4f530e[_0x1a99a9(0x1ff)]!==_0x1a99a9(0x258)&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x1ed)+_0x4f530e[_0x1a99a9(0x233)]);_0x4f530e['reason']&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x216)+_0x4f530e[_0x1a99a9(0x252)]);console[_0x1a99a9(0x24f)](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)](_0x1a99a9(0x227))),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x243)['repeat'](0x1e)));const _0x191707=getGlobalConfigPath(),_0x22f43e=getProjectConfigPath();console[_0x1a99a9(0x24f)](_0x1a99a9(0x25a)+(_0x191707||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x207)))),console['log'](_0x1a99a9(0x1e7)+(_0x22f43e||a32_0x45ada8['gray'](_0x1a99a9(0x207)))),console['log'](),console[_0x1a99a9(0x24f)](a32_0x45ada8['bold'](_0x1a99a9(0x22d))),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x1ea)]('\x20\x20─'['repeat'](0x1e)));const _0x45cdab=(_0x3f7d3c,_0x383079)=>{const _0x731664=_0x1a99a9;if(!_0x383079){console['log']('\x20\x20'+_0x3f7d3c[_0x731664(0x250)](0x11)+'\x20'+a32_0x45ada8['gray'](_0x731664(0x21c)));return;}const _0x328451=inspectCliConfigJsonFile(_0x383079);if(_0x328451[_0x731664(0x23a)]==='ok')console[_0x731664(0x24f)]('\x20\x20'+_0x3f7d3c[_0x731664(0x250)](0x11)+'\x20'+a32_0x45ada8[_0x731664(0x221)](_0x731664(0x23c)));else{if(_0x328451['status']===_0x731664(0x1e6))console['log']('\x20\x20'+_0x3f7d3c[_0x731664(0x250)](0x11)+'\x20'+a32_0x45ada8[_0x731664(0x1e9)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x328451['status']===_0x731664(0x210)?console['log']('\x20\x20'+_0x3f7d3c['padEnd'](0x11)+'\x20'+a32_0x45ada8[_0x731664(0x1ea)](_0x731664(0x214))):(console['log']('\x20\x20'+_0x3f7d3c[_0x731664(0x250)](0x11)+'\x20'+a32_0x45ada8[_0x731664(0x220)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x731664(0x250)](0x11)+'\x20'+a32_0x45ada8[_0x731664(0x220)](_0x328451['message'])));}};_0x45cdab(_0x1a99a9(0x1fd),_0x191707),_0x45cdab(_0x1a99a9(0x25d),_0x22f43e);const _0x49fa5c=loadRawConfigLayers(),_0x8bba2c=[Object[_0x1a99a9(0x1f7)]['hasOwnProperty'][_0x1a99a9(0x257)](_0x49fa5c[_0x1a99a9(0x229)],_0x1a99a9(0x218))?_0x1a99a9(0x247):null,Object[_0x1a99a9(0x1f7)][_0x1a99a9(0x219)][_0x1a99a9(0x257)](_0x49fa5c[_0x1a99a9(0x251)],_0x1a99a9(0x218))?_0x1a99a9(0x237):null][_0x1a99a9(0x1f0)](Boolean);_0x8bba2c[_0x1a99a9(0x20b)]>0x0&&(console['log'](_0x1a99a9(0x1fa)+a32_0x45ada8[_0x1a99a9(0x1e9)](_0x1a99a9(0x1f3)+_0x8bba2c['join'](_0x1a99a9(0x234))+_0x1a99a9(0x208))),_0x8bba2c[_0x1a99a9(0x241)](_0x1a99a9(0x237))&&console[_0x1a99a9(0x24f)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x1a99a9(0x249)),_0x8bba2c[_0x1a99a9(0x241)](_0x1a99a9(0x247))&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x21b)+CLI_BIN_NAME+_0x1a99a9(0x228)));_0x41a734&&(console[_0x1a99a9(0x24f)](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)](_0x1a99a9(0x20f))),console[_0x1a99a9(0x24f)](a32_0x45ada8['gray']('\x20\x20─'[_0x1a99a9(0x256)](0x1e))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x260)+a32_0x45ada8['red'](_0x1a99a9(0x232))),console[_0x1a99a9(0x24f)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x41a734['message']),Object[_0x1a99a9(0x1f7)][_0x1a99a9(0x219)]['call'](_0x49fa5c['projectConfig'],'routing')&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x242)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x1a99a9(0x219)][_0x1a99a9(0x257)](_0x49fa5c['globalConfig'],'routing')&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f6)+CLI_BIN_NAME+_0x1a99a9(0x25b)));_0x2eda36&&(console['log'](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)](_0x1a99a9(0x22f))),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x243)[_0x1a99a9(0x256)](0x1e))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x260)+a32_0x45ada8['red'](_0x1a99a9(0x232))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x216)+_0x2eda36[_0x1a99a9(0x21d)]),Object[_0x1a99a9(0x1f7)][_0x1a99a9(0x219)]['call'](_0x49fa5c[_0x1a99a9(0x251)],_0x1a99a9(0x20c))&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x242)+CLI_BIN_NAME+_0x1a99a9(0x204)),Object[_0x1a99a9(0x1f7)][_0x1a99a9(0x219)][_0x1a99a9(0x257)](_0x49fa5c[_0x1a99a9(0x229)],_0x1a99a9(0x20c))&&console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f6)+CLI_BIN_NAME+_0x1a99a9(0x267)));console[_0x1a99a9(0x24f)](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)](_0x1a99a9(0x231))),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x1ea)]('\x20\x20─'[_0x1a99a9(0x256)](0x1e))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f1)+(_0x115136[_0x1a99a9(0x213)]||a32_0x45ada8[_0x1a99a9(0x220)](_0x1a99a9(0x263)))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f8)+(_0x4dafca??a32_0x45ada8['red']('(invalid)'))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x22e)+_0x115136[_0x1a99a9(0x268)]),console['log'](_0x1a99a9(0x253)+(_0x115136['defaultApp']||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x246)))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x238)+(_0x115136[_0x1a99a9(0x264)]||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x246)))),console[_0x1a99a9(0x24f)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x115136[_0x1a99a9(0x254)]||a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x24b)+DEFAULT_CONFIG_VALUES[_0x1a99a9(0x254)]+')'))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x1eb)+(_0x115136[_0x1a99a9(0x1e8)]??a32_0x45ada8[_0x1a99a9(0x1ea)]('(default)'))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x22b)+_0x115136[_0x1a99a9(0x265)]),console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f4)+_0x115136[_0x1a99a9(0x209)]),console[_0x1a99a9(0x24f)](_0x1a99a9(0x1f2)+AUTH_MODE['ClientAk']);if(_0x115136[_0x1a99a9(0x25f)])console[_0x1a99a9(0x24f)](_0x1a99a9(0x230)+_0x115136[_0x1a99a9(0x25f)]);console[_0x1a99a9(0x24f)](_0x1a99a9(0x25e)+(_0x115136[_0x1a99a9(0x202)]?a32_0x45ada8[_0x1a99a9(0x221)](_0x1a99a9(0x24c)+_0x115136[_0x1a99a9(0x202)][_0x1a99a9(0x20b)]+')'):a32_0x45ada8[_0x1a99a9(0x1ea)](_0x1a99a9(0x246)))),console['log'](),console[_0x1a99a9(0x24f)](a32_0x45ada8['bold'](_0x1a99a9(0x262))),console[_0x1a99a9(0x24f)](a32_0x45ada8['gray']('\x20\x20─'[_0x1a99a9(0x256)](0x1e)));_0x41a734||_0x2eda36?console[_0x1a99a9(0x24f)](_0x1a99a9(0x260)+a32_0x45ada8[_0x1a99a9(0x220)](_0x1a99a9(0x23f))):(console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1a99a9(0x24f)](_0x1a99a9(0x24a)+getRuntimeDomain()),console[_0x1a99a9(0x24f)](_0x1a99a9(0x22c)+getSkillDomain()),console[_0x1a99a9(0x24f)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??'not\x20configured')));console[_0x1a99a9(0x24f)](),console['log'](a32_0x45ada8[_0x1a99a9(0x240)]('\x20\x20Service\x20Tree')),console['log'](a32_0x45ada8['gray']('\x20\x20─'[_0x1a99a9(0x256)](0x1e)));const _0x2a0772=inspectServiceRegistry();console[_0x1a99a9(0x24f)](_0x1a99a9(0x215)+_0x2a0772[_0x1a99a9(0x20e)]),console[_0x1a99a9(0x24f)](_0x1a99a9(0x260)+formatServiceRegistryStatus(_0x2a0772)),console[_0x1a99a9(0x24f)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2a0772[_0x1a99a9(0x20d)]),console[_0x1a99a9(0x24f)](_0x1a99a9(0x239)+_0x2a0772['commandCount']);for(const _0x3385e0 of _0x2a0772[_0x1a99a9(0x1fe)]){console[_0x1a99a9(0x24f)]('\x20\x20'+(_0x3385e0['serviceCode']+':')[_0x1a99a9(0x250)](0x11)+'\x20'+(_0x3385e0[_0x1a99a9(0x1fb)]||a32_0x45ada8[_0x1a99a9(0x1ea)]('(unnamed)'))+'\x20('+_0x3385e0[_0x1a99a9(0x212)]+_0x1a99a9(0x205)),console['log']('\x20\x20'+''['padEnd'](0x11)+_0x1a99a9(0x226)+_0x3385e0[_0x1a99a9(0x1ee)][_0x1a99a9(0x23b)]);}return console[_0x1a99a9(0x24f)](),console[_0x1a99a9(0x24f)](a32_0x45ada8[_0x1a99a9(0x240)](_0x1a99a9(0x23d))),console['log'](a32_0x45ada8[_0x1a99a9(0x1ea)]('\x20\x20─'[_0x1a99a9(0x256)](0x1e))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x222)+a32_0x45ada8[_0x1a99a9(0x221)](AUTH_MODE['ClientAk']+_0x1a99a9(0x1f9))),console[_0x1a99a9(0x24f)](_0x1a99a9(0x235)+a32_0x45ada8['gray'](_0x1a99a9(0x20a))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x9d4e8d){const _0x1464f6=a32_0x3cf5;if(_0x9d4e8d['status']==='ok')return a32_0x45ada8[_0x1464f6(0x221)](_0x1464f6(0x200));if(_0x9d4e8d['status']===_0x1464f6(0x210))return a32_0x45ada8[_0x1464f6(0x1ea)](_0x1464f6(0x207));if(_0x9d4e8d[_0x1464f6(0x23a)]===_0x1464f6(0x1e6))return a32_0x45ada8[_0x1464f6(0x1e9)](_0x1464f6(0x244));return a32_0x45ada8['red'](_0x1464f6(0x232)+(_0x9d4e8d[_0x1464f6(0x21d)]?':\x20'+_0x9d4e8d[_0x1464f6(0x21d)]:''));}export const doctorDefinition={'service':a32_0x7ce924(0x25c),'command':a32_0x7ce924(0x259),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a32_0x7ce924(0x211),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x231fd9=a32_0x3c2f;(function(_0xe1eb45,_0x2ae341){const _0x5ed81a=a32_0x3c2f,_0x30954a=_0xe1eb45();while(!![]){try{const _0x32a147=parseInt(_0x5ed81a(0x10c))/0x1*(-parseInt(_0x5ed81a(0xb9))/0x2)+-parseInt(_0x5ed81a(0xf6))/0x3*(parseInt(_0x5ed81a(0x10e))/0x4)+-parseInt(_0x5ed81a(0xa4))/0x5+-parseInt(_0x5ed81a(0xd2))/0x6*(parseInt(_0x5ed81a(0x119))/0x7)+parseInt(_0x5ed81a(0xd7))/0x8+parseInt(_0x5ed81a(0xbe))/0x9+-parseInt(_0x5ed81a(0xea))/0xa*(-parseInt(_0x5ed81a(0x11c))/0xb);if(_0x32a147===_0x2ae341)break;else _0x30954a['push'](_0x30954a['shift']());}catch(_0x1e0b3c){_0x30954a['push'](_0x30954a['shift']());}}}(a32_0x4278,0x2aadb));import a32_0x42b3f0 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_0x4278(){const _0x148631=['\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','537850gcmyWW','\x20\x20Config\x20Files','gray','\x20\x20Built-in\x20Skill','\x20+\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(default:\x20','riskLevel','message','includes','\x20\x20AK\x20source:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','status','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20Merged\x20Config','packageVersion','accessKey','red','\x20\x20Config\x20JSON','prototype','11734FLusZE','accessKeySource','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20Auth','1063755auLveR','ClientAk','\x20commands)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','✓\x20Loaded','str','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(invalid)','call','\x20\x20Repair\x20project:\x20\x20','green','✓\x20Valid\x20JSON','projectConfig','\x20\x20Country/Region\x20Configuration','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','missing','150gAcJWr','appCode','defaultApp','(default)','region','2640672WcGDFg','read','\x20config\x20delete\x20region','yellow','\x20config\x20init','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20config\x20delete\x20inherit\x20--global','\x20config\x20delete\x20routing\x20--global','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','platform','appcode','commandCount','global','✗\x20Invalid','repairCommand','1640wnjRQq','\x20\x20runtimeDomain:\x20\x20\x20','name','currentApp','\x20config','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','\x20config\x20delete\x20routing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','42ggNfcT','(none)','doctor','path','project','length','raw','filter','Project','Global','(not\x20found)','current','repeat','not\x20configured','\x20Imported\x20from:\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','join','registryPath','hasOwnProperty','format','services','✓\x20current','53HMfvRb','\x20\x20Repair\x20project:\x20\x20\x20','6620TWLiHe','✗\x20Invalid\x20JSON','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','version','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','arch','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20Repair\x20global:\x20\x20\x20\x20','inherit','80647XmAscz','app','(missing)','30602fBwnPg','\x20(accessKey)','installedPath','\x20\x20Installed\x20Path:\x20\x20','bold','ignored\x20in\x20','\x20\x20Skill\x20Version:\x20\x20\x20','routing','(unnamed)','padEnd','\x20\x20kbServiceDomain:\x20'];a32_0x4278=function(){return _0x148631;};return a32_0x4278();}async function execute(_0x16d79b){const _0x22ef33=a32_0x3c2f,_0x324433=getCliVersion(),_0x1d5c3e=buildConfigFromFlags({'app':_0x16d79b[_0x22ef33(0xc4)]?.(_0x22ef33(0x11a)),'appcode':_0x16d79b[_0x22ef33(0xc4)]?.(_0x22ef33(0xe5)),'env':_0x16d79b[_0x22ef33(0xc4)]?.('env')});let _0x28aa7e,_0x1c6cdf;try{_0x28aa7e=normalizeLovrabetRegion(_0x1d5c3e[_0x22ef33(0xfc)][_0x22ef33(0xd6)]);}catch(_0x283b6f){_0x1c6cdf=_0x283b6f instanceof Error?_0x283b6f:new Error(String(_0x283b6f));}let _0x5ab578;if(!_0x1c6cdf)try{await initGlobalEnvironment(_0x1d5c3e);}catch(_0x1f36c9){_0x5ab578=_0x1f36c9 instanceof Error?_0x1f36c9:new Error(String(_0x1f36c9));}console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)]('─'[_0x22ef33(0x102)](0x32))),console[_0x22ef33(0xc2)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x324433),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x22ef33(0x112)]),console[_0x22ef33(0xc2)](_0x22ef33(0xf4)+process[_0x22ef33(0xe4)]+'\x20'+process[_0x22ef33(0x114)]);const _0x1e3f38=inspectBuiltinSkill();console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xa7))),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)]('\x20\x20─'['repeat'](0x1e))),console['log'](_0x22ef33(0x110)+(_0x1e3f38[_0x22ef33(0xe3)]===_0x22ef33(0x101)?a32_0x42b3f0['green'](_0x22ef33(0x10b)):a32_0x42b3f0[_0x22ef33(0xb6)]('✗\x20'+_0x1e3f38['state']))),console[_0x22ef33(0xc2)](_0x22ef33(0xaf)+_0x1e3f38[_0x22ef33(0xb4)]),console[_0x22ef33(0xc2)](_0x22ef33(0x122)+(_0x1e3f38['skillVersion']||a32_0x42b3f0['gray'](_0x22ef33(0x11b)))),console[_0x22ef33(0xc2)](_0x22ef33(0x11f)+(_0x1e3f38[_0x22ef33(0x11e)]||a32_0x42b3f0[_0x22ef33(0xa6)]('(not\x20found)')));_0x1e3f38[_0x22ef33(0xe3)]!==_0x22ef33(0x101)&&console['log']('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1e3f38[_0x22ef33(0xe9)]);_0x1e3f38['reason']&&console['log'](_0x22ef33(0xc6)+_0x1e3f38['reason']);console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xa5))),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xb2)['repeat'](0x1e)));const _0x94db51=getGlobalConfigPath(),_0x25a5bf=getProjectConfigPath();console['log'](_0x22ef33(0xef)+(_0x94db51||a32_0x42b3f0[_0x22ef33(0xa6)]('(not\x20found)'))),console[_0x22ef33(0xc2)](_0x22ef33(0x115)+(_0x25a5bf||a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0x100)))),console['log'](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xb7))),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)]('\x20\x20─'[_0x22ef33(0x102)](0x1e)));const _0x69f916=(_0x518e67,_0x5391f4)=>{const _0x2cc349=_0x22ef33;if(!_0x5391f4){console[_0x2cc349(0xc2)]('\x20\x20'+_0x518e67[_0x2cc349(0xa0)](0x11)+'\x20'+a32_0x42b3f0[_0x2cc349(0xa6)]('(no\x20file)'));return;}const _0x30452c=inspectCliConfigJsonFile(_0x5391f4);if(_0x30452c[_0x2cc349(0xb0)]==='ok')console[_0x2cc349(0xc2)]('\x20\x20'+_0x518e67[_0x2cc349(0xa0)](0x11)+'\x20'+a32_0x42b3f0[_0x2cc349(0xca)](_0x2cc349(0xcb)));else{if(_0x30452c[_0x2cc349(0xb0)]==='empty')console['log']('\x20\x20'+_0x518e67['padEnd'](0x11)+'\x20'+a32_0x42b3f0[_0x2cc349(0xda)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x30452c[_0x2cc349(0xb0)]===_0x2cc349(0xd1)?console[_0x2cc349(0xc2)]('\x20\x20'+_0x518e67[_0x2cc349(0xa0)](0x11)+'\x20'+a32_0x42b3f0[_0x2cc349(0xa6)](_0x2cc349(0x11b))):(console['log']('\x20\x20'+_0x518e67[_0x2cc349(0xa0)](0x11)+'\x20'+a32_0x42b3f0['red'](_0x2cc349(0x10f))),console[_0x2cc349(0xc2)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x42b3f0[_0x2cc349(0xb6)](_0x30452c['message'])));}};_0x69f916(_0x22ef33(0xff),_0x94db51),_0x69f916(_0x22ef33(0xfe),_0x25a5bf);const _0x20943e=loadRawConfigLayers(),_0x3f16b8=[Object[_0x22ef33(0xb8)][_0x22ef33(0x108)][_0x22ef33(0xc8)](_0x20943e[_0x22ef33(0xdf)],_0x22ef33(0x118))?_0x22ef33(0xe7):null,Object[_0x22ef33(0xb8)][_0x22ef33(0x108)][_0x22ef33(0xc8)](_0x20943e['projectConfig'],_0x22ef33(0x118))?_0x22ef33(0xfa):null][_0x22ef33(0xfd)](Boolean);_0x3f16b8[_0x22ef33(0xfb)]>0x0&&(console[_0x22ef33(0xc2)](_0x22ef33(0xa3)+a32_0x42b3f0['yellow'](_0x22ef33(0x121)+_0x3f16b8[_0x22ef33(0x106)](_0x22ef33(0xa8))+_0x22ef33(0xee))),_0x3f16b8[_0x22ef33(0xad)](_0x22ef33(0xfa))&&console['log'](_0x22ef33(0x10d)+CLI_BIN_NAME+_0x22ef33(0xf5)),_0x3f16b8[_0x22ef33(0xad)]('global')&&console[_0x22ef33(0xc2)](_0x22ef33(0x117)+CLI_BIN_NAME+_0x22ef33(0xe0)));_0x5ab578&&(console[_0x22ef33(0xc2)](),console['log'](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xf2))),console['log'](a32_0x42b3f0[_0x22ef33(0xa6)]('\x20\x20─'[_0x22ef33(0x102)](0x1e))),console[_0x22ef33(0xc2)](_0x22ef33(0xc5)+a32_0x42b3f0[_0x22ef33(0xb6)](_0x22ef33(0xe8))),console[_0x22ef33(0xc2)](_0x22ef33(0xc6)+_0x5ab578[_0x22ef33(0xac)]),Object['prototype'][_0x22ef33(0x108)]['call'](_0x20943e['projectConfig'],'routing')&&console[_0x22ef33(0xc2)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x22ef33(0xf3)),Object[_0x22ef33(0xb8)][_0x22ef33(0x108)][_0x22ef33(0xc8)](_0x20943e[_0x22ef33(0xdf)],_0x22ef33(0x9e))&&console[_0x22ef33(0xc2)](_0x22ef33(0xce)+CLI_BIN_NAME+_0x22ef33(0xe1)));_0x1c6cdf&&(console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xcd))),console[_0x22ef33(0xc2)](a32_0x42b3f0['gray'](_0x22ef33(0xb2)[_0x22ef33(0x102)](0x1e))),console[_0x22ef33(0xc2)](_0x22ef33(0xc5)+a32_0x42b3f0[_0x22ef33(0xb6)](_0x22ef33(0xe8))),console[_0x22ef33(0xc2)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c6cdf[_0x22ef33(0xac)]),Object[_0x22ef33(0xb8)][_0x22ef33(0x108)][_0x22ef33(0xc8)](_0x20943e[_0x22ef33(0xcc)],_0x22ef33(0xd6))&&console[_0x22ef33(0xc2)](_0x22ef33(0xc9)+CLI_BIN_NAME+_0x22ef33(0xd9)),Object[_0x22ef33(0xb8)][_0x22ef33(0x108)][_0x22ef33(0xc8)](_0x20943e[_0x22ef33(0xdf)],_0x22ef33(0xd6))&&console['log'](_0x22ef33(0xce)+CLI_BIN_NAME+_0x22ef33(0xdb)));console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xb3))),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xb2)[_0x22ef33(0x102)](0x1e))),console[_0x22ef33(0xc2)](_0x22ef33(0xde)+(_0x1d5c3e[_0x22ef33(0xd3)]||a32_0x42b3f0[_0x22ef33(0xb6)]('(not\x20set)'))),console[_0x22ef33(0xc2)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28aa7e??a32_0x42b3f0[_0x22ef33(0xb6)](_0x22ef33(0xc7)))),console['log']('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1d5c3e[_0x22ef33(0xdd)]),console['log'](_0x22ef33(0xd0)+(_0x1d5c3e[_0x22ef33(0xd4)]||a32_0x42b3f0['gray'](_0x22ef33(0xf7)))),console[_0x22ef33(0xc2)](_0x22ef33(0xf1)+(_0x1d5c3e[_0x22ef33(0xed)]||a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xf7)))),console[_0x22ef33(0xc2)](_0x22ef33(0xe2)+(_0x1d5c3e['format']||a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xaa)+DEFAULT_CONFIG_VALUES[_0x22ef33(0x109)]+')'))),console[_0x22ef33(0xc2)](_0x22ef33(0xcf)+(_0x1d5c3e['pageSize']??a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xd5)))),console[_0x22ef33(0xc2)](_0x22ef33(0xbb)+_0x1d5c3e[_0x22ef33(0xab)]),console[_0x22ef33(0xc2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d5c3e[_0x22ef33(0xbc)]),console[_0x22ef33(0xc2)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x22ef33(0xbf)]);if(_0x1d5c3e[_0x22ef33(0xba)])console[_0x22ef33(0xc2)](_0x22ef33(0xae)+_0x1d5c3e[_0x22ef33(0xba)]);console[_0x22ef33(0xc2)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x1d5c3e[_0x22ef33(0xb5)]?a32_0x42b3f0[_0x22ef33(0xca)]('(set,\x20length='+_0x1d5c3e['accessKey'][_0x22ef33(0xfb)]+')'):a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xf7)))),console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)]('\x20\x20API\x20Endpoints')),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xb2)[_0x22ef33(0x102)](0x1e)));_0x5ab578||_0x1c6cdf?console['log'](_0x22ef33(0xc5)+a32_0x42b3f0['red'](_0x22ef33(0x111))):(console[_0x22ef33(0xc2)](_0x22ef33(0xa2)+getApiDomain()),console['log'](_0x22ef33(0x113)+getUserDomain()),console[_0x22ef33(0xc2)](_0x22ef33(0xeb)+getRuntimeDomain()),console[_0x22ef33(0xc2)](_0x22ef33(0xa9)+getSkillDomain()),console['log'](_0x22ef33(0xa1)+(getKbServiceDomain()??_0x22ef33(0x103))));console[_0x22ef33(0xc2)](),console['log'](a32_0x42b3f0[_0x22ef33(0x120)]('\x20\x20Service\x20Tree')),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xb2)['repeat'](0x1e)));const _0x4039bc=inspectServiceRegistry();console[_0x22ef33(0xc2)](_0x22ef33(0x105)+_0x4039bc[_0x22ef33(0x107)]),console[_0x22ef33(0xc2)](_0x22ef33(0xc5)+formatServiceRegistryStatus(_0x4039bc)),console['log'](_0x22ef33(0xdc)+_0x4039bc[_0x22ef33(0xf0)]),console[_0x22ef33(0xc2)](_0x22ef33(0xb1)+_0x4039bc[_0x22ef33(0xe6)]);for(const _0x43a529 of _0x4039bc[_0x22ef33(0x10a)]){console[_0x22ef33(0xc2)]('\x20\x20'+(_0x43a529['serviceCode']+':')['padEnd'](0x11)+'\x20'+(_0x43a529[_0x22ef33(0xec)]||a32_0x42b3f0['gray'](_0x22ef33(0x9f)))+'\x20('+_0x43a529[_0x22ef33(0xe6)]+_0x22ef33(0xc0)),console['log']('\x20\x20'+''[_0x22ef33(0xa0)](0x11)+_0x22ef33(0x104)+_0x43a529['source'][_0x22ef33(0xf9)]);}return console[_0x22ef33(0xc2)](),console[_0x22ef33(0xc2)](a32_0x42b3f0[_0x22ef33(0x120)](_0x22ef33(0xbd))),console['log'](a32_0x42b3f0[_0x22ef33(0xa6)](_0x22ef33(0xb2)[_0x22ef33(0x102)](0x1e))),console[_0x22ef33(0xc2)](_0x22ef33(0xc1)+a32_0x42b3f0[_0x22ef33(0xca)](AUTH_MODE[_0x22ef33(0xbf)]+_0x22ef33(0x11d))),console[_0x22ef33(0xc2)]('\x20\x20Session\x20check:\x20\x20\x20'+a32_0x42b3f0['gray']('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x22ef33(0xc2)](),{'ok':!![]};}function a32_0x3c2f(_0x403bf1,_0x119b7a){_0x403bf1=_0x403bf1-0x9e;const _0x427863=a32_0x4278();let _0x3c2f7c=_0x427863[_0x403bf1];return _0x3c2f7c;}function formatServiceRegistryStatus(_0x1a4fa3){const _0x3897ae=a32_0x3c2f;if(_0x1a4fa3[_0x3897ae(0xb0)]==='ok')return a32_0x42b3f0[_0x3897ae(0xca)](_0x3897ae(0xc3));if(_0x1a4fa3['status']===_0x3897ae(0xd1))return a32_0x42b3f0[_0x3897ae(0xa6)](_0x3897ae(0x100));if(_0x1a4fa3[_0x3897ae(0xb0)]==='empty')return a32_0x42b3f0['yellow'](_0x3897ae(0x116));return a32_0x42b3f0[_0x3897ae(0xb6)](_0x3897ae(0xe8)+(_0x1a4fa3['message']?':\x20'+_0x1a4fa3[_0x3897ae(0xac)]:''));}export const doctorDefinition={'service':a32_0x231fd9(0xf8),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a32_0x231fd9(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x3221a9=a33_0x3552;(function(_0x4f1edd,_0x37da3d){const _0xfc2e9c=a33_0x3552,_0x11c17c=_0x4f1edd();while(!![]){try{const _0x10a8a7=parseInt(_0xfc2e9c(0x1f5))/0x1*(-parseInt(_0xfc2e9c(0x203))/0x2)+parseInt(_0xfc2e9c(0x1f6))/0x3*(parseInt(_0xfc2e9c(0x1f1))/0x4)+parseInt(_0xfc2e9c(0x200))/0x5*(-parseInt(_0xfc2e9c(0x209))/0x6)+parseInt(_0xfc2e9c(0x1ef))/0x7*(-parseInt(_0xfc2e9c(0x1fc))/0x8)+-parseInt(_0xfc2e9c(0x204))/0x9*(parseInt(_0xfc2e9c(0x20e))/0xa)+-parseInt(_0xfc2e9c(0x20b))/0xb+parseInt(_0xfc2e9c(0x1fe))/0xc;if(_0x10a8a7===_0x37da3d)break;else _0x11c17c['push'](_0x11c17c['shift']());}catch(_0x5a8336){_0x11c17c['push'](_0x11c17c['shift']());}}}(a33_0x2f8a,0x9a6fd));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x3552(_0x23d2d0,_0x58f518){_0x23d2d0=_0x23d2d0-0x1e9;const _0x2f8ab2=a33_0x2f8a();let _0x355209=_0x2f8ab2[_0x23d2d0];return _0x355209;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x3221a9(0x1f8),'type':'string','required':!![],'description':a33_0x3221a9(0x1ff)},DOWNLOAD_FLAG={'name':'download','type':a33_0x3221a9(0x1ec),'description':a33_0x3221a9(0x1f2)},LONG_TERM_FLAG={'name':a33_0x3221a9(0x1ea),'type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function a33_0x2f8a(){const _0x1a7a51=['Preview:\x20upload\x20','298YoMhPK','1845mpkqtj','trim','path','build','read','6RmfBPh','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','477851PNnmDm','\x20to\x20runtime\x20app\x20','filePath\x20is\x20required.','42630spRuMe','/client/uploadFile','long-term','str','boolean','appCode','query-url','827393tKRYEy','filePath','172iEJkAa','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','bool','file','5955PjWWEU','34851wmjJVV','Uploaded\x20file:\x20','filepath','download','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','upload','40zTrqWz','File','35156940lEubyI','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','2005285IMhCAV','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a33_0x2f8a=function(){return _0x1a7a51;};return a33_0x2f8a();}function requireFilePath(_0x5ec1c6){const _0x1aa6d6=a33_0x3221a9,_0x3dc46c=_0x5ec1c6[_0x1aa6d6(0x205)]();if(!_0x3dc46c)throw CliErrors['validation'](_0x1aa6d6(0x20d));return _0x3dc46c;}const fileUpload={'service':a33_0x3221a9(0x1f4),'command':a33_0x3221a9(0x1fb),'description':a33_0x3221a9(0x20a),'risk':a33_0x3221a9(0x208),'flags':[FILE_FLAG],async 'dryRun'(_0x5ae763){const _0x1382c4=a33_0x3221a9,_0x519a0a=requireRuntimeUploadFile(_0x5ae763[_0x1382c4(0x1eb)](_0x1382c4(0x1f4)),_0x1382c4(0x1fd));return dryRun('POST',_0x1382c4(0x1e9))['body']({'appCode':_0x5ae763[_0x1382c4(0x1ed)],'multipart':{'file':_0x519a0a}})['description'](_0x1382c4(0x202)+_0x519a0a['path']+_0x1382c4(0x20c)+_0x5ae763['appCode'])[_0x1382c4(0x207)]();},async 'execute'(_0x9758bb){const _0xf7e2b5=a33_0x3221a9,_0x3b66fc=requireRuntimeUploadFile(_0x9758bb[_0xf7e2b5(0x1eb)](_0xf7e2b5(0x1f4)),'File'),_0xfae38d=await uploadRuntimeFile(_0x9758bb[_0xf7e2b5(0x1ed)],_0x3b66fc[_0xf7e2b5(0x206)]);return{'ok':!![],'data':_0xfae38d,'message':_0xfae38d['filePath']?_0xf7e2b5(0x1f7)+_0xfae38d[_0xf7e2b5(0x1f0)]+_0xf7e2b5(0x201):_0xf7e2b5(0x1fa)};}},fileQueryUrl={'service':'file','command':a33_0x3221a9(0x1ee),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x6d346e){const _0x19c35a=a33_0x3221a9,_0x244d7f=requireFilePath(_0x6d346e[_0x19c35a(0x1eb)]('filepath')),_0x540433=await queryRuntimeFileUrl(_0x244d7f,{'download':_0x6d346e[_0x19c35a(0x1f3)](_0x19c35a(0x1f9)),'longTerm':_0x6d346e[_0x19c35a(0x1f3)]('long-term')});return{'ok':!![],'data':_0x540433};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a33_0x4787(_0x4369bf,_0x4cbd18){_0x4369bf=_0x4369bf-0x155;const _0x1279a6=a33_0x1279();let _0x4787c4=_0x1279a6[_0x4369bf];return _0x4787c4;}const a33_0x599671=a33_0x4787;(function(_0x31833c,_0x522e92){const _0x1fac48=a33_0x4787,_0x1f610a=_0x31833c();while(!![]){try{const _0x6b0eb2=parseInt(_0x1fac48(0x161))/0x1*(-parseInt(_0x1fac48(0x174))/0x2)+parseInt(_0x1fac48(0x175))/0x3*(parseInt(_0x1fac48(0x170))/0x4)+parseInt(_0x1fac48(0x172))/0x5*(parseInt(_0x1fac48(0x168))/0x6)+parseInt(_0x1fac48(0x15e))/0x7*(-parseInt(_0x1fac48(0x155))/0x8)+parseInt(_0x1fac48(0x176))/0x9+parseInt(_0x1fac48(0x171))/0xa+-parseInt(_0x1fac48(0x16a))/0xb;if(_0x6b0eb2===_0x522e92)break;else _0x1f610a['push'](_0x1f610a['shift']());}catch(_0x51678d){_0x1f610a['push'](_0x1f610a['shift']());}}}(a33_0x1279,0x41b0a));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a33_0x1279(){const _0x5970a4=['Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','description','build','bool','279144RqlGjc','path','\x20to\x20runtime\x20app\x20','long-term','download','query-url','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','21ccHkvO','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','boolean','1xkodHk','str','string','trim','appCode','/client/uploadFile','POST','174aigQNu','body','10949587YahIGT','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Uploaded\x20file:\x20','file','File','validation','8IxHLlW','3821210iCHQpr','30505ZNWYoH','read','133954TJRfYJ','788787IcClMs','3161079eyEoll'];a33_0x1279=function(){return _0x5970a4;};return a33_0x1279();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x599671(0x16d),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x599671(0x163),'required':!![],'description':a33_0x599671(0x15d)},DOWNLOAD_FLAG={'name':a33_0x599671(0x159),'type':a33_0x599671(0x160),'description':a33_0x599671(0x16b)},LONG_TERM_FLAG={'name':a33_0x599671(0x158),'type':a33_0x599671(0x160),'description':a33_0x599671(0x177)};function requireFilePath(_0x2e1326){const _0x195501=a33_0x599671,_0x1c012c=_0x2e1326[_0x195501(0x164)]();if(!_0x1c012c)throw CliErrors[_0x195501(0x16f)]('filePath\x20is\x20required.');return _0x1c012c;}const fileUpload={'service':a33_0x599671(0x16d),'command':'upload','description':a33_0x599671(0x15f),'risk':a33_0x599671(0x173),'flags':[FILE_FLAG],async 'dryRun'(_0x59549c){const _0x37de81=a33_0x599671,_0x60298a=requireRuntimeUploadFile(_0x59549c[_0x37de81(0x162)](_0x37de81(0x16d)),_0x37de81(0x16e));return dryRun(_0x37de81(0x167),_0x37de81(0x166))[_0x37de81(0x169)]({'appCode':_0x59549c['appCode'],'multipart':{'file':_0x60298a}})[_0x37de81(0x178)]('Preview:\x20upload\x20'+_0x60298a[_0x37de81(0x156)]+_0x37de81(0x157)+_0x59549c[_0x37de81(0x165)])[_0x37de81(0x179)]();},async 'execute'(_0x5ecf4d){const _0x3f5156=a33_0x599671,_0x3a782b=requireRuntimeUploadFile(_0x5ecf4d['str'](_0x3f5156(0x16d)),_0x3f5156(0x16e)),_0x2ce0e7=await uploadRuntimeFile(_0x5ecf4d['appCode'],_0x3a782b[_0x3f5156(0x156)]);return{'ok':!![],'data':_0x2ce0e7,'message':_0x2ce0e7[_0x3f5156(0x15c)]?_0x3f5156(0x16c)+_0x2ce0e7[_0x3f5156(0x15c)]+_0x3f5156(0x15b):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x599671(0x16d),'command':a33_0x599671(0x15a),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x599671(0x173),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5d9d30){const _0x14d7c1=a33_0x599671,_0xc77245=requireFilePath(_0x5d9d30[_0x14d7c1(0x162)]('filepath')),_0x57f308=await queryRuntimeFileUrl(_0xc77245,{'download':_0x5d9d30['bool'](_0x14d7c1(0x159)),'longTerm':_0x5d9d30[_0x14d7c1(0x17a)](_0x14d7c1(0x158))});return{'ok':!![],'data':_0x57f308};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x514f4b=a34_0x5e6a;(function(_0x24837e,_0x3a2102){const _0x4d9f5d=a34_0x5e6a,_0x5db736=_0x24837e();while(!![]){try{const _0x51ea7e=parseInt(_0x4d9f5d(0x1b3))/0x1+-parseInt(_0x4d9f5d(0x1c2))/0x2+-parseInt(_0x4d9f5d(0x1ae))/0x3*(parseInt(_0x4d9f5d(0x1b1))/0x4)+-parseInt(_0x4d9f5d(0x1a5))/0x5+-parseInt(_0x4d9f5d(0x1a9))/0x6+parseInt(_0x4d9f5d(0x1a4))/0x7*(parseInt(_0x4d9f5d(0x1be))/0x8)+parseInt(_0x4d9f5d(0x1c1))/0x9;if(_0x51ea7e===_0x3a2102)break;else _0x5db736['push'](_0x5db736['shift']());}catch(_0x12fb2b){_0x5db736['push'](_0x5db736['shift']());}}}(a34_0x239d,0x34ed9));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';function a34_0x5e6a(_0x6c7431,_0x2e584f){_0x6c7431=_0x6c7431-0x197;const _0x239d43=a34_0x239d();let _0x5e6a4d=_0x239d43[_0x6c7431];return _0x5e6a4d;}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';function a34_0x239d(){const _0x13c5c0=['file','string','Skip\x20confirmation\x20when\x20overwriting','Write\x20to\x20global\x20(~/','newConfigFileName','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','yes','join','apps','\x20\x20default:\x20','Override\x20imported\x20default\x20env','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','186179iCSVbO','1993185HoxRvX','entries','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','global','326322pUKydh','riskLevel','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`.','\x20\x20appcode:\x20','\x20\x20config:\x20\x20','157722zztfqJ','defaultApp','appcode','32nyhimi','log','384490AIDuvj','validation','env','message','Override\x20imported\x20default\x20appcode','Invalid\x20env\x20\x22','boolean','\x22.\x20Allowed:\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','utf8','app','40AOPQre','cwd','includes','7450668uNBJIA','509836uaycCU','Failed\x20to\x20parse\x20source\x20file:\x20'];a34_0x239d=function(){return _0x13c5c0;};return a34_0x239d();}import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a34_0x514f4b(0x199),'description':a34_0x514f4b(0x1bb),'required':!![]},{'name':'appcode','type':a34_0x514f4b(0x199),'description':a34_0x514f4b(0x1b7)},{'name':a34_0x514f4b(0x1b5),'type':a34_0x514f4b(0x199),'description':a34_0x514f4b(0x1a2),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a34_0x514f4b(0x1b9),'description':a34_0x514f4b(0x19b)+PRODUCT_CONFIG[a34_0x514f4b(0x19c)]+')\x20instead\x20of\x20project','default':![]},{'name':a34_0x514f4b(0x19e),'type':a34_0x514f4b(0x1b9),'description':a34_0x514f4b(0x19a),'default':![]}];export async function runAppImport(_0x4f6ecd){const _0x49427a=a34_0x514f4b,_0x241582=_0x4f6ecd['global']?_0x49427a(0x1a8):'project',_0x17d295=resolveWriteConfigPath(_0x241582);await runFromImport(_0x4f6ecd,_0x17d295);}async function runFromImport(_0x59f722,_0x49396f){const _0x1b9b88=a34_0x514f4b,_0x5364e5=resolveFilePath(_0x59f722[_0x1b9b88(0x198)]);if(!existsSync(_0x5364e5))throw CliErrors[_0x1b9b88(0x1b4)]('Source\x20file\x20not\x20found:\x20'+_0x5364e5);const _0x1d40f5=readSourceFile(_0x5364e5),_0x976802=convertToRuntimeConfig(_0x1d40f5);_0x59f722['appcode']&&(_0x976802[_0x1b9b88(0x1b0)]=String(_0x59f722['appcode']));_0x59f722[_0x1b9b88(0x1b5)]&&(_0x976802[_0x1b9b88(0x1b5)]=resolveImportEnv(_0x59f722));if(!_0x976802[_0x1b9b88(0x1b0)])throw CliErrors[_0x1b9b88(0x1b4)](_0x1b9b88(0x1a7),_0x1b9b88(0x1ab));await writeImportConfig(_0x49396f,_0x976802,_0x59f722),console[_0x1b9b88(0x1b2)]('Imported\x20from\x20'+_0x5364e5),console[_0x1b9b88(0x1b2)](_0x1b9b88(0x1ad)+_0x49396f),console[_0x1b9b88(0x1b2)](_0x1b9b88(0x1ac)+_0x976802[_0x1b9b88(0x1b0)]);if(_0x976802[_0x1b9b88(0x1af)])console[_0x1b9b88(0x1b2)](_0x1b9b88(0x1a1)+_0x976802[_0x1b9b88(0x1af)]);}function convertToRuntimeConfig(_0x2721a6){const _0x35e949=a34_0x514f4b;if(_0x2721a6[_0x35e949(0x1a0)]&&typeof _0x2721a6[_0x35e949(0x1a0)]==='object')throw CliErrors[_0x35e949(0x1b4)](_0x35e949(0x1a3),_0x35e949(0x19d));const _0x240fc7={};for(const _0x2980d4 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2721a6[_0x2980d4]!==undefined&&(_0x240fc7[_0x2980d4]=_0x2721a6[_0x2980d4]);}return!_0x240fc7[_0x35e949(0x1aa)]&&(_0x240fc7[_0x35e949(0x1aa)]=DEFAULT_CONFIG_VALUES[_0x35e949(0x1aa)]),_0x240fc7;}async function writeImportConfig(_0x291c7f,_0x15f932,_0x3fb4f1){const _0x1f5d5c=a34_0x514f4b;let _0x2976fe={};existsSync(_0x291c7f)&&!_0x3fb4f1[_0x1f5d5c(0x19e)]&&(_0x2976fe=readConfigFile(_0x291c7f));for(const [_0x410b0d,_0x34eb0f]of Object[_0x1f5d5c(0x1a6)](_0x15f932)){_0x34eb0f!==undefined&&(_0x2976fe[_0x410b0d]=_0x34eb0f);}if(_0x2976fe[_0x1f5d5c(0x1bd)])delete _0x2976fe['app'];writeConfigFile(_0x291c7f,_0x2976fe);}function resolveFilePath(_0x2ed76f){const _0x6d8639=a34_0x514f4b;return isAbsolute(_0x2ed76f)?_0x2ed76f:resolve(process[_0x6d8639(0x1bf)](),_0x2ed76f);}function readSourceFile(_0x5393d9){const _0x5aa809=a34_0x514f4b;try{const _0x15e7fd=readFileSync(_0x5393d9,{'encoding':_0x5aa809(0x1bc)});return JSON['parse'](_0x15e7fd);}catch(_0x213913){throw CliErrors['validation'](_0x5aa809(0x197)+_0x213913[_0x5aa809(0x1b6)]);}}function resolveImportEnv(_0x173035){const _0x30cbb8=a34_0x514f4b,_0x333c51=_0x173035[_0x30cbb8(0x1b5)];if(_0x333c51===undefined||_0x333c51==='')return DEFAULT_CONFIG_VALUES[_0x30cbb8(0x1b5)];if(!RUNTIME_ENV_VALUES[_0x30cbb8(0x1c0)](_0x333c51))throw CliErrors[_0x30cbb8(0x1b4)](_0x30cbb8(0x1b8)+_0x333c51+_0x30cbb8(0x1ba)+RUNTIME_ENV_VALUES[_0x30cbb8(0x19f)](',\x20'));return _0x333c51;}
1
+ const a34_0x1c61c8=a34_0x469d;(function(_0x150a3a,_0x73594e){const _0x5d1f19=a34_0x469d,_0x449163=_0x150a3a();while(!![]){try{const _0x511b84=-parseInt(_0x5d1f19(0x1d9))/0x1*(parseInt(_0x5d1f19(0x1d0))/0x2)+parseInt(_0x5d1f19(0x1db))/0x3*(-parseInt(_0x5d1f19(0x1f1))/0x4)+-parseInt(_0x5d1f19(0x1d4))/0x5*(parseInt(_0x5d1f19(0x1cd))/0x6)+parseInt(_0x5d1f19(0x1cf))/0x7*(-parseInt(_0x5d1f19(0x1d6))/0x8)+-parseInt(_0x5d1f19(0x1c9))/0x9*(-parseInt(_0x5d1f19(0x1c8))/0xa)+parseInt(_0x5d1f19(0x1f2))/0xb*(-parseInt(_0x5d1f19(0x1dc))/0xc)+parseInt(_0x5d1f19(0x1ec))/0xd;if(_0x511b84===_0x73594e)break;else _0x449163['push'](_0x449163['shift']());}catch(_0xabdb72){_0x449163['push'](_0x449163['shift']());}}}(a34_0x4094,0x7e75f));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';function a34_0x4094(){const _0x24a4f5=['10ewjSTf','9187461azrUNc','includes','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','file','1095846BQpAzC','log','2050398jfqpyY','6tPEaEu','Source\x20file\x20not\x20found:\x20','yes','Override\x20imported\x20default\x20env','15WSsYIx','defaultApp','24cIvdhh','env','validation','143646yioogr','Failed\x20to\x20parse\x20source\x20file:\x20','9jriLZz','454680TqSISV','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','parse','app','\x20\x20default:\x20','global','entries','cwd','utf8','appcode','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','\x20\x20config:\x20\x20','Invalid\x20env\x20\x22','object','project','riskLevel','24907727SxYgyP','Write\x20to\x20global\x20(~/','Skip\x20confirmation\x20when\x20overwriting','message','string','445176caHDCk','66OezeGa','\x20\x20appcode:\x20','Imported\x20from\x20','apps',')\x20instead\x20of\x20project','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`.'];a34_0x4094=function(){return _0x24a4f5;};return a34_0x4094();}import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x1c61c8(0x1cc),'type':a34_0x1c61c8(0x1f0),'description':a34_0x1c61c8(0x1cb),'required':!![]},{'name':'appcode','type':a34_0x1c61c8(0x1f0),'description':'Override\x20imported\x20default\x20appcode'},{'name':a34_0x1c61c8(0x1d7),'type':a34_0x1c61c8(0x1f0),'description':a34_0x1c61c8(0x1d3),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a34_0x1c61c8(0x1ed)+PRODUCT_CONFIG['newConfigFileName']+a34_0x1c61c8(0x1c6),'default':![]},{'name':a34_0x1c61c8(0x1d2),'type':'boolean','description':a34_0x1c61c8(0x1ee),'default':![]}];function a34_0x469d(_0x2dc85a,_0x493132){_0x2dc85a=_0x2dc85a-0x1c3;const _0x4094ac=a34_0x4094();let _0x469dc2=_0x4094ac[_0x2dc85a];return _0x469dc2;}export async function runAppImport(_0x3dcbaf){const _0x4b61ca=a34_0x1c61c8,_0x4b8ffc=_0x3dcbaf[_0x4b61ca(0x1e1)]?_0x4b61ca(0x1e1):_0x4b61ca(0x1ea),_0x2ebba9=resolveWriteConfigPath(_0x4b8ffc);await runFromImport(_0x3dcbaf,_0x2ebba9);}async function runFromImport(_0x53498d,_0x16cfa7){const _0x2a290e=a34_0x1c61c8,_0x4bfd7e=resolveFilePath(_0x53498d['file']);if(!existsSync(_0x4bfd7e))throw CliErrors[_0x2a290e(0x1d8)](_0x2a290e(0x1d1)+_0x4bfd7e);const _0x3caa16=readSourceFile(_0x4bfd7e),_0x4c22d2=convertToRuntimeConfig(_0x3caa16);_0x53498d[_0x2a290e(0x1e5)]&&(_0x4c22d2[_0x2a290e(0x1e5)]=String(_0x53498d['appcode']));_0x53498d['env']&&(_0x4c22d2[_0x2a290e(0x1d7)]=resolveImportEnv(_0x53498d));if(!_0x4c22d2[_0x2a290e(0x1e5)])throw CliErrors[_0x2a290e(0x1d8)](_0x2a290e(0x1dd),_0x2a290e(0x1c7));await writeImportConfig(_0x16cfa7,_0x4c22d2,_0x53498d),console['log'](_0x2a290e(0x1c4)+_0x4bfd7e),console[_0x2a290e(0x1ce)](_0x2a290e(0x1e7)+_0x16cfa7),console[_0x2a290e(0x1ce)](_0x2a290e(0x1c3)+_0x4c22d2[_0x2a290e(0x1e5)]);if(_0x4c22d2[_0x2a290e(0x1d5)])console[_0x2a290e(0x1ce)](_0x2a290e(0x1e0)+_0x4c22d2[_0x2a290e(0x1d5)]);}function convertToRuntimeConfig(_0x1cc6e2){const _0xd196b7=a34_0x1c61c8;if(_0x1cc6e2['apps']&&typeof _0x1cc6e2[_0xd196b7(0x1c5)]===_0xd196b7(0x1e9))throw CliErrors[_0xd196b7(0x1d8)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0xd196b7(0x1e6));const _0x21f6f0={};for(const _0xa2632b of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1cc6e2[_0xa2632b]!==undefined&&(_0x21f6f0[_0xa2632b]=_0x1cc6e2[_0xa2632b]);}return!_0x21f6f0['riskLevel']&&(_0x21f6f0['riskLevel']=DEFAULT_CONFIG_VALUES[_0xd196b7(0x1eb)]),_0x21f6f0;}async function writeImportConfig(_0x542991,_0x2bf890,_0x4ac392){const _0x1fe5b8=a34_0x1c61c8;let _0x25150a={};existsSync(_0x542991)&&!_0x4ac392[_0x1fe5b8(0x1d2)]&&(_0x25150a=readConfigFile(_0x542991));for(const [_0x30b5e6,_0x409b85]of Object[_0x1fe5b8(0x1e2)](_0x2bf890)){_0x409b85!==undefined&&(_0x25150a[_0x30b5e6]=_0x409b85);}if(_0x25150a[_0x1fe5b8(0x1df)])delete _0x25150a[_0x1fe5b8(0x1df)];writeConfigFile(_0x542991,_0x25150a);}function resolveFilePath(_0x10f61c){const _0x1ff8d3=a34_0x1c61c8;return isAbsolute(_0x10f61c)?_0x10f61c:resolve(process[_0x1ff8d3(0x1e3)](),_0x10f61c);}function readSourceFile(_0x15cf32){const _0x4d8def=a34_0x1c61c8;try{const _0x48bbea=readFileSync(_0x15cf32,{'encoding':_0x4d8def(0x1e4)});return JSON[_0x4d8def(0x1de)](_0x48bbea);}catch(_0x5053e5){throw CliErrors['validation'](_0x4d8def(0x1da)+_0x5053e5[_0x4d8def(0x1ef)]);}}function resolveImportEnv(_0x4c9e42){const _0x25951f=a34_0x1c61c8,_0x376ea8=_0x4c9e42['env'];if(_0x376ea8===undefined||_0x376ea8==='')return DEFAULT_CONFIG_VALUES[_0x25951f(0x1d7)];if(!RUNTIME_ENV_VALUES[_0x25951f(0x1ca)](_0x376ea8))throw CliErrors[_0x25951f(0x1d8)](_0x25951f(0x1e8)+_0x376ea8+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x376ea8;}
@@ -1 +1 @@
1
- (function(_0x56fe6e,_0x111185){const _0x2d0eff=a35_0x1c8d,_0x2c1be1=_0x56fe6e();while(!![]){try{const _0x1bf7bc=-parseInt(_0x2d0eff(0xe8))/0x1*(-parseInt(_0x2d0eff(0xf0))/0x2)+-parseInt(_0x2d0eff(0xe2))/0x3+-parseInt(_0x2d0eff(0xe0))/0x4*(-parseInt(_0x2d0eff(0xe4))/0x5)+-parseInt(_0x2d0eff(0xea))/0x6*(-parseInt(_0x2d0eff(0xe5))/0x7)+parseInt(_0x2d0eff(0xe1))/0x8+parseInt(_0x2d0eff(0xee))/0x9*(-parseInt(_0x2d0eff(0xdd))/0xa)+parseInt(_0x2d0eff(0xe9))/0xb*(-parseInt(_0x2d0eff(0xde))/0xc);if(_0x1bf7bc===_0x111185)break;else _0x2c1be1['push'](_0x2c1be1['shift']());}catch(_0xd4a056){_0x2c1be1['push'](_0x2c1be1['shift']());}}}(a35_0x2539,0xa2606));function a35_0x1c8d(_0x329c46,_0x7fb3d4){_0x329c46=_0x329c46-0xdc;const _0x2539fd=a35_0x2539();let _0x1c8d0b=_0x2539fd[_0x329c46];return _0x1c8d0b;}import{platform,release,arch}from'node:os';import{getLoginUserInfo}from'../../core/api-client.js';import{getCliVersion}from'../../utils/version.js';function a35_0x2539(){const _0x1c474e=['21496XtSaYh','5856320kOPxDh','996801sutSpZ','userId','830XajxwS','14CwchNP','envName','@lovrabet/lovrabet-cli','6169SzUxYd','5392211hYrGHa','2371710xeJCWE','nickname','username','production','2601ioNhUa','mergedCli','314SafMpZ','email','31670MBNODU','36vUPJbl','appCode'];a35_0x2539=function(){return _0x1c474e;};return a35_0x2539();}export async function getIssueReportContext(_0x4f30aa,_0x4a415a){const _0x4de785=a35_0x1c8d,_0xc88439=_0x4a415a?undefined:await getLoginUserInfo();return{'serviceName':_0x4de785(0xe7),'serviceVersion':getCliVersion(),'environment':_0x4f30aa[_0x4de785(0xe6)]??_0x4de785(0xed),'appCode':_0x4f30aa[_0x4de785(0xdf)]||_0x4f30aa[_0x4de785(0xef)]?.[_0x4de785(0xdf)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0xc88439?{'id':String(_0xc88439['id']??_0xc88439[_0x4de785(0xe3)]??''),'username':_0xc88439[_0x4de785(0xec)]??_0xc88439['userName']??_0xc88439['loginName'],'nickname':_0xc88439[_0x4de785(0xeb)]??_0xc88439['nickName']??_0xc88439['name']??undefined,'email':_0xc88439[_0x4de785(0xdc)]??undefined,'tenantCode':_0xc88439['tenantCode']}:undefined};}
1
+ (function(_0xd37fb,_0x2b6337){const _0x5547b6=a35_0x46ce,_0x15a7c3=_0xd37fb();while(!![]){try{const _0x4470ed=parseInt(_0x5547b6(0x1ce))/0x1+parseInt(_0x5547b6(0x1c0))/0x2+parseInt(_0x5547b6(0x1cd))/0x3+-parseInt(_0x5547b6(0x1cb))/0x4+-parseInt(_0x5547b6(0x1c1))/0x5*(parseInt(_0x5547b6(0x1c6))/0x6)+parseInt(_0x5547b6(0x1ca))/0x7+parseInt(_0x5547b6(0x1c7))/0x8;if(_0x4470ed===_0x2b6337)break;else _0x15a7c3['push'](_0x15a7c3['shift']());}catch(_0x350f94){_0x15a7c3['push'](_0x15a7c3['shift']());}}}(a35_0x33a5,0xb6989));import{platform,release,arch}from'node:os';import{getLoginUserInfo}from'../../core/api-client.js';function a35_0x46ce(_0x3b5ee7,_0x43785d){_0x3b5ee7=_0x3b5ee7-0x1bf;const _0x33a5b7=a35_0x33a5();let _0x46ce4e=_0x33a5b7[_0x3b5ee7];return _0x46ce4e;}import{getCliVersion}from'../../utils/version.js';function a35_0x33a5(){const _0x3555b3=['envName','userId','tenantCode','appCode','54CLxqhX','642192YwQmAN','production','loginName','3241840ZgCDFG','3391764lKfYgl','email','1173039FIRAGq','1167505lCvOYD','userName','mergedCli','@lovrabet/lovrabet-cli','nickname','1059936zLPXtr','575570ElyPgf'];a35_0x33a5=function(){return _0x3555b3;};return a35_0x33a5();}export async function getIssueReportContext(_0x59518a,_0x30dd3d){const _0x3c6f4a=a35_0x46ce,_0x586cb6=_0x30dd3d?undefined:await getLoginUserInfo();return{'serviceName':_0x3c6f4a(0x1d1),'serviceVersion':getCliVersion(),'environment':_0x59518a[_0x3c6f4a(0x1c2)]??_0x3c6f4a(0x1c8),'appCode':_0x59518a[_0x3c6f4a(0x1c5)]||_0x59518a[_0x3c6f4a(0x1d0)]?.[_0x3c6f4a(0x1c5)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x586cb6?{'id':String(_0x586cb6['id']??_0x586cb6[_0x3c6f4a(0x1c3)]??''),'username':_0x586cb6['username']??_0x586cb6[_0x3c6f4a(0x1cf)]??_0x586cb6[_0x3c6f4a(0x1c9)],'nickname':_0x586cb6[_0x3c6f4a(0x1bf)]??_0x586cb6['nickName']??_0x586cb6['name']??undefined,'email':_0x586cb6[_0x3c6f4a(0x1cc)]??undefined,'tenantCode':_0x586cb6[_0x3c6f4a(0x1c4)]}:undefined};}
@@ -1 +1 @@
1
- (function(_0x295ecb,_0x2aa25d){const _0x24f6d3=a36_0x3d12,_0x23c348=_0x295ecb();while(!![]){try{const _0x51b6bd=parseInt(_0x24f6d3(0x165))/0x1*(parseInt(_0x24f6d3(0x15f))/0x2)+parseInt(_0x24f6d3(0x15b))/0x3*(-parseInt(_0x24f6d3(0x15c))/0x4)+parseInt(_0x24f6d3(0x167))/0x5*(parseInt(_0x24f6d3(0x162))/0x6)+parseInt(_0x24f6d3(0x15e))/0x7*(-parseInt(_0x24f6d3(0x164))/0x8)+-parseInt(_0x24f6d3(0x163))/0x9*(-parseInt(_0x24f6d3(0x160))/0xa)+-parseInt(_0x24f6d3(0x15d))/0xb*(parseInt(_0x24f6d3(0x166))/0xc)+parseInt(_0x24f6d3(0x161))/0xd;if(_0x51b6bd===_0x2aa25d)break;else _0x23c348['push'](_0x23c348['shift']());}catch(_0x3ad8a0){_0x23c348['push'](_0x23c348['shift']());}}}(a36_0xa87f,0x85e04));function a36_0xa87f(){const _0x2c46f3=['60734hDVyfF','129130zqZtmE','28406872wbjffL','48IcQEwn','135AlYATB','8pqJNYO','7dngfnO','11396880vPNhmn','45130aXpdff','3GDNjdj','3057268FpbHIv','11bGpcJq','2808421QeCbTo'];a36_0xa87f=function(){return _0x2c46f3;};return a36_0xa87f();}function a36_0x3d12(_0x43d82e,_0x172740){_0x43d82e=_0x43d82e-0x15b;const _0xa87f=a36_0xa87f();let _0x3d12b8=_0xa87f[_0x43d82e];return _0x3d12b8;}import{issueReport}from'./report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x227b6c,_0x4c0d04){const _0x1aaa4a=a36_0x3790,_0x1617ce=_0x227b6c();while(!![]){try{const _0x5a8f24=-parseInt(_0x1aaa4a(0x19b))/0x1*(-parseInt(_0x1aaa4a(0x19d))/0x2)+-parseInt(_0x1aaa4a(0x197))/0x3*(parseInt(_0x1aaa4a(0x1a1))/0x4)+parseInt(_0x1aaa4a(0x1a0))/0x5*(-parseInt(_0x1aaa4a(0x1a3))/0x6)+-parseInt(_0x1aaa4a(0x19a))/0x7*(-parseInt(_0x1aaa4a(0x19e))/0x8)+-parseInt(_0x1aaa4a(0x198))/0x9*(-parseInt(_0x1aaa4a(0x199))/0xa)+parseInt(_0x1aaa4a(0x1a2))/0xb*(-parseInt(_0x1aaa4a(0x19c))/0xc)+parseInt(_0x1aaa4a(0x19f))/0xd;if(_0x5a8f24===_0x4c0d04)break;else _0x1617ce['push'](_0x1617ce['shift']());}catch(_0x2062ce){_0x1617ce['push'](_0x1617ce['shift']());}}}(a36_0x4d89,0xa9e04));import{issueReport}from'./report.js';function a36_0x4d89(){const _0x1ac9f8=['1925226uOBuQV','20421JALmZy','1665UiLOei','590YriHLa','5441597aOwfdn','1015453nuxwLa','12eqfgXn','2MUlnCn','8ljyeRy','2321943oHwtit','5wNBnDc','236JVbbkZ','6204594FJDMdh'];a36_0x4d89=function(){return _0x1ac9f8;};return a36_0x4d89();}function a36_0x3790(_0x3a9498,_0x43426e){_0x3a9498=_0x3a9498-0x197;const _0x4d8979=a36_0x4d89();let _0x379088=_0x4d8979[_0x3a9498];return _0x379088;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a37_0x12d7d7=a37_0x4026;(function(_0x1ae49b,_0xa8529c){const _0x24f502=a37_0x4026,_0x31fc1d=_0x1ae49b();while(!![]){try{const _0x2588ef=-parseInt(_0x24f502(0x74))/0x1+-parseInt(_0x24f502(0x84))/0x2+parseInt(_0x24f502(0x8a))/0x3*(parseInt(_0x24f502(0x80))/0x4)+parseInt(_0x24f502(0x77))/0x5*(-parseInt(_0x24f502(0x99))/0x6)+parseInt(_0x24f502(0x83))/0x7*(-parseInt(_0x24f502(0x72))/0x8)+parseInt(_0x24f502(0x90))/0x9+-parseInt(_0x24f502(0x8d))/0xa*(-parseInt(_0x24f502(0x9d))/0xb);if(_0x2588ef===_0xa8529c)break;else _0x31fc1d['push'](_0x31fc1d['shift']());}catch(_0x491573){_0x31fc1d['push'](_0x31fc1d['shift']());}}}(a37_0x2609,0x658dd));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a37_0x2609(){const _0x36e32b=['descriptionSource','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','5086907KHgnJp','870668HQZPHJ','descriptionFilePath','POST','traceName','cwd','flagMissing','74427wsZmpK','validation','title','22040kMpuoS','spanName','string','3822390KJSEXb','Failed\x20to\x20submit\x20issue\x20log:\x20','validate','redactionCount','truncated','originalBytes','\x20bytes','redactions:\x20','join','6QBEiQR','Check\x20your\x20login\x20and\x20network\x20connectivity.','descriptionFile:\x20','report','4202ykESNQ','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','description','File\x20not\x20found:\x20','trim','sanitize','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Submit\x20a\x20problem\x20log','Issue\x20description\x20cannot\x20be\x20empty.','str','description-file','One-line\x20issue\x20summary','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','keys','8CAONno','utf8','14936UjOJSk','logData','file','1221545Iscwxh','length','redactionKinds','Issue\x20log\x20submitted','filter','descriptionSource:\x20','otel://','Cannot\x20read\x20issue\x20description\x20file:\x20','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','92JlvVyX'];a37_0x2609=function(){return _0x36e32b;};return a37_0x2609();}import{CliErrors}from'../../errors.js';import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG=a37_0x12d7d7(0x6e);function a37_0x4026(_0x35dd4e,_0x4ff922){_0x35dd4e=_0x35dd4e-0x66;const _0x2609e9=a37_0x2609();let _0x40269b=_0x2609e9[_0x35dd4e];return _0x40269b;}export const issueReport={'service':'issue','command':a37_0x12d7d7(0x9c),'description':'Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','risk':'read','confirmationDescription':a37_0x12d7d7(0x7f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a37_0x12d7d7(0x8c),'type':'string','required':!![],'description':a37_0x12d7d7(0x6f)},{'name':a37_0x12d7d7(0x66),'type':a37_0x12d7d7(0x8f),'description':a37_0x12d7d7(0x82)},{'name':DESCRIPTION_FILE_FLAG,'type':a37_0x12d7d7(0x8f),'description':a37_0x12d7d7(0x70)}],async 'validate'(_0x43089b){const _0x37c72a=a37_0x12d7d7,_0x2b2c27=_0x43089b[_0x37c72a(0x6d)](_0x37c72a(0x8c))[_0x37c72a(0x68)](),_0x5cfaf5=_0x43089b[_0x37c72a(0x6d)](_0x37c72a(0x66))[_0x37c72a(0x68)](),_0x52dfe3=_0x43089b[_0x37c72a(0x6d)](DESCRIPTION_FILE_FLAG)[_0x37c72a(0x68)]();if(!_0x2b2c27)throw CliErrors[_0x37c72a(0x89)](_0x37c72a(0x8c),_0x37c72a(0x9e));const _0x1cbd0b=_0x5cfaf5[_0x37c72a(0x78)]>0x0,_0x50afef=_0x52dfe3['length']>0x0;if(_0x1cbd0b===_0x50afef)throw CliErrors[_0x37c72a(0x8b)](_0x37c72a(0x6a),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x50afef){const _0x9028a7=resolve(process[_0x37c72a(0x88)](),_0x52dfe3);if(!existsSync(_0x9028a7))throw CliErrors[_0x37c72a(0x8b)](_0x37c72a(0x67)+_0x9028a7);}},async 'dryRun'(_0x472100){const _0x424cb5=a37_0x12d7d7,_0x35669c=await prepareIssueReport(_0x472100,!![]);return{'method':_0x424cb5(0x86),'url':_0x424cb5(0x7d)+_0x35669c[_0x424cb5(0x87)]+'/'+_0x35669c[_0x424cb5(0x8e)],'body':{'traceName':_0x35669c[_0x424cb5(0x87)],'spanName':_0x35669c[_0x424cb5(0x8e)],'logData':_0x35669c[_0x424cb5(0x75)]},'description':[_0x424cb5(0x6b),_0x424cb5(0x7c)+_0x35669c[_0x424cb5(0x81)],_0x35669c['descriptionFilePath']?_0x424cb5(0x9b)+_0x35669c[_0x424cb5(0x85)]:null,_0x35669c[_0x424cb5(0x69)][_0x424cb5(0x94)]?'truncated:\x20original\x20'+_0x35669c['sanitize']['originalBytes']+_0x424cb5(0x96):null,_0x35669c[_0x424cb5(0x69)][_0x424cb5(0x93)]>0x0?_0x424cb5(0x97)+_0x35669c['sanitize']['redactionCount']+'\x20('+_0x35669c['sanitize'][_0x424cb5(0x79)][_0x424cb5(0x98)](',\x20')+')':null][_0x424cb5(0x7b)](Boolean)[_0x424cb5(0x98)]('\x0a')};},async 'execute'(_0x5236ee){const _0x785483=a37_0x12d7d7,_0x1c1863=await prepareIssueReport(_0x5236ee,![]);return{'ok':!![],'message':_0x1c1863[_0x785483(0x69)][_0x785483(0x93)]||_0x1c1863[_0x785483(0x69)]['truncated']?'Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)':_0x785483(0x7a),'data':{'traceName':_0x1c1863[_0x785483(0x87)],'spanName':_0x1c1863['spanName'],'logDataKeys':Object[_0x785483(0x71)](_0x1c1863[_0x785483(0x75)]),'issue':{'title':_0x1c1863[_0x785483(0x8c)],'descriptionLength':_0x1c1863['description'][_0x785483(0x78)],'descriptionSource':_0x1c1863[_0x785483(0x81)],..._0x1c1863['descriptionFilePath']?{'descriptionFile':_0x1c1863[_0x785483(0x85)]}:{},'sanitize':{'originalBytes':_0x1c1863[_0x785483(0x69)][_0x785483(0x95)],'truncated':_0x1c1863[_0x785483(0x69)][_0x785483(0x94)],'redactions':_0x1c1863[_0x785483(0x69)]['redactionCount'],'redactionKinds':_0x1c1863[_0x785483(0x69)][_0x785483(0x79)]}}}};}};async function prepareIssueReport(_0x24b499,_0x47afcc){const _0x46ebcd=a37_0x12d7d7;await issueReport[_0x46ebcd(0x92)](_0x24b499);const _0x168d09=_0x24b499[_0x46ebcd(0x6d)](DESCRIPTION_FILE_FLAG)[_0x46ebcd(0x68)](),_0x795649=_0x168d09?resolve(process[_0x46ebcd(0x88)](),_0x168d09):undefined;let _0x19eff5=_0x24b499['str'](_0x46ebcd(0x66));if(_0x795649)try{_0x19eff5=await readFile(_0x795649,_0x46ebcd(0x73));}catch{throw CliErrors[_0x46ebcd(0x8b)](_0x46ebcd(0x7e)+_0x795649);}if(!_0x19eff5['trim']())throw CliErrors[_0x46ebcd(0x8b)](_0x46ebcd(0x6c));const _0x20bca9=await getIssueReportContext(_0x24b499,_0x47afcc);try{const _0x1cce78=await reportIssue({'title':_0x24b499[_0x46ebcd(0x6d)](_0x46ebcd(0x8c)),'description':_0x19eff5,'context':_0x20bca9,'dryRun':_0x47afcc});return{..._0x1cce78,'descriptionSource':_0x795649?_0x46ebcd(0x76):'inline','descriptionFilePath':_0x795649};}catch(_0xcaf8c1){throw CliErrors['apiError'](_0x46ebcd(0x91)+(_0xcaf8c1 instanceof Error?_0xcaf8c1['message']:String(_0xcaf8c1)),_0x46ebcd(0x9a));}}
1
+ const a37_0xd9e342=a37_0x18c7;(function(_0x38ef7b,_0x1bb4ea){const _0x450159=a37_0x18c7,_0x5ab9f8=_0x38ef7b();while(!![]){try{const _0x2841ac=-parseInt(_0x450159(0x1c9))/0x1*(-parseInt(_0x450159(0x1ec))/0x2)+-parseInt(_0x450159(0x1c1))/0x3*(-parseInt(_0x450159(0x1d7))/0x4)+-parseInt(_0x450159(0x1e7))/0x5*(-parseInt(_0x450159(0x1eb))/0x6)+parseInt(_0x450159(0x1df))/0x7*(-parseInt(_0x450159(0x1c0))/0x8)+-parseInt(_0x450159(0x1e3))/0x9*(-parseInt(_0x450159(0x1cf))/0xa)+-parseInt(_0x450159(0x1de))/0xb*(parseInt(_0x450159(0x1f6))/0xc)+-parseInt(_0x450159(0x1e2))/0xd;if(_0x2841ac===_0x1bb4ea)break;else _0x5ab9f8['push'](_0x5ab9f8['shift']());}catch(_0x1c68be){_0x5ab9f8['push'](_0x5ab9f8['shift']());}}}(a37_0x6786,0x30845));import{existsSync}from'node:fs';function a37_0x6786(){const _0x2a1202=['708104iRGsFJ','keys','title','descriptionFile:\x20','truncated','descriptionFilePath','redactionCount','3728549lvmeyb','154490DrBDFF','compress','truncated:\x20original\x20','6480396sqeypF','63sWPopb','read','str','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','20YIHVzf','POST','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','547188QYlKXb','2UqFyyk','traceName','otel://','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Issue\x20log\x20submitted','sanitize','file','description','join','Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)','12KKMZHJ','cwd','Submit\x20a\x20problem\x20log','redactionKinds','filter','16oRuqfJ','6rmHGpx','descriptionSource:\x20','apiError','redactions:\x20','validation','One-line\x20issue\x20summary','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','spanName','55509tnaDOT','report','string','length','utf8','trim','437090EwdDuV','descriptionSource','File\x20not\x20found:\x20','Cannot\x20read\x20issue\x20description\x20file:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Check\x20your\x20login\x20and\x20network\x20connectivity.','originalBytes','flagMissing'];a37_0x6786=function(){return _0x2a1202;};return a37_0x6786();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a37_0x18c7(_0x239b43,_0x1cdf0b){_0x239b43=_0x239b43-0x1bd;const _0x67869=a37_0x6786();let _0x18c759=_0x67869[_0x239b43];return _0x18c759;}import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':a37_0xd9e342(0x1ca),'description':a37_0xd9e342(0x1ea),'risk':a37_0xd9e342(0x1e4),'confirmationDescription':a37_0xd9e342(0x1e9),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0xd9e342(0x1e0),'flags':[{'name':a37_0xd9e342(0x1d9),'type':a37_0xd9e342(0x1cb),'required':!![],'description':a37_0xd9e342(0x1c6)},{'name':a37_0xd9e342(0x1f3),'type':a37_0xd9e342(0x1cb),'description':a37_0xd9e342(0x1d3)},{'name':DESCRIPTION_FILE_FLAG,'type':a37_0xd9e342(0x1cb),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x4adf76){const _0x98353b=a37_0xd9e342,_0x2241b2=_0x4adf76['str'](_0x98353b(0x1d9))['trim'](),_0x425b20=_0x4adf76[_0x98353b(0x1e5)]('description')[_0x98353b(0x1ce)](),_0x4b5fcc=_0x4adf76[_0x98353b(0x1e5)](DESCRIPTION_FILE_FLAG)[_0x98353b(0x1ce)]();if(!_0x2241b2)throw CliErrors[_0x98353b(0x1d6)](_0x98353b(0x1d9),_0x98353b(0x1ef));const _0x2818f9=_0x425b20[_0x98353b(0x1cc)]>0x0,_0x34049e=_0x4b5fcc['length']>0x0;if(_0x2818f9===_0x34049e)throw CliErrors[_0x98353b(0x1c5)](_0x98353b(0x1c7),_0x98353b(0x1e6));if(_0x34049e){const _0x3d6151=resolve(process[_0x98353b(0x1f7)](),_0x4b5fcc);if(!existsSync(_0x3d6151))throw CliErrors[_0x98353b(0x1c5)](_0x98353b(0x1d1)+_0x3d6151);}},async 'dryRun'(_0x1ea460){const _0x2cbcf3=a37_0xd9e342,_0x562f14=await prepareIssueReport(_0x1ea460,!![]);return{'method':_0x2cbcf3(0x1e8),'url':_0x2cbcf3(0x1ee)+_0x562f14[_0x2cbcf3(0x1ed)]+'/'+_0x562f14['spanName'],'body':{'traceName':_0x562f14[_0x2cbcf3(0x1ed)],'spanName':_0x562f14[_0x2cbcf3(0x1c8)],'logData':_0x562f14['logData']},'description':[_0x2cbcf3(0x1bd),_0x2cbcf3(0x1c2)+_0x562f14[_0x2cbcf3(0x1d0)],_0x562f14[_0x2cbcf3(0x1dc)]?_0x2cbcf3(0x1da)+_0x562f14['descriptionFilePath']:null,_0x562f14[_0x2cbcf3(0x1f1)][_0x2cbcf3(0x1db)]?_0x2cbcf3(0x1e1)+_0x562f14['sanitize'][_0x2cbcf3(0x1d5)]+'\x20bytes':null,_0x562f14[_0x2cbcf3(0x1f1)]['redactionCount']>0x0?_0x2cbcf3(0x1c4)+_0x562f14['sanitize']['redactionCount']+'\x20('+_0x562f14[_0x2cbcf3(0x1f1)][_0x2cbcf3(0x1be)][_0x2cbcf3(0x1f4)](',\x20')+')':null][_0x2cbcf3(0x1bf)](Boolean)[_0x2cbcf3(0x1f4)]('\x0a')};},async 'execute'(_0x364e5e){const _0x30b0eb=a37_0xd9e342,_0x1752f3=await prepareIssueReport(_0x364e5e,![]);return{'ok':!![],'message':_0x1752f3[_0x30b0eb(0x1f1)]['redactionCount']||_0x1752f3[_0x30b0eb(0x1f1)][_0x30b0eb(0x1db)]?_0x30b0eb(0x1f5):_0x30b0eb(0x1f0),'data':{'traceName':_0x1752f3[_0x30b0eb(0x1ed)],'spanName':_0x1752f3[_0x30b0eb(0x1c8)],'logDataKeys':Object[_0x30b0eb(0x1d8)](_0x1752f3['logData']),'issue':{'title':_0x1752f3['title'],'descriptionLength':_0x1752f3[_0x30b0eb(0x1f3)][_0x30b0eb(0x1cc)],'descriptionSource':_0x1752f3['descriptionSource'],..._0x1752f3['descriptionFilePath']?{'descriptionFile':_0x1752f3[_0x30b0eb(0x1dc)]}:{},'sanitize':{'originalBytes':_0x1752f3[_0x30b0eb(0x1f1)]['originalBytes'],'truncated':_0x1752f3[_0x30b0eb(0x1f1)][_0x30b0eb(0x1db)],'redactions':_0x1752f3['sanitize'][_0x30b0eb(0x1dd)],'redactionKinds':_0x1752f3[_0x30b0eb(0x1f1)][_0x30b0eb(0x1be)]}}}};}};async function prepareIssueReport(_0x40d23a,_0x43b015){const _0x59535e=a37_0xd9e342;await issueReport['validate'](_0x40d23a);const _0x193ae7=_0x40d23a[_0x59535e(0x1e5)](DESCRIPTION_FILE_FLAG)[_0x59535e(0x1ce)](),_0x547a65=_0x193ae7?resolve(process['cwd'](),_0x193ae7):undefined;let _0x43e2fa=_0x40d23a[_0x59535e(0x1e5)](_0x59535e(0x1f3));if(_0x547a65)try{_0x43e2fa=await readFile(_0x547a65,_0x59535e(0x1cd));}catch{throw CliErrors[_0x59535e(0x1c5)](_0x59535e(0x1d2)+_0x547a65);}if(!_0x43e2fa[_0x59535e(0x1ce)]())throw CliErrors[_0x59535e(0x1c5)]('Issue\x20description\x20cannot\x20be\x20empty.');const _0x2e76f4=await getIssueReportContext(_0x40d23a,_0x43b015);try{const _0x2334b3=await reportIssue({'title':_0x40d23a[_0x59535e(0x1e5)]('title'),'description':_0x43e2fa,'context':_0x2e76f4,'dryRun':_0x43b015});return{..._0x2334b3,'descriptionSource':_0x547a65?_0x59535e(0x1f2):'inline','descriptionFilePath':_0x547a65};}catch(_0x58c6c2){throw CliErrors[_0x59535e(0x1c3)]('Failed\x20to\x20submit\x20issue\x20log:\x20'+(_0x58c6c2 instanceof Error?_0x58c6c2['message']:String(_0x58c6c2)),_0x59535e(0x1d4));}}
@@ -1 +1 @@
1
- const a38_0x475c7f=a38_0x5435;(function(_0x3db41a,_0xf42218){const _0x4ba69e=a38_0x5435,_0x3397bd=_0x3db41a();while(!![]){try{const _0x33de6a=parseInt(_0x4ba69e(0x1bc))/0x1+-parseInt(_0x4ba69e(0x1ce))/0x2*(-parseInt(_0x4ba69e(0x1cd))/0x3)+parseInt(_0x4ba69e(0x1a4))/0x4+parseInt(_0x4ba69e(0x1db))/0x5*(-parseInt(_0x4ba69e(0x1cb))/0x6)+parseInt(_0x4ba69e(0x1c8))/0x7+-parseInt(_0x4ba69e(0x1a8))/0x8+-parseInt(_0x4ba69e(0x1b5))/0x9;if(_0x33de6a===_0xf42218)break;else _0x3397bd['push'](_0x3397bd['shift']());}catch(_0x1cd190){_0x3397bd['push'](_0x3397bd['shift']());}}}(a38_0x1e56,0x5ff5f));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 a38_0x5435(_0x325cb3,_0x90283f){_0x325cb3=_0x325cb3-0x1a4;const _0x1e56da=a38_0x1e56();let _0x5435d8=_0x1e56da[_0x325cb3];return _0x5435d8;}import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a38_0x475c7f(0x1b7),'required':!![],'description':a38_0x475c7f(0x1ba)},FILE_FLAG={'name':a38_0x475c7f(0x1b4),'type':a38_0x475c7f(0x1b7),'required':!![],'description':a38_0x475c7f(0x1ae)},QUERY_FLAG={'name':a38_0x475c7f(0x1c0),'type':a38_0x475c7f(0x1b7),'required':!![],'description':a38_0x475c7f(0x1d1)},TOPK_FLAG={'name':a38_0x475c7f(0x1e1),'type':'number','description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x4d6e49){const _0x2f3a3a=a38_0x475c7f;if(!_0x4d6e49)throw CliErrors[_0x2f3a3a(0x1d3)](_0x2f3a3a(0x1a6));if(!existsSync(_0x4d6e49))throw CliErrors[_0x2f3a3a(0x1d3)](_0x2f3a3a(0x1c6)+_0x4d6e49);if(!statSync(_0x4d6e49)[_0x2f3a3a(0x1a7)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x4d6e49);return readFileSync(_0x4d6e49,_0x2f3a3a(0x1b6));}function summarizePersonalItem(_0x2d5c46){const _0x3fdf94=a38_0x475c7f;return{'id':_0x2d5c46['id'],'title':_0x2d5c46['title'],'version':_0x2d5c46[_0x3fdf94(0x1e5)],'ragStatus':_0x2d5c46[_0x3fdf94(0x1d9)],'ragErrorMessage':_0x2d5c46[_0x3fdf94(0x1aa)],'updateTime':_0x2d5c46[_0x3fdf94(0x1af)]};}function detailPersonalItem(_0x328212){const _0x5fb70=a38_0x475c7f;return{'id':_0x328212['id'],'appCode':_0x328212[_0x5fb70(0x1c7)],'scope':_0x328212[_0x5fb70(0x1e0)],'userId':_0x328212[_0x5fb70(0x1d0)],'title':_0x328212[_0x5fb70(0x1d6)],'content':_0x328212[_0x5fb70(0x1cf)],'version':_0x328212[_0x5fb70(0x1e5)],'ragStatus':_0x328212[_0x5fb70(0x1d9)],'ragErrorMessage':_0x328212[_0x5fb70(0x1aa)],'createTime':_0x328212['createTime'],'updateTime':_0x328212[_0x5fb70(0x1af)]};}function readTopK(_0x932cc0){const _0x500198=a38_0x475c7f,_0x4610a7=_0x932cc0[_0x500198(0x1d4)](_0x500198(0x1e1));if(_0x4610a7===undefined||_0x4610a7===null||_0x4610a7==='')return undefined;const _0x54396f=_0x932cc0['num'](_0x500198(0x1e1));if(!Number[_0x500198(0x1c3)](_0x54396f)||_0x54396f<0x1||_0x54396f>0x32)throw CliErrors['validation'](_0x500198(0x1c5));return _0x54396f;}function a38_0x1e56(){const _0x18d698=['content','userId','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Updated\x20KB\x20entry\x20','validation','flag','create','title','body','parse','ragStatus','Search\x20query\x20is\x20required.','830RjKgss','write','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','signal','trim','scope','topk','str','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','version','dryRun','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Personal\x20knowledge-base\x20entry\x20ID','309336ZUfyde','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','File\x20path\x20is\x20required.','isFile','2654240GgLqUv','list','ragErrorMessage','Created\x20KB\x20entry\x20','kb-service-url','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','updateTime','length','map','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','jsonBody','file','4546566dTnqim','utf8','string','path','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','Personal\x20knowledge-base\x20entry\x20title','build','551649JohjaG','method','description','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','query','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','bool','isSafeInteger','search','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','File\x20not\x20found:\x20','appCode','4363380mBiMdv','verbose','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','1614bQLydM','read','6VFTqfZ','22340DfKyOp'];a38_0x1e56=function(){return _0x18d698;};return a38_0x1e56();}const kbList={'service':'kb','command':a38_0x475c7f(0x1a9),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a38_0x475c7f(0x1cc),'flags':[VERBOSE_FLAG],async 'execute'(_0x4651f1){const _0x5caae7=a38_0x475c7f,_0xd81b6b=await listPersonalKnowledgeBaseItems(_0x4651f1[_0x5caae7(0x1c7)],_0x4651f1[_0x5caae7(0x1de)]);if(_0x4651f1[_0x5caae7(0x1c2)](_0x5caae7(0x1c9)))return{'ok':!![],'data':{'total':_0xd81b6b[_0x5caae7(0x1b0)],'items':_0xd81b6b}};return{'ok':!![],'data':{'total':_0xd81b6b['length'],'items':_0xd81b6b[_0x5caae7(0x1b1)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a38_0x475c7f(0x1c1),'risk':'read','flags':[{...ID_FLAG,'type':a38_0x475c7f(0x1b7),'description':a38_0x475c7f(0x1e8)}],async 'execute'(_0x20e68d){const _0x2a829c=a38_0x475c7f,_0x11332e=await getPersonalKnowledgeBaseItem(_0x20e68d[_0x2a829c(0x1e2)]('id'),_0x20e68d[_0x2a829c(0x1c7)],_0x20e68d[_0x2a829c(0x1de)]);return{'ok':!![],'data':detailPersonalItem(_0x11332e)};}},kbCreate={'service':'kb','command':a38_0x475c7f(0x1d5),'description':a38_0x475c7f(0x1a5),'risk':a38_0x475c7f(0x1dc),'confirmationDescription':a38_0x475c7f(0x1b9),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x2f97a9){const _0x1e80d1=a38_0x475c7f,_0x574570=_0x2f97a9[_0x1e80d1(0x1e2)](_0x1e80d1(0x1d6)),_0x49fcb7=readKnowledgeFile(_0x2f97a9[_0x1e80d1(0x1e2)]('file')),_0x3fb487=await createPersonalKnowledgeBaseItem(_0x2f97a9[_0x1e80d1(0x1c7)],{'title':_0x574570,'content':_0x49fcb7},_0x2f97a9[_0x1e80d1(0x1de)]);return{'ok':!![],'data':summarizePersonalItem(_0x3fb487),'message':_0x1e80d1(0x1ab)+_0x3fb487['id']+'\x20('+_0x3fb487[_0x1e80d1(0x1d6)]+')'};},async 'dryRun'(_0x2df782){const _0x5b049f=a38_0x475c7f,_0x212dc1=_0x2df782[_0x5b049f(0x1e2)](_0x5b049f(0x1d6)),_0x24e4c8=readKnowledgeFile(_0x2df782[_0x5b049f(0x1e2)](_0x5b049f(0x1b4))),_0x2ce9ac=planPersonalKnowledgeWrite(_0x2df782['appCode'],{'title':_0x212dc1,'content':_0x24e4c8});return dryRun(_0x2ce9ac[_0x5b049f(0x1bd)],_0x2ce9ac[_0x5b049f(0x1b8)])[_0x5b049f(0x1d7)](JSON['parse'](_0x2ce9ac[_0x5b049f(0x1b3)]))['description'](_0x5b049f(0x1dd)+_0x212dc1+'\x22')[_0x5b049f(0x1bb)]();}},kbUpdate={'service':'kb','command':'update','description':a38_0x475c7f(0x1b2),'risk':a38_0x475c7f(0x1dc),'confirmationDescription':a38_0x475c7f(0x1e3),'flags':[{...ID_FLAG,'type':a38_0x475c7f(0x1b7),'description':a38_0x475c7f(0x1e8)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x5b2c92){const _0x10b94f=a38_0x475c7f,_0x451f42=_0x5b2c92[_0x10b94f(0x1e2)]('id'),_0x228494=readKnowledgeFile(_0x5b2c92['str'](_0x10b94f(0x1b4))),_0x23abb9=_0x5b2c92[_0x10b94f(0x1e2)](_0x10b94f(0x1d6))||undefined,_0x1b760b=await updatePersonalKnowledgeBaseItem(_0x451f42,_0x5b2c92['appCode'],{'title':_0x23abb9,'content':_0x228494},_0x5b2c92[_0x10b94f(0x1de)]);return{'ok':!![],'data':summarizePersonalItem(_0x1b760b),'message':_0x10b94f(0x1d2)+_0x1b760b['id']+'\x20('+_0x1b760b['title']+')'};},async 'dryRun'(_0x5c8b1d){const _0x10aa39=a38_0x475c7f,_0x39668e=_0x5c8b1d[_0x10aa39(0x1e2)]('id'),_0x408f83=readKnowledgeFile(_0x5c8b1d[_0x10aa39(0x1e2)](_0x10aa39(0x1b4))),_0x2a7645=await getPersonalKnowledgeBaseItem(_0x39668e,_0x5c8b1d['appCode'],_0x5c8b1d[_0x10aa39(0x1de)]),_0x1297a4=_0x5c8b1d[_0x10aa39(0x1e2)]('title')||_0x2a7645['title'],_0x41d8dc=planPersonalKnowledgeWrite(_0x5c8b1d[_0x10aa39(0x1c7)],{'title':_0x1297a4,'content':_0x408f83},_0x39668e,_0x2a7645[_0x10aa39(0x1e5)]);return dryRun(_0x41d8dc[_0x10aa39(0x1bd)],_0x41d8dc[_0x10aa39(0x1b8)])[_0x10aa39(0x1d7)](JSON[_0x10aa39(0x1d8)](_0x41d8dc[_0x10aa39(0x1b3)]))[_0x10aa39(0x1be)](_0x10aa39(0x1ad)+_0x39668e)['build']();}};function readSearchServiceUrl(_0x1491eb){const _0x5c3a83=a38_0x475c7f;if(_0x1491eb[_0x5c3a83(0x1d4)](_0x5c3a83(0x1ac))!==undefined)return normalizeKbServiceOrigin(_0x1491eb[_0x5c3a83(0x1e2)]('kb-service-url'));const _0x59b8a0=getKbServiceDomain();if(!_0x59b8a0)throw CliErrors[_0x5c3a83(0x1d3)](_0x5c3a83(0x1e7),_0x5c3a83(0x1e4));return normalizeKbServiceOrigin(_0x59b8a0);}const kbSearch={'service':'kb','command':a38_0x475c7f(0x1c4),'description':a38_0x475c7f(0x1ca),'risk':a38_0x475c7f(0x1cc),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a38_0x475c7f(0x1b7),'required':![],'description':a38_0x475c7f(0x1bf)}],async 'validate'(_0xa70836){const _0x587105=a38_0x475c7f;if(!_0xa70836[_0x587105(0x1e2)](_0x587105(0x1c0))[_0x587105(0x1df)]())throw CliErrors['validation'](_0x587105(0x1da));readTopK(_0xa70836),readSearchServiceUrl(_0xa70836);},async 'execute'(_0x417bc0){const _0x16912b=a38_0x475c7f,_0x5e221e=_0x417bc0['str'](_0x16912b(0x1c0))['trim'](),_0x4c67d1=readTopK(_0x417bc0),_0x111690=readSearchServiceUrl(_0x417bc0),_0x47fcad={'appCode':_0x417bc0['appCode'],'accessKey':_0x417bc0['accessKey']??'','query':_0x5e221e,..._0x4c67d1!==undefined?{'topK':_0x4c67d1}:{},'signal':_0x417bc0[_0x16912b(0x1de)]},_0xb591f3=await searchDirectKnowledge({..._0x47fcad,'serviceUrl':_0x111690});return{'ok':!![],'data':_0xb591f3};}};function managementCommand(_0xce8bfd){const _0x2bfb9d=a38_0x475c7f;return{..._0xce8bfd,'execute':_0x6e6ff2=>withKbManagementOrigin(()=>_0xce8bfd['execute'](_0x6e6ff2)),..._0xce8bfd[_0x2bfb9d(0x1e6)]?{'dryRun':_0x53e87a=>withKbManagementOrigin(()=>_0xce8bfd['dryRun'](_0x53e87a))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x475c7f(0x1b1)](managementCommand),kbSearch];
1
+ function a38_0x50ff(_0x2e35bd,_0x5cf883){_0x2e35bd=_0x2e35bd-0x129;const _0x59fdea=a38_0x59fd();let _0x50ff9e=_0x59fdea[_0x2e35bd];return _0x50ff9e;}const a38_0x772e9d=a38_0x50ff;(function(_0x2bc1b9,_0x32ee57){const _0x1df1a3=a38_0x50ff,_0x3c6e35=_0x2bc1b9();while(!![]){try{const _0x26f382=parseInt(_0x1df1a3(0x168))/0x1*(parseInt(_0x1df1a3(0x12d))/0x2)+parseInt(_0x1df1a3(0x147))/0x3+parseInt(_0x1df1a3(0x167))/0x4*(parseInt(_0x1df1a3(0x146))/0x5)+-parseInt(_0x1df1a3(0x163))/0x6+parseInt(_0x1df1a3(0x132))/0x7+-parseInt(_0x1df1a3(0x12b))/0x8*(-parseInt(_0x1df1a3(0x157))/0x9)+parseInt(_0x1df1a3(0x140))/0xa*(-parseInt(_0x1df1a3(0x149))/0xb);if(_0x26f382===_0x32ee57)break;else _0x3c6e35['push'](_0x3c6e35['shift']());}catch(_0x4927f7){_0x3c6e35['push'](_0x3c6e35['shift']());}}}(a38_0x59fd,0x24015));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a38_0x772e9d(0x155),'type':'string','required':!![],'description':a38_0x772e9d(0x142)},FILE_FLAG={'name':a38_0x772e9d(0x166),'type':'string','required':!![],'description':a38_0x772e9d(0x158)},QUERY_FLAG={'name':a38_0x772e9d(0x16b),'type':a38_0x772e9d(0x144),'required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a38_0x772e9d(0x15c),'type':a38_0x772e9d(0x13d),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x5e5a80){const _0x41c01f=a38_0x772e9d;if(!_0x5e5a80)throw CliErrors[_0x41c01f(0x156)](_0x41c01f(0x16c));if(!existsSync(_0x5e5a80))throw CliErrors[_0x41c01f(0x156)]('File\x20not\x20found:\x20'+_0x5e5a80);if(!statSync(_0x5e5a80)['isFile']())throw CliErrors[_0x41c01f(0x156)](_0x41c01f(0x15b)+_0x5e5a80);return readFileSync(_0x5e5a80,_0x41c01f(0x14a));}function summarizePersonalItem(_0x430f9c){const _0x3b2284=a38_0x772e9d;return{'id':_0x430f9c['id'],'title':_0x430f9c[_0x3b2284(0x155)],'version':_0x430f9c[_0x3b2284(0x138)],'ragStatus':_0x430f9c[_0x3b2284(0x13a)],'ragErrorMessage':_0x430f9c[_0x3b2284(0x134)],'updateTime':_0x430f9c[_0x3b2284(0x12c)]};}function detailPersonalItem(_0x2e4860){const _0x483fd6=a38_0x772e9d;return{'id':_0x2e4860['id'],'appCode':_0x2e4860[_0x483fd6(0x13c)],'scope':_0x2e4860[_0x483fd6(0x153)],'userId':_0x2e4860['userId'],'title':_0x2e4860['title'],'content':_0x2e4860['content'],'version':_0x2e4860[_0x483fd6(0x138)],'ragStatus':_0x2e4860[_0x483fd6(0x13a)],'ragErrorMessage':_0x2e4860['ragErrorMessage'],'createTime':_0x2e4860['createTime'],'updateTime':_0x2e4860[_0x483fd6(0x12c)]};}function readTopK(_0x22a1eb){const _0x95d2ff=a38_0x772e9d,_0x201d78=_0x22a1eb[_0x95d2ff(0x162)]('topk');if(_0x201d78===undefined||_0x201d78===null||_0x201d78==='')return undefined;const _0x7e9fae=_0x22a1eb['num']('topk');if(!Number[_0x95d2ff(0x16a)](_0x7e9fae)||_0x7e9fae<0x1||_0x7e9fae>0x32)throw CliErrors[_0x95d2ff(0x156)](_0x95d2ff(0x14f));return _0x7e9fae;}const kbList={'service':'kb','command':'list','description':a38_0x772e9d(0x14e),'risk':a38_0x772e9d(0x161),'flags':[VERBOSE_FLAG],async 'execute'(_0x5d4bcc){const _0x247e8e=a38_0x772e9d,_0x75e2ef=await listPersonalKnowledgeBaseItems(_0x5d4bcc['appCode'],_0x5d4bcc[_0x247e8e(0x135)]);if(_0x5d4bcc[_0x247e8e(0x148)](_0x247e8e(0x13e)))return{'ok':!![],'data':{'total':_0x75e2ef[_0x247e8e(0x15d)],'items':_0x75e2ef}};return{'ok':!![],'data':{'total':_0x75e2ef[_0x247e8e(0x15d)],'items':_0x75e2ef['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x772e9d(0x169),'description':a38_0x772e9d(0x13f),'risk':a38_0x772e9d(0x161),'flags':[{...ID_FLAG,'type':a38_0x772e9d(0x144),'description':a38_0x772e9d(0x137)}],async 'execute'(_0x14a00a){const _0x531f5e=a38_0x772e9d,_0x3b0db0=await getPersonalKnowledgeBaseItem(_0x14a00a[_0x531f5e(0x139)]('id'),_0x14a00a['appCode'],_0x14a00a[_0x531f5e(0x135)]);return{'ok':!![],'data':detailPersonalItem(_0x3b0db0)};}},kbCreate={'service':'kb','command':a38_0x772e9d(0x12f),'description':a38_0x772e9d(0x130),'risk':a38_0x772e9d(0x159),'confirmationDescription':a38_0x772e9d(0x14c),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x5a9d51){const _0xa6049e=a38_0x772e9d,_0x4f4c7c=_0x5a9d51[_0xa6049e(0x139)](_0xa6049e(0x155)),_0x51eebd=readKnowledgeFile(_0x5a9d51[_0xa6049e(0x139)](_0xa6049e(0x166))),_0x4bc80e=await createPersonalKnowledgeBaseItem(_0x5a9d51[_0xa6049e(0x13c)],{'title':_0x4f4c7c,'content':_0x51eebd},_0x5a9d51[_0xa6049e(0x135)]);return{'ok':!![],'data':summarizePersonalItem(_0x4bc80e),'message':_0xa6049e(0x154)+_0x4bc80e['id']+'\x20('+_0x4bc80e[_0xa6049e(0x155)]+')'};},async 'dryRun'(_0x15fa65){const _0x4074a5=a38_0x772e9d,_0x2f8778=_0x15fa65[_0x4074a5(0x139)](_0x4074a5(0x155)),_0x4d0d01=readKnowledgeFile(_0x15fa65[_0x4074a5(0x139)](_0x4074a5(0x166))),_0x5a57e3=planPersonalKnowledgeWrite(_0x15fa65[_0x4074a5(0x13c)],{'title':_0x2f8778,'content':_0x4d0d01});return dryRun(_0x5a57e3[_0x4074a5(0x164)],_0x5a57e3[_0x4074a5(0x15e)])[_0x4074a5(0x160)](JSON[_0x4074a5(0x143)](_0x5a57e3['jsonBody']))[_0x4074a5(0x136)](_0x4074a5(0x129)+_0x2f8778+'\x22')[_0x4074a5(0x12e)]();}},kbUpdate={'service':'kb','command':a38_0x772e9d(0x15f),'description':a38_0x772e9d(0x16d),'risk':a38_0x772e9d(0x159),'confirmationDescription':a38_0x772e9d(0x14d),'flags':[{...ID_FLAG,'type':a38_0x772e9d(0x144),'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a38_0x772e9d(0x15a)},FILE_FLAG],async 'execute'(_0x4ecb7e){const _0x497900=a38_0x772e9d,_0x2581d1=_0x4ecb7e[_0x497900(0x139)]('id'),_0x3d0498=readKnowledgeFile(_0x4ecb7e[_0x497900(0x139)](_0x497900(0x166))),_0x16633b=_0x4ecb7e[_0x497900(0x139)](_0x497900(0x155))||undefined,_0x1ea050=await updatePersonalKnowledgeBaseItem(_0x2581d1,_0x4ecb7e[_0x497900(0x13c)],{'title':_0x16633b,'content':_0x3d0498},_0x4ecb7e[_0x497900(0x135)]);return{'ok':!![],'data':summarizePersonalItem(_0x1ea050),'message':'Updated\x20KB\x20entry\x20'+_0x1ea050['id']+'\x20('+_0x1ea050[_0x497900(0x155)]+')'};},async 'dryRun'(_0x47424c){const _0x3c4031=a38_0x772e9d,_0x3e1d6d=_0x47424c['str']('id'),_0x4d4c3a=readKnowledgeFile(_0x47424c[_0x3c4031(0x139)]('file')),_0x52dbbe=await getPersonalKnowledgeBaseItem(_0x3e1d6d,_0x47424c[_0x3c4031(0x13c)],_0x47424c[_0x3c4031(0x135)]),_0x1e96b3=_0x47424c['str']('title')||_0x52dbbe['title'],_0x32f6f3=planPersonalKnowledgeWrite(_0x47424c[_0x3c4031(0x13c)],{'title':_0x1e96b3,'content':_0x4d4c3a},_0x3e1d6d,_0x52dbbe[_0x3c4031(0x138)]);return dryRun(_0x32f6f3['method'],_0x32f6f3[_0x3c4031(0x15e)])['body'](JSON[_0x3c4031(0x143)](_0x32f6f3[_0x3c4031(0x141)]))[_0x3c4031(0x136)](_0x3c4031(0x131)+_0x3e1d6d)[_0x3c4031(0x12e)]();}};function a38_0x59fd(){const _0x4df4b8=['version','str','ragStatus','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','appCode','number','verbose','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','80030wUwVSM','jsonBody','Personal\x20knowledge-base\x20entry\x20title','parse','string','trim','5DLDTdn','653757ZnCQVA','bool','792zmMmEj','utf8','kb-service-url','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','accessKey','map','scope','Created\x20KB\x20entry\x20','title','validation','1850445BATCAi','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','write','Override\x20the\x20existing\x20entry\x20title','File\x20is\x20not\x20a\x20regular\x20file:\x20','topk','length','path','update','body','read','flag','1186188ONvahg','method','search','file','916772HcqSpr','13771mnGFSI','detail','isSafeInteger','query','File\x20path\x20is\x20required.','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','dryRun','8xhCLfW','updateTime','4btLOJR','build','create','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','1687924fXtwQt','execute','ragErrorMessage','signal','description','Personal\x20knowledge-base\x20entry\x20ID'];a38_0x59fd=function(){return _0x4df4b8;};return a38_0x59fd();}function readSearchServiceUrl(_0x15adb8){const _0x4a9d11=a38_0x772e9d;if(_0x15adb8['flag'](_0x4a9d11(0x14b))!==undefined)return normalizeKbServiceOrigin(_0x15adb8['str']('kb-service-url'));const _0x75170=getKbServiceDomain();if(!_0x75170)throw CliErrors[_0x4a9d11(0x156)]('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.',_0x4a9d11(0x150));return normalizeKbServiceOrigin(_0x75170);}const kbSearch={'service':'kb','command':a38_0x772e9d(0x165),'description':a38_0x772e9d(0x13b),'risk':a38_0x772e9d(0x161),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a38_0x772e9d(0x14b),'type':a38_0x772e9d(0x144),'required':![],'description':'Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only'}],async 'validate'(_0x1a775f){const _0x37a18c=a38_0x772e9d;if(!_0x1a775f[_0x37a18c(0x139)](_0x37a18c(0x16b))['trim']())throw CliErrors[_0x37a18c(0x156)]('Search\x20query\x20is\x20required.');readTopK(_0x1a775f),readSearchServiceUrl(_0x1a775f);},async 'execute'(_0x2620de){const _0x10c655=a38_0x772e9d,_0x34de7b=_0x2620de['str'](_0x10c655(0x16b))[_0x10c655(0x145)](),_0xb80ce5=readTopK(_0x2620de),_0x43760d=readSearchServiceUrl(_0x2620de),_0x1d8d2e={'appCode':_0x2620de[_0x10c655(0x13c)],'accessKey':_0x2620de[_0x10c655(0x151)]??'','query':_0x34de7b,..._0xb80ce5!==undefined?{'topK':_0xb80ce5}:{},'signal':_0x2620de[_0x10c655(0x135)]},_0x519273=await searchDirectKnowledge({..._0x1d8d2e,'serviceUrl':_0x43760d});return{'ok':!![],'data':_0x519273};}};function managementCommand(_0x301a3b){const _0x268986=a38_0x772e9d;return{..._0x301a3b,'execute':_0x4591de=>withKbManagementOrigin(()=>_0x301a3b[_0x268986(0x133)](_0x4591de)),..._0x301a3b[_0x268986(0x12a)]?{'dryRun':_0x5b1b84=>withKbManagementOrigin(()=>_0x301a3b[_0x268986(0x12a)](_0x5b1b84))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x772e9d(0x152)](managementCommand),kbSearch];