@lovrabet/lovrabet-cli 2.3.2 → 2.3.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) 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.d.ts +15 -0
  12. package/lib/commands/approval/index.js +1 -0
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.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 +83 -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/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/skills/builtin-skill.js +1 -1
  140. package/lib/skills/npx-skills-add.js +1 -1
  141. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  142. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  143. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  144. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  145. package/lib/skills/runtime-skill-sync/links.js +1 -1
  146. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  147. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  148. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  149. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  150. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  151. package/lib/skills/runtime-skill-sync/push.js +1 -1
  152. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  155. package/lib/skills/runtime-skill-sync.js +1 -1
  156. package/lib/skills/skill-presence.js +1 -1
  157. package/lib/utils/access-key-redaction.js +1 -1
  158. package/lib/utils/apply-jq-filter.js +1 -1
  159. package/lib/utils/cli-version-check.js +1 -1
  160. package/lib/utils/cli-version-policy.js +1 -1
  161. package/lib/utils/logger.js +1 -1
  162. package/lib/utils/lossless-json.js +1 -1
  163. package/lib/utils/params.js +1 -1
  164. package/lib/utils/positive-safe-integer.d.ts +5 -0
  165. package/lib/utils/positive-safe-integer.js +1 -0
  166. package/lib/utils/redaction.d.ts +17 -0
  167. package/lib/utils/redaction.js +1 -0
  168. package/lib/utils/update-notice.js +1 -1
  169. package/lib/utils/version.js +1 -1
  170. package/lib/utils/write-cli-side-channel.js +1 -1
  171. package/package.json +1 -1
  172. package/skills/lovrabet/SKILL.md +3 -2
  173. package/skills/lovrabet/references/lovrabet-approval-workflow.md +73 -0
  174. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- const a26_0x57a403=a26_0x8309;(function(_0x3afaf1,_0x2b37f3){const _0x109f18=a26_0x8309,_0x24dbb8=_0x3afaf1();while(!![]){try{const _0x3ad3b7=parseInt(_0x109f18(0x130))/0x1*(parseInt(_0x109f18(0x153))/0x2)+-parseInt(_0x109f18(0x147))/0x3+parseInt(_0x109f18(0x12e))/0x4+parseInt(_0x109f18(0x11b))/0x5*(-parseInt(_0x109f18(0x13d))/0x6)+parseInt(_0x109f18(0x124))/0x7*(-parseInt(_0x109f18(0x138))/0x8)+-parseInt(_0x109f18(0x119))/0x9*(-parseInt(_0x109f18(0x143))/0xa)+-parseInt(_0x109f18(0x141))/0xb;if(_0x3ad3b7===_0x2b37f3)break;else _0x24dbb8['push'](_0x24dbb8['shift']());}catch(_0x3829d3){_0x24dbb8['push'](_0x24dbb8['shift']());}}}(a26_0x3c38,0x8c0a8));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x9b44e6){const _0x5087fc=a26_0x8309;if(_0x9b44e6[_0x5087fc(0x14f)])return null;const _0x13efdb=Boolean(_0x9b44e6[_0x5087fc(0x159)]!==undefined||_0x9b44e6[_0x5087fc(0x13f)]!==undefined);let _0x8b6bbf={};if(!_0x13efdb&&typeof _0x9b44e6[_0x5087fc(0x127)]==='string')try{_0x8b6bbf=JSON[_0x5087fc(0x15a)](_0x9b44e6[_0x5087fc(0x127)]);}catch{}const _0x2972ed=_0x13efdb?_0x9b44e6[_0x5087fc(0x12d)]:_0x9b44e6[_0x5087fc(0x145)],_0x199b06=_0x13efdb?_0x9b44e6[_0x5087fc(0x159)]:_0x9b44e6[_0x5087fc(0x12d)],_0x15b859=_0x13efdb?_0x9b44e6[_0x5087fc(0x13f)]:_0x9b44e6['type']||_0x9b44e6[_0x5087fc(0x132)],_0x3f149e=_0x13efdb?_0x9b44e6[_0x5087fc(0x14c)]===!![]:_0x8b6bbf[_0x5087fc(0x14c)]===!![],_0x23cf3c=_0x13efdb?_0x9b44e6[_0x5087fc(0x14b)]===!![]:_0x8b6bbf[_0x5087fc(0x14b)]===!![],_0x5b5a63=_0x13efdb?_0x9b44e6['options']??null:_0x8b6bbf[_0x5087fc(0x116)]??null,_0xba146f={'name':_0x2972ed,'displayName':_0x199b06||_0x2972ed,'type':_0x15b859,'dbType':_0x9b44e6[_0x5087fc(0x142)],'pk':_0x3f149e,'required':_0x23cf3c,'description':_0x9b44e6[_0x5087fc(0x151)]||undefined};return Array[_0x5087fc(0x11e)](_0x5b5a63)&&_0x5b5a63[_0x5087fc(0x121)]>0x0&&(_0xba146f[_0x5087fc(0x116)]=_0x5b5a63),_0xba146f;}function parseJsonMaybe(_0xb58176){const _0x197569=a26_0x8309;if(typeof _0xb58176!==_0x197569(0x154))return _0xb58176;try{return JSON[_0x197569(0x15a)](_0xb58176);}catch{return _0xb58176;}}function a26_0x3c38(){const _0x15c19e=['14FhZiXk','trim','responseBody','extend','source','allFieldNames','modifierIdField','map','method','name','3845200xKfiCN','str','20mXxrRn','relatedPageInfoList','dataType','properties','entries','dbName','responseFields','dblinkInfoDTO','1986472DdRuNq','title','creatorIdField','creatorNameField','allFields','46644kuQBoT','detail','doType','indexes','590711rezvKN','dbType','10JWTHOa','dbtableConfig','code','filter','285948KXHvXp','read','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','requestBody','required','pkField','datasetKey','dbId','deleted','columnCodeListWithDeleted','description','dataset','71860CApFAp','string','afterScriptId','doVersion','requestFields','beforeScriptId','displayName','parse','tableComment','fields','host','options','type','logicField','1661265HkQRCd','tableName','415iyXflB','split','modelCode','isArray','modifierNameField','modelId','length','appCode','validateRules'];a26_0x3c38=function(){return _0x15c19e;};return a26_0x3c38();}function normalizeOperationEntry(_0x5c43a9,_0x3ebb10){const _0x103c7d=a26_0x8309;if(!_0x3ebb10||typeof _0x3ebb10!=='object')return null;if(!_0x3ebb10['method']||!_0x3ebb10['path'])return null;const _0x40138e={'name':_0x5c43a9,'method':_0x3ebb10[_0x103c7d(0x12c)],'path':_0x3ebb10['path']};if(_0x3ebb10[_0x103c7d(0x15d)])_0x40138e['host']=_0x3ebb10['host'];if(_0x3ebb10[_0x103c7d(0x14a)]!=null)_0x40138e[_0x103c7d(0x14a)]=parseJsonMaybe(_0x3ebb10['requestBody']);if(_0x3ebb10[_0x103c7d(0x126)]!=null)_0x40138e[_0x103c7d(0x126)]=parseJsonMaybe(_0x3ebb10[_0x103c7d(0x126)]);if(_0x3ebb10[_0x103c7d(0x158)]!=null)_0x40138e[_0x103c7d(0x158)]=_0x3ebb10[_0x103c7d(0x158)];if(_0x3ebb10[_0x103c7d(0x155)]!=null)_0x40138e[_0x103c7d(0x155)]=_0x3ebb10['afterScriptId'];if(Array[_0x103c7d(0x11e)](_0x3ebb10[_0x103c7d(0x157)]))_0x40138e[_0x103c7d(0x157)]=_0x3ebb10['requestFields'];if(Array[_0x103c7d(0x11e)](_0x3ebb10[_0x103c7d(0x136)]))_0x40138e[_0x103c7d(0x136)]=_0x3ebb10[_0x103c7d(0x136)];return _0x40138e;}function summarizeDbtable(_0xc9dab9){const _0x23a4b8=a26_0x8309,_0x1dd2c3={},_0x2e5810=[_0x23a4b8(0x14e),_0x23a4b8(0x135),_0x23a4b8(0x11a),_0x23a4b8(0x14d),_0x23a4b8(0x14c),_0x23a4b8(0x13c),_0x23a4b8(0x118),'createTimeField','updateTimeField',_0x23a4b8(0x13a),_0x23a4b8(0x13b),_0x23a4b8(0x12a),_0x23a4b8(0x11f),'labelField',_0x23a4b8(0x137)];for(const _0x5ccdb8 of _0x2e5810){if(_0xc9dab9[_0x5ccdb8]!==undefined)_0x1dd2c3[_0x5ccdb8]=_0xc9dab9[_0x5ccdb8];}return typeof _0x1dd2c3[_0x23a4b8(0x13c)]==='string'&&_0x1dd2c3[_0x23a4b8(0x13c)]['length']>0x0&&(_0x1dd2c3[_0x23a4b8(0x129)]=_0x1dd2c3[_0x23a4b8(0x13c)][_0x23a4b8(0x11c)](',')['map'](_0x33c10d=>_0x33c10d[_0x23a4b8(0x125)]())[_0x23a4b8(0x146)](Boolean)),_0x1dd2c3;}function normalizeRelatedPages(_0x243979){const _0x32de66=a26_0x8309;if(!Array[_0x32de66(0x11e)](_0x243979))return[];return _0x243979[_0x32de66(0x146)](_0x102818=>_0x102818&&typeof _0x102818==='object')[_0x32de66(0x12b)](_0x48b5b3=>({'id':_0x48b5b3['id'],'type':_0x48b5b3[_0x32de66(0x117)],'code':_0x48b5b3[_0x32de66(0x145)],'title':_0x48b5b3[_0x32de66(0x139)],'deleted':_0x48b5b3[_0x32de66(0x14f)]===!![]}));}function normalizeFallbackFieldName(_0x219efb,_0x3df75c){const _0xbb9474=_0x219efb['trim']();if(!_0xbb9474)return null;return{'name':_0xbb9474,'displayName':_0xbb9474,'type':undefined,'dbType':undefined,'pk':_0xbb9474===_0x3df75c,'required':![],'description':undefined};}function a26_0x8309(_0x3f13da,_0x40ba5b){_0x3f13da=_0x3f13da-0x116;const _0x3c382f=a26_0x3c38();let _0x8309f8=_0x3c382f[_0x3f13da];return _0x8309f8;}async function loadListFieldFallback(_0x14483,_0x30d109){const _0x421eaa=a26_0x8309;if(!_0x14483||!_0x30d109)return[];try{const _0x2c9cb3=await listDatasets(_0x14483,{'code':_0x30d109}),_0x7c3acb=_0x2c9cb3['find'](_0x23693a=>_0x23693a[_0x421eaa(0x145)]===_0x30d109)??_0x2c9cb3[0x0],_0xd5a3b=_0x7c3acb?.[_0x421eaa(0x144)]??{},_0x15ddd3=typeof _0xd5a3b[_0x421eaa(0x13c)]===_0x421eaa(0x154)?_0xd5a3b[_0x421eaa(0x13c)]['split'](','):[];return _0x15ddd3[_0x421eaa(0x12b)](_0x2b5509=>normalizeFallbackFieldName(_0x2b5509,_0xd5a3b['pkField']))['filter'](_0x45f479=>_0x45f479!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a26_0x57a403(0x13e),'description':a26_0x57a403(0x149),'risk':a26_0x57a403(0x148),'flags':[CODE_FLAG],async 'execute'(_0x366073){const _0x23c105=a26_0x57a403,_0x33c3f0=await getDatasetDetail(_0x366073[_0x23c105(0x12f)](_0x23c105(0x145))),_0x24dcc2=Array[_0x23c105(0x11e)](_0x33c3f0[_0x23c105(0x15c)])?_0x33c3f0[_0x23c105(0x15c)]:Array[_0x23c105(0x11e)](_0x33c3f0['properties'])?_0x33c3f0[_0x23c105(0x133)]:[];let _0x2582fd=_0x24dcc2[_0x23c105(0x12b)](_0x27744b=>normalizeField(_0x27744b))[_0x23c105(0x146)](_0x14360b=>_0x14360b!==null);_0x2582fd[_0x23c105(0x121)]===0x0&&(_0x2582fd=await loadListFieldFallback(_0x366073[_0x23c105(0x122)],_0x366073[_0x23c105(0x12f)](_0x23c105(0x145))));const _0x293267=_0x33c3f0['operations']??{},_0x2d30a5=[];for(const [_0x353632,_0x2dfb7a]of Object[_0x23c105(0x134)](_0x293267)){const _0x439e85=normalizeOperationEntry(_0x353632,_0x2dfb7a);if(_0x439e85)_0x2d30a5['push'](_0x439e85);}const _0x156bfc=_0x33c3f0[_0x23c105(0x144)]??{},_0xece6da=_0x33c3f0[_0x23c105(0x152)]??{},_0xe72a96=_0x156bfc[_0x23c105(0x14e)]!=null?{'id':_0x156bfc[_0x23c105(0x14e)],'name':_0x156bfc['dbName']??null}:undefined;let _0x3d84ba;return typeof _0x33c3f0[_0x23c105(0x127)]===_0x23c105(0x154)&&(_0x3d84ba=parseJsonMaybe(_0x33c3f0['extend'])),{'ok':!![],'data':{'id':_0x33c3f0[_0x23c105(0x120)]??_0x33c3f0['id'],'name':_0x33c3f0[_0x23c105(0x12d)],'code':_0x33c3f0[_0x23c105(0x11d)]||_0x33c3f0[_0x23c105(0x145)],'doVersion':_0x33c3f0[_0x23c105(0x156)],'description':_0x33c3f0[_0x23c105(0x151)]||_0xece6da[_0x23c105(0x15b)]||undefined,'source':_0x33c3f0[_0x23c105(0x128)]||_0xece6da['sourceType'],'table':_0x156bfc[_0x23c105(0x11a)]||_0xece6da[_0x23c105(0x11a)],'datasetKey':_0x156bfc['datasetKey'],'pk':_0x156bfc[_0x23c105(0x14c)],'db':_0xe72a96,'dbtable':summarizeDbtable(_0x156bfc),'fields':_0x2582fd,'operations':_0x2d30a5,'indexes':Array[_0x23c105(0x11e)](_0xece6da[_0x23c105(0x140)])?_0xece6da[_0x23c105(0x140)]:[],'relations':_0x33c3f0['relations']??null,'relatedPages':normalizeRelatedPages(_0x33c3f0[_0x23c105(0x131)]),...Array[_0x23c105(0x11e)](_0x33c3f0[_0x23c105(0x150)])?{'columnCodeListWithDeleted':_0x33c3f0[_0x23c105(0x150)]}:{},'formatRules':Array[_0x23c105(0x11e)](_0x33c3f0['formatRules'])?_0x33c3f0['formatRules']:[],'validateRules':Array[_0x23c105(0x11e)](_0x33c3f0[_0x23c105(0x123)])?_0x33c3f0[_0x23c105(0x123)]:[],..._0x3d84ba!==undefined?{'extend':_0x3d84ba}:{},'stats':{'fieldCount':_0x2582fd[_0x23c105(0x121)],'operationCount':_0x2d30a5[_0x23c105(0x121)]}}};}};
1
+ const a27_0x112cb3=a27_0x1def;(function(_0x3137ee,_0x75d1c5){const _0x598828=a27_0x1def,_0x13bde2=_0x3137ee();while(!![]){try{const _0x2134d7=parseInt(_0x598828(0xfc))/0x1+parseInt(_0x598828(0x130))/0x2*(-parseInt(_0x598828(0x10f))/0x3)+-parseInt(_0x598828(0xf1))/0x4+-parseInt(_0x598828(0xef))/0x5+-parseInt(_0x598828(0xf2))/0x6+-parseInt(_0x598828(0xff))/0x7*(parseInt(_0x598828(0xf7))/0x8)+parseInt(_0x598828(0x10c))/0x9;if(_0x2134d7===_0x75d1c5)break;else _0x13bde2['push'](_0x13bde2['shift']());}catch(_0x2d99d6){_0x13bde2['push'](_0x13bde2['shift']());}}}(a27_0x4bae,0xf33ac));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a27_0x1def(_0x41d5dd,_0x445c9c){_0x41d5dd=_0x41d5dd-0xeb;const _0x4bae56=a27_0x4bae();let _0x1def15=_0x4bae56[_0x41d5dd];return _0x1def15;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x119254){const _0x4f29f5=a27_0x1def;if(_0x119254[_0x4f29f5(0x111)])return null;const _0x4b9e15=Boolean(_0x119254[_0x4f29f5(0x12a)]!==undefined||_0x119254[_0x4f29f5(0x11c)]!==undefined);let _0x19718f={};if(!_0x4b9e15&&typeof _0x119254[_0x4f29f5(0x129)]===_0x4f29f5(0x105))try{_0x19718f=JSON[_0x4f29f5(0x11d)](_0x119254['extend']);}catch{}const _0x3288ae=_0x4b9e15?_0x119254['name']:_0x119254[_0x4f29f5(0xf5)],_0x167e77=_0x4b9e15?_0x119254[_0x4f29f5(0x12a)]:_0x119254[_0x4f29f5(0x116)],_0x4a696b=_0x4b9e15?_0x119254['doType']:_0x119254['type']||_0x119254['dataType'],_0x8f8a6b=_0x4b9e15?_0x119254[_0x4f29f5(0x126)]===!![]:_0x19718f[_0x4f29f5(0x126)]===!![],_0x285b94=_0x4b9e15?_0x119254['required']===!![]:_0x19718f[_0x4f29f5(0xf3)]===!![],_0x42e728=_0x4b9e15?_0x119254[_0x4f29f5(0x108)]??null:_0x19718f['options']??null,_0x3d6eac={'name':_0x3288ae,'displayName':_0x167e77||_0x3288ae,'type':_0x4a696b,'dbType':_0x119254[_0x4f29f5(0xfa)],'pk':_0x8f8a6b,'required':_0x285b94,'description':_0x119254[_0x4f29f5(0x124)]||undefined};return Array[_0x4f29f5(0x11e)](_0x42e728)&&_0x42e728[_0x4f29f5(0x107)]>0x0&&(_0x3d6eac[_0x4f29f5(0x108)]=_0x42e728),_0x3d6eac;}function a27_0x4bae(){const _0xc329c8=['11103012jVlceh','required','properties','code','datasetKey','43864TuehGD','creatorIdField','object','dbType','dbId','1333851XxyhoO','doVersion','method','707JVXrOd','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','modelId','indexes','trim','responseFields','string','responseBody','length','options','modelCode','push','tableName','52242552XRDEkf','dataset','requestFields','6tcHakJ','labelField','deleted','operations','updateTimeField','formatRules','sourceType','name','str','afterScriptId','split','dbtableConfig','validateRules','doType','parse','isArray','fields','beforeScriptId','path','appCode','creatorNameField','description','dbName','pkField','filter','source','extend','displayName','relations','requestBody','allFields','host','map','1690588bcAONZ','columnCodeListWithDeleted','tableComment','find','modifierIdField','1858125QAiOzo','dblinkInfoDTO','6703252lIdkWX'];a27_0x4bae=function(){return _0xc329c8;};return a27_0x4bae();}function parseJsonMaybe(_0x469ecc){const _0x4a13b5=a27_0x1def;if(typeof _0x469ecc!==_0x4a13b5(0x105))return _0x469ecc;try{return JSON[_0x4a13b5(0x11d)](_0x469ecc);}catch{return _0x469ecc;}}function normalizeOperationEntry(_0x5417c3,_0x23dbe6){const _0x32fc32=a27_0x1def;if(!_0x23dbe6||typeof _0x23dbe6!=='object')return null;if(!_0x23dbe6[_0x32fc32(0xfe)]||!_0x23dbe6[_0x32fc32(0x121)])return null;const _0x2a4e50={'name':_0x5417c3,'method':_0x23dbe6[_0x32fc32(0xfe)],'path':_0x23dbe6[_0x32fc32(0x121)]};if(_0x23dbe6['host'])_0x2a4e50[_0x32fc32(0x12e)]=_0x23dbe6['host'];if(_0x23dbe6[_0x32fc32(0x12c)]!=null)_0x2a4e50[_0x32fc32(0x12c)]=parseJsonMaybe(_0x23dbe6['requestBody']);if(_0x23dbe6[_0x32fc32(0x106)]!=null)_0x2a4e50['responseBody']=parseJsonMaybe(_0x23dbe6['responseBody']);if(_0x23dbe6[_0x32fc32(0x120)]!=null)_0x2a4e50[_0x32fc32(0x120)]=_0x23dbe6[_0x32fc32(0x120)];if(_0x23dbe6[_0x32fc32(0x118)]!=null)_0x2a4e50[_0x32fc32(0x118)]=_0x23dbe6[_0x32fc32(0x118)];if(Array[_0x32fc32(0x11e)](_0x23dbe6[_0x32fc32(0x10e)]))_0x2a4e50[_0x32fc32(0x10e)]=_0x23dbe6[_0x32fc32(0x10e)];if(Array['isArray'](_0x23dbe6['responseFields']))_0x2a4e50[_0x32fc32(0x104)]=_0x23dbe6[_0x32fc32(0x104)];return _0x2a4e50;}function summarizeDbtable(_0x2a1021){const _0x5b2158=a27_0x1def,_0x3396dd={},_0x54ea6c=[_0x5b2158(0xfb),_0x5b2158(0x125),_0x5b2158(0x10b),_0x5b2158(0xf6),_0x5b2158(0x126),_0x5b2158(0x12d),'logicField','createTimeField',_0x5b2158(0x113),_0x5b2158(0xf8),_0x5b2158(0x123),_0x5b2158(0xee),'modifierNameField',_0x5b2158(0x110),_0x5b2158(0xf0)];for(const _0x29fe98 of _0x54ea6c){if(_0x2a1021[_0x29fe98]!==undefined)_0x3396dd[_0x29fe98]=_0x2a1021[_0x29fe98];}return typeof _0x3396dd[_0x5b2158(0x12d)]==='string'&&_0x3396dd[_0x5b2158(0x12d)]['length']>0x0&&(_0x3396dd['allFieldNames']=_0x3396dd[_0x5b2158(0x12d)][_0x5b2158(0x119)](',')[_0x5b2158(0x12f)](_0x10872f=>_0x10872f[_0x5b2158(0x103)]())['filter'](Boolean)),_0x3396dd;}function normalizeRelatedPages(_0x157869){const _0x380c9e=a27_0x1def;if(!Array[_0x380c9e(0x11e)](_0x157869))return[];return _0x157869[_0x380c9e(0x127)](_0x5f4333=>_0x5f4333&&typeof _0x5f4333===_0x380c9e(0xf9))[_0x380c9e(0x12f)](_0x3391e5=>({'id':_0x3391e5['id'],'type':_0x3391e5['type'],'code':_0x3391e5[_0x380c9e(0xf5)],'title':_0x3391e5['title'],'deleted':_0x3391e5[_0x380c9e(0x111)]===!![]}));}function normalizeFallbackFieldName(_0x4b4ec2,_0x110feb){const _0x391b00=a27_0x1def,_0x4a88ef=_0x4b4ec2[_0x391b00(0x103)]();if(!_0x4a88ef)return null;return{'name':_0x4a88ef,'displayName':_0x4a88ef,'type':undefined,'dbType':undefined,'pk':_0x4a88ef===_0x110feb,'required':![],'description':undefined};}async function loadListFieldFallback(_0x52f2c7,_0x498b58){const _0x41210f=a27_0x1def;if(!_0x52f2c7||!_0x498b58)return[];try{const _0x473bae=await listDatasets(_0x52f2c7,{'code':_0x498b58}),_0x1be5f7=_0x473bae[_0x41210f(0xed)](_0x3709fc=>_0x3709fc[_0x41210f(0xf5)]===_0x498b58)??_0x473bae[0x0],_0x29a582=_0x1be5f7?.[_0x41210f(0x11a)]??{},_0x1994c9=typeof _0x29a582['allFields']==='string'?_0x29a582['allFields']['split'](','):[];return _0x1994c9[_0x41210f(0x12f)](_0x551acd=>normalizeFallbackFieldName(_0x551acd,_0x29a582['pkField']))[_0x41210f(0x127)](_0x5d121a=>_0x5d121a!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':'detail','description':a27_0x112cb3(0x100),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x4d4b29){const _0x3b2530=a27_0x112cb3,_0x5f27b6=await getDatasetDetail(_0x4d4b29[_0x3b2530(0x117)](_0x3b2530(0xf5))),_0x3904ae=Array[_0x3b2530(0x11e)](_0x5f27b6[_0x3b2530(0x11f)])?_0x5f27b6[_0x3b2530(0x11f)]:Array[_0x3b2530(0x11e)](_0x5f27b6[_0x3b2530(0xf4)])?_0x5f27b6[_0x3b2530(0xf4)]:[];let _0x5e97f5=_0x3904ae[_0x3b2530(0x12f)](_0x142d3b=>normalizeField(_0x142d3b))['filter'](_0x1026ec=>_0x1026ec!==null);_0x5e97f5[_0x3b2530(0x107)]===0x0&&(_0x5e97f5=await loadListFieldFallback(_0x4d4b29[_0x3b2530(0x122)],_0x4d4b29[_0x3b2530(0x117)](_0x3b2530(0xf5))));const _0x5a0ed8=_0x5f27b6[_0x3b2530(0x112)]??{},_0x1c8274=[];for(const [_0x4a6ed0,_0x523092]of Object['entries'](_0x5a0ed8)){const _0x232131=normalizeOperationEntry(_0x4a6ed0,_0x523092);if(_0x232131)_0x1c8274[_0x3b2530(0x10a)](_0x232131);}const _0x3e32f9=_0x5f27b6[_0x3b2530(0x11a)]??{},_0x876de5=_0x5f27b6[_0x3b2530(0x10d)]??{},_0x106652=_0x3e32f9[_0x3b2530(0xfb)]!=null?{'id':_0x3e32f9['dbId'],'name':_0x3e32f9[_0x3b2530(0x125)]??null}:undefined;let _0x2bf975;return typeof _0x5f27b6[_0x3b2530(0x129)]==='string'&&(_0x2bf975=parseJsonMaybe(_0x5f27b6[_0x3b2530(0x129)])),{'ok':!![],'data':{'id':_0x5f27b6[_0x3b2530(0x101)]??_0x5f27b6['id'],'name':_0x5f27b6[_0x3b2530(0x116)],'code':_0x5f27b6[_0x3b2530(0x109)]||_0x5f27b6['code'],'doVersion':_0x5f27b6[_0x3b2530(0xfd)],'description':_0x5f27b6['description']||_0x876de5[_0x3b2530(0xec)]||undefined,'source':_0x5f27b6[_0x3b2530(0x128)]||_0x876de5[_0x3b2530(0x115)],'table':_0x3e32f9[_0x3b2530(0x10b)]||_0x876de5[_0x3b2530(0x10b)],'datasetKey':_0x3e32f9['datasetKey'],'pk':_0x3e32f9[_0x3b2530(0x126)],'db':_0x106652,'dbtable':summarizeDbtable(_0x3e32f9),'fields':_0x5e97f5,'operations':_0x1c8274,'indexes':Array['isArray'](_0x876de5[_0x3b2530(0x102)])?_0x876de5[_0x3b2530(0x102)]:[],'relations':_0x5f27b6[_0x3b2530(0x12b)]??null,'relatedPages':normalizeRelatedPages(_0x5f27b6['relatedPageInfoList']),...Array[_0x3b2530(0x11e)](_0x5f27b6[_0x3b2530(0xeb)])?{'columnCodeListWithDeleted':_0x5f27b6[_0x3b2530(0xeb)]}:{},'formatRules':Array[_0x3b2530(0x11e)](_0x5f27b6[_0x3b2530(0x114)])?_0x5f27b6[_0x3b2530(0x114)]:[],'validateRules':Array['isArray'](_0x5f27b6[_0x3b2530(0x11b)])?_0x5f27b6[_0x3b2530(0x11b)]:[],..._0x2bf975!==undefined?{'extend':_0x2bf975}:{},'stats':{'fieldCount':_0x5e97f5[_0x3b2530(0x107)],'operationCount':_0x1c8274['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x10cab4,_0x13eba5){const _0x59c739=a27_0x5808,_0x5de457=_0x10cab4();while(!![]){try{const _0x230748=-parseInt(_0x59c739(0xc9))/0x1+parseInt(_0x59c739(0xcb))/0x2*(parseInt(_0x59c739(0xc7))/0x3)+parseInt(_0x59c739(0xc6))/0x4+-parseInt(_0x59c739(0xce))/0x5*(parseInt(_0x59c739(0xcc))/0x6)+parseInt(_0x59c739(0xca))/0x7*(-parseInt(_0x59c739(0xcd))/0x8)+parseInt(_0x59c739(0xcf))/0x9+-parseInt(_0x59c739(0xd0))/0xa*(-parseInt(_0x59c739(0xc8))/0xb);if(_0x230748===_0x13eba5)break;else _0x5de457['push'](_0x5de457['shift']());}catch(_0x3dbeae){_0x5de457['push'](_0x5de457['shift']());}}}(a27_0x3680,0x9a14c));function a27_0x5808(_0x365614,_0x131268){_0x365614=_0x365614-0xc6;const _0x368042=a27_0x3680();let _0x580876=_0x368042[_0x365614];return _0x580876;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a27_0x3680(){const _0x4a87e2=['2842592OZCKfS','3UWIgWL','550YLESVy','1182956EeCERl','21aVeONL','626642aNmDNF','294VRQEnq','2177064JPcMMu','114545gNLtRP','2871837YEUygi','481990GvLsVf'];a27_0x3680=function(){return _0x4a87e2;};return a27_0x3680();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x343b72,_0x40c9eb){const _0x28b294=a28_0xec57,_0x3d740c=_0x343b72();while(!![]){try{const _0x29c69a=-parseInt(_0x28b294(0x90))/0x1+parseInt(_0x28b294(0x87))/0x2*(parseInt(_0x28b294(0x8c))/0x3)+parseInt(_0x28b294(0x8b))/0x4*(parseInt(_0x28b294(0x89))/0x5)+-parseInt(_0x28b294(0x8d))/0x6*(parseInt(_0x28b294(0x88))/0x7)+parseInt(_0x28b294(0x8a))/0x8*(parseInt(_0x28b294(0x91))/0x9)+parseInt(_0x28b294(0x8e))/0xa+-parseInt(_0x28b294(0x8f))/0xb;if(_0x29c69a===_0x40c9eb)break;else _0x3d740c['push'](_0x3d740c['shift']());}catch(_0x578f70){_0x3d740c['push'](_0x3d740c['shift']());}}}(a28_0x3c1c,0xc8f70));function a28_0xec57(_0x3a4747,_0x1c4d92){_0x3a4747=_0x3a4747-0x87;const _0x3c1cb7=a28_0x3c1c();let _0xec57bd=_0x3c1cb7[_0x3a4747];return _0xec57bd;}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];function a28_0x3c1c(){const _0xc3c6ff=['13691043JOTBtG','610932HjxWtZ','56qLECuo','1157545IZmgAL','8eWSmoG','12dnMHHe','12GFHYpm','553824wMWHna','4755020KXSQuR','11077132BtdhFz','1344524vgNaTe'];a28_0x3c1c=function(){return _0xc3c6ff;};return a28_0x3c1c();}
@@ -1 +1 @@
1
- const a28_0x184fe1=a28_0x4d13;(function(_0x3907f9,_0x3eb1df){const _0x21e742=a28_0x4d13,_0x3726b5=_0x3907f9();while(!![]){try{const _0x1349b6=parseInt(_0x21e742(0x197))/0x1*(-parseInt(_0x21e742(0x192))/0x2)+-parseInt(_0x21e742(0x18b))/0x3+-parseInt(_0x21e742(0x190))/0x4*(-parseInt(_0x21e742(0x183))/0x5)+-parseInt(_0x21e742(0x189))/0x6+-parseInt(_0x21e742(0x182))/0x7+-parseInt(_0x21e742(0x193))/0x8+parseInt(_0x21e742(0x18c))/0x9;if(_0x1349b6===_0x3eb1df)break;else _0x3726b5['push'](_0x3726b5['shift']());}catch(_0xf52746){_0x3726b5['push'](_0x3726b5['shift']());}}}(a28_0x4ee2,0x7c580));function a28_0x4d13(_0x18db69,_0x55e3c5){_0x18db69=_0x18db69-0x180;const _0x4ee206=a28_0x4ee2();let _0x4d13b4=_0x4ee206[_0x18db69];return _0x4d13b4;}function a28_0x4ee2(){const _0x1f0b77=['280821LzXrNu','source','length','code','3432086dzcpqT','325maSnUm','dbtableConfig','str','appCode','datasetKey','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','3159732ODTsxN','map','718158fFaUvx','17702307AmWcJR','pkField','dataset','split','41912QAIaUb','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','6KOLfxi','319296JJApgL','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','name','allFields'];a28_0x4ee2=function(){return _0x1f0b77;};return a28_0x4ee2();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x184fe1(0x18e),'command':'list','description':a28_0x184fe1(0x191),'risk':'read','flags':[{'name':a28_0x184fe1(0x195),'type':'string','description':a28_0x184fe1(0x188)},{...CODE_FLAG,'required':![],'description':a28_0x184fe1(0x194)}],async 'execute'(_0x30f6e2){const _0x1ba76c=a28_0x184fe1,_0x63fb2c=_0x30f6e2[_0x1ba76c(0x185)](_0x1ba76c(0x195)),_0x2d998b=_0x30f6e2[_0x1ba76c(0x185)](_0x1ba76c(0x181)),_0x5ea53a=await listDatasets(_0x30f6e2[_0x1ba76c(0x186)],{..._0x63fb2c&&{'name':_0x63fb2c},..._0x2d998b&&{'code':_0x2d998b}});return{'ok':!![],'data':{'total':_0x5ea53a[_0x1ba76c(0x180)],'datasets':_0x5ea53a[_0x1ba76c(0x18a)](_0x5d9748=>{const _0x399110=_0x1ba76c,_0x587589=_0x5d9748[_0x399110(0x184)]??{};return{'id':_0x5d9748['id'],'code':_0x5d9748[_0x399110(0x181)],'name':_0x5d9748[_0x399110(0x195)],'source':_0x5d9748[_0x399110(0x198)],'description':_0x5d9748['description'],'table':_0x587589['tableName'],'datasetKey':_0x587589[_0x399110(0x187)],'pk':_0x587589[_0x399110(0x18d)],'fields':_0x587589[_0x399110(0x196)]?_0x587589['allFields'][_0x399110(0x18f)](',')['map'](_0x53eee1=>_0x53eee1['trim']()):[]};})}};}};
1
+ const a29_0x3c2216=a29_0x5791;function a29_0x318b(){const _0x214f43=['20797nLilAr','1360McFMFD','list','63JCONAa','allFields','dbtableConfig','read','tableName','map','pkField','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','37234CXUBol','name','dataset','split','23672goYuVB','6QJMMAv','source','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','1050zEznLg','datasetKey','341782xtwzHH','code','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','2206330uiGHLh','description','499560awzluh','262948isiakK'];a29_0x318b=function(){return _0x214f43;};return a29_0x318b();}(function(_0x4adf17,_0x234fc4){const _0x159dbb=a29_0x5791,_0x5b0971=_0x4adf17();while(!![]){try{const _0x3b75db=-parseInt(_0x159dbb(0x99))/0x1+-parseInt(_0x159dbb(0xab))/0x2*(parseInt(_0x159dbb(0x94))/0x3)+-parseInt(_0x159dbb(0x9f))/0x4+parseInt(_0x159dbb(0x9c))/0x5+-parseInt(_0x159dbb(0x97))/0x6*(-parseInt(_0x159dbb(0xa0))/0x7)+-parseInt(_0x159dbb(0x9e))/0x8*(parseInt(_0x159dbb(0xa3))/0x9)+-parseInt(_0x159dbb(0xa1))/0xa*(-parseInt(_0x159dbb(0x93))/0xb);if(_0x3b75db===_0x234fc4)break;else _0x5b0971['push'](_0x5b0971['shift']());}catch(_0x6103c6){_0x5b0971['push'](_0x5b0971['shift']());}}}(a29_0x318b,0x5ad1b));function a29_0x5791(_0x4324f2,_0x53a3a1){_0x4324f2=_0x4324f2-0x90;const _0x318b25=a29_0x318b();let _0x57919e=_0x318b25[_0x4324f2];return _0x57919e;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a29_0x3c2216(0x91),'command':a29_0x3c2216(0xa2),'description':a29_0x3c2216(0x96),'risk':a29_0x3c2216(0xa6),'flags':[{'name':a29_0x3c2216(0x90),'type':'string','description':a29_0x3c2216(0x9b)},{...CODE_FLAG,'required':![],'description':a29_0x3c2216(0xaa)}],async 'execute'(_0xf8dd6b){const _0x3c510f=a29_0x3c2216,_0xdf5d3d=_0xf8dd6b['str']('name'),_0x3c4426=_0xf8dd6b['str'](_0x3c510f(0x9a)),_0x185bd6=await listDatasets(_0xf8dd6b['appCode'],{..._0xdf5d3d&&{'name':_0xdf5d3d},..._0x3c4426&&{'code':_0x3c4426}});return{'ok':!![],'data':{'total':_0x185bd6['length'],'datasets':_0x185bd6['map'](_0x4297c9=>{const _0x3ef050=_0x3c510f,_0x2f1baa=_0x4297c9[_0x3ef050(0xa5)]??{};return{'id':_0x4297c9['id'],'code':_0x4297c9[_0x3ef050(0x9a)],'name':_0x4297c9['name'],'source':_0x4297c9[_0x3ef050(0x95)],'description':_0x4297c9[_0x3ef050(0x9d)],'table':_0x2f1baa[_0x3ef050(0xa7)],'datasetKey':_0x2f1baa[_0x3ef050(0x98)],'pk':_0x2f1baa[_0x3ef050(0xa9)],'fields':_0x2f1baa[_0x3ef050(0xa4)]?_0x2f1baa[_0x3ef050(0xa4)][_0x3ef050(0x92)](',')[_0x3ef050(0xa8)](_0x2c9d18=>_0x2c9d18['trim']()):[]};})}};}};
@@ -1 +1 @@
1
- function a29_0x4332(_0x39c1ce,_0x2995d1){_0x39c1ce=_0x39c1ce-0x1b0;const _0xbc7a4c=a29_0xbc7a();let _0x433278=_0xbc7a4c[_0x39c1ce];return _0x433278;}const a29_0x196916=a29_0x4332;(function(_0xa21118,_0x475766){const _0x1d1011=a29_0x4332,_0x3e480f=_0xa21118();while(!![]){try{const _0x26f220=parseInt(_0x1d1011(0x1bd))/0x1+parseInt(_0x1d1011(0x1bb))/0x2*(-parseInt(_0x1d1011(0x1b2))/0x3)+parseInt(_0x1d1011(0x1c2))/0x4*(-parseInt(_0x1d1011(0x1bc))/0x5)+parseInt(_0x1d1011(0x1b1))/0x6+-parseInt(_0x1d1011(0x1b6))/0x7+-parseInt(_0x1d1011(0x1be))/0x8*(-parseInt(_0x1d1011(0x1b9))/0x9)+-parseInt(_0x1d1011(0x1b8))/0xa*(-parseInt(_0x1d1011(0x1ba))/0xb);if(_0x26f220===_0x475766)break;else _0x3e480f['push'](_0x3e480f['shift']());}catch(_0x36613b){_0x3e480f['push'](_0x3e480f['shift']());}}}(a29_0xbc7a,0x8d8e8));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x3b4f7d){const _0x35d59c=a29_0x4332,_0x2929fa=typeof _0x3b4f7d===_0x35d59c(0x1c0)?_0x3b4f7d[_0x35d59c(0x1b7)]():'';return _0x2929fa||DEFAULT_MARKDOWN;}function a29_0xbc7a(){const _0x33b710=['4Pzktai','appCode','6699150icLNiL','524946CIzYsI','code','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','read','3093909ojryPz','trim','128610spmvbV','18vDqdLX','77EeYLwV','6Iqqvxv','4575335cPnIJd','424702KYIfOT','3322248defxFH','str','string','dataset'];a29_0xbc7a=function(){return _0x33b710;};return a29_0xbc7a();}export const datasetSdkDoc={'service':a29_0x196916(0x1c1),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a29_0x196916(0x1b5),'flags':[{...CODE_FLAG,'description':a29_0x196916(0x1b4)}],async 'execute'(_0x209959){const _0x127efe=a29_0x196916,_0x368cd5=_0x209959[_0x127efe(0x1bf)](_0x127efe(0x1b3)),_0x35260e=await getDatasetSdkUsageDoc(_0x368cd5,_0x209959[_0x127efe(0x1b0)]);return{'ok':!![],'data':{'code':_0x368cd5,'appCode':_0x209959[_0x127efe(0x1b0)],'markdown':formatDatasetSdkMarkdown(_0x35260e)}};}};
1
+ const a30_0x55313e=a30_0xccbc;function a30_0xccbc(_0x273c22,_0x238595){_0x273c22=_0x273c22-0xfe;const _0x12ca31=a30_0x12ca();let _0xccbc23=_0x12ca31[_0x273c22];return _0xccbc23;}(function(_0x202cc1,_0x4c35b7){const _0x27f66f=a30_0xccbc,_0xb6538f=_0x202cc1();while(!![]){try{const _0x17aa93=-parseInt(_0x27f66f(0x106))/0x1+-parseInt(_0x27f66f(0x105))/0x2+-parseInt(_0x27f66f(0x10e))/0x3*(-parseInt(_0x27f66f(0x101))/0x4)+parseInt(_0x27f66f(0x109))/0x5+-parseInt(_0x27f66f(0xfe))/0x6+parseInt(_0x27f66f(0x102))/0x7*(-parseInt(_0x27f66f(0x10b))/0x8)+-parseInt(_0x27f66f(0x107))/0x9*(-parseInt(_0x27f66f(0x10a))/0xa);if(_0x17aa93===_0x4c35b7)break;else _0xb6538f['push'](_0xb6538f['shift']());}catch(_0x511289){_0xb6538f['push'](_0xb6538f['shift']());}}}(a30_0x12ca,0xe7078));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a30_0x12ca(){const _0x12a48f=['appCode','6244228IEsvil','14Hcmags','dataset','trim','3544394eMYUnS','754495OJnzuc','9018zgmCxA','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','2875555OZUdag','26570mFvsKf','3098352WlshMl','read','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3AmdnAr','str','3305436kOnhgv','string'];a30_0x12ca=function(){return _0x12a48f;};return a30_0x12ca();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a30_0x55313e(0x108);export function formatDatasetSdkMarkdown(_0x2ebec8){const _0x5c1379=a30_0x55313e,_0x31b37e=typeof _0x2ebec8===_0x5c1379(0xff)?_0x2ebec8[_0x5c1379(0x104)]():'';return _0x31b37e||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a30_0x55313e(0x103),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a30_0x55313e(0x10c),'flags':[{...CODE_FLAG,'description':a30_0x55313e(0x10d)}],async 'execute'(_0x17a9a7){const _0x14d100=a30_0x55313e,_0x53fb71=_0x17a9a7[_0x14d100(0x10f)]('code'),_0x856dd=await getDatasetSdkUsageDoc(_0x53fb71,_0x17a9a7[_0x14d100(0x100)]);return{'ok':!![],'data':{'code':_0x53fb71,'appCode':_0x17a9a7['appCode'],'markdown':formatDatasetSdkMarkdown(_0x856dd)}};}};
@@ -1 +1 @@
1
- const a30_0x2027a4=a30_0x1be4;(function(_0x34f564,_0x15a374){const _0x11b40d=a30_0x1be4,_0x3b37e1=_0x34f564();while(!![]){try{const _0x15bb12=parseInt(_0x11b40d(0x1bc))/0x1*(parseInt(_0x11b40d(0x202))/0x2)+-parseInt(_0x11b40d(0x1fc))/0x3+-parseInt(_0x11b40d(0x1d3))/0x4*(-parseInt(_0x11b40d(0x22f))/0x5)+-parseInt(_0x11b40d(0x1d2))/0x6*(-parseInt(_0x11b40d(0x207))/0x7)+-parseInt(_0x11b40d(0x235))/0x8*(parseInt(_0x11b40d(0x1e4))/0x9)+-parseInt(_0x11b40d(0x1b9))/0xa+parseInt(_0x11b40d(0x217))/0xb*(parseInt(_0x11b40d(0x1b8))/0xc);if(_0x15bb12===_0x15a374)break;else _0x3b37e1['push'](_0x3b37e1['shift']());}catch(_0x41b3f9){_0x3b37e1['push'](_0x3b37e1['shift']());}}}(a30_0x2aff,0x7f4db));import a30_0x3b94e6 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a30_0x2aff(){const _0x5255fd=['110BPhWSh','red','length','repairCommand','current','installedPath','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','Diagnose\x20CLI\x20configuration\x20and\x20environment','verbose','log','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','join','inherit','✗\x20Invalid','ClientAk','platform','raw','(invalid)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','5YomjQW','check','projectConfig','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','accessKey','1453008EyOUNS','✓\x20Valid\x20JSON','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','726204vuDjLx','1675480AUAdYO','packageVersion','green','1017841buVlHV','✗\x20Invalid\x20JSON','\x20\x20API\x20Endpoints','\x20\x20Skill\x20Version:\x20\x20\x20','name','call','locale','source','(default)','filter','bold','(none)','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20Package\x20Version:\x20','reason','missing','\x20config\x20delete\x20region','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','⚠\x20Empty','330quSxkn','420316AJagQy','✓\x20Loaded','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','serviceCount','\x20\x20Auth','gray','\x20\x20auth\x20(effective):\x20','(unnamed)','globalConfig','\x20config\x20delete\x20routing','hasOwnProperty','commandCount','\x20\x20─','message','(missing)','repeat','45tnkGLF','\x20config','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','format','project','\x20config\x20delete\x20routing\x20--global','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20+\x20','\x20config\x20delete\x20inherit','\x20config\x20delete\x20inherit\x20--global','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','appCode','arch','prototype','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','(set,\x20length=','defaultApp','routing','services','2770746WcUepX','skillVersion','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','2bKtQhJ','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','Project','(default:\x20','100877ytDGRS','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','empty','(not\x20set)','riskLevel','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','serviceCode','✓\x20current','includes','global','\x20\x20Repair\x20global:\x20\x20\x20','\x20config\x20init','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','version'];a30_0x2aff=function(){return _0x5255fd;};return a30_0x2aff();}import{getApiDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a30_0x1be4(_0x2016a7,_0x1abb02){_0x2016a7=_0x2016a7-0x1b4;const _0x2afff9=a30_0x2aff();let _0x1be4a3=_0x2afff9[_0x2016a7];return _0x1be4a3;}async function execute(_0x169538){const _0x3a9c9a=a30_0x1be4,_0x4bf8fc=getCliVersion(),_0x4c1c60=buildConfigFromFlags({});let _0x460c3f,_0x44ea92;try{_0x460c3f=normalizeLovrabetRegion(_0x4c1c60[_0x3a9c9a(0x229)][_0x3a9c9a(0x1ff)]);}catch(_0x304560){_0x44ea92=_0x304560 instanceof Error?_0x304560:new Error(String(_0x304560));}let _0x44989e;if(!_0x44ea92)try{await initGlobalEnvironment(_0x4c1c60);}catch(_0x228856){_0x44989e=_0x228856 instanceof Error?_0x228856:new Error(String(_0x228856));}console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)](CLI_BIN_NAME+'\x20doctor')),console[_0x3a9c9a(0x221)](a30_0x3b94e6['gray']('─'['repeat'](0x32))),console[_0x3a9c9a(0x221)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4bf8fc),console['log'](_0x3a9c9a(0x1cf)+process[_0x3a9c9a(0x216)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x209)+process[_0x3a9c9a(0x228)]+'\x20'+process[_0x3a9c9a(0x1f3)]);const _0x1fba15=inspectBuiltinSkill();console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)](_0x3a9c9a(0x223))),console['log'](a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e))),console['log'](_0x3a9c9a(0x222)+(_0x1fba15['state']===_0x3a9c9a(0x21b)?a30_0x3b94e6['green'](_0x3a9c9a(0x210)):a30_0x3b94e6[_0x3a9c9a(0x218)]('✗\x20'+_0x1fba15['state']))),console['log'](_0x3a9c9a(0x1ca)+_0x1fba15[_0x3a9c9a(0x1ba)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1bf)+(_0x1fba15[_0x3a9c9a(0x1fd)]||a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e2)))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1b5)+(_0x1fba15[_0x3a9c9a(0x21c)]||a30_0x3b94e6['gray'](_0x3a9c9a(0x1f7))));_0x1fba15['state']!=='current'&&console['log'](_0x3a9c9a(0x20d)+_0x1fba15[_0x3a9c9a(0x21a)]);_0x1fba15['reason']&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1fe)+_0x1fba15[_0x3a9c9a(0x1cb)]);console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)]('\x20\x20Config\x20Files')),console[_0x3a9c9a(0x221)](a30_0x3b94e6['gray'](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e)));const _0x4b2f46=getGlobalConfigPath(),_0x4d7b59=getProjectConfigPath();console[_0x3a9c9a(0x221)](_0x3a9c9a(0x232)+(_0x4b2f46||a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1f7)))),console['log'](_0x3a9c9a(0x22b)+(_0x4d7b59||a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1f7)))),console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6['bold']('\x20\x20Config\x20JSON')),console[_0x3a9c9a(0x221)](a30_0x3b94e6['gray'](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e)));const _0x196711=(_0xf2eee2,_0x6ace0)=>{const _0x1260cb=_0x3a9c9a;if(!_0x6ace0){console[_0x1260cb(0x221)]('\x20\x20'+_0xf2eee2[_0x1260cb(0x1f1)](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x1d9)]('(no\x20file)'));return;}const _0x12e81a=inspectCliConfigJsonFile(_0x6ace0);if(_0x12e81a[_0x1260cb(0x233)]==='ok')console[_0x1260cb(0x221)]('\x20\x20'+_0xf2eee2['padEnd'](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x1bb)](_0x1260cb(0x1b4)));else{if(_0x12e81a['status']===_0x1260cb(0x20a))console[_0x1260cb(0x221)]('\x20\x20'+_0xf2eee2[_0x1260cb(0x1f1)](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x204)](_0x1260cb(0x22e)));else _0x12e81a[_0x1260cb(0x233)]===_0x1260cb(0x1cc)?console[_0x1260cb(0x221)]('\x20\x20'+_0xf2eee2[_0x1260cb(0x1f1)](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x1d9)](_0x1260cb(0x1e2))):(console[_0x1260cb(0x221)]('\x20\x20'+_0xf2eee2[_0x1260cb(0x1f1)](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x218)](_0x1260cb(0x1bd))),console[_0x1260cb(0x221)]('\x20\x20'+''[_0x1260cb(0x1f1)](0x11)+'\x20'+a30_0x3b94e6[_0x1260cb(0x218)](_0x12e81a['message'])));}};_0x196711(_0x3a9c9a(0x1c9),_0x4b2f46),_0x196711(_0x3a9c9a(0x205),_0x4d7b59);const _0x26262c=loadRawConfigLayers(),_0xf0af07=[Object[_0x3a9c9a(0x1f4)]['hasOwnProperty'][_0x3a9c9a(0x1c1)](_0x26262c[_0x3a9c9a(0x1dc)],'inherit')?_0x3a9c9a(0x212):null,Object['prototype']['hasOwnProperty'][_0x3a9c9a(0x1c1)](_0x26262c[_0x3a9c9a(0x231)],_0x3a9c9a(0x225))?'project':null][_0x3a9c9a(0x1c5)](Boolean);_0xf0af07[_0x3a9c9a(0x219)]>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x3b94e6[_0x3a9c9a(0x204)]('ignored\x20in\x20'+_0xf0af07[_0x3a9c9a(0x224)](_0x3a9c9a(0x1ed))+_0x3a9c9a(0x1e5))),_0xf0af07['includes'](_0x3a9c9a(0x1ea))&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1b7)+CLI_BIN_NAME+_0x3a9c9a(0x1ee)),_0xf0af07[_0x3a9c9a(0x211)](_0x3a9c9a(0x212))&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1ec)+CLI_BIN_NAME+_0x3a9c9a(0x1ef)));_0x44989e&&(console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6['bold'](_0x3a9c9a(0x1d6))),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1d9)]('\x20\x20─'[_0x3a9c9a(0x1e3)](0x1e))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x21d)+a30_0x3b94e6['red'](_0x3a9c9a(0x226))),console['log'](_0x3a9c9a(0x1fe)+_0x44989e[_0x3a9c9a(0x1e1)]),Object[_0x3a9c9a(0x1f4)][_0x3a9c9a(0x1de)][_0x3a9c9a(0x1c1)](_0x26262c[_0x3a9c9a(0x231)],_0x3a9c9a(0x1fa))&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1d0)+CLI_BIN_NAME+_0x3a9c9a(0x1dd)),Object[_0x3a9c9a(0x1f4)][_0x3a9c9a(0x1de)][_0x3a9c9a(0x1c1)](_0x26262c[_0x3a9c9a(0x1dc)],_0x3a9c9a(0x1fa))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x3a9c9a(0x1eb)));_0x44ea92&&(console[_0x3a9c9a(0x221)](),console['log'](a30_0x3b94e6['bold']('\x20\x20Country/Region\x20Configuration')),console['log'](a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e))),console['log'](_0x3a9c9a(0x21d)+a30_0x3b94e6[_0x3a9c9a(0x218)](_0x3a9c9a(0x226))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1fe)+_0x44ea92['message']),Object[_0x3a9c9a(0x1f4)]['hasOwnProperty'][_0x3a9c9a(0x1c1)](_0x26262c['projectConfig'],'region')&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1d0)+CLI_BIN_NAME+_0x3a9c9a(0x1cd)),Object[_0x3a9c9a(0x1f4)][_0x3a9c9a(0x1de)][_0x3a9c9a(0x1c1)](_0x26262c[_0x3a9c9a(0x1dc)],_0x3a9c9a(0x1ff))&&console[_0x3a9c9a(0x221)](_0x3a9c9a(0x213)+CLI_BIN_NAME+_0x3a9c9a(0x214)));console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6['bold'](_0x3a9c9a(0x201))),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1d9)]('\x20\x20─'[_0x3a9c9a(0x1e3)](0x1e))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1d5)+(_0x4c1c60[_0x3a9c9a(0x1f2)]||a30_0x3b94e6[_0x3a9c9a(0x218)](_0x3a9c9a(0x20b)))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1f6)+(_0x460c3f??a30_0x3b94e6['red'](_0x3a9c9a(0x22a)))),console[_0x3a9c9a(0x221)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x4c1c60[_0x3a9c9a(0x1c2)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1e6)+(_0x4c1c60[_0x3a9c9a(0x1f9)]||a30_0x3b94e6[_0x3a9c9a(0x1d9)]('(none)'))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x200)+(_0x4c1c60[_0x3a9c9a(0x22c)]||a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1c7)))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1f0)+(_0x4c1c60[_0x3a9c9a(0x1e9)]||a30_0x3b94e6['gray'](_0x3a9c9a(0x206)+DEFAULT_CONFIG_VALUES[_0x3a9c9a(0x1e9)]+')'))),console['log'](_0x3a9c9a(0x1ce)+(_0x4c1c60['pageSize']??a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1c4)))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x215)+_0x4c1c60[_0x3a9c9a(0x20c)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x203)+_0x4c1c60[_0x3a9c9a(0x220)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1da)+AUTH_MODE[_0x3a9c9a(0x227)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1c8)+(_0x4c1c60[_0x3a9c9a(0x234)]?a30_0x3b94e6['green'](_0x3a9c9a(0x1f8)+_0x4c1c60[_0x3a9c9a(0x234)][_0x3a9c9a(0x219)]+')'):a30_0x3b94e6['gray']('(none)'))),console[_0x3a9c9a(0x221)](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)](_0x3a9c9a(0x1be))),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e)));_0x44989e||_0x44ea92?console[_0x3a9c9a(0x221)](_0x3a9c9a(0x21d)+a30_0x3b94e6['red']('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1f5)+getApiDomain()),console[_0x3a9c9a(0x221)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x3a9c9a(0x221)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x3a9c9a(0x1e8)+getSkillDomain()));console['log'](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)]('\x20\x20Service\x20Tree')),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e)));const _0x39404c=inspectServiceRegistry();console[_0x3a9c9a(0x221)](_0x3a9c9a(0x208)+_0x39404c['registryPath']),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x21d)+formatServiceRegistryStatus(_0x39404c)),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x22d)+_0x39404c[_0x3a9c9a(0x1d7)]),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1b6)+_0x39404c[_0x3a9c9a(0x1df)]);for(const _0xf24fa4 of _0x39404c[_0x3a9c9a(0x1fb)]){console[_0x3a9c9a(0x221)]('\x20\x20'+(_0xf24fa4[_0x3a9c9a(0x20f)]+':')[_0x3a9c9a(0x1f1)](0x11)+'\x20'+(_0xf24fa4[_0x3a9c9a(0x1c0)]||a30_0x3b94e6['gray'](_0x3a9c9a(0x1db)))+'\x20('+_0xf24fa4[_0x3a9c9a(0x1df)]+'\x20commands)'),console[_0x3a9c9a(0x221)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0xf24fa4[_0x3a9c9a(0x1c3)]['path']);}return console['log'](),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1c6)](_0x3a9c9a(0x1d8))),console[_0x3a9c9a(0x221)](a30_0x3b94e6[_0x3a9c9a(0x1d9)](_0x3a9c9a(0x1e0)[_0x3a9c9a(0x1e3)](0x1e))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x1e7)+a30_0x3b94e6[_0x3a9c9a(0x1bb)](AUTH_MODE['ClientAk']+_0x3a9c9a(0x21e))),console[_0x3a9c9a(0x221)](_0x3a9c9a(0x20e)+a30_0x3b94e6[_0x3a9c9a(0x1d9)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x376c92){const _0x19ebd3=a30_0x1be4;if(_0x376c92[_0x19ebd3(0x233)]==='ok')return a30_0x3b94e6[_0x19ebd3(0x1bb)](_0x19ebd3(0x1d4));if(_0x376c92[_0x19ebd3(0x233)]===_0x19ebd3(0x1cc))return a30_0x3b94e6[_0x19ebd3(0x1d9)](_0x19ebd3(0x1f7));if(_0x376c92[_0x19ebd3(0x233)]===_0x19ebd3(0x20a))return a30_0x3b94e6[_0x19ebd3(0x204)](_0x19ebd3(0x1d1));return a30_0x3b94e6[_0x19ebd3(0x218)](_0x19ebd3(0x226)+(_0x376c92[_0x19ebd3(0x1e1)]?':\x20'+_0x376c92[_0x19ebd3(0x1e1)]:''));}export const doctorDefinition={'service':'doctor','command':a30_0x2027a4(0x230),'description':a30_0x2027a4(0x21f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a31_0xd36aa8=a31_0x1c89;(function(_0x2d5566,_0x1201fb){const _0x234457=a31_0x1c89,_0x4d40a9=_0x2d5566();while(!![]){try{const _0x4f2c8e=parseInt(_0x234457(0xe5))/0x1*(-parseInt(_0x234457(0xef))/0x2)+parseInt(_0x234457(0xb3))/0x3*(parseInt(_0x234457(0xa4))/0x4)+-parseInt(_0x234457(0xed))/0x5+parseInt(_0x234457(0xc1))/0x6*(parseInt(_0x234457(0xfa))/0x7)+parseInt(_0x234457(0xa0))/0x8*(-parseInt(_0x234457(0xb9))/0x9)+parseInt(_0x234457(0xc3))/0xa+parseInt(_0x234457(0xab))/0xb;if(_0x4f2c8e===_0x1201fb)break;else _0x4d40a9['push'](_0x4d40a9['shift']());}catch(_0x3ce730){_0x4d40a9['push'](_0x4d40a9['shift']());}}}(a31_0x2ba4,0x4f9cb));import a31_0x53e7bb 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,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';function a31_0x1c89(_0x51d195,_0x2eece9){_0x51d195=_0x51d195-0x86;const _0x2ba493=a31_0x2ba4();let _0x1c894f=_0x2ba493[_0x51d195];return _0x1c894f;}import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';function a31_0x2ba4(){const _0x5bb870=['✓\x20Loaded','arch','defaultApp','(no\x20file)','prototype','length','1078960jEEVUF','gray','14vOxVyx','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','ClientAk','format','\x20doctor','\x20\x20Installed\x20Path:\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','serviceCode','hasOwnProperty','2254399iCVTQx','log','appCode','\x20\x20Built-in\x20Skill','skillVersion','missing','accessKey','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','includes','region','\x20\x20runtimeDomain:\x20\x20\x20','routing','version','message','reason','\x20\x20Repair\x20project:\x20\x20\x20','inherit','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20─','installedPath','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','(missing)','⚠\x20Empty','name','call','✗\x20Invalid','bold','3512ebSpZc','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','(invalid)','4mgMtpt','\x20\x20Merged\x20Config','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Repair\x20global:\x20\x20\x20','state','\x20config\x20delete\x20inherit\x20--global','doctor','2655862HAfSEV','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','repeat','\x20\x20Repair\x20global:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20(accessKey)','221241FkEizP','project','locale','current','(set,\x20length=','(default)','3177oIqJou','✓\x20current','join','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Country/Region\x20Configuration','(not\x20found)','empty','6VbSaBM','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','1635470KqTPRt','✗\x20Invalid\x20JSON','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','riskLevel','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','green','(not\x20set)','projectConfig','serviceCount','\x20config','\x20config\x20init','(none)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','ignored\x20in\x20','\x20\x20Auth','\x20config\x20delete\x20inherit','\x20config\x20delete\x20routing\x20--global','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','packageVersion','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','global','Global','\x20\x20Legacy\x20inherit:\x20\x20\x20','14849wEBFfA','read'];a31_0x2ba4=function(){return _0x5bb870;};return a31_0x2ba4();}import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x9fe421){const _0x13b8a4=a31_0x1c89,_0x1e78cb=getCliVersion(),_0x5d7bde=buildConfigFromFlags({});let _0x55dd9d,_0x1ba91f;try{_0x55dd9d=normalizeLovrabetRegion(_0x5d7bde['raw'][_0x13b8a4(0x8a)]);}catch(_0x576ce5){_0x1ba91f=_0x576ce5 instanceof Error?_0x576ce5:new Error(String(_0x576ce5));}let _0x38e471;if(!_0x1ba91f)try{await initGlobalEnvironment(_0x5d7bde);}catch(_0x21c084){_0x38e471=_0x21c084 instanceof Error?_0x21c084:new Error(String(_0x21c084));}console[_0x13b8a4(0xfb)](),console['log'](a31_0x53e7bb[_0x13b8a4(0x9f)](CLI_BIN_NAME+_0x13b8a4(0xf4))),console['log'](a31_0x53e7bb[_0x13b8a4(0xee)]('─'[_0x13b8a4(0xaf)](0x32))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xcd)+_0x1e78cb),console['log'](_0x13b8a4(0xdc)+process[_0x13b8a4(0x8d)]),console[_0x13b8a4(0xfb)](_0x13b8a4(0xd5)+process['platform']+'\x20'+process[_0x13b8a4(0xe8)]);const _0x1df532=inspectBuiltinSkill();console[_0x13b8a4(0xfb)](),console['log'](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xfd))),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)['repeat'](0x1e))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xd6)+(_0x1df532[_0x13b8a4(0xa8)]===_0x13b8a4(0xb6)?a31_0x53e7bb[_0x13b8a4(0xce)](_0x13b8a4(0xba)):a31_0x53e7bb[_0x13b8a4(0xbd)]('✗\x20'+_0x1df532['state']))),console[_0x13b8a4(0xfb)](_0x13b8a4(0x99)+_0x1df532[_0x13b8a4(0xdf)]),console[_0x13b8a4(0xfb)](_0x13b8a4(0xc8)+(_0x1df532[_0x13b8a4(0xfe)]||a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x9a)))),console['log'](_0x13b8a4(0xf5)+(_0x1df532[_0x13b8a4(0x96)]||a31_0x53e7bb[_0x13b8a4(0xee)]('(not\x20found)')));_0x1df532[_0x13b8a4(0xa8)]!==_0x13b8a4(0xb6)&&console[_0x13b8a4(0xfb)](_0x13b8a4(0xe0)+_0x1df532['repairCommand']);_0x1df532['reason']&&console[_0x13b8a4(0xfb)](_0x13b8a4(0x98)+_0x1df532[_0x13b8a4(0x8f)]);console[_0x13b8a4(0xfb)](),console[_0x13b8a4(0xfb)](a31_0x53e7bb['bold']('\x20\x20Config\x20Files')),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)[_0x13b8a4(0xaf)](0x1e)));const _0x31095b=getGlobalConfigPath(),_0x12af7d=getProjectConfigPath();console['log'](_0x13b8a4(0xbc)+(_0x31095b||a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0xbf)))),console[_0x13b8a4(0xfb)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x12af7d||a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0xbf)))),console[_0x13b8a4(0xfb)](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xa2))),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)['repeat'](0x1e)));const _0x2ec57b=(_0x9d49f9,_0xeb77b9)=>{const _0x303d92=_0x13b8a4;if(!_0xeb77b9){console[_0x303d92(0xfb)]('\x20\x20'+_0x9d49f9['padEnd'](0x11)+'\x20'+a31_0x53e7bb['gray'](_0x303d92(0xea)));return;}const _0x4fff8d=inspectCliConfigJsonFile(_0xeb77b9);if(_0x4fff8d[_0x303d92(0xf1)]==='ok')console[_0x303d92(0xfb)]('\x20\x20'+_0x9d49f9['padEnd'](0x11)+'\x20'+a31_0x53e7bb['green'](_0x303d92(0x93)));else{if(_0x4fff8d[_0x303d92(0xf1)]===_0x303d92(0xc0))console[_0x303d92(0xfb)]('\x20\x20'+_0x9d49f9[_0x303d92(0xde)](0x11)+'\x20'+a31_0x53e7bb['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4fff8d[_0x303d92(0xf1)]===_0x303d92(0xff)?console[_0x303d92(0xfb)]('\x20\x20'+_0x9d49f9['padEnd'](0x11)+'\x20'+a31_0x53e7bb[_0x303d92(0xee)](_0x303d92(0x9a))):(console['log']('\x20\x20'+_0x9d49f9[_0x303d92(0xde)](0x11)+'\x20'+a31_0x53e7bb[_0x303d92(0xbd)](_0x303d92(0xc4))),console['log']('\x20\x20'+''[_0x303d92(0xde)](0x11)+'\x20'+a31_0x53e7bb[_0x303d92(0xbd)](_0x4fff8d[_0x303d92(0x8e)])));}};_0x2ec57b(_0x13b8a4(0xe3),_0x31095b),_0x2ec57b('Project',_0x12af7d);const _0x5d47ac=loadRawConfigLayers(),_0xf1a0a3=[Object[_0x13b8a4(0xeb)][_0x13b8a4(0xf9)][_0x13b8a4(0x9d)](_0x5d47ac[_0x13b8a4(0xe1)],_0x13b8a4(0x91))?'global':null,Object['prototype'][_0x13b8a4(0xf9)][_0x13b8a4(0x9d)](_0x5d47ac[_0x13b8a4(0xd0)],_0x13b8a4(0x91))?_0x13b8a4(0xb4):null]['filter'](Boolean);_0xf1a0a3['length']>0x0&&(console[_0x13b8a4(0xfb)](_0x13b8a4(0xe4)+a31_0x53e7bb['yellow'](_0x13b8a4(0xd8)+_0xf1a0a3[_0x13b8a4(0xbb)]('\x20+\x20')+_0x13b8a4(0xd2))),_0xf1a0a3[_0x13b8a4(0x89)](_0x13b8a4(0xb4))&&console[_0x13b8a4(0xfb)](_0x13b8a4(0x90)+CLI_BIN_NAME+_0x13b8a4(0xda)),_0xf1a0a3['includes'](_0x13b8a4(0xe2))&&console[_0x13b8a4(0xfb)](_0x13b8a4(0xb0)+CLI_BIN_NAME+_0x13b8a4(0xa9)));_0x38e471&&(console[_0x13b8a4(0xfb)](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)]('\x20\x20Routing\x20Configuration')),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)[_0x13b8a4(0xaf)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a31_0x53e7bb['red'](_0x13b8a4(0x9e))),console[_0x13b8a4(0xfb)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x38e471['message']),Object[_0x13b8a4(0xeb)][_0x13b8a4(0xf9)][_0x13b8a4(0x9d)](_0x5d47ac['projectConfig'],_0x13b8a4(0x8c))&&console[_0x13b8a4(0xfb)](_0x13b8a4(0xc6)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x13b8a4(0xeb)][_0x13b8a4(0xf9)]['call'](_0x5d47ac[_0x13b8a4(0xe1)],'routing')&&console[_0x13b8a4(0xfb)](_0x13b8a4(0xa7)+CLI_BIN_NAME+_0x13b8a4(0xdb)));_0x1ba91f&&(console[_0x13b8a4(0xfb)](),console['log'](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xbe))),console['log'](a31_0x53e7bb[_0x13b8a4(0xee)]('\x20\x20─'['repeat'](0x1e))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xf0)+a31_0x53e7bb[_0x13b8a4(0xbd)]('✗\x20Invalid')),console[_0x13b8a4(0xfb)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1ba91f[_0x13b8a4(0x8e)]),Object['prototype']['hasOwnProperty'][_0x13b8a4(0x9d)](_0x5d47ac[_0x13b8a4(0xd0)],_0x13b8a4(0x8a))&&console[_0x13b8a4(0xfb)](_0x13b8a4(0xc6)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x13b8a4(0xeb)][_0x13b8a4(0xf9)][_0x13b8a4(0x9d)](_0x5d47ac['globalConfig'],_0x13b8a4(0x8a))&&console[_0x13b8a4(0xfb)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x13b8a4(0xd3)));console[_0x13b8a4(0xfb)](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xa5))),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)['repeat'](0x1e))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xc9)+(_0x5d7bde[_0x13b8a4(0xfc)]||a31_0x53e7bb['red'](_0x13b8a4(0xcf)))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xc5)+(_0x55dd9d??a31_0x53e7bb[_0x13b8a4(0xbd)](_0x13b8a4(0xa3)))),console[_0x13b8a4(0xfb)](_0x13b8a4(0x94)+_0x5d7bde[_0x13b8a4(0xb5)]),console[_0x13b8a4(0xfb)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5d7bde[_0x13b8a4(0xe9)]||a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0xd4)))),console[_0x13b8a4(0xfb)](_0x13b8a4(0x88)+(_0x5d7bde['currentApp']||a31_0x53e7bb[_0x13b8a4(0xee)]('(none)'))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xcc)+(_0x5d7bde['format']||a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0xd7)+DEFAULT_CONFIG_VALUES[_0x13b8a4(0xf3)]+')'))),console[_0x13b8a4(0xfb)](_0x13b8a4(0x92)+(_0x5d7bde['pageSize']??a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0xb8)))),console[_0x13b8a4(0xfb)](_0x13b8a4(0xcb)+_0x5d7bde[_0x13b8a4(0xc7)]),console['log'](_0x13b8a4(0xf6)+_0x5d7bde['verbose']),console[_0x13b8a4(0xfb)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x13b8a4(0xf2)]),console['log'](_0x13b8a4(0x87)+(_0x5d7bde[_0x13b8a4(0x86)]?a31_0x53e7bb[_0x13b8a4(0xce)](_0x13b8a4(0xb7)+_0x5d7bde[_0x13b8a4(0x86)][_0x13b8a4(0xec)]+')'):a31_0x53e7bb[_0x13b8a4(0xee)]('(none)'))),console['log'](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xa1))),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)[_0x13b8a4(0xaf)](0x1e)));_0x38e471||_0x1ba91f?console[_0x13b8a4(0xfb)](_0x13b8a4(0xf0)+a31_0x53e7bb[_0x13b8a4(0xbd)](_0x13b8a4(0xc2))):(console[_0x13b8a4(0xfb)](_0x13b8a4(0xad)+getApiDomain()),console[_0x13b8a4(0xfb)](_0x13b8a4(0xae)+getUserDomain()),console[_0x13b8a4(0xfb)](_0x13b8a4(0x8b)+getRuntimeDomain()),console['log'](_0x13b8a4(0x97)+getSkillDomain()));console[_0x13b8a4(0xfb)](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)]('\x20\x20Service\x20Tree')),console['log'](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)[_0x13b8a4(0xaf)](0x1e)));const _0x2c2a9e=inspectServiceRegistry();console[_0x13b8a4(0xfb)](_0x13b8a4(0xdd)+_0x2c2a9e[_0x13b8a4(0xca)]),console[_0x13b8a4(0xfb)](_0x13b8a4(0xf0)+formatServiceRegistryStatus(_0x2c2a9e)),console[_0x13b8a4(0xfb)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c2a9e[_0x13b8a4(0xd1)]),console[_0x13b8a4(0xfb)](_0x13b8a4(0xac)+_0x2c2a9e['commandCount']);for(const _0x305e96 of _0x2c2a9e['services']){console[_0x13b8a4(0xfb)]('\x20\x20'+(_0x305e96[_0x13b8a4(0xf8)]+':')[_0x13b8a4(0xde)](0x11)+'\x20'+(_0x305e96[_0x13b8a4(0x9c)]||a31_0x53e7bb[_0x13b8a4(0xee)]('(unnamed)'))+'\x20('+_0x305e96['commandCount']+'\x20commands)'),console[_0x13b8a4(0xfb)]('\x20\x20'+''[_0x13b8a4(0xde)](0x11)+_0x13b8a4(0xf7)+_0x305e96['source']['path']);}return console['log'](),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0x9f)](_0x13b8a4(0xd9))),console[_0x13b8a4(0xfb)](a31_0x53e7bb[_0x13b8a4(0xee)](_0x13b8a4(0x95)[_0x13b8a4(0xaf)](0x1e))),console[_0x13b8a4(0xfb)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a31_0x53e7bb[_0x13b8a4(0xce)](AUTH_MODE[_0x13b8a4(0xf2)]+_0x13b8a4(0xb2))),console['log']('\x20\x20Session\x20check:\x20\x20\x20'+a31_0x53e7bb['gray'](_0x13b8a4(0xa6))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x462a83){const _0x1d4da8=a31_0x1c89;if(_0x462a83[_0x1d4da8(0xf1)]==='ok')return a31_0x53e7bb[_0x1d4da8(0xce)](_0x1d4da8(0xe7));if(_0x462a83[_0x1d4da8(0xf1)]==='missing')return a31_0x53e7bb[_0x1d4da8(0xee)](_0x1d4da8(0xbf));if(_0x462a83[_0x1d4da8(0xf1)]==='empty')return a31_0x53e7bb['yellow'](_0x1d4da8(0x9b));return a31_0x53e7bb[_0x1d4da8(0xbd)](_0x1d4da8(0x9e)+(_0x462a83[_0x1d4da8(0x8e)]?':\x20'+_0x462a83['message']:''));}export const doctorDefinition={'service':a31_0xd36aa8(0xaa),'command':'check','description':a31_0xd36aa8(0xb1),'risk':a31_0xd36aa8(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x3638d5=a31_0x598d;function a31_0xae21(){const _0x4498d1=['filePath\x20is\x20required.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Path\x20to\x20the\x20local\x20file\x20to\x20upload','long-term','appCode','validation','49850FjlnyI','description','8ZpwYfX','File','/client/uploadFile','string','body','268068MSjMeB','1052196hOnXqX','\x20to\x20runtime\x20app\x20','Uploaded\x20file:\x20','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str','filepath','75619EehsbX','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','4314024wMTCZj','query-url','trim','filePath','357KhjeKN','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','path','POST','build','boolean','bool','read','379560ACaimC','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','22808FreNBY','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a31_0xae21=function(){return _0x4498d1;};return a31_0xae21();}(function(_0x1ca2b0,_0x2ae311){const _0x51eeb2=a31_0x598d,_0x50b265=_0x1ca2b0();while(!![]){try{const _0x35bfe0=-parseInt(_0x51eeb2(0x19b))/0x1+parseInt(_0x51eeb2(0x1ab))/0x2+-parseInt(_0x51eeb2(0x194))/0x3*(-parseInt(_0x51eeb2(0x1b8))/0x4)+-parseInt(_0x51eeb2(0x1b6))/0x5+parseInt(_0x51eeb2(0x195))/0x6+-parseInt(_0x51eeb2(0x1a3))/0x7*(-parseInt(_0x51eeb2(0x1ae))/0x8)+-parseInt(_0x51eeb2(0x19f))/0x9;if(_0x35bfe0===_0x2ae311)break;else _0x50b265['push'](_0x50b265['shift']());}catch(_0x5f5014){_0x50b265['push'](_0x50b265['shift']());}}}(a31_0xae21,0x1e5ae));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':a31_0x3638d5(0x19e),'type':a31_0x3638d5(0x192),'required':!![],'description':a31_0x3638d5(0x1b2)},FILEPATH_FLAG={'name':a31_0x3638d5(0x19a),'type':'string','required':!![],'description':a31_0x3638d5(0x1ac)},DOWNLOAD_FLAG={'name':a31_0x3638d5(0x1ad),'type':'boolean','description':a31_0x3638d5(0x1af)},LONG_TERM_FLAG={'name':'long-term','type':a31_0x3638d5(0x1a8),'description':a31_0x3638d5(0x19c)};function requireFilePath(_0x1ca707){const _0x1e7cce=a31_0x3638d5,_0x3f1bb6=_0x1ca707[_0x1e7cce(0x1a1)]();if(!_0x3f1bb6)throw CliErrors[_0x1e7cce(0x1b5)](_0x1e7cce(0x1b0));return _0x3f1bb6;}function a31_0x598d(_0x1c75c1,_0x244f30){_0x1c75c1=_0x1c75c1-0x192;const _0xae211c=a31_0xae21();let _0x598dee=_0xae211c[_0x1c75c1];return _0x598dee;}const fileUpload={'service':a31_0x3638d5(0x19e),'command':'upload','description':a31_0x3638d5(0x1a4),'risk':a31_0x3638d5(0x1aa),'flags':[FILE_FLAG],async 'dryRun'(_0x24d1c9){const _0x3a94cc=a31_0x3638d5,_0x58f6ab=requireRuntimeUploadFile(_0x24d1c9[_0x3a94cc(0x199)](_0x3a94cc(0x19e)),_0x3a94cc(0x1b9));return dryRun(_0x3a94cc(0x1a6),_0x3a94cc(0x1ba))[_0x3a94cc(0x193)]({'appCode':_0x24d1c9[_0x3a94cc(0x1b4)],'multipart':{'file':_0x58f6ab}})[_0x3a94cc(0x1b7)]('Preview:\x20upload\x20'+_0x58f6ab[_0x3a94cc(0x1a5)]+_0x3a94cc(0x196)+_0x24d1c9['appCode'])[_0x3a94cc(0x1a7)]();},async 'execute'(_0x5a3f32){const _0x446782=a31_0x3638d5,_0x33dc45=requireRuntimeUploadFile(_0x5a3f32[_0x446782(0x199)](_0x446782(0x19e)),_0x446782(0x1b9)),_0x1694e4=await uploadRuntimeFile(_0x5a3f32[_0x446782(0x1b4)],_0x33dc45[_0x446782(0x1a5)]);return{'ok':!![],'data':_0x1694e4,'message':_0x1694e4[_0x446782(0x1a2)]?_0x446782(0x197)+_0x1694e4[_0x446782(0x1a2)]+_0x446782(0x19d):_0x446782(0x198)};}},fileQueryUrl={'service':a31_0x3638d5(0x19e),'command':a31_0x3638d5(0x1a0),'description':a31_0x3638d5(0x1b1),'risk':a31_0x3638d5(0x1aa),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x16eeee){const _0x4a88f4=a31_0x3638d5,_0x40f918=requireFilePath(_0x16eeee[_0x4a88f4(0x199)]('filepath')),_0x33ba89=await queryRuntimeFileUrl(_0x40f918,{'download':_0x16eeee[_0x4a88f4(0x1a9)](_0x4a88f4(0x1ad)),'longTerm':_0x16eeee[_0x4a88f4(0x1a9)](_0x4a88f4(0x1b3))});return{'ok':!![],'data':_0x33ba89};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a32_0x202630=a32_0x393f;(function(_0x962de7,_0x303603){const _0x2b8e01=a32_0x393f,_0x102ef4=_0x962de7();while(!![]){try{const _0x53b6cd=-parseInt(_0x2b8e01(0x18b))/0x1+parseInt(_0x2b8e01(0x189))/0x2+-parseInt(_0x2b8e01(0x193))/0x3*(parseInt(_0x2b8e01(0x19f))/0x4)+-parseInt(_0x2b8e01(0x188))/0x5+parseInt(_0x2b8e01(0x1a5))/0x6+parseInt(_0x2b8e01(0x1ab))/0x7+parseInt(_0x2b8e01(0x1a6))/0x8*(parseInt(_0x2b8e01(0x198))/0x9);if(_0x53b6cd===_0x303603)break;else _0x102ef4['push'](_0x102ef4['shift']());}catch(_0x4f1ace){_0x102ef4['push'](_0x102ef4['shift']());}}}(a32_0x5bf2,0xf341a));function a32_0x393f(_0x4c13b0,_0x4ae7e5){_0x4c13b0=_0x4c13b0-0x187;const _0x5bf2da=a32_0x5bf2();let _0x393f09=_0x5bf2da[_0x4c13b0];return _0x393f09;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a32_0x202630(0x18c),'required':!![],'description':a32_0x202630(0x18d)},FILEPATH_FLAG={'name':a32_0x202630(0x19a),'type':a32_0x202630(0x18c),'required':!![],'description':a32_0x202630(0x190)},DOWNLOAD_FLAG={'name':a32_0x202630(0x1a0),'type':a32_0x202630(0x18e),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a32_0x202630(0x1a1),'type':a32_0x202630(0x18e),'description':a32_0x202630(0x1a8)};function a32_0x5bf2(){const _0x50918e=['appCode','2006412MwyIrQ','10768024EEZzTI','build','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','4045755FuAnlL','trim','6466240HGwIad','3715804KdwsJR','filePath\x20is\x20required.','342872yXZVsb','string','Path\x20to\x20the\x20local\x20file\x20to\x20upload','boolean','File','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','filePath','/client/uploadFile','3EkhAfW','validation','read','str','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','9aNNfFN','bool','filepath','query-url','file','body','path','5935096AXVqLP','download','long-term','POST','upload'];a32_0x5bf2=function(){return _0x50918e;};return a32_0x5bf2();}function requireFilePath(_0x2803d3){const _0x544ad0=a32_0x202630,_0xacf37c=_0x2803d3[_0x544ad0(0x187)]();if(!_0xacf37c)throw CliErrors[_0x544ad0(0x194)](_0x544ad0(0x18a));return _0xacf37c;}const fileUpload={'service':a32_0x202630(0x19c),'command':a32_0x202630(0x1a3),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a32_0x202630(0x195),'flags':[FILE_FLAG],async 'dryRun'(_0x9e74a0){const _0x3036b6=a32_0x202630,_0x2ac283=requireRuntimeUploadFile(_0x9e74a0[_0x3036b6(0x196)]('file'),_0x3036b6(0x18f));return dryRun(_0x3036b6(0x1a2),_0x3036b6(0x192))[_0x3036b6(0x19d)]({'appCode':_0x9e74a0['appCode'],'multipart':{'file':_0x2ac283}})['description']('Preview:\x20upload\x20'+_0x2ac283[_0x3036b6(0x19e)]+'\x20to\x20runtime\x20app\x20'+_0x9e74a0[_0x3036b6(0x1a4)])[_0x3036b6(0x1a7)]();},async 'execute'(_0x204b00){const _0x2562a7=a32_0x202630,_0x16642b=requireRuntimeUploadFile(_0x204b00[_0x2562a7(0x196)](_0x2562a7(0x19c)),_0x2562a7(0x18f)),_0x49b87c=await uploadRuntimeFile(_0x204b00[_0x2562a7(0x1a4)],_0x16642b[_0x2562a7(0x19e)]);return{'ok':!![],'data':_0x49b87c,'message':_0x49b87c['filePath']?_0x2562a7(0x1aa)+_0x49b87c[_0x2562a7(0x191)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x2562a7(0x1a9)};}},fileQueryUrl={'service':a32_0x202630(0x19c),'command':a32_0x202630(0x19b),'description':a32_0x202630(0x197),'risk':a32_0x202630(0x195),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x113121){const _0x5ca848=a32_0x202630,_0x5e29a9=requireFilePath(_0x113121[_0x5ca848(0x196)](_0x5ca848(0x19a))),_0xf4167b=await queryRuntimeFileUrl(_0x5e29a9,{'download':_0x113121['bool'](_0x5ca848(0x1a0)),'longTerm':_0x113121[_0x5ca848(0x199)]('long-term')});return{'ok':!![],'data':_0xf4167b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0x55a88a=a32_0x4304;(function(_0x57d610,_0x4cf348){const _0x1a7e1e=a32_0x4304,_0x46700a=_0x57d610();while(!![]){try{const _0xe32918=parseInt(_0x1a7e1e(0x120))/0x1+-parseInt(_0x1a7e1e(0x126))/0x2+parseInt(_0x1a7e1e(0x123))/0x3*(-parseInt(_0x1a7e1e(0x12d))/0x4)+-parseInt(_0x1a7e1e(0x109))/0x5*(-parseInt(_0x1a7e1e(0x116))/0x6)+parseInt(_0x1a7e1e(0x118))/0x7*(-parseInt(_0x1a7e1e(0x12c))/0x8)+parseInt(_0x1a7e1e(0x110))/0x9+parseInt(_0x1a7e1e(0x10e))/0xa;if(_0xe32918===_0x4cf348)break;else _0x46700a['push'](_0x46700a['shift']());}catch(_0x3251fa){_0x46700a['push'](_0x46700a['shift']());}}}(a32_0x33c2,0xed50a));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 a32_0x4304(_0xbaf9a0,_0x2e4c3a){_0xbaf9a0=_0xbaf9a0-0x108;const _0x33c26f=a32_0x33c2();let _0x4304c9=_0x33c26f[_0xbaf9a0];return _0x4304c9;}export const appImportFlagDefs=[{'name':a32_0x55a88a(0x12e),'type':a32_0x55a88a(0x111),'description':a32_0x55a88a(0x10b),'required':!![]},{'name':'appcode','type':'string','description':a32_0x55a88a(0x119)},{'name':a32_0x55a88a(0x122),'type':a32_0x55a88a(0x111),'description':a32_0x55a88a(0x10a),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a32_0x55a88a(0x12b)]+')\x20instead\x20of\x20project','default':![]},{'name':a32_0x55a88a(0x128),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runAppImport(_0x5b82b8){const _0xd51fb5=a32_0x55a88a,_0x440294=_0x5b82b8[_0xd51fb5(0x121)]?_0xd51fb5(0x121):_0xd51fb5(0x10c),_0x11c50f=resolveWriteConfigPath(_0x440294);await runFromImport(_0x5b82b8,_0x11c50f);}async function runFromImport(_0x227880,_0x2fdb0d){const _0xabd86d=a32_0x55a88a,_0xb8c5cc=resolveFilePath(_0x227880[_0xabd86d(0x12e)]);if(!existsSync(_0xb8c5cc))throw CliErrors[_0xabd86d(0x115)](_0xabd86d(0x11b)+_0xb8c5cc);const _0x500ca4=readSourceFile(_0xb8c5cc),_0x62748e=convertToRuntimeConfig(_0x500ca4);_0x227880[_0xabd86d(0x127)]&&(_0x62748e['appcode']=String(_0x227880[_0xabd86d(0x127)]));_0x227880['env']&&(_0x62748e[_0xabd86d(0x122)]=resolveImportEnv(_0x227880));if(!_0x62748e[_0xabd86d(0x127)])throw CliErrors[_0xabd86d(0x115)](_0xabd86d(0x112),_0xabd86d(0x125));await writeImportConfig(_0x2fdb0d,_0x62748e,_0x227880),console[_0xabd86d(0x12f)](_0xabd86d(0x12a)+_0xb8c5cc),console[_0xabd86d(0x12f)](_0xabd86d(0x10d)+_0x2fdb0d),console[_0xabd86d(0x12f)](_0xabd86d(0x11f)+_0x62748e[_0xabd86d(0x127)]);if(_0x62748e[_0xabd86d(0x117)])console[_0xabd86d(0x12f)]('\x20\x20default:\x20'+_0x62748e[_0xabd86d(0x117)]);}function convertToRuntimeConfig(_0x2ad88b){const _0x1e439e=a32_0x55a88a;if(_0x2ad88b['apps']&&typeof _0x2ad88b[_0x1e439e(0x108)]===_0x1e439e(0x129))throw CliErrors[_0x1e439e(0x115)](_0x1e439e(0x114),_0x1e439e(0x131));const _0x427695={};for(const _0x29cb3f of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2ad88b[_0x29cb3f]!==undefined&&(_0x427695[_0x29cb3f]=_0x2ad88b[_0x29cb3f]);}return!_0x427695[_0x1e439e(0x11a)]&&(_0x427695[_0x1e439e(0x11a)]=DEFAULT_CONFIG_VALUES[_0x1e439e(0x11a)]),_0x427695;}async function writeImportConfig(_0x231864,_0x28fcab,_0x3d1451){const _0x264593=a32_0x55a88a;let _0x351d29={};existsSync(_0x231864)&&!_0x3d1451[_0x264593(0x128)]&&(_0x351d29=readConfigFile(_0x231864));for(const [_0x1e1be9,_0x10e86e]of Object[_0x264593(0x10f)](_0x28fcab)){_0x10e86e!==undefined&&(_0x351d29[_0x1e1be9]=_0x10e86e);}if(_0x351d29[_0x264593(0x11c)])delete _0x351d29[_0x264593(0x11c)];writeConfigFile(_0x231864,_0x351d29);}function resolveFilePath(_0x355071){return isAbsolute(_0x355071)?_0x355071:resolve(process['cwd'](),_0x355071);}function readSourceFile(_0x288686){const _0x36d871=a32_0x55a88a;try{const _0x338901=readFileSync(_0x288686,{'encoding':_0x36d871(0x124)});return JSON['parse'](_0x338901);}catch(_0x405a1b){throw CliErrors[_0x36d871(0x115)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x405a1b[_0x36d871(0x130)]);}}function a32_0x33c2(){const _0x4a2dff=['newConfigFileName','16864qyyEhJ','684GPVAnT','file','log','message','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','apps','44855OIvXHp','Override\x20imported\x20default\x20env','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','project','\x20\x20config:\x20\x20','34832150JcwRHk','entries','5301540GnOYbC','string','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','includes','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','validation','48kMvSIe','defaultApp','1939UevYIi','Override\x20imported\x20default\x20appcode','riskLevel','Source\x20file\x20not\x20found:\x20','app','Invalid\x20env\x20\x22','\x22.\x20Allowed:\x20','\x20\x20appcode:\x20','26566EaHbiO','global','env','29499FwXfua','utf8','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`.','1866416EEuBgU','appcode','yes','object','Imported\x20from\x20'];a32_0x33c2=function(){return _0x4a2dff;};return a32_0x33c2();}function resolveImportEnv(_0x9e120f){const _0x1ce21a=a32_0x55a88a,_0x5036c8=_0x9e120f['env'];if(_0x5036c8===undefined||_0x5036c8==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x1ce21a(0x113)](_0x5036c8))throw CliErrors[_0x1ce21a(0x115)](_0x1ce21a(0x11d)+_0x5036c8+_0x1ce21a(0x11e)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x5036c8;}
1
+ const a33_0x52c787=a33_0x5056;(function(_0x214280,_0x122ae7){const _0x2e8158=a33_0x5056,_0x449027=_0x214280();while(!![]){try{const _0x1b49d0=-parseInt(_0x2e8158(0x17a))/0x1+parseInt(_0x2e8158(0x18f))/0x2*(parseInt(_0x2e8158(0x190))/0x3)+parseInt(_0x2e8158(0x174))/0x4+parseInt(_0x2e8158(0x19b))/0x5+parseInt(_0x2e8158(0x18d))/0x6+parseInt(_0x2e8158(0x180))/0x7*(-parseInt(_0x2e8158(0x16f))/0x8)+parseInt(_0x2e8158(0x178))/0x9;if(_0x1b49d0===_0x122ae7)break;else _0x449027['push'](_0x449027['shift']());}catch(_0x642c4){_0x449027['push'](_0x449027['shift']());}}}(a33_0x3a40,0xa1855));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 a33_0x3a40(){const _0x3778d6=['env','apps','\x20\x20config:\x20\x20','utf8','771372DxwgDC','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`.','parse','file','appcode','riskLevel','project','cwd','defaultApp','Skip\x20confirmation\x20when\x20overwriting','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Override\x20imported\x20default\x20appcode','string','2208882eVsnYS','Override\x20imported\x20default\x20env','18usyslW','30513RCfZpg','entries','newConfigFileName','\x22.\x20Allowed:\x20','join','Invalid\x20env\x20\x22','validation','\x20\x20default:\x20','\x20\x20appcode:\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','boolean','1953740gDKQsq','global','object','32sRzQjv','Imported\x20from\x20',')\x20instead\x20of\x20project','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','app','1481964IiZcQM','yes','Failed\x20to\x20parse\x20source\x20file:\x20','includes','1035072PwCEka','log','233560KVtPtd','message'];a33_0x3a40=function(){return _0x3778d6;};return a33_0x3a40();}export const appImportFlagDefs=[{'name':a33_0x52c787(0x183),'type':a33_0x52c787(0x18c),'description':a33_0x52c787(0x199),'required':!![]},{'name':a33_0x52c787(0x184),'type':a33_0x52c787(0x18c),'description':a33_0x52c787(0x18b)},{'name':a33_0x52c787(0x17c),'type':a33_0x52c787(0x18c),'description':a33_0x52c787(0x18e),'enum':[...RUNTIME_ENV_VALUES]},{'name':a33_0x52c787(0x16d),'type':a33_0x52c787(0x19a),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a33_0x52c787(0x192)]+a33_0x52c787(0x171),'default':![]},{'name':a33_0x52c787(0x175),'type':a33_0x52c787(0x19a),'description':a33_0x52c787(0x189),'default':![]}];export async function runAppImport(_0x2f7d59){const _0x57393d=a33_0x52c787,_0x1bfe25=_0x2f7d59[_0x57393d(0x16d)]?_0x57393d(0x16d):_0x57393d(0x186),_0x4e9db0=resolveWriteConfigPath(_0x1bfe25);await runFromImport(_0x2f7d59,_0x4e9db0);}async function runFromImport(_0x459a18,_0x6978e0){const _0x184174=a33_0x52c787,_0x28f0f5=resolveFilePath(_0x459a18[_0x184174(0x183)]);if(!existsSync(_0x28f0f5))throw CliErrors['validation']('Source\x20file\x20not\x20found:\x20'+_0x28f0f5);const _0x24b2d1=readSourceFile(_0x28f0f5),_0x4919cd=convertToRuntimeConfig(_0x24b2d1);_0x459a18[_0x184174(0x184)]&&(_0x4919cd[_0x184174(0x184)]=String(_0x459a18['appcode']));_0x459a18[_0x184174(0x17c)]&&(_0x4919cd[_0x184174(0x17c)]=resolveImportEnv(_0x459a18));if(!_0x4919cd[_0x184174(0x184)])throw CliErrors[_0x184174(0x196)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x184174(0x181));await writeImportConfig(_0x6978e0,_0x4919cd,_0x459a18),console[_0x184174(0x179)](_0x184174(0x170)+_0x28f0f5),console[_0x184174(0x179)](_0x184174(0x17e)+_0x6978e0),console[_0x184174(0x179)](_0x184174(0x198)+_0x4919cd[_0x184174(0x184)]);if(_0x4919cd[_0x184174(0x188)])console[_0x184174(0x179)](_0x184174(0x197)+_0x4919cd[_0x184174(0x188)]);}function a33_0x5056(_0x37e970,_0x2dae92){_0x37e970=_0x37e970-0x16d;const _0x3a4023=a33_0x3a40();let _0x505633=_0x3a4023[_0x37e970];return _0x505633;}function convertToRuntimeConfig(_0x43ab44){const _0x506be8=a33_0x52c787;if(_0x43ab44[_0x506be8(0x17d)]&&typeof _0x43ab44['apps']===_0x506be8(0x16e))throw CliErrors[_0x506be8(0x196)](_0x506be8(0x18a),_0x506be8(0x172));const _0x1183a4={};for(const _0x59462c of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x43ab44[_0x59462c]!==undefined&&(_0x1183a4[_0x59462c]=_0x43ab44[_0x59462c]);}return!_0x1183a4[_0x506be8(0x185)]&&(_0x1183a4[_0x506be8(0x185)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x1183a4;}async function writeImportConfig(_0x33fc5d,_0x4b92fb,_0x3ed29c){const _0x152ad9=a33_0x52c787;let _0x366d77={};existsSync(_0x33fc5d)&&!_0x3ed29c[_0x152ad9(0x175)]&&(_0x366d77=readConfigFile(_0x33fc5d));for(const [_0x1c1a96,_0x3de74e]of Object[_0x152ad9(0x191)](_0x4b92fb)){_0x3de74e!==undefined&&(_0x366d77[_0x1c1a96]=_0x3de74e);}if(_0x366d77[_0x152ad9(0x173)])delete _0x366d77[_0x152ad9(0x173)];writeConfigFile(_0x33fc5d,_0x366d77);}function resolveFilePath(_0x3d5422){const _0x42fd14=a33_0x52c787;return isAbsolute(_0x3d5422)?_0x3d5422:resolve(process[_0x42fd14(0x187)](),_0x3d5422);}function readSourceFile(_0x251b8d){const _0x5d5e14=a33_0x52c787;try{const _0x16f442=readFileSync(_0x251b8d,{'encoding':_0x5d5e14(0x17f)});return JSON[_0x5d5e14(0x182)](_0x16f442);}catch(_0x1499f2){throw CliErrors[_0x5d5e14(0x196)](_0x5d5e14(0x176)+_0x1499f2[_0x5d5e14(0x17b)]);}}function resolveImportEnv(_0x1c164b){const _0x1936f2=a33_0x52c787,_0x1399c5=_0x1c164b[_0x1936f2(0x17c)];if(_0x1399c5===undefined||_0x1399c5==='')return DEFAULT_CONFIG_VALUES[_0x1936f2(0x17c)];if(!RUNTIME_ENV_VALUES[_0x1936f2(0x177)](_0x1399c5))throw CliErrors[_0x1936f2(0x196)](_0x1936f2(0x195)+_0x1399c5+_0x1936f2(0x193)+RUNTIME_ENV_VALUES[_0x1936f2(0x194)](',\x20'));return _0x1399c5;}
@@ -1 +1 @@
1
- const a33_0x47a902=a33_0x79b8;(function(_0x5cdb62,_0x2a23a0){const _0x3852c2=a33_0x79b8,_0x22f928=_0x5cdb62();while(!![]){try{const _0xceb1d8=parseInt(_0x3852c2(0x166))/0x1+-parseInt(_0x3852c2(0x150))/0x2+parseInt(_0x3852c2(0x145))/0x3*(-parseInt(_0x3852c2(0x143))/0x4)+parseInt(_0x3852c2(0x16f))/0x5+parseInt(_0x3852c2(0x15d))/0x6*(-parseInt(_0x3852c2(0x167))/0x7)+-parseInt(_0x3852c2(0x16a))/0x8*(-parseInt(_0x3852c2(0x170))/0x9)+-parseInt(_0x3852c2(0x133))/0xa*(-parseInt(_0x3852c2(0x14f))/0xb);if(_0xceb1d8===_0x2a23a0)break;else _0x22f928['push'](_0x22f928['shift']());}catch(_0xc763ea){_0x22f928['push'](_0x22f928['shift']());}}}(a33_0x1875,0xd5b90));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x47a902(0x144),'type':'string','required':!![],'description':a33_0x47a902(0x14c)},FILE_FLAG={'name':'file','type':'string','required':!![],'description':a33_0x47a902(0x13a)},QUERY_FLAG={'name':a33_0x47a902(0x146),'type':a33_0x47a902(0x14d),'required':!![],'description':a33_0x47a902(0x131)},TOPK_FLAG={'name':'topk','type':a33_0x47a902(0x157),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x4892a6){const _0x3cf46e=a33_0x47a902;if(!_0x4892a6)throw CliErrors[_0x3cf46e(0x158)](_0x3cf46e(0x14a));if(!existsSync(_0x4892a6))throw CliErrors[_0x3cf46e(0x158)](_0x3cf46e(0x162)+_0x4892a6);if(!statSync(_0x4892a6)[_0x3cf46e(0x15b)]())throw CliErrors[_0x3cf46e(0x158)](_0x3cf46e(0x155)+_0x4892a6);return readFileSync(_0x4892a6,_0x3cf46e(0x15f));}function summarizePersonalItem(_0x1182ea){const _0x307f23=a33_0x47a902;return{'id':_0x1182ea['id'],'title':_0x1182ea[_0x307f23(0x144)],'version':_0x1182ea[_0x307f23(0x161)],'ragStatus':_0x1182ea[_0x307f23(0x151)],'ragErrorMessage':_0x1182ea['ragErrorMessage'],'updateTime':_0x1182ea[_0x307f23(0x16b)]};}function detailPersonalItem(_0x24fcaa){const _0x162c55=a33_0x47a902;return{'id':_0x24fcaa['id'],'appCode':_0x24fcaa[_0x162c55(0x165)],'scope':_0x24fcaa['scope'],'userId':_0x24fcaa[_0x162c55(0x16d)],'title':_0x24fcaa[_0x162c55(0x144)],'content':_0x24fcaa['content']??'','version':_0x24fcaa[_0x162c55(0x161)],'ragStatus':_0x24fcaa[_0x162c55(0x151)],'ragErrorMessage':_0x24fcaa[_0x162c55(0x142)],'createTime':_0x24fcaa[_0x162c55(0x137)],'updateTime':_0x24fcaa[_0x162c55(0x16b)]};}function a33_0x79b8(_0x206dba,_0x16e110){_0x206dba=_0x206dba-0x131;const _0x187535=a33_0x1875();let _0x79b863=_0x187535[_0x206dba];return _0x79b863;}function a33_0x1875(){const _0xcad028=['File\x20not\x20found:\x20','build','update','appCode','1004544meelJC','1011710cRodyb','Personal\x20knowledge-base\x20entry\x20ID','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','8wYwULw','updateTime','file','userId','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','6690520ZrPSLN','4782087kgSDhE','Search\x20query\x20is\x20required.','topk','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','map','3810NwfJva','trim','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','str','createTime','flag','bool','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','search','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','signal','read','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','verbose','length','ragErrorMessage','833956wxZLMD','title','3oKmMIz','query','/client/knowledge-base/personal/','write','num','File\x20path\x20is\x20required.','Created\x20KB\x20entry\x20','Personal\x20knowledge-base\x20entry\x20title','string','detail','31757VWddnd','2600422mPQFUg','ragStatus','description','list','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','File\x20is\x20not\x20a\x20regular\x20file:\x20','create','number','validation','POST','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','isFile','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','66JoxQRX','/client/knowledge-base/personal/create','utf8','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','version'];a33_0x1875=function(){return _0xcad028;};return a33_0x1875();}function readTopK(_0x2cbd46){const _0x2b19eb=a33_0x47a902,_0xb5f34=_0x2cbd46[_0x2b19eb(0x138)](_0x2b19eb(0x172));if(_0xb5f34===undefined||_0xb5f34===null||_0xb5f34==='')return undefined;const _0x3c6218=_0x2cbd46[_0x2b19eb(0x149)](_0x2b19eb(0x172));if(!Number['isSafeInteger'](_0x3c6218)||_0x3c6218<0x1||_0x3c6218>0x32)throw CliErrors[_0x2b19eb(0x158)]('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x3c6218;}const kbList={'service':'kb','command':a33_0x47a902(0x153),'description':a33_0x47a902(0x13f),'risk':a33_0x47a902(0x13e),'flags':[VERBOSE_FLAG],async 'execute'(_0x47d9e2){const _0x698f1=a33_0x47a902,_0x507610=await listPersonalKnowledgeBaseItems(_0x47d9e2['appCode']);if(_0x47d9e2[_0x698f1(0x139)](_0x698f1(0x140)))return{'ok':!![],'data':{'total':_0x507610[_0x698f1(0x141)],'items':_0x507610}};return{'ok':!![],'data':{'total':_0x507610[_0x698f1(0x141)],'items':_0x507610[_0x698f1(0x132)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x47a902(0x14e),'description':a33_0x47a902(0x15c),'risk':a33_0x47a902(0x13e),'flags':[{...ID_FLAG,'description':a33_0x47a902(0x168)}],async 'execute'(_0xc0eb37){const _0x4bbfd7=a33_0x47a902,_0x3ca641=await getPersonalKnowledgeBaseItem(_0xc0eb37[_0x4bbfd7(0x149)]('id'),_0xc0eb37['appCode']);return{'ok':!![],'data':detailPersonalItem(_0x3ca641)};}},kbCreate={'service':'kb','command':a33_0x47a902(0x156),'description':a33_0x47a902(0x135),'risk':a33_0x47a902(0x148),'confirmationDescription':a33_0x47a902(0x169),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x2f993c){const _0x414ba9=a33_0x47a902,_0xc8f7ed=_0x2f993c['str'](_0x414ba9(0x144)),_0x1023e1=readKnowledgeFile(_0x2f993c[_0x414ba9(0x136)](_0x414ba9(0x16c))),_0x51dc71=await createPersonalKnowledgeBaseItem(_0x2f993c[_0x414ba9(0x165)],{'title':_0xc8f7ed,'content':_0x1023e1});return{'ok':!![],'data':summarizePersonalItem(_0x51dc71),'message':_0x414ba9(0x14b)+_0x51dc71['id']+'\x20('+_0x51dc71['title']+')'};},async 'dryRun'(_0x2290d5){const _0x91a80e=a33_0x47a902,_0x4f2100=_0x2290d5[_0x91a80e(0x136)](_0x91a80e(0x144)),_0x4ab16e=readKnowledgeFile(_0x2290d5['str']('file'));return dryRun('POST',_0x91a80e(0x15e))['body']({'appCode':_0x2290d5[_0x91a80e(0x165)],'title':_0x4f2100,'content':_0x4ab16e})[_0x91a80e(0x152)](_0x91a80e(0x13c)+_0x4f2100+'\x22')[_0x91a80e(0x163)]();}},kbUpdate={'service':'kb','command':a33_0x47a902(0x164),'description':a33_0x47a902(0x15a),'risk':'write','confirmationDescription':a33_0x47a902(0x154),'flags':[{...ID_FLAG,'description':a33_0x47a902(0x168)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x27ab26){const _0x75cd4b=a33_0x47a902,_0x310b18=_0x27ab26[_0x75cd4b(0x149)]('id'),_0x177b97=readKnowledgeFile(_0x27ab26['str'](_0x75cd4b(0x16c))),_0x5806d9=_0x27ab26[_0x75cd4b(0x136)](_0x75cd4b(0x144))||(await getPersonalKnowledgeBaseItem(_0x310b18,_0x27ab26[_0x75cd4b(0x165)]))[_0x75cd4b(0x144)],_0x5091e4=await updatePersonalKnowledgeBaseItem(_0x310b18,_0x27ab26['appCode'],{'title':_0x5806d9,'content':_0x177b97});return{'ok':!![],'data':summarizePersonalItem(_0x5091e4),'message':'Updated\x20KB\x20entry\x20'+_0x5091e4['id']+'\x20('+_0x5091e4['title']+')'};},async 'dryRun'(_0x4e7e37){const _0x10e049=a33_0x47a902,_0x381294=_0x4e7e37[_0x10e049(0x149)]('id'),_0x51c099=readKnowledgeFile(_0x4e7e37[_0x10e049(0x136)](_0x10e049(0x16c))),_0x45442a=_0x4e7e37['str']('title')||(await getPersonalKnowledgeBaseItem(_0x381294,_0x4e7e37[_0x10e049(0x165)]))[_0x10e049(0x144)];return dryRun(_0x10e049(0x159),_0x10e049(0x147)+_0x381294+'/update')['body']({'appCode':_0x4e7e37[_0x10e049(0x165)],'title':_0x45442a,'content':_0x51c099})[_0x10e049(0x152)](_0x10e049(0x160)+_0x381294)['build']();}},kbSearch={'service':'kb','command':a33_0x47a902(0x13b),'description':a33_0x47a902(0x16e),'risk':a33_0x47a902(0x13e),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x2adbf2){const _0x9efda=a33_0x47a902;if(!_0x2adbf2[_0x9efda(0x136)](_0x9efda(0x146))['trim']())throw CliErrors['validation'](_0x9efda(0x171));readTopK(_0x2adbf2);},async 'execute'(_0x1a6f7f){const _0x2b5e84=a33_0x47a902,_0x39bf00=_0x1a6f7f[_0x2b5e84(0x136)](_0x2b5e84(0x146))[_0x2b5e84(0x134)](),_0x5a9319=readTopK(_0x1a6f7f),_0xa8c4b=await searchRuntimeKnowledge({'appCode':_0x1a6f7f[_0x2b5e84(0x165)],'accessKey':_0x1a6f7f['accessKey']??'','query':_0x39bf00,..._0x5a9319!==undefined?{'topK':_0x5a9319}:{},'signal':_0x1a6f7f[_0x2b5e84(0x13d)]});return{'ok':!![],'data':_0xa8c4b};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a34_0xf431be=a34_0x6f07;(function(_0x3a44df,_0x41bb5e){const _0x8136e8=a34_0x6f07,_0x64212=_0x3a44df();while(!![]){try{const _0x272eb0=-parseInt(_0x8136e8(0x206))/0x1*(parseInt(_0x8136e8(0x223))/0x2)+parseInt(_0x8136e8(0x214))/0x3+-parseInt(_0x8136e8(0x20f))/0x4*(-parseInt(_0x8136e8(0x1f5))/0x5)+-parseInt(_0x8136e8(0x217))/0x6*(parseInt(_0x8136e8(0x216))/0x7)+parseInt(_0x8136e8(0x215))/0x8*(parseInt(_0x8136e8(0x225))/0x9)+parseInt(_0x8136e8(0x1fb))/0xa+-parseInt(_0x8136e8(0x222))/0xb*(parseInt(_0x8136e8(0x219))/0xc);if(_0x272eb0===_0x41bb5e)break;else _0x64212['push'](_0x64212['shift']());}catch(_0x327234){_0x64212['push'](_0x64212['shift']());}}}(a34_0x3de0,0xef270));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';function a34_0x3de0(){const _0x3bc78e=['topk','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','version','write','7711885twikyh','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','body','File\x20path\x20is\x20required.','signal','utf8','5939420uODfMm','detail','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','title','description','File\x20is\x20not\x20a\x20regular\x20file:\x20','verbose','accessKey','validation','updateTime','map','64949pImajP','read','/client/knowledge-base/personal/create','userId','list','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','ragStatus','File\x20not\x20found:\x20','file','4uoQMpm','Search\x20query\x20is\x20required.','Created\x20KB\x20entry\x20','update','flag','532140GVeVbN','8RaVsmO','119NFAzLp','536322RKdoWO','POST','13373028OHOBDb','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','build','Personal\x20knowledge-base\x20entry\x20title','length','create','createTime','string','scope','11LNvjJi','4JgeuPY','query','12867885nZzdKh','ragErrorMessage','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','num','str','bool','number','appCode','isSafeInteger'];a34_0x3de0=function(){return _0x3bc78e;};return a34_0x3de0();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a34_0xf431be(0x1fe),'type':a34_0xf431be(0x220),'required':!![],'description':a34_0xf431be(0x21c)},FILE_FLAG={'name':a34_0xf431be(0x20e),'type':a34_0xf431be(0x220),'required':!![],'description':a34_0xf431be(0x231)},QUERY_FLAG={'name':'query','type':a34_0xf431be(0x220),'required':!![],'description':a34_0xf431be(0x20b)},TOPK_FLAG={'name':'topk','type':a34_0xf431be(0x22b),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function readKnowledgeFile(_0x5b61a8){const _0x38c5a9=a34_0xf431be;if(!_0x5b61a8)throw CliErrors[_0x38c5a9(0x203)](_0x38c5a9(0x1f8));if(!existsSync(_0x5b61a8))throw CliErrors[_0x38c5a9(0x203)](_0x38c5a9(0x20d)+_0x5b61a8);if(!statSync(_0x5b61a8)['isFile']())throw CliErrors[_0x38c5a9(0x203)](_0x38c5a9(0x200)+_0x5b61a8);return readFileSync(_0x5b61a8,_0x38c5a9(0x1fa));}function a34_0x6f07(_0x448685,_0x3027e0){_0x448685=_0x448685-0x1f3;const _0x3de074=a34_0x3de0();let _0x6f0761=_0x3de074[_0x448685];return _0x6f0761;}function summarizePersonalItem(_0x1485b9){const _0x40d067=a34_0xf431be;return{'id':_0x1485b9['id'],'title':_0x1485b9[_0x40d067(0x1fe)],'version':_0x1485b9[_0x40d067(0x1f3)],'ragStatus':_0x1485b9[_0x40d067(0x20c)],'ragErrorMessage':_0x1485b9[_0x40d067(0x226)],'updateTime':_0x1485b9[_0x40d067(0x204)]};}function detailPersonalItem(_0x3e34cd){const _0x3a30d2=a34_0xf431be;return{'id':_0x3e34cd['id'],'appCode':_0x3e34cd['appCode'],'scope':_0x3e34cd[_0x3a30d2(0x221)],'userId':_0x3e34cd[_0x3a30d2(0x209)],'title':_0x3e34cd['title'],'content':_0x3e34cd['content']??'','version':_0x3e34cd[_0x3a30d2(0x1f3)],'ragStatus':_0x3e34cd[_0x3a30d2(0x20c)],'ragErrorMessage':_0x3e34cd[_0x3a30d2(0x226)],'createTime':_0x3e34cd[_0x3a30d2(0x21f)],'updateTime':_0x3e34cd[_0x3a30d2(0x204)]};}function readTopK(_0x14af66){const _0x4c7b9a=a34_0xf431be,_0x3d0a79=_0x14af66[_0x4c7b9a(0x213)](_0x4c7b9a(0x22e));if(_0x3d0a79===undefined||_0x3d0a79===null||_0x3d0a79==='')return undefined;const _0x1c4b9=_0x14af66[_0x4c7b9a(0x228)](_0x4c7b9a(0x22e));if(!Number[_0x4c7b9a(0x22d)](_0x1c4b9)||_0x1c4b9<0x1||_0x1c4b9>0x32)throw CliErrors['validation'](_0x4c7b9a(0x1fd));return _0x1c4b9;}const kbList={'service':'kb','command':a34_0xf431be(0x20a),'description':a34_0xf431be(0x22f),'risk':a34_0xf431be(0x207),'flags':[VERBOSE_FLAG],async 'execute'(_0x5c2f7e){const _0x26e619=a34_0xf431be,_0x3003b0=await listPersonalKnowledgeBaseItems(_0x5c2f7e[_0x26e619(0x22c)]);if(_0x5c2f7e[_0x26e619(0x22a)](_0x26e619(0x201)))return{'ok':!![],'data':{'total':_0x3003b0['length'],'items':_0x3003b0}};return{'ok':!![],'data':{'total':_0x3003b0[_0x26e619(0x21d)],'items':_0x3003b0[_0x26e619(0x205)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a34_0xf431be(0x1fc),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x154d75){const _0x2a622c=a34_0xf431be,_0x503e94=await getPersonalKnowledgeBaseItem(_0x154d75[_0x2a622c(0x228)]('id'),_0x154d75[_0x2a622c(0x22c)]);return{'ok':!![],'data':detailPersonalItem(_0x503e94)};}},kbCreate={'service':'kb','command':a34_0xf431be(0x21e),'description':a34_0xf431be(0x230),'risk':a34_0xf431be(0x1f4),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x72605c){const _0x35f2cf=a34_0xf431be,_0x138c9a=_0x72605c['str']('title'),_0x2bc186=readKnowledgeFile(_0x72605c[_0x35f2cf(0x229)](_0x35f2cf(0x20e))),_0x503161=await createPersonalKnowledgeBaseItem(_0x72605c['appCode'],{'title':_0x138c9a,'content':_0x2bc186});return{'ok':!![],'data':summarizePersonalItem(_0x503161),'message':_0x35f2cf(0x211)+_0x503161['id']+'\x20('+_0x503161['title']+')'};},async 'dryRun'(_0x28e398){const _0x274989=a34_0xf431be,_0x34c943=_0x28e398[_0x274989(0x229)](_0x274989(0x1fe)),_0x3999e6=readKnowledgeFile(_0x28e398[_0x274989(0x229)](_0x274989(0x20e)));return dryRun(_0x274989(0x218),_0x274989(0x208))[_0x274989(0x1f7)]({'appCode':_0x28e398[_0x274989(0x22c)],'title':_0x34c943,'content':_0x3999e6})['description'](_0x274989(0x227)+_0x34c943+'\x22')[_0x274989(0x21b)]();}},kbUpdate={'service':'kb','command':a34_0xf431be(0x212),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a34_0xf431be(0x1f4),'confirmationDescription':a34_0xf431be(0x21a),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x14f927){const _0x38d00e=a34_0xf431be,_0x2bf19e=_0x14f927[_0x38d00e(0x228)]('id'),_0x297005=readKnowledgeFile(_0x14f927[_0x38d00e(0x229)](_0x38d00e(0x20e))),_0x2e8fae=_0x14f927['str'](_0x38d00e(0x1fe))||(await getPersonalKnowledgeBaseItem(_0x2bf19e,_0x14f927[_0x38d00e(0x22c)]))[_0x38d00e(0x1fe)],_0x3b68b8=await updatePersonalKnowledgeBaseItem(_0x2bf19e,_0x14f927[_0x38d00e(0x22c)],{'title':_0x2e8fae,'content':_0x297005});return{'ok':!![],'data':summarizePersonalItem(_0x3b68b8),'message':'Updated\x20KB\x20entry\x20'+_0x3b68b8['id']+'\x20('+_0x3b68b8[_0x38d00e(0x1fe)]+')'};},async 'dryRun'(_0x3fb0ec){const _0x37f8a9=a34_0xf431be,_0x49bd04=_0x3fb0ec[_0x37f8a9(0x228)]('id'),_0x4d380b=readKnowledgeFile(_0x3fb0ec[_0x37f8a9(0x229)]('file')),_0x1d4f80=_0x3fb0ec['str'](_0x37f8a9(0x1fe))||(await getPersonalKnowledgeBaseItem(_0x49bd04,_0x3fb0ec[_0x37f8a9(0x22c)]))[_0x37f8a9(0x1fe)];return dryRun('POST','/client/knowledge-base/personal/'+_0x49bd04+'/update')[_0x37f8a9(0x1f7)]({'appCode':_0x3fb0ec[_0x37f8a9(0x22c)],'title':_0x1d4f80,'content':_0x4d380b})[_0x37f8a9(0x1ff)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x49bd04)[_0x37f8a9(0x21b)]();}},kbSearch={'service':'kb','command':'search','description':a34_0xf431be(0x1f6),'risk':a34_0xf431be(0x207),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x185adf){const _0x55ee9c=a34_0xf431be;if(!_0x185adf[_0x55ee9c(0x229)]('query')['trim']())throw CliErrors[_0x55ee9c(0x203)](_0x55ee9c(0x210));readTopK(_0x185adf);},async 'execute'(_0x3e3a16){const _0x395bdb=a34_0xf431be,_0x12b312=_0x3e3a16[_0x395bdb(0x229)](_0x395bdb(0x224))['trim'](),_0x233223=readTopK(_0x3e3a16),_0x1bf499=await searchRuntimeKnowledge({'appCode':_0x3e3a16['appCode'],'accessKey':_0x3e3a16[_0x395bdb(0x202)]??'','query':_0x12b312,..._0x233223!==undefined?{'topK':_0x233223}:{},'signal':_0x3e3a16[_0x395bdb(0x1f9)]});return{'ok':!![],'data':_0x1bf499};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a34_0x135632=a34_0x4817;(function(_0x442098,_0x37ccad){const _0x34881c=a34_0x4817,_0x9d13bb=_0x442098();while(!![]){try{const _0x4b9dfc=-parseInt(_0x34881c(0x13b))/0x1+parseInt(_0x34881c(0x132))/0x2+parseInt(_0x34881c(0x138))/0x3+parseInt(_0x34881c(0x141))/0x4*(parseInt(_0x34881c(0x12c))/0x5)+-parseInt(_0x34881c(0x13c))/0x6+-parseInt(_0x34881c(0x127))/0x7*(-parseInt(_0x34881c(0x144))/0x8)+parseInt(_0x34881c(0x139))/0x9*(-parseInt(_0x34881c(0x137))/0xa);if(_0x4b9dfc===_0x37ccad)break;else _0x9d13bb['push'](_0x9d13bb['shift']());}catch(_0xdd7c9a){_0x9d13bb['push'](_0x9d13bb['shift']());}}}(a34_0x362c,0x6a384));function a34_0x4817(_0x18941f,_0x47e2a7){_0x18941f=_0x18941f-0x127;const _0x362cb2=a34_0x362c();let _0x481787=_0x362cb2[_0x18941f];return _0x481787;}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x419cfa){const _0x4467d4=a34_0x4817;if(_0x419cfa[_0x4467d4(0x129)]===0x0){console[_0x4467d4(0x12a)](_0x4467d4(0x136));return;}console[_0x4467d4(0x12a)]('*\x20'+CLI_DISPLAY_NAME+_0x4467d4(0x134)),_0x419cfa[_0x4467d4(0x143)]((_0x2e20e8,_0x209893)=>{const _0x35a264=_0x4467d4,_0x2819a2=new Date(_0x2e20e8[_0x35a264(0x13f)])[_0x35a264(0x128)](_0x35a264(0x12f)),_0x44f1d5=_0x2e20e8['level']===_0x35a264(0x12b)?'√':_0x2e20e8[_0x35a264(0x13a)]===_0x35a264(0x12d)?'×':_0x2e20e8[_0x35a264(0x13a)]===_0x35a264(0x135)?'!':'i';console[_0x35a264(0x12a)](_0x209893+0x1+'.\x20'+_0x44f1d5+'\x20['+_0x2e20e8[_0x35a264(0x13e)]+']\x20'+_0x2e20e8[_0x35a264(0x13d)]),console[_0x35a264(0x12a)]('\x20\x20\x20Time:\x20'+_0x2819a2),_0x2e20e8[_0x35a264(0x142)]&&console[_0x35a264(0x12a)]('\x20\x20\x20Duration:\x20'+_0x2e20e8[_0x35a264(0x142)]+'ms'),_0x2e20e8['details']&&Object[_0x35a264(0x133)](_0x2e20e8[_0x35a264(0x12e)])['length']>0x0&&console[_0x35a264(0x12a)](_0x35a264(0x140)+JSON[_0x35a264(0x130)](_0x2e20e8[_0x35a264(0x12e)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':'logs','command':a34_0x135632(0x131),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4e3197){return printLogs(logger['readLogs']()),{'ok':!![]};}}];function a34_0x362c(){const _0x35ab67=['265576ZqgcdV','77eFMZRg','toLocaleString','length','log','success','10RsyupF','error','details','en-US','stringify','show','1411600Hoftjw','keys','\x20logs:\x0a','warn','*\x20No\x20logs\x20found','11402970aOOsst','1943064BUtXhI','9JQnrrg','level','425005INbtnh','487206CCXUKP','message','command','timestamp','\x20\x20\x20Details:\x20','725848GsprzE','duration','forEach'];a34_0x362c=function(){return _0x35ab67;};return a34_0x362c();}
1
+ function a35_0x5d1a(){const _0x43562f=['timestamp','18680kZLXdS','2797290nnqIjA','2nBCqik','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','toLocaleString','\x20logs:\x0a','level','forEach','763LdkEsI','error','8849646sWwuoA','2878194SyyqsA','log','details','5Hambbd','read','command','5825530KcBant','View\x20command\x20history\x20logs','keys','3823392wRBthh','warn','389041hiBGIZ','duration','length','logs','message','show'];a35_0x5d1a=function(){return _0x43562f;};return a35_0x5d1a();}const a35_0x5c0b9b=a35_0x51e9;function a35_0x51e9(_0x270804,_0x1ca7b0){_0x270804=_0x270804-0x1d7;const _0x5d1ab4=a35_0x5d1a();let _0x51e92a=_0x5d1ab4[_0x270804];return _0x51e92a;}(function(_0x4ce067,_0x5332f5){const _0x43ccf1=a35_0x51e9,_0x427cfb=_0x4ce067();while(!![]){try{const _0x35d4e9=-parseInt(_0x43ccf1(0x1e8))/0x1*(-parseInt(_0x43ccf1(0x1f1))/0x2)+parseInt(_0x43ccf1(0x1dd))/0x3+parseInt(_0x43ccf1(0x1e6))/0x4+parseInt(_0x43ccf1(0x1e0))/0x5*(-parseInt(_0x43ccf1(0x1f0))/0x6)+parseInt(_0x43ccf1(0x1da))/0x7*(parseInt(_0x43ccf1(0x1ef))/0x8)+-parseInt(_0x43ccf1(0x1dc))/0x9+-parseInt(_0x43ccf1(0x1e3))/0xa;if(_0x35d4e9===_0x5332f5)break;else _0x427cfb['push'](_0x427cfb['shift']());}catch(_0x54bcdc){_0x427cfb['push'](_0x427cfb['shift']());}}}(a35_0x5d1a,0x80994));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x3f97b1){const _0x28f95e=a35_0x51e9;if(_0x3f97b1[_0x28f95e(0x1ea)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x28f95e(0x1d7)),_0x3f97b1[_0x28f95e(0x1d9)]((_0xbbb943,_0x4e2765)=>{const _0x22729d=_0x28f95e,_0x39f6be=new Date(_0xbbb943[_0x22729d(0x1ee)])[_0x22729d(0x1f4)]('en-US'),_0x51b750=_0xbbb943[_0x22729d(0x1d8)]==='success'?'√':_0xbbb943[_0x22729d(0x1d8)]===_0x22729d(0x1db)?'×':_0xbbb943[_0x22729d(0x1d8)]===_0x22729d(0x1e7)?'!':'i';console['log'](_0x4e2765+0x1+'.\x20'+_0x51b750+'\x20['+_0xbbb943[_0x22729d(0x1e2)]+']\x20'+_0xbbb943[_0x22729d(0x1ec)]),console[_0x22729d(0x1de)]('\x20\x20\x20Time:\x20'+_0x39f6be),_0xbbb943[_0x22729d(0x1e9)]&&console[_0x22729d(0x1de)](_0x22729d(0x1f3)+_0xbbb943[_0x22729d(0x1e9)]+'ms'),_0xbbb943[_0x22729d(0x1df)]&&Object[_0x22729d(0x1e5)](_0xbbb943[_0x22729d(0x1df)])['length']>0x0&&console[_0x22729d(0x1de)](_0x22729d(0x1f2)+JSON['stringify'](_0xbbb943[_0x22729d(0x1df)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a35_0x5c0b9b(0x1eb),'command':a35_0x5c0b9b(0x1ed),'description':a35_0x5c0b9b(0x1e4),'risk':a35_0x5c0b9b(0x1e1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x25f943){return printLogs(logger['readLogs']()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x4ad9ed=a35_0x57ae;(function(_0x30b9cf,_0x51cb19){const _0x26dc02=a35_0x57ae,_0x4cc758=_0x30b9cf();while(!![]){try{const _0x3a9cc0=-parseInt(_0x26dc02(0xaf))/0x1*(-parseInt(_0x26dc02(0xba))/0x2)+-parseInt(_0x26dc02(0xa6))/0x3*(-parseInt(_0x26dc02(0xb9))/0x4)+parseInt(_0x26dc02(0xb0))/0x5*(parseInt(_0x26dc02(0xb5))/0x6)+-parseInt(_0x26dc02(0xab))/0x7+parseInt(_0x26dc02(0xa5))/0x8*(parseInt(_0x26dc02(0xb2))/0x9)+-parseInt(_0x26dc02(0xb4))/0xa*(parseInt(_0x26dc02(0xb8))/0xb)+-parseInt(_0x26dc02(0xac))/0xc*(parseInt(_0x26dc02(0xa8))/0xd);if(_0x3a9cc0===_0x51cb19)break;else _0x4cc758['push'](_0x4cc758['shift']());}catch(_0x5cb3fd){_0x4cc758['push'](_0x4cc758['shift']());}}}(a35_0x8b78,0x3b0ff));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x57ae(_0x181d04,_0x2c7fe7){_0x181d04=_0x181d04-0xa4;const _0x8b78d7=a35_0x8b78();let _0x57aea5=_0x8b78d7[_0x181d04];return _0x57aea5;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a35_0x4ad9ed(0xae),'description':a35_0x4ad9ed(0xaa),'risk':a35_0x4ad9ed(0xa7),'flags':[{'name':a35_0x4ad9ed(0xad),'type':'string','description':a35_0x4ad9ed(0xa4),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x43eef6){readNotificationChannelType(_0x43eef6);},async 'execute'(_0xbf0675){const _0x1d41f7=a35_0x4ad9ed,_0x705bcf=readNotificationChannelType(_0xbf0675),_0x6739e4=await listNotificationChannelConfigs(_0xbf0675[_0x1d41f7(0xb7)],_0x705bcf),_0x515422=_0x6739e4[_0x1d41f7(0xb1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0xbf0675[_0x1d41f7(0xb7)],'channelType':_0x705bcf,'count':_0x515422[_0x1d41f7(0xa9)],'configs':_0x515422},'message':_0x1d41f7(0xb3)+_0x515422['length']+'\x20'+_0x705bcf+_0x1d41f7(0xb6)};}};function a35_0x8b78(){const _0x5e703d=['\x20notification\x20config(s)','appCode','33sZZFHy','172lAamXK','805864RMGCYb','Notification\x20channel\x20type','40Dxvkag','16518upbbZk','read','2301KhWeTH','length','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','3038966kIbdHT','22776tGCwjv','type','config-list','1bGtdNG','630030ulSbeX','map','869661IRlMDy','Found\x20','789460saMHJX','6dlXQom'];a35_0x8b78=function(){return _0x5e703d;};return a35_0x8b78();}
1
+ const a36_0x292ea1=a36_0x21a5;(function(_0x5bb56b,_0x320e48){const _0x13acf0=a36_0x21a5,_0x313c3f=_0x5bb56b();while(!![]){try{const _0xd6d142=-parseInt(_0x13acf0(0x135))/0x1+-parseInt(_0x13acf0(0x142))/0x2+-parseInt(_0x13acf0(0x132))/0x3+parseInt(_0x13acf0(0x130))/0x4*(-parseInt(_0x13acf0(0x139))/0x5)+parseInt(_0x13acf0(0x134))/0x6+-parseInt(_0x13acf0(0x133))/0x7+parseInt(_0x13acf0(0x13e))/0x8*(parseInt(_0x13acf0(0x13f))/0x9);if(_0xd6d142===_0x320e48)break;else _0x313c3f['push'](_0x313c3f['shift']());}catch(_0x32f1ed){_0x313c3f['push'](_0x313c3f['shift']());}}}(a36_0x2058,0xcce09));function a36_0x2058(){const _0x5c72fb=['929610mjALlB','Found\x20','28bMAVmQ','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1453020fgXokd','6176765uNIZzR','5045076ITaydP','1589993dKyaGr','map','notification','config-list','905150Grxido','read','string','\x20notification\x20config(s)','appCode','24GfCglt','14061222OKBacS','length','type'];a36_0x2058=function(){return _0x5c72fb;};return a36_0x2058();}function a36_0x21a5(_0x5aceb2,_0x51a960){_0x5aceb2=_0x5aceb2-0x12f;const _0x205840=a36_0x2058();let _0x21a5a4=_0x205840[_0x5aceb2];return _0x21a5a4;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a36_0x292ea1(0x137),'command':a36_0x292ea1(0x138),'description':a36_0x292ea1(0x131),'risk':a36_0x292ea1(0x13a),'flags':[{'name':a36_0x292ea1(0x141),'type':a36_0x292ea1(0x13b),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x5c7e91){readNotificationChannelType(_0x5c7e91);},async 'execute'(_0x6a4f93){const _0x45cce9=a36_0x292ea1,_0x6b0f33=readNotificationChannelType(_0x6a4f93),_0x48d9e2=await listNotificationChannelConfigs(_0x6a4f93[_0x45cce9(0x13d)],_0x6b0f33),_0x1dd86d=_0x48d9e2[_0x45cce9(0x136)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x6a4f93[_0x45cce9(0x13d)],'channelType':_0x6b0f33,'count':_0x1dd86d[_0x45cce9(0x140)],'configs':_0x1dd86d},'message':_0x45cce9(0x12f)+_0x1dd86d[_0x45cce9(0x140)]+'\x20'+_0x6b0f33+_0x45cce9(0x13c)};}};
@@ -1 +1 @@
1
- (function(_0x1def8a,_0x2b6414){const _0x488037=a36_0x57e7,_0x408eda=_0x1def8a();while(!![]){try{const _0x3d0cbd=parseInt(_0x488037(0x162))/0x1*(parseInt(_0x488037(0x15d))/0x2)+parseInt(_0x488037(0x164))/0x3+parseInt(_0x488037(0x167))/0x4*(-parseInt(_0x488037(0x15f))/0x5)+-parseInt(_0x488037(0x168))/0x6+parseInt(_0x488037(0x165))/0x7*(-parseInt(_0x488037(0x15e))/0x8)+parseInt(_0x488037(0x163))/0x9*(parseInt(_0x488037(0x160))/0xa)+-parseInt(_0x488037(0x161))/0xb*(-parseInt(_0x488037(0x166))/0xc);if(_0x3d0cbd===_0x2b6414)break;else _0x408eda['push'](_0x408eda['shift']());}catch(_0x40e83b){_0x408eda['push'](_0x408eda['shift']());}}}(a36_0x1d21,0xcd28b));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x57e7(_0x12c77a,_0x6b0ffc){_0x12c77a=_0x12c77a-0x15d;const _0x1d2139=a36_0x1d21();let _0x57e790=_0x1d2139[_0x12c77a];return _0x57e790;}export const notificationDefinitions=[notificationConfigList];function a36_0x1d21(){const _0xc9ee7e=['9LVhLfu','90495UmowZx','7PZzCLx','8451132wgyndL','7852IwNFup','4139532CJXRRl','1711234EIXGNu','12329608kipMry','2455QbPZgM','3324610NQcari','44OVzfmb','1aMTHEz'];a36_0x1d21=function(){return _0xc9ee7e;};return a36_0x1d21();}
1
+ function a37_0x2633(){const _0x2eab25=['5128296OrqUjQ','30548155vSepdx','14Qzgukn','12HtJwwc','189VRurBu','1691308CHHjej','49970WCeITr','3LYUyOY','736292DoWHNM','318449KqKtUK','330FfVrVy','57080QxXrKb'];a37_0x2633=function(){return _0x2eab25;};return a37_0x2633();}function a37_0x1741(_0x284bdb,_0x1b3362){_0x284bdb=_0x284bdb-0x180;const _0x2633b1=a37_0x2633();let _0x174126=_0x2633b1[_0x284bdb];return _0x174126;}(function(_0x1061f0,_0x128e09){const _0x404a31=a37_0x1741,_0xe4fe09=_0x1061f0();while(!![]){try{const _0x35aa17=-parseInt(_0x404a31(0x180))/0x1+-parseInt(_0x404a31(0x188))/0x2+-parseInt(_0x404a31(0x18a))/0x3*(parseInt(_0x404a31(0x18b))/0x4)+parseInt(_0x404a31(0x189))/0x5*(parseInt(_0x404a31(0x181))/0x6)+parseInt(_0x404a31(0x185))/0x7*(-parseInt(_0x404a31(0x183))/0x8)+-parseInt(_0x404a31(0x187))/0x9*(-parseInt(_0x404a31(0x182))/0xa)+-parseInt(_0x404a31(0x184))/0xb*(-parseInt(_0x404a31(0x186))/0xc);if(_0x35aa17===_0x128e09)break;else _0xe4fe09['push'](_0xe4fe09['shift']());}catch(_0x1f4a7c){_0xe4fe09['push'](_0xe4fe09['shift']());}}}(a37_0x2633,0xc7509));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a37_0x19941f=a37_0x3aa8;(function(_0x367cf4,_0x596b7b){const _0x249e99=a37_0x3aa8,_0x497886=_0x367cf4();while(!![]){try{const _0x135148=-parseInt(_0x249e99(0xf0))/0x1+parseInt(_0x249e99(0xef))/0x2*(-parseInt(_0x249e99(0xf5))/0x3)+parseInt(_0x249e99(0xf3))/0x4+-parseInt(_0x249e99(0xdc))/0x5*(-parseInt(_0x249e99(0xdd))/0x6)+-parseInt(_0x249e99(0xe6))/0x7+parseInt(_0x249e99(0xdf))/0x8+parseInt(_0x249e99(0xea))/0x9;if(_0x135148===_0x596b7b)break;else _0x497886['push'](_0x497886['shift']());}catch(_0x20a2c9){_0x497886['push'](_0x497886['shift']());}}}(a37_0x5857,0xccd5c));import{CliErrors}from'../../errors.js';function a37_0x3aa8(_0x12f9a9,_0x1e25d4){_0x12f9a9=_0x12f9a9-0xdc;const _0x5857b5=a37_0x5857();let _0x3aa8d2=_0x5857b5[_0x12f9a9];return _0x3aa8d2;}export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a37_0x19941f(0xee),a37_0x19941f(0xf4),a37_0x19941f(0xe3),a37_0x19941f(0xf8)];export function readNotificationChannelType(_0x24b1bc){const _0x31a888=a37_0x19941f,_0x265cd0=_0x24b1bc[_0x31a888(0xf7)]('type')['trim']()||_0x31a888(0xe0);if(!NOTIFICATION_CHANNEL_TYPES[_0x31a888(0xfa)](_0x265cd0))throw CliErrors[_0x31a888(0xf6)](_0x31a888(0xe2)+_0x265cd0,_0x31a888(0xf2)+NOTIFICATION_CHANNEL_TYPES[_0x31a888(0xe5)](',\x20')+'.');return _0x265cd0;}export function projectNotificationListConfig(_0x40b465,_0x1b3426){const _0x6b78af=a37_0x19941f,_0x5a4c93=requireResponseObject(_0x40b465,_0x1b3426);return{'configCode':requireResponseString(_0x5a4c93[_0x6b78af(0xeb)],_0x6b78af(0xeb),_0x1b3426),'configName':requireResponseString(_0x5a4c93[_0x6b78af(0xe4)],_0x6b78af(0xe4),_0x1b3426),'channelType':requireResponseString(_0x5a4c93[_0x6b78af(0xe1)],_0x6b78af(0xe1),_0x1b3426),'description':normalizeNullableString(_0x5a4c93[_0x6b78af(0xec)])};}function a37_0x5857(){const _0x2731c8=['isArray','includes','52570RqiUIu','918yrWMKh','apiError','1879824vuyFIu','EMAIL','channelType','Invalid\x20--type:\x20','WECOM','configName','join','769545JKCvsm','string','Invalid\x20notification\x20config\x20response.','object','12346191ZWAdlC','configCode','description','trim','FEISHU','106XuKPqa','1628323EgfzQs','Item\x20','Allowed\x20values:\x20','3404148bJybQx','DINGTALK','84294lNddQg','validation','str','WEBHOOK'];a37_0x5857=function(){return _0x2731c8;};return a37_0x5857();}function requireResponseObject(_0x29ded4,_0x553d32){const _0x357490=a37_0x19941f;if(typeof _0x29ded4!==_0x357490(0xe9)||_0x29ded4===null||Array[_0x357490(0xf9)](_0x29ded4))throw CliErrors[_0x357490(0xde)](_0x357490(0xe8),_0x357490(0xf1)+(_0x553d32+0x1)+'\x20must\x20be\x20an\x20object.');return _0x29ded4;}function requireResponseString(_0x272496,_0x567246,_0x29c0ed){const _0x4e9489=a37_0x19941f;if(typeof _0x272496!=='string'||!_0x272496[_0x4e9489(0xed)]())throw CliErrors[_0x4e9489(0xde)](_0x4e9489(0xe8),_0x4e9489(0xf1)+(_0x29c0ed+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x567246+'\x22.');return _0x272496[_0x4e9489(0xed)]();}function normalizeNullableString(_0x418fdb){const _0x1efdd9=a37_0x19941f;return typeof _0x418fdb===_0x1efdd9(0xe7)&&_0x418fdb[_0x1efdd9(0xed)]()?_0x418fdb[_0x1efdd9(0xed)]():null;}
1
+ const a38_0xbfa236=a38_0x5d94;(function(_0x13f1bd,_0x205463){const _0x4bfbd4=a38_0x5d94,_0x4c47cd=_0x13f1bd();while(!![]){try{const _0x525281=parseInt(_0x4bfbd4(0x16c))/0x1*(parseInt(_0x4bfbd4(0x177))/0x2)+parseInt(_0x4bfbd4(0x16f))/0x3*(parseInt(_0x4bfbd4(0x164))/0x4)+parseInt(_0x4bfbd4(0x173))/0x5*(parseInt(_0x4bfbd4(0x16e))/0x6)+parseInt(_0x4bfbd4(0x17c))/0x7*(-parseInt(_0x4bfbd4(0x182))/0x8)+parseInt(_0x4bfbd4(0x172))/0x9*(-parseInt(_0x4bfbd4(0x17a))/0xa)+-parseInt(_0x4bfbd4(0x165))/0xb+parseInt(_0x4bfbd4(0x170))/0xc;if(_0x525281===_0x205463)break;else _0x4c47cd['push'](_0x4c47cd['shift']());}catch(_0x2ef903){_0x4c47cd['push'](_0x4c47cd['shift']());}}}(a38_0x3e7c,0x22973));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a38_0xbfa236(0x17b),'FEISHU','DINGTALK',a38_0xbfa236(0x16b),a38_0xbfa236(0x174)];export function readNotificationChannelType(_0x1001ef){const _0x16dcb4=a38_0xbfa236,_0x5971bc=_0x1001ef[_0x16dcb4(0x16a)](_0x16dcb4(0x175))[_0x16dcb4(0x17f)]()||_0x16dcb4(0x17b);if(!NOTIFICATION_CHANNEL_TYPES[_0x16dcb4(0x17d)](_0x5971bc))throw CliErrors[_0x16dcb4(0x178)](_0x16dcb4(0x169)+_0x5971bc,_0x16dcb4(0x180)+NOTIFICATION_CHANNEL_TYPES[_0x16dcb4(0x167)](',\x20')+'.');return _0x5971bc;}function a38_0x3e7c(){const _0x1a4348=['40JPGRvR','EMAIL','72086eJPQCb','includes','isArray','trim','Allowed\x20values:\x20','description','184tqwOdQ','156496BYRqym','2502368Rtygfz','channelType','join','Invalid\x20notification\x20config\x20response.','Invalid\x20--type:\x20','str','WECOM','797USDYOB','\x20is\x20missing\x20required\x20field\x20\x22','90PlJVZz','12WnUJmp','1822320mSSJdF','configName','252891DEqPiV','67615mhGedW','WEBHOOK','type','configCode','520nHllKj','validation','object'];a38_0x3e7c=function(){return _0x1a4348;};return a38_0x3e7c();}export function projectNotificationListConfig(_0x4383a7,_0x9b3bfe){const _0x3548da=a38_0xbfa236,_0x132f7c=requireResponseObject(_0x4383a7,_0x9b3bfe);return{'configCode':requireResponseString(_0x132f7c['configCode'],_0x3548da(0x176),_0x9b3bfe),'configName':requireResponseString(_0x132f7c['configName'],_0x3548da(0x171),_0x9b3bfe),'channelType':requireResponseString(_0x132f7c[_0x3548da(0x166)],_0x3548da(0x166),_0x9b3bfe),'description':normalizeNullableString(_0x132f7c[_0x3548da(0x181)])};}function requireResponseObject(_0xd8c3b9,_0xe4fd7d){const _0x3fcb59=a38_0xbfa236;if(typeof _0xd8c3b9!==_0x3fcb59(0x179)||_0xd8c3b9===null||Array[_0x3fcb59(0x17e)](_0xd8c3b9))throw CliErrors['apiError'](_0x3fcb59(0x168),'Item\x20'+(_0xe4fd7d+0x1)+'\x20must\x20be\x20an\x20object.');return _0xd8c3b9;}function a38_0x5d94(_0x559180,_0x30051a){_0x559180=_0x559180-0x164;const _0x3e7ca8=a38_0x3e7c();let _0x5d9423=_0x3e7ca8[_0x559180];return _0x5d9423;}function requireResponseString(_0x3df4b5,_0x17fdb2,_0x2328cc){const _0xe6650=a38_0xbfa236;if(typeof _0x3df4b5!=='string'||!_0x3df4b5['trim']())throw CliErrors['apiError'](_0xe6650(0x168),'Item\x20'+(_0x2328cc+0x1)+_0xe6650(0x16d)+_0x17fdb2+'\x22.');return _0x3df4b5['trim']();}function normalizeNullableString(_0x123d96){const _0x523610=a38_0xbfa236;return typeof _0x123d96==='string'&&_0x123d96['trim']()?_0x123d96[_0x523610(0x17f)]():null;}
@@ -1 +1 @@
1
- const a38_0x6fac9b=a38_0x5876;function a38_0x5876(_0x5b7d09,_0x4daeb3){_0x5b7d09=_0x5b7d09-0xd1;const _0x5bd722=a38_0x5bd7();let _0x587660=_0x5bd722[_0x5b7d09];return _0x587660;}(function(_0x9c91d4,_0x2e354e){const _0x59c41e=a38_0x5876,_0x16d167=_0x9c91d4();while(!![]){try{const _0x4e7087=parseInt(_0x59c41e(0xe2))/0x1*(-parseInt(_0x59c41e(0xf8))/0x2)+parseInt(_0x59c41e(0xef))/0x3+parseInt(_0x59c41e(0xda))/0x4+-parseInt(_0x59c41e(0xed))/0x5*(-parseInt(_0x59c41e(0x100))/0x6)+-parseInt(_0x59c41e(0xdc))/0x7*(parseInt(_0x59c41e(0xf6))/0x8)+parseInt(_0x59c41e(0xd8))/0x9*(-parseInt(_0x59c41e(0xd6))/0xa)+-parseInt(_0x59c41e(0xdb))/0xb;if(_0x4e7087===_0x2e354e)break;else _0x16d167['push'](_0x16d167['shift']());}catch(_0x1ab470){_0x16d167['push'](_0x16d167['shift']());}}}(a38_0x5bd7,0x942a2));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=[a38_0x6fac9b(0xd4),'general',a38_0x6fac9b(0xd9),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x6fac9b(0xd5),'general':a38_0x6fac9b(0xf3),'form':a38_0x6fac9b(0x102),'idCard':'IdCard'},SCENE_FLAG={'name':a38_0x6fac9b(0x107),'type':a38_0x6fac9b(0xe7),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x6fac9b(0x10a)},IMAGE_FILE_FLAG={'name':a38_0x6fac9b(0x108),'type':a38_0x6fac9b(0xe7),'description':a38_0x6fac9b(0xf4)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x6fac9b(0xe7),'description':a38_0x6fac9b(0xe9)};function normalizeScene(_0x343c61){const _0x101911=a38_0x6fac9b,_0x24144a=_0x343c61[_0x101911(0xde)]()[_0x101911(0x105)]();if(_0x24144a===_0x101911(0xe8))return'idCard';if(_0x24144a===_0x101911(0xd4)||_0x24144a===_0x101911(0xe5)||_0x24144a==='form')return _0x24144a;throw CliErrors[_0x101911(0xf5)](_0x101911(0xe1)+_0x343c61+_0x101911(0xfb)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x53b84e){const _0x268c85=a38_0x6fac9b,_0x1a6b95=_0x53b84e[_0x268c85(0xe6)]('image-file')[_0x268c85(0xde)](),_0x50f248=_0x53b84e[_0x268c85(0xe6)](_0x268c85(0xd3))[_0x268c85(0xde)]();return{'imageFile':_0x1a6b95,'imageUrl':_0x50f248,'count':[_0x1a6b95,_0x50f248][_0x268c85(0x10b)](Boolean)[_0x268c85(0x106)]};}function a38_0x5bd7(){const _0x3bc9b2=['str','string','idcard','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','ocr','imageFile','995FiItYz','body','2448636FwYZPM','imageUrl','count','<filePath\x20returned\x20by\x20/client/uploadFile>','General','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','validation','8JJBWgg','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','2jQPrSu','File\x20upload\x20response\x20missing\x20filePath.','build','.\x20Supported\x20scenes:\x20','apiError','/client/ocr','filePath','fileUrl','29814qafKQu','\x20OCR','Table','description','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','toLowerCase','length','scene','image-file','recognize','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','filter','/client/queryFileUrl','Preview:\x20recognize\x20','image-url','invoice','Invoice','1060sDozfZ','appCode','99756wdcOxk','form','3952940dfojud','6670356fzJjIR','1493821ugjHwQ','/client/uploadFile','trim','File\x20URL\x20response\x20missing\x20fileUrl.','path','Unsupported\x20OCR\x20scene:\x20','191693zMJnzu','fileName','POST','general'];a38_0x5bd7=function(){return _0x3bc9b2;};return a38_0x5bd7();}function validateInputSelection(_0x4dbb82){const _0x399df9=a38_0x6fac9b,_0x3a6544=selectedInputs(_0x4dbb82);if(_0x3a6544[_0x399df9(0xf1)]!==0x1)throw CliErrors[_0x399df9(0xf5)](_0x399df9(0xea));return _0x3a6544;}function withScene(_0x2b5e73,_0x3e6ac1,_0xea66f9){const _0x54bc48=a38_0x6fac9b;return{..._0x2b5e73,'scene':_0x3e6ac1,..._0xea66f9?{'sourceFile':{'fileName':_0xea66f9[_0x54bc48(0xe3)],'filePath':_0xea66f9[_0x54bc48(0xfe)]}}:{}};}const ocrRecognize={'service':a38_0x6fac9b(0xeb),'command':a38_0x6fac9b(0x109),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x50a7b2){const _0xd8674b=a38_0x6fac9b,_0x154c0d=normalizeScene(_0x50a7b2[_0xd8674b(0xe6)](_0xd8674b(0x107))),_0x1d37e2=SCENE_TO_LEGACY_TYPE[_0x154c0d],_0x55459f=validateInputSelection(_0x50a7b2);if(_0x55459f[_0xd8674b(0xf0)])return dryRun(_0xd8674b(0xe4),_0xd8674b(0xfd))[_0xd8674b(0xee)]({'appCode':_0x50a7b2[_0xd8674b(0xd7)],'url':_0x55459f[_0xd8674b(0xf0)],'type':_0x1d37e2})[_0xd8674b(0x103)](_0xd8674b(0xd2)+_0x154c0d+'\x20OCR\x20from\x20URL')[_0xd8674b(0xfa)]();const _0x3d8f22=requireRuntimeUploadFile(_0x55459f[_0xd8674b(0xec)],_0xd8674b(0x108));return dryRun('POST',_0xd8674b(0xdd))[_0xd8674b(0xee)]({'steps':[{'method':_0xd8674b(0xe4),'url':_0xd8674b(0xdd),'body':{'appCode':_0x50a7b2[_0xd8674b(0xd7)],'multipart':{'file':_0x3d8f22}}},{'method':_0xd8674b(0xe4),'url':_0xd8674b(0xd1),'body':{'filePath':_0xd8674b(0xf2),'downloadFlag':![]}},{'method':_0xd8674b(0xe4),'url':'/client/ocr','body':{'appCode':_0x50a7b2[_0xd8674b(0xd7)],'url':_0xd8674b(0x104),'type':_0x1d37e2}}]})[_0xd8674b(0x103)](_0xd8674b(0xf7)+_0x154c0d+_0xd8674b(0x101))[_0xd8674b(0xfa)]();},async 'execute'(_0xec4e44){const _0x2d74c3=a38_0x6fac9b,_0x3e6ac5=normalizeScene(_0xec4e44[_0x2d74c3(0xe6)](_0x2d74c3(0x107))),_0x7b7932=SCENE_TO_LEGACY_TYPE[_0x3e6ac5],_0xfad30=validateInputSelection(_0xec4e44);if(_0xfad30['imageUrl']){const _0x12406e=await recognizeRuntimeOcr(_0xec4e44['appCode'],{'url':_0xfad30[_0x2d74c3(0xf0)],'type':_0x7b7932});return{'ok':!![],'data':withScene(_0x12406e,_0x3e6ac5)};}const _0x16f2e9=requireRuntimeUploadFile(_0xfad30[_0x2d74c3(0xec)],_0x2d74c3(0x108)),_0x52366d=await uploadRuntimeFile(_0xec4e44[_0x2d74c3(0xd7)],_0x16f2e9[_0x2d74c3(0xe0)]);if(!_0x52366d[_0x2d74c3(0xfe)])throw CliErrors['apiError'](_0x2d74c3(0xf9));const _0xfc1752=await queryRuntimeFileUrl(_0x52366d[_0x2d74c3(0xfe)],{'download':![]});if(!_0xfc1752[_0x2d74c3(0xff)])throw CliErrors[_0x2d74c3(0xfc)](_0x2d74c3(0xdf));const _0x582c50=await recognizeRuntimeOcr(_0xec4e44[_0x2d74c3(0xd7)],{'url':_0xfc1752[_0x2d74c3(0xff)],'type':_0x7b7932});return{'ok':!![],'data':withScene(_0x582c50,_0x3e6ac5,_0x52366d)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a39_0x3c28b1=a39_0x272d;(function(_0x33eb5d,_0x5086f5){const _0x25a2c5=a39_0x272d,_0x499c4d=_0x33eb5d();while(!![]){try{const _0x5ec913=-parseInt(_0x25a2c5(0x1c4))/0x1+-parseInt(_0x25a2c5(0x1b0))/0x2+parseInt(_0x25a2c5(0x1b6))/0x3*(parseInt(_0x25a2c5(0x199))/0x4)+-parseInt(_0x25a2c5(0x1bc))/0x5*(parseInt(_0x25a2c5(0x1ae))/0x6)+parseInt(_0x25a2c5(0x191))/0x7+parseInt(_0x25a2c5(0x1c0))/0x8*(-parseInt(_0x25a2c5(0x1ab))/0x9)+parseInt(_0x25a2c5(0x19f))/0xa*(parseInt(_0x25a2c5(0x1b3))/0xb);if(_0x5ec913===_0x5086f5)break;else _0x499c4d['push'](_0x499c4d['shift']());}catch(_0x2482a7){_0x499c4d['push'](_0x499c4d['shift']());}}}(a39_0x1293,0xa8a23));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a39_0x272d(_0x4454da,_0x240005){_0x4454da=_0x4454da-0x18e;const _0x12939c=a39_0x1293();let _0x272d2b=_0x12939c[_0x4454da];return _0x272d2b;}import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=['invoice',a39_0x3c28b1(0x1aa),a39_0x3c28b1(0x1b1),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a39_0x3c28b1(0x18e),'general':a39_0x3c28b1(0x195),'form':a39_0x3c28b1(0x1b5),'idCard':a39_0x3c28b1(0x1b7)},SCENE_FLAG={'name':a39_0x3c28b1(0x196),'type':a39_0x3c28b1(0x1c6),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a39_0x3c28b1(0x1bb)},IMAGE_FILE_FLAG={'name':'image-file','type':a39_0x3c28b1(0x1c6),'description':a39_0x3c28b1(0x190)},IMAGE_URL_FLAG={'name':a39_0x3c28b1(0x1a3),'type':'string','description':a39_0x3c28b1(0x1b9)};function normalizeScene(_0x4a397){const _0x338eac=a39_0x3c28b1,_0x173c12=_0x4a397[_0x338eac(0x1a5)]()[_0x338eac(0x1c2)]();if(_0x173c12===_0x338eac(0x19a))return _0x338eac(0x194);if(_0x173c12==='invoice'||_0x173c12===_0x338eac(0x1aa)||_0x173c12===_0x338eac(0x1b1))return _0x173c12;throw CliErrors[_0x338eac(0x19d)](_0x338eac(0x1a8)+_0x4a397+_0x338eac(0x19b)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x5cc3a3){const _0x2e33f4=a39_0x3c28b1,_0x11467f=_0x5cc3a3[_0x2e33f4(0x1a9)]('image-file')[_0x2e33f4(0x1a5)](),_0x478263=_0x5cc3a3[_0x2e33f4(0x1a9)](_0x2e33f4(0x1a3))[_0x2e33f4(0x1a5)]();return{'imageFile':_0x11467f,'imageUrl':_0x478263,'count':[_0x11467f,_0x478263]['filter'](Boolean)[_0x2e33f4(0x192)]};}function validateInputSelection(_0x48f030){const _0x1701ef=a39_0x3c28b1,_0x56e95b=selectedInputs(_0x48f030);if(_0x56e95b[_0x1701ef(0x1c1)]!==0x1)throw CliErrors[_0x1701ef(0x19d)](_0x1701ef(0x1b4));return _0x56e95b;}function withScene(_0x353349,_0x390464,_0x1c4823){const _0x577516=a39_0x3c28b1;return{..._0x353349,'scene':_0x390464,..._0x1c4823?{'sourceFile':{'fileName':_0x1c4823['fileName'],'filePath':_0x1c4823[_0x577516(0x1bd)]}}:{}};}function a39_0x1293(){const _0x1b6854=['description','image-file','4VgCELg','idcard','.\x20Supported\x20scenes:\x20','POST','validation','File\x20upload\x20response\x20missing\x20filePath.','37142340nMBbkD','recognize','<filePath\x20returned\x20by\x20/client/uploadFile>','apiError','image-url','body','trim','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','/client/uploadFile','Unsupported\x20OCR\x20scene:\x20','str','general','74322SCJqgp','/client/ocr','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','780SSNoIq','File\x20URL\x20response\x20missing\x20fileUrl.','1116148BqQpPK','form','appCode','11dcsvyi','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Table','76749YgsShu','IdCard','/client/queryFileUrl','Publicly\x20accessible\x20image\x20or\x20file\x20URL','fileUrl','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','39445icyKtH','filePath','imageFile','build','840ovYQKl','count','toLowerCase','ocr','845021pwQIjN','\x20OCR\x20from\x20URL','string','imageUrl','Invoice','Preview:\x20recognize\x20','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','1726627xNCGyW','length','read','idCard','General','scene'];a39_0x1293=function(){return _0x1b6854;};return a39_0x1293();}const ocrRecognize={'service':a39_0x3c28b1(0x1c3),'command':a39_0x3c28b1(0x1a0),'description':a39_0x3c28b1(0x1ad),'risk':a39_0x3c28b1(0x193),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x52a956){const _0x2a392c=a39_0x3c28b1,_0x4bf1c4=normalizeScene(_0x52a956['str'](_0x2a392c(0x196))),_0x4af8ef=SCENE_TO_LEGACY_TYPE[_0x4bf1c4],_0x75f27c=validateInputSelection(_0x52a956);if(_0x75f27c[_0x2a392c(0x1c7)])return dryRun(_0x2a392c(0x19c),_0x2a392c(0x1ac))['body']({'appCode':_0x52a956[_0x2a392c(0x1b2)],'url':_0x75f27c[_0x2a392c(0x1c7)],'type':_0x4af8ef})[_0x2a392c(0x197)](_0x2a392c(0x18f)+_0x4bf1c4+_0x2a392c(0x1c5))[_0x2a392c(0x1bf)]();const _0x57e08e=requireRuntimeUploadFile(_0x75f27c['imageFile'],_0x2a392c(0x198));return dryRun(_0x2a392c(0x19c),_0x2a392c(0x1a7))[_0x2a392c(0x1a4)]({'steps':[{'method':_0x2a392c(0x19c),'url':'/client/uploadFile','body':{'appCode':_0x52a956['appCode'],'multipart':{'file':_0x57e08e}}},{'method':_0x2a392c(0x19c),'url':_0x2a392c(0x1b8),'body':{'filePath':_0x2a392c(0x1a1),'downloadFlag':![]}},{'method':_0x2a392c(0x19c),'url':_0x2a392c(0x1ac),'body':{'appCode':_0x52a956['appCode'],'url':_0x2a392c(0x1a6),'type':_0x4af8ef}}]})[_0x2a392c(0x197)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x4bf1c4+'\x20OCR')[_0x2a392c(0x1bf)]();},async 'execute'(_0x355ffb){const _0x561d56=a39_0x3c28b1,_0x412d51=normalizeScene(_0x355ffb[_0x561d56(0x1a9)](_0x561d56(0x196))),_0x4a5704=SCENE_TO_LEGACY_TYPE[_0x412d51],_0x4b80bd=validateInputSelection(_0x355ffb);if(_0x4b80bd['imageUrl']){const _0x301077=await recognizeRuntimeOcr(_0x355ffb[_0x561d56(0x1b2)],{'url':_0x4b80bd[_0x561d56(0x1c7)],'type':_0x4a5704});return{'ok':!![],'data':withScene(_0x301077,_0x412d51)};}const _0x46ad50=requireRuntimeUploadFile(_0x4b80bd[_0x561d56(0x1be)],_0x561d56(0x198)),_0xbeb035=await uploadRuntimeFile(_0x355ffb[_0x561d56(0x1b2)],_0x46ad50['path']);if(!_0xbeb035[_0x561d56(0x1bd)])throw CliErrors[_0x561d56(0x1a2)](_0x561d56(0x19e));const _0xf24c17=await queryRuntimeFileUrl(_0xbeb035['filePath'],{'download':![]});if(!_0xf24c17[_0x561d56(0x1ba)])throw CliErrors['apiError'](_0x561d56(0x1af));const _0x241677=await recognizeRuntimeOcr(_0x355ffb[_0x561d56(0x1b2)],{'url':_0xf24c17[_0x561d56(0x1ba)],'type':_0x4a5704});return{'ok':!![],'data':withScene(_0x241677,_0x412d51,_0xbeb035)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x1b4571=a39_0x4d28;function a39_0x15f1(){const _0x4293b4=['764622fHpOzW','3033278zmoNgY','role','trim','read','1380029qVhqdC','roleType','1504386AzEsVc','permit','appCode','string','roleName','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','174xgqJxH','dataset-get','runtime','8Tiasaw','12241197pkeBqt','135515cvNcLI','3735248IfGSKj'];a39_0x15f1=function(){return _0x4293b4;};return a39_0x15f1();}(function(_0x3bd985,_0x29075b){const _0x5e2e3a=a39_0x4d28,_0x387583=_0x3bd985();while(!![]){try{const _0x502ab3=parseInt(_0x5e2e3a(0x156))/0x1+parseInt(_0x5e2e3a(0x143))/0x2+-parseInt(_0x5e2e3a(0x149))/0x3+parseInt(_0x5e2e3a(0x155))/0x4+parseInt(_0x5e2e3a(0x154))/0x5*(-parseInt(_0x5e2e3a(0x14f))/0x6)+parseInt(_0x5e2e3a(0x147))/0x7*(parseInt(_0x5e2e3a(0x152))/0x8)+-parseInt(_0x5e2e3a(0x153))/0x9;if(_0x502ab3===_0x29075b)break;else _0x387583['push'](_0x387583['shift']());}catch(_0x2e1e63){_0x387583['push'](_0x387583['shift']());}}}(a39_0x15f1,0xbaade));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a39_0x4d28(_0x8bd68b,_0x2fd991){_0x8bd68b=_0x8bd68b-0x143;const _0x15f119=a39_0x15f1();let _0x4d283e=_0x15f119[_0x8bd68b];return _0x4d283e;}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x1b4571(0x14a),'command':a39_0x1b4571(0x150),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a39_0x1b4571(0x146),'flags':[{'name':'role','type':a39_0x1b4571(0x14c),'description':a39_0x1b4571(0x14e)}],async 'execute'(_0x52e0a5){const _0xfc5a17=a39_0x1b4571,_0x1af195=_0x52e0a5['str'](_0xfc5a17(0x144))[_0xfc5a17(0x145)]();if(!_0x1af195)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x52e0a5[_0xfc5a17(0x14b)])}};const _0xf91aa1=await resolveRuntimeRoleRef(_0x52e0a5[_0xfc5a17(0x14b)],_0x1af195);return{'ok':!![],'data':{'scope':_0xfc5a17(0x151),'role':{'id':_0xf91aa1['id'],'roleName':_0xf91aa1[_0xfc5a17(0x14d)],'roleType':_0xf91aa1[_0xfc5a17(0x148)]},'datasets':await listRuntimeDatasetPermits(_0x52e0a5['appCode'],_0xf91aa1['id'])}};}};
1
+ function a40_0x23d1(){const _0x49ca61=['string','497427ZoKSjn','role','10524kEyWoB','roleName','309099ZOszkY','roleType','dataset-get','runtime','345450GqkAZU','trim','479622MnIfoU','read','45774pfCVvj','395dqkgbD','appCode','36615PMtqji','712LiGFat','4yhiLYp','permit'];a40_0x23d1=function(){return _0x49ca61;};return a40_0x23d1();}const a40_0x5e1b46=a40_0x38bb;function a40_0x38bb(_0x2fcfa7,_0x4aba71){_0x2fcfa7=_0x2fcfa7-0xdf;const _0x23d176=a40_0x23d1();let _0x38bba9=_0x23d176[_0x2fcfa7];return _0x38bba9;}(function(_0x1fa1f7,_0x35626b){const _0x16038c=a40_0x38bb,_0x19d02c=_0x1fa1f7();while(!![]){try{const _0x31514a=parseInt(_0x16038c(0xe7))/0x1+parseInt(_0x16038c(0xe2))/0x2+-parseInt(_0x16038c(0xec))/0x3*(parseInt(_0x16038c(0xe9))/0x4)+parseInt(_0x16038c(0xe5))/0x5*(-parseInt(_0x16038c(0xee))/0x6)+-parseInt(_0x16038c(0xf0))/0x7+-parseInt(_0x16038c(0xe8))/0x8*(-parseInt(_0x16038c(0xe4))/0x9)+-parseInt(_0x16038c(0xe0))/0xa;if(_0x31514a===_0x35626b)break;else _0x19d02c['push'](_0x19d02c['shift']());}catch(_0x5e2d95){_0x19d02c['push'](_0x19d02c['shift']());}}}(a40_0x23d1,0x54793));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a40_0x5e1b46(0xea),'command':a40_0x5e1b46(0xf2),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a40_0x5e1b46(0xe3),'flags':[{'name':a40_0x5e1b46(0xed),'type':a40_0x5e1b46(0xeb),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0xbb12c0){const _0x47e1fb=a40_0x5e1b46,_0x1cd303=_0xbb12c0['str'](_0x47e1fb(0xed))[_0x47e1fb(0xe1)]();if(!_0x1cd303)return{'ok':!![],'data':{'scope':_0x47e1fb(0xdf),'datasets':await listRuntimeDatasetRolePermits(_0xbb12c0['appCode'])}};const _0x57993f=await resolveRuntimeRoleRef(_0xbb12c0[_0x47e1fb(0xe6)],_0x1cd303);return{'ok':!![],'data':{'scope':_0x47e1fb(0xdf),'role':{'id':_0x57993f['id'],'roleName':_0x57993f[_0x47e1fb(0xef)],'roleType':_0x57993f[_0x47e1fb(0xf1)]},'datasets':await listRuntimeDatasetPermits(_0xbb12c0[_0x47e1fb(0xe6)],_0x57993f['id'])}};}};