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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.js +1 -1
  109. package/lib/core/sdk-client.js +1 -1
  110. package/lib/errors.js +1 -1
  111. package/lib/framework/access-error.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/services/dataset-import/auto-id-runner.js +1 -1
  140. package/lib/services/dataset-import/excel-reader.js +1 -1
  141. package/lib/services/dataset-import/metadata.js +1 -1
  142. package/lib/services/dataset-import/preview.js +1 -1
  143. package/lib/services/dataset-import/runner.js +1 -1
  144. package/lib/skills/builtin-skill.js +1 -1
  145. package/lib/skills/npx-skills-add.js +1 -1
  146. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  147. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  148. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  149. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  150. package/lib/skills/runtime-skill-sync/links.js +1 -1
  151. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  152. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  153. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  154. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  155. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  156. package/lib/skills/runtime-skill-sync/push.js +1 -1
  157. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  158. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  159. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  160. package/lib/skills/runtime-skill-sync.js +1 -1
  161. package/lib/skills/skill-presence.js +1 -1
  162. package/lib/utils/access-key-redaction.js +1 -1
  163. package/lib/utils/apply-jq-filter.js +1 -1
  164. package/lib/utils/cli-version-check.js +1 -1
  165. package/lib/utils/cli-version-policy.js +1 -1
  166. package/lib/utils/logger.js +1 -1
  167. package/lib/utils/lossless-json.js +1 -1
  168. package/lib/utils/params.js +1 -1
  169. package/lib/utils/positive-safe-integer.js +1 -1
  170. package/lib/utils/redaction.js +1 -1
  171. package/lib/utils/update-notice.js +1 -1
  172. package/lib/utils/version.js +1 -1
  173. package/lib/utils/write-cli-side-channel.js +1 -1
  174. package/package.json +1 -1
  175. package/skills/lovrabet/SKILL.md +1 -1
  176. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a28_0x18b30b=a28_0x333a;function a28_0x333a(_0x5258ec,_0x2f5b49){_0x5258ec=_0x5258ec-0x1e5;const _0x16b7b2=a28_0x16b7();let _0x333ae5=_0x16b7b2[_0x5258ec];return _0x333ae5;}(function(_0x343e54,_0x65afbc){const _0x4b11db=a28_0x333a,_0x4eb650=_0x343e54();while(!![]){try{const _0x5dc051=-parseInt(_0x4b11db(0x201))/0x1*(parseInt(_0x4b11db(0x1f6))/0x2)+parseInt(_0x4b11db(0x221))/0x3*(parseInt(_0x4b11db(0x225))/0x4)+-parseInt(_0x4b11db(0x1ec))/0x5+-parseInt(_0x4b11db(0x1ed))/0x6*(-parseInt(_0x4b11db(0x1f9))/0x7)+-parseInt(_0x4b11db(0x1f4))/0x8*(parseInt(_0x4b11db(0x1fe))/0x9)+parseInt(_0x4b11db(0x1fb))/0xa+parseInt(_0x4b11db(0x227))/0xb*(parseInt(_0x4b11db(0x21c))/0xc);if(_0x5dc051===_0x65afbc)break;else _0x4eb650['push'](_0x4eb650['shift']());}catch(_0x442500){_0x4eb650['push'](_0x4eb650['shift']());}}}(a28_0x16b7,0xd4131));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x1d2d34){const _0x3487aa=a28_0x333a;if(_0x1d2d34[_0x3487aa(0x1f1)])return null;const _0x4a1fca=Boolean(_0x1d2d34[_0x3487aa(0x20d)]!==undefined||_0x1d2d34[_0x3487aa(0x210)]!==undefined);let _0x467031={};if(!_0x4a1fca&&typeof _0x1d2d34[_0x3487aa(0x1f7)]==='string')try{_0x467031=JSON[_0x3487aa(0x228)](_0x1d2d34[_0x3487aa(0x1f7)]);}catch{}const _0x11beb8=_0x4a1fca?_0x1d2d34[_0x3487aa(0x226)]:_0x1d2d34[_0x3487aa(0x20c)],_0x4abdfa=_0x4a1fca?_0x1d2d34['displayName']:_0x1d2d34[_0x3487aa(0x226)],_0x118f0a=_0x4a1fca?_0x1d2d34[_0x3487aa(0x210)]:_0x1d2d34[_0x3487aa(0x204)]||_0x1d2d34[_0x3487aa(0x224)],_0x127df6=_0x4a1fca?_0x1d2d34[_0x3487aa(0x1e8)]===!![]:_0x467031[_0x3487aa(0x1e8)]===!![],_0x313a63=_0x4a1fca?_0x1d2d34[_0x3487aa(0x20f)]===!![]:_0x467031['required']===!![],_0x5cd3d1=_0x4a1fca?_0x1d2d34[_0x3487aa(0x218)]??null:_0x467031['options']??null,_0x467ecd={'name':_0x11beb8,'displayName':_0x4abdfa||_0x11beb8,'type':_0x118f0a,'dbType':_0x1d2d34['dbType'],'pk':_0x127df6,'required':_0x313a63,'description':_0x1d2d34[_0x3487aa(0x22e)]||undefined};return Array[_0x3487aa(0x22b)](_0x5cd3d1)&&_0x5cd3d1[_0x3487aa(0x216)]>0x0&&(_0x467ecd[_0x3487aa(0x218)]=_0x5cd3d1),_0x467ecd;}function parseJsonMaybe(_0x118951){const _0x1a5682=a28_0x333a;if(typeof _0x118951!==_0x1a5682(0x1fa))return _0x118951;try{return JSON[_0x1a5682(0x228)](_0x118951);}catch{return _0x118951;}}function normalizeOperationEntry(_0x9fea26,_0x27236a){const _0xc9a03b=a28_0x333a;if(!_0x27236a||typeof _0x27236a!=='object')return null;if(!_0x27236a['method']||!_0x27236a['path'])return null;const _0x145537={'name':_0x9fea26,'method':_0x27236a['method'],'path':_0x27236a[_0xc9a03b(0x214)]};if(_0x27236a[_0xc9a03b(0x21d)])_0x145537['host']=_0x27236a['host'];if(_0x27236a[_0xc9a03b(0x1f0)]!=null)_0x145537[_0xc9a03b(0x1f0)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1f0)]);if(_0x27236a[_0xc9a03b(0x1ef)]!=null)_0x145537[_0xc9a03b(0x1ef)]=parseJsonMaybe(_0x27236a[_0xc9a03b(0x1ef)]);if(_0x27236a[_0xc9a03b(0x1eb)]!=null)_0x145537[_0xc9a03b(0x1eb)]=_0x27236a[_0xc9a03b(0x1eb)];if(_0x27236a[_0xc9a03b(0x1fd)]!=null)_0x145537[_0xc9a03b(0x1fd)]=_0x27236a[_0xc9a03b(0x1fd)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x219)]))_0x145537[_0xc9a03b(0x219)]=_0x27236a[_0xc9a03b(0x219)];if(Array[_0xc9a03b(0x22b)](_0x27236a[_0xc9a03b(0x1fc)]))_0x145537[_0xc9a03b(0x1fc)]=_0x27236a[_0xc9a03b(0x1fc)];return _0x145537;}function a28_0x16b7(){const _0x566a34=['allFieldNames','filter','isArray','map','dbId','description','allFields','creatorNameField','operations','detail','pkField','find','appCode','beforeScriptId','1917465gSoGPE','1860PykWki','updateTimeField','responseBody','requestBody','deleted','push','object','2764912IHngKt','logicField','312BvBCxz','extend','createTimeField','7693vYwSAs','string','7778870FxXyoc','responseFields','afterScriptId','36WyICLv','tableName','source','19FyKsXj','indexes','columnCodeListWithDeleted','type','modelCode','relatedPageInfoList','dbName','formatRules','doVersion','dbtableConfig','validateRules','code','displayName','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','required','doType','creatorIdField','trim','datasetKey','path','modelId','length','dataset','options','requestFields','tableComment','entries','3228FjFFcb','host','read','fields','title','59277LFJpWG','str','relations','dataType','16IDtzEn','name','58883oImYEt','parse'];a28_0x16b7=function(){return _0x566a34;};return a28_0x16b7();}function summarizeDbtable(_0x23a148){const _0x14aab3=a28_0x333a,_0x544ac4={},_0x313c0a=[_0x14aab3(0x22d),_0x14aab3(0x207),_0x14aab3(0x1ff),_0x14aab3(0x213),'pkField','allFields',_0x14aab3(0x1f5),_0x14aab3(0x1f8),_0x14aab3(0x1ee),_0x14aab3(0x211),_0x14aab3(0x1e5),'modifierIdField','modifierNameField','labelField','dblinkInfoDTO'];for(const _0x537634 of _0x313c0a){if(_0x23a148[_0x537634]!==undefined)_0x544ac4[_0x537634]=_0x23a148[_0x537634];}return typeof _0x544ac4[_0x14aab3(0x22f)]===_0x14aab3(0x1fa)&&_0x544ac4[_0x14aab3(0x22f)]['length']>0x0&&(_0x544ac4[_0x14aab3(0x229)]=_0x544ac4[_0x14aab3(0x22f)]['split'](',')[_0x14aab3(0x22c)](_0x347bd9=>_0x347bd9[_0x14aab3(0x212)]())['filter'](Boolean)),_0x544ac4;}function normalizeRelatedPages(_0x12111a){const _0x24e841=a28_0x333a;if(!Array[_0x24e841(0x22b)](_0x12111a))return[];return _0x12111a[_0x24e841(0x22a)](_0x39c79c=>_0x39c79c&&typeof _0x39c79c===_0x24e841(0x1f3))[_0x24e841(0x22c)](_0x35f0f0=>({'id':_0x35f0f0['id'],'type':_0x35f0f0[_0x24e841(0x204)],'code':_0x35f0f0[_0x24e841(0x20c)],'title':_0x35f0f0[_0x24e841(0x220)],'deleted':_0x35f0f0['deleted']===!![]}));}function normalizeFallbackFieldName(_0x37a094,_0x4db494){const _0x3de48c=_0x37a094['trim']();if(!_0x3de48c)return null;return{'name':_0x3de48c,'displayName':_0x3de48c,'type':undefined,'dbType':undefined,'pk':_0x3de48c===_0x4db494,'required':![],'description':undefined};}async function loadListFieldFallback(_0x12db98,_0x417e86){const _0x4af4d7=a28_0x333a;if(!_0x12db98||!_0x417e86)return[];try{const _0x22d275=await listDatasets(_0x12db98,{'code':_0x417e86}),_0x20de2d=_0x22d275[_0x4af4d7(0x1e9)](_0x35f4f0=>_0x35f4f0['code']===_0x417e86)??_0x22d275[0x0],_0x4f13ab=_0x20de2d?.[_0x4af4d7(0x20a)]??{},_0x3defbf=typeof _0x4f13ab['allFields']==='string'?_0x4f13ab[_0x4af4d7(0x22f)]['split'](','):[];return _0x3defbf[_0x4af4d7(0x22c)](_0x4c43f6=>normalizeFallbackFieldName(_0x4c43f6,_0x4f13ab[_0x4af4d7(0x1e8)]))[_0x4af4d7(0x22a)](_0xce9d47=>_0xce9d47!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x18b30b(0x217),'command':a28_0x18b30b(0x1e7),'description':a28_0x18b30b(0x20e),'risk':a28_0x18b30b(0x21e),'flags':[CODE_FLAG],async 'execute'(_0x4edefd){const _0x17b35f=a28_0x18b30b,_0x5ede04=await getDatasetDetail(_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))),_0x6c5176=Array['isArray'](_0x5ede04[_0x17b35f(0x21f)])?_0x5ede04[_0x17b35f(0x21f)]:Array['isArray'](_0x5ede04['properties'])?_0x5ede04['properties']:[];let _0x5525ea=_0x6c5176[_0x17b35f(0x22c)](_0x20dcc3=>normalizeField(_0x20dcc3))[_0x17b35f(0x22a)](_0x512532=>_0x512532!==null);_0x5525ea[_0x17b35f(0x216)]===0x0&&(_0x5525ea=await loadListFieldFallback(_0x4edefd[_0x17b35f(0x1ea)],_0x4edefd[_0x17b35f(0x222)](_0x17b35f(0x20c))));const _0x30f794=_0x5ede04[_0x17b35f(0x1e6)]??{},_0x18390b=[];for(const [_0x5675f7,_0x4b55b6]of Object[_0x17b35f(0x21b)](_0x30f794)){const _0x21e196=normalizeOperationEntry(_0x5675f7,_0x4b55b6);if(_0x21e196)_0x18390b[_0x17b35f(0x1f2)](_0x21e196);}const _0x24600e=_0x5ede04[_0x17b35f(0x20a)]??{},_0x1cba10=_0x5ede04[_0x17b35f(0x217)]??{},_0x5187aa=_0x24600e['dbId']!=null?{'id':_0x24600e['dbId'],'name':_0x24600e[_0x17b35f(0x207)]??null}:undefined;let _0x53af66;return typeof _0x5ede04['extend']===_0x17b35f(0x1fa)&&(_0x53af66=parseJsonMaybe(_0x5ede04[_0x17b35f(0x1f7)])),{'ok':!![],'data':{'id':_0x5ede04[_0x17b35f(0x215)]??_0x5ede04['id'],'name':_0x5ede04[_0x17b35f(0x226)],'code':_0x5ede04[_0x17b35f(0x205)]||_0x5ede04[_0x17b35f(0x20c)],'doVersion':_0x5ede04[_0x17b35f(0x209)],'description':_0x5ede04[_0x17b35f(0x22e)]||_0x1cba10[_0x17b35f(0x21a)]||undefined,'source':_0x5ede04[_0x17b35f(0x200)]||_0x1cba10['sourceType'],'table':_0x24600e[_0x17b35f(0x1ff)]||_0x1cba10[_0x17b35f(0x1ff)],'datasetKey':_0x24600e[_0x17b35f(0x213)],'pk':_0x24600e['pkField'],'db':_0x5187aa,'dbtable':summarizeDbtable(_0x24600e),'fields':_0x5525ea,'operations':_0x18390b,'indexes':Array[_0x17b35f(0x22b)](_0x1cba10['indexes'])?_0x1cba10[_0x17b35f(0x202)]:[],'relations':_0x5ede04[_0x17b35f(0x223)]??null,'relatedPages':normalizeRelatedPages(_0x5ede04[_0x17b35f(0x206)]),...Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x203)])?{'columnCodeListWithDeleted':_0x5ede04[_0x17b35f(0x203)]}:{},'formatRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x208)])?_0x5ede04['formatRules']:[],'validateRules':Array[_0x17b35f(0x22b)](_0x5ede04[_0x17b35f(0x20b)])?_0x5ede04[_0x17b35f(0x20b)]:[],..._0x53af66!==undefined?{'extend':_0x53af66}:{},'stats':{'fieldCount':_0x5525ea[_0x17b35f(0x216)],'operationCount':_0x18390b[_0x17b35f(0x216)]}}};}};
1
+ function a28_0x5ca6(_0xa433c5,_0x5b17d3){_0xa433c5=_0xa433c5-0xa7;const _0x5c9f38=a28_0x5c9f();let _0x5ca658=_0x5c9f38[_0xa433c5];return _0x5ca658;}function a28_0x5c9f(){const _0x386746=['deleted','responseBody','extend','2241354hiXYEr','requestBody','modelCode','indexes','required','dbName','sourceType','isArray','66989DUVTfi','description','afterScriptId','properties','beforeScriptId','labelField','host','relations','type','876532yicZfC','operations','push','find','options','doType','filter','name','parse','path','relatedPageInfoList','split','responseFields','2563910zZgQTs','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','method','creatorNameField','appCode','requestFields','detail','string','formatRules','fields','read','trim','logicField','source','code','532tjoXai','54xGaEiS','pkField','5nndtuO','dbId','creatorIdField','dbtableConfig','6296tcgFrl','dataType','dbType','datasetKey','modelId','dblinkInfoDTO','doVersion','str','map','length','columnCodeListWithDeleted','1744404RPvgRm','object','createTimeField','allFields','validateRules','entries','modifierIdField','tableName','2879349uJKqBI','title'];a28_0x5c9f=function(){return _0x386746;};return a28_0x5c9f();}const a28_0x3e634b=a28_0x5ca6;(function(_0x2e66a9,_0x417adc){const _0x3326a5=a28_0x5ca6,_0x31cc02=_0x2e66a9();while(!![]){try{const _0x52bfec=parseInt(_0x3326a5(0xda))/0x1+parseInt(_0x3326a5(0xd2))/0x2+parseInt(_0x3326a5(0xcd))/0x3+-parseInt(_0x3326a5(0xe3))/0x4*(parseInt(_0x3326a5(0xb6))/0x5)+parseInt(_0x3326a5(0xc5))/0x6+-parseInt(_0x3326a5(0xb3))/0x7*(-parseInt(_0x3326a5(0xba))/0x8)+-parseInt(_0x3326a5(0xb4))/0x9*(parseInt(_0x3326a5(0xf0))/0xa);if(_0x52bfec===_0x417adc)break;else _0x31cc02['push'](_0x31cc02['shift']());}catch(_0x2dd6f9){_0x31cc02['push'](_0x31cc02['shift']());}}}(a28_0x5c9f,0xb4ca4));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x266a16){const _0x3f8488=a28_0x5ca6;if(_0x266a16[_0x3f8488(0xcf)])return null;const _0x457df9=Boolean(_0x266a16['displayName']!==undefined||_0x266a16[_0x3f8488(0xe8)]!==undefined);let _0x4cfb03={};if(!_0x457df9&&typeof _0x266a16[_0x3f8488(0xd1)]==='string')try{_0x4cfb03=JSON[_0x3f8488(0xeb)](_0x266a16[_0x3f8488(0xd1)]);}catch{}const _0x239cf8=_0x457df9?_0x266a16['name']:_0x266a16[_0x3f8488(0xb2)],_0x2a4c20=_0x457df9?_0x266a16['displayName']:_0x266a16[_0x3f8488(0xea)],_0x566933=_0x457df9?_0x266a16[_0x3f8488(0xe8)]:_0x266a16[_0x3f8488(0xe2)]||_0x266a16[_0x3f8488(0xbb)],_0x4a4450=_0x457df9?_0x266a16[_0x3f8488(0xb5)]===!![]:_0x4cfb03[_0x3f8488(0xb5)]===!![],_0x3028e7=_0x457df9?_0x266a16[_0x3f8488(0xd6)]===!![]:_0x4cfb03[_0x3f8488(0xd6)]===!![],_0x4cab34=_0x457df9?_0x266a16[_0x3f8488(0xe7)]??null:_0x4cfb03[_0x3f8488(0xe7)]??null,_0x37a626={'name':_0x239cf8,'displayName':_0x2a4c20||_0x239cf8,'type':_0x566933,'dbType':_0x266a16[_0x3f8488(0xbc)],'pk':_0x4a4450,'required':_0x3028e7,'description':_0x266a16[_0x3f8488(0xdb)]||undefined};return Array[_0x3f8488(0xd9)](_0x4cab34)&&_0x4cab34[_0x3f8488(0xc3)]>0x0&&(_0x37a626[_0x3f8488(0xe7)]=_0x4cab34),_0x37a626;}function parseJsonMaybe(_0x1d9784){const _0x5b24b7=a28_0x5ca6;if(typeof _0x1d9784!==_0x5b24b7(0xab))return _0x1d9784;try{return JSON[_0x5b24b7(0xeb)](_0x1d9784);}catch{return _0x1d9784;}}function normalizeOperationEntry(_0x30db16,_0x4e09fc){const _0x3f3e88=a28_0x5ca6;if(!_0x4e09fc||typeof _0x4e09fc!==_0x3f3e88(0xc6))return null;if(!_0x4e09fc['method']||!_0x4e09fc[_0x3f3e88(0xec)])return null;const _0x40b3ff={'name':_0x30db16,'method':_0x4e09fc[_0x3f3e88(0xf2)],'path':_0x4e09fc[_0x3f3e88(0xec)]};if(_0x4e09fc['host'])_0x40b3ff['host']=_0x4e09fc[_0x3f3e88(0xe0)];if(_0x4e09fc[_0x3f3e88(0xd3)]!=null)_0x40b3ff[_0x3f3e88(0xd3)]=parseJsonMaybe(_0x4e09fc[_0x3f3e88(0xd3)]);if(_0x4e09fc[_0x3f3e88(0xd0)]!=null)_0x40b3ff[_0x3f3e88(0xd0)]=parseJsonMaybe(_0x4e09fc['responseBody']);if(_0x4e09fc[_0x3f3e88(0xde)]!=null)_0x40b3ff[_0x3f3e88(0xde)]=_0x4e09fc[_0x3f3e88(0xde)];if(_0x4e09fc[_0x3f3e88(0xdc)]!=null)_0x40b3ff[_0x3f3e88(0xdc)]=_0x4e09fc[_0x3f3e88(0xdc)];if(Array[_0x3f3e88(0xd9)](_0x4e09fc['requestFields']))_0x40b3ff[_0x3f3e88(0xa9)]=_0x4e09fc['requestFields'];if(Array[_0x3f3e88(0xd9)](_0x4e09fc[_0x3f3e88(0xef)]))_0x40b3ff[_0x3f3e88(0xef)]=_0x4e09fc[_0x3f3e88(0xef)];return _0x40b3ff;}function summarizeDbtable(_0x28693d){const _0x4c94dc=a28_0x5ca6,_0x376130={},_0xb5fe46=[_0x4c94dc(0xb7),_0x4c94dc(0xd7),_0x4c94dc(0xcc),_0x4c94dc(0xbd),'pkField',_0x4c94dc(0xc8),_0x4c94dc(0xb0),_0x4c94dc(0xc7),'updateTimeField',_0x4c94dc(0xb8),_0x4c94dc(0xa7),_0x4c94dc(0xcb),'modifierNameField',_0x4c94dc(0xdf),_0x4c94dc(0xbf)];for(const _0x243029 of _0xb5fe46){if(_0x28693d[_0x243029]!==undefined)_0x376130[_0x243029]=_0x28693d[_0x243029];}return typeof _0x376130[_0x4c94dc(0xc8)]===_0x4c94dc(0xab)&&_0x376130[_0x4c94dc(0xc8)][_0x4c94dc(0xc3)]>0x0&&(_0x376130['allFieldNames']=_0x376130[_0x4c94dc(0xc8)][_0x4c94dc(0xee)](',')[_0x4c94dc(0xc2)](_0x45851=>_0x45851[_0x4c94dc(0xaf)]())[_0x4c94dc(0xe9)](Boolean)),_0x376130;}function normalizeRelatedPages(_0x3d41c0){const _0x577c7b=a28_0x5ca6;if(!Array[_0x577c7b(0xd9)](_0x3d41c0))return[];return _0x3d41c0[_0x577c7b(0xe9)](_0x3230d4=>_0x3230d4&&typeof _0x3230d4===_0x577c7b(0xc6))[_0x577c7b(0xc2)](_0x2c2c9c=>({'id':_0x2c2c9c['id'],'type':_0x2c2c9c[_0x577c7b(0xe2)],'code':_0x2c2c9c[_0x577c7b(0xb2)],'title':_0x2c2c9c[_0x577c7b(0xce)],'deleted':_0x2c2c9c[_0x577c7b(0xcf)]===!![]}));}function normalizeFallbackFieldName(_0x4cde42,_0x30ad5){const _0x5e3acd=_0x4cde42['trim']();if(!_0x5e3acd)return null;return{'name':_0x5e3acd,'displayName':_0x5e3acd,'type':undefined,'dbType':undefined,'pk':_0x5e3acd===_0x30ad5,'required':![],'description':undefined};}async function loadListFieldFallback(_0x13bc70,_0x1e36e8){const _0xc5c1e2=a28_0x5ca6;if(!_0x13bc70||!_0x1e36e8)return[];try{const _0x325247=await listDatasets(_0x13bc70,{'code':_0x1e36e8}),_0xc38032=_0x325247[_0xc5c1e2(0xe6)](_0x14ffff=>_0x14ffff[_0xc5c1e2(0xb2)]===_0x1e36e8)??_0x325247[0x0],_0x2b2a=_0xc38032?.[_0xc5c1e2(0xb9)]??{},_0x3bd419=typeof _0x2b2a[_0xc5c1e2(0xc8)]===_0xc5c1e2(0xab)?_0x2b2a[_0xc5c1e2(0xc8)][_0xc5c1e2(0xee)](','):[];return _0x3bd419[_0xc5c1e2(0xc2)](_0xe85076=>normalizeFallbackFieldName(_0xe85076,_0x2b2a[_0xc5c1e2(0xb5)]))['filter'](_0x1881df=>_0x1881df!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a28_0x3e634b(0xaa),'description':a28_0x3e634b(0xf1),'risk':a28_0x3e634b(0xae),'flags':[CODE_FLAG],async 'execute'(_0x2f1212){const _0x5eb51a=a28_0x3e634b,_0x4cf719=await getDatasetDetail(_0x2f1212[_0x5eb51a(0xc1)](_0x5eb51a(0xb2))),_0x12f8bb=Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xad)])?_0x4cf719[_0x5eb51a(0xad)]:Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xdd)])?_0x4cf719['properties']:[];let _0x526310=_0x12f8bb[_0x5eb51a(0xc2)](_0x4066c4=>normalizeField(_0x4066c4))[_0x5eb51a(0xe9)](_0x1ba0b2=>_0x1ba0b2!==null);_0x526310['length']===0x0&&(_0x526310=await loadListFieldFallback(_0x2f1212[_0x5eb51a(0xa8)],_0x2f1212['str']('code')));const _0xda06e7=_0x4cf719[_0x5eb51a(0xe4)]??{},_0x35ba10=[];for(const [_0xc565b2,_0x372813]of Object[_0x5eb51a(0xca)](_0xda06e7)){const _0x53ae5a=normalizeOperationEntry(_0xc565b2,_0x372813);if(_0x53ae5a)_0x35ba10[_0x5eb51a(0xe5)](_0x53ae5a);}const _0x55335d=_0x4cf719[_0x5eb51a(0xb9)]??{},_0x18fac6=_0x4cf719['dataset']??{},_0x44bce2=_0x55335d[_0x5eb51a(0xb7)]!=null?{'id':_0x55335d['dbId'],'name':_0x55335d['dbName']??null}:undefined;let _0x527097;return typeof _0x4cf719['extend']==='string'&&(_0x527097=parseJsonMaybe(_0x4cf719[_0x5eb51a(0xd1)])),{'ok':!![],'data':{'id':_0x4cf719[_0x5eb51a(0xbe)]??_0x4cf719['id'],'name':_0x4cf719['name'],'code':_0x4cf719[_0x5eb51a(0xd4)]||_0x4cf719[_0x5eb51a(0xb2)],'doVersion':_0x4cf719[_0x5eb51a(0xc0)],'description':_0x4cf719[_0x5eb51a(0xdb)]||_0x18fac6['tableComment']||undefined,'source':_0x4cf719[_0x5eb51a(0xb1)]||_0x18fac6[_0x5eb51a(0xd8)],'table':_0x55335d[_0x5eb51a(0xcc)]||_0x18fac6[_0x5eb51a(0xcc)],'datasetKey':_0x55335d[_0x5eb51a(0xbd)],'pk':_0x55335d[_0x5eb51a(0xb5)],'db':_0x44bce2,'dbtable':summarizeDbtable(_0x55335d),'fields':_0x526310,'operations':_0x35ba10,'indexes':Array[_0x5eb51a(0xd9)](_0x18fac6['indexes'])?_0x18fac6[_0x5eb51a(0xd5)]:[],'relations':_0x4cf719[_0x5eb51a(0xe1)]??null,'relatedPages':normalizeRelatedPages(_0x4cf719[_0x5eb51a(0xed)]),...Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xc4)])?{'columnCodeListWithDeleted':_0x4cf719[_0x5eb51a(0xc4)]}:{},'formatRules':Array['isArray'](_0x4cf719['formatRules'])?_0x4cf719[_0x5eb51a(0xac)]:[],'validateRules':Array[_0x5eb51a(0xd9)](_0x4cf719[_0x5eb51a(0xc9)])?_0x4cf719['validateRules']:[],..._0x527097!==undefined?{'extend':_0x527097}:{},'stats':{'fieldCount':_0x526310[_0x5eb51a(0xc3)],'operationCount':_0x35ba10[_0x5eb51a(0xc3)]}}};}};
@@ -1 +1 @@
1
- function a29_0x1718(){const _0x560fce=['1930970igTYxi','35091192kfDQRT','6fepXuo','1142437GXMNZU','2196886ahFeZU','9026584KOgpps','685756DOVLXs','248820dQBfoe'];a29_0x1718=function(){return _0x560fce;};return a29_0x1718();}(function(_0x32b348,_0xd1bf88){const _0x12369e=a29_0x340a,_0x35aa3d=_0x32b348();while(!![]){try{const _0x498acf=-parseInt(_0x12369e(0x18c))/0x1+-parseInt(_0x12369e(0x18d))/0x2+-parseInt(_0x12369e(0x18b))/0x3*(parseInt(_0x12369e(0x187))/0x4)+parseInt(_0x12369e(0x189))/0x5+parseInt(_0x12369e(0x188))/0x6+-parseInt(_0x12369e(0x186))/0x7+parseInt(_0x12369e(0x18a))/0x8;if(_0x498acf===_0xd1bf88)break;else _0x35aa3d['push'](_0x35aa3d['shift']());}catch(_0x364bda){_0x35aa3d['push'](_0x35aa3d['shift']());}}}(a29_0x1718,0xe5af9));function a29_0x340a(_0x56fc28,_0x3c80ff){_0x56fc28=_0x56fc28-0x186;const _0x1718c4=a29_0x1718();let _0x340a05=_0x1718c4[_0x56fc28];return _0x340a05;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x5bfd48,_0x22ecb7){const _0xced7a9=a29_0x2e2a,_0x306b0b=_0x5bfd48();while(!![]){try{const _0x34d51a=-parseInt(_0xced7a9(0x94))/0x1*(parseInt(_0xced7a9(0x8e))/0x2)+parseInt(_0xced7a9(0x92))/0x3*(parseInt(_0xced7a9(0x91))/0x4)+parseInt(_0xced7a9(0x8d))/0x5+-parseInt(_0xced7a9(0x8f))/0x6+-parseInt(_0xced7a9(0x95))/0x7*(-parseInt(_0xced7a9(0x93))/0x8)+-parseInt(_0xced7a9(0x8c))/0x9+parseInt(_0xced7a9(0x90))/0xa;if(_0x34d51a===_0x22ecb7)break;else _0x306b0b['push'](_0x306b0b['shift']());}catch(_0x1fae0e){_0x306b0b['push'](_0x306b0b['shift']());}}}(a29_0x56c3,0x7ee75));import{datasetList}from'../../commands/dataset/list.js';function a29_0x2e2a(_0x593591,_0x2b3054){_0x593591=_0x593591-0x8c;const _0x56c36a=a29_0x56c3();let _0x2e2ab9=_0x56c36a[_0x593591];return _0x2e2ab9;}function a29_0x56c3(){const _0x30ee2b=['361072QKOxHq','5199690wNLGCr','16591220EmEdxE','234280uDuXYu','9sEFnYC','15112Srwxjq','5QKcdig','245oCIMCA','2178495aGkQja','3151000TqSPDV'];a29_0x56c3=function(){return _0x30ee2b;};return a29_0x56c3();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x131878=a30_0x33a2;(function(_0x15b1cf,_0x4841b4){const _0x2f7970=a30_0x33a2,_0x86b883=_0x15b1cf();while(!![]){try{const _0x4283f3=-parseInt(_0x2f7970(0xe4))/0x1*(parseInt(_0x2f7970(0xe6))/0x2)+-parseInt(_0x2f7970(0xde))/0x3+parseInt(_0x2f7970(0xd8))/0x4*(-parseInt(_0x2f7970(0xda))/0x5)+parseInt(_0x2f7970(0xd6))/0x6+parseInt(_0x2f7970(0xdc))/0x7+-parseInt(_0x2f7970(0xe5))/0x8+parseInt(_0x2f7970(0xd4))/0x9;if(_0x4283f3===_0x4841b4)break;else _0x86b883['push'](_0x86b883['shift']());}catch(_0x539716){_0x86b883['push'](_0x86b883['shift']());}}}(a30_0x4ce7,0x580c4));import{listDatasets}from'../../core/api-client.js';function a30_0x33a2(_0x4b11a3,_0x50bc1f){_0x4b11a3=_0x4b11a3-0xd3;const _0x4ce769=a30_0x4ce7();let _0x33a271=_0x4ce769[_0x4b11a3];return _0x33a271;}import{CODE_FLAG}from'../../commands/common/flags.js';function a30_0x4ce7(){const _0x13985d=['Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','tableName','split','allFields','10562589WHPfQv','length','706632yUQGpt','trim','247928CEQdpm','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','55CkdAlD','appCode','3456075zqvYmy','dataset','1214919lrVNDW','pkField','list','code','datasetKey','str','212915JUFWsH','998272iTLlgF','2ozEMLi','source'];a30_0x4ce7=function(){return _0x13985d;};return a30_0x4ce7();}export const datasetList={'service':a30_0x131878(0xdd),'command':a30_0x131878(0xe0),'description':a30_0x131878(0xd9),'risk':'read','flags':[{'name':'name','type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a30_0x131878(0xe8)}],async 'execute'(_0x8e61ad){const _0x35787f=a30_0x131878,_0x708d5b=_0x8e61ad[_0x35787f(0xe3)]('name'),_0x45846e=_0x8e61ad[_0x35787f(0xe3)](_0x35787f(0xe1)),_0x13acde=await listDatasets(_0x8e61ad[_0x35787f(0xdb)],{..._0x708d5b&&{'name':_0x708d5b},..._0x45846e&&{'code':_0x45846e}});return{'ok':!![],'data':{'total':_0x13acde[_0x35787f(0xd5)],'datasets':_0x13acde['map'](_0x23b73e=>{const _0x1df17=_0x35787f,_0xc2db24=_0x23b73e['dbtableConfig']??{};return{'id':_0x23b73e['id'],'code':_0x23b73e[_0x1df17(0xe1)],'name':_0x23b73e['name'],'source':_0x23b73e[_0x1df17(0xe7)],'description':_0x23b73e['description'],'table':_0xc2db24[_0x1df17(0xe9)],'datasetKey':_0xc2db24[_0x1df17(0xe2)],'pk':_0xc2db24[_0x1df17(0xdf)],'fields':_0xc2db24[_0x1df17(0xd3)]?_0xc2db24[_0x1df17(0xd3)][_0x1df17(0xea)](',')['map'](_0xb6d04b=>_0xb6d04b[_0x1df17(0xd7)]()):[]};})}};}};
1
+ const a30_0x32c139=a30_0x57b3;(function(_0x356dc6,_0x55ba6d){const _0xee923a=a30_0x57b3,_0x1b26b3=_0x356dc6();while(!![]){try{const _0x30497c=parseInt(_0xee923a(0x1c9))/0x1+-parseInt(_0xee923a(0x1b5))/0x2+-parseInt(_0xee923a(0x1c6))/0x3*(parseInt(_0xee923a(0x1b6))/0x4)+-parseInt(_0xee923a(0x1b0))/0x5+-parseInt(_0xee923a(0x1c3))/0x6*(-parseInt(_0xee923a(0x1bf))/0x7)+parseInt(_0xee923a(0x1b9))/0x8*(parseInt(_0xee923a(0x1c2))/0x9)+parseInt(_0xee923a(0x1c0))/0xa;if(_0x30497c===_0x55ba6d)break;else _0x1b26b3['push'](_0x1b26b3['shift']());}catch(_0x4cd920){_0x1b26b3['push'](_0x1b26b3['shift']());}}}(a30_0xf699,0xacc32));import{listDatasets}from'../../core/api-client.js';function a30_0x57b3(_0x1560cc,_0x25ad97){_0x1560cc=_0x1560cc-0x1b0;const _0xf6999d=a30_0xf699();let _0x57b387=_0xf6999d[_0x1560cc];return _0x57b387;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x32c139(0x1bc),'command':a30_0x32c139(0x1bb),'description':a30_0x32c139(0x1b3),'risk':'read','flags':[{'name':a30_0x32c139(0x1c1),'type':a30_0x32c139(0x1b7),'description':a30_0x32c139(0x1b8)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x1c541e){const _0xc0195a=a30_0x32c139,_0x4bbdd4=_0x1c541e[_0xc0195a(0x1c7)](_0xc0195a(0x1c1)),_0x38e824=_0x1c541e['str'](_0xc0195a(0x1b4)),_0x2d76e9=await listDatasets(_0x1c541e['appCode'],{..._0x4bbdd4&&{'name':_0x4bbdd4},..._0x38e824&&{'code':_0x38e824}});return{'ok':!![],'data':{'total':_0x2d76e9[_0xc0195a(0x1c4)],'datasets':_0x2d76e9[_0xc0195a(0x1c8)](_0x40b4ee=>{const _0x949f78=_0xc0195a,_0x2df42f=_0x40b4ee[_0x949f78(0x1ca)]??{};return{'id':_0x40b4ee['id'],'code':_0x40b4ee['code'],'name':_0x40b4ee[_0x949f78(0x1c1)],'source':_0x40b4ee['source'],'description':_0x40b4ee[_0x949f78(0x1be)],'table':_0x2df42f[_0x949f78(0x1b1)],'datasetKey':_0x2df42f[_0x949f78(0x1c5)],'pk':_0x2df42f['pkField'],'fields':_0x2df42f[_0x949f78(0x1b2)]?_0x2df42f[_0x949f78(0x1b2)][_0x949f78(0x1bd)](',')['map'](_0x592413=>_0x592413[_0x949f78(0x1ba)]()):[]};})}};}};function a30_0xf699(){const _0x557106=['map','290728pilhpq','dbtableConfig','5542630qDyKnX','tableName','allFields','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','code','811300itcGue','900440ajXqap','string','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','1280264saQnIL','trim','list','dataset','split','description','686DvBEHt','20254690hizRkN','name','9UsWHMH','25770fRnmJs','length','datasetKey','9ORIyhq','str'];a30_0xf699=function(){return _0x557106;};return a30_0xf699();}
@@ -1 +1 @@
1
- const a31_0x4f1afa=a31_0x5a36;(function(_0x5e9078,_0x2bfbae){const _0x506267=a31_0x5a36,_0x93de23=_0x5e9078();while(!![]){try{const _0x2aea10=parseInt(_0x506267(0x72))/0x1+-parseInt(_0x506267(0x70))/0x2+parseInt(_0x506267(0x6c))/0x3+-parseInt(_0x506267(0x7b))/0x4*(parseInt(_0x506267(0x7c))/0x5)+-parseInt(_0x506267(0x6b))/0x6+-parseInt(_0x506267(0x69))/0x7*(parseInt(_0x506267(0x74))/0x8)+parseInt(_0x506267(0x6f))/0x9*(parseInt(_0x506267(0x6a))/0xa);if(_0x2aea10===_0x2bfbae)break;else _0x93de23['push'](_0x93de23['shift']());}catch(_0x30e934){_0x93de23['push'](_0x93de23['shift']());}}}(a31_0x1074,0x66635));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4f1afa(0x78);function a31_0x1074(){const _0x5ac9cb=['read','trim','2827161wQQCRZ','1553010CUuKgE','dataset','135029BUQoUM','code','17128KOEtiK','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','sdk-doc','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','string','4QWpqAr','2056215toTrNt','1729aECxIa','70MetsPK','4084548yeUcOk','1448346vWaDUy'];a31_0x1074=function(){return _0x5ac9cb;};return a31_0x1074();}function a31_0x5a36(_0x5997c7,_0x407510){_0x5997c7=_0x5997c7-0x69;const _0x107457=a31_0x1074();let _0x5a36ee=_0x107457[_0x5997c7];return _0x5a36ee;}export function formatDatasetSdkMarkdown(_0x4f37c7){const _0x376acc=a31_0x4f1afa,_0x3889da=typeof _0x4f37c7===_0x376acc(0x7a)?_0x4f37c7[_0x376acc(0x6e)]():'';return _0x3889da||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x4f1afa(0x71),'command':a31_0x4f1afa(0x76),'description':a31_0x4f1afa(0x75),'risk':a31_0x4f1afa(0x6d),'flags':[{...CODE_FLAG,'description':a31_0x4f1afa(0x79)}],async 'execute'(_0x35218c){const _0x102beb=a31_0x4f1afa,_0xf919c8=_0x35218c['str'](_0x102beb(0x73)),_0x2246b9=await getDatasetSdkUsageDoc(_0xf919c8,_0x35218c[_0x102beb(0x77)]);return{'ok':!![],'data':{'code':_0xf919c8,'appCode':_0x35218c[_0x102beb(0x77)],'markdown':formatDatasetSdkMarkdown(_0x2246b9)}};}};
1
+ const a31_0x46caaa=a31_0x18c7;function a31_0x4c90(){const _0x155125=['55sSqAJi','2164652YXuwyg','10qOEcpd','1264173DABhLh','1923376PrAJSE','trim','sdk-doc','string','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','dataset','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','354470snQHjV','code','470461KtqLWN','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','557168NzNOLD','234474kwvxfJ','2rOyROd','18ybpwJQ'];a31_0x4c90=function(){return _0x155125;};return a31_0x4c90();}(function(_0x14bb8a,_0x68b625){const _0x18168d=a31_0x18c7,_0x507ec7=_0x14bb8a();while(!![]){try{const _0x5f4b93=parseInt(_0x18168d(0x1cb))/0x1*(parseInt(_0x18168d(0x1bc))/0x2)+-parseInt(_0x18168d(0x1c1))/0x3+parseInt(_0x18168d(0x1bf))/0x4+parseInt(_0x18168d(0x1c0))/0x5*(-parseInt(_0x18168d(0x1bb))/0x6)+-parseInt(_0x18168d(0x1c2))/0x7+-parseInt(_0x18168d(0x1cd))/0x8*(parseInt(_0x18168d(0x1bd))/0x9)+parseInt(_0x18168d(0x1c9))/0xa*(parseInt(_0x18168d(0x1be))/0xb);if(_0x5f4b93===_0x68b625)break;else _0x507ec7['push'](_0x507ec7['shift']());}catch(_0xfe6b13){_0x507ec7['push'](_0x507ec7['shift']());}}}(a31_0x4c90,0x43332));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x46caaa(0x1c8);function a31_0x18c7(_0x15053c,_0x20ecc6){_0x15053c=_0x15053c-0x1bb;const _0x4c908a=a31_0x4c90();let _0x18c7c5=_0x4c908a[_0x15053c];return _0x18c7c5;}export function formatDatasetSdkMarkdown(_0x283e46){const _0x2bd6fb=a31_0x46caaa,_0x423763=typeof _0x283e46===_0x2bd6fb(0x1c5)?_0x283e46[_0x2bd6fb(0x1c3)]():'';return _0x423763||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x46caaa(0x1c7),'command':a31_0x46caaa(0x1c4),'description':a31_0x46caaa(0x1c6),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x46caaa(0x1cc)}],async 'execute'(_0x45b743){const _0x538f12=a31_0x46caaa,_0x174595=_0x45b743['str'](_0x538f12(0x1ca)),_0x46324d=await getDatasetSdkUsageDoc(_0x174595,_0x45b743['appCode']);return{'ok':!![],'data':{'code':_0x174595,'appCode':_0x45b743['appCode'],'markdown':formatDatasetSdkMarkdown(_0x46324d)}};}};
@@ -1 +1 @@
1
- const a32_0xc47fc6=a32_0x26b6;(function(_0x170240,_0x42dc4b){const _0x4fdad4=a32_0x26b6,_0x3b023c=_0x170240();while(!![]){try{const _0x36a9e0=parseInt(_0x4fdad4(0x14e))/0x1+parseInt(_0x4fdad4(0x176))/0x2*(-parseInt(_0x4fdad4(0x146))/0x3)+parseInt(_0x4fdad4(0x14f))/0x4+-parseInt(_0x4fdad4(0x186))/0x5+-parseInt(_0x4fdad4(0x135))/0x6+parseInt(_0x4fdad4(0x16b))/0x7*(parseInt(_0x4fdad4(0x178))/0x8)+parseInt(_0x4fdad4(0x153))/0x9*(parseInt(_0x4fdad4(0x16c))/0xa);if(_0x36a9e0===_0x42dc4b)break;else _0x3b023c['push'](_0x3b023c['shift']());}catch(_0x4d0ffa){_0x3b023c['push'](_0x3b023c['shift']());}}}(a32_0x4999,0x9ed62));import a32_0x1c5d68 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x4999(){const _0x2b478c=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','ClientAk','defaultApp','pageSize','\x20commands)','global','read','commandCount','call','current','status','(not\x20found)','966014MOtFNE','78630ayagTZ','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','currentApp','prototype','⚠\x20Empty','accessKey','\x20config\x20delete\x20routing\x20--global','1139146pNcGCT','Global','40AAfvlV','\x20+\x20','\x20\x20kbServiceDomain:\x20','✓\x20Loaded','Diagnose\x20CLI\x20configuration\x20and\x20environment','repeat','format','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20config\x20init','\x20\x20Config\x20JSON','projectConfig','padEnd','4555000eJaLtA','Project','gray','missing','filter','skillVersion','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','green','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','version','inherit','hasOwnProperty','serviceCode','includes','state','log','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','yellow','name','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','bold','serviceCount','\x20\x20Repair\x20global:\x20\x20\x20','empty','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','✗\x20Invalid','not\x20configured','project','check','\x20\x20Package\x20Version:\x20','registryPath','\x20config\x20delete\x20routing','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','(missing)','\x20\x20Config\x20Files','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','4160934dlUfVL','\x20Imported\x20from:\x20','raw','source','region','✓\x20Valid\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','(unnamed)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20Legacy\x20inherit:\x20\x20\x20','red','installedPath','\x20doctor','\x20\x20runtimeDomain:\x20\x20\x20','3wKrNdV','(default:\x20','(none)','\x20\x20Service\x20Tree','globalConfig','\x20\x20API\x20Endpoints','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','length','1293604zvOjml','1445596jTejJs','(not\x20set)','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','549pyNVWY','(removed\x20—\x20cookie\x20auth\x20disabled)','(set,\x20length=','path','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','platform'];a32_0x4999=function(){return _0x2b478c;};return a32_0x4999();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x26b6(_0x2351a1,_0x32b154){_0x2351a1=_0x2351a1-0x110;const _0x499906=a32_0x4999();let _0x26b65a=_0x499906[_0x2351a1];return _0x26b65a;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x27916a){const _0x30e1ec=a32_0x26b6,_0x35095e=getCliVersion(),_0x86d6ca=buildConfigFromFlags({});let _0x5defa8,_0x358875;try{_0x5defa8=normalizeLovrabetRegion(_0x86d6ca[_0x30e1ec(0x137)][_0x30e1ec(0x139)]);}catch(_0x55f112){_0x358875=_0x55f112 instanceof Error?_0x55f112:new Error(String(_0x55f112));}let _0x262e78;if(!_0x358875)try{await initGlobalEnvironment(_0x86d6ca);}catch(_0x2bed23){_0x262e78=_0x2bed23 instanceof Error?_0x2bed23:new Error(String(_0x2bed23));}console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](CLI_BIN_NAME+_0x30e1ec(0x144))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray']('─'[_0x30e1ec(0x17d)](0x32))),console[_0x30e1ec(0x119)](_0x30e1ec(0x12c)+_0x35095e),console[_0x30e1ec(0x119)](_0x30e1ec(0x16d)+process[_0x30e1ec(0x113)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x134)+process[_0x30e1ec(0x15b)]+'\x20'+process[_0x30e1ec(0x12e)]);const _0x5832cb=inspectBuiltinSkill();console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Built-in\x20Skill')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x18c)+(_0x5832cb[_0x30e1ec(0x118)]===_0x30e1ec(0x168)?a32_0x1c5d68['green']('✓\x20current'):a32_0x1c5d68[_0x30e1ec(0x142)]('✗\x20'+_0x5832cb['state']))),console[_0x30e1ec(0x119)](_0x30e1ec(0x128)+_0x5832cb[_0x30e1ec(0x181)]),console['log'](_0x30e1ec(0x16f)+(_0x5832cb[_0x30e1ec(0x18b)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x131)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x16e)+(_0x5832cb[_0x30e1ec(0x143)]||a32_0x1c5d68['gray'](_0x30e1ec(0x16a))));_0x5832cb[_0x30e1ec(0x118)]!==_0x30e1ec(0x168)&&console['log'](_0x30e1ec(0x157)+_0x5832cb['repairCommand']);_0x5832cb['reason']&&console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x5832cb['reason']);console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x132))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x3c8e0b=getGlobalConfigPath(),_0x478d30=getProjectConfigPath();console[_0x30e1ec(0x119)](_0x30e1ec(0x12d)+(_0x3c8e0b||a32_0x1c5d68['gray'](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x152)+(_0x478d30||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x16a)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x183))),console['log'](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x12558a=(_0x2458e5,_0xc7a2db)=>{const _0x4c7b88=_0x30e1ec;if(!_0xc7a2db){console['log']('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)]('(no\x20file)'));return;}const _0x39e81b=inspectCliConfigJsonFile(_0xc7a2db);if(_0x39e81b[_0x4c7b88(0x169)]==='ok')console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68['green'](_0x4c7b88(0x13a)));else{if(_0x39e81b[_0x4c7b88(0x169)]===_0x4c7b88(0x121))console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x11b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x39e81b['status']===_0x4c7b88(0x189)?console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5['padEnd'](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x188)](_0x4c7b88(0x131))):(console[_0x4c7b88(0x119)]('\x20\x20'+_0x2458e5[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68['red'](_0x4c7b88(0x123))),console[_0x4c7b88(0x119)]('\x20\x20'+''[_0x4c7b88(0x185)](0x11)+'\x20'+a32_0x1c5d68[_0x4c7b88(0x142)](_0x39e81b[_0x4c7b88(0x151)])));}};_0x12558a(_0x30e1ec(0x177),_0x3c8e0b),_0x12558a(_0x30e1ec(0x187),_0x478d30);const _0x4984ae=loadRawConfigLayers(),_0x43fe6e=[Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x14a)],_0x30e1ec(0x114))?_0x30e1ec(0x164):null,Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x114))?_0x30e1ec(0x126):null][_0x30e1ec(0x18a)](Boolean);_0x43fe6e[_0x30e1ec(0x14d)]>0x0&&(console[_0x30e1ec(0x119)](_0x30e1ec(0x141)+a32_0x1c5d68[_0x30e1ec(0x11b)](_0x30e1ec(0x15d)+_0x43fe6e['join'](_0x30e1ec(0x179))+_0x30e1ec(0x140))),_0x43fe6e['includes'](_0x30e1ec(0x126))&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x43fe6e[_0x30e1ec(0x117)](_0x30e1ec(0x164))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x17f)+CLI_BIN_NAME+_0x30e1ec(0x15f)));_0x262e78&&(console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)](_0x30e1ec(0x15e)+_0x262e78[_0x30e1ec(0x151)]),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x184)],'routing')&&console[_0x30e1ec(0x119)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x30e1ec(0x12a)),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)][_0x30e1ec(0x167)](_0x4984ae['globalConfig'],'routing')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x175)));_0x358875&&(console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Country/Region\x20Configuration')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x159)+a32_0x1c5d68['red'](_0x30e1ec(0x124))),console[_0x30e1ec(0x119)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x358875[_0x30e1ec(0x151)]),Object['prototype']['hasOwnProperty']['call'](_0x4984ae[_0x30e1ec(0x184)],_0x30e1ec(0x139))&&console[_0x30e1ec(0x119)](_0x30e1ec(0x130)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x30e1ec(0x172)][_0x30e1ec(0x115)]['call'](_0x4984ae[_0x30e1ec(0x14a)],'region')&&console[_0x30e1ec(0x119)](_0x30e1ec(0x120)+CLI_BIN_NAME+_0x30e1ec(0x182)));console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x12b))),console[_0x30e1ec(0x119)](a32_0x1c5d68['gray'](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e))),console[_0x30e1ec(0x119)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca['appCode']||a32_0x1c5d68['red'](_0x30e1ec(0x150)))),console[_0x30e1ec(0x119)](_0x30e1ec(0x133)+(_0x5defa8??a32_0x1c5d68[_0x30e1ec(0x142)]('(invalid)'))),console['log'](_0x30e1ec(0x158)+_0x86d6ca['locale']),console[_0x30e1ec(0x119)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x161)]||a32_0x1c5d68['gray']('(none)'))),console['log'](_0x30e1ec(0x12f)+(_0x86d6ca[_0x30e1ec(0x171)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console['log'](_0x30e1ec(0x180)+(_0x86d6ca[_0x30e1ec(0x17e)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x147)+DEFAULT_CONFIG_VALUES[_0x30e1ec(0x17e)]+')'))),console[_0x30e1ec(0x119)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86d6ca[_0x30e1ec(0x162)]??a32_0x1c5d68[_0x30e1ec(0x188)]('(default)'))),console[_0x30e1ec(0x119)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x86d6ca['riskLevel']),console[_0x30e1ec(0x119)](_0x30e1ec(0x15c)+_0x86d6ca[_0x30e1ec(0x13c)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x110)+AUTH_MODE[_0x30e1ec(0x160)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x122)+(_0x86d6ca[_0x30e1ec(0x174)]?a32_0x1c5d68[_0x30e1ec(0x111)](_0x30e1ec(0x155)+_0x86d6ca[_0x30e1ec(0x174)][_0x30e1ec(0x14d)]+')'):a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x148)))),console[_0x30e1ec(0x119)](),console['log'](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x14b))),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'[_0x30e1ec(0x17d)](0x1e)));_0x262e78||_0x358875?console[_0x30e1ec(0x119)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x1c5d68[_0x30e1ec(0x142)](_0x30e1ec(0x11a))):(console[_0x30e1ec(0x119)](_0x30e1ec(0x13f)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x30e1ec(0x145)+getRuntimeDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x170)+getSkillDomain()),console[_0x30e1ec(0x119)](_0x30e1ec(0x17a)+(getKbServiceDomain()??_0x30e1ec(0x125))));console['log'](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)](_0x30e1ec(0x149))),console['log'](a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13e)[_0x30e1ec(0x17d)](0x1e)));const _0x46a11e=inspectServiceRegistry();console[_0x30e1ec(0x119)](_0x30e1ec(0x112)+_0x46a11e[_0x30e1ec(0x129)]),console['log'](_0x30e1ec(0x159)+formatServiceRegistryStatus(_0x46a11e)),console[_0x30e1ec(0x119)](_0x30e1ec(0x11d)+_0x46a11e[_0x30e1ec(0x11f)]),console[_0x30e1ec(0x119)](_0x30e1ec(0x14c)+_0x46a11e[_0x30e1ec(0x166)]);for(const _0xce4ef4 of _0x46a11e['services']){console[_0x30e1ec(0x119)]('\x20\x20'+(_0xce4ef4[_0x30e1ec(0x116)]+':')[_0x30e1ec(0x185)](0x11)+'\x20'+(_0xce4ef4[_0x30e1ec(0x11c)]||a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x13d)))+'\x20('+_0xce4ef4[_0x30e1ec(0x166)]+_0x30e1ec(0x163)),console['log']('\x20\x20'+''[_0x30e1ec(0x185)](0x11)+_0x30e1ec(0x136)+_0xce4ef4[_0x30e1ec(0x138)][_0x30e1ec(0x156)]);}return console[_0x30e1ec(0x119)](),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x11e)]('\x20\x20Auth')),console[_0x30e1ec(0x119)](a32_0x1c5d68[_0x30e1ec(0x188)]('\x20\x20─'['repeat'](0x1e))),console[_0x30e1ec(0x119)](_0x30e1ec(0x13b)+a32_0x1c5d68['green'](AUTH_MODE[_0x30e1ec(0x160)]+'\x20(accessKey)')),console[_0x30e1ec(0x119)](_0x30e1ec(0x15a)+a32_0x1c5d68[_0x30e1ec(0x188)](_0x30e1ec(0x154))),console[_0x30e1ec(0x119)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x287e7d){const _0x355113=a32_0x26b6;if(_0x287e7d['status']==='ok')return a32_0x1c5d68[_0x355113(0x111)](_0x355113(0x17b));if(_0x287e7d['status']===_0x355113(0x189))return a32_0x1c5d68[_0x355113(0x188)](_0x355113(0x16a));if(_0x287e7d[_0x355113(0x169)]===_0x355113(0x121))return a32_0x1c5d68[_0x355113(0x11b)](_0x355113(0x173));return a32_0x1c5d68['red'](_0x355113(0x124)+(_0x287e7d[_0x355113(0x151)]?':\x20'+_0x287e7d['message']:''));}export const doctorDefinition={'service':'doctor','command':a32_0xc47fc6(0x127),'description':a32_0xc47fc6(0x17c),'risk':a32_0xc47fc6(0x165),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x4c780a=a32_0x550e;(function(_0xb92347,_0x37b126){const _0x5645ad=a32_0x550e,_0x544c63=_0xb92347();while(!![]){try{const _0x3ff0f2=-parseInt(_0x5645ad(0x102))/0x1+-parseInt(_0x5645ad(0x110))/0x2*(parseInt(_0x5645ad(0x134))/0x3)+-parseInt(_0x5645ad(0x13e))/0x4*(parseInt(_0x5645ad(0x143))/0x5)+-parseInt(_0x5645ad(0xfd))/0x6+parseInt(_0x5645ad(0x124))/0x7+-parseInt(_0x5645ad(0x121))/0x8*(parseInt(_0x5645ad(0xfe))/0x9)+-parseInt(_0x5645ad(0x104))/0xa*(-parseInt(_0x5645ad(0xcf))/0xb);if(_0x3ff0f2===_0x37b126)break;else _0x544c63['push'](_0x544c63['shift']());}catch(_0x8b5994){_0x544c63['push'](_0x544c63['shift']());}}}(a32_0x1c2d,0x697d7));import a32_0x652e18 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a32_0x1c2d(){const _0x46a3e5=['\x20\x20Skill\x20Version:\x20\x20\x20','✓\x20current','\x20\x20Installed\x20Path:\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','padEnd','red','(set,\x20length=','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','installedPath','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20(accessKey)','message','join','yellow','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','state','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Config\x20Files','\x20\x20Repair\x20project:\x20\x20','status','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','(invalid)','project','gray','appCode','locale','\x20config\x20delete\x20region','\x20\x20Service\x20Tree','globalConfig','✗\x20Invalid','⚠\x20Empty\x20(treated\x20as\x20{})','doctor','4823226lSdjBT','18wfGMpD','not\x20configured','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','prototype','764787cUsINb','ClientAk','30593180zWjbdk','\x20\x20skillDomain:\x20\x20\x20\x20\x20','includes','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','packageVersion','\x20config\x20init','green','(none)','\x20\x20auth\x20(effective):\x20','(unnamed)','accessKey','61144ghJzCl','log','Project','(missing)','hasOwnProperty','✗\x20Invalid\x20JSON','\x20\x20Package\x20Version:\x20','length','check','reason','✓\x20Valid\x20JSON','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20Routing\x20Configuration','\x20\x20Country/Region\x20Configuration','2965624vvKvaW','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','4121145FgViTt','✓\x20Loaded','currentApp','repairCommand','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20Merged\x20Config','routing','inherit','read','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','pageSize','format','⚠\x20Empty','81nuriis','\x20config\x20delete\x20routing\x20--global','region','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','verbose','\x20doctor','\x20commands)','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','56kutgZv','defaultApp','global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','raw','28735WCqEio','serviceCount','call','\x20\x20─','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Built-in\x20Skill','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20config\x20delete\x20routing','platform','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','11JkuXkJ','projectConfig','Global','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20config\x20delete\x20inherit'];a32_0x1c2d=function(){return _0x46a3e5;};return a32_0x1c2d();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0x550e(_0x3b5c58,_0x47abf6){_0x3b5c58=_0x3b5c58-0xc6;const _0x1c2d4a=a32_0x1c2d();let _0x550e0a=_0x1c2d4a[_0x3b5c58];return _0x550e0a;}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x4f19a9){const _0xc14250=a32_0x550e,_0x15a815=getCliVersion(),_0x4cfd30=buildConfigFromFlags({});let _0x196d4f,_0x2c6f3c;try{_0x196d4f=normalizeLovrabetRegion(_0x4cfd30[_0xc14250(0x142)][_0xc14250(0x136)]);}catch(_0x21ecc9){_0x2c6f3c=_0x21ecc9 instanceof Error?_0x21ecc9:new Error(String(_0x21ecc9));}let _0x2c5676;if(!_0x2c6f3c)try{await initGlobalEnvironment(_0x4cfd30);}catch(_0x337e80){_0x2c5676=_0x337e80 instanceof Error?_0x337e80:new Error(String(_0x337e80));}console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](CLI_BIN_NAME+_0xc14250(0x13a))),console[_0xc14250(0x111)](a32_0x652e18['gray']('─'[_0xc14250(0xca)](0x32))),console[_0xc14250(0x111)](_0xc14250(0xf0)+_0x15a815),console[_0xc14250(0x111)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0xc14250(0x111)](_0xc14250(0x141)+process[_0xc14250(0xcc)]+'\x20'+process[_0xc14250(0xe4)]);const _0x58e179=inspectBuiltinSkill();console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0xc8))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console['log'](_0xc14250(0x122)+(_0x58e179[_0xc14250(0xeb)]===_0xc14250(0x138)?a32_0x652e18['green'](_0xc14250(0xd5)):a32_0x652e18[_0xc14250(0xdb)]('✗\x20'+_0x58e179['state']))),console[_0xc14250(0x111)](_0xc14250(0x116)+_0x58e179[_0xc14250(0x109)]),console['log'](_0xc14250(0xd4)+(_0x58e179[_0xc14250(0x130)]||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x113)))),console['log'](_0xc14250(0xd6)+(_0x58e179[_0xc14250(0xdf)]||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0xc6))));_0x58e179['state']!==_0xc14250(0x138)&&console[_0xc14250(0x111)](_0xc14250(0xe0)+_0x58e179[_0xc14250(0x127)]);_0x58e179[_0xc14250(0x119)]&&console[_0xc14250(0x111)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58e179[_0xc14250(0x119)]);console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0xed))),console[_0xc14250(0x111)](a32_0x652e18['gray']('\x20\x20─'[_0xc14250(0xca)](0x1e)));const _0x356207=getGlobalConfigPath(),_0xab441b=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x356207||a32_0x652e18[_0xc14250(0xf4)]('(not\x20found)'))),console['log'](_0xc14250(0x12f)+(_0xab441b||a32_0x652e18['gray']('(not\x20found)'))),console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xf1))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e)));const _0x4e8ed9=(_0x35517f,_0x4e2e48)=>{const _0x1c348d=_0xc14250;if(!_0x4e2e48){console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['gray'](_0x1c348d(0xea)));return;}const _0x1826f8=inspectCliConfigJsonFile(_0x4e2e48);if(_0x1826f8[_0x1c348d(0xef)]==='ok')console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['green'](_0x1c348d(0x11a)));else{if(_0x1826f8[_0x1c348d(0xef)]==='empty')console['log']('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xe8)](_0x1c348d(0xfb)));else _0x1826f8[_0x1c348d(0xef)]===_0x1c348d(0x123)?console[_0x1c348d(0x111)]('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18['gray'](_0x1c348d(0x113))):(console[_0x1c348d(0x111)]('\x20\x20'+_0x35517f[_0x1c348d(0xda)](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xdb)](_0x1c348d(0x115))),console[_0x1c348d(0x111)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x652e18[_0x1c348d(0xdb)](_0x1826f8[_0x1c348d(0xe6)])));}};_0x4e8ed9(_0xc14250(0xd1),_0x356207),_0x4e8ed9(_0xc14250(0x112),_0xab441b);const _0x19c69f=loadRawConfigLayers(),_0x40ac39=[Object['prototype']['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xf9)],_0xc14250(0x12d))?_0xc14250(0x140):null,Object[_0xc14250(0x101)]['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xd0)],_0xc14250(0x12d))?_0xc14250(0xf3):null]['filter'](Boolean);_0x40ac39[_0xc14250(0x117)]>0x0&&(console[_0xc14250(0x111)](_0xc14250(0x11b)+a32_0x652e18[_0xc14250(0xe8)](_0xc14250(0x12a)+_0x40ac39[_0xc14250(0xe7)]('\x20+\x20')+'\x20config')),_0x40ac39[_0xc14250(0x106)](_0xc14250(0xf3))&&console[_0xc14250(0x111)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0xc14250(0xd3)),_0x40ac39[_0xc14250(0x106)](_0xc14250(0x140))&&console[_0xc14250(0x111)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x2c5676&&(console['log'](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0x11f))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console[_0xc14250(0x111)](_0xc14250(0xcd)+a32_0x652e18['red'](_0xc14250(0xfa))),console[_0xc14250(0x111)](_0xc14250(0x107)+_0x2c5676['message']),Object['prototype']['hasOwnProperty'][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xd0)],_0xc14250(0x12c))&&console[_0xc14250(0x111)](_0xc14250(0xee)+CLI_BIN_NAME+_0xc14250(0xcb)),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f['globalConfig'],'routing')&&console[_0xc14250(0x111)](_0xc14250(0x13c)+CLI_BIN_NAME+_0xc14250(0x135)));_0x2c6f3c&&(console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0x120))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console[_0xc14250(0x111)](_0xc14250(0xcd)+a32_0x652e18[_0xc14250(0xdb)](_0xc14250(0xfa))),console['log'](_0xc14250(0x107)+_0x2c6f3c['message']),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f['projectConfig'],'region')&&console['log'](_0xc14250(0xee)+CLI_BIN_NAME+_0xc14250(0xf7)),Object[_0xc14250(0x101)][_0xc14250(0x114)][_0xc14250(0x145)](_0x19c69f[_0xc14250(0xf9)],_0xc14250(0x136))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0xc14250(0x10a)));console['log'](),console[_0xc14250(0x111)](a32_0x652e18['bold'](_0xc14250(0x12b))),console['log'](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)[_0xc14250(0xca)](0x1e))),console['log'](_0xc14250(0xe2)+(_0x4cfd30[_0xc14250(0xf5)]||a32_0x652e18[_0xc14250(0xdb)]('(not\x20set)'))),console[_0xc14250(0x111)](_0xc14250(0xd8)+(_0x196d4f??a32_0x652e18[_0xc14250(0xdb)](_0xc14250(0xf2)))),console['log'](_0xc14250(0xdd)+_0x4cfd30[_0xc14250(0xf6)]),console[_0xc14250(0x111)](_0xc14250(0xd7)+(_0x4cfd30[_0xc14250(0x13f)]||a32_0x652e18['gray'](_0xc14250(0x10c)))),console[_0xc14250(0x111)](_0xc14250(0x100)+(_0x4cfd30[_0xc14250(0x126)]||a32_0x652e18['gray']('(none)'))),console[_0xc14250(0x111)](_0xc14250(0x137)+(_0x4cfd30[_0xc14250(0x132)]||a32_0x652e18[_0xc14250(0xf4)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0xc14250(0x132)]+')'))),console[_0xc14250(0x111)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4cfd30[_0xc14250(0x131)]??a32_0x652e18['gray']('(default)'))),console['log'](_0xc14250(0xe9)+_0x4cfd30['riskLevel']),console[_0xc14250(0x111)](_0xc14250(0x129)+_0x4cfd30[_0xc14250(0x139)]),console['log'](_0xc14250(0x10d)+AUTH_MODE[_0xc14250(0x103)]),console['log'](_0xc14250(0x147)+(_0x4cfd30[_0xc14250(0x10f)]?a32_0x652e18[_0xc14250(0x10b)](_0xc14250(0xdc)+_0x4cfd30[_0xc14250(0x10f)]['length']+')'):a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x10c)))),console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)]('\x20\x20API\x20Endpoints')),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)]('\x20\x20─'[_0xc14250(0xca)](0x1e)));_0x2c5676||_0x2c6f3c?console[_0xc14250(0x111)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x652e18['red'](_0xc14250(0xd2))):(console[_0xc14250(0x111)](_0xc14250(0xde)+getApiDomain()),console[_0xc14250(0x111)](_0xc14250(0x148)+getUserDomain()),console[_0xc14250(0x111)](_0xc14250(0x13d)+getRuntimeDomain()),console[_0xc14250(0x111)](_0xc14250(0x105)+getSkillDomain()),console[_0xc14250(0x111)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0xc14250(0xff))));console[_0xc14250(0x111)](),console['log'](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xf8))),console['log'](a32_0x652e18[_0xc14250(0xf4)]('\x20\x20─'[_0xc14250(0xca)](0x1e)));const _0x388b38=inspectServiceRegistry();console[_0xc14250(0x111)](_0xc14250(0x11c)+_0x388b38['registryPath']),console[_0xc14250(0x111)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x388b38)),console[_0xc14250(0x111)](_0xc14250(0xc9)+_0x388b38[_0xc14250(0x144)]),console['log'](_0xc14250(0x11d)+_0x388b38[_0xc14250(0xce)]);for(const _0x361a96 of _0x388b38[_0xc14250(0xe1)]){console[_0xc14250(0x111)]('\x20\x20'+(_0x361a96['serviceCode']+':')[_0xc14250(0xda)](0x11)+'\x20'+(_0x361a96['name']||a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x10e)))+'\x20('+_0x361a96[_0xc14250(0xce)]+_0xc14250(0x13b)),console[_0xc14250(0x111)]('\x20\x20'+''[_0xc14250(0xda)](0x11)+_0xc14250(0x108)+_0x361a96['source']['path']);}return console[_0xc14250(0x111)](),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0x11e)](_0xc14250(0xd9))),console[_0xc14250(0x111)](a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0x146)['repeat'](0x1e))),console['log'](_0xc14250(0xe3)+a32_0x652e18[_0xc14250(0x10b)](AUTH_MODE[_0xc14250(0x103)]+_0xc14250(0xe5))),console[_0xc14250(0x111)](_0xc14250(0xc7)+a32_0x652e18[_0xc14250(0xf4)](_0xc14250(0xec))),console[_0xc14250(0x111)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x2e00f5){const _0x9136e3=a32_0x550e;if(_0x2e00f5['status']==='ok')return a32_0x652e18[_0x9136e3(0x10b)](_0x9136e3(0x125));if(_0x2e00f5['status']===_0x9136e3(0x123))return a32_0x652e18[_0x9136e3(0xf4)]('(not\x20found)');if(_0x2e00f5[_0x9136e3(0xef)]==='empty')return a32_0x652e18[_0x9136e3(0xe8)](_0x9136e3(0x133));return a32_0x652e18[_0x9136e3(0xdb)](_0x9136e3(0xfa)+(_0x2e00f5['message']?':\x20'+_0x2e00f5[_0x9136e3(0xe6)]:''));}export const doctorDefinition={'service':a32_0x4c780a(0xfc),'command':a32_0x4c780a(0x118),'description':a32_0x4c780a(0x128),'risk':a32_0x4c780a(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x1d0f24=a33_0x5587;(function(_0x4c0d56,_0x4a991e){const _0x516dd9=a33_0x5587,_0x17b8ab=_0x4c0d56();while(!![]){try{const _0x278d51=parseInt(_0x516dd9(0x1cc))/0x1+-parseInt(_0x516dd9(0x1b8))/0x2*(-parseInt(_0x516dd9(0x1ca))/0x3)+-parseInt(_0x516dd9(0x1be))/0x4+-parseInt(_0x516dd9(0x1d1))/0x5+-parseInt(_0x516dd9(0x1d4))/0x6+parseInt(_0x516dd9(0x1c3))/0x7*(-parseInt(_0x516dd9(0x1bf))/0x8)+-parseInt(_0x516dd9(0x1da))/0x9*(-parseInt(_0x516dd9(0x1c9))/0xa);if(_0x278d51===_0x4a991e)break;else _0x17b8ab['push'](_0x17b8ab['shift']());}catch(_0x2aeed2){_0x17b8ab['push'](_0x17b8ab['shift']());}}}(a33_0x36ee,0x53ba9));function a33_0x36ee(){const _0x1783d2=['bool','Preview:\x20upload\x20','string','4380530aaVfcM','download','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','appCode','filePath','validation','3886390fiFsFU','1024869tzrbRz','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','163560FvIWLU','query-url','POST','read','body','328625iIpYcS','upload','/client/uploadFile','1063536ovJbRR','boolean','filepath','filePath\x20is\x20required.','Path\x20to\x20the\x20local\x20file\x20to\x20upload','str','27GhHcLY','trim','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2FTqDPa','long-term','File','path','\x20to\x20runtime\x20app\x20','build','1837504eSBDeH','8xqLliP'];a33_0x36ee=function(){return _0x1783d2;};return a33_0x36ee();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1d0f24(0x1dc),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1d8)},FILEPATH_FLAG={'name':a33_0x1d0f24(0x1d6),'type':a33_0x1d0f24(0x1c2),'required':!![],'description':a33_0x1d0f24(0x1c5)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0x1d0f24(0x1b9),'type':a33_0x1d0f24(0x1d5),'description':a33_0x1d0f24(0x1cb)};function requireFilePath(_0x390af7){const _0x5c8678=a33_0x1d0f24,_0x30720f=_0x390af7[_0x5c8678(0x1db)]();if(!_0x30720f)throw CliErrors[_0x5c8678(0x1c8)](_0x5c8678(0x1d7));return _0x30720f;}function a33_0x5587(_0x362752,_0x2e5cc3){_0x362752=_0x362752-0x1b8;const _0x36ee3a=a33_0x36ee();let _0x558758=_0x36ee3a[_0x362752];return _0x558758;}const fileUpload={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1d2),'description':a33_0x1d0f24(0x1dd),'risk':a33_0x1d0f24(0x1cf),'flags':[FILE_FLAG],async 'dryRun'(_0x45425a){const _0x196a40=a33_0x1d0f24,_0x5d4a2d=requireRuntimeUploadFile(_0x45425a[_0x196a40(0x1d9)](_0x196a40(0x1dc)),_0x196a40(0x1ba));return dryRun(_0x196a40(0x1ce),_0x196a40(0x1d3))[_0x196a40(0x1d0)]({'appCode':_0x45425a[_0x196a40(0x1c6)],'multipart':{'file':_0x5d4a2d}})['description'](_0x196a40(0x1c1)+_0x5d4a2d[_0x196a40(0x1bb)]+_0x196a40(0x1bc)+_0x45425a[_0x196a40(0x1c6)])[_0x196a40(0x1bd)]();},async 'execute'(_0x4ec295){const _0xbbea42=a33_0x1d0f24,_0x123db1=requireRuntimeUploadFile(_0x4ec295[_0xbbea42(0x1d9)]('file'),'File'),_0x35ec14=await uploadRuntimeFile(_0x4ec295[_0xbbea42(0x1c6)],_0x123db1[_0xbbea42(0x1bb)]);return{'ok':!![],'data':_0x35ec14,'message':_0x35ec14[_0xbbea42(0x1c7)]?'Uploaded\x20file:\x20'+_0x35ec14['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1d0f24(0x1dc),'command':a33_0x1d0f24(0x1cd),'description':a33_0x1d0f24(0x1de),'risk':a33_0x1d0f24(0x1cf),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4ff704){const _0x4caa97=a33_0x1d0f24,_0x76299e=requireFilePath(_0x4ff704[_0x4caa97(0x1d9)]('filepath')),_0x150c93=await queryRuntimeFileUrl(_0x76299e,{'download':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1c4)),'longTerm':_0x4ff704[_0x4caa97(0x1c0)](_0x4caa97(0x1b9))});return{'ok':!![],'data':_0x150c93};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a33_0x29be(_0x2e9eba,_0x383b48){_0x2e9eba=_0x2e9eba-0x117;const _0x57f1b0=a33_0x57f1();let _0x29be3b=_0x57f1b0[_0x2e9eba];return _0x29be3b;}const a33_0x8df78b=a33_0x29be;(function(_0x2e4137,_0x502f60){const _0x11d994=a33_0x29be,_0x2556e4=_0x2e4137();while(!![]){try{const _0x480597=parseInt(_0x11d994(0x11b))/0x1*(parseInt(_0x11d994(0x11e))/0x2)+-parseInt(_0x11d994(0x122))/0x3*(-parseInt(_0x11d994(0x119))/0x4)+-parseInt(_0x11d994(0x12a))/0x5*(-parseInt(_0x11d994(0x11d))/0x6)+parseInt(_0x11d994(0x141))/0x7*(-parseInt(_0x11d994(0x13f))/0x8)+parseInt(_0x11d994(0x120))/0x9*(parseInt(_0x11d994(0x13a))/0xa)+-parseInt(_0x11d994(0x12d))/0xb+-parseInt(_0x11d994(0x11f))/0xc;if(_0x480597===_0x502f60)break;else _0x2556e4['push'](_0x2556e4['shift']());}catch(_0x16a00e){_0x2556e4['push'](_0x2556e4['shift']());}}}(a33_0x57f1,0x1d003));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a33_0x8df78b(0x132),'required':!![],'description':a33_0x8df78b(0x12e)},FILEPATH_FLAG={'name':'filepath','type':a33_0x8df78b(0x132),'required':!![],'description':a33_0x8df78b(0x129)},DOWNLOAD_FLAG={'name':a33_0x8df78b(0x143),'type':a33_0x8df78b(0x127),'description':a33_0x8df78b(0x117)},LONG_TERM_FLAG={'name':a33_0x8df78b(0x13e),'type':a33_0x8df78b(0x127),'description':a33_0x8df78b(0x138)};function requireFilePath(_0x29be52){const _0x38890c=a33_0x8df78b,_0x3dd584=_0x29be52[_0x38890c(0x13c)]();if(!_0x3dd584)throw CliErrors[_0x38890c(0x128)](_0x38890c(0x136));return _0x3dd584;}function a33_0x57f1(){const _0x598394=['boolean','validation','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','199415ufFQhP','upload','str','908754AaXzBQ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','\x20to\x20runtime\x20app\x20','file','read','string','query-url','build','bool','filePath\x20is\x20required.','POST','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','65050aDqmNO','Uploaded\x20file:\x20','trim','path','long-term','24hQIeEc','filepath','269654Ycrmpy','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath','12MEluHu','appCode','2969gDQbSz','description','18abTiou','138XhGBDU','1277088EAqmtb','9YbYMPi','/client/uploadFile','92376ifYnZB','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Preview:\x20upload\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File'];a33_0x57f1=function(){return _0x598394;};return a33_0x57f1();}const fileUpload={'service':a33_0x8df78b(0x130),'command':a33_0x8df78b(0x12b),'description':a33_0x8df78b(0x142),'risk':a33_0x8df78b(0x131),'flags':[FILE_FLAG],async 'dryRun'(_0x1fef6d){const _0x41c271=a33_0x8df78b,_0x15f70a=requireRuntimeUploadFile(_0x1fef6d[_0x41c271(0x12c)](_0x41c271(0x130)),'File');return dryRun(_0x41c271(0x137),_0x41c271(0x121))['body']({'appCode':_0x1fef6d[_0x41c271(0x11a)],'multipart':{'file':_0x15f70a}})[_0x41c271(0x11c)](_0x41c271(0x124)+_0x15f70a['path']+_0x41c271(0x12f)+_0x1fef6d[_0x41c271(0x11a)])[_0x41c271(0x134)]();},async 'execute'(_0x27f147){const _0x2076ef=a33_0x8df78b,_0x554466=requireRuntimeUploadFile(_0x27f147[_0x2076ef(0x12c)]('file'),_0x2076ef(0x126)),_0x30d67c=await uploadRuntimeFile(_0x27f147['appCode'],_0x554466[_0x2076ef(0x13d)]);return{'ok':!![],'data':_0x30d67c,'message':_0x30d67c['filePath']?_0x2076ef(0x13b)+_0x30d67c[_0x2076ef(0x118)]+_0x2076ef(0x125):_0x2076ef(0x123)};}},fileQueryUrl={'service':a33_0x8df78b(0x130),'command':a33_0x8df78b(0x133),'description':a33_0x8df78b(0x139),'risk':a33_0x8df78b(0x131),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4a860b){const _0xc2dd52=a33_0x8df78b,_0x549224=requireFilePath(_0x4a860b['str'](_0xc2dd52(0x140))),_0x58d507=await queryRuntimeFileUrl(_0x549224,{'download':_0x4a860b[_0xc2dd52(0x135)](_0xc2dd52(0x143)),'longTerm':_0x4a860b[_0xc2dd52(0x135)]('long-term')});return{'ok':!![],'data':_0x58d507};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a34_0x49054f=a34_0x4f20;(function(_0x3ae171,_0x1c860d){const _0x4c6366=a34_0x4f20,_0x26589a=_0x3ae171();while(!![]){try{const _0x5b42c0=parseInt(_0x4c6366(0xac))/0x1*(parseInt(_0x4c6366(0xa3))/0x2)+-parseInt(_0x4c6366(0x9b))/0x3+parseInt(_0x4c6366(0x9f))/0x4+-parseInt(_0x4c6366(0xc4))/0x5+parseInt(_0x4c6366(0xa2))/0x6+-parseInt(_0x4c6366(0xae))/0x7+-parseInt(_0x4c6366(0xb4))/0x8;if(_0x5b42c0===_0x1c860d)break;else _0x26589a['push'](_0x26589a['shift']());}catch(_0x2c6312){_0x26589a['push'](_0x26589a['shift']());}}}(a34_0x17f5,0x1b48a));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a34_0x4f20(_0x3f090f,_0x14e54d){_0x3f090f=_0x3f090f-0x9a;const _0x17f557=a34_0x17f5();let _0x4f2097=_0x17f557[_0x3f090f];return _0x4f2097;}export const appImportFlagDefs=[{'name':a34_0x49054f(0xc2),'type':a34_0x49054f(0xa0),'description':a34_0x49054f(0xb1),'required':!![]},{'name':'appcode','type':a34_0x49054f(0xa0),'description':a34_0x49054f(0x9d)},{'name':'env','type':'string','description':a34_0x49054f(0xbe),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49054f(0xab),'type':a34_0x49054f(0xb3),'description':a34_0x49054f(0xc3)+PRODUCT_CONFIG[a34_0x49054f(0xa5)]+a34_0x49054f(0xad),'default':![]},{'name':a34_0x49054f(0xb6),'type':'boolean','description':a34_0x49054f(0xaa),'default':![]}];export async function runAppImport(_0x572d58){const _0x6ba86=a34_0x49054f,_0x36264f=_0x572d58[_0x6ba86(0xab)]?_0x6ba86(0xab):_0x6ba86(0xb8),_0x186aca=resolveWriteConfigPath(_0x36264f);await runFromImport(_0x572d58,_0x186aca);}async function runFromImport(_0x4e378e,_0x58c810){const _0xcb0335=a34_0x49054f,_0x179da1=resolveFilePath(_0x4e378e['file']);if(!existsSync(_0x179da1))throw CliErrors[_0xcb0335(0xc1)]('Source\x20file\x20not\x20found:\x20'+_0x179da1);const _0x8cae80=readSourceFile(_0x179da1),_0x232bd9=convertToRuntimeConfig(_0x8cae80);_0x4e378e[_0xcb0335(0xb9)]&&(_0x232bd9[_0xcb0335(0xb9)]=String(_0x4e378e[_0xcb0335(0xb9)]));_0x4e378e[_0xcb0335(0xb0)]&&(_0x232bd9[_0xcb0335(0xb0)]=resolveImportEnv(_0x4e378e));if(!_0x232bd9['appcode'])throw CliErrors[_0xcb0335(0xc1)](_0xcb0335(0xba),_0xcb0335(0xb5));await writeImportConfig(_0x58c810,_0x232bd9,_0x4e378e),console[_0xcb0335(0x9e)](_0xcb0335(0xaf)+_0x179da1),console[_0xcb0335(0x9e)](_0xcb0335(0xbf)+_0x58c810),console[_0xcb0335(0x9e)](_0xcb0335(0xa1)+_0x232bd9[_0xcb0335(0xb9)]);if(_0x232bd9[_0xcb0335(0xa8)])console[_0xcb0335(0x9e)](_0xcb0335(0xa4)+_0x232bd9[_0xcb0335(0xa8)]);}function convertToRuntimeConfig(_0xd67bea){const _0x2220f8=a34_0x49054f;if(_0xd67bea['apps']&&typeof _0xd67bea['apps']===_0x2220f8(0x9a))throw CliErrors['validation'](_0x2220f8(0x9c),_0x2220f8(0xc0));const _0x4bbd1f={};for(const _0x46905d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xd67bea[_0x46905d]!==undefined&&(_0x4bbd1f[_0x46905d]=_0xd67bea[_0x46905d]);}return!_0x4bbd1f[_0x2220f8(0xa6)]&&(_0x4bbd1f['riskLevel']=DEFAULT_CONFIG_VALUES[_0x2220f8(0xa6)]),_0x4bbd1f;}async function writeImportConfig(_0x5b3ccd,_0x24645f,_0x384a7b){const _0x11ba41=a34_0x49054f;let _0x10b0ed={};existsSync(_0x5b3ccd)&&!_0x384a7b[_0x11ba41(0xb6)]&&(_0x10b0ed=readConfigFile(_0x5b3ccd));for(const [_0x287495,_0x324d48]of Object[_0x11ba41(0xa9)](_0x24645f)){_0x324d48!==undefined&&(_0x10b0ed[_0x287495]=_0x324d48);}if(_0x10b0ed[_0x11ba41(0xa7)])delete _0x10b0ed['app'];writeConfigFile(_0x5b3ccd,_0x10b0ed);}function resolveFilePath(_0x207c99){return isAbsolute(_0x207c99)?_0x207c99:resolve(process['cwd'](),_0x207c99);}function readSourceFile(_0x2f362c){const _0xb6ef79=a34_0x49054f;try{const _0x532964=readFileSync(_0x2f362c,{'encoding':'utf8'});return JSON[_0xb6ef79(0xbd)](_0x532964);}catch(_0x5188ee){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x5188ee[_0xb6ef79(0xbb)]);}}function resolveImportEnv(_0x388f78){const _0x52bcd5=a34_0x49054f,_0x1590d2=_0x388f78[_0x52bcd5(0xb0)];if(_0x1590d2===undefined||_0x1590d2==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x52bcd5(0xb2)](_0x1590d2))throw CliErrors[_0x52bcd5(0xc1)](_0x52bcd5(0xb7)+_0x1590d2+_0x52bcd5(0xbc)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x1590d2;}function a34_0x17f5(){const _0x5f0113=['12752hQchFZ','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','yes','Invalid\x20env\x20\x22','project','appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','message','\x22.\x20Allowed:\x20','parse','Override\x20imported\x20default\x20env','\x20\x20config:\x20\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','validation','file','Write\x20to\x20global\x20(~/','676235qmMsGF','object','50796oujgWQ','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Override\x20imported\x20default\x20appcode','log','80244xOKOLI','string','\x20\x20appcode:\x20','899466WebHNb','452sMBLPO','\x20\x20default:\x20','newConfigFileName','riskLevel','app','defaultApp','entries','Skip\x20confirmation\x20when\x20overwriting','global','683ZTRKkV',')\x20instead\x20of\x20project','411621zgiFue','Imported\x20from\x20','env','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','includes','boolean'];a34_0x17f5=function(){return _0x5f0113;};return a34_0x17f5();}
1
+ const a34_0x57d871=a34_0x40da;(function(_0x806bc1,_0xb9d915){const _0x274b8d=a34_0x40da,_0x6d6492=_0x806bc1();while(!![]){try{const _0xbd65ae=-parseInt(_0x274b8d(0x85))/0x1+parseInt(_0x274b8d(0x8c))/0x2+parseInt(_0x274b8d(0x81))/0x3+parseInt(_0x274b8d(0xa1))/0x4*(parseInt(_0x274b8d(0x94))/0x5)+parseInt(_0x274b8d(0x98))/0x6*(-parseInt(_0x274b8d(0x7d))/0x7)+-parseInt(_0x274b8d(0x83))/0x8*(parseInt(_0x274b8d(0x87))/0x9)+-parseInt(_0x274b8d(0x92))/0xa*(-parseInt(_0x274b8d(0x7a))/0xb);if(_0xbd65ae===_0xb9d915)break;else _0x6d6492['push'](_0x6d6492['shift']());}catch(_0xed66d8){_0x6d6492['push'](_0x6d6492['shift']());}}}(a34_0x3038,0xf2b0e));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x57d871(0x9a),'type':'string','description':a34_0x57d871(0x8e),'required':!![]},{'name':'appcode','type':a34_0x57d871(0x7b),'description':a34_0x57d871(0x8b)},{'name':a34_0x57d871(0x97),'type':a34_0x57d871(0x7b),'description':a34_0x57d871(0x7c),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x57d871(0x95),'type':a34_0x57d871(0x89),'description':a34_0x57d871(0x80)+PRODUCT_CONFIG['newConfigFileName']+a34_0x57d871(0x91),'default':![]},{'name':a34_0x57d871(0x96),'type':a34_0x57d871(0x89),'description':a34_0x57d871(0x9e),'default':![]}];export async function runAppImport(_0x453c88){const _0x10296e=a34_0x57d871,_0x13fa47=_0x453c88['global']?_0x10296e(0x95):_0x10296e(0x84),_0x3073d1=resolveWriteConfigPath(_0x13fa47);await runFromImport(_0x453c88,_0x3073d1);}async function runFromImport(_0x8247b5,_0x13ff1f){const _0x5da791=a34_0x57d871,_0x5d58b8=resolveFilePath(_0x8247b5[_0x5da791(0x9a)]);if(!existsSync(_0x5d58b8))throw CliErrors[_0x5da791(0x9b)](_0x5da791(0x93)+_0x5d58b8);const _0x2f580a=readSourceFile(_0x5d58b8),_0x39d518=convertToRuntimeConfig(_0x2f580a);_0x8247b5[_0x5da791(0x90)]&&(_0x39d518[_0x5da791(0x90)]=String(_0x8247b5[_0x5da791(0x90)]));_0x8247b5[_0x5da791(0x97)]&&(_0x39d518[_0x5da791(0x97)]=resolveImportEnv(_0x8247b5));if(!_0x39d518['appcode'])throw CliErrors[_0x5da791(0x9b)](_0x5da791(0x9d),_0x5da791(0x79));await writeImportConfig(_0x13ff1f,_0x39d518,_0x8247b5),console[_0x5da791(0x7f)](_0x5da791(0x9c)+_0x5d58b8),console['log']('\x20\x20config:\x20\x20'+_0x13ff1f),console['log'](_0x5da791(0x78)+_0x39d518['appcode']);if(_0x39d518[_0x5da791(0x82)])console[_0x5da791(0x7f)]('\x20\x20default:\x20'+_0x39d518['defaultApp']);}function a34_0x3038(){const _0x1a74a7=['1217648SzYTTm','object','6105033BJdCYG','entries','boolean','\x22.\x20Allowed:\x20','Override\x20imported\x20default\x20appcode','177220fgkGqg','riskLevel','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','parse','appcode',')\x20instead\x20of\x20project','3350KzcvfB','Source\x20file\x20not\x20found:\x20','1198095PLKWoM','global','yes','env','26538UjVTxv','apps','file','validation','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Skip\x20confirmation\x20when\x20overwriting','message','utf8','32fCasSm','\x20\x20appcode:\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','56738qrflnO','string','Override\x20imported\x20default\x20env','1841PlrvVV','app','log','Write\x20to\x20global\x20(~/','2994423aMevdO','defaultApp','16pTWbnP','project'];a34_0x3038=function(){return _0x1a74a7;};return a34_0x3038();}function convertToRuntimeConfig(_0x517e85){const _0x164787=a34_0x57d871;if(_0x517e85[_0x164787(0x99)]&&typeof _0x517e85[_0x164787(0x99)]===_0x164787(0x86))throw CliErrors[_0x164787(0x9b)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x50ba43={};for(const _0x9be86 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x517e85[_0x9be86]!==undefined&&(_0x50ba43[_0x9be86]=_0x517e85[_0x9be86]);}return!_0x50ba43[_0x164787(0x8d)]&&(_0x50ba43[_0x164787(0x8d)]=DEFAULT_CONFIG_VALUES[_0x164787(0x8d)]),_0x50ba43;}async function writeImportConfig(_0x47ca83,_0x4dd69c,_0x1fcc58){const _0x27e01f=a34_0x57d871;let _0xf6ca3={};existsSync(_0x47ca83)&&!_0x1fcc58[_0x27e01f(0x96)]&&(_0xf6ca3=readConfigFile(_0x47ca83));for(const [_0x418135,_0x34a09a]of Object[_0x27e01f(0x88)](_0x4dd69c)){_0x34a09a!==undefined&&(_0xf6ca3[_0x418135]=_0x34a09a);}if(_0xf6ca3['app'])delete _0xf6ca3[_0x27e01f(0x7e)];writeConfigFile(_0x47ca83,_0xf6ca3);}function resolveFilePath(_0x42dded){return isAbsolute(_0x42dded)?_0x42dded:resolve(process['cwd'](),_0x42dded);}function readSourceFile(_0x179d45){const _0x5a89fd=a34_0x57d871;try{const _0xce1825=readFileSync(_0x179d45,{'encoding':_0x5a89fd(0xa0)});return JSON[_0x5a89fd(0x8f)](_0xce1825);}catch(_0x2c6b25){throw CliErrors['validation']('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x2c6b25[_0x5a89fd(0x9f)]);}}function a34_0x40da(_0x295b79,_0x3d4f3e){_0x295b79=_0x295b79-0x78;const _0x30389d=a34_0x3038();let _0x40da12=_0x30389d[_0x295b79];return _0x40da12;}function resolveImportEnv(_0x498d40){const _0x2e6603=a34_0x57d871,_0x1baa94=_0x498d40[_0x2e6603(0x97)];if(_0x1baa94===undefined||_0x1baa94==='')return DEFAULT_CONFIG_VALUES[_0x2e6603(0x97)];if(!RUNTIME_ENV_VALUES['includes'](_0x1baa94))throw CliErrors[_0x2e6603(0x9b)]('Invalid\x20env\x20\x22'+_0x1baa94+_0x2e6603(0x8a)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x1baa94;}
@@ -1 +1 @@
1
- const a35_0x2faa84=a35_0xca0b;(function(_0x410222,_0x4192c1){const _0x37a798=a35_0xca0b,_0x4222a1=_0x410222();while(!![]){try{const _0xd12a3d=parseInt(_0x37a798(0xad))/0x1*(parseInt(_0x37a798(0xd8))/0x2)+parseInt(_0x37a798(0xc0))/0x3+parseInt(_0x37a798(0xb1))/0x4+parseInt(_0x37a798(0xbf))/0x5+-parseInt(_0x37a798(0xe8))/0x6+-parseInt(_0x37a798(0xdc))/0x7*(parseInt(_0x37a798(0xb0))/0x8)+-parseInt(_0x37a798(0xb8))/0x9;if(_0xd12a3d===_0x4192c1)break;else _0x4222a1['push'](_0x4222a1['shift']());}catch(_0xf713e7){_0x4222a1['push'](_0x4222a1['shift']());}}}(a35_0xa7c6,0xa5b7e));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x2faa84(0xae),'type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xec)},FILE_FLAG={'name':'file','type':a35_0x2faa84(0xd4),'required':!![],'description':a35_0x2faa84(0xb2)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x2faa84(0xb9)},TOPK_FLAG={'name':a35_0x2faa84(0xde),'type':'number','description':a35_0x2faa84(0xaf)};function readKnowledgeFile(_0x20bcd2){const _0x15f99e=a35_0x2faa84;if(!_0x20bcd2)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x20bcd2))throw CliErrors[_0x15f99e(0xd5)](_0x15f99e(0xb4)+_0x20bcd2);if(!statSync(_0x20bcd2)[_0x15f99e(0xc3)]())throw CliErrors[_0x15f99e(0xd5)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x20bcd2);return readFileSync(_0x20bcd2,'utf8');}function summarizePersonalItem(_0x465624){const _0x121a63=a35_0x2faa84;return{'id':_0x465624['id'],'title':_0x465624[_0x121a63(0xae)],'version':_0x465624[_0x121a63(0xd3)],'ragStatus':_0x465624[_0x121a63(0xd0)],'ragErrorMessage':_0x465624[_0x121a63(0xba)],'updateTime':_0x465624[_0x121a63(0xd6)]};}function a35_0xca0b(_0x2e561b,_0x3ec038){_0x2e561b=_0x2e561b-0xac;const _0xa7c68e=a35_0xa7c6();let _0xca0b03=_0xa7c68e[_0x2e561b];return _0xca0b03;}function detailPersonalItem(_0x29963a){const _0x2095bc=a35_0x2faa84;return{'id':_0x29963a['id'],'appCode':_0x29963a['appCode'],'scope':_0x29963a[_0x2095bc(0xea)],'userId':_0x29963a[_0x2095bc(0xce)],'title':_0x29963a[_0x2095bc(0xae)],'content':_0x29963a[_0x2095bc(0xc1)]??'','version':_0x29963a[_0x2095bc(0xd3)],'ragStatus':_0x29963a['ragStatus'],'ragErrorMessage':_0x29963a['ragErrorMessage'],'createTime':_0x29963a['createTime'],'updateTime':_0x29963a[_0x2095bc(0xd6)]};}function readTopK(_0x2b3454){const _0x25c834=a35_0x2faa84,_0x3b2833=_0x2b3454[_0x25c834(0xcf)](_0x25c834(0xde));if(_0x3b2833===undefined||_0x3b2833===null||_0x3b2833==='')return undefined;const _0x26585f=_0x2b3454[_0x25c834(0xd1)](_0x25c834(0xde));if(!Number[_0x25c834(0xe1)](_0x26585f)||_0x26585f<0x1||_0x26585f>0x32)throw CliErrors[_0x25c834(0xd5)](_0x25c834(0xc9));return _0x26585f;}function a35_0xa7c6(){const _0x14b68e=['/client/knowledge-base/personal/','17269758oFGpbd','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','ragErrorMessage','str','Created\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','117140ruLZsJ','1932441GlRpFg','content','/client/knowledge-base/personal/create','isFile','Personal\x20knowledge-base\x20entry\x20ID','body','list','kb-service-url','search','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','query','Override\x20the\x20existing\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','description','userId','flag','ragStatus','num','update','version','string','validation','updateTime','appCode','2lzZSHm','read','trim','build','21IJyyxn','/update','topk','bool','signal','isSafeInteger','write','Updated\x20KB\x20entry\x20','length','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','detail','1274142sdFjXY','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','scope','POST','Personal\x20knowledge-base\x20entry\x20title','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','file','1307996yhcVCw','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','597272xEXSYC','4233628WTuYTX','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','File\x20not\x20found:\x20','verbose','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.'];a35_0xa7c6=function(){return _0x14b68e;};return a35_0xa7c6();}const kbList={'service':'kb','command':a35_0x2faa84(0xc6),'description':a35_0x2faa84(0xe6),'risk':a35_0x2faa84(0xd9),'flags':[VERBOSE_FLAG],async 'execute'(_0x4d2190){const _0x54b066=a35_0x2faa84,_0x38b3c1=await listPersonalKnowledgeBaseItems(_0x4d2190[_0x54b066(0xd7)]);if(_0x4d2190[_0x54b066(0xdf)](_0x54b066(0xb5)))return{'ok':!![],'data':{'total':_0x38b3c1['length'],'items':_0x38b3c1}};return{'ok':!![],'data':{'total':_0x38b3c1[_0x54b066(0xe4)],'items':_0x38b3c1['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x2faa84(0xe7),'description':a35_0x2faa84(0xcc),'risk':a35_0x2faa84(0xd9),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x4f8b99){const _0x564594=a35_0x2faa84,_0x5866a1=await getPersonalKnowledgeBaseItem(_0x4f8b99[_0x564594(0xd1)]('id'),_0x4f8b99[_0x564594(0xd7)]);return{'ok':!![],'data':detailPersonalItem(_0x5866a1)};}},kbCreate={'service':'kb','command':'create','description':a35_0x2faa84(0xbe),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4b17ae){const _0x1a2632=a35_0x2faa84,_0x27ebab=_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xae)),_0x3eea5b=readKnowledgeFile(_0x4b17ae[_0x1a2632(0xbb)](_0x1a2632(0xac))),_0x133e43=await createPersonalKnowledgeBaseItem(_0x4b17ae[_0x1a2632(0xd7)],{'title':_0x27ebab,'content':_0x3eea5b});return{'ok':!![],'data':summarizePersonalItem(_0x133e43),'message':_0x1a2632(0xbc)+_0x133e43['id']+'\x20('+_0x133e43[_0x1a2632(0xae)]+')'};},async 'dryRun'(_0x4abfe5){const _0x4c596d=a35_0x2faa84,_0x3dffc5=_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xae)),_0x3721d8=readKnowledgeFile(_0x4abfe5[_0x4c596d(0xbb)](_0x4c596d(0xac)));return dryRun(_0x4c596d(0xeb),_0x4c596d(0xc2))[_0x4c596d(0xc5)]({'appCode':_0x4abfe5[_0x4c596d(0xd7)],'title':_0x3dffc5,'content':_0x3721d8})[_0x4c596d(0xcd)](_0x4c596d(0xe9)+_0x3dffc5+'\x22')[_0x4c596d(0xdb)]();}},kbUpdate={'service':'kb','command':a35_0x2faa84(0xd2),'description':a35_0x2faa84(0xe5),'risk':a35_0x2faa84(0xe2),'confirmationDescription':a35_0x2faa84(0xee),'flags':[{...ID_FLAG,'description':a35_0x2faa84(0xc4)},{...TITLE_FLAG,'required':![],'description':a35_0x2faa84(0xcb)},FILE_FLAG],async 'execute'(_0x41f649){const _0x43b404=a35_0x2faa84,_0x37b8b2=_0x41f649['num']('id'),_0x46bd1f=readKnowledgeFile(_0x41f649[_0x43b404(0xbb)](_0x43b404(0xac))),_0x261613=_0x41f649[_0x43b404(0xbb)](_0x43b404(0xae))||(await getPersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)]))['title'],_0x588855=await updatePersonalKnowledgeBaseItem(_0x37b8b2,_0x41f649[_0x43b404(0xd7)],{'title':_0x261613,'content':_0x46bd1f});return{'ok':!![],'data':summarizePersonalItem(_0x588855),'message':_0x43b404(0xe3)+_0x588855['id']+'\x20('+_0x588855[_0x43b404(0xae)]+')'};},async 'dryRun'(_0x4b3e99){const _0xea1d11=a35_0x2faa84,_0xdc59d6=_0x4b3e99['num']('id'),_0x5260ba=readKnowledgeFile(_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xac))),_0xcd9c90=_0x4b3e99[_0xea1d11(0xbb)](_0xea1d11(0xae))||(await getPersonalKnowledgeBaseItem(_0xdc59d6,_0x4b3e99[_0xea1d11(0xd7)]))[_0xea1d11(0xae)];return dryRun(_0xea1d11(0xeb),_0xea1d11(0xb7)+_0xdc59d6+_0xea1d11(0xdd))[_0xea1d11(0xc5)]({'appCode':_0x4b3e99['appCode'],'title':_0xcd9c90,'content':_0x5260ba})[_0xea1d11(0xcd)](_0xea1d11(0xb3)+_0xdc59d6)[_0xea1d11(0xdb)]();}};function readSearchServiceUrl(_0x1c8ca1){const _0xe06e70=a35_0x2faa84;if(_0x1c8ca1['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1c8ca1[_0xe06e70(0xbb)](_0xe06e70(0xc7)));const _0x5a0720=getKbServiceDomain();if(!_0x5a0720)throw CliErrors[_0xe06e70(0xd5)]('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.',_0xe06e70(0xb6));return normalizeKbServiceOrigin(_0x5a0720);}const kbSearch={'service':'kb','command':a35_0x2faa84(0xc8),'description':a35_0x2faa84(0xed),'risk':a35_0x2faa84(0xd9),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x2faa84(0xc7),'type':a35_0x2faa84(0xd4),'required':![],'description':a35_0x2faa84(0xbd)}],async 'validate'(_0x1607b0){const _0xf46a1f=a35_0x2faa84;if(!_0x1607b0[_0xf46a1f(0xbb)](_0xf46a1f(0xca))[_0xf46a1f(0xda)]())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x1607b0),readSearchServiceUrl(_0x1607b0);},async 'execute'(_0x38c71d){const _0x273600=a35_0x2faa84,_0x55b5bd=_0x38c71d[_0x273600(0xbb)](_0x273600(0xca))[_0x273600(0xda)](),_0xc8a83a=readTopK(_0x38c71d),_0x179d5e=readSearchServiceUrl(_0x38c71d),_0x45a347={'appCode':_0x38c71d[_0x273600(0xd7)],'accessKey':_0x38c71d['accessKey']??'','query':_0x55b5bd,..._0xc8a83a!==undefined?{'topK':_0xc8a83a}:{},'signal':_0x38c71d[_0x273600(0xe0)]},_0x3bf317=await searchDirectKnowledge({..._0x45a347,'serviceUrl':_0x179d5e});return{'ok':!![],'data':_0x3bf317};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a35_0x26e6e7=a35_0xef24;(function(_0x84807,_0x195481){const _0x134271=a35_0xef24,_0x3cc3c0=_0x84807();while(!![]){try{const _0x7f06ce=-parseInt(_0x134271(0x21e))/0x1+parseInt(_0x134271(0x212))/0x2+-parseInt(_0x134271(0x1f4))/0x3+-parseInt(_0x134271(0x1fa))/0x4+-parseInt(_0x134271(0x20e))/0x5*(parseInt(_0x134271(0x207))/0x6)+parseInt(_0x134271(0x208))/0x7*(-parseInt(_0x134271(0x1f8))/0x8)+-parseInt(_0x134271(0x227))/0x9*(-parseInt(_0x134271(0x214))/0xa);if(_0x7f06ce===_0x195481)break;else _0x3cc3c0['push'](_0x3cc3c0['shift']());}catch(_0x30ad30){_0x3cc3c0['push'](_0x3cc3c0['shift']());}}}(a35_0x3eda,0xbcd05));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';function a35_0xef24(_0x1db970,_0x474d8a){_0x1db970=_0x1db970-0x1ef;const _0x3edabf=a35_0x3eda();let _0xef2467=_0x3edabf[_0x1db970];return _0xef2467;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x26e6e7(0x22a),'type':'string','required':!![],'description':a35_0x26e6e7(0x229)},FILE_FLAG={'name':'file','type':a35_0x26e6e7(0x1fe),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a35_0x26e6e7(0x203),'type':'string','required':!![],'description':a35_0x26e6e7(0x206)},TOPK_FLAG={'name':a35_0x26e6e7(0x224),'type':'number','description':a35_0x26e6e7(0x201)};function a35_0x3eda(){const _0x479c3a=['signal','File\x20not\x20found:\x20','validation','/update','flag','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','POST','2695875CiCRYY','Updated\x20KB\x20entry\x20','str','File\x20is\x20not\x20a\x20regular\x20file:\x20','784pqAMaX','search','2488604kfeJhP','read','body','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','string','file','appCode','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','query','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','create','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','591258GkuZDQ','85771GQuLlO','description','Personal\x20knowledge-base\x20entry\x20ID','num','updateTime','accessKey','75YagKKy','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Created\x20KB\x20entry\x20','Override\x20the\x20existing\x20entry\x20title','2708548vPCfLo','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','10wlEoDG','scope','update','version','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','list','/client/knowledge-base/personal/create','File\x20path\x20is\x20required.','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','userId','1513417FDSSXW','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Search\x20query\x20is\x20required.','trim','isFile','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','topk','write','createTime','46190151zPQpCI','/client/knowledge-base/personal/','Personal\x20knowledge-base\x20entry\x20title','title','ragStatus','kb-service-url','verbose','length','build'];a35_0x3eda=function(){return _0x479c3a;};return a35_0x3eda();}function readKnowledgeFile(_0x181224){const _0x362c85=a35_0x26e6e7;if(!_0x181224)throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x21b));if(!existsSync(_0x181224))throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x231)+_0x181224);if(!statSync(_0x181224)[_0x362c85(0x222)]())throw CliErrors[_0x362c85(0x1ef)](_0x362c85(0x1f7)+_0x181224);return readFileSync(_0x181224,'utf8');}function summarizePersonalItem(_0x377e22){const _0x244247=a35_0x26e6e7;return{'id':_0x377e22['id'],'title':_0x377e22[_0x244247(0x22a)],'version':_0x377e22[_0x244247(0x217)],'ragStatus':_0x377e22[_0x244247(0x22b)],'ragErrorMessage':_0x377e22['ragErrorMessage'],'updateTime':_0x377e22[_0x244247(0x20c)]};}function detailPersonalItem(_0x14ba73){const _0x295373=a35_0x26e6e7;return{'id':_0x14ba73['id'],'appCode':_0x14ba73['appCode'],'scope':_0x14ba73[_0x295373(0x215)],'userId':_0x14ba73[_0x295373(0x21d)],'title':_0x14ba73[_0x295373(0x22a)],'content':_0x14ba73['content']??'','version':_0x14ba73[_0x295373(0x217)],'ragStatus':_0x14ba73[_0x295373(0x22b)],'ragErrorMessage':_0x14ba73['ragErrorMessage'],'createTime':_0x14ba73[_0x295373(0x226)],'updateTime':_0x14ba73['updateTime']};}function readTopK(_0x2c1ce0){const _0x2a941e=a35_0x26e6e7,_0x2a758b=_0x2c1ce0[_0x2a941e(0x1f1)](_0x2a941e(0x224));if(_0x2a758b===undefined||_0x2a758b===null||_0x2a758b==='')return undefined;const _0x24e302=_0x2c1ce0['num'](_0x2a941e(0x224));if(!Number['isSafeInteger'](_0x24e302)||_0x24e302<0x1||_0x24e302>0x32)throw CliErrors[_0x2a941e(0x1ef)](_0x2a941e(0x213));return _0x24e302;}const kbList={'service':'kb','command':a35_0x26e6e7(0x219),'description':a35_0x26e6e7(0x20f),'risk':a35_0x26e6e7(0x1fb),'flags':[VERBOSE_FLAG],async 'execute'(_0x29b675){const _0x3b11f4=a35_0x26e6e7,_0x63de8b=await listPersonalKnowledgeBaseItems(_0x29b675[_0x3b11f4(0x200)]);if(_0x29b675['bool'](_0x3b11f4(0x22d)))return{'ok':!![],'data':{'total':_0x63de8b[_0x3b11f4(0x22e)],'items':_0x63de8b}};return{'ok':!![],'data':{'total':_0x63de8b[_0x3b11f4(0x22e)],'items':_0x63de8b['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a35_0x26e6e7(0x202),'risk':'read','flags':[{...ID_FLAG,'description':a35_0x26e6e7(0x20a)}],async 'execute'(_0x3bf98f){const _0x26c55b=a35_0x26e6e7,_0x130e57=await getPersonalKnowledgeBaseItem(_0x3bf98f[_0x26c55b(0x20b)]('id'),_0x3bf98f[_0x26c55b(0x200)]);return{'ok':!![],'data':detailPersonalItem(_0x130e57)};}},kbCreate={'service':'kb','command':a35_0x26e6e7(0x205),'description':a35_0x26e6e7(0x21f),'risk':a35_0x26e6e7(0x225),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x591e60){const _0x59bf32=a35_0x26e6e7,_0x2a05e7=_0x591e60['str'](_0x59bf32(0x22a)),_0x310903=readKnowledgeFile(_0x591e60[_0x59bf32(0x1f6)](_0x59bf32(0x1ff))),_0xd2ab0=await createPersonalKnowledgeBaseItem(_0x591e60[_0x59bf32(0x200)],{'title':_0x2a05e7,'content':_0x310903});return{'ok':!![],'data':summarizePersonalItem(_0xd2ab0),'message':_0x59bf32(0x210)+_0xd2ab0['id']+'\x20('+_0xd2ab0[_0x59bf32(0x22a)]+')'};},async 'dryRun'(_0xd59cea){const _0x312495=a35_0x26e6e7,_0x3ce749=_0xd59cea[_0x312495(0x1f6)](_0x312495(0x22a)),_0x271869=readKnowledgeFile(_0xd59cea[_0x312495(0x1f6)]('file'));return dryRun(_0x312495(0x1f3),_0x312495(0x21a))['body']({'appCode':_0xd59cea[_0x312495(0x200)],'title':_0x3ce749,'content':_0x271869})[_0x312495(0x209)](_0x312495(0x204)+_0x3ce749+'\x22')[_0x312495(0x22f)]();}},kbUpdate={'service':'kb','command':a35_0x26e6e7(0x216),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x26e6e7(0x225),'confirmationDescription':a35_0x26e6e7(0x1fd),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a35_0x26e6e7(0x211)},FILE_FLAG],async 'execute'(_0x283858){const _0x536308=a35_0x26e6e7,_0x1f9aff=_0x283858[_0x536308(0x20b)]('id'),_0x27e2=readKnowledgeFile(_0x283858[_0x536308(0x1f6)]('file')),_0x4a531b=_0x283858['str']('title')||(await getPersonalKnowledgeBaseItem(_0x1f9aff,_0x283858['appCode']))[_0x536308(0x22a)],_0x1f1c50=await updatePersonalKnowledgeBaseItem(_0x1f9aff,_0x283858[_0x536308(0x200)],{'title':_0x4a531b,'content':_0x27e2});return{'ok':!![],'data':summarizePersonalItem(_0x1f1c50),'message':_0x536308(0x1f5)+_0x1f1c50['id']+'\x20('+_0x1f1c50['title']+')'};},async 'dryRun'(_0x28a2e3){const _0xb4b2ca=a35_0x26e6e7,_0x569dfd=_0x28a2e3[_0xb4b2ca(0x20b)]('id'),_0x2a51ea=readKnowledgeFile(_0x28a2e3[_0xb4b2ca(0x1f6)](_0xb4b2ca(0x1ff))),_0x424c94=_0x28a2e3[_0xb4b2ca(0x1f6)](_0xb4b2ca(0x22a))||(await getPersonalKnowledgeBaseItem(_0x569dfd,_0x28a2e3['appCode']))[_0xb4b2ca(0x22a)];return dryRun(_0xb4b2ca(0x1f3),_0xb4b2ca(0x228)+_0x569dfd+_0xb4b2ca(0x1f0))[_0xb4b2ca(0x1fc)]({'appCode':_0x28a2e3['appCode'],'title':_0x424c94,'content':_0x2a51ea})[_0xb4b2ca(0x209)](_0xb4b2ca(0x21c)+_0x569dfd)['build']();}};function readSearchServiceUrl(_0x70962e){const _0x15c56a=a35_0x26e6e7;if(_0x70962e['flag'](_0x15c56a(0x22c))!==undefined)return normalizeKbServiceOrigin(_0x70962e[_0x15c56a(0x1f6)](_0x15c56a(0x22c)));const _0x1ada91=getKbServiceDomain();if(!_0x1ada91)throw CliErrors[_0x15c56a(0x1ef)](_0x15c56a(0x1f2),_0x15c56a(0x218));return normalizeKbServiceOrigin(_0x1ada91);}const kbSearch={'service':'kb','command':a35_0x26e6e7(0x1f9),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a35_0x26e6e7(0x1fb),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x26e6e7(0x22c),'type':'string','required':![],'description':a35_0x26e6e7(0x223)}],async 'validate'(_0x369427){const _0x445f84=a35_0x26e6e7;if(!_0x369427['str'](_0x445f84(0x203))['trim']())throw CliErrors[_0x445f84(0x1ef)](_0x445f84(0x220));readTopK(_0x369427),readSearchServiceUrl(_0x369427);},async 'execute'(_0x3d5450){const _0x5db292=a35_0x26e6e7,_0x505aab=_0x3d5450[_0x5db292(0x1f6)]('query')[_0x5db292(0x221)](),_0x362675=readTopK(_0x3d5450),_0x4ebe12=readSearchServiceUrl(_0x3d5450),_0x290e6a={'appCode':_0x3d5450['appCode'],'accessKey':_0x3d5450[_0x5db292(0x20d)]??'','query':_0x505aab,..._0x362675!==undefined?{'topK':_0x362675}:{},'signal':_0x3d5450[_0x5db292(0x230)]},_0x46b730=await searchDirectKnowledge({..._0x290e6a,'serviceUrl':_0x4ebe12});return{'ok':!![],'data':_0x46b730};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a36_0x180ad6=a36_0x22ee;(function(_0x12c9ff,_0x32716d){const _0x579f0e=a36_0x22ee,_0x296269=_0x12c9ff();while(!![]){try{const _0x38c833=parseInt(_0x579f0e(0x1cc))/0x1*(-parseInt(_0x579f0e(0x1e5))/0x2)+parseInt(_0x579f0e(0x1d5))/0x3+parseInt(_0x579f0e(0x1cd))/0x4+parseInt(_0x579f0e(0x1ea))/0x5+parseInt(_0x579f0e(0x1d6))/0x6*(parseInt(_0x579f0e(0x1e8))/0x7)+-parseInt(_0x579f0e(0x1d8))/0x8+parseInt(_0x579f0e(0x1cb))/0x9*(-parseInt(_0x579f0e(0x1d0))/0xa);if(_0x38c833===_0x32716d)break;else _0x296269['push'](_0x296269['shift']());}catch(_0x218db0){_0x296269['push'](_0x296269['shift']());}}}(a36_0x3d0d,0x826ce));import{logger}from'../../utils/logger.js';function a36_0x22ee(_0x24d94e,_0xfe3c3f){_0x24d94e=_0x24d94e-0x1ca;const _0x3d0d3c=a36_0x3d0d();let _0x22eed6=_0x3d0d3c[_0x24d94e];return _0x22eed6;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x3d0d(){const _0x43e4a8=['254032WQQmxN','1722944CwVrIh','keys','toLocaleString','20ShrTmx','success','*\x20No\x20logs\x20found','\x20\x20\x20Time:\x20','\x20logs:\x0a','721944rqBOsL','817062GGapJR','level','2458080VGTaIK','readLogs','duration','message','stringify','log','details','show','warn','\x20\x20\x20Duration:\x20','length','en-US','View\x20command\x20history\x20logs','4kLroyR','timestamp','forEach','49oElckW','logs','4261335QMSASf','\x20\x20\x20Details:\x20','5073048INyXWT'];a36_0x3d0d=function(){return _0x43e4a8;};return a36_0x3d0d();}function printLogs(_0x2a70ce){const _0x1a6272=a36_0x22ee;if(_0x2a70ce[_0x1a6272(0x1e2)]===0x0){console['log'](_0x1a6272(0x1d2));return;}console[_0x1a6272(0x1dd)]('*\x20'+CLI_DISPLAY_NAME+_0x1a6272(0x1d4)),_0x2a70ce[_0x1a6272(0x1e7)]((_0x4d5e4a,_0x302c5c)=>{const _0x3d90d1=_0x1a6272,_0x29ee05=new Date(_0x4d5e4a[_0x3d90d1(0x1e6)])[_0x3d90d1(0x1cf)](_0x3d90d1(0x1e3)),_0x179a29=_0x4d5e4a['level']===_0x3d90d1(0x1d1)?'√':_0x4d5e4a[_0x3d90d1(0x1d7)]==='error'?'×':_0x4d5e4a[_0x3d90d1(0x1d7)]===_0x3d90d1(0x1e0)?'!':'i';console['log'](_0x302c5c+0x1+'.\x20'+_0x179a29+'\x20['+_0x4d5e4a['command']+']\x20'+_0x4d5e4a[_0x3d90d1(0x1db)]),console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1d3)+_0x29ee05),_0x4d5e4a[_0x3d90d1(0x1da)]&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1e1)+_0x4d5e4a[_0x3d90d1(0x1da)]+'ms'),_0x4d5e4a[_0x3d90d1(0x1de)]&&Object[_0x3d90d1(0x1ce)](_0x4d5e4a['details'])[_0x3d90d1(0x1e2)]>0x0&&console[_0x3d90d1(0x1dd)](_0x3d90d1(0x1ca)+JSON[_0x3d90d1(0x1dc)](_0x4d5e4a[_0x3d90d1(0x1de)],null,0x2)),console[_0x3d90d1(0x1dd)]('');});}export const logsDefinitions=[{'service':a36_0x180ad6(0x1e9),'command':a36_0x180ad6(0x1df),'description':a36_0x180ad6(0x1e4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24220d){const _0x1eaa8c=a36_0x180ad6;return printLogs(logger[_0x1eaa8c(0x1d9)]()),{'ok':!![]};}}];
1
+ const a36_0x5cff6e=a36_0xbb9f;(function(_0x1dcf2b,_0x476d88){const _0x4fe7a5=a36_0xbb9f,_0x97c73b=_0x1dcf2b();while(!![]){try{const _0x4327ff=-parseInt(_0x4fe7a5(0x103))/0x1*(-parseInt(_0x4fe7a5(0x101))/0x2)+-parseInt(_0x4fe7a5(0x113))/0x3+parseInt(_0x4fe7a5(0x114))/0x4+parseInt(_0x4fe7a5(0x10d))/0x5+-parseInt(_0x4fe7a5(0x10e))/0x6*(parseInt(_0x4fe7a5(0x11b))/0x7)+-parseInt(_0x4fe7a5(0xff))/0x8+parseInt(_0x4fe7a5(0x10f))/0x9*(parseInt(_0x4fe7a5(0x108))/0xa);if(_0x4327ff===_0x476d88)break;else _0x97c73b['push'](_0x97c73b['shift']());}catch(_0x1af85f){_0x97c73b['push'](_0x97c73b['shift']());}}}(a36_0x1130,0x8d1be));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x1130(){const _0x8bb366=['3105544GZEDKH','warn','134umScwi','en-US','6449YYsLPv','log','\x20logs:\x0a','forEach','length','17010vWaSDp','duration','message','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','2061070NPXlfj','9438PRvitm','6165tjdWrm','\x20\x20\x20Duration:\x20','success','toLocaleString','453027dKVMRm','187132waZdVD','show','logs','details','readLogs','error','keys','4179zpigzB'];a36_0x1130=function(){return _0x8bb366;};return a36_0x1130();}function printLogs(_0x9dfd71){const _0x472f88=a36_0xbb9f;if(_0x9dfd71[_0x472f88(0x107)]===0x0){console[_0x472f88(0x104)](_0x472f88(0x10c));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x472f88(0x105)),_0x9dfd71[_0x472f88(0x106)]((_0x102e9b,_0x17a908)=>{const _0x1c6031=_0x472f88,_0x369e2e=new Date(_0x102e9b['timestamp'])[_0x1c6031(0x112)](_0x1c6031(0x102)),_0x1aae1f=_0x102e9b['level']===_0x1c6031(0x111)?'√':_0x102e9b['level']===_0x1c6031(0x119)?'×':_0x102e9b['level']===_0x1c6031(0x100)?'!':'i';console[_0x1c6031(0x104)](_0x17a908+0x1+'.\x20'+_0x1aae1f+'\x20['+_0x102e9b['command']+']\x20'+_0x102e9b[_0x1c6031(0x10a)]),console[_0x1c6031(0x104)](_0x1c6031(0x10b)+_0x369e2e),_0x102e9b[_0x1c6031(0x109)]&&console[_0x1c6031(0x104)](_0x1c6031(0x110)+_0x102e9b[_0x1c6031(0x109)]+'ms'),_0x102e9b[_0x1c6031(0x117)]&&Object[_0x1c6031(0x11a)](_0x102e9b[_0x1c6031(0x117)])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x102e9b[_0x1c6031(0x117)],null,0x2)),console[_0x1c6031(0x104)]('');});}function a36_0xbb9f(_0x346548,_0x46130b){_0x346548=_0x346548-0xff;const _0x11307a=a36_0x1130();let _0xbb9fac=_0x11307a[_0x346548];return _0xbb9fac;}export const logsDefinitions=[{'service':a36_0x5cff6e(0x116),'command':a36_0x5cff6e(0x115),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x575ac9){const _0x4edde1=a36_0x5cff6e;return printLogs(logger[_0x4edde1(0x118)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0x187794=a37_0x31a3;(function(_0x25a59b,_0x67a943){const _0x3edc67=a37_0x31a3,_0x449412=_0x25a59b();while(!![]){try{const _0x71ff6a=-parseInt(_0x3edc67(0x19e))/0x1+-parseInt(_0x3edc67(0x1a6))/0x2*(parseInt(_0x3edc67(0x1a1))/0x3)+parseInt(_0x3edc67(0x19f))/0x4+parseInt(_0x3edc67(0x19d))/0x5+parseInt(_0x3edc67(0x198))/0x6*(parseInt(_0x3edc67(0x1ad))/0x7)+-parseInt(_0x3edc67(0x197))/0x8*(parseInt(_0x3edc67(0x1aa))/0x9)+parseInt(_0x3edc67(0x1a2))/0xa*(parseInt(_0x3edc67(0x1a3))/0xb);if(_0x71ff6a===_0x67a943)break;else _0x449412['push'](_0x449412['shift']());}catch(_0x4809af){_0x449412['push'](_0x449412['shift']());}}}(a37_0x13f6,0xa29fa));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x187794(0x19a),'command':a37_0x187794(0x199),'description':a37_0x187794(0x1a5),'risk':a37_0x187794(0x1a9),'flags':[{'name':a37_0x187794(0x19b),'type':a37_0x187794(0x1ab),'description':a37_0x187794(0x19c),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x187794(0x1ae)}],async 'validate'(_0x9e0a1c){readNotificationChannelType(_0x9e0a1c);},async 'execute'(_0x20dbe1){const _0x57a5db=a37_0x187794,_0x17153c=readNotificationChannelType(_0x20dbe1),_0x46130b=await listNotificationChannelConfigs(_0x20dbe1[_0x57a5db(0x1a4)],_0x17153c),_0x625ad5=_0x46130b[_0x57a5db(0x1a8)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x20dbe1[_0x57a5db(0x1a4)],'channelType':_0x17153c,'count':_0x625ad5[_0x57a5db(0x1a0)],'configs':_0x625ad5},'message':_0x57a5db(0x1ac)+_0x625ad5[_0x57a5db(0x1a0)]+'\x20'+_0x17153c+_0x57a5db(0x1a7)};}};function a37_0x31a3(_0x59b605,_0x9a068){_0x59b605=_0x59b605-0x197;const _0x13f67f=a37_0x13f6();let _0x31a3dd=_0x13f67f[_0x59b605];return _0x31a3dd;}function a37_0x13f6(){const _0xc2ba38=['appCode','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','1631484JxaaXr','\x20notification\x20config(s)','map','read','9aXMdYL','string','Found\x20','7ZXOgMt','EMAIL','2578792dsLlPX','4478022YvPGYe','config-list','notification','type','Notification\x20channel\x20type','1456070NVmXrv','1069209zOFOQt','3956000cRcvAa','length','3KRRxHC','90FbnaBf','1035045URKaDo'];a37_0x13f6=function(){return _0xc2ba38;};return a37_0x13f6();}
1
+ function a37_0x2699(){const _0x51b924=['string','971257SJmygj','3583812lrFIpx','2903544cwGASw','length','read','2QpDSzX','270248nXGrhL','EMAIL','Found\x20','2290671YrUQuQ','\x20notification\x20config(s)','310QGqXIt','appCode','Notification\x20channel\x20type','config-list','1309272bIskVJ','map','5VmtHNG','45909rhYbvQ','type','notification'];a37_0x2699=function(){return _0x51b924;};return a37_0x2699();}const a37_0x39aa2a=a37_0x2fe2;function a37_0x2fe2(_0x3036ee,_0x42f879){_0x3036ee=_0x3036ee-0x19a;const _0x2699b2=a37_0x2699();let _0x2fe293=_0x2699b2[_0x3036ee];return _0x2fe293;}(function(_0x4afe5a,_0x3b5939){const _0x3cc70d=a37_0x2fe2,_0x4f1dda=_0x4afe5a();while(!![]){try{const _0x603bc9=parseInt(_0x3cc70d(0x19d))/0x1+-parseInt(_0x3cc70d(0x1a9))/0x2*(parseInt(_0x3cc70d(0x1ad))/0x3)+parseInt(_0x3cc70d(0x1a6))/0x4+-parseInt(_0x3cc70d(0x19f))/0x5*(parseInt(_0x3cc70d(0x1a5))/0x6)+parseInt(_0x3cc70d(0x1a4))/0x7+parseInt(_0x3cc70d(0x1aa))/0x8+-parseInt(_0x3cc70d(0x1a0))/0x9*(parseInt(_0x3cc70d(0x1af))/0xa);if(_0x603bc9===_0x3b5939)break;else _0x4f1dda['push'](_0x4f1dda['shift']());}catch(_0x2fe87f){_0x4f1dda['push'](_0x4f1dda['shift']());}}}(a37_0x2699,0xa823c));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0x39aa2a(0x1a2),'command':a37_0x39aa2a(0x19c),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a37_0x39aa2a(0x1a8),'flags':[{'name':a37_0x39aa2a(0x1a1),'type':a37_0x39aa2a(0x1a3),'description':a37_0x39aa2a(0x19b),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x39aa2a(0x1ab)}],async 'validate'(_0x5aa1ba){readNotificationChannelType(_0x5aa1ba);},async 'execute'(_0x2d4439){const _0x382cb9=a37_0x39aa2a,_0x5c7372=readNotificationChannelType(_0x2d4439),_0xbfeafe=await listNotificationChannelConfigs(_0x2d4439['appCode'],_0x5c7372),_0x415c92=_0xbfeafe[_0x382cb9(0x19e)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2d4439[_0x382cb9(0x19a)],'channelType':_0x5c7372,'count':_0x415c92[_0x382cb9(0x1a7)],'configs':_0x415c92},'message':_0x382cb9(0x1ac)+_0x415c92[_0x382cb9(0x1a7)]+'\x20'+_0x5c7372+_0x382cb9(0x1ae)};}};
@@ -1 +1 @@
1
- (function(_0x3e2010,_0x5a6967){const _0x5967f7=a38_0x28bf,_0x4b9e0f=_0x3e2010();while(!![]){try{const _0x3f6ff9=parseInt(_0x5967f7(0xbc))/0x1+parseInt(_0x5967f7(0xb4))/0x2*(-parseInt(_0x5967f7(0xb7))/0x3)+-parseInt(_0x5967f7(0xb8))/0x4+-parseInt(_0x5967f7(0xb5))/0x5+parseInt(_0x5967f7(0xbb))/0x6+parseInt(_0x5967f7(0xb9))/0x7*(-parseInt(_0x5967f7(0xb6))/0x8)+-parseInt(_0x5967f7(0xba))/0x9;if(_0x3f6ff9===_0x5a6967)break;else _0x4b9e0f['push'](_0x4b9e0f['shift']());}catch(_0x44574e){_0x4b9e0f['push'](_0x4b9e0f['shift']());}}}(a38_0x1bb4,0x8ec3c));function a38_0x28bf(_0x19515f,_0x5ae2c0){_0x19515f=_0x19515f-0xb4;const _0x1bb49a=a38_0x1bb4();let _0x28bf79=_0x1bb49a[_0x19515f];return _0x28bf79;}import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x1bb4(){const _0x3f783b=['3175110VTtEpk','2287698mFFZew','1134825vujIxB','82BsAwwF','761390ikWMoT','9280FfJTnT','17151EYIvkO','702556TQHkQQ','98grySxB'];a38_0x1bb4=function(){return _0x3f783b;};return a38_0x1bb4();}export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x327b47,_0x1ab5a5){const _0x282de4=a38_0x3bdd,_0x22794f=_0x327b47();while(!![]){try{const _0x55afb7=-parseInt(_0x282de4(0xfd))/0x1*(-parseInt(_0x282de4(0x100))/0x2)+-parseInt(_0x282de4(0xfe))/0x3*(-parseInt(_0x282de4(0xfb))/0x4)+-parseInt(_0x282de4(0x103))/0x5*(parseInt(_0x282de4(0x102))/0x6)+parseInt(_0x282de4(0xf9))/0x7*(parseInt(_0x282de4(0xff))/0x8)+parseInt(_0x282de4(0xfc))/0x9+parseInt(_0x282de4(0x104))/0xa+parseInt(_0x282de4(0x101))/0xb*(-parseInt(_0x282de4(0xfa))/0xc);if(_0x55afb7===_0x1ab5a5)break;else _0x22794f['push'](_0x22794f['shift']());}catch(_0x2275d0){_0x22794f['push'](_0x22794f['shift']());}}}(a38_0x2a9d,0xb7b77));function a38_0x3bdd(_0x4d1d00,_0x387283){_0x4d1d00=_0x4d1d00-0xf9;const _0x2a9d66=a38_0x2a9d();let _0x3bdde8=_0x2a9d66[_0x4d1d00];return _0x3bdde8;}import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x2a9d(){const _0xecd448=['5GtZyDr','6935470xCNZQp','5656yBFqCi','10601076IHfYpD','5088pvrQzW','3208446nKfYOZ','1166181FjQjms','318oCkbWH','4984ewaQgT','2rIdlLI','22RQHmFl','2010534stoNus'];a38_0x2a9d=function(){return _0xecd448;};return a38_0x2a9d();}export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a39_0x2b288b=a39_0x3e79;(function(_0x3d993c,_0xb04d07){const _0x2cb6a8=a39_0x3e79,_0x3e95b2=_0x3d993c();while(!![]){try{const _0x3d55cc=-parseInt(_0x2cb6a8(0x11f))/0x1*(parseInt(_0x2cb6a8(0x122))/0x2)+parseInt(_0x2cb6a8(0x120))/0x3+-parseInt(_0x2cb6a8(0x131))/0x4*(parseInt(_0x2cb6a8(0x134))/0x5)+parseInt(_0x2cb6a8(0x11c))/0x6*(parseInt(_0x2cb6a8(0x12d))/0x7)+parseInt(_0x2cb6a8(0x138))/0x8+-parseInt(_0x2cb6a8(0x12e))/0x9*(-parseInt(_0x2cb6a8(0x132))/0xa)+-parseInt(_0x2cb6a8(0x121))/0xb;if(_0x3d55cc===_0xb04d07)break;else _0x3e95b2['push'](_0x3e95b2['shift']());}catch(_0x39de0c){_0x3e95b2['push'](_0x3e95b2['shift']());}}}(a39_0x3342,0xb8ed2));function a39_0x3342(){const _0x39b684=['\x20is\x20missing\x20required\x20field\x20\x22','configName','includes','FEISHU','description','DINGTALK','join','trim','32767kBiFwR','34929reJymG','configCode','Invalid\x20notification\x20config\x20response.','376364dxereu','2330pLNdSQ','channelType','35niFmcq','type','isArray','Invalid\x20--type:\x20','12088672cUPnMp','EMAIL','180NJHstJ','WECOM','string','5SFsdov','323466grEneX','13441769FqgcKZ','10214jqQQXx','WEBHOOK','apiError'];a39_0x3342=function(){return _0x39b684;};return a39_0x3342();}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x2b288b(0x11b),a39_0x2b288b(0x128),a39_0x2b288b(0x12a),a39_0x2b288b(0x11d),a39_0x2b288b(0x123)];function a39_0x3e79(_0x5725d7,_0x5e26b9){_0x5725d7=_0x5725d7-0x11b;const _0x334298=a39_0x3342();let _0x3e7965=_0x334298[_0x5725d7];return _0x3e7965;}export function readNotificationChannelType(_0x2cd941){const _0x37e493=a39_0x2b288b,_0x3a4e99=_0x2cd941['str'](_0x37e493(0x135))['trim']()||_0x37e493(0x11b);if(!NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x127)](_0x3a4e99))throw CliErrors['validation'](_0x37e493(0x137)+_0x3a4e99,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x37e493(0x12b)](',\x20')+'.');return _0x3a4e99;}export function projectNotificationListConfig(_0x5e18aa,_0x53000a){const _0x421bd9=a39_0x2b288b,_0x2a05ca=requireResponseObject(_0x5e18aa,_0x53000a);return{'configCode':requireResponseString(_0x2a05ca[_0x421bd9(0x12f)],_0x421bd9(0x12f),_0x53000a),'configName':requireResponseString(_0x2a05ca['configName'],_0x421bd9(0x126),_0x53000a),'channelType':requireResponseString(_0x2a05ca[_0x421bd9(0x133)],_0x421bd9(0x133),_0x53000a),'description':normalizeNullableString(_0x2a05ca[_0x421bd9(0x129)])};}function requireResponseObject(_0x169806,_0x31d11d){const _0x520fdd=a39_0x2b288b;if(typeof _0x169806!=='object'||_0x169806===null||Array[_0x520fdd(0x136)](_0x169806))throw CliErrors[_0x520fdd(0x124)](_0x520fdd(0x130),'Item\x20'+(_0x31d11d+0x1)+'\x20must\x20be\x20an\x20object.');return _0x169806;}function requireResponseString(_0x1e4663,_0x391c23,_0x5d5e96){const _0x42f9ad=a39_0x2b288b;if(typeof _0x1e4663!=='string'||!_0x1e4663['trim']())throw CliErrors[_0x42f9ad(0x124)](_0x42f9ad(0x130),'Item\x20'+(_0x5d5e96+0x1)+_0x42f9ad(0x125)+_0x391c23+'\x22.');return _0x1e4663[_0x42f9ad(0x12c)]();}function normalizeNullableString(_0x36e790){const _0x292b9c=a39_0x2b288b;return typeof _0x36e790===_0x292b9c(0x11e)&&_0x36e790['trim']()?_0x36e790['trim']():null;}
1
+ const a39_0x152b3f=a39_0x12fc;(function(_0x271008,_0x2cb9b2){const _0xd30221=a39_0x12fc,_0x235352=_0x271008();while(!![]){try{const _0x4006ae=-parseInt(_0xd30221(0x150))/0x1*(parseInt(_0xd30221(0x14f))/0x2)+-parseInt(_0xd30221(0x13c))/0x3+parseInt(_0xd30221(0x148))/0x4+parseInt(_0xd30221(0x14a))/0x5*(parseInt(_0xd30221(0x146))/0x6)+parseInt(_0xd30221(0x149))/0x7*(-parseInt(_0xd30221(0x14e))/0x8)+parseInt(_0xd30221(0x147))/0x9*(parseInt(_0xd30221(0x141))/0xa)+parseInt(_0xd30221(0x136))/0xb;if(_0x4006ae===_0x2cb9b2)break;else _0x235352['push'](_0x235352['shift']());}catch(_0x5cbfdd){_0x235352['push'](_0x235352['shift']());}}}(a39_0x47b5,0xc191b));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x152b3f(0x145),a39_0x152b3f(0x151),a39_0x152b3f(0x138),'WECOM',a39_0x152b3f(0x137)];export function readNotificationChannelType(_0x42b254){const _0x4a636d=a39_0x152b3f,_0x14e39d=_0x42b254[_0x4a636d(0x13a)](_0x4a636d(0x133))['trim']()||_0x4a636d(0x145);if(!NOTIFICATION_CHANNEL_TYPES[_0x4a636d(0x13e)](_0x14e39d))throw CliErrors[_0x4a636d(0x13b)](_0x4a636d(0x14b)+_0x14e39d,_0x4a636d(0x155)+NOTIFICATION_CHANNEL_TYPES[_0x4a636d(0x134)](',\x20')+'.');return _0x14e39d;}export function projectNotificationListConfig(_0x4c5910,_0x9543b0){const _0x2aa001=a39_0x152b3f,_0x2087b4=requireResponseObject(_0x4c5910,_0x9543b0);return{'configCode':requireResponseString(_0x2087b4['configCode'],_0x2aa001(0x152),_0x9543b0),'configName':requireResponseString(_0x2087b4[_0x2aa001(0x13f)],'configName',_0x9543b0),'channelType':requireResponseString(_0x2087b4[_0x2aa001(0x135)],_0x2aa001(0x135),_0x9543b0),'description':normalizeNullableString(_0x2087b4[_0x2aa001(0x13d)])};}function a39_0x12fc(_0x140e3a,_0x3c9d5f){_0x140e3a=_0x140e3a-0x133;const _0x47b52a=a39_0x47b5();let _0x12fc2e=_0x47b52a[_0x140e3a];return _0x12fc2e;}function requireResponseObject(_0x2791dc,_0xe37501){const _0x3ff6fe=a39_0x152b3f;if(typeof _0x2791dc!==_0x3ff6fe(0x153)||_0x2791dc===null||Array[_0x3ff6fe(0x142)](_0x2791dc))throw CliErrors[_0x3ff6fe(0x14c)](_0x3ff6fe(0x143),_0x3ff6fe(0x154)+(_0xe37501+0x1)+_0x3ff6fe(0x139));return _0x2791dc;}function requireResponseString(_0x5b7fe4,_0x4684dc,_0x2d7266){const _0x1e0b2d=a39_0x152b3f;if(typeof _0x5b7fe4!==_0x1e0b2d(0x140)||!_0x5b7fe4[_0x1e0b2d(0x14d)]())throw CliErrors[_0x1e0b2d(0x14c)]('Invalid\x20notification\x20config\x20response.',_0x1e0b2d(0x154)+(_0x2d7266+0x1)+_0x1e0b2d(0x144)+_0x4684dc+'\x22.');return _0x5b7fe4[_0x1e0b2d(0x14d)]();}function normalizeNullableString(_0x239393){const _0x2ba5b9=a39_0x152b3f;return typeof _0x239393===_0x2ba5b9(0x140)&&_0x239393[_0x2ba5b9(0x14d)]()?_0x239393[_0x2ba5b9(0x14d)]():null;}function a39_0x47b5(){const _0x1132a9=['60ikNYRB','isArray','Invalid\x20notification\x20config\x20response.','\x20is\x20missing\x20required\x20field\x20\x22','EMAIL','536970bAscak','1294101nYfVgU','2398956xfuGGF','4842922bmlUlp','55ECErsD','Invalid\x20--type:\x20','apiError','trim','16sHmEkk','14UGUpDF','106388qbSDPm','FEISHU','configCode','object','Item\x20','Allowed\x20values:\x20','type','join','channelType','15296677ewHAzh','WEBHOOK','DINGTALK','\x20must\x20be\x20an\x20object.','str','validation','2748774pVamTh','description','includes','configName','string'];a39_0x47b5=function(){return _0x1132a9;};return a39_0x47b5();}
@@ -1 +1 @@
1
- const a40_0x150ebc=a40_0x39a3;(function(_0x247251,_0xf62fd1){const _0x3d4fe9=a40_0x39a3,_0x4c4ea7=_0x247251();while(!![]){try{const _0x671deb=parseInt(_0x3d4fe9(0x181))/0x1*(-parseInt(_0x3d4fe9(0x167))/0x2)+-parseInt(_0x3d4fe9(0x160))/0x3*(-parseInt(_0x3d4fe9(0x16d))/0x4)+-parseInt(_0x3d4fe9(0x190))/0x5*(-parseInt(_0x3d4fe9(0x171))/0x6)+parseInt(_0x3d4fe9(0x188))/0x7+-parseInt(_0x3d4fe9(0x15f))/0x8*(parseInt(_0x3d4fe9(0x174))/0x9)+parseInt(_0x3d4fe9(0x165))/0xa+-parseInt(_0x3d4fe9(0x17f))/0xb*(parseInt(_0x3d4fe9(0x176))/0xc);if(_0x671deb===_0xf62fd1)break;else _0x4c4ea7['push'](_0x4c4ea7['shift']());}catch(_0x568e05){_0x4c4ea7['push'](_0x4c4ea7['shift']());}}}(a40_0xd543,0x39f78));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a40_0x150ebc(0x15b),a40_0x150ebc(0x18f),a40_0x150ebc(0x179),a40_0x150ebc(0x161)],SCENE_TO_LEGACY_TYPE={'invoice':a40_0x150ebc(0x183),'general':a40_0x150ebc(0x168),'form':'Table','idCard':'IdCard'},SCENE_FLAG={'name':a40_0x150ebc(0x187),'type':a40_0x150ebc(0x170),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x150ebc(0x17e)},IMAGE_FILE_FLAG={'name':a40_0x150ebc(0x175),'type':a40_0x150ebc(0x170),'description':a40_0x150ebc(0x15d)},IMAGE_URL_FLAG={'name':a40_0x150ebc(0x186),'type':a40_0x150ebc(0x170),'description':a40_0x150ebc(0x16b)};function normalizeScene(_0x1560c8){const _0x30c509=a40_0x150ebc,_0x4d494e=_0x1560c8[_0x30c509(0x15a)]()['toLowerCase']();if(_0x4d494e==='idcard')return _0x30c509(0x161);if(_0x4d494e===_0x30c509(0x15b)||_0x4d494e===_0x30c509(0x18f)||_0x4d494e===_0x30c509(0x179))return _0x4d494e;throw CliErrors[_0x30c509(0x15e)]('Unsupported\x20OCR\x20scene:\x20'+_0x1560c8+_0x30c509(0x17d)+SUPPORTED_SCENES['join'](',\x20'));}function a40_0x39a3(_0x1b016e,_0x25d136){_0x1b016e=_0x1b016e-0x15a;const _0xd5435e=a40_0xd543();let _0x39a3e0=_0xd5435e[_0x1b016e];return _0x39a3e0;}function selectedInputs(_0xde3999){const _0x45267a=a40_0x150ebc,_0x239faf=_0xde3999[_0x45267a(0x189)]('image-file')[_0x45267a(0x15a)](),_0x538b5c=_0xde3999[_0x45267a(0x189)](_0x45267a(0x186))[_0x45267a(0x15a)]();return{'imageFile':_0x239faf,'imageUrl':_0x538b5c,'count':[_0x239faf,_0x538b5c][_0x45267a(0x18e)](Boolean)[_0x45267a(0x184)]};}function validateInputSelection(_0x5f01f9){const _0x59cecf=a40_0x150ebc,_0x5448b6=selectedInputs(_0x5f01f9);if(_0x5448b6[_0x59cecf(0x185)]!==0x1)throw CliErrors['validation'](_0x59cecf(0x16c));return _0x5448b6;}function withScene(_0x3a65fd,_0x17d8d2,_0x4c9cb5){const _0xafd08=a40_0x150ebc;return{..._0x3a65fd,'scene':_0x17d8d2,..._0x4c9cb5?{'sourceFile':{'fileName':_0x4c9cb5[_0xafd08(0x162)],'filePath':_0x4c9cb5[_0xafd08(0x16f)]}}:{}};}const ocrRecognize={'service':a40_0x150ebc(0x17a),'command':a40_0x150ebc(0x178),'description':a40_0x150ebc(0x18d),'risk':a40_0x150ebc(0x169),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x526ff6){const _0x33712a=a40_0x150ebc,_0x3ab99e=normalizeScene(_0x526ff6[_0x33712a(0x189)](_0x33712a(0x187))),_0x4835d5=SCENE_TO_LEGACY_TYPE[_0x3ab99e],_0x5ac292=validateInputSelection(_0x526ff6);if(_0x5ac292['imageUrl'])return dryRun(_0x33712a(0x164),_0x33712a(0x191))[_0x33712a(0x18a)]({'appCode':_0x526ff6[_0x33712a(0x180)],'url':_0x5ac292[_0x33712a(0x163)],'type':_0x4835d5})[_0x33712a(0x16e)]('Preview:\x20recognize\x20'+_0x3ab99e+'\x20OCR\x20from\x20URL')[_0x33712a(0x16a)]();const _0x3aa7c5=requireRuntimeUploadFile(_0x5ac292[_0x33712a(0x18b)],'image-file');return dryRun(_0x33712a(0x164),'/client/uploadFile')['body']({'steps':[{'method':_0x33712a(0x164),'url':_0x33712a(0x18c),'body':{'appCode':_0x526ff6[_0x33712a(0x180)],'multipart':{'file':_0x3aa7c5}}},{'method':_0x33712a(0x164),'url':_0x33712a(0x173),'body':{'filePath':_0x33712a(0x15c),'downloadFlag':![]}},{'method':_0x33712a(0x164),'url':_0x33712a(0x191),'body':{'appCode':_0x526ff6[_0x33712a(0x180)],'url':_0x33712a(0x17b),'type':_0x4835d5}}]})[_0x33712a(0x16e)](_0x33712a(0x177)+_0x3ab99e+'\x20OCR')[_0x33712a(0x16a)]();},async 'execute'(_0x127482){const _0x368c27=a40_0x150ebc,_0x3b364a=normalizeScene(_0x127482[_0x368c27(0x189)](_0x368c27(0x187))),_0x5ac664=SCENE_TO_LEGACY_TYPE[_0x3b364a],_0x328b2f=validateInputSelection(_0x127482);if(_0x328b2f[_0x368c27(0x163)]){const _0x4f16c3=await recognizeRuntimeOcr(_0x127482[_0x368c27(0x180)],{'url':_0x328b2f['imageUrl'],'type':_0x5ac664});return{'ok':!![],'data':withScene(_0x4f16c3,_0x3b364a)};}const _0x5ee226=requireRuntimeUploadFile(_0x328b2f[_0x368c27(0x18b)],_0x368c27(0x175)),_0x43c2db=await uploadRuntimeFile(_0x127482[_0x368c27(0x180)],_0x5ee226[_0x368c27(0x166)]);if(!_0x43c2db[_0x368c27(0x16f)])throw CliErrors[_0x368c27(0x172)](_0x368c27(0x182));const _0x25f3fb=await queryRuntimeFileUrl(_0x43c2db[_0x368c27(0x16f)],{'download':![]});if(!_0x25f3fb[_0x368c27(0x17c)])throw CliErrors[_0x368c27(0x172)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x2a356f=await recognizeRuntimeOcr(_0x127482[_0x368c27(0x180)],{'url':_0x25f3fb[_0x368c27(0x17c)],'type':_0x5ac664});return{'ok':!![],'data':withScene(_0x2a356f,_0x3b364a,_0x43c2db)};}};export const ocrDefinitions=[ocrRecognize];function a40_0xd543(){const _0x45e374=['read','build','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','68724NdhwaA','description','filePath','string','252828RAMnmV','apiError','/client/queryFileUrl','18lReTrl','image-file','56484bHNnkb','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','recognize','form','ocr','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','fileUrl','.\x20Supported\x20scenes:\x20','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','836lfTZnL','appCode','1nlytFX','File\x20upload\x20response\x20missing\x20filePath.','Invoice','length','count','image-url','scene','1272726Fpycfi','str','body','imageFile','/client/uploadFile','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','filter','general','50MhZlez','/client/ocr','trim','invoice','<filePath\x20returned\x20by\x20/client/uploadFile>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','validation','419776CjaAGF','15AkdEYf','idCard','fileName','imageUrl','POST','587690MDEnjb','path','95528DtopzT','General'];a40_0xd543=function(){return _0x45e374;};return a40_0xd543();}
1
+ const a40_0x1eba01=a40_0x4fe6;(function(_0x2ce13a,_0x2b5c9a){const _0x1f3f22=a40_0x4fe6,_0x46450c=_0x2ce13a();while(!![]){try{const _0x44658b=parseInt(_0x1f3f22(0x174))/0x1+-parseInt(_0x1f3f22(0x177))/0x2*(-parseInt(_0x1f3f22(0x182))/0x3)+-parseInt(_0x1f3f22(0x191))/0x4*(parseInt(_0x1f3f22(0x195))/0x5)+-parseInt(_0x1f3f22(0x178))/0x6*(-parseInt(_0x1f3f22(0x18f))/0x7)+-parseInt(_0x1f3f22(0x185))/0x8*(-parseInt(_0x1f3f22(0x172))/0x9)+-parseInt(_0x1f3f22(0x161))/0xa+parseInt(_0x1f3f22(0x188))/0xb*(-parseInt(_0x1f3f22(0x184))/0xc);if(_0x44658b===_0x2b5c9a)break;else _0x46450c['push'](_0x46450c['shift']());}catch(_0x2b3c9b){_0x46450c['push'](_0x46450c['shift']());}}}(a40_0xd59f,0xc0599));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a40_0x1eba01(0x16d),a40_0x1eba01(0x164),'form',a40_0x1eba01(0x17c)],SCENE_TO_LEGACY_TYPE={'invoice':a40_0x1eba01(0x165),'general':'General','form':a40_0x1eba01(0x192),'idCard':'IdCard'},SCENE_FLAG={'name':'scene','type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x1eba01(0x181)},IMAGE_FILE_FLAG={'name':a40_0x1eba01(0x173),'type':a40_0x1eba01(0x168),'description':a40_0x1eba01(0x17b)},IMAGE_URL_FLAG={'name':'image-url','type':'string','description':a40_0x1eba01(0x166)};function a40_0x4fe6(_0x59f2da,_0x461672){_0x59f2da=_0x59f2da-0x160;const _0xd59f43=a40_0xd59f();let _0x4fe64a=_0xd59f43[_0x59f2da];return _0x4fe64a;}function a40_0xd59f(){const _0x4a3332=['/client/ocr','build','170570HsSznD','\x20OCR','\x20OCR\x20from\x20URL','File\x20URL\x20response\x20missing\x20fileUrl.','imageUrl','path','5278910EiZrnn','.\x20Supported\x20scenes:\x20','filter','general','Invoice','Publicly\x20accessible\x20image\x20or\x20file\x20URL','/client/queryFileUrl','string','File\x20upload\x20response\x20missing\x20filePath.','description','POST','validation','invoice','length','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','scene','str','828VawoyS','image-file','141283qqSkdE','ocr','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','30ElMnjw','108iXXsqQ','count','image-url','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','idCard','fileUrl','read','<filePath\x20returned\x20by\x20/client/uploadFile>','/client/uploadFile','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','230403RUdGBV','filePath','528decAHa','105824NZyZYV','apiError','body','43747BYbOAg','Unsupported\x20OCR\x20scene:\x20','trim','idcard','imageFile','appCode','toLowerCase','173978GNvkUH','join','172rhWCTy','Table'];a40_0xd59f=function(){return _0x4a3332;};return a40_0xd59f();}function normalizeScene(_0xe07eb2){const _0x39f133=a40_0x1eba01,_0x4013b1=_0xe07eb2[_0x39f133(0x18a)]()[_0x39f133(0x18e)]();if(_0x4013b1===_0x39f133(0x18b))return _0x39f133(0x17c);if(_0x4013b1==='invoice'||_0x4013b1==='general'||_0x4013b1==='form')return _0x4013b1;throw CliErrors[_0x39f133(0x16c)](_0x39f133(0x189)+_0xe07eb2+_0x39f133(0x162)+SUPPORTED_SCENES[_0x39f133(0x190)](',\x20'));}function selectedInputs(_0x142de5){const _0x42443b=a40_0x1eba01,_0x2bf996=_0x142de5[_0x42443b(0x171)](_0x42443b(0x173))[_0x42443b(0x18a)](),_0x4d075f=_0x142de5['str'](_0x42443b(0x17a))[_0x42443b(0x18a)]();return{'imageFile':_0x2bf996,'imageUrl':_0x4d075f,'count':[_0x2bf996,_0x4d075f][_0x42443b(0x163)](Boolean)[_0x42443b(0x16e)]};}function validateInputSelection(_0x2ee266){const _0x35dc1f=a40_0x1eba01,_0x365769=selectedInputs(_0x2ee266);if(_0x365769[_0x35dc1f(0x179)]!==0x1)throw CliErrors['validation'](_0x35dc1f(0x16f));return _0x365769;}function withScene(_0x3c7393,_0x4bb97e,_0x2c4dfb){return{..._0x3c7393,'scene':_0x4bb97e,..._0x2c4dfb?{'sourceFile':{'fileName':_0x2c4dfb['fileName'],'filePath':_0x2c4dfb['filePath']}}:{}};}const ocrRecognize={'service':a40_0x1eba01(0x175),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a40_0x1eba01(0x17e),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x439504){const _0x572074=a40_0x1eba01,_0x47398d=normalizeScene(_0x439504[_0x572074(0x171)]('scene')),_0x197619=SCENE_TO_LEGACY_TYPE[_0x47398d],_0x5caeb9=validateInputSelection(_0x439504);if(_0x5caeb9[_0x572074(0x199)])return dryRun('POST','/client/ocr')[_0x572074(0x187)]({'appCode':_0x439504[_0x572074(0x18d)],'url':_0x5caeb9[_0x572074(0x199)],'type':_0x197619})[_0x572074(0x16a)]('Preview:\x20recognize\x20'+_0x47398d+_0x572074(0x197))['build']();const _0x8d09f6=requireRuntimeUploadFile(_0x5caeb9[_0x572074(0x18c)],_0x572074(0x173));return dryRun(_0x572074(0x16b),_0x572074(0x180))[_0x572074(0x187)]({'steps':[{'method':_0x572074(0x16b),'url':_0x572074(0x180),'body':{'appCode':_0x439504['appCode'],'multipart':{'file':_0x8d09f6}}},{'method':_0x572074(0x16b),'url':_0x572074(0x167),'body':{'filePath':_0x572074(0x17f),'downloadFlag':![]}},{'method':'POST','url':_0x572074(0x193),'body':{'appCode':_0x439504['appCode'],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x197619}}]})[_0x572074(0x16a)](_0x572074(0x176)+_0x47398d+_0x572074(0x196))[_0x572074(0x194)]();},async 'execute'(_0x9b86aa){const _0x33acd5=a40_0x1eba01,_0x5b2261=normalizeScene(_0x9b86aa[_0x33acd5(0x171)](_0x33acd5(0x170))),_0x484f9a=SCENE_TO_LEGACY_TYPE[_0x5b2261],_0x506966=validateInputSelection(_0x9b86aa);if(_0x506966[_0x33acd5(0x199)]){const _0x3cac6f=await recognizeRuntimeOcr(_0x9b86aa[_0x33acd5(0x18d)],{'url':_0x506966[_0x33acd5(0x199)],'type':_0x484f9a});return{'ok':!![],'data':withScene(_0x3cac6f,_0x5b2261)};}const _0x1c1bb5=requireRuntimeUploadFile(_0x506966[_0x33acd5(0x18c)],_0x33acd5(0x173)),_0x304369=await uploadRuntimeFile(_0x9b86aa[_0x33acd5(0x18d)],_0x1c1bb5[_0x33acd5(0x160)]);if(!_0x304369['filePath'])throw CliErrors[_0x33acd5(0x186)](_0x33acd5(0x169));const _0x11cf3a=await queryRuntimeFileUrl(_0x304369[_0x33acd5(0x183)],{'download':![]});if(!_0x11cf3a[_0x33acd5(0x17d)])throw CliErrors['apiError'](_0x33acd5(0x198));const _0x4a043e=await recognizeRuntimeOcr(_0x9b86aa[_0x33acd5(0x18d)],{'url':_0x11cf3a[_0x33acd5(0x17d)],'type':_0x484f9a});return{'ok':!![],'data':withScene(_0x4a043e,_0x5b2261,_0x304369)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a41_0x23e0a4=a41_0x486e;function a41_0x486e(_0x4c091b,_0x264e27){_0x4c091b=_0x4c091b-0x11b;const _0x39fa09=a41_0x39fa();let _0x486e31=_0x39fa09[_0x4c091b];return _0x486e31;}(function(_0x68d92f,_0x58d2ac){const _0x20cea4=a41_0x486e,_0x282481=_0x68d92f();while(!![]){try{const _0x4844a1=-parseInt(_0x20cea4(0x11d))/0x1*(-parseInt(_0x20cea4(0x125))/0x2)+parseInt(_0x20cea4(0x12a))/0x3+-parseInt(_0x20cea4(0x120))/0x4*(parseInt(_0x20cea4(0x124))/0x5)+parseInt(_0x20cea4(0x11c))/0x6*(-parseInt(_0x20cea4(0x11f))/0x7)+-parseInt(_0x20cea4(0x12c))/0x8+parseInt(_0x20cea4(0x11b))/0x9+parseInt(_0x20cea4(0x122))/0xa;if(_0x4844a1===_0x58d2ac)break;else _0x282481['push'](_0x282481['shift']());}catch(_0x36ee5a){_0x282481['push'](_0x282481['shift']());}}}(a41_0x39fa,0x19edd));function a41_0x39fa(){const _0x4f777f=['65306LORZHS','string','896CQYyQG','14132hWwrRC','appCode','1726910ODzdUs','permit','155iyqkgy','2IPKhpN','trim','roleType','role','str','149211ASDyyi','read','1376520XoGzPP','runtime','dataset-get','1473075QAZBhT','2982zRonpu'];a41_0x39fa=function(){return _0x4f777f;};return a41_0x39fa();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a41_0x23e0a4(0x123),'command':a41_0x23e0a4(0x12e),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':a41_0x23e0a4(0x12b),'flags':[{'name':'role','type':a41_0x23e0a4(0x11e),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x350ef0){const _0xf49b3=a41_0x23e0a4,_0x253d5d=_0x350ef0[_0xf49b3(0x129)](_0xf49b3(0x128))[_0xf49b3(0x126)]();if(!_0x253d5d)return{'ok':!![],'data':{'scope':_0xf49b3(0x12d),'datasets':await listRuntimeDatasetRolePermits(_0x350ef0[_0xf49b3(0x121)])}};const _0x795ccc=await resolveRuntimeRoleRef(_0x350ef0[_0xf49b3(0x121)],_0x253d5d);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x795ccc['id'],'roleName':_0x795ccc['roleName'],'roleType':_0x795ccc[_0xf49b3(0x127)]},'datasets':await listRuntimeDatasetPermits(_0x350ef0[_0xf49b3(0x121)],_0x795ccc['id'])}};}};
1
+ function a41_0x4e2f(){const _0x2fb04e=['string','950675rlmBbf','permit','534896tOZJdL','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','3EdqIqv','roleName','runtime','1535300BmzEBa','379930syvowE','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','873yEYrLA','6282PxzyhN','1NiTjBs','read','trim','dataset-get','str','appCode','role','2512UQmqrY','2352570gRBHqq','819zZubSm'];a41_0x4e2f=function(){return _0x2fb04e;};return a41_0x4e2f();}const a41_0x52e615=a41_0x9f51;(function(_0x3e8e2f,_0xb1a1c2){const _0x525744=a41_0x9f51,_0x5e011b=_0x3e8e2f();while(!![]){try{const _0x3f51b9=-parseInt(_0x525744(0xcd))/0x1*(parseInt(_0x525744(0xc9))/0x2)+-parseInt(_0x525744(0xc5))/0x3*(-parseInt(_0x525744(0xc3))/0x4)+parseInt(_0x525744(0xc1))/0x5+parseInt(_0x525744(0xcc))/0x6*(-parseInt(_0x525744(0xbf))/0x7)+parseInt(_0x525744(0xbd))/0x8*(parseInt(_0x525744(0xcb))/0x9)+-parseInt(_0x525744(0xc8))/0xa+parseInt(_0x525744(0xbe))/0xb;if(_0x3f51b9===_0xb1a1c2)break;else _0x5e011b['push'](_0x5e011b['shift']());}catch(_0x13619a){_0x5e011b['push'](_0x5e011b['shift']());}}}(a41_0x4e2f,0x18f31));function a41_0x9f51(_0x50857f,_0x288b3c){_0x50857f=_0x50857f-0xb9;const _0x4e2f80=a41_0x4e2f();let _0x9f51f=_0x4e2f80[_0x50857f];return _0x9f51f;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a41_0x52e615(0xc2),'command':a41_0x52e615(0xb9),'description':a41_0x52e615(0xca),'risk':a41_0x52e615(0xce),'flags':[{'name':'role','type':a41_0x52e615(0xc0),'description':a41_0x52e615(0xc4)}],async 'execute'(_0x2218a0){const _0x68daa7=a41_0x52e615,_0x149de7=_0x2218a0[_0x68daa7(0xba)](_0x68daa7(0xbc))[_0x68daa7(0xcf)]();if(!_0x149de7)return{'ok':!![],'data':{'scope':_0x68daa7(0xc7),'datasets':await listRuntimeDatasetRolePermits(_0x2218a0['appCode'])}};const _0x2e5f95=await resolveRuntimeRoleRef(_0x2218a0[_0x68daa7(0xbb)],_0x149de7);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x2e5f95['id'],'roleName':_0x2e5f95[_0x68daa7(0xc6)],'roleType':_0x2e5f95['roleType']},'datasets':await listRuntimeDatasetPermits(_0x2218a0['appCode'],_0x2e5f95['id'])}};}};