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

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 (177) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +2 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/access-error.js +1 -1
  113. package/lib/framework/build-all-flags.js +1 -1
  114. package/lib/framework/dryrun.js +1 -1
  115. package/lib/framework/flags.js +1 -1
  116. package/lib/framework/help.js +1 -1
  117. package/lib/framework/index.js +1 -1
  118. package/lib/framework/output.js +1 -1
  119. package/lib/framework/preparse.js +1 -1
  120. package/lib/framework/rate-limit.js +1 -1
  121. package/lib/framework/raw-flags.js +1 -1
  122. package/lib/framework/response.js +1 -1
  123. package/lib/framework/runner-confirmation.js +1 -1
  124. package/lib/framework/runner-error.js +1 -1
  125. package/lib/framework/runner.js +1 -1
  126. package/lib/framework/schema-export.js +1 -1
  127. package/lib/framework/service-order.js +1 -1
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  141. package/lib/services/dataset-import/excel-reader.js +1 -1
  142. package/lib/services/dataset-import/metadata.js +1 -1
  143. package/lib/services/dataset-import/preview.js +1 -1
  144. package/lib/services/dataset-import/runner.js +1 -1
  145. package/lib/skills/builtin-skill.js +1 -1
  146. package/lib/skills/npx-skills-add.js +1 -1
  147. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  148. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  149. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  150. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  151. package/lib/skills/runtime-skill-sync/links.js +1 -1
  152. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  153. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  154. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  155. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  156. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  157. package/lib/skills/runtime-skill-sync/push.js +1 -1
  158. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  159. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  161. package/lib/skills/runtime-skill-sync.js +1 -1
  162. package/lib/skills/skill-presence.js +1 -1
  163. package/lib/utils/access-key-redaction.js +1 -1
  164. package/lib/utils/apply-jq-filter.js +1 -1
  165. package/lib/utils/cli-version-check.js +1 -1
  166. package/lib/utils/cli-version-policy.js +1 -1
  167. package/lib/utils/logger.js +1 -1
  168. package/lib/utils/lossless-json.js +1 -1
  169. package/lib/utils/params.js +1 -1
  170. package/lib/utils/positive-safe-integer.js +1 -1
  171. package/lib/utils/redaction.js +1 -1
  172. package/lib/utils/update-notice.js +1 -1
  173. package/lib/utils/version.js +1 -1
  174. package/lib/utils/write-cli-side-channel.js +1 -1
  175. package/package.json +1 -1
  176. package/skills/lovrabet/SKILL.md +1 -1
  177. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- function a28_0x339d(){const _0x4ab0a7=['422358XbcRrl','isArray','requestFields','modifierNameField','pkField','columnCodeListWithDeleted','220311FcumNF','read','options','labelField','displayName','createTimeField','filter','dblinkInfoDTO','dataset','path','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','trim','logicField','16705DFtPes','operations','creatorNameField','host','split','method','str','12686960CssuNB','source','responseFields','properties','afterScriptId','find','extend','tableName','relatedPageInfoList','entries','push','required','deleted','doVersion','code','93736thItbU','8126160MSdpjW','object','updateTimeField','type','10sEdEgr','map','allFields','length','dbId','doType','formatRules','786CKYyVP','beforeScriptId','parse','responseBody','indexes','string','16vjLQxK','711ALNCEv','validateRules','modelCode','modifierIdField','requestBody','fields','datasetKey','dbName','name','modelId','dbtableConfig','5020716gEbpkW','allFieldNames'];a28_0x339d=function(){return _0x4ab0a7;};return a28_0x339d();}const a28_0x316619=a28_0x4e50;(function(_0x4a0fd6,_0x22f645){const _0x1ec44c=a28_0x4e50,_0x5d9a04=_0x4a0fd6();while(!![]){try{const _0x2e63cc=parseInt(_0x1ec44c(0x172))/0x1+-parseInt(_0x1ec44c(0x1a7))/0x2*(parseInt(_0x1ec44c(0x1b5))/0x3)+parseInt(_0x1ec44c(0x1b3))/0x4+parseInt(_0x1ec44c(0x17f))/0x5*(-parseInt(_0x1ec44c(0x1a1))/0x6)+parseInt(_0x1ec44c(0x196))/0x7+parseInt(_0x1ec44c(0x195))/0x8*(parseInt(_0x1ec44c(0x1a8))/0x9)+-parseInt(_0x1ec44c(0x19a))/0xa*(parseInt(_0x1ec44c(0x186))/0xb);if(_0x2e63cc===_0x22f645)break;else _0x5d9a04['push'](_0x5d9a04['shift']());}catch(_0x3be88a){_0x5d9a04['push'](_0x5d9a04['shift']());}}}(a28_0x339d,0xce396));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xb4e293){const _0x2bb0a4=a28_0x4e50;if(_0xb4e293[_0x2bb0a4(0x192)])return null;const _0x47ea11=Boolean(_0xb4e293['displayName']!==undefined||_0xb4e293[_0x2bb0a4(0x19f)]!==undefined);let _0x384efb={};if(!_0x47ea11&&typeof _0xb4e293['extend']===_0x2bb0a4(0x1a6))try{_0x384efb=JSON[_0x2bb0a4(0x1a3)](_0xb4e293['extend']);}catch{}const _0x53a184=_0x47ea11?_0xb4e293[_0x2bb0a4(0x1b0)]:_0xb4e293[_0x2bb0a4(0x194)],_0x3186be=_0x47ea11?_0xb4e293[_0x2bb0a4(0x176)]:_0xb4e293[_0x2bb0a4(0x1b0)],_0x960681=_0x47ea11?_0xb4e293['doType']:_0xb4e293[_0x2bb0a4(0x199)]||_0xb4e293['dataType'],_0x29fc0c=_0x47ea11?_0xb4e293['pkField']===!![]:_0x384efb[_0x2bb0a4(0x170)]===!![],_0x321a1e=_0x47ea11?_0xb4e293[_0x2bb0a4(0x191)]===!![]:_0x384efb[_0x2bb0a4(0x191)]===!![],_0x7dbce=_0x47ea11?_0xb4e293[_0x2bb0a4(0x174)]??null:_0x384efb['options']??null,_0x40462e={'name':_0x53a184,'displayName':_0x3186be||_0x53a184,'type':_0x960681,'dbType':_0xb4e293['dbType'],'pk':_0x29fc0c,'required':_0x321a1e,'description':_0xb4e293['description']||undefined};return Array[_0x2bb0a4(0x1b6)](_0x7dbce)&&_0x7dbce['length']>0x0&&(_0x40462e[_0x2bb0a4(0x174)]=_0x7dbce),_0x40462e;}function parseJsonMaybe(_0x264d0e){const _0x233396=a28_0x4e50;if(typeof _0x264d0e!==_0x233396(0x1a6))return _0x264d0e;try{return JSON[_0x233396(0x1a3)](_0x264d0e);}catch{return _0x264d0e;}}function normalizeOperationEntry(_0x13cd42,_0x48bdcd){const _0x3acc9d=a28_0x4e50;if(!_0x48bdcd||typeof _0x48bdcd!=='object')return null;if(!_0x48bdcd[_0x3acc9d(0x184)]||!_0x48bdcd[_0x3acc9d(0x17b)])return null;const _0x11bb3e={'name':_0x13cd42,'method':_0x48bdcd['method'],'path':_0x48bdcd[_0x3acc9d(0x17b)]};if(_0x48bdcd['host'])_0x11bb3e[_0x3acc9d(0x182)]=_0x48bdcd['host'];if(_0x48bdcd[_0x3acc9d(0x1ac)]!=null)_0x11bb3e[_0x3acc9d(0x1ac)]=parseJsonMaybe(_0x48bdcd[_0x3acc9d(0x1ac)]);if(_0x48bdcd[_0x3acc9d(0x1a4)]!=null)_0x11bb3e[_0x3acc9d(0x1a4)]=parseJsonMaybe(_0x48bdcd[_0x3acc9d(0x1a4)]);if(_0x48bdcd[_0x3acc9d(0x1a2)]!=null)_0x11bb3e[_0x3acc9d(0x1a2)]=_0x48bdcd[_0x3acc9d(0x1a2)];if(_0x48bdcd[_0x3acc9d(0x18a)]!=null)_0x11bb3e['afterScriptId']=_0x48bdcd[_0x3acc9d(0x18a)];if(Array['isArray'](_0x48bdcd['requestFields']))_0x11bb3e[_0x3acc9d(0x1b7)]=_0x48bdcd[_0x3acc9d(0x1b7)];if(Array[_0x3acc9d(0x1b6)](_0x48bdcd[_0x3acc9d(0x188)]))_0x11bb3e[_0x3acc9d(0x188)]=_0x48bdcd[_0x3acc9d(0x188)];return _0x11bb3e;}function summarizeDbtable(_0x5698db){const _0x231e66=a28_0x4e50,_0x110ee5={},_0x17f13b=[_0x231e66(0x19e),_0x231e66(0x1af),_0x231e66(0x18d),_0x231e66(0x1ae),_0x231e66(0x170),_0x231e66(0x19c),_0x231e66(0x17e),_0x231e66(0x177),_0x231e66(0x198),'creatorIdField',_0x231e66(0x181),_0x231e66(0x1ab),_0x231e66(0x1b8),_0x231e66(0x175),_0x231e66(0x179)];for(const _0x52f61c of _0x17f13b){if(_0x5698db[_0x52f61c]!==undefined)_0x110ee5[_0x52f61c]=_0x5698db[_0x52f61c];}return typeof _0x110ee5['allFields']===_0x231e66(0x1a6)&&_0x110ee5[_0x231e66(0x19c)][_0x231e66(0x19d)]>0x0&&(_0x110ee5[_0x231e66(0x1b4)]=_0x110ee5['allFields'][_0x231e66(0x183)](',')[_0x231e66(0x19b)](_0x24d8f4=>_0x24d8f4[_0x231e66(0x17d)]())['filter'](Boolean)),_0x110ee5;}function normalizeRelatedPages(_0x4ddaf3){const _0x5819ff=a28_0x4e50;if(!Array[_0x5819ff(0x1b6)](_0x4ddaf3))return[];return _0x4ddaf3[_0x5819ff(0x178)](_0x29dab0=>_0x29dab0&&typeof _0x29dab0===_0x5819ff(0x197))['map'](_0xaa2673=>({'id':_0xaa2673['id'],'type':_0xaa2673[_0x5819ff(0x199)],'code':_0xaa2673[_0x5819ff(0x194)],'title':_0xaa2673['title'],'deleted':_0xaa2673[_0x5819ff(0x192)]===!![]}));}function normalizeFallbackFieldName(_0x14ca74,_0x12394c){const _0x300ff0=a28_0x4e50,_0x53d7b2=_0x14ca74[_0x300ff0(0x17d)]();if(!_0x53d7b2)return null;return{'name':_0x53d7b2,'displayName':_0x53d7b2,'type':undefined,'dbType':undefined,'pk':_0x53d7b2===_0x12394c,'required':![],'description':undefined};}function a28_0x4e50(_0x32ab96,_0x3d3dc1){_0x32ab96=_0x32ab96-0x170;const _0x339d5f=a28_0x339d();let _0x4e509f=_0x339d5f[_0x32ab96];return _0x4e509f;}async function loadListFieldFallback(_0x5d5fb1,_0xf9ec0e){const _0x44bda2=a28_0x4e50;if(!_0x5d5fb1||!_0xf9ec0e)return[];try{const _0xc082df=await listDatasets(_0x5d5fb1,{'code':_0xf9ec0e}),_0x427698=_0xc082df[_0x44bda2(0x18b)](_0x7a76c4=>_0x7a76c4['code']===_0xf9ec0e)??_0xc082df[0x0],_0x94f9b5=_0x427698?.[_0x44bda2(0x1b2)]??{},_0xc79f19=typeof _0x94f9b5[_0x44bda2(0x19c)]===_0x44bda2(0x1a6)?_0x94f9b5['allFields'][_0x44bda2(0x183)](','):[];return _0xc79f19[_0x44bda2(0x19b)](_0x460ec6=>normalizeFallbackFieldName(_0x460ec6,_0x94f9b5[_0x44bda2(0x170)]))[_0x44bda2(0x178)](_0x324e47=>_0x324e47!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x316619(0x17a),'command':'detail','description':a28_0x316619(0x17c),'risk':a28_0x316619(0x173),'flags':[CODE_FLAG],async 'execute'(_0x1e391e){const _0x11a208=a28_0x316619,_0x4d6565=await getDatasetDetail(_0x1e391e[_0x11a208(0x185)](_0x11a208(0x194))),_0xa5b0dc=Array['isArray'](_0x4d6565['fields'])?_0x4d6565[_0x11a208(0x1ad)]:Array[_0x11a208(0x1b6)](_0x4d6565[_0x11a208(0x189)])?_0x4d6565[_0x11a208(0x189)]:[];let _0x46d1f2=_0xa5b0dc[_0x11a208(0x19b)](_0x533703=>normalizeField(_0x533703))[_0x11a208(0x178)](_0x2893c1=>_0x2893c1!==null);_0x46d1f2[_0x11a208(0x19d)]===0x0&&(_0x46d1f2=await loadListFieldFallback(_0x1e391e['appCode'],_0x1e391e[_0x11a208(0x185)]('code')));const _0x55324e=_0x4d6565[_0x11a208(0x180)]??{},_0x22c590=[];for(const [_0x3ec017,_0x553ac5]of Object[_0x11a208(0x18f)](_0x55324e)){const _0x251107=normalizeOperationEntry(_0x3ec017,_0x553ac5);if(_0x251107)_0x22c590[_0x11a208(0x190)](_0x251107);}const _0x5c1bde=_0x4d6565['dbtableConfig']??{},_0x4da096=_0x4d6565['dataset']??{},_0x4e6584=_0x5c1bde[_0x11a208(0x19e)]!=null?{'id':_0x5c1bde[_0x11a208(0x19e)],'name':_0x5c1bde[_0x11a208(0x1af)]??null}:undefined;let _0x3474fd;return typeof _0x4d6565[_0x11a208(0x18c)]==='string'&&(_0x3474fd=parseJsonMaybe(_0x4d6565[_0x11a208(0x18c)])),{'ok':!![],'data':{'id':_0x4d6565[_0x11a208(0x1b1)]??_0x4d6565['id'],'name':_0x4d6565[_0x11a208(0x1b0)],'code':_0x4d6565[_0x11a208(0x1aa)]||_0x4d6565[_0x11a208(0x194)],'doVersion':_0x4d6565[_0x11a208(0x193)],'description':_0x4d6565['description']||_0x4da096['tableComment']||undefined,'source':_0x4d6565[_0x11a208(0x187)]||_0x4da096['sourceType'],'table':_0x5c1bde['tableName']||_0x4da096[_0x11a208(0x18d)],'datasetKey':_0x5c1bde['datasetKey'],'pk':_0x5c1bde['pkField'],'db':_0x4e6584,'dbtable':summarizeDbtable(_0x5c1bde),'fields':_0x46d1f2,'operations':_0x22c590,'indexes':Array['isArray'](_0x4da096[_0x11a208(0x1a5)])?_0x4da096[_0x11a208(0x1a5)]:[],'relations':_0x4d6565['relations']??null,'relatedPages':normalizeRelatedPages(_0x4d6565[_0x11a208(0x18e)]),...Array['isArray'](_0x4d6565[_0x11a208(0x171)])?{'columnCodeListWithDeleted':_0x4d6565[_0x11a208(0x171)]}:{},'formatRules':Array[_0x11a208(0x1b6)](_0x4d6565[_0x11a208(0x1a0)])?_0x4d6565[_0x11a208(0x1a0)]:[],'validateRules':Array[_0x11a208(0x1b6)](_0x4d6565[_0x11a208(0x1a9)])?_0x4d6565[_0x11a208(0x1a9)]:[],..._0x3474fd!==undefined?{'extend':_0x3474fd}:{},'stats':{'fieldCount':_0x46d1f2[_0x11a208(0x19d)],'operationCount':_0x22c590[_0x11a208(0x19d)]}}};}};
1
+ function a28_0x5ca6(_0xa433c5,_0x5b17d3){_0xa433c5=_0xa433c5-0xa7;const _0x5c9f38=a28_0x5c9f();let _0x5ca658=_0x5c9f38[_0xa433c5];return _0x5ca658;}function a28_0x5c9f(){const _0x386746=['deleted','responseBody','extend','2241354hiXYEr','requestBody','modelCode','indexes','required','dbName','sourceType','isArray','66989DUVTfi','description','afterScriptId','properties','beforeScriptId','labelField','host','relations','type','876532yicZfC','operations','push','find','options','doType','filter','name','parse','path','relatedPageInfoList','split','responseFields','2563910zZgQTs','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','method','creatorNameField','appCode','requestFields','detail','string','formatRules','fields','read','trim','logicField','source','code','532tjoXai','54xGaEiS','pkField','5nndtuO','dbId','creatorIdField','dbtableConfig','6296tcgFrl','dataType','dbType','datasetKey','modelId','dblinkInfoDTO','doVersion','str','map','length','columnCodeListWithDeleted','1744404RPvgRm','object','createTimeField','allFields','validateRules','entries','modifierIdField','tableName','2879349uJKqBI','title'];a28_0x5c9f=function(){return _0x386746;};return a28_0x5c9f();}const a28_0x3e634b=a28_0x5ca6;(function(_0x2e66a9,_0x417adc){const _0x3326a5=a28_0x5ca6,_0x31cc02=_0x2e66a9();while(!![]){try{const _0x52bfec=parseInt(_0x3326a5(0xda))/0x1+parseInt(_0x3326a5(0xd2))/0x2+parseInt(_0x3326a5(0xcd))/0x3+-parseInt(_0x3326a5(0xe3))/0x4*(parseInt(_0x3326a5(0xb6))/0x5)+parseInt(_0x3326a5(0xc5))/0x6+-parseInt(_0x3326a5(0xb3))/0x7*(-parseInt(_0x3326a5(0xba))/0x8)+-parseInt(_0x3326a5(0xb4))/0x9*(parseInt(_0x3326a5(0xf0))/0xa);if(_0x52bfec===_0x417adc)break;else _0x31cc02['push'](_0x31cc02['shift']());}catch(_0x2dd6f9){_0x31cc02['push'](_0x31cc02['shift']());}}}(a28_0x5c9f,0xb4ca4));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x266a16){const _0x3f8488=a28_0x5ca6;if(_0x266a16[_0x3f8488(0xcf)])return null;const _0x457df9=Boolean(_0x266a16['displayName']!==undefined||_0x266a16[_0x3f8488(0xe8)]!==undefined);let _0x4cfb03={};if(!_0x457df9&&typeof _0x266a16[_0x3f8488(0xd1)]==='string')try{_0x4cfb03=JSON[_0x3f8488(0xeb)](_0x266a16[_0x3f8488(0xd1)]);}catch{}const _0x239cf8=_0x457df9?_0x266a16['name']:_0x266a16[_0x3f8488(0xb2)],_0x2a4c20=_0x457df9?_0x266a16['displayName']:_0x266a16[_0x3f8488(0xea)],_0x566933=_0x457df9?_0x266a16[_0x3f8488(0xe8)]:_0x266a16[_0x3f8488(0xe2)]||_0x266a16[_0x3f8488(0xbb)],_0x4a4450=_0x457df9?_0x266a16[_0x3f8488(0xb5)]===!![]:_0x4cfb03[_0x3f8488(0xb5)]===!![],_0x3028e7=_0x457df9?_0x266a16[_0x3f8488(0xd6)]===!![]:_0x4cfb03[_0x3f8488(0xd6)]===!![],_0x4cab34=_0x457df9?_0x266a16[_0x3f8488(0xe7)]??null:_0x4cfb03[_0x3f8488(0xe7)]??null,_0x37a626={'name':_0x239cf8,'displayName':_0x2a4c20||_0x239cf8,'type':_0x566933,'dbType':_0x266a16[_0x3f8488(0xbc)],'pk':_0x4a4450,'required':_0x3028e7,'description':_0x266a16[_0x3f8488(0xdb)]||undefined};return Array[_0x3f8488(0xd9)](_0x4cab34)&&_0x4cab34[_0x3f8488(0xc3)]>0x0&&(_0x37a626[_0x3f8488(0xe7)]=_0x4cab34),_0x37a626;}function parseJsonMaybe(_0x1d9784){const _0x5b24b7=a28_0x5ca6;if(typeof _0x1d9784!==_0x5b24b7(0xab))return _0x1d9784;try{return JSON[_0x5b24b7(0xeb)](_0x1d9784);}catch{return _0x1d9784;}}function normalizeOperationEntry(_0x30db16,_0x4e09fc){const _0x3f3e88=a28_0x5ca6;if(!_0x4e09fc||typeof _0x4e09fc!==_0x3f3e88(0xc6))return null;if(!_0x4e09fc['method']||!_0x4e09fc[_0x3f3e88(0xec)])return null;const _0x40b3ff={'name':_0x30db16,'method':_0x4e09fc[_0x3f3e88(0xf2)],'path':_0x4e09fc[_0x3f3e88(0xec)]};if(_0x4e09fc['host'])_0x40b3ff['host']=_0x4e09fc[_0x3f3e88(0xe0)];if(_0x4e09fc[_0x3f3e88(0xd3)]!=null)_0x40b3ff[_0x3f3e88(0xd3)]=parseJsonMaybe(_0x4e09fc[_0x3f3e88(0xd3)]);if(_0x4e09fc[_0x3f3e88(0xd0)]!=null)_0x40b3ff[_0x3f3e88(0xd0)]=parseJsonMaybe(_0x4e09fc['responseBody']);if(_0x4e09fc[_0x3f3e88(0xde)]!=null)_0x40b3ff[_0x3f3e88(0xde)]=_0x4e09fc[_0x3f3e88(0xde)];if(_0x4e09fc[_0x3f3e88(0xdc)]!=null)_0x40b3ff[_0x3f3e88(0xdc)]=_0x4e09fc[_0x3f3e88(0xdc)];if(Array[_0x3f3e88(0xd9)](_0x4e09fc['requestFields']))_0x40b3ff[_0x3f3e88(0xa9)]=_0x4e09fc['requestFields'];if(Array[_0x3f3e88(0xd9)](_0x4e09fc[_0x3f3e88(0xef)]))_0x40b3ff[_0x3f3e88(0xef)]=_0x4e09fc[_0x3f3e88(0xef)];return _0x40b3ff;}function summarizeDbtable(_0x28693d){const _0x4c94dc=a28_0x5ca6,_0x376130={},_0xb5fe46=[_0x4c94dc(0xb7),_0x4c94dc(0xd7),_0x4c94dc(0xcc),_0x4c94dc(0xbd),'pkField',_0x4c94dc(0xc8),_0x4c94dc(0xb0),_0x4c94dc(0xc7),'updateTimeField',_0x4c94dc(0xb8),_0x4c94dc(0xa7),_0x4c94dc(0xcb),'modifierNameField',_0x4c94dc(0xdf),_0x4c94dc(0xbf)];for(const _0x243029 of _0xb5fe46){if(_0x28693d[_0x243029]!==undefined)_0x376130[_0x243029]=_0x28693d[_0x243029];}return typeof _0x376130[_0x4c94dc(0xc8)]===_0x4c94dc(0xab)&&_0x376130[_0x4c94dc(0xc8)][_0x4c94dc(0xc3)]>0x0&&(_0x376130['allFieldNames']=_0x376130[_0x4c94dc(0xc8)][_0x4c94dc(0xee)](',')[_0x4c94dc(0xc2)](_0x45851=>_0x45851[_0x4c94dc(0xaf)]())[_0x4c94dc(0xe9)](Boolean)),_0x376130;}function normalizeRelatedPages(_0x3d41c0){const _0x577c7b=a28_0x5ca6;if(!Array[_0x577c7b(0xd9)](_0x3d41c0))return[];return _0x3d41c0[_0x577c7b(0xe9)](_0x3230d4=>_0x3230d4&&typeof _0x3230d4===_0x577c7b(0xc6))[_0x577c7b(0xc2)](_0x2c2c9c=>({'id':_0x2c2c9c['id'],'type':_0x2c2c9c[_0x577c7b(0xe2)],'code':_0x2c2c9c[_0x577c7b(0xb2)],'title':_0x2c2c9c[_0x577c7b(0xce)],'deleted':_0x2c2c9c[_0x577c7b(0xcf)]===!![]}));}function normalizeFallbackFieldName(_0x4cde42,_0x30ad5){const _0x5e3acd=_0x4cde42['trim']();if(!_0x5e3acd)return null;return{'name':_0x5e3acd,'displayName':_0x5e3acd,'type':undefined,'dbType':undefined,'pk':_0x5e3acd===_0x30ad5,'required':![],'description':undefined};}async function loadListFieldFallback(_0x13bc70,_0x1e36e8){const _0xc5c1e2=a28_0x5ca6;if(!_0x13bc70||!_0x1e36e8)return[];try{const _0x325247=await listDatasets(_0x13bc70,{'code':_0x1e36e8}),_0xc38032=_0x325247[_0xc5c1e2(0xe6)](_0x14ffff=>_0x14ffff[_0xc5c1e2(0xb2)]===_0x1e36e8)??_0x325247[0x0],_0x2b2a=_0xc38032?.[_0xc5c1e2(0xb9)]??{},_0x3bd419=typeof _0x2b2a[_0xc5c1e2(0xc8)]===_0xc5c1e2(0xab)?_0x2b2a[_0xc5c1e2(0xc8)][_0xc5c1e2(0xee)](','):[];return _0x3bd419[_0xc5c1e2(0xc2)](_0xe85076=>normalizeFallbackFieldName(_0xe85076,_0x2b2a[_0xc5c1e2(0xb5)]))['filter'](_0x1881df=>_0x1881df!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a28_0x3e634b(0xaa),'description':a28_0x3e634b(0xf1),'risk':a28_0x3e634b(0xae),'flags':[CODE_FLAG],async 'execute'(_0x2f1212){const _0x5eb51a=a28_0x3e634b,_0x4cf719=await getDatasetDetail(_0x2f1212[_0x5eb51a(0xc1)](_0x5eb51a(0xb2))),_0x12f8bb=Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xad)])?_0x4cf719[_0x5eb51a(0xad)]:Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xdd)])?_0x4cf719['properties']:[];let _0x526310=_0x12f8bb[_0x5eb51a(0xc2)](_0x4066c4=>normalizeField(_0x4066c4))[_0x5eb51a(0xe9)](_0x1ba0b2=>_0x1ba0b2!==null);_0x526310['length']===0x0&&(_0x526310=await loadListFieldFallback(_0x2f1212[_0x5eb51a(0xa8)],_0x2f1212['str']('code')));const _0xda06e7=_0x4cf719[_0x5eb51a(0xe4)]??{},_0x35ba10=[];for(const [_0xc565b2,_0x372813]of Object[_0x5eb51a(0xca)](_0xda06e7)){const _0x53ae5a=normalizeOperationEntry(_0xc565b2,_0x372813);if(_0x53ae5a)_0x35ba10[_0x5eb51a(0xe5)](_0x53ae5a);}const _0x55335d=_0x4cf719[_0x5eb51a(0xb9)]??{},_0x18fac6=_0x4cf719['dataset']??{},_0x44bce2=_0x55335d[_0x5eb51a(0xb7)]!=null?{'id':_0x55335d['dbId'],'name':_0x55335d['dbName']??null}:undefined;let _0x527097;return typeof _0x4cf719['extend']==='string'&&(_0x527097=parseJsonMaybe(_0x4cf719[_0x5eb51a(0xd1)])),{'ok':!![],'data':{'id':_0x4cf719[_0x5eb51a(0xbe)]??_0x4cf719['id'],'name':_0x4cf719['name'],'code':_0x4cf719[_0x5eb51a(0xd4)]||_0x4cf719[_0x5eb51a(0xb2)],'doVersion':_0x4cf719[_0x5eb51a(0xc0)],'description':_0x4cf719[_0x5eb51a(0xdb)]||_0x18fac6['tableComment']||undefined,'source':_0x4cf719[_0x5eb51a(0xb1)]||_0x18fac6[_0x5eb51a(0xd8)],'table':_0x55335d[_0x5eb51a(0xcc)]||_0x18fac6[_0x5eb51a(0xcc)],'datasetKey':_0x55335d[_0x5eb51a(0xbd)],'pk':_0x55335d[_0x5eb51a(0xb5)],'db':_0x44bce2,'dbtable':summarizeDbtable(_0x55335d),'fields':_0x526310,'operations':_0x35ba10,'indexes':Array[_0x5eb51a(0xd9)](_0x18fac6['indexes'])?_0x18fac6[_0x5eb51a(0xd5)]:[],'relations':_0x4cf719[_0x5eb51a(0xe1)]??null,'relatedPages':normalizeRelatedPages(_0x4cf719[_0x5eb51a(0xed)]),...Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xc4)])?{'columnCodeListWithDeleted':_0x4cf719[_0x5eb51a(0xc4)]}:{},'formatRules':Array['isArray'](_0x4cf719['formatRules'])?_0x4cf719[_0x5eb51a(0xac)]:[],'validateRules':Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xc9)])?_0x4cf719['validateRules']:[],..._0x527097!==undefined?{'extend':_0x527097}:{},'stats':{'fieldCount':_0x526310[_0x5eb51a(0xc3)],'operationCount':_0x35ba10[_0x5eb51a(0xc3)]}}};}};
@@ -1 +1 @@
1
- (function(_0x2d96f7,_0x209b26){const _0x23a6c2=a29_0x1618,_0x7d71a0=_0x2d96f7();while(!![]){try{const _0x2638e8=-parseInt(_0x23a6c2(0x143))/0x1*(parseInt(_0x23a6c2(0x13e))/0x2)+-parseInt(_0x23a6c2(0x147))/0x3*(parseInt(_0x23a6c2(0x145))/0x4)+parseInt(_0x23a6c2(0x142))/0x5+-parseInt(_0x23a6c2(0x144))/0x6+parseInt(_0x23a6c2(0x141))/0x7+-parseInt(_0x23a6c2(0x13d))/0x8*(parseInt(_0x23a6c2(0x13f))/0x9)+-parseInt(_0x23a6c2(0x146))/0xa*(-parseInt(_0x23a6c2(0x140))/0xb);if(_0x2638e8===_0x209b26)break;else _0x7d71a0['push'](_0x7d71a0['shift']());}catch(_0x2e1451){_0x7d71a0['push'](_0x7d71a0['shift']());}}}(a29_0x41d2,0xe0023));import{datasetList}from'../../commands/dataset/list.js';function a29_0x41d2(){const _0x93d5ce=['1577hzPWas','5268528RiNCIK','8DfwFQF','60ulQgyi','1248153HdlULV','40NZhuzc','2252vpDwbP','1325547iMFdAs','5928208ALapWt','2464812quPkGU','7770810wVNLZy'];a29_0x41d2=function(){return _0x93d5ce;};return a29_0x41d2();}import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x1618(_0x34b880,_0x24aeeb){_0x34b880=_0x34b880-0x13d;const _0x41d2ac=a29_0x41d2();let _0x161836=_0x41d2ac[_0x34b880];return _0x161836;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x5bfd48,_0x22ecb7){const _0xced7a9=a29_0x2e2a,_0x306b0b=_0x5bfd48();while(!![]){try{const _0x34d51a=-parseInt(_0xced7a9(0x94))/0x1*(parseInt(_0xced7a9(0x8e))/0x2)+parseInt(_0xced7a9(0x92))/0x3*(parseInt(_0xced7a9(0x91))/0x4)+parseInt(_0xced7a9(0x8d))/0x5+-parseInt(_0xced7a9(0x8f))/0x6+-parseInt(_0xced7a9(0x95))/0x7*(-parseInt(_0xced7a9(0x93))/0x8)+-parseInt(_0xced7a9(0x8c))/0x9+parseInt(_0xced7a9(0x90))/0xa;if(_0x34d51a===_0x22ecb7)break;else _0x306b0b['push'](_0x306b0b['shift']());}catch(_0x1fae0e){_0x306b0b['push'](_0x306b0b['shift']());}}}(a29_0x56c3,0x7ee75));import{datasetList}from'../../commands/dataset/list.js';function a29_0x2e2a(_0x593591,_0x2b3054){_0x593591=_0x593591-0x8c;const _0x56c36a=a29_0x56c3();let _0x2e2ab9=_0x56c36a[_0x593591];return _0x2e2ab9;}function a29_0x56c3(){const _0x30ee2b=['361072QKOxHq','5199690wNLGCr','16591220EmEdxE','234280uDuXYu','9sEFnYC','15112Srwxjq','5QKcdig','245oCIMCA','2178495aGkQja','3151000TqSPDV'];a29_0x56c3=function(){return _0x30ee2b;};return a29_0x56c3();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x5df4e0=a30_0x2fc2;(function(_0x2ea898,_0x3f93f8){const _0x2abb4d=a30_0x2fc2,_0x3a7520=_0x2ea898();while(!![]){try{const _0x3ad12b=-parseInt(_0x2abb4d(0x93))/0x1*(-parseInt(_0x2abb4d(0x99))/0x2)+parseInt(_0x2abb4d(0x86))/0x3*(-parseInt(_0x2abb4d(0x9c))/0x4)+-parseInt(_0x2abb4d(0xa1))/0x5*(parseInt(_0x2abb4d(0x8c))/0x6)+parseInt(_0x2abb4d(0x92))/0x7+-parseInt(_0x2abb4d(0x89))/0x8*(-parseInt(_0x2abb4d(0x9a))/0x9)+parseInt(_0x2abb4d(0x9f))/0xa+-parseInt(_0x2abb4d(0x8a))/0xb;if(_0x3ad12b===_0x3f93f8)break;else _0x3a7520['push'](_0x3a7520['shift']());}catch(_0x515d49){_0x3a7520['push'](_0x3a7520['shift']());}}}(a30_0x51ca,0xe4868));function a30_0x51ca(){const _0x202ab1=['16462776jeQEti','description','402uzKAIP','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','dbtableConfig','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','str','source','12605075AhIyxV','378493LsJMvr','datasetKey','allFields','appCode','list','map','2oTemxV','522NIAnxW','name','16RcNtyW','trim','tableName','17132080sIIgjb','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','88640mbZzWq','string','length','1147293MDEBjb','pkField','split','173480AMBkvl'];a30_0x51ca=function(){return _0x202ab1;};return a30_0x51ca();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a30_0x2fc2(_0x44ab5d,_0x2aafce){_0x44ab5d=_0x44ab5d-0x84;const _0x51ca4b=a30_0x51ca();let _0x2fc275=_0x51ca4b[_0x44ab5d];return _0x2fc275;}export const datasetList={'service':'dataset','command':a30_0x5df4e0(0x97),'description':a30_0x5df4e0(0x8f),'risk':'read','flags':[{'name':'name','type':a30_0x5df4e0(0x84),'description':a30_0x5df4e0(0x8d)},{...CODE_FLAG,'required':![],'description':a30_0x5df4e0(0xa0)}],async 'execute'(_0x59191e){const _0x4c39b2=a30_0x5df4e0,_0x3daf41=_0x59191e['str'](_0x4c39b2(0x9b)),_0x22f09d=_0x59191e[_0x4c39b2(0x90)]('code'),_0x41730c=await listDatasets(_0x59191e[_0x4c39b2(0x96)],{..._0x3daf41&&{'name':_0x3daf41},..._0x22f09d&&{'code':_0x22f09d}});return{'ok':!![],'data':{'total':_0x41730c[_0x4c39b2(0x85)],'datasets':_0x41730c[_0x4c39b2(0x98)](_0x43c9c3=>{const _0x1e6075=_0x4c39b2,_0x58784d=_0x43c9c3[_0x1e6075(0x8e)]??{};return{'id':_0x43c9c3['id'],'code':_0x43c9c3['code'],'name':_0x43c9c3[_0x1e6075(0x9b)],'source':_0x43c9c3[_0x1e6075(0x91)],'description':_0x43c9c3[_0x1e6075(0x8b)],'table':_0x58784d[_0x1e6075(0x9e)],'datasetKey':_0x58784d[_0x1e6075(0x94)],'pk':_0x58784d[_0x1e6075(0x87)],'fields':_0x58784d[_0x1e6075(0x95)]?_0x58784d[_0x1e6075(0x95)][_0x1e6075(0x88)](',')['map'](_0x33efce=>_0x33efce[_0x1e6075(0x9d)]()):[]};})}};}};
1
+ const a30_0x32c139=a30_0x57b3;(function(_0x356dc6,_0x55ba6d){const _0xee923a=a30_0x57b3,_0x1b26b3=_0x356dc6();while(!![]){try{const _0x30497c=parseInt(_0xee923a(0x1c9))/0x1+-parseInt(_0xee923a(0x1b5))/0x2+-parseInt(_0xee923a(0x1c6))/0x3*(parseInt(_0xee923a(0x1b6))/0x4)+-parseInt(_0xee923a(0x1b0))/0x5+-parseInt(_0xee923a(0x1c3))/0x6*(-parseInt(_0xee923a(0x1bf))/0x7)+parseInt(_0xee923a(0x1b9))/0x8*(parseInt(_0xee923a(0x1c2))/0x9)+parseInt(_0xee923a(0x1c0))/0xa;if(_0x30497c===_0x55ba6d)break;else _0x1b26b3['push'](_0x1b26b3['shift']());}catch(_0x4cd920){_0x1b26b3['push'](_0x1b26b3['shift']());}}}(a30_0xf699,0xacc32));import{listDatasets}from'../../core/api-client.js';function a30_0x57b3(_0x1560cc,_0x25ad97){_0x1560cc=_0x1560cc-0x1b0;const _0xf6999d=a30_0xf699();let _0x57b387=_0xf6999d[_0x1560cc];return _0x57b387;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x32c139(0x1bc),'command':a30_0x32c139(0x1bb),'description':a30_0x32c139(0x1b3),'risk':'read','flags':[{'name':a30_0x32c139(0x1c1),'type':a30_0x32c139(0x1b7),'description':a30_0x32c139(0x1b8)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x1c541e){const _0xc0195a=a30_0x32c139,_0x4bbdd4=_0x1c541e[_0xc0195a(0x1c7)](_0xc0195a(0x1c1)),_0x38e824=_0x1c541e['str'](_0xc0195a(0x1b4)),_0x2d76e9=await listDatasets(_0x1c541e['appCode'],{..._0x4bbdd4&&{'name':_0x4bbdd4},..._0x38e824&&{'code':_0x38e824}});return{'ok':!![],'data':{'total':_0x2d76e9[_0xc0195a(0x1c4)],'datasets':_0x2d76e9[_0xc0195a(0x1c8)](_0x40b4ee=>{const _0x949f78=_0xc0195a,_0x2df42f=_0x40b4ee[_0x949f78(0x1ca)]??{};return{'id':_0x40b4ee['id'],'code':_0x40b4ee['code'],'name':_0x40b4ee[_0x949f78(0x1c1)],'source':_0x40b4ee['source'],'description':_0x40b4ee[_0x949f78(0x1be)],'table':_0x2df42f[_0x949f78(0x1b1)],'datasetKey':_0x2df42f[_0x949f78(0x1c5)],'pk':_0x2df42f['pkField'],'fields':_0x2df42f[_0x949f78(0x1b2)]?_0x2df42f[_0x949f78(0x1b2)][_0x949f78(0x1bd)](',')['map'](_0x592413=>_0x592413[_0x949f78(0x1ba)]()):[]};})}};}};function a30_0xf699(){const _0x557106=['map','290728pilhpq','dbtableConfig','5542630qDyKnX','tableName','allFields','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','code','811300itcGue','900440ajXqap','string','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','1280264saQnIL','trim','list','dataset','split','description','686DvBEHt','20254690hizRkN','name','9UsWHMH','25770fRnmJs','length','datasetKey','9ORIyhq','str'];a30_0xf699=function(){return _0x557106;};return a30_0xf699();}
@@ -1 +1 @@
1
- const a31_0x4539b1=a31_0x3ca3;(function(_0x18b861,_0x45b180){const _0x204ed4=a31_0x3ca3,_0x33564b=_0x18b861();while(!![]){try{const _0x56d39c=-parseInt(_0x204ed4(0x10c))/0x1+parseInt(_0x204ed4(0x112))/0x2+-parseInt(_0x204ed4(0x10f))/0x3+-parseInt(_0x204ed4(0x11a))/0x4*(parseInt(_0x204ed4(0x110))/0x5)+parseInt(_0x204ed4(0x11b))/0x6*(parseInt(_0x204ed4(0x114))/0x7)+-parseInt(_0x204ed4(0x11f))/0x8+-parseInt(_0x204ed4(0x113))/0x9*(-parseInt(_0x204ed4(0x118))/0xa);if(_0x56d39c===_0x45b180)break;else _0x33564b['push'](_0x33564b['shift']());}catch(_0x4af52f){_0x33564b['push'](_0x33564b['shift']());}}}(a31_0x292a,0x6f1cb));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a31_0x292a(){const _0x2214a8=['#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','appCode','1451160lrDJOT','code','12YqnAvu','3035574YnfRhC','dataset','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3125792oBwsjo','14222TIkOQJ','read','sdk-doc','2234871CGTylk','295255JxDDEu','string','1681788nIyUHu','27jQvpAV','7VkVzjE','trim'];a31_0x292a=function(){return _0x2214a8;};return a31_0x292a();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4539b1(0x116);export function formatDatasetSdkMarkdown(_0x183d28){const _0xa8b725=a31_0x4539b1,_0x30af64=typeof _0x183d28===_0xa8b725(0x111)?_0x183d28[_0xa8b725(0x115)]():'';return _0x30af64||DEFAULT_MARKDOWN;}function a31_0x3ca3(_0x463e70,_0x197270){_0x463e70=_0x463e70-0x10c;const _0x292a09=a31_0x292a();let _0x3ca3fb=_0x292a09[_0x463e70];return _0x3ca3fb;}export const datasetSdkDoc={'service':a31_0x4539b1(0x11c),'command':a31_0x4539b1(0x10e),'description':a31_0x4539b1(0x11d),'risk':a31_0x4539b1(0x10d),'flags':[{...CODE_FLAG,'description':a31_0x4539b1(0x11e)}],async 'execute'(_0x2da791){const _0x360b06=a31_0x4539b1,_0x480179=_0x2da791['str'](_0x360b06(0x119)),_0x43d5bf=await getDatasetSdkUsageDoc(_0x480179,_0x2da791[_0x360b06(0x117)]);return{'ok':!![],'data':{'code':_0x480179,'appCode':_0x2da791['appCode'],'markdown':formatDatasetSdkMarkdown(_0x43d5bf)}};}};
1
+ const a31_0x46caaa=a31_0x18c7;function a31_0x4c90(){const _0x155125=['55sSqAJi','2164652YXuwyg','10qOEcpd','1264173DABhLh','1923376PrAJSE','trim','sdk-doc','string','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','dataset','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','354470snQHjV','code','470461KtqLWN','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','557168NzNOLD','234474kwvxfJ','2rOyROd','18ybpwJQ'];a31_0x4c90=function(){return _0x155125;};return a31_0x4c90();}(function(_0x14bb8a,_0x68b625){const _0x18168d=a31_0x18c7,_0x507ec7=_0x14bb8a();while(!![]){try{const _0x5f4b93=parseInt(_0x18168d(0x1cb))/0x1*(parseInt(_0x18168d(0x1bc))/0x2)+-parseInt(_0x18168d(0x1c1))/0x3+parseInt(_0x18168d(0x1bf))/0x4+parseInt(_0x18168d(0x1c0))/0x5*(-parseInt(_0x18168d(0x1bb))/0x6)+-parseInt(_0x18168d(0x1c2))/0x7+-parseInt(_0x18168d(0x1cd))/0x8*(parseInt(_0x18168d(0x1bd))/0x9)+parseInt(_0x18168d(0x1c9))/0xa*(parseInt(_0x18168d(0x1be))/0xb);if(_0x5f4b93===_0x68b625)break;else _0x507ec7['push'](_0x507ec7['shift']());}catch(_0xfe6b13){_0x507ec7['push'](_0x507ec7['shift']());}}}(a31_0x4c90,0x43332));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x46caaa(0x1c8);function a31_0x18c7(_0x15053c,_0x20ecc6){_0x15053c=_0x15053c-0x1bb;const _0x4c908a=a31_0x4c90();let _0x18c7c5=_0x4c908a[_0x15053c];return _0x18c7c5;}export function formatDatasetSdkMarkdown(_0x283e46){const _0x2bd6fb=a31_0x46caaa,_0x423763=typeof _0x283e46===_0x2bd6fb(0x1c5)?_0x283e46[_0x2bd6fb(0x1c3)]():'';return _0x423763||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x46caaa(0x1c7),'command':a31_0x46caaa(0x1c4),'description':a31_0x46caaa(0x1c6),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x46caaa(0x1cc)}],async 'execute'(_0x45b743){const _0x538f12=a31_0x46caaa,_0x174595=_0x45b743['str'](_0x538f12(0x1ca)),_0x46324d=await getDatasetSdkUsageDoc(_0x174595,_0x45b743['appCode']);return{'ok':!![],'data':{'code':_0x174595,'appCode':_0x45b743['appCode'],'markdown':formatDatasetSdkMarkdown(_0x46324d)}};}};
@@ -1 +1 @@
1
- const a32_0x3ec301=a32_0x2664;(function(_0x2a81a6,_0x5e8401){const _0x5b7831=a32_0x2664,_0x26fe40=_0x2a81a6();while(!![]){try{const _0xd74274=-parseInt(_0x5b7831(0x21d))/0x1+parseInt(_0x5b7831(0x1e3))/0x2+parseInt(_0x5b7831(0x203))/0x3+parseInt(_0x5b7831(0x248))/0x4+parseInt(_0x5b7831(0x206))/0x5+-parseInt(_0x5b7831(0x22b))/0x6*(-parseInt(_0x5b7831(0x200))/0x7)+parseInt(_0x5b7831(0x23a))/0x8*(-parseInt(_0x5b7831(0x209))/0x9);if(_0xd74274===_0x5e8401)break;else _0x26fe40['push'](_0x26fe40['shift']());}catch(_0x20fee3){_0x26fe40['push'](_0x26fe40['shift']());}}}(a32_0x192f,0xdd850));import a32_0x2f0791 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';function a32_0x192f(){const _0x334ec0=['5667960jzCBXM','green','path','32481OzlTen','repairCommand','✓\x20Valid\x20JSON','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','repeat','\x20\x20API\x20Endpoints','raw','\x20config\x20delete\x20region','(not\x20found)','\x20config\x20init','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','(set,\x20length=','serviceCode','reason','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(invalid)','544538nhfcQC','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','commandCount','project','version','pageSize','\x20config\x20delete\x20routing\x20--global','(unnamed)','log','filter','\x20\x20Built-in\x20Skill','\x20\x20Routing\x20Configuration','\x20config','18CmnKcp','(default:\x20','\x20commands)','(none)','\x20\x20Config\x20Files','arch','empty','length','state','hasOwnProperty','Global','missing','name','read','\x20\x20Merged\x20Config','7880XpdCEM','source','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','defaultApp','\x20\x20Config\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','services','\x20config\x20delete\x20inherit','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20kbServiceDomain:\x20','yellow','⚠\x20Empty','\x20\x20auth\x20(effective):\x20','1102132RjYhHA','skillVersion','region','current','riskLevel','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20Imported\x20from:\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Repair\x20project:\x20\x20','registryPath','status','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','doctor','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','✓\x20Loaded','\x20\x20Session\x20check:\x20\x20\x20','prototype','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','(default)','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20+\x20','\x20doctor','\x20\x20Auth','padEnd','3210268twDAgs','✗\x20Invalid\x20JSON','\x20\x20Country/Region\x20Configuration','routing','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','includes','\x20\x20Installed\x20Path:\x20\x20','\x20\x20─','accessKey','\x20\x20skillDomain:\x20\x20\x20\x20\x20','platform','join','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','✗\x20Invalid','currentApp','gray','✓\x20current','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','message','projectConfig','global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(no\x20file)','inherit','call','bold','appCode','locale','1556443IMzbKg','verbose','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','3976323DhKrNu','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20'];a32_0x192f=function(){return _0x334ec0;};return a32_0x192f();}import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';function a32_0x2664(_0x1565aa,_0xdb1945){_0x1565aa=_0x1565aa-0x1dd;const _0x192f73=a32_0x192f();let _0x2664bb=_0x192f73[_0x1565aa];return _0x2664bb;}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(_0x518263){const _0x9a36d7=a32_0x2664,_0x6c4991=getCliVersion(),_0xc5f2b7=buildConfigFromFlags({});let _0x33f24d,_0x55f857;try{_0x33f24d=normalizeLovrabetRegion(_0xc5f2b7[_0x9a36d7(0x210)][_0x9a36d7(0x24a)]);}catch(_0xe5c198){_0x55f857=_0xe5c198 instanceof Error?_0xe5c198:new Error(String(_0xe5c198));}let _0x364afb;if(!_0x55f857)try{await initGlobalEnvironment(_0xc5f2b7);}catch(_0x54ad22){_0x364afb=_0x54ad22 instanceof Error?_0x54ad22:new Error(String(_0x54ad22));}console['log'](),console[_0x9a36d7(0x226)](a32_0x2f0791['bold'](CLI_BIN_NAME+_0x9a36d7(0x1e0))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)]('─'['repeat'](0x32))),console[_0x9a36d7(0x226)](_0x9a36d7(0x21b)+_0x6c4991),console['log'](_0x9a36d7(0x25d)+process[_0x9a36d7(0x222)]),console['log'](_0x9a36d7(0x1f4)+process[_0x9a36d7(0x1ed)]+'\x20'+process[_0x9a36d7(0x230)]);const _0x1683a5=inspectBuiltinSkill();console[_0x9a36d7(0x226)](),console['log'](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x228))),console[_0x9a36d7(0x226)](a32_0x2f0791['gray']('\x20\x20─'[_0x9a36d7(0x20e)](0x1e))),console[_0x9a36d7(0x226)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1683a5['state']===_0x9a36d7(0x24b)?a32_0x2f0791[_0x9a36d7(0x207)](_0x9a36d7(0x1f3)):a32_0x2f0791[_0x9a36d7(0x24e)]('✗\x20'+_0x1683a5[_0x9a36d7(0x233)]))),console[_0x9a36d7(0x226)](_0x9a36d7(0x23d)+_0x1683a5[_0x9a36d7(0x25e)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x1683a5[_0x9a36d7(0x249)]||a32_0x2f0791[_0x9a36d7(0x1f2)]('(missing)'))),console[_0x9a36d7(0x226)](_0x9a36d7(0x1e9)+(_0x1683a5['installedPath']||a32_0x2f0791['gray'](_0x9a36d7(0x212))));_0x1683a5[_0x9a36d7(0x233)]!==_0x9a36d7(0x24b)&&console[_0x9a36d7(0x226)](_0x9a36d7(0x24d)+_0x1683a5[_0x9a36d7(0x20a)]);_0x1683a5[_0x9a36d7(0x21a)]&&console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1683a5['reason']);console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x22f))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)]('\x20\x20─'['repeat'](0x1e)));const _0x556577=getGlobalConfigPath(),_0x176100=getProjectConfigPath();console[_0x9a36d7(0x226)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x556577||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x212)))),console['log'](_0x9a36d7(0x257)+(_0x176100||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x212)))),console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791['bold'](_0x9a36d7(0x23f))),console[_0x9a36d7(0x226)](a32_0x2f0791['gray'](_0x9a36d7(0x1ea)[_0x9a36d7(0x20e)](0x1e)));const _0x418551=(_0x53a02c,_0x2f6566)=>{const _0x5ee0f3=_0x9a36d7;if(!_0x2f6566){console['log']('\x20\x20'+_0x53a02c[_0x5ee0f3(0x1e2)](0x11)+'\x20'+a32_0x2f0791[_0x5ee0f3(0x1f2)](_0x5ee0f3(0x1fa)));return;}const _0xa041a0=inspectCliConfigJsonFile(_0x2f6566);if(_0xa041a0['status']==='ok')console['log']('\x20\x20'+_0x53a02c[_0x5ee0f3(0x1e2)](0x11)+'\x20'+a32_0x2f0791['green'](_0x5ee0f3(0x20b)));else{if(_0xa041a0[_0x5ee0f3(0x253)]==='empty')console['log']('\x20\x20'+_0x53a02c[_0x5ee0f3(0x1e2)](0x11)+'\x20'+a32_0x2f0791[_0x5ee0f3(0x245)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xa041a0['status']===_0x5ee0f3(0x236)?console['log']('\x20\x20'+_0x53a02c['padEnd'](0x11)+'\x20'+a32_0x2f0791[_0x5ee0f3(0x1f2)](_0x5ee0f3(0x1f5))):(console[_0x5ee0f3(0x226)]('\x20\x20'+_0x53a02c[_0x5ee0f3(0x1e2)](0x11)+'\x20'+a32_0x2f0791[_0x5ee0f3(0x24e)](_0x5ee0f3(0x1e4))),console[_0x5ee0f3(0x226)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x2f0791[_0x5ee0f3(0x24e)](_0xa041a0[_0x5ee0f3(0x1f6)])));}};_0x418551(_0x9a36d7(0x235),_0x556577),_0x418551('Project',_0x176100);const _0x32017f=loadRawConfigLayers(),_0x17881d=[Object[_0x9a36d7(0x25c)][_0x9a36d7(0x234)][_0x9a36d7(0x1fc)](_0x32017f[_0x9a36d7(0x255)],_0x9a36d7(0x1fb))?_0x9a36d7(0x1f8):null,Object[_0x9a36d7(0x25c)]['hasOwnProperty'][_0x9a36d7(0x1fc)](_0x32017f[_0x9a36d7(0x1f7)],'inherit')?_0x9a36d7(0x221):null][_0x9a36d7(0x227)](Boolean);_0x17881d[_0x9a36d7(0x232)]>0x0&&(console['log'](_0x9a36d7(0x1de)+a32_0x2f0791['yellow'](_0x9a36d7(0x21f)+_0x17881d[_0x9a36d7(0x1ee)](_0x9a36d7(0x1df))+_0x9a36d7(0x22a))),_0x17881d[_0x9a36d7(0x1e8)]('project')&&console[_0x9a36d7(0x226)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x9a36d7(0x242)),_0x17881d['includes'](_0x9a36d7(0x1f8))&&console[_0x9a36d7(0x226)](_0x9a36d7(0x243)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x364afb&&(console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x229))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)]('\x20\x20─'[_0x9a36d7(0x20e)](0x1e))),console[_0x9a36d7(0x226)](_0x9a36d7(0x1e7)+a32_0x2f0791['red'](_0x9a36d7(0x1f0))),console[_0x9a36d7(0x226)](_0x9a36d7(0x216)+_0x364afb['message']),Object['prototype'][_0x9a36d7(0x234)][_0x9a36d7(0x1fc)](_0x32017f[_0x9a36d7(0x1f7)],_0x9a36d7(0x1e6))&&console['log'](_0x9a36d7(0x251)+CLI_BIN_NAME+_0x9a36d7(0x217)),Object[_0x9a36d7(0x25c)]['hasOwnProperty'][_0x9a36d7(0x1fc)](_0x32017f[_0x9a36d7(0x255)],_0x9a36d7(0x1e6))&&console[_0x9a36d7(0x226)](_0x9a36d7(0x205)+CLI_BIN_NAME+_0x9a36d7(0x224)));_0x55f857&&(console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x1e5))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x1ea)[_0x9a36d7(0x20e)](0x1e))),console[_0x9a36d7(0x226)](_0x9a36d7(0x1e7)+a32_0x2f0791['red'](_0x9a36d7(0x1f0))),console[_0x9a36d7(0x226)](_0x9a36d7(0x216)+_0x55f857[_0x9a36d7(0x1f6)]),Object[_0x9a36d7(0x25c)][_0x9a36d7(0x234)][_0x9a36d7(0x1fc)](_0x32017f[_0x9a36d7(0x1f7)],_0x9a36d7(0x24a))&&console[_0x9a36d7(0x226)](_0x9a36d7(0x251)+CLI_BIN_NAME+_0x9a36d7(0x211)),Object[_0x9a36d7(0x25c)]['hasOwnProperty']['call'](_0x32017f[_0x9a36d7(0x255)],_0x9a36d7(0x24a))&&console[_0x9a36d7(0x226)](_0x9a36d7(0x205)+CLI_BIN_NAME+_0x9a36d7(0x213)));console['log'](),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x239))),console['log'](a32_0x2f0791[_0x9a36d7(0x1f2)]('\x20\x20─'[_0x9a36d7(0x20e)](0x1e))),console[_0x9a36d7(0x226)](_0x9a36d7(0x258)+(_0xc5f2b7[_0x9a36d7(0x1fe)]||a32_0x2f0791[_0x9a36d7(0x24e)]('(not\x20set)'))),console[_0x9a36d7(0x226)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x33f24d??a32_0x2f0791[_0x9a36d7(0x24e)](_0x9a36d7(0x21c)))),console['log'](_0x9a36d7(0x202)+_0xc5f2b7[_0x9a36d7(0x1ff)]),console[_0x9a36d7(0x226)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0xc5f2b7[_0x9a36d7(0x23e)]||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x22e)))),console[_0x9a36d7(0x226)](_0x9a36d7(0x23c)+(_0xc5f2b7[_0x9a36d7(0x1f1)]||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x22e)))),console[_0x9a36d7(0x226)](_0x9a36d7(0x214)+(_0xc5f2b7[_0x9a36d7(0x215)]||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x22c)+DEFAULT_CONFIG_VALUES[_0x9a36d7(0x215)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc5f2b7[_0x9a36d7(0x223)]??a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x1dd)))),console[_0x9a36d7(0x226)](_0x9a36d7(0x21e)+_0xc5f2b7[_0x9a36d7(0x24c)]),console[_0x9a36d7(0x226)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc5f2b7[_0x9a36d7(0x201)]),console['log'](_0x9a36d7(0x247)+AUTH_MODE[_0x9a36d7(0x20d)]),console['log'](_0x9a36d7(0x204)+(_0xc5f2b7[_0x9a36d7(0x1eb)]?a32_0x2f0791[_0x9a36d7(0x207)](_0x9a36d7(0x218)+_0xc5f2b7[_0x9a36d7(0x1eb)]['length']+')'):a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x22e)))),console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791['bold'](_0x9a36d7(0x20f))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x1ea)['repeat'](0x1e)));_0x364afb||_0x55f857?console[_0x9a36d7(0x226)](_0x9a36d7(0x1e7)+a32_0x2f0791['red'](_0x9a36d7(0x1ef))):(console[_0x9a36d7(0x226)](_0x9a36d7(0x240)+getApiDomain()),console[_0x9a36d7(0x226)](_0x9a36d7(0x1f9)+getUserDomain()),console[_0x9a36d7(0x226)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x9a36d7(0x226)](_0x9a36d7(0x1ec)+getSkillDomain()),console[_0x9a36d7(0x226)](_0x9a36d7(0x244)+(getKbServiceDomain()??'not\x20configured')));console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791['bold'](_0x9a36d7(0x259))),console['log'](a32_0x2f0791[_0x9a36d7(0x1f2)]('\x20\x20─'['repeat'](0x1e)));const _0x9d2919=inspectServiceRegistry();console[_0x9a36d7(0x226)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x9d2919[_0x9a36d7(0x252)]),console['log'](_0x9a36d7(0x1e7)+formatServiceRegistryStatus(_0x9d2919)),console[_0x9a36d7(0x226)](_0x9a36d7(0x20c)+_0x9d2919['serviceCount']),console[_0x9a36d7(0x226)](_0x9a36d7(0x254)+_0x9d2919[_0x9a36d7(0x220)]);for(const _0x3e8f66 of _0x9d2919[_0x9a36d7(0x241)]){console[_0x9a36d7(0x226)]('\x20\x20'+(_0x3e8f66[_0x9a36d7(0x219)]+':')[_0x9a36d7(0x1e2)](0x11)+'\x20'+(_0x3e8f66[_0x9a36d7(0x237)]||a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x225)))+'\x20('+_0x3e8f66['commandCount']+_0x9a36d7(0x22d)),console[_0x9a36d7(0x226)]('\x20\x20'+''[_0x9a36d7(0x1e2)](0x11)+_0x9a36d7(0x24f)+_0x3e8f66[_0x9a36d7(0x23b)][_0x9a36d7(0x208)]);}return console[_0x9a36d7(0x226)](),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1fd)](_0x9a36d7(0x1e1))),console[_0x9a36d7(0x226)](a32_0x2f0791[_0x9a36d7(0x1f2)](_0x9a36d7(0x1ea)[_0x9a36d7(0x20e)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x2f0791[_0x9a36d7(0x207)](AUTH_MODE[_0x9a36d7(0x20d)]+'\x20(accessKey)')),console[_0x9a36d7(0x226)](_0x9a36d7(0x25b)+a32_0x2f0791['gray']('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x9a36d7(0x226)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1164cd){const _0x3cbf6d=a32_0x2664;if(_0x1164cd[_0x3cbf6d(0x253)]==='ok')return a32_0x2f0791[_0x3cbf6d(0x207)](_0x3cbf6d(0x25a));if(_0x1164cd[_0x3cbf6d(0x253)]===_0x3cbf6d(0x236))return a32_0x2f0791[_0x3cbf6d(0x1f2)](_0x3cbf6d(0x212));if(_0x1164cd[_0x3cbf6d(0x253)]===_0x3cbf6d(0x231))return a32_0x2f0791['yellow'](_0x3cbf6d(0x246));return a32_0x2f0791[_0x3cbf6d(0x24e)](_0x3cbf6d(0x1f0)+(_0x1164cd[_0x3cbf6d(0x1f6)]?':\x20'+_0x1164cd[_0x3cbf6d(0x1f6)]:''));}export const doctorDefinition={'service':a32_0x3ec301(0x256),'command':'check','description':a32_0x3ec301(0x250),'risk':a32_0x3ec301(0x238),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x4c780a=a32_0x550e;(function(_0xb92347,_0x37b126){const _0x5645ad=a32_0x550e,_0x544c63=_0xb92347();while(!![]){try{const _0x3ff0f2=-parseInt(_0x5645ad(0x102))/0x1+-parseInt(_0x5645ad(0x110))/0x2*(parseInt(_0x5645ad(0x134))/0x3)+-parseInt(_0x5645ad(0x13e))/0x4*(parseInt(_0x5645ad(0x143))/0x5)+-parseInt(_0x5645ad(0xfd))/0x6+parseInt(_0x5645ad(0x124))/0x7+-parseInt(_0x5645ad(0x121))/0x8*(parseInt(_0x5645ad(0xfe))/0x9)+-parseInt(_0x5645ad(0x104))/0xa*(-parseInt(_0x5645ad(0xcf))/0xb);if(_0x3ff0f2===_0x37b126)break;else _0x544c63['push'](_0x544c63['shift']());}catch(_0x8b5994){_0x544c63['push'](_0x544c63['shift']());}}}(a32_0x1c2d,0x697d7));import a32_0x652e18 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x1c2d(){const _0x46a3e5=['\x20\x20Skill\x20Version:\x20\x20\x20','✓\x20current','\x20\x20Installed\x20Path:\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','padEnd','red','(set,\x20length=','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','installedPath','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20(accessKey)','message','join','yellow','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','state','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Config\x20Files','\x20\x20Repair\x20project:\x20\x20','status','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','(invalid)','project','gray','appCode','locale','\x20config\x20delete\x20region','\x20\x20Service\x20Tree','globalConfig','✗\x20Invalid','⚠\x20Empty\x20(treated\x20as\x20{})','doctor','4823226lSdjBT','18wfGMpD','not\x20configured','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','prototype','764787cUsINb','ClientAk','30593180zWjbdk','\x20\x20skillDomain:\x20\x20\x20\x20\x20','includes','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','packageVersion','\x20config\x20init','green','(none)','\x20\x20auth\x20(effective):\x20','(unnamed)','accessKey','61144ghJzCl','log','Project','(missing)','hasOwnProperty','✗\x20Invalid\x20JSON','\x20\x20Package\x20Version:\x20','length','check','reason','✓\x20Valid\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20Routing\x20Configuration','\x20\x20Country/Region\x20Configuration','2965624vvKvaW','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','4121145FgViTt','✓\x20Loaded','currentApp','repairCommand','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Merged\x20Config','routing','inherit','read','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','pageSize','format','⚠\x20Empty','81nuriis','\x20config\x20delete\x20routing\x20--global','region','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','verbose','\x20doctor','\x20commands)','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','56kutgZv','defaultApp','global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','raw','28735WCqEio','serviceCount','call','\x20\x20─','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Built-in\x20Skill','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20config\x20delete\x20routing','platform','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','11JkuXkJ','projectConfig','Global','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config\x20delete\x20inherit'];a32_0x1c2d=function(){return _0x46a3e5;};return a32_0x1c2d();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x550e(_0x3b5c58,_0x47abf6){_0x3b5c58=_0x3b5c58-0xc6;const _0x1c2d4a=a32_0x1c2d();let _0x550e0a=_0x1c2d4a[_0x3b5c58];return _0x550e0a;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x4f19a9){const _0xc14250=a32_0x550e,_0x15a815=getCliVersion(),_0x4cfd30=buildConfigFromFlags({});let _0x196d4f,_0x2c6f3c;try{_0x196d4f=normalizeLovrabetRegion(_0x4cfd30[_0xc14250(0x142)][_0xc14250(0x136)]);}catch(_0x21ecc9){_0x2c6f3c=_0x21ecc9 instanceof Error?_0x21ecc9:new Error(String(_0x21ecc9));}let _0x2c5676;if(!_0x2c6f3c)try{await initGlobalEnvironment(_0x4cfd30);}catch(_0x337e80){_0x2c5676=_0x337e80 instanceof Error?_0x337e80:new Error(String(_0x337e80));}console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](CLI_BIN_NAME+_0xc14250(0x13a))),console[_0xc14250(0x111)](a32_0x652e18['gray']('─'[_0xc14250(0xca)](0x32))),console[_0xc14250(0x111)](_0xc14250(0xf0)+_0x15a815),console[_0xc14250(0x111)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0xc14250(0x111)](_0xc14250(0x141)+process[_0xc14250(0xcc)]+'\x20'+process[_0xc14250(0xe4)]);const _0x58e179=inspectBuiltinSkill();console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0xc8))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console['log'](_0xc14250(0x122)+(_0x58e179[_0xc14250(0xeb)]===_0xc14250(0x138)?a32_0x652e18['green'](_0xc14250(0xd5)):a32_0x652e18[_0xc14250(0xdb)]('✗\x20'+_0x58e179['state']))),console[_0xc14250(0x111)](_0xc14250(0x116)+_0x58e179[_0xc14250(0x109)]),console['log'](_0xc14250(0xd4)+(_0x58e179[_0xc14250(0x130)]||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x113)))),console['log'](_0xc14250(0xd6)+(_0x58e179[_0xc14250(0xdf)]||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0xc6))));_0x58e179['state']!==_0xc14250(0x138)&&console[_0xc14250(0x111)](_0xc14250(0xe0)+_0x58e179[_0xc14250(0x127)]);_0x58e179[_0xc14250(0x119)]&&console[_0xc14250(0x111)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58e179[_0xc14250(0x119)]);console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0xed))),console[_0xc14250(0x111)](a32_0x652e18['gray']('\x20\x20─'[_0xc14250(0xca)](0x1e)));const _0x356207=getGlobalConfigPath(),_0xab441b=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x356207||a32_0x652e18[_0xc14250(0xf4)]('(not\x20found)'))),console['log'](_0xc14250(0x12f)+(_0xab441b||a32_0x652e18['gray']('(not\x20found)'))),console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xf1))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e)));const _0x4e8ed9=(_0x35517f,_0x4e2e48)=>{const _0x1c348d=_0xc14250;if(!_0x4e2e48){console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['gray'](_0x1c348d(0xea)));return;}const _0x1826f8=inspectCliConfigJsonFile(_0x4e2e48);if(_0x1826f8[_0x1c348d(0xef)]==='ok')console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['green'](_0x1c348d(0x11a)));else{if(_0x1826f8[_0x1c348d(0xef)]==='empty')console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xe8)](_0x1c348d(0xfb)));else _0x1826f8[_0x1c348d(0xef)]===_0x1c348d(0x123)?console[_0x1c348d(0x111)]('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['gray'](_0x1c348d(0x113))):(console[_0x1c348d(0x111)]('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xdb)](_0x1c348d(0x115))),console[_0x1c348d(0x111)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xdb)](_0x1826f8[_0x1c348d(0xe6)])));}};_0x4e8ed9(_0xc14250(0xd1),_0x356207),_0x4e8ed9(_0xc14250(0x112),_0xab441b);const _0x19c69f=loadRawConfigLayers(),_0x40ac39=[Object['prototype']['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xf9)],_0xc14250(0x12d))?_0xc14250(0x140):null,Object[_0xc14250(0x101)]['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xd0)],_0xc14250(0x12d))?_0xc14250(0xf3):null]['filter'](Boolean);_0x40ac39[_0xc14250(0x117)]>0x0&&(console[_0xc14250(0x111)](_0xc14250(0x11b)+a32_0x652e18[_0xc14250(0xe8)](_0xc14250(0x12a)+_0x40ac39[_0xc14250(0xe7)]('\x20+\x20')+'\x20config')),_0x40ac39[_0xc14250(0x106)](_0xc14250(0xf3))&&console[_0xc14250(0x111)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0xc14250(0xd3)),_0x40ac39[_0xc14250(0x106)](_0xc14250(0x140))&&console[_0xc14250(0x111)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x2c5676&&(console['log'](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0x11f))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console[_0xc14250(0x111)](_0xc14250(0xcd)+a32_0x652e18['red'](_0xc14250(0xfa))),console[_0xc14250(0x111)](_0xc14250(0x107)+_0x2c5676['message']),Object['prototype']['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xd0)],_0xc14250(0x12c))&&console[_0xc14250(0x111)](_0xc14250(0xee)+CLI_BIN_NAME+_0xc14250(0xcb)),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f['globalConfig'],'routing')&&console[_0xc14250(0x111)](_0xc14250(0x13c)+CLI_BIN_NAME+_0xc14250(0x135)));_0x2c6f3c&&(console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0x120))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console[_0xc14250(0x111)](_0xc14250(0xcd)+a32_0x652e18[_0xc14250(0xdb)](_0xc14250(0xfa))),console['log'](_0xc14250(0x107)+_0x2c6f3c['message']),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f['projectConfig'],'region')&&console['log'](_0xc14250(0xee)+CLI_BIN_NAME+_0xc14250(0xf7)),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xf9)],_0xc14250(0x136))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0xc14250(0x10a)));console['log'](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0x12b))),console['log'](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console['log'](_0xc14250(0xe2)+(_0x4cfd30[_0xc14250(0xf5)]||a32_0x652e18[_0xc14250(0xdb)]('(not\x20set)'))),console[_0xc14250(0x111)](_0xc14250(0xd8)+(_0x196d4f??a32_0x652e18[_0xc14250(0xdb)](_0xc14250(0xf2)))),console['log'](_0xc14250(0xdd)+_0x4cfd30[_0xc14250(0xf6)]),console[_0xc14250(0x111)](_0xc14250(0xd7)+(_0x4cfd30[_0xc14250(0x13f)]||a32_0x652e18['gray'](_0xc14250(0x10c)))),console[_0xc14250(0x111)](_0xc14250(0x100)+(_0x4cfd30[_0xc14250(0x126)]||a32_0x652e18['gray']('(none)'))),console[_0xc14250(0x111)](_0xc14250(0x137)+(_0x4cfd30[_0xc14250(0x132)]||a32_0x652e18[_0xc14250(0xf4)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0xc14250(0x132)]+')'))),console[_0xc14250(0x111)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4cfd30[_0xc14250(0x131)]??a32_0x652e18['gray']('(default)'))),console['log'](_0xc14250(0xe9)+_0x4cfd30['riskLevel']),console[_0xc14250(0x111)](_0xc14250(0x129)+_0x4cfd30[_0xc14250(0x139)]),console['log'](_0xc14250(0x10d)+AUTH_MODE[_0xc14250(0x103)]),console['log'](_0xc14250(0x147)+(_0x4cfd30[_0xc14250(0x10f)]?a32_0x652e18[_0xc14250(0x10b)](_0xc14250(0xdc)+_0x4cfd30[_0xc14250(0x10f)]['length']+')'):a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x10c)))),console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)]('\x20\x20API\x20Endpoints')),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)]('\x20\x20─'[_0xc14250(0xca)](0x1e)));_0x2c5676||_0x2c6f3c?console[_0xc14250(0x111)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x652e18['red'](_0xc14250(0xd2))):(console[_0xc14250(0x111)](_0xc14250(0xde)+getApiDomain()),console[_0xc14250(0x111)](_0xc14250(0x148)+getUserDomain()),console[_0xc14250(0x111)](_0xc14250(0x13d)+getRuntimeDomain()),console[_0xc14250(0x111)](_0xc14250(0x105)+getSkillDomain()),console[_0xc14250(0x111)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0xc14250(0xff))));console[_0xc14250(0x111)](),console['log'](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xf8))),console['log'](a32_0x652e18[_0xc14250(0xf4)]('\x20\x20─'[_0xc14250(0xca)](0x1e)));const _0x388b38=inspectServiceRegistry();console[_0xc14250(0x111)](_0xc14250(0x11c)+_0x388b38['registryPath']),console[_0xc14250(0x111)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x388b38)),console[_0xc14250(0x111)](_0xc14250(0xc9)+_0x388b38[_0xc14250(0x144)]),console['log'](_0xc14250(0x11d)+_0x388b38[_0xc14250(0xce)]);for(const _0x361a96 of _0x388b38[_0xc14250(0xe1)]){console[_0xc14250(0x111)]('\x20\x20'+(_0x361a96['serviceCode']+':')[_0xc14250(0xda)](0x11)+'\x20'+(_0x361a96['name']||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x10e)))+'\x20('+_0x361a96[_0xc14250(0xce)]+_0xc14250(0x13b)),console[_0xc14250(0x111)]('\x20\x20'+''[_0xc14250(0xda)](0x11)+_0xc14250(0x108)+_0x361a96['source']['path']);}return console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xd9))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)['repeat'](0x1e))),console['log'](_0xc14250(0xe3)+a32_0x652e18[_0xc14250(0x10b)](AUTH_MODE[_0xc14250(0x103)]+_0xc14250(0xe5))),console[_0xc14250(0x111)](_0xc14250(0xc7)+a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0xec))),console[_0xc14250(0x111)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x2e00f5){const _0x9136e3=a32_0x550e;if(_0x2e00f5['status']==='ok')return a32_0x652e18[_0x9136e3(0x10b)](_0x9136e3(0x125));if(_0x2e00f5['status']===_0x9136e3(0x123))return a32_0x652e18[_0x9136e3(0xf4)]('(not\x20found)');if(_0x2e00f5[_0x9136e3(0xef)]==='empty')return a32_0x652e18[_0x9136e3(0xe8)](_0x9136e3(0x133));return a32_0x652e18[_0x9136e3(0xdb)](_0x9136e3(0xfa)+(_0x2e00f5['message']?':\x20'+_0x2e00f5[_0x9136e3(0xe6)]:''));}export const doctorDefinition={'service':a32_0x4c780a(0xfc),'command':a32_0x4c780a(0x118),'description':a32_0x4c780a(0x128),'risk':a32_0x4c780a(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a33_0x1704(_0x4b3de2,_0x231171){_0x4b3de2=_0x4b3de2-0xed;const _0x2d9fd8=a33_0x2d9f();let _0x1704f1=_0x2d9fd8[_0x4b3de2];return _0x1704f1;}const a33_0x15c836=a33_0x1704;(function(_0x2f8fed,_0x48c1fd){const _0x30292b=a33_0x1704,_0x4a218e=_0x2f8fed();while(!![]){try{const _0x516fec=parseInt(_0x30292b(0xff))/0x1+-parseInt(_0x30292b(0xfe))/0x2+parseInt(_0x30292b(0x109))/0x3*(parseInt(_0x30292b(0x112))/0x4)+-parseInt(_0x30292b(0x10c))/0x5*(parseInt(_0x30292b(0x113))/0x6)+parseInt(_0x30292b(0xf0))/0x7*(-parseInt(_0x30292b(0x110))/0x8)+-parseInt(_0x30292b(0x103))/0x9*(-parseInt(_0x30292b(0xf6))/0xa)+-parseInt(_0x30292b(0x10e))/0xb;if(_0x516fec===_0x48c1fd)break;else _0x4a218e['push'](_0x4a218e['shift']());}catch(_0x2d443a){_0x4a218e['push'](_0x4a218e['shift']());}}}(a33_0x2d9f,0x34cf9));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x15c836(0xf8),'type':a33_0x15c836(0xf3),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x15c836(0xf3),'required':!![],'description':a33_0x15c836(0xfc)},DOWNLOAD_FLAG={'name':a33_0x15c836(0x10a),'type':a33_0x15c836(0xf4),'description':a33_0x15c836(0xef)},LONG_TERM_FLAG={'name':a33_0x15c836(0x106),'type':a33_0x15c836(0xf4),'description':a33_0x15c836(0x10d)};function requireFilePath(_0x4c06ee){const _0x3e3410=a33_0x15c836,_0x368128=_0x4c06ee[_0x3e3410(0xfb)]();if(!_0x368128)throw CliErrors[_0x3e3410(0x10f)](_0x3e3410(0xfa));return _0x368128;}function a33_0x2d9f(){const _0x1212c2=['12RoqMak','str','query-url','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','220759oAeELM','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Preview:\x20upload\x20','string','boolean','Uploaded\x20file:\x20','37670gJSQje','description','file','read','filePath\x20is\x20required.','trim','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','File','522520PlqUSY','400084SfJWTU','path','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','693WJfLuu','upload','/client/uploadFile','long-term','bool','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','219237bhdXow','download','body','823505HmrpNO','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','2387286dqRxZU','validation','8ZatpUZ','appCode','20hvQKvL'];a33_0x2d9f=function(){return _0x1212c2;};return a33_0x2d9f();}const fileUpload={'service':a33_0x15c836(0xf8),'command':a33_0x15c836(0x104),'description':a33_0x15c836(0x102),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x5953d3){const _0x23839a=a33_0x15c836,_0x1899c3=requireRuntimeUploadFile(_0x5953d3[_0x23839a(0xed)]('file'),_0x23839a(0xfd));return dryRun('POST',_0x23839a(0x105))[_0x23839a(0x10b)]({'appCode':_0x5953d3[_0x23839a(0x111)],'multipart':{'file':_0x1899c3}})[_0x23839a(0xf7)](_0x23839a(0xf2)+_0x1899c3[_0x23839a(0x100)]+'\x20to\x20runtime\x20app\x20'+_0x5953d3[_0x23839a(0x111)])['build']();},async 'execute'(_0x17e9ba){const _0x240460=a33_0x15c836,_0x121e72=requireRuntimeUploadFile(_0x17e9ba[_0x240460(0xed)](_0x240460(0xf8)),_0x240460(0xfd)),_0x32b4be=await uploadRuntimeFile(_0x17e9ba[_0x240460(0x111)],_0x121e72[_0x240460(0x100)]);return{'ok':!![],'data':_0x32b4be,'message':_0x32b4be['filePath']?_0x240460(0xf5)+_0x32b4be['filePath']+_0x240460(0x108):_0x240460(0x101)};}},fileQueryUrl={'service':a33_0x15c836(0xf8),'command':a33_0x15c836(0xee),'description':a33_0x15c836(0xf1),'risk':a33_0x15c836(0xf9),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4d7ac4){const _0x5d0aa0=a33_0x15c836,_0x5586f2=requireFilePath(_0x4d7ac4[_0x5d0aa0(0xed)]('filepath')),_0xcdf627=await queryRuntimeFileUrl(_0x5586f2,{'download':_0x4d7ac4[_0x5d0aa0(0x107)](_0x5d0aa0(0x10a)),'longTerm':_0x4d7ac4[_0x5d0aa0(0x107)](_0x5d0aa0(0x106))});return{'ok':!![],'data':_0xcdf627};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a33_0x29be(_0x2e9eba,_0x383b48){_0x2e9eba=_0x2e9eba-0x117;const _0x57f1b0=a33_0x57f1();let _0x29be3b=_0x57f1b0[_0x2e9eba];return _0x29be3b;}const a33_0x8df78b=a33_0x29be;(function(_0x2e4137,_0x502f60){const _0x11d994=a33_0x29be,_0x2556e4=_0x2e4137();while(!![]){try{const _0x480597=parseInt(_0x11d994(0x11b))/0x1*(parseInt(_0x11d994(0x11e))/0x2)+-parseInt(_0x11d994(0x122))/0x3*(-parseInt(_0x11d994(0x119))/0x4)+-parseInt(_0x11d994(0x12a))/0x5*(-parseInt(_0x11d994(0x11d))/0x6)+parseInt(_0x11d994(0x141))/0x7*(-parseInt(_0x11d994(0x13f))/0x8)+parseInt(_0x11d994(0x120))/0x9*(parseInt(_0x11d994(0x13a))/0xa)+-parseInt(_0x11d994(0x12d))/0xb+-parseInt(_0x11d994(0x11f))/0xc;if(_0x480597===_0x502f60)break;else _0x2556e4['push'](_0x2556e4['shift']());}catch(_0x16a00e){_0x2556e4['push'](_0x2556e4['shift']());}}}(a33_0x57f1,0x1d003));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a33_0x8df78b(0x132),'required':!![],'description':a33_0x8df78b(0x12e)},FILEPATH_FLAG={'name':'filepath','type':a33_0x8df78b(0x132),'required':!![],'description':a33_0x8df78b(0x129)},DOWNLOAD_FLAG={'name':a33_0x8df78b(0x143),'type':a33_0x8df78b(0x127),'description':a33_0x8df78b(0x117)},LONG_TERM_FLAG={'name':a33_0x8df78b(0x13e),'type':a33_0x8df78b(0x127),'description':a33_0x8df78b(0x138)};function requireFilePath(_0x29be52){const _0x38890c=a33_0x8df78b,_0x3dd584=_0x29be52[_0x38890c(0x13c)]();if(!_0x3dd584)throw CliErrors[_0x38890c(0x128)](_0x38890c(0x136));return _0x3dd584;}function a33_0x57f1(){const _0x598394=['boolean','validation','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','199415ufFQhP','upload','str','908754AaXzBQ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','\x20to\x20runtime\x20app\x20','file','read','string','query-url','build','bool','filePath\x20is\x20required.','POST','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','65050aDqmNO','Uploaded\x20file:\x20','trim','path','long-term','24hQIeEc','filepath','269654Ycrmpy','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath','12MEluHu','appCode','2969gDQbSz','description','18abTiou','138XhGBDU','1277088EAqmtb','9YbYMPi','/client/uploadFile','92376ifYnZB','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File'];a33_0x57f1=function(){return _0x598394;};return a33_0x57f1();}const fileUpload={'service':a33_0x8df78b(0x130),'command':a33_0x8df78b(0x12b),'description':a33_0x8df78b(0x142),'risk':a33_0x8df78b(0x131),'flags':[FILE_FLAG],async 'dryRun'(_0x1fef6d){const _0x41c271=a33_0x8df78b,_0x15f70a=requireRuntimeUploadFile(_0x1fef6d[_0x41c271(0x12c)](_0x41c271(0x130)),'File');return dryRun(_0x41c271(0x137),_0x41c271(0x121))['body']({'appCode':_0x1fef6d[_0x41c271(0x11a)],'multipart':{'file':_0x15f70a}})[_0x41c271(0x11c)](_0x41c271(0x124)+_0x15f70a['path']+_0x41c271(0x12f)+_0x1fef6d[_0x41c271(0x11a)])[_0x41c271(0x134)]();},async 'execute'(_0x27f147){const _0x2076ef=a33_0x8df78b,_0x554466=requireRuntimeUploadFile(_0x27f147[_0x2076ef(0x12c)]('file'),_0x2076ef(0x126)),_0x30d67c=await uploadRuntimeFile(_0x27f147['appCode'],_0x554466[_0x2076ef(0x13d)]);return{'ok':!![],'data':_0x30d67c,'message':_0x30d67c['filePath']?_0x2076ef(0x13b)+_0x30d67c[_0x2076ef(0x118)]+_0x2076ef(0x125):_0x2076ef(0x123)};}},fileQueryUrl={'service':a33_0x8df78b(0x130),'command':a33_0x8df78b(0x133),'description':a33_0x8df78b(0x139),'risk':a33_0x8df78b(0x131),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4a860b){const _0xc2dd52=a33_0x8df78b,_0x549224=requireFilePath(_0x4a860b['str'](_0xc2dd52(0x140))),_0x58d507=await queryRuntimeFileUrl(_0x549224,{'download':_0x4a860b[_0xc2dd52(0x135)](_0xc2dd52(0x143)),'longTerm':_0x4a860b[_0xc2dd52(0x135)]('long-term')});return{'ok':!![],'data':_0x58d507};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x21e360=a34_0x27d8;(function(_0x3205a3,_0x28f0cc){const _0x3fe4f6=a34_0x27d8,_0x246fcd=_0x3205a3();while(!![]){try{const _0xe79c6b=-parseInt(_0x3fe4f6(0x170))/0x1+-parseInt(_0x3fe4f6(0x186))/0x2*(-parseInt(_0x3fe4f6(0x168))/0x3)+parseInt(_0x3fe4f6(0x163))/0x4*(-parseInt(_0x3fe4f6(0x173))/0x5)+parseInt(_0x3fe4f6(0x188))/0x6+-parseInt(_0x3fe4f6(0x171))/0x7*(parseInt(_0x3fe4f6(0x177))/0x8)+parseInt(_0x3fe4f6(0x17f))/0x9*(parseInt(_0x3fe4f6(0x17e))/0xa)+parseInt(_0x3fe4f6(0x169))/0xb*(parseInt(_0x3fe4f6(0x176))/0xc);if(_0xe79c6b===_0x28f0cc)break;else _0x246fcd['push'](_0x246fcd['shift']());}catch(_0x35ffed){_0x246fcd['push'](_0x246fcd['shift']());}}}(a34_0xb93c,0x45b59));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a34_0x27d8(_0x4bf73f,_0x55570b){_0x4bf73f=_0x4bf73f-0x15f;const _0xb93cd9=a34_0xb93c();let _0x27d85c=_0xb93cd9[_0x4bf73f];return _0x27d85c;}import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a34_0x21e360(0x181),'description':a34_0x21e360(0x184),'required':!![]},{'name':a34_0x21e360(0x17a),'type':a34_0x21e360(0x181),'description':a34_0x21e360(0x16c)},{'name':'env','type':a34_0x21e360(0x181),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x21e360(0x182),'type':a34_0x21e360(0x17d),'description':a34_0x21e360(0x183)+PRODUCT_CONFIG[a34_0x21e360(0x17b)]+')\x20instead\x20of\x20project','default':![]},{'name':a34_0x21e360(0x16a),'type':a34_0x21e360(0x17d),'description':a34_0x21e360(0x16e),'default':![]}];export async function runAppImport(_0x401c45){const _0x3cf87c=a34_0x21e360,_0x27e50b=_0x401c45[_0x3cf87c(0x182)]?'global':'project',_0x17dacf=resolveWriteConfigPath(_0x27e50b);await runFromImport(_0x401c45,_0x17dacf);}async function runFromImport(_0x291abb,_0x31ae56){const _0x205ff2=a34_0x21e360,_0x39e026=resolveFilePath(_0x291abb['file']);if(!existsSync(_0x39e026))throw CliErrors[_0x205ff2(0x179)](_0x205ff2(0x167)+_0x39e026);const _0x58e12b=readSourceFile(_0x39e026),_0x5aa0e7=convertToRuntimeConfig(_0x58e12b);_0x291abb[_0x205ff2(0x17a)]&&(_0x5aa0e7[_0x205ff2(0x17a)]=String(_0x291abb[_0x205ff2(0x17a)]));_0x291abb['env']&&(_0x5aa0e7[_0x205ff2(0x185)]=resolveImportEnv(_0x291abb));if(!_0x5aa0e7[_0x205ff2(0x17a)])throw CliErrors[_0x205ff2(0x179)](_0x205ff2(0x189),_0x205ff2(0x165));await writeImportConfig(_0x31ae56,_0x5aa0e7,_0x291abb),console['log']('Imported\x20from\x20'+_0x39e026),console[_0x205ff2(0x17c)](_0x205ff2(0x160)+_0x31ae56),console[_0x205ff2(0x17c)](_0x205ff2(0x164)+_0x5aa0e7[_0x205ff2(0x17a)]);if(_0x5aa0e7[_0x205ff2(0x180)])console[_0x205ff2(0x17c)](_0x205ff2(0x178)+_0x5aa0e7['defaultApp']);}function convertToRuntimeConfig(_0x436a34){const _0x3335ec=a34_0x21e360;if(_0x436a34[_0x3335ec(0x172)]&&typeof _0x436a34[_0x3335ec(0x172)]==='object')throw CliErrors[_0x3335ec(0x179)](_0x3335ec(0x175),_0x3335ec(0x16b));const _0x27f91e={};for(const _0x397f1c of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x436a34[_0x397f1c]!==undefined&&(_0x27f91e[_0x397f1c]=_0x436a34[_0x397f1c]);}return!_0x27f91e['riskLevel']&&(_0x27f91e[_0x3335ec(0x174)]=DEFAULT_CONFIG_VALUES[_0x3335ec(0x174)]),_0x27f91e;}async function writeImportConfig(_0x88615e,_0x305ad3,_0x3e2b9c){const _0x57d5b2=a34_0x21e360;let _0x4d1fbd={};existsSync(_0x88615e)&&!_0x3e2b9c[_0x57d5b2(0x16a)]&&(_0x4d1fbd=readConfigFile(_0x88615e));for(const [_0x4e822b,_0x542e3f]of Object['entries'](_0x305ad3)){_0x542e3f!==undefined&&(_0x4d1fbd[_0x4e822b]=_0x542e3f);}if(_0x4d1fbd[_0x57d5b2(0x166)])delete _0x4d1fbd[_0x57d5b2(0x166)];writeConfigFile(_0x88615e,_0x4d1fbd);}function a34_0xb93c(){const _0x9c1147=['Skip\x20confirmation\x20when\x20overwriting','parse','479506QHjBmt','14xkGaNq','apps','115KFqrRm','riskLevel','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','24GOkHrz','397976HfMHVm','\x20\x20default:\x20','validation','appcode','newConfigFileName','log','boolean','30OZHrAM','798534hAdZZq','defaultApp','string','global','Write\x20to\x20global\x20(~/','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','env','326460uBAnhk','join','2210826tGuCYt','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','utf8','\x20\x20config:\x20\x20','cwd','Invalid\x20env\x20\x22','51448mDjmRJ','\x20\x20appcode:\x20','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`.','app','Source\x20file\x20not\x20found:\x20','3pEjmxZ','1993618hSOpWT','yes','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Override\x20imported\x20default\x20appcode','includes'];a34_0xb93c=function(){return _0x9c1147;};return a34_0xb93c();}function resolveFilePath(_0x5a692e){const _0x4631cf=a34_0x21e360;return isAbsolute(_0x5a692e)?_0x5a692e:resolve(process[_0x4631cf(0x161)](),_0x5a692e);}function readSourceFile(_0x4d8b83){const _0x527261=a34_0x21e360;try{const _0x5e3373=readFileSync(_0x4d8b83,{'encoding':_0x527261(0x15f)});return JSON[_0x527261(0x16f)](_0x5e3373);}catch(_0x4c53f9){throw CliErrors[_0x527261(0x179)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x4c53f9['message']);}}function resolveImportEnv(_0x1cb679){const _0x841cc3=a34_0x21e360,_0x162c88=_0x1cb679[_0x841cc3(0x185)];if(_0x162c88===undefined||_0x162c88==='')return DEFAULT_CONFIG_VALUES[_0x841cc3(0x185)];if(!RUNTIME_ENV_VALUES[_0x841cc3(0x16d)](_0x162c88))throw CliErrors['validation'](_0x841cc3(0x162)+_0x162c88+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x841cc3(0x187)](',\x20'));return _0x162c88;}
1
+ const a34_0x57d871=a34_0x40da;(function(_0x806bc1,_0xb9d915){const _0x274b8d=a34_0x40da,_0x6d6492=_0x806bc1();while(!![]){try{const _0xbd65ae=-parseInt(_0x274b8d(0x85))/0x1+parseInt(_0x274b8d(0x8c))/0x2+parseInt(_0x274b8d(0x81))/0x3+parseInt(_0x274b8d(0xa1))/0x4*(parseInt(_0x274b8d(0x94))/0x5)+parseInt(_0x274b8d(0x98))/0x6*(-parseInt(_0x274b8d(0x7d))/0x7)+-parseInt(_0x274b8d(0x83))/0x8*(parseInt(_0x274b8d(0x87))/0x9)+-parseInt(_0x274b8d(0x92))/0xa*(-parseInt(_0x274b8d(0x7a))/0xb);if(_0xbd65ae===_0xb9d915)break;else _0x6d6492['push'](_0x6d6492['shift']());}catch(_0xed66d8){_0x6d6492['push'](_0x6d6492['shift']());}}}(a34_0x3038,0xf2b0e));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x57d871(0x9a),'type':'string','description':a34_0x57d871(0x8e),'required':!![]},{'name':'appcode','type':a34_0x57d871(0x7b),'description':a34_0x57d871(0x8b)},{'name':a34_0x57d871(0x97),'type':a34_0x57d871(0x7b),'description':a34_0x57d871(0x7c),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x57d871(0x95),'type':a34_0x57d871(0x89),'description':a34_0x57d871(0x80)+PRODUCT_CONFIG['newConfigFileName']+a34_0x57d871(0x91),'default':![]},{'name':a34_0x57d871(0x96),'type':a34_0x57d871(0x89),'description':a34_0x57d871(0x9e),'default':![]}];export async function runAppImport(_0x453c88){const _0x10296e=a34_0x57d871,_0x13fa47=_0x453c88['global']?_0x10296e(0x95):_0x10296e(0x84),_0x3073d1=resolveWriteConfigPath(_0x13fa47);await runFromImport(_0x453c88,_0x3073d1);}async function runFromImport(_0x8247b5,_0x13ff1f){const _0x5da791=a34_0x57d871,_0x5d58b8=resolveFilePath(_0x8247b5[_0x5da791(0x9a)]);if(!existsSync(_0x5d58b8))throw CliErrors[_0x5da791(0x9b)](_0x5da791(0x93)+_0x5d58b8);const _0x2f580a=readSourceFile(_0x5d58b8),_0x39d518=convertToRuntimeConfig(_0x2f580a);_0x8247b5[_0x5da791(0x90)]&&(_0x39d518[_0x5da791(0x90)]=String(_0x8247b5[_0x5da791(0x90)]));_0x8247b5[_0x5da791(0x97)]&&(_0x39d518[_0x5da791(0x97)]=resolveImportEnv(_0x8247b5));if(!_0x39d518['appcode'])throw CliErrors[_0x5da791(0x9b)](_0x5da791(0x9d),_0x5da791(0x79));await writeImportConfig(_0x13ff1f,_0x39d518,_0x8247b5),console[_0x5da791(0x7f)](_0x5da791(0x9c)+_0x5d58b8),console['log']('\x20\x20config:\x20\x20'+_0x13ff1f),console['log'](_0x5da791(0x78)+_0x39d518['appcode']);if(_0x39d518[_0x5da791(0x82)])console[_0x5da791(0x7f)]('\x20\x20default:\x20'+_0x39d518['defaultApp']);}function a34_0x3038(){const _0x1a74a7=['1217648SzYTTm','object','6105033BJdCYG','entries','boolean','\x22.\x20Allowed:\x20','Override\x20imported\x20default\x20appcode','177220fgkGqg','riskLevel','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','parse','appcode',')\x20instead\x20of\x20project','3350KzcvfB','Source\x20file\x20not\x20found:\x20','1198095PLKWoM','global','yes','env','26538UjVTxv','apps','file','validation','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Skip\x20confirmation\x20when\x20overwriting','message','utf8','32fCasSm','\x20\x20appcode:\x20','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`.','56738qrflnO','string','Override\x20imported\x20default\x20env','1841PlrvVV','app','log','Write\x20to\x20global\x20(~/','2994423aMevdO','defaultApp','16pTWbnP','project'];a34_0x3038=function(){return _0x1a74a7;};return a34_0x3038();}function convertToRuntimeConfig(_0x517e85){const _0x164787=a34_0x57d871;if(_0x517e85[_0x164787(0x99)]&&typeof _0x517e85[_0x164787(0x99)]===_0x164787(0x86))throw CliErrors[_0x164787(0x9b)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x50ba43={};for(const _0x9be86 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x517e85[_0x9be86]!==undefined&&(_0x50ba43[_0x9be86]=_0x517e85[_0x9be86]);}return!_0x50ba43[_0x164787(0x8d)]&&(_0x50ba43[_0x164787(0x8d)]=DEFAULT_CONFIG_VALUES[_0x164787(0x8d)]),_0x50ba43;}async function writeImportConfig(_0x47ca83,_0x4dd69c,_0x1fcc58){const _0x27e01f=a34_0x57d871;let _0xf6ca3={};existsSync(_0x47ca83)&&!_0x1fcc58[_0x27e01f(0x96)]&&(_0xf6ca3=readConfigFile(_0x47ca83));for(const [_0x418135,_0x34a09a]of Object[_0x27e01f(0x88)](_0x4dd69c)){_0x34a09a!==undefined&&(_0xf6ca3[_0x418135]=_0x34a09a);}if(_0xf6ca3['app'])delete _0xf6ca3[_0x27e01f(0x7e)];writeConfigFile(_0x47ca83,_0xf6ca3);}function resolveFilePath(_0x42dded){return isAbsolute(_0x42dded)?_0x42dded:resolve(process['cwd'](),_0x42dded);}function readSourceFile(_0x179d45){const _0x5a89fd=a34_0x57d871;try{const _0xce1825=readFileSync(_0x179d45,{'encoding':_0x5a89fd(0xa0)});return JSON[_0x5a89fd(0x8f)](_0xce1825);}catch(_0x2c6b25){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x2c6b25[_0x5a89fd(0x9f)]);}}function a34_0x40da(_0x295b79,_0x3d4f3e){_0x295b79=_0x295b79-0x78;const _0x30389d=a34_0x3038();let _0x40da12=_0x30389d[_0x295b79];return _0x40da12;}function resolveImportEnv(_0x498d40){const _0x2e6603=a34_0x57d871,_0x1baa94=_0x498d40[_0x2e6603(0x97)];if(_0x1baa94===undefined||_0x1baa94==='')return DEFAULT_CONFIG_VALUES[_0x2e6603(0x97)];if(!RUNTIME_ENV_VALUES['includes'](_0x1baa94))throw CliErrors[_0x2e6603(0x9b)]('Invalid\x20env\x20\x22'+_0x1baa94+_0x2e6603(0x8a)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x1baa94;}
@@ -1 +1 @@
1
- const a35_0x29ff8c=a35_0x1754;(function(_0x3a3365,_0x324933){const _0x27dee9=a35_0x1754,_0x59ab15=_0x3a3365();while(!![]){try{const _0x40afd6=parseInt(_0x27dee9(0x138))/0x1*(-parseInt(_0x27dee9(0x136))/0x2)+parseInt(_0x27dee9(0x14f))/0x3+-parseInt(_0x27dee9(0x14e))/0x4+parseInt(_0x27dee9(0x126))/0x5+parseInt(_0x27dee9(0x151))/0x6+-parseInt(_0x27dee9(0x129))/0x7*(parseInt(_0x27dee9(0x119))/0x8)+-parseInt(_0x27dee9(0x11b))/0x9;if(_0x40afd6===_0x324933)break;else _0x59ab15['push'](_0x59ab15['shift']());}catch(_0x16d2b7){_0x59ab15['push'](_0x59ab15['shift']());}}}(a35_0xbd0e,0xc474d));import{existsSync,readFileSync,statSync}from'node:fs';function a35_0xbd0e(){const _0x1ae0c2=['update','File\x20not\x20found:\x20','userId','388616ObSFPn','Personal\x20knowledge-base\x20entry\x20title','2029644LICSfG','kb-service-url','ragErrorMessage','file','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','flag','Override\x20the\x20existing\x20entry\x20title','signal','create','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','title','3351090iCGIrF','description','body','42ziDaLh','string','Created\x20KB\x20entry\x20','version','trim','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','query','POST','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','search','Personal\x20knowledge-base\x20entry\x20ID','122NGICOu','num','7751pXEsoT','build','content','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','ragStatus','File\x20path\x20is\x20required.','list','bool','read','number','map','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','utf8','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','updateTime','length','str','accessKey','Search\x20query\x20is\x20required.','appCode','topk','1193504eDJIdU','4084368VjmDWL','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','367056XqIJLS','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','/client/knowledge-base/personal/','write','isFile','verbose','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','validation','scope'];a35_0xbd0e=function(){return _0x1ae0c2;};return a35_0xbd0e();}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';function a35_0x1754(_0x3c2470,_0x3c3ee4){_0x3c2470=_0x3c2470-0x118;const _0xbd0eb2=a35_0xbd0e();let _0x17543f=_0xbd0eb2[_0x3c2470];return _0x17543f;}const TITLE_FLAG={'name':a35_0x29ff8c(0x125),'type':a35_0x29ff8c(0x12a),'required':!![],'description':a35_0x29ff8c(0x11a)},FILE_FLAG={'name':a35_0x29ff8c(0x11e),'type':a35_0x29ff8c(0x12a),'required':!![],'description':a35_0x29ff8c(0x144)},QUERY_FLAG={'name':a35_0x29ff8c(0x131),'type':'string','required':!![],'description':a35_0x29ff8c(0x12f)},TOPK_FLAG={'name':a35_0x29ff8c(0x14d),'type':a35_0x29ff8c(0x142),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x38096f){const _0x3965db=a35_0x29ff8c;if(!_0x38096f)throw CliErrors[_0x3965db(0x158)](_0x3965db(0x13e));if(!existsSync(_0x38096f))throw CliErrors[_0x3965db(0x158)](_0x3965db(0x15b)+_0x38096f);if(!statSync(_0x38096f)[_0x3965db(0x155)]())throw CliErrors[_0x3965db(0x158)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x38096f);return readFileSync(_0x38096f,_0x3965db(0x145));}function summarizePersonalItem(_0x56364c){const _0x436838=a35_0x29ff8c;return{'id':_0x56364c['id'],'title':_0x56364c[_0x436838(0x125)],'version':_0x56364c['version'],'ragStatus':_0x56364c[_0x436838(0x13d)],'ragErrorMessage':_0x56364c['ragErrorMessage'],'updateTime':_0x56364c[_0x436838(0x147)]};}function detailPersonalItem(_0x10845e){const _0xe9da25=a35_0x29ff8c;return{'id':_0x10845e['id'],'appCode':_0x10845e['appCode'],'scope':_0x10845e[_0xe9da25(0x159)],'userId':_0x10845e[_0xe9da25(0x118)],'title':_0x10845e['title'],'content':_0x10845e[_0xe9da25(0x13a)]??'','version':_0x10845e[_0xe9da25(0x12c)],'ragStatus':_0x10845e[_0xe9da25(0x13d)],'ragErrorMessage':_0x10845e[_0xe9da25(0x11d)],'createTime':_0x10845e['createTime'],'updateTime':_0x10845e[_0xe9da25(0x147)]};}function readTopK(_0x548528){const _0x55be38=a35_0x29ff8c,_0x319337=_0x548528[_0x55be38(0x120)]('topk');if(_0x319337===undefined||_0x319337===null||_0x319337==='')return undefined;const _0x221345=_0x548528[_0x55be38(0x137)]('topk');if(!Number['isSafeInteger'](_0x221345)||_0x221345<0x1||_0x221345>0x32)throw CliErrors[_0x55be38(0x158)](_0x55be38(0x150));return _0x221345;}const kbList={'service':'kb','command':a35_0x29ff8c(0x13f),'description':a35_0x29ff8c(0x157),'risk':a35_0x29ff8c(0x141),'flags':[VERBOSE_FLAG],async 'execute'(_0x5a51c1){const _0x90e649=a35_0x29ff8c,_0x173a14=await listPersonalKnowledgeBaseItems(_0x5a51c1['appCode']);if(_0x5a51c1[_0x90e649(0x140)](_0x90e649(0x156)))return{'ok':!![],'data':{'total':_0x173a14[_0x90e649(0x148)],'items':_0x173a14}};return{'ok':!![],'data':{'total':_0x173a14[_0x90e649(0x148)],'items':_0x173a14[_0x90e649(0x143)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a35_0x29ff8c(0x146),'risk':'read','flags':[{...ID_FLAG,'description':a35_0x29ff8c(0x135)}],async 'execute'(_0x486e57){const _0x3dcfd4=a35_0x29ff8c,_0x418043=await getPersonalKnowledgeBaseItem(_0x486e57[_0x3dcfd4(0x137)]('id'),_0x486e57[_0x3dcfd4(0x14c)]);return{'ok':!![],'data':detailPersonalItem(_0x418043)};}},kbCreate={'service':'kb','command':a35_0x29ff8c(0x123),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x29ff8c(0x154),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x41cef5){const _0x3c3118=a35_0x29ff8c,_0x142c26=_0x41cef5[_0x3c3118(0x149)]('title'),_0x2d092a=readKnowledgeFile(_0x41cef5[_0x3c3118(0x149)](_0x3c3118(0x11e))),_0x36da17=await createPersonalKnowledgeBaseItem(_0x41cef5[_0x3c3118(0x14c)],{'title':_0x142c26,'content':_0x2d092a});return{'ok':!![],'data':summarizePersonalItem(_0x36da17),'message':_0x3c3118(0x12b)+_0x36da17['id']+'\x20('+_0x36da17[_0x3c3118(0x125)]+')'};},async 'dryRun'(_0xa24fb3){const _0x4e06d2=a35_0x29ff8c,_0x2f936c=_0xa24fb3[_0x4e06d2(0x149)](_0x4e06d2(0x125)),_0xf0041=readKnowledgeFile(_0xa24fb3['str'](_0x4e06d2(0x11e)));return dryRun(_0x4e06d2(0x132),'/client/knowledge-base/personal/create')[_0x4e06d2(0x128)]({'appCode':_0xa24fb3[_0x4e06d2(0x14c)],'title':_0x2f936c,'content':_0xf0041})[_0x4e06d2(0x127)](_0x4e06d2(0x13c)+_0x2f936c+'\x22')[_0x4e06d2(0x139)]();}},kbUpdate={'service':'kb','command':a35_0x29ff8c(0x15a),'description':a35_0x29ff8c(0x133),'risk':a35_0x29ff8c(0x154),'confirmationDescription':a35_0x29ff8c(0x152),'flags':[{...ID_FLAG,'description':a35_0x29ff8c(0x135)},{...TITLE_FLAG,'required':![],'description':a35_0x29ff8c(0x121)},FILE_FLAG],async 'execute'(_0x329143){const _0x47c2e1=a35_0x29ff8c,_0x2e8e44=_0x329143['num']('id'),_0x409a73=readKnowledgeFile(_0x329143['str']('file')),_0x446b87=_0x329143[_0x47c2e1(0x149)](_0x47c2e1(0x125))||(await getPersonalKnowledgeBaseItem(_0x2e8e44,_0x329143[_0x47c2e1(0x14c)]))[_0x47c2e1(0x125)],_0x429550=await updatePersonalKnowledgeBaseItem(_0x2e8e44,_0x329143['appCode'],{'title':_0x446b87,'content':_0x409a73});return{'ok':!![],'data':summarizePersonalItem(_0x429550),'message':'Updated\x20KB\x20entry\x20'+_0x429550['id']+'\x20('+_0x429550['title']+')'};},async 'dryRun'(_0x192a91){const _0x4ba1af=a35_0x29ff8c,_0x3902ea=_0x192a91[_0x4ba1af(0x137)]('id'),_0xef7863=readKnowledgeFile(_0x192a91[_0x4ba1af(0x149)](_0x4ba1af(0x11e))),_0x27b020=_0x192a91[_0x4ba1af(0x149)](_0x4ba1af(0x125))||(await getPersonalKnowledgeBaseItem(_0x3902ea,_0x192a91[_0x4ba1af(0x14c)]))[_0x4ba1af(0x125)];return dryRun('POST',_0x4ba1af(0x153)+_0x3902ea+'/update')[_0x4ba1af(0x128)]({'appCode':_0x192a91['appCode'],'title':_0x27b020,'content':_0xef7863})[_0x4ba1af(0x127)](_0x4ba1af(0x13b)+_0x3902ea)[_0x4ba1af(0x139)]();}};function readSearchServiceUrl(_0xfa914f){const _0x5d8c73=a35_0x29ff8c;if(_0xfa914f[_0x5d8c73(0x120)](_0x5d8c73(0x11c))!==undefined)return normalizeKbServiceOrigin(_0xfa914f[_0x5d8c73(0x149)](_0x5d8c73(0x11c)));const _0x35d79a=getKbServiceDomain();if(!_0x35d79a)throw CliErrors[_0x5d8c73(0x158)](_0x5d8c73(0x12e),_0x5d8c73(0x130));return normalizeKbServiceOrigin(_0x35d79a);}const kbSearch={'service':'kb','command':a35_0x29ff8c(0x134),'description':a35_0x29ff8c(0x11f),'risk':a35_0x29ff8c(0x141),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a35_0x29ff8c(0x12a),'required':![],'description':a35_0x29ff8c(0x124)}],async 'validate'(_0x4fada4){const _0x302745=a35_0x29ff8c;if(!_0x4fada4[_0x302745(0x149)](_0x302745(0x131))[_0x302745(0x12d)]())throw CliErrors[_0x302745(0x158)](_0x302745(0x14b));readTopK(_0x4fada4),readSearchServiceUrl(_0x4fada4);},async 'execute'(_0x380218){const _0x2f5f43=a35_0x29ff8c,_0x8090a1=_0x380218['str']('query')[_0x2f5f43(0x12d)](),_0x19a46a=readTopK(_0x380218),_0xaedc19=readSearchServiceUrl(_0x380218),_0xeadeb5={'appCode':_0x380218[_0x2f5f43(0x14c)],'accessKey':_0x380218[_0x2f5f43(0x14a)]??'','query':_0x8090a1,..._0x19a46a!==undefined?{'topK':_0x19a46a}:{},'signal':_0x380218[_0x2f5f43(0x122)]},_0x3f4f83=await searchDirectKnowledge({..._0xeadeb5,'serviceUrl':_0xaedc19});return{'ok':!![],'data':_0x3f4f83};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a35_0x26e6e7=a35_0xef24;(function(_0x84807,_0x195481){const _0x134271=a35_0xef24,_0x3cc3c0=_0x84807();while(!![]){try{const _0x7f06ce=-parseInt(_0x134271(0x21e))/0x1+parseInt(_0x134271(0x212))/0x2+-parseInt(_0x134271(0x1f4))/0x3+-parseInt(_0x134271(0x1fa))/0x4+-parseInt(_0x134271(0x20e))/0x5*(parseInt(_0x134271(0x207))/0x6)+parseInt(_0x134271(0x208))/0x7*(-parseInt(_0x134271(0x1f8))/0x8)+-parseInt(_0x134271(0x227))/0x9*(-parseInt(_0x134271(0x214))/0xa);if(_0x7f06ce===_0x195481)break;else _0x3cc3c0['push'](_0x3cc3c0['shift']());}catch(_0x30ad30){_0x3cc3c0['push'](_0x3cc3c0['shift']());}}}(a35_0x3eda,0xbcd05));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';function a35_0xef24(_0x1db970,_0x474d8a){_0x1db970=_0x1db970-0x1ef;const _0x3edabf=a35_0x3eda();let _0xef2467=_0x3edabf[_0x1db970];return _0xef2467;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x26e6e7(0x22a),'type':'string','required':!![],'description':a35_0x26e6e7(0x229)},FILE_FLAG={'name':'file','type':a35_0x26e6e7(0x1fe),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a35_0x26e6e7(0x203),'type':'string','required':!![],'description':a35_0x26e6e7(0x206)},TOPK_FLAG={'name':a35_0x26e6e7(0x224),'type':'number','description':a35_0x26e6e7(0x201)};function a35_0x3eda(){const _0x479c3a=['signal','File\x20not\x20found:\x20','validation','/update','flag','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','POST','2695875CiCRYY','Updated\x20KB\x20entry\x20','str','File\x20is\x20not\x20a\x20regular\x20file:\x20','784pqAMaX','search','2488604kfeJhP','read','body','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','string','file','appCode','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','query','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','create','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','591258GkuZDQ','85771GQuLlO','description','Personal\x20knowledge-base\x20entry\x20ID','num','updateTime','accessKey','75YagKKy','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Created\x20KB\x20entry\x20','Override\x20the\x20existing\x20entry\x20title','2708548vPCfLo','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','10wlEoDG','scope','update','version','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','list','/client/knowledge-base/personal/create','File\x20path\x20is\x20required.','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','userId','1513417FDSSXW','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Search\x20query\x20is\x20required.','trim','isFile','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','topk','write','createTime','46190151zPQpCI','/client/knowledge-base/personal/','Personal\x20knowledge-base\x20entry\x20title','title','ragStatus','kb-service-url','verbose','length','build'];a35_0x3eda=function(){return _0x479c3a;};return a35_0x3eda();}function readKnowledgeFile(_0x181224){const _0x362c85=a35_0x26e6e7;if(!_0x181224)throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x21b));if(!existsSync(_0x181224))throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x231)+_0x181224);if(!statSync(_0x181224)[_0x362c85(0x222)]())throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x1f7)+_0x181224);return readFileSync(_0x181224,'utf8');}function summarizePersonalItem(_0x377e22){const _0x244247=a35_0x26e6e7;return{'id':_0x377e22['id'],'title':_0x377e22[_0x244247(0x22a)],'version':_0x377e22[_0x244247(0x217)],'ragStatus':_0x377e22[_0x244247(0x22b)],'ragErrorMessage':_0x377e22['ragErrorMessage'],'updateTime':_0x377e22[_0x244247(0x20c)]};}function detailPersonalItem(_0x14ba73){const _0x295373=a35_0x26e6e7;return{'id':_0x14ba73['id'],'appCode':_0x14ba73['appCode'],'scope':_0x14ba73[_0x295373(0x215)],'userId':_0x14ba73[_0x295373(0x21d)],'title':_0x14ba73[_0x295373(0x22a)],'content':_0x14ba73['content']??'','version':_0x14ba73[_0x295373(0x217)],'ragStatus':_0x14ba73[_0x295373(0x22b)],'ragErrorMessage':_0x14ba73['ragErrorMessage'],'createTime':_0x14ba73[_0x295373(0x226)],'updateTime':_0x14ba73['updateTime']};}function readTopK(_0x2c1ce0){const _0x2a941e=a35_0x26e6e7,_0x2a758b=_0x2c1ce0[_0x2a941e(0x1f1)](_0x2a941e(0x224));if(_0x2a758b===undefined||_0x2a758b===null||_0x2a758b==='')return undefined;const _0x24e302=_0x2c1ce0['num'](_0x2a941e(0x224));if(!Number['isSafeInteger'](_0x24e302)||_0x24e302<0x1||_0x24e302>0x32)throw CliErrors[_0x2a941e(0x1ef)](_0x2a941e(0x213));return _0x24e302;}const kbList={'service':'kb','command':a35_0x26e6e7(0x219),'description':a35_0x26e6e7(0x20f),'risk':a35_0x26e6e7(0x1fb),'flags':[VERBOSE_FLAG],async 'execute'(_0x29b675){const _0x3b11f4=a35_0x26e6e7,_0x63de8b=await listPersonalKnowledgeBaseItems(_0x29b675[_0x3b11f4(0x200)]);if(_0x29b675['bool'](_0x3b11f4(0x22d)))return{'ok':!![],'data':{'total':_0x63de8b[_0x3b11f4(0x22e)],'items':_0x63de8b}};return{'ok':!![],'data':{'total':_0x63de8b[_0x3b11f4(0x22e)],'items':_0x63de8b['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a35_0x26e6e7(0x202),'risk':'read','flags':[{...ID_FLAG,'description':a35_0x26e6e7(0x20a)}],async 'execute'(_0x3bf98f){const _0x26c55b=a35_0x26e6e7,_0x130e57=await getPersonalKnowledgeBaseItem(_0x3bf98f[_0x26c55b(0x20b)]('id'),_0x3bf98f[_0x26c55b(0x200)]);return{'ok':!![],'data':detailPersonalItem(_0x130e57)};}},kbCreate={'service':'kb','command':a35_0x26e6e7(0x205),'description':a35_0x26e6e7(0x21f),'risk':a35_0x26e6e7(0x225),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x591e60){const _0x59bf32=a35_0x26e6e7,_0x2a05e7=_0x591e60['str'](_0x59bf32(0x22a)),_0x310903=readKnowledgeFile(_0x591e60[_0x59bf32(0x1f6)](_0x59bf32(0x1ff))),_0xd2ab0=await createPersonalKnowledgeBaseItem(_0x591e60[_0x59bf32(0x200)],{'title':_0x2a05e7,'content':_0x310903});return{'ok':!![],'data':summarizePersonalItem(_0xd2ab0),'message':_0x59bf32(0x210)+_0xd2ab0['id']+'\x20('+_0xd2ab0[_0x59bf32(0x22a)]+')'};},async 'dryRun'(_0xd59cea){const _0x312495=a35_0x26e6e7,_0x3ce749=_0xd59cea[_0x312495(0x1f6)](_0x312495(0x22a)),_0x271869=readKnowledgeFile(_0xd59cea[_0x312495(0x1f6)]('file'));return dryRun(_0x312495(0x1f3),_0x312495(0x21a))['body']({'appCode':_0xd59cea[_0x312495(0x200)],'title':_0x3ce749,'content':_0x271869})[_0x312495(0x209)](_0x312495(0x204)+_0x3ce749+'\x22')[_0x312495(0x22f)]();}},kbUpdate={'service':'kb','command':a35_0x26e6e7(0x216),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x26e6e7(0x225),'confirmationDescription':a35_0x26e6e7(0x1fd),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a35_0x26e6e7(0x211)},FILE_FLAG],async 'execute'(_0x283858){const _0x536308=a35_0x26e6e7,_0x1f9aff=_0x283858[_0x536308(0x20b)]('id'),_0x27e2=readKnowledgeFile(_0x283858[_0x536308(0x1f6)]('file')),_0x4a531b=_0x283858['str']('title')||(await getPersonalKnowledgeBaseItem(_0x1f9aff,_0x283858['appCode']))[_0x536308(0x22a)],_0x1f1c50=await updatePersonalKnowledgeBaseItem(_0x1f9aff,_0x283858[_0x536308(0x200)],{'title':_0x4a531b,'content':_0x27e2});return{'ok':!![],'data':summarizePersonalItem(_0x1f1c50),'message':_0x536308(0x1f5)+_0x1f1c50['id']+'\x20('+_0x1f1c50['title']+')'};},async 'dryRun'(_0x28a2e3){const _0xb4b2ca=a35_0x26e6e7,_0x569dfd=_0x28a2e3[_0xb4b2ca(0x20b)]('id'),_0x2a51ea=readKnowledgeFile(_0x28a2e3[_0xb4b2ca(0x1f6)](_0xb4b2ca(0x1ff))),_0x424c94=_0x28a2e3[_0xb4b2ca(0x1f6)](_0xb4b2ca(0x22a))||(await getPersonalKnowledgeBaseItem(_0x569dfd,_0x28a2e3['appCode']))[_0xb4b2ca(0x22a)];return dryRun(_0xb4b2ca(0x1f3),_0xb4b2ca(0x228)+_0x569dfd+_0xb4b2ca(0x1f0))[_0xb4b2ca(0x1fc)]({'appCode':_0x28a2e3['appCode'],'title':_0x424c94,'content':_0x2a51ea})[_0xb4b2ca(0x209)](_0xb4b2ca(0x21c)+_0x569dfd)['build']();}};function readSearchServiceUrl(_0x70962e){const _0x15c56a=a35_0x26e6e7;if(_0x70962e['flag'](_0x15c56a(0x22c))!==undefined)return normalizeKbServiceOrigin(_0x70962e[_0x15c56a(0x1f6)](_0x15c56a(0x22c)));const _0x1ada91=getKbServiceDomain();if(!_0x1ada91)throw CliErrors[_0x15c56a(0x1ef)](_0x15c56a(0x1f2),_0x15c56a(0x218));return normalizeKbServiceOrigin(_0x1ada91);}const kbSearch={'service':'kb','command':a35_0x26e6e7(0x1f9),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a35_0x26e6e7(0x1fb),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x26e6e7(0x22c),'type':'string','required':![],'description':a35_0x26e6e7(0x223)}],async 'validate'(_0x369427){const _0x445f84=a35_0x26e6e7;if(!_0x369427['str'](_0x445f84(0x203))['trim']())throw CliErrors[_0x445f84(0x1ef)](_0x445f84(0x220));readTopK(_0x369427),readSearchServiceUrl(_0x369427);},async 'execute'(_0x3d5450){const _0x5db292=a35_0x26e6e7,_0x505aab=_0x3d5450[_0x5db292(0x1f6)]('query')[_0x5db292(0x221)](),_0x362675=readTopK(_0x3d5450),_0x4ebe12=readSearchServiceUrl(_0x3d5450),_0x290e6a={'appCode':_0x3d5450['appCode'],'accessKey':_0x3d5450[_0x5db292(0x20d)]??'','query':_0x505aab,..._0x362675!==undefined?{'topK':_0x362675}:{},'signal':_0x3d5450[_0x5db292(0x230)]},_0x46b730=await searchDirectKnowledge({..._0x290e6a,'serviceUrl':_0x4ebe12});return{'ok':!![],'data':_0x46b730};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a36_0x3a88e7=a36_0x48a2;(function(_0x1a9602,_0x4b18d3){const _0x106e54=a36_0x48a2,_0x3f02e9=_0x1a9602();while(!![]){try{const _0x8b93cf=-parseInt(_0x106e54(0x16d))/0x1+parseInt(_0x106e54(0x182))/0x2+-parseInt(_0x106e54(0x17d))/0x3*(parseInt(_0x106e54(0x188))/0x4)+parseInt(_0x106e54(0x17b))/0x5+parseInt(_0x106e54(0x171))/0x6+parseInt(_0x106e54(0x181))/0x7*(parseInt(_0x106e54(0x176))/0x8)+-parseInt(_0x106e54(0x187))/0x9*(parseInt(_0x106e54(0x172))/0xa);if(_0x8b93cf===_0x4b18d3)break;else _0x3f02e9['push'](_0x3f02e9['shift']());}catch(_0x2e42fa){_0x3f02e9['push'](_0x3f02e9['shift']());}}}(a36_0x2761,0x58de8));function a36_0x48a2(_0x4513b9,_0x21f418){_0x4513b9=_0x4513b9-0x16c;const _0x27613b=a36_0x2761();let _0x48a2f7=_0x27613b[_0x4513b9];return _0x48a2f7;}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x3a8554){const _0x30f856=a36_0x48a2;if(_0x3a8554[_0x30f856(0x17e)]===0x0){console['log'](_0x30f856(0x175));return;}console[_0x30f856(0x186)]('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x3a8554[_0x30f856(0x17f)]((_0x57d7ea,_0x3d20db)=>{const _0x430052=_0x30f856,_0x273241=new Date(_0x57d7ea['timestamp'])[_0x430052(0x177)](_0x430052(0x174)),_0x55aea0=_0x57d7ea[_0x430052(0x170)]==='success'?'√':_0x57d7ea[_0x430052(0x170)]===_0x430052(0x180)?'×':_0x57d7ea[_0x430052(0x170)]===_0x430052(0x16e)?'!':'i';console[_0x430052(0x186)](_0x3d20db+0x1+'.\x20'+_0x55aea0+'\x20['+_0x57d7ea[_0x430052(0x173)]+']\x20'+_0x57d7ea[_0x430052(0x183)]),console[_0x430052(0x186)](_0x430052(0x16c)+_0x273241),_0x57d7ea[_0x430052(0x18a)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x57d7ea['duration']+'ms'),_0x57d7ea[_0x430052(0x17c)]&&Object[_0x430052(0x179)](_0x57d7ea[_0x430052(0x17c)])[_0x430052(0x17e)]>0x0&&console[_0x430052(0x186)](_0x430052(0x189)+JSON['stringify'](_0x57d7ea['details'],null,0x2)),console[_0x430052(0x186)]('');});}function a36_0x2761(){const _0x2ed6cc=['log','441306BkCHjY','8XlIrzK','\x20\x20\x20Details:\x20','duration','\x20\x20\x20Time:\x20','11509RALJfU','warn','logs','level','1331508wyRatC','40elXSkW','command','en-US','*\x20No\x20logs\x20found','8NWYxvv','toLocaleString','read','keys','show','143275IaiHdk','details','338649TWjUEa','length','forEach','error','525273prHUfy','943614zsGkPo','message','readLogs','View\x20command\x20history\x20logs'];a36_0x2761=function(){return _0x2ed6cc;};return a36_0x2761();}export const logsDefinitions=[{'service':a36_0x3a88e7(0x16f),'command':a36_0x3a88e7(0x17a),'description':a36_0x3a88e7(0x185),'risk':a36_0x3a88e7(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x413174){const _0x3e3080=a36_0x3a88e7;return printLogs(logger[_0x3e3080(0x184)]()),{'ok':!![]};}}];
1
+ const a36_0x5cff6e=a36_0xbb9f;(function(_0x1dcf2b,_0x476d88){const _0x4fe7a5=a36_0xbb9f,_0x97c73b=_0x1dcf2b();while(!![]){try{const _0x4327ff=-parseInt(_0x4fe7a5(0x103))/0x1*(-parseInt(_0x4fe7a5(0x101))/0x2)+-parseInt(_0x4fe7a5(0x113))/0x3+parseInt(_0x4fe7a5(0x114))/0x4+parseInt(_0x4fe7a5(0x10d))/0x5+-parseInt(_0x4fe7a5(0x10e))/0x6*(parseInt(_0x4fe7a5(0x11b))/0x7)+-parseInt(_0x4fe7a5(0xff))/0x8+parseInt(_0x4fe7a5(0x10f))/0x9*(parseInt(_0x4fe7a5(0x108))/0xa);if(_0x4327ff===_0x476d88)break;else _0x97c73b['push'](_0x97c73b['shift']());}catch(_0x1af85f){_0x97c73b['push'](_0x97c73b['shift']());}}}(a36_0x1130,0x8d1be));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x1130(){const _0x8bb366=['3105544GZEDKH','warn','134umScwi','en-US','6449YYsLPv','log','\x20logs:\x0a','forEach','length','17010vWaSDp','duration','message','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','2061070NPXlfj','9438PRvitm','6165tjdWrm','\x20\x20\x20Duration:\x20','success','toLocaleString','453027dKVMRm','187132waZdVD','show','logs','details','readLogs','error','keys','4179zpigzB'];a36_0x1130=function(){return _0x8bb366;};return a36_0x1130();}function printLogs(_0x9dfd71){const _0x472f88=a36_0xbb9f;if(_0x9dfd71[_0x472f88(0x107)]===0x0){console[_0x472f88(0x104)](_0x472f88(0x10c));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x472f88(0x105)),_0x9dfd71[_0x472f88(0x106)]((_0x102e9b,_0x17a908)=>{const _0x1c6031=_0x472f88,_0x369e2e=new Date(_0x102e9b['timestamp'])[_0x1c6031(0x112)](_0x1c6031(0x102)),_0x1aae1f=_0x102e9b['level']===_0x1c6031(0x111)?'√':_0x102e9b['level']===_0x1c6031(0x119)?'×':_0x102e9b['level']===_0x1c6031(0x100)?'!':'i';console[_0x1c6031(0x104)](_0x17a908+0x1+'.\x20'+_0x1aae1f+'\x20['+_0x102e9b['command']+']\x20'+_0x102e9b[_0x1c6031(0x10a)]),console[_0x1c6031(0x104)](_0x1c6031(0x10b)+_0x369e2e),_0x102e9b[_0x1c6031(0x109)]&&console[_0x1c6031(0x104)](_0x1c6031(0x110)+_0x102e9b[_0x1c6031(0x109)]+'ms'),_0x102e9b[_0x1c6031(0x117)]&&Object[_0x1c6031(0x11a)](_0x102e9b[_0x1c6031(0x117)])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x102e9b[_0x1c6031(0x117)],null,0x2)),console[_0x1c6031(0x104)]('');});}function a36_0xbb9f(_0x346548,_0x46130b){_0x346548=_0x346548-0xff;const _0x11307a=a36_0x1130();let _0xbb9fac=_0x11307a[_0x346548];return _0xbb9fac;}export const logsDefinitions=[{'service':a36_0x5cff6e(0x116),'command':a36_0x5cff6e(0x115),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x575ac9){const _0x4edde1=a36_0x5cff6e;return printLogs(logger[_0x4edde1(0x118)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0x611cd0=a37_0x4660;function a37_0x41f5(){const _0x3b1955=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','33738ziHXzs','Notification\x20channel\x20type','length','\x20notification\x20config(s)','3748xSYtbk','10KxZObv','Found\x20','6948424dvFwNs','346AkCFHq','127480wCOuiY','EMAIL','4271499QPmrUd','7RXiKiE','config-list','string','14192068jBLhyp','2730384htZjFu','appCode','65noPbgp'];a37_0x41f5=function(){return _0x3b1955;};return a37_0x41f5();}function a37_0x4660(_0x4c9963,_0x420d3d){_0x4c9963=_0x4c9963-0xb7;const _0x41f57d=a37_0x41f5();let _0x466058=_0x41f57d[_0x4c9963];return _0x466058;}(function(_0xa887bb,_0x552d1e){const _0x37af36=a37_0x4660,_0x18c65a=_0xa887bb();while(!![]){try{const _0x1fb62b=parseInt(_0x37af36(0xbd))/0x1*(-parseInt(_0x37af36(0xb9))/0x2)+parseInt(_0x37af36(0xc5))/0x3+-parseInt(_0x37af36(0xbe))/0x4*(-parseInt(_0x37af36(0xc7))/0x5)+-parseInt(_0x37af36(0xc9))/0x6*(parseInt(_0x37af36(0xc1))/0x7)+-parseInt(_0x37af36(0xbc))/0x8+parseInt(_0x37af36(0xc0))/0x9*(-parseInt(_0x37af36(0xba))/0xa)+parseInt(_0x37af36(0xc4))/0xb;if(_0x1fb62b===_0x552d1e)break;else _0x18c65a['push'](_0x18c65a['shift']());}catch(_0x5c684d){_0x18c65a['push'](_0x18c65a['shift']());}}}(a37_0x41f5,0x96bdb));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a37_0x611cd0(0xc2),'description':a37_0x611cd0(0xc8),'risk':'read','flags':[{'name':'type','type':a37_0x611cd0(0xc3),'description':a37_0x611cd0(0xca),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x611cd0(0xbf)}],async 'validate'(_0x118b34){readNotificationChannelType(_0x118b34);},async 'execute'(_0x83c0bf){const _0x5ab6e3=a37_0x611cd0,_0x3f7240=readNotificationChannelType(_0x83c0bf),_0x5d5bcc=await listNotificationChannelConfigs(_0x83c0bf[_0x5ab6e3(0xc6)],_0x3f7240),_0x5467f0=_0x5d5bcc['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x83c0bf[_0x5ab6e3(0xc6)],'channelType':_0x3f7240,'count':_0x5467f0[_0x5ab6e3(0xb7)],'configs':_0x5467f0},'message':_0x5ab6e3(0xbb)+_0x5467f0[_0x5ab6e3(0xb7)]+'\x20'+_0x3f7240+_0x5ab6e3(0xb8)};}};
1
+ function a37_0x2699(){const _0x51b924=['string','971257SJmygj','3583812lrFIpx','2903544cwGASw','length','read','2QpDSzX','270248nXGrhL','EMAIL','Found\x20','2290671YrUQuQ','\x20notification\x20config(s)','310QGqXIt','appCode','Notification\x20channel\x20type','config-list','1309272bIskVJ','map','5VmtHNG','45909rhYbvQ','type','notification'];a37_0x2699=function(){return _0x51b924;};return a37_0x2699();}const a37_0x39aa2a=a37_0x2fe2;function a37_0x2fe2(_0x3036ee,_0x42f879){_0x3036ee=_0x3036ee-0x19a;const _0x2699b2=a37_0x2699();let _0x2fe293=_0x2699b2[_0x3036ee];return _0x2fe293;}(function(_0x4afe5a,_0x3b5939){const _0x3cc70d=a37_0x2fe2,_0x4f1dda=_0x4afe5a();while(!![]){try{const _0x603bc9=parseInt(_0x3cc70d(0x19d))/0x1+-parseInt(_0x3cc70d(0x1a9))/0x2*(parseInt(_0x3cc70d(0x1ad))/0x3)+parseInt(_0x3cc70d(0x1a6))/0x4+-parseInt(_0x3cc70d(0x19f))/0x5*(parseInt(_0x3cc70d(0x1a5))/0x6)+parseInt(_0x3cc70d(0x1a4))/0x7+parseInt(_0x3cc70d(0x1aa))/0x8+-parseInt(_0x3cc70d(0x1a0))/0x9*(parseInt(_0x3cc70d(0x1af))/0xa);if(_0x603bc9===_0x3b5939)break;else _0x4f1dda['push'](_0x4f1dda['shift']());}catch(_0x2fe87f){_0x4f1dda['push'](_0x4f1dda['shift']());}}}(a37_0x2699,0xa823c));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x39aa2a(0x1a2),'command':a37_0x39aa2a(0x19c),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a37_0x39aa2a(0x1a8),'flags':[{'name':a37_0x39aa2a(0x1a1),'type':a37_0x39aa2a(0x1a3),'description':a37_0x39aa2a(0x19b),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x39aa2a(0x1ab)}],async 'validate'(_0x5aa1ba){readNotificationChannelType(_0x5aa1ba);},async 'execute'(_0x2d4439){const _0x382cb9=a37_0x39aa2a,_0x5c7372=readNotificationChannelType(_0x2d4439),_0xbfeafe=await listNotificationChannelConfigs(_0x2d4439['appCode'],_0x5c7372),_0x415c92=_0xbfeafe[_0x382cb9(0x19e)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2d4439[_0x382cb9(0x19a)],'channelType':_0x5c7372,'count':_0x415c92[_0x382cb9(0x1a7)],'configs':_0x415c92},'message':_0x382cb9(0x1ac)+_0x415c92[_0x382cb9(0x1a7)]+'\x20'+_0x5c7372+_0x382cb9(0x1ae)};}};
@@ -1 +1 @@
1
- (function(_0x414802,_0x37096f){const _0x244968=a38_0xf2a9,_0xb42f8e=_0x414802();while(!![]){try{const _0x3337c8=parseInt(_0x244968(0x1b2))/0x1+-parseInt(_0x244968(0x1ae))/0x2*(parseInt(_0x244968(0x1b6))/0x3)+-parseInt(_0x244968(0x1b5))/0x4+-parseInt(_0x244968(0x1b1))/0x5*(parseInt(_0x244968(0x1ad))/0x6)+parseInt(_0x244968(0x1b3))/0x7+parseInt(_0x244968(0x1b0))/0x8*(parseInt(_0x244968(0x1af))/0x9)+parseInt(_0x244968(0x1b4))/0xa;if(_0x3337c8===_0x37096f)break;else _0xb42f8e['push'](_0xb42f8e['shift']());}catch(_0x598fbf){_0xb42f8e['push'](_0xb42f8e['shift']());}}}(a38_0x3bf8,0x28978));import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0xf2a9(_0x235fe3,_0x58ef86){_0x235fe3=_0x235fe3-0x1ad;const _0x3bf8e8=a38_0x3bf8();let _0xf2a960=_0x3bf8e8[_0x235fe3];return _0xf2a960;}export const notificationDefinitions=[notificationConfigList];function a38_0x3bf8(){const _0x406031=['56842hEnoDO','1584XGjsFW','11496GzljkW','5czbLeH','93434AWgeOb','2072602rkmSla','157110hWxMdu','920060sJMlBo','3jXWFeZ','1400658fthnhm'];a38_0x3bf8=function(){return _0x406031;};return a38_0x3bf8();}
1
+ (function(_0x327b47,_0x1ab5a5){const _0x282de4=a38_0x3bdd,_0x22794f=_0x327b47();while(!![]){try{const _0x55afb7=-parseInt(_0x282de4(0xfd))/0x1*(-parseInt(_0x282de4(0x100))/0x2)+-parseInt(_0x282de4(0xfe))/0x3*(-parseInt(_0x282de4(0xfb))/0x4)+-parseInt(_0x282de4(0x103))/0x5*(parseInt(_0x282de4(0x102))/0x6)+parseInt(_0x282de4(0xf9))/0x7*(parseInt(_0x282de4(0xff))/0x8)+parseInt(_0x282de4(0xfc))/0x9+parseInt(_0x282de4(0x104))/0xa+parseInt(_0x282de4(0x101))/0xb*(-parseInt(_0x282de4(0xfa))/0xc);if(_0x55afb7===_0x1ab5a5)break;else _0x22794f['push'](_0x22794f['shift']());}catch(_0x2275d0){_0x22794f['push'](_0x22794f['shift']());}}}(a38_0x2a9d,0xb7b77));function a38_0x3bdd(_0x4d1d00,_0x387283){_0x4d1d00=_0x4d1d00-0xf9;const _0x2a9d66=a38_0x2a9d();let _0x3bdde8=_0x2a9d66[_0x4d1d00];return _0x3bdde8;}import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x2a9d(){const _0xecd448=['5GtZyDr','6935470xCNZQp','5656yBFqCi','10601076IHfYpD','5088pvrQzW','3208446nKfYOZ','1166181FjQjms','318oCkbWH','4984ewaQgT','2rIdlLI','22RQHmFl','2010534stoNus'];a38_0x2a9d=function(){return _0xecd448;};return a38_0x2a9d();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- function a39_0x3965(){const _0x420eca=['FEISHU','1850547wPygpJ','797345rQmDeF','object','description','6FrysjN','EMAIL','Allowed\x20values:\x20','86692eDWuJu','3974179XqgtXr','configName','\x20is\x20missing\x20required\x20field\x20\x22','4ALiAcA','3614408eBvtmw','type','join','configCode','1YYxpoP','apiError','WEBHOOK','trim','str','92544jJonhU','WECOM','607310QqCZUg','Item\x20','18QytrZW','channelType','12mDRbHi','string','Invalid\x20--type:\x20','includes','Invalid\x20notification\x20config\x20response.'];a39_0x3965=function(){return _0x420eca;};return a39_0x3965();}const a39_0x2c9698=a39_0x5ab0;(function(_0x216069,_0x1c9529){const _0x4f2c35=a39_0x5ab0,_0x2e5aac=_0x216069();while(!![]){try{const _0x152ee8=parseInt(_0x4f2c35(0x8a))/0x1*(parseInt(_0x4f2c35(0x81))/0x2)+-parseInt(_0x4f2c35(0x9b))/0x3*(-parseInt(_0x4f2c35(0x85))/0x4)+parseInt(_0x4f2c35(0x9c))/0x5*(-parseInt(_0x4f2c35(0x9f))/0x6)+-parseInt(_0x4f2c35(0x86))/0x7+-parseInt(_0x4f2c35(0x8f))/0x8+-parseInt(_0x4f2c35(0x93))/0x9*(-parseInt(_0x4f2c35(0x91))/0xa)+-parseInt(_0x4f2c35(0x82))/0xb*(-parseInt(_0x4f2c35(0x95))/0xc);if(_0x152ee8===_0x1c9529)break;else _0x2e5aac['push'](_0x2e5aac['shift']());}catch(_0x5858ed){_0x2e5aac['push'](_0x2e5aac['shift']());}}}(a39_0x3965,0x6f38d));import{CliErrors}from'../../errors.js';function a39_0x5ab0(_0x336760,_0x5749c6){_0x336760=_0x336760-0x7f;const _0x396594=a39_0x3965();let _0x5ab0d6=_0x396594[_0x336760];return _0x5ab0d6;}export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a39_0x2c9698(0x9a),'DINGTALK',a39_0x2c9698(0x90),a39_0x2c9698(0x8c)];export function readNotificationChannelType(_0x37add3){const _0x45fff7=a39_0x2c9698,_0x3904ae=_0x37add3[_0x45fff7(0x8e)](_0x45fff7(0x87))[_0x45fff7(0x8d)]()||_0x45fff7(0x7f);if(!NOTIFICATION_CHANNEL_TYPES[_0x45fff7(0x98)](_0x3904ae))throw CliErrors['validation'](_0x45fff7(0x97)+_0x3904ae,_0x45fff7(0x80)+NOTIFICATION_CHANNEL_TYPES[_0x45fff7(0x88)](',\x20')+'.');return _0x3904ae;}export function projectNotificationListConfig(_0x3dfad7,_0x1168be){const _0x457429=a39_0x2c9698,_0x375dad=requireResponseObject(_0x3dfad7,_0x1168be);return{'configCode':requireResponseString(_0x375dad[_0x457429(0x89)],_0x457429(0x89),_0x1168be),'configName':requireResponseString(_0x375dad[_0x457429(0x83)],_0x457429(0x83),_0x1168be),'channelType':requireResponseString(_0x375dad[_0x457429(0x94)],_0x457429(0x94),_0x1168be),'description':normalizeNullableString(_0x375dad[_0x457429(0x9e)])};}function requireResponseObject(_0x6b1057,_0x5ac27f){const _0x39f1f5=a39_0x2c9698;if(typeof _0x6b1057!==_0x39f1f5(0x9d)||_0x6b1057===null||Array['isArray'](_0x6b1057))throw CliErrors[_0x39f1f5(0x8b)](_0x39f1f5(0x99),'Item\x20'+(_0x5ac27f+0x1)+'\x20must\x20be\x20an\x20object.');return _0x6b1057;}function requireResponseString(_0x551256,_0x1fa7fd,_0x176483){const _0x544047=a39_0x2c9698;if(typeof _0x551256!==_0x544047(0x96)||!_0x551256[_0x544047(0x8d)]())throw CliErrors[_0x544047(0x8b)](_0x544047(0x99),_0x544047(0x92)+(_0x176483+0x1)+_0x544047(0x84)+_0x1fa7fd+'\x22.');return _0x551256[_0x544047(0x8d)]();}function normalizeNullableString(_0x183dc2){const _0x147381=a39_0x2c9698;return typeof _0x183dc2===_0x147381(0x96)&&_0x183dc2[_0x147381(0x8d)]()?_0x183dc2[_0x147381(0x8d)]():null;}
1
+ const a39_0x152b3f=a39_0x12fc;(function(_0x271008,_0x2cb9b2){const _0xd30221=a39_0x12fc,_0x235352=_0x271008();while(!![]){try{const _0x4006ae=-parseInt(_0xd30221(0x150))/0x1*(parseInt(_0xd30221(0x14f))/0x2)+-parseInt(_0xd30221(0x13c))/0x3+parseInt(_0xd30221(0x148))/0x4+parseInt(_0xd30221(0x14a))/0x5*(parseInt(_0xd30221(0x146))/0x6)+parseInt(_0xd30221(0x149))/0x7*(-parseInt(_0xd30221(0x14e))/0x8)+parseInt(_0xd30221(0x147))/0x9*(parseInt(_0xd30221(0x141))/0xa)+parseInt(_0xd30221(0x136))/0xb;if(_0x4006ae===_0x2cb9b2)break;else _0x235352['push'](_0x235352['shift']());}catch(_0x5cbfdd){_0x235352['push'](_0x235352['shift']());}}}(a39_0x47b5,0xc191b));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x152b3f(0x145),a39_0x152b3f(0x151),a39_0x152b3f(0x138),'WECOM',a39_0x152b3f(0x137)];export function readNotificationChannelType(_0x42b254){const _0x4a636d=a39_0x152b3f,_0x14e39d=_0x42b254[_0x4a636d(0x13a)](_0x4a636d(0x133))['trim']()||_0x4a636d(0x145);if(!NOTIFICATION_CHANNEL_TYPES[_0x4a636d(0x13e)](_0x14e39d))throw CliErrors[_0x4a636d(0x13b)](_0x4a636d(0x14b)+_0x14e39d,_0x4a636d(0x155)+NOTIFICATION_CHANNEL_TYPES[_0x4a636d(0x134)](',\x20')+'.');return _0x14e39d;}export function projectNotificationListConfig(_0x4c5910,_0x9543b0){const _0x2aa001=a39_0x152b3f,_0x2087b4=requireResponseObject(_0x4c5910,_0x9543b0);return{'configCode':requireResponseString(_0x2087b4['configCode'],_0x2aa001(0x152),_0x9543b0),'configName':requireResponseString(_0x2087b4[_0x2aa001(0x13f)],'configName',_0x9543b0),'channelType':requireResponseString(_0x2087b4[_0x2aa001(0x135)],_0x2aa001(0x135),_0x9543b0),'description':normalizeNullableString(_0x2087b4[_0x2aa001(0x13d)])};}function a39_0x12fc(_0x140e3a,_0x3c9d5f){_0x140e3a=_0x140e3a-0x133;const _0x47b52a=a39_0x47b5();let _0x12fc2e=_0x47b52a[_0x140e3a];return _0x12fc2e;}function requireResponseObject(_0x2791dc,_0xe37501){const _0x3ff6fe=a39_0x152b3f;if(typeof _0x2791dc!==_0x3ff6fe(0x153)||_0x2791dc===null||Array[_0x3ff6fe(0x142)](_0x2791dc))throw CliErrors[_0x3ff6fe(0x14c)](_0x3ff6fe(0x143),_0x3ff6fe(0x154)+(_0xe37501+0x1)+_0x3ff6fe(0x139));return _0x2791dc;}function requireResponseString(_0x5b7fe4,_0x4684dc,_0x2d7266){const _0x1e0b2d=a39_0x152b3f;if(typeof _0x5b7fe4!==_0x1e0b2d(0x140)||!_0x5b7fe4[_0x1e0b2d(0x14d)]())throw CliErrors[_0x1e0b2d(0x14c)]('Invalid\x20notification\x20config\x20response.',_0x1e0b2d(0x154)+(_0x2d7266+0x1)+_0x1e0b2d(0x144)+_0x4684dc+'\x22.');return _0x5b7fe4[_0x1e0b2d(0x14d)]();}function normalizeNullableString(_0x239393){const _0x2ba5b9=a39_0x152b3f;return typeof _0x239393===_0x2ba5b9(0x140)&&_0x239393[_0x2ba5b9(0x14d)]()?_0x239393[_0x2ba5b9(0x14d)]():null;}function a39_0x47b5(){const _0x1132a9=['60ikNYRB','isArray','Invalid\x20notification\x20config\x20response.','\x20is\x20missing\x20required\x20field\x20\x22','EMAIL','536970bAscak','1294101nYfVgU','2398956xfuGGF','4842922bmlUlp','55ECErsD','Invalid\x20--type:\x20','apiError','trim','16sHmEkk','14UGUpDF','106388qbSDPm','FEISHU','configCode','object','Item\x20','Allowed\x20values:\x20','type','join','channelType','15296677ewHAzh','WEBHOOK','DINGTALK','\x20must\x20be\x20an\x20object.','str','validation','2748774pVamTh','description','includes','configName','string'];a39_0x47b5=function(){return _0x1132a9;};return a39_0x47b5();}
@@ -1 +1 @@
1
- const a40_0x1b9de7=a40_0x400e;(function(_0x4267de,_0x578d02){const _0x16e4fb=a40_0x400e,_0x4268b8=_0x4267de();while(!![]){try{const _0x2d9f59=-parseInt(_0x16e4fb(0x195))/0x1+-parseInt(_0x16e4fb(0x1a2))/0x2*(parseInt(_0x16e4fb(0x188))/0x3)+-parseInt(_0x16e4fb(0x178))/0x4+-parseInt(_0x16e4fb(0x179))/0x5*(parseInt(_0x16e4fb(0x177))/0x6)+parseInt(_0x16e4fb(0x17e))/0x7*(-parseInt(_0x16e4fb(0x19f))/0x8)+-parseInt(_0x16e4fb(0x193))/0x9+-parseInt(_0x16e4fb(0x1a5))/0xa*(-parseInt(_0x16e4fb(0x183))/0xb);if(_0x2d9f59===_0x578d02)break;else _0x4268b8['push'](_0x4268b8['shift']());}catch(_0x4b4623){_0x4268b8['push'](_0x4268b8['shift']());}}}(a40_0x556f,0x3897e));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';function a40_0x400e(_0x1102e5,_0x2d5cc9){_0x1102e5=_0x1102e5-0x170;const _0x556ffa=a40_0x556f();let _0x400e6c=_0x556ffa[_0x1102e5];return _0x400e6c;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=['invoice',a40_0x1b9de7(0x19d),a40_0x1b9de7(0x18a),a40_0x1b9de7(0x170)],SCENE_TO_LEGACY_TYPE={'invoice':a40_0x1b9de7(0x18e),'general':a40_0x1b9de7(0x196),'form':'Table','idCard':a40_0x1b9de7(0x197)},SCENE_FLAG={'name':a40_0x1b9de7(0x1a6),'type':a40_0x1b9de7(0x180),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a40_0x1b9de7(0x18b),'type':a40_0x1b9de7(0x180),'description':a40_0x1b9de7(0x1a0)},IMAGE_URL_FLAG={'name':a40_0x1b9de7(0x171),'type':a40_0x1b9de7(0x180),'description':a40_0x1b9de7(0x17c)};function normalizeScene(_0x48a7b6){const _0x14e82e=a40_0x1b9de7,_0x49179c=_0x48a7b6[_0x14e82e(0x17d)]()[_0x14e82e(0x19e)]();if(_0x49179c===_0x14e82e(0x192))return'idCard';if(_0x49179c==='invoice'||_0x49179c===_0x14e82e(0x19d)||_0x49179c===_0x14e82e(0x18a))return _0x49179c;throw CliErrors['validation'](_0x14e82e(0x19c)+_0x48a7b6+_0x14e82e(0x18d)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x4f5a3e){const _0x29dc7f=a40_0x1b9de7,_0x36663a=_0x4f5a3e[_0x29dc7f(0x181)](_0x29dc7f(0x18b))[_0x29dc7f(0x17d)](),_0xd5665c=_0x4f5a3e[_0x29dc7f(0x181)](_0x29dc7f(0x171))['trim']();return{'imageFile':_0x36663a,'imageUrl':_0xd5665c,'count':[_0x36663a,_0xd5665c][_0x29dc7f(0x1a3)](Boolean)[_0x29dc7f(0x18f)]};}function validateInputSelection(_0x104537){const _0x32714e=a40_0x1b9de7,_0x557c15=selectedInputs(_0x104537);if(_0x557c15[_0x32714e(0x186)]!==0x1)throw CliErrors[_0x32714e(0x19b)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x557c15;}function withScene(_0x41c552,_0x21cca8,_0x5bfa45){const _0x256c52=a40_0x1b9de7;return{..._0x41c552,'scene':_0x21cca8,..._0x5bfa45?{'sourceFile':{'fileName':_0x5bfa45[_0x256c52(0x199)],'filePath':_0x5bfa45[_0x256c52(0x1a1)]}}:{}};}function a40_0x556f(){const _0x49f468=['imageFile','description','ocr','fileUrl','1680XZJaVr','1533920XqAcLb','6060mByFMY','/client/ocr','path','Publicly\x20accessible\x20image\x20or\x20file\x20URL','trim','5243HHWOhz','appCode','string','str','/client/queryFileUrl','924XHtBqe','imageUrl','apiError','count','build','3frGBOS','body','form','image-file','read','.\x20Supported\x20scenes:\x20','Invoice','length','/client/uploadFile','POST','idcard','1288206jETXXD','\x20OCR\x20from\x20URL','171344SUxEbZ','General','IdCard','Preview:\x20recognize\x20','fileName','<filePath\x20returned\x20by\x20/client/uploadFile>','validation','Unsupported\x20OCR\x20scene:\x20','general','toLowerCase','1968dwadtW','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','filePath','494572GUXycH','filter','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','202460wXRuZG','scene','idCard','image-url','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'];a40_0x556f=function(){return _0x49f468;};return a40_0x556f();}const ocrRecognize={'service':a40_0x1b9de7(0x175),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a40_0x1b9de7(0x18c),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x293fe5){const _0x2ea08c=a40_0x1b9de7,_0x53d22c=normalizeScene(_0x293fe5[_0x2ea08c(0x181)](_0x2ea08c(0x1a6))),_0x4e2a16=SCENE_TO_LEGACY_TYPE[_0x53d22c],_0x527bc5=validateInputSelection(_0x293fe5);if(_0x527bc5[_0x2ea08c(0x184)])return dryRun(_0x2ea08c(0x191),_0x2ea08c(0x17a))[_0x2ea08c(0x189)]({'appCode':_0x293fe5[_0x2ea08c(0x17f)],'url':_0x527bc5['imageUrl'],'type':_0x4e2a16})['description'](_0x2ea08c(0x198)+_0x53d22c+_0x2ea08c(0x194))[_0x2ea08c(0x187)]();const _0x4220b1=requireRuntimeUploadFile(_0x527bc5[_0x2ea08c(0x173)],_0x2ea08c(0x18b));return dryRun(_0x2ea08c(0x191),_0x2ea08c(0x190))[_0x2ea08c(0x189)]({'steps':[{'method':_0x2ea08c(0x191),'url':_0x2ea08c(0x190),'body':{'appCode':_0x293fe5[_0x2ea08c(0x17f)],'multipart':{'file':_0x4220b1}}},{'method':'POST','url':_0x2ea08c(0x182),'body':{'filePath':_0x2ea08c(0x19a),'downloadFlag':![]}},{'method':_0x2ea08c(0x191),'url':_0x2ea08c(0x17a),'body':{'appCode':_0x293fe5[_0x2ea08c(0x17f)],'url':_0x2ea08c(0x1a4),'type':_0x4e2a16}}]})[_0x2ea08c(0x174)](_0x2ea08c(0x172)+_0x53d22c+'\x20OCR')[_0x2ea08c(0x187)]();},async 'execute'(_0xce303f){const _0x4e855a=a40_0x1b9de7,_0x356e37=normalizeScene(_0xce303f[_0x4e855a(0x181)](_0x4e855a(0x1a6))),_0x3070db=SCENE_TO_LEGACY_TYPE[_0x356e37],_0x3a305a=validateInputSelection(_0xce303f);if(_0x3a305a['imageUrl']){const _0x4e414a=await recognizeRuntimeOcr(_0xce303f[_0x4e855a(0x17f)],{'url':_0x3a305a[_0x4e855a(0x184)],'type':_0x3070db});return{'ok':!![],'data':withScene(_0x4e414a,_0x356e37)};}const _0x553b3d=requireRuntimeUploadFile(_0x3a305a[_0x4e855a(0x173)],'image-file'),_0x5085c8=await uploadRuntimeFile(_0xce303f[_0x4e855a(0x17f)],_0x553b3d[_0x4e855a(0x17b)]);if(!_0x5085c8[_0x4e855a(0x1a1)])throw CliErrors[_0x4e855a(0x185)]('File\x20upload\x20response\x20missing\x20filePath.');const _0xd869aa=await queryRuntimeFileUrl(_0x5085c8[_0x4e855a(0x1a1)],{'download':![]});if(!_0xd869aa[_0x4e855a(0x176)])throw CliErrors[_0x4e855a(0x185)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x256abd=await recognizeRuntimeOcr(_0xce303f[_0x4e855a(0x17f)],{'url':_0xd869aa[_0x4e855a(0x176)],'type':_0x3070db});return{'ok':!![],'data':withScene(_0x256abd,_0x356e37,_0x5085c8)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a40_0x1eba01=a40_0x4fe6;(function(_0x2ce13a,_0x2b5c9a){const _0x1f3f22=a40_0x4fe6,_0x46450c=_0x2ce13a();while(!![]){try{const _0x44658b=parseInt(_0x1f3f22(0x174))/0x1+-parseInt(_0x1f3f22(0x177))/0x2*(-parseInt(_0x1f3f22(0x182))/0x3)+-parseInt(_0x1f3f22(0x191))/0x4*(parseInt(_0x1f3f22(0x195))/0x5)+-parseInt(_0x1f3f22(0x178))/0x6*(-parseInt(_0x1f3f22(0x18f))/0x7)+-parseInt(_0x1f3f22(0x185))/0x8*(-parseInt(_0x1f3f22(0x172))/0x9)+-parseInt(_0x1f3f22(0x161))/0xa+parseInt(_0x1f3f22(0x188))/0xb*(-parseInt(_0x1f3f22(0x184))/0xc);if(_0x44658b===_0x2b5c9a)break;else _0x46450c['push'](_0x46450c['shift']());}catch(_0x2b3c9b){_0x46450c['push'](_0x46450c['shift']());}}}(a40_0xd59f,0xc0599));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=[a40_0x1eba01(0x16d),a40_0x1eba01(0x164),'form',a40_0x1eba01(0x17c)],SCENE_TO_LEGACY_TYPE={'invoice':a40_0x1eba01(0x165),'general':'General','form':a40_0x1eba01(0x192),'idCard':'IdCard'},SCENE_FLAG={'name':'scene','type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x1eba01(0x181)},IMAGE_FILE_FLAG={'name':a40_0x1eba01(0x173),'type':a40_0x1eba01(0x168),'description':a40_0x1eba01(0x17b)},IMAGE_URL_FLAG={'name':'image-url','type':'string','description':a40_0x1eba01(0x166)};function a40_0x4fe6(_0x59f2da,_0x461672){_0x59f2da=_0x59f2da-0x160;const _0xd59f43=a40_0xd59f();let _0x4fe64a=_0xd59f43[_0x59f2da];return _0x4fe64a;}function a40_0xd59f(){const _0x4a3332=['/client/ocr','build','170570HsSznD','\x20OCR','\x20OCR\x20from\x20URL','File\x20URL\x20response\x20missing\x20fileUrl.','imageUrl','path','5278910EiZrnn','.\x20Supported\x20scenes:\x20','filter','general','Invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','/client/queryFileUrl','string','File\x20upload\x20response\x20missing\x20filePath.','description','POST','validation','invoice','length','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','scene','str','828VawoyS','image-file','141283qqSkdE','ocr','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','30ElMnjw','108iXXsqQ','count','image-url','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','idCard','fileUrl','read','<filePath\x20returned\x20by\x20/client/uploadFile>','/client/uploadFile','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','230403RUdGBV','filePath','528decAHa','105824NZyZYV','apiError','body','43747BYbOAg','Unsupported\x20OCR\x20scene:\x20','trim','idcard','imageFile','appCode','toLowerCase','173978GNvkUH','join','172rhWCTy','Table'];a40_0xd59f=function(){return _0x4a3332;};return a40_0xd59f();}function normalizeScene(_0xe07eb2){const _0x39f133=a40_0x1eba01,_0x4013b1=_0xe07eb2[_0x39f133(0x18a)]()[_0x39f133(0x18e)]();if(_0x4013b1===_0x39f133(0x18b))return _0x39f133(0x17c);if(_0x4013b1==='invoice'||_0x4013b1==='general'||_0x4013b1==='form')return _0x4013b1;throw CliErrors[_0x39f133(0x16c)](_0x39f133(0x189)+_0xe07eb2+_0x39f133(0x162)+SUPPORTED_SCENES[_0x39f133(0x190)](',\x20'));}function selectedInputs(_0x142de5){const _0x42443b=a40_0x1eba01,_0x2bf996=_0x142de5[_0x42443b(0x171)](_0x42443b(0x173))[_0x42443b(0x18a)](),_0x4d075f=_0x142de5['str'](_0x42443b(0x17a))[_0x42443b(0x18a)]();return{'imageFile':_0x2bf996,'imageUrl':_0x4d075f,'count':[_0x2bf996,_0x4d075f][_0x42443b(0x163)](Boolean)[_0x42443b(0x16e)]};}function validateInputSelection(_0x2ee266){const _0x35dc1f=a40_0x1eba01,_0x365769=selectedInputs(_0x2ee266);if(_0x365769[_0x35dc1f(0x179)]!==0x1)throw CliErrors['validation'](_0x35dc1f(0x16f));return _0x365769;}function withScene(_0x3c7393,_0x4bb97e,_0x2c4dfb){return{..._0x3c7393,'scene':_0x4bb97e,..._0x2c4dfb?{'sourceFile':{'fileName':_0x2c4dfb['fileName'],'filePath':_0x2c4dfb['filePath']}}:{}};}const ocrRecognize={'service':a40_0x1eba01(0x175),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a40_0x1eba01(0x17e),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x439504){const _0x572074=a40_0x1eba01,_0x47398d=normalizeScene(_0x439504[_0x572074(0x171)]('scene')),_0x197619=SCENE_TO_LEGACY_TYPE[_0x47398d],_0x5caeb9=validateInputSelection(_0x439504);if(_0x5caeb9[_0x572074(0x199)])return dryRun('POST','/client/ocr')[_0x572074(0x187)]({'appCode':_0x439504[_0x572074(0x18d)],'url':_0x5caeb9[_0x572074(0x199)],'type':_0x197619})[_0x572074(0x16a)]('Preview:\x20recognize\x20'+_0x47398d+_0x572074(0x197))['build']();const _0x8d09f6=requireRuntimeUploadFile(_0x5caeb9[_0x572074(0x18c)],_0x572074(0x173));return dryRun(_0x572074(0x16b),_0x572074(0x180))[_0x572074(0x187)]({'steps':[{'method':_0x572074(0x16b),'url':_0x572074(0x180),'body':{'appCode':_0x439504['appCode'],'multipart':{'file':_0x8d09f6}}},{'method':_0x572074(0x16b),'url':_0x572074(0x167),'body':{'filePath':_0x572074(0x17f),'downloadFlag':![]}},{'method':'POST','url':_0x572074(0x193),'body':{'appCode':_0x439504['appCode'],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x197619}}]})[_0x572074(0x16a)](_0x572074(0x176)+_0x47398d+_0x572074(0x196))[_0x572074(0x194)]();},async 'execute'(_0x9b86aa){const _0x33acd5=a40_0x1eba01,_0x5b2261=normalizeScene(_0x9b86aa[_0x33acd5(0x171)](_0x33acd5(0x170))),_0x484f9a=SCENE_TO_LEGACY_TYPE[_0x5b2261],_0x506966=validateInputSelection(_0x9b86aa);if(_0x506966[_0x33acd5(0x199)]){const _0x3cac6f=await recognizeRuntimeOcr(_0x9b86aa[_0x33acd5(0x18d)],{'url':_0x506966[_0x33acd5(0x199)],'type':_0x484f9a});return{'ok':!![],'data':withScene(_0x3cac6f,_0x5b2261)};}const _0x1c1bb5=requireRuntimeUploadFile(_0x506966[_0x33acd5(0x18c)],_0x33acd5(0x173)),_0x304369=await uploadRuntimeFile(_0x9b86aa[_0x33acd5(0x18d)],_0x1c1bb5[_0x33acd5(0x160)]);if(!_0x304369['filePath'])throw CliErrors[_0x33acd5(0x186)](_0x33acd5(0x169));const _0x11cf3a=await queryRuntimeFileUrl(_0x304369[_0x33acd5(0x183)],{'download':![]});if(!_0x11cf3a[_0x33acd5(0x17d)])throw CliErrors['apiError'](_0x33acd5(0x198));const _0x4a043e=await recognizeRuntimeOcr(_0x9b86aa[_0x33acd5(0x18d)],{'url':_0x11cf3a[_0x33acd5(0x17d)],'type':_0x484f9a});return{'ok':!![],'data':withScene(_0x4a043e,_0x5b2261,_0x304369)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a41_0x310d92=a41_0x1d9f;function a41_0xd507(){const _0xa7f84f=['Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','roleType','6215661WLgwYq','185HZqZbK','2bqrdqZ','roleName','trim','dataset-get','1130541hRTYVr','runtime','16nzNncB','3069scSxCO','65784JuYrko','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','2908194yaffWQ','string','215150mLBHPM','1221352dOiNjs','7641340noDZlI','appCode','read'];a41_0xd507=function(){return _0xa7f84f;};return a41_0xd507();}(function(_0x179a1c,_0x3b5da3){const _0x72ef28=a41_0x1d9f,_0x3da2ee=_0x179a1c();while(!![]){try{const _0x24feee=-parseInt(_0x72ef28(0x86))/0x1*(parseInt(_0x72ef28(0x82))/0x2)+-parseInt(_0x72ef28(0x8c))/0x3+-parseInt(_0x72ef28(0x8f))/0x4+parseInt(_0x72ef28(0x81))/0x5*(-parseInt(_0x72ef28(0x8a))/0x6)+-parseInt(_0x72ef28(0x90))/0x7+-parseInt(_0x72ef28(0x88))/0x8*(parseInt(_0x72ef28(0x95))/0x9)+parseInt(_0x72ef28(0x8e))/0xa*(parseInt(_0x72ef28(0x89))/0xb);if(_0x24feee===_0x3b5da3)break;else _0x3da2ee['push'](_0x3da2ee['shift']());}catch(_0x3029ff){_0x3da2ee['push'](_0x3da2ee['shift']());}}}(a41_0xd507,0xaf80e));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a41_0x1d9f(_0x3218d5,_0x15a20f){_0x3218d5=_0x3218d5-0x81;const _0xd50794=a41_0xd507();let _0x1d9f0d=_0xd50794[_0x3218d5];return _0x1d9f0d;}export const permitDatasetGet={'service':'permit','command':a41_0x310d92(0x85),'description':a41_0x310d92(0x8b),'risk':a41_0x310d92(0x92),'flags':[{'name':'role','type':a41_0x310d92(0x8d),'description':a41_0x310d92(0x93)}],async 'execute'(_0x4fc7da){const _0x2b4eef=a41_0x310d92,_0x40b83b=_0x4fc7da['str']('role')[_0x2b4eef(0x84)]();if(!_0x40b83b)return{'ok':!![],'data':{'scope':_0x2b4eef(0x87),'datasets':await listRuntimeDatasetRolePermits(_0x4fc7da[_0x2b4eef(0x91)])}};const _0x438dd5=await resolveRuntimeRoleRef(_0x4fc7da[_0x2b4eef(0x91)],_0x40b83b);return{'ok':!![],'data':{'scope':_0x2b4eef(0x87),'role':{'id':_0x438dd5['id'],'roleName':_0x438dd5[_0x2b4eef(0x83)],'roleType':_0x438dd5[_0x2b4eef(0x94)]},'datasets':await listRuntimeDatasetPermits(_0x4fc7da[_0x2b4eef(0x91)],_0x438dd5['id'])}};}};
1
+ function a41_0x4e2f(){const _0x2fb04e=['string','950675rlmBbf','permit','534896tOZJdL','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','3EdqIqv','roleName','runtime','1535300BmzEBa','379930syvowE','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','873yEYrLA','6282PxzyhN','1NiTjBs','read','trim','dataset-get','str','appCode','role','2512UQmqrY','2352570gRBHqq','819zZubSm'];a41_0x4e2f=function(){return _0x2fb04e;};return a41_0x4e2f();}const a41_0x52e615=a41_0x9f51;(function(_0x3e8e2f,_0xb1a1c2){const _0x525744=a41_0x9f51,_0x5e011b=_0x3e8e2f();while(!![]){try{const _0x3f51b9=-parseInt(_0x525744(0xcd))/0x1*(parseInt(_0x525744(0xc9))/0x2)+-parseInt(_0x525744(0xc5))/0x3*(-parseInt(_0x525744(0xc3))/0x4)+parseInt(_0x525744(0xc1))/0x5+parseInt(_0x525744(0xcc))/0x6*(-parseInt(_0x525744(0xbf))/0x7)+parseInt(_0x525744(0xbd))/0x8*(parseInt(_0x525744(0xcb))/0x9)+-parseInt(_0x525744(0xc8))/0xa+parseInt(_0x525744(0xbe))/0xb;if(_0x3f51b9===_0xb1a1c2)break;else _0x5e011b['push'](_0x5e011b['shift']());}catch(_0x13619a){_0x5e011b['push'](_0x5e011b['shift']());}}}(a41_0x4e2f,0x18f31));function a41_0x9f51(_0x50857f,_0x288b3c){_0x50857f=_0x50857f-0xb9;const _0x4e2f80=a41_0x4e2f();let _0x9f51f=_0x4e2f80[_0x50857f];return _0x9f51f;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a41_0x52e615(0xc2),'command':a41_0x52e615(0xb9),'description':a41_0x52e615(0xca),'risk':a41_0x52e615(0xce),'flags':[{'name':'role','type':a41_0x52e615(0xc0),'description':a41_0x52e615(0xc4)}],async 'execute'(_0x2218a0){const _0x68daa7=a41_0x52e615,_0x149de7=_0x2218a0[_0x68daa7(0xba)](_0x68daa7(0xbc))[_0x68daa7(0xcf)]();if(!_0x149de7)return{'ok':!![],'data':{'scope':_0x68daa7(0xc7),'datasets':await listRuntimeDatasetRolePermits(_0x2218a0['appCode'])}};const _0x2e5f95=await resolveRuntimeRoleRef(_0x2218a0[_0x68daa7(0xbb)],_0x149de7);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x2e5f95['id'],'roleName':_0x2e5f95[_0x68daa7(0xc6)],'roleType':_0x2e5f95['roleType']},'datasets':await listRuntimeDatasetPermits(_0x2218a0['appCode'],_0x2e5f95['id'])}};}};