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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
+ const a28_0x18b30b=a28_0x333a;function a28_0x333a(_0x5258ec,_0x2f5b49){_0x5258ec=_0x5258ec-0x1e5;const _0x16b7b2=a28_0x16b7();let _0x333ae5=_0x16b7b2[_0x5258ec];return _0x333ae5;}(function(_0x343e54,_0x65afbc){const _0x4b11db=a28_0x333a,_0x4eb650=_0x343e54();while(!![]){try{const _0x5dc051=-parseInt(_0x4b11db(0x201))/0x1*(parseInt(_0x4b11db(0x1f6))/0x2)+parseInt(_0x4b11db(0x221))/0x3*(parseInt(_0x4b11db(0x225))/0x4)+-parseInt(_0x4b11db(0x1ec))/0x5+-parseInt(_0x4b11db(0x1ed))/0x6*(-parseInt(_0x4b11db(0x1f9))/0x7)+-parseInt(_0x4b11db(0x1f4))/0x8*(parseInt(_0x4b11db(0x1fe))/0x9)+parseInt(_0x4b11db(0x1fb))/0xa+parseInt(_0x4b11db(0x227))/0xb*(parseInt(_0x4b11db(0x21c))/0xc);if(_0x5dc051===_0x65afbc)break;else _0x4eb650['push'](_0x4eb650['shift']());}catch(_0x442500){_0x4eb650['push'](_0x4eb650['shift']());}}}(a28_0x16b7,0xd4131));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x1d2d34){const _0x3487aa=a28_0x333a;if(_0x1d2d34[_0x3487aa(0x1f1)])return null;const _0x4a1fca=Boolean(_0x1d2d34[_0x3487aa(0x20d)]!==undefined||_0x1d2d34[_0x3487aa(0x210)]!==undefined);let _0x467031={};if(!_0x4a1fca&&typeof _0x1d2d34[_0x3487aa(0x1f7)]==='string')try{_0x467031=JSON[_0x3487aa(0x228)](_0x1d2d34[_0x3487aa(0x1f7)]);}catch{}const _0x11beb8=_0x4a1fca?_0x1d2d34[_0x3487aa(0x226)]:_0x1d2d34[_0x3487aa(0x20c)],_0x4abdfa=_0x4a1fca?_0x1d2d34['displayName']:_0x1d2d34[_0x3487aa(0x226)],_0x118f0a=_0x4a1fca?_0x1d2d34[_0x3487aa(0x210)]:_0x1d2d34[_0x3487aa(0x204)]||_0x1d2d34[_0x3487aa(0x224)],_0x127df6=_0x4a1fca?_0x1d2d34[_0x3487aa(0x1e8)]===!![]:_0x467031[_0x3487aa(0x1e8)]===!![],_0x313a63=_0x4a1fca?_0x1d2d34[_0x3487aa(0x20f)]===!![]:_0x467031['required']===!![],_0x5cd3d1=_0x4a1fca?_0x1d2d34[_0x3487aa(0x218)]??null:_0x467031['options']??null,_0x467ecd={'name':_0x11beb8,'displayName':_0x4abdfa||_0x11beb8,'type':_0x118f0a,'dbType':_0x1d2d34['dbType'],'pk':_0x127df6,'required':_0x313a63,'description':_0x1d2d34[_0x3487aa(0x22e)]||undefined};return Array[_0x3487aa(0x22b)](_0x5cd3d1)&&_0x5cd3d1[_0x3487aa(0x216)]>0x0&&(_0x467ecd[_0x3487aa(0x218)]=_0x5cd3d1),_0x467ecd;}function parseJsonMaybe(_0x118951){const _0x1a5682=a28_0x333a;if(typeof _0x118951!==_0x1a5682(0x1fa))return _0x118951;try{return JSON[_0x1a5682(0x228)](_0x118951);}catch{return _0x118951;}}function normalizeOperationEntry(_0x9fea26,_0x27236a){const _0xc9a03b=a28_0x333a;if(!_0x27236a||typeof _0x27236a!=='object')return null;if(!_0x27236a['method']||!_0x27236a['path'])return null;const _0x145537={'name':_0x9fea26,'method':_0x27236a['method'],'path':_0x27236a[_0xc9a03b(0x214)]};if(_0x27236a[_0xc9a03b(0x21d)])_0x145537['host']=_0x27236a['host'];if(_0x27236a[_0xc9a03b(0x1f0)]!=null)_0x145537[_0xc9a03b(0x1f0)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1f0)]);if(_0x27236a[_0xc9a03b(0x1ef)]!=null)_0x145537[_0xc9a03b(0x1ef)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1ef)]);if(_0x27236a[_0xc9a03b(0x1eb)]!=null)_0x145537[_0xc9a03b(0x1eb)]=_0x27236a[_0xc9a03b(0x1eb)];if(_0x27236a[_0xc9a03b(0x1fd)]!=null)_0x145537[_0xc9a03b(0x1fd)]=_0x27236a[_0xc9a03b(0x1fd)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x219)]))_0x145537[_0xc9a03b(0x219)]=_0x27236a[_0xc9a03b(0x219)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x1fc)]))_0x145537[_0xc9a03b(0x1fc)]=_0x27236a[_0xc9a03b(0x1fc)];return _0x145537;}function a28_0x16b7(){const _0x566a34=['allFieldNames','filter','isArray','map','dbId','description','allFields','creatorNameField','operations','detail','pkField','find','appCode','beforeScriptId','1917465gSoGPE','1860PykWki','updateTimeField','responseBody','requestBody','deleted','push','object','2764912IHngKt','logicField','312BvBCxz','extend','createTimeField','7693vYwSAs','string','7778870FxXyoc','responseFields','afterScriptId','36WyICLv','tableName','source','19FyKsXj','indexes','columnCodeListWithDeleted','type','modelCode','relatedPageInfoList','dbName','formatRules','doVersion','dbtableConfig','validateRules','code','displayName','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','required','doType','creatorIdField','trim','datasetKey','path','modelId','length','dataset','options','requestFields','tableComment','entries','3228FjFFcb','host','read','fields','title','59277LFJpWG','str','relations','dataType','16IDtzEn','name','58883oImYEt','parse'];a28_0x16b7=function(){return _0x566a34;};return a28_0x16b7();}function summarizeDbtable(_0x23a148){const _0x14aab3=a28_0x333a,_0x544ac4={},_0x313c0a=[_0x14aab3(0x22d),_0x14aab3(0x207),_0x14aab3(0x1ff),_0x14aab3(0x213),'pkField','allFields',_0x14aab3(0x1f5),_0x14aab3(0x1f8),_0x14aab3(0x1ee),_0x14aab3(0x211),_0x14aab3(0x1e5),'modifierIdField','modifierNameField','labelField','dblinkInfoDTO'];for(const _0x537634 of _0x313c0a){if(_0x23a148[_0x537634]!==undefined)_0x544ac4[_0x537634]=_0x23a148[_0x537634];}return typeof _0x544ac4[_0x14aab3(0x22f)]===_0x14aab3(0x1fa)&&_0x544ac4[_0x14aab3(0x22f)]['length']>0x0&&(_0x544ac4[_0x14aab3(0x229)]=_0x544ac4[_0x14aab3(0x22f)]['split'](',')[_0x14aab3(0x22c)](_0x347bd9=>_0x347bd9[_0x14aab3(0x212)]())['filter'](Boolean)),_0x544ac4;}function normalizeRelatedPages(_0x12111a){const _0x24e841=a28_0x333a;if(!Array[_0x24e841(0x22b)](_0x12111a))return[];return _0x12111a[_0x24e841(0x22a)](_0x39c79c=>_0x39c79c&&typeof _0x39c79c===_0x24e841(0x1f3))[_0x24e841(0x22c)](_0x35f0f0=>({'id':_0x35f0f0['id'],'type':_0x35f0f0[_0x24e841(0x204)],'code':_0x35f0f0[_0x24e841(0x20c)],'title':_0x35f0f0[_0x24e841(0x220)],'deleted':_0x35f0f0['deleted']===!![]}));}function normalizeFallbackFieldName(_0x37a094,_0x4db494){const _0x3de48c=_0x37a094['trim']();if(!_0x3de48c)return null;return{'name':_0x3de48c,'displayName':_0x3de48c,'type':undefined,'dbType':undefined,'pk':_0x3de48c===_0x4db494,'required':![],'description':undefined};}async function loadListFieldFallback(_0x12db98,_0x417e86){const _0x4af4d7=a28_0x333a;if(!_0x12db98||!_0x417e86)return[];try{const _0x22d275=await listDatasets(_0x12db98,{'code':_0x417e86}),_0x20de2d=_0x22d275[_0x4af4d7(0x1e9)](_0x35f4f0=>_0x35f4f0['code']===_0x417e86)??_0x22d275[0x0],_0x4f13ab=_0x20de2d?.[_0x4af4d7(0x20a)]??{},_0x3defbf=typeof _0x4f13ab['allFields']==='string'?_0x4f13ab[_0x4af4d7(0x22f)]['split'](','):[];return _0x3defbf[_0x4af4d7(0x22c)](_0x4c43f6=>normalizeFallbackFieldName(_0x4c43f6,_0x4f13ab[_0x4af4d7(0x1e8)]))[_0x4af4d7(0x22a)](_0xce9d47=>_0xce9d47!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x18b30b(0x217),'command':a28_0x18b30b(0x1e7),'description':a28_0x18b30b(0x20e),'risk':a28_0x18b30b(0x21e),'flags':[CODE_FLAG],async 'execute'(_0x4edefd){const _0x17b35f=a28_0x18b30b,_0x5ede04=await getDatasetDetail(_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))),_0x6c5176=Array['isArray'](_0x5ede04[_0x17b35f(0x21f)])?_0x5ede04[_0x17b35f(0x21f)]:Array['isArray'](_0x5ede04['properties'])?_0x5ede04['properties']:[];let _0x5525ea=_0x6c5176[_0x17b35f(0x22c)](_0x20dcc3=>normalizeField(_0x20dcc3))[_0x17b35f(0x22a)](_0x512532=>_0x512532!==null);_0x5525ea[_0x17b35f(0x216)]===0x0&&(_0x5525ea=await loadListFieldFallback(_0x4edefd[_0x17b35f(0x1ea)],_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))));const _0x30f794=_0x5ede04[_0x17b35f(0x1e6)]??{},_0x18390b=[];for(const [_0x5675f7,_0x4b55b6]of Object[_0x17b35f(0x21b)](_0x30f794)){const _0x21e196=normalizeOperationEntry(_0x5675f7,_0x4b55b6);if(_0x21e196)_0x18390b[_0x17b35f(0x1f2)](_0x21e196);}const _0x24600e=_0x5ede04[_0x17b35f(0x20a)]??{},_0x1cba10=_0x5ede04[_0x17b35f(0x217)]??{},_0x5187aa=_0x24600e['dbId']!=null?{'id':_0x24600e['dbId'],'name':_0x24600e[_0x17b35f(0x207)]??null}:undefined;let _0x53af66;return typeof _0x5ede04['extend']===_0x17b35f(0x1fa)&&(_0x53af66=parseJsonMaybe(_0x5ede04[_0x17b35f(0x1f7)])),{'ok':!![],'data':{'id':_0x5ede04[_0x17b35f(0x215)]??_0x5ede04['id'],'name':_0x5ede04[_0x17b35f(0x226)],'code':_0x5ede04[_0x17b35f(0x205)]||_0x5ede04[_0x17b35f(0x20c)],'doVersion':_0x5ede04[_0x17b35f(0x209)],'description':_0x5ede04[_0x17b35f(0x22e)]||_0x1cba10[_0x17b35f(0x21a)]||undefined,'source':_0x5ede04[_0x17b35f(0x200)]||_0x1cba10['sourceType'],'table':_0x24600e[_0x17b35f(0x1ff)]||_0x1cba10[_0x17b35f(0x1ff)],'datasetKey':_0x24600e[_0x17b35f(0x213)],'pk':_0x24600e['pkField'],'db':_0x5187aa,'dbtable':summarizeDbtable(_0x24600e),'fields':_0x5525ea,'operations':_0x18390b,'indexes':Array[_0x17b35f(0x22b)](_0x1cba10['indexes'])?_0x1cba10[_0x17b35f(0x202)]:[],'relations':_0x5ede04[_0x17b35f(0x223)]??null,'relatedPages':normalizeRelatedPages(_0x5ede04[_0x17b35f(0x206)]),...Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x203)])?{'columnCodeListWithDeleted':_0x5ede04[_0x17b35f(0x203)]}:{},'formatRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x208)])?_0x5ede04['formatRules']:[],'validateRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x20b)])?_0x5ede04[_0x17b35f(0x20b)]:[],..._0x53af66!==undefined?{'extend':_0x53af66}:{},'stats':{'fieldCount':_0x5525ea[_0x17b35f(0x216)],'operationCount':_0x18390b[_0x17b35f(0x216)]}}};}};
@@ -1 +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 a29_0x1718(){const _0x560fce=['1930970igTYxi','35091192kfDQRT','6fepXuo','1142437GXMNZU','2196886ahFeZU','9026584KOgpps','685756DOVLXs','248820dQBfoe'];a29_0x1718=function(){return _0x560fce;};return a29_0x1718();}(function(_0x32b348,_0xd1bf88){const _0x12369e=a29_0x340a,_0x35aa3d=_0x32b348();while(!![]){try{const _0x498acf=-parseInt(_0x12369e(0x18c))/0x1+-parseInt(_0x12369e(0x18d))/0x2+-parseInt(_0x12369e(0x18b))/0x3*(parseInt(_0x12369e(0x187))/0x4)+parseInt(_0x12369e(0x189))/0x5+parseInt(_0x12369e(0x188))/0x6+-parseInt(_0x12369e(0x186))/0x7+parseInt(_0x12369e(0x18a))/0x8;if(_0x498acf===_0xd1bf88)break;else _0x35aa3d['push'](_0x35aa3d['shift']());}catch(_0x364bda){_0x35aa3d['push'](_0x35aa3d['shift']());}}}(a29_0x1718,0xe5af9));function a29_0x340a(_0x56fc28,_0x3c80ff){_0x56fc28=_0x56fc28-0x186;const _0x1718c4=a29_0x1718();let _0x340a05=_0x1718c4[_0x56fc28];return _0x340a05;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +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_0x131878=a30_0x33a2;(function(_0x15b1cf,_0x4841b4){const _0x2f7970=a30_0x33a2,_0x86b883=_0x15b1cf();while(!![]){try{const _0x4283f3=-parseInt(_0x2f7970(0xe4))/0x1*(parseInt(_0x2f7970(0xe6))/0x2)+-parseInt(_0x2f7970(0xde))/0x3+parseInt(_0x2f7970(0xd8))/0x4*(-parseInt(_0x2f7970(0xda))/0x5)+parseInt(_0x2f7970(0xd6))/0x6+parseInt(_0x2f7970(0xdc))/0x7+-parseInt(_0x2f7970(0xe5))/0x8+parseInt(_0x2f7970(0xd4))/0x9;if(_0x4283f3===_0x4841b4)break;else _0x86b883['push'](_0x86b883['shift']());}catch(_0x539716){_0x86b883['push'](_0x86b883['shift']());}}}(a30_0x4ce7,0x580c4));import{listDatasets}from'../../core/api-client.js';function a30_0x33a2(_0x4b11a3,_0x50bc1f){_0x4b11a3=_0x4b11a3-0xd3;const _0x4ce769=a30_0x4ce7();let _0x33a271=_0x4ce769[_0x4b11a3];return _0x33a271;}import{CODE_FLAG}from'../../commands/common/flags.js';function a30_0x4ce7(){const _0x13985d=['Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','tableName','split','allFields','10562589WHPfQv','length','706632yUQGpt','trim','247928CEQdpm','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','55CkdAlD','appCode','3456075zqvYmy','dataset','1214919lrVNDW','pkField','list','code','datasetKey','str','212915JUFWsH','998272iTLlgF','2ozEMLi','source'];a30_0x4ce7=function(){return _0x13985d;};return a30_0x4ce7();}export const datasetList={'service':a30_0x131878(0xdd),'command':a30_0x131878(0xe0),'description':a30_0x131878(0xd9),'risk':'read','flags':[{'name':'name','type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a30_0x131878(0xe8)}],async 'execute'(_0x8e61ad){const _0x35787f=a30_0x131878,_0x708d5b=_0x8e61ad[_0x35787f(0xe3)]('name'),_0x45846e=_0x8e61ad[_0x35787f(0xe3)](_0x35787f(0xe1)),_0x13acde=await listDatasets(_0x8e61ad[_0x35787f(0xdb)],{..._0x708d5b&&{'name':_0x708d5b},..._0x45846e&&{'code':_0x45846e}});return{'ok':!![],'data':{'total':_0x13acde[_0x35787f(0xd5)],'datasets':_0x13acde['map'](_0x23b73e=>{const _0x1df17=_0x35787f,_0xc2db24=_0x23b73e['dbtableConfig']??{};return{'id':_0x23b73e['id'],'code':_0x23b73e[_0x1df17(0xe1)],'name':_0x23b73e['name'],'source':_0x23b73e[_0x1df17(0xe7)],'description':_0x23b73e['description'],'table':_0xc2db24[_0x1df17(0xe9)],'datasetKey':_0xc2db24[_0x1df17(0xe2)],'pk':_0xc2db24[_0x1df17(0xdf)],'fields':_0xc2db24[_0x1df17(0xd3)]?_0xc2db24[_0x1df17(0xd3)][_0x1df17(0xea)](',')['map'](_0xb6d04b=>_0xb6d04b[_0x1df17(0xd7)]()):[]};})}};}};
@@ -1 +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_0x4f1afa=a31_0x5a36;(function(_0x5e9078,_0x2bfbae){const _0x506267=a31_0x5a36,_0x93de23=_0x5e9078();while(!![]){try{const _0x2aea10=parseInt(_0x506267(0x72))/0x1+-parseInt(_0x506267(0x70))/0x2+parseInt(_0x506267(0x6c))/0x3+-parseInt(_0x506267(0x7b))/0x4*(parseInt(_0x506267(0x7c))/0x5)+-parseInt(_0x506267(0x6b))/0x6+-parseInt(_0x506267(0x69))/0x7*(parseInt(_0x506267(0x74))/0x8)+parseInt(_0x506267(0x6f))/0x9*(parseInt(_0x506267(0x6a))/0xa);if(_0x2aea10===_0x2bfbae)break;else _0x93de23['push'](_0x93de23['shift']());}catch(_0x30e934){_0x93de23['push'](_0x93de23['shift']());}}}(a31_0x1074,0x66635));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4f1afa(0x78);function a31_0x1074(){const _0x5ac9cb=['read','trim','2827161wQQCRZ','1553010CUuKgE','dataset','135029BUQoUM','code','17128KOEtiK','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','sdk-doc','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','string','4QWpqAr','2056215toTrNt','1729aECxIa','70MetsPK','4084548yeUcOk','1448346vWaDUy'];a31_0x1074=function(){return _0x5ac9cb;};return a31_0x1074();}function a31_0x5a36(_0x5997c7,_0x407510){_0x5997c7=_0x5997c7-0x69;const _0x107457=a31_0x1074();let _0x5a36ee=_0x107457[_0x5997c7];return _0x5a36ee;}export function formatDatasetSdkMarkdown(_0x4f37c7){const _0x376acc=a31_0x4f1afa,_0x3889da=typeof _0x4f37c7===_0x376acc(0x7a)?_0x4f37c7[_0x376acc(0x6e)]():'';return _0x3889da||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x4f1afa(0x71),'command':a31_0x4f1afa(0x76),'description':a31_0x4f1afa(0x75),'risk':a31_0x4f1afa(0x6d),'flags':[{...CODE_FLAG,'description':a31_0x4f1afa(0x79)}],async 'execute'(_0x35218c){const _0x102beb=a31_0x4f1afa,_0xf919c8=_0x35218c['str'](_0x102beb(0x73)),_0x2246b9=await getDatasetSdkUsageDoc(_0xf919c8,_0x35218c[_0x102beb(0x77)]);return{'ok':!![],'data':{'code':_0xf919c8,'appCode':_0x35218c[_0x102beb(0x77)],'markdown':formatDatasetSdkMarkdown(_0x2246b9)}};}};
@@ -1 +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_0xc47fc6=a32_0x26b6;(function(_0x170240,_0x42dc4b){const _0x4fdad4=a32_0x26b6,_0x3b023c=_0x170240();while(!![]){try{const _0x36a9e0=parseInt(_0x4fdad4(0x14e))/0x1+parseInt(_0x4fdad4(0x176))/0x2*(-parseInt(_0x4fdad4(0x146))/0x3)+parseInt(_0x4fdad4(0x14f))/0x4+-parseInt(_0x4fdad4(0x186))/0x5+-parseInt(_0x4fdad4(0x135))/0x6+parseInt(_0x4fdad4(0x16b))/0x7*(parseInt(_0x4fdad4(0x178))/0x8)+parseInt(_0x4fdad4(0x153))/0x9*(parseInt(_0x4fdad4(0x16c))/0xa);if(_0x36a9e0===_0x42dc4b)break;else _0x3b023c['push'](_0x3b023c['shift']());}catch(_0x4d0ffa){_0x3b023c['push'](_0x3b023c['shift']());}}}(a32_0x4999,0x9ed62));import a32_0x1c5d68 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x4999(){const _0x2b478c=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','ClientAk','defaultApp','pageSize','\x20commands)','global','read','commandCount','call','current','status','(not\x20found)','966014MOtFNE','78630ayagTZ','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','currentApp','prototype','⚠\x20Empty','accessKey','\x20config\x20delete\x20routing\x20--global','1139146pNcGCT','Global','40AAfvlV','\x20+\x20','\x20\x20kbServiceDomain:\x20','✓\x20Loaded','Diagnose\x20CLI\x20configuration\x20and\x20environment','repeat','format','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20config\x20init','\x20\x20Config\x20JSON','projectConfig','padEnd','4555000eJaLtA','Project','gray','missing','filter','skillVersion','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','green','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','version','inherit','hasOwnProperty','serviceCode','includes','state','log','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','yellow','name','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold','serviceCount','\x20\x20Repair\x20global:\x20\x20\x20','empty','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','✗\x20Invalid','not\x20configured','project','check','\x20\x20Package\x20Version:\x20','registryPath','\x20config\x20delete\x20routing','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','(missing)','\x20\x20Config\x20Files','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','4160934dlUfVL','\x20Imported\x20from:\x20','raw','source','region','✓\x20Valid\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','(unnamed)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20Legacy\x20inherit:\x20\x20\x20','red','installedPath','\x20doctor','\x20\x20runtimeDomain:\x20\x20\x20','3wKrNdV','(default:\x20','(none)','\x20\x20Service\x20Tree','globalConfig','\x20\x20API\x20Endpoints','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','length','1293604zvOjml','1445596jTejJs','(not\x20set)','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','549pyNVWY','(removed\x20—\x20cookie\x20auth\x20disabled)','(set,\x20length=','path','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','platform'];a32_0x4999=function(){return _0x2b478c;};return a32_0x4999();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x26b6(_0x2351a1,_0x32b154){_0x2351a1=_0x2351a1-0x110;const _0x499906=a32_0x4999();let _0x26b65a=_0x499906[_0x2351a1];return _0x26b65a;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x27916a){const _0x30e1ec=a32_0x26b6,_0x35095e=getCliVersion(),_0x86d6ca=buildConfigFromFlags({});let _0x5defa8,_0x358875;try{_0x5defa8=normalizeLovrabetRegion(_0x86d6ca[_0x30e1ec(0x137)][_0x30e1ec(0x139)]);}catch(_0x55f112){_0x358875=_0x55f112 instanceof Error?_0x55f112:new Error(String(_0x55f112));}let _0x262e78;if(!_0x358875)try{await initGlobalEnvironment(_0x86d6ca);}catch(_0x2bed23){_0x262e78=_0x2bed23 instanceof Error?_0x2bed23:new Error(String(_0x2bed23));}console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](CLI_BIN_NAME+_0x30e1ec(0x144))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray']('─'[_0x30e1ec(0x17d)](0x32))),console[_0x30e1ec(0x119)](_0x30e1ec(0x12c)+_0x35095e),console[_0x30e1ec(0x119)](_0x30e1ec(0x16d)+process[_0x30e1ec(0x113)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x134)+process[_0x30e1ec(0x15b)]+'\x20'+process[_0x30e1ec(0x12e)]);const _0x5832cb=inspectBuiltinSkill();console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Built-in\x20Skill')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x18c)+(_0x5832cb[_0x30e1ec(0x118)]===_0x30e1ec(0x168)?a32_0x1c5d68['green']('✓\x20current'):a32_0x1c5d68[_0x30e1ec(0x142)]('✗\x20'+_0x5832cb['state']))),console[_0x30e1ec(0x119)](_0x30e1ec(0x128)+_0x5832cb[_0x30e1ec(0x181)]),console['log'](_0x30e1ec(0x16f)+(_0x5832cb[_0x30e1ec(0x18b)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x131)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x16e)+(_0x5832cb[_0x30e1ec(0x143)]||a32_0x1c5d68['gray'](_0x30e1ec(0x16a))));_0x5832cb[_0x30e1ec(0x118)]!==_0x30e1ec(0x168)&&console['log'](_0x30e1ec(0x157)+_0x5832cb['repairCommand']);_0x5832cb['reason']&&console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x5832cb['reason']);console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x132))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x3c8e0b=getGlobalConfigPath(),_0x478d30=getProjectConfigPath();console[_0x30e1ec(0x119)](_0x30e1ec(0x12d)+(_0x3c8e0b||a32_0x1c5d68['gray'](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x152)+(_0x478d30||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x183))),console['log'](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x12558a=(_0x2458e5,_0xc7a2db)=>{const _0x4c7b88=_0x30e1ec;if(!_0xc7a2db){console['log']('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)]('(no\x20file)'));return;}const _0x39e81b=inspectCliConfigJsonFile(_0xc7a2db);if(_0x39e81b[_0x4c7b88(0x169)]==='ok')console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68['green'](_0x4c7b88(0x13a)));else{if(_0x39e81b[_0x4c7b88(0x169)]===_0x4c7b88(0x121))console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x11b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x39e81b['status']===_0x4c7b88(0x189)?console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)](_0x4c7b88(0x131))):(console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68['red'](_0x4c7b88(0x123))),console[_0x4c7b88(0x119)]('\x20\x20'+''[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x142)](_0x39e81b[_0x4c7b88(0x151)])));}};_0x12558a(_0x30e1ec(0x177),_0x3c8e0b),_0x12558a(_0x30e1ec(0x187),_0x478d30);const _0x4984ae=loadRawConfigLayers(),_0x43fe6e=[Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x14a)],_0x30e1ec(0x114))?_0x30e1ec(0x164):null,Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x114))?_0x30e1ec(0x126):null][_0x30e1ec(0x18a)](Boolean);_0x43fe6e[_0x30e1ec(0x14d)]>0x0&&(console[_0x30e1ec(0x119)](_0x30e1ec(0x141)+a32_0x1c5d68[_0x30e1ec(0x11b)](_0x30e1ec(0x15d)+_0x43fe6e['join'](_0x30e1ec(0x179))+_0x30e1ec(0x140))),_0x43fe6e['includes'](_0x30e1ec(0x126))&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x43fe6e[_0x30e1ec(0x117)](_0x30e1ec(0x164))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x17f)+CLI_BIN_NAME+_0x30e1ec(0x15f)));_0x262e78&&(console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x262e78[_0x30e1ec(0x151)]),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x184)],'routing')&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x30e1ec(0x12a)),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae['globalConfig'],'routing')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x175)));_0x358875&&(console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Country/Region\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68['red'](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x358875[_0x30e1ec(0x151)]),Object['prototype']['hasOwnProperty']['call'](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x139))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x130)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x14a)],'region')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x182)));console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x12b))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca['appCode']||a32_0x1c5d68['red'](_0x30e1ec(0x150)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x133)+(_0x5defa8??a32_0x1c5d68[_0x30e1ec(0x142)]('(invalid)'))),console['log'](_0x30e1ec(0x158)+_0x86d6ca['locale']),console[_0x30e1ec(0x119)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x161)]||a32_0x1c5d68['gray']('(none)'))),console['log'](_0x30e1ec(0x12f)+(_0x86d6ca[_0x30e1ec(0x171)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console['log'](_0x30e1ec(0x180)+(_0x86d6ca[_0x30e1ec(0x17e)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x147)+DEFAULT_CONFIG_VALUES[_0x30e1ec(0x17e)]+')'))),console[_0x30e1ec(0x119)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x162)]??a32_0x1c5d68[_0x30e1ec(0x188)]('(default)'))),console[_0x30e1ec(0x119)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x86d6ca['riskLevel']),console[_0x30e1ec(0x119)](_0x30e1ec(0x15c)+_0x86d6ca[_0x30e1ec(0x13c)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x110)+AUTH_MODE[_0x30e1ec(0x160)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x122)+(_0x86d6ca[_0x30e1ec(0x174)]?a32_0x1c5d68[_0x30e1ec(0x111)](_0x30e1ec(0x155)+_0x86d6ca[_0x30e1ec(0x174)][_0x30e1ec(0x14d)]+')'):a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x14b))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e)));_0x262e78||_0x358875?console[_0x30e1ec(0x119)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x11a))):(console[_0x30e1ec(0x119)](_0x30e1ec(0x13f)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x30e1ec(0x145)+getRuntimeDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x170)+getSkillDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x17a)+(getKbServiceDomain()??_0x30e1ec(0x125))));console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x149))),console['log'](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x46a11e=inspectServiceRegistry();console[_0x30e1ec(0x119)](_0x30e1ec(0x112)+_0x46a11e[_0x30e1ec(0x129)]),console['log'](_0x30e1ec(0x159)+formatServiceRegistryStatus(_0x46a11e)),console[_0x30e1ec(0x119)](_0x30e1ec(0x11d)+_0x46a11e[_0x30e1ec(0x11f)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x14c)+_0x46a11e[_0x30e1ec(0x166)]);for(const _0xce4ef4 of _0x46a11e['services']){console[_0x30e1ec(0x119)]('\x20\x20'+(_0xce4ef4[_0x30e1ec(0x116)]+':')[_0x30e1ec(0x185)](0x11)+'\x20'+(_0xce4ef4[_0x30e1ec(0x11c)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13d)))+'\x20('+_0xce4ef4[_0x30e1ec(0x166)]+_0x30e1ec(0x163)),console['log']('\x20\x20'+''[_0x30e1ec(0x185)](0x11)+_0x30e1ec(0x136)+_0xce4ef4[_0x30e1ec(0x138)][_0x30e1ec(0x156)]);}return console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Auth')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x13b)+a32_0x1c5d68['green'](AUTH_MODE[_0x30e1ec(0x160)]+'\x20(accessKey)')),console[_0x30e1ec(0x119)](_0x30e1ec(0x15a)+a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x154))),console[_0x30e1ec(0x119)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x287e7d){const _0x355113=a32_0x26b6;if(_0x287e7d['status']==='ok')return a32_0x1c5d68[_0x355113(0x111)](_0x355113(0x17b));if(_0x287e7d['status']===_0x355113(0x189))return a32_0x1c5d68[_0x355113(0x188)](_0x355113(0x16a));if(_0x287e7d[_0x355113(0x169)]===_0x355113(0x121))return a32_0x1c5d68[_0x355113(0x11b)](_0x355113(0x173));return a32_0x1c5d68['red'](_0x355113(0x124)+(_0x287e7d[_0x355113(0x151)]?':\x20'+_0x287e7d['message']:''));}export const doctorDefinition={'service':'doctor','command':a32_0xc47fc6(0x127),'description':a32_0xc47fc6(0x17c),'risk':a32_0xc47fc6(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +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
+ const a33_0x1d0f24=a33_0x5587;(function(_0x4c0d56,_0x4a991e){const _0x516dd9=a33_0x5587,_0x17b8ab=_0x4c0d56();while(!![]){try{const _0x278d51=parseInt(_0x516dd9(0x1cc))/0x1+-parseInt(_0x516dd9(0x1b8))/0x2*(-parseInt(_0x516dd9(0x1ca))/0x3)+-parseInt(_0x516dd9(0x1be))/0x4+-parseInt(_0x516dd9(0x1d1))/0x5+-parseInt(_0x516dd9(0x1d4))/0x6+parseInt(_0x516dd9(0x1c3))/0x7*(-parseInt(_0x516dd9(0x1bf))/0x8)+-parseInt(_0x516dd9(0x1da))/0x9*(-parseInt(_0x516dd9(0x1c9))/0xa);if(_0x278d51===_0x4a991e)break;else _0x17b8ab['push'](_0x17b8ab['shift']());}catch(_0x2aeed2){_0x17b8ab['push'](_0x17b8ab['shift']());}}}(a33_0x36ee,0x53ba9));function a33_0x36ee(){const _0x1783d2=['bool','Preview:\x20upload\x20','string','4380530aaVfcM','download','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','appCode','filePath','validation','3886390fiFsFU','1024869tzrbRz','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','163560FvIWLU','query-url','POST','read','body','328625iIpYcS','upload','/client/uploadFile','1063536ovJbRR','boolean','filepath','filePath\x20is\x20required.','Path\x20to\x20the\x20local\x20file\x20to\x20upload','str','27GhHcLY','trim','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2FTqDPa','long-term','File','path','\x20to\x20runtime\x20app\x20','build','1837504eSBDeH','8xqLliP'];a33_0x36ee=function(){return _0x1783d2;};return a33_0x36ee();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1d0f24(0x1dc),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1d8)},FILEPATH_FLAG={'name':a33_0x1d0f24(0x1d6),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1c5)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0x1d0f24(0x1b9),'type':a33_0x1d0f24(0x1d5),'description':a33_0x1d0f24(0x1cb)};function requireFilePath(_0x390af7){const _0x5c8678=a33_0x1d0f24,_0x30720f=_0x390af7[_0x5c8678(0x1db)]();if(!_0x30720f)throw CliErrors[_0x5c8678(0x1c8)](_0x5c8678(0x1d7));return _0x30720f;}function a33_0x5587(_0x362752,_0x2e5cc3){_0x362752=_0x362752-0x1b8;const _0x36ee3a=a33_0x36ee();let _0x558758=_0x36ee3a[_0x362752];return _0x558758;}const fileUpload={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1d2),'description':a33_0x1d0f24(0x1dd),'risk':a33_0x1d0f24(0x1cf),'flags':[FILE_FLAG],async 'dryRun'(_0x45425a){const _0x196a40=a33_0x1d0f24,_0x5d4a2d=requireRuntimeUploadFile(_0x45425a[_0x196a40(0x1d9)](_0x196a40(0x1dc)),_0x196a40(0x1ba));return dryRun(_0x196a40(0x1ce),_0x196a40(0x1d3))[_0x196a40(0x1d0)]({'appCode':_0x45425a[_0x196a40(0x1c6)],'multipart':{'file':_0x5d4a2d}})['description'](_0x196a40(0x1c1)+_0x5d4a2d[_0x196a40(0x1bb)]+_0x196a40(0x1bc)+_0x45425a[_0x196a40(0x1c6)])[_0x196a40(0x1bd)]();},async 'execute'(_0x4ec295){const _0xbbea42=a33_0x1d0f24,_0x123db1=requireRuntimeUploadFile(_0x4ec295[_0xbbea42(0x1d9)]('file'),'File'),_0x35ec14=await uploadRuntimeFile(_0x4ec295[_0xbbea42(0x1c6)],_0x123db1[_0xbbea42(0x1bb)]);return{'ok':!![],'data':_0x35ec14,'message':_0x35ec14[_0xbbea42(0x1c7)]?'Uploaded\x20file:\x20'+_0x35ec14['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1cd),'description':a33_0x1d0f24(0x1de),'risk':a33_0x1d0f24(0x1cf),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4ff704){const _0x4caa97=a33_0x1d0f24,_0x76299e=requireFilePath(_0x4ff704[_0x4caa97(0x1d9)]('filepath')),_0x150c93=await queryRuntimeFileUrl(_0x76299e,{'download':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1c4)),'longTerm':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1b9))});return{'ok':!![],'data':_0x150c93};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +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_0x49054f=a34_0x4f20;(function(_0x3ae171,_0x1c860d){const _0x4c6366=a34_0x4f20,_0x26589a=_0x3ae171();while(!![]){try{const _0x5b42c0=parseInt(_0x4c6366(0xac))/0x1*(parseInt(_0x4c6366(0xa3))/0x2)+-parseInt(_0x4c6366(0x9b))/0x3+parseInt(_0x4c6366(0x9f))/0x4+-parseInt(_0x4c6366(0xc4))/0x5+parseInt(_0x4c6366(0xa2))/0x6+-parseInt(_0x4c6366(0xae))/0x7+-parseInt(_0x4c6366(0xb4))/0x8;if(_0x5b42c0===_0x1c860d)break;else _0x26589a['push'](_0x26589a['shift']());}catch(_0x2c6312){_0x26589a['push'](_0x26589a['shift']());}}}(a34_0x17f5,0x1b48a));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a34_0x4f20(_0x3f090f,_0x14e54d){_0x3f090f=_0x3f090f-0x9a;const _0x17f557=a34_0x17f5();let _0x4f2097=_0x17f557[_0x3f090f];return _0x4f2097;}export const appImportFlagDefs=[{'name':a34_0x49054f(0xc2),'type':a34_0x49054f(0xa0),'description':a34_0x49054f(0xb1),'required':!![]},{'name':'appcode','type':a34_0x49054f(0xa0),'description':a34_0x49054f(0x9d)},{'name':'env','type':'string','description':a34_0x49054f(0xbe),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49054f(0xab),'type':a34_0x49054f(0xb3),'description':a34_0x49054f(0xc3)+PRODUCT_CONFIG[a34_0x49054f(0xa5)]+a34_0x49054f(0xad),'default':![]},{'name':a34_0x49054f(0xb6),'type':'boolean','description':a34_0x49054f(0xaa),'default':![]}];export async function runAppImport(_0x572d58){const _0x6ba86=a34_0x49054f,_0x36264f=_0x572d58[_0x6ba86(0xab)]?_0x6ba86(0xab):_0x6ba86(0xb8),_0x186aca=resolveWriteConfigPath(_0x36264f);await runFromImport(_0x572d58,_0x186aca);}async function runFromImport(_0x4e378e,_0x58c810){const _0xcb0335=a34_0x49054f,_0x179da1=resolveFilePath(_0x4e378e['file']);if(!existsSync(_0x179da1))throw CliErrors[_0xcb0335(0xc1)]('Source\x20file\x20not\x20found:\x20'+_0x179da1);const _0x8cae80=readSourceFile(_0x179da1),_0x232bd9=convertToRuntimeConfig(_0x8cae80);_0x4e378e[_0xcb0335(0xb9)]&&(_0x232bd9[_0xcb0335(0xb9)]=String(_0x4e378e[_0xcb0335(0xb9)]));_0x4e378e[_0xcb0335(0xb0)]&&(_0x232bd9[_0xcb0335(0xb0)]=resolveImportEnv(_0x4e378e));if(!_0x232bd9['appcode'])throw CliErrors[_0xcb0335(0xc1)](_0xcb0335(0xba),_0xcb0335(0xb5));await writeImportConfig(_0x58c810,_0x232bd9,_0x4e378e),console[_0xcb0335(0x9e)](_0xcb0335(0xaf)+_0x179da1),console[_0xcb0335(0x9e)](_0xcb0335(0xbf)+_0x58c810),console[_0xcb0335(0x9e)](_0xcb0335(0xa1)+_0x232bd9[_0xcb0335(0xb9)]);if(_0x232bd9[_0xcb0335(0xa8)])console[_0xcb0335(0x9e)](_0xcb0335(0xa4)+_0x232bd9[_0xcb0335(0xa8)]);}function convertToRuntimeConfig(_0xd67bea){const _0x2220f8=a34_0x49054f;if(_0xd67bea['apps']&&typeof _0xd67bea['apps']===_0x2220f8(0x9a))throw CliErrors['validation'](_0x2220f8(0x9c),_0x2220f8(0xc0));const _0x4bbd1f={};for(const _0x46905d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xd67bea[_0x46905d]!==undefined&&(_0x4bbd1f[_0x46905d]=_0xd67bea[_0x46905d]);}return!_0x4bbd1f[_0x2220f8(0xa6)]&&(_0x4bbd1f['riskLevel']=DEFAULT_CONFIG_VALUES[_0x2220f8(0xa6)]),_0x4bbd1f;}async function writeImportConfig(_0x5b3ccd,_0x24645f,_0x384a7b){const _0x11ba41=a34_0x49054f;let _0x10b0ed={};existsSync(_0x5b3ccd)&&!_0x384a7b[_0x11ba41(0xb6)]&&(_0x10b0ed=readConfigFile(_0x5b3ccd));for(const [_0x287495,_0x324d48]of Object[_0x11ba41(0xa9)](_0x24645f)){_0x324d48!==undefined&&(_0x10b0ed[_0x287495]=_0x324d48);}if(_0x10b0ed[_0x11ba41(0xa7)])delete _0x10b0ed['app'];writeConfigFile(_0x5b3ccd,_0x10b0ed);}function resolveFilePath(_0x207c99){return isAbsolute(_0x207c99)?_0x207c99:resolve(process['cwd'](),_0x207c99);}function readSourceFile(_0x2f362c){const _0xb6ef79=a34_0x49054f;try{const _0x532964=readFileSync(_0x2f362c,{'encoding':'utf8'});return JSON[_0xb6ef79(0xbd)](_0x532964);}catch(_0x5188ee){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x5188ee[_0xb6ef79(0xbb)]);}}function resolveImportEnv(_0x388f78){const _0x52bcd5=a34_0x49054f,_0x1590d2=_0x388f78[_0x52bcd5(0xb0)];if(_0x1590d2===undefined||_0x1590d2==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x52bcd5(0xb2)](_0x1590d2))throw CliErrors[_0x52bcd5(0xc1)](_0x52bcd5(0xb7)+_0x1590d2+_0x52bcd5(0xbc)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x1590d2;}function a34_0x17f5(){const _0x5f0113=['12752hQchFZ','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','yes','Invalid\x20env\x20\x22','project','appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','message','\x22.\x20Allowed:\x20','parse','Override\x20imported\x20default\x20env','\x20\x20config:\x20\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','validation','file','Write\x20to\x20global\x20(~/','676235qmMsGF','object','50796oujgWQ','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Override\x20imported\x20default\x20appcode','log','80244xOKOLI','string','\x20\x20appcode:\x20','899466WebHNb','452sMBLPO','\x20\x20default:\x20','newConfigFileName','riskLevel','app','defaultApp','entries','Skip\x20confirmation\x20when\x20overwriting','global','683ZTRKkV',')\x20instead\x20of\x20project','411621zgiFue','Imported\x20from\x20','env','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','includes','boolean'];a34_0x17f5=function(){return _0x5f0113;};return a34_0x17f5();}
@@ -1 +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_0x2faa84=a35_0xca0b;(function(_0x410222,_0x4192c1){const _0x37a798=a35_0xca0b,_0x4222a1=_0x410222();while(!![]){try{const _0xd12a3d=parseInt(_0x37a798(0xad))/0x1*(parseInt(_0x37a798(0xd8))/0x2)+parseInt(_0x37a798(0xc0))/0x3+parseInt(_0x37a798(0xb1))/0x4+parseInt(_0x37a798(0xbf))/0x5+-parseInt(_0x37a798(0xe8))/0x6+-parseInt(_0x37a798(0xdc))/0x7*(parseInt(_0x37a798(0xb0))/0x8)+-parseInt(_0x37a798(0xb8))/0x9;if(_0xd12a3d===_0x4192c1)break;else _0x4222a1['push'](_0x4222a1['shift']());}catch(_0xf713e7){_0x4222a1['push'](_0x4222a1['shift']());}}}(a35_0xa7c6,0xa5b7e));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x2faa84(0xae),'type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xec)},FILE_FLAG={'name':'file','type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xb2)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x2faa84(0xb9)},TOPK_FLAG={'name':a35_0x2faa84(0xde),'type':'number','description':a35_0x2faa84(0xaf)};function readKnowledgeFile(_0x20bcd2){const _0x15f99e=a35_0x2faa84;if(!_0x20bcd2)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x20bcd2))throw CliErrors[_0x15f99e(0xd5)](_0x15f99e(0xb4)+_0x20bcd2);if(!statSync(_0x20bcd2)[_0x15f99e(0xc3)]())throw CliErrors[_0x15f99e(0xd5)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x20bcd2);return readFileSync(_0x20bcd2,'utf8');}function summarizePersonalItem(_0x465624){const _0x121a63=a35_0x2faa84;return{'id':_0x465624['id'],'title':_0x465624[_0x121a63(0xae)],'version':_0x465624[_0x121a63(0xd3)],'ragStatus':_0x465624[_0x121a63(0xd0)],'ragErrorMessage':_0x465624[_0x121a63(0xba)],'updateTime':_0x465624[_0x121a63(0xd6)]};}function a35_0xca0b(_0x2e561b,_0x3ec038){_0x2e561b=_0x2e561b-0xac;const _0xa7c68e=a35_0xa7c6();let _0xca0b03=_0xa7c68e[_0x2e561b];return _0xca0b03;}function detailPersonalItem(_0x29963a){const _0x2095bc=a35_0x2faa84;return{'id':_0x29963a['id'],'appCode':_0x29963a['appCode'],'scope':_0x29963a[_0x2095bc(0xea)],'userId':_0x29963a[_0x2095bc(0xce)],'title':_0x29963a[_0x2095bc(0xae)],'content':_0x29963a[_0x2095bc(0xc1)]??'','version':_0x29963a[_0x2095bc(0xd3)],'ragStatus':_0x29963a['ragStatus'],'ragErrorMessage':_0x29963a['ragErrorMessage'],'createTime':_0x29963a['createTime'],'updateTime':_0x29963a[_0x2095bc(0xd6)]};}function readTopK(_0x2b3454){const _0x25c834=a35_0x2faa84,_0x3b2833=_0x2b3454[_0x25c834(0xcf)](_0x25c834(0xde));if(_0x3b2833===undefined||_0x3b2833===null||_0x3b2833==='')return undefined;const _0x26585f=_0x2b3454[_0x25c834(0xd1)](_0x25c834(0xde));if(!Number[_0x25c834(0xe1)](_0x26585f)||_0x26585f<0x1||_0x26585f>0x32)throw CliErrors[_0x25c834(0xd5)](_0x25c834(0xc9));return _0x26585f;}function a35_0xa7c6(){const _0x14b68e=['/client/knowledge-base/personal/','17269758oFGpbd','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','ragErrorMessage','str','Created\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','117140ruLZsJ','1932441GlRpFg','content','/client/knowledge-base/personal/create','isFile','Personal\x20knowledge-base\x20entry\x20ID','body','list','kb-service-url','search','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','query','Override\x20the\x20existing\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','description','userId','flag','ragStatus','num','update','version','string','validation','updateTime','appCode','2lzZSHm','read','trim','build','21IJyyxn','/update','topk','bool','signal','isSafeInteger','write','Updated\x20KB\x20entry\x20','length','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','detail','1274142sdFjXY','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','scope','POST','Personal\x20knowledge-base\x20entry\x20title','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','file','1307996yhcVCw','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','597272xEXSYC','4233628WTuYTX','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','File\x20not\x20found:\x20','verbose','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.'];a35_0xa7c6=function(){return _0x14b68e;};return a35_0xa7c6();}const kbList={'service':'kb','command':a35_0x2faa84(0xc6),'description':a35_0x2faa84(0xe6),'risk':a35_0x2faa84(0xd9),'flags':[VERBOSE_FLAG],async 'execute'(_0x4d2190){const _0x54b066=a35_0x2faa84,_0x38b3c1=await listPersonalKnowledgeBaseItems(_0x4d2190[_0x54b066(0xd7)]);if(_0x4d2190[_0x54b066(0xdf)](_0x54b066(0xb5)))return{'ok':!![],'data':{'total':_0x38b3c1['length'],'items':_0x38b3c1}};return{'ok':!![],'data':{'total':_0x38b3c1[_0x54b066(0xe4)],'items':_0x38b3c1['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x2faa84(0xe7),'description':a35_0x2faa84(0xcc),'risk':a35_0x2faa84(0xd9),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x4f8b99){const _0x564594=a35_0x2faa84,_0x5866a1=await getPersonalKnowledgeBaseItem(_0x4f8b99[_0x564594(0xd1)]('id'),_0x4f8b99[_0x564594(0xd7)]);return{'ok':!![],'data':detailPersonalItem(_0x5866a1)};}},kbCreate={'service':'kb','command':'create','description':a35_0x2faa84(0xbe),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4b17ae){const _0x1a2632=a35_0x2faa84,_0x27ebab=_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xae)),_0x3eea5b=readKnowledgeFile(_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xac))),_0x133e43=await createPersonalKnowledgeBaseItem(_0x4b17ae[_0x1a2632(0xd7)],{'title':_0x27ebab,'content':_0x3eea5b});return{'ok':!![],'data':summarizePersonalItem(_0x133e43),'message':_0x1a2632(0xbc)+_0x133e43['id']+'\x20('+_0x133e43[_0x1a2632(0xae)]+')'};},async 'dryRun'(_0x4abfe5){const _0x4c596d=a35_0x2faa84,_0x3dffc5=_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xae)),_0x3721d8=readKnowledgeFile(_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xac)));return dryRun(_0x4c596d(0xeb),_0x4c596d(0xc2))[_0x4c596d(0xc5)]({'appCode':_0x4abfe5[_0x4c596d(0xd7)],'title':_0x3dffc5,'content':_0x3721d8})[_0x4c596d(0xcd)](_0x4c596d(0xe9)+_0x3dffc5+'\x22')[_0x4c596d(0xdb)]();}},kbUpdate={'service':'kb','command':a35_0x2faa84(0xd2),'description':a35_0x2faa84(0xe5),'risk':a35_0x2faa84(0xe2),'confirmationDescription':a35_0x2faa84(0xee),'flags':[{...ID_FLAG,'description':a35_0x2faa84(0xc4)},{...TITLE_FLAG,'required':![],'description':a35_0x2faa84(0xcb)},FILE_FLAG],async 'execute'(_0x41f649){const _0x43b404=a35_0x2faa84,_0x37b8b2=_0x41f649['num']('id'),_0x46bd1f=readKnowledgeFile(_0x41f649[_0x43b404(0xbb)](_0x43b404(0xac))),_0x261613=_0x41f649[_0x43b404(0xbb)](_0x43b404(0xae))||(await getPersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)]))['title'],_0x588855=await updatePersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)],{'title':_0x261613,'content':_0x46bd1f});return{'ok':!![],'data':summarizePersonalItem(_0x588855),'message':_0x43b404(0xe3)+_0x588855['id']+'\x20('+_0x588855[_0x43b404(0xae)]+')'};},async 'dryRun'(_0x4b3e99){const _0xea1d11=a35_0x2faa84,_0xdc59d6=_0x4b3e99['num']('id'),_0x5260ba=readKnowledgeFile(_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xac))),_0xcd9c90=_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xae))||(await getPersonalKnowledgeBaseItem(_0xdc59d6,_0x4b3e99[_0xea1d11(0xd7)]))[_0xea1d11(0xae)];return dryRun(_0xea1d11(0xeb),_0xea1d11(0xb7)+_0xdc59d6+_0xea1d11(0xdd))[_0xea1d11(0xc5)]({'appCode':_0x4b3e99['appCode'],'title':_0xcd9c90,'content':_0x5260ba})[_0xea1d11(0xcd)](_0xea1d11(0xb3)+_0xdc59d6)[_0xea1d11(0xdb)]();}};function readSearchServiceUrl(_0x1c8ca1){const _0xe06e70=a35_0x2faa84;if(_0x1c8ca1['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1c8ca1[_0xe06e70(0xbb)](_0xe06e70(0xc7)));const _0x5a0720=getKbServiceDomain();if(!_0x5a0720)throw CliErrors[_0xe06e70(0xd5)]('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.',_0xe06e70(0xb6));return normalizeKbServiceOrigin(_0x5a0720);}const kbSearch={'service':'kb','command':a35_0x2faa84(0xc8),'description':a35_0x2faa84(0xed),'risk':a35_0x2faa84(0xd9),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x2faa84(0xc7),'type':a35_0x2faa84(0xd4),'required':![],'description':a35_0x2faa84(0xbd)}],async 'validate'(_0x1607b0){const _0xf46a1f=a35_0x2faa84;if(!_0x1607b0[_0xf46a1f(0xbb)](_0xf46a1f(0xca))[_0xf46a1f(0xda)]())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x1607b0),readSearchServiceUrl(_0x1607b0);},async 'execute'(_0x38c71d){const _0x273600=a35_0x2faa84,_0x55b5bd=_0x38c71d[_0x273600(0xbb)](_0x273600(0xca))[_0x273600(0xda)](),_0xc8a83a=readTopK(_0x38c71d),_0x179d5e=readSearchServiceUrl(_0x38c71d),_0x45a347={'appCode':_0x38c71d[_0x273600(0xd7)],'accessKey':_0x38c71d['accessKey']??'','query':_0x55b5bd,..._0xc8a83a!==undefined?{'topK':_0xc8a83a}:{},'signal':_0x38c71d[_0x273600(0xe0)]},_0x3bf317=await searchDirectKnowledge({..._0x45a347,'serviceUrl':_0x179d5e});return{'ok':!![],'data':_0x3bf317};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +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_0x180ad6=a36_0x22ee;(function(_0x12c9ff,_0x32716d){const _0x579f0e=a36_0x22ee,_0x296269=_0x12c9ff();while(!![]){try{const _0x38c833=parseInt(_0x579f0e(0x1cc))/0x1*(-parseInt(_0x579f0e(0x1e5))/0x2)+parseInt(_0x579f0e(0x1d5))/0x3+parseInt(_0x579f0e(0x1cd))/0x4+parseInt(_0x579f0e(0x1ea))/0x5+parseInt(_0x579f0e(0x1d6))/0x6*(parseInt(_0x579f0e(0x1e8))/0x7)+-parseInt(_0x579f0e(0x1d8))/0x8+parseInt(_0x579f0e(0x1cb))/0x9*(-parseInt(_0x579f0e(0x1d0))/0xa);if(_0x38c833===_0x32716d)break;else _0x296269['push'](_0x296269['shift']());}catch(_0x218db0){_0x296269['push'](_0x296269['shift']());}}}(a36_0x3d0d,0x826ce));import{logger}from'../../utils/logger.js';function a36_0x22ee(_0x24d94e,_0xfe3c3f){_0x24d94e=_0x24d94e-0x1ca;const _0x3d0d3c=a36_0x3d0d();let _0x22eed6=_0x3d0d3c[_0x24d94e];return _0x22eed6;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x3d0d(){const _0x43e4a8=['254032WQQmxN','1722944CwVrIh','keys','toLocaleString','20ShrTmx','success','*\x20No\x20logs\x20found','\x20\x20\x20Time:\x20','\x20logs:\x0a','721944rqBOsL','817062GGapJR','level','2458080VGTaIK','readLogs','duration','message','stringify','log','details','show','warn','\x20\x20\x20Duration:\x20','length','en-US','View\x20command\x20history\x20logs','4kLroyR','timestamp','forEach','49oElckW','logs','4261335QMSASf','\x20\x20\x20Details:\x20','5073048INyXWT'];a36_0x3d0d=function(){return _0x43e4a8;};return a36_0x3d0d();}function printLogs(_0x2a70ce){const _0x1a6272=a36_0x22ee;if(_0x2a70ce[_0x1a6272(0x1e2)]===0x0){console['log'](_0x1a6272(0x1d2));return;}console[_0x1a6272(0x1dd)]('*\x20'+CLI_DISPLAY_NAME+_0x1a6272(0x1d4)),_0x2a70ce[_0x1a6272(0x1e7)]((_0x4d5e4a,_0x302c5c)=>{const _0x3d90d1=_0x1a6272,_0x29ee05=new Date(_0x4d5e4a[_0x3d90d1(0x1e6)])[_0x3d90d1(0x1cf)](_0x3d90d1(0x1e3)),_0x179a29=_0x4d5e4a['level']===_0x3d90d1(0x1d1)?'√':_0x4d5e4a[_0x3d90d1(0x1d7)]==='error'?'×':_0x4d5e4a[_0x3d90d1(0x1d7)]===_0x3d90d1(0x1e0)?'!':'i';console['log'](_0x302c5c+0x1+'.\x20'+_0x179a29+'\x20['+_0x4d5e4a['command']+']\x20'+_0x4d5e4a[_0x3d90d1(0x1db)]),console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1d3)+_0x29ee05),_0x4d5e4a[_0x3d90d1(0x1da)]&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1e1)+_0x4d5e4a[_0x3d90d1(0x1da)]+'ms'),_0x4d5e4a[_0x3d90d1(0x1de)]&&Object[_0x3d90d1(0x1ce)](_0x4d5e4a['details'])[_0x3d90d1(0x1e2)]>0x0&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1ca)+JSON[_0x3d90d1(0x1dc)](_0x4d5e4a[_0x3d90d1(0x1de)],null,0x2)),console[_0x3d90d1(0x1dd)]('');});}export const logsDefinitions=[{'service':a36_0x180ad6(0x1e9),'command':a36_0x180ad6(0x1df),'description':a36_0x180ad6(0x1e4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24220d){const _0x1eaa8c=a36_0x180ad6;return printLogs(logger[_0x1eaa8c(0x1d9)]()),{'ok':!![]};}}];
@@ -1 +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
+ const a37_0x187794=a37_0x31a3;(function(_0x25a59b,_0x67a943){const _0x3edc67=a37_0x31a3,_0x449412=_0x25a59b();while(!![]){try{const _0x71ff6a=-parseInt(_0x3edc67(0x19e))/0x1+-parseInt(_0x3edc67(0x1a6))/0x2*(parseInt(_0x3edc67(0x1a1))/0x3)+parseInt(_0x3edc67(0x19f))/0x4+parseInt(_0x3edc67(0x19d))/0x5+parseInt(_0x3edc67(0x198))/0x6*(parseInt(_0x3edc67(0x1ad))/0x7)+-parseInt(_0x3edc67(0x197))/0x8*(parseInt(_0x3edc67(0x1aa))/0x9)+parseInt(_0x3edc67(0x1a2))/0xa*(parseInt(_0x3edc67(0x1a3))/0xb);if(_0x71ff6a===_0x67a943)break;else _0x449412['push'](_0x449412['shift']());}catch(_0x4809af){_0x449412['push'](_0x449412['shift']());}}}(a37_0x13f6,0xa29fa));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x187794(0x19a),'command':a37_0x187794(0x199),'description':a37_0x187794(0x1a5),'risk':a37_0x187794(0x1a9),'flags':[{'name':a37_0x187794(0x19b),'type':a37_0x187794(0x1ab),'description':a37_0x187794(0x19c),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x187794(0x1ae)}],async 'validate'(_0x9e0a1c){readNotificationChannelType(_0x9e0a1c);},async 'execute'(_0x20dbe1){const _0x57a5db=a37_0x187794,_0x17153c=readNotificationChannelType(_0x20dbe1),_0x46130b=await listNotificationChannelConfigs(_0x20dbe1[_0x57a5db(0x1a4)],_0x17153c),_0x625ad5=_0x46130b[_0x57a5db(0x1a8)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x20dbe1[_0x57a5db(0x1a4)],'channelType':_0x17153c,'count':_0x625ad5[_0x57a5db(0x1a0)],'configs':_0x625ad5},'message':_0x57a5db(0x1ac)+_0x625ad5[_0x57a5db(0x1a0)]+'\x20'+_0x17153c+_0x57a5db(0x1a7)};}};function a37_0x31a3(_0x59b605,_0x9a068){_0x59b605=_0x59b605-0x197;const _0x13f67f=a37_0x13f6();let _0x31a3dd=_0x13f67f[_0x59b605];return _0x31a3dd;}function a37_0x13f6(){const _0xc2ba38=['appCode','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1631484JxaaXr','\x20notification\x20config(s)','map','read','9aXMdYL','string','Found\x20','7ZXOgMt','EMAIL','2578792dsLlPX','4478022YvPGYe','config-list','notification','type','Notification\x20channel\x20type','1456070NVmXrv','1069209zOFOQt','3956000cRcvAa','length','3KRRxHC','90FbnaBf','1035045URKaDo'];a37_0x13f6=function(){return _0xc2ba38;};return a37_0x13f6();}
@@ -1 +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(_0x3e2010,_0x5a6967){const _0x5967f7=a38_0x28bf,_0x4b9e0f=_0x3e2010();while(!![]){try{const _0x3f6ff9=parseInt(_0x5967f7(0xbc))/0x1+parseInt(_0x5967f7(0xb4))/0x2*(-parseInt(_0x5967f7(0xb7))/0x3)+-parseInt(_0x5967f7(0xb8))/0x4+-parseInt(_0x5967f7(0xb5))/0x5+parseInt(_0x5967f7(0xbb))/0x6+parseInt(_0x5967f7(0xb9))/0x7*(-parseInt(_0x5967f7(0xb6))/0x8)+-parseInt(_0x5967f7(0xba))/0x9;if(_0x3f6ff9===_0x5a6967)break;else _0x4b9e0f['push'](_0x4b9e0f['shift']());}catch(_0x44574e){_0x4b9e0f['push'](_0x4b9e0f['shift']());}}}(a38_0x1bb4,0x8ec3c));function a38_0x28bf(_0x19515f,_0x5ae2c0){_0x19515f=_0x19515f-0xb4;const _0x1bb49a=a38_0x1bb4();let _0x28bf79=_0x1bb49a[_0x19515f];return _0x28bf79;}import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x1bb4(){const _0x3f783b=['3175110VTtEpk','2287698mFFZew','1134825vujIxB','82BsAwwF','761390ikWMoT','9280FfJTnT','17151EYIvkO','702556TQHkQQ','98grySxB'];a38_0x1bb4=function(){return _0x3f783b;};return a38_0x1bb4();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +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_0x2b288b=a39_0x3e79;(function(_0x3d993c,_0xb04d07){const _0x2cb6a8=a39_0x3e79,_0x3e95b2=_0x3d993c();while(!![]){try{const _0x3d55cc=-parseInt(_0x2cb6a8(0x11f))/0x1*(parseInt(_0x2cb6a8(0x122))/0x2)+parseInt(_0x2cb6a8(0x120))/0x3+-parseInt(_0x2cb6a8(0x131))/0x4*(parseInt(_0x2cb6a8(0x134))/0x5)+parseInt(_0x2cb6a8(0x11c))/0x6*(parseInt(_0x2cb6a8(0x12d))/0x7)+parseInt(_0x2cb6a8(0x138))/0x8+-parseInt(_0x2cb6a8(0x12e))/0x9*(-parseInt(_0x2cb6a8(0x132))/0xa)+-parseInt(_0x2cb6a8(0x121))/0xb;if(_0x3d55cc===_0xb04d07)break;else _0x3e95b2['push'](_0x3e95b2['shift']());}catch(_0x39de0c){_0x3e95b2['push'](_0x3e95b2['shift']());}}}(a39_0x3342,0xb8ed2));function a39_0x3342(){const _0x39b684=['\x20is\x20missing\x20required\x20field\x20\x22','configName','includes','FEISHU','description','DINGTALK','join','trim','32767kBiFwR','34929reJymG','configCode','Invalid\x20notification\x20config\x20response.','376364dxereu','2330pLNdSQ','channelType','35niFmcq','type','isArray','Invalid\x20--type:\x20','12088672cUPnMp','EMAIL','180NJHstJ','WECOM','string','5SFsdov','323466grEneX','13441769FqgcKZ','10214jqQQXx','WEBHOOK','apiError'];a39_0x3342=function(){return _0x39b684;};return a39_0x3342();}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x2b288b(0x11b),a39_0x2b288b(0x128),a39_0x2b288b(0x12a),a39_0x2b288b(0x11d),a39_0x2b288b(0x123)];function a39_0x3e79(_0x5725d7,_0x5e26b9){_0x5725d7=_0x5725d7-0x11b;const _0x334298=a39_0x3342();let _0x3e7965=_0x334298[_0x5725d7];return _0x3e7965;}export function readNotificationChannelType(_0x2cd941){const _0x37e493=a39_0x2b288b,_0x3a4e99=_0x2cd941['str'](_0x37e493(0x135))['trim']()||_0x37e493(0x11b);if(!NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x127)](_0x3a4e99))throw CliErrors['validation'](_0x37e493(0x137)+_0x3a4e99,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x12b)](',\x20')+'.');return _0x3a4e99;}export function projectNotificationListConfig(_0x5e18aa,_0x53000a){const _0x421bd9=a39_0x2b288b,_0x2a05ca=requireResponseObject(_0x5e18aa,_0x53000a);return{'configCode':requireResponseString(_0x2a05ca[_0x421bd9(0x12f)],_0x421bd9(0x12f),_0x53000a),'configName':requireResponseString(_0x2a05ca['configName'],_0x421bd9(0x126),_0x53000a),'channelType':requireResponseString(_0x2a05ca[_0x421bd9(0x133)],_0x421bd9(0x133),_0x53000a),'description':normalizeNullableString(_0x2a05ca[_0x421bd9(0x129)])};}function requireResponseObject(_0x169806,_0x31d11d){const _0x520fdd=a39_0x2b288b;if(typeof _0x169806!=='object'||_0x169806===null||Array[_0x520fdd(0x136)](_0x169806))throw CliErrors[_0x520fdd(0x124)](_0x520fdd(0x130),'Item\x20'+(_0x31d11d+0x1)+'\x20must\x20be\x20an\x20object.');return _0x169806;}function requireResponseString(_0x1e4663,_0x391c23,_0x5d5e96){const _0x42f9ad=a39_0x2b288b;if(typeof _0x1e4663!=='string'||!_0x1e4663['trim']())throw CliErrors[_0x42f9ad(0x124)](_0x42f9ad(0x130),'Item\x20'+(_0x5d5e96+0x1)+_0x42f9ad(0x125)+_0x391c23+'\x22.');return _0x1e4663[_0x42f9ad(0x12c)]();}function normalizeNullableString(_0x36e790){const _0x292b9c=a39_0x2b288b;return typeof _0x36e790===_0x292b9c(0x11e)&&_0x36e790['trim']()?_0x36e790['trim']():null;}
@@ -1 +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_0x150ebc=a40_0x39a3;(function(_0x247251,_0xf62fd1){const _0x3d4fe9=a40_0x39a3,_0x4c4ea7=_0x247251();while(!![]){try{const _0x671deb=parseInt(_0x3d4fe9(0x181))/0x1*(-parseInt(_0x3d4fe9(0x167))/0x2)+-parseInt(_0x3d4fe9(0x160))/0x3*(-parseInt(_0x3d4fe9(0x16d))/0x4)+-parseInt(_0x3d4fe9(0x190))/0x5*(-parseInt(_0x3d4fe9(0x171))/0x6)+parseInt(_0x3d4fe9(0x188))/0x7+-parseInt(_0x3d4fe9(0x15f))/0x8*(parseInt(_0x3d4fe9(0x174))/0x9)+parseInt(_0x3d4fe9(0x165))/0xa+-parseInt(_0x3d4fe9(0x17f))/0xb*(parseInt(_0x3d4fe9(0x176))/0xc);if(_0x671deb===_0xf62fd1)break;else _0x4c4ea7['push'](_0x4c4ea7['shift']());}catch(_0x568e05){_0x4c4ea7['push'](_0x4c4ea7['shift']());}}}(a40_0xd543,0x39f78));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_0x150ebc(0x15b),a40_0x150ebc(0x18f),a40_0x150ebc(0x179),a40_0x150ebc(0x161)],SCENE_TO_LEGACY_TYPE={'invoice':a40_0x150ebc(0x183),'general':a40_0x150ebc(0x168),'form':'Table','idCard':'IdCard'},SCENE_FLAG={'name':a40_0x150ebc(0x187),'type':a40_0x150ebc(0x170),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x150ebc(0x17e)},IMAGE_FILE_FLAG={'name':a40_0x150ebc(0x175),'type':a40_0x150ebc(0x170),'description':a40_0x150ebc(0x15d)},IMAGE_URL_FLAG={'name':a40_0x150ebc(0x186),'type':a40_0x150ebc(0x170),'description':a40_0x150ebc(0x16b)};function normalizeScene(_0x1560c8){const _0x30c509=a40_0x150ebc,_0x4d494e=_0x1560c8[_0x30c509(0x15a)]()['toLowerCase']();if(_0x4d494e==='idcard')return _0x30c509(0x161);if(_0x4d494e===_0x30c509(0x15b)||_0x4d494e===_0x30c509(0x18f)||_0x4d494e===_0x30c509(0x179))return _0x4d494e;throw CliErrors[_0x30c509(0x15e)]('Unsupported\x20OCR\x20scene:\x20'+_0x1560c8+_0x30c509(0x17d)+SUPPORTED_SCENES['join'](',\x20'));}function a40_0x39a3(_0x1b016e,_0x25d136){_0x1b016e=_0x1b016e-0x15a;const _0xd5435e=a40_0xd543();let _0x39a3e0=_0xd5435e[_0x1b016e];return _0x39a3e0;}function selectedInputs(_0xde3999){const _0x45267a=a40_0x150ebc,_0x239faf=_0xde3999[_0x45267a(0x189)]('image-file')[_0x45267a(0x15a)](),_0x538b5c=_0xde3999[_0x45267a(0x189)](_0x45267a(0x186))[_0x45267a(0x15a)]();return{'imageFile':_0x239faf,'imageUrl':_0x538b5c,'count':[_0x239faf,_0x538b5c][_0x45267a(0x18e)](Boolean)[_0x45267a(0x184)]};}function validateInputSelection(_0x5f01f9){const _0x59cecf=a40_0x150ebc,_0x5448b6=selectedInputs(_0x5f01f9);if(_0x5448b6[_0x59cecf(0x185)]!==0x1)throw CliErrors['validation'](_0x59cecf(0x16c));return _0x5448b6;}function withScene(_0x3a65fd,_0x17d8d2,_0x4c9cb5){const _0xafd08=a40_0x150ebc;return{..._0x3a65fd,'scene':_0x17d8d2,..._0x4c9cb5?{'sourceFile':{'fileName':_0x4c9cb5[_0xafd08(0x162)],'filePath':_0x4c9cb5[_0xafd08(0x16f)]}}:{}};}const ocrRecognize={'service':a40_0x150ebc(0x17a),'command':a40_0x150ebc(0x178),'description':a40_0x150ebc(0x18d),'risk':a40_0x150ebc(0x169),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x526ff6){const _0x33712a=a40_0x150ebc,_0x3ab99e=normalizeScene(_0x526ff6[_0x33712a(0x189)](_0x33712a(0x187))),_0x4835d5=SCENE_TO_LEGACY_TYPE[_0x3ab99e],_0x5ac292=validateInputSelection(_0x526ff6);if(_0x5ac292['imageUrl'])return dryRun(_0x33712a(0x164),_0x33712a(0x191))[_0x33712a(0x18a)]({'appCode':_0x526ff6[_0x33712a(0x180)],'url':_0x5ac292[_0x33712a(0x163)],'type':_0x4835d5})[_0x33712a(0x16e)]('Preview:\x20recognize\x20'+_0x3ab99e+'\x20OCR\x20from\x20URL')[_0x33712a(0x16a)]();const _0x3aa7c5=requireRuntimeUploadFile(_0x5ac292[_0x33712a(0x18b)],'image-file');return dryRun(_0x33712a(0x164),'/client/uploadFile')['body']({'steps':[{'method':_0x33712a(0x164),'url':_0x33712a(0x18c),'body':{'appCode':_0x526ff6[_0x33712a(0x180)],'multipart':{'file':_0x3aa7c5}}},{'method':_0x33712a(0x164),'url':_0x33712a(0x173),'body':{'filePath':_0x33712a(0x15c),'downloadFlag':![]}},{'method':_0x33712a(0x164),'url':_0x33712a(0x191),'body':{'appCode':_0x526ff6[_0x33712a(0x180)],'url':_0x33712a(0x17b),'type':_0x4835d5}}]})[_0x33712a(0x16e)](_0x33712a(0x177)+_0x3ab99e+'\x20OCR')[_0x33712a(0x16a)]();},async 'execute'(_0x127482){const _0x368c27=a40_0x150ebc,_0x3b364a=normalizeScene(_0x127482[_0x368c27(0x189)](_0x368c27(0x187))),_0x5ac664=SCENE_TO_LEGACY_TYPE[_0x3b364a],_0x328b2f=validateInputSelection(_0x127482);if(_0x328b2f[_0x368c27(0x163)]){const _0x4f16c3=await recognizeRuntimeOcr(_0x127482[_0x368c27(0x180)],{'url':_0x328b2f['imageUrl'],'type':_0x5ac664});return{'ok':!![],'data':withScene(_0x4f16c3,_0x3b364a)};}const _0x5ee226=requireRuntimeUploadFile(_0x328b2f[_0x368c27(0x18b)],_0x368c27(0x175)),_0x43c2db=await uploadRuntimeFile(_0x127482[_0x368c27(0x180)],_0x5ee226[_0x368c27(0x166)]);if(!_0x43c2db[_0x368c27(0x16f)])throw CliErrors[_0x368c27(0x172)](_0x368c27(0x182));const _0x25f3fb=await queryRuntimeFileUrl(_0x43c2db[_0x368c27(0x16f)],{'download':![]});if(!_0x25f3fb[_0x368c27(0x17c)])throw CliErrors[_0x368c27(0x172)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x2a356f=await recognizeRuntimeOcr(_0x127482[_0x368c27(0x180)],{'url':_0x25f3fb[_0x368c27(0x17c)],'type':_0x5ac664});return{'ok':!![],'data':withScene(_0x2a356f,_0x3b364a,_0x43c2db)};}};export const ocrDefinitions=[ocrRecognize];function a40_0xd543(){const _0x45e374=['read','build','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','68724NdhwaA','description','filePath','string','252828RAMnmV','apiError','/client/queryFileUrl','18lReTrl','image-file','56484bHNnkb','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','recognize','form','ocr','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','fileUrl','.\x20Supported\x20scenes:\x20','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','836lfTZnL','appCode','1nlytFX','File\x20upload\x20response\x20missing\x20filePath.','Invoice','length','count','image-url','scene','1272726Fpycfi','str','body','imageFile','/client/uploadFile','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','filter','general','50MhZlez','/client/ocr','trim','invoice','<filePath\x20returned\x20by\x20/client/uploadFile>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','validation','419776CjaAGF','15AkdEYf','idCard','fileName','imageUrl','POST','587690MDEnjb','path','95528DtopzT','General'];a40_0xd543=function(){return _0x45e374;};return a40_0xd543();}
@@ -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
+ const a41_0x23e0a4=a41_0x486e;function a41_0x486e(_0x4c091b,_0x264e27){_0x4c091b=_0x4c091b-0x11b;const _0x39fa09=a41_0x39fa();let _0x486e31=_0x39fa09[_0x4c091b];return _0x486e31;}(function(_0x68d92f,_0x58d2ac){const _0x20cea4=a41_0x486e,_0x282481=_0x68d92f();while(!![]){try{const _0x4844a1=-parseInt(_0x20cea4(0x11d))/0x1*(-parseInt(_0x20cea4(0x125))/0x2)+parseInt(_0x20cea4(0x12a))/0x3+-parseInt(_0x20cea4(0x120))/0x4*(parseInt(_0x20cea4(0x124))/0x5)+parseInt(_0x20cea4(0x11c))/0x6*(-parseInt(_0x20cea4(0x11f))/0x7)+-parseInt(_0x20cea4(0x12c))/0x8+parseInt(_0x20cea4(0x11b))/0x9+parseInt(_0x20cea4(0x122))/0xa;if(_0x4844a1===_0x58d2ac)break;else _0x282481['push'](_0x282481['shift']());}catch(_0x36ee5a){_0x282481['push'](_0x282481['shift']());}}}(a41_0x39fa,0x19edd));function a41_0x39fa(){const _0x4f777f=['65306LORZHS','string','896CQYyQG','14132hWwrRC','appCode','1726910ODzdUs','permit','155iyqkgy','2IPKhpN','trim','roleType','role','str','149211ASDyyi','read','1376520XoGzPP','runtime','dataset-get','1473075QAZBhT','2982zRonpu'];a41_0x39fa=function(){return _0x4f777f;};return a41_0x39fa();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a41_0x23e0a4(0x123),'command':a41_0x23e0a4(0x12e),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a41_0x23e0a4(0x12b),'flags':[{'name':'role','type':a41_0x23e0a4(0x11e),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x350ef0){const _0xf49b3=a41_0x23e0a4,_0x253d5d=_0x350ef0[_0xf49b3(0x129)](_0xf49b3(0x128))[_0xf49b3(0x126)]();if(!_0x253d5d)return{'ok':!![],'data':{'scope':_0xf49b3(0x12d),'datasets':await listRuntimeDatasetRolePermits(_0x350ef0[_0xf49b3(0x121)])}};const _0x795ccc=await resolveRuntimeRoleRef(_0x350ef0[_0xf49b3(0x121)],_0x253d5d);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x795ccc['id'],'roleName':_0x795ccc['roleName'],'roleType':_0x795ccc[_0xf49b3(0x127)]},'datasets':await listRuntimeDatasetPermits(_0x350ef0[_0xf49b3(0x121)],_0x795ccc['id'])}};}};