@lovrabet/lovrabet-cli 2.3.5-beta.2 → 2.3.6-beta.1

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 (187) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +10 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.d.ts +3 -1
  141. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  142. package/lib/services/dataset-import/excel-reader.js +1 -1
  143. package/lib/services/dataset-import/image-bytes.d.ts +3 -0
  144. package/lib/services/dataset-import/image-bytes.js +1 -0
  145. package/lib/services/dataset-import/image-ooxml.d.ts +10 -0
  146. package/lib/services/dataset-import/image-ooxml.js +1 -0
  147. package/lib/services/dataset-import/image-runner.d.ts +48 -0
  148. package/lib/services/dataset-import/image-runner.js +1 -0
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.d.ts +10 -1
  152. package/lib/services/dataset-import/runner.js +1 -1
  153. package/lib/services/dataset-import/types.d.ts +28 -1
  154. package/lib/skills/builtin-skill.js +1 -1
  155. package/lib/skills/npx-skills-add.js +1 -1
  156. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  157. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  158. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  159. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  160. package/lib/skills/runtime-skill-sync/links.js +1 -1
  161. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  162. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  163. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  164. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  165. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  166. package/lib/skills/runtime-skill-sync/push.js +1 -1
  167. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  169. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  170. package/lib/skills/runtime-skill-sync.js +1 -1
  171. package/lib/skills/skill-presence.js +1 -1
  172. package/lib/utils/access-key-redaction.js +1 -1
  173. package/lib/utils/apply-jq-filter.js +1 -1
  174. package/lib/utils/cli-version-check.js +1 -1
  175. package/lib/utils/cli-version-policy.js +1 -1
  176. package/lib/utils/logger.js +1 -1
  177. package/lib/utils/lossless-json.js +1 -1
  178. package/lib/utils/params.js +1 -1
  179. package/lib/utils/positive-safe-integer.js +1 -1
  180. package/lib/utils/redaction.js +1 -1
  181. package/lib/utils/update-notice.js +1 -1
  182. package/lib/utils/version.js +1 -1
  183. package/lib/utils/write-cli-side-channel.js +1 -1
  184. package/package.json +4 -1
  185. package/skills/lovrabet/SKILL.md +3 -1
  186. package/skills/lovrabet/references/lovrabet-excel-import.md +19 -0
  187. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a27_0x5547(){const _0x386354=['\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\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\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\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$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]}}','operation','read','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','update','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\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\x20WHERE\x20OPERATORS','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','5468136HPLFZe','\x20\x20AGGREGATE\x20TYPES','build','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','high-risk-write','data\x20','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','description','2999180nTJdDd','Filter\x20dataset\x20records\x20with\x20query\x20conditions','222YsspiR','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','filter','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','body','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','/api/{appCode}/','16SAQzIP','1512261VoSuJj','batchCreate','command','\x20\x20DATASET\x20BOUNDARY','str','660431jkoUPk','risk','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','Get\x20a\x20single\x20record\x20by\x20ID','Create\x20one\x20record\x20in\x20the\x20dataset','20zvUgKH','Update\x20an\x20existing\x20data\x20record','paramsRequired','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','dryRun','params','confirmationDescription','batch','now','\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}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','join','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20EXAMPLES','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','278571IAYqEi','write','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$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\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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\x20PAGINATION','POST','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20completed\x20in\x20','paramsHint','delete','aggregate','43526xUFUUo','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20on\x20dataset\x20','\x20\x20EXCEL\x20ROUTES','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','1325698fmkcjN','create','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','length','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','helpExtra','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','getOne'];a27_0x5547=function(){return _0x386354;};return a27_0x5547();}const a27_0x5e6a5e=a27_0x5680;(function(_0xf6bae2,_0x164d27){const _0x360317=a27_0x5680,_0x258388=_0xf6bae2();while(!![]){try{const _0x50087b=-parseInt(_0x360317(0x1ec))/0x1+-parseInt(_0x360317(0x220))/0x2+-parseInt(_0x360317(0x203))/0x3*(-parseInt(_0x360317(0x1e6))/0x4)+parseInt(_0x360317(0x1dc))/0x5+parseInt(_0x360317(0x1de))/0x6*(-parseInt(_0x360317(0x214))/0x7)+parseInt(_0x360317(0x1d3))/0x8+-parseInt(_0x360317(0x1e7))/0x9*(-parseInt(_0x360317(0x1f3))/0xa);if(_0x50087b===_0x164d27)break;else _0x258388['push'](_0x258388['shift']());}catch(_0x3f2435){_0x258388['push'](_0x258388['shift']());}}}(a27_0x5547,0x6acf5));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a27_0x5680(_0x4f8be0,_0x49b85b){_0x4f8be0=_0x4f8be0-0x1c9;const _0x5547da=a27_0x5547();let _0x56806a=_0x5547da[_0x4f8be0];return _0x56806a;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a27_0x5e6a5e(0x1e1),'risk':a27_0x5e6a5e(0x1ca),'paramsRequired':![],'description':a27_0x5e6a5e(0x1dd),'paramsHint':a27_0x5e6a5e(0x208)+a27_0x5e6a5e(0x224),'helpExtra':[a27_0x5e6a5e(0x1d1),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a27_0x5e6a5e(0x206),a27_0x5e6a5e(0x205),a27_0x5e6a5e(0x1d0),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a27_0x5e6a5e(0x22d),a27_0x5e6a5e(0x21c),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a27_0x5e6a5e(0x209),'','\x20\x20LOGICAL\x20COMBINATORS',a27_0x5e6a5e(0x21b),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a27_0x5e6a5e(0x200),a27_0x5e6a5e(0x20a),a27_0x5e6a5e(0x1ef),a27_0x5e6a5e(0x1cc),'\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)','',a27_0x5e6a5e(0x20c),a27_0x5e6a5e(0x1ff),'\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_0x5e6a5e(0x222),a27_0x5e6a5e(0x20f),'\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_0x5e6a5e(0x22a),a27_0x5e6a5e(0x202)]['join']('\x0a')},{'command':a27_0x5e6a5e(0x228),'operation':'getOne','risk':'read','paramsRequired':!![],'description':a27_0x5e6a5e(0x1f1),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x5e6a5e(0x221),'operation':'create','risk':a27_0x5e6a5e(0x204),'paramsRequired':!![],'description':a27_0x5e6a5e(0x1f2),'confirmationDescription':'Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x5e6a5e(0x1e2)},{'command':'batchCreate','operation':a27_0x5e6a5e(0x1e8),'risk':a27_0x5e6a5e(0x204),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','helpExtra':[a27_0x5e6a5e(0x21e),a27_0x5e6a5e(0x1cf),'\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,',a27_0x5e6a5e(0x1da),a27_0x5e6a5e(0x22b),'\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.',a27_0x5e6a5e(0x207),a27_0x5e6a5e(0x219),'\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.',a27_0x5e6a5e(0x1df),a27_0x5e6a5e(0x229)][a27_0x5e6a5e(0x1fe)]('\x0a'),'confirmationDescription':a27_0x5e6a5e(0x215),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a27_0x5e6a5e(0x1cd),'operation':a27_0x5e6a5e(0x1cd),'risk':a27_0x5e6a5e(0x204),'paramsRequired':!![],'description':a27_0x5e6a5e(0x1f4),'confirmationDescription':a27_0x5e6a5e(0x1d9),'paramsHint':a27_0x5e6a5e(0x216)+'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_0x5e6a5e(0x212),'operation':a27_0x5e6a5e(0x212),'risk':a27_0x5e6a5e(0x1d7),'paramsRequired':!![],'description':a27_0x5e6a5e(0x21a),'confirmationDescription':a27_0x5e6a5e(0x21f),'paramsHint':a27_0x5e6a5e(0x1cb)},{'command':a27_0x5e6a5e(0x213),'operation':a27_0x5e6a5e(0x213),'risk':a27_0x5e6a5e(0x1ca),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a27_0x5e6a5e(0x1fd)+a27_0x5e6a5e(0x1e4),'helpExtra':[a27_0x5e6a5e(0x1d4),'\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\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_0x5e6a5e(0x1ee),'\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a27_0x5e6a5e(0x1fc),'',a27_0x5e6a5e(0x218),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x5e6a5e(0x217),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x5e6a5e(0x1ce),a27_0x5e6a5e(0x20b),'',a27_0x5e6a5e(0x227),a27_0x5e6a5e(0x1e0),'\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields',a27_0x5e6a5e(0x225),'',a27_0x5e6a5e(0x1ea),'\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only',a27_0x5e6a5e(0x1f6),a27_0x5e6a5e(0x20e),a27_0x5e6a5e(0x1f0),'',a27_0x5e6a5e(0x201),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a27_0x5e6a5e(0x1d6),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a27_0x5e6a5e(0x22c),'',a27_0x5e6a5e(0x1d2)][a27_0x5e6a5e(0x1fe)]('\x0a')}];function makeDataCommand(_0x103f82){const _0x560c3c=a27_0x5e6a5e,_0x132849=_0x560c3c(0x1d8)+_0x103f82[_0x560c3c(0x1e9)],_0x4917dd={'service':'data','command':_0x103f82[_0x560c3c(0x1e9)],'description':_0x103f82[_0x560c3c(0x1db)],'risk':_0x103f82[_0x560c3c(0x1ed)],..._0x103f82[_0x560c3c(0x1f9)]?{'confirmationDescription':_0x103f82['confirmationDescription']}:{},'helpExtra':_0x103f82[_0x560c3c(0x226)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x103f82[_0x560c3c(0x211)]}],'validate':async _0x5adada=>{const _0x4f9fd0=_0x560c3c;_0x103f82[_0x4f9fd0(0x1f5)]&&requireAnyOf(_0x5adada,[_0x4f9fd0(0x1f8)],_0x132849),_0x103f82[_0x4f9fd0(0x1c9)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5adada['str'](_0x4f9fd0(0x1f8)))),_0x103f82['operation']===_0x4f9fd0(0x1cd)&&parseUpdateIdsFromParams(parseJsonParams(_0x5adada[_0x4f9fd0(0x1eb)]('params'))??{});},async 'execute'(_0x13c5a9){const _0x58a909=_0x560c3c,_0x314c6f=_0x13c5a9[_0x58a909(0x1eb)]('code'),_0x1599fe=_0x103f82[_0x58a909(0x1c9)]===_0x58a909(0x1e8)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x13c5a9[_0x58a909(0x1eb)](_0x58a909(0x1f8)))):parseJsonParams(_0x13c5a9[_0x58a909(0x1eb)](_0x58a909(0x1f8)))??{},_0x83c92b=_0x103f82[_0x58a909(0x1c9)]===_0x58a909(0x1cd)?parseUpdateIdsFromParams(_0x1599fe):undefined,_0x3a27e6=_0x83c92b?normalizeUpdateParamsForRuntime(_0x1599fe,_0x83c92b):_0x1599fe,_0x2076db=Date[_0x58a909(0x1fb)](),_0x2e3aec=await executeData(_0x314c6f,_0x103f82[_0x58a909(0x1c9)],_0x3a27e6),_0x2e4046=Date[_0x58a909(0x1fb)]()-_0x2076db,_0x51b3fd=_0x83c92b&&_0x83c92b[_0x58a909(0x223)]>0x1?buildBatchUpdateResult(_0x83c92b,_0x2e3aec):_0x2e3aec;return{'ok':!![],'data':{'result':_0x51b3fd,'elapsed':_0x2e4046},'message':_0x58a909(0x1d8)+_0x103f82[_0x58a909(0x1e9)]+_0x58a909(0x210)+_0x2e4046+'ms'};}};return _0x103f82[_0x560c3c(0x1ed)]!==_0x560c3c(0x1ca)&&(_0x4917dd[_0x560c3c(0x1f7)]=async _0x2a7489=>{const _0x4fa3f5=_0x560c3c,_0x362677=_0x2a7489['str']('code'),_0x2e880f=_0x103f82[_0x4fa3f5(0x1c9)]===_0x4fa3f5(0x1e8)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2a7489[_0x4fa3f5(0x1eb)](_0x4fa3f5(0x1f8)))):parseJsonParams(_0x2a7489[_0x4fa3f5(0x1eb)]('params'))??{};let _0x7efc64=_0x2e880f;if(_0x103f82['operation']===_0x4fa3f5(0x1cd)){const _0x3c11f4=parseUpdateIdsFromParams(_0x2e880f);_0x7efc64=normalizeUpdateParamsForRuntime(_0x2e880f,_0x3c11f4);}return dryRun(_0x4fa3f5(0x20d),_0x4fa3f5(0x1e5)+_0x362677+'/'+_0x103f82[_0x4fa3f5(0x1c9)])[_0x4fa3f5(0x1e3)](_0x7efc64)[_0x4fa3f5(0x1db)]('Preview:\x20data\x20'+_0x103f82[_0x4fa3f5(0x1e9)]+_0x4fa3f5(0x21d)+_0x362677)[_0x4fa3f5(0x1d5)]();}),_0x4917dd;}export const dataDefinitions=[...specs['map'](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0xbd899c,_0x5c4e00){const _0x57ab4f=a27_0x5e6a5e;return{'operation':_0x57ab4f(0x1cd),'mode':_0x57ab4f(0x1fa),'ids':_0xbd899c,'total':_0xbd899c[_0x57ab4f(0x223)],'result':_0x5c4e00};}
1
+ const a27_0x32346a=a27_0x24e4;(function(_0x1649ea,_0x5181b7){const _0x2580ae=a27_0x24e4,_0x21f1a7=_0x1649ea();while(!![]){try{const _0x5c2e2c=parseInt(_0x2580ae(0x1b9))/0x1*(parseInt(_0x2580ae(0x1bb))/0x2)+-parseInt(_0x2580ae(0x1bf))/0x3+parseInt(_0x2580ae(0x1f9))/0x4*(parseInt(_0x2580ae(0x1e9))/0x5)+-parseInt(_0x2580ae(0x1aa))/0x6*(parseInt(_0x2580ae(0x1da))/0x7)+parseInt(_0x2580ae(0x1c5))/0x8*(parseInt(_0x2580ae(0x1d6))/0x9)+parseInt(_0x2580ae(0x1f1))/0xa*(parseInt(_0x2580ae(0x1df))/0xb)+-parseInt(_0x2580ae(0x1db))/0xc;if(_0x5c2e2c===_0x5181b7)break;else _0x21f1a7['push'](_0x21f1a7['shift']());}catch(_0x56b4c3){_0x21f1a7['push'](_0x21f1a7['shift']());}}}(a27_0x4ac0,0xdda19));function a27_0x24e4(_0x568309,_0x50dda5){_0x568309=_0x568309-0x18f;const _0x4ac042=a27_0x4ac0();let _0x24e4a6=_0x4ac042[_0x568309];return _0x24e4a6;}function a27_0x4ac0(){const _0x15880d=['\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','confirmationDescription','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','16YDIRCs','\x20\x20EXCEL\x20ROUTES','Create\x20one\x20record\x20in\x20the\x20dataset','dryRun','filter','\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','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}}','update','\x20\x20DATASET\x20BOUNDARY','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\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\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}','command','/api/{appCode}/','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','now','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','build','body','\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}','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\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}','258iCpLkH','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Preview:\x20data\x20','data','\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$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}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','create','batchCreate','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','join','high-risk-write','operation','4264VAmGnt','helpExtra','146HWGPPr','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\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','write','1876467xjxkhG','description','str','\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\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}]','2934312bMwlLC','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','code','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','params','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\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\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20--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','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20PAGINATION','36PKeSDD','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Update\x20an\x20existing\x20data\x20record','3738fgnFUJ','23508864lTsgIx','\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--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','batch','462022FkpyNM','\x20\x20WHERE\x20OPERATORS','getOne','\x20\x20EXAMPLES','\x20on\x20dataset\x20','data\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','281030ZTIQWE','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}','aggregate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\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\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}}]}','360HHaBEo'];a27_0x4ac0=function(){return _0x15880d;};return a27_0x4ac0();}import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x32346a(0x190),'operation':a27_0x32346a(0x190),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x32346a(0x1e8)+a27_0x32346a(0x1ab),'helpExtra':[a27_0x32346a(0x1e0),a27_0x32346a(0x1cd),a27_0x32346a(0x1cf),a27_0x32346a(0x1b1),a27_0x32346a(0x1ac),a27_0x32346a(0x1b0),a27_0x32346a(0x196),a27_0x32346a(0x1c2),a27_0x32346a(0x1d2),a27_0x32346a(0x1a8),a27_0x32346a(0x1ef),'','\x20\x20LOGICAL\x20COMBINATORS',a27_0x32346a(0x1f0),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a27_0x32346a(0x1a7),a27_0x32346a(0x1f4),a27_0x32346a(0x193),a27_0x32346a(0x1dc),a27_0x32346a(0x1d8),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a27_0x32346a(0x1d5),a27_0x32346a(0x1f6),'\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_0x32346a(0x1c6),a27_0x32346a(0x19f),'\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_0x32346a(0x1bd),a27_0x32346a(0x1f2)][a27_0x32346a(0x1b6)]('\x0a')},{'command':a27_0x32346a(0x1e1),'operation':a27_0x32346a(0x1e1),'risk':'read','paramsRequired':!![],'description':a27_0x32346a(0x1d4),'paramsHint':a27_0x32346a(0x1f8)},{'command':a27_0x32346a(0x1b3),'operation':'create','risk':a27_0x32346a(0x1be),'paramsRequired':!![],'description':a27_0x32346a(0x1fb),'confirmationDescription':a27_0x32346a(0x1d7),'paramsHint':a27_0x32346a(0x19e)},{'command':a27_0x32346a(0x1b4),'operation':'batchCreate','risk':a27_0x32346a(0x1be),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','helpExtra':[a27_0x32346a(0x1fa),'\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.',a27_0x32346a(0x194),a27_0x32346a(0x1bc),'\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.',a27_0x32346a(0x1dd),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.',a27_0x32346a(0x1cc),a27_0x32346a(0x1a1),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.'][a27_0x32346a(0x1b6)]('\x0a'),'confirmationDescription':a27_0x32346a(0x1a5),'paramsHint':a27_0x32346a(0x1f5)},{'command':'update','operation':a27_0x32346a(0x197),'risk':a27_0x32346a(0x1be),'paramsRequired':!![],'description':a27_0x32346a(0x1d9),'confirmationDescription':a27_0x32346a(0x1ca),'paramsHint':a27_0x32346a(0x1b5)+a27_0x32346a(0x1b2)},{'command':'delete','operation':'delete','risk':a27_0x32346a(0x1b7),'paramsRequired':!![],'description':a27_0x32346a(0x1ee),'confirmationDescription':'Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x32346a(0x1ec),'operation':a27_0x32346a(0x1ec),'risk':'read','paramsRequired':![],'description':a27_0x32346a(0x1a6),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a27_0x32346a(0x1ed),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a27_0x32346a(0x19a),a27_0x32346a(0x1a9),a27_0x32346a(0x19b),a27_0x32346a(0x1eb),a27_0x32346a(0x1a4),a27_0x32346a(0x1e7),a27_0x32346a(0x1c7),'','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x32346a(0x1ea),a27_0x32346a(0x1e5),a27_0x32346a(0x1e6),a27_0x32346a(0x1d0),a27_0x32346a(0x1c4),'','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY',a27_0x32346a(0x1d1),a27_0x32346a(0x1ce),a27_0x32346a(0x1c8),'',a27_0x32346a(0x198),a27_0x32346a(0x1f7),'\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL',a27_0x32346a(0x199),'',a27_0x32346a(0x1e2),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a27_0x32346a(0x191),'',a27_0x32346a(0x1ad),a27_0x32346a(0x1d3),'',a27_0x32346a(0x192)][a27_0x32346a(0x1b6)]('\x0a')}];function makeDataCommand(_0x351a4f){const _0x2e3275=a27_0x32346a,_0x4f83ad=_0x2e3275(0x1e4)+_0x351a4f['command'],_0x21e136={'service':_0x2e3275(0x1af),'command':_0x351a4f['command'],'description':_0x351a4f['description'],'risk':_0x351a4f['risk'],..._0x351a4f['confirmationDescription']?{'confirmationDescription':_0x351a4f[_0x2e3275(0x1f3)]}:{},'helpExtra':_0x351a4f[_0x2e3275(0x1ba)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x351a4f[_0x2e3275(0x1c3)]}],'validate':async _0x208a89=>{const _0x29b108=_0x2e3275;_0x351a4f['paramsRequired']&&requireAnyOf(_0x208a89,[_0x29b108(0x1cb)],_0x4f83ad),_0x351a4f[_0x29b108(0x1b8)]===_0x29b108(0x1b4)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x208a89[_0x29b108(0x1c1)]('params'))),_0x351a4f[_0x29b108(0x1b8)]===_0x29b108(0x197)&&parseUpdateIdsFromParams(parseJsonParams(_0x208a89[_0x29b108(0x1c1)](_0x29b108(0x1cb)))??{});},async 'execute'(_0x490d6e){const _0x42d85f=_0x2e3275,_0x33d0fa=_0x490d6e[_0x42d85f(0x1c1)](_0x42d85f(0x1c9)),_0x551902=_0x351a4f[_0x42d85f(0x1b8)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x490d6e[_0x42d85f(0x1c1)]('params'))):parseJsonParams(_0x490d6e['str'](_0x42d85f(0x1cb)))??{},_0x764d1f=_0x351a4f[_0x42d85f(0x1b8)]===_0x42d85f(0x197)?parseUpdateIdsFromParams(_0x551902):undefined,_0x20ccf7=_0x764d1f?normalizeUpdateParamsForRuntime(_0x551902,_0x764d1f):_0x551902,_0x59b5df=Date[_0x42d85f(0x1a0)](),_0x419a20=await executeData(_0x33d0fa,_0x351a4f['operation'],_0x20ccf7),_0x22de08=Date[_0x42d85f(0x1a0)]()-_0x59b5df,_0x4cfa3b=_0x764d1f&&_0x764d1f['length']>0x1?buildBatchUpdateResult(_0x764d1f,_0x419a20):_0x419a20;return{'ok':!![],'data':{'result':_0x4cfa3b,'elapsed':_0x22de08},'message':_0x42d85f(0x1e4)+_0x351a4f[_0x42d85f(0x19c)]+'\x20completed\x20in\x20'+_0x22de08+'ms'};}};return _0x351a4f['risk']!==_0x2e3275(0x195)&&(_0x21e136[_0x2e3275(0x18f)]=async _0x378d9f=>{const _0x4917db=_0x2e3275,_0x2dad1a=_0x378d9f['str'](_0x4917db(0x1c9)),_0x21c839=_0x351a4f[_0x4917db(0x1b8)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x378d9f[_0x4917db(0x1c1)](_0x4917db(0x1cb)))):parseJsonParams(_0x378d9f[_0x4917db(0x1c1)](_0x4917db(0x1cb)))??{};let _0x32e6f7=_0x21c839;if(_0x351a4f['operation']===_0x4917db(0x197)){const _0x553ca1=parseUpdateIdsFromParams(_0x21c839);_0x32e6f7=normalizeUpdateParamsForRuntime(_0x21c839,_0x553ca1);}return dryRun('POST',_0x4917db(0x19d)+_0x2dad1a+'/'+_0x351a4f[_0x4917db(0x1b8)])[_0x4917db(0x1a3)](_0x32e6f7)[_0x4917db(0x1c0)](_0x4917db(0x1ae)+_0x351a4f[_0x4917db(0x19c)]+_0x4917db(0x1e3)+_0x2dad1a)[_0x4917db(0x1a2)]();}),_0x21e136;}export const dataDefinitions=[...specs['map'](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x4cea5a,_0x2d397f){const _0x1fe50c=a27_0x32346a;return{'operation':'update','mode':_0x1fe50c(0x1de),'ids':_0x4cea5a,'total':_0x4cea5a['length'],'result':_0x2d397f};}
@@ -1 +1 @@
1
- const a28_0x18b30b=a28_0x333a;function a28_0x333a(_0x5258ec,_0x2f5b49){_0x5258ec=_0x5258ec-0x1e5;const _0x16b7b2=a28_0x16b7();let _0x333ae5=_0x16b7b2[_0x5258ec];return _0x333ae5;}(function(_0x343e54,_0x65afbc){const _0x4b11db=a28_0x333a,_0x4eb650=_0x343e54();while(!![]){try{const _0x5dc051=-parseInt(_0x4b11db(0x201))/0x1*(parseInt(_0x4b11db(0x1f6))/0x2)+parseInt(_0x4b11db(0x221))/0x3*(parseInt(_0x4b11db(0x225))/0x4)+-parseInt(_0x4b11db(0x1ec))/0x5+-parseInt(_0x4b11db(0x1ed))/0x6*(-parseInt(_0x4b11db(0x1f9))/0x7)+-parseInt(_0x4b11db(0x1f4))/0x8*(parseInt(_0x4b11db(0x1fe))/0x9)+parseInt(_0x4b11db(0x1fb))/0xa+parseInt(_0x4b11db(0x227))/0xb*(parseInt(_0x4b11db(0x21c))/0xc);if(_0x5dc051===_0x65afbc)break;else _0x4eb650['push'](_0x4eb650['shift']());}catch(_0x442500){_0x4eb650['push'](_0x4eb650['shift']());}}}(a28_0x16b7,0xd4131));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x1d2d34){const _0x3487aa=a28_0x333a;if(_0x1d2d34[_0x3487aa(0x1f1)])return null;const _0x4a1fca=Boolean(_0x1d2d34[_0x3487aa(0x20d)]!==undefined||_0x1d2d34[_0x3487aa(0x210)]!==undefined);let _0x467031={};if(!_0x4a1fca&&typeof _0x1d2d34[_0x3487aa(0x1f7)]==='string')try{_0x467031=JSON[_0x3487aa(0x228)](_0x1d2d34[_0x3487aa(0x1f7)]);}catch{}const _0x11beb8=_0x4a1fca?_0x1d2d34[_0x3487aa(0x226)]:_0x1d2d34[_0x3487aa(0x20c)],_0x4abdfa=_0x4a1fca?_0x1d2d34['displayName']:_0x1d2d34[_0x3487aa(0x226)],_0x118f0a=_0x4a1fca?_0x1d2d34[_0x3487aa(0x210)]:_0x1d2d34[_0x3487aa(0x204)]||_0x1d2d34[_0x3487aa(0x224)],_0x127df6=_0x4a1fca?_0x1d2d34[_0x3487aa(0x1e8)]===!![]:_0x467031[_0x3487aa(0x1e8)]===!![],_0x313a63=_0x4a1fca?_0x1d2d34[_0x3487aa(0x20f)]===!![]:_0x467031['required']===!![],_0x5cd3d1=_0x4a1fca?_0x1d2d34[_0x3487aa(0x218)]??null:_0x467031['options']??null,_0x467ecd={'name':_0x11beb8,'displayName':_0x4abdfa||_0x11beb8,'type':_0x118f0a,'dbType':_0x1d2d34['dbType'],'pk':_0x127df6,'required':_0x313a63,'description':_0x1d2d34[_0x3487aa(0x22e)]||undefined};return Array[_0x3487aa(0x22b)](_0x5cd3d1)&&_0x5cd3d1[_0x3487aa(0x216)]>0x0&&(_0x467ecd[_0x3487aa(0x218)]=_0x5cd3d1),_0x467ecd;}function parseJsonMaybe(_0x118951){const _0x1a5682=a28_0x333a;if(typeof _0x118951!==_0x1a5682(0x1fa))return _0x118951;try{return JSON[_0x1a5682(0x228)](_0x118951);}catch{return _0x118951;}}function normalizeOperationEntry(_0x9fea26,_0x27236a){const _0xc9a03b=a28_0x333a;if(!_0x27236a||typeof _0x27236a!=='object')return null;if(!_0x27236a['method']||!_0x27236a['path'])return null;const _0x145537={'name':_0x9fea26,'method':_0x27236a['method'],'path':_0x27236a[_0xc9a03b(0x214)]};if(_0x27236a[_0xc9a03b(0x21d)])_0x145537['host']=_0x27236a['host'];if(_0x27236a[_0xc9a03b(0x1f0)]!=null)_0x145537[_0xc9a03b(0x1f0)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1f0)]);if(_0x27236a[_0xc9a03b(0x1ef)]!=null)_0x145537[_0xc9a03b(0x1ef)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1ef)]);if(_0x27236a[_0xc9a03b(0x1eb)]!=null)_0x145537[_0xc9a03b(0x1eb)]=_0x27236a[_0xc9a03b(0x1eb)];if(_0x27236a[_0xc9a03b(0x1fd)]!=null)_0x145537[_0xc9a03b(0x1fd)]=_0x27236a[_0xc9a03b(0x1fd)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x219)]))_0x145537[_0xc9a03b(0x219)]=_0x27236a[_0xc9a03b(0x219)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x1fc)]))_0x145537[_0xc9a03b(0x1fc)]=_0x27236a[_0xc9a03b(0x1fc)];return _0x145537;}function a28_0x16b7(){const _0x566a34=['allFieldNames','filter','isArray','map','dbId','description','allFields','creatorNameField','operations','detail','pkField','find','appCode','beforeScriptId','1917465gSoGPE','1860PykWki','updateTimeField','responseBody','requestBody','deleted','push','object','2764912IHngKt','logicField','312BvBCxz','extend','createTimeField','7693vYwSAs','string','7778870FxXyoc','responseFields','afterScriptId','36WyICLv','tableName','source','19FyKsXj','indexes','columnCodeListWithDeleted','type','modelCode','relatedPageInfoList','dbName','formatRules','doVersion','dbtableConfig','validateRules','code','displayName','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','required','doType','creatorIdField','trim','datasetKey','path','modelId','length','dataset','options','requestFields','tableComment','entries','3228FjFFcb','host','read','fields','title','59277LFJpWG','str','relations','dataType','16IDtzEn','name','58883oImYEt','parse'];a28_0x16b7=function(){return _0x566a34;};return a28_0x16b7();}function summarizeDbtable(_0x23a148){const _0x14aab3=a28_0x333a,_0x544ac4={},_0x313c0a=[_0x14aab3(0x22d),_0x14aab3(0x207),_0x14aab3(0x1ff),_0x14aab3(0x213),'pkField','allFields',_0x14aab3(0x1f5),_0x14aab3(0x1f8),_0x14aab3(0x1ee),_0x14aab3(0x211),_0x14aab3(0x1e5),'modifierIdField','modifierNameField','labelField','dblinkInfoDTO'];for(const _0x537634 of _0x313c0a){if(_0x23a148[_0x537634]!==undefined)_0x544ac4[_0x537634]=_0x23a148[_0x537634];}return typeof _0x544ac4[_0x14aab3(0x22f)]===_0x14aab3(0x1fa)&&_0x544ac4[_0x14aab3(0x22f)]['length']>0x0&&(_0x544ac4[_0x14aab3(0x229)]=_0x544ac4[_0x14aab3(0x22f)]['split'](',')[_0x14aab3(0x22c)](_0x347bd9=>_0x347bd9[_0x14aab3(0x212)]())['filter'](Boolean)),_0x544ac4;}function normalizeRelatedPages(_0x12111a){const _0x24e841=a28_0x333a;if(!Array[_0x24e841(0x22b)](_0x12111a))return[];return _0x12111a[_0x24e841(0x22a)](_0x39c79c=>_0x39c79c&&typeof _0x39c79c===_0x24e841(0x1f3))[_0x24e841(0x22c)](_0x35f0f0=>({'id':_0x35f0f0['id'],'type':_0x35f0f0[_0x24e841(0x204)],'code':_0x35f0f0[_0x24e841(0x20c)],'title':_0x35f0f0[_0x24e841(0x220)],'deleted':_0x35f0f0['deleted']===!![]}));}function normalizeFallbackFieldName(_0x37a094,_0x4db494){const _0x3de48c=_0x37a094['trim']();if(!_0x3de48c)return null;return{'name':_0x3de48c,'displayName':_0x3de48c,'type':undefined,'dbType':undefined,'pk':_0x3de48c===_0x4db494,'required':![],'description':undefined};}async function loadListFieldFallback(_0x12db98,_0x417e86){const _0x4af4d7=a28_0x333a;if(!_0x12db98||!_0x417e86)return[];try{const _0x22d275=await listDatasets(_0x12db98,{'code':_0x417e86}),_0x20de2d=_0x22d275[_0x4af4d7(0x1e9)](_0x35f4f0=>_0x35f4f0['code']===_0x417e86)??_0x22d275[0x0],_0x4f13ab=_0x20de2d?.[_0x4af4d7(0x20a)]??{},_0x3defbf=typeof _0x4f13ab['allFields']==='string'?_0x4f13ab[_0x4af4d7(0x22f)]['split'](','):[];return _0x3defbf[_0x4af4d7(0x22c)](_0x4c43f6=>normalizeFallbackFieldName(_0x4c43f6,_0x4f13ab[_0x4af4d7(0x1e8)]))[_0x4af4d7(0x22a)](_0xce9d47=>_0xce9d47!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x18b30b(0x217),'command':a28_0x18b30b(0x1e7),'description':a28_0x18b30b(0x20e),'risk':a28_0x18b30b(0x21e),'flags':[CODE_FLAG],async 'execute'(_0x4edefd){const _0x17b35f=a28_0x18b30b,_0x5ede04=await getDatasetDetail(_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))),_0x6c5176=Array['isArray'](_0x5ede04[_0x17b35f(0x21f)])?_0x5ede04[_0x17b35f(0x21f)]:Array['isArray'](_0x5ede04['properties'])?_0x5ede04['properties']:[];let _0x5525ea=_0x6c5176[_0x17b35f(0x22c)](_0x20dcc3=>normalizeField(_0x20dcc3))[_0x17b35f(0x22a)](_0x512532=>_0x512532!==null);_0x5525ea[_0x17b35f(0x216)]===0x0&&(_0x5525ea=await loadListFieldFallback(_0x4edefd[_0x17b35f(0x1ea)],_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))));const _0x30f794=_0x5ede04[_0x17b35f(0x1e6)]??{},_0x18390b=[];for(const [_0x5675f7,_0x4b55b6]of Object[_0x17b35f(0x21b)](_0x30f794)){const _0x21e196=normalizeOperationEntry(_0x5675f7,_0x4b55b6);if(_0x21e196)_0x18390b[_0x17b35f(0x1f2)](_0x21e196);}const _0x24600e=_0x5ede04[_0x17b35f(0x20a)]??{},_0x1cba10=_0x5ede04[_0x17b35f(0x217)]??{},_0x5187aa=_0x24600e['dbId']!=null?{'id':_0x24600e['dbId'],'name':_0x24600e[_0x17b35f(0x207)]??null}:undefined;let _0x53af66;return typeof _0x5ede04['extend']===_0x17b35f(0x1fa)&&(_0x53af66=parseJsonMaybe(_0x5ede04[_0x17b35f(0x1f7)])),{'ok':!![],'data':{'id':_0x5ede04[_0x17b35f(0x215)]??_0x5ede04['id'],'name':_0x5ede04[_0x17b35f(0x226)],'code':_0x5ede04[_0x17b35f(0x205)]||_0x5ede04[_0x17b35f(0x20c)],'doVersion':_0x5ede04[_0x17b35f(0x209)],'description':_0x5ede04[_0x17b35f(0x22e)]||_0x1cba10[_0x17b35f(0x21a)]||undefined,'source':_0x5ede04[_0x17b35f(0x200)]||_0x1cba10['sourceType'],'table':_0x24600e[_0x17b35f(0x1ff)]||_0x1cba10[_0x17b35f(0x1ff)],'datasetKey':_0x24600e[_0x17b35f(0x213)],'pk':_0x24600e['pkField'],'db':_0x5187aa,'dbtable':summarizeDbtable(_0x24600e),'fields':_0x5525ea,'operations':_0x18390b,'indexes':Array[_0x17b35f(0x22b)](_0x1cba10['indexes'])?_0x1cba10[_0x17b35f(0x202)]:[],'relations':_0x5ede04[_0x17b35f(0x223)]??null,'relatedPages':normalizeRelatedPages(_0x5ede04[_0x17b35f(0x206)]),...Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x203)])?{'columnCodeListWithDeleted':_0x5ede04[_0x17b35f(0x203)]}:{},'formatRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x208)])?_0x5ede04['formatRules']:[],'validateRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x20b)])?_0x5ede04[_0x17b35f(0x20b)]:[],..._0x53af66!==undefined?{'extend':_0x53af66}:{},'stats':{'fieldCount':_0x5525ea[_0x17b35f(0x216)],'operationCount':_0x18390b[_0x17b35f(0x216)]}}};}};
1
+ const a28_0x3b05e4=a28_0x2fec;(function(_0x29208b,_0x25dd56){const _0x4fbb70=a28_0x2fec,_0x2a1c85=_0x29208b();while(!![]){try{const _0x54f4a6=-parseInt(_0x4fbb70(0x1ec))/0x1+parseInt(_0x4fbb70(0x1fa))/0x2*(parseInt(_0x4fbb70(0x20a))/0x3)+-parseInt(_0x4fbb70(0x1fb))/0x4+parseInt(_0x4fbb70(0x1d3))/0x5+parseInt(_0x4fbb70(0x1ee))/0x6+-parseInt(_0x4fbb70(0x1d7))/0x7+parseInt(_0x4fbb70(0x1d6))/0x8*(parseInt(_0x4fbb70(0x20d))/0x9);if(_0x54f4a6===_0x25dd56)break;else _0x2a1c85['push'](_0x2a1c85['shift']());}catch(_0xa2cdb){_0x2a1c85['push'](_0x2a1c85['shift']());}}}(a28_0x2ea5,0xe5fe2));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x2ea5(){const _0x1234c3=['afterScriptId','tableComment','relations','required','detail','indexes','method','push','name','creatorNameField','35139RXUNuA','modelCode','path','642717wfszuT','displayName','logicField','allFields','appCode','dataset','pkField','map','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','doType','dbId','object','trim','2651305iIvlZy','length','host','24yaUIsa','6464640EZvGYG','doVersion','relatedPageInfoList','isArray','options','updateTimeField','deleted','datasetKey','title','modelId','dataType','responseFields','str','beforeScriptId','string','filter','split','dbtableConfig','requestFields','find','description','807638HNdfHu','dblinkInfoDTO','10607058kIEdmc','responseBody','columnCodeListWithDeleted','code','extend','sourceType','modifierIdField','operations','tableName','dbName','validateRules','read','82FCoWGx','1277472PAbHrv','parse','requestBody','dbType','type'];a28_0x2ea5=function(){return _0x1234c3;};return a28_0x2ea5();}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x451185){const _0x27b66e=a28_0x2fec;if(_0x451185[_0x27b66e(0x1dd)])return null;const _0x20825c=Boolean(_0x451185[_0x27b66e(0x20e)]!==undefined||_0x451185[_0x27b66e(0x216)]!==undefined);let _0x311435={};if(!_0x20825c&&typeof _0x451185[_0x27b66e(0x1f2)]===_0x27b66e(0x1e5))try{_0x311435=JSON[_0x27b66e(0x1fc)](_0x451185[_0x27b66e(0x1f2)]);}catch{}const _0x62334c=_0x20825c?_0x451185[_0x27b66e(0x208)]:_0x451185[_0x27b66e(0x1f1)],_0x4d6a12=_0x20825c?_0x451185['displayName']:_0x451185[_0x27b66e(0x208)],_0x3dd817=_0x20825c?_0x451185[_0x27b66e(0x216)]:_0x451185['type']||_0x451185[_0x27b66e(0x1e1)],_0xf8f100=_0x20825c?_0x451185[_0x27b66e(0x213)]===!![]:_0x311435[_0x27b66e(0x213)]===!![],_0x4c5093=_0x20825c?_0x451185[_0x27b66e(0x203)]===!![]:_0x311435[_0x27b66e(0x203)]===!![],_0x4cf3ec=_0x20825c?_0x451185[_0x27b66e(0x1db)]??null:_0x311435[_0x27b66e(0x1db)]??null,_0x4de25e={'name':_0x62334c,'displayName':_0x4d6a12||_0x62334c,'type':_0x3dd817,'dbType':_0x451185[_0x27b66e(0x1fe)],'pk':_0xf8f100,'required':_0x4c5093,'description':_0x451185[_0x27b66e(0x1eb)]||undefined};return Array[_0x27b66e(0x1da)](_0x4cf3ec)&&_0x4cf3ec[_0x27b66e(0x1d4)]>0x0&&(_0x4de25e['options']=_0x4cf3ec),_0x4de25e;}function parseJsonMaybe(_0x5093fb){const _0xe430f5=a28_0x2fec;if(typeof _0x5093fb!==_0xe430f5(0x1e5))return _0x5093fb;try{return JSON['parse'](_0x5093fb);}catch{return _0x5093fb;}}function normalizeOperationEntry(_0x52f20b,_0x28f7bb){const _0x5582e9=a28_0x2fec;if(!_0x28f7bb||typeof _0x28f7bb!==_0x5582e9(0x1d1))return null;if(!_0x28f7bb[_0x5582e9(0x206)]||!_0x28f7bb[_0x5582e9(0x20c)])return null;const _0x1774b1={'name':_0x52f20b,'method':_0x28f7bb['method'],'path':_0x28f7bb['path']};if(_0x28f7bb[_0x5582e9(0x1d5)])_0x1774b1['host']=_0x28f7bb[_0x5582e9(0x1d5)];if(_0x28f7bb[_0x5582e9(0x1fd)]!=null)_0x1774b1[_0x5582e9(0x1fd)]=parseJsonMaybe(_0x28f7bb['requestBody']);if(_0x28f7bb[_0x5582e9(0x1ef)]!=null)_0x1774b1[_0x5582e9(0x1ef)]=parseJsonMaybe(_0x28f7bb[_0x5582e9(0x1ef)]);if(_0x28f7bb['beforeScriptId']!=null)_0x1774b1[_0x5582e9(0x1e4)]=_0x28f7bb[_0x5582e9(0x1e4)];if(_0x28f7bb[_0x5582e9(0x200)]!=null)_0x1774b1[_0x5582e9(0x200)]=_0x28f7bb[_0x5582e9(0x200)];if(Array['isArray'](_0x28f7bb[_0x5582e9(0x1e9)]))_0x1774b1[_0x5582e9(0x1e9)]=_0x28f7bb[_0x5582e9(0x1e9)];if(Array[_0x5582e9(0x1da)](_0x28f7bb[_0x5582e9(0x1e2)]))_0x1774b1[_0x5582e9(0x1e2)]=_0x28f7bb['responseFields'];return _0x1774b1;}function summarizeDbtable(_0x272c94){const _0x51ac52=a28_0x2fec,_0x500184={},_0x1243e6=[_0x51ac52(0x217),'dbName',_0x51ac52(0x1f6),_0x51ac52(0x1de),_0x51ac52(0x213),_0x51ac52(0x210),_0x51ac52(0x20f),'createTimeField',_0x51ac52(0x1dc),'creatorIdField',_0x51ac52(0x209),_0x51ac52(0x1f4),'modifierNameField','labelField',_0x51ac52(0x1ed)];for(const _0x5d13aa of _0x1243e6){if(_0x272c94[_0x5d13aa]!==undefined)_0x500184[_0x5d13aa]=_0x272c94[_0x5d13aa];}return typeof _0x500184[_0x51ac52(0x210)]===_0x51ac52(0x1e5)&&_0x500184['allFields'][_0x51ac52(0x1d4)]>0x0&&(_0x500184['allFieldNames']=_0x500184[_0x51ac52(0x210)]['split'](',')[_0x51ac52(0x214)](_0x17d542=>_0x17d542[_0x51ac52(0x1d2)]())['filter'](Boolean)),_0x500184;}function normalizeRelatedPages(_0x592140){const _0x1a3ee0=a28_0x2fec;if(!Array[_0x1a3ee0(0x1da)](_0x592140))return[];return _0x592140[_0x1a3ee0(0x1e6)](_0x553e70=>_0x553e70&&typeof _0x553e70===_0x1a3ee0(0x1d1))[_0x1a3ee0(0x214)](_0x5e3542=>({'id':_0x5e3542['id'],'type':_0x5e3542[_0x1a3ee0(0x1ff)],'code':_0x5e3542['code'],'title':_0x5e3542[_0x1a3ee0(0x1df)],'deleted':_0x5e3542[_0x1a3ee0(0x1dd)]===!![]}));}function normalizeFallbackFieldName(_0x1bacc7,_0x1fb6ae){const _0x46ba69=a28_0x2fec,_0x5a428d=_0x1bacc7[_0x46ba69(0x1d2)]();if(!_0x5a428d)return null;return{'name':_0x5a428d,'displayName':_0x5a428d,'type':undefined,'dbType':undefined,'pk':_0x5a428d===_0x1fb6ae,'required':![],'description':undefined};}async function loadListFieldFallback(_0x750f06,_0x5b08c1){const _0x409129=a28_0x2fec;if(!_0x750f06||!_0x5b08c1)return[];try{const _0x2c11f3=await listDatasets(_0x750f06,{'code':_0x5b08c1}),_0x58564c=_0x2c11f3[_0x409129(0x1ea)](_0x3cb6ef=>_0x3cb6ef[_0x409129(0x1f1)]===_0x5b08c1)??_0x2c11f3[0x0],_0x3f96fe=_0x58564c?.[_0x409129(0x1e8)]??{},_0x272388=typeof _0x3f96fe[_0x409129(0x210)]===_0x409129(0x1e5)?_0x3f96fe['allFields'][_0x409129(0x1e7)](','):[];return _0x272388[_0x409129(0x214)](_0x563c2f=>normalizeFallbackFieldName(_0x563c2f,_0x3f96fe['pkField']))['filter'](_0x15d7d1=>_0x15d7d1!==null);}catch{return[];}}function a28_0x2fec(_0x1e59dd,_0xf5c8d7){_0x1e59dd=_0x1e59dd-0x1d1;const _0x2ea500=a28_0x2ea5();let _0x2fece8=_0x2ea500[_0x1e59dd];return _0x2fece8;}export const datasetDetail={'service':'dataset','command':a28_0x3b05e4(0x204),'description':a28_0x3b05e4(0x215),'risk':a28_0x3b05e4(0x1f9),'flags':[CODE_FLAG],async 'execute'(_0x28e5dc){const _0x2b0869=a28_0x3b05e4,_0x21eeaf=await getDatasetDetail(_0x28e5dc[_0x2b0869(0x1e3)](_0x2b0869(0x1f1))),_0x2fdeb3=Array[_0x2b0869(0x1da)](_0x21eeaf['fields'])?_0x21eeaf['fields']:Array[_0x2b0869(0x1da)](_0x21eeaf['properties'])?_0x21eeaf['properties']:[];let _0x2ee1ae=_0x2fdeb3[_0x2b0869(0x214)](_0x83ac4e=>normalizeField(_0x83ac4e))[_0x2b0869(0x1e6)](_0x5c85ad=>_0x5c85ad!==null);_0x2ee1ae['length']===0x0&&(_0x2ee1ae=await loadListFieldFallback(_0x28e5dc[_0x2b0869(0x211)],_0x28e5dc[_0x2b0869(0x1e3)]('code')));const _0x35a3f7=_0x21eeaf[_0x2b0869(0x1f5)]??{},_0x147f0a=[];for(const [_0x8e3be5,_0x4b286d]of Object['entries'](_0x35a3f7)){const _0x34f7b2=normalizeOperationEntry(_0x8e3be5,_0x4b286d);if(_0x34f7b2)_0x147f0a[_0x2b0869(0x207)](_0x34f7b2);}const _0x19b0a1=_0x21eeaf[_0x2b0869(0x1e8)]??{},_0x55bc37=_0x21eeaf[_0x2b0869(0x212)]??{},_0xe92316=_0x19b0a1[_0x2b0869(0x217)]!=null?{'id':_0x19b0a1[_0x2b0869(0x217)],'name':_0x19b0a1[_0x2b0869(0x1f7)]??null}:undefined;let _0x3b6574;return typeof _0x21eeaf['extend']===_0x2b0869(0x1e5)&&(_0x3b6574=parseJsonMaybe(_0x21eeaf[_0x2b0869(0x1f2)])),{'ok':!![],'data':{'id':_0x21eeaf[_0x2b0869(0x1e0)]??_0x21eeaf['id'],'name':_0x21eeaf[_0x2b0869(0x208)],'code':_0x21eeaf[_0x2b0869(0x20b)]||_0x21eeaf['code'],'doVersion':_0x21eeaf[_0x2b0869(0x1d8)],'description':_0x21eeaf[_0x2b0869(0x1eb)]||_0x55bc37[_0x2b0869(0x201)]||undefined,'source':_0x21eeaf['source']||_0x55bc37[_0x2b0869(0x1f3)],'table':_0x19b0a1['tableName']||_0x55bc37[_0x2b0869(0x1f6)],'datasetKey':_0x19b0a1[_0x2b0869(0x1de)],'pk':_0x19b0a1[_0x2b0869(0x213)],'db':_0xe92316,'dbtable':summarizeDbtable(_0x19b0a1),'fields':_0x2ee1ae,'operations':_0x147f0a,'indexes':Array[_0x2b0869(0x1da)](_0x55bc37['indexes'])?_0x55bc37[_0x2b0869(0x205)]:[],'relations':_0x21eeaf[_0x2b0869(0x202)]??null,'relatedPages':normalizeRelatedPages(_0x21eeaf[_0x2b0869(0x1d9)]),...Array[_0x2b0869(0x1da)](_0x21eeaf[_0x2b0869(0x1f0)])?{'columnCodeListWithDeleted':_0x21eeaf['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x2b0869(0x1da)](_0x21eeaf['formatRules'])?_0x21eeaf['formatRules']:[],'validateRules':Array[_0x2b0869(0x1da)](_0x21eeaf['validateRules'])?_0x21eeaf[_0x2b0869(0x1f8)]:[],..._0x3b6574!==undefined?{'extend':_0x3b6574}:{},'stats':{'fieldCount':_0x2ee1ae[_0x2b0869(0x1d4)],'operationCount':_0x147f0a[_0x2b0869(0x1d4)]}}};}};
@@ -1 +1 @@
1
- function a29_0x1718(){const _0x560fce=['1930970igTYxi','35091192kfDQRT','6fepXuo','1142437GXMNZU','2196886ahFeZU','9026584KOgpps','685756DOVLXs','248820dQBfoe'];a29_0x1718=function(){return _0x560fce;};return a29_0x1718();}(function(_0x32b348,_0xd1bf88){const _0x12369e=a29_0x340a,_0x35aa3d=_0x32b348();while(!![]){try{const _0x498acf=-parseInt(_0x12369e(0x18c))/0x1+-parseInt(_0x12369e(0x18d))/0x2+-parseInt(_0x12369e(0x18b))/0x3*(parseInt(_0x12369e(0x187))/0x4)+parseInt(_0x12369e(0x189))/0x5+parseInt(_0x12369e(0x188))/0x6+-parseInt(_0x12369e(0x186))/0x7+parseInt(_0x12369e(0x18a))/0x8;if(_0x498acf===_0xd1bf88)break;else _0x35aa3d['push'](_0x35aa3d['shift']());}catch(_0x364bda){_0x35aa3d['push'](_0x35aa3d['shift']());}}}(a29_0x1718,0xe5af9));function a29_0x340a(_0x56fc28,_0x3c80ff){_0x56fc28=_0x56fc28-0x186;const _0x1718c4=a29_0x1718();let _0x340a05=_0x1718c4[_0x56fc28];return _0x340a05;}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(_0x39a44c,_0x161631){const _0x56627e=a29_0x3fe8,_0x3e0413=_0x39a44c();while(!![]){try{const _0x23dffd=parseInt(_0x56627e(0x121))/0x1+parseInt(_0x56627e(0x11e))/0x2+-parseInt(_0x56627e(0x127))/0x3+-parseInt(_0x56627e(0x120))/0x4+-parseInt(_0x56627e(0x122))/0x5*(parseInt(_0x56627e(0x124))/0x6)+parseInt(_0x56627e(0x11f))/0x7*(parseInt(_0x56627e(0x126))/0x8)+-parseInt(_0x56627e(0x125))/0x9*(-parseInt(_0x56627e(0x123))/0xa);if(_0x23dffd===_0x161631)break;else _0x3e0413['push'](_0x3e0413['shift']());}catch(_0xbda66c){_0x3e0413['push'](_0x3e0413['shift']());}}}(a29_0x189c,0xbd248));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x189c(){const _0x5369a8=['48WbKlgK','9euoMIi','16mnMAfx','3503394kYJLdH','2755378SAObxN','2763229AfIlaA','5838500iehesh','100821yyamXj','264765yfhHPm','15577710ooiGmR'];a29_0x189c=function(){return _0x5369a8;};return a29_0x189c();}function a29_0x3fe8(_0x13cd10,_0x37c08b){_0x13cd10=_0x13cd10-0x11e;const _0x189c53=a29_0x189c();let _0x3fe80f=_0x189c53[_0x13cd10];return _0x3fe80f;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x131878=a30_0x33a2;(function(_0x15b1cf,_0x4841b4){const _0x2f7970=a30_0x33a2,_0x86b883=_0x15b1cf();while(!![]){try{const _0x4283f3=-parseInt(_0x2f7970(0xe4))/0x1*(parseInt(_0x2f7970(0xe6))/0x2)+-parseInt(_0x2f7970(0xde))/0x3+parseInt(_0x2f7970(0xd8))/0x4*(-parseInt(_0x2f7970(0xda))/0x5)+parseInt(_0x2f7970(0xd6))/0x6+parseInt(_0x2f7970(0xdc))/0x7+-parseInt(_0x2f7970(0xe5))/0x8+parseInt(_0x2f7970(0xd4))/0x9;if(_0x4283f3===_0x4841b4)break;else _0x86b883['push'](_0x86b883['shift']());}catch(_0x539716){_0x86b883['push'](_0x86b883['shift']());}}}(a30_0x4ce7,0x580c4));import{listDatasets}from'../../core/api-client.js';function a30_0x33a2(_0x4b11a3,_0x50bc1f){_0x4b11a3=_0x4b11a3-0xd3;const _0x4ce769=a30_0x4ce7();let _0x33a271=_0x4ce769[_0x4b11a3];return _0x33a271;}import{CODE_FLAG}from'../../commands/common/flags.js';function a30_0x4ce7(){const _0x13985d=['Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','tableName','split','allFields','10562589WHPfQv','length','706632yUQGpt','trim','247928CEQdpm','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','55CkdAlD','appCode','3456075zqvYmy','dataset','1214919lrVNDW','pkField','list','code','datasetKey','str','212915JUFWsH','998272iTLlgF','2ozEMLi','source'];a30_0x4ce7=function(){return _0x13985d;};return a30_0x4ce7();}export const datasetList={'service':a30_0x131878(0xdd),'command':a30_0x131878(0xe0),'description':a30_0x131878(0xd9),'risk':'read','flags':[{'name':'name','type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a30_0x131878(0xe8)}],async 'execute'(_0x8e61ad){const _0x35787f=a30_0x131878,_0x708d5b=_0x8e61ad[_0x35787f(0xe3)]('name'),_0x45846e=_0x8e61ad[_0x35787f(0xe3)](_0x35787f(0xe1)),_0x13acde=await listDatasets(_0x8e61ad[_0x35787f(0xdb)],{..._0x708d5b&&{'name':_0x708d5b},..._0x45846e&&{'code':_0x45846e}});return{'ok':!![],'data':{'total':_0x13acde[_0x35787f(0xd5)],'datasets':_0x13acde['map'](_0x23b73e=>{const _0x1df17=_0x35787f,_0xc2db24=_0x23b73e['dbtableConfig']??{};return{'id':_0x23b73e['id'],'code':_0x23b73e[_0x1df17(0xe1)],'name':_0x23b73e['name'],'source':_0x23b73e[_0x1df17(0xe7)],'description':_0x23b73e['description'],'table':_0xc2db24[_0x1df17(0xe9)],'datasetKey':_0xc2db24[_0x1df17(0xe2)],'pk':_0xc2db24[_0x1df17(0xdf)],'fields':_0xc2db24[_0x1df17(0xd3)]?_0xc2db24[_0x1df17(0xd3)][_0x1df17(0xea)](',')['map'](_0xb6d04b=>_0xb6d04b[_0x1df17(0xd7)]()):[]};})}};}};
1
+ const a30_0x102cb5=a30_0x52ae;(function(_0x58085f,_0x20f71d){const _0x5b1e0c=a30_0x52ae,_0x1be1cf=_0x58085f();while(!![]){try{const _0x3a4866=-parseInt(_0x5b1e0c(0x167))/0x1+-parseInt(_0x5b1e0c(0x15f))/0x2+-parseInt(_0x5b1e0c(0x158))/0x3*(parseInt(_0x5b1e0c(0x169))/0x4)+parseInt(_0x5b1e0c(0x163))/0x5*(parseInt(_0x5b1e0c(0x159))/0x6)+parseInt(_0x5b1e0c(0x15e))/0x7+-parseInt(_0x5b1e0c(0x152))/0x8*(parseInt(_0x5b1e0c(0x164))/0x9)+-parseInt(_0x5b1e0c(0x156))/0xa*(-parseInt(_0x5b1e0c(0x161))/0xb);if(_0x3a4866===_0x20f71d)break;else _0x1be1cf['push'](_0x1be1cf['shift']());}catch(_0x615ccc){_0x1be1cf['push'](_0x1be1cf['shift']());}}}(a30_0x3ecd,0xaa25d));import{listDatasets}from'../../core/api-client.js';function a30_0x52ae(_0x4d8b7d,_0x79917f){_0x4d8b7d=_0x4d8b7d-0x14d;const _0x3ecd01=a30_0x3ecd();let _0x52aeb4=_0x3ecd01[_0x4d8b7d];return _0x52aeb4;}function a30_0x3ecd(){const _0x1b166e=['allFields','66iJOmEE','length','1229945DmLIFO','9gmaabx','tableName','dataset','664499gCvJEZ','dbtableConfig','376816BgfaCM','appCode','string','list','trim','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','9826480rJBnxU','str','code','map','3566410lUYKoI','description','39OGFXrK','24riAiaT','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','name','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','read','7870464VdRnPg','867536aYHBCQ'];a30_0x3ecd=function(){return _0x1b166e;};return a30_0x3ecd();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x102cb5(0x166),'command':a30_0x102cb5(0x14f),'description':a30_0x102cb5(0x15a),'risk':a30_0x102cb5(0x15d),'flags':[{'name':a30_0x102cb5(0x15b),'type':a30_0x102cb5(0x14e),'description':a30_0x102cb5(0x15c)},{...CODE_FLAG,'required':![],'description':a30_0x102cb5(0x151)}],async 'execute'(_0x134a95){const _0x1b77d9=a30_0x102cb5,_0xc25b71=_0x134a95[_0x1b77d9(0x153)](_0x1b77d9(0x15b)),_0x3ea0e5=_0x134a95[_0x1b77d9(0x153)]('code'),_0x466feb=await listDatasets(_0x134a95[_0x1b77d9(0x14d)],{..._0xc25b71&&{'name':_0xc25b71},..._0x3ea0e5&&{'code':_0x3ea0e5}});return{'ok':!![],'data':{'total':_0x466feb[_0x1b77d9(0x162)],'datasets':_0x466feb[_0x1b77d9(0x155)](_0x4cd123=>{const _0x37a1fd=_0x1b77d9,_0x1e86a8=_0x4cd123[_0x37a1fd(0x168)]??{};return{'id':_0x4cd123['id'],'code':_0x4cd123[_0x37a1fd(0x154)],'name':_0x4cd123['name'],'source':_0x4cd123['source'],'description':_0x4cd123[_0x37a1fd(0x157)],'table':_0x1e86a8[_0x37a1fd(0x165)],'datasetKey':_0x1e86a8['datasetKey'],'pk':_0x1e86a8['pkField'],'fields':_0x1e86a8[_0x37a1fd(0x160)]?_0x1e86a8[_0x37a1fd(0x160)]['split'](',')[_0x37a1fd(0x155)](_0x3c1efd=>_0x3c1efd[_0x37a1fd(0x150)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a31_0x4f1afa=a31_0x5a36;(function(_0x5e9078,_0x2bfbae){const _0x506267=a31_0x5a36,_0x93de23=_0x5e9078();while(!![]){try{const _0x2aea10=parseInt(_0x506267(0x72))/0x1+-parseInt(_0x506267(0x70))/0x2+parseInt(_0x506267(0x6c))/0x3+-parseInt(_0x506267(0x7b))/0x4*(parseInt(_0x506267(0x7c))/0x5)+-parseInt(_0x506267(0x6b))/0x6+-parseInt(_0x506267(0x69))/0x7*(parseInt(_0x506267(0x74))/0x8)+parseInt(_0x506267(0x6f))/0x9*(parseInt(_0x506267(0x6a))/0xa);if(_0x2aea10===_0x2bfbae)break;else _0x93de23['push'](_0x93de23['shift']());}catch(_0x30e934){_0x93de23['push'](_0x93de23['shift']());}}}(a31_0x1074,0x66635));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4f1afa(0x78);function a31_0x1074(){const _0x5ac9cb=['read','trim','2827161wQQCRZ','1553010CUuKgE','dataset','135029BUQoUM','code','17128KOEtiK','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','sdk-doc','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','string','4QWpqAr','2056215toTrNt','1729aECxIa','70MetsPK','4084548yeUcOk','1448346vWaDUy'];a31_0x1074=function(){return _0x5ac9cb;};return a31_0x1074();}function a31_0x5a36(_0x5997c7,_0x407510){_0x5997c7=_0x5997c7-0x69;const _0x107457=a31_0x1074();let _0x5a36ee=_0x107457[_0x5997c7];return _0x5a36ee;}export function formatDatasetSdkMarkdown(_0x4f37c7){const _0x376acc=a31_0x4f1afa,_0x3889da=typeof _0x4f37c7===_0x376acc(0x7a)?_0x4f37c7[_0x376acc(0x6e)]():'';return _0x3889da||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x4f1afa(0x71),'command':a31_0x4f1afa(0x76),'description':a31_0x4f1afa(0x75),'risk':a31_0x4f1afa(0x6d),'flags':[{...CODE_FLAG,'description':a31_0x4f1afa(0x79)}],async 'execute'(_0x35218c){const _0x102beb=a31_0x4f1afa,_0xf919c8=_0x35218c['str'](_0x102beb(0x73)),_0x2246b9=await getDatasetSdkUsageDoc(_0xf919c8,_0x35218c[_0x102beb(0x77)]);return{'ok':!![],'data':{'code':_0xf919c8,'appCode':_0x35218c[_0x102beb(0x77)],'markdown':formatDatasetSdkMarkdown(_0x2246b9)}};}};
1
+ function a31_0x53f7(){const _0x1d539f=['appCode','8rvzGVI','14968TKgJoz','1970375bQwanF','99186jzBWzm','trim','1830661LVNpoS','30wzdPoG','1278GyXzpK','sdk-doc','read','dataset','12246744vImkeH','1ztfPZB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','523234wTNaVu','code','660HhchSY','18385TDJopp'];a31_0x53f7=function(){return _0x1d539f;};return a31_0x53f7();}function a31_0x8842(_0x11d25d,_0x559efc){_0x11d25d=_0x11d25d-0xb5;const _0x53f7e8=a31_0x53f7();let _0x884279=_0x53f7e8[_0x11d25d];return _0x884279;}const a31_0x526ee8=a31_0x8842;(function(_0x25898e,_0x73b7bf){const _0x152be3=a31_0x8842,_0x1f1ba9=_0x25898e();while(!![]){try{const _0x472b12=-parseInt(_0x152be3(0xbe))/0x1*(-parseInt(_0x152be3(0xc0))/0x2)+-parseInt(_0x152be3(0xb5))/0x3*(parseInt(_0x152be3(0xc5))/0x4)+parseInt(_0x152be3(0xc3))/0x5*(-parseInt(_0x152be3(0xc2))/0x6)+parseInt(_0x152be3(0xb7))/0x7+-parseInt(_0x152be3(0xc6))/0x8*(parseInt(_0x152be3(0xb9))/0x9)+-parseInt(_0x152be3(0xb8))/0xa*(parseInt(_0x152be3(0xc7))/0xb)+parseInt(_0x152be3(0xbd))/0xc;if(_0x472b12===_0x73b7bf)break;else _0x1f1ba9['push'](_0x1f1ba9['shift']());}catch(_0x49bf8c){_0x1f1ba9['push'](_0x1f1ba9['shift']());}}}(a31_0x53f7,0x41ee3));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.';export function formatDatasetSdkMarkdown(_0x4232dc){const _0x3e5f64=a31_0x8842,_0x517e7a=typeof _0x4232dc==='string'?_0x4232dc[_0x3e5f64(0xb6)]():'';return _0x517e7a||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x526ee8(0xbc),'command':a31_0x526ee8(0xba),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a31_0x526ee8(0xbb),'flags':[{...CODE_FLAG,'description':a31_0x526ee8(0xbf)}],async 'execute'(_0x45b8fe){const _0x133fe2=a31_0x526ee8,_0x1dd212=_0x45b8fe['str'](_0x133fe2(0xc1)),_0x355264=await getDatasetSdkUsageDoc(_0x1dd212,_0x45b8fe[_0x133fe2(0xc4)]);return{'ok':!![],'data':{'code':_0x1dd212,'appCode':_0x45b8fe[_0x133fe2(0xc4)],'markdown':formatDatasetSdkMarkdown(_0x355264)}};}};
@@ -1 +1 @@
1
- const a32_0xc47fc6=a32_0x26b6;(function(_0x170240,_0x42dc4b){const _0x4fdad4=a32_0x26b6,_0x3b023c=_0x170240();while(!![]){try{const _0x36a9e0=parseInt(_0x4fdad4(0x14e))/0x1+parseInt(_0x4fdad4(0x176))/0x2*(-parseInt(_0x4fdad4(0x146))/0x3)+parseInt(_0x4fdad4(0x14f))/0x4+-parseInt(_0x4fdad4(0x186))/0x5+-parseInt(_0x4fdad4(0x135))/0x6+parseInt(_0x4fdad4(0x16b))/0x7*(parseInt(_0x4fdad4(0x178))/0x8)+parseInt(_0x4fdad4(0x153))/0x9*(parseInt(_0x4fdad4(0x16c))/0xa);if(_0x36a9e0===_0x42dc4b)break;else _0x3b023c['push'](_0x3b023c['shift']());}catch(_0x4d0ffa){_0x3b023c['push'](_0x3b023c['shift']());}}}(a32_0x4999,0x9ed62));import a32_0x1c5d68 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x4999(){const _0x2b478c=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','ClientAk','defaultApp','pageSize','\x20commands)','global','read','commandCount','call','current','status','(not\x20found)','966014MOtFNE','78630ayagTZ','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','currentApp','prototype','⚠\x20Empty','accessKey','\x20config\x20delete\x20routing\x20--global','1139146pNcGCT','Global','40AAfvlV','\x20+\x20','\x20\x20kbServiceDomain:\x20','✓\x20Loaded','Diagnose\x20CLI\x20configuration\x20and\x20environment','repeat','format','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20config\x20init','\x20\x20Config\x20JSON','projectConfig','padEnd','4555000eJaLtA','Project','gray','missing','filter','skillVersion','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','green','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','version','inherit','hasOwnProperty','serviceCode','includes','state','log','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','yellow','name','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold','serviceCount','\x20\x20Repair\x20global:\x20\x20\x20','empty','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','✗\x20Invalid','not\x20configured','project','check','\x20\x20Package\x20Version:\x20','registryPath','\x20config\x20delete\x20routing','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','(missing)','\x20\x20Config\x20Files','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','4160934dlUfVL','\x20Imported\x20from:\x20','raw','source','region','✓\x20Valid\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','(unnamed)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20Legacy\x20inherit:\x20\x20\x20','red','installedPath','\x20doctor','\x20\x20runtimeDomain:\x20\x20\x20','3wKrNdV','(default:\x20','(none)','\x20\x20Service\x20Tree','globalConfig','\x20\x20API\x20Endpoints','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','length','1293604zvOjml','1445596jTejJs','(not\x20set)','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','549pyNVWY','(removed\x20—\x20cookie\x20auth\x20disabled)','(set,\x20length=','path','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','platform'];a32_0x4999=function(){return _0x2b478c;};return a32_0x4999();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x26b6(_0x2351a1,_0x32b154){_0x2351a1=_0x2351a1-0x110;const _0x499906=a32_0x4999();let _0x26b65a=_0x499906[_0x2351a1];return _0x26b65a;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x27916a){const _0x30e1ec=a32_0x26b6,_0x35095e=getCliVersion(),_0x86d6ca=buildConfigFromFlags({});let _0x5defa8,_0x358875;try{_0x5defa8=normalizeLovrabetRegion(_0x86d6ca[_0x30e1ec(0x137)][_0x30e1ec(0x139)]);}catch(_0x55f112){_0x358875=_0x55f112 instanceof Error?_0x55f112:new Error(String(_0x55f112));}let _0x262e78;if(!_0x358875)try{await initGlobalEnvironment(_0x86d6ca);}catch(_0x2bed23){_0x262e78=_0x2bed23 instanceof Error?_0x2bed23:new Error(String(_0x2bed23));}console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](CLI_BIN_NAME+_0x30e1ec(0x144))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray']('─'[_0x30e1ec(0x17d)](0x32))),console[_0x30e1ec(0x119)](_0x30e1ec(0x12c)+_0x35095e),console[_0x30e1ec(0x119)](_0x30e1ec(0x16d)+process[_0x30e1ec(0x113)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x134)+process[_0x30e1ec(0x15b)]+'\x20'+process[_0x30e1ec(0x12e)]);const _0x5832cb=inspectBuiltinSkill();console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Built-in\x20Skill')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x18c)+(_0x5832cb[_0x30e1ec(0x118)]===_0x30e1ec(0x168)?a32_0x1c5d68['green']('✓\x20current'):a32_0x1c5d68[_0x30e1ec(0x142)]('✗\x20'+_0x5832cb['state']))),console[_0x30e1ec(0x119)](_0x30e1ec(0x128)+_0x5832cb[_0x30e1ec(0x181)]),console['log'](_0x30e1ec(0x16f)+(_0x5832cb[_0x30e1ec(0x18b)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x131)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x16e)+(_0x5832cb[_0x30e1ec(0x143)]||a32_0x1c5d68['gray'](_0x30e1ec(0x16a))));_0x5832cb[_0x30e1ec(0x118)]!==_0x30e1ec(0x168)&&console['log'](_0x30e1ec(0x157)+_0x5832cb['repairCommand']);_0x5832cb['reason']&&console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x5832cb['reason']);console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x132))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x3c8e0b=getGlobalConfigPath(),_0x478d30=getProjectConfigPath();console[_0x30e1ec(0x119)](_0x30e1ec(0x12d)+(_0x3c8e0b||a32_0x1c5d68['gray'](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x152)+(_0x478d30||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x183))),console['log'](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x12558a=(_0x2458e5,_0xc7a2db)=>{const _0x4c7b88=_0x30e1ec;if(!_0xc7a2db){console['log']('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)]('(no\x20file)'));return;}const _0x39e81b=inspectCliConfigJsonFile(_0xc7a2db);if(_0x39e81b[_0x4c7b88(0x169)]==='ok')console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68['green'](_0x4c7b88(0x13a)));else{if(_0x39e81b[_0x4c7b88(0x169)]===_0x4c7b88(0x121))console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x11b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x39e81b['status']===_0x4c7b88(0x189)?console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)](_0x4c7b88(0x131))):(console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68['red'](_0x4c7b88(0x123))),console[_0x4c7b88(0x119)]('\x20\x20'+''[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x142)](_0x39e81b[_0x4c7b88(0x151)])));}};_0x12558a(_0x30e1ec(0x177),_0x3c8e0b),_0x12558a(_0x30e1ec(0x187),_0x478d30);const _0x4984ae=loadRawConfigLayers(),_0x43fe6e=[Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x14a)],_0x30e1ec(0x114))?_0x30e1ec(0x164):null,Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x114))?_0x30e1ec(0x126):null][_0x30e1ec(0x18a)](Boolean);_0x43fe6e[_0x30e1ec(0x14d)]>0x0&&(console[_0x30e1ec(0x119)](_0x30e1ec(0x141)+a32_0x1c5d68[_0x30e1ec(0x11b)](_0x30e1ec(0x15d)+_0x43fe6e['join'](_0x30e1ec(0x179))+_0x30e1ec(0x140))),_0x43fe6e['includes'](_0x30e1ec(0x126))&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x43fe6e[_0x30e1ec(0x117)](_0x30e1ec(0x164))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x17f)+CLI_BIN_NAME+_0x30e1ec(0x15f)));_0x262e78&&(console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x262e78[_0x30e1ec(0x151)]),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x184)],'routing')&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x30e1ec(0x12a)),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae['globalConfig'],'routing')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x175)));_0x358875&&(console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Country/Region\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68['red'](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x358875[_0x30e1ec(0x151)]),Object['prototype']['hasOwnProperty']['call'](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x139))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x130)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x14a)],'region')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x182)));console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x12b))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca['appCode']||a32_0x1c5d68['red'](_0x30e1ec(0x150)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x133)+(_0x5defa8??a32_0x1c5d68[_0x30e1ec(0x142)]('(invalid)'))),console['log'](_0x30e1ec(0x158)+_0x86d6ca['locale']),console[_0x30e1ec(0x119)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x161)]||a32_0x1c5d68['gray']('(none)'))),console['log'](_0x30e1ec(0x12f)+(_0x86d6ca[_0x30e1ec(0x171)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console['log'](_0x30e1ec(0x180)+(_0x86d6ca[_0x30e1ec(0x17e)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x147)+DEFAULT_CONFIG_VALUES[_0x30e1ec(0x17e)]+')'))),console[_0x30e1ec(0x119)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x162)]??a32_0x1c5d68[_0x30e1ec(0x188)]('(default)'))),console[_0x30e1ec(0x119)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x86d6ca['riskLevel']),console[_0x30e1ec(0x119)](_0x30e1ec(0x15c)+_0x86d6ca[_0x30e1ec(0x13c)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x110)+AUTH_MODE[_0x30e1ec(0x160)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x122)+(_0x86d6ca[_0x30e1ec(0x174)]?a32_0x1c5d68[_0x30e1ec(0x111)](_0x30e1ec(0x155)+_0x86d6ca[_0x30e1ec(0x174)][_0x30e1ec(0x14d)]+')'):a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x14b))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e)));_0x262e78||_0x358875?console[_0x30e1ec(0x119)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x11a))):(console[_0x30e1ec(0x119)](_0x30e1ec(0x13f)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x30e1ec(0x145)+getRuntimeDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x170)+getSkillDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x17a)+(getKbServiceDomain()??_0x30e1ec(0x125))));console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x149))),console['log'](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x46a11e=inspectServiceRegistry();console[_0x30e1ec(0x119)](_0x30e1ec(0x112)+_0x46a11e[_0x30e1ec(0x129)]),console['log'](_0x30e1ec(0x159)+formatServiceRegistryStatus(_0x46a11e)),console[_0x30e1ec(0x119)](_0x30e1ec(0x11d)+_0x46a11e[_0x30e1ec(0x11f)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x14c)+_0x46a11e[_0x30e1ec(0x166)]);for(const _0xce4ef4 of _0x46a11e['services']){console[_0x30e1ec(0x119)]('\x20\x20'+(_0xce4ef4[_0x30e1ec(0x116)]+':')[_0x30e1ec(0x185)](0x11)+'\x20'+(_0xce4ef4[_0x30e1ec(0x11c)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13d)))+'\x20('+_0xce4ef4[_0x30e1ec(0x166)]+_0x30e1ec(0x163)),console['log']('\x20\x20'+''[_0x30e1ec(0x185)](0x11)+_0x30e1ec(0x136)+_0xce4ef4[_0x30e1ec(0x138)][_0x30e1ec(0x156)]);}return console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Auth')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x13b)+a32_0x1c5d68['green'](AUTH_MODE[_0x30e1ec(0x160)]+'\x20(accessKey)')),console[_0x30e1ec(0x119)](_0x30e1ec(0x15a)+a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x154))),console[_0x30e1ec(0x119)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x287e7d){const _0x355113=a32_0x26b6;if(_0x287e7d['status']==='ok')return a32_0x1c5d68[_0x355113(0x111)](_0x355113(0x17b));if(_0x287e7d['status']===_0x355113(0x189))return a32_0x1c5d68[_0x355113(0x188)](_0x355113(0x16a));if(_0x287e7d[_0x355113(0x169)]===_0x355113(0x121))return a32_0x1c5d68[_0x355113(0x11b)](_0x355113(0x173));return a32_0x1c5d68['red'](_0x355113(0x124)+(_0x287e7d[_0x355113(0x151)]?':\x20'+_0x287e7d['message']:''));}export const doctorDefinition={'service':'doctor','command':a32_0xc47fc6(0x127),'description':a32_0xc47fc6(0x17c),'risk':a32_0xc47fc6(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x442916=a32_0x4318;(function(_0x13ca00,_0x559a9f){const _0x22a725=a32_0x4318,_0x4e3dd2=_0x13ca00();while(!![]){try{const _0x2b94da=parseInt(_0x22a725(0x134))/0x1+-parseInt(_0x22a725(0x104))/0x2*(parseInt(_0x22a725(0xd8))/0x3)+parseInt(_0x22a725(0x108))/0x4+parseInt(_0x22a725(0x105))/0x5*(parseInt(_0x22a725(0x12b))/0x6)+parseInt(_0x22a725(0xe9))/0x7+parseInt(_0x22a725(0xcf))/0x8+-parseInt(_0x22a725(0xc3))/0x9;if(_0x2b94da===_0x559a9f)break;else _0x4e3dd2['push'](_0x4e3dd2['shift']());}catch(_0x283ded){_0x4e3dd2['push'](_0x4e3dd2['shift']());}}}(a32_0x30a8,0xa0370));import a32_0x404b0d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a32_0x30a8(){const _0x41c175=['(not\x20found)','108wwfCtS','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','bold','skillVersion','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','format','\x20doctor','713696usFBML','\x20\x20kbServiceDomain:\x20','✗\x20Invalid\x20JSON','(missing)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(invalid)','yellow','\x20config\x20delete\x20routing\x20--global','currentApp','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','repairCommand','project','31986621PNRiKD','region','\x20\x20Merged\x20Config','routing','\x20config','hasOwnProperty','pageSize','packageVersion','(set,\x20length=','\x20config\x20delete\x20routing','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','10211464OWopQL','(none)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Repair\x20global:\x20\x20\x20','inherit','gray','\x20+\x20','registryPath','90TdgfZz','\x20(accessKey)','globalConfig','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','join','\x20Imported\x20from:\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','\x20\x20Service\x20Tree','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','not\x20configured','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','current','path','7741867moNaXb','⚠\x20Empty','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','check','filter','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','projectConfig','\x20config\x20delete\x20region','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','status','red','read','✓\x20Loaded','\x20\x20Installed\x20Path:\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','prototype','⚠\x20Empty\x20(treated\x20as\x20{})','padEnd','\x20\x20API\x20Endpoints','repeat','raw','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','75934mNhfpt','312280HYnrEF','name','call','4516004ylGTVp','riskLevel','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Repair\x20project:\x20\x20\x20','installedPath','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','✗\x20Invalid','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','locale','message','includes','empty','Project','global','commandCount','doctor','✓\x20current','\x20config\x20delete\x20inherit','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(unnamed)','log','\x20\x20─','version','\x20\x20Config\x20Files','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','serviceCount','arch','green','ClientAk'];a32_0x30a8=function(){return _0x41c175;};return a32_0x30a8();}function a32_0x4318(_0x4afa00,_0x295516){_0x4afa00=_0x4afa00-0xba;const _0x30a8b6=a32_0x30a8();let _0x431876=_0x30a8b6[_0x4afa00];return _0x431876;}import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x94a0ef){const _0x496e06=a32_0x4318,_0xa32ac4=getCliVersion(),_0x5c88a9=buildConfigFromFlags({});let _0x31d86e,_0xab894a;try{_0x31d86e=normalizeLovrabetRegion(_0x5c88a9[_0x496e06(0x101)][_0x496e06(0xc4)]);}catch(_0x4ee850){_0xab894a=_0x4ee850 instanceof Error?_0x4ee850:new Error(String(_0x4ee850));}let _0x4e4a05;if(!_0xab894a)try{await initGlobalEnvironment(_0x5c88a9);}catch(_0x5a983d){_0x4e4a05=_0x5a983d instanceof Error?_0x5a983d:new Error(String(_0x5a983d));}console['log'](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](CLI_BIN_NAME+_0x496e06(0x133))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)]('─'[_0x496e06(0x100)](0x32))),console[_0x496e06(0x120)](_0x496e06(0x131)+_0xa32ac4),console[_0x496e06(0x120)](_0x496e06(0x11d)+process[_0x496e06(0x122)]),console['log'](_0x496e06(0x130)+process['platform']+'\x20'+process[_0x496e06(0x127)]);const _0x59685b=inspectBuiltinSkill();console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0xe1))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)[_0x496e06(0x100)](0x1e))),console[_0x496e06(0x120)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59685b[_0x496e06(0x139)]===_0x496e06(0xe7)?a32_0x404b0d[_0x496e06(0x128)](_0x496e06(0x11b)):a32_0x404b0d['red']('✗\x20'+_0x59685b[_0x496e06(0x139)]))),console[_0x496e06(0x120)]('\x20\x20Package\x20Version:\x20'+_0x59685b[_0x496e06(0xca)]),console['log'](_0x496e06(0xc0)+(_0x59685b[_0x496e06(0x12f)]||a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x137)))),console[_0x496e06(0x120)](_0x496e06(0xf9)+(_0x59685b[_0x496e06(0x10d)]||a32_0x404b0d['gray'](_0x496e06(0x12a))));_0x59685b[_0x496e06(0x139)]!==_0x496e06(0xe7)&&console[_0x496e06(0x120)](_0x496e06(0xbf)+_0x59685b[_0x496e06(0xc1)]);_0x59685b[_0x496e06(0x10f)]&&console[_0x496e06(0x120)](_0x496e06(0x12c)+_0x59685b[_0x496e06(0x10f)]);console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0x123))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)['repeat'](0x1e)));const _0xdd253d=getGlobalConfigPath(),_0x3f8f1c=getProjectConfigPath();console[_0x496e06(0x120)](_0x496e06(0xce)+(_0xdd253d||a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x12a)))),console[_0x496e06(0x120)](_0x496e06(0x102)+(_0x3f8f1c||a32_0x404b0d['gray'](_0x496e06(0x12a)))),console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0x103))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)['repeat'](0x1e)));const _0x56c57f=(_0x40e7a8,_0x1c9a21)=>{const _0x1a3465=_0x496e06;if(!_0x1c9a21){console[_0x1a3465(0x120)]('\x20\x20'+_0x40e7a8[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d['gray']('(no\x20file)'));return;}const _0x4fabde=inspectCliConfigJsonFile(_0x1c9a21);if(_0x4fabde[_0x1a3465(0xf5)]==='ok')console[_0x1a3465(0x120)]('\x20\x20'+_0x40e7a8[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d[_0x1a3465(0x128)](_0x1a3465(0x12d)));else{if(_0x4fabde[_0x1a3465(0xf5)]===_0x1a3465(0x116))console['log']('\x20\x20'+_0x40e7a8[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d[_0x1a3465(0xbc)](_0x1a3465(0xfd)));else _0x4fabde[_0x1a3465(0xf5)]==='missing'?console[_0x1a3465(0x120)]('\x20\x20'+_0x40e7a8[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d[_0x1a3465(0xd5)](_0x1a3465(0x137))):(console[_0x1a3465(0x120)]('\x20\x20'+_0x40e7a8[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d[_0x1a3465(0xf6)](_0x1a3465(0x136))),console['log']('\x20\x20'+''[_0x1a3465(0xfe)](0x11)+'\x20'+a32_0x404b0d[_0x1a3465(0xf6)](_0x4fabde[_0x1a3465(0x114)])));}};_0x56c57f('Global',_0xdd253d),_0x56c57f(_0x496e06(0x117),_0x3f8f1c);const _0x4196c0=loadRawConfigLayers(),_0x218685=[Object['prototype'][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0[_0x496e06(0xda)],_0x496e06(0xd4))?_0x496e06(0x118):null,Object[_0x496e06(0xfc)][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0[_0x496e06(0xf1)],_0x496e06(0xd4))?_0x496e06(0xc2):null][_0x496e06(0xee)](Boolean);_0x218685['length']>0x0&&(console[_0x496e06(0x120)](_0x496e06(0xf4)+a32_0x404b0d[_0x496e06(0xbc)](_0x496e06(0x10b)+_0x218685[_0x496e06(0xdc)](_0x496e06(0xd6))+_0x496e06(0xc7))),_0x218685[_0x496e06(0x115)](_0x496e06(0xc2))&&console[_0x496e06(0x120)](_0x496e06(0x10c)+CLI_BIN_NAME+_0x496e06(0x11c)),_0x218685[_0x496e06(0x115)](_0x496e06(0x118))&&console[_0x496e06(0x120)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x4e4a05&&(console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)]('\x20\x20Routing\x20Configuration')),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)[_0x496e06(0x100)](0x1e))),console[_0x496e06(0x120)](_0x496e06(0x124)+a32_0x404b0d[_0x496e06(0xf6)]('✗\x20Invalid')),console[_0x496e06(0x120)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4e4a05[_0x496e06(0x114)]),Object[_0x496e06(0xfc)][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0['projectConfig'],_0x496e06(0xc6))&&console[_0x496e06(0x120)](_0x496e06(0xec)+CLI_BIN_NAME+_0x496e06(0xcc)),Object['prototype'][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0[_0x496e06(0xda)],_0x496e06(0xc6))&&console[_0x496e06(0x120)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x496e06(0xbd)));_0xab894a&&(console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0xfb))),console['log'](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)[_0x496e06(0x100)](0x1e))),console['log'](_0x496e06(0x124)+a32_0x404b0d['red'](_0x496e06(0x110))),console[_0x496e06(0x120)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xab894a['message']),Object['prototype'][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0[_0x496e06(0xf1)],_0x496e06(0xc4))&&console['log'](_0x496e06(0xec)+CLI_BIN_NAME+_0x496e06(0xf2)),Object[_0x496e06(0xfc)][_0x496e06(0xc8)][_0x496e06(0x107)](_0x4196c0[_0x496e06(0xda)],'region')&&console['log'](_0x496e06(0xd3)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x496e06(0x120)](),console['log'](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0xc5))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)]('\x20\x20─'['repeat'](0x1e))),console[_0x496e06(0x120)](_0x496e06(0x10e)+(_0x5c88a9['appCode']||a32_0x404b0d[_0x496e06(0xf6)]('(not\x20set)'))),console[_0x496e06(0x120)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31d86e??a32_0x404b0d[_0x496e06(0xf6)](_0x496e06(0xbb)))),console[_0x496e06(0x120)](_0x496e06(0x10a)+_0x5c88a9[_0x496e06(0x113)]),console[_0x496e06(0x120)](_0x496e06(0xdb)+(_0x5c88a9[_0x496e06(0x11e)]||a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0xd0)))),console['log'](_0x496e06(0xfa)+(_0x5c88a9[_0x496e06(0xbe)]||a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0xd0)))),console[_0x496e06(0x120)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c88a9[_0x496e06(0x132)]||a32_0x404b0d[_0x496e06(0xd5)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x496e06(0x132)]+')'))),console[_0x496e06(0x120)](_0x496e06(0xd1)+(_0x5c88a9[_0x496e06(0xc9)]??a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x125)))),console[_0x496e06(0x120)](_0x496e06(0x138)+_0x5c88a9[_0x496e06(0x109)]),console[_0x496e06(0x120)](_0x496e06(0xba)+_0x5c88a9['verbose']),console[_0x496e06(0x120)](_0x496e06(0xd2)+AUTH_MODE[_0x496e06(0x129)]),console[_0x496e06(0x120)](_0x496e06(0xe6)+(_0x5c88a9[_0x496e06(0xf0)]?a32_0x404b0d[_0x496e06(0x128)](_0x496e06(0xcb)+_0x5c88a9[_0x496e06(0xf0)]['length']+')'):a32_0x404b0d['gray'](_0x496e06(0xd0)))),console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d['bold'](_0x496e06(0xff))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)['repeat'](0x1e)));_0x4e4a05||_0xab894a?console[_0x496e06(0x120)](_0x496e06(0x124)+a32_0x404b0d[_0x496e06(0xf6)](_0x496e06(0x112))):(console[_0x496e06(0x120)](_0x496e06(0x111)+getApiDomain()),console[_0x496e06(0x120)](_0x496e06(0x13a)+getUserDomain()),console[_0x496e06(0x120)](_0x496e06(0xcd)+getRuntimeDomain()),console[_0x496e06(0x120)](_0x496e06(0xe0)+getSkillDomain()),console[_0x496e06(0x120)](_0x496e06(0x135)+(getKbServiceDomain()??_0x496e06(0xe5))));console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)](_0x496e06(0xe2))),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x121)[_0x496e06(0x100)](0x1e)));const _0x589b0a=inspectServiceRegistry();console[_0x496e06(0x120)](_0x496e06(0xe3)+_0x589b0a[_0x496e06(0xd7)]),console[_0x496e06(0x120)](_0x496e06(0x124)+formatServiceRegistryStatus(_0x589b0a)),console[_0x496e06(0x120)](_0x496e06(0xef)+_0x589b0a[_0x496e06(0x126)]),console[_0x496e06(0x120)](_0x496e06(0xeb)+_0x589b0a[_0x496e06(0x119)]);for(const _0x29c7bb of _0x589b0a['services']){console[_0x496e06(0x120)]('\x20\x20'+(_0x29c7bb['serviceCode']+':')[_0x496e06(0xfe)](0x11)+'\x20'+(_0x29c7bb[_0x496e06(0x106)]||a32_0x404b0d[_0x496e06(0xd5)](_0x496e06(0x11f)))+'\x20('+_0x29c7bb[_0x496e06(0x119)]+_0x496e06(0xe4)),console[_0x496e06(0x120)]('\x20\x20'+''[_0x496e06(0xfe)](0x11)+_0x496e06(0xdd)+_0x29c7bb['source'][_0x496e06(0xe8)]);}return console[_0x496e06(0x120)](),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0x12e)]('\x20\x20Auth')),console[_0x496e06(0x120)](a32_0x404b0d[_0x496e06(0xd5)]('\x20\x20─'[_0x496e06(0x100)](0x1e))),console[_0x496e06(0x120)](_0x496e06(0xde)+a32_0x404b0d[_0x496e06(0x128)](AUTH_MODE[_0x496e06(0x129)]+_0x496e06(0xd9))),console[_0x496e06(0x120)](_0x496e06(0xf3)+a32_0x404b0d['gray']('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5e6924){const _0x37b3ed=a32_0x4318;if(_0x5e6924[_0x37b3ed(0xf5)]==='ok')return a32_0x404b0d[_0x37b3ed(0x128)](_0x37b3ed(0xf8));if(_0x5e6924['status']===_0x37b3ed(0xdf))return a32_0x404b0d[_0x37b3ed(0xd5)](_0x37b3ed(0x12a));if(_0x5e6924[_0x37b3ed(0xf5)]==='empty')return a32_0x404b0d['yellow'](_0x37b3ed(0xea));return a32_0x404b0d['red'](_0x37b3ed(0x110)+(_0x5e6924[_0x37b3ed(0x114)]?':\x20'+_0x5e6924['message']:''));}export const doctorDefinition={'service':a32_0x442916(0x11a),'command':a32_0x442916(0xed),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a32_0x442916(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x1d0f24=a33_0x5587;(function(_0x4c0d56,_0x4a991e){const _0x516dd9=a33_0x5587,_0x17b8ab=_0x4c0d56();while(!![]){try{const _0x278d51=parseInt(_0x516dd9(0x1cc))/0x1+-parseInt(_0x516dd9(0x1b8))/0x2*(-parseInt(_0x516dd9(0x1ca))/0x3)+-parseInt(_0x516dd9(0x1be))/0x4+-parseInt(_0x516dd9(0x1d1))/0x5+-parseInt(_0x516dd9(0x1d4))/0x6+parseInt(_0x516dd9(0x1c3))/0x7*(-parseInt(_0x516dd9(0x1bf))/0x8)+-parseInt(_0x516dd9(0x1da))/0x9*(-parseInt(_0x516dd9(0x1c9))/0xa);if(_0x278d51===_0x4a991e)break;else _0x17b8ab['push'](_0x17b8ab['shift']());}catch(_0x2aeed2){_0x17b8ab['push'](_0x17b8ab['shift']());}}}(a33_0x36ee,0x53ba9));function a33_0x36ee(){const _0x1783d2=['bool','Preview:\x20upload\x20','string','4380530aaVfcM','download','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','appCode','filePath','validation','3886390fiFsFU','1024869tzrbRz','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','163560FvIWLU','query-url','POST','read','body','328625iIpYcS','upload','/client/uploadFile','1063536ovJbRR','boolean','filepath','filePath\x20is\x20required.','Path\x20to\x20the\x20local\x20file\x20to\x20upload','str','27GhHcLY','trim','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2FTqDPa','long-term','File','path','\x20to\x20runtime\x20app\x20','build','1837504eSBDeH','8xqLliP'];a33_0x36ee=function(){return _0x1783d2;};return a33_0x36ee();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1d0f24(0x1dc),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1d8)},FILEPATH_FLAG={'name':a33_0x1d0f24(0x1d6),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1c5)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0x1d0f24(0x1b9),'type':a33_0x1d0f24(0x1d5),'description':a33_0x1d0f24(0x1cb)};function requireFilePath(_0x390af7){const _0x5c8678=a33_0x1d0f24,_0x30720f=_0x390af7[_0x5c8678(0x1db)]();if(!_0x30720f)throw CliErrors[_0x5c8678(0x1c8)](_0x5c8678(0x1d7));return _0x30720f;}function a33_0x5587(_0x362752,_0x2e5cc3){_0x362752=_0x362752-0x1b8;const _0x36ee3a=a33_0x36ee();let _0x558758=_0x36ee3a[_0x362752];return _0x558758;}const fileUpload={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1d2),'description':a33_0x1d0f24(0x1dd),'risk':a33_0x1d0f24(0x1cf),'flags':[FILE_FLAG],async 'dryRun'(_0x45425a){const _0x196a40=a33_0x1d0f24,_0x5d4a2d=requireRuntimeUploadFile(_0x45425a[_0x196a40(0x1d9)](_0x196a40(0x1dc)),_0x196a40(0x1ba));return dryRun(_0x196a40(0x1ce),_0x196a40(0x1d3))[_0x196a40(0x1d0)]({'appCode':_0x45425a[_0x196a40(0x1c6)],'multipart':{'file':_0x5d4a2d}})['description'](_0x196a40(0x1c1)+_0x5d4a2d[_0x196a40(0x1bb)]+_0x196a40(0x1bc)+_0x45425a[_0x196a40(0x1c6)])[_0x196a40(0x1bd)]();},async 'execute'(_0x4ec295){const _0xbbea42=a33_0x1d0f24,_0x123db1=requireRuntimeUploadFile(_0x4ec295[_0xbbea42(0x1d9)]('file'),'File'),_0x35ec14=await uploadRuntimeFile(_0x4ec295[_0xbbea42(0x1c6)],_0x123db1[_0xbbea42(0x1bb)]);return{'ok':!![],'data':_0x35ec14,'message':_0x35ec14[_0xbbea42(0x1c7)]?'Uploaded\x20file:\x20'+_0x35ec14['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1cd),'description':a33_0x1d0f24(0x1de),'risk':a33_0x1d0f24(0x1cf),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4ff704){const _0x4caa97=a33_0x1d0f24,_0x76299e=requireFilePath(_0x4ff704[_0x4caa97(0x1d9)]('filepath')),_0x150c93=await queryRuntimeFileUrl(_0x76299e,{'download':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1c4)),'longTerm':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1b9))});return{'ok':!![],'data':_0x150c93};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a33_0xa76771=a33_0x4d15;(function(_0x2a6a21,_0x2eaf97){const _0x2601b7=a33_0x4d15,_0x252251=_0x2a6a21();while(!![]){try{const _0x70482a=parseInt(_0x2601b7(0x169))/0x1+-parseInt(_0x2601b7(0x156))/0x2*(-parseInt(_0x2601b7(0x152))/0x3)+parseInt(_0x2601b7(0x14a))/0x4*(parseInt(_0x2601b7(0x160))/0x5)+-parseInt(_0x2601b7(0x166))/0x6*(parseInt(_0x2601b7(0x148))/0x7)+-parseInt(_0x2601b7(0x15a))/0x8*(parseInt(_0x2601b7(0x159))/0x9)+parseInt(_0x2601b7(0x158))/0xa*(-parseInt(_0x2601b7(0x14b))/0xb)+parseInt(_0x2601b7(0x163))/0xc;if(_0x70482a===_0x2eaf97)break;else _0x252251['push'](_0x252251['shift']());}catch(_0x1c686d){_0x252251['push'](_0x252251['shift']());}}}(a33_0x3741,0x8a1c8));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x4d15(_0xff0e20,_0x3a82e2){_0xff0e20=_0xff0e20-0x147;const _0x37411b=a33_0x3741();let _0x4d155d=_0x37411b[_0xff0e20];return _0x4d155d;}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0xa76771(0x155),'type':'string','required':!![],'description':a33_0xa76771(0x14e)},FILEPATH_FLAG={'name':a33_0xa76771(0x16a),'type':a33_0xa76771(0x16d),'required':!![],'description':a33_0xa76771(0x153)},DOWNLOAD_FLAG={'name':a33_0xa76771(0x168),'type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0xa76771(0x15c),'type':a33_0xa76771(0x165),'description':a33_0xa76771(0x16c)};function requireFilePath(_0x4b82dd){const _0x1329c2=a33_0xa76771,_0x4d5e3d=_0x4b82dd['trim']();if(!_0x4d5e3d)throw CliErrors[_0x1329c2(0x147)](_0x1329c2(0x164));return _0x4d5e3d;}function a33_0x3741(){const _0xa7952=['458005wLLGZF','appCode','query-url','3974964bfhfzV','filePath\x20is\x20required.','boolean','30GXCuGV','description','download','831415VhSJbO','filepath','filePath','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','string','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','validation','344694nEtjzj','body','20iVqcYK','143PKpzho','Uploaded\x20file:\x20','Preview:\x20upload\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','/client/uploadFile','upload','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','53727YiqOUq','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','path','file','86ZTmYul','bool','790810wncTWC','115281JxVyFy','344PzMIry','\x20to\x20runtime\x20app\x20','long-term','read','str','build'];a33_0x3741=function(){return _0xa7952;};return a33_0x3741();}const fileUpload={'service':'file','command':a33_0xa76771(0x150),'description':a33_0xa76771(0x151),'risk':a33_0xa76771(0x15d),'flags':[FILE_FLAG],async 'dryRun'(_0x5273a5){const _0x5d2248=a33_0xa76771,_0x288008=requireRuntimeUploadFile(_0x5273a5['str'](_0x5d2248(0x155)),'File');return dryRun('POST',_0x5d2248(0x14f))[_0x5d2248(0x149)]({'appCode':_0x5273a5[_0x5d2248(0x161)],'multipart':{'file':_0x288008}})[_0x5d2248(0x167)](_0x5d2248(0x14d)+_0x288008[_0x5d2248(0x154)]+_0x5d2248(0x15b)+_0x5273a5[_0x5d2248(0x161)])[_0x5d2248(0x15f)]();},async 'execute'(_0x2131e3){const _0x281fa3=a33_0xa76771,_0x328759=requireRuntimeUploadFile(_0x2131e3[_0x281fa3(0x15e)](_0x281fa3(0x155)),'File'),_0xaf4853=await uploadRuntimeFile(_0x2131e3[_0x281fa3(0x161)],_0x328759['path']);return{'ok':!![],'data':_0xaf4853,'message':_0xaf4853['filePath']?_0x281fa3(0x14c)+_0xaf4853[_0x281fa3(0x16b)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x281fa3(0x16e)};}},fileQueryUrl={'service':a33_0xa76771(0x155),'command':a33_0xa76771(0x162),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0xa76771(0x15d),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4e8b17){const _0x45b8ee=a33_0xa76771,_0x41e844=requireFilePath(_0x4e8b17[_0x45b8ee(0x15e)](_0x45b8ee(0x16a))),_0x24ba53=await queryRuntimeFileUrl(_0x41e844,{'download':_0x4e8b17[_0x45b8ee(0x157)](_0x45b8ee(0x168)),'longTerm':_0x4e8b17[_0x45b8ee(0x157)](_0x45b8ee(0x15c))});return{'ok':!![],'data':_0x24ba53};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x49054f=a34_0x4f20;(function(_0x3ae171,_0x1c860d){const _0x4c6366=a34_0x4f20,_0x26589a=_0x3ae171();while(!![]){try{const _0x5b42c0=parseInt(_0x4c6366(0xac))/0x1*(parseInt(_0x4c6366(0xa3))/0x2)+-parseInt(_0x4c6366(0x9b))/0x3+parseInt(_0x4c6366(0x9f))/0x4+-parseInt(_0x4c6366(0xc4))/0x5+parseInt(_0x4c6366(0xa2))/0x6+-parseInt(_0x4c6366(0xae))/0x7+-parseInt(_0x4c6366(0xb4))/0x8;if(_0x5b42c0===_0x1c860d)break;else _0x26589a['push'](_0x26589a['shift']());}catch(_0x2c6312){_0x26589a['push'](_0x26589a['shift']());}}}(a34_0x17f5,0x1b48a));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a34_0x4f20(_0x3f090f,_0x14e54d){_0x3f090f=_0x3f090f-0x9a;const _0x17f557=a34_0x17f5();let _0x4f2097=_0x17f557[_0x3f090f];return _0x4f2097;}export const appImportFlagDefs=[{'name':a34_0x49054f(0xc2),'type':a34_0x49054f(0xa0),'description':a34_0x49054f(0xb1),'required':!![]},{'name':'appcode','type':a34_0x49054f(0xa0),'description':a34_0x49054f(0x9d)},{'name':'env','type':'string','description':a34_0x49054f(0xbe),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49054f(0xab),'type':a34_0x49054f(0xb3),'description':a34_0x49054f(0xc3)+PRODUCT_CONFIG[a34_0x49054f(0xa5)]+a34_0x49054f(0xad),'default':![]},{'name':a34_0x49054f(0xb6),'type':'boolean','description':a34_0x49054f(0xaa),'default':![]}];export async function runAppImport(_0x572d58){const _0x6ba86=a34_0x49054f,_0x36264f=_0x572d58[_0x6ba86(0xab)]?_0x6ba86(0xab):_0x6ba86(0xb8),_0x186aca=resolveWriteConfigPath(_0x36264f);await runFromImport(_0x572d58,_0x186aca);}async function runFromImport(_0x4e378e,_0x58c810){const _0xcb0335=a34_0x49054f,_0x179da1=resolveFilePath(_0x4e378e['file']);if(!existsSync(_0x179da1))throw CliErrors[_0xcb0335(0xc1)]('Source\x20file\x20not\x20found:\x20'+_0x179da1);const _0x8cae80=readSourceFile(_0x179da1),_0x232bd9=convertToRuntimeConfig(_0x8cae80);_0x4e378e[_0xcb0335(0xb9)]&&(_0x232bd9[_0xcb0335(0xb9)]=String(_0x4e378e[_0xcb0335(0xb9)]));_0x4e378e[_0xcb0335(0xb0)]&&(_0x232bd9[_0xcb0335(0xb0)]=resolveImportEnv(_0x4e378e));if(!_0x232bd9['appcode'])throw CliErrors[_0xcb0335(0xc1)](_0xcb0335(0xba),_0xcb0335(0xb5));await writeImportConfig(_0x58c810,_0x232bd9,_0x4e378e),console[_0xcb0335(0x9e)](_0xcb0335(0xaf)+_0x179da1),console[_0xcb0335(0x9e)](_0xcb0335(0xbf)+_0x58c810),console[_0xcb0335(0x9e)](_0xcb0335(0xa1)+_0x232bd9[_0xcb0335(0xb9)]);if(_0x232bd9[_0xcb0335(0xa8)])console[_0xcb0335(0x9e)](_0xcb0335(0xa4)+_0x232bd9[_0xcb0335(0xa8)]);}function convertToRuntimeConfig(_0xd67bea){const _0x2220f8=a34_0x49054f;if(_0xd67bea['apps']&&typeof _0xd67bea['apps']===_0x2220f8(0x9a))throw CliErrors['validation'](_0x2220f8(0x9c),_0x2220f8(0xc0));const _0x4bbd1f={};for(const _0x46905d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xd67bea[_0x46905d]!==undefined&&(_0x4bbd1f[_0x46905d]=_0xd67bea[_0x46905d]);}return!_0x4bbd1f[_0x2220f8(0xa6)]&&(_0x4bbd1f['riskLevel']=DEFAULT_CONFIG_VALUES[_0x2220f8(0xa6)]),_0x4bbd1f;}async function writeImportConfig(_0x5b3ccd,_0x24645f,_0x384a7b){const _0x11ba41=a34_0x49054f;let _0x10b0ed={};existsSync(_0x5b3ccd)&&!_0x384a7b[_0x11ba41(0xb6)]&&(_0x10b0ed=readConfigFile(_0x5b3ccd));for(const [_0x287495,_0x324d48]of Object[_0x11ba41(0xa9)](_0x24645f)){_0x324d48!==undefined&&(_0x10b0ed[_0x287495]=_0x324d48);}if(_0x10b0ed[_0x11ba41(0xa7)])delete _0x10b0ed['app'];writeConfigFile(_0x5b3ccd,_0x10b0ed);}function resolveFilePath(_0x207c99){return isAbsolute(_0x207c99)?_0x207c99:resolve(process['cwd'](),_0x207c99);}function readSourceFile(_0x2f362c){const _0xb6ef79=a34_0x49054f;try{const _0x532964=readFileSync(_0x2f362c,{'encoding':'utf8'});return JSON[_0xb6ef79(0xbd)](_0x532964);}catch(_0x5188ee){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x5188ee[_0xb6ef79(0xbb)]);}}function resolveImportEnv(_0x388f78){const _0x52bcd5=a34_0x49054f,_0x1590d2=_0x388f78[_0x52bcd5(0xb0)];if(_0x1590d2===undefined||_0x1590d2==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x52bcd5(0xb2)](_0x1590d2))throw CliErrors[_0x52bcd5(0xc1)](_0x52bcd5(0xb7)+_0x1590d2+_0x52bcd5(0xbc)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x1590d2;}function a34_0x17f5(){const _0x5f0113=['12752hQchFZ','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`.','yes','Invalid\x20env\x20\x22','project','appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','message','\x22.\x20Allowed:\x20','parse','Override\x20imported\x20default\x20env','\x20\x20config:\x20\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','validation','file','Write\x20to\x20global\x20(~/','676235qmMsGF','object','50796oujgWQ','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Override\x20imported\x20default\x20appcode','log','80244xOKOLI','string','\x20\x20appcode:\x20','899466WebHNb','452sMBLPO','\x20\x20default:\x20','newConfigFileName','riskLevel','app','defaultApp','entries','Skip\x20confirmation\x20when\x20overwriting','global','683ZTRKkV',')\x20instead\x20of\x20project','411621zgiFue','Imported\x20from\x20','env','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','includes','boolean'];a34_0x17f5=function(){return _0x5f0113;};return a34_0x17f5();}
1
+ const a34_0x414ee2=a34_0x257d;(function(_0x2139df,_0x4d02e2){const _0x2192f7=a34_0x257d,_0x24287d=_0x2139df();while(!![]){try{const _0x37ebd4=-parseInt(_0x2192f7(0x7c))/0x1+-parseInt(_0x2192f7(0x7d))/0x2*(parseInt(_0x2192f7(0x97))/0x3)+-parseInt(_0x2192f7(0x9c))/0x4*(parseInt(_0x2192f7(0xa4))/0x5)+parseInt(_0x2192f7(0x7b))/0x6+-parseInt(_0x2192f7(0xa5))/0x7+parseInt(_0x2192f7(0x8a))/0x8+parseInt(_0x2192f7(0x9a))/0x9;if(_0x37ebd4===_0x4d02e2)break;else _0x24287d['push'](_0x24287d['shift']());}catch(_0x1d22fb){_0x24287d['push'](_0x24287d['shift']());}}}(a34_0x3459,0x39973));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a34_0x3459(){const _0x5ef4e3=['log','defaultApp','137313tSYQcu','object','global','6135552WJEVQN','\x20\x20config:\x20\x20','7024JkKDyd','appcode','env','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','string','Override\x20imported\x20default\x20env','\x22.\x20Allowed:\x20','includes','295ptpyjT','1183280DyeilY','Invalid\x20env\x20\x22','879486IHjhpP','411335CKdELR','2aBPbsW','Failed\x20to\x20parse\x20source\x20file:\x20','cwd',')\x20instead\x20of\x20project','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','newConfigFileName','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Skip\x20confirmation\x20when\x20overwriting','message','entries','apps','file','join','1098656GOgBWp','Override\x20imported\x20default\x20appcode','riskLevel','parse','project','Write\x20to\x20global\x20(~/','app','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`.','validation','\x20\x20default:\x20','boolean'];a34_0x3459=function(){return _0x5ef4e3;};return a34_0x3459();}export const appImportFlagDefs=[{'name':a34_0x414ee2(0x88),'type':a34_0x414ee2(0xa0),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':'appcode','type':a34_0x414ee2(0xa0),'description':a34_0x414ee2(0x8b)},{'name':a34_0x414ee2(0x9e),'type':'string','description':a34_0x414ee2(0xa1),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x414ee2(0x99),'type':a34_0x414ee2(0x94),'description':a34_0x414ee2(0x8f)+PRODUCT_CONFIG[a34_0x414ee2(0x82)]+a34_0x414ee2(0x80),'default':![]},{'name':'yes','type':a34_0x414ee2(0x94),'description':a34_0x414ee2(0x84),'default':![]}];export async function runAppImport(_0x2c1104){const _0x29a068=a34_0x414ee2,_0x26852a=_0x2c1104[_0x29a068(0x99)]?_0x29a068(0x99):_0x29a068(0x8e),_0x14545e=resolveWriteConfigPath(_0x26852a);await runFromImport(_0x2c1104,_0x14545e);}async function runFromImport(_0x304f98,_0x40a2db){const _0xadfcc9=a34_0x414ee2,_0x22aea9=resolveFilePath(_0x304f98[_0xadfcc9(0x88)]);if(!existsSync(_0x22aea9))throw CliErrors[_0xadfcc9(0x92)]('Source\x20file\x20not\x20found:\x20'+_0x22aea9);const _0x146209=readSourceFile(_0x22aea9),_0x3256ca=convertToRuntimeConfig(_0x146209);_0x304f98['appcode']&&(_0x3256ca[_0xadfcc9(0x9d)]=String(_0x304f98['appcode']));_0x304f98[_0xadfcc9(0x9e)]&&(_0x3256ca[_0xadfcc9(0x9e)]=resolveImportEnv(_0x304f98));if(!_0x3256ca[_0xadfcc9(0x9d)])throw CliErrors['validation'](_0xadfcc9(0x83),_0xadfcc9(0x91));await writeImportConfig(_0x40a2db,_0x3256ca,_0x304f98),console[_0xadfcc9(0x95)]('Imported\x20from\x20'+_0x22aea9),console[_0xadfcc9(0x95)](_0xadfcc9(0x9b)+_0x40a2db),console[_0xadfcc9(0x95)]('\x20\x20appcode:\x20'+_0x3256ca['appcode']);if(_0x3256ca[_0xadfcc9(0x96)])console['log'](_0xadfcc9(0x93)+_0x3256ca[_0xadfcc9(0x96)]);}function a34_0x257d(_0x28646b,_0x4eff5e){_0x28646b=_0x28646b-0x7b;const _0x345934=a34_0x3459();let _0x257da1=_0x345934[_0x28646b];return _0x257da1;}function convertToRuntimeConfig(_0x37c339){const _0xc7c7f3=a34_0x414ee2;if(_0x37c339[_0xc7c7f3(0x87)]&&typeof _0x37c339[_0xc7c7f3(0x87)]===_0xc7c7f3(0x98))throw CliErrors[_0xc7c7f3(0x92)](_0xc7c7f3(0x81),_0xc7c7f3(0x9f));const _0x3cd968={};for(const _0x4aceb8 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x37c339[_0x4aceb8]!==undefined&&(_0x3cd968[_0x4aceb8]=_0x37c339[_0x4aceb8]);}return!_0x3cd968['riskLevel']&&(_0x3cd968['riskLevel']=DEFAULT_CONFIG_VALUES[_0xc7c7f3(0x8c)]),_0x3cd968;}async function writeImportConfig(_0x11633d,_0xc54f8e,_0x1f8d79){const _0x10bed4=a34_0x414ee2;let _0x3f867c={};existsSync(_0x11633d)&&!_0x1f8d79['yes']&&(_0x3f867c=readConfigFile(_0x11633d));for(const [_0x1b4263,_0x2e228e]of Object[_0x10bed4(0x86)](_0xc54f8e)){_0x2e228e!==undefined&&(_0x3f867c[_0x1b4263]=_0x2e228e);}if(_0x3f867c[_0x10bed4(0x90)])delete _0x3f867c[_0x10bed4(0x90)];writeConfigFile(_0x11633d,_0x3f867c);}function resolveFilePath(_0x57aba6){const _0x233ca7=a34_0x414ee2;return isAbsolute(_0x57aba6)?_0x57aba6:resolve(process[_0x233ca7(0x7f)](),_0x57aba6);}function readSourceFile(_0x628f51){const _0x58c2e4=a34_0x414ee2;try{const _0x37cfc1=readFileSync(_0x628f51,{'encoding':'utf8'});return JSON[_0x58c2e4(0x8d)](_0x37cfc1);}catch(_0x2f0db4){throw CliErrors[_0x58c2e4(0x92)](_0x58c2e4(0x7e)+_0x2f0db4[_0x58c2e4(0x85)]);}}function resolveImportEnv(_0x5828c1){const _0x297e22=a34_0x414ee2,_0x2f1f9b=_0x5828c1[_0x297e22(0x9e)];if(_0x2f1f9b===undefined||_0x2f1f9b==='')return DEFAULT_CONFIG_VALUES[_0x297e22(0x9e)];if(!RUNTIME_ENV_VALUES[_0x297e22(0xa3)](_0x2f1f9b))throw CliErrors[_0x297e22(0x92)](_0x297e22(0xa6)+_0x2f1f9b+_0x297e22(0xa2)+RUNTIME_ENV_VALUES[_0x297e22(0x89)](',\x20'));return _0x2f1f9b;}
@@ -1 +1 @@
1
- const a35_0x2faa84=a35_0xca0b;(function(_0x410222,_0x4192c1){const _0x37a798=a35_0xca0b,_0x4222a1=_0x410222();while(!![]){try{const _0xd12a3d=parseInt(_0x37a798(0xad))/0x1*(parseInt(_0x37a798(0xd8))/0x2)+parseInt(_0x37a798(0xc0))/0x3+parseInt(_0x37a798(0xb1))/0x4+parseInt(_0x37a798(0xbf))/0x5+-parseInt(_0x37a798(0xe8))/0x6+-parseInt(_0x37a798(0xdc))/0x7*(parseInt(_0x37a798(0xb0))/0x8)+-parseInt(_0x37a798(0xb8))/0x9;if(_0xd12a3d===_0x4192c1)break;else _0x4222a1['push'](_0x4222a1['shift']());}catch(_0xf713e7){_0x4222a1['push'](_0x4222a1['shift']());}}}(a35_0xa7c6,0xa5b7e));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{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x2faa84(0xae),'type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xec)},FILE_FLAG={'name':'file','type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xb2)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x2faa84(0xb9)},TOPK_FLAG={'name':a35_0x2faa84(0xde),'type':'number','description':a35_0x2faa84(0xaf)};function readKnowledgeFile(_0x20bcd2){const _0x15f99e=a35_0x2faa84;if(!_0x20bcd2)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x20bcd2))throw CliErrors[_0x15f99e(0xd5)](_0x15f99e(0xb4)+_0x20bcd2);if(!statSync(_0x20bcd2)[_0x15f99e(0xc3)]())throw CliErrors[_0x15f99e(0xd5)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x20bcd2);return readFileSync(_0x20bcd2,'utf8');}function summarizePersonalItem(_0x465624){const _0x121a63=a35_0x2faa84;return{'id':_0x465624['id'],'title':_0x465624[_0x121a63(0xae)],'version':_0x465624[_0x121a63(0xd3)],'ragStatus':_0x465624[_0x121a63(0xd0)],'ragErrorMessage':_0x465624[_0x121a63(0xba)],'updateTime':_0x465624[_0x121a63(0xd6)]};}function a35_0xca0b(_0x2e561b,_0x3ec038){_0x2e561b=_0x2e561b-0xac;const _0xa7c68e=a35_0xa7c6();let _0xca0b03=_0xa7c68e[_0x2e561b];return _0xca0b03;}function detailPersonalItem(_0x29963a){const _0x2095bc=a35_0x2faa84;return{'id':_0x29963a['id'],'appCode':_0x29963a['appCode'],'scope':_0x29963a[_0x2095bc(0xea)],'userId':_0x29963a[_0x2095bc(0xce)],'title':_0x29963a[_0x2095bc(0xae)],'content':_0x29963a[_0x2095bc(0xc1)]??'','version':_0x29963a[_0x2095bc(0xd3)],'ragStatus':_0x29963a['ragStatus'],'ragErrorMessage':_0x29963a['ragErrorMessage'],'createTime':_0x29963a['createTime'],'updateTime':_0x29963a[_0x2095bc(0xd6)]};}function readTopK(_0x2b3454){const _0x25c834=a35_0x2faa84,_0x3b2833=_0x2b3454[_0x25c834(0xcf)](_0x25c834(0xde));if(_0x3b2833===undefined||_0x3b2833===null||_0x3b2833==='')return undefined;const _0x26585f=_0x2b3454[_0x25c834(0xd1)](_0x25c834(0xde));if(!Number[_0x25c834(0xe1)](_0x26585f)||_0x26585f<0x1||_0x26585f>0x32)throw CliErrors[_0x25c834(0xd5)](_0x25c834(0xc9));return _0x26585f;}function a35_0xa7c6(){const _0x14b68e=['/client/knowledge-base/personal/','17269758oFGpbd','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','ragErrorMessage','str','Created\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','117140ruLZsJ','1932441GlRpFg','content','/client/knowledge-base/personal/create','isFile','Personal\x20knowledge-base\x20entry\x20ID','body','list','kb-service-url','search','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','query','Override\x20the\x20existing\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','description','userId','flag','ragStatus','num','update','version','string','validation','updateTime','appCode','2lzZSHm','read','trim','build','21IJyyxn','/update','topk','bool','signal','isSafeInteger','write','Updated\x20KB\x20entry\x20','length','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','detail','1274142sdFjXY','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','scope','POST','Personal\x20knowledge-base\x20entry\x20title','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','file','1307996yhcVCw','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','597272xEXSYC','4233628WTuYTX','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','File\x20not\x20found:\x20','verbose','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.'];a35_0xa7c6=function(){return _0x14b68e;};return a35_0xa7c6();}const kbList={'service':'kb','command':a35_0x2faa84(0xc6),'description':a35_0x2faa84(0xe6),'risk':a35_0x2faa84(0xd9),'flags':[VERBOSE_FLAG],async 'execute'(_0x4d2190){const _0x54b066=a35_0x2faa84,_0x38b3c1=await listPersonalKnowledgeBaseItems(_0x4d2190[_0x54b066(0xd7)]);if(_0x4d2190[_0x54b066(0xdf)](_0x54b066(0xb5)))return{'ok':!![],'data':{'total':_0x38b3c1['length'],'items':_0x38b3c1}};return{'ok':!![],'data':{'total':_0x38b3c1[_0x54b066(0xe4)],'items':_0x38b3c1['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x2faa84(0xe7),'description':a35_0x2faa84(0xcc),'risk':a35_0x2faa84(0xd9),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x4f8b99){const _0x564594=a35_0x2faa84,_0x5866a1=await getPersonalKnowledgeBaseItem(_0x4f8b99[_0x564594(0xd1)]('id'),_0x4f8b99[_0x564594(0xd7)]);return{'ok':!![],'data':detailPersonalItem(_0x5866a1)};}},kbCreate={'service':'kb','command':'create','description':a35_0x2faa84(0xbe),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4b17ae){const _0x1a2632=a35_0x2faa84,_0x27ebab=_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xae)),_0x3eea5b=readKnowledgeFile(_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xac))),_0x133e43=await createPersonalKnowledgeBaseItem(_0x4b17ae[_0x1a2632(0xd7)],{'title':_0x27ebab,'content':_0x3eea5b});return{'ok':!![],'data':summarizePersonalItem(_0x133e43),'message':_0x1a2632(0xbc)+_0x133e43['id']+'\x20('+_0x133e43[_0x1a2632(0xae)]+')'};},async 'dryRun'(_0x4abfe5){const _0x4c596d=a35_0x2faa84,_0x3dffc5=_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xae)),_0x3721d8=readKnowledgeFile(_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xac)));return dryRun(_0x4c596d(0xeb),_0x4c596d(0xc2))[_0x4c596d(0xc5)]({'appCode':_0x4abfe5[_0x4c596d(0xd7)],'title':_0x3dffc5,'content':_0x3721d8})[_0x4c596d(0xcd)](_0x4c596d(0xe9)+_0x3dffc5+'\x22')[_0x4c596d(0xdb)]();}},kbUpdate={'service':'kb','command':a35_0x2faa84(0xd2),'description':a35_0x2faa84(0xe5),'risk':a35_0x2faa84(0xe2),'confirmationDescription':a35_0x2faa84(0xee),'flags':[{...ID_FLAG,'description':a35_0x2faa84(0xc4)},{...TITLE_FLAG,'required':![],'description':a35_0x2faa84(0xcb)},FILE_FLAG],async 'execute'(_0x41f649){const _0x43b404=a35_0x2faa84,_0x37b8b2=_0x41f649['num']('id'),_0x46bd1f=readKnowledgeFile(_0x41f649[_0x43b404(0xbb)](_0x43b404(0xac))),_0x261613=_0x41f649[_0x43b404(0xbb)](_0x43b404(0xae))||(await getPersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)]))['title'],_0x588855=await updatePersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)],{'title':_0x261613,'content':_0x46bd1f});return{'ok':!![],'data':summarizePersonalItem(_0x588855),'message':_0x43b404(0xe3)+_0x588855['id']+'\x20('+_0x588855[_0x43b404(0xae)]+')'};},async 'dryRun'(_0x4b3e99){const _0xea1d11=a35_0x2faa84,_0xdc59d6=_0x4b3e99['num']('id'),_0x5260ba=readKnowledgeFile(_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xac))),_0xcd9c90=_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xae))||(await getPersonalKnowledgeBaseItem(_0xdc59d6,_0x4b3e99[_0xea1d11(0xd7)]))[_0xea1d11(0xae)];return dryRun(_0xea1d11(0xeb),_0xea1d11(0xb7)+_0xdc59d6+_0xea1d11(0xdd))[_0xea1d11(0xc5)]({'appCode':_0x4b3e99['appCode'],'title':_0xcd9c90,'content':_0x5260ba})[_0xea1d11(0xcd)](_0xea1d11(0xb3)+_0xdc59d6)[_0xea1d11(0xdb)]();}};function readSearchServiceUrl(_0x1c8ca1){const _0xe06e70=a35_0x2faa84;if(_0x1c8ca1['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1c8ca1[_0xe06e70(0xbb)](_0xe06e70(0xc7)));const _0x5a0720=getKbServiceDomain();if(!_0x5a0720)throw CliErrors[_0xe06e70(0xd5)]('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.',_0xe06e70(0xb6));return normalizeKbServiceOrigin(_0x5a0720);}const kbSearch={'service':'kb','command':a35_0x2faa84(0xc8),'description':a35_0x2faa84(0xed),'risk':a35_0x2faa84(0xd9),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x2faa84(0xc7),'type':a35_0x2faa84(0xd4),'required':![],'description':a35_0x2faa84(0xbd)}],async 'validate'(_0x1607b0){const _0xf46a1f=a35_0x2faa84;if(!_0x1607b0[_0xf46a1f(0xbb)](_0xf46a1f(0xca))[_0xf46a1f(0xda)]())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x1607b0),readSearchServiceUrl(_0x1607b0);},async 'execute'(_0x38c71d){const _0x273600=a35_0x2faa84,_0x55b5bd=_0x38c71d[_0x273600(0xbb)](_0x273600(0xca))[_0x273600(0xda)](),_0xc8a83a=readTopK(_0x38c71d),_0x179d5e=readSearchServiceUrl(_0x38c71d),_0x45a347={'appCode':_0x38c71d[_0x273600(0xd7)],'accessKey':_0x38c71d['accessKey']??'','query':_0x55b5bd,..._0xc8a83a!==undefined?{'topK':_0xc8a83a}:{},'signal':_0x38c71d[_0x273600(0xe0)]},_0x3bf317=await searchDirectKnowledge({..._0x45a347,'serviceUrl':_0x179d5e});return{'ok':!![],'data':_0x3bf317};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a35_0x535084=a35_0x3678;(function(_0x32b56b,_0x2949b9){const _0x6ccf63=a35_0x3678,_0x54ba64=_0x32b56b();while(!![]){try{const _0x9c4d6a=parseInt(_0x6ccf63(0xf1))/0x1+parseInt(_0x6ccf63(0xe5))/0x2+-parseInt(_0x6ccf63(0xff))/0x3+parseInt(_0x6ccf63(0xd3))/0x4*(-parseInt(_0x6ccf63(0xf8))/0x5)+parseInt(_0x6ccf63(0xcb))/0x6+parseInt(_0x6ccf63(0xf9))/0x7*(-parseInt(_0x6ccf63(0xd6))/0x8)+parseInt(_0x6ccf63(0xf0))/0x9;if(_0x9c4d6a===_0x2949b9)break;else _0x54ba64['push'](_0x54ba64['shift']());}catch(_0x4215bb){_0x54ba64['push'](_0x54ba64['shift']());}}}(a35_0x38c3,0xd1e74));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a35_0x3678(_0x394f91,_0x97e231){_0x394f91=_0x394f91-0xc5;const _0x38c3aa=a35_0x38c3();let _0x3678fd=_0x38c3aa[_0x394f91];return _0x3678fd;}import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-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':a35_0x535084(0xd8),'type':a35_0x535084(0x102),'required':!![],'description':a35_0x535084(0xe4)},FILE_FLAG={'name':a35_0x535084(0xe7),'type':'string','required':!![],'description':a35_0x535084(0x104)},QUERY_FLAG={'name':a35_0x535084(0xec),'type':a35_0x535084(0x102),'required':!![],'description':a35_0x535084(0xe1)},TOPK_FLAG={'name':a35_0x535084(0xeb),'type':'number','description':a35_0x535084(0xf4)};function readKnowledgeFile(_0x1759ad){const _0x5844c7=a35_0x535084;if(!_0x1759ad)throw CliErrors[_0x5844c7(0xc5)](_0x5844c7(0xe2));if(!existsSync(_0x1759ad))throw CliErrors[_0x5844c7(0xc5)](_0x5844c7(0xdc)+_0x1759ad);if(!statSync(_0x1759ad)['isFile']())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x1759ad);return readFileSync(_0x1759ad,'utf8');}function summarizePersonalItem(_0x20792c){const _0x52a5f9=a35_0x535084;return{'id':_0x20792c['id'],'title':_0x20792c['title'],'version':_0x20792c[_0x52a5f9(0xfc)],'ragStatus':_0x20792c[_0x52a5f9(0xdb)],'ragErrorMessage':_0x20792c[_0x52a5f9(0xd5)],'updateTime':_0x20792c[_0x52a5f9(0xfb)]};}function detailPersonalItem(_0x3e8153){const _0xc47aa4=a35_0x535084;return{'id':_0x3e8153['id'],'appCode':_0x3e8153[_0xc47aa4(0xfa)],'scope':_0x3e8153['scope'],'userId':_0x3e8153[_0xc47aa4(0xee)],'title':_0x3e8153['title'],'content':_0x3e8153[_0xc47aa4(0xd0)]??'','version':_0x3e8153[_0xc47aa4(0xfc)],'ragStatus':_0x3e8153['ragStatus'],'ragErrorMessage':_0x3e8153['ragErrorMessage'],'createTime':_0x3e8153['createTime'],'updateTime':_0x3e8153[_0xc47aa4(0xfb)]};}function readTopK(_0x5ca1c9){const _0x1ca65b=a35_0x535084,_0x303d6d=_0x5ca1c9['flag'](_0x1ca65b(0xeb));if(_0x303d6d===undefined||_0x303d6d===null||_0x303d6d==='')return undefined;const _0x108d7b=_0x5ca1c9[_0x1ca65b(0xcc)]('topk');if(!Number[_0x1ca65b(0xca)](_0x108d7b)||_0x108d7b<0x1||_0x108d7b>0x32)throw CliErrors[_0x1ca65b(0xc5)](_0x1ca65b(0xdd));return _0x108d7b;}const kbList={'service':'kb','command':'list','description':a35_0x535084(0xfd),'risk':a35_0x535084(0xcd),'flags':[VERBOSE_FLAG],async 'execute'(_0x4aff97){const _0x689673=a35_0x535084,_0x152d4b=await listPersonalKnowledgeBaseItems(_0x4aff97['appCode']);if(_0x4aff97[_0x689673(0xe6)](_0x689673(0xcf)))return{'ok':!![],'data':{'total':_0x152d4b[_0x689673(0xf2)],'items':_0x152d4b}};return{'ok':!![],'data':{'total':_0x152d4b[_0x689673(0xf2)],'items':_0x152d4b['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x535084(0xce),'description':a35_0x535084(0xf7),'risk':a35_0x535084(0xcd),'flags':[{...ID_FLAG,'description':a35_0x535084(0xe3)}],async 'execute'(_0x29540d){const _0x4dc79f=a35_0x535084,_0x488ebe=await getPersonalKnowledgeBaseItem(_0x29540d[_0x4dc79f(0xcc)]('id'),_0x29540d[_0x4dc79f(0xfa)]);return{'ok':!![],'data':detailPersonalItem(_0x488ebe)};}},kbCreate={'service':'kb','command':a35_0x535084(0xc7),'description':a35_0x535084(0x100),'risk':a35_0x535084(0xd9),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x342bc8){const _0x23e774=a35_0x535084,_0x40a12f=_0x342bc8[_0x23e774(0xef)](_0x23e774(0xd8)),_0x2d2bac=readKnowledgeFile(_0x342bc8['str']('file')),_0x14966d=await createPersonalKnowledgeBaseItem(_0x342bc8[_0x23e774(0xfa)],{'title':_0x40a12f,'content':_0x2d2bac});return{'ok':!![],'data':summarizePersonalItem(_0x14966d),'message':'Created\x20KB\x20entry\x20'+_0x14966d['id']+'\x20('+_0x14966d[_0x23e774(0xd8)]+')'};},async 'dryRun'(_0x5f5dea){const _0x3644c0=a35_0x535084,_0x3e2e2b=_0x5f5dea[_0x3644c0(0xef)](_0x3644c0(0xd8)),_0x5e6145=readKnowledgeFile(_0x5f5dea[_0x3644c0(0xef)](_0x3644c0(0xe7)));return dryRun(_0x3644c0(0xde),_0x3644c0(0xd4))[_0x3644c0(0xc6)]({'appCode':_0x5f5dea['appCode'],'title':_0x3e2e2b,'content':_0x5e6145})[_0x3644c0(0xe0)](_0x3644c0(0xfe)+_0x3e2e2b+'\x22')[_0x3644c0(0xe8)]();}},kbUpdate={'service':'kb','command':a35_0x535084(0xd2),'description':a35_0x535084(0xf5),'risk':a35_0x535084(0xd9),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a35_0x535084(0x101)},FILE_FLAG],async 'execute'(_0x1074ed){const _0x13307a=a35_0x535084,_0x150223=_0x1074ed[_0x13307a(0xcc)]('id'),_0x445340=readKnowledgeFile(_0x1074ed[_0x13307a(0xef)](_0x13307a(0xe7))),_0x30723b=_0x1074ed[_0x13307a(0xef)](_0x13307a(0xd8))||(await getPersonalKnowledgeBaseItem(_0x150223,_0x1074ed[_0x13307a(0xfa)]))[_0x13307a(0xd8)],_0x3b19b6=await updatePersonalKnowledgeBaseItem(_0x150223,_0x1074ed[_0x13307a(0xfa)],{'title':_0x30723b,'content':_0x445340});return{'ok':!![],'data':summarizePersonalItem(_0x3b19b6),'message':_0x13307a(0xf6)+_0x3b19b6['id']+'\x20('+_0x3b19b6['title']+')'};},async 'dryRun'(_0x1259b3){const _0x3672bd=a35_0x535084,_0x288a3f=_0x1259b3['num']('id'),_0x204a29=readKnowledgeFile(_0x1259b3[_0x3672bd(0xef)](_0x3672bd(0xe7))),_0x45b4d2=_0x1259b3[_0x3672bd(0xef)](_0x3672bd(0xd8))||(await getPersonalKnowledgeBaseItem(_0x288a3f,_0x1259b3['appCode']))[_0x3672bd(0xd8)];return dryRun(_0x3672bd(0xde),'/client/knowledge-base/personal/'+_0x288a3f+_0x3672bd(0xd1))[_0x3672bd(0xc6)]({'appCode':_0x1259b3[_0x3672bd(0xfa)],'title':_0x45b4d2,'content':_0x204a29})['description']('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x288a3f)[_0x3672bd(0xe8)]();}};function readSearchServiceUrl(_0xcca1ee){const _0x322339=a35_0x535084;if(_0xcca1ee[_0x322339(0xf3)](_0x322339(0x103))!==undefined)return normalizeKbServiceOrigin(_0xcca1ee[_0x322339(0xef)]('kb-service-url'));const _0x898932=getKbServiceDomain();if(!_0x898932)throw CliErrors[_0x322339(0xc5)](_0x322339(0xda),_0x322339(0xc9));return normalizeKbServiceOrigin(_0x898932);}function a35_0x38c3(){const _0x2975f0=['accessKey','topk','query','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','userId','str','9981648tPYbwu','149119llEIVl','length','flag','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Updated\x20KB\x20entry\x20','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','531210WgxbcU','18179TeXEve','appCode','updateTime','version','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','3493134NqIvLK','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Override\x20the\x20existing\x20entry\x20title','string','kb-service-url','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Search\x20query\x20is\x20required.','validation','body','create','trim','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','isSafeInteger','4767894dekMAu','num','read','detail','verbose','content','/update','update','8cJEqRF','/client/knowledge-base/personal/create','ragErrorMessage','56KRYERf','signal','title','write','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','ragStatus','File\x20not\x20found:\x20','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','POST','search','description','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','File\x20path\x20is\x20required.','Personal\x20knowledge-base\x20entry\x20ID','Personal\x20knowledge-base\x20entry\x20title','403930YDkTEz','bool','file','build','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only'];a35_0x38c3=function(){return _0x2975f0;};return a35_0x38c3();}const kbSearch={'service':'kb','command':a35_0x535084(0xdf),'description':a35_0x535084(0xed),'risk':a35_0x535084(0xcd),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x535084(0x103),'type':a35_0x535084(0x102),'required':![],'description':a35_0x535084(0xe9)}],async 'validate'(_0x390012){const _0x3eeaf0=a35_0x535084;if(!_0x390012[_0x3eeaf0(0xef)](_0x3eeaf0(0xec))[_0x3eeaf0(0xc8)]())throw CliErrors[_0x3eeaf0(0xc5)](_0x3eeaf0(0x105));readTopK(_0x390012),readSearchServiceUrl(_0x390012);},async 'execute'(_0x5ac927){const _0x47f53e=a35_0x535084,_0xd8352a=_0x5ac927['str'](_0x47f53e(0xec))['trim'](),_0x210848=readTopK(_0x5ac927),_0xa2cab5=readSearchServiceUrl(_0x5ac927),_0x13065b={'appCode':_0x5ac927['appCode'],'accessKey':_0x5ac927[_0x47f53e(0xea)]??'','query':_0xd8352a,..._0x210848!==undefined?{'topK':_0x210848}:{},'signal':_0x5ac927[_0x47f53e(0xd7)]},_0x4c22ca=await searchDirectKnowledge({..._0x13065b,'serviceUrl':_0xa2cab5});return{'ok':!![],'data':_0x4c22ca};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a36_0x180ad6=a36_0x22ee;(function(_0x12c9ff,_0x32716d){const _0x579f0e=a36_0x22ee,_0x296269=_0x12c9ff();while(!![]){try{const _0x38c833=parseInt(_0x579f0e(0x1cc))/0x1*(-parseInt(_0x579f0e(0x1e5))/0x2)+parseInt(_0x579f0e(0x1d5))/0x3+parseInt(_0x579f0e(0x1cd))/0x4+parseInt(_0x579f0e(0x1ea))/0x5+parseInt(_0x579f0e(0x1d6))/0x6*(parseInt(_0x579f0e(0x1e8))/0x7)+-parseInt(_0x579f0e(0x1d8))/0x8+parseInt(_0x579f0e(0x1cb))/0x9*(-parseInt(_0x579f0e(0x1d0))/0xa);if(_0x38c833===_0x32716d)break;else _0x296269['push'](_0x296269['shift']());}catch(_0x218db0){_0x296269['push'](_0x296269['shift']());}}}(a36_0x3d0d,0x826ce));import{logger}from'../../utils/logger.js';function a36_0x22ee(_0x24d94e,_0xfe3c3f){_0x24d94e=_0x24d94e-0x1ca;const _0x3d0d3c=a36_0x3d0d();let _0x22eed6=_0x3d0d3c[_0x24d94e];return _0x22eed6;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x3d0d(){const _0x43e4a8=['254032WQQmxN','1722944CwVrIh','keys','toLocaleString','20ShrTmx','success','*\x20No\x20logs\x20found','\x20\x20\x20Time:\x20','\x20logs:\x0a','721944rqBOsL','817062GGapJR','level','2458080VGTaIK','readLogs','duration','message','stringify','log','details','show','warn','\x20\x20\x20Duration:\x20','length','en-US','View\x20command\x20history\x20logs','4kLroyR','timestamp','forEach','49oElckW','logs','4261335QMSASf','\x20\x20\x20Details:\x20','5073048INyXWT'];a36_0x3d0d=function(){return _0x43e4a8;};return a36_0x3d0d();}function printLogs(_0x2a70ce){const _0x1a6272=a36_0x22ee;if(_0x2a70ce[_0x1a6272(0x1e2)]===0x0){console['log'](_0x1a6272(0x1d2));return;}console[_0x1a6272(0x1dd)]('*\x20'+CLI_DISPLAY_NAME+_0x1a6272(0x1d4)),_0x2a70ce[_0x1a6272(0x1e7)]((_0x4d5e4a,_0x302c5c)=>{const _0x3d90d1=_0x1a6272,_0x29ee05=new Date(_0x4d5e4a[_0x3d90d1(0x1e6)])[_0x3d90d1(0x1cf)](_0x3d90d1(0x1e3)),_0x179a29=_0x4d5e4a['level']===_0x3d90d1(0x1d1)?'√':_0x4d5e4a[_0x3d90d1(0x1d7)]==='error'?'×':_0x4d5e4a[_0x3d90d1(0x1d7)]===_0x3d90d1(0x1e0)?'!':'i';console['log'](_0x302c5c+0x1+'.\x20'+_0x179a29+'\x20['+_0x4d5e4a['command']+']\x20'+_0x4d5e4a[_0x3d90d1(0x1db)]),console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1d3)+_0x29ee05),_0x4d5e4a[_0x3d90d1(0x1da)]&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1e1)+_0x4d5e4a[_0x3d90d1(0x1da)]+'ms'),_0x4d5e4a[_0x3d90d1(0x1de)]&&Object[_0x3d90d1(0x1ce)](_0x4d5e4a['details'])[_0x3d90d1(0x1e2)]>0x0&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1ca)+JSON[_0x3d90d1(0x1dc)](_0x4d5e4a[_0x3d90d1(0x1de)],null,0x2)),console[_0x3d90d1(0x1dd)]('');});}export const logsDefinitions=[{'service':a36_0x180ad6(0x1e9),'command':a36_0x180ad6(0x1df),'description':a36_0x180ad6(0x1e4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24220d){const _0x1eaa8c=a36_0x180ad6;return printLogs(logger[_0x1eaa8c(0x1d9)]()),{'ok':!![]};}}];
1
+ function a36_0x37bb(_0x45c08a,_0x2c3901){_0x45c08a=_0x45c08a-0x13c;const _0x47f9b9=a36_0x47f9();let _0x37bb11=_0x47f9b9[_0x45c08a];return _0x37bb11;}const a36_0x5c88e2=a36_0x37bb;(function(_0x53cd2e,_0x119c17){const _0x29962c=a36_0x37bb,_0x53f44b=_0x53cd2e();while(!![]){try{const _0x369bc6=-parseInt(_0x29962c(0x14b))/0x1+parseInt(_0x29962c(0x158))/0x2*(parseInt(_0x29962c(0x140))/0x3)+parseInt(_0x29962c(0x14d))/0x4+-parseInt(_0x29962c(0x145))/0x5+parseInt(_0x29962c(0x14e))/0x6*(parseInt(_0x29962c(0x155))/0x7)+-parseInt(_0x29962c(0x15a))/0x8*(parseInt(_0x29962c(0x151))/0x9)+-parseInt(_0x29962c(0x156))/0xa*(-parseInt(_0x29962c(0x153))/0xb);if(_0x369bc6===_0x119c17)break;else _0x53f44b['push'](_0x53f44b['shift']());}catch(_0x53ac74){_0x53f44b['push'](_0x53f44b['shift']());}}}(a36_0x47f9,0x4630e));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x47f9(){const _0x73d9f8=['121QpeIjG','readLogs','4151iCrOXH','386930YCrmiL','success','858842xbVzCz','keys','3950216ADngAH','level','stringify','details','forEach','3xtSxVF','toLocaleString','\x20logs:\x0a','message','log','1471130qIlKHX','length','*\x20No\x20logs\x20found','duration','\x20\x20\x20Time:\x20','logs','374393RbtISV','timestamp','382192RGDfuc','5052NFvvTw','read','View\x20command\x20history\x20logs','9TNtGhs','\x20\x20\x20Details:\x20'];a36_0x47f9=function(){return _0x73d9f8;};return a36_0x47f9();}function printLogs(_0x1d3d18){const _0x1e7bb1=a36_0x37bb;if(_0x1d3d18[_0x1e7bb1(0x146)]===0x0){console[_0x1e7bb1(0x144)](_0x1e7bb1(0x147));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x1e7bb1(0x142)),_0x1d3d18[_0x1e7bb1(0x13f)]((_0x4a39bb,_0x281475)=>{const _0x327864=_0x1e7bb1,_0x461bb6=new Date(_0x4a39bb[_0x327864(0x14c)])[_0x327864(0x141)]('en-US'),_0x2eba3e=_0x4a39bb[_0x327864(0x13c)]===_0x327864(0x157)?'√':_0x4a39bb[_0x327864(0x13c)]==='error'?'×':_0x4a39bb[_0x327864(0x13c)]==='warn'?'!':'i';console[_0x327864(0x144)](_0x281475+0x1+'.\x20'+_0x2eba3e+'\x20['+_0x4a39bb['command']+']\x20'+_0x4a39bb[_0x327864(0x143)]),console[_0x327864(0x144)](_0x327864(0x149)+_0x461bb6),_0x4a39bb[_0x327864(0x148)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x4a39bb[_0x327864(0x148)]+'ms'),_0x4a39bb[_0x327864(0x13e)]&&Object[_0x327864(0x159)](_0x4a39bb['details'])[_0x327864(0x146)]>0x0&&console[_0x327864(0x144)](_0x327864(0x152)+JSON[_0x327864(0x13d)](_0x4a39bb[_0x327864(0x13e)],null,0x2)),console[_0x327864(0x144)]('');});}export const logsDefinitions=[{'service':a36_0x5c88e2(0x14a),'command':'show','description':a36_0x5c88e2(0x150),'risk':a36_0x5c88e2(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3dae67){const _0x52a9ae=a36_0x5c88e2;return printLogs(logger[_0x52a9ae(0x154)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0x187794=a37_0x31a3;(function(_0x25a59b,_0x67a943){const _0x3edc67=a37_0x31a3,_0x449412=_0x25a59b();while(!![]){try{const _0x71ff6a=-parseInt(_0x3edc67(0x19e))/0x1+-parseInt(_0x3edc67(0x1a6))/0x2*(parseInt(_0x3edc67(0x1a1))/0x3)+parseInt(_0x3edc67(0x19f))/0x4+parseInt(_0x3edc67(0x19d))/0x5+parseInt(_0x3edc67(0x198))/0x6*(parseInt(_0x3edc67(0x1ad))/0x7)+-parseInt(_0x3edc67(0x197))/0x8*(parseInt(_0x3edc67(0x1aa))/0x9)+parseInt(_0x3edc67(0x1a2))/0xa*(parseInt(_0x3edc67(0x1a3))/0xb);if(_0x71ff6a===_0x67a943)break;else _0x449412['push'](_0x449412['shift']());}catch(_0x4809af){_0x449412['push'](_0x449412['shift']());}}}(a37_0x13f6,0xa29fa));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x187794(0x19a),'command':a37_0x187794(0x199),'description':a37_0x187794(0x1a5),'risk':a37_0x187794(0x1a9),'flags':[{'name':a37_0x187794(0x19b),'type':a37_0x187794(0x1ab),'description':a37_0x187794(0x19c),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x187794(0x1ae)}],async 'validate'(_0x9e0a1c){readNotificationChannelType(_0x9e0a1c);},async 'execute'(_0x20dbe1){const _0x57a5db=a37_0x187794,_0x17153c=readNotificationChannelType(_0x20dbe1),_0x46130b=await listNotificationChannelConfigs(_0x20dbe1[_0x57a5db(0x1a4)],_0x17153c),_0x625ad5=_0x46130b[_0x57a5db(0x1a8)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x20dbe1[_0x57a5db(0x1a4)],'channelType':_0x17153c,'count':_0x625ad5[_0x57a5db(0x1a0)],'configs':_0x625ad5},'message':_0x57a5db(0x1ac)+_0x625ad5[_0x57a5db(0x1a0)]+'\x20'+_0x17153c+_0x57a5db(0x1a7)};}};function a37_0x31a3(_0x59b605,_0x9a068){_0x59b605=_0x59b605-0x197;const _0x13f67f=a37_0x13f6();let _0x31a3dd=_0x13f67f[_0x59b605];return _0x31a3dd;}function a37_0x13f6(){const _0xc2ba38=['appCode','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1631484JxaaXr','\x20notification\x20config(s)','map','read','9aXMdYL','string','Found\x20','7ZXOgMt','EMAIL','2578792dsLlPX','4478022YvPGYe','config-list','notification','type','Notification\x20channel\x20type','1456070NVmXrv','1069209zOFOQt','3956000cRcvAa','length','3KRRxHC','90FbnaBf','1035045URKaDo'];a37_0x13f6=function(){return _0xc2ba38;};return a37_0x13f6();}
1
+ const a37_0x433aa4=a37_0x2399;(function(_0x50eced,_0xaa40e5){const _0x5b6f73=a37_0x2399,_0x5823ba=_0x50eced();while(!![]){try{const _0x140162=-parseInt(_0x5b6f73(0x1a9))/0x1*(parseInt(_0x5b6f73(0x198))/0x2)+-parseInt(_0x5b6f73(0x19b))/0x3+-parseInt(_0x5b6f73(0x1a4))/0x4*(-parseInt(_0x5b6f73(0x195))/0x5)+-parseInt(_0x5b6f73(0x1a1))/0x6*(-parseInt(_0x5b6f73(0x197))/0x7)+parseInt(_0x5b6f73(0x1a7))/0x8*(-parseInt(_0x5b6f73(0x193))/0x9)+-parseInt(_0x5b6f73(0x194))/0xa*(-parseInt(_0x5b6f73(0x1a8))/0xb)+parseInt(_0x5b6f73(0x19e))/0xc;if(_0x140162===_0xaa40e5)break;else _0x5823ba['push'](_0x5823ba['shift']());}catch(_0x6745d6){_0x5823ba['push'](_0x5823ba['shift']());}}}(a37_0x25a1,0x7bab6));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2399(_0x3ee3c5,_0x155152){_0x3ee3c5=_0x3ee3c5-0x193;const _0x25a141=a37_0x25a1();let _0x239967=_0x25a141[_0x3ee3c5];return _0x239967;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a37_0x25a1(){const _0x4d4ab3=['13402068joSMUH','read','EMAIL','198JhoStJ','map','string','11136UtiBEl','Notification\x20channel\x20type','Found\x20','152zlCwpZ','11qzcToF','76366JYGUSJ','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','400347jaSrag','3791120wfnDQb','420fkjNuq','config-list','67690MNdXgn','8SlgCRR','length','appCode','1175178EMRzSX','type','\x20notification\x20config(s)'];a37_0x25a1=function(){return _0x4d4ab3;};return a37_0x25a1();}export const notificationConfigList={'service':'notification','command':a37_0x433aa4(0x196),'description':a37_0x433aa4(0x1aa),'risk':a37_0x433aa4(0x19f),'flags':[{'name':a37_0x433aa4(0x19c),'type':a37_0x433aa4(0x1a3),'description':a37_0x433aa4(0x1a5),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x433aa4(0x1a0)}],async 'validate'(_0x5ba7fe){readNotificationChannelType(_0x5ba7fe);},async 'execute'(_0x18d859){const _0x14a5a1=a37_0x433aa4,_0x3c9f41=readNotificationChannelType(_0x18d859),_0x31e957=await listNotificationChannelConfigs(_0x18d859[_0x14a5a1(0x19a)],_0x3c9f41),_0x18eaa4=_0x31e957[_0x14a5a1(0x1a2)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x18d859[_0x14a5a1(0x19a)],'channelType':_0x3c9f41,'count':_0x18eaa4[_0x14a5a1(0x199)],'configs':_0x18eaa4},'message':_0x14a5a1(0x1a6)+_0x18eaa4[_0x14a5a1(0x199)]+'\x20'+_0x3c9f41+_0x14a5a1(0x19d)};}};
@@ -1 +1 @@
1
- (function(_0x3e2010,_0x5a6967){const _0x5967f7=a38_0x28bf,_0x4b9e0f=_0x3e2010();while(!![]){try{const _0x3f6ff9=parseInt(_0x5967f7(0xbc))/0x1+parseInt(_0x5967f7(0xb4))/0x2*(-parseInt(_0x5967f7(0xb7))/0x3)+-parseInt(_0x5967f7(0xb8))/0x4+-parseInt(_0x5967f7(0xb5))/0x5+parseInt(_0x5967f7(0xbb))/0x6+parseInt(_0x5967f7(0xb9))/0x7*(-parseInt(_0x5967f7(0xb6))/0x8)+-parseInt(_0x5967f7(0xba))/0x9;if(_0x3f6ff9===_0x5a6967)break;else _0x4b9e0f['push'](_0x4b9e0f['shift']());}catch(_0x44574e){_0x4b9e0f['push'](_0x4b9e0f['shift']());}}}(a38_0x1bb4,0x8ec3c));function a38_0x28bf(_0x19515f,_0x5ae2c0){_0x19515f=_0x19515f-0xb4;const _0x1bb49a=a38_0x1bb4();let _0x28bf79=_0x1bb49a[_0x19515f];return _0x28bf79;}import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x1bb4(){const _0x3f783b=['3175110VTtEpk','2287698mFFZew','1134825vujIxB','82BsAwwF','761390ikWMoT','9280FfJTnT','17151EYIvkO','702556TQHkQQ','98grySxB'];a38_0x1bb4=function(){return _0x3f783b;};return a38_0x1bb4();}export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x5ce044,_0x869e51){const _0x58d190=a38_0xce54,_0x5c66be=_0x5ce044();while(!![]){try{const _0x2fa71d=parseInt(_0x58d190(0x1dc))/0x1*(parseInt(_0x58d190(0x1d6))/0x2)+parseInt(_0x58d190(0x1d7))/0x3+-parseInt(_0x58d190(0x1db))/0x4+parseInt(_0x58d190(0x1dd))/0x5*(parseInt(_0x58d190(0x1d8))/0x6)+parseInt(_0x58d190(0x1d5))/0x7+-parseInt(_0x58d190(0x1da))/0x8+-parseInt(_0x58d190(0x1d9))/0x9*(parseInt(_0x58d190(0x1d4))/0xa);if(_0x2fa71d===_0x869e51)break;else _0x5c66be['push'](_0x5c66be['shift']());}catch(_0x22eca0){_0x5c66be['push'](_0x5c66be['shift']());}}}(a38_0x5ea7,0xcce03));function a38_0xce54(_0x2872ca,_0x25e8d8){_0x2872ca=_0x2872ca-0x1d4;const _0x5ea793=a38_0x5ea7();let _0xce5412=_0x5ea793[_0x2872ca];return _0xce5412;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];function a38_0x5ea7(){const _0x3bfa44=['4259848xvdVJG','1663392nngAnM','1QCXDQf','43985sPQBGD','2723530PRMRSJ','5928279gRNUut','2051150iLxpiU','2350359IzYlXX','708lOKmLZ','63NLTtfn'];a38_0x5ea7=function(){return _0x3bfa44;};return a38_0x5ea7();}
@@ -1 +1 @@
1
- const a39_0x2b288b=a39_0x3e79;(function(_0x3d993c,_0xb04d07){const _0x2cb6a8=a39_0x3e79,_0x3e95b2=_0x3d993c();while(!![]){try{const _0x3d55cc=-parseInt(_0x2cb6a8(0x11f))/0x1*(parseInt(_0x2cb6a8(0x122))/0x2)+parseInt(_0x2cb6a8(0x120))/0x3+-parseInt(_0x2cb6a8(0x131))/0x4*(parseInt(_0x2cb6a8(0x134))/0x5)+parseInt(_0x2cb6a8(0x11c))/0x6*(parseInt(_0x2cb6a8(0x12d))/0x7)+parseInt(_0x2cb6a8(0x138))/0x8+-parseInt(_0x2cb6a8(0x12e))/0x9*(-parseInt(_0x2cb6a8(0x132))/0xa)+-parseInt(_0x2cb6a8(0x121))/0xb;if(_0x3d55cc===_0xb04d07)break;else _0x3e95b2['push'](_0x3e95b2['shift']());}catch(_0x39de0c){_0x3e95b2['push'](_0x3e95b2['shift']());}}}(a39_0x3342,0xb8ed2));function a39_0x3342(){const _0x39b684=['\x20is\x20missing\x20required\x20field\x20\x22','configName','includes','FEISHU','description','DINGTALK','join','trim','32767kBiFwR','34929reJymG','configCode','Invalid\x20notification\x20config\x20response.','376364dxereu','2330pLNdSQ','channelType','35niFmcq','type','isArray','Invalid\x20--type:\x20','12088672cUPnMp','EMAIL','180NJHstJ','WECOM','string','5SFsdov','323466grEneX','13441769FqgcKZ','10214jqQQXx','WEBHOOK','apiError'];a39_0x3342=function(){return _0x39b684;};return a39_0x3342();}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x2b288b(0x11b),a39_0x2b288b(0x128),a39_0x2b288b(0x12a),a39_0x2b288b(0x11d),a39_0x2b288b(0x123)];function a39_0x3e79(_0x5725d7,_0x5e26b9){_0x5725d7=_0x5725d7-0x11b;const _0x334298=a39_0x3342();let _0x3e7965=_0x334298[_0x5725d7];return _0x3e7965;}export function readNotificationChannelType(_0x2cd941){const _0x37e493=a39_0x2b288b,_0x3a4e99=_0x2cd941['str'](_0x37e493(0x135))['trim']()||_0x37e493(0x11b);if(!NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x127)](_0x3a4e99))throw CliErrors['validation'](_0x37e493(0x137)+_0x3a4e99,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x12b)](',\x20')+'.');return _0x3a4e99;}export function projectNotificationListConfig(_0x5e18aa,_0x53000a){const _0x421bd9=a39_0x2b288b,_0x2a05ca=requireResponseObject(_0x5e18aa,_0x53000a);return{'configCode':requireResponseString(_0x2a05ca[_0x421bd9(0x12f)],_0x421bd9(0x12f),_0x53000a),'configName':requireResponseString(_0x2a05ca['configName'],_0x421bd9(0x126),_0x53000a),'channelType':requireResponseString(_0x2a05ca[_0x421bd9(0x133)],_0x421bd9(0x133),_0x53000a),'description':normalizeNullableString(_0x2a05ca[_0x421bd9(0x129)])};}function requireResponseObject(_0x169806,_0x31d11d){const _0x520fdd=a39_0x2b288b;if(typeof _0x169806!=='object'||_0x169806===null||Array[_0x520fdd(0x136)](_0x169806))throw CliErrors[_0x520fdd(0x124)](_0x520fdd(0x130),'Item\x20'+(_0x31d11d+0x1)+'\x20must\x20be\x20an\x20object.');return _0x169806;}function requireResponseString(_0x1e4663,_0x391c23,_0x5d5e96){const _0x42f9ad=a39_0x2b288b;if(typeof _0x1e4663!=='string'||!_0x1e4663['trim']())throw CliErrors[_0x42f9ad(0x124)](_0x42f9ad(0x130),'Item\x20'+(_0x5d5e96+0x1)+_0x42f9ad(0x125)+_0x391c23+'\x22.');return _0x1e4663[_0x42f9ad(0x12c)]();}function normalizeNullableString(_0x36e790){const _0x292b9c=a39_0x2b288b;return typeof _0x36e790===_0x292b9c(0x11e)&&_0x36e790['trim']()?_0x36e790['trim']():null;}
1
+ const a39_0x47b99b=a39_0x5d18;function a39_0x2978(){const _0x11b260=['15806JkMVTX','1801288zXcoIe','join','str','2316rvZYip','\x20is\x20missing\x20required\x20field\x20\x22','validation','2285280DQCVco','type','object','1920998NjxOSQ','isArray','Invalid\x20--type:\x20','WECOM','Item\x20','EMAIL','trim','apiError','description','14846048kHDkvv','FEISHU','DINGTALK','configCode','Allowed\x20values:\x20','WEBHOOK','Invalid\x20notification\x20config\x20response.','2802039leHDmk','216963InWYJo','configName','string'];a39_0x2978=function(){return _0x11b260;};return a39_0x2978();}(function(_0x867004,_0x44b8e1){const _0x1fc4b5=a39_0x5d18,_0x1f8354=_0x867004();while(!![]){try{const _0x5b7c4f=-parseInt(_0x1fc4b5(0x19a))/0x1+-parseInt(_0x1fc4b5(0x1a7))/0x2+-parseInt(_0x1fc4b5(0x199))/0x3+-parseInt(_0x1fc4b5(0x19e))/0x4+parseInt(_0x1fc4b5(0x1a4))/0x5+-parseInt(_0x1fc4b5(0x1a1))/0x6*(-parseInt(_0x1fc4b5(0x19d))/0x7)+parseInt(_0x1fc4b5(0x192))/0x8;if(_0x5b7c4f===_0x44b8e1)break;else _0x1f8354['push'](_0x1f8354['shift']());}catch(_0x2ddee7){_0x1f8354['push'](_0x1f8354['shift']());}}}(a39_0x2978,0x9800b));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x47b99b(0x18e),a39_0x47b99b(0x193),a39_0x47b99b(0x194),a39_0x47b99b(0x1aa),a39_0x47b99b(0x197)];export function readNotificationChannelType(_0xc0a6de){const _0x558508=a39_0x47b99b,_0x2d5310=_0xc0a6de[_0x558508(0x1a0)](_0x558508(0x1a5))[_0x558508(0x18f)]()||_0x558508(0x18e);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x2d5310))throw CliErrors[_0x558508(0x1a3)](_0x558508(0x1a9)+_0x2d5310,_0x558508(0x196)+NOTIFICATION_CHANNEL_TYPES[_0x558508(0x19f)](',\x20')+'.');return _0x2d5310;}export function projectNotificationListConfig(_0x542df0,_0x55f1d4){const _0x4ad6e5=a39_0x47b99b,_0x27ce66=requireResponseObject(_0x542df0,_0x55f1d4);return{'configCode':requireResponseString(_0x27ce66[_0x4ad6e5(0x195)],'configCode',_0x55f1d4),'configName':requireResponseString(_0x27ce66[_0x4ad6e5(0x19b)],_0x4ad6e5(0x19b),_0x55f1d4),'channelType':requireResponseString(_0x27ce66['channelType'],'channelType',_0x55f1d4),'description':normalizeNullableString(_0x27ce66[_0x4ad6e5(0x191)])};}function requireResponseObject(_0x5b621f,_0x5248e1){const _0x189ec0=a39_0x47b99b;if(typeof _0x5b621f!==_0x189ec0(0x1a6)||_0x5b621f===null||Array[_0x189ec0(0x1a8)](_0x5b621f))throw CliErrors['apiError'](_0x189ec0(0x198),'Item\x20'+(_0x5248e1+0x1)+'\x20must\x20be\x20an\x20object.');return _0x5b621f;}function requireResponseString(_0x5ea2e5,_0x166b03,_0x29eaa8){const _0x4698c5=a39_0x47b99b;if(typeof _0x5ea2e5!=='string'||!_0x5ea2e5[_0x4698c5(0x18f)]())throw CliErrors[_0x4698c5(0x190)](_0x4698c5(0x198),_0x4698c5(0x18d)+(_0x29eaa8+0x1)+_0x4698c5(0x1a2)+_0x166b03+'\x22.');return _0x5ea2e5[_0x4698c5(0x18f)]();}function a39_0x5d18(_0x43d3a3,_0x31796c){_0x43d3a3=_0x43d3a3-0x18d;const _0x2978ca=a39_0x2978();let _0x5d189b=_0x2978ca[_0x43d3a3];return _0x5d189b;}function normalizeNullableString(_0x37f739){const _0x2d3a08=a39_0x47b99b;return typeof _0x37f739===_0x2d3a08(0x19c)&&_0x37f739['trim']()?_0x37f739[_0x2d3a08(0x18f)]():null;}