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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.d.ts +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/import-excel.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.d.ts +32 -6
  59. package/lib/commands/role/shared.js +1 -1
  60. package/lib/commands/role/update.js +1 -1
  61. package/lib/commands/role/user-add.js +1 -1
  62. package/lib/commands/role/user-remove.js +1 -1
  63. package/lib/commands/schedule/index.js +1 -1
  64. package/lib/commands/schema.js +1 -1
  65. package/lib/commands/service/dynamic.js +1 -1
  66. package/lib/commands/service/function-name-adapter.js +1 -1
  67. package/lib/commands/service/index.js +1 -1
  68. package/lib/commands/service/registry.js +1 -1
  69. package/lib/commands/skill/commands/create.js +1 -1
  70. package/lib/commands/skill/commands/diagram.js +1 -1
  71. package/lib/commands/skill/commands/install.js +1 -1
  72. package/lib/commands/skill/commands/list.js +1 -1
  73. package/lib/commands/skill/commands/push.js +1 -1
  74. package/lib/commands/skill/commands/validate.js +1 -1
  75. package/lib/commands/skill/diagram.js +1 -1
  76. package/lib/commands/skill/flags.js +1 -1
  77. package/lib/commands/skill/index.js +1 -1
  78. package/lib/commands/skill/manifest-helpers.js +1 -1
  79. package/lib/commands/skill/push-execute.js +1 -1
  80. package/lib/commands/skill/push-flow-helpers.js +1 -1
  81. package/lib/commands/skill/push-retarget.js +1 -1
  82. package/lib/commands/skill/scopes.js +1 -1
  83. package/lib/commands/skill/summary.js +1 -1
  84. package/lib/commands/skill/templates.js +1 -1
  85. package/lib/commands/skill/validate.js +1 -1
  86. package/lib/commands/sql/detail.js +1 -1
  87. package/lib/commands/sql/exec.d.ts +2 -4
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.d.ts +26 -358
  110. package/lib/core/api-client.js +1 -1
  111. package/lib/core/db-resolver.js +1 -1
  112. package/lib/core/kb-management-client.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.d.ts +9 -10
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/access-error.js +1 -1
  118. package/lib/framework/build-all-flags.js +1 -1
  119. package/lib/framework/dryrun.js +1 -1
  120. package/lib/framework/flags.js +1 -1
  121. package/lib/framework/help.js +1 -1
  122. package/lib/framework/index.js +1 -1
  123. package/lib/framework/output.js +1 -1
  124. package/lib/framework/preparse.js +1 -1
  125. package/lib/framework/rate-limit.js +1 -1
  126. package/lib/framework/raw-flags.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-confirmation.js +1 -1
  129. package/lib/framework/runner-error.js +1 -1
  130. package/lib/framework/runner.js +1 -1
  131. package/lib/framework/schema-export.js +1 -1
  132. package/lib/framework/service-order.js +1 -1
  133. package/lib/framework/types.js +1 -1
  134. package/lib/generated/build-info.d.ts +4 -4
  135. package/lib/generated/build-info.js +1 -1
  136. package/lib/generated/official-routing.js +1 -1
  137. package/lib/generated/routing-contract.js +1 -1
  138. package/lib/help.js +1 -1
  139. package/lib/postinstall.js +1 -1
  140. package/lib/runtime/confirmation.js +1 -1
  141. package/lib/runtime/event.js +1 -1
  142. package/lib/runtime/index.js +1 -1
  143. package/lib/runtime/queue.js +1 -1
  144. package/lib/runtime/resolve.js +1 -1
  145. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  146. package/lib/services/dataset-import/excel-reader.js +1 -1
  147. package/lib/services/dataset-import/image-bytes.js +1 -1
  148. package/lib/services/dataset-import/image-ooxml.js +1 -1
  149. package/lib/services/dataset-import/image-runner.js +1 -1
  150. package/lib/services/dataset-import/metadata.js +1 -1
  151. package/lib/services/dataset-import/preview.js +1 -1
  152. package/lib/services/dataset-import/runner.js +1 -1
  153. package/lib/skills/builtin-skill.js +1 -1
  154. package/lib/skills/npx-skills-add.js +1 -1
  155. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  156. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  157. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  158. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  159. package/lib/skills/runtime-skill-sync/links.js +1 -1
  160. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  161. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  162. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  163. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  164. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  165. package/lib/skills/runtime-skill-sync/push.js +1 -1
  166. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  168. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  169. package/lib/skills/runtime-skill-sync.js +1 -1
  170. package/lib/skills/skill-presence.js +1 -1
  171. package/lib/utils/access-key-redaction.js +1 -1
  172. package/lib/utils/apply-jq-filter.js +1 -1
  173. package/lib/utils/cli-version-check.js +1 -1
  174. package/lib/utils/cli-version-policy.js +1 -1
  175. package/lib/utils/logger.js +1 -1
  176. package/lib/utils/lossless-json.js +1 -1
  177. package/lib/utils/params.js +1 -1
  178. package/lib/utils/positive-safe-integer.js +1 -1
  179. package/lib/utils/redaction.js +1 -1
  180. package/lib/utils/runtime-user-id.d.ts +2 -0
  181. package/lib/utils/runtime-user-id.js +1 -0
  182. package/lib/utils/update-notice.js +1 -1
  183. package/lib/utils/version.js +1 -1
  184. package/lib/utils/write-cli-side-channel.js +1 -1
  185. package/package.json +2 -2
  186. package/skills/lovrabet/SKILL.md +1 -1
  187. package/skills/lovrabet/guides/role-and-permission-workflow.md +3 -2
  188. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a27_0x5401d4=a27_0x5ecc;(function(_0x382017,_0x35f5c9){const _0x4fe5ec=a27_0x5ecc,_0x1a3b22=_0x382017();while(!![]){try{const _0x535ec0=parseInt(_0x4fe5ec(0x198))/0x1*(-parseInt(_0x4fe5ec(0x196))/0x2)+-parseInt(_0x4fe5ec(0x1ac))/0x3+-parseInt(_0x4fe5ec(0x1b4))/0x4+parseInt(_0x4fe5ec(0x1c1))/0x5+parseInt(_0x4fe5ec(0x193))/0x6*(-parseInt(_0x4fe5ec(0x18c))/0x7)+parseInt(_0x4fe5ec(0x1da))/0x8*(-parseInt(_0x4fe5ec(0x1d9))/0x9)+parseInt(_0x4fe5ec(0x1df))/0xa;if(_0x535ec0===_0x35f5c9)break;else _0x1a3b22['push'](_0x1a3b22['shift']());}catch(_0x1fda68){_0x1a3b22['push'](_0x1a3b22['shift']());}}}(a27_0x52bb,0xece21));import{dataImportExcel}from'./import-excel.js';function a27_0x5ecc(_0x23ed70,_0x2881d7){_0x23ed70=_0x23ed70-0x173;const _0x52bbfd=a27_0x52bb();let _0x5ecc87=_0x52bbfd[_0x23ed70];return _0x5ecc87;}import{executeData}from'../../core/sdk-client.js';function a27_0x52bb(){const _0x33b3d0=['\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$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\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}','operation','99SpOvKh','1272808gBbRjq','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','batch','data','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','59413980iKuwAU','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','join','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','code','\x20\x20\x20\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\x20WHERE\x20OPERATORS','\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\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20on\x20dataset\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\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20EXAMPLES','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\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$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}}','str','\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\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','write','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','91ccKuXY','dryRun','filter','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\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','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','316362obARYB','\x20\x20PARAMS\x20STRUCTURE','getOne','384174MTSqZy','\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','5wMjXTr','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','delete','params','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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}','body','description','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','risk','\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}}]}','create','helpExtra','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','high-risk-write','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20PAGINATION','1804818pWKbIb','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data\x20','update','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','6933740VREmaW','confirmationDescription','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20DATASET\x20BOUNDARY','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20AGGREGATE\x20TYPES','Preview:\x20data\x20','length','now','\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}}','POST','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','3799565FASfkH','aggregate','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','map','Filter\x20dataset\x20records\x20with\x20query\x20conditions','/api/{appCode}/','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','paramsRequired','\x20completed\x20in\x20','read','batchCreate','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','command'];a27_0x52bb=function(){return _0x33b3d0;};return a27_0x52bb();}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_0x5401d4(0x18e),'operation':a27_0x5401d4(0x18e),'risk':a27_0x5401d4(0x1cb),'paramsRequired':![],'description':a27_0x5401d4(0x1c6),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a27_0x5401d4(0x17a),a27_0x5401d4(0x188),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a27_0x5401d4(0x1d6),a27_0x5401d4(0x1be),a27_0x5401d4(0x1d2),a27_0x5401d4(0x1cf),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a27_0x5401d4(0x1d5),a27_0x5401d4(0x174),a27_0x5401d4(0x186),'','\x20\x20LOGICAL\x20COMBINATORS',a27_0x5401d4(0x1a3),a27_0x5401d4(0x1c3),'',a27_0x5401d4(0x1aa),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a27_0x5401d4(0x1ce),a27_0x5401d4(0x185),a27_0x5401d4(0x1cd),a27_0x5401d4(0x1a1),'',a27_0x5401d4(0x1ab),a27_0x5401d4(0x19c),a27_0x5401d4(0x173),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x5401d4(0x190),a27_0x5401d4(0x197),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x5401d4(0x176)]('\x0a')},{'command':'getOne','operation':a27_0x5401d4(0x195),'risk':'read','paramsRequired':!![],'description':a27_0x5401d4(0x1b9),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x5401d4(0x1a4),'operation':a27_0x5401d4(0x1a4),'risk':a27_0x5401d4(0x18a),'paramsRequired':!![],'description':'Create\x20one\x20record\x20in\x20the\x20dataset','confirmationDescription':a27_0x5401d4(0x1a9),'paramsHint':a27_0x5401d4(0x1b7)},{'command':a27_0x5401d4(0x1cc),'operation':a27_0x5401d4(0x1cc),'risk':a27_0x5401d4(0x18a),'paramsRequired':!![],'description':a27_0x5401d4(0x1b2),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x5401d4(0x1a7),a27_0x5401d4(0x1ae),a27_0x5401d4(0x17e),'\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.',a27_0x5401d4(0x1a6),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.',a27_0x5401d4(0x1de),a27_0x5401d4(0x17d),a27_0x5401d4(0x182),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.'][a27_0x5401d4(0x176)]('\x0a'),'confirmationDescription':a27_0x5401d4(0x184),'paramsHint':a27_0x5401d4(0x1af)},{'command':a27_0x5401d4(0x1b1),'operation':'update','risk':'write','paramsRequired':!![],'description':'Update\x20an\x20existing\x20data\x20record','confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x5401d4(0x17f)+a27_0x5401d4(0x1a0)},{'command':a27_0x5401d4(0x19a),'operation':a27_0x5401d4(0x19a),'risk':a27_0x5401d4(0x1a8),'paramsRequired':!![],'description':'Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','confirmationDescription':a27_0x5401d4(0x199),'paramsHint':a27_0x5401d4(0x1d1)},{'command':a27_0x5401d4(0x1c2),'operation':a27_0x5401d4(0x1c2),'risk':a27_0x5401d4(0x1cb),'paramsRequired':![],'description':a27_0x5401d4(0x175),'paramsHint':a27_0x5401d4(0x1d3)+a27_0x5401d4(0x191),'helpExtra':[a27_0x5401d4(0x1ba),a27_0x5401d4(0x177),'\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_0x5401d4(0x19d),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a27_0x5401d4(0x1d7),a27_0x5401d4(0x17c),a27_0x5401d4(0x179),'',a27_0x5401d4(0x194),a27_0x5401d4(0x192),a27_0x5401d4(0x1d0),a27_0x5401d4(0x181),a27_0x5401d4(0x1c4),a27_0x5401d4(0x18f),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY',a27_0x5401d4(0x189),a27_0x5401d4(0x1ad),a27_0x5401d4(0x1c8),'',a27_0x5401d4(0x1b8),a27_0x5401d4(0x1db),a27_0x5401d4(0x1b3),a27_0x5401d4(0x1c0),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x5401d4(0x183),a27_0x5401d4(0x18b),a27_0x5401d4(0x17b),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a27_0x5401d4(0x1b6)][a27_0x5401d4(0x176)]('\x0a')}];function makeDataCommand(_0xa0fd1b){const _0x1f6786=a27_0x5401d4,_0x2b745f=_0x1f6786(0x1b0)+_0xa0fd1b[_0x1f6786(0x1d4)],_0x223cea={'service':_0x1f6786(0x1dd),'command':_0xa0fd1b['command'],'description':_0xa0fd1b[_0x1f6786(0x19f)],'risk':_0xa0fd1b['risk'],..._0xa0fd1b[_0x1f6786(0x1b5)]?{'confirmationDescription':_0xa0fd1b['confirmationDescription']}:{},'helpExtra':_0xa0fd1b[_0x1f6786(0x1a5)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xa0fd1b['paramsHint']}],'validate':async _0x297a4d=>{const _0x2922af=_0x1f6786;_0xa0fd1b[_0x2922af(0x1c9)]&&requireAnyOf(_0x297a4d,['params'],_0x2b745f),_0xa0fd1b[_0x2922af(0x1d8)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x297a4d['str'](_0x2922af(0x19b)))),_0xa0fd1b[_0x2922af(0x1d8)]===_0x2922af(0x1b1)&&parseUpdateIdsFromParams(parseJsonParams(_0x297a4d[_0x2922af(0x187)]('params'))??{});},async 'execute'(_0x79fb38){const _0x27a0fb=_0x1f6786,_0x40b6cb=_0x79fb38['str'](_0x27a0fb(0x178)),_0x250dc4=_0xa0fd1b['operation']===_0x27a0fb(0x1cc)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x79fb38[_0x27a0fb(0x187)](_0x27a0fb(0x19b)))):parseJsonParams(_0x79fb38[_0x27a0fb(0x187)](_0x27a0fb(0x19b)))??{},_0x1faecd=_0xa0fd1b[_0x27a0fb(0x1d8)]==='update'?parseUpdateIdsFromParams(_0x250dc4):undefined,_0x1a5d5e=_0x1faecd?normalizeUpdateParamsForRuntime(_0x250dc4,_0x1faecd):_0x250dc4,_0x29b6a7=Date[_0x27a0fb(0x1bd)](),_0x3d08e8=await executeData(_0x40b6cb,_0xa0fd1b['operation'],_0x1a5d5e),_0x1091bc=Date[_0x27a0fb(0x1bd)]()-_0x29b6a7,_0x5d63cf=_0x1faecd&&_0x1faecd[_0x27a0fb(0x1bc)]>0x1?buildBatchUpdateResult(_0x1faecd,_0x3d08e8):_0x3d08e8;return{'ok':!![],'data':{'result':_0x5d63cf,'elapsed':_0x1091bc},'message':_0x27a0fb(0x1b0)+_0xa0fd1b['command']+_0x27a0fb(0x1ca)+_0x1091bc+'ms'};}};return _0xa0fd1b[_0x1f6786(0x1a2)]!==_0x1f6786(0x1cb)&&(_0x223cea[_0x1f6786(0x18d)]=async _0x5d44be=>{const _0x4458c9=_0x1f6786,_0x410c56=_0x5d44be[_0x4458c9(0x187)](_0x4458c9(0x178)),_0x5dfa7b=_0xa0fd1b[_0x4458c9(0x1d8)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5d44be[_0x4458c9(0x187)](_0x4458c9(0x19b)))):parseJsonParams(_0x5d44be[_0x4458c9(0x187)](_0x4458c9(0x19b)))??{};let _0x24c8d1=_0x5dfa7b;if(_0xa0fd1b[_0x4458c9(0x1d8)]===_0x4458c9(0x1b1)){const _0x82e67f=parseUpdateIdsFromParams(_0x5dfa7b);_0x24c8d1=normalizeUpdateParamsForRuntime(_0x5dfa7b,_0x82e67f);}return dryRun(_0x4458c9(0x1bf),_0x4458c9(0x1c7)+_0x410c56+'/'+_0xa0fd1b[_0x4458c9(0x1d8)])[_0x4458c9(0x19e)](_0x24c8d1)[_0x4458c9(0x19f)](_0x4458c9(0x1bb)+_0xa0fd1b['command']+_0x4458c9(0x180)+_0x410c56)['build']();}),_0x223cea;}export const dataDefinitions=[...specs[a27_0x5401d4(0x1c5)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x703b81,_0x4da72b){const _0x4e9b3f=a27_0x5401d4;return{'operation':'update','mode':_0x4e9b3f(0x1dc),'ids':_0x703b81,'total':_0x703b81['length'],'result':_0x4da72b};}
1
+ const a27_0x3898c7=a27_0x3017;(function(_0x92d31d,_0x130ce9){const _0x187bdb=a27_0x3017,_0x37e60b=_0x92d31d();while(!![]){try{const _0xa9f549=-parseInt(_0x187bdb(0xe9))/0x1*(parseInt(_0x187bdb(0xfa))/0x2)+parseInt(_0x187bdb(0xe3))/0x3+-parseInt(_0x187bdb(0xf1))/0x4*(parseInt(_0x187bdb(0xdc))/0x5)+-parseInt(_0x187bdb(0xd1))/0x6*(-parseInt(_0x187bdb(0xc4))/0x7)+parseInt(_0x187bdb(0xd3))/0x8*(-parseInt(_0x187bdb(0xcf))/0x9)+-parseInt(_0x187bdb(0xc9))/0xa+parseInt(_0x187bdb(0xdd))/0xb;if(_0xa9f549===_0x130ce9)break;else _0x37e60b['push'](_0x37e60b['shift']());}catch(_0x2fa1d7){_0x37e60b['push'](_0x37e60b['shift']());}}}(a27_0x4f1a,0x5d1ef));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';function a27_0x4f1a(){const _0x326494=['Create\x20one\x20record\x20in\x20the\x20dataset','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','batchCreate','217UjQzOi','now','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\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}','6900810MnjvEM','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20DATASET\x20BOUNDARY','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','params','5787PhBmba','update','29058utSUNK','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','1304mneVWK','data','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','command','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','code','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','5365QfqmiB','13265791EuokLB','paramsRequired','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\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}','join','aggregate','481479lrXWtv','\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\x20AGGREGATE\x20ALIAS\x20BOUNDARY','write','\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\x20EXCEL\x20ROUTES','1694rafAdm','\x20\x20LOGICAL\x20COMBINATORS','\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\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','map','\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\x20AGGREGATE\x20TYPES','\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}','776mHMPAc','Get\x20a\x20single\x20record\x20by\x20ID','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20PARAMS\x20STRUCTURE','description','\x20on\x20dataset\x20','\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\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\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}}]}','156CDMyTo','Update\x20an\x20existing\x20data\x20record','high-risk-write','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','getOne','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','operation','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','/api/{appCode}/','create','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','str','length','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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}}','build','body','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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}}','confirmationDescription','\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\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}}','read','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','filter','POST','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\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}]','risk','Preview:\x20data\x20','data\x20','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\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]','delete','paramsHint','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\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','batch'];a27_0x4f1a=function(){return _0x326494;};return a27_0x4f1a();}function a27_0x3017(_0x247122,_0x4f8c71){_0x247122=_0x247122-0x98;const _0x4f1a2e=a27_0x4f1a();let _0x301783=_0x4f1a2e[_0x247122];return _0x301783;}const specs=[{'command':a27_0x3898c7(0xb1),'operation':a27_0x3898c7(0xb1),'risk':'read','paramsRequired':![],'description':a27_0x3898c7(0xff),'paramsHint':a27_0x3898c7(0xcd)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a27_0x3898c7(0xad),a27_0x3898c7(0xeb),a27_0x3898c7(0xab),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a27_0x3898c7(0x9b),a27_0x3898c7(0xd6),a27_0x3898c7(0xe7),'\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_0x3898c7(0xae),'',a27_0x3898c7(0xea),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a27_0x3898c7(0xf9),'',a27_0x3898c7(0x100),a27_0x3898c7(0xa2),a27_0x3898c7(0xe4),a27_0x3898c7(0xf7),a27_0x3898c7(0xa6),a27_0x3898c7(0xca),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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_0x3898c7(0xc1),a27_0x3898c7(0xc6),a27_0x3898c7(0xbe),a27_0x3898c7(0xa5),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x3898c7(0xe1)]('\x0a')},{'command':a27_0x3898c7(0xfe),'operation':'getOne','risk':a27_0x3898c7(0xaf),'paramsRequired':!![],'description':a27_0x3898c7(0xf2),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x3898c7(0x9d),'operation':a27_0x3898c7(0x9d),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xc0),'confirmationDescription':a27_0x3898c7(0x99),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':'batchCreate','operation':a27_0x3898c7(0xc3),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xc7),'helpExtra':[a27_0x3898c7(0xe8),a27_0x3898c7(0xa1),a27_0x3898c7(0xbd),a27_0x3898c7(0xd2),a27_0x3898c7(0x9e),'\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.',a27_0x3898c7(0xdb),'\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.',a27_0x3898c7(0xb4),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.']['join']('\x0a'),'confirmationDescription':a27_0x3898c7(0x102),'paramsHint':a27_0x3898c7(0xb3)},{'command':'update','operation':a27_0x3898c7(0xd0),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xfb),'confirmationDescription':a27_0x3898c7(0xf3),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a27_0x3898c7(0xd9)},{'command':'delete','operation':a27_0x3898c7(0xbb),'risk':a27_0x3898c7(0xfc),'paramsRequired':!![],'description':a27_0x3898c7(0xd5),'confirmationDescription':a27_0x3898c7(0xd7),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x3898c7(0xe2),'operation':a27_0x3898c7(0xe2),'risk':a27_0x3898c7(0xaf),'paramsRequired':![],'description':a27_0x3898c7(0xaa),'paramsHint':a27_0x3898c7(0xfd)+a27_0x3898c7(0xc2),'helpExtra':[a27_0x3898c7(0xef),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a27_0x3898c7(0xf0),a27_0x3898c7(0xc8),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a27_0x3898c7(0xee),'\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_0x3898c7(0xe0),'',a27_0x3898c7(0xf4),a27_0x3898c7(0xba),a27_0x3898c7(0x9a),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a27_0x3898c7(0xcc),a27_0x3898c7(0xa7),a27_0x3898c7(0xb5),'',a27_0x3898c7(0xe5),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x3898c7(0xa3),a27_0x3898c7(0xec),'',a27_0x3898c7(0xcb),a27_0x3898c7(0x98),a27_0x3898c7(0xf8),a27_0x3898c7(0xb9),a27_0x3898c7(0xdf),'','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a27_0x3898c7(0xa4),'',a27_0x3898c7(0xb0),'\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a27_0x3898c7(0xe1)]('\x0a')}];function makeDataCommand(_0x48cece){const _0x2c55aa=a27_0x3898c7,_0xe97117='data\x20'+_0x48cece['command'],_0x3cb4eb={'service':_0x2c55aa(0xd4),'command':_0x48cece[_0x2c55aa(0xd8)],'description':_0x48cece[_0x2c55aa(0xf5)],'risk':_0x48cece['risk'],..._0x48cece[_0x2c55aa(0xac)]?{'confirmationDescription':_0x48cece['confirmationDescription']}:{},'helpExtra':_0x48cece['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x48cece[_0x2c55aa(0xbc)]}],'validate':async _0x2d7b61=>{const _0x5caf22=_0x2c55aa;_0x48cece[_0x5caf22(0xde)]&&requireAnyOf(_0x2d7b61,[_0x5caf22(0xce)],_0xe97117),_0x48cece[_0x5caf22(0x101)]===_0x5caf22(0xc3)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d7b61['str'](_0x5caf22(0xce)))),_0x48cece[_0x5caf22(0x101)]===_0x5caf22(0xd0)&&parseUpdateIdsFromParams(parseJsonParams(_0x2d7b61['str'](_0x5caf22(0xce)))??{});},async 'execute'(_0x5d2a02){const _0x571c3f=_0x2c55aa,_0x1164a3=_0x5d2a02['str'](_0x571c3f(0xda)),_0x2377a4=_0x48cece[_0x571c3f(0x101)]===_0x571c3f(0xc3)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5d2a02[_0x571c3f(0x9f)](_0x571c3f(0xce)))):parseJsonParams(_0x5d2a02[_0x571c3f(0x9f)](_0x571c3f(0xce)))??{},_0x3802bf=_0x48cece[_0x571c3f(0x101)]==='update'?parseUpdateIdsFromParams(_0x2377a4):undefined,_0x1a76d6=_0x3802bf?normalizeUpdateParamsForRuntime(_0x2377a4,_0x3802bf):_0x2377a4,_0x5d2af4=Date[_0x571c3f(0xc5)](),_0x2ee0b3=await executeData(_0x1164a3,_0x48cece['operation'],_0x1a76d6),_0x28176f=Date[_0x571c3f(0xc5)]()-_0x5d2af4,_0x1056cd=_0x3802bf&&_0x3802bf[_0x571c3f(0xa0)]>0x1?buildBatchUpdateResult(_0x3802bf,_0x2ee0b3):_0x2ee0b3;return{'ok':!![],'data':{'result':_0x1056cd,'elapsed':_0x28176f},'message':_0x571c3f(0xb8)+_0x48cece[_0x571c3f(0xd8)]+'\x20completed\x20in\x20'+_0x28176f+'ms'};}};return _0x48cece[_0x2c55aa(0xb6)]!==_0x2c55aa(0xaf)&&(_0x3cb4eb['dryRun']=async _0x25e1aa=>{const _0x50b749=_0x2c55aa,_0x30a2e3=_0x25e1aa[_0x50b749(0x9f)]('code'),_0x3c4643=_0x48cece[_0x50b749(0x101)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25e1aa[_0x50b749(0x9f)](_0x50b749(0xce)))):parseJsonParams(_0x25e1aa['str'](_0x50b749(0xce)))??{};let _0x15780d=_0x3c4643;if(_0x48cece[_0x50b749(0x101)]===_0x50b749(0xd0)){const _0x37eb9e=parseUpdateIdsFromParams(_0x3c4643);_0x15780d=normalizeUpdateParamsForRuntime(_0x3c4643,_0x37eb9e);}return dryRun(_0x50b749(0xb2),_0x50b749(0x9c)+_0x30a2e3+'/'+_0x48cece[_0x50b749(0x101)])[_0x50b749(0xa9)](_0x15780d)[_0x50b749(0xf5)](_0x50b749(0xb7)+_0x48cece['command']+_0x50b749(0xf6)+_0x30a2e3)[_0x50b749(0xa8)]();}),_0x3cb4eb;}export const dataDefinitions=[...specs[a27_0x3898c7(0xed)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0xbb9947,_0x454bd8){const _0x15276c=a27_0x3898c7;return{'operation':'update','mode':_0x15276c(0xbf),'ids':_0xbb9947,'total':_0xbb9947[_0x15276c(0xa0)],'result':_0x454bd8};}
@@ -1 +1 @@
1
- const a28_0x3214b5=a28_0x4b82;(function(_0x183a73,_0x3edb16){const _0x1ff6b8=a28_0x4b82,_0x5d5dc9=_0x183a73();while(!![]){try{const _0x5df0f3=parseInt(_0x1ff6b8(0x21c))/0x1+-parseInt(_0x1ff6b8(0x209))/0x2*(-parseInt(_0x1ff6b8(0x203))/0x3)+parseInt(_0x1ff6b8(0x1ff))/0x4+-parseInt(_0x1ff6b8(0x236))/0x5*(-parseInt(_0x1ff6b8(0x206))/0x6)+-parseInt(_0x1ff6b8(0x207))/0x7*(-parseInt(_0x1ff6b8(0x200))/0x8)+-parseInt(_0x1ff6b8(0x20a))/0x9*(parseInt(_0x1ff6b8(0x230))/0xa)+-parseInt(_0x1ff6b8(0x227))/0xb*(parseInt(_0x1ff6b8(0x219))/0xc);if(_0x5df0f3===_0x3edb16)break;else _0x5d5dc9['push'](_0x5d5dc9['shift']());}catch(_0x1be275){_0x5d5dc9['push'](_0x5d5dc9['shift']());}}}(a28_0x2cc4,0x2df5b));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x2cc4(){const _0x373438=['isArray','host','map','allFieldNames','type','code','1304476jSxAJR','3208IjMBkb','dbType','properties','15831xSEBmC','datasetKey','push','3426vUGRpQ','3311gISxpg','creatorIdField','50qioxSl','18DZoNef','modelCode','creatorNameField','read','beforeScriptId','responseFields','split','object','afterScriptId','str','dblinkInfoDTO','path','dataType','string','description','60pWGlZZ','allFields','dbName','287066xHuzYN','operations','validateRules','modelId','requestFields','modifierNameField','method','dbtableConfig','relations','dataset','fields','1437227QEFgFB','extend','parse','logicField','displayName','doType','trim','length','tableName','1748130cacQyD','responseBody','options','filter','source','sourceType','2245aTdxnW','required','tableComment','relatedPageInfoList','formatRules','requestBody','createTimeField','columnCodeListWithDeleted','deleted','pkField','appCode','name','find','indexes','updateTimeField','detail'];a28_0x2cc4=function(){return _0x373438;};return a28_0x2cc4();}function normalizeField(_0x33018e){const _0xf0aa9c=a28_0x4b82;if(_0x33018e[_0xf0aa9c(0x1f1)])return null;const _0x124769=Boolean(_0x33018e[_0xf0aa9c(0x22b)]!==undefined||_0x33018e[_0xf0aa9c(0x22c)]!==undefined);let _0x202ffa={};if(!_0x124769&&typeof _0x33018e[_0xf0aa9c(0x228)]==='string')try{_0x202ffa=JSON[_0xf0aa9c(0x229)](_0x33018e[_0xf0aa9c(0x228)]);}catch{}const _0x69ed3b=_0x124769?_0x33018e[_0xf0aa9c(0x1f4)]:_0x33018e[_0xf0aa9c(0x1fe)],_0x527d8d=_0x124769?_0x33018e[_0xf0aa9c(0x22b)]:_0x33018e[_0xf0aa9c(0x1f4)],_0x75d176=_0x124769?_0x33018e['doType']:_0x33018e[_0xf0aa9c(0x1fd)]||_0x33018e[_0xf0aa9c(0x216)],_0x43c622=_0x124769?_0x33018e[_0xf0aa9c(0x1f2)]===!![]:_0x202ffa[_0xf0aa9c(0x1f2)]===!![],_0x556aea=_0x124769?_0x33018e[_0xf0aa9c(0x1ea)]===!![]:_0x202ffa[_0xf0aa9c(0x1ea)]===!![],_0x149b1a=_0x124769?_0x33018e['options']??null:_0x202ffa[_0xf0aa9c(0x232)]??null,_0x568dda={'name':_0x69ed3b,'displayName':_0x527d8d||_0x69ed3b,'type':_0x75d176,'dbType':_0x33018e[_0xf0aa9c(0x201)],'pk':_0x43c622,'required':_0x556aea,'description':_0x33018e[_0xf0aa9c(0x218)]||undefined};return Array[_0xf0aa9c(0x1f9)](_0x149b1a)&&_0x149b1a[_0xf0aa9c(0x22e)]>0x0&&(_0x568dda[_0xf0aa9c(0x232)]=_0x149b1a),_0x568dda;}function parseJsonMaybe(_0x3e1607){const _0x2d82a4=a28_0x4b82;if(typeof _0x3e1607!==_0x2d82a4(0x217))return _0x3e1607;try{return JSON['parse'](_0x3e1607);}catch{return _0x3e1607;}}function a28_0x4b82(_0x402392,_0x3369e2){_0x402392=_0x402392-0x1ea;const _0x2cc4cf=a28_0x2cc4();let _0x4b8222=_0x2cc4cf[_0x402392];return _0x4b8222;}function normalizeOperationEntry(_0x4a0c7d,_0x158e62){const _0x301905=a28_0x4b82;if(!_0x158e62||typeof _0x158e62!==_0x301905(0x211))return null;if(!_0x158e62[_0x301905(0x222)]||!_0x158e62[_0x301905(0x215)])return null;const _0x541157={'name':_0x4a0c7d,'method':_0x158e62[_0x301905(0x222)],'path':_0x158e62[_0x301905(0x215)]};if(_0x158e62['host'])_0x541157[_0x301905(0x1fa)]=_0x158e62[_0x301905(0x1fa)];if(_0x158e62['requestBody']!=null)_0x541157[_0x301905(0x1ee)]=parseJsonMaybe(_0x158e62['requestBody']);if(_0x158e62[_0x301905(0x231)]!=null)_0x541157[_0x301905(0x231)]=parseJsonMaybe(_0x158e62[_0x301905(0x231)]);if(_0x158e62['beforeScriptId']!=null)_0x541157['beforeScriptId']=_0x158e62[_0x301905(0x20e)];if(_0x158e62['afterScriptId']!=null)_0x541157['afterScriptId']=_0x158e62[_0x301905(0x212)];if(Array[_0x301905(0x1f9)](_0x158e62[_0x301905(0x220)]))_0x541157[_0x301905(0x220)]=_0x158e62[_0x301905(0x220)];if(Array[_0x301905(0x1f9)](_0x158e62['responseFields']))_0x541157[_0x301905(0x20f)]=_0x158e62[_0x301905(0x20f)];return _0x541157;}function summarizeDbtable(_0xa7ad6f){const _0x255889=a28_0x4b82,_0x228261={},_0x4f1508=['dbId',_0x255889(0x21b),_0x255889(0x22f),_0x255889(0x204),_0x255889(0x1f2),_0x255889(0x21a),_0x255889(0x22a),_0x255889(0x1ef),_0x255889(0x1f7),_0x255889(0x208),_0x255889(0x20c),'modifierIdField',_0x255889(0x221),'labelField',_0x255889(0x214)];for(const _0x465f80 of _0x4f1508){if(_0xa7ad6f[_0x465f80]!==undefined)_0x228261[_0x465f80]=_0xa7ad6f[_0x465f80];}return typeof _0x228261[_0x255889(0x21a)]==='string'&&_0x228261[_0x255889(0x21a)][_0x255889(0x22e)]>0x0&&(_0x228261[_0x255889(0x1fc)]=_0x228261[_0x255889(0x21a)]['split'](',')[_0x255889(0x1fb)](_0x4e882b=>_0x4e882b[_0x255889(0x22d)]())[_0x255889(0x233)](Boolean)),_0x228261;}function normalizeRelatedPages(_0xb58068){const _0x210dd2=a28_0x4b82;if(!Array[_0x210dd2(0x1f9)](_0xb58068))return[];return _0xb58068[_0x210dd2(0x233)](_0x168bc2=>_0x168bc2&&typeof _0x168bc2==='object')[_0x210dd2(0x1fb)](_0x9112f8=>({'id':_0x9112f8['id'],'type':_0x9112f8[_0x210dd2(0x1fd)],'code':_0x9112f8['code'],'title':_0x9112f8['title'],'deleted':_0x9112f8['deleted']===!![]}));}function normalizeFallbackFieldName(_0x1cedaf,_0x30cc9b){const _0x3de46f=a28_0x4b82,_0x18a01a=_0x1cedaf[_0x3de46f(0x22d)]();if(!_0x18a01a)return null;return{'name':_0x18a01a,'displayName':_0x18a01a,'type':undefined,'dbType':undefined,'pk':_0x18a01a===_0x30cc9b,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1051f5,_0x2846f5){const _0x5dbcb0=a28_0x4b82;if(!_0x1051f5||!_0x2846f5)return[];try{const _0xaf561b=await listDatasets(_0x1051f5,{'code':_0x2846f5}),_0x19e57f=_0xaf561b[_0x5dbcb0(0x1f5)](_0x26e251=>_0x26e251['code']===_0x2846f5)??_0xaf561b[0x0],_0x37e196=_0x19e57f?.[_0x5dbcb0(0x223)]??{},_0x409054=typeof _0x37e196[_0x5dbcb0(0x21a)]==='string'?_0x37e196['allFields'][_0x5dbcb0(0x210)](','):[];return _0x409054[_0x5dbcb0(0x1fb)](_0x15a761=>normalizeFallbackFieldName(_0x15a761,_0x37e196[_0x5dbcb0(0x1f2)]))[_0x5dbcb0(0x233)](_0x2bfb5a=>_0x2bfb5a!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a28_0x3214b5(0x1f8),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x3214b5(0x20d),'flags':[CODE_FLAG],async 'execute'(_0x12a2c9){const _0x401890=a28_0x3214b5,_0x212e4f=await getDatasetDetail(_0x12a2c9[_0x401890(0x213)](_0x401890(0x1fe))),_0x348f63=Array[_0x401890(0x1f9)](_0x212e4f[_0x401890(0x226)])?_0x212e4f[_0x401890(0x226)]:Array['isArray'](_0x212e4f[_0x401890(0x202)])?_0x212e4f[_0x401890(0x202)]:[];let _0x4270d2=_0x348f63['map'](_0x59bf4a=>normalizeField(_0x59bf4a))[_0x401890(0x233)](_0x2a9ac5=>_0x2a9ac5!==null);_0x4270d2[_0x401890(0x22e)]===0x0&&(_0x4270d2=await loadListFieldFallback(_0x12a2c9[_0x401890(0x1f3)],_0x12a2c9[_0x401890(0x213)](_0x401890(0x1fe))));const _0x10a992=_0x212e4f[_0x401890(0x21d)]??{},_0x3ef1b3=[];for(const [_0x510e32,_0x3ef077]of Object['entries'](_0x10a992)){const _0x328916=normalizeOperationEntry(_0x510e32,_0x3ef077);if(_0x328916)_0x3ef1b3[_0x401890(0x205)](_0x328916);}const _0x3b2c50=_0x212e4f[_0x401890(0x223)]??{},_0x2445b7=_0x212e4f[_0x401890(0x225)]??{},_0x58693f=_0x3b2c50['dbId']!=null?{'id':_0x3b2c50['dbId'],'name':_0x3b2c50[_0x401890(0x21b)]??null}:undefined;let _0x5d3e72;return typeof _0x212e4f[_0x401890(0x228)]===_0x401890(0x217)&&(_0x5d3e72=parseJsonMaybe(_0x212e4f[_0x401890(0x228)])),{'ok':!![],'data':{'id':_0x212e4f[_0x401890(0x21f)]??_0x212e4f['id'],'name':_0x212e4f[_0x401890(0x1f4)],'code':_0x212e4f[_0x401890(0x20b)]||_0x212e4f[_0x401890(0x1fe)],'doVersion':_0x212e4f['doVersion'],'description':_0x212e4f['description']||_0x2445b7[_0x401890(0x1eb)]||undefined,'source':_0x212e4f[_0x401890(0x234)]||_0x2445b7[_0x401890(0x235)],'table':_0x3b2c50['tableName']||_0x2445b7[_0x401890(0x22f)],'datasetKey':_0x3b2c50['datasetKey'],'pk':_0x3b2c50[_0x401890(0x1f2)],'db':_0x58693f,'dbtable':summarizeDbtable(_0x3b2c50),'fields':_0x4270d2,'operations':_0x3ef1b3,'indexes':Array[_0x401890(0x1f9)](_0x2445b7['indexes'])?_0x2445b7[_0x401890(0x1f6)]:[],'relations':_0x212e4f[_0x401890(0x224)]??null,'relatedPages':normalizeRelatedPages(_0x212e4f[_0x401890(0x1ec)]),...Array[_0x401890(0x1f9)](_0x212e4f[_0x401890(0x1f0)])?{'columnCodeListWithDeleted':_0x212e4f[_0x401890(0x1f0)]}:{},'formatRules':Array[_0x401890(0x1f9)](_0x212e4f[_0x401890(0x1ed)])?_0x212e4f[_0x401890(0x1ed)]:[],'validateRules':Array[_0x401890(0x1f9)](_0x212e4f['validateRules'])?_0x212e4f[_0x401890(0x21e)]:[],..._0x5d3e72!==undefined?{'extend':_0x5d3e72}:{},'stats':{'fieldCount':_0x4270d2[_0x401890(0x22e)],'operationCount':_0x3ef1b3[_0x401890(0x22e)]}}};}};
1
+ const a28_0x5ba640=a28_0x14aa;(function(_0x4394ca,_0x187889){const _0x3674fc=a28_0x14aa,_0x490999=_0x4394ca();while(!![]){try{const _0x284e98=parseInt(_0x3674fc(0x1f0))/0x1*(parseInt(_0x3674fc(0x1ed))/0x2)+parseInt(_0x3674fc(0x1e4))/0x3*(-parseInt(_0x3674fc(0x207))/0x4)+-parseInt(_0x3674fc(0x1f4))/0x5+parseInt(_0x3674fc(0x202))/0x6*(-parseInt(_0x3674fc(0x1de))/0x7)+-parseInt(_0x3674fc(0x1f7))/0x8*(parseInt(_0x3674fc(0x1d0))/0x9)+parseInt(_0x3674fc(0x1ca))/0xa*(-parseInt(_0x3674fc(0x1c9))/0xb)+parseInt(_0x3674fc(0x201))/0xc;if(_0x284e98===_0x187889)break;else _0x490999['push'](_0x490999['shift']());}catch(_0x295f0a){_0x490999['push'](_0x490999['shift']());}}}(a28_0x461f,0xd5ade));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x461f(){const _0xa898c4=['code','responseBody','dataset','afterScriptId','18gVaMAN','fields','read','parse','relations','logicField','allFields','extend','datasetKey','34EgaTxo','path','string','6340fmkcdM','dataType','doType','appCode','6728860sErUKI','creatorIdField','apiError','8AabeCF','sourceType','description','properties','validateRules','updateTimeField','relatedPageInfoList','filter','type','displayName','82535148AKhiaa','1461126XZAKAT','isArray','requestBody','map','allFieldNames','548144QNgKAa','requestFields','method','dbName','columnCodeListWithDeleted','required','modelCode','tableComment','Dataset\x20detail\x20must\x20be\x20an\x20object.','modelId','modifierIdField','dbId','options','dbtableConfig','split','5844729jHKSrn','10DGoBUc','object','trim','entries','labelField','name','15358545FaJqjW','host','push','formatRules','detail','responseFields','beforeScriptId','tableName','source','indexes','deleted','str','pkField','length','49iZTFiU','operations'];a28_0x461f=function(){return _0xa898c4;};return a28_0x461f();}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x28ec75){const _0x2533fe=a28_0x14aa;return _0x28ec75!==null&&typeof _0x28ec75===_0x2533fe(0x1cb)&&!Array['isArray'](_0x28ec75);}function normalizeField(_0x41dce1){const _0x976c6c=a28_0x14aa;if(_0x41dce1[_0x976c6c(0x1da)])return null;const _0x5335bd=Boolean(_0x41dce1['displayName']!==undefined||_0x41dce1[_0x976c6c(0x1f2)]!==undefined);let _0x843678={};if(!_0x5335bd&&typeof _0x41dce1['extend']==='string')try{_0x843678=JSON[_0x976c6c(0x1e7)](_0x41dce1[_0x976c6c(0x1eb)]);}catch{}const _0x5def90=_0x5335bd?_0x41dce1[_0x976c6c(0x1cf)]:_0x41dce1[_0x976c6c(0x1e0)],_0x5304f0=_0x5335bd?_0x41dce1[_0x976c6c(0x200)]:_0x41dce1[_0x976c6c(0x1cf)],_0x741601=_0x5335bd?_0x41dce1['doType']:_0x41dce1[_0x976c6c(0x1ff)]||_0x41dce1[_0x976c6c(0x1f1)],_0x4753ce=_0x5335bd?_0x41dce1[_0x976c6c(0x1dc)]===!![]:_0x843678['pkField']===!![],_0x518f7f=_0x5335bd?_0x41dce1[_0x976c6c(0x20c)]===!![]:_0x843678[_0x976c6c(0x20c)]===!![],_0x23d6f7=_0x5335bd?_0x41dce1[_0x976c6c(0x1c6)]??null:_0x843678[_0x976c6c(0x1c6)]??null,_0x340e47={'name':_0x5def90,'displayName':_0x5304f0||_0x5def90,'type':_0x741601,'dbType':_0x41dce1['dbType'],'pk':_0x4753ce,'required':_0x518f7f,'description':_0x41dce1[_0x976c6c(0x1f9)]||undefined};return Array[_0x976c6c(0x203)](_0x23d6f7)&&_0x23d6f7[_0x976c6c(0x1dd)]>0x0&&(_0x340e47[_0x976c6c(0x1c6)]=_0x23d6f7),_0x340e47;}function parseJsonMaybe(_0x531c86){const _0x8b502a=a28_0x14aa;if(typeof _0x531c86!==_0x8b502a(0x1ef))return _0x531c86;try{return JSON[_0x8b502a(0x1e7)](_0x531c86);}catch{return _0x531c86;}}function normalizeOperationEntry(_0x3dd077,_0x567db4){const _0x2be52a=a28_0x14aa;if(!_0x567db4||typeof _0x567db4!=='object')return null;if(!_0x567db4[_0x2be52a(0x209)]||!_0x567db4[_0x2be52a(0x1ee)])return null;const _0x5d4d9a={'name':_0x3dd077,'method':_0x567db4['method'],'path':_0x567db4[_0x2be52a(0x1ee)]};if(_0x567db4[_0x2be52a(0x1d1)])_0x5d4d9a[_0x2be52a(0x1d1)]=_0x567db4[_0x2be52a(0x1d1)];if(_0x567db4[_0x2be52a(0x204)]!=null)_0x5d4d9a[_0x2be52a(0x204)]=parseJsonMaybe(_0x567db4['requestBody']);if(_0x567db4[_0x2be52a(0x1e1)]!=null)_0x5d4d9a['responseBody']=parseJsonMaybe(_0x567db4[_0x2be52a(0x1e1)]);if(_0x567db4[_0x2be52a(0x1d6)]!=null)_0x5d4d9a[_0x2be52a(0x1d6)]=_0x567db4['beforeScriptId'];if(_0x567db4[_0x2be52a(0x1e3)]!=null)_0x5d4d9a[_0x2be52a(0x1e3)]=_0x567db4[_0x2be52a(0x1e3)];if(Array['isArray'](_0x567db4[_0x2be52a(0x208)]))_0x5d4d9a[_0x2be52a(0x208)]=_0x567db4[_0x2be52a(0x208)];if(Array[_0x2be52a(0x203)](_0x567db4[_0x2be52a(0x1d5)]))_0x5d4d9a[_0x2be52a(0x1d5)]=_0x567db4['responseFields'];return _0x5d4d9a;}function summarizeDbtable(_0x5d9fef){const _0x2ea596=a28_0x14aa,_0xeaa3b8={},_0x5ca1dc=[_0x2ea596(0x1c5),_0x2ea596(0x20a),_0x2ea596(0x1d7),_0x2ea596(0x1ec),_0x2ea596(0x1dc),_0x2ea596(0x1ea),_0x2ea596(0x1e9),'createTimeField',_0x2ea596(0x1fc),_0x2ea596(0x1f5),'creatorNameField',_0x2ea596(0x1c4),'modifierNameField',_0x2ea596(0x1ce),'dblinkInfoDTO'];for(const _0x7c8333 of _0x5ca1dc){if(_0x5d9fef[_0x7c8333]!==undefined)_0xeaa3b8[_0x7c8333]=_0x5d9fef[_0x7c8333];}return typeof _0xeaa3b8['allFields']===_0x2ea596(0x1ef)&&_0xeaa3b8['allFields'][_0x2ea596(0x1dd)]>0x0&&(_0xeaa3b8[_0x2ea596(0x206)]=_0xeaa3b8[_0x2ea596(0x1ea)][_0x2ea596(0x1c8)](',')[_0x2ea596(0x205)](_0x406c4b=>_0x406c4b['trim']())['filter'](Boolean)),_0xeaa3b8;}function normalizeRelatedPages(_0x270df1){const _0x5187c0=a28_0x14aa;if(!Array[_0x5187c0(0x203)](_0x270df1))return[];return _0x270df1['filter'](_0x5bfee1=>_0x5bfee1&&typeof _0x5bfee1==='object')[_0x5187c0(0x205)](_0x3f9242=>({'id':_0x3f9242['id'],'type':_0x3f9242[_0x5187c0(0x1ff)],'code':_0x3f9242['code'],'title':_0x3f9242['title'],'deleted':_0x3f9242[_0x5187c0(0x1da)]===!![]}));}function normalizeFallbackFieldName(_0x19f31d,_0xac235){const _0x55214f=a28_0x14aa,_0x5d77e8=_0x19f31d[_0x55214f(0x1cc)]();if(!_0x5d77e8)return null;return{'name':_0x5d77e8,'displayName':_0x5d77e8,'type':undefined,'dbType':undefined,'pk':_0x5d77e8===_0xac235,'required':![],'description':undefined};}function a28_0x14aa(_0x117d0b,_0x1f9d09){_0x117d0b=_0x117d0b-0x1c2;const _0x461fe2=a28_0x461f();let _0x14aa41=_0x461fe2[_0x117d0b];return _0x14aa41;}async function loadListFieldFallback(_0x25d5bf,_0x1cb622){const _0x462484=a28_0x14aa;if(!_0x25d5bf||!_0x1cb622)return[];try{const _0x5c73c2=await listDatasets(_0x25d5bf,{'code':_0x1cb622}),_0x4e7882=_0x5c73c2['find'](_0x37e86b=>_0x37e86b[_0x462484(0x1e0)]===_0x1cb622)??_0x5c73c2[0x0],_0x4593b7=_0x4e7882?.[_0x462484(0x1c7)]??{},_0x1c39cf=typeof _0x4593b7['allFields']==='string'?_0x4593b7['allFields'][_0x462484(0x1c8)](','):[];return _0x1c39cf[_0x462484(0x205)](_0x3477b9=>normalizeFallbackFieldName(_0x3477b9,_0x4593b7[_0x462484(0x1dc)]))[_0x462484(0x1fe)](_0x5d6b4d=>_0x5d6b4d!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x5ba640(0x1e2),'command':a28_0x5ba640(0x1d4),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x5ba640(0x1e6),'flags':[CODE_FLAG],async 'execute'(_0xb7ed9f){const _0x4b2cf2=a28_0x5ba640,_0x5d4fe8=await getDatasetDetail(_0xb7ed9f[_0x4b2cf2(0x1db)]('code'));if(!isRecord(_0x5d4fe8))throw CliErrors[_0x4b2cf2(0x1f6)](_0x4b2cf2(0x1c2));const _0x32c5c6=Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1e5)])?_0x5d4fe8[_0x4b2cf2(0x1e5)]:Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1fa)])?_0x5d4fe8[_0x4b2cf2(0x1fa)]:[];let _0x3ad3af=_0x32c5c6[_0x4b2cf2(0x205)](_0x4e7ddc=>normalizeField(_0x4e7ddc))[_0x4b2cf2(0x1fe)](_0x3b109e=>_0x3b109e!==null);_0x3ad3af['length']===0x0&&(_0x3ad3af=await loadListFieldFallback(_0xb7ed9f[_0x4b2cf2(0x1f3)],_0xb7ed9f[_0x4b2cf2(0x1db)](_0x4b2cf2(0x1e0))));const _0x4719fd=_0x5d4fe8[_0x4b2cf2(0x1df)]??{},_0x2587be=[];for(const [_0x2dad07,_0x2f48ae]of Object[_0x4b2cf2(0x1cd)](_0x4719fd)){const _0x1dbdde=normalizeOperationEntry(_0x2dad07,_0x2f48ae);if(_0x1dbdde)_0x2587be[_0x4b2cf2(0x1d2)](_0x1dbdde);}const _0x25d2a4=isRecord(_0x5d4fe8[_0x4b2cf2(0x1c7)])?_0x5d4fe8[_0x4b2cf2(0x1c7)]:{},_0x3a3ac1=isRecord(_0x5d4fe8[_0x4b2cf2(0x1e2)])?_0x5d4fe8[_0x4b2cf2(0x1e2)]:{},_0x3b6f3a=_0x25d2a4['dbId']!=null?{'id':_0x25d2a4['dbId'],'name':_0x25d2a4[_0x4b2cf2(0x20a)]??null}:undefined;let _0x45b919;return typeof _0x5d4fe8[_0x4b2cf2(0x1eb)]==='string'&&(_0x45b919=parseJsonMaybe(_0x5d4fe8[_0x4b2cf2(0x1eb)])),{'ok':!![],'data':{'id':_0x5d4fe8[_0x4b2cf2(0x1c3)]??_0x5d4fe8['id'],'name':_0x5d4fe8[_0x4b2cf2(0x1cf)],'code':_0x5d4fe8[_0x4b2cf2(0x20d)]||_0x5d4fe8['code'],'doVersion':_0x5d4fe8['doVersion'],'description':_0x5d4fe8['description']||_0x3a3ac1[_0x4b2cf2(0x20e)]||undefined,'source':_0x5d4fe8[_0x4b2cf2(0x1d8)]||_0x3a3ac1[_0x4b2cf2(0x1f8)],'table':_0x25d2a4[_0x4b2cf2(0x1d7)]||_0x3a3ac1[_0x4b2cf2(0x1d7)],'datasetKey':_0x25d2a4[_0x4b2cf2(0x1ec)],'pk':_0x25d2a4[_0x4b2cf2(0x1dc)],'db':_0x3b6f3a,'dbtable':summarizeDbtable(_0x25d2a4),'fields':_0x3ad3af,'operations':_0x2587be,'indexes':Array['isArray'](_0x3a3ac1[_0x4b2cf2(0x1d9)])?_0x3a3ac1[_0x4b2cf2(0x1d9)]:[],'relations':_0x5d4fe8[_0x4b2cf2(0x1e8)]??null,'relatedPages':normalizeRelatedPages(_0x5d4fe8[_0x4b2cf2(0x1fd)]),...Array['isArray'](_0x5d4fe8[_0x4b2cf2(0x20b)])?{'columnCodeListWithDeleted':_0x5d4fe8[_0x4b2cf2(0x20b)]}:{},'formatRules':Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1d3)])?_0x5d4fe8[_0x4b2cf2(0x1d3)]:[],'validateRules':Array[_0x4b2cf2(0x203)](_0x5d4fe8['validateRules'])?_0x5d4fe8[_0x4b2cf2(0x1fb)]:[],..._0x45b919!==undefined?{'extend':_0x45b919}:{},'stats':{'fieldCount':_0x3ad3af['length'],'operationCount':_0x2587be[_0x4b2cf2(0x1dd)]}}};}};
@@ -1 +1 @@
1
- (function(_0x3a5f6b,_0x4c662e){const _0x32620a=a29_0x45b0,_0x157cce=_0x3a5f6b();while(!![]){try{const _0x861372=parseInt(_0x32620a(0xc8))/0x1+parseInt(_0x32620a(0xd0))/0x2*(parseInt(_0x32620a(0xc9))/0x3)+parseInt(_0x32620a(0xca))/0x4*(-parseInt(_0x32620a(0xc7))/0x5)+-parseInt(_0x32620a(0xce))/0x6+parseInt(_0x32620a(0xcf))/0x7*(parseInt(_0x32620a(0xcd))/0x8)+parseInt(_0x32620a(0xcb))/0x9+-parseInt(_0x32620a(0xcc))/0xa;if(_0x861372===_0x4c662e)break;else _0x157cce['push'](_0x157cce['shift']());}catch(_0x155d23){_0x157cce['push'](_0x157cce['shift']());}}}(a29_0xc3e2,0x6f4b3));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x45b0(_0x55aa4b,_0x4bfa31){_0x55aa4b=_0x55aa4b-0xc7;const _0xc3e2a8=a29_0xc3e2();let _0x45b0ef=_0xc3e2a8[_0x55aa4b];return _0x45b0ef;}function a29_0xc3e2(){const _0x33ae3f=['2482968QcZnaN','7217685TsCnFp','14061310JOlLAZ','1403744KpTndB','1282758TNvKSC','28XHbaES','2AVbJQv','5anDqBq','859119toiWsZ','1000707aBdDlR'];a29_0xc3e2=function(){return _0x33ae3f;};return a29_0xc3e2();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ function a29_0x56c6(){const _0x3a4642=['2106440VBFJGe','9177777lgfZQC','2968940LFJhvj','2555838XramDF','624297FpIPaq','178426XYKEkc','18YBUAYp','9152530STDksB','4sissDB','7QgCjAO'];a29_0x56c6=function(){return _0x3a4642;};return a29_0x56c6();}(function(_0x1bc4c0,_0x431969){const _0x5436a8=a29_0x2257,_0x458e1d=_0x1bc4c0();while(!![]){try{const _0x185f78=-parseInt(_0x5436a8(0x1e9))/0x1+-parseInt(_0x5436a8(0x1ea))/0x2*(-parseInt(_0x5436a8(0x1eb))/0x3)+-parseInt(_0x5436a8(0x1ed))/0x4*(-parseInt(_0x5436a8(0x1e7))/0x5)+parseInt(_0x5436a8(0x1e8))/0x6+parseInt(_0x5436a8(0x1e4))/0x7*(-parseInt(_0x5436a8(0x1e5))/0x8)+-parseInt(_0x5436a8(0x1e6))/0x9+parseInt(_0x5436a8(0x1ec))/0xa;if(_0x185f78===_0x431969)break;else _0x458e1d['push'](_0x458e1d['shift']());}catch(_0x81008){_0x458e1d['push'](_0x458e1d['shift']());}}}(a29_0x56c6,0x896f9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x2257(_0x385818,_0x3cbfaa){_0x385818=_0x385818-0x1e4;const _0x56c6d2=a29_0x56c6();let _0x2257de=_0x56c6d2[_0x385818];return _0x2257de;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x2da425=a30_0x1225;function a30_0x4bd9(){const _0xee952b=['135GNVGRd','pkField','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','code','852663CoWIPW','str','read','appCode','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','4602020QnaAvE','935689mYcGme','2HZZWAb','5679779AMFVEU','name','source','1056OgYqzG','dataset','419177ljZVQe','length','string','trim','4gIhhxL','379328xgMArW','split','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','allFields','6337790lSjCaZ','datasetKey','6hxhdcO','dbtableConfig','map'];a30_0x4bd9=function(){return _0xee952b;};return a30_0x4bd9();}(function(_0x3a4c1e,_0x27b62e){const _0x3a565c=a30_0x1225,_0x5a43a9=_0x3a4c1e();while(!![]){try{const _0x369d88=-parseInt(_0x3a565c(0x16f))/0x1*(parseInt(_0x3a565c(0x170))/0x2)+parseInt(_0x3a565c(0x169))/0x3*(-parseInt(_0x3a565c(0x17a))/0x4)+-parseInt(_0x3a565c(0x16e))/0x5+-parseInt(_0x3a565c(0x162))/0x6*(parseInt(_0x3a565c(0x171))/0x7)+-parseInt(_0x3a565c(0x17b))/0x8*(-parseInt(_0x3a565c(0x165))/0x9)+-parseInt(_0x3a565c(0x160))/0xa+-parseInt(_0x3a565c(0x176))/0xb*(-parseInt(_0x3a565c(0x174))/0xc);if(_0x369d88===_0x27b62e)break;else _0x5a43a9['push'](_0x5a43a9['shift']());}catch(_0x27f888){_0x5a43a9['push'](_0x5a43a9['shift']());}}}(a30_0x4bd9,0x74fbe));function a30_0x1225(_0x3f7733,_0x1bbdfa){_0x3f7733=_0x3f7733-0x15f;const _0x4bd988=a30_0x4bd9();let _0x1225b0=_0x4bd988[_0x3f7733];return _0x1225b0;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x2da425(0x175),'command':'list','description':a30_0x2da425(0x16d),'risk':a30_0x2da425(0x16b),'flags':[{'name':'name','type':a30_0x2da425(0x178),'description':a30_0x2da425(0x17d)},{'name':'table-name','type':a30_0x2da425(0x178),'description':'Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)'},{...CODE_FLAG,'required':![],'description':a30_0x2da425(0x167)}],async 'execute'(_0x292a1c){const _0x8ce32c=a30_0x2da425,_0x2f177a=_0x292a1c[_0x8ce32c(0x16a)](_0x8ce32c(0x172)),_0x4f6687=_0x292a1c['str'](_0x8ce32c(0x168)),_0x124575=_0x292a1c[_0x8ce32c(0x16a)]('table-name'),_0x219b9b=await listDatasets(_0x292a1c[_0x8ce32c(0x16c)],{..._0x2f177a&&{'name':_0x2f177a},..._0x4f6687&&{'code':_0x4f6687},..._0x124575&&{'tableName':_0x124575}});return{'ok':!![],'data':{'total':_0x219b9b[_0x8ce32c(0x177)],'datasets':_0x219b9b[_0x8ce32c(0x164)](_0x1149ff=>{const _0x5707d9=_0x8ce32c,_0x4f7ab6=_0x1149ff[_0x5707d9(0x163)]??{};return{'id':_0x1149ff['id'],'code':_0x1149ff[_0x5707d9(0x168)],'name':_0x1149ff[_0x5707d9(0x172)],'source':_0x1149ff[_0x5707d9(0x173)],'description':_0x1149ff['description'],'table':_0x4f7ab6['tableName'],'datasetKey':_0x4f7ab6[_0x5707d9(0x161)],'pk':_0x4f7ab6[_0x5707d9(0x166)],'fields':_0x4f7ab6[_0x5707d9(0x15f)]?_0x4f7ab6[_0x5707d9(0x15f)][_0x5707d9(0x17c)](',')['map'](_0x33c010=>_0x33c010[_0x5707d9(0x179)]()):[]};})}};}};
1
+ const a30_0x1a44a2=a30_0x1ceb;(function(_0x56ed96,_0x106a5a){const _0x175983=a30_0x1ceb,_0x483869=_0x56ed96();while(!![]){try{const _0x34ffd1=parseInt(_0x175983(0xfd))/0x1+parseInt(_0x175983(0xf9))/0x2*(parseInt(_0x175983(0x100))/0x3)+parseInt(_0x175983(0xe9))/0x4*(-parseInt(_0x175983(0xed))/0x5)+-parseInt(_0x175983(0xfb))/0x6+parseInt(_0x175983(0xf7))/0x7+-parseInt(_0x175983(0xf8))/0x8*(-parseInt(_0x175983(0xf1))/0x9)+-parseInt(_0x175983(0xee))/0xa*(parseInt(_0x175983(0xf3))/0xb);if(_0x34ffd1===_0x106a5a)break;else _0x483869['push'](_0x483869['shift']());}catch(_0x8eebbf){_0x483869['push'](_0x483869['shift']());}}}(a30_0x341c,0x7d437));import{listDatasets}from'../../core/api-client.js';function a30_0x1ceb(_0x36dc85,_0x32be03){_0x36dc85=_0x36dc85-0xe8;const _0x341cb1=a30_0x341c();let _0x1ceb97=_0x341cb1[_0x36dc85];return _0x1ceb97;}function a30_0x341c(){const _0x4af320=['3843396mvfodv','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','158927WISKAn','string','code','9DKbLCs','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','pkField','name','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','split','allFields','tableName','56044zNAYeN','dataset','trim','map','350hQFvhp','42920cSHHZR','str','dbtableConfig','9XonbJf','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1397gdnEZw','table-name','source','list','7104559kksodb','8006120acbWfA','336580bAkPSh','read'];a30_0x341c=function(){return _0x4af320;};return a30_0x341c();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x1a44a2(0xea),'command':a30_0x1a44a2(0xf6),'description':a30_0x1a44a2(0x104),'risk':a30_0x1a44a2(0xfa),'flags':[{'name':a30_0x1a44a2(0x103),'type':a30_0x1a44a2(0xfe),'description':a30_0x1a44a2(0xfc)},{'name':a30_0x1a44a2(0xf4),'type':a30_0x1a44a2(0xfe),'description':a30_0x1a44a2(0x101)},{...CODE_FLAG,'required':![],'description':a30_0x1a44a2(0xf2)}],async 'execute'(_0x5de454){const _0x48b94a=a30_0x1a44a2,_0x53dc5e=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0x103)),_0x2001e5=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0xff)),_0x46e1f7=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0xf4)),_0x2a9104=await listDatasets(_0x5de454['appCode'],{..._0x53dc5e&&{'name':_0x53dc5e},..._0x2001e5&&{'code':_0x2001e5},..._0x46e1f7&&{'tableName':_0x46e1f7}});return{'ok':!![],'data':{'total':_0x2a9104['length'],'datasets':_0x2a9104[_0x48b94a(0xec)](_0x1295c1=>{const _0x46c2e0=_0x48b94a,_0x24261a=_0x1295c1[_0x46c2e0(0xf0)]??{};return{'id':_0x1295c1['id'],'code':_0x1295c1[_0x46c2e0(0xff)],'name':_0x1295c1[_0x46c2e0(0x103)],'source':_0x1295c1[_0x46c2e0(0xf5)],'description':_0x1295c1['description'],'table':_0x24261a[_0x46c2e0(0xe8)],'datasetKey':_0x24261a['datasetKey'],'pk':_0x24261a[_0x46c2e0(0x102)],'fields':_0x24261a[_0x46c2e0(0x106)]?_0x24261a['allFields'][_0x46c2e0(0x105)](',')['map'](_0x3a860d=>_0x3a860d[_0x46c2e0(0xeb)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a31_0x2b1873=a31_0x505d;(function(_0x2926fc,_0x191f13){const _0x2b86c=a31_0x505d,_0x4cc8dd=_0x2926fc();while(!![]){try{const _0x40a10f=-parseInt(_0x2b86c(0x113))/0x1+-parseInt(_0x2b86c(0x115))/0x2*(-parseInt(_0x2b86c(0x120))/0x3)+parseInt(_0x2b86c(0x11c))/0x4*(-parseInt(_0x2b86c(0x118))/0x5)+-parseInt(_0x2b86c(0x117))/0x6*(parseInt(_0x2b86c(0x11f))/0x7)+-parseInt(_0x2b86c(0x110))/0x8+parseInt(_0x2b86c(0x11b))/0x9*(-parseInt(_0x2b86c(0x119))/0xa)+-parseInt(_0x2b86c(0x114))/0xb*(-parseInt(_0x2b86c(0x11d))/0xc);if(_0x40a10f===_0x191f13)break;else _0x4cc8dd['push'](_0x4cc8dd['shift']());}catch(_0x5183b2){_0x4cc8dd['push'](_0x4cc8dd['shift']());}}}(a31_0x457f,0x700ed));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';function a31_0x505d(_0x3a8ddb,_0x3ad899){_0x3a8ddb=_0x3a8ddb-0x10d;const _0x457f62=a31_0x457f();let _0x505df6=_0x457f62[_0x3a8ddb];return _0x505df6;}function a31_0x457f(){const _0x448a5e=['str','2862176smrKzc','read','dataset','346601hsRbfB','7193835sExnrH','23708hBABQL','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','6oZxaZc','3626905pSoBHD','50990fsckUx','sdk-doc','441GKcajb','4dFVDSy','36FXbyzh','appCode','2746471ytMhzG','144IQIWOp','string','trim'];a31_0x457f=function(){return _0x448a5e;};return a31_0x457f();}export function formatDatasetSdkMarkdown(_0x573c37){const _0x463730=a31_0x505d,_0x421528=typeof _0x573c37===_0x463730(0x10d)?_0x573c37[_0x463730(0x10e)]():'';return _0x421528||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x2b1873(0x112),'command':a31_0x2b1873(0x11a),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a31_0x2b1873(0x111),'flags':[{...CODE_FLAG,'description':a31_0x2b1873(0x116)}],async 'execute'(_0x57e299){const _0x215f4d=a31_0x2b1873,_0x16217d=_0x57e299[_0x215f4d(0x10f)]('code'),_0x48bc53=await getDatasetSdkUsageDoc(_0x16217d,_0x57e299[_0x215f4d(0x11e)]);return{'ok':!![],'data':{'code':_0x16217d,'appCode':_0x57e299[_0x215f4d(0x11e)],'markdown':formatDatasetSdkMarkdown(_0x48bc53)}};}};
1
+ const a31_0x62ada2=a31_0xb9b2;function a31_0xb9b2(_0x2dc042,_0x542d63){_0x2dc042=_0x2dc042-0x10c;const _0x5c8c2a=a31_0x5c8c();let _0xb9b2b7=_0x5c8c2a[_0x2dc042];return _0xb9b2b7;}(function(_0x29350e,_0x555276){const _0x18d119=a31_0xb9b2,_0x1ee691=_0x29350e();while(!![]){try{const _0x45bdaa=-parseInt(_0x18d119(0x110))/0x1*(parseInt(_0x18d119(0x11a))/0x2)+-parseInt(_0x18d119(0x11c))/0x3+parseInt(_0x18d119(0x10e))/0x4*(parseInt(_0x18d119(0x111))/0x5)+parseInt(_0x18d119(0x10f))/0x6+parseInt(_0x18d119(0x116))/0x7+parseInt(_0x18d119(0x118))/0x8+parseInt(_0x18d119(0x113))/0x9*(-parseInt(_0x18d119(0x10c))/0xa);if(_0x45bdaa===_0x555276)break;else _0x1ee691['push'](_0x1ee691['shift']());}catch(_0x168a87){_0x1ee691['push'](_0x1ee691['shift']());}}}(a31_0x5c8c,0xd240c));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x62ada2(0x112);export function formatDatasetSdkMarkdown(_0x2dde9c){const _0x586666=a31_0x62ada2,_0x4281bd=typeof _0x2dde9c===_0x586666(0x11d)?_0x2dde9c[_0x586666(0x11b)]():'';return _0x4281bd||DEFAULT_MARKDOWN;}function a31_0x5c8c(){const _0xbfecff=['appCode','6481587gGUpIK','sdk-doc','3987160hzlAEn','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2iXnNBv','trim','417258qKYVai','string','9830xJiWcq','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','4bvulBN','7738134AnGYnm','1537609WGHlIN','3488765dbbuWX','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','8001oyqiHw','code'];a31_0x5c8c=function(){return _0xbfecff;};return a31_0x5c8c();}export const datasetSdkDoc={'service':'dataset','command':a31_0x62ada2(0x117),'description':a31_0x62ada2(0x10d),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x62ada2(0x119)}],async 'execute'(_0x133c05){const _0x51aaa1=a31_0x62ada2,_0x59c9a1=_0x133c05['str'](_0x51aaa1(0x114)),_0x3cf274=await getDatasetSdkUsageDoc(_0x59c9a1,_0x133c05[_0x51aaa1(0x115)]);return{'ok':!![],'data':{'code':_0x59c9a1,'appCode':_0x133c05[_0x51aaa1(0x115)],'markdown':formatDatasetSdkMarkdown(_0x3cf274)}};}};
@@ -1 +1 @@
1
- const a32_0x5b9631=a32_0x3cd8;(function(_0x1ce219,_0x4dcdc1){const _0x1fa6b0=a32_0x3cd8,_0x181783=_0x1ce219();while(!![]){try{const _0xe054d4=-parseInt(_0x1fa6b0(0x1b5))/0x1+parseInt(_0x1fa6b0(0x210))/0x2*(parseInt(_0x1fa6b0(0x1c0))/0x3)+-parseInt(_0x1fa6b0(0x1e5))/0x4+-parseInt(_0x1fa6b0(0x1fe))/0x5+parseInt(_0x1fa6b0(0x208))/0x6*(parseInt(_0x1fa6b0(0x1ad))/0x7)+parseInt(_0x1fa6b0(0x1c6))/0x8*(-parseInt(_0x1fa6b0(0x1a5))/0x9)+parseInt(_0x1fa6b0(0x1f7))/0xa;if(_0xe054d4===_0x4dcdc1)break;else _0x181783['push'](_0x181783['shift']());}catch(_0x51d1d3){_0x181783['push'](_0x181783['shift']());}}}(a32_0x2135,0xb1257));function a32_0x3cd8(_0x466583,_0x3d671c){_0x466583=_0x466583-0x1a2;const _0x213518=a32_0x2135();let _0x3cd87=_0x213518[_0x466583];return _0x3cd87;}import a32_0x48cd4e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x2135(){const _0x1d6385=['\x20\x20Config\x20JSON','doctor','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','76242plFwlJ','globalConfig','\x20\x20Repair\x20project:\x20\x20','defaultApp','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Built-in\x20Skill','11450zKFKjk','(none)','gray','name','\x20\x20Auth','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Service\x20Tree','green','(unnamed)','\x20\x20─','status','\x20config\x20delete\x20routing\x20--global','\x20config\x20delete\x20inherit','✓\x20Valid\x20JSON','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','160425pWVEGx','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config\x20init','state','services','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(invalid)','repairCommand','567JVRjVG','padEnd','ignored\x20in\x20','(default)','check','\x20\x20Installed\x20Path:\x20\x20','currentApp','\x20\x20Repair\x20global:\x20\x20\x20','986117itSqfz','bold','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','read','current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','✓\x20Loaded','accessKey','empty','327ssPYZB','\x20(accessKey)','\x20\x20API\x20Endpoints','registryPath','prototype','filter','648ajWBCE','pageSize','\x20\x20runtimeDomain:\x20\x20\x20','path','appCode','routing','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','✗\x20Invalid\x20JSON','\x20+\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','arch','\x20commands)','reason','(not\x20found)','\x20config\x20delete\x20routing','ClientAk','yellow','call','platform','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','Project','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','commandCount','raw','projectConfig','packageVersion','1397388aVffcu','(missing)','red','(not\x20set)','hasOwnProperty','⚠\x20Empty','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','(set,\x20length=','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','global','\x20doctor','repeat','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','Diagnose\x20CLI\x20configuration\x20and\x20environment','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','29948320zlahFE','version','verbose','log','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','5716220fCzUuV','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','\x20\x20Skill\x20Version:\x20\x20\x20','missing','skillVersion','not\x20configured'];a32_0x2135=function(){return _0x1d6385;};return a32_0x2135();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x821e02){const _0xae7e9c=a32_0x3cd8,_0x408621=getCliVersion(),_0x18c687=buildConfigFromFlags({});let _0x133bb8,_0x35b826;try{_0x133bb8=normalizeLovrabetRegion(_0x18c687[_0xae7e9c(0x1e2)][_0xae7e9c(0x1ec)]);}catch(_0x43e23c){_0x35b826=_0x43e23c instanceof Error?_0x43e23c:new Error(String(_0x43e23c));}let _0xd6bb48;if(!_0x35b826)try{await initGlobalEnvironment(_0x18c687);}catch(_0x15222d){_0xd6bb48=_0x15222d instanceof Error?_0x15222d:new Error(String(_0x15222d));}console['log'](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)](CLI_BIN_NAME+_0xae7e9c(0x1f1))),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x212)]('─'['repeat'](0x32))),console[_0xae7e9c(0x1fa)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x408621),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1ee)+process[_0xae7e9c(0x1f8)]),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x20c)+process[_0xae7e9c(0x1db)]+'\x20'+process[_0xae7e9c(0x1d3)]);const _0x50bf4b=inspectBuiltinSkill();console[_0xae7e9c(0x1fa)](),console['log'](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x20f))),console[_0xae7e9c(0x1fa)](a32_0x48cd4e['gray']('\x20\x20─'['repeat'](0x1e))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1eb)+(_0x50bf4b[_0xae7e9c(0x1a8)]===_0xae7e9c(0x1ba)?a32_0x48cd4e[_0xae7e9c(0x217)](_0xae7e9c(0x1f4)):a32_0x48cd4e['red']('✗\x20'+_0x50bf4b['state']))),console['log']('\x20\x20Package\x20Version:\x20'+_0x50bf4b[_0xae7e9c(0x1e4)]),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x201)+(_0x50bf4b[_0xae7e9c(0x203)]||a32_0x48cd4e[_0xae7e9c(0x212)]('(missing)'))),console['log'](_0xae7e9c(0x1b2)+(_0x50bf4b['installedPath']||a32_0x48cd4e[_0xae7e9c(0x212)]('(not\x20found)')));_0x50bf4b[_0xae7e9c(0x1a8)]!==_0xae7e9c(0x1ba)&&console[_0xae7e9c(0x1fa)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50bf4b[_0xae7e9c(0x1ac)]);_0x50bf4b['reason']&&console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1ff)+_0x50bf4b[_0xae7e9c(0x1d5)]);console[_0xae7e9c(0x1fa)](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)]('\x20\x20Config\x20Files')),console['log'](a32_0x48cd4e[_0xae7e9c(0x212)]('\x20\x20─'[_0xae7e9c(0x1f2)](0x1e)));const _0x1cd4a0=getGlobalConfigPath(),_0x4fde6d=getProjectConfigPath();console[_0xae7e9c(0x1fa)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1cd4a0||a32_0x48cd4e['gray'](_0xae7e9c(0x1d6)))),console[_0xae7e9c(0x1fa)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4fde6d||a32_0x48cd4e['gray']('(not\x20found)'))),console['log'](),console['log'](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x205))),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x212)]('\x20\x20─'[_0xae7e9c(0x1f2)](0x1e)));const _0x42fdf3=(_0x46a78a,_0x47694f)=>{const _0xd3dab9=_0xae7e9c;if(!_0x47694f){console[_0xd3dab9(0x1fa)]('\x20\x20'+_0x46a78a[_0xd3dab9(0x1ae)](0x11)+'\x20'+a32_0x48cd4e[_0xd3dab9(0x212)](_0xd3dab9(0x1bc)));return;}const _0x2cdfa9=inspectCliConfigJsonFile(_0x47694f);if(_0x2cdfa9['status']==='ok')console[_0xd3dab9(0x1fa)]('\x20\x20'+_0x46a78a['padEnd'](0x11)+'\x20'+a32_0x48cd4e[_0xd3dab9(0x217)](_0xd3dab9(0x1a2)));else{if(_0x2cdfa9[_0xd3dab9(0x21a)]===_0xd3dab9(0x1bf))console[_0xd3dab9(0x1fa)]('\x20\x20'+_0x46a78a[_0xd3dab9(0x1ae)](0x11)+'\x20'+a32_0x48cd4e['yellow'](_0xd3dab9(0x215)));else _0x2cdfa9['status']===_0xd3dab9(0x202)?console['log']('\x20\x20'+_0x46a78a[_0xd3dab9(0x1ae)](0x11)+'\x20'+a32_0x48cd4e[_0xd3dab9(0x212)](_0xd3dab9(0x1e6))):(console[_0xd3dab9(0x1fa)]('\x20\x20'+_0x46a78a['padEnd'](0x11)+'\x20'+a32_0x48cd4e[_0xd3dab9(0x1e7)](_0xd3dab9(0x1cf))),console[_0xd3dab9(0x1fa)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x48cd4e[_0xd3dab9(0x1e7)](_0x2cdfa9[_0xd3dab9(0x1b8)])));}};_0x42fdf3('Global',_0x1cd4a0),_0x42fdf3(_0xae7e9c(0x1de),_0x4fde6d);const _0x24ed69=loadRawConfigLayers(),_0x1e35fe=[Object[_0xae7e9c(0x1c4)][_0xae7e9c(0x1e9)]['call'](_0x24ed69[_0xae7e9c(0x209)],'inherit')?_0xae7e9c(0x1f0):null,Object[_0xae7e9c(0x1c4)]['hasOwnProperty'][_0xae7e9c(0x1da)](_0x24ed69['projectConfig'],_0xae7e9c(0x1ce))?_0xae7e9c(0x1fc):null][_0xae7e9c(0x1c5)](Boolean);_0x1e35fe['length']>0x0&&(console[_0xae7e9c(0x1fa)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0x48cd4e[_0xae7e9c(0x1d9)](_0xae7e9c(0x1af)+_0x1e35fe[_0xae7e9c(0x200)](_0xae7e9c(0x1d0))+'\x20config')),_0x1e35fe['includes']('project')&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0xae7e9c(0x21c)),_0x1e35fe['includes'](_0xae7e9c(0x1f0))&&console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1d2)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0xd6bb48&&(console[_0xae7e9c(0x1fa)](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)]('\x20\x20Routing\x20Configuration')),console[_0xae7e9c(0x1fa)](a32_0x48cd4e['gray'](_0xae7e9c(0x219)[_0xae7e9c(0x1f2)](0x1e))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1d1)+a32_0x48cd4e[_0xae7e9c(0x1e7)]('✗\x20Invalid')),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1ff)+_0xd6bb48[_0xae7e9c(0x1b8)]),Object[_0xae7e9c(0x1c4)][_0xae7e9c(0x1e9)][_0xae7e9c(0x1da)](_0x24ed69['projectConfig'],_0xae7e9c(0x1cb))&&console['log']('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0xae7e9c(0x1d7)),Object[_0xae7e9c(0x1c4)]['hasOwnProperty'][_0xae7e9c(0x1da)](_0x24ed69[_0xae7e9c(0x209)],_0xae7e9c(0x1cb))&&console[_0xae7e9c(0x1fa)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0xae7e9c(0x21b)));_0x35b826&&(console[_0xae7e9c(0x1fa)](),console['log'](a32_0x48cd4e['bold'](_0xae7e9c(0x1ef))),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x219)[_0xae7e9c(0x1f2)](0x1e))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1d1)+a32_0x48cd4e['red']('✗\x20Invalid')),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1ff)+_0x35b826[_0xae7e9c(0x1b8)]),Object[_0xae7e9c(0x1c4)][_0xae7e9c(0x1e9)]['call'](_0x24ed69[_0xae7e9c(0x1e3)],_0xae7e9c(0x1ec))&&console['log'](_0xae7e9c(0x20a)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object['prototype'][_0xae7e9c(0x1e9)][_0xae7e9c(0x1da)](_0x24ed69[_0xae7e9c(0x209)],_0xae7e9c(0x1ec))&&console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1b4)+CLI_BIN_NAME+_0xae7e9c(0x1a7)));console[_0xae7e9c(0x1fa)](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x1a4))),console['log'](a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x219)[_0xae7e9c(0x1f2)](0x1e))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1cd)+(_0x18c687[_0xae7e9c(0x1ca)]||a32_0x48cd4e['red'](_0xae7e9c(0x1e8)))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1df)+(_0x133bb8??a32_0x48cd4e['red'](_0xae7e9c(0x1ab)))),console[_0xae7e9c(0x1fa)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x18c687['locale']),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1b7)+(_0x18c687[_0xae7e9c(0x20b)]||a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x211)))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1bb)+(_0x18c687[_0xae7e9c(0x1b3)]||a32_0x48cd4e['gray']('(none)'))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1aa)+(_0x18c687['format']||a32_0x48cd4e[_0xae7e9c(0x212)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1fb)+(_0x18c687[_0xae7e9c(0x1c7)]??a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x1b0)))),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x20d)+_0x18c687['riskLevel']),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1cc)+_0x18c687[_0xae7e9c(0x1f9)]),console[_0xae7e9c(0x1fa)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0xae7e9c(0x1d8)]),console['log'](_0xae7e9c(0x207)+(_0x18c687[_0xae7e9c(0x1be)]?a32_0x48cd4e['green'](_0xae7e9c(0x1ed)+_0x18c687[_0xae7e9c(0x1be)]['length']+')'):a32_0x48cd4e[_0xae7e9c(0x212)]('(none)'))),console[_0xae7e9c(0x1fa)](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x1c2))),console['log'](a32_0x48cd4e['gray'](_0xae7e9c(0x219)[_0xae7e9c(0x1f2)](0x1e)));_0xd6bb48||_0x35b826?console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x48cd4e[_0xae7e9c(0x1e7)](_0xae7e9c(0x1f6))):(console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1a6)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1c8)+getRuntimeDomain()),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1dd)+getSkillDomain()),console['log']('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0xae7e9c(0x204))));console['log'](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x216))),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x219)['repeat'](0x1e)));const _0x56d953=inspectServiceRegistry();console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1f3)+_0x56d953[_0xae7e9c(0x1c3)]),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1d1)+formatServiceRegistryStatus(_0x56d953)),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1a3)+_0x56d953['serviceCount']),console[_0xae7e9c(0x1fa)](_0xae7e9c(0x1fd)+_0x56d953[_0xae7e9c(0x1e1)]);for(const _0x13855a of _0x56d953[_0xae7e9c(0x1a9)]){console['log']('\x20\x20'+(_0x13855a[_0xae7e9c(0x1e0)]+':')[_0xae7e9c(0x1ae)](0x11)+'\x20'+(_0x13855a[_0xae7e9c(0x213)]||a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x218)))+'\x20('+_0x13855a[_0xae7e9c(0x1e1)]+_0xae7e9c(0x1d4)),console[_0xae7e9c(0x1fa)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x13855a[_0xae7e9c(0x20e)][_0xae7e9c(0x1c9)]);}return console[_0xae7e9c(0x1fa)](),console[_0xae7e9c(0x1fa)](a32_0x48cd4e[_0xae7e9c(0x1b6)](_0xae7e9c(0x214))),console['log'](a32_0x48cd4e[_0xae7e9c(0x212)](_0xae7e9c(0x219)[_0xae7e9c(0x1f2)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x48cd4e[_0xae7e9c(0x217)](AUTH_MODE['ClientAk']+_0xae7e9c(0x1c1))),console['log'](_0xae7e9c(0x1dc)+a32_0x48cd4e[_0xae7e9c(0x212)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0xae7e9c(0x1fa)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3acef2){const _0x3373bc=a32_0x3cd8;if(_0x3acef2['status']==='ok')return a32_0x48cd4e[_0x3373bc(0x217)](_0x3373bc(0x1bd));if(_0x3acef2[_0x3373bc(0x21a)]===_0x3373bc(0x202))return a32_0x48cd4e[_0x3373bc(0x212)]('(not\x20found)');if(_0x3acef2[_0x3373bc(0x21a)]===_0x3373bc(0x1bf))return a32_0x48cd4e[_0x3373bc(0x1d9)](_0x3373bc(0x1ea));return a32_0x48cd4e[_0x3373bc(0x1e7)]('✗\x20Invalid'+(_0x3acef2['message']?':\x20'+_0x3acef2[_0x3373bc(0x1b8)]:''));}export const doctorDefinition={'service':a32_0x5b9631(0x206),'command':a32_0x5b9631(0x1b1),'description':a32_0x5b9631(0x1f5),'risk':a32_0x5b9631(0x1b9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x149a77=a32_0x5c76;(function(_0x23ae03,_0x257383){const _0x58cb8c=a32_0x5c76,_0x5d9f5b=_0x23ae03();while(!![]){try{const _0x55b25b=parseInt(_0x58cb8c(0x106))/0x1+parseInt(_0x58cb8c(0xf9))/0x2+-parseInt(_0x58cb8c(0xf6))/0x3*(parseInt(_0x58cb8c(0xf8))/0x4)+parseInt(_0x58cb8c(0xeb))/0x5*(parseInt(_0x58cb8c(0x148))/0x6)+-parseInt(_0x58cb8c(0x133))/0x7*(-parseInt(_0x58cb8c(0x14a))/0x8)+parseInt(_0x58cb8c(0x111))/0x9+-parseInt(_0x58cb8c(0x113))/0xa*(parseInt(_0x58cb8c(0x10d))/0xb);if(_0x55b25b===_0x257383)break;else _0x5d9f5b['push'](_0x5d9f5b['shift']());}catch(_0x355cd3){_0x5d9f5b['push'](_0x5d9f5b['shift']());}}}(a32_0x2028,0x3c95d));import a32_0xf2be34 from'chalk';function a32_0x5c76(_0x1cc85b,_0x33c8a9){_0x1cc85b=_0x1cc85b-0xe8;const _0x20284d=a32_0x2028();let _0x5c763b=_0x20284d[_0x1cc85b];return _0x5c763b;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a32_0x2028(){const _0x482858=['projectConfig','serviceCode','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','commandCount','globalConfig','check','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','skillVersion','\x20\x20Config\x20Files','join','message','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20\x20Service\x20Tree','✗\x20Invalid','\x20\x20Repair\x20project:\x20\x20','version','18ZMfyxa','(unnamed)','6192booZYB','read','filter','\x20\x20Country/Region\x20Configuration','(not\x20found)','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','padEnd','\x20\x20Skill\x20Version:\x20\x20\x20','red','call','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','state','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','serviceCount','inherit','region','status','missing','\x20\x20Package\x20Version:\x20','source','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','294285dkUIKX','reason','\x20\x20─','\x20\x20Merged\x20Config','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Global','raw','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','project','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','1434XvkHrq','(removed\x20—\x20cookie\x20auth\x20disabled)','436NwWLhN','666298jpqibE','\x20commands)','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','ClientAk','yellow','✗\x20Invalid\x20JSON','arch','doctor','\x20\x20auth\x20(effective):\x20','platform','Project','\x20\x20Auth','74178smRShu','\x20config\x20delete\x20inherit\x20--global','pageSize','currentApp','riskLevel','\x20\x20skillDomain:\x20\x20\x20\x20\x20','log','5334010nppxbv','gray','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','3061827WXWzCH','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','20HXpwAL','empty','includes','(none)','(missing)','defaultApp','locale','(not\x20set)','\x20\x20Installed\x20Path:\x20\x20','\x20+\x20','name','hasOwnProperty','green','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','current','✓\x20current','ignored\x20in\x20','accessKey','\x20Imported\x20from:\x20','bold','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20Session\x20check:\x20\x20\x20','routing','\x20\x20Legacy\x20inherit:\x20\x20\x20','⚠\x20Empty','(default:\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20config\x20delete\x20inherit','Diagnose\x20CLI\x20configuration\x20and\x20environment','3129wynezp','prototype','verbose'];a32_0x2028=function(){return _0x482858;};return a32_0x2028();}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(_0x47139a){const _0x70ea=a32_0x5c76,_0x409f06=getCliVersion(),_0x160f9d=buildConfigFromFlags({});let _0x372f47,_0x9740f5;try{_0x372f47=normalizeLovrabetRegion(_0x160f9d[_0x70ea(0xf1)][_0x70ea(0x15f)]);}catch(_0x266477){_0x9740f5=_0x266477 instanceof Error?_0x266477:new Error(String(_0x266477));}let _0x28de2a;if(!_0x9740f5)try{await initGlobalEnvironment(_0x160f9d);}catch(_0x5f3f8f){_0x28de2a=_0x5f3f8f instanceof Error?_0x5f3f8f:new Error(String(_0x5f3f8f));}console['log'](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](CLI_BIN_NAME+'\x20doctor')),console['log'](a32_0xf2be34[_0x70ea(0x10e)]('─'['repeat'](0x32))),console['log'](_0x70ea(0x110)+_0x409f06),console[_0x70ea(0x10c)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x70ea(0x147)]),console[_0x70ea(0x10c)](_0x70ea(0xf4)+process[_0x70ea(0x103)]+'\x20'+process[_0x70ea(0x100)]);const _0x2e1b46=inspectBuiltinSkill();console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Built-in\x20Skill')),console['log'](a32_0xf2be34['gray'](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x156)+(_0x2e1b46[_0x70ea(0x15a)]===_0x70ea(0x122)?a32_0xf2be34[_0x70ea(0x11f)](_0x70ea(0x123)):a32_0xf2be34[_0x70ea(0x154)]('✗\x20'+_0x2e1b46[_0x70ea(0x15a)]))),console['log'](_0x70ea(0xe8)+_0x2e1b46['packageVersion']),console[_0x70ea(0x10c)](_0x70ea(0x153)+(_0x2e1b46[_0x70ea(0x13e)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x117)))),console[_0x70ea(0x10c)](_0x70ea(0x11b)+(_0x2e1b46['installedPath']||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x14e))));_0x2e1b46['state']!==_0x70ea(0x122)&&console['log'](_0x70ea(0xea)+_0x2e1b46['repairCommand']);_0x2e1b46[_0x70ea(0xec)]&&console[_0x70ea(0x10c)](_0x70ea(0xfb)+_0x2e1b46[_0x70ea(0xec)]);console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34['bold'](_0x70ea(0x13f))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e)));const _0x2e32b8=getGlobalConfigPath(),_0x99c6f5=getProjectConfigPath();console['log'](_0x70ea(0x112)+(_0x2e32b8||a32_0xf2be34[_0x70ea(0x10e)]('(not\x20found)'))),console[_0x70ea(0x10c)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x99c6f5||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x14e)))),console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Config\x20JSON')),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)['repeat'](0x1e)));const _0x5d72e9=(_0x4a7ca0,_0x324315)=>{const _0x2293da=_0x70ea;if(!_0x324315){console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34['gray'](_0x2293da(0x130)));return;}const _0x37c03d=inspectCliConfigJsonFile(_0x324315);if(_0x37c03d[_0x2293da(0x160)]==='ok')console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x11f)]('✓\x20Valid\x20JSON'));else{if(_0x37c03d[_0x2293da(0x160)]===_0x2293da(0x114))console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0xfe)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x37c03d[_0x2293da(0x160)]===_0x2293da(0x161)?console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0['padEnd'](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x10e)](_0x2293da(0x117))):(console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x154)](_0x2293da(0xff))),console[_0x2293da(0x10c)]('\x20\x20'+''[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x154)](_0x37c03d[_0x2293da(0x141)])));}};_0x5d72e9(_0x70ea(0xf0),_0x2e32b8),_0x5d72e9(_0x70ea(0x104),_0x99c6f5);const _0x5f5c99=loadRawConfigLayers(),_0x56411a=[Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x13a)],'inherit')?'global':null,Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x15e))?_0x70ea(0xf3):null][_0x70ea(0x14c)](Boolean);_0x56411a[_0x70ea(0xfc)]>0x0&&(console[_0x70ea(0x10c)](_0x70ea(0x12c)+a32_0xf2be34[_0x70ea(0xfe)](_0x70ea(0x124)+_0x56411a[_0x70ea(0x140)](_0x70ea(0x11c))+'\x20config')),_0x56411a[_0x70ea(0x115)](_0x70ea(0xf3))&&console[_0x70ea(0x10c)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x70ea(0x131)),_0x56411a['includes']('global')&&console[_0x70ea(0x10c)](_0x70ea(0x150)+CLI_BIN_NAME+_0x70ea(0x107)));_0x28de2a&&(console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Routing\x20Configuration')),console['log'](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34['red']('✗\x20Invalid')),console[_0x70ea(0x10c)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28de2a['message']),Object[_0x70ea(0x134)]['hasOwnProperty'][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x12b))&&console[_0x70ea(0x10c)](_0x70ea(0x146)+CLI_BIN_NAME+_0x70ea(0xf5)),Object[_0x70ea(0x134)][_0x70ea(0x11e)]['call'](_0x5f5c99[_0x70ea(0x13a)],_0x70ea(0x12b))&&console[_0x70ea(0x10c)](_0x70ea(0x14f)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));_0x9740f5&&(console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x14d))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x145))),console[_0x70ea(0x10c)](_0x70ea(0xfb)+_0x9740f5[_0x70ea(0x141)]),Object[_0x70ea(0x134)][_0x70ea(0x11e)]['call'](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x15f))&&console[_0x70ea(0x10c)](_0x70ea(0x146)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x13a)],_0x70ea(0x15f))&&console[_0x70ea(0x10c)](_0x70ea(0x14f)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x70ea(0x10c)](),console['log'](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0xee))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x13c)+(_0x160f9d[_0x70ea(0x159)]||a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x11a)))),console[_0x70ea(0x10c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x372f47??a32_0xf2be34[_0x70ea(0x154)]('(invalid)'))),console['log'](_0x70ea(0x10f)+_0x160f9d[_0x70ea(0x119)]),console[_0x70ea(0x10c)](_0x70ea(0x158)+(_0x160f9d[_0x70ea(0x118)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x116)))),console['log'](_0x70ea(0xf2)+(_0x160f9d[_0x70ea(0x109)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x116)))),console[_0x70ea(0x10c)](_0x70ea(0x120)+(_0x160f9d['format']||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x12e)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x70ea(0x10c)](_0x70ea(0x12f)+(_0x160f9d[_0x70ea(0x108)]??a32_0xf2be34[_0x70ea(0x10e)]('(default)'))),console['log'](_0x70ea(0xef)+_0x160f9d[_0x70ea(0x10a)]),console[_0x70ea(0x10c)](_0x70ea(0x128)+_0x160f9d[_0x70ea(0x135)]),console[_0x70ea(0x10c)](_0x70ea(0x102)+AUTH_MODE[_0x70ea(0xfd)]),console[_0x70ea(0x10c)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x160f9d[_0x70ea(0x125)]?a32_0xf2be34[_0x70ea(0x11f)](_0x70ea(0x15c)+_0x160f9d['accessKey'][_0x70ea(0xfc)]+')'):a32_0xf2be34['gray'](_0x70ea(0x116)))),console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x157))),console[_0x70ea(0x10c)](a32_0xf2be34['gray'](_0x70ea(0xed)['repeat'](0x1e)));_0x28de2a||_0x9740f5?console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x138))):(console[_0x70ea(0x10c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x70ea(0x10c)](_0x70ea(0x151)+getRuntimeDomain()),console[_0x70ea(0x10c)](_0x70ea(0x10b)+getSkillDomain()),console[_0x70ea(0x10c)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??'not\x20configured')));console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34['bold'](_0x70ea(0x144))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)]('\x20\x20─'[_0x70ea(0x129)](0x1e)));const _0x58414a=inspectServiceRegistry();console[_0x70ea(0x10c)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58414a[_0x70ea(0x121)]),console[_0x70ea(0x10c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x58414a)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58414a[_0x70ea(0x15d)]),console[_0x70ea(0x10c)](_0x70ea(0x15b)+_0x58414a[_0x70ea(0x139)]);for(const _0x109f81 of _0x58414a['services']){console['log']('\x20\x20'+(_0x109f81[_0x70ea(0x137)]+':')[_0x70ea(0x152)](0x11)+'\x20'+(_0x109f81[_0x70ea(0x11d)]||a32_0xf2be34['gray'](_0x70ea(0x149)))+'\x20('+_0x109f81['commandCount']+_0x70ea(0xfa)),console[_0x70ea(0x10c)]('\x20\x20'+''[_0x70ea(0x152)](0x11)+_0x70ea(0x126)+_0x109f81[_0x70ea(0xe9)][_0x70ea(0x13d)]);}return console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x105))),console['log'](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xf2be34[_0x70ea(0x11f)](AUTH_MODE[_0x70ea(0xfd)]+'\x20(accessKey)')),console['log'](_0x70ea(0x12a)+a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xf7))),console[_0x70ea(0x10c)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1153e3){const _0x59c68b=a32_0x5c76;if(_0x1153e3[_0x59c68b(0x160)]==='ok')return a32_0xf2be34['green'](_0x59c68b(0x143));if(_0x1153e3[_0x59c68b(0x160)]===_0x59c68b(0x161))return a32_0xf2be34['gray'](_0x59c68b(0x14e));if(_0x1153e3[_0x59c68b(0x160)]===_0x59c68b(0x114))return a32_0xf2be34[_0x59c68b(0xfe)](_0x59c68b(0x12d));return a32_0xf2be34[_0x59c68b(0x154)]('✗\x20Invalid'+(_0x1153e3[_0x59c68b(0x141)]?':\x20'+_0x1153e3[_0x59c68b(0x141)]:''));}export const doctorDefinition={'service':a32_0x149a77(0x101),'command':a32_0x149a77(0x13b),'description':a32_0x149a77(0x132),'risk':a32_0x149a77(0x14b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x49b433=a33_0x11da;(function(_0x396281,_0x58752a){const _0x50a292=a33_0x11da,_0x3b9584=_0x396281();while(!![]){try{const _0x35672e=parseInt(_0x50a292(0x138))/0x1+parseInt(_0x50a292(0x117))/0x2*(parseInt(_0x50a292(0x123))/0x3)+-parseInt(_0x50a292(0x119))/0x4+parseInt(_0x50a292(0x11b))/0x5*(parseInt(_0x50a292(0x121))/0x6)+parseInt(_0x50a292(0x11a))/0x7*(parseInt(_0x50a292(0x128))/0x8)+-parseInt(_0x50a292(0x12a))/0x9+-parseInt(_0x50a292(0x13c))/0xa;if(_0x35672e===_0x58752a)break;else _0x3b9584['push'](_0x3b9584['shift']());}catch(_0x29e1d3){_0x3b9584['push'](_0x3b9584['shift']());}}}(a33_0xa3a2,0x3c39a));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a33_0x11da(_0xc1e77a,_0x341028){_0xc1e77a=_0xc1e77a-0x117;const _0xa3a22f=a33_0xa3a2();let _0x11daf7=_0xa3a22f[_0xc1e77a];return _0x11daf7;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x49b433(0x11d),'type':a33_0x49b433(0x124),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x49b433(0x11f),'type':'string','required':!![],'description':a33_0x49b433(0x122)},DOWNLOAD_FLAG={'name':a33_0x49b433(0x139),'type':'boolean','description':a33_0x49b433(0x12f)},LONG_TERM_FLAG={'name':'long-term','type':a33_0x49b433(0x137),'description':a33_0x49b433(0x136)};function requireFilePath(_0x33fd44){const _0x3eca95=a33_0x49b433,_0x304acd=_0x33fd44[_0x3eca95(0x126)]();if(!_0x304acd)throw CliErrors[_0x3eca95(0x12e)]('filePath\x20is\x20required.');return _0x304acd;}function a33_0xa3a2(){const _0x33d8b5=['appCode','validation','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Preview:\x20upload\x20','body','str','path','read','build','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','boolean','247563gEjgpU','download','File','POST','5617110XMUFhK','312vwzyQk','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1846932wCvIiY','1645nNwmsh','470vJnvMx','\x20to\x20runtime\x20app\x20','file','query-url','filepath','bool','28374KORFeo','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','5517aZkAVZ','string','filePath','trim','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','16360WYvbia','upload','1704798iHldnn','long-term','Uploaded\x20file:\x20'];a33_0xa3a2=function(){return _0x33d8b5;};return a33_0xa3a2();}const fileUpload={'service':a33_0x49b433(0x11d),'command':a33_0x49b433(0x129),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x49b433(0x134),'flags':[FILE_FLAG],async 'dryRun'(_0x2ae8ba){const _0x567aa9=a33_0x49b433,_0x494ca9=requireRuntimeUploadFile(_0x2ae8ba[_0x567aa9(0x132)](_0x567aa9(0x11d)),_0x567aa9(0x13a));return dryRun(_0x567aa9(0x13b),'/client/uploadFile')[_0x567aa9(0x131)]({'appCode':_0x2ae8ba['appCode'],'multipart':{'file':_0x494ca9}})['description'](_0x567aa9(0x130)+_0x494ca9[_0x567aa9(0x133)]+_0x567aa9(0x11c)+_0x2ae8ba[_0x567aa9(0x12d)])[_0x567aa9(0x135)]();},async 'execute'(_0x3c7105){const _0x51d264=a33_0x49b433,_0x2b5122=requireRuntimeUploadFile(_0x3c7105[_0x51d264(0x132)](_0x51d264(0x11d)),_0x51d264(0x13a)),_0x30c9b6=await uploadRuntimeFile(_0x3c7105[_0x51d264(0x12d)],_0x2b5122[_0x51d264(0x133)]);return{'ok':!![],'data':_0x30c9b6,'message':_0x30c9b6[_0x51d264(0x125)]?_0x51d264(0x12c)+_0x30c9b6[_0x51d264(0x125)]+_0x51d264(0x118):_0x51d264(0x127)};}},fileQueryUrl={'service':'file','command':a33_0x49b433(0x11e),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x49b433(0x134),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4bcb54){const _0x509fce=a33_0x49b433,_0x1f99d0=requireFilePath(_0x4bcb54[_0x509fce(0x132)]('filepath')),_0x4f66c2=await queryRuntimeFileUrl(_0x1f99d0,{'download':_0x4bcb54[_0x509fce(0x120)]('download'),'longTerm':_0x4bcb54[_0x509fce(0x120)](_0x509fce(0x12b))});return{'ok':!![],'data':_0x4f66c2};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a33_0x2dbb73=a33_0x3ad4;(function(_0x5d94f3,_0x4ffdd4){const _0x137e94=a33_0x3ad4,_0x4301fb=_0x5d94f3();while(!![]){try{const _0x94bf92=parseInt(_0x137e94(0x1e2))/0x1+parseInt(_0x137e94(0x1cd))/0x2+-parseInt(_0x137e94(0x1ee))/0x3+-parseInt(_0x137e94(0x1de))/0x4*(-parseInt(_0x137e94(0x1e1))/0x5)+-parseInt(_0x137e94(0x1ea))/0x6+-parseInt(_0x137e94(0x1ec))/0x7*(-parseInt(_0x137e94(0x1d5))/0x8)+parseInt(_0x137e94(0x1e8))/0x9;if(_0x94bf92===_0x4ffdd4)break;else _0x4301fb['push'](_0x4301fb['shift']());}catch(_0xd65a96){_0x4301fb['push'](_0x4301fb['shift']());}}}(a33_0x3a15,0xe74da));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a33_0x3ad4(_0x165e3b,_0x6a47c6){_0x165e3b=_0x165e3b-0x1cb;const _0x3a153f=a33_0x3a15();let _0x3ad4af=_0x3a153f[_0x165e3b];return _0x3ad4af;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a33_0x2dbb73(0x1df),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x2dbb73(0x1df),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a33_0x2dbb73(0x1cb),'description':a33_0x2dbb73(0x1ce)},LONG_TERM_FLAG={'name':a33_0x2dbb73(0x1d7),'type':'boolean','description':a33_0x2dbb73(0x1e7)};function a33_0x3a15(){const _0x2e96df=['query-url','479848xIqObx','/client/uploadFile','long-term','path','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','upload','filePath\x20is\x20required.','File','24hGihkG','string','Preview:\x20upload\x20','237855cntcgJ','434671tOzemL','download','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','description','Uploaded\x20file:\x20','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','476046sVVFjx','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','4695138qwvbBR','bool','49HwAPER','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1038564mLurNn','body','boolean','appCode','1766542AWawkB','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','build','str','filepath','read','filePath'];a33_0x3a15=function(){return _0x2e96df;};return a33_0x3a15();}function requireFilePath(_0xc60da){const _0x215594=a33_0x2dbb73,_0x51db4b=_0xc60da['trim']();if(!_0x51db4b)throw CliErrors['validation'](_0x215594(0x1dc));return _0x51db4b;}const fileUpload={'service':'file','command':a33_0x2dbb73(0x1db),'description':a33_0x2dbb73(0x1e4),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x4a65cd){const _0x35f00a=a33_0x2dbb73,_0x207b36=requireRuntimeUploadFile(_0x4a65cd[_0x35f00a(0x1d0)]('file'),'File');return dryRun('POST',_0x35f00a(0x1d6))[_0x35f00a(0x1ef)]({'appCode':_0x4a65cd[_0x35f00a(0x1cc)],'multipart':{'file':_0x207b36}})[_0x35f00a(0x1e5)](_0x35f00a(0x1e0)+_0x207b36[_0x35f00a(0x1d8)]+'\x20to\x20runtime\x20app\x20'+_0x4a65cd['appCode'])[_0x35f00a(0x1cf)]();},async 'execute'(_0x58135e){const _0x397c6e=a33_0x2dbb73,_0x2e7134=requireRuntimeUploadFile(_0x58135e[_0x397c6e(0x1d0)](_0x397c6e(0x1da)),_0x397c6e(0x1dd)),_0x3d07a8=await uploadRuntimeFile(_0x58135e[_0x397c6e(0x1cc)],_0x2e7134[_0x397c6e(0x1d8)]);return{'ok':!![],'data':_0x3d07a8,'message':_0x3d07a8[_0x397c6e(0x1d3)]?_0x397c6e(0x1e6)+_0x3d07a8['filePath']+_0x397c6e(0x1d9):_0x397c6e(0x1ed)};}},fileQueryUrl={'service':a33_0x2dbb73(0x1da),'command':a33_0x2dbb73(0x1d4),'description':a33_0x2dbb73(0x1e9),'risk':a33_0x2dbb73(0x1d2),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x52e9ce){const _0x53be55=a33_0x2dbb73,_0x191010=requireFilePath(_0x52e9ce[_0x53be55(0x1d0)](_0x53be55(0x1d1))),_0x472f57=await queryRuntimeFileUrl(_0x191010,{'download':_0x52e9ce[_0x53be55(0x1eb)](_0x53be55(0x1e3)),'longTerm':_0x52e9ce['bool'](_0x53be55(0x1d7))});return{'ok':!![],'data':_0x472f57};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x529880=a34_0x34c7;(function(_0x3aaad1,_0xabf11e){const _0x2de5a8=a34_0x34c7,_0x49a9f4=_0x3aaad1();while(!![]){try{const _0x282e4e=-parseInt(_0x2de5a8(0x162))/0x1*(parseInt(_0x2de5a8(0x149))/0x2)+-parseInt(_0x2de5a8(0x169))/0x3+-parseInt(_0x2de5a8(0x144))/0x4+-parseInt(_0x2de5a8(0x157))/0x5+parseInt(_0x2de5a8(0x145))/0x6+-parseInt(_0x2de5a8(0x15f))/0x7*(-parseInt(_0x2de5a8(0x167))/0x8)+parseInt(_0x2de5a8(0x14c))/0x9*(parseInt(_0x2de5a8(0x15a))/0xa);if(_0x282e4e===_0xabf11e)break;else _0x49a9f4['push'](_0x49a9f4['shift']());}catch(_0x4583c2){_0x49a9f4['push'](_0x49a9f4['shift']());}}}(a34_0x4e26,0xc80ba));function a34_0x34c7(_0x24c536,_0x397c17){_0x24c536=_0x24c536-0x141;const _0x4e26c8=a34_0x4e26();let _0x34c7d1=_0x4e26c8[_0x24c536];return _0x34c7d1;}import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a34_0x4e26(){const _0xfa08e5=['yes','40oyTlOC','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','2571630lBJSWG','appcode',')\x20instead\x20of\x20project','Write\x20to\x20global\x20(~/','utf8','app','string','project','\x22.\x20Allowed:\x20','env','Invalid\x20env\x20\x22','818684eLxMJA','8129268oeyPmW','global','defaultApp','Override\x20imported\x20default\x20env','724582XHvJfj','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`.','newConfigFileName','95103mMQtES','boolean','Skip\x20confirmation\x20when\x20overwriting','Imported\x20from\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','validation','Source\x20file\x20not\x20found:\x20','message','Override\x20imported\x20default\x20appcode','riskLevel','5116985aNzMfZ','cwd','join','1990VaRnBH','entries','Failed\x20to\x20parse\x20source\x20file:\x20','\x20\x20appcode:\x20','parse','240149SZNQLT','log','\x20\x20default:\x20','2vlNgVR','object','includes','apps'];a34_0x4e26=function(){return _0xfa08e5;};return a34_0x4e26();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a34_0x529880(0x16f),'description':a34_0x529880(0x150),'required':!![]},{'name':a34_0x529880(0x16a),'type':a34_0x529880(0x16f),'description':a34_0x529880(0x155)},{'name':a34_0x529880(0x142),'type':a34_0x529880(0x16f),'description':a34_0x529880(0x148),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x529880(0x146),'type':a34_0x529880(0x14d),'description':a34_0x529880(0x16c)+PRODUCT_CONFIG[a34_0x529880(0x14b)]+a34_0x529880(0x16b),'default':![]},{'name':a34_0x529880(0x166),'type':a34_0x529880(0x14d),'description':a34_0x529880(0x14e),'default':![]}];export async function runAppImport(_0x418b8e){const _0x4f16aa=a34_0x529880,_0x585e66=_0x418b8e[_0x4f16aa(0x146)]?_0x4f16aa(0x146):_0x4f16aa(0x170),_0x52a470=resolveWriteConfigPath(_0x585e66);await runFromImport(_0x418b8e,_0x52a470);}async function runFromImport(_0x15e133,_0x3a681a){const _0x4acfe4=a34_0x529880,_0x1afd69=resolveFilePath(_0x15e133['file']);if(!existsSync(_0x1afd69))throw CliErrors['validation'](_0x4acfe4(0x153)+_0x1afd69);const _0x2d6ab5=readSourceFile(_0x1afd69),_0x49afcb=convertToRuntimeConfig(_0x2d6ab5);_0x15e133['appcode']&&(_0x49afcb['appcode']=String(_0x15e133[_0x4acfe4(0x16a)]));_0x15e133[_0x4acfe4(0x142)]&&(_0x49afcb['env']=resolveImportEnv(_0x15e133));if(!_0x49afcb[_0x4acfe4(0x16a)])throw CliErrors['validation']('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x4acfe4(0x14a));await writeImportConfig(_0x3a681a,_0x49afcb,_0x15e133),console[_0x4acfe4(0x160)](_0x4acfe4(0x14f)+_0x1afd69),console[_0x4acfe4(0x160)]('\x20\x20config:\x20\x20'+_0x3a681a),console['log'](_0x4acfe4(0x15d)+_0x49afcb['appcode']);if(_0x49afcb[_0x4acfe4(0x147)])console[_0x4acfe4(0x160)](_0x4acfe4(0x161)+_0x49afcb[_0x4acfe4(0x147)]);}function convertToRuntimeConfig(_0x90d76a){const _0x24248c=a34_0x529880;if(_0x90d76a[_0x24248c(0x165)]&&typeof _0x90d76a[_0x24248c(0x165)]===_0x24248c(0x163))throw CliErrors[_0x24248c(0x152)](_0x24248c(0x151),_0x24248c(0x168));const _0xf20d19={};for(const _0x36994d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x90d76a[_0x36994d]!==undefined&&(_0xf20d19[_0x36994d]=_0x90d76a[_0x36994d]);}return!_0xf20d19['riskLevel']&&(_0xf20d19['riskLevel']=DEFAULT_CONFIG_VALUES[_0x24248c(0x156)]),_0xf20d19;}async function writeImportConfig(_0xdcd84f,_0x939cc8,_0x14f1a2){const _0x20e257=a34_0x529880;let _0x47bff5={};existsSync(_0xdcd84f)&&!_0x14f1a2[_0x20e257(0x166)]&&(_0x47bff5=readConfigFile(_0xdcd84f));for(const [_0x3cd19e,_0x30d5f2]of Object[_0x20e257(0x15b)](_0x939cc8)){_0x30d5f2!==undefined&&(_0x47bff5[_0x3cd19e]=_0x30d5f2);}if(_0x47bff5[_0x20e257(0x16e)])delete _0x47bff5[_0x20e257(0x16e)];writeConfigFile(_0xdcd84f,_0x47bff5);}function resolveFilePath(_0x2b7f6a){const _0x2a1252=a34_0x529880;return isAbsolute(_0x2b7f6a)?_0x2b7f6a:resolve(process[_0x2a1252(0x158)](),_0x2b7f6a);}function readSourceFile(_0x9450d8){const _0x458510=a34_0x529880;try{const _0x54fb6e=readFileSync(_0x9450d8,{'encoding':_0x458510(0x16d)});return JSON[_0x458510(0x15e)](_0x54fb6e);}catch(_0x2200f7){throw CliErrors[_0x458510(0x152)](_0x458510(0x15c)+_0x2200f7[_0x458510(0x154)]);}}function resolveImportEnv(_0x2794c9){const _0x4586ee=a34_0x529880,_0x2d567d=_0x2794c9[_0x4586ee(0x142)];if(_0x2d567d===undefined||_0x2d567d==='')return DEFAULT_CONFIG_VALUES[_0x4586ee(0x142)];if(!RUNTIME_ENV_VALUES[_0x4586ee(0x164)](_0x2d567d))throw CliErrors['validation'](_0x4586ee(0x143)+_0x2d567d+_0x4586ee(0x141)+RUNTIME_ENV_VALUES[_0x4586ee(0x159)](',\x20'));return _0x2d567d;}
1
+ function a34_0x2611(){const _0x353419=['message','apps','validation','Imported\x20from\x20','13820808TbiNTW','string','yes','boolean','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Write\x20to\x20global\x20(~/','6318865KMGSpX','Invalid\x20env\x20\x22','\x20\x20default:\x20','1472680KulGlk','975WARLhh','710602fuGkPK','join','Skip\x20confirmation\x20when\x20overwriting','\x20\x20config:\x20\x20','object','defaultApp','Failed\x20to\x20parse\x20source\x20file:\x20','log','entries','newConfigFileName','file','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','appcode','\x22.\x20Allowed:\x20','env','\x20\x20appcode:\x20','global','project','Source\x20file\x20not\x20found:\x20','includes','cwd','546024TrkiQu','riskLevel','27402AXMIvl','582233oSBlOr',')\x20instead\x20of\x20project'];a34_0x2611=function(){return _0x353419;};return a34_0x2611();}const a34_0x598d0c=a34_0x4fca;(function(_0x30be4f,_0x374854){const _0x25a5ee=a34_0x4fca,_0x2a3fb8=_0x30be4f();while(!![]){try{const _0x85c360=parseInt(_0x25a5ee(0xdb))/0x1+parseInt(_0x25a5ee(0xec))/0x2+-parseInt(_0x25a5ee(0xd8))/0x3+-parseInt(_0x25a5ee(0xea))/0x4+parseInt(_0x25a5ee(0xeb))/0x5*(parseInt(_0x25a5ee(0xda))/0x6)+parseInt(_0x25a5ee(0xe7))/0x7+-parseInt(_0x25a5ee(0xe1))/0x8;if(_0x85c360===_0x374854)break;else _0x2a3fb8['push'](_0x2a3fb8['shift']());}catch(_0xffcb04){_0x2a3fb8['push'](_0x2a3fb8['shift']());}}}(a34_0x2611,0x6e997));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x598d0c(0xf6),'type':a34_0x598d0c(0xe2),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a34_0x598d0c(0xf8),'type':a34_0x598d0c(0xe2),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a34_0x598d0c(0xe2),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x598d0c(0xfc),'type':a34_0x598d0c(0xe4),'description':a34_0x598d0c(0xe6)+PRODUCT_CONFIG[a34_0x598d0c(0xf5)]+a34_0x598d0c(0xdc),'default':![]},{'name':a34_0x598d0c(0xe3),'type':a34_0x598d0c(0xe4),'description':a34_0x598d0c(0xee),'default':![]}];export async function runAppImport(_0x3c6f6f){const _0x5d891c=a34_0x598d0c,_0xfb0fa5=_0x3c6f6f[_0x5d891c(0xfc)]?'global':_0x5d891c(0xfd),_0x2a3982=resolveWriteConfigPath(_0xfb0fa5);await runFromImport(_0x3c6f6f,_0x2a3982);}async function runFromImport(_0x4b46fe,_0x39141e){const _0x1fed88=a34_0x598d0c,_0x106915=resolveFilePath(_0x4b46fe['file']);if(!existsSync(_0x106915))throw CliErrors[_0x1fed88(0xdf)](_0x1fed88(0xfe)+_0x106915);const _0x64798c=readSourceFile(_0x106915),_0x3d3a2b=convertToRuntimeConfig(_0x64798c);_0x4b46fe[_0x1fed88(0xf8)]&&(_0x3d3a2b[_0x1fed88(0xf8)]=String(_0x4b46fe[_0x1fed88(0xf8)]));_0x4b46fe['env']&&(_0x3d3a2b[_0x1fed88(0xfa)]=resolveImportEnv(_0x4b46fe));if(!_0x3d3a2b['appcode'])throw CliErrors['validation'](_0x1fed88(0xe5),_0x1fed88(0xf7));await writeImportConfig(_0x39141e,_0x3d3a2b,_0x4b46fe),console[_0x1fed88(0xf3)](_0x1fed88(0xe0)+_0x106915),console[_0x1fed88(0xf3)](_0x1fed88(0xef)+_0x39141e),console[_0x1fed88(0xf3)](_0x1fed88(0xfb)+_0x3d3a2b['appcode']);if(_0x3d3a2b[_0x1fed88(0xf1)])console[_0x1fed88(0xf3)](_0x1fed88(0xe9)+_0x3d3a2b[_0x1fed88(0xf1)]);}function a34_0x4fca(_0x731733,_0x3cc1d8){_0x731733=_0x731733-0xd8;const _0x2611fa=a34_0x2611();let _0x4fcab1=_0x2611fa[_0x731733];return _0x4fcab1;}function convertToRuntimeConfig(_0x6638f9){const _0x1cd465=a34_0x598d0c;if(_0x6638f9[_0x1cd465(0xde)]&&typeof _0x6638f9['apps']===_0x1cd465(0xf0))throw CliErrors[_0x1cd465(0xdf)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x4f2729={};for(const _0x1097a9 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x6638f9[_0x1097a9]!==undefined&&(_0x4f2729[_0x1097a9]=_0x6638f9[_0x1097a9]);}return!_0x4f2729['riskLevel']&&(_0x4f2729['riskLevel']=DEFAULT_CONFIG_VALUES[_0x1cd465(0xd9)]),_0x4f2729;}async function writeImportConfig(_0x55171c,_0x16f764,_0x36950d){const _0x10de10=a34_0x598d0c;let _0x3d1611={};existsSync(_0x55171c)&&!_0x36950d['yes']&&(_0x3d1611=readConfigFile(_0x55171c));for(const [_0x2dae99,_0x244289]of Object[_0x10de10(0xf4)](_0x16f764)){_0x244289!==undefined&&(_0x3d1611[_0x2dae99]=_0x244289);}if(_0x3d1611['app'])delete _0x3d1611['app'];writeConfigFile(_0x55171c,_0x3d1611);}function resolveFilePath(_0x146c05){const _0x48e073=a34_0x598d0c;return isAbsolute(_0x146c05)?_0x146c05:resolve(process[_0x48e073(0x100)](),_0x146c05);}function readSourceFile(_0x3eb04c){const _0x4c198b=a34_0x598d0c;try{const _0x23aeaf=readFileSync(_0x3eb04c,{'encoding':'utf8'});return JSON['parse'](_0x23aeaf);}catch(_0x16d183){throw CliErrors['validation'](_0x4c198b(0xf2)+_0x16d183[_0x4c198b(0xdd)]);}}function resolveImportEnv(_0x5523a1){const _0x589e57=a34_0x598d0c,_0x5917e5=_0x5523a1[_0x589e57(0xfa)];if(_0x5917e5===undefined||_0x5917e5==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x589e57(0xff)](_0x5917e5))throw CliErrors[_0x589e57(0xdf)](_0x589e57(0xe8)+_0x5917e5+_0x589e57(0xf9)+RUNTIME_ENV_VALUES[_0x589e57(0xed)](',\x20'));return _0x5917e5;}
@@ -1 +1 @@
1
- function a35_0x22c8(_0x103909,_0x1cecae){_0x103909=_0x103909-0xd0;const _0x20bc09=a35_0x20bc();let _0x22c8dd=_0x20bc09[_0x103909];return _0x22c8dd;}const a35_0x42943e=a35_0x22c8;(function(_0x439a34,_0x1d884e){const _0x458eec=a35_0x22c8,_0x339980=_0x439a34();while(!![]){try{const _0x5e4564=parseInt(_0x458eec(0xf3))/0x1*(-parseInt(_0x458eec(0xdd))/0x2)+-parseInt(_0x458eec(0xd8))/0x3+-parseInt(_0x458eec(0x10c))/0x4*(parseInt(_0x458eec(0xf2))/0x5)+parseInt(_0x458eec(0xda))/0x6*(-parseInt(_0x458eec(0xf1))/0x7)+parseInt(_0x458eec(0xd5))/0x8+-parseInt(_0x458eec(0xeb))/0x9+-parseInt(_0x458eec(0xdc))/0xa*(-parseInt(_0x458eec(0x111))/0xb);if(_0x5e4564===_0x1d884e)break;else _0x339980['push'](_0x339980['shift']());}catch(_0x1554e8){_0x339980['push'](_0x339980['shift']());}}}(a35_0x20bc,0x64f2a));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';function a35_0x20bc(){const _0x4fbbf7=['dryRun','5055827aHJuty','10JuMkIy','14hoSgth','detail','write','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','Override\x20the\x20existing\x20entry\x20title','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','signal','path','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Personal\x20knowledge-base\x20entry\x20ID','query','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','map','description','create','File\x20path\x20is\x20required.','Created\x20KB\x20entry\x20','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','topk','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','body','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','parse','utf8','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','133832ArfOYE','file','read','File\x20is\x20not\x20a\x20regular\x20file:\x20','num','230879kaDbfQ','string','length','version','title','Search\x20query\x20is\x20required.','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','build','bool','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','execute','2448160GbitMK','method','trim','702147HBMuiN','verbose','6yuvCSc','validation','890SaEkOy','58742KBTmzU','File\x20not\x20found:\x20','kb-service-url','update','scope','flag','createTime','ragStatus','appCode','search','str','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','list','2935251zcIXwe','ragErrorMessage','updateTime','jsonBody','number'];a35_0x20bc=function(){return _0x4fbbf7;};return a35_0x20bc();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a35_0x42943e(0x112),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':'file','type':a35_0x42943e(0x112),'required':!![],'description':a35_0x42943e(0xd3)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x42943e(0xe8)},TOPK_FLAG={'name':a35_0x42943e(0x105),'type':a35_0x42943e(0xef),'description':a35_0x42943e(0xd2)};function readKnowledgeFile(_0x18818b){const _0x57043a=a35_0x42943e;if(!_0x18818b)throw CliErrors[_0x57043a(0xdb)](_0x57043a(0x102));if(!existsSync(_0x18818b))throw CliErrors[_0x57043a(0xdb)](_0x57043a(0xde)+_0x18818b);if(!statSync(_0x18818b)['isFile']())throw CliErrors['validation'](_0x57043a(0x10f)+_0x18818b);return readFileSync(_0x18818b,_0x57043a(0x10a));}function summarizePersonalItem(_0x3e3572){const _0x53439b=a35_0x42943e;return{'id':_0x3e3572['id'],'title':_0x3e3572[_0x53439b(0x115)],'version':_0x3e3572['version'],'ragStatus':_0x3e3572['ragStatus'],'ragErrorMessage':_0x3e3572[_0x53439b(0xec)],'updateTime':_0x3e3572[_0x53439b(0xed)]};}function detailPersonalItem(_0x526056){const _0x32c43e=a35_0x42943e;return{'id':_0x526056['id'],'appCode':_0x526056[_0x32c43e(0xe5)],'scope':_0x526056[_0x32c43e(0xe1)],'userId':_0x526056['userId'],'title':_0x526056[_0x32c43e(0x115)],'content':_0x526056['content'],'version':_0x526056[_0x32c43e(0x114)],'ragStatus':_0x526056[_0x32c43e(0xe4)],'ragErrorMessage':_0x526056[_0x32c43e(0xec)],'createTime':_0x526056[_0x32c43e(0xe3)],'updateTime':_0x526056[_0x32c43e(0xed)]};}function readTopK(_0x5748cb){const _0x327422=a35_0x42943e,_0x17536a=_0x5748cb['flag'](_0x327422(0x105));if(_0x17536a===undefined||_0x17536a===null||_0x17536a==='')return undefined;const _0x10a266=_0x5748cb[_0x327422(0x110)](_0x327422(0x105));if(!Number['isSafeInteger'](_0x10a266)||_0x10a266<0x1||_0x10a266>0x32)throw CliErrors[_0x327422(0xdb)](_0x327422(0xf6));return _0x10a266;}const kbList={'service':'kb','command':a35_0x42943e(0xea),'description':a35_0x42943e(0xfb),'risk':a35_0x42943e(0x10e),'flags':[VERBOSE_FLAG],async 'execute'(_0x3cad27){const _0x2141cb=a35_0x42943e,_0x1c0f94=await listPersonalKnowledgeBaseItems(_0x3cad27[_0x2141cb(0xe5)],_0x3cad27[_0x2141cb(0xf9)]);if(_0x3cad27[_0x2141cb(0xd1)](_0x2141cb(0xd9)))return{'ok':!![],'data':{'total':_0x1c0f94[_0x2141cb(0x113)],'items':_0x1c0f94}};return{'ok':!![],'data':{'total':_0x1c0f94[_0x2141cb(0x113)],'items':_0x1c0f94[_0x2141cb(0xff)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x42943e(0xf4),'description':a35_0x42943e(0xfe),'risk':a35_0x42943e(0x10e),'flags':[{...ID_FLAG,'type':a35_0x42943e(0x112),'description':a35_0x42943e(0xfc)}],async 'execute'(_0x59b96f){const _0x561be4=a35_0x42943e,_0x4f9e2f=await getPersonalKnowledgeBaseItem(_0x59b96f[_0x561be4(0xe7)]('id'),_0x59b96f[_0x561be4(0xe5)],_0x59b96f['signal']);return{'ok':!![],'data':detailPersonalItem(_0x4f9e2f)};}},kbCreate={'service':'kb','command':a35_0x42943e(0x101),'description':a35_0x42943e(0x106),'risk':a35_0x42943e(0xf5),'confirmationDescription':a35_0x42943e(0x104),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x25bd88){const _0x46a76a=a35_0x42943e,_0xef0c9f=_0x25bd88[_0x46a76a(0xe7)](_0x46a76a(0x115)),_0x46dc29=readKnowledgeFile(_0x25bd88[_0x46a76a(0xe7)](_0x46a76a(0x10d))),_0x366ed1=await createPersonalKnowledgeBaseItem(_0x25bd88['appCode'],{'title':_0xef0c9f,'content':_0x46dc29},_0x25bd88[_0x46a76a(0xf9)]);return{'ok':!![],'data':summarizePersonalItem(_0x366ed1),'message':_0x46a76a(0x103)+_0x366ed1['id']+'\x20('+_0x366ed1[_0x46a76a(0x115)]+')'};},async 'dryRun'(_0x5cacfa){const _0x4cddae=a35_0x42943e,_0x1a80a6=_0x5cacfa['str'](_0x4cddae(0x115)),_0x3ebdde=readKnowledgeFile(_0x5cacfa[_0x4cddae(0xe7)](_0x4cddae(0x10d))),_0x22c173=planPersonalKnowledgeWrite(_0x5cacfa[_0x4cddae(0xe5)],{'title':_0x1a80a6,'content':_0x3ebdde});return dryRun(_0x22c173['method'],_0x22c173[_0x4cddae(0xfa)])[_0x4cddae(0x107)](JSON[_0x4cddae(0x109)](_0x22c173[_0x4cddae(0xee)]))[_0x4cddae(0x100)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x1a80a6+'\x22')[_0x4cddae(0xd0)]();}},kbUpdate={'service':'kb','command':a35_0x42943e(0xe0),'description':a35_0x42943e(0x10b),'risk':'write','confirmationDescription':a35_0x42943e(0xe9),'flags':[{...ID_FLAG,'type':a35_0x42943e(0x112),'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a35_0x42943e(0xf7)},FILE_FLAG],async 'execute'(_0x5224c2){const _0x53e933=a35_0x42943e,_0xe60d0b=_0x5224c2['str']('id'),_0x281abe=readKnowledgeFile(_0x5224c2[_0x53e933(0xe7)](_0x53e933(0x10d))),_0x179552=_0x5224c2[_0x53e933(0xe7)](_0x53e933(0x115))||undefined,_0x3c7d4e=await updatePersonalKnowledgeBaseItem(_0xe60d0b,_0x5224c2[_0x53e933(0xe5)],{'title':_0x179552,'content':_0x281abe},_0x5224c2[_0x53e933(0xf9)]);return{'ok':!![],'data':summarizePersonalItem(_0x3c7d4e),'message':'Updated\x20KB\x20entry\x20'+_0x3c7d4e['id']+'\x20('+_0x3c7d4e[_0x53e933(0x115)]+')'};},async 'dryRun'(_0x2e596f){const _0x574f95=a35_0x42943e,_0x3b3698=_0x2e596f[_0x574f95(0xe7)]('id'),_0x2669da=readKnowledgeFile(_0x2e596f['str']('file')),_0x3dd01f=await getPersonalKnowledgeBaseItem(_0x3b3698,_0x2e596f['appCode'],_0x2e596f['signal']),_0x573ab2=_0x2e596f[_0x574f95(0xe7)](_0x574f95(0x115))||_0x3dd01f[_0x574f95(0x115)],_0x1e8e46=planPersonalKnowledgeWrite(_0x2e596f[_0x574f95(0xe5)],{'title':_0x573ab2,'content':_0x2669da},_0x3b3698,_0x3dd01f['version']);return dryRun(_0x1e8e46[_0x574f95(0xd6)],_0x1e8e46[_0x574f95(0xfa)])['body'](JSON[_0x574f95(0x109)](_0x1e8e46[_0x574f95(0xee)]))[_0x574f95(0x100)](_0x574f95(0xf8)+_0x3b3698)[_0x574f95(0xd0)]();}};function readSearchServiceUrl(_0x3597f0){const _0x3ab36b=a35_0x42943e;if(_0x3597f0[_0x3ab36b(0xe2)](_0x3ab36b(0xdf))!==undefined)return normalizeKbServiceOrigin(_0x3597f0[_0x3ab36b(0xe7)]('kb-service-url'));const _0x190f59=getKbServiceDomain();if(!_0x190f59)throw CliErrors[_0x3ab36b(0xdb)](_0x3ab36b(0x108),'Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x190f59);}const kbSearch={'service':'kb','command':a35_0x42943e(0xe6),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a35_0x42943e(0x10e),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x42943e(0xdf),'type':a35_0x42943e(0x112),'required':![],'description':a35_0x42943e(0x117)}],async 'validate'(_0x53d0fa){const _0x5cf453=a35_0x42943e;if(!_0x53d0fa['str'](_0x5cf453(0xfd))[_0x5cf453(0xd7)]())throw CliErrors[_0x5cf453(0xdb)](_0x5cf453(0x116));readTopK(_0x53d0fa),readSearchServiceUrl(_0x53d0fa);},async 'execute'(_0x2f35eb){const _0x1453ff=a35_0x42943e,_0x3562f3=_0x2f35eb[_0x1453ff(0xe7)](_0x1453ff(0xfd))[_0x1453ff(0xd7)](),_0x5ecfb6=readTopK(_0x2f35eb),_0x30c003=readSearchServiceUrl(_0x2f35eb),_0x1b6c8f={'appCode':_0x2f35eb[_0x1453ff(0xe5)],'accessKey':_0x2f35eb['accessKey']??'','query':_0x3562f3,..._0x5ecfb6!==undefined?{'topK':_0x5ecfb6}:{},'signal':_0x2f35eb[_0x1453ff(0xf9)]},_0x45666d=await searchDirectKnowledge({..._0x1b6c8f,'serviceUrl':_0x30c003});return{'ok':!![],'data':_0x45666d};}};function managementCommand(_0x22620b){const _0x377ffd=a35_0x42943e;return{..._0x22620b,'execute':_0x1d393b=>withKbManagementOrigin(()=>_0x22620b[_0x377ffd(0xd4)](_0x1d393b)),..._0x22620b[_0x377ffd(0xf0)]?{'dryRun':_0x2a01b2=>withKbManagementOrigin(()=>_0x22620b[_0x377ffd(0xf0)](_0x2a01b2))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate]['map'](managementCommand),kbSearch];
1
+ function a35_0x4b37(_0x275407,_0x37702b){_0x275407=_0x275407-0xa3;const _0x11dfc9=a35_0x11df();let _0x4b378d=_0x11dfc9[_0x275407];return _0x4b378d;}const a35_0x1c02ed=a35_0x4b37;(function(_0x49f62f,_0x355632){const _0x2dcefc=a35_0x4b37,_0x65a13c=_0x49f62f();while(!![]){try{const _0xccf33d=parseInt(_0x2dcefc(0xc1))/0x1*(parseInt(_0x2dcefc(0xe8))/0x2)+parseInt(_0x2dcefc(0xb2))/0x3+-parseInt(_0x2dcefc(0xe6))/0x4*(parseInt(_0x2dcefc(0xcc))/0x5)+-parseInt(_0x2dcefc(0xb1))/0x6+-parseInt(_0x2dcefc(0xb8))/0x7+parseInt(_0x2dcefc(0xe9))/0x8+-parseInt(_0x2dcefc(0xac))/0x9*(-parseInt(_0x2dcefc(0xd3))/0xa);if(_0xccf33d===_0x355632)break;else _0x65a13c['push'](_0x65a13c['shift']());}catch(_0x26c9c2){_0x65a13c['push'](_0x65a13c['shift']());}}}(a35_0x11df,0x87290));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';function a35_0x11df(){const _0x279edd=['scope','trim','content','search','updateTime','validation','dryRun','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','Override\x20the\x20existing\x20entry\x20title','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','bool','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','write','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','File\x20not\x20found:\x20','signal','8VUohdb','ragStatus','2hSpybl','4615672hfgmEs','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','read','userId','parse','Created\x20KB\x20entry\x20','File\x20path\x20is\x20required.','verbose','jsonBody','Personal\x20knowledge-base\x20entry\x20title','9zDfJJn','ragErrorMessage','isSafeInteger','kb-service-url','Search\x20query\x20is\x20required.','6418980pdvThQ','2927424JXViST','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','description','length','isFile','number','6501803bxCmxo','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','map','path','build','str','topk','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','num','387526DkDOhQ','title','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','method','execute','appCode','create','version','Personal\x20knowledge-base\x20entry\x20ID','file','1972730WyTNBU','string','File\x20is\x20not\x20a\x20regular\x20file:\x20','flag','update','query','body','14010740GGtfyK'];a35_0x11df=function(){return _0x279edd;};return a35_0x11df();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x1c02ed(0xc2),'type':a35_0x1c02ed(0xcd),'required':!![],'description':a35_0x1c02ed(0xab)},FILE_FLAG={'name':a35_0x1c02ed(0xcb),'type':a35_0x1c02ed(0xcd),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a35_0x1c02ed(0xd1),'type':a35_0x1c02ed(0xcd),'required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':'topk','type':a35_0x1c02ed(0xb7),'description':a35_0x1c02ed(0xe0)};function readKnowledgeFile(_0x53356a){const _0x41fd94=a35_0x1c02ed;if(!_0x53356a)throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xa8));if(!existsSync(_0x53356a))throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xe4)+_0x53356a);if(!statSync(_0x53356a)[_0x41fd94(0xb6)]())throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xce)+_0x53356a);return readFileSync(_0x53356a,'utf8');}function summarizePersonalItem(_0x4782cf){const _0x3f285a=a35_0x1c02ed;return{'id':_0x4782cf['id'],'title':_0x4782cf[_0x3f285a(0xc2)],'version':_0x4782cf[_0x3f285a(0xc9)],'ragStatus':_0x4782cf[_0x3f285a(0xe7)],'ragErrorMessage':_0x4782cf[_0x3f285a(0xad)],'updateTime':_0x4782cf[_0x3f285a(0xd8)]};}function detailPersonalItem(_0x4d1a88){const _0x38e8fe=a35_0x1c02ed;return{'id':_0x4d1a88['id'],'appCode':_0x4d1a88['appCode'],'scope':_0x4d1a88[_0x38e8fe(0xd4)],'userId':_0x4d1a88[_0x38e8fe(0xa5)],'title':_0x4d1a88[_0x38e8fe(0xc2)],'content':_0x4d1a88[_0x38e8fe(0xd6)],'version':_0x4d1a88[_0x38e8fe(0xc9)],'ragStatus':_0x4d1a88[_0x38e8fe(0xe7)],'ragErrorMessage':_0x4d1a88[_0x38e8fe(0xad)],'createTime':_0x4d1a88['createTime'],'updateTime':_0x4d1a88[_0x38e8fe(0xd8)]};}function readTopK(_0x4f5be4){const _0x1cd408=a35_0x1c02ed,_0xb1723=_0x4f5be4[_0x1cd408(0xcf)](_0x1cd408(0xbe));if(_0xb1723===undefined||_0xb1723===null||_0xb1723==='')return undefined;const _0x587830=_0x4f5be4[_0x1cd408(0xc0)](_0x1cd408(0xbe));if(!Number[_0x1cd408(0xae)](_0x587830)||_0x587830<0x1||_0x587830>0x32)throw CliErrors['validation'](_0x1cd408(0xde));return _0x587830;}const kbList={'service':'kb','command':'list','description':a35_0x1c02ed(0xbf),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0xd4f853){const _0x3e2cd6=a35_0x1c02ed,_0x548cc8=await listPersonalKnowledgeBaseItems(_0xd4f853[_0x3e2cd6(0xc7)],_0xd4f853[_0x3e2cd6(0xe5)]);if(_0xd4f853[_0x3e2cd6(0xdf)](_0x3e2cd6(0xa9)))return{'ok':!![],'data':{'total':_0x548cc8[_0x3e2cd6(0xb5)],'items':_0x548cc8}};return{'ok':!![],'data':{'total':_0x548cc8[_0x3e2cd6(0xb5)],'items':_0x548cc8['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a35_0x1c02ed(0xa3),'risk':a35_0x1c02ed(0xa4),'flags':[{...ID_FLAG,'type':a35_0x1c02ed(0xcd),'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x4bc7dd){const _0x51744d=a35_0x1c02ed,_0x567fb1=await getPersonalKnowledgeBaseItem(_0x4bc7dd[_0x51744d(0xbd)]('id'),_0x4bc7dd[_0x51744d(0xc7)],_0x4bc7dd['signal']);return{'ok':!![],'data':detailPersonalItem(_0x567fb1)};}},kbCreate={'service':'kb','command':a35_0x1c02ed(0xc8),'description':a35_0x1c02ed(0xc4),'risk':'write','confirmationDescription':a35_0x1c02ed(0xdb),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x3ffce2){const _0xedada4=a35_0x1c02ed,_0x354cf5=_0x3ffce2[_0xedada4(0xbd)](_0xedada4(0xc2)),_0x49532e=readKnowledgeFile(_0x3ffce2['str']('file')),_0x5d9382=await createPersonalKnowledgeBaseItem(_0x3ffce2[_0xedada4(0xc7)],{'title':_0x354cf5,'content':_0x49532e},_0x3ffce2[_0xedada4(0xe5)]);return{'ok':!![],'data':summarizePersonalItem(_0x5d9382),'message':_0xedada4(0xa7)+_0x5d9382['id']+'\x20('+_0x5d9382[_0xedada4(0xc2)]+')'};},async 'dryRun'(_0x4aaf13){const _0x158da5=a35_0x1c02ed,_0x18f587=_0x4aaf13['str'](_0x158da5(0xc2)),_0x26a277=readKnowledgeFile(_0x4aaf13[_0x158da5(0xbd)]('file')),_0x5a89e8=planPersonalKnowledgeWrite(_0x4aaf13['appCode'],{'title':_0x18f587,'content':_0x26a277});return dryRun(_0x5a89e8[_0x158da5(0xc5)],_0x5a89e8['path'])[_0x158da5(0xd2)](JSON[_0x158da5(0xa6)](_0x5a89e8['jsonBody']))[_0x158da5(0xb4)](_0x158da5(0xe3)+_0x18f587+'\x22')[_0x158da5(0xbc)]();}},kbUpdate={'service':'kb','command':a35_0x1c02ed(0xd0),'description':a35_0x1c02ed(0xdd),'risk':a35_0x1c02ed(0xe2),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'type':'string','description':a35_0x1c02ed(0xca)},{...TITLE_FLAG,'required':![],'description':a35_0x1c02ed(0xdc)},FILE_FLAG],async 'execute'(_0xc6f165){const _0x3da0b3=a35_0x1c02ed,_0x50e3e5=_0xc6f165[_0x3da0b3(0xbd)]('id'),_0x3fecd2=readKnowledgeFile(_0xc6f165['str'](_0x3da0b3(0xcb))),_0x4c1cf6=_0xc6f165['str'](_0x3da0b3(0xc2))||undefined,_0x538e47=await updatePersonalKnowledgeBaseItem(_0x50e3e5,_0xc6f165['appCode'],{'title':_0x4c1cf6,'content':_0x3fecd2},_0xc6f165[_0x3da0b3(0xe5)]);return{'ok':!![],'data':summarizePersonalItem(_0x538e47),'message':'Updated\x20KB\x20entry\x20'+_0x538e47['id']+'\x20('+_0x538e47[_0x3da0b3(0xc2)]+')'};},async 'dryRun'(_0x440fb9){const _0x482fe5=a35_0x1c02ed,_0x1655a5=_0x440fb9[_0x482fe5(0xbd)]('id'),_0x2ce27f=readKnowledgeFile(_0x440fb9['str'](_0x482fe5(0xcb))),_0x5628c3=await getPersonalKnowledgeBaseItem(_0x1655a5,_0x440fb9[_0x482fe5(0xc7)],_0x440fb9['signal']),_0x4ba0e6=_0x440fb9[_0x482fe5(0xbd)](_0x482fe5(0xc2))||_0x5628c3[_0x482fe5(0xc2)],_0x28c44d=planPersonalKnowledgeWrite(_0x440fb9[_0x482fe5(0xc7)],{'title':_0x4ba0e6,'content':_0x2ce27f},_0x1655a5,_0x5628c3[_0x482fe5(0xc9)]);return dryRun(_0x28c44d['method'],_0x28c44d[_0x482fe5(0xbb)])['body'](JSON['parse'](_0x28c44d[_0x482fe5(0xaa)]))[_0x482fe5(0xb4)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1655a5)[_0x482fe5(0xbc)]();}};function readSearchServiceUrl(_0x39ca8a){const _0x508de7=a35_0x1c02ed;if(_0x39ca8a[_0x508de7(0xcf)](_0x508de7(0xaf))!==undefined)return normalizeKbServiceOrigin(_0x39ca8a[_0x508de7(0xbd)](_0x508de7(0xaf)));const _0xa1eed=getKbServiceDomain();if(!_0xa1eed)throw CliErrors[_0x508de7(0xd9)](_0x508de7(0xb9),_0x508de7(0xc3));return normalizeKbServiceOrigin(_0xa1eed);}const kbSearch={'service':'kb','command':a35_0x1c02ed(0xd7),'description':a35_0x1c02ed(0xb3),'risk':a35_0x1c02ed(0xa4),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x1c02ed(0xaf),'type':'string','required':![],'description':a35_0x1c02ed(0xe1)}],async 'validate'(_0x2772c4){const _0x4a6c94=a35_0x1c02ed;if(!_0x2772c4['str'](_0x4a6c94(0xd1))[_0x4a6c94(0xd5)]())throw CliErrors[_0x4a6c94(0xd9)](_0x4a6c94(0xb0));readTopK(_0x2772c4),readSearchServiceUrl(_0x2772c4);},async 'execute'(_0x595cf3){const _0x5f20eb=a35_0x1c02ed,_0x471760=_0x595cf3[_0x5f20eb(0xbd)]('query')[_0x5f20eb(0xd5)](),_0x1dbfb0=readTopK(_0x595cf3),_0x35b0bf=readSearchServiceUrl(_0x595cf3),_0x3ebe78={'appCode':_0x595cf3[_0x5f20eb(0xc7)],'accessKey':_0x595cf3['accessKey']??'','query':_0x471760,..._0x1dbfb0!==undefined?{'topK':_0x1dbfb0}:{},'signal':_0x595cf3['signal']},_0x3cb439=await searchDirectKnowledge({..._0x3ebe78,'serviceUrl':_0x35b0bf});return{'ok':!![],'data':_0x3cb439};}};function managementCommand(_0x1a4523){const _0x47bbcf=a35_0x1c02ed;return{..._0x1a4523,'execute':_0x12e559=>withKbManagementOrigin(()=>_0x1a4523[_0x47bbcf(0xc6)](_0x12e559)),..._0x1a4523[_0x47bbcf(0xda)]?{'dryRun':_0x5cb453=>withKbManagementOrigin(()=>_0x1a4523[_0x47bbcf(0xda)](_0x5cb453))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x1c02ed(0xba)](managementCommand),kbSearch];
@@ -1 +1 @@
1
- function a36_0x330e(){const _0x1c5538=['warn','timestamp','2961516bmYKMo','length','24614klpcjV','message','log','level','readLogs','stringify','3bMMhHE','forEach','success','logs','duration','5eWWWtR','8305913hBJcJK','View\x20command\x20history\x20logs','143cJRVfK','267468kXVbKW','toLocaleString','read','en-US','867702eTYTPo','command','30YZEzGu','8809936sclLVD','81WHWRby','keys','\x20logs:\x0a','\x20\x20\x20Time:\x20','2942829XqKkUa'];a36_0x330e=function(){return _0x1c5538;};return a36_0x330e();}const a36_0x479e65=a36_0x3121;(function(_0xd61744,_0xcecefb){const _0x41e1ef=a36_0x3121,_0x4de38f=_0xd61744();while(!![]){try{const _0x393964=-parseInt(_0x41e1ef(0x79))/0x1*(parseInt(_0x41e1ef(0x82))/0x2)+parseInt(_0x41e1ef(0x88))/0x3*(parseInt(_0x41e1ef(0x80))/0x4)+parseInt(_0x41e1ef(0x8d))/0x5*(-parseInt(_0x41e1ef(0x95))/0x6)+parseInt(_0x41e1ef(0x8e))/0x7+parseInt(_0x41e1ef(0x78))/0x8+parseInt(_0x41e1ef(0x7d))/0x9*(-parseInt(_0x41e1ef(0x97))/0xa)+parseInt(_0x41e1ef(0x90))/0xb*(-parseInt(_0x41e1ef(0x91))/0xc);if(_0x393964===_0xcecefb)break;else _0x4de38f['push'](_0x4de38f['shift']());}catch(_0xbeac28){_0x4de38f['push'](_0x4de38f['shift']());}}}(a36_0x330e,0x9663c));import{logger}from'../../utils/logger.js';function a36_0x3121(_0x2b4561,_0x2a2172){_0x2b4561=_0x2b4561-0x78;const _0x330ec5=a36_0x330e();let _0x312105=_0x330ec5[_0x2b4561];return _0x312105;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x254089){const _0x45a82e=a36_0x3121;if(_0x254089['length']===0x0){console[_0x45a82e(0x84)]('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x45a82e(0x7b)),_0x254089[_0x45a82e(0x89)]((_0x10d404,_0x130247)=>{const _0x1a75c8=_0x45a82e,_0x48cc0d=new Date(_0x10d404[_0x1a75c8(0x7f)])[_0x1a75c8(0x92)](_0x1a75c8(0x94)),_0x287e76=_0x10d404['level']===_0x1a75c8(0x8a)?'√':_0x10d404[_0x1a75c8(0x85)]==='error'?'×':_0x10d404[_0x1a75c8(0x85)]===_0x1a75c8(0x7e)?'!':'i';console['log'](_0x130247+0x1+'.\x20'+_0x287e76+'\x20['+_0x10d404[_0x1a75c8(0x96)]+']\x20'+_0x10d404[_0x1a75c8(0x83)]),console[_0x1a75c8(0x84)](_0x1a75c8(0x7c)+_0x48cc0d),_0x10d404[_0x1a75c8(0x8c)]&&console[_0x1a75c8(0x84)]('\x20\x20\x20Duration:\x20'+_0x10d404['duration']+'ms'),_0x10d404['details']&&Object[_0x1a75c8(0x7a)](_0x10d404['details'])[_0x1a75c8(0x81)]>0x0&&console[_0x1a75c8(0x84)]('\x20\x20\x20Details:\x20'+JSON[_0x1a75c8(0x87)](_0x10d404['details'],null,0x2)),console[_0x1a75c8(0x84)]('');});}export const logsDefinitions=[{'service':a36_0x479e65(0x8b),'command':'show','description':a36_0x479e65(0x8f),'risk':a36_0x479e65(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x504456){const _0xf87eed=a36_0x479e65;return printLogs(logger[_0xf87eed(0x86)]()),{'ok':!![]};}}];
1
+ const a36_0xbed6a8=a36_0x610f;(function(_0x4ae721,_0x42149a){const _0x10a2e8=a36_0x610f,_0x437a14=_0x4ae721();while(!![]){try{const _0x498e66=-parseInt(_0x10a2e8(0x12a))/0x1+parseInt(_0x10a2e8(0x148))/0x2+-parseInt(_0x10a2e8(0x141))/0x3*(-parseInt(_0x10a2e8(0x13d))/0x4)+parseInt(_0x10a2e8(0x12f))/0x5+-parseInt(_0x10a2e8(0x144))/0x6*(-parseInt(_0x10a2e8(0x13a))/0x7)+parseInt(_0x10a2e8(0x13f))/0x8*(-parseInt(_0x10a2e8(0x129))/0x9)+-parseInt(_0x10a2e8(0x12b))/0xa*(-parseInt(_0x10a2e8(0x13b))/0xb);if(_0x498e66===_0x42149a)break;else _0x437a14['push'](_0x437a14['shift']());}catch(_0x5d8d3f){_0x437a14['push'](_0x437a14['shift']());}}}(a36_0x35fa,0xdefdb));import{logger}from'../../utils/logger.js';function a36_0x610f(_0x2ba698,_0x848408){_0x2ba698=_0x2ba698-0x129;const _0x35faa5=a36_0x35fa();let _0x610f69=_0x35faa5[_0x2ba698];return _0x610f69;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x1e26a9){const _0x277767=a36_0x610f;if(_0x1e26a9['length']===0x0){console[_0x277767(0x13e)](_0x277767(0x140));return;}console[_0x277767(0x13e)]('*\x20'+CLI_DISPLAY_NAME+_0x277767(0x131)),_0x1e26a9[_0x277767(0x12e)]((_0x2cf566,_0xf7b5f0)=>{const _0x15367c=_0x277767,_0x1b1132=new Date(_0x2cf566[_0x15367c(0x142)])['toLocaleString'](_0x15367c(0x145)),_0x4b6caf=_0x2cf566[_0x15367c(0x12c)]===_0x15367c(0x132)?'√':_0x2cf566[_0x15367c(0x12c)]==='error'?'×':_0x2cf566[_0x15367c(0x12c)]===_0x15367c(0x138)?'!':'i';console['log'](_0xf7b5f0+0x1+'.\x20'+_0x4b6caf+'\x20['+_0x2cf566[_0x15367c(0x137)]+']\x20'+_0x2cf566[_0x15367c(0x143)]),console['log'](_0x15367c(0x136)+_0x1b1132),_0x2cf566['duration']&&console['log'](_0x15367c(0x135)+_0x2cf566[_0x15367c(0x134)]+'ms'),_0x2cf566[_0x15367c(0x146)]&&Object[_0x15367c(0x133)](_0x2cf566[_0x15367c(0x146)])[_0x15367c(0x147)]>0x0&&console[_0x15367c(0x13e)]('\x20\x20\x20Details:\x20'+JSON[_0x15367c(0x13c)](_0x2cf566[_0x15367c(0x146)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':'logs','command':a36_0xbed6a8(0x139),'description':'View\x20command\x20history\x20logs','risk':a36_0xbed6a8(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x48da8b){const _0x2bff13=a36_0xbed6a8;return printLogs(logger[_0x2bff13(0x130)]()),{'ok':!![]};}}];function a36_0x35fa(){const _0x531f9d=['stringify','4mugaGy','log','8cyiqZL','*\x20No\x20logs\x20found','4471839LlWCrr','timestamp','message','13734nuwsUF','en-US','details','length','61558wXhniw','12070449KTcBgC','1819012vQQbkc','10gcOaZe','level','read','forEach','1006615nsBItC','readLogs','\x20logs:\x0a','success','keys','duration','\x20\x20\x20Duration:\x20','\x20\x20\x20Time:\x20','command','warn','show','21HDCDgj','25783582sLCHJl'];a36_0x35fa=function(){return _0x531f9d;};return a36_0x35fa();}
@@ -1 +1 @@
1
- const a37_0x3802ef=a37_0x591f;function a37_0xf21a(){const _0x56ec8c=['appCode','104YlPBcH','config-list','103952jErotq','452584HuNOoX','Notification\x20channel\x20type','6FnOKmy','10308iMgOdm','notification','7885160ZnuHKo','458425zDequq','133083tHhGOk','read','string','371eOPYAm','map','EMAIL','280926ZBBuOX','length'];a37_0xf21a=function(){return _0x56ec8c;};return a37_0xf21a();}(function(_0x73f33f,_0x460f00){const _0x5e5df0=a37_0x591f,_0x345a40=_0x73f33f();while(!![]){try{const _0x2d49e5=-parseInt(_0x5e5df0(0x12d))/0x1+parseInt(_0x5e5df0(0x12f))/0x2*(-parseInt(_0x5e5df0(0x127))/0x3)+parseInt(_0x5e5df0(0x12c))/0x4+-parseInt(_0x5e5df0(0x133))/0x5+-parseInt(_0x5e5df0(0x130))/0x6*(-parseInt(_0x5e5df0(0x137))/0x7)+parseInt(_0x5e5df0(0x12a))/0x8*(parseInt(_0x5e5df0(0x134))/0x9)+parseInt(_0x5e5df0(0x132))/0xa;if(_0x2d49e5===_0x460f00)break;else _0x345a40['push'](_0x345a40['shift']());}catch(_0x3eace6){_0x345a40['push'](_0x345a40['shift']());}}}(a37_0xf21a,0x428d2));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x591f(_0x23a4da,_0x242a17){_0x23a4da=_0x23a4da-0x125;const _0xf21ada=a37_0xf21a();let _0x591f0a=_0xf21ada[_0x23a4da];return _0x591f0a;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x3802ef(0x131),'command':a37_0x3802ef(0x12b),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a37_0x3802ef(0x135),'flags':[{'name':'type','type':a37_0x3802ef(0x136),'description':a37_0x3802ef(0x12e),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x3802ef(0x126)}],async 'validate'(_0x532669){readNotificationChannelType(_0x532669);},async 'execute'(_0x2c2b61){const _0x47d4f5=a37_0x3802ef,_0x53533a=readNotificationChannelType(_0x2c2b61),_0x1c4a95=await listNotificationChannelConfigs(_0x2c2b61[_0x47d4f5(0x129)],_0x53533a),_0xcb8220=_0x1c4a95[_0x47d4f5(0x125)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2c2b61[_0x47d4f5(0x129)],'channelType':_0x53533a,'count':_0xcb8220[_0x47d4f5(0x128)],'configs':_0xcb8220},'message':'Found\x20'+_0xcb8220['length']+'\x20'+_0x53533a+'\x20notification\x20config(s)'};}};
1
+ const a37_0x2afa79=a37_0x2c7b;(function(_0x2dac0f,_0x39a090){const _0x1440c5=a37_0x2c7b,_0x3ffb3e=_0x2dac0f();while(!![]){try{const _0x49012e=-parseInt(_0x1440c5(0x1ed))/0x1+parseInt(_0x1440c5(0x1f4))/0x2*(parseInt(_0x1440c5(0x1e8))/0x3)+parseInt(_0x1440c5(0x1eb))/0x4+-parseInt(_0x1440c5(0x1e6))/0x5*(parseInt(_0x1440c5(0x1f6))/0x6)+parseInt(_0x1440c5(0x1f5))/0x7+-parseInt(_0x1440c5(0x1f2))/0x8*(parseInt(_0x1440c5(0x1ea))/0x9)+parseInt(_0x1440c5(0x1f9))/0xa*(-parseInt(_0x1440c5(0x1f7))/0xb);if(_0x49012e===_0x39a090)break;else _0x3ffb3e['push'](_0x3ffb3e['shift']());}catch(_0x41df47){_0x3ffb3e['push'](_0x3ffb3e['shift']());}}}(a37_0x2e1e,0x51893));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2c7b(_0x17421c,_0x3dc143){_0x17421c=_0x17421c-0x1e6;const _0x2e1e24=a37_0x2e1e();let _0x2c7beb=_0x2e1e24[_0x17421c];return _0x2c7beb;}function a37_0x2e1e(){const _0x2162db=['string','appCode','40FkFBah','read','8mdBtaf','2638286YNdTlk','174FJMenZ','11AhxRcj','Found\x20','1218460SQwLMf','length','37190XMkDdD','Notification\x20channel\x20type','216285rCpszz','\x20notification\x20config(s)','1001943kzpNVZ','2422876kJRBBO','config-list','42843jGqkou','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values'];a37_0x2e1e=function(){return _0x2162db;};return a37_0x2e1e();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a37_0x2afa79(0x1ec),'description':a37_0x2afa79(0x1ef),'risk':a37_0x2afa79(0x1f3),'flags':[{'name':'type','type':a37_0x2afa79(0x1f0),'description':a37_0x2afa79(0x1e7),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0xb6044d){readNotificationChannelType(_0xb6044d);},async 'execute'(_0x593dbe){const _0x591508=a37_0x2afa79,_0xfe464f=readNotificationChannelType(_0x593dbe),_0x184318=await listNotificationChannelConfigs(_0x593dbe[_0x591508(0x1f1)],_0xfe464f),_0x4160ba=_0x184318[_0x591508(0x1ee)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x593dbe[_0x591508(0x1f1)],'channelType':_0xfe464f,'count':_0x4160ba[_0x591508(0x1fa)],'configs':_0x4160ba},'message':_0x591508(0x1f8)+_0x4160ba[_0x591508(0x1fa)]+'\x20'+_0xfe464f+_0x591508(0x1e9)};}};
@@ -1 +1 @@
1
- (function(_0x1729e3,_0x520583){const _0xcda589=a38_0x2c8a,_0x2cffc3=_0x1729e3();while(!![]){try{const _0x4ed3c8=parseInt(_0xcda589(0x161))/0x1*(-parseInt(_0xcda589(0x160))/0x2)+-parseInt(_0xcda589(0x163))/0x3+parseInt(_0xcda589(0x15d))/0x4+-parseInt(_0xcda589(0x166))/0x5*(parseInt(_0xcda589(0x167))/0x6)+parseInt(_0xcda589(0x15f))/0x7*(-parseInt(_0xcda589(0x164))/0x8)+-parseInt(_0xcda589(0x15e))/0x9*(parseInt(_0xcda589(0x162))/0xa)+parseInt(_0xcda589(0x165))/0xb;if(_0x4ed3c8===_0x520583)break;else _0x2cffc3['push'](_0x2cffc3['shift']());}catch(_0x2b4ac8){_0x2cffc3['push'](_0x2cffc3['shift']());}}}(a38_0x3ad8,0x8390c));function a38_0x3ad8(){const _0x22c468=['2741382yxTbdG','37976XGgOfB','46476683oRiRyB','25xAKbZE','1216074FjeZQe','232156HPXVeQ','186570huKRHl','1477CeMugn','774034BSiaNQ','2jDOIuq','20neTpbY'];a38_0x3ad8=function(){return _0x22c468;};return a38_0x3ad8();}function a38_0x2c8a(_0x56f082,_0x2c6bc9){_0x56f082=_0x56f082-0x15d;const _0x3ad81b=a38_0x3ad8();let _0x2c8a4e=_0x3ad81b[_0x56f082];return _0x2c8a4e;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x4f3204,_0x4f97c2){const _0x5d8264=a38_0x11a3,_0x49a2f2=_0x4f3204();while(!![]){try{const _0x329ff6=-parseInt(_0x5d8264(0x126))/0x1*(-parseInt(_0x5d8264(0x128))/0x2)+parseInt(_0x5d8264(0x127))/0x3*(parseInt(_0x5d8264(0x124))/0x4)+parseInt(_0x5d8264(0x125))/0x5+parseInt(_0x5d8264(0x123))/0x6+parseInt(_0x5d8264(0x121))/0x7+parseInt(_0x5d8264(0x129))/0x8+parseInt(_0x5d8264(0x12a))/0x9*(-parseInt(_0x5d8264(0x122))/0xa);if(_0x329ff6===_0x4f97c2)break;else _0x49a2f2['push'](_0x49a2f2['shift']());}catch(_0x1ab60f){_0x49a2f2['push'](_0x49a2f2['shift']());}}}(a38_0x2d87,0x8a551));import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x2d87(){const _0x4c2809=['7604zzsYwQ','5070615XPdCYz','1RajBAa','249nYRpuE','1452172MeMhrI','8827944MnVKwy','6678342ouqVRu','1820539qlaytc','40AKAaPY','1639194xYwrEy'];a38_0x2d87=function(){return _0x4c2809;};return a38_0x2d87();}function a38_0x11a3(_0x30ea5f,_0x12e29c){_0x30ea5f=_0x30ea5f-0x121;const _0x2d87c0=a38_0x2d87();let _0x11a3cf=_0x2d87c0[_0x30ea5f];return _0x11a3cf;}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a39_0x22482e=a39_0x243a;function a39_0x5f0d(){const _0x4780be=['55cIyPwX','apiError','object','configName','FEISHU','Item\x20','includes','Invalid\x20notification\x20config\x20response.','3047952CWEdnT','6088RFaZCJ','798423FAkyJi','18186giieem','\x20is\x20missing\x20required\x20field\x20\x22','\x20must\x20be\x20an\x20object.','trim','2EOqRuB','configCode','type','str','validation','channelType','string','832481Timjea','DINGTALK','7419537dablvl','EMAIL','305GKkUjA','3557070SzmbdY','6013GjMiXJ'];a39_0x5f0d=function(){return _0x4780be;};return a39_0x5f0d();}(function(_0x5a5c41,_0x4cee8d){const _0x31e360=a39_0x243a,_0x45259b=_0x5a5c41();while(!![]){try{const _0x20809f=parseInt(_0x31e360(0x102))/0x1+parseInt(_0x31e360(0xfb))/0x2*(parseInt(_0x31e360(0xf6))/0x3)+parseInt(_0x31e360(0xf4))/0x4+parseInt(_0x31e360(0x106))/0x5*(parseInt(_0x31e360(0xf7))/0x6)+parseInt(_0x31e360(0x108))/0x7*(-parseInt(_0x31e360(0xf5))/0x8)+parseInt(_0x31e360(0x104))/0x9+parseInt(_0x31e360(0x107))/0xa*(-parseInt(_0x31e360(0xec))/0xb);if(_0x20809f===_0x4cee8d)break;else _0x45259b['push'](_0x45259b['shift']());}catch(_0x2a225f){_0x45259b['push'](_0x45259b['shift']());}}}(a39_0x5f0d,0x6ad9c));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x22482e(0x105),a39_0x22482e(0xf0),a39_0x22482e(0x103),'WECOM','WEBHOOK'];export function readNotificationChannelType(_0x35547d){const _0x1a4be4=a39_0x22482e,_0x2efb3b=_0x35547d[_0x1a4be4(0xfe)](_0x1a4be4(0xfd))[_0x1a4be4(0xfa)]()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0x1a4be4(0xf2)](_0x2efb3b))throw CliErrors[_0x1a4be4(0xff)]('Invalid\x20--type:\x20'+_0x2efb3b,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x2efb3b;}function a39_0x243a(_0x2a6460,_0x4c3920){_0x2a6460=_0x2a6460-0xec;const _0x5f0d87=a39_0x5f0d();let _0x243a23=_0x5f0d87[_0x2a6460];return _0x243a23;}export function projectNotificationListConfig(_0x545c41,_0x180f52){const _0x34adc7=a39_0x22482e,_0x55695a=requireResponseObject(_0x545c41,_0x180f52);return{'configCode':requireResponseString(_0x55695a[_0x34adc7(0xfc)],_0x34adc7(0xfc),_0x180f52),'configName':requireResponseString(_0x55695a['configName'],_0x34adc7(0xef),_0x180f52),'channelType':requireResponseString(_0x55695a[_0x34adc7(0x100)],_0x34adc7(0x100),_0x180f52),'description':normalizeNullableString(_0x55695a['description'])};}function requireResponseObject(_0x3400f0,_0x280138){const _0x7b2ffa=a39_0x22482e;if(typeof _0x3400f0!==_0x7b2ffa(0xee)||_0x3400f0===null||Array['isArray'](_0x3400f0))throw CliErrors[_0x7b2ffa(0xed)]('Invalid\x20notification\x20config\x20response.','Item\x20'+(_0x280138+0x1)+_0x7b2ffa(0xf9));return _0x3400f0;}function requireResponseString(_0x2d0249,_0x1562ac,_0x44d779){const _0x8dc142=a39_0x22482e;if(typeof _0x2d0249!==_0x8dc142(0x101)||!_0x2d0249[_0x8dc142(0xfa)]())throw CliErrors[_0x8dc142(0xed)](_0x8dc142(0xf3),_0x8dc142(0xf1)+(_0x44d779+0x1)+_0x8dc142(0xf8)+_0x1562ac+'\x22.');return _0x2d0249[_0x8dc142(0xfa)]();}function normalizeNullableString(_0x1c8e00){const _0x4ebcce=a39_0x22482e;return typeof _0x1c8e00===_0x4ebcce(0x101)&&_0x1c8e00[_0x4ebcce(0xfa)]()?_0x1c8e00[_0x4ebcce(0xfa)]():null;}
1
+ function a39_0x4212(){const _0x42df67=['trim','DINGTALK','configCode','apiError','EMAIL','56190sjKDMe','FEISHU','validation','3311820JzzSMI','\x20must\x20be\x20an\x20object.','Invalid\x20notification\x20config\x20response.','51969UgLaqr','WEBHOOK','join','10056837RDskyI','658321gqLuEc','Item\x20','string','object','40OScpOK','configName','12056944LyNlJr','type','channelType','Allowed\x20values:\x20','5MspyAm','19213344FUQxzq','includes'];a39_0x4212=function(){return _0x42df67;};return a39_0x4212();}const a39_0xf4119d=a39_0x1e5d;(function(_0x37bc0b,_0x673da6){const _0x3e1ba2=a39_0x1e5d,_0x1bd5b5=_0x37bc0b();while(!![]){try{const _0x20173b=-parseInt(_0x3e1ba2(0x105))/0x1+parseInt(_0x3e1ba2(0x117))/0x2+-parseInt(_0x3e1ba2(0x101))/0x3*(-parseInt(_0x3e1ba2(0x109))/0x4)+-parseInt(_0x3e1ba2(0x10f))/0x5*(-parseInt(_0x3e1ba2(0xfe))/0x6)+parseInt(_0x3e1ba2(0x104))/0x7+parseInt(_0x3e1ba2(0x10b))/0x8+-parseInt(_0x3e1ba2(0x110))/0x9;if(_0x20173b===_0x673da6)break;else _0x1bd5b5['push'](_0x1bd5b5['shift']());}catch(_0x165815){_0x1bd5b5['push'](_0x1bd5b5['shift']());}}}(a39_0x4212,0xdcb1f));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0xf4119d(0x116),a39_0xf4119d(0x118),a39_0xf4119d(0x113),'WECOM',a39_0xf4119d(0x102)];export function readNotificationChannelType(_0x2e4fb9){const _0x25018e=a39_0xf4119d,_0x1c63f1=_0x2e4fb9['str'](_0x25018e(0x10c))[_0x25018e(0x112)]()||_0x25018e(0x116);if(!NOTIFICATION_CHANNEL_TYPES[_0x25018e(0x111)](_0x1c63f1))throw CliErrors[_0x25018e(0xfd)]('Invalid\x20--type:\x20'+_0x1c63f1,_0x25018e(0x10e)+NOTIFICATION_CHANNEL_TYPES[_0x25018e(0x103)](',\x20')+'.');return _0x1c63f1;}export function projectNotificationListConfig(_0x1513ce,_0x2b6858){const _0x52d5d7=a39_0xf4119d,_0x5cdae4=requireResponseObject(_0x1513ce,_0x2b6858);return{'configCode':requireResponseString(_0x5cdae4['configCode'],_0x52d5d7(0x114),_0x2b6858),'configName':requireResponseString(_0x5cdae4[_0x52d5d7(0x10a)],_0x52d5d7(0x10a),_0x2b6858),'channelType':requireResponseString(_0x5cdae4['channelType'],_0x52d5d7(0x10d),_0x2b6858),'description':normalizeNullableString(_0x5cdae4['description'])};}function requireResponseObject(_0x3a22d4,_0x47264d){const _0xdb0329=a39_0xf4119d;if(typeof _0x3a22d4!==_0xdb0329(0x108)||_0x3a22d4===null||Array['isArray'](_0x3a22d4))throw CliErrors[_0xdb0329(0x115)](_0xdb0329(0x100),_0xdb0329(0x106)+(_0x47264d+0x1)+_0xdb0329(0xff));return _0x3a22d4;}function requireResponseString(_0x2edf53,_0x6812f9,_0x458649){const _0x179d17=a39_0xf4119d;if(typeof _0x2edf53!==_0x179d17(0x107)||!_0x2edf53[_0x179d17(0x112)]())throw CliErrors['apiError'](_0x179d17(0x100),'Item\x20'+(_0x458649+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x6812f9+'\x22.');return _0x2edf53[_0x179d17(0x112)]();}function a39_0x1e5d(_0x38d3cb,_0x38c830){_0x38d3cb=_0x38d3cb-0xfd;const _0x421236=a39_0x4212();let _0x1e5dc9=_0x421236[_0x38d3cb];return _0x1e5dc9;}function normalizeNullableString(_0x187838){const _0x290293=a39_0xf4119d;return typeof _0x187838===_0x290293(0x107)&&_0x187838[_0x290293(0x112)]()?_0x187838[_0x290293(0x112)]():null;}