@lovrabet/lovrabet-cli 2.3.4-beta.1 → 2.3.4-beta.2

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 (184) hide show
  1. package/README.md +8 -6
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/approval/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.d.ts +1 -1
  27. package/lib/commands/config/init.js +1 -1
  28. package/lib/commands/config/shared.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.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +2 -2
  93. package/lib/config/domain-config.js +1 -1
  94. package/lib/config/schema.d.ts +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.d.ts +4 -0
  102. package/lib/constant/domain.js +1 -1
  103. package/lib/constant/env.js +1 -1
  104. package/lib/constant/output.js +1 -1
  105. package/lib/constant/product.js +1 -1
  106. package/lib/constant/region.d.ts +1 -1
  107. package/lib/constant/region.js +1 -1
  108. package/lib/constant/risk.js +1 -1
  109. package/lib/constant/url.js +1 -1
  110. package/lib/context.js +1 -1
  111. package/lib/core/api-client.js +1 -1
  112. package/lib/core/db-resolver.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.d.ts +12 -3
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.d.ts +2 -2
  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/skills/builtin-skill.js +1 -1
  146. package/lib/skills/npx-skills-add.d.ts +5 -0
  147. package/lib/skills/npx-skills-add.js +1 -1
  148. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  149. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  150. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  151. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  152. package/lib/skills/runtime-skill-sync/links.js +1 -1
  153. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  154. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  155. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  156. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  157. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  158. package/lib/skills/runtime-skill-sync/push.js +1 -1
  159. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  162. package/lib/skills/runtime-skill-sync.js +1 -1
  163. package/lib/skills/skill-presence.js +1 -1
  164. package/lib/utils/access-key-redaction.js +1 -1
  165. package/lib/utils/apply-jq-filter.js +1 -1
  166. package/lib/utils/cli-version-check.js +1 -1
  167. package/lib/utils/cli-version-policy.js +1 -1
  168. package/lib/utils/logger.js +1 -1
  169. package/lib/utils/lossless-json.js +1 -1
  170. package/lib/utils/params.js +1 -1
  171. package/lib/utils/positive-safe-integer.js +1 -1
  172. package/lib/utils/redaction.js +1 -1
  173. package/lib/utils/update-notice.js +1 -1
  174. package/lib/utils/version.js +1 -1
  175. package/lib/utils/write-cli-side-channel.js +1 -1
  176. package/package.json +1 -1
  177. package/skills/lovrabet/SKILL.md +2 -2
  178. package/skills/lovrabet/guides/troubleshooting.md +1 -1
  179. package/skills/lovrabet/references/lovrabet-config-commands.md +8 -7
  180. package/skills/lovrabet/references/lovrabet-config.md +3 -2
  181. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  182. package/skills/lovrabet/references/lovrabet-kb-workflow.md +8 -6
  183. package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a27_0x4bc5bc=a27_0x4360;(function(_0x5c9bd1,_0x2d4bee){const _0x46fa0a=a27_0x4360,_0x1623e3=_0x5c9bd1();while(!![]){try{const _0x331376=parseInt(_0x46fa0a(0x136))/0x1*(-parseInt(_0x46fa0a(0x107))/0x2)+-parseInt(_0x46fa0a(0x112))/0x3+parseInt(_0x46fa0a(0x11a))/0x4+parseInt(_0x46fa0a(0x12f))/0x5*(-parseInt(_0x46fa0a(0x137))/0x6)+-parseInt(_0x46fa0a(0x10c))/0x7*(parseInt(_0x46fa0a(0x12c))/0x8)+-parseInt(_0x46fa0a(0x122))/0x9*(-parseInt(_0x46fa0a(0x12d))/0xa)+parseInt(_0x46fa0a(0x109))/0xb;if(_0x331376===_0x2d4bee)break;else _0x1623e3['push'](_0x1623e3['shift']());}catch(_0x4a75a4){_0x1623e3['push'](_0x1623e3['shift']());}}}(a27_0x2633,0xf1ff2));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x2633(){const _0x36a011=['trim','entries','columnCodeListWithDeleted','allFields','code','labelField','datasetKey','modifierNameField','1266500MSXDOt','doVersion','15381971IRgnLN','method','isArray','42mhtZdv','read','formatRules','map','tableComment','requestBody','1626636qCqqhJ','find','responseFields','type','logicField','host','modifierIdField','dataType','7187412jGaaVe','creatorNameField','creatorIdField','deleted','properties','afterScriptId','modelId','dbName','9WfPWTp','responseBody','extend','filter','createTimeField','detail','relations','title','name','options','1788328tDtsRr','14309710TpkOwJ','updateTimeField','12565YbQpxJ','validateRules','dbId','requestFields','split','displayName','length','2ULYVqI','1158QbMEng','pkField','doType','object','dblinkInfoDTO','appCode','indexes','dbType','string','description','dbtableConfig','fields','operations','str','tableName'];a27_0x2633=function(){return _0x36a011;};return a27_0x2633();}function a27_0x4360(_0x3adb0,_0x488c5b){_0x3adb0=_0x3adb0-0xf7;const _0x2633a9=a27_0x2633();let _0x4360dd=_0x2633a9[_0x3adb0];return _0x4360dd;}function normalizeField(_0x21d658){const _0x4471cf=a27_0x4360;if(_0x21d658[_0x4471cf(0x11d)])return null;const _0x20c63b=Boolean(_0x21d658['displayName']!==undefined||_0x21d658[_0x4471cf(0x139)]!==undefined);let _0x4127a0={};if(!_0x20c63b&&typeof _0x21d658['extend']===_0x4471cf(0xf8))try{_0x4127a0=JSON['parse'](_0x21d658['extend']);}catch{}const _0x486954=_0x20c63b?_0x21d658[_0x4471cf(0x12a)]:_0x21d658['code'],_0x2589cc=_0x20c63b?_0x21d658[_0x4471cf(0x134)]:_0x21d658['name'],_0x4b51d2=_0x20c63b?_0x21d658[_0x4471cf(0x139)]:_0x21d658[_0x4471cf(0x115)]||_0x21d658[_0x4471cf(0x119)],_0x4c7352=_0x20c63b?_0x21d658[_0x4471cf(0x138)]===!![]:_0x4127a0[_0x4471cf(0x138)]===!![],_0x544c0e=_0x20c63b?_0x21d658['required']===!![]:_0x4127a0['required']===!![],_0x320ddf=_0x20c63b?_0x21d658[_0x4471cf(0x12b)]??null:_0x4127a0[_0x4471cf(0x12b)]??null,_0x6de8fc={'name':_0x486954,'displayName':_0x2589cc||_0x486954,'type':_0x4b51d2,'dbType':_0x21d658[_0x4471cf(0xf7)],'pk':_0x4c7352,'required':_0x544c0e,'description':_0x21d658[_0x4471cf(0xf9)]||undefined};return Array[_0x4471cf(0x10b)](_0x320ddf)&&_0x320ddf[_0x4471cf(0x135)]>0x0&&(_0x6de8fc[_0x4471cf(0x12b)]=_0x320ddf),_0x6de8fc;}function parseJsonMaybe(_0x3eec80){if(typeof _0x3eec80!=='string')return _0x3eec80;try{return JSON['parse'](_0x3eec80);}catch{return _0x3eec80;}}function normalizeOperationEntry(_0x163947,_0xc5bf07){const _0x154f36=a27_0x4360;if(!_0xc5bf07||typeof _0xc5bf07!==_0x154f36(0x13a))return null;if(!_0xc5bf07[_0x154f36(0x10a)]||!_0xc5bf07['path'])return null;const _0x324d38={'name':_0x163947,'method':_0xc5bf07[_0x154f36(0x10a)],'path':_0xc5bf07['path']};if(_0xc5bf07[_0x154f36(0x117)])_0x324d38[_0x154f36(0x117)]=_0xc5bf07[_0x154f36(0x117)];if(_0xc5bf07[_0x154f36(0x111)]!=null)_0x324d38[_0x154f36(0x111)]=parseJsonMaybe(_0xc5bf07['requestBody']);if(_0xc5bf07['responseBody']!=null)_0x324d38[_0x154f36(0x123)]=parseJsonMaybe(_0xc5bf07[_0x154f36(0x123)]);if(_0xc5bf07['beforeScriptId']!=null)_0x324d38['beforeScriptId']=_0xc5bf07['beforeScriptId'];if(_0xc5bf07[_0x154f36(0x11f)]!=null)_0x324d38[_0x154f36(0x11f)]=_0xc5bf07[_0x154f36(0x11f)];if(Array[_0x154f36(0x10b)](_0xc5bf07['requestFields']))_0x324d38[_0x154f36(0x132)]=_0xc5bf07[_0x154f36(0x132)];if(Array[_0x154f36(0x10b)](_0xc5bf07[_0x154f36(0x114)]))_0x324d38[_0x154f36(0x114)]=_0xc5bf07[_0x154f36(0x114)];return _0x324d38;}function summarizeDbtable(_0x53c46c){const _0xb7a432=a27_0x4360,_0x23fe1d={},_0x4799cf=[_0xb7a432(0x131),_0xb7a432(0x121),'tableName',_0xb7a432(0x105),_0xb7a432(0x138),'allFields',_0xb7a432(0x116),_0xb7a432(0x126),_0xb7a432(0x12e),_0xb7a432(0x11c),_0xb7a432(0x11b),_0xb7a432(0x118),_0xb7a432(0x106),_0xb7a432(0x104),_0xb7a432(0x13b)];for(const _0x2a7663 of _0x4799cf){if(_0x53c46c[_0x2a7663]!==undefined)_0x23fe1d[_0x2a7663]=_0x53c46c[_0x2a7663];}return typeof _0x23fe1d['allFields']==='string'&&_0x23fe1d[_0xb7a432(0x102)]['length']>0x0&&(_0x23fe1d['allFieldNames']=_0x23fe1d[_0xb7a432(0x102)][_0xb7a432(0x133)](',')['map'](_0x3270e0=>_0x3270e0[_0xb7a432(0xff)]())[_0xb7a432(0x125)](Boolean)),_0x23fe1d;}function normalizeRelatedPages(_0x472ef5){const _0x28912c=a27_0x4360;if(!Array[_0x28912c(0x10b)](_0x472ef5))return[];return _0x472ef5[_0x28912c(0x125)](_0x1b3e42=>_0x1b3e42&&typeof _0x1b3e42===_0x28912c(0x13a))['map'](_0x9a1e90=>({'id':_0x9a1e90['id'],'type':_0x9a1e90[_0x28912c(0x115)],'code':_0x9a1e90[_0x28912c(0x103)],'title':_0x9a1e90[_0x28912c(0x129)],'deleted':_0x9a1e90[_0x28912c(0x11d)]===!![]}));}function normalizeFallbackFieldName(_0x3d3d64,_0x3b1d43){const _0x26072d=a27_0x4360,_0x1d50a7=_0x3d3d64[_0x26072d(0xff)]();if(!_0x1d50a7)return null;return{'name':_0x1d50a7,'displayName':_0x1d50a7,'type':undefined,'dbType':undefined,'pk':_0x1d50a7===_0x3b1d43,'required':![],'description':undefined};}async function loadListFieldFallback(_0x5e43b5,_0x1374fc){const _0x49a8a3=a27_0x4360;if(!_0x5e43b5||!_0x1374fc)return[];try{const _0x2b052b=await listDatasets(_0x5e43b5,{'code':_0x1374fc}),_0x53c7ca=_0x2b052b[_0x49a8a3(0x113)](_0x4d2ebb=>_0x4d2ebb[_0x49a8a3(0x103)]===_0x1374fc)??_0x2b052b[0x0],_0x220b92=_0x53c7ca?.[_0x49a8a3(0xfa)]??{},_0x466eeb=typeof _0x220b92['allFields']==='string'?_0x220b92['allFields']['split'](','):[];return _0x466eeb['map'](_0x3d05f6=>normalizeFallbackFieldName(_0x3d05f6,_0x220b92[_0x49a8a3(0x138)]))[_0x49a8a3(0x125)](_0x5d649c=>_0x5d649c!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a27_0x4bc5bc(0x127),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a27_0x4bc5bc(0x10d),'flags':[CODE_FLAG],async 'execute'(_0x4b257f){const _0x10c16c=a27_0x4bc5bc,_0x31ab80=await getDatasetDetail(_0x4b257f[_0x10c16c(0xfd)](_0x10c16c(0x103))),_0x2c460d=Array[_0x10c16c(0x10b)](_0x31ab80[_0x10c16c(0xfb)])?_0x31ab80[_0x10c16c(0xfb)]:Array[_0x10c16c(0x10b)](_0x31ab80[_0x10c16c(0x11e)])?_0x31ab80[_0x10c16c(0x11e)]:[];let _0x1304dc=_0x2c460d[_0x10c16c(0x10f)](_0x254f8a=>normalizeField(_0x254f8a))[_0x10c16c(0x125)](_0x2f3b6d=>_0x2f3b6d!==null);_0x1304dc[_0x10c16c(0x135)]===0x0&&(_0x1304dc=await loadListFieldFallback(_0x4b257f[_0x10c16c(0x13c)],_0x4b257f['str'](_0x10c16c(0x103))));const _0x4775ec=_0x31ab80[_0x10c16c(0xfc)]??{},_0x3ced65=[];for(const [_0x4a67b7,_0x37f044]of Object[_0x10c16c(0x100)](_0x4775ec)){const _0xc957c=normalizeOperationEntry(_0x4a67b7,_0x37f044);if(_0xc957c)_0x3ced65['push'](_0xc957c);}const _0x3b8058=_0x31ab80[_0x10c16c(0xfa)]??{},_0x1a3fd2=_0x31ab80['dataset']??{},_0xf1869=_0x3b8058['dbId']!=null?{'id':_0x3b8058[_0x10c16c(0x131)],'name':_0x3b8058[_0x10c16c(0x121)]??null}:undefined;let _0x2744d3;return typeof _0x31ab80[_0x10c16c(0x124)]===_0x10c16c(0xf8)&&(_0x2744d3=parseJsonMaybe(_0x31ab80[_0x10c16c(0x124)])),{'ok':!![],'data':{'id':_0x31ab80[_0x10c16c(0x120)]??_0x31ab80['id'],'name':_0x31ab80['name'],'code':_0x31ab80['modelCode']||_0x31ab80[_0x10c16c(0x103)],'doVersion':_0x31ab80[_0x10c16c(0x108)],'description':_0x31ab80[_0x10c16c(0xf9)]||_0x1a3fd2[_0x10c16c(0x110)]||undefined,'source':_0x31ab80['source']||_0x1a3fd2['sourceType'],'table':_0x3b8058[_0x10c16c(0xfe)]||_0x1a3fd2[_0x10c16c(0xfe)],'datasetKey':_0x3b8058[_0x10c16c(0x105)],'pk':_0x3b8058[_0x10c16c(0x138)],'db':_0xf1869,'dbtable':summarizeDbtable(_0x3b8058),'fields':_0x1304dc,'operations':_0x3ced65,'indexes':Array[_0x10c16c(0x10b)](_0x1a3fd2[_0x10c16c(0x13d)])?_0x1a3fd2[_0x10c16c(0x13d)]:[],'relations':_0x31ab80[_0x10c16c(0x128)]??null,'relatedPages':normalizeRelatedPages(_0x31ab80['relatedPageInfoList']),...Array[_0x10c16c(0x10b)](_0x31ab80[_0x10c16c(0x101)])?{'columnCodeListWithDeleted':_0x31ab80[_0x10c16c(0x101)]}:{},'formatRules':Array[_0x10c16c(0x10b)](_0x31ab80[_0x10c16c(0x10e)])?_0x31ab80[_0x10c16c(0x10e)]:[],'validateRules':Array[_0x10c16c(0x10b)](_0x31ab80[_0x10c16c(0x130)])?_0x31ab80[_0x10c16c(0x130)]:[],..._0x2744d3!==undefined?{'extend':_0x2744d3}:{},'stats':{'fieldCount':_0x1304dc[_0x10c16c(0x135)],'operationCount':_0x3ced65[_0x10c16c(0x135)]}}};}};
1
+ function a27_0x3bba(_0x493832,_0x437b63){_0x493832=_0x493832-0x102;const _0x410f5b=a27_0x410f();let _0x3bbad1=_0x410f5b[_0x493832];return _0x3bbad1;}const a27_0x4a7bf9=a27_0x3bba;(function(_0x385d0b,_0x3614c6){const _0xcf2be0=a27_0x3bba,_0x3d8990=_0x385d0b();while(!![]){try{const _0x1a7411=parseInt(_0xcf2be0(0x109))/0x1*(parseInt(_0xcf2be0(0x11b))/0x2)+parseInt(_0xcf2be0(0x13e))/0x3*(parseInt(_0xcf2be0(0x11c))/0x4)+-parseInt(_0xcf2be0(0x120))/0x5*(-parseInt(_0xcf2be0(0x10d))/0x6)+parseInt(_0xcf2be0(0x105))/0x7*(parseInt(_0xcf2be0(0x141))/0x8)+parseInt(_0xcf2be0(0x128))/0x9*(-parseInt(_0xcf2be0(0x12c))/0xa)+parseInt(_0xcf2be0(0x14a))/0xb+-parseInt(_0xcf2be0(0x116))/0xc*(parseInt(_0xcf2be0(0x114))/0xd);if(_0x1a7411===_0x3614c6)break;else _0x3d8990['push'](_0x3d8990['shift']());}catch(_0x3b589a){_0x3d8990['push'](_0x3d8990['shift']());}}}(a27_0x410f,0xeaf37));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x410f(){const _0x4b04a5=['requestFields','indexes','responseBody','code','creatorIdField','963219RuOlct','parse','modifierIdField','114496RGDsGr','title','trim','tableComment','detail','dataset','entries','properties','type','17216089RokCsp','find','dbType','updateTimeField','dbName','options','allFieldNames','476muLxge','path','dataType','dblinkInfoDTO','4mVnVud','modifierNameField','formatRules','modelId','1050hjAxjC','fields','push','map','read','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','allFields','45097Twlqpy','appCode','8076RLqpGM','datasetKey','dbtableConfig','tableName','doType','93926gvkFEV','20NvEcQI','columnCodeListWithDeleted','isArray','logicField','14720aZaBDs','doVersion','dbId','name','host','method','object','pkField','22716odiaBe','string','relations','responseFields','6140RrtzCK','validateRules','beforeScriptId','deleted','length','operations','afterScriptId','extend','str','required','filter','requestBody','split'];a27_0x410f=function(){return _0x4b04a5;};return a27_0x410f();}function normalizeField(_0x1931d3){const _0x16795b=a27_0x3bba;if(_0x1931d3['deleted'])return null;const _0x3623a0=Boolean(_0x1931d3['displayName']!==undefined||_0x1931d3[_0x16795b(0x11a)]!==undefined);let _0x595670={};if(!_0x3623a0&&typeof _0x1931d3[_0x16795b(0x133)]===_0x16795b(0x129))try{_0x595670=JSON[_0x16795b(0x13f)](_0x1931d3['extend']);}catch{}const _0x60ddb1=_0x3623a0?_0x1931d3[_0x16795b(0x123)]:_0x1931d3['code'],_0x54fecf=_0x3623a0?_0x1931d3['displayName']:_0x1931d3['name'],_0x5974ae=_0x3623a0?_0x1931d3['doType']:_0x1931d3['type']||_0x1931d3[_0x16795b(0x107)],_0x4fe2d6=_0x3623a0?_0x1931d3[_0x16795b(0x127)]===!![]:_0x595670[_0x16795b(0x127)]===!![],_0x2a2946=_0x3623a0?_0x1931d3[_0x16795b(0x135)]===!![]:_0x595670[_0x16795b(0x135)]===!![],_0xaf6679=_0x3623a0?_0x1931d3['options']??null:_0x595670[_0x16795b(0x103)]??null,_0x5eac1d={'name':_0x60ddb1,'displayName':_0x54fecf||_0x60ddb1,'type':_0x5974ae,'dbType':_0x1931d3[_0x16795b(0x14c)],'pk':_0x4fe2d6,'required':_0x2a2946,'description':_0x1931d3['description']||undefined};return Array[_0x16795b(0x11e)](_0xaf6679)&&_0xaf6679[_0x16795b(0x130)]>0x0&&(_0x5eac1d['options']=_0xaf6679),_0x5eac1d;}function parseJsonMaybe(_0x290e9b){const _0x1ee0ed=a27_0x3bba;if(typeof _0x290e9b!==_0x1ee0ed(0x129))return _0x290e9b;try{return JSON['parse'](_0x290e9b);}catch{return _0x290e9b;}}function normalizeOperationEntry(_0x655300,_0x20fd65){const _0x6a3025=a27_0x3bba;if(!_0x20fd65||typeof _0x20fd65!==_0x6a3025(0x126))return null;if(!_0x20fd65[_0x6a3025(0x125)]||!_0x20fd65['path'])return null;const _0xa91958={'name':_0x655300,'method':_0x20fd65[_0x6a3025(0x125)],'path':_0x20fd65[_0x6a3025(0x106)]};if(_0x20fd65['host'])_0xa91958[_0x6a3025(0x124)]=_0x20fd65[_0x6a3025(0x124)];if(_0x20fd65[_0x6a3025(0x137)]!=null)_0xa91958[_0x6a3025(0x137)]=parseJsonMaybe(_0x20fd65['requestBody']);if(_0x20fd65['responseBody']!=null)_0xa91958[_0x6a3025(0x13b)]=parseJsonMaybe(_0x20fd65['responseBody']);if(_0x20fd65['beforeScriptId']!=null)_0xa91958[_0x6a3025(0x12e)]=_0x20fd65['beforeScriptId'];if(_0x20fd65[_0x6a3025(0x132)]!=null)_0xa91958['afterScriptId']=_0x20fd65[_0x6a3025(0x132)];if(Array['isArray'](_0x20fd65[_0x6a3025(0x139)]))_0xa91958['requestFields']=_0x20fd65[_0x6a3025(0x139)];if(Array[_0x6a3025(0x11e)](_0x20fd65[_0x6a3025(0x12b)]))_0xa91958['responseFields']=_0x20fd65[_0x6a3025(0x12b)];return _0xa91958;}function summarizeDbtable(_0x4f09bd){const _0x192c39=a27_0x3bba,_0x578e71={},_0x4c612d=[_0x192c39(0x122),'dbName',_0x192c39(0x119),_0x192c39(0x117),_0x192c39(0x127),_0x192c39(0x113),_0x192c39(0x11f),'createTimeField',_0x192c39(0x14d),_0x192c39(0x13d),'creatorNameField',_0x192c39(0x140),_0x192c39(0x10a),'labelField',_0x192c39(0x108)];for(const _0x1c2be9 of _0x4c612d){if(_0x4f09bd[_0x1c2be9]!==undefined)_0x578e71[_0x1c2be9]=_0x4f09bd[_0x1c2be9];}return typeof _0x578e71['allFields']==='string'&&_0x578e71[_0x192c39(0x113)][_0x192c39(0x130)]>0x0&&(_0x578e71[_0x192c39(0x104)]=_0x578e71['allFields'][_0x192c39(0x138)](',')[_0x192c39(0x110)](_0x53e3eb=>_0x53e3eb[_0x192c39(0x143)]())[_0x192c39(0x136)](Boolean)),_0x578e71;}function normalizeRelatedPages(_0x4427c7){const _0x232944=a27_0x3bba;if(!Array[_0x232944(0x11e)](_0x4427c7))return[];return _0x4427c7[_0x232944(0x136)](_0x216f8a=>_0x216f8a&&typeof _0x216f8a===_0x232944(0x126))[_0x232944(0x110)](_0x5f44f9=>({'id':_0x5f44f9['id'],'type':_0x5f44f9[_0x232944(0x149)],'code':_0x5f44f9[_0x232944(0x13c)],'title':_0x5f44f9[_0x232944(0x142)],'deleted':_0x5f44f9[_0x232944(0x12f)]===!![]}));}function normalizeFallbackFieldName(_0x580bd1,_0x3e4a92){const _0x13f8d1=_0x580bd1['trim']();if(!_0x13f8d1)return null;return{'name':_0x13f8d1,'displayName':_0x13f8d1,'type':undefined,'dbType':undefined,'pk':_0x13f8d1===_0x3e4a92,'required':![],'description':undefined};}async function loadListFieldFallback(_0x188b41,_0x4419c3){const _0x3eabe4=a27_0x3bba;if(!_0x188b41||!_0x4419c3)return[];try{const _0xb5ec1f=await listDatasets(_0x188b41,{'code':_0x4419c3}),_0x4f2a72=_0xb5ec1f[_0x3eabe4(0x14b)](_0x4ff55e=>_0x4ff55e[_0x3eabe4(0x13c)]===_0x4419c3)??_0xb5ec1f[0x0],_0x15c8f0=_0x4f2a72?.[_0x3eabe4(0x118)]??{},_0x487a8=typeof _0x15c8f0[_0x3eabe4(0x113)]===_0x3eabe4(0x129)?_0x15c8f0[_0x3eabe4(0x113)][_0x3eabe4(0x138)](','):[];return _0x487a8[_0x3eabe4(0x110)](_0x2abc6a=>normalizeFallbackFieldName(_0x2abc6a,_0x15c8f0['pkField']))['filter'](_0x10da52=>_0x10da52!==null);}catch{return[];}}export const datasetDetail={'service':a27_0x4a7bf9(0x146),'command':a27_0x4a7bf9(0x145),'description':a27_0x4a7bf9(0x112),'risk':a27_0x4a7bf9(0x111),'flags':[CODE_FLAG],async 'execute'(_0x5daa59){const _0x1deec5=a27_0x4a7bf9,_0x68e677=await getDatasetDetail(_0x5daa59['str'](_0x1deec5(0x13c))),_0x10d2cc=Array[_0x1deec5(0x11e)](_0x68e677[_0x1deec5(0x10e)])?_0x68e677[_0x1deec5(0x10e)]:Array[_0x1deec5(0x11e)](_0x68e677['properties'])?_0x68e677[_0x1deec5(0x148)]:[];let _0x43bdfe=_0x10d2cc[_0x1deec5(0x110)](_0x36f6bb=>normalizeField(_0x36f6bb))[_0x1deec5(0x136)](_0x5d6ad1=>_0x5d6ad1!==null);_0x43bdfe[_0x1deec5(0x130)]===0x0&&(_0x43bdfe=await loadListFieldFallback(_0x5daa59[_0x1deec5(0x115)],_0x5daa59[_0x1deec5(0x134)](_0x1deec5(0x13c))));const _0xdb4c03=_0x68e677[_0x1deec5(0x131)]??{},_0x32ecd0=[];for(const [_0x14ca0e,_0x1451e0]of Object[_0x1deec5(0x147)](_0xdb4c03)){const _0x3778ea=normalizeOperationEntry(_0x14ca0e,_0x1451e0);if(_0x3778ea)_0x32ecd0[_0x1deec5(0x10f)](_0x3778ea);}const _0x38b49b=_0x68e677[_0x1deec5(0x118)]??{},_0x160b36=_0x68e677[_0x1deec5(0x146)]??{},_0x1030ff=_0x38b49b[_0x1deec5(0x122)]!=null?{'id':_0x38b49b[_0x1deec5(0x122)],'name':_0x38b49b[_0x1deec5(0x102)]??null}:undefined;let _0x40bd68;return typeof _0x68e677['extend']===_0x1deec5(0x129)&&(_0x40bd68=parseJsonMaybe(_0x68e677[_0x1deec5(0x133)])),{'ok':!![],'data':{'id':_0x68e677[_0x1deec5(0x10c)]??_0x68e677['id'],'name':_0x68e677[_0x1deec5(0x123)],'code':_0x68e677['modelCode']||_0x68e677[_0x1deec5(0x13c)],'doVersion':_0x68e677[_0x1deec5(0x121)],'description':_0x68e677['description']||_0x160b36[_0x1deec5(0x144)]||undefined,'source':_0x68e677['source']||_0x160b36['sourceType'],'table':_0x38b49b[_0x1deec5(0x119)]||_0x160b36[_0x1deec5(0x119)],'datasetKey':_0x38b49b[_0x1deec5(0x117)],'pk':_0x38b49b['pkField'],'db':_0x1030ff,'dbtable':summarizeDbtable(_0x38b49b),'fields':_0x43bdfe,'operations':_0x32ecd0,'indexes':Array[_0x1deec5(0x11e)](_0x160b36[_0x1deec5(0x13a)])?_0x160b36['indexes']:[],'relations':_0x68e677[_0x1deec5(0x12a)]??null,'relatedPages':normalizeRelatedPages(_0x68e677['relatedPageInfoList']),...Array[_0x1deec5(0x11e)](_0x68e677[_0x1deec5(0x11d)])?{'columnCodeListWithDeleted':_0x68e677[_0x1deec5(0x11d)]}:{},'formatRules':Array[_0x1deec5(0x11e)](_0x68e677[_0x1deec5(0x10b)])?_0x68e677[_0x1deec5(0x10b)]:[],'validateRules':Array['isArray'](_0x68e677[_0x1deec5(0x12d)])?_0x68e677[_0x1deec5(0x12d)]:[],..._0x40bd68!==undefined?{'extend':_0x40bd68}:{},'stats':{'fieldCount':_0x43bdfe[_0x1deec5(0x130)],'operationCount':_0x32ecd0[_0x1deec5(0x130)]}}};}};
@@ -1 +1 @@
1
- function a28_0x17ad(){const _0x544eff=['231328JpIygD','3419106yFGPgN','7963344yaYFRL','1VaxGGs','14298PRrpCF','106001XMSuTT','25DpsoiL','228tyEDkk','130uyUESt','1740640sejUUw','173748stqSKC'];a28_0x17ad=function(){return _0x544eff;};return a28_0x17ad();}(function(_0x32c977,_0xaaf25b){const _0x4f8b54=a28_0x2aa8,_0x43b068=_0x32c977();while(!![]){try{const _0x148a72=-parseInt(_0x4f8b54(0x9c))/0x1*(-parseInt(_0x4f8b54(0x9d))/0x2)+parseInt(_0x4f8b54(0x9a))/0x3+parseInt(_0x4f8b54(0x98))/0x4*(parseInt(_0x4f8b54(0x9f))/0x5)+parseInt(_0x4f8b54(0xa0))/0x6*(parseInt(_0x4f8b54(0x9e))/0x7)+parseInt(_0x4f8b54(0x99))/0x8+parseInt(_0x4f8b54(0x9b))/0x9+-parseInt(_0x4f8b54(0xa1))/0xa*(parseInt(_0x4f8b54(0x97))/0xb);if(_0x148a72===_0xaaf25b)break;else _0x43b068['push'](_0x43b068['shift']());}catch(_0xb06097){_0x43b068['push'](_0x43b068['shift']());}}}(a28_0x17ad,0xc25b2));import{datasetList}from'../../commands/dataset/list.js';function a28_0x2aa8(_0x323352,_0x4318c7){_0x323352=_0x323352-0x97;const _0x17ade7=a28_0x17ad();let _0x2aa8f0=_0x17ade7[_0x323352];return _0x2aa8f0;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x509cc6,_0xba4c58){const _0x20b65c=a28_0x5206,_0x3ff0de=_0x509cc6();while(!![]){try{const _0xf054fc=-parseInt(_0x20b65c(0x17d))/0x1*(parseInt(_0x20b65c(0x183))/0x2)+parseInt(_0x20b65c(0x17f))/0x3*(-parseInt(_0x20b65c(0x186))/0x4)+parseInt(_0x20b65c(0x182))/0x5+parseInt(_0x20b65c(0x180))/0x6+-parseInt(_0x20b65c(0x17e))/0x7*(-parseInt(_0x20b65c(0x181))/0x8)+parseInt(_0x20b65c(0x185))/0x9+parseInt(_0x20b65c(0x184))/0xa;if(_0xf054fc===_0xba4c58)break;else _0x3ff0de['push'](_0x3ff0de['shift']());}catch(_0x16c2f9){_0x3ff0de['push'](_0x3ff0de['shift']());}}}(a28_0x47f1,0xd21a9));function a28_0x5206(_0x2dd689,_0x2b59bd){_0x2dd689=_0x2dd689-0x17d;const _0x47f1c0=a28_0x47f1();let _0x520639=_0x47f1c0[_0x2dd689];return _0x520639;}function a28_0x47f1(){const _0x22bf8c=['855572sPjEou','428858wKcykB','497qFquYd','12MUUcIN','8671434Vfqjcf','60776KWCfnc','3618500dDJTrT','6LRpSwg','205640eRgiGi','2464569wowHOP'];a28_0x47f1=function(){return _0x22bf8c;};return a28_0x47f1();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a29_0x290b(_0x397ccc,_0x1ad387){_0x397ccc=_0x397ccc-0x1d4;const _0x47a9db=a29_0x47a9();let _0x290b5a=_0x47a9db[_0x397ccc];return _0x290b5a;}const a29_0x3d4987=a29_0x290b;(function(_0x439203,_0x4c4c60){const _0x2ae130=a29_0x290b,_0xa0920c=_0x439203();while(!![]){try{const _0xe2f770=-parseInt(_0x2ae130(0x1ea))/0x1*(parseInt(_0x2ae130(0x1da))/0x2)+parseInt(_0x2ae130(0x1dc))/0x3+-parseInt(_0x2ae130(0x1dd))/0x4+parseInt(_0x2ae130(0x1d5))/0x5*(-parseInt(_0x2ae130(0x1e0))/0x6)+parseInt(_0x2ae130(0x1de))/0x7+parseInt(_0x2ae130(0x1e1))/0x8+-parseInt(_0x2ae130(0x1d6))/0x9;if(_0xe2f770===_0x4c4c60)break;else _0xa0920c['push'](_0xa0920c['shift']());}catch(_0x313859){_0xa0920c['push'](_0xa0920c['shift']());}}}(a29_0x47a9,0x580b9));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0x47a9(){const _0x4a418d=['42CBtAeO','code','1555977crBwCx','618164yqOBrU','4798654yzPuLb','name','6vlxbYS','3329240LfIkAP','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','map','split','tableName','length','trim','allFields','str','2677PyaLUj','source','1947205nqQTnW','5935536ZtoPIV','datasetKey','dbtableConfig','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'];a29_0x47a9=function(){return _0x4a418d;};return a29_0x47a9();}export const datasetList={'service':'dataset','command':'list','description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a29_0x3d4987(0x1df),'type':'string','description':a29_0x3d4987(0x1e2)},{...CODE_FLAG,'required':![],'description':a29_0x3d4987(0x1d9)}],async 'execute'(_0x1bef8d){const _0x44d8e9=a29_0x3d4987,_0x12c8f7=_0x1bef8d[_0x44d8e9(0x1e9)]('name'),_0x5f0fb6=_0x1bef8d[_0x44d8e9(0x1e9)](_0x44d8e9(0x1db)),_0x233212=await listDatasets(_0x1bef8d['appCode'],{..._0x12c8f7&&{'name':_0x12c8f7},..._0x5f0fb6&&{'code':_0x5f0fb6}});return{'ok':!![],'data':{'total':_0x233212[_0x44d8e9(0x1e6)],'datasets':_0x233212[_0x44d8e9(0x1e3)](_0x2d3681=>{const _0xb760d5=_0x44d8e9,_0x556c41=_0x2d3681[_0xb760d5(0x1d8)]??{};return{'id':_0x2d3681['id'],'code':_0x2d3681[_0xb760d5(0x1db)],'name':_0x2d3681[_0xb760d5(0x1df)],'source':_0x2d3681[_0xb760d5(0x1d4)],'description':_0x2d3681['description'],'table':_0x556c41[_0xb760d5(0x1e5)],'datasetKey':_0x556c41[_0xb760d5(0x1d7)],'pk':_0x556c41['pkField'],'fields':_0x556c41[_0xb760d5(0x1e8)]?_0x556c41[_0xb760d5(0x1e8)][_0xb760d5(0x1e4)](',')[_0xb760d5(0x1e3)](_0x39ae9c=>_0x39ae9c[_0xb760d5(0x1e7)]()):[]};})}};}};
1
+ const a29_0x71515c=a29_0x8e5a;function a29_0x8e5a(_0x198eea,_0x3094d2){_0x198eea=_0x198eea-0xf0;const _0x486827=a29_0x4868();let _0x8e5af4=_0x486827[_0x198eea];return _0x8e5af4;}(function(_0x2cd998,_0x446914){const _0x485460=a29_0x8e5a,_0x2f7d0b=_0x2cd998();while(!![]){try{const _0x5bb976=-parseInt(_0x485460(0xff))/0x1+parseInt(_0x485460(0x104))/0x2+-parseInt(_0x485460(0xf3))/0x3+parseInt(_0x485460(0xfa))/0x4+parseInt(_0x485460(0x100))/0x5+-parseInt(_0x485460(0x103))/0x6*(-parseInt(_0x485460(0x105))/0x7)+-parseInt(_0x485460(0xf1))/0x8;if(_0x5bb976===_0x446914)break;else _0x2f7d0b['push'](_0x2f7d0b['shift']());}catch(_0x4bce29){_0x2f7d0b['push'](_0x2f7d0b['shift']());}}}(a29_0x4868,0x78f46));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a29_0x71515c(0x106),'command':a29_0x71515c(0xf9),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a29_0x71515c(0xf6),'flags':[{'name':a29_0x71515c(0xf0),'type':a29_0x71515c(0xf7),'description':a29_0x71515c(0x108)},{...CODE_FLAG,'required':![],'description':a29_0x71515c(0xf5)}],async 'execute'(_0x1aa4df){const _0x53caa2=a29_0x71515c,_0x42bbb5=_0x1aa4df[_0x53caa2(0x101)](_0x53caa2(0xf0)),_0x4f8972=_0x1aa4df[_0x53caa2(0x101)](_0x53caa2(0xfb)),_0x2ab39=await listDatasets(_0x1aa4df[_0x53caa2(0x102)],{..._0x42bbb5&&{'name':_0x42bbb5},..._0x4f8972&&{'code':_0x4f8972}});return{'ok':!![],'data':{'total':_0x2ab39['length'],'datasets':_0x2ab39[_0x53caa2(0xfc)](_0x3b31b0=>{const _0x11e7bc=_0x53caa2,_0x9cfcf3=_0x3b31b0['dbtableConfig']??{};return{'id':_0x3b31b0['id'],'code':_0x3b31b0['code'],'name':_0x3b31b0[_0x11e7bc(0xf0)],'source':_0x3b31b0[_0x11e7bc(0x107)],'description':_0x3b31b0[_0x11e7bc(0xfd)],'table':_0x9cfcf3[_0x11e7bc(0xfe)],'datasetKey':_0x9cfcf3[_0x11e7bc(0xf4)],'pk':_0x9cfcf3[_0x11e7bc(0xf8)],'fields':_0x9cfcf3['allFields']?_0x9cfcf3[_0x11e7bc(0xf2)]['split'](',')[_0x11e7bc(0xfc)](_0x4b2b7d=>_0x4b2b7d['trim']()):[]};})}};}};function a29_0x4868(){const _0x2094bb=['code','map','description','tableName','973117BsKESe','3558380RqUWAs','str','appCode','603228ivVpKj','1936790SRXwVp','56zCSLPP','dataset','source','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','name','3481440hWZGpH','allFields','2429889FPPWEi','datasetKey','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','read','string','pkField','list','917260ThugCT'];a29_0x4868=function(){return _0x2094bb;};return a29_0x4868();}
@@ -1 +1 @@
1
- const a30_0x1062d6=a30_0x232e;(function(_0x1c1d96,_0x3e395a){const _0x1ec546=a30_0x232e,_0x59d03a=_0x1c1d96();while(!![]){try{const _0x34e7a6=-parseInt(_0x1ec546(0x1fa))/0x1+-parseInt(_0x1ec546(0x1fd))/0x2+-parseInt(_0x1ec546(0x1f1))/0x3+-parseInt(_0x1ec546(0x1eb))/0x4+parseInt(_0x1ec546(0x1fc))/0x5+-parseInt(_0x1ec546(0x1f3))/0x6*(parseInt(_0x1ec546(0x1f2))/0x7)+-parseInt(_0x1ec546(0x1ec))/0x8*(-parseInt(_0x1ec546(0x1f8))/0x9);if(_0x34e7a6===_0x3e395a)break;else _0x59d03a['push'](_0x59d03a['shift']());}catch(_0x4881d5){_0x59d03a['push'](_0x59d03a['shift']());}}}(a30_0x190a,0x36d39));function a30_0x232e(_0x32ef2b,_0x305f49){_0x32ef2b=_0x32ef2b-0x1eb;const _0x190a6b=a30_0x190a();let _0x232e9e=_0x190a6b[_0x32ef2b];return _0x232e9e;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a30_0x190a(){const _0x4a4499=['string','code','6939PWOWxM','sdk-doc','76820lXyvdl','appCode','996435eSSzdJ','662500gCIrWv','542944QEqDvU','10312aJTNLx','read','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','str','1193853dgFfvy','140QGaSSJ','8034QyVeay','trim','dataset'];a30_0x190a=function(){return _0x4a4499;};return a30_0x190a();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a30_0x1062d6(0x1ef);export function formatDatasetSdkMarkdown(_0x170186){const _0x51e70c=a30_0x1062d6,_0x34be2b=typeof _0x170186===_0x51e70c(0x1f6)?_0x170186[_0x51e70c(0x1f4)]():'';return _0x34be2b||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a30_0x1062d6(0x1f5),'command':a30_0x1062d6(0x1f9),'description':a30_0x1062d6(0x1ee),'risk':a30_0x1062d6(0x1ed),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x3f5954){const _0x5c6601=a30_0x1062d6,_0x3e9cbb=_0x3f5954[_0x5c6601(0x1f0)](_0x5c6601(0x1f7)),_0x56c4ea=await getDatasetSdkUsageDoc(_0x3e9cbb,_0x3f5954[_0x5c6601(0x1fb)]);return{'ok':!![],'data':{'code':_0x3e9cbb,'appCode':_0x3f5954[_0x5c6601(0x1fb)],'markdown':formatDatasetSdkMarkdown(_0x56c4ea)}};}};
1
+ function a30_0x4e6b(){const _0x11a338=['1883025NapElv','dataset','4515050tWNElm','6960738sDiHBG','13235704fLanrR','read','470abKAnM','str','10zVKJSC','sdk-doc','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3281480xiGuYg','1040123LAAfes','code','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','string','15480NiOFeF','7oAhDzM'];a30_0x4e6b=function(){return _0x11a338;};return a30_0x4e6b();}const a30_0x452db9=a30_0x343e;function a30_0x343e(_0x577129,_0x23d652){_0x577129=_0x577129-0xef;const _0x4e6ba0=a30_0x4e6b();let _0x343ea1=_0x4e6ba0[_0x577129];return _0x343ea1;}(function(_0x20455b,_0x1cde74){const _0x4d456c=a30_0x343e,_0x4ae980=_0x20455b();while(!![]){try{const _0x575e7f=-parseInt(_0x4d456c(0xf7))/0x1+-parseInt(_0x4d456c(0xf1))/0x2*(-parseInt(_0x4d456c(0xfc))/0x3)+-parseInt(_0x4d456c(0xf6))/0x4+parseInt(_0x4d456c(0x100))/0x5+-parseInt(_0x4d456c(0x101))/0x6*(parseInt(_0x4d456c(0xfd))/0x7)+parseInt(_0x4d456c(0xef))/0x8+parseInt(_0x4d456c(0xfe))/0x9*(parseInt(_0x4d456c(0xf3))/0xa);if(_0x575e7f===_0x1cde74)break;else _0x4ae980['push'](_0x4ae980['shift']());}catch(_0x4271b0){_0x4ae980['push'](_0x4ae980['shift']());}}}(a30_0x4e6b,0xea0da));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x514370){const _0x5d0b6e=a30_0x343e,_0x4ba0d7=typeof _0x514370===_0x5d0b6e(0xfb)?_0x514370['trim']():'';return _0x4ba0d7||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a30_0x452db9(0xff),'command':a30_0x452db9(0xf4),'description':a30_0x452db9(0xfa),'risk':a30_0x452db9(0xf0),'flags':[{...CODE_FLAG,'description':a30_0x452db9(0xf5)}],async 'execute'(_0x3d7458){const _0x49fa0a=a30_0x452db9,_0x405248=_0x3d7458[_0x49fa0a(0xf2)](_0x49fa0a(0xf8)),_0x38b17b=await getDatasetSdkUsageDoc(_0x405248,_0x3d7458['appCode']);return{'ok':!![],'data':{'code':_0x405248,'appCode':_0x3d7458[_0x49fa0a(0xf9)],'markdown':formatDatasetSdkMarkdown(_0x38b17b)}};}};
@@ -1 +1 @@
1
- const a31_0x4ce857=a31_0xa559;(function(_0x3be3dc,_0xdbb46c){const _0x556994=a31_0xa559,_0x568602=_0x3be3dc();while(!![]){try{const _0x14d602=parseInt(_0x556994(0xf8))/0x1*(-parseInt(_0x556994(0xf7))/0x2)+-parseInt(_0x556994(0xe0))/0x3*(parseInt(_0x556994(0xfa))/0x4)+parseInt(_0x556994(0x120))/0x5*(parseInt(_0x556994(0x100))/0x6)+parseInt(_0x556994(0xf3))/0x7*(parseInt(_0x556994(0x11f))/0x8)+parseInt(_0x556994(0xb6))/0x9+parseInt(_0x556994(0xf6))/0xa+-parseInt(_0x556994(0xab))/0xb;if(_0x14d602===_0xdbb46c)break;else _0x568602['push'](_0x568602['shift']());}catch(_0x3ccf43){_0x568602['push'](_0x568602['shift']());}}}(a31_0x50ba,0x26112));import a31_0x37d3b3 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a31_0x50ba(){const _0x5d7aac=['commandCount','global','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','repeat','currentApp','\x20\x20Legacy\x20inherit:\x20\x20\x20','Global','✓\x20Valid\x20JSON','repairCommand','skillVersion','missing','\x20\x20Config\x20JSON','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20doctor','format','raw','\x20\x20Repair\x20project:\x20\x20','\x20config','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Invalid\x20JSON','\x20config\x20delete\x20inherit\x20--global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20API\x20Endpoints','serviceCount','name','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','projectConfig','routing','services','57nZXECL','path','verbose','\x20\x20auth\x20(effective):\x20','status','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','join','\x20config\x20delete\x20routing','Diagnose\x20CLI\x20configuration\x20and\x20environment','pageSize','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','region','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','doctor','appCode','inherit','\x20\x20─','filter','84qCAwwT','\x20\x20Routing\x20Configuration','padEnd','1003090DpJDqd','842QkMYQc','422IBGoiO','red','48296waVzSI','\x20\x20Auth','✓\x20Loaded','source','check','registryPath','6YtVGXU','\x20\x20Repair\x20global:\x20\x20\x20','bold','\x20\x20Country/Region\x20Configuration','\x20config\x20init','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','defaultApp','\x20\x20Built-in\x20Skill','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','Project','log','(missing)','yellow','current','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','gray','\x20commands)','hasOwnProperty','length','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','reason','accessKey','\x20config\x20delete\x20region','ClientAk','53112qVuylJ','1434230dFLPRu','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Config\x20Files','\x20config\x20delete\x20inherit','(unnamed)','green','1543168CELTUH','\x20\x20Package\x20Version:\x20','prototype','call','(no\x20file)','✗\x20Invalid','version','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','2128095lsFdmG','\x20\x20Service\x20Tree','read','empty'];a31_0x50ba=function(){return _0x5d7aac;};return a31_0x50ba();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a31_0xa559(_0x32b8a9,_0x2520f3){_0x32b8a9=_0x32b8a9-0xa8;const _0x50ba85=a31_0x50ba();let _0xa55929=_0x50ba85[_0x32b8a9];return _0xa55929;}async function execute(_0x3e3bc6){const _0x164c67=a31_0xa559,_0x3e555c=getCliVersion(),_0x3b26e2=buildConfigFromFlags({});let _0x3447c2,_0x5aa318;try{_0x3447c2=normalizeLovrabetRegion(_0x3b26e2[_0x164c67(0xcc)]['region']);}catch(_0x9c7068){_0x5aa318=_0x9c7068 instanceof Error?_0x9c7068:new Error(String(_0x9c7068));}let _0x3f2823;if(!_0x5aa318)try{await initGlobalEnvironment(_0x3b26e2);}catch(_0x43405b){_0x3f2823=_0x43405b instanceof Error?_0x43405b:new Error(String(_0x43405b));}console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](CLI_BIN_NAME+_0x164c67(0xca))),console[_0x164c67(0x10d)](a31_0x37d3b3['gray']('─'[_0x164c67(0xbe)](0x32))),console[_0x164c67(0x10d)](_0x164c67(0xb5)+_0x3e555c),console[_0x164c67(0x10d)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x164c67(0xb1)]),console['log'](_0x164c67(0xd3)+process['platform']+'\x20'+process['arch']);const _0x196521=inspectBuiltinSkill();console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0x108))),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)['repeat'](0x1e))),console['log'](_0x164c67(0x111)+(_0x196521[_0x164c67(0x10b)]==='current'?a31_0x37d3b3['green']('✓\x20current'):a31_0x37d3b3[_0x164c67(0xf9)]('✗\x20'+_0x196521['state']))),console[_0x164c67(0x10d)](_0x164c67(0xac)+_0x196521['packageVersion']),console[_0x164c67(0x10d)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x196521[_0x164c67(0xc4)]||a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0x10e)))),console['log'](_0x164c67(0x11a)+(_0x196521['installedPath']||a31_0x37d3b3['gray'](_0x164c67(0x106))));_0x196521['state']!==_0x164c67(0x110)&&console[_0x164c67(0x10d)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x196521[_0x164c67(0xc3)]);_0x196521[_0x164c67(0x11b)]&&console[_0x164c67(0x10d)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x196521[_0x164c67(0x11b)]);console['log'](),console[_0x164c67(0x10d)](a31_0x37d3b3['bold'](_0x164c67(0x122))),console['log'](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)['repeat'](0x1e)));const _0x397adc=getGlobalConfigPath(),_0x3cfb02=getProjectConfigPath();console[_0x164c67(0x10d)](_0x164c67(0xc8)+(_0x397adc||a31_0x37d3b3['gray'](_0x164c67(0x106)))),console[_0x164c67(0x10d)](_0x164c67(0xbc)+(_0x3cfb02||a31_0x37d3b3['gray']('(not\x20found)'))),console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0xc6))),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e)));const _0x14ffa3=(_0x55a8ef,_0x5684e8)=>{const _0x532f56=_0x164c67;if(!_0x5684e8){console[_0x532f56(0x10d)]('\x20\x20'+_0x55a8ef['padEnd'](0x11)+'\x20'+a31_0x37d3b3['gray'](_0x532f56(0xaf)));return;}const _0x136411=inspectCliConfigJsonFile(_0x5684e8);if(_0x136411[_0x532f56(0xe4)]==='ok')console[_0x532f56(0x10d)]('\x20\x20'+_0x55a8ef[_0x532f56(0xf5)](0x11)+'\x20'+a31_0x37d3b3[_0x532f56(0xaa)](_0x532f56(0xc2)));else{if(_0x136411[_0x532f56(0xe4)]===_0x532f56(0xb9))console[_0x532f56(0x10d)]('\x20\x20'+_0x55a8ef[_0x532f56(0xf5)](0x11)+'\x20'+a31_0x37d3b3['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x136411[_0x532f56(0xe4)]==='missing'?console[_0x532f56(0x10d)]('\x20\x20'+_0x55a8ef[_0x532f56(0xf5)](0x11)+'\x20'+a31_0x37d3b3[_0x532f56(0x113)](_0x532f56(0x10e))):(console[_0x532f56(0x10d)]('\x20\x20'+_0x55a8ef['padEnd'](0x11)+'\x20'+a31_0x37d3b3[_0x532f56(0xf9)](_0x532f56(0xd1))),console[_0x532f56(0x10d)]('\x20\x20'+''[_0x532f56(0xf5)](0x11)+'\x20'+a31_0x37d3b3[_0x532f56(0xf9)](_0x136411[_0x532f56(0xed)])));}};_0x14ffa3(_0x164c67(0xc1),_0x397adc),_0x14ffa3(_0x164c67(0x10c),_0x3cfb02);const _0x20c4a3=loadRawConfigLayers(),_0x533a61=[Object[_0x164c67(0xad)][_0x164c67(0x115)][_0x164c67(0xae)](_0x20c4a3[_0x164c67(0xda)],_0x164c67(0xf0))?_0x164c67(0xbb):null,Object['prototype'][_0x164c67(0x115)][_0x164c67(0xae)](_0x20c4a3[_0x164c67(0xdd)],_0x164c67(0xf0))?_0x164c67(0xc9):null][_0x164c67(0xf2)](Boolean);_0x533a61[_0x164c67(0x116)]>0x0&&(console[_0x164c67(0x10d)](_0x164c67(0xc0)+a31_0x37d3b3['yellow']('ignored\x20in\x20'+_0x533a61[_0x164c67(0xe6)]('\x20+\x20')+_0x164c67(0xce))),_0x533a61['includes']('project')&&console[_0x164c67(0x10d)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x164c67(0xa8)),_0x533a61['includes'](_0x164c67(0xbb))&&console[_0x164c67(0x10d)](_0x164c67(0xdc)+CLI_BIN_NAME+_0x164c67(0xd2)));_0x3f2823&&(console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0xf4))),console[_0x164c67(0x10d)](a31_0x37d3b3['gray'](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e))),console[_0x164c67(0x10d)](_0x164c67(0x118)+a31_0x37d3b3['red'](_0x164c67(0xb0))),console[_0x164c67(0x10d)](_0x164c67(0x109)+_0x3f2823[_0x164c67(0xed)]),Object[_0x164c67(0xad)][_0x164c67(0x115)][_0x164c67(0xae)](_0x20c4a3[_0x164c67(0xdd)],'routing')&&console['log'](_0x164c67(0xcd)+CLI_BIN_NAME+_0x164c67(0xe7)),Object['prototype'][_0x164c67(0x115)]['call'](_0x20c4a3[_0x164c67(0xda)],_0x164c67(0xde))&&console['log'](_0x164c67(0x101)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));_0x5aa318&&(console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0x103))),console[_0x164c67(0x10d)](a31_0x37d3b3['gray'](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e))),console['log'](_0x164c67(0x118)+a31_0x37d3b3[_0x164c67(0xf9)](_0x164c67(0xb0))),console[_0x164c67(0x10d)](_0x164c67(0x109)+_0x5aa318[_0x164c67(0xed)]),Object[_0x164c67(0xad)]['hasOwnProperty']['call'](_0x20c4a3['projectConfig'],_0x164c67(0xeb))&&console[_0x164c67(0x10d)](_0x164c67(0xcd)+CLI_BIN_NAME+_0x164c67(0x11d)),Object[_0x164c67(0xad)]['hasOwnProperty'][_0x164c67(0xae)](_0x20c4a3[_0x164c67(0xda)],_0x164c67(0xeb))&&console[_0x164c67(0x10d)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x164c67(0x104)));console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3['bold'](_0x164c67(0xbd))),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e))),console[_0x164c67(0x10d)](_0x164c67(0x10a)+(_0x3b26e2[_0x164c67(0xef)]||a31_0x37d3b3[_0x164c67(0xf9)]('(not\x20set)'))),console[_0x164c67(0x10d)](_0x164c67(0xec)+(_0x3447c2??a31_0x37d3b3[_0x164c67(0xf9)]('(invalid)'))),console[_0x164c67(0x10d)](_0x164c67(0x119)+_0x3b26e2['locale']),console[_0x164c67(0x10d)](_0x164c67(0xb4)+(_0x3b26e2[_0x164c67(0x107)]||a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xc7)))),console[_0x164c67(0x10d)](_0x164c67(0x117)+(_0x3b26e2[_0x164c67(0xbf)]||a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xc7)))),console[_0x164c67(0x10d)](_0x164c67(0xb2)+(_0x3b26e2[_0x164c67(0xcb)]||a31_0x37d3b3[_0x164c67(0x113)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x164c67(0x10d)](_0x164c67(0xd9)+(_0x3b26e2[_0x164c67(0xe9)]??a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xd4)))),console[_0x164c67(0x10d)](_0x164c67(0xd8)+_0x3b26e2['riskLevel']),console[_0x164c67(0x10d)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b26e2[_0x164c67(0xe2)]),console[_0x164c67(0x10d)](_0x164c67(0xe3)+AUTH_MODE[_0x164c67(0x11e)]),console[_0x164c67(0x10d)](_0x164c67(0xdb)+(_0x3b26e2[_0x164c67(0x11c)]?a31_0x37d3b3[_0x164c67(0xaa)]('(set,\x20length='+_0x3b26e2['accessKey'][_0x164c67(0x116)]+')'):a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xc7)))),console[_0x164c67(0x10d)](),console['log'](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0xd5))),console['log'](a31_0x37d3b3['gray']('\x20\x20─'[_0x164c67(0xbe)](0x1e)));_0x3f2823||_0x5aa318?console[_0x164c67(0x10d)](_0x164c67(0x118)+a31_0x37d3b3[_0x164c67(0xf9)](_0x164c67(0xea))):(console[_0x164c67(0x10d)](_0x164c67(0x112)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x164c67(0x10d)](_0x164c67(0xd0)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()));console[_0x164c67(0x10d)](),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x102)](_0x164c67(0xb7))),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e)));const _0x5e2e40=inspectServiceRegistry();console[_0x164c67(0x10d)](_0x164c67(0xcf)+_0x5e2e40[_0x164c67(0xff)]),console['log'](_0x164c67(0x118)+formatServiceRegistryStatus(_0x5e2e40)),console[_0x164c67(0x10d)](_0x164c67(0xe5)+_0x5e2e40[_0x164c67(0xd6)]),console['log'](_0x164c67(0x105)+_0x5e2e40[_0x164c67(0xba)]);for(const _0x5877d0 of _0x5e2e40[_0x164c67(0xdf)]){console[_0x164c67(0x10d)]('\x20\x20'+(_0x5877d0['serviceCode']+':')[_0x164c67(0xf5)](0x11)+'\x20'+(_0x5877d0[_0x164c67(0xd7)]||a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xa9)))+'\x20('+_0x5877d0[_0x164c67(0xba)]+_0x164c67(0x114)),console[_0x164c67(0x10d)]('\x20\x20'+''[_0x164c67(0xf5)](0x11)+_0x164c67(0xb3)+_0x5877d0[_0x164c67(0xfd)][_0x164c67(0xe1)]);}return console['log'](),console['log'](a31_0x37d3b3['bold'](_0x164c67(0xfb))),console[_0x164c67(0x10d)](a31_0x37d3b3[_0x164c67(0x113)](_0x164c67(0xf1)[_0x164c67(0xbe)](0x1e))),console[_0x164c67(0x10d)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a31_0x37d3b3[_0x164c67(0xaa)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x164c67(0x10d)](_0x164c67(0x121)+a31_0x37d3b3[_0x164c67(0x113)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x164c67(0x10d)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4405b2){const _0x1e702e=a31_0xa559;if(_0x4405b2[_0x1e702e(0xe4)]==='ok')return a31_0x37d3b3[_0x1e702e(0xaa)](_0x1e702e(0xfc));if(_0x4405b2[_0x1e702e(0xe4)]===_0x1e702e(0xc5))return a31_0x37d3b3[_0x1e702e(0x113)](_0x1e702e(0x106));if(_0x4405b2[_0x1e702e(0xe4)]===_0x1e702e(0xb9))return a31_0x37d3b3[_0x1e702e(0x10f)]('⚠\x20Empty');return a31_0x37d3b3['red'](_0x1e702e(0xb0)+(_0x4405b2['message']?':\x20'+_0x4405b2[_0x1e702e(0xed)]:''));}export const doctorDefinition={'service':a31_0x4ce857(0xee),'command':a31_0x4ce857(0xfe),'description':a31_0x4ce857(0xe8),'risk':a31_0x4ce857(0xb8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a31_0xeb831e=a31_0x4a6c;(function(_0x45a569,_0x31e477){const _0x1fa279=a31_0x4a6c,_0x64028=_0x45a569();while(!![]){try{const _0x1bb8f5=-parseInt(_0x1fa279(0x18b))/0x1*(-parseInt(_0x1fa279(0x17d))/0x2)+parseInt(_0x1fa279(0x1df))/0x3*(-parseInt(_0x1fa279(0x184))/0x4)+-parseInt(_0x1fa279(0x1f6))/0x5*(-parseInt(_0x1fa279(0x1dc))/0x6)+parseInt(_0x1fa279(0x1ef))/0x7*(-parseInt(_0x1fa279(0x1a1))/0x8)+-parseInt(_0x1fa279(0x1f3))/0x9+parseInt(_0x1fa279(0x1ac))/0xa*(parseInt(_0x1fa279(0x1be))/0xb)+parseInt(_0x1fa279(0x1e5))/0xc;if(_0x1bb8f5===_0x31e477)break;else _0x64028['push'](_0x64028['shift']());}catch(_0x238340){_0x64028['push'](_0x64028['shift']());}}}(a31_0x3453,0x709b1));import a31_0x446d1f from'chalk';function a31_0x3453(){const _0x18fe7b=['prototype','green','doctor','(missing)','\x20config\x20delete\x20routing','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','not\x20configured','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','425887NazrKn','length','version','\x20\x20Config\x20JSON','bold','✗\x20Invalid\x20JSON','repeat','\x20config\x20delete\x20inherit','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','packageVersion','\x20\x20kbServiceDomain:\x20','inherit','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','(unnamed)','read','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','log','Project','global','format','skillVersion','verbose','(no\x20file)','state','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Loaded','6wZzrfJ','accessKey','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','5505ofYiXM','\x20\x20Repair\x20global:\x20\x20\x20','includes','ignored\x20in\x20','\x20(accessKey)','\x20\x20Country/Region\x20Configuration','10127676YhYexX','\x20commands)','empty','\x20\x20Routing\x20Configuration','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','(none)','padEnd','hasOwnProperty','8078WREDKt','raw','gray','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4860504ofFILf','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','53830CXTxsJ','red','\x20config\x20init','\x20\x20Repair\x20global:\x20\x20\x20\x20','Global','\x20\x20skillDomain:\x20\x20\x20\x20\x20','serviceCode','arch','(invalid)','reason','\x20\x20Skill\x20Version:\x20\x20\x20','commandCount','missing','8bEexnX','source','\x20\x20runtimeDomain:\x20\x20\x20','region','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','\x20\x20Built-in\x20Skill','1484xKeBpG','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','registryPath','\x20\x20Config\x20Files','defaultApp','installedPath','176958JKvelQ','\x20\x20Auth','ClientAk','services','platform','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','filter','projectConfig','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','currentApp','\x20\x20Package\x20Version:\x20','globalConfig','\x20\x20Merged\x20Config','(not\x20found)','(default:\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','join','call','locale','\x20\x20Repair\x20project:\x20\x20\x20','4808bEwDpA','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(not\x20set)','project','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','current','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','✗\x20Invalid','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','210LxFGvj','\x20\x20auth\x20(effective):\x20','\x20config\x20delete\x20region','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','message','yellow'];a31_0x3453=function(){return _0x18fe7b;};return a31_0x3453();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';function a31_0x4a6c(_0x4f483e,_0x245a87){_0x4f483e=_0x4f483e-0x17d;const _0x3453ce=a31_0x3453();let _0x4a6c49=_0x3453ce[_0x4f483e];return _0x4a6c49;}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(_0x50ca96){const _0x2cea46=a31_0x4a6c,_0x1d4b3c=getCliVersion(),_0x276b77=buildConfigFromFlags({});let _0x5e0373,_0xa9fd59;try{_0x5e0373=normalizeLovrabetRegion(_0x276b77[_0x2cea46(0x1f0)]['region']);}catch(_0x26c50d){_0xa9fd59=_0x26c50d instanceof Error?_0x26c50d:new Error(String(_0x26c50d));}let _0x2c4209;if(!_0xa9fd59)try{await initGlobalEnvironment(_0x276b77);}catch(_0x2fb1e4){_0x2c4209=_0x2fb1e4 instanceof Error?_0x2fb1e4:new Error(String(_0x2fb1e4));}console[_0x2cea46(0x1d2)](),console['log'](a31_0x446d1f[_0x2cea46(0x1c2)](CLI_BIN_NAME+'\x20doctor')),console['log'](a31_0x446d1f[_0x2cea46(0x1f1)]('─'[_0x2cea46(0x1c4)](0x32))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1a2)+_0x1d4b3c),console[_0x2cea46(0x1d2)](_0x2cea46(0x1ea)+process[_0x2cea46(0x1c0)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2cea46(0x18f)]+'\x20'+process[_0x2cea46(0x1fd)]);const _0x3643c9=inspectBuiltinSkill();console['log'](),console['log'](a31_0x446d1f[_0x2cea46(0x1c2)](_0x2cea46(0x183))),console['log'](a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1f5)[_0x2cea46(0x1c4)](0x1e))),console[_0x2cea46(0x1d2)](_0x2cea46(0x185)+(_0x3643c9['state']===_0x2cea46(0x1a6)?a31_0x446d1f[_0x2cea46(0x1b4)]('✓\x20current'):a31_0x446d1f['red']('✗\x20'+_0x3643c9[_0x2cea46(0x1d9)]))),console[_0x2cea46(0x1d2)](_0x2cea46(0x197)+_0x3643c9[_0x2cea46(0x1ca)]),console[_0x2cea46(0x1d2)](_0x2cea46(0x200)+(_0x3643c9[_0x2cea46(0x1d6)]||a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1b6)))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1b0)+(_0x3643c9[_0x2cea46(0x18a)]||a31_0x446d1f['gray'](_0x2cea46(0x19a))));_0x3643c9['state']!==_0x2cea46(0x1a6)&&console['log'](_0x2cea46(0x194)+_0x3643c9[_0x2cea46(0x195)]);_0x3643c9['reason']&&console[_0x2cea46(0x1d2)](_0x2cea46(0x1af)+_0x3643c9[_0x2cea46(0x1ff)]);console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1c2)](_0x2cea46(0x188))),console[_0x2cea46(0x1d2)](a31_0x446d1f['gray']('\x20\x20─'[_0x2cea46(0x1c4)](0x1e)));const _0x401548=getGlobalConfigPath(),_0x1a6895=getProjectConfigPath();console[_0x2cea46(0x1d2)](_0x2cea46(0x1cd)+(_0x401548||a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x19a)))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1bb)+(_0x1a6895||a31_0x446d1f['gray'](_0x2cea46(0x19a)))),console['log'](),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1c2)](_0x2cea46(0x1c1))),console[_0x2cea46(0x1d2)](a31_0x446d1f['gray']('\x20\x20─'[_0x2cea46(0x1c4)](0x1e)));const _0x4ece8e=(_0x4621d2,_0x15e480)=>{const _0x506826=_0x2cea46;if(!_0x15e480){console[_0x506826(0x1d2)]('\x20\x20'+_0x4621d2[_0x506826(0x1ed)](0x11)+'\x20'+a31_0x446d1f['gray'](_0x506826(0x1d8)));return;}const _0x32868c=inspectCliConfigJsonFile(_0x15e480);if(_0x32868c[_0x506826(0x1ba)]==='ok')console['log']('\x20\x20'+_0x4621d2[_0x506826(0x1ed)](0x11)+'\x20'+a31_0x446d1f['green']('✓\x20Valid\x20JSON'));else{if(_0x32868c['status']===_0x506826(0x1e7))console['log']('\x20\x20'+_0x4621d2[_0x506826(0x1ed)](0x11)+'\x20'+a31_0x446d1f[_0x506826(0x1b2)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x32868c[_0x506826(0x1ba)]===_0x506826(0x202)?console[_0x506826(0x1d2)]('\x20\x20'+_0x4621d2[_0x506826(0x1ed)](0x11)+'\x20'+a31_0x446d1f[_0x506826(0x1f1)](_0x506826(0x1b6))):(console[_0x506826(0x1d2)]('\x20\x20'+_0x4621d2['padEnd'](0x11)+'\x20'+a31_0x446d1f[_0x506826(0x1f7)](_0x506826(0x1c3))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a31_0x446d1f[_0x506826(0x1f7)](_0x32868c[_0x506826(0x1b1)])));}};_0x4ece8e(_0x2cea46(0x1fa),_0x401548),_0x4ece8e(_0x2cea46(0x1d3),_0x1a6895);const _0x891fd9=loadRawConfigLayers(),_0x5fa6ba=[Object[_0x2cea46(0x1b3)][_0x2cea46(0x1ee)][_0x2cea46(0x19e)](_0x891fd9[_0x2cea46(0x198)],_0x2cea46(0x1cc))?_0x2cea46(0x1d4):null,Object[_0x2cea46(0x1b3)][_0x2cea46(0x1ee)][_0x2cea46(0x19e)](_0x891fd9[_0x2cea46(0x193)],_0x2cea46(0x1cc))?'project':null][_0x2cea46(0x192)](Boolean);_0x5fa6ba[_0x2cea46(0x1bf)]>0x0&&(console[_0x2cea46(0x1d2)](_0x2cea46(0x19c)+a31_0x446d1f['yellow'](_0x2cea46(0x1e2)+_0x5fa6ba[_0x2cea46(0x19d)](_0x2cea46(0x191))+'\x20config')),_0x5fa6ba[_0x2cea46(0x1e1)](_0x2cea46(0x1a4))&&console['log'](_0x2cea46(0x1a0)+CLI_BIN_NAME+_0x2cea46(0x1c5)),_0x5fa6ba['includes'](_0x2cea46(0x1d4))&&console[_0x2cea46(0x1d2)](_0x2cea46(0x1f9)+CLI_BIN_NAME+_0x2cea46(0x182)));_0x2c4209&&(console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1c2)](_0x2cea46(0x1e8))),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1f5)['repeat'](0x1e))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1c8)+a31_0x446d1f[_0x2cea46(0x1f7)]('✗\x20Invalid')),console[_0x2cea46(0x1d2)](_0x2cea46(0x1af)+_0x2c4209[_0x2cea46(0x1b1)]),Object['prototype']['hasOwnProperty'][_0x2cea46(0x19e)](_0x891fd9[_0x2cea46(0x193)],'routing')&&console[_0x2cea46(0x1d2)](_0x2cea46(0x1bd)+CLI_BIN_NAME+_0x2cea46(0x1b7)),Object[_0x2cea46(0x1b3)][_0x2cea46(0x1ee)][_0x2cea46(0x19e)](_0x891fd9[_0x2cea46(0x198)],_0x2cea46(0x1c7))&&console['log'](_0x2cea46(0x1e0)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));_0xa9fd59&&(console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f['bold'](_0x2cea46(0x1e4))),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1f5)['repeat'](0x1e))),console['log'](_0x2cea46(0x1c8)+a31_0x446d1f[_0x2cea46(0x1f7)](_0x2cea46(0x1aa))),console[_0x2cea46(0x1d2)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xa9fd59['message']),Object[_0x2cea46(0x1b3)][_0x2cea46(0x1ee)][_0x2cea46(0x19e)](_0x891fd9['projectConfig'],'region')&&console['log'](_0x2cea46(0x1bd)+CLI_BIN_NAME+_0x2cea46(0x1ae)),Object[_0x2cea46(0x1b3)]['hasOwnProperty']['call'](_0x891fd9[_0x2cea46(0x198)],_0x2cea46(0x180))&&console[_0x2cea46(0x1d2)](_0x2cea46(0x1e0)+CLI_BIN_NAME+_0x2cea46(0x1f8)));console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1c2)](_0x2cea46(0x199))),console['log'](a31_0x446d1f[_0x2cea46(0x1f1)]('\x20\x20─'[_0x2cea46(0x1c4)](0x1e))),console['log'](_0x2cea46(0x1bc)+(_0x276b77['appCode']||a31_0x446d1f[_0x2cea46(0x1f7)](_0x2cea46(0x1a3)))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1f2)+(_0x5e0373??a31_0x446d1f[_0x2cea46(0x1f7)](_0x2cea46(0x1fe)))),console['log'](_0x2cea46(0x1d1)+_0x276b77[_0x2cea46(0x19f)]),console[_0x2cea46(0x1d2)](_0x2cea46(0x1da)+(_0x276b77[_0x2cea46(0x189)]||a31_0x446d1f[_0x2cea46(0x1f1)]('(none)'))),console[_0x2cea46(0x1d2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x276b77[_0x2cea46(0x196)]||a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1ec)))),console[_0x2cea46(0x1d2)](_0x2cea46(0x1f4)+(_0x276b77[_0x2cea46(0x1d5)]||a31_0x446d1f['gray'](_0x2cea46(0x19b)+DEFAULT_CONFIG_VALUES[_0x2cea46(0x1d5)]+')'))),console[_0x2cea46(0x1d2)](_0x2cea46(0x181)+(_0x276b77['pageSize']??a31_0x446d1f[_0x2cea46(0x1f1)]('(default)'))),console['log'](_0x2cea46(0x1a5)+_0x276b77[_0x2cea46(0x1a9)]),console[_0x2cea46(0x1d2)](_0x2cea46(0x1b8)+_0x276b77[_0x2cea46(0x1d7)]),console[_0x2cea46(0x1d2)](_0x2cea46(0x1ad)+AUTH_MODE[_0x2cea46(0x18d)]),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x276b77[_0x2cea46(0x1dd)]?a31_0x446d1f[_0x2cea46(0x1b4)]('(set,\x20length='+_0x276b77['accessKey'][_0x2cea46(0x1bf)]+')'):a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1ec)))),console[_0x2cea46(0x1d2)](),console['log'](a31_0x446d1f[_0x2cea46(0x1c2)]('\x20\x20API\x20Endpoints')),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1f5)[_0x2cea46(0x1c4)](0x1e)));_0x2c4209||_0xa9fd59?console[_0x2cea46(0x1d2)](_0x2cea46(0x1c8)+a31_0x446d1f['red'](_0x2cea46(0x1eb))):(console[_0x2cea46(0x1d2)](_0x2cea46(0x1de)+getApiDomain()),console['log'](_0x2cea46(0x1ab)+getUserDomain()),console['log'](_0x2cea46(0x17f)+getRuntimeDomain()),console['log'](_0x2cea46(0x1fb)+getSkillDomain()),console['log'](_0x2cea46(0x1cb)+(getKbServiceDomain()??_0x2cea46(0x1b9))));console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f[_0x2cea46(0x1c2)]('\x20\x20Service\x20Tree')),console[_0x2cea46(0x1d2)](a31_0x446d1f['gray']('\x20\x20─'[_0x2cea46(0x1c4)](0x1e)));const _0x4d78f7=inspectServiceRegistry();console[_0x2cea46(0x1d2)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4d78f7[_0x2cea46(0x187)]),console[_0x2cea46(0x1d2)](_0x2cea46(0x1c8)+formatServiceRegistryStatus(_0x4d78f7)),console[_0x2cea46(0x1d2)](_0x2cea46(0x1a8)+_0x4d78f7['serviceCount']),console[_0x2cea46(0x1d2)](_0x2cea46(0x190)+_0x4d78f7[_0x2cea46(0x201)]);for(const _0xd318ff of _0x4d78f7[_0x2cea46(0x18e)]){console[_0x2cea46(0x1d2)]('\x20\x20'+(_0xd318ff[_0x2cea46(0x1fc)]+':')[_0x2cea46(0x1ed)](0x11)+'\x20'+(_0xd318ff['name']||a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1cf)))+'\x20('+_0xd318ff[_0x2cea46(0x201)]+_0x2cea46(0x1e6)),console[_0x2cea46(0x1d2)]('\x20\x20'+''[_0x2cea46(0x1ed)](0x11)+_0x2cea46(0x1ce)+_0xd318ff[_0x2cea46(0x17e)][_0x2cea46(0x186)]);}return console[_0x2cea46(0x1d2)](),console[_0x2cea46(0x1d2)](a31_0x446d1f['bold'](_0x2cea46(0x18c))),console['log'](a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1f5)[_0x2cea46(0x1c4)](0x1e))),console['log'](_0x2cea46(0x1c6)+a31_0x446d1f['green'](AUTH_MODE[_0x2cea46(0x18d)]+_0x2cea46(0x1e3))),console['log']('\x20\x20Session\x20check:\x20\x20\x20'+a31_0x446d1f[_0x2cea46(0x1f1)](_0x2cea46(0x1a7))),console[_0x2cea46(0x1d2)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5034b8){const _0x5e4d3e=a31_0x4a6c;if(_0x5034b8['status']==='ok')return a31_0x446d1f[_0x5e4d3e(0x1b4)](_0x5e4d3e(0x1db));if(_0x5034b8['status']===_0x5e4d3e(0x202))return a31_0x446d1f[_0x5e4d3e(0x1f1)]('(not\x20found)');if(_0x5034b8[_0x5e4d3e(0x1ba)]===_0x5e4d3e(0x1e7))return a31_0x446d1f[_0x5e4d3e(0x1b2)](_0x5e4d3e(0x1c9));return a31_0x446d1f['red']('✗\x20Invalid'+(_0x5034b8[_0x5e4d3e(0x1b1)]?':\x20'+_0x5034b8[_0x5e4d3e(0x1b1)]:''));}export const doctorDefinition={'service':a31_0xeb831e(0x1b5),'command':'check','description':a31_0xeb831e(0x1e9),'risk':a31_0xeb831e(0x1d0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a32_0x414c6a=a32_0x121f;(function(_0x1c3fb5,_0xf383a9){const _0x103abf=a32_0x121f,_0x53931b=_0x1c3fb5();while(!![]){try{const _0x28f40e=-parseInt(_0x103abf(0x175))/0x1*(-parseInt(_0x103abf(0x158))/0x2)+parseInt(_0x103abf(0x16d))/0x3+parseInt(_0x103abf(0x174))/0x4+parseInt(_0x103abf(0x15c))/0x5*(parseInt(_0x103abf(0x16a))/0x6)+-parseInt(_0x103abf(0x16f))/0x7+parseInt(_0x103abf(0x153))/0x8+-parseInt(_0x103abf(0x15b))/0x9;if(_0x28f40e===_0xf383a9)break;else _0x53931b['push'](_0x53931b['shift']());}catch(_0x1884d3){_0x53931b['push'](_0x53931b['shift']());}}}(a32_0x8af3,0xf004d));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a32_0x121f(_0x919eb5,_0xfeafee){_0x919eb5=_0x919eb5-0x152;const _0x8af36=a32_0x8af3();let _0x121f61=_0x8af36[_0x919eb5];return _0x121f61;}const FILE_FLAG={'name':'file','type':a32_0x414c6a(0x16e),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a32_0x414c6a(0x172),'type':a32_0x414c6a(0x16e),'required':!![],'description':a32_0x414c6a(0x160)},DOWNLOAD_FLAG={'name':a32_0x414c6a(0x16c),'type':a32_0x414c6a(0x166),'description':a32_0x414c6a(0x15d)},LONG_TERM_FLAG={'name':a32_0x414c6a(0x167),'type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x3e9aa0){const _0x5e4895=a32_0x414c6a,_0xbbe783=_0x3e9aa0[_0x5e4895(0x159)]();if(!_0xbbe783)throw CliErrors[_0x5e4895(0x169)](_0x5e4895(0x15e));return _0xbbe783;}const fileUpload={'service':a32_0x414c6a(0x156),'command':a32_0x414c6a(0x164),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a32_0x414c6a(0x162),'flags':[FILE_FLAG],async 'dryRun'(_0x25bccf){const _0x621bf7=a32_0x414c6a,_0x408ad4=requireRuntimeUploadFile(_0x25bccf[_0x621bf7(0x15a)]('file'),_0x621bf7(0x161));return dryRun('POST',_0x621bf7(0x152))[_0x621bf7(0x157)]({'appCode':_0x25bccf[_0x621bf7(0x15f)],'multipart':{'file':_0x408ad4}})['description']('Preview:\x20upload\x20'+_0x408ad4[_0x621bf7(0x154)]+_0x621bf7(0x16b)+_0x25bccf['appCode'])[_0x621bf7(0x170)]();},async 'execute'(_0x583dd6){const _0xefe5e7=a32_0x414c6a,_0x102aef=requireRuntimeUploadFile(_0x583dd6[_0xefe5e7(0x15a)](_0xefe5e7(0x156)),_0xefe5e7(0x161)),_0x4acc17=await uploadRuntimeFile(_0x583dd6[_0xefe5e7(0x15f)],_0x102aef[_0xefe5e7(0x154)]);return{'ok':!![],'data':_0x4acc17,'message':_0x4acc17[_0xefe5e7(0x168)]?_0xefe5e7(0x163)+_0x4acc17['filePath']+_0xefe5e7(0x165):_0xefe5e7(0x173)};}},fileQueryUrl={'service':a32_0x414c6a(0x156),'command':'query-url','description':a32_0x414c6a(0x171),'risk':a32_0x414c6a(0x162),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5de095){const _0x1dc605=a32_0x414c6a,_0x170b1f=requireFilePath(_0x5de095[_0x1dc605(0x15a)]('filepath')),_0x5cc7f7=await queryRuntimeFileUrl(_0x170b1f,{'download':_0x5de095[_0x1dc605(0x155)]('download'),'longTerm':_0x5de095['bool']('long-term')});return{'ok':!![],'data':_0x5cc7f7};}};function a32_0x8af3(){const _0x39ced2=['3850236SbsvSx','1129069iggjhm','/client/uploadFile','12066264SxEDWw','path','bool','file','body','2HwcOkP','trim','str','43694469jvBiNi','10750RbgoXK','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath\x20is\x20required.','appCode','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','File','read','Uploaded\x20file:\x20','upload','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','boolean','long-term','filePath','validation','4620JwSoSv','\x20to\x20runtime\x20app\x20','download','3379509ofvUbo','string','3806992AKbHOb','build','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','filepath','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a32_0x8af3=function(){return _0x39ced2;};return a32_0x8af3();}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a32_0x2794de=a32_0x54a8;(function(_0x2daa81,_0x57e566){const _0x250381=a32_0x54a8,_0x58aebf=_0x2daa81();while(!![]){try{const _0xb0c454=parseInt(_0x250381(0xfa))/0x1*(parseInt(_0x250381(0xfc))/0x2)+-parseInt(_0x250381(0xff))/0x3+-parseInt(_0x250381(0xfb))/0x4*(parseInt(_0x250381(0xe5))/0x5)+parseInt(_0x250381(0xe7))/0x6*(-parseInt(_0x250381(0x100))/0x7)+parseInt(_0x250381(0xd5))/0x8*(parseInt(_0x250381(0xd3))/0x9)+-parseInt(_0x250381(0xf1))/0xa*(parseInt(_0x250381(0xfe))/0xb)+parseInt(_0x250381(0xe9))/0xc*(parseInt(_0x250381(0xeb))/0xd);if(_0xb0c454===_0x57e566)break;else _0x58aebf['push'](_0x58aebf['shift']());}catch(_0x165061){_0x58aebf['push'](_0x58aebf['shift']());}}}(a32_0x3979,0x8eb00));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a32_0x3979(){const _0x30cc04=['.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','trim','10ECPkfn','path','/client/uploadFile','appCode','Uploaded\x20file:\x20','\x20to\x20runtime\x20app\x20','validation','query-url','filepath','547065zXqLlW','6172kVNvmj','2fcovtI','File','2176988eKwKTR','3343560HjYbMU','4392661hkNhQb','171qVkyIz','filePath','287864RfWziz','download','file','bool','str','read','Preview:\x20upload\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','upload','POST','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','build','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath\x20is\x20required.','1675QRzjDa','description','6NQFGnD','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','20136KztSLH','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','14027hflWWq','long-term','boolean'];a32_0x3979=function(){return _0x30cc04;};return a32_0x3979();}import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a32_0x2794de(0xd7),'type':a32_0x2794de(0xef),'required':!![],'description':a32_0x2794de(0xdc)},FILEPATH_FLAG={'name':a32_0x2794de(0xf9),'type':a32_0x2794de(0xef),'required':!![],'description':a32_0x2794de(0xdd)},DOWNLOAD_FLAG={'name':a32_0x2794de(0xd6),'type':a32_0x2794de(0xed),'description':a32_0x2794de(0xe3)},LONG_TERM_FLAG={'name':a32_0x2794de(0xec),'type':'boolean','description':a32_0x2794de(0xe0)};function requireFilePath(_0x5c38ee){const _0x3b4ce8=a32_0x2794de,_0x4c4c70=_0x5c38ee[_0x3b4ce8(0xf0)]();if(!_0x4c4c70)throw CliErrors[_0x3b4ce8(0xf7)](_0x3b4ce8(0xe4));return _0x4c4c70;}const fileUpload={'service':a32_0x2794de(0xd7),'command':a32_0x2794de(0xde),'description':a32_0x2794de(0xea),'risk':a32_0x2794de(0xda),'flags':[FILE_FLAG],async 'dryRun'(_0x51b197){const _0x31db40=a32_0x2794de,_0x531650=requireRuntimeUploadFile(_0x51b197[_0x31db40(0xd9)]('file'),'File');return dryRun(_0x31db40(0xdf),_0x31db40(0xf3))['body']({'appCode':_0x51b197[_0x31db40(0xf4)],'multipart':{'file':_0x531650}})[_0x31db40(0xe6)](_0x31db40(0xdb)+_0x531650[_0x31db40(0xf2)]+_0x31db40(0xf6)+_0x51b197[_0x31db40(0xf4)])[_0x31db40(0xe2)]();},async 'execute'(_0x20512e){const _0x37f02a=a32_0x2794de,_0x377016=requireRuntimeUploadFile(_0x20512e[_0x37f02a(0xd9)]('file'),_0x37f02a(0xfd)),_0x58839d=await uploadRuntimeFile(_0x20512e[_0x37f02a(0xf4)],_0x377016[_0x37f02a(0xf2)]);return{'ok':!![],'data':_0x58839d,'message':_0x58839d[_0x37f02a(0xd4)]?_0x37f02a(0xf5)+_0x58839d[_0x37f02a(0xd4)]+_0x37f02a(0xee):_0x37f02a(0xe1)};}},fileQueryUrl={'service':'file','command':a32_0x2794de(0xf8),'description':a32_0x2794de(0xe8),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x3af909){const _0x44d18c=a32_0x2794de,_0x17e8de=requireFilePath(_0x3af909['str']('filepath')),_0x661b5d=await queryRuntimeFileUrl(_0x17e8de,{'download':_0x3af909['bool'](_0x44d18c(0xd6)),'longTerm':_0x3af909[_0x44d18c(0xd8)](_0x44d18c(0xec))});return{'ok':!![],'data':_0x661b5d};}};function a32_0x54a8(_0x22a4e0,_0x1f163f){_0x22a4e0=_0x22a4e0-0xd3;const _0x39797a=a32_0x3979();let _0x54a8bd=_0x39797a[_0x22a4e0];return _0x54a8bd;}export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a33_0x14777e=a33_0x5979;(function(_0x2f0db2,_0x4d13f2){const _0x155782=a33_0x5979,_0x44dda3=_0x2f0db2();while(!![]){try{const _0x37ac1c=parseInt(_0x155782(0x1ba))/0x1+-parseInt(_0x155782(0x1d5))/0x2+-parseInt(_0x155782(0x1c0))/0x3*(parseInt(_0x155782(0x1bd))/0x4)+parseInt(_0x155782(0x1b6))/0x5*(-parseInt(_0x155782(0x1c3))/0x6)+parseInt(_0x155782(0x1b3))/0x7*(-parseInt(_0x155782(0x1c2))/0x8)+parseInt(_0x155782(0x1d4))/0x9*(-parseInt(_0x155782(0x1d3))/0xa)+parseInt(_0x155782(0x1cd))/0xb;if(_0x37ac1c===_0x4d13f2)break;else _0x44dda3['push'](_0x44dda3['shift']());}catch(_0x4e38a7){_0x44dda3['push'](_0x44dda3['shift']());}}}(a33_0x485b,0xa778f));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';function a33_0x485b(){const _0x1f56ef=['37176161dxpEbO','boolean','file','Override\x20imported\x20default\x20env','global','join','410OEuWZC','228609IkmGNY','1876272IniQHe','project','defaultApp','yes','log','\x20\x20default:\x20','Imported\x20from\x20','parse','Skip\x20confirmation\x20when\x20overwriting','\x20\x20appcode:\x20','140qaYvJc','message','string','10kvqtcX',')\x20instead\x20of\x20project','app','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','426602KVKfCG','Write\x20to\x20global\x20(~/','validation','7364pIaWZV','\x22.\x20Allowed:\x20','Source\x20file\x20not\x20found:\x20','249MyQpcu','entries','335184tueuOV','449838NSGfzP','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','\x20\x20config:\x20\x20','riskLevel','env','appcode','newConfigFileName','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','apps','includes'];a33_0x485b=function(){return _0x1f56ef;};return a33_0x485b();}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':'file','type':a33_0x14777e(0x1b5),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a33_0x14777e(0x1c8),'type':a33_0x14777e(0x1b5),'description':'Override\x20imported\x20default\x20appcode'},{'name':a33_0x14777e(0x1c7),'type':'string','description':a33_0x14777e(0x1d0),'enum':[...RUNTIME_ENV_VALUES]},{'name':a33_0x14777e(0x1d1),'type':a33_0x14777e(0x1ce),'description':a33_0x14777e(0x1bb)+PRODUCT_CONFIG[a33_0x14777e(0x1c9)]+a33_0x14777e(0x1b7),'default':![]},{'name':a33_0x14777e(0x1d8),'type':a33_0x14777e(0x1ce),'description':a33_0x14777e(0x1b1),'default':![]}];function a33_0x5979(_0x244460,_0x4e0f6f){_0x244460=_0x244460-0x1ad;const _0x485b53=a33_0x485b();let _0x597941=_0x485b53[_0x244460];return _0x597941;}export async function runAppImport(_0x458d65){const _0x80e0da=a33_0x14777e,_0x4732bd=_0x458d65[_0x80e0da(0x1d1)]?_0x80e0da(0x1d1):_0x80e0da(0x1d6),_0x5948da=resolveWriteConfigPath(_0x4732bd);await runFromImport(_0x458d65,_0x5948da);}async function runFromImport(_0x4ab024,_0x2fb51a){const _0x52acee=a33_0x14777e,_0x4f19cb=resolveFilePath(_0x4ab024[_0x52acee(0x1cf)]);if(!existsSync(_0x4f19cb))throw CliErrors[_0x52acee(0x1bc)](_0x52acee(0x1bf)+_0x4f19cb);const _0x53ca48=readSourceFile(_0x4f19cb),_0x5d2c30=convertToRuntimeConfig(_0x53ca48);_0x4ab024[_0x52acee(0x1c8)]&&(_0x5d2c30[_0x52acee(0x1c8)]=String(_0x4ab024[_0x52acee(0x1c8)]));_0x4ab024['env']&&(_0x5d2c30['env']=resolveImportEnv(_0x4ab024));if(!_0x5d2c30[_0x52acee(0x1c8)])throw CliErrors['validation'](_0x52acee(0x1ca),_0x52acee(0x1c4));await writeImportConfig(_0x2fb51a,_0x5d2c30,_0x4ab024),console['log'](_0x52acee(0x1af)+_0x4f19cb),console[_0x52acee(0x1ad)](_0x52acee(0x1c5)+_0x2fb51a),console[_0x52acee(0x1ad)](_0x52acee(0x1b2)+_0x5d2c30[_0x52acee(0x1c8)]);if(_0x5d2c30[_0x52acee(0x1d7)])console[_0x52acee(0x1ad)](_0x52acee(0x1ae)+_0x5d2c30['defaultApp']);}function convertToRuntimeConfig(_0x1e9db6){const _0x525441=a33_0x14777e;if(_0x1e9db6[_0x525441(0x1cb)]&&typeof _0x1e9db6[_0x525441(0x1cb)]==='object')throw CliErrors[_0x525441(0x1bc)](_0x525441(0x1b9),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0xca3015={};for(const _0x6ee284 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1e9db6[_0x6ee284]!==undefined&&(_0xca3015[_0x6ee284]=_0x1e9db6[_0x6ee284]);}return!_0xca3015[_0x525441(0x1c6)]&&(_0xca3015['riskLevel']=DEFAULT_CONFIG_VALUES[_0x525441(0x1c6)]),_0xca3015;}async function writeImportConfig(_0x202822,_0x31d20f,_0x13294e){const _0x3495d0=a33_0x14777e;let _0x3ff78c={};existsSync(_0x202822)&&!_0x13294e[_0x3495d0(0x1d8)]&&(_0x3ff78c=readConfigFile(_0x202822));for(const [_0x46574b,_0x460852]of Object[_0x3495d0(0x1c1)](_0x31d20f)){_0x460852!==undefined&&(_0x3ff78c[_0x46574b]=_0x460852);}if(_0x3ff78c['app'])delete _0x3ff78c[_0x3495d0(0x1b8)];writeConfigFile(_0x202822,_0x3ff78c);}function resolveFilePath(_0x1521b2){return isAbsolute(_0x1521b2)?_0x1521b2:resolve(process['cwd'](),_0x1521b2);}function readSourceFile(_0x54addd){const _0x21e5cf=a33_0x14777e;try{const _0x5337c3=readFileSync(_0x54addd,{'encoding':'utf8'});return JSON[_0x21e5cf(0x1b0)](_0x5337c3);}catch(_0x3f1b40){throw CliErrors[_0x21e5cf(0x1bc)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x3f1b40[_0x21e5cf(0x1b4)]);}}function resolveImportEnv(_0x52e6ad){const _0x4494c=a33_0x14777e,_0x580bc4=_0x52e6ad[_0x4494c(0x1c7)];if(_0x580bc4===undefined||_0x580bc4==='')return DEFAULT_CONFIG_VALUES[_0x4494c(0x1c7)];if(!RUNTIME_ENV_VALUES[_0x4494c(0x1cc)](_0x580bc4))throw CliErrors[_0x4494c(0x1bc)]('Invalid\x20env\x20\x22'+_0x580bc4+_0x4494c(0x1be)+RUNTIME_ENV_VALUES[_0x4494c(0x1d2)](',\x20'));return _0x580bc4;}
1
+ const a33_0xe3eb5=a33_0x3eba;(function(_0x5127ea,_0x22a578){const _0x5e85cb=a33_0x3eba,_0x321474=_0x5127ea();while(!![]){try{const _0x5155c8=parseInt(_0x5e85cb(0x174))/0x1+parseInt(_0x5e85cb(0x17d))/0x2+-parseInt(_0x5e85cb(0x173))/0x3*(parseInt(_0x5e85cb(0x184))/0x4)+parseInt(_0x5e85cb(0x171))/0x5*(parseInt(_0x5e85cb(0x16f))/0x6)+-parseInt(_0x5e85cb(0x17c))/0x7*(parseInt(_0x5e85cb(0x185))/0x8)+parseInt(_0x5e85cb(0x189))/0x9+parseInt(_0x5e85cb(0x17f))/0xa;if(_0x5155c8===_0x22a578)break;else _0x321474['push'](_0x321474['shift']());}catch(_0x10d0e9){_0x321474['push'](_0x321474['shift']());}}}(a33_0xb915,0x9a945));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';function a33_0xb915(){const _0x43eb3e=['Write\x20to\x20global\x20(~/','\x20\x20config:\x20\x20','cwd','\x22.\x20Allowed:\x20','log','Skip\x20confirmation\x20when\x20overwriting','app','entries','Source\x20file\x20not\x20found:\x20','project','Invalid\x20env\x20\x22','6oCfwZL','appcode','720445zAhEKg','validation','3HnRRMb','729985MgcYWy','Override\x20imported\x20default\x20env','riskLevel','defaultApp','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','message','boolean','env','7jGjbLf','515958DDNrwF','utf8','35600WCxiPx','apps','string','includes','object','3202736FxsBeD','4163024VqnYAS','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','file','yes','7367454nsdOTn','newConfigFileName','Override\x20imported\x20default\x20appcode','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','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`.',')\x20instead\x20of\x20project','global'];a33_0xb915=function(){return _0x43eb3e;};return a33_0xb915();}function a33_0x3eba(_0x1ef6b1,_0x185824){_0x1ef6b1=_0x1ef6b1-0x15e;const _0xb91523=a33_0xb915();let _0x3eba75=_0xb91523[_0x1ef6b1];return _0x3eba75;}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':a33_0xe3eb5(0x187),'type':a33_0xe3eb5(0x181),'description':a33_0xe3eb5(0x178),'required':!![]},{'name':a33_0xe3eb5(0x170),'type':'string','description':a33_0xe3eb5(0x15f)},{'name':a33_0xe3eb5(0x17b),'type':'string','description':a33_0xe3eb5(0x175),'enum':[...RUNTIME_ENV_VALUES]},{'name':a33_0xe3eb5(0x163),'type':a33_0xe3eb5(0x17a),'description':a33_0xe3eb5(0x164)+PRODUCT_CONFIG[a33_0xe3eb5(0x15e)]+a33_0xe3eb5(0x162),'default':![]},{'name':'yes','type':a33_0xe3eb5(0x17a),'description':a33_0xe3eb5(0x169),'default':![]}];export async function runAppImport(_0x326b16){const _0x6607b9=a33_0xe3eb5,_0x5642d4=_0x326b16['global']?_0x6607b9(0x163):_0x6607b9(0x16d),_0x42f983=resolveWriteConfigPath(_0x5642d4);await runFromImport(_0x326b16,_0x42f983);}async function runFromImport(_0x253b67,_0x2d2a6b){const _0x2009ae=a33_0xe3eb5,_0x4b3f67=resolveFilePath(_0x253b67[_0x2009ae(0x187)]);if(!existsSync(_0x4b3f67))throw CliErrors[_0x2009ae(0x172)](_0x2009ae(0x16c)+_0x4b3f67);const _0x5d5ba6=readSourceFile(_0x4b3f67),_0x8520cb=convertToRuntimeConfig(_0x5d5ba6);_0x253b67['appcode']&&(_0x8520cb[_0x2009ae(0x170)]=String(_0x253b67[_0x2009ae(0x170)]));_0x253b67[_0x2009ae(0x17b)]&&(_0x8520cb[_0x2009ae(0x17b)]=resolveImportEnv(_0x253b67));if(!_0x8520cb[_0x2009ae(0x170)])throw CliErrors[_0x2009ae(0x172)](_0x2009ae(0x186),_0x2009ae(0x161));await writeImportConfig(_0x2d2a6b,_0x8520cb,_0x253b67),console[_0x2009ae(0x168)]('Imported\x20from\x20'+_0x4b3f67),console[_0x2009ae(0x168)](_0x2009ae(0x165)+_0x2d2a6b),console[_0x2009ae(0x168)]('\x20\x20appcode:\x20'+_0x8520cb[_0x2009ae(0x170)]);if(_0x8520cb['defaultApp'])console[_0x2009ae(0x168)]('\x20\x20default:\x20'+_0x8520cb[_0x2009ae(0x177)]);}function convertToRuntimeConfig(_0x20f4d3){const _0x525ac3=a33_0xe3eb5;if(_0x20f4d3[_0x525ac3(0x180)]&&typeof _0x20f4d3[_0x525ac3(0x180)]===_0x525ac3(0x183))throw CliErrors['validation'](_0x525ac3(0x160),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x59a049={};for(const _0x5f402 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x20f4d3[_0x5f402]!==undefined&&(_0x59a049[_0x5f402]=_0x20f4d3[_0x5f402]);}return!_0x59a049[_0x525ac3(0x176)]&&(_0x59a049['riskLevel']=DEFAULT_CONFIG_VALUES[_0x525ac3(0x176)]),_0x59a049;}async function writeImportConfig(_0x3f3c1c,_0x3bd0b1,_0x5d9d74){const _0x5064fa=a33_0xe3eb5;let _0x2dcd69={};existsSync(_0x3f3c1c)&&!_0x5d9d74[_0x5064fa(0x188)]&&(_0x2dcd69=readConfigFile(_0x3f3c1c));for(const [_0x2ff202,_0x2f48b9]of Object[_0x5064fa(0x16b)](_0x3bd0b1)){_0x2f48b9!==undefined&&(_0x2dcd69[_0x2ff202]=_0x2f48b9);}if(_0x2dcd69[_0x5064fa(0x16a)])delete _0x2dcd69[_0x5064fa(0x16a)];writeConfigFile(_0x3f3c1c,_0x2dcd69);}function resolveFilePath(_0x3e3860){const _0x4de762=a33_0xe3eb5;return isAbsolute(_0x3e3860)?_0x3e3860:resolve(process[_0x4de762(0x166)](),_0x3e3860);}function readSourceFile(_0xe641b1){const _0x2a1fc4=a33_0xe3eb5;try{const _0xe0aa54=readFileSync(_0xe641b1,{'encoding':_0x2a1fc4(0x17e)});return JSON['parse'](_0xe0aa54);}catch(_0x144ce2){throw CliErrors[_0x2a1fc4(0x172)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x144ce2[_0x2a1fc4(0x179)]);}}function resolveImportEnv(_0x406311){const _0x566225=a33_0xe3eb5,_0x46e180=_0x406311[_0x566225(0x17b)];if(_0x46e180===undefined||_0x46e180==='')return DEFAULT_CONFIG_VALUES[_0x566225(0x17b)];if(!RUNTIME_ENV_VALUES[_0x566225(0x182)](_0x46e180))throw CliErrors[_0x566225(0x172)](_0x566225(0x16e)+_0x46e180+_0x566225(0x167)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x46e180;}
@@ -1 +1 @@
1
- const a34_0x3ae710=a34_0x4ae0;(function(_0x44a18a,_0x21df5e){const _0x5e511d=a34_0x4ae0,_0x52c18d=_0x44a18a();while(!![]){try{const _0x3ae16e=-parseInt(_0x5e511d(0x16f))/0x1*(parseInt(_0x5e511d(0x17a))/0x2)+parseInt(_0x5e511d(0x163))/0x3+parseInt(_0x5e511d(0x188))/0x4*(-parseInt(_0x5e511d(0x16a))/0x5)+-parseInt(_0x5e511d(0x15f))/0x6*(parseInt(_0x5e511d(0x184))/0x7)+parseInt(_0x5e511d(0x166))/0x8*(parseInt(_0x5e511d(0x180))/0x9)+-parseInt(_0x5e511d(0x17b))/0xa+parseInt(_0x5e511d(0x15b))/0xb*(parseInt(_0x5e511d(0x15d))/0xc);if(_0x3ae16e===_0x21df5e)break;else _0x52c18d['push'](_0x52c18d['shift']());}catch(_0x2cc3c5){_0x52c18d['push'](_0x52c18d['shift']());}}}(a34_0x1172,0x7b5ef));import{existsSync,readFileSync,statSync}from'node:fs';function a34_0x4ae0(_0x59d135,_0x1ee1b1){_0x59d135=_0x59d135-0x15a;const _0x1172e7=a34_0x1172();let _0x4ae0a2=_0x1172e7[_0x59d135];return _0x4ae0a2;}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a34_0x3ae710(0x193),'required':!![],'description':a34_0x3ae710(0x18a)},FILE_FLAG={'name':'file','type':a34_0x3ae710(0x193),'required':!![],'description':a34_0x3ae710(0x199)},QUERY_FLAG={'name':a34_0x3ae710(0x15e),'type':a34_0x3ae710(0x193),'required':!![],'description':a34_0x3ae710(0x162)},TOPK_FLAG={'name':'topk','type':a34_0x3ae710(0x195),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x5437c3){const _0x15d5d4=a34_0x3ae710;if(!_0x5437c3)throw CliErrors[_0x15d5d4(0x19d)](_0x15d5d4(0x169));if(!existsSync(_0x5437c3))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x5437c3);if(!statSync(_0x5437c3)[_0x15d5d4(0x16e)]())throw CliErrors[_0x15d5d4(0x19d)](_0x15d5d4(0x185)+_0x5437c3);return readFileSync(_0x5437c3,_0x15d5d4(0x197));}function summarizePersonalItem(_0x579cf7){const _0x109b39=a34_0x3ae710;return{'id':_0x579cf7['id'],'title':_0x579cf7['title'],'version':_0x579cf7[_0x109b39(0x178)],'ragStatus':_0x579cf7['ragStatus'],'ragErrorMessage':_0x579cf7['ragErrorMessage'],'updateTime':_0x579cf7[_0x109b39(0x177)]};}function detailPersonalItem(_0x68e5a1){const _0x5e135a=a34_0x3ae710;return{'id':_0x68e5a1['id'],'appCode':_0x68e5a1[_0x5e135a(0x17d)],'scope':_0x68e5a1['scope'],'userId':_0x68e5a1[_0x5e135a(0x17f)],'title':_0x68e5a1[_0x5e135a(0x18b)],'content':_0x68e5a1['content']??'','version':_0x68e5a1[_0x5e135a(0x178)],'ragStatus':_0x68e5a1['ragStatus'],'ragErrorMessage':_0x68e5a1['ragErrorMessage'],'createTime':_0x68e5a1[_0x5e135a(0x187)],'updateTime':_0x68e5a1[_0x5e135a(0x177)]};}function readTopK(_0x43aa4c){const _0x1b1c13=a34_0x3ae710,_0x5ca2df=_0x43aa4c[_0x1b1c13(0x186)]('topk');if(_0x5ca2df===undefined||_0x5ca2df===null||_0x5ca2df==='')return undefined;const _0x55538a=_0x43aa4c[_0x1b1c13(0x15a)](_0x1b1c13(0x174));if(!Number[_0x1b1c13(0x194)](_0x55538a)||_0x55538a<0x1||_0x55538a>0x32)throw CliErrors[_0x1b1c13(0x19d)](_0x1b1c13(0x173));return _0x55538a;}function a34_0x1172(){const _0x1b0f3a=['build','length','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','topk','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Updated\x20KB\x20entry\x20','updateTime','version','bool','118kAYWEE','9312940RZwGmk','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','appCode','str','userId','6880113xGBSBD','read','file','write','52213GExPVk','File\x20is\x20not\x20a\x20regular\x20file:\x20','flag','createTime','2754308TPhFBJ','create','Personal\x20knowledge-base\x20entry\x20title','title','/update','Personal\x20knowledge-base\x20entry\x20ID','map','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','POST','--kb-service-url\x20is\x20required\x20for\x20knowledge\x20search.','body','string','isSafeInteger','number','update','utf8','kb-service-url','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','accessKey','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','validation','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','num','11BmuuNq','/client/knowledge-base/personal/create','34354500FJZsEM','query','786MBtYJK','verbose','Search\x20query\x20is\x20required.','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','661557oVrkbV','description','signal','8xSnFfv','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','/client/knowledge-base/personal/','File\x20path\x20is\x20required.','5rmEydl','list','detail','Override\x20the\x20existing\x20entry\x20title','isFile','12636TQmOof','trim'];a34_0x1172=function(){return _0x1b0f3a;};return a34_0x1172();}const kbList={'service':'kb','command':a34_0x3ae710(0x16b),'description':a34_0x3ae710(0x17c),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x458e2e){const _0x485432=a34_0x3ae710,_0x2b6e28=await listPersonalKnowledgeBaseItems(_0x458e2e[_0x485432(0x17d)]);if(_0x458e2e[_0x485432(0x179)](_0x485432(0x160)))return{'ok':!![],'data':{'total':_0x2b6e28[_0x485432(0x172)],'items':_0x2b6e28}};return{'ok':!![],'data':{'total':_0x2b6e28[_0x485432(0x172)],'items':_0x2b6e28[_0x485432(0x18e)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a34_0x3ae710(0x16c),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a34_0x3ae710(0x181),'flags':[{...ID_FLAG,'description':a34_0x3ae710(0x18d)}],async 'execute'(_0x50de28){const _0x7db2ba=a34_0x3ae710,_0x5a8d15=await getPersonalKnowledgeBaseItem(_0x50de28[_0x7db2ba(0x15a)]('id'),_0x50de28[_0x7db2ba(0x17d)]);return{'ok':!![],'data':detailPersonalItem(_0x5a8d15)};}},kbCreate={'service':'kb','command':a34_0x3ae710(0x189),'description':a34_0x3ae710(0x19c),'risk':a34_0x3ae710(0x183),'confirmationDescription':a34_0x3ae710(0x19e),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4a2e45){const _0x3a922b=a34_0x3ae710,_0x6b4a0f=_0x4a2e45['str'](_0x3a922b(0x18b)),_0x3c4d7d=readKnowledgeFile(_0x4a2e45[_0x3a922b(0x17e)](_0x3a922b(0x182))),_0x318dcc=await createPersonalKnowledgeBaseItem(_0x4a2e45[_0x3a922b(0x17d)],{'title':_0x6b4a0f,'content':_0x3c4d7d});return{'ok':!![],'data':summarizePersonalItem(_0x318dcc),'message':'Created\x20KB\x20entry\x20'+_0x318dcc['id']+'\x20('+_0x318dcc[_0x3a922b(0x18b)]+')'};},async 'dryRun'(_0x326e34){const _0x466bd7=a34_0x3ae710,_0x455484=_0x326e34[_0x466bd7(0x17e)]('title'),_0x27860f=readKnowledgeFile(_0x326e34[_0x466bd7(0x17e)](_0x466bd7(0x182)));return dryRun(_0x466bd7(0x190),_0x466bd7(0x15c))['body']({'appCode':_0x326e34['appCode'],'title':_0x455484,'content':_0x27860f})['description'](_0x466bd7(0x18f)+_0x455484+'\x22')[_0x466bd7(0x171)]();}},kbUpdate={'service':'kb','command':a34_0x3ae710(0x196),'description':a34_0x3ae710(0x19a),'risk':a34_0x3ae710(0x183),'confirmationDescription':a34_0x3ae710(0x167),'flags':[{...ID_FLAG,'description':a34_0x3ae710(0x18d)},{...TITLE_FLAG,'required':![],'description':a34_0x3ae710(0x16d)},FILE_FLAG],async 'execute'(_0x2c8fba){const _0x301729=a34_0x3ae710,_0x22df8a=_0x2c8fba[_0x301729(0x15a)]('id'),_0x5bf97a=readKnowledgeFile(_0x2c8fba['str']('file')),_0x5932f2=_0x2c8fba[_0x301729(0x17e)](_0x301729(0x18b))||(await getPersonalKnowledgeBaseItem(_0x22df8a,_0x2c8fba[_0x301729(0x17d)]))[_0x301729(0x18b)],_0x1e0695=await updatePersonalKnowledgeBaseItem(_0x22df8a,_0x2c8fba['appCode'],{'title':_0x5932f2,'content':_0x5bf97a});return{'ok':!![],'data':summarizePersonalItem(_0x1e0695),'message':_0x301729(0x176)+_0x1e0695['id']+'\x20('+_0x1e0695[_0x301729(0x18b)]+')'};},async 'dryRun'(_0x325bd6){const _0x1fb4e3=a34_0x3ae710,_0x581565=_0x325bd6[_0x1fb4e3(0x15a)]('id'),_0x14f2b3=readKnowledgeFile(_0x325bd6[_0x1fb4e3(0x17e)](_0x1fb4e3(0x182))),_0x3fd52b=_0x325bd6[_0x1fb4e3(0x17e)](_0x1fb4e3(0x18b))||(await getPersonalKnowledgeBaseItem(_0x581565,_0x325bd6['appCode']))[_0x1fb4e3(0x18b)];return dryRun(_0x1fb4e3(0x190),_0x1fb4e3(0x168)+_0x581565+_0x1fb4e3(0x18c))[_0x1fb4e3(0x192)]({'appCode':_0x325bd6[_0x1fb4e3(0x17d)],'title':_0x3fd52b,'content':_0x14f2b3})[_0x1fb4e3(0x164)](_0x1fb4e3(0x175)+_0x581565)[_0x1fb4e3(0x171)]();}};function readSearchServiceUrl(_0x573457){const _0x4860fb=a34_0x3ae710,_0x46ba40=_0x573457[_0x4860fb(0x17e)](_0x4860fb(0x198));if(!_0x46ba40[_0x4860fb(0x170)]())throw CliErrors[_0x4860fb(0x19d)](_0x4860fb(0x191));return normalizeKbServiceOrigin(_0x46ba40);}const kbSearch={'service':'kb','command':'search','description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a34_0x3ae710(0x181),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a34_0x3ae710(0x198),'type':'string','required':!![],'description':'Trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20V2\x20knowledge\x20search'}],async 'validate'(_0x2838bd){const _0x554c7a=a34_0x3ae710;if(!_0x2838bd['str']('query')[_0x554c7a(0x170)]())throw CliErrors[_0x554c7a(0x19d)](_0x554c7a(0x161));readTopK(_0x2838bd),readSearchServiceUrl(_0x2838bd);},async 'execute'(_0x109413){const _0x2fe014=a34_0x3ae710,_0x3b0a1d=_0x109413['str'](_0x2fe014(0x15e))[_0x2fe014(0x170)](),_0x17a43a=readTopK(_0x109413),_0x13d05b=readSearchServiceUrl(_0x109413),_0x2f9c00={'appCode':_0x109413['appCode'],'accessKey':_0x109413[_0x2fe014(0x19b)]??'','query':_0x3b0a1d,..._0x17a43a!==undefined?{'topK':_0x17a43a}:{},'signal':_0x109413[_0x2fe014(0x165)]},_0x15eee2=await searchDirectKnowledge({..._0x2f9c00,'serviceUrl':_0x13d05b});return{'ok':!![],'data':_0x15eee2};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a34_0x54c9a5=a34_0x3d20;(function(_0xcf3758,_0x359a49){const _0x3422a8=a34_0x3d20,_0x469a57=_0xcf3758();while(!![]){try{const _0x351b50=-parseInt(_0x3422a8(0x145))/0x1+-parseInt(_0x3422a8(0x134))/0x2+parseInt(_0x3422a8(0x151))/0x3*(-parseInt(_0x3422a8(0x128))/0x4)+-parseInt(_0x3422a8(0x13f))/0x5*(parseInt(_0x3422a8(0x15d))/0x6)+parseInt(_0x3422a8(0x168))/0x7*(-parseInt(_0x3422a8(0x165))/0x8)+parseInt(_0x3422a8(0x143))/0x9*(-parseInt(_0x3422a8(0x157))/0xa)+parseInt(_0x3422a8(0x15a))/0xb*(parseInt(_0x3422a8(0x137))/0xc);if(_0x351b50===_0x359a49)break;else _0x469a57['push'](_0x469a57['shift']());}catch(_0x556a53){_0x469a57['push'](_0x469a57['shift']());}}}(a34_0x88ac,0x6e20a));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a34_0x3d20(_0x44ffb6,_0x143bc6){_0x44ffb6=_0x44ffb6-0x124;const _0x88acb=a34_0x88ac();let _0x3d2073=_0x88acb[_0x44ffb6];return _0x3d2073;}import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a34_0x54c9a5(0x158),'type':a34_0x54c9a5(0x139),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a34_0x54c9a5(0x16a),'type':a34_0x54c9a5(0x139),'required':!![],'description':a34_0x54c9a5(0x15b)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a34_0x54c9a5(0x136),'type':a34_0x54c9a5(0x12a),'description':a34_0x54c9a5(0x14c)};function readKnowledgeFile(_0xf7398d){const _0x40e249=a34_0x54c9a5;if(!_0xf7398d)throw CliErrors[_0x40e249(0x12e)](_0x40e249(0x154));if(!existsSync(_0xf7398d))throw CliErrors[_0x40e249(0x12e)](_0x40e249(0x127)+_0xf7398d);if(!statSync(_0xf7398d)[_0x40e249(0x14b)]())throw CliErrors[_0x40e249(0x12e)](_0x40e249(0x13c)+_0xf7398d);return readFileSync(_0xf7398d,'utf8');}function summarizePersonalItem(_0x4f0d2c){const _0x169df0=a34_0x54c9a5;return{'id':_0x4f0d2c['id'],'title':_0x4f0d2c[_0x169df0(0x158)],'version':_0x4f0d2c[_0x169df0(0x135)],'ragStatus':_0x4f0d2c[_0x169df0(0x138)],'ragErrorMessage':_0x4f0d2c['ragErrorMessage'],'updateTime':_0x4f0d2c['updateTime']};}function detailPersonalItem(_0x11da49){const _0x1c7bb3=a34_0x54c9a5;return{'id':_0x11da49['id'],'appCode':_0x11da49[_0x1c7bb3(0x141)],'scope':_0x11da49[_0x1c7bb3(0x131)],'userId':_0x11da49[_0x1c7bb3(0x15c)],'title':_0x11da49[_0x1c7bb3(0x158)],'content':_0x11da49[_0x1c7bb3(0x13a)]??'','version':_0x11da49[_0x1c7bb3(0x135)],'ragStatus':_0x11da49[_0x1c7bb3(0x138)],'ragErrorMessage':_0x11da49[_0x1c7bb3(0x166)],'createTime':_0x11da49[_0x1c7bb3(0x152)],'updateTime':_0x11da49[_0x1c7bb3(0x161)]};}function readTopK(_0xe9c70c){const _0x5b9e32=a34_0x54c9a5,_0x2ab842=_0xe9c70c[_0x5b9e32(0x12d)](_0x5b9e32(0x136));if(_0x2ab842===undefined||_0x2ab842===null||_0x2ab842==='')return undefined;const _0x3ad33c=_0xe9c70c[_0x5b9e32(0x146)](_0x5b9e32(0x136));if(!Number[_0x5b9e32(0x142)](_0x3ad33c)||_0x3ad33c<0x1||_0x3ad33c>0x32)throw CliErrors[_0x5b9e32(0x12e)](_0x5b9e32(0x14d));return _0x3ad33c;}const kbList={'service':'kb','command':a34_0x54c9a5(0x129),'description':a34_0x54c9a5(0x148),'risk':a34_0x54c9a5(0x14f),'flags':[VERBOSE_FLAG],async 'execute'(_0x32d187){const _0x39bfae=a34_0x54c9a5,_0x1f3ca9=await listPersonalKnowledgeBaseItems(_0x32d187[_0x39bfae(0x141)]);if(_0x32d187[_0x39bfae(0x15e)](_0x39bfae(0x12b)))return{'ok':!![],'data':{'total':_0x1f3ca9['length'],'items':_0x1f3ca9}};return{'ok':!![],'data':{'total':_0x1f3ca9[_0x39bfae(0x140)],'items':_0x1f3ca9['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a34_0x54c9a5(0x147),'description':a34_0x54c9a5(0x14e),'risk':a34_0x54c9a5(0x14f),'flags':[{...ID_FLAG,'description':a34_0x54c9a5(0x130)}],async 'execute'(_0x376df5){const _0x473115=a34_0x54c9a5,_0x501616=await getPersonalKnowledgeBaseItem(_0x376df5[_0x473115(0x146)]('id'),_0x376df5[_0x473115(0x141)]);return{'ok':!![],'data':detailPersonalItem(_0x501616)};}},kbCreate={'service':'kb','command':a34_0x54c9a5(0x14a),'description':a34_0x54c9a5(0x144),'risk':a34_0x54c9a5(0x124),'confirmationDescription':a34_0x54c9a5(0x16b),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x2cebc8){const _0x4c427f=a34_0x54c9a5,_0x2b9309=_0x2cebc8[_0x4c427f(0x156)](_0x4c427f(0x158)),_0x1b2950=readKnowledgeFile(_0x2cebc8['str'](_0x4c427f(0x16a))),_0x239f05=await createPersonalKnowledgeBaseItem(_0x2cebc8[_0x4c427f(0x141)],{'title':_0x2b9309,'content':_0x1b2950});return{'ok':!![],'data':summarizePersonalItem(_0x239f05),'message':_0x4c427f(0x153)+_0x239f05['id']+'\x20('+_0x239f05[_0x4c427f(0x158)]+')'};},async 'dryRun'(_0x2db866){const _0x434bb6=a34_0x54c9a5,_0x5a1e01=_0x2db866[_0x434bb6(0x156)]('title'),_0x143a97=readKnowledgeFile(_0x2db866[_0x434bb6(0x156)](_0x434bb6(0x16a)));return dryRun(_0x434bb6(0x13d),_0x434bb6(0x125))[_0x434bb6(0x163)]({'appCode':_0x2db866['appCode'],'title':_0x5a1e01,'content':_0x143a97})[_0x434bb6(0x160)](_0x434bb6(0x164)+_0x5a1e01+'\x22')[_0x434bb6(0x149)]();}},kbUpdate={'service':'kb','command':a34_0x54c9a5(0x133),'description':a34_0x54c9a5(0x162),'risk':a34_0x54c9a5(0x124),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':a34_0x54c9a5(0x130)},{...TITLE_FLAG,'required':![],'description':a34_0x54c9a5(0x155)},FILE_FLAG],async 'execute'(_0x1ac3bb){const _0x582823=a34_0x54c9a5,_0x9bb5bf=_0x1ac3bb[_0x582823(0x146)]('id'),_0x40d893=readKnowledgeFile(_0x1ac3bb['str'](_0x582823(0x16a))),_0x58f801=_0x1ac3bb[_0x582823(0x156)]('title')||(await getPersonalKnowledgeBaseItem(_0x9bb5bf,_0x1ac3bb[_0x582823(0x141)]))[_0x582823(0x158)],_0x328d6a=await updatePersonalKnowledgeBaseItem(_0x9bb5bf,_0x1ac3bb[_0x582823(0x141)],{'title':_0x58f801,'content':_0x40d893});return{'ok':!![],'data':summarizePersonalItem(_0x328d6a),'message':'Updated\x20KB\x20entry\x20'+_0x328d6a['id']+'\x20('+_0x328d6a['title']+')'};},async 'dryRun'(_0x497145){const _0xf3f956=a34_0x54c9a5,_0x57bcb7=_0x497145[_0xf3f956(0x146)]('id'),_0x3f3c65=readKnowledgeFile(_0x497145[_0xf3f956(0x156)](_0xf3f956(0x16a))),_0x3dad57=_0x497145[_0xf3f956(0x156)]('title')||(await getPersonalKnowledgeBaseItem(_0x57bcb7,_0x497145[_0xf3f956(0x141)]))['title'];return dryRun(_0xf3f956(0x13d),'/client/knowledge-base/personal/'+_0x57bcb7+_0xf3f956(0x150))[_0xf3f956(0x163)]({'appCode':_0x497145[_0xf3f956(0x141)],'title':_0x3dad57,'content':_0x3f3c65})[_0xf3f956(0x160)](_0xf3f956(0x132)+_0x57bcb7)[_0xf3f956(0x149)]();}};function a34_0x88ac(){const _0x500823=['write','/client/knowledge-base/personal/create','Search\x20query\x20is\x20required.','File\x20not\x20found:\x20','108hlFbwh','list','number','verbose','search','flag','validation','kb-service-url','Personal\x20knowledge-base\x20entry\x20ID','scope','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','update','534348CNkOxP','version','topk','384YkIiIK','ragStatus','string','content','accessKey','File\x20is\x20not\x20a\x20regular\x20file:\x20','POST','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','5XGQfyw','length','appCode','isSafeInteger','711LVlgUf','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','650766FxqlXX','num','detail','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','build','create','isFile','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','read','/update','2073MfaMuE','createTime','Created\x20KB\x20entry\x20','File\x20path\x20is\x20required.','Override\x20the\x20existing\x20entry\x20title','str','70370WZPXEV','title','trim','983752vhmvOa','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','userId','3580908oMJoOD','bool','query','description','updateTime','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','body','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','608RMdKMR','ragErrorMessage','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','29603cWbySF','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','file','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.'];a34_0x88ac=function(){return _0x500823;};return a34_0x88ac();}function readSearchServiceUrl(_0xdff366){const _0x596571=a34_0x54c9a5;if(_0xdff366['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0xdff366[_0x596571(0x156)](_0x596571(0x12f)));const _0x2bb17b=getKbServiceDomain();if(!_0x2bb17b)throw CliErrors[_0x596571(0x12e)](_0x596571(0x13e),'Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x2bb17b);}const kbSearch={'service':'kb','command':a34_0x54c9a5(0x12c),'description':a34_0x54c9a5(0x169),'risk':a34_0x54c9a5(0x14f),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a34_0x54c9a5(0x12f),'type':a34_0x54c9a5(0x139),'required':![],'description':a34_0x54c9a5(0x167)}],async 'validate'(_0x339ce2){const _0xd97bf8=a34_0x54c9a5;if(!_0x339ce2[_0xd97bf8(0x156)](_0xd97bf8(0x15f))[_0xd97bf8(0x159)]())throw CliErrors[_0xd97bf8(0x12e)](_0xd97bf8(0x126));readTopK(_0x339ce2),readSearchServiceUrl(_0x339ce2);},async 'execute'(_0xae543e){const _0x21dbe1=a34_0x54c9a5,_0x4981a6=_0xae543e[_0x21dbe1(0x156)](_0x21dbe1(0x15f))[_0x21dbe1(0x159)](),_0x433741=readTopK(_0xae543e),_0x5ed761=readSearchServiceUrl(_0xae543e),_0x23c5db={'appCode':_0xae543e[_0x21dbe1(0x141)],'accessKey':_0xae543e[_0x21dbe1(0x13b)]??'','query':_0x4981a6,..._0x433741!==undefined?{'topK':_0x433741}:{},'signal':_0xae543e['signal']},_0x283524=await searchDirectKnowledge({..._0x23c5db,'serviceUrl':_0x5ed761});return{'ok':!![],'data':_0x283524};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a35_0x25df2b=a35_0x1df6;(function(_0xeaf46,_0x123d96){const _0x614302=a35_0x1df6,_0x1617b1=_0xeaf46();while(!![]){try{const _0xd09393=-parseInt(_0x614302(0x7d))/0x1*(-parseInt(_0x614302(0x84))/0x2)+-parseInt(_0x614302(0x8b))/0x3*(parseInt(_0x614302(0x80))/0x4)+-parseInt(_0x614302(0x77))/0x5+-parseInt(_0x614302(0x76))/0x6+parseInt(_0x614302(0x92))/0x7*(-parseInt(_0x614302(0x83))/0x8)+parseInt(_0x614302(0x8a))/0x9*(parseInt(_0x614302(0x7b))/0xa)+parseInt(_0x614302(0x78))/0xb;if(_0xd09393===_0x123d96)break;else _0x1617b1['push'](_0x1617b1['shift']());}catch(_0x4a9f5e){_0x1617b1['push'](_0x1617b1['shift']());}}}(a35_0x4609,0x58e2f));import{logger}from'../../utils/logger.js';function a35_0x4609(){const _0xa4b318=['details','log','success','warn','4942oTBhBy','keys','forEach','View\x20command\x20history\x20logs','645072ssfwnj','2521035kgUhqk','8203888usTWYa','message','\x20\x20\x20Time:\x20','341720cdMSMD','length','55RxoZJM','readLogs','read','2111588HflImm','logs','level','2992zAQUVw','14794kYPbQa','duration','\x20logs:\x0a','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','stringify','162tWzpxB','3PRNRat','*\x20No\x20logs\x20found','command'];a35_0x4609=function(){return _0xa4b318;};return a35_0x4609();}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a35_0x1df6(_0x26103d,_0x44487c){_0x26103d=_0x26103d-0x76;const _0x460982=a35_0x4609();let _0x1df697=_0x460982[_0x26103d];return _0x1df697;}function printLogs(_0x104bd3){const _0x2e8453=a35_0x1df6;if(_0x104bd3[_0x2e8453(0x7c)]===0x0){console['log'](_0x2e8453(0x8c));return;}console[_0x2e8453(0x8f)]('*\x20'+CLI_DISPLAY_NAME+_0x2e8453(0x86)),_0x104bd3[_0x2e8453(0x94)]((_0x525d1e,_0x43e7c9)=>{const _0x36014f=_0x2e8453,_0xebdcab=new Date(_0x525d1e['timestamp'])['toLocaleString']('en-US'),_0x25b702=_0x525d1e[_0x36014f(0x82)]===_0x36014f(0x90)?'√':_0x525d1e[_0x36014f(0x82)]==='error'?'×':_0x525d1e[_0x36014f(0x82)]===_0x36014f(0x91)?'!':'i';console['log'](_0x43e7c9+0x1+'.\x20'+_0x25b702+'\x20['+_0x525d1e[_0x36014f(0x8d)]+']\x20'+_0x525d1e[_0x36014f(0x79)]),console['log'](_0x36014f(0x7a)+_0xebdcab),_0x525d1e['duration']&&console[_0x36014f(0x8f)](_0x36014f(0x88)+_0x525d1e[_0x36014f(0x85)]+'ms'),_0x525d1e['details']&&Object[_0x36014f(0x93)](_0x525d1e[_0x36014f(0x8e)])[_0x36014f(0x7c)]>0x0&&console[_0x36014f(0x8f)](_0x36014f(0x87)+JSON[_0x36014f(0x89)](_0x525d1e[_0x36014f(0x8e)],null,0x2)),console[_0x36014f(0x8f)]('');});}export const logsDefinitions=[{'service':a35_0x25df2b(0x81),'command':'show','description':a35_0x25df2b(0x95),'risk':a35_0x25df2b(0x7f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3a3744){const _0x195fef=a35_0x25df2b;return printLogs(logger[_0x195fef(0x7e)]()),{'ok':!![]};}}];
1
+ function a35_0x3ccb(){const _0x1eb657=['en-US','4016020NVrWEG','logs','View\x20command\x20history\x20logs','log','1997649JRMYIt','\x20\x20\x20Time:\x20','readLogs','read','timestamp','33906feSsfr','stringify','3692632tjJtcq','\x20\x20\x20Details:\x20','duration','warn','details','command','335468WqDqzD','level','success','927WLDvvz','error','forEach','*\x20No\x20logs\x20found','message','length','62344wIqMXd','2482300zgTkon','\x20logs:\x0a','973fywyPe'];a35_0x3ccb=function(){return _0x1eb657;};return a35_0x3ccb();}const a35_0x55dc73=a35_0x4e1b;(function(_0x49392e,_0x4c84e2){const _0x58761c=a35_0x4e1b,_0x319fc8=_0x49392e();while(!![]){try{const _0x254ab4=parseInt(_0x58761c(0x11e))/0x1+parseInt(_0x58761c(0x128))/0x2+-parseInt(_0x58761c(0x111))/0x3+-parseInt(_0x58761c(0x118))/0x4+-parseInt(_0x58761c(0x10d))/0x5+-parseInt(_0x58761c(0x116))/0x6*(-parseInt(_0x58761c(0x12a))/0x7)+-parseInt(_0x58761c(0x127))/0x8*(-parseInt(_0x58761c(0x121))/0x9);if(_0x254ab4===_0x4c84e2)break;else _0x319fc8['push'](_0x319fc8['shift']());}catch(_0x45fcb0){_0x319fc8['push'](_0x319fc8['shift']());}}}(a35_0x3ccb,0xbc9bd));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x4be4ce){const _0x25f005=a35_0x4e1b;if(_0x4be4ce[_0x25f005(0x126)]===0x0){console[_0x25f005(0x110)](_0x25f005(0x124));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x25f005(0x129)),_0x4be4ce[_0x25f005(0x123)]((_0x4a9c1a,_0x3adf86)=>{const _0x4e1c99=_0x25f005,_0x58c05c=new Date(_0x4a9c1a[_0x4e1c99(0x115)])['toLocaleString'](_0x4e1c99(0x12b)),_0xe47fb6=_0x4a9c1a['level']===_0x4e1c99(0x120)?'√':_0x4a9c1a[_0x4e1c99(0x11f)]===_0x4e1c99(0x122)?'×':_0x4a9c1a[_0x4e1c99(0x11f)]===_0x4e1c99(0x11b)?'!':'i';console[_0x4e1c99(0x110)](_0x3adf86+0x1+'.\x20'+_0xe47fb6+'\x20['+_0x4a9c1a[_0x4e1c99(0x11d)]+']\x20'+_0x4a9c1a[_0x4e1c99(0x125)]),console[_0x4e1c99(0x110)](_0x4e1c99(0x112)+_0x58c05c),_0x4a9c1a[_0x4e1c99(0x11a)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x4a9c1a[_0x4e1c99(0x11a)]+'ms'),_0x4a9c1a[_0x4e1c99(0x11c)]&&Object['keys'](_0x4a9c1a[_0x4e1c99(0x11c)])[_0x4e1c99(0x126)]>0x0&&console[_0x4e1c99(0x110)](_0x4e1c99(0x119)+JSON[_0x4e1c99(0x117)](_0x4a9c1a[_0x4e1c99(0x11c)],null,0x2)),console[_0x4e1c99(0x110)]('');});}function a35_0x4e1b(_0x48fc0a,_0x3d2d6d){_0x48fc0a=_0x48fc0a-0x10d;const _0x3ccbc8=a35_0x3ccb();let _0x4e1b42=_0x3ccbc8[_0x48fc0a];return _0x4e1b42;}export const logsDefinitions=[{'service':a35_0x55dc73(0x10e),'command':'show','description':a35_0x55dc73(0x10f),'risk':a35_0x55dc73(0x114),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x59b714){const _0x3a2b65=a35_0x55dc73;return printLogs(logger[_0x3a2b65(0x113)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a36_0x329991=a36_0x5e65;(function(_0x5ef910,_0x589886){const _0x16a4a2=a36_0x5e65,_0x269807=_0x5ef910();while(!![]){try{const _0x557f48=-parseInt(_0x16a4a2(0xd9))/0x1+-parseInt(_0x16a4a2(0xea))/0x2*(-parseInt(_0x16a4a2(0xde))/0x3)+-parseInt(_0x16a4a2(0xe7))/0x4*(-parseInt(_0x16a4a2(0xd8))/0x5)+-parseInt(_0x16a4a2(0xe8))/0x6*(-parseInt(_0x16a4a2(0xe5))/0x7)+-parseInt(_0x16a4a2(0xe3))/0x8+-parseInt(_0x16a4a2(0xec))/0x9+-parseInt(_0x16a4a2(0xeb))/0xa;if(_0x557f48===_0x589886)break;else _0x269807['push'](_0x269807['shift']());}catch(_0x20f88a){_0x269807['push'](_0x269807['shift']());}}}(a36_0xd45f,0xa6f06));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a36_0xd45f(){const _0x52ae64=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1739512ctEHMH','552oxoTNM','Notification\x20channel\x20type','92702xYQZEg','18582180CtOYoO','6909894nRYxnJ','config-list','15umJkmO','178823HHzcEN','EMAIL','type','appCode','string','87wBudeo','length','notification','read','\x20notification\x20config(s)','2408928ViLZmb','map','86807nBeAwA'];a36_0xd45f=function(){return _0x52ae64;};return a36_0xd45f();}function a36_0x5e65(_0x1f719b,_0x1be4b0){_0x1f719b=_0x1f719b-0xd7;const _0xd45f94=a36_0xd45f();let _0x5e6569=_0xd45f94[_0x1f719b];return _0x5e6569;}export const notificationConfigList={'service':a36_0x329991(0xe0),'command':a36_0x329991(0xd7),'description':a36_0x329991(0xe6),'risk':a36_0x329991(0xe1),'flags':[{'name':a36_0x329991(0xdb),'type':a36_0x329991(0xdd),'description':a36_0x329991(0xe9),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a36_0x329991(0xda)}],async 'validate'(_0x1d153b){readNotificationChannelType(_0x1d153b);},async 'execute'(_0x3b9805){const _0x1d7dad=a36_0x329991,_0x391405=readNotificationChannelType(_0x3b9805),_0x1cbb97=await listNotificationChannelConfigs(_0x3b9805['appCode'],_0x391405),_0x239956=_0x1cbb97[_0x1d7dad(0xe4)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3b9805[_0x1d7dad(0xdc)],'channelType':_0x391405,'count':_0x239956[_0x1d7dad(0xdf)],'configs':_0x239956},'message':'Found\x20'+_0x239956[_0x1d7dad(0xdf)]+'\x20'+_0x391405+_0x1d7dad(0xe2)};}};
1
+ const a36_0x39adeb=a36_0x375b;(function(_0xb8a150,_0x27d49c){const _0x57502c=a36_0x375b,_0x168a75=_0xb8a150();while(!![]){try{const _0x265652=parseInt(_0x57502c(0x189))/0x1+parseInt(_0x57502c(0x188))/0x2+-parseInt(_0x57502c(0x181))/0x3*(-parseInt(_0x57502c(0x18e))/0x4)+parseInt(_0x57502c(0x186))/0x5+-parseInt(_0x57502c(0x18d))/0x6+-parseInt(_0x57502c(0x182))/0x7+parseInt(_0x57502c(0x17d))/0x8*(-parseInt(_0x57502c(0x18b))/0x9);if(_0x265652===_0x27d49c)break;else _0x168a75['push'](_0x168a75['shift']());}catch(_0x17a7dd){_0x168a75['push'](_0x168a75['shift']());}}}(a36_0x1b77,0xe99c6));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a36_0x375b(_0x1f8289,_0x52eb41){_0x1f8289=_0x1f8289-0x17c;const _0x1b77d3=a36_0x1b77();let _0x375b36=_0x1b77d3[_0x1f8289];return _0x375b36;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a36_0x39adeb(0x18a),'command':a36_0x39adeb(0x17f),'description':a36_0x39adeb(0x180),'risk':a36_0x39adeb(0x184),'flags':[{'name':a36_0x39adeb(0x183),'type':a36_0x39adeb(0x185),'description':a36_0x39adeb(0x17e),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a36_0x39adeb(0x18f)}],async 'validate'(_0x31519b){readNotificationChannelType(_0x31519b);},async 'execute'(_0x5c0b23){const _0x451a6c=a36_0x39adeb,_0x3bd808=readNotificationChannelType(_0x5c0b23),_0x50f8a3=await listNotificationChannelConfigs(_0x5c0b23[_0x451a6c(0x18c)],_0x3bd808),_0xca7039=_0x50f8a3['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5c0b23[_0x451a6c(0x18c)],'channelType':_0x3bd808,'count':_0xca7039[_0x451a6c(0x17c)],'configs':_0xca7039},'message':_0x451a6c(0x187)+_0xca7039[_0x451a6c(0x17c)]+'\x20'+_0x3bd808+'\x20notification\x20config(s)'};}};function a36_0x1b77(){const _0x4c7385=['5202260MrMHHl','type','read','string','9655hXBjtj','Found\x20','3467060JqoIhV','754690YURpIo','notification','279cfgyIM','appCode','1585086aRJBZh','3998732jxKEgl','EMAIL','length','393704rjUsvL','Notification\x20channel\x20type','config-list','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','3fkjfTs'];a36_0x1b77=function(){return _0x4c7385;};return a36_0x1b77();}
@@ -1 +1 @@
1
- (function(_0x17aff3,_0x439063){const _0x50acea=a37_0x32f4,_0x3edf8d=_0x17aff3();while(!![]){try{const _0x53c603=parseInt(_0x50acea(0x106))/0x1*(-parseInt(_0x50acea(0x104))/0x2)+parseInt(_0x50acea(0x103))/0x3+parseInt(_0x50acea(0x109))/0x4+parseInt(_0x50acea(0x100))/0x5*(-parseInt(_0x50acea(0x102))/0x6)+parseInt(_0x50acea(0x107))/0x7+-parseInt(_0x50acea(0x105))/0x8*(-parseInt(_0x50acea(0x101))/0x9)+-parseInt(_0x50acea(0x108))/0xa;if(_0x53c603===_0x439063)break;else _0x3edf8d['push'](_0x3edf8d['shift']());}catch(_0x4e830c){_0x3edf8d['push'](_0x3edf8d['shift']());}}}(a37_0x5316,0x18fdb));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];function a37_0x32f4(_0x5b96cf,_0x3a4d62){_0x5b96cf=_0x5b96cf-0x100;const _0x53166e=a37_0x5316();let _0x32f483=_0x53166e[_0x5b96cf];return _0x32f483;}function a37_0x5316(){const _0x2378fb=['24NuYKxd','1Uldfpj','552573MZBjHK','90330zlgxvr','63808xSuPTq','502805bovSgX','417861yAuAHo','6KZfcCw','324996HpdyAd','261106Qnuhjr'];a37_0x5316=function(){return _0x2378fb;};return a37_0x5316();}
1
+ function a37_0x55e3(_0x4e7cf8,_0x7ae707){_0x4e7cf8=_0x4e7cf8-0x125;const _0x2107cf=a37_0x2107();let _0x55e361=_0x2107cf[_0x4e7cf8];return _0x55e361;}(function(_0x12fba1,_0x341cce){const _0x52d5bc=a37_0x55e3,_0x1d5910=_0x12fba1();while(!![]){try{const _0x5d04eb=-parseInt(_0x52d5bc(0x129))/0x1+parseInt(_0x52d5bc(0x126))/0x2+parseInt(_0x52d5bc(0x12e))/0x3*(-parseInt(_0x52d5bc(0x125))/0x4)+parseInt(_0x52d5bc(0x128))/0x5*(-parseInt(_0x52d5bc(0x127))/0x6)+parseInt(_0x52d5bc(0x12b))/0x7+-parseInt(_0x52d5bc(0x12d))/0x8*(parseInt(_0x52d5bc(0x12a))/0x9)+parseInt(_0x52d5bc(0x12c))/0xa;if(_0x5d04eb===_0x341cce)break;else _0x1d5910['push'](_0x1d5910['shift']());}catch(_0x2f9fa6){_0x1d5910['push'](_0x1d5910['shift']());}}}(a37_0x2107,0x4926b));import{notificationConfigList}from'../../commands/notification/config-list.js';function a37_0x2107(){const _0x154068=['3uiDdWY','1515112EagAxm','481222ngYqvH','207678rqPxZm','45pQBFoB','246012zEdJEI','17181lrjnBS','2278738EcuujR','7327860ueIcDr','264rLYvBV'];a37_0x2107=function(){return _0x154068;};return a37_0x2107();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a38_0x319c5b=a38_0x21d1;(function(_0x516d0f,_0x3820e7){const _0x15d259=a38_0x21d1,_0x4d6037=_0x516d0f();while(!![]){try{const _0x167bc5=-parseInt(_0x15d259(0x7e))/0x1+parseInt(_0x15d259(0x71))/0x2*(parseInt(_0x15d259(0x82))/0x3)+parseInt(_0x15d259(0x72))/0x4*(parseInt(_0x15d259(0x6f))/0x5)+-parseInt(_0x15d259(0x80))/0x6*(parseInt(_0x15d259(0x81))/0x7)+parseInt(_0x15d259(0x89))/0x8+parseInt(_0x15d259(0x73))/0x9+-parseInt(_0x15d259(0x85))/0xa*(parseInt(_0x15d259(0x86))/0xb);if(_0x167bc5===_0x3820e7)break;else _0x4d6037['push'](_0x4d6037['shift']());}catch(_0x1af3c4){_0x4d6037['push'](_0x4d6037['shift']());}}}(a38_0x3c10,0x9f33d));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a38_0x319c5b(0x7b),a38_0x319c5b(0x87),a38_0x319c5b(0x7a),a38_0x319c5b(0x75),a38_0x319c5b(0x7d)];function a38_0x3c10(){const _0x447966=['FEISHU','Invalid\x20notification\x20config\x20response.','6725752JPRJiS','str','apiError','Allowed\x20values:\x20','\x20is\x20missing\x20required\x20field\x20\x22','string','includes','107130NqZafG','trim','2HmKvnl','172gRkUAI','4460211MyKoLX','validation','WECOM','configName','channelType','description','configCode','DINGTALK','EMAIL','object','WEBHOOK','1247576ALxyAy','isArray','8574eDvDEg','665xEMijb','2339025kbedCQ','Item\x20','join','10018670huLXaU','11ZEgInv'];a38_0x3c10=function(){return _0x447966;};return a38_0x3c10();}export function readNotificationChannelType(_0xcf4bf3){const _0x25bfef=a38_0x319c5b,_0x441aac=_0xcf4bf3[_0x25bfef(0x8a)]('type')['trim']()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0x25bfef(0x6e)](_0x441aac))throw CliErrors[_0x25bfef(0x74)]('Invalid\x20--type:\x20'+_0x441aac,_0x25bfef(0x8c)+NOTIFICATION_CHANNEL_TYPES[_0x25bfef(0x84)](',\x20')+'.');return _0x441aac;}function a38_0x21d1(_0x10fe86,_0x214a80){_0x10fe86=_0x10fe86-0x6d;const _0x3c104f=a38_0x3c10();let _0x21d1c3=_0x3c104f[_0x10fe86];return _0x21d1c3;}export function projectNotificationListConfig(_0x363dcb,_0x41bbfd){const _0x37693f=a38_0x319c5b,_0x46ac83=requireResponseObject(_0x363dcb,_0x41bbfd);return{'configCode':requireResponseString(_0x46ac83[_0x37693f(0x79)],_0x37693f(0x79),_0x41bbfd),'configName':requireResponseString(_0x46ac83['configName'],_0x37693f(0x76),_0x41bbfd),'channelType':requireResponseString(_0x46ac83[_0x37693f(0x77)],_0x37693f(0x77),_0x41bbfd),'description':normalizeNullableString(_0x46ac83[_0x37693f(0x78)])};}function requireResponseObject(_0x311c05,_0x3df76d){const _0x76857=a38_0x319c5b;if(typeof _0x311c05!==_0x76857(0x7c)||_0x311c05===null||Array[_0x76857(0x7f)](_0x311c05))throw CliErrors['apiError'](_0x76857(0x88),_0x76857(0x83)+(_0x3df76d+0x1)+'\x20must\x20be\x20an\x20object.');return _0x311c05;}function requireResponseString(_0x519853,_0x1f5d35,_0x11c305){const _0x20a111=a38_0x319c5b;if(typeof _0x519853!==_0x20a111(0x6d)||!_0x519853[_0x20a111(0x70)]())throw CliErrors[_0x20a111(0x8b)](_0x20a111(0x88),'Item\x20'+(_0x11c305+0x1)+_0x20a111(0x8d)+_0x1f5d35+'\x22.');return _0x519853['trim']();}function normalizeNullableString(_0x3e9a53){const _0x391625=a38_0x319c5b;return typeof _0x3e9a53===_0x391625(0x6d)&&_0x3e9a53[_0x391625(0x70)]()?_0x3e9a53[_0x391625(0x70)]():null;}
1
+ const a38_0x469f08=a38_0x5849;(function(_0x54a637,_0x1908aa){const _0x2983df=a38_0x5849,_0x54b816=_0x54a637();while(!![]){try{const _0x91acf5=-parseInt(_0x2983df(0x134))/0x1*(parseInt(_0x2983df(0x123))/0x2)+-parseInt(_0x2983df(0x11a))/0x3+-parseInt(_0x2983df(0x132))/0x4+-parseInt(_0x2983df(0x127))/0x5*(parseInt(_0x2983df(0x12c))/0x6)+-parseInt(_0x2983df(0x118))/0x7*(parseInt(_0x2983df(0x12e))/0x8)+-parseInt(_0x2983df(0x125))/0x9*(parseInt(_0x2983df(0x11f))/0xa)+parseInt(_0x2983df(0x136))/0xb;if(_0x91acf5===_0x1908aa)break;else _0x54b816['push'](_0x54b816['shift']());}catch(_0x5cff47){_0x54b816['push'](_0x54b816['shift']());}}}(a38_0x4513,0x72c25));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a38_0x469f08(0x135),a38_0x469f08(0x11e),a38_0x469f08(0x131),a38_0x469f08(0x11d),a38_0x469f08(0x11b)];export function readNotificationChannelType(_0x5d8bc6){const _0x245609=a38_0x469f08,_0x981cab=_0x5d8bc6[_0x245609(0x12b)](_0x245609(0x130))['trim']()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0x245609(0x120)](_0x981cab))throw CliErrors[_0x245609(0x12f)](_0x245609(0x12a)+_0x981cab,_0x245609(0x121)+NOTIFICATION_CHANNEL_TYPES[_0x245609(0x126)](',\x20')+'.');return _0x981cab;}export function projectNotificationListConfig(_0x51d5c7,_0x1028a3){const _0x39ed20=a38_0x469f08,_0x3027fe=requireResponseObject(_0x51d5c7,_0x1028a3);return{'configCode':requireResponseString(_0x3027fe['configCode'],'configCode',_0x1028a3),'configName':requireResponseString(_0x3027fe[_0x39ed20(0x124)],_0x39ed20(0x124),_0x1028a3),'channelType':requireResponseString(_0x3027fe[_0x39ed20(0x11c)],_0x39ed20(0x11c),_0x1028a3),'description':normalizeNullableString(_0x3027fe[_0x39ed20(0x128)])};}function requireResponseObject(_0xa59e86,_0xc13b70){const _0x56e1c0=a38_0x469f08;if(typeof _0xa59e86!==_0x56e1c0(0x138)||_0xa59e86===null||Array['isArray'](_0xa59e86))throw CliErrors[_0x56e1c0(0x122)]('Invalid\x20notification\x20config\x20response.',_0x56e1c0(0x129)+(_0xc13b70+0x1)+_0x56e1c0(0x133));return _0xa59e86;}function requireResponseString(_0x4264ce,_0x40718c,_0x50f302){const _0x18a2d3=a38_0x469f08;if(typeof _0x4264ce!==_0x18a2d3(0x119)||!_0x4264ce[_0x18a2d3(0x137)]())throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.','Item\x20'+(_0x50f302+0x1)+_0x18a2d3(0x12d)+_0x40718c+'\x22.');return _0x4264ce[_0x18a2d3(0x137)]();}function a38_0x5849(_0x51c4d3,_0x1585c8){_0x51c4d3=_0x51c4d3-0x118;const _0x4513b7=a38_0x4513();let _0x58491c=_0x4513b7[_0x51c4d3];return _0x58491c;}function a38_0x4513(){const _0x24b46b=['2QZKbsa','EMAIL','40423460fZpQIh','trim','object','99995fwdaUF','string','1162314NluXFV','WEBHOOK','channelType','WECOM','FEISHU','780BSZlZf','includes','Allowed\x20values:\x20','apiError','126790vDSoMN','configName','89298KHknEb','join','43640IOuWaL','description','Item\x20','Invalid\x20--type:\x20','str','372MKQRFv','\x20is\x20missing\x20required\x20field\x20\x22','264eLCkiS','validation','type','DINGTALK','3616488eCTXKu','\x20must\x20be\x20an\x20object.'];a38_0x4513=function(){return _0x24b46b;};return a38_0x4513();}function normalizeNullableString(_0x24ce73){const _0x153210=a38_0x469f08;return typeof _0x24ce73===_0x153210(0x119)&&_0x24ce73[_0x153210(0x137)]()?_0x24ce73[_0x153210(0x137)]():null;}
@@ -1 +1 @@
1
- const a39_0xa7e28a=a39_0x5aa1;function a39_0x4d98(){const _0x1b7f3f=['Table','fileUrl','filter','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','File\x20upload\x20response\x20missing\x20filePath.','appCode','general','filePath','invoice','count','149339emZtJX','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','recognize','/client/uploadFile','General','image-file','.\x20Supported\x20scenes:\x20','idcard','imageUrl','image-url','toLowerCase','body','form','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','Preview:\x20recognize\x20','POST','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','2222316gWWxXl','6318440UejfmT','File\x20URL\x20response\x20missing\x20fileUrl.','914298bGfYoG','description','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','/client/ocr','apiError','IdCard','/client/queryFileUrl','imageFile','fileName','trim','length','path','build','scene','join','string','str','253340jZNVVJ','idCard','57224OMQolT','9dlXrwV','ocr','2844085KxXgUn','Invoice','validation','read','123SpCKNJ'];a39_0x4d98=function(){return _0x1b7f3f;};return a39_0x4d98();}function a39_0x5aa1(_0x5f246c,_0x43d64a){_0x5f246c=_0x5f246c-0x9b;const _0x4d987a=a39_0x4d98();let _0x5aa174=_0x4d987a[_0x5f246c];return _0x5aa174;}(function(_0x2b4722,_0x57139d){const _0x1b462f=a39_0x5aa1,_0x1f86e1=_0x2b4722();while(!![]){try{const _0x1ba90a=parseInt(_0x1b462f(0xc2))/0x1+-parseInt(_0x1b462f(0xae))/0x2+parseInt(_0x1b462f(0xb7))/0x3*(parseInt(_0x1b462f(0xb0))/0x4)+-parseInt(_0x1b462f(0xb3))/0x5+-parseInt(_0x1b462f(0xd4))/0x6+-parseInt(_0x1b462f(0x9d))/0x7+parseInt(_0x1b462f(0x9b))/0x8*(parseInt(_0x1b462f(0xb1))/0x9);if(_0x1ba90a===_0x57139d)break;else _0x1f86e1['push'](_0x1f86e1['shift']());}catch(_0x1b32f8){_0x1f86e1['push'](_0x1f86e1['shift']());}}}(a39_0x4d98,0x505f3));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a39_0xa7e28a(0xc0),a39_0xa7e28a(0xbe),a39_0xa7e28a(0xce),a39_0xa7e28a(0xaf)],SCENE_TO_LEGACY_TYPE={'invoice':a39_0xa7e28a(0xb4),'general':a39_0xa7e28a(0xc6),'form':a39_0xa7e28a(0xb8),'idCard':a39_0xa7e28a(0xa2)},SCENE_FLAG={'name':a39_0xa7e28a(0xaa),'type':a39_0xa7e28a(0xac),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a39_0xa7e28a(0x9f)},IMAGE_FILE_FLAG={'name':a39_0xa7e28a(0xc7),'type':'string','description':a39_0xa7e28a(0xd3)},IMAGE_URL_FLAG={'name':a39_0xa7e28a(0xcb),'type':a39_0xa7e28a(0xac),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x56c906){const _0x5dfbfe=a39_0xa7e28a,_0x4f2f9e=_0x56c906[_0x5dfbfe(0xa6)]()[_0x5dfbfe(0xcc)]();if(_0x4f2f9e===_0x5dfbfe(0xc9))return _0x5dfbfe(0xaf);if(_0x4f2f9e==='invoice'||_0x4f2f9e===_0x5dfbfe(0xbe)||_0x4f2f9e===_0x5dfbfe(0xce))return _0x4f2f9e;throw CliErrors['validation']('Unsupported\x20OCR\x20scene:\x20'+_0x56c906+_0x5dfbfe(0xc8)+SUPPORTED_SCENES[_0x5dfbfe(0xab)](',\x20'));}function selectedInputs(_0x5f7722){const _0x1f2fe0=a39_0xa7e28a,_0x541713=_0x5f7722[_0x1f2fe0(0xad)](_0x1f2fe0(0xc7))[_0x1f2fe0(0xa6)](),_0x218df1=_0x5f7722[_0x1f2fe0(0xad)](_0x1f2fe0(0xcb))[_0x1f2fe0(0xa6)]();return{'imageFile':_0x541713,'imageUrl':_0x218df1,'count':[_0x541713,_0x218df1][_0x1f2fe0(0xba)](Boolean)[_0x1f2fe0(0xa7)]};}function validateInputSelection(_0x36906d){const _0x548443=a39_0xa7e28a,_0x1cac85=selectedInputs(_0x36906d);if(_0x1cac85[_0x548443(0xc1)]!==0x1)throw CliErrors[_0x548443(0xb5)](_0x548443(0xd2));return _0x1cac85;}function withScene(_0x5d11d5,_0xaa7c3f,_0x17b463){const _0x1cb358=a39_0xa7e28a;return{..._0x5d11d5,'scene':_0xaa7c3f,..._0x17b463?{'sourceFile':{'fileName':_0x17b463[_0x1cb358(0xa5)],'filePath':_0x17b463['filePath']}}:{}};}const ocrRecognize={'service':a39_0xa7e28a(0xb2),'command':a39_0xa7e28a(0xc4),'description':a39_0xa7e28a(0xc3),'risk':a39_0xa7e28a(0xb6),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xf16d0a){const _0x109df3=a39_0xa7e28a,_0x375f96=normalizeScene(_0xf16d0a['str'](_0x109df3(0xaa))),_0x414627=SCENE_TO_LEGACY_TYPE[_0x375f96],_0x504439=validateInputSelection(_0xf16d0a);if(_0x504439[_0x109df3(0xca)])return dryRun(_0x109df3(0xd1),_0x109df3(0xa0))[_0x109df3(0xcd)]({'appCode':_0xf16d0a['appCode'],'url':_0x504439[_0x109df3(0xca)],'type':_0x414627})['description'](_0x109df3(0xd0)+_0x375f96+'\x20OCR\x20from\x20URL')[_0x109df3(0xa9)]();const _0x13628d=requireRuntimeUploadFile(_0x504439[_0x109df3(0xa4)],_0x109df3(0xc7));return dryRun('POST',_0x109df3(0xc5))[_0x109df3(0xcd)]({'steps':[{'method':_0x109df3(0xd1),'url':'/client/uploadFile','body':{'appCode':_0xf16d0a[_0x109df3(0xbd)],'multipart':{'file':_0x13628d}}},{'method':_0x109df3(0xd1),'url':_0x109df3(0xa3),'body':{'filePath':'<filePath\x20returned\x20by\x20/client/uploadFile>','downloadFlag':![]}},{'method':_0x109df3(0xd1),'url':_0x109df3(0xa0),'body':{'appCode':_0xf16d0a[_0x109df3(0xbd)],'url':_0x109df3(0xbb),'type':_0x414627}}]})[_0x109df3(0x9e)](_0x109df3(0xcf)+_0x375f96+'\x20OCR')[_0x109df3(0xa9)]();},async 'execute'(_0x50f8a7){const _0x3d7959=a39_0xa7e28a,_0x5e54c4=normalizeScene(_0x50f8a7[_0x3d7959(0xad)](_0x3d7959(0xaa))),_0x24defe=SCENE_TO_LEGACY_TYPE[_0x5e54c4],_0x2ceae8=validateInputSelection(_0x50f8a7);if(_0x2ceae8['imageUrl']){const _0x14cdd6=await recognizeRuntimeOcr(_0x50f8a7[_0x3d7959(0xbd)],{'url':_0x2ceae8[_0x3d7959(0xca)],'type':_0x24defe});return{'ok':!![],'data':withScene(_0x14cdd6,_0x5e54c4)};}const _0x2fb6a5=requireRuntimeUploadFile(_0x2ceae8['imageFile'],'image-file'),_0x1c2c90=await uploadRuntimeFile(_0x50f8a7[_0x3d7959(0xbd)],_0x2fb6a5[_0x3d7959(0xa8)]);if(!_0x1c2c90['filePath'])throw CliErrors[_0x3d7959(0xa1)](_0x3d7959(0xbc));const _0x8fc0b3=await queryRuntimeFileUrl(_0x1c2c90[_0x3d7959(0xbf)],{'download':![]});if(!_0x8fc0b3['fileUrl'])throw CliErrors['apiError'](_0x3d7959(0x9c));const _0x11237c=await recognizeRuntimeOcr(_0x50f8a7[_0x3d7959(0xbd)],{'url':_0x8fc0b3[_0x3d7959(0xb9)],'type':_0x24defe});return{'ok':!![],'data':withScene(_0x11237c,_0x5e54c4,_0x1c2c90)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a39_0x2a1595=a39_0x4188;(function(_0x1f1b5f,_0x361711){const _0x3bbe0e=a39_0x4188,_0x339ada=_0x1f1b5f();while(!![]){try{const _0xa47a1b=-parseInt(_0x3bbe0e(0x1a4))/0x1+parseInt(_0x3bbe0e(0x1a9))/0x2+-parseInt(_0x3bbe0e(0x189))/0x3+parseInt(_0x3bbe0e(0x197))/0x4*(parseInt(_0x3bbe0e(0x186))/0x5)+-parseInt(_0x3bbe0e(0x19f))/0x6*(parseInt(_0x3bbe0e(0x17f))/0x7)+parseInt(_0x3bbe0e(0x1ad))/0x8*(parseInt(_0x3bbe0e(0x179))/0x9)+-parseInt(_0x3bbe0e(0x1ac))/0xa;if(_0xa47a1b===_0x361711)break;else _0x339ada['push'](_0x339ada['shift']());}catch(_0x396e57){_0x339ada['push'](_0x339ada['shift']());}}}(a39_0x4971,0xa3d62));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a39_0x2a1595(0x196),'general','form',a39_0x2a1595(0x1a6)],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a39_0x2a1595(0x1a8),'form':a39_0x2a1595(0x18f),'idCard':a39_0x2a1595(0x190)},SCENE_FLAG={'name':a39_0x2a1595(0x193),'type':a39_0x2a1595(0x1aa),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a39_0x2a1595(0x1a3)},IMAGE_FILE_FLAG={'name':'image-file','type':'string','description':a39_0x2a1595(0x18b)},IMAGE_URL_FLAG={'name':'image-url','type':a39_0x2a1595(0x1aa),'description':a39_0x2a1595(0x195)};function normalizeScene(_0x28caef){const _0x17f15f=a39_0x2a1595,_0x68aafd=_0x28caef[_0x17f15f(0x184)]()[_0x17f15f(0x17e)]();if(_0x68aafd===_0x17f15f(0x185))return _0x17f15f(0x1a6);if(_0x68aafd===_0x17f15f(0x196)||_0x68aafd==='general'||_0x68aafd==='form')return _0x68aafd;throw CliErrors[_0x17f15f(0x180)](_0x17f15f(0x18e)+_0x28caef+_0x17f15f(0x188)+SUPPORTED_SCENES[_0x17f15f(0x194)](',\x20'));}function a39_0x4971(){const _0x4ffb18=['/client/queryFileUrl','filePath','fileName','/client/ocr','<filePath\x20returned\x20by\x20/client/uploadFile>','POST','/client/uploadFile','186SJyZvb','ocr','File\x20upload\x20response\x20missing\x20filePath.','\x20OCR\x20from\x20URL','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','123436brUvly','image-file','idCard','body','General','1692728aQlYeG','string','appCode','3617380ZOJBEn','76616zPryMH','imageUrl','fileUrl','\x20OCR','801HCMBtX','apiError','description','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','filter','toLowerCase','78351maeyAA','validation','length','read','imageFile','trim','idcard','55scvBfD','path','.\x20Supported\x20scenes:\x20','728787giYrYV','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','File\x20URL\x20response\x20missing\x20fileUrl.','str','Unsupported\x20OCR\x20scene:\x20','Table','IdCard','build','recognize','scene','join','Publicly\x20accessible\x20image\x20or\x20file\x20URL','invoice','17252YCqxGr'];a39_0x4971=function(){return _0x4ffb18;};return a39_0x4971();}function selectedInputs(_0x46f5ef){const _0x4b7648=a39_0x2a1595,_0x19d325=_0x46f5ef[_0x4b7648(0x18d)](_0x4b7648(0x1a5))[_0x4b7648(0x184)](),_0x53f8bf=_0x46f5ef[_0x4b7648(0x18d)]('image-url')[_0x4b7648(0x184)]();return{'imageFile':_0x19d325,'imageUrl':_0x53f8bf,'count':[_0x19d325,_0x53f8bf][_0x4b7648(0x17d)](Boolean)[_0x4b7648(0x181)]};}function validateInputSelection(_0x933264){const _0x11d838=a39_0x2a1595,_0x535527=selectedInputs(_0x933264);if(_0x535527['count']!==0x1)throw CliErrors['validation'](_0x11d838(0x18a));return _0x535527;}function withScene(_0x24ece4,_0x419ea3,_0xf184){const _0x5556ac=a39_0x2a1595;return{..._0x24ece4,'scene':_0x419ea3,..._0xf184?{'sourceFile':{'fileName':_0xf184[_0x5556ac(0x19a)],'filePath':_0xf184[_0x5556ac(0x199)]}}:{}};}function a39_0x4188(_0x40d254,_0x1144a7){_0x40d254=_0x40d254-0x176;const _0x497162=a39_0x4971();let _0x418863=_0x497162[_0x40d254];return _0x418863;}const ocrRecognize={'service':a39_0x2a1595(0x1a0),'command':a39_0x2a1595(0x192),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a39_0x2a1595(0x182),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x1e51a3){const _0x1c9406=a39_0x2a1595,_0x4679f3=normalizeScene(_0x1e51a3[_0x1c9406(0x18d)](_0x1c9406(0x193))),_0x207375=SCENE_TO_LEGACY_TYPE[_0x4679f3],_0x352128=validateInputSelection(_0x1e51a3);if(_0x352128[_0x1c9406(0x176)])return dryRun(_0x1c9406(0x19d),_0x1c9406(0x19b))[_0x1c9406(0x1a7)]({'appCode':_0x1e51a3['appCode'],'url':_0x352128[_0x1c9406(0x176)],'type':_0x207375})[_0x1c9406(0x17b)]('Preview:\x20recognize\x20'+_0x4679f3+_0x1c9406(0x1a2))[_0x1c9406(0x191)]();const _0x267460=requireRuntimeUploadFile(_0x352128[_0x1c9406(0x183)],_0x1c9406(0x1a5));return dryRun('POST',_0x1c9406(0x19e))[_0x1c9406(0x1a7)]({'steps':[{'method':_0x1c9406(0x19d),'url':_0x1c9406(0x19e),'body':{'appCode':_0x1e51a3[_0x1c9406(0x1ab)],'multipart':{'file':_0x267460}}},{'method':_0x1c9406(0x19d),'url':_0x1c9406(0x198),'body':{'filePath':_0x1c9406(0x19c),'downloadFlag':![]}},{'method':_0x1c9406(0x19d),'url':_0x1c9406(0x19b),'body':{'appCode':_0x1e51a3['appCode'],'url':_0x1c9406(0x17c),'type':_0x207375}}]})[_0x1c9406(0x17b)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x4679f3+_0x1c9406(0x178))['build']();},async 'execute'(_0x206bce){const _0x4a7224=a39_0x2a1595,_0x28f171=normalizeScene(_0x206bce[_0x4a7224(0x18d)](_0x4a7224(0x193))),_0x3a0b22=SCENE_TO_LEGACY_TYPE[_0x28f171],_0x192037=validateInputSelection(_0x206bce);if(_0x192037[_0x4a7224(0x176)]){const _0x5a2d1b=await recognizeRuntimeOcr(_0x206bce[_0x4a7224(0x1ab)],{'url':_0x192037['imageUrl'],'type':_0x3a0b22});return{'ok':!![],'data':withScene(_0x5a2d1b,_0x28f171)};}const _0x25f4ec=requireRuntimeUploadFile(_0x192037[_0x4a7224(0x183)],_0x4a7224(0x1a5)),_0x196325=await uploadRuntimeFile(_0x206bce[_0x4a7224(0x1ab)],_0x25f4ec[_0x4a7224(0x187)]);if(!_0x196325[_0x4a7224(0x199)])throw CliErrors[_0x4a7224(0x17a)](_0x4a7224(0x1a1));const _0x1dc5fa=await queryRuntimeFileUrl(_0x196325['filePath'],{'download':![]});if(!_0x1dc5fa[_0x4a7224(0x177)])throw CliErrors[_0x4a7224(0x17a)](_0x4a7224(0x18c));const _0x56a7d1=await recognizeRuntimeOcr(_0x206bce[_0x4a7224(0x1ab)],{'url':_0x1dc5fa[_0x4a7224(0x177)],'type':_0x3a0b22});return{'ok':!![],'data':withScene(_0x56a7d1,_0x28f171,_0x196325)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a40_0x5119eb=a40_0x4963;(function(_0x137963,_0x2cefbf){const _0x27d781=a40_0x4963,_0x54158a=_0x137963();while(!![]){try{const _0x1a577d=-parseInt(_0x27d781(0x9d))/0x1+parseInt(_0x27d781(0x9a))/0x2+-parseInt(_0x27d781(0x92))/0x3*(-parseInt(_0x27d781(0x99))/0x4)+parseInt(_0x27d781(0x91))/0x5*(-parseInt(_0x27d781(0x8f))/0x6)+-parseInt(_0x27d781(0x93))/0x7*(-parseInt(_0x27d781(0x9c))/0x8)+parseInt(_0x27d781(0x9e))/0x9*(-parseInt(_0x27d781(0x90))/0xa)+parseInt(_0x27d781(0x9f))/0xb;if(_0x1a577d===_0x2cefbf)break;else _0x54158a['push'](_0x54158a['shift']());}catch(_0xbf3f6e){_0x54158a['push'](_0x54158a['shift']());}}}(a40_0x59ad,0x2ec19));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a40_0x4963(_0x3c9270,_0x3ea331){_0x3c9270=_0x3c9270-0x8f;const _0x59ad95=a40_0x59ad();let _0x496387=_0x59ad95[_0x3c9270];return _0x496387;}function a40_0x59ad(){const _0x4f9397=['13076NwoiSL','appCode','runtime','read','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','dataset-get','60yuniFf','392796roTFiq','role','584vvPrao','288358aaBawZ','2108439kqfFcF','2820609VmkGKE','string','str','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','5028BYDfYJ','10fWnMwJ','965RhfXOk','57339MDcuqP'];a40_0x59ad=function(){return _0x4f9397;};return a40_0x59ad();}export const permitDatasetGet={'service':'permit','command':a40_0x5119eb(0x98),'description':a40_0x5119eb(0x97),'risk':a40_0x5119eb(0x96),'flags':[{'name':a40_0x5119eb(0x9b),'type':a40_0x5119eb(0xa0),'description':a40_0x5119eb(0xa2)}],async 'execute'(_0x29f0e7){const _0x1d86d9=a40_0x5119eb,_0x568d0d=_0x29f0e7[_0x1d86d9(0xa1)](_0x1d86d9(0x9b))['trim']();if(!_0x568d0d)return{'ok':!![],'data':{'scope':_0x1d86d9(0x95),'datasets':await listRuntimeDatasetRolePermits(_0x29f0e7[_0x1d86d9(0x94)])}};const _0x214c13=await resolveRuntimeRoleRef(_0x29f0e7[_0x1d86d9(0x94)],_0x568d0d);return{'ok':!![],'data':{'scope':_0x1d86d9(0x95),'role':{'id':_0x214c13['id'],'roleName':_0x214c13['roleName'],'roleType':_0x214c13['roleType']},'datasets':await listRuntimeDatasetPermits(_0x29f0e7[_0x1d86d9(0x94)],_0x214c13['id'])}};}};
1
+ const a40_0x11a4d1=a40_0x21dc;function a40_0x36b8(){const _0x5f0b7f=['449005FnIKBg','246798TOpxcw','permit','9IInohQ','5359570oWSsWh','string','56LHudoV','role','2538660uEilyp','603NSttIF','trim','roleType','131082JPbXbh','404eSSCyz','runtime','dataset-get','appCode','3797864CbFqAU','11NdiJhl','read'];a40_0x36b8=function(){return _0x5f0b7f;};return a40_0x36b8();}function a40_0x21dc(_0x3d1f46,_0xacf0b){_0x3d1f46=_0x3d1f46-0x104;const _0x36b85b=a40_0x36b8();let _0x21dc26=_0x36b85b[_0x3d1f46];return _0x21dc26;}(function(_0x156fa7,_0x5e149a){const _0x2e09a7=a40_0x21dc,_0x229fe3=_0x156fa7();while(!![]){try{const _0x3fc912=parseInt(_0x2e09a7(0x109))/0x1+parseInt(_0x2e09a7(0x115))/0x2+-parseInt(_0x2e09a7(0x112))/0x3*(-parseInt(_0x2e09a7(0x116))/0x4)+parseInt(_0x2e09a7(0x111))/0x5+-parseInt(_0x2e09a7(0x10a))/0x6*(-parseInt(_0x2e09a7(0x10f))/0x7)+-parseInt(_0x2e09a7(0x106))/0x8*(parseInt(_0x2e09a7(0x10c))/0x9)+parseInt(_0x2e09a7(0x10d))/0xa*(-parseInt(_0x2e09a7(0x107))/0xb);if(_0x3fc912===_0x5e149a)break;else _0x229fe3['push'](_0x229fe3['shift']());}catch(_0x80345d){_0x229fe3['push'](_0x229fe3['shift']());}}}(a40_0x36b8,0x581f9));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a40_0x11a4d1(0x10b),'command':a40_0x11a4d1(0x104),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a40_0x11a4d1(0x108),'flags':[{'name':a40_0x11a4d1(0x110),'type':a40_0x11a4d1(0x10e),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0xbde39e){const _0x1289c9=a40_0x11a4d1,_0x243234=_0xbde39e['str'](_0x1289c9(0x110))[_0x1289c9(0x113)]();if(!_0x243234)return{'ok':!![],'data':{'scope':_0x1289c9(0x117),'datasets':await listRuntimeDatasetRolePermits(_0xbde39e[_0x1289c9(0x105)])}};const _0x3ea29a=await resolveRuntimeRoleRef(_0xbde39e[_0x1289c9(0x105)],_0x243234);return{'ok':!![],'data':{'scope':_0x1289c9(0x117),'role':{'id':_0x3ea29a['id'],'roleName':_0x3ea29a['roleName'],'roleType':_0x3ea29a[_0x1289c9(0x114)]},'datasets':await listRuntimeDatasetPermits(_0xbde39e[_0x1289c9(0x105)],_0x3ea29a['id'])}};}};