@lovrabet/lovrabet-cli 2.3.2-beta.2 → 2.3.2-beta.3

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 (166) 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/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/init.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/notification/config-list.js +1 -1
  37. package/lib/commands/notification/index.js +1 -1
  38. package/lib/commands/notification/shared.js +1 -1
  39. package/lib/commands/ocr/index.js +1 -1
  40. package/lib/commands/permit/dataset-get.js +1 -1
  41. package/lib/commands/permit/dataset-set.js +1 -1
  42. package/lib/commands/permit/index.js +1 -1
  43. package/lib/commands/permit/page-get.js +1 -1
  44. package/lib/commands/permit/page-set.js +1 -1
  45. package/lib/commands/permit/role-menus-set.js +1 -1
  46. package/lib/commands/permit/role-menus.js +1 -1
  47. package/lib/commands/permit/shared.js +1 -1
  48. package/lib/commands/personal-bff/index.js +1 -1
  49. package/lib/commands/registry.js +1 -1
  50. package/lib/commands/role/create.js +1 -1
  51. package/lib/commands/role/delete.js +1 -1
  52. package/lib/commands/role/detail.js +1 -1
  53. package/lib/commands/role/index.js +1 -1
  54. package/lib/commands/role/list.js +1 -1
  55. package/lib/commands/role/shared.js +1 -1
  56. package/lib/commands/role/update.js +1 -1
  57. package/lib/commands/role/user-add.js +1 -1
  58. package/lib/commands/role/user-remove.js +1 -1
  59. package/lib/commands/schedule/index.js +1 -1
  60. package/lib/commands/schema.js +1 -1
  61. package/lib/commands/service/dynamic.js +1 -1
  62. package/lib/commands/service/function-name-adapter.js +1 -1
  63. package/lib/commands/service/index.js +1 -1
  64. package/lib/commands/service/registry.js +1 -1
  65. package/lib/commands/skill/commands/create.js +1 -1
  66. package/lib/commands/skill/commands/diagram.js +1 -1
  67. package/lib/commands/skill/commands/install.js +1 -1
  68. package/lib/commands/skill/commands/list.js +1 -1
  69. package/lib/commands/skill/commands/push.js +1 -1
  70. package/lib/commands/skill/commands/validate.js +1 -1
  71. package/lib/commands/skill/diagram.js +1 -1
  72. package/lib/commands/skill/flags.js +1 -1
  73. package/lib/commands/skill/index.js +1 -1
  74. package/lib/commands/skill/manifest-helpers.js +1 -1
  75. package/lib/commands/skill/push-execute.js +1 -1
  76. package/lib/commands/skill/push-flow-helpers.js +1 -1
  77. package/lib/commands/skill/push-retarget.js +1 -1
  78. package/lib/commands/skill/scopes.js +1 -1
  79. package/lib/commands/skill/summary.js +1 -1
  80. package/lib/commands/skill/templates.js +1 -1
  81. package/lib/commands/skill/validate.js +1 -1
  82. package/lib/commands/sql/detail.js +1 -1
  83. package/lib/commands/sql/exec.js +1 -1
  84. package/lib/commands/sql/index.js +1 -1
  85. package/lib/commands/update.js +1 -1
  86. package/lib/commands/user-account/bind.js +1 -1
  87. package/lib/commands/user-account/index.js +1 -1
  88. package/lib/commands/workspace/index.js +1 -1
  89. package/lib/config/domain-config.js +1 -1
  90. package/lib/config/schema.js +1 -1
  91. package/lib/constant/app.js +1 -1
  92. package/lib/constant/auth-mode.js +1 -1
  93. package/lib/constant/cli.js +1 -1
  94. package/lib/constant/defaults.js +1 -1
  95. package/lib/constant/distribution.js +1 -1
  96. package/lib/constant/domain.js +1 -1
  97. package/lib/constant/env.js +1 -1
  98. package/lib/constant/output.js +1 -1
  99. package/lib/constant/product.js +1 -1
  100. package/lib/constant/region.js +1 -1
  101. package/lib/constant/risk.js +1 -1
  102. package/lib/constant/url.js +1 -1
  103. package/lib/context.js +1 -1
  104. package/lib/core/api-client.js +1 -1
  105. package/lib/core/db-resolver.js +1 -1
  106. package/lib/core/kb-search-client.js +1 -1
  107. package/lib/core/sdk-client.js +1 -1
  108. package/lib/errors.js +1 -1
  109. package/lib/framework/build-all-flags.js +1 -1
  110. package/lib/framework/dryrun.js +1 -1
  111. package/lib/framework/flags.js +1 -1
  112. package/lib/framework/help.js +1 -1
  113. package/lib/framework/index.js +1 -1
  114. package/lib/framework/output.js +1 -1
  115. package/lib/framework/preparse.js +1 -1
  116. package/lib/framework/rate-limit.js +1 -1
  117. package/lib/framework/raw-flags.js +1 -1
  118. package/lib/framework/response.js +1 -1
  119. package/lib/framework/runner-confirmation.js +1 -1
  120. package/lib/framework/runner-error.js +1 -1
  121. package/lib/framework/runner.js +1 -1
  122. package/lib/framework/schema-export.js +1 -1
  123. package/lib/framework/service-order.js +1 -1
  124. package/lib/framework/types.js +1 -1
  125. package/lib/generated/build-info.d.ts +4 -4
  126. package/lib/generated/build-info.js +1 -1
  127. package/lib/generated/official-routing.js +1 -1
  128. package/lib/generated/routing-contract.js +1 -1
  129. package/lib/help.js +1 -1
  130. package/lib/postinstall.js +1 -1
  131. package/lib/runtime/confirmation.js +1 -1
  132. package/lib/runtime/event.js +1 -1
  133. package/lib/runtime/index.js +1 -1
  134. package/lib/runtime/queue.js +1 -1
  135. package/lib/runtime/resolve.js +1 -1
  136. package/lib/skills/builtin-skill.js +1 -1
  137. package/lib/skills/npx-skills-add.js +1 -1
  138. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  139. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  140. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  141. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  142. package/lib/skills/runtime-skill-sync/links.js +1 -1
  143. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  144. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  145. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  146. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  147. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  148. package/lib/skills/runtime-skill-sync/push.js +1 -1
  149. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  150. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  151. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  152. package/lib/skills/runtime-skill-sync.js +1 -1
  153. package/lib/skills/skill-presence.js +1 -1
  154. package/lib/utils/access-key-redaction.js +1 -1
  155. package/lib/utils/apply-jq-filter.js +1 -1
  156. package/lib/utils/cli-version-check.js +1 -1
  157. package/lib/utils/cli-version-policy.js +1 -1
  158. package/lib/utils/logger.js +1 -1
  159. package/lib/utils/lossless-json.js +1 -1
  160. package/lib/utils/params.js +1 -1
  161. package/lib/utils/update-notice.js +1 -1
  162. package/lib/utils/version.js +1 -1
  163. package/lib/utils/write-cli-side-channel.js +1 -1
  164. package/package.json +1 -1
  165. package/skills/lovrabet/SKILL.md +1 -1
  166. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a26_0x755132=a26_0x5f1b;function a26_0x2fff(){const _0xa57228=['1270623iRbJDb','displayName','entries','length','afterScriptId','beforeScriptId','map','operations','path','createTimeField','string','responseBody','validateRules','requestFields','code','deleted','fields','tableComment','required','modifierNameField','doVersion','datasetKey','labelField','relatedPageInfoList','description','allFieldNames','5lkwvju','indexes','modifierIdField','formatRules','read','title','dbName','dbId','options','pkField','dblinkInfoDTO','responseFields','dbType','allFields','find','appCode','creatorNameField','host','748532oWsZTh','782222miBPOx','name','filter','properties','tableName','sourceType','creatorIdField','extend','type','99642yBwSoo','requestBody','source','510oFBkZY','dbtableConfig','dataType','dataset','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','str','push','columnCodeListWithDeleted','split','relations','method','isArray','3253452PxPLix','1163704yYZroQ','parse','1fErCYe','105543fhBhwh'];a26_0x2fff=function(){return _0xa57228;};return a26_0x2fff();}(function(_0x436d6d,_0x2635b9){const _0x1213f7=a26_0x5f1b,_0x1f663e=_0x436d6d();while(!![]){try{const _0xb657fe=-parseInt(_0x1213f7(0x1a6))/0x1*(-parseInt(_0x1213f7(0x194))/0x2)+parseInt(_0x1213f7(0x1a8))/0x3+-parseInt(_0x1213f7(0x18a))/0x4*(parseInt(_0x1213f7(0x178))/0x5)+-parseInt(_0x1213f7(0x1a3))/0x6+parseInt(_0x1213f7(0x18b))/0x7+-parseInt(_0x1213f7(0x1a4))/0x8+parseInt(_0x1213f7(0x1a7))/0x9*(parseInt(_0x1213f7(0x197))/0xa);if(_0xb657fe===_0x2635b9)break;else _0x1f663e['push'](_0x1f663e['shift']());}catch(_0xe61510){_0x1f663e['push'](_0x1f663e['shift']());}}}(a26_0x2fff,0x4b47b));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a26_0x5f1b(_0x58957e,_0x1dc8b3){_0x58957e=_0x58957e-0x168;const _0x2fff0e=a26_0x2fff();let _0x5f1b2b=_0x2fff0e[_0x58957e];return _0x5f1b2b;}function normalizeField(_0x4944e1){const _0xa43c88=a26_0x5f1b;if(_0x4944e1[_0xa43c88(0x16d)])return null;const _0x4c31a4=Boolean(_0x4944e1[_0xa43c88(0x1a9)]!==undefined||_0x4944e1['doType']!==undefined);let _0x57a44e={};if(!_0x4c31a4&&typeof _0x4944e1[_0xa43c88(0x192)]==='string')try{_0x57a44e=JSON['parse'](_0x4944e1[_0xa43c88(0x192)]);}catch{}const _0xcbbf38=_0x4c31a4?_0x4944e1[_0xa43c88(0x18c)]:_0x4944e1[_0xa43c88(0x16c)],_0x27d43d=_0x4c31a4?_0x4944e1[_0xa43c88(0x1a9)]:_0x4944e1['name'],_0x11cce4=_0x4c31a4?_0x4944e1['doType']:_0x4944e1['type']||_0x4944e1[_0xa43c88(0x199)],_0x119775=_0x4c31a4?_0x4944e1['pkField']===!![]:_0x57a44e[_0xa43c88(0x181)]===!![],_0x1393fd=_0x4c31a4?_0x4944e1[_0xa43c88(0x170)]===!![]:_0x57a44e['required']===!![],_0x38495e=_0x4c31a4?_0x4944e1[_0xa43c88(0x180)]??null:_0x57a44e[_0xa43c88(0x180)]??null,_0x2cf154={'name':_0xcbbf38,'displayName':_0x27d43d||_0xcbbf38,'type':_0x11cce4,'dbType':_0x4944e1[_0xa43c88(0x184)],'pk':_0x119775,'required':_0x1393fd,'description':_0x4944e1[_0xa43c88(0x176)]||undefined};return Array[_0xa43c88(0x1a2)](_0x38495e)&&_0x38495e[_0xa43c88(0x1ab)]>0x0&&(_0x2cf154[_0xa43c88(0x180)]=_0x38495e),_0x2cf154;}function parseJsonMaybe(_0x451362){const _0x43c0d6=a26_0x5f1b;if(typeof _0x451362!==_0x43c0d6(0x168))return _0x451362;try{return JSON[_0x43c0d6(0x1a5)](_0x451362);}catch{return _0x451362;}}function normalizeOperationEntry(_0x51e6d1,_0x3e7083){const _0x832873=a26_0x5f1b;if(!_0x3e7083||typeof _0x3e7083!=='object')return null;if(!_0x3e7083[_0x832873(0x1a1)]||!_0x3e7083[_0x832873(0x1b0)])return null;const _0x367321={'name':_0x51e6d1,'method':_0x3e7083[_0x832873(0x1a1)],'path':_0x3e7083[_0x832873(0x1b0)]};if(_0x3e7083['host'])_0x367321[_0x832873(0x189)]=_0x3e7083[_0x832873(0x189)];if(_0x3e7083[_0x832873(0x195)]!=null)_0x367321['requestBody']=parseJsonMaybe(_0x3e7083[_0x832873(0x195)]);if(_0x3e7083[_0x832873(0x169)]!=null)_0x367321[_0x832873(0x169)]=parseJsonMaybe(_0x3e7083['responseBody']);if(_0x3e7083[_0x832873(0x1ad)]!=null)_0x367321[_0x832873(0x1ad)]=_0x3e7083[_0x832873(0x1ad)];if(_0x3e7083[_0x832873(0x1ac)]!=null)_0x367321[_0x832873(0x1ac)]=_0x3e7083[_0x832873(0x1ac)];if(Array['isArray'](_0x3e7083['requestFields']))_0x367321[_0x832873(0x16b)]=_0x3e7083[_0x832873(0x16b)];if(Array['isArray'](_0x3e7083[_0x832873(0x183)]))_0x367321[_0x832873(0x183)]=_0x3e7083['responseFields'];return _0x367321;}function summarizeDbtable(_0x1287df){const _0x1a1f02=a26_0x5f1b,_0x134e31={},_0x1210eb=['dbId',_0x1a1f02(0x17e),_0x1a1f02(0x18f),_0x1a1f02(0x173),_0x1a1f02(0x181),_0x1a1f02(0x185),'logicField',_0x1a1f02(0x1b1),'updateTimeField',_0x1a1f02(0x191),_0x1a1f02(0x188),_0x1a1f02(0x17a),_0x1a1f02(0x171),_0x1a1f02(0x174),_0x1a1f02(0x182)];for(const _0x5abf9f of _0x1210eb){if(_0x1287df[_0x5abf9f]!==undefined)_0x134e31[_0x5abf9f]=_0x1287df[_0x5abf9f];}return typeof _0x134e31[_0x1a1f02(0x185)]===_0x1a1f02(0x168)&&_0x134e31[_0x1a1f02(0x185)][_0x1a1f02(0x1ab)]>0x0&&(_0x134e31[_0x1a1f02(0x177)]=_0x134e31[_0x1a1f02(0x185)][_0x1a1f02(0x19f)](',')[_0x1a1f02(0x1ae)](_0x530f95=>_0x530f95['trim']())[_0x1a1f02(0x18d)](Boolean)),_0x134e31;}function normalizeRelatedPages(_0x4565af){const _0x3d5051=a26_0x5f1b;if(!Array[_0x3d5051(0x1a2)](_0x4565af))return[];return _0x4565af['filter'](_0x3dd89f=>_0x3dd89f&&typeof _0x3dd89f==='object')['map'](_0x1717f8=>({'id':_0x1717f8['id'],'type':_0x1717f8[_0x3d5051(0x193)],'code':_0x1717f8[_0x3d5051(0x16c)],'title':_0x1717f8[_0x3d5051(0x17d)],'deleted':_0x1717f8[_0x3d5051(0x16d)]===!![]}));}function normalizeFallbackFieldName(_0xbd5a61,_0x745944){const _0x202d30=_0xbd5a61['trim']();if(!_0x202d30)return null;return{'name':_0x202d30,'displayName':_0x202d30,'type':undefined,'dbType':undefined,'pk':_0x202d30===_0x745944,'required':![],'description':undefined};}async function loadListFieldFallback(_0x3f4efe,_0x18bac7){const _0x7b3997=a26_0x5f1b;if(!_0x3f4efe||!_0x18bac7)return[];try{const _0x2eae1c=await listDatasets(_0x3f4efe,{'code':_0x18bac7}),_0x5a1b9b=_0x2eae1c[_0x7b3997(0x186)](_0x4120ca=>_0x4120ca[_0x7b3997(0x16c)]===_0x18bac7)??_0x2eae1c[0x0],_0x2bb300=_0x5a1b9b?.[_0x7b3997(0x198)]??{},_0x3db670=typeof _0x2bb300[_0x7b3997(0x185)]==='string'?_0x2bb300[_0x7b3997(0x185)][_0x7b3997(0x19f)](','):[];return _0x3db670[_0x7b3997(0x1ae)](_0x5db2cb=>normalizeFallbackFieldName(_0x5db2cb,_0x2bb300['pkField']))['filter'](_0x42bbd0=>_0x42bbd0!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':'detail','description':a26_0x755132(0x19b),'risk':a26_0x755132(0x17c),'flags':[CODE_FLAG],async 'execute'(_0x1bd17){const _0x211d6f=a26_0x755132,_0x5820e7=await getDatasetDetail(_0x1bd17['str']('code')),_0x49c47b=Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x16e)])?_0x5820e7[_0x211d6f(0x16e)]:Array['isArray'](_0x5820e7[_0x211d6f(0x18e)])?_0x5820e7['properties']:[];let _0x2e2fa1=_0x49c47b[_0x211d6f(0x1ae)](_0x323524=>normalizeField(_0x323524))['filter'](_0x59b91d=>_0x59b91d!==null);_0x2e2fa1[_0x211d6f(0x1ab)]===0x0&&(_0x2e2fa1=await loadListFieldFallback(_0x1bd17[_0x211d6f(0x187)],_0x1bd17[_0x211d6f(0x19c)](_0x211d6f(0x16c))));const _0x3679fa=_0x5820e7[_0x211d6f(0x1af)]??{},_0x316b81=[];for(const [_0x2170a5,_0x210b98]of Object[_0x211d6f(0x1aa)](_0x3679fa)){const _0x5f3a31=normalizeOperationEntry(_0x2170a5,_0x210b98);if(_0x5f3a31)_0x316b81[_0x211d6f(0x19d)](_0x5f3a31);}const _0x48fc39=_0x5820e7[_0x211d6f(0x198)]??{},_0x3cb2b5=_0x5820e7[_0x211d6f(0x19a)]??{},_0x2c4d56=_0x48fc39[_0x211d6f(0x17f)]!=null?{'id':_0x48fc39[_0x211d6f(0x17f)],'name':_0x48fc39[_0x211d6f(0x17e)]??null}:undefined;let _0x6d89be;return typeof _0x5820e7[_0x211d6f(0x192)]===_0x211d6f(0x168)&&(_0x6d89be=parseJsonMaybe(_0x5820e7[_0x211d6f(0x192)])),{'ok':!![],'data':{'id':_0x5820e7['modelId']??_0x5820e7['id'],'name':_0x5820e7['name'],'code':_0x5820e7['modelCode']||_0x5820e7[_0x211d6f(0x16c)],'doVersion':_0x5820e7[_0x211d6f(0x172)],'description':_0x5820e7[_0x211d6f(0x176)]||_0x3cb2b5[_0x211d6f(0x16f)]||undefined,'source':_0x5820e7[_0x211d6f(0x196)]||_0x3cb2b5[_0x211d6f(0x190)],'table':_0x48fc39[_0x211d6f(0x18f)]||_0x3cb2b5['tableName'],'datasetKey':_0x48fc39[_0x211d6f(0x173)],'pk':_0x48fc39[_0x211d6f(0x181)],'db':_0x2c4d56,'dbtable':summarizeDbtable(_0x48fc39),'fields':_0x2e2fa1,'operations':_0x316b81,'indexes':Array[_0x211d6f(0x1a2)](_0x3cb2b5[_0x211d6f(0x179)])?_0x3cb2b5[_0x211d6f(0x179)]:[],'relations':_0x5820e7[_0x211d6f(0x1a0)]??null,'relatedPages':normalizeRelatedPages(_0x5820e7[_0x211d6f(0x175)]),...Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x19e)])?{'columnCodeListWithDeleted':_0x5820e7[_0x211d6f(0x19e)]}:{},'formatRules':Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x17b)])?_0x5820e7['formatRules']:[],'validateRules':Array[_0x211d6f(0x1a2)](_0x5820e7[_0x211d6f(0x16a)])?_0x5820e7[_0x211d6f(0x16a)]:[],..._0x6d89be!==undefined?{'extend':_0x6d89be}:{},'stats':{'fieldCount':_0x2e2fa1[_0x211d6f(0x1ab)],'operationCount':_0x316b81['length']}}};}};
1
+ function a26_0x4141(_0x2ef2f1,_0x49175e){_0x2ef2f1=_0x2ef2f1-0x105;const _0x238e6b=a26_0x238e();let _0x4141ca=_0x238e6b[_0x2ef2f1];return _0x4141ca;}const a26_0x24fa67=a26_0x4141;(function(_0x481a93,_0x1535b0){const _0x5779b7=a26_0x4141,_0x6efca0=_0x481a93();while(!![]){try{const _0x1cac45=-parseInt(_0x5779b7(0x139))/0x1+parseInt(_0x5779b7(0x129))/0x2*(-parseInt(_0x5779b7(0x11b))/0x3)+parseInt(_0x5779b7(0x138))/0x4+parseInt(_0x5779b7(0x121))/0x5+parseInt(_0x5779b7(0x10b))/0x6*(-parseInt(_0x5779b7(0x14c))/0x7)+parseInt(_0x5779b7(0x122))/0x8+parseInt(_0x5779b7(0x13d))/0x9*(-parseInt(_0x5779b7(0x131))/0xa);if(_0x1cac45===_0x1535b0)break;else _0x6efca0['push'](_0x6efca0['shift']());}catch(_0x173476){_0x6efca0['push'](_0x6efca0['shift']());}}}(a26_0x238e,0x7be5a));function a26_0x238e(){const _0x161283=['6wYnrip','formatRules','filter','createTimeField','doType','displayName','columnCodeListWithDeleted','string','modelCode','read','options','updateTimeField','modelId','beforeScriptId','operations','str','3EsPMDB','dbName','isArray','requestFields','creatorIdField','entries','1879450aJURsS','3633168vEgyjB','dataset','responseBody','pkField','find','dbtableConfig','doVersion','92942wLYkmX','modifierNameField','dataType','parse','code','object','responseFields','tableName','20NFCMfw','detail','indexes','properties','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','labelField','required','3059140rdLlnJ','558089lEQoyf','split','afterScriptId','extend','840762HpFdHd','trim','allFields','length','fields','dbId','map','datasetKey','method','name','tableComment','modifierIdField','logicField','requestBody','appCode','2071601iOluOW','validateRules','relations','type','host','relatedPageInfoList','deleted','description'];a26_0x238e=function(){return _0x161283;};return a26_0x238e();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x48d325){const _0x2a9a22=a26_0x4141;if(_0x48d325[_0x2a9a22(0x109)])return null;const _0x5b230c=Boolean(_0x48d325['displayName']!==undefined||_0x48d325[_0x2a9a22(0x10f)]!==undefined);let _0x3d37c4={};if(!_0x5b230c&&typeof _0x48d325['extend']==='string')try{_0x3d37c4=JSON['parse'](_0x48d325[_0x2a9a22(0x13c)]);}catch{}const _0x52541e=_0x5b230c?_0x48d325['name']:_0x48d325[_0x2a9a22(0x12d)],_0x1b7aaa=_0x5b230c?_0x48d325[_0x2a9a22(0x110)]:_0x48d325[_0x2a9a22(0x146)],_0x1f7c74=_0x5b230c?_0x48d325[_0x2a9a22(0x10f)]:_0x48d325[_0x2a9a22(0x106)]||_0x48d325[_0x2a9a22(0x12b)],_0x6e3c76=_0x5b230c?_0x48d325['pkField']===!![]:_0x3d37c4[_0x2a9a22(0x125)]===!![],_0x2091c0=_0x5b230c?_0x48d325[_0x2a9a22(0x137)]===!![]:_0x3d37c4['required']===!![],_0x104698=_0x5b230c?_0x48d325[_0x2a9a22(0x115)]??null:_0x3d37c4[_0x2a9a22(0x115)]??null,_0x3d2fc0={'name':_0x52541e,'displayName':_0x1b7aaa||_0x52541e,'type':_0x1f7c74,'dbType':_0x48d325['dbType'],'pk':_0x6e3c76,'required':_0x2091c0,'description':_0x48d325[_0x2a9a22(0x10a)]||undefined};return Array[_0x2a9a22(0x11d)](_0x104698)&&_0x104698[_0x2a9a22(0x140)]>0x0&&(_0x3d2fc0[_0x2a9a22(0x115)]=_0x104698),_0x3d2fc0;}function parseJsonMaybe(_0x5eef39){const _0x41bea2=a26_0x4141;if(typeof _0x5eef39!==_0x41bea2(0x112))return _0x5eef39;try{return JSON[_0x41bea2(0x12c)](_0x5eef39);}catch{return _0x5eef39;}}function normalizeOperationEntry(_0xf0b688,_0x508c31){const _0xe5c1bb=a26_0x4141;if(!_0x508c31||typeof _0x508c31!==_0xe5c1bb(0x12e))return null;if(!_0x508c31[_0xe5c1bb(0x145)]||!_0x508c31['path'])return null;const _0x658dfd={'name':_0xf0b688,'method':_0x508c31['method'],'path':_0x508c31['path']};if(_0x508c31[_0xe5c1bb(0x107)])_0x658dfd[_0xe5c1bb(0x107)]=_0x508c31[_0xe5c1bb(0x107)];if(_0x508c31[_0xe5c1bb(0x14a)]!=null)_0x658dfd[_0xe5c1bb(0x14a)]=parseJsonMaybe(_0x508c31[_0xe5c1bb(0x14a)]);if(_0x508c31['responseBody']!=null)_0x658dfd[_0xe5c1bb(0x124)]=parseJsonMaybe(_0x508c31[_0xe5c1bb(0x124)]);if(_0x508c31['beforeScriptId']!=null)_0x658dfd[_0xe5c1bb(0x118)]=_0x508c31['beforeScriptId'];if(_0x508c31[_0xe5c1bb(0x13b)]!=null)_0x658dfd[_0xe5c1bb(0x13b)]=_0x508c31[_0xe5c1bb(0x13b)];if(Array[_0xe5c1bb(0x11d)](_0x508c31[_0xe5c1bb(0x11e)]))_0x658dfd['requestFields']=_0x508c31[_0xe5c1bb(0x11e)];if(Array[_0xe5c1bb(0x11d)](_0x508c31[_0xe5c1bb(0x12f)]))_0x658dfd[_0xe5c1bb(0x12f)]=_0x508c31[_0xe5c1bb(0x12f)];return _0x658dfd;}function summarizeDbtable(_0x454283){const _0x59369a=a26_0x4141,_0x59dc99={},_0x2862b6=[_0x59369a(0x142),_0x59369a(0x11c),_0x59369a(0x130),_0x59369a(0x144),_0x59369a(0x125),'allFields',_0x59369a(0x149),_0x59369a(0x10e),_0x59369a(0x116),_0x59369a(0x11f),'creatorNameField',_0x59369a(0x148),_0x59369a(0x12a),_0x59369a(0x136),'dblinkInfoDTO'];for(const _0x4e02dd of _0x2862b6){if(_0x454283[_0x4e02dd]!==undefined)_0x59dc99[_0x4e02dd]=_0x454283[_0x4e02dd];}return typeof _0x59dc99[_0x59369a(0x13f)]===_0x59369a(0x112)&&_0x59dc99[_0x59369a(0x13f)][_0x59369a(0x140)]>0x0&&(_0x59dc99['allFieldNames']=_0x59dc99[_0x59369a(0x13f)][_0x59369a(0x13a)](',')[_0x59369a(0x143)](_0x51b5e3=>_0x51b5e3['trim']())[_0x59369a(0x10d)](Boolean)),_0x59dc99;}function normalizeRelatedPages(_0x3134c9){const _0x5976b4=a26_0x4141;if(!Array[_0x5976b4(0x11d)](_0x3134c9))return[];return _0x3134c9[_0x5976b4(0x10d)](_0x30d573=>_0x30d573&&typeof _0x30d573===_0x5976b4(0x12e))[_0x5976b4(0x143)](_0x46671f=>({'id':_0x46671f['id'],'type':_0x46671f[_0x5976b4(0x106)],'code':_0x46671f['code'],'title':_0x46671f['title'],'deleted':_0x46671f[_0x5976b4(0x109)]===!![]}));}function normalizeFallbackFieldName(_0x278cc9,_0x6b0462){const _0xa94fdb=a26_0x4141,_0x6819b1=_0x278cc9[_0xa94fdb(0x13e)]();if(!_0x6819b1)return null;return{'name':_0x6819b1,'displayName':_0x6819b1,'type':undefined,'dbType':undefined,'pk':_0x6819b1===_0x6b0462,'required':![],'description':undefined};}async function loadListFieldFallback(_0x249263,_0x4b2168){const _0x415d55=a26_0x4141;if(!_0x249263||!_0x4b2168)return[];try{const _0x4cd742=await listDatasets(_0x249263,{'code':_0x4b2168}),_0x448b37=_0x4cd742[_0x415d55(0x126)](_0x26c93b=>_0x26c93b[_0x415d55(0x12d)]===_0x4b2168)??_0x4cd742[0x0],_0x235f43=_0x448b37?.[_0x415d55(0x127)]??{},_0x3c5e4f=typeof _0x235f43[_0x415d55(0x13f)]===_0x415d55(0x112)?_0x235f43[_0x415d55(0x13f)]['split'](','):[];return _0x3c5e4f['map'](_0x125643=>normalizeFallbackFieldName(_0x125643,_0x235f43[_0x415d55(0x125)]))['filter'](_0x5354b9=>_0x5354b9!==null);}catch{return[];}}export const datasetDetail={'service':a26_0x24fa67(0x123),'command':a26_0x24fa67(0x132),'description':a26_0x24fa67(0x135),'risk':a26_0x24fa67(0x114),'flags':[CODE_FLAG],async 'execute'(_0x2b7924){const _0x3f56f1=a26_0x24fa67,_0x274917=await getDatasetDetail(_0x2b7924[_0x3f56f1(0x11a)](_0x3f56f1(0x12d))),_0x426c38=Array[_0x3f56f1(0x11d)](_0x274917['fields'])?_0x274917[_0x3f56f1(0x141)]:Array[_0x3f56f1(0x11d)](_0x274917[_0x3f56f1(0x134)])?_0x274917[_0x3f56f1(0x134)]:[];let _0x4c4811=_0x426c38[_0x3f56f1(0x143)](_0x277ea3=>normalizeField(_0x277ea3))[_0x3f56f1(0x10d)](_0x4b5244=>_0x4b5244!==null);_0x4c4811[_0x3f56f1(0x140)]===0x0&&(_0x4c4811=await loadListFieldFallback(_0x2b7924[_0x3f56f1(0x14b)],_0x2b7924[_0x3f56f1(0x11a)](_0x3f56f1(0x12d))));const _0x3c7c28=_0x274917[_0x3f56f1(0x119)]??{},_0x173e3b=[];for(const [_0x149687,_0x3cf425]of Object[_0x3f56f1(0x120)](_0x3c7c28)){const _0x458091=normalizeOperationEntry(_0x149687,_0x3cf425);if(_0x458091)_0x173e3b['push'](_0x458091);}const _0x47386f=_0x274917['dbtableConfig']??{},_0x219708=_0x274917['dataset']??{},_0x12e75b=_0x47386f['dbId']!=null?{'id':_0x47386f[_0x3f56f1(0x142)],'name':_0x47386f[_0x3f56f1(0x11c)]??null}:undefined;let _0x580897;return typeof _0x274917['extend']===_0x3f56f1(0x112)&&(_0x580897=parseJsonMaybe(_0x274917[_0x3f56f1(0x13c)])),{'ok':!![],'data':{'id':_0x274917[_0x3f56f1(0x117)]??_0x274917['id'],'name':_0x274917[_0x3f56f1(0x146)],'code':_0x274917[_0x3f56f1(0x113)]||_0x274917[_0x3f56f1(0x12d)],'doVersion':_0x274917[_0x3f56f1(0x128)],'description':_0x274917[_0x3f56f1(0x10a)]||_0x219708[_0x3f56f1(0x147)]||undefined,'source':_0x274917['source']||_0x219708['sourceType'],'table':_0x47386f[_0x3f56f1(0x130)]||_0x219708['tableName'],'datasetKey':_0x47386f['datasetKey'],'pk':_0x47386f['pkField'],'db':_0x12e75b,'dbtable':summarizeDbtable(_0x47386f),'fields':_0x4c4811,'operations':_0x173e3b,'indexes':Array[_0x3f56f1(0x11d)](_0x219708[_0x3f56f1(0x133)])?_0x219708[_0x3f56f1(0x133)]:[],'relations':_0x274917[_0x3f56f1(0x105)]??null,'relatedPages':normalizeRelatedPages(_0x274917[_0x3f56f1(0x108)]),...Array[_0x3f56f1(0x11d)](_0x274917[_0x3f56f1(0x111)])?{'columnCodeListWithDeleted':_0x274917[_0x3f56f1(0x111)]}:{},'formatRules':Array['isArray'](_0x274917[_0x3f56f1(0x10c)])?_0x274917[_0x3f56f1(0x10c)]:[],'validateRules':Array[_0x3f56f1(0x11d)](_0x274917[_0x3f56f1(0x14d)])?_0x274917[_0x3f56f1(0x14d)]:[],..._0x580897!==undefined?{'extend':_0x580897}:{},'stats':{'fieldCount':_0x4c4811['length'],'operationCount':_0x173e3b[_0x3f56f1(0x140)]}}};}};
@@ -1 +1 @@
1
- (function(_0x42021a,_0x161231){const _0x2dff84=a27_0x505e,_0x26f614=_0x42021a();while(!![]){try{const _0x463f10=-parseInt(_0x2dff84(0x1d0))/0x1*(parseInt(_0x2dff84(0x1c7))/0x2)+-parseInt(_0x2dff84(0x1cc))/0x3*(-parseInt(_0x2dff84(0x1c9))/0x4)+parseInt(_0x2dff84(0x1cf))/0x5+-parseInt(_0x2dff84(0x1ca))/0x6+parseInt(_0x2dff84(0x1cb))/0x7*(parseInt(_0x2dff84(0x1d1))/0x8)+-parseInt(_0x2dff84(0x1cd))/0x9*(parseInt(_0x2dff84(0x1c8))/0xa)+-parseInt(_0x2dff84(0x1ce))/0xb*(parseInt(_0x2dff84(0x1c6))/0xc);if(_0x463f10===_0x161231)break;else _0x26f614['push'](_0x26f614['shift']());}catch(_0x1d879d){_0x26f614['push'](_0x26f614['shift']());}}}(a27_0x257f,0x43ce4));function a27_0x505e(_0x1caa92,_0x6aefe1){_0x1caa92=_0x1caa92-0x1c6;const _0x257f61=a27_0x257f();let _0x505e10=_0x257f61[_0x1caa92];return _0x505e10;}function a27_0x257f(){const _0x463561=['36iRlTvV','10288VoUIYi','1204460tjRUTC','56gDqUwn','2055234pKnCyg','7dKenaT','118677IVIfJm','27KHRdnI','373571dcbUJr','2757200pIGJjj','63ybjkaQ','2418384EobpfE'];a27_0x257f=function(){return _0x463561;};return a27_0x257f();}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 a27_0x411e(_0x291003,_0x2c45c9){_0x291003=_0x291003-0xb2;const _0xe2a4a5=a27_0xe2a4();let _0x411e74=_0xe2a4a5[_0x291003];return _0x411e74;}(function(_0x5c58cf,_0x16a7dc){const _0x37be45=a27_0x411e,_0x3fb15d=_0x5c58cf();while(!![]){try{const _0xdde6bb=parseInt(_0x37be45(0xbb))/0x1+parseInt(_0x37be45(0xb7))/0x2*(parseInt(_0x37be45(0xb2))/0x3)+parseInt(_0x37be45(0xb5))/0x4*(parseInt(_0x37be45(0xb4))/0x5)+-parseInt(_0x37be45(0xb8))/0x6+parseInt(_0x37be45(0xb6))/0x7*(-parseInt(_0x37be45(0xba))/0x8)+-parseInt(_0x37be45(0xb9))/0x9+parseInt(_0x37be45(0xb3))/0xa;if(_0xdde6bb===_0x16a7dc)break;else _0x3fb15d['push'](_0x3fb15d['shift']());}catch(_0x491e4f){_0x3fb15d['push'](_0x3fb15d['shift']());}}}(a27_0xe2a4,0xde74f));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0xe2a4(){const _0x3d9a36=['2701376aJWVkd','146503qufJyz','522320seAefr','2141586tauyfv','8288829ZuhEmz','296kvBoAE','298506GDXPEE','18NgfHRM','4226580HfJpyB','5aOrSEl'];a27_0xe2a4=function(){return _0x3d9a36;};return a27_0xe2a4();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a28_0x1da892=a28_0x2613;function a28_0x2613(_0x307894,_0x4be664){_0x307894=_0x307894-0x1ca;const _0x54b7d8=a28_0x54b7();let _0x26133e=_0x54b7d8[_0x307894];return _0x26133e;}(function(_0x421373,_0x426260){const _0x2032a7=a28_0x2613,_0x2f9d45=_0x421373();while(!![]){try{const _0x26884f=-parseInt(_0x2032a7(0x1d7))/0x1+-parseInt(_0x2032a7(0x1df))/0x2*(parseInt(_0x2032a7(0x1e2))/0x3)+-parseInt(_0x2032a7(0x1cb))/0x4*(parseInt(_0x2032a7(0x1dd))/0x5)+-parseInt(_0x2032a7(0x1cf))/0x6+parseInt(_0x2032a7(0x1cc))/0x7*(parseInt(_0x2032a7(0x1e4))/0x8)+-parseInt(_0x2032a7(0x1d5))/0x9*(-parseInt(_0x2032a7(0x1d4))/0xa)+parseInt(_0x2032a7(0x1d8))/0xb;if(_0x26884f===_0x426260)break;else _0x2f9d45['push'](_0x2f9d45['shift']());}catch(_0xb8b311){_0x2f9d45['push'](_0x2f9d45['shift']());}}}(a28_0x54b7,0x4e706));import{listDatasets}from'../../core/api-client.js';function a28_0x54b7(){const _0x1acec1=['dataset','612188OWLbWz','12371150aAbJJU','list','str','map','name','1150enLnvk','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','446eRsqEb','pkField','datasetKey','387ZYWmvn','allFields','580240lEbhCQ','appCode','9808vosIZy','21IrUeAn','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','string','1065150WNwNiE','read','tableName','description','code','1807430pUixpg','18EDJfAT'];a28_0x54b7=function(){return _0x1acec1;};return a28_0x54b7();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x1da892(0x1d6),'command':a28_0x1da892(0x1d9),'description':a28_0x1da892(0x1de),'risk':a28_0x1da892(0x1d0),'flags':[{'name':'name','type':a28_0x1da892(0x1ce),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a28_0x1da892(0x1cd)}],async 'execute'(_0x270cf9){const _0x346824=a28_0x1da892,_0x5e592a=_0x270cf9[_0x346824(0x1da)](_0x346824(0x1dc)),_0x586dc0=_0x270cf9[_0x346824(0x1da)](_0x346824(0x1d3)),_0x186728=await listDatasets(_0x270cf9[_0x346824(0x1ca)],{..._0x5e592a&&{'name':_0x5e592a},..._0x586dc0&&{'code':_0x586dc0}});return{'ok':!![],'data':{'total':_0x186728['length'],'datasets':_0x186728[_0x346824(0x1db)](_0x3b4998=>{const _0x5370eb=_0x346824,_0x31a646=_0x3b4998['dbtableConfig']??{};return{'id':_0x3b4998['id'],'code':_0x3b4998[_0x5370eb(0x1d3)],'name':_0x3b4998[_0x5370eb(0x1dc)],'source':_0x3b4998['source'],'description':_0x3b4998[_0x5370eb(0x1d2)],'table':_0x31a646[_0x5370eb(0x1d1)],'datasetKey':_0x31a646[_0x5370eb(0x1e1)],'pk':_0x31a646[_0x5370eb(0x1e0)],'fields':_0x31a646[_0x5370eb(0x1e3)]?_0x31a646[_0x5370eb(0x1e3)]['split'](',')['map'](_0x1d2b72=>_0x1d2b72['trim']()):[]};})}};}};
1
+ function a28_0x3a8c(_0x458567,_0x174199){_0x458567=_0x458567-0x90;const _0x18838d=a28_0x1883();let _0x3a8c8a=_0x18838d[_0x458567];return _0x3a8c8a;}const a28_0x175549=a28_0x3a8c;(function(_0x2c9c5b,_0x5f292b){const _0x4cb6ee=a28_0x3a8c,_0x25fbe2=_0x2c9c5b();while(!![]){try{const _0x71c61c=parseInt(_0x4cb6ee(0xab))/0x1*(parseInt(_0x4cb6ee(0xa3))/0x2)+-parseInt(_0x4cb6ee(0x92))/0x3*(-parseInt(_0x4cb6ee(0x9d))/0x4)+-parseInt(_0x4cb6ee(0x97))/0x5+-parseInt(_0x4cb6ee(0xac))/0x6*(parseInt(_0x4cb6ee(0x99))/0x7)+-parseInt(_0x4cb6ee(0x93))/0x8*(-parseInt(_0x4cb6ee(0xaa))/0x9)+-parseInt(_0x4cb6ee(0x9b))/0xa+-parseInt(_0x4cb6ee(0xa9))/0xb*(-parseInt(_0x4cb6ee(0xa5))/0xc);if(_0x71c61c===_0x5f292b)break;else _0x25fbe2['push'](_0x25fbe2['shift']());}catch(_0x548bc4){_0x25fbe2['push'](_0x25fbe2['shift']());}}}(a28_0x1883,0x90f98));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x1883(){const _0x5b691d=['List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','datasetKey','3OQnlhZ','12976yUZYVT','name','source','split','4786800XNEBad','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','5460KArroT','appCode','2833880gSHsIt','pkField','2867608gxWjCB','map','description','read','length','str','394rOYhCQ','allFields','13971012pwEWaS','code','string','dataset','11fdvrhp','594SVegsc','4787FrxvRP','8436LtHCGF','list','dbtableConfig'];a28_0x1883=function(){return _0x5b691d;};return a28_0x1883();}export const datasetList={'service':a28_0x175549(0xa8),'command':a28_0x175549(0xad),'description':a28_0x175549(0x90),'risk':a28_0x175549(0xa0),'flags':[{'name':'name','type':a28_0x175549(0xa7),'description':a28_0x175549(0x98)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x1e8e2f){const _0x1c4d45=a28_0x175549,_0x725abc=_0x1e8e2f[_0x1c4d45(0xa2)](_0x1c4d45(0x94)),_0x38e974=_0x1e8e2f[_0x1c4d45(0xa2)](_0x1c4d45(0xa6)),_0x2be072=await listDatasets(_0x1e8e2f[_0x1c4d45(0x9a)],{..._0x725abc&&{'name':_0x725abc},..._0x38e974&&{'code':_0x38e974}});return{'ok':!![],'data':{'total':_0x2be072[_0x1c4d45(0xa1)],'datasets':_0x2be072[_0x1c4d45(0x9e)](_0x2f13bd=>{const _0xd08816=_0x1c4d45,_0x3ef882=_0x2f13bd[_0xd08816(0xae)]??{};return{'id':_0x2f13bd['id'],'code':_0x2f13bd[_0xd08816(0xa6)],'name':_0x2f13bd[_0xd08816(0x94)],'source':_0x2f13bd[_0xd08816(0x95)],'description':_0x2f13bd[_0xd08816(0x9f)],'table':_0x3ef882['tableName'],'datasetKey':_0x3ef882[_0xd08816(0x91)],'pk':_0x3ef882[_0xd08816(0x9c)],'fields':_0x3ef882[_0xd08816(0xa4)]?_0x3ef882[_0xd08816(0xa4)][_0xd08816(0x96)](',')[_0xd08816(0x9e)](_0x1631a6=>_0x1631a6['trim']()):[]};})}};}};
@@ -1 +1 @@
1
- const a29_0x350e96=a29_0x25de;(function(_0x47121f,_0xa7681){const _0x2ae989=a29_0x25de,_0x36314c=_0x47121f();while(!![]){try{const _0x21cae0=parseInt(_0x2ae989(0x71))/0x1*(-parseInt(_0x2ae989(0x7a))/0x2)+-parseInt(_0x2ae989(0x74))/0x3*(-parseInt(_0x2ae989(0x7c))/0x4)+parseInt(_0x2ae989(0x77))/0x5+parseInt(_0x2ae989(0x70))/0x6+-parseInt(_0x2ae989(0x73))/0x7+-parseInt(_0x2ae989(0x7b))/0x8*(parseInt(_0x2ae989(0x7d))/0x9)+parseInt(_0x2ae989(0x6f))/0xa;if(_0x21cae0===_0xa7681)break;else _0x36314c['push'](_0x36314c['shift']());}catch(_0x52e817){_0x36314c['push'](_0x36314c['shift']());}}}(a29_0x3c90,0x31857));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a29_0x25de(_0x43ae8d,_0x886cda){_0x43ae8d=_0x43ae8d-0x6f;const _0x3c9012=a29_0x3c90();let _0x25deb7=_0x3c9012[_0x43ae8d];return _0x25deb7;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x350e96(0x72);export function formatDatasetSdkMarkdown(_0x3b54a5){const _0x5871b6=a29_0x350e96,_0xdec1b5=typeof _0x3b54a5===_0x5871b6(0x7e)?_0x3b54a5['trim']():'';return _0xdec1b5||DEFAULT_MARKDOWN;}function a29_0x3c90(){const _0x2670d5=['sdk-doc','981870OuSNhH','2327112RENWXJ','348355CvTVsI','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','785274iTvqRG','972SqUXlx','appCode','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','1295425eRRrvp','dataset','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2HtKVXv','422896fYAaYK','296lbQsYC','18VaQpBy','string','code','read'];a29_0x3c90=function(){return _0x2670d5;};return a29_0x3c90();}export const datasetSdkDoc={'service':a29_0x350e96(0x78),'command':a29_0x350e96(0x81),'description':a29_0x350e96(0x76),'risk':a29_0x350e96(0x80),'flags':[{...CODE_FLAG,'description':a29_0x350e96(0x79)}],async 'execute'(_0x316098){const _0x499900=a29_0x350e96,_0x562f28=_0x316098['str'](_0x499900(0x7f)),_0x29f9ec=await getDatasetSdkUsageDoc(_0x562f28,_0x316098[_0x499900(0x75)]);return{'ok':!![],'data':{'code':_0x562f28,'appCode':_0x316098[_0x499900(0x75)],'markdown':formatDatasetSdkMarkdown(_0x29f9ec)}};}};
1
+ const a29_0x406bd5=a29_0x5b41;(function(_0x45d392,_0x3fe32a){const _0x10a46a=a29_0x5b41,_0x1c9eef=_0x45d392();while(!![]){try{const _0x39ac7d=-parseInt(_0x10a46a(0x83))/0x1*(-parseInt(_0x10a46a(0x7c))/0x2)+-parseInt(_0x10a46a(0x79))/0x3*(-parseInt(_0x10a46a(0x7a))/0x4)+parseInt(_0x10a46a(0x82))/0x5+-parseInt(_0x10a46a(0x80))/0x6+-parseInt(_0x10a46a(0x7e))/0x7+-parseInt(_0x10a46a(0x75))/0x8*(parseInt(_0x10a46a(0x70))/0x9)+-parseInt(_0x10a46a(0x74))/0xa*(-parseInt(_0x10a46a(0x72))/0xb);if(_0x39ac7d===_0x3fe32a)break;else _0x1c9eef['push'](_0x1c9eef['shift']());}catch(_0x18e652){_0x1c9eef['push'](_0x1c9eef['shift']());}}}(a29_0x2bc1,0x55267));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a29_0x2bc1(){const _0x36b1fc=['Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','appCode','sdk-doc','21wXipZy','114076TIrdBl','dataset','6hHBFGO','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','613774efacix','str','3621996TdzPgI','trim','775375fUrjgw','34113KmwpbX','6813DVZJLI','code','1947NFCotC','read','40170hPgcGr','1352wWPhHe'];a29_0x2bc1=function(){return _0x36b1fc;};return a29_0x2bc1();}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.';export function formatDatasetSdkMarkdown(_0x406436){const _0xfbc985=a29_0x5b41,_0x555ed1=typeof _0x406436==='string'?_0x406436[_0xfbc985(0x81)]():'';return _0x555ed1||DEFAULT_MARKDOWN;}function a29_0x5b41(_0x3ec84f,_0x58d482){_0x3ec84f=_0x3ec84f-0x70;const _0x2bc1dd=a29_0x2bc1();let _0x5b4104=_0x2bc1dd[_0x3ec84f];return _0x5b4104;}export const datasetSdkDoc={'service':a29_0x406bd5(0x7b),'command':a29_0x406bd5(0x78),'description':a29_0x406bd5(0x76),'risk':a29_0x406bd5(0x73),'flags':[{...CODE_FLAG,'description':a29_0x406bd5(0x7d)}],async 'execute'(_0x19df13){const _0x2d1fa7=a29_0x406bd5,_0x4571f0=_0x19df13[_0x2d1fa7(0x7f)](_0x2d1fa7(0x71)),_0x4d34cf=await getDatasetSdkUsageDoc(_0x4571f0,_0x19df13[_0x2d1fa7(0x77)]);return{'ok':!![],'data':{'code':_0x4571f0,'appCode':_0x19df13['appCode'],'markdown':formatDatasetSdkMarkdown(_0x4d34cf)}};}};
@@ -1 +1 @@
1
- const a30_0x3a2fca=a30_0x590f;(function(_0xfe9a3a,_0x881d57){const _0x470924=a30_0x590f,_0x504237=_0xfe9a3a();while(!![]){try{const _0x4547ce=-parseInt(_0x470924(0x126))/0x1*(-parseInt(_0x470924(0x135))/0x2)+-parseInt(_0x470924(0x149))/0x3+parseInt(_0x470924(0x159))/0x4+-parseInt(_0x470924(0x134))/0x5+parseInt(_0x470924(0x176))/0x6*(parseInt(_0x470924(0x123))/0x7)+-parseInt(_0x470924(0x12a))/0x8+parseInt(_0x470924(0x13d))/0x9;if(_0x4547ce===_0x881d57)break;else _0x504237['push'](_0x504237['shift']());}catch(_0x10a0d8){_0x504237['push'](_0x504237['shift']());}}}(a30_0x170b,0x2764c));function a30_0x590f(_0x4c43d2,_0x7a782d){_0x4c43d2=_0x4c43d2-0x108;const _0x170b0a=a30_0x170b();let _0x590fd8=_0x170b0a[_0x4c43d2];return _0x590fd8;}import a30_0x4eee03 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a30_0x170b(){const _0x234c89=['reason','✓\x20current','yellow','bold','repeat','Project','1915098iqIylg','✓\x20Loaded','services','version','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','global','Global','(missing)','(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','repairCommand','\x20config\x20delete\x20inherit\x20--global','\x20config\x20delete\x20inherit','call','name','\x20config\x20delete\x20routing\x20--global','gray','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','prototype','\x20commands)','\x20(accessKey)','(set,\x20length=','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20─','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','globalConfig','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','packageVersion','green','7fXYNsH','registryPath','state','2sWlTeE','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','length','2275152UmxQhj','\x20\x20Config\x20JSON','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','source','\x20doctor','(not\x20set)','status','hasOwnProperty','\x20\x20Routing\x20Configuration','153765heUnQY','212408AeMGzX','\x20+\x20','arch','region','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','commandCount','skillVersion','561789pSQFJT','message','\x20\x20Repair\x20project:\x20\x20\x20','project','ignored\x20in\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(invalid)','red','projectConfig','filter','\x20\x20Built-in\x20Skill','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','489858TPIxGm','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','locale','currentApp','inherit','platform','ClientAk','log','\x20\x20API\x20Endpoints','\x20\x20runtimeDomain:\x20\x20\x20','⚠\x20Empty','\x20\x20Country/Region\x20Configuration','183108uDvgci','pageSize','path','padEnd','Diagnose\x20CLI\x20configuration\x20and\x20environment','appCode','join','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(default:\x20','doctor','\x20\x20Repair\x20global:\x20\x20\x20\x20','accessKey','defaultApp','(unnamed)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','✗\x20Invalid','read','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','includes','\x20config'];a30_0x170b=function(){return _0x234c89;};return a30_0x170b();}async function execute(_0x562cac){const _0x88baee=a30_0x590f,_0x2b9fa2=getCliVersion(),_0x3a309a=buildConfigFromFlags({});let _0x2e28c6,_0x32c26f;try{_0x2e28c6=normalizeLovrabetRegion(_0x3a309a['raw']['region']);}catch(_0xea2c0f){_0x32c26f=_0xea2c0f instanceof Error?_0xea2c0f:new Error(String(_0xea2c0f));}let _0x29b9e1;if(!_0x32c26f)try{await initGlobalEnvironment(_0x3a309a);}catch(_0xe276c){_0x29b9e1=_0xe276c instanceof Error?_0xe276c:new Error(String(_0xe276c));}console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](CLI_BIN_NAME+_0x88baee(0x12f))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)]('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2b9fa2),console[_0x88baee(0x154)](_0x88baee(0x117)+process[_0x88baee(0x179)]),console[_0x88baee(0x154)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x88baee(0x152)]+'\x20'+process[_0x88baee(0x137)]);const _0x4eb082=inspectBuiltinSkill();console[_0x88baee(0x154)](),console['log'](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x147))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)]('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4eb082[_0x88baee(0x125)]===_0x88baee(0x11f)?a30_0x4eee03['green'](_0x88baee(0x171)):a30_0x4eee03[_0x88baee(0x144)]('✗\x20'+_0x4eb082['state']))),console[_0x88baee(0x154)](_0x88baee(0x10f)+_0x4eb082[_0x88baee(0x121)]),console[_0x88baee(0x154)](_0x88baee(0x114)+(_0x4eb082[_0x88baee(0x13c)]||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17f)))),console[_0x88baee(0x154)](_0x88baee(0x116)+(_0x4eb082['installedPath']||a30_0x4eee03[_0x88baee(0x10d)]('(not\x20found)')));_0x4eb082[_0x88baee(0x125)]!=='current'&&console[_0x88baee(0x154)](_0x88baee(0x127)+_0x4eb082[_0x88baee(0x183)]);_0x4eb082[_0x88baee(0x170)]&&console[_0x88baee(0x154)](_0x88baee(0x12c)+_0x4eb082['reason']);console['log'](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Config\x20Files')),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));const _0x1a595e=getGlobalConfigPath(),_0x4b774b=getProjectConfigPath();console[_0x88baee(0x154)](_0x88baee(0x11c)+(_0x1a595e||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17a)))),console[_0x88baee(0x154)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b774b||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x17a)))),console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03['bold'](_0x88baee(0x12b))),console['log'](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));const _0x12d8a8=(_0x2a36b5,_0x820f2d)=>{const _0x47443b=_0x88baee;if(!_0x820f2d){console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x10d)]('(no\x20file)'));return;}const _0x5f185c=inspectCliConfigJsonFile(_0x820f2d);if(_0x5f185c[_0x47443b(0x131)]==='ok')console['log']('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03['green']('✓\x20Valid\x20JSON'));else{if(_0x5f185c[_0x47443b(0x131)]===_0x47443b(0x12d))console['log']('\x20\x20'+_0x2a36b5['padEnd'](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x172)](_0x47443b(0x11b)));else _0x5f185c[_0x47443b(0x131)]==='missing'?console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x10d)]('(missing)')):(console[_0x47443b(0x154)]('\x20\x20'+_0x2a36b5['padEnd'](0x11)+'\x20'+a30_0x4eee03['red']('✗\x20Invalid\x20JSON')),console[_0x47443b(0x154)]('\x20\x20'+''[_0x47443b(0x15c)](0x11)+'\x20'+a30_0x4eee03[_0x47443b(0x144)](_0x5f185c[_0x47443b(0x13e)])));}};_0x12d8a8(_0x88baee(0x17e),_0x1a595e),_0x12d8a8(_0x88baee(0x175),_0x4b774b);const _0x3820e2=loadRawConfigLayers(),_0x34b55b=[Object['prototype'][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],_0x88baee(0x151))?_0x88baee(0x17d):null,Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2['projectConfig'],_0x88baee(0x151))?_0x88baee(0x140):null][_0x88baee(0x146)](Boolean);_0x34b55b[_0x88baee(0x129)]>0x0&&(console[_0x88baee(0x154)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x4eee03[_0x88baee(0x172)](_0x88baee(0x141)+_0x34b55b[_0x88baee(0x15f)](_0x88baee(0x136))+_0x88baee(0x16f))),_0x34b55b[_0x88baee(0x16e)](_0x88baee(0x140))&&console['log'](_0x88baee(0x13f)+CLI_BIN_NAME+_0x88baee(0x109)),_0x34b55b[_0x88baee(0x16e)](_0x88baee(0x17d))&&console[_0x88baee(0x154)](_0x88baee(0x166)+CLI_BIN_NAME+_0x88baee(0x108)));_0x29b9e1&&(console['log'](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x133))),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x139)+a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x16b))),console[_0x88baee(0x154)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x29b9e1['message']),Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x145)],'routing')&&console[_0x88baee(0x154)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],'routing')&&console[_0x88baee(0x154)](_0x88baee(0x14c)+CLI_BIN_NAME+_0x88baee(0x10c)));_0x32c26f&&(console['log'](),console[_0x88baee(0x154)](a30_0x4eee03['bold'](_0x88baee(0x158))),console[_0x88baee(0x154)](a30_0x4eee03['gray']('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x139)+a30_0x4eee03['red'](_0x88baee(0x16b))),console[_0x88baee(0x154)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x32c26f[_0x88baee(0x13e)]),Object['prototype']['hasOwnProperty']['call'](_0x3820e2[_0x88baee(0x145)],_0x88baee(0x138))&&console[_0x88baee(0x154)](_0x88baee(0x182)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x88baee(0x110)][_0x88baee(0x132)][_0x88baee(0x10a)](_0x3820e2[_0x88baee(0x11a)],_0x88baee(0x138))&&console[_0x88baee(0x154)](_0x88baee(0x14c)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Merged\x20Config')),console[_0x88baee(0x154)](a30_0x4eee03['gray'](_0x88baee(0x115)[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x17b)+(_0x3a309a[_0x88baee(0x15e)]||a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x130)))),console['log'](_0x88baee(0x148)+(_0x2e28c6??a30_0x4eee03[_0x88baee(0x144)](_0x88baee(0x143)))),console[_0x88baee(0x154)](_0x88baee(0x119)+_0x3a309a[_0x88baee(0x14f)]),console[_0x88baee(0x154)](_0x88baee(0x13a)+(_0x3a309a[_0x88baee(0x168)]||a30_0x4eee03['gray'](_0x88baee(0x180)))),console['log'](_0x88baee(0x181)+(_0x3a309a[_0x88baee(0x150)]||a30_0x4eee03['gray'](_0x88baee(0x180)))),console[_0x88baee(0x154)](_0x88baee(0x142)+(_0x3a309a[_0x88baee(0x11e)]||a30_0x4eee03['gray'](_0x88baee(0x164)+DEFAULT_CONFIG_VALUES[_0x88baee(0x11e)]+')'))),console[_0x88baee(0x154)](_0x88baee(0x161)+(_0x3a309a[_0x88baee(0x15a)]??a30_0x4eee03['gray'](_0x88baee(0x17c)))),console[_0x88baee(0x154)](_0x88baee(0x16d)+_0x3a309a[_0x88baee(0x162)]),console[_0x88baee(0x154)](_0x88baee(0x11d)+_0x3a309a[_0x88baee(0x118)]),console[_0x88baee(0x154)](_0x88baee(0x14b)+AUTH_MODE[_0x88baee(0x153)]),console['log'](_0x88baee(0x163)+(_0x3a309a['accessKey']?a30_0x4eee03['green'](_0x88baee(0x113)+_0x3a309a[_0x88baee(0x167)][_0x88baee(0x129)]+')'):a30_0x4eee03[_0x88baee(0x10d)]('(none)'))),console[_0x88baee(0x154)](),console['log'](a30_0x4eee03['bold'](_0x88baee(0x155))),console['log'](a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x115)[_0x88baee(0x174)](0x1e)));_0x29b9e1||_0x32c26f?console['log'](_0x88baee(0x139)+a30_0x4eee03['red'](_0x88baee(0x16a))):(console['log'](_0x88baee(0x10e)+getApiDomain()),console['log'](_0x88baee(0x120)+getUserDomain()),console[_0x88baee(0x154)](_0x88baee(0x156)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()));console[_0x88baee(0x154)](),console['log'](a30_0x4eee03[_0x88baee(0x173)]('\x20\x20Service\x20Tree')),console['log'](a30_0x4eee03['gray']('\x20\x20─'[_0x88baee(0x174)](0x1e)));const _0x3a492b=inspectServiceRegistry();console[_0x88baee(0x154)](_0x88baee(0x14a)+_0x3a492b[_0x88baee(0x124)]),console[_0x88baee(0x154)](_0x88baee(0x139)+formatServiceRegistryStatus(_0x3a492b)),console[_0x88baee(0x154)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a492b['serviceCount']),console[_0x88baee(0x154)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a492b[_0x88baee(0x13b)]);for(const _0x38e898 of _0x3a492b[_0x88baee(0x178)]){console[_0x88baee(0x154)]('\x20\x20'+(_0x38e898['serviceCode']+':')[_0x88baee(0x15c)](0x11)+'\x20'+(_0x38e898[_0x88baee(0x10b)]||a30_0x4eee03[_0x88baee(0x10d)](_0x88baee(0x169)))+'\x20('+_0x38e898['commandCount']+_0x88baee(0x111)),console[_0x88baee(0x154)]('\x20\x20'+''[_0x88baee(0x15c)](0x11)+'\x20Imported\x20from:\x20'+_0x38e898[_0x88baee(0x12e)][_0x88baee(0x15b)]);}return console[_0x88baee(0x154)](),console[_0x88baee(0x154)](a30_0x4eee03[_0x88baee(0x173)](_0x88baee(0x14e))),console['log'](a30_0x4eee03[_0x88baee(0x10d)]('\x20\x20─'[_0x88baee(0x174)](0x1e))),console[_0x88baee(0x154)](_0x88baee(0x14d)+a30_0x4eee03['green'](AUTH_MODE[_0x88baee(0x153)]+_0x88baee(0x112))),console['log'](_0x88baee(0x160)+a30_0x4eee03[_0x88baee(0x10d)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4feff6){const _0x3bb7c6=a30_0x590f;if(_0x4feff6[_0x3bb7c6(0x131)]==='ok')return a30_0x4eee03[_0x3bb7c6(0x122)](_0x3bb7c6(0x177));if(_0x4feff6[_0x3bb7c6(0x131)]===_0x3bb7c6(0x128))return a30_0x4eee03[_0x3bb7c6(0x10d)](_0x3bb7c6(0x17a));if(_0x4feff6[_0x3bb7c6(0x131)]===_0x3bb7c6(0x12d))return a30_0x4eee03[_0x3bb7c6(0x172)](_0x3bb7c6(0x157));return a30_0x4eee03[_0x3bb7c6(0x144)](_0x3bb7c6(0x16b)+(_0x4feff6['message']?':\x20'+_0x4feff6[_0x3bb7c6(0x13e)]:''));}export const doctorDefinition={'service':a30_0x3a2fca(0x165),'command':'check','description':a30_0x3a2fca(0x15d),'risk':a30_0x3a2fca(0x16c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a30_0x12ec(){const _0x523212=['\x20\x20Auth','log','\x20\x20Merged\x20Config','1071606GwWlcy','pageSize','call','1302712IpyYmQ','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','status','yellow','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','repairCommand','includes','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','921035crqkWw','commandCount','\x20config\x20delete\x20routing\x20--global','raw','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','916sUHAJX','\x20\x20Installed\x20Path:\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','doctor','(not\x20found)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(default)','project','\x20\x20Config\x20Files','\x20doctor','\x20\x20Built-in\x20Skill','\x20\x20Repair\x20project:\x20\x20','read','padEnd','\x20config','\x20+\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','globalConfig','format','join','region','serviceCount','⚠\x20Empty','path','\x20config\x20delete\x20routing','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','(no\x20file)','(set,\x20length=','red','Diagnose\x20CLI\x20configuration\x20and\x20environment','inherit','Global','packageVersion','state','version','length','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','hasOwnProperty','\x20config\x20delete\x20inherit','check','arch','(missing)','\x20Imported\x20from:\x20','filter','\x20\x20Config\x20JSON','serviceCode','✓\x20Valid\x20JSON','appCode','ignored\x20in\x20','✗\x20Invalid\x20JSON','4cwrTMQ','928326RQtgHB','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','5326092HjXTlG','✓\x20Loaded','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20init','\x20\x20Package\x20Version:\x20','locale','\x20\x20Routing\x20Configuration','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20Session\x20check:\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','verbose','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','green','repeat','services','ClientAk','2733ymMDiq','gray','name','projectConfig','\x20\x20Skill\x20Version:\x20\x20\x20','routing','91985hITeRb','message','accessKey','\x20\x20─','(none)','\x20config\x20delete\x20region','(not\x20set)','\x20\x20Repair\x20project:\x20\x20\x20','Project','\x20config\x20delete\x20inherit\x20--global','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','\x20\x20Service\x20Tree','global','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','(default:\x20'];a30_0x12ec=function(){return _0x523212;};return a30_0x12ec();}const a30_0x1e0a0c=a30_0x46c9;(function(_0x417a0e,_0x734461){const _0x318d98=a30_0x46c9,_0x1aa9d9=_0x417a0e();while(!![]){try{const _0x4a12c8=parseInt(_0x318d98(0xda))/0x1+parseInt(_0x318d98(0x105))/0x2*(parseInt(_0x318d98(0xd4))/0x3)+parseInt(_0x318d98(0xc0))/0x4*(parseInt(_0x318d98(0x100))/0x5)+-parseInt(_0x318d98(0xee))/0x6+parseInt(_0x318d98(0xc1))/0x7+parseInt(_0x318d98(0xf1))/0x8+-parseInt(_0x318d98(0xc3))/0x9;if(_0x4a12c8===_0x734461)break;else _0x1aa9d9['push'](_0x1aa9d9['shift']());}catch(_0x417f25){_0x1aa9d9['push'](_0x1aa9d9['shift']());}}}(a30_0x12ec,0x35582));import a30_0x4e8c48 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';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(_0x4c7522){const _0x59a774=a30_0x46c9,_0x2f3ec8=getCliVersion(),_0x4bd0f5=buildConfigFromFlags({});let _0x2de8b4,_0x1629d5;try{_0x2de8b4=normalizeLovrabetRegion(_0x4bd0f5[_0x59a774(0x103)][_0x59a774(0x11a)]);}catch(_0x287287){_0x1629d5=_0x287287 instanceof Error?_0x287287:new Error(String(_0x287287));}let _0x31fe67;if(!_0x1629d5)try{await initGlobalEnvironment(_0x4bd0f5);}catch(_0x33d34e){_0x31fe67=_0x33d34e instanceof Error?_0x33d34e:new Error(String(_0x33d34e));}console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)](CLI_BIN_NAME+_0x59a774(0x10f))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)]('─'[_0x59a774(0xd1)](0x32))),console[_0x59a774(0xec)](_0x59a774(0xca)+_0x2f3ec8),console[_0x59a774(0xec)](_0x59a774(0x120)+process[_0x59a774(0xae)]),console[_0x59a774(0xec)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x59a774(0xb6)]);const _0x514cf8=inspectBuiltinSkill();console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0x110))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)[_0x59a774(0xd1)](0x1e))),console['log'](_0x59a774(0xb0)+(_0x514cf8[_0x59a774(0xad)]==='current'?a30_0x4e8c48['green'](_0x59a774(0x121)):a30_0x4e8c48['red']('✗\x20'+_0x514cf8[_0x59a774(0xad)]))),console['log'](_0x59a774(0xc7)+_0x514cf8[_0x59a774(0xac)]),console[_0x59a774(0xec)](_0x59a774(0xd8)+(_0x514cf8['skillVersion']||a30_0x4e8c48['gray'](_0x59a774(0xb7)))),console['log'](_0x59a774(0x106)+(_0x514cf8['installedPath']||a30_0x4e8c48[_0x59a774(0xd5)]('(not\x20found)')));_0x514cf8[_0x59a774(0xad)]!=='current'&&console[_0x59a774(0xec)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x514cf8[_0x59a774(0xf8)]);_0x514cf8['reason']&&console[_0x59a774(0xec)](_0x59a774(0xfe)+_0x514cf8['reason']);console['log'](),console[_0x59a774(0xec)](a30_0x4e8c48['bold'](_0x59a774(0x10e))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)[_0x59a774(0xd1)](0x1e)));const _0x2c7a18=getGlobalConfigPath(),_0x394f57=getProjectConfigPath();console[_0x59a774(0xec)](_0x59a774(0xf6)+(_0x2c7a18||a30_0x4e8c48['gray'](_0x59a774(0x10a)))),console['log'](_0x59a774(0xfb)+(_0x394f57||a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0x10a)))),console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48['bold'](_0x59a774(0xba))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)[_0x59a774(0xd1)](0x1e)));const _0x24dfb8=(_0x51f013,_0x2d3fcb)=>{const _0x3f2e04=_0x59a774;if(!_0x2d3fcb){console[_0x3f2e04(0xec)]('\x20\x20'+_0x51f013[_0x3f2e04(0x113)](0x11)+'\x20'+a30_0x4e8c48['gray'](_0x3f2e04(0x122)));return;}const _0x22a106=inspectCliConfigJsonFile(_0x2d3fcb);if(_0x22a106['status']==='ok')console['log']('\x20\x20'+_0x51f013[_0x3f2e04(0x113)](0x11)+'\x20'+a30_0x4e8c48[_0x3f2e04(0xd0)](_0x3f2e04(0xbc)));else{if(_0x22a106[_0x3f2e04(0xf3)]==='empty')console[_0x3f2e04(0xec)]('\x20\x20'+_0x51f013[_0x3f2e04(0x113)](0x11)+'\x20'+a30_0x4e8c48[_0x3f2e04(0xf4)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x22a106['status']===_0x3f2e04(0xff)?console['log']('\x20\x20'+_0x51f013[_0x3f2e04(0x113)](0x11)+'\x20'+a30_0x4e8c48[_0x3f2e04(0xd5)](_0x3f2e04(0xb7))):(console[_0x3f2e04(0xec)]('\x20\x20'+_0x51f013[_0x3f2e04(0x113)](0x11)+'\x20'+a30_0x4e8c48[_0x3f2e04(0x124)](_0x3f2e04(0xbf))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a30_0x4e8c48[_0x3f2e04(0x124)](_0x22a106['message'])));}};_0x24dfb8(_0x59a774(0x127),_0x2c7a18),_0x24dfb8(_0x59a774(0xe2),_0x394f57);const _0x4f9d7e=loadRawConfigLayers(),_0x2c04d1=[Object[_0x59a774(0xe5)][_0x59a774(0xb3)][_0x59a774(0xf0)](_0x4f9d7e['globalConfig'],'inherit')?_0x59a774(0xe7):null,Object[_0x59a774(0xe5)][_0x59a774(0xb3)][_0x59a774(0xf0)](_0x4f9d7e[_0x59a774(0xd7)],_0x59a774(0x126))?_0x59a774(0x10d):null][_0x59a774(0xb9)](Boolean);_0x2c04d1[_0x59a774(0xaf)]>0x0&&(console['log'](_0x59a774(0xfd)+a30_0x4e8c48[_0x59a774(0xf4)](_0x59a774(0xbe)+_0x2c04d1[_0x59a774(0x119)](_0x59a774(0x115))+_0x59a774(0x114))),_0x2c04d1[_0x59a774(0xf9)](_0x59a774(0x10d))&&console[_0x59a774(0xec)](_0x59a774(0xe1)+CLI_BIN_NAME+_0x59a774(0xb4)),_0x2c04d1[_0x59a774(0xf9)](_0x59a774(0xe7))&&console[_0x59a774(0xec)](_0x59a774(0x116)+CLI_BIN_NAME+_0x59a774(0xe3)));_0x31fe67&&(console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0xc9))),console[_0x59a774(0xec)](a30_0x4e8c48['gray'](_0x59a774(0xdd)['repeat'](0x1e))),console[_0x59a774(0xec)](_0x59a774(0x11f)+a30_0x4e8c48[_0x59a774(0x124)]('✗\x20Invalid')),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31fe67[_0x59a774(0xdb)]),Object[_0x59a774(0xe5)][_0x59a774(0xb3)]['call'](_0x4f9d7e[_0x59a774(0xd7)],'routing')&&console[_0x59a774(0xec)](_0x59a774(0x111)+CLI_BIN_NAME+_0x59a774(0x11e)),Object[_0x59a774(0xe5)][_0x59a774(0xb3)][_0x59a774(0xf0)](_0x4f9d7e[_0x59a774(0x117)],_0x59a774(0xd9))&&console[_0x59a774(0xec)](_0x59a774(0x108)+CLI_BIN_NAME+_0x59a774(0x102)));_0x1629d5&&(console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0xcb))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)['repeat'](0x1e))),console[_0x59a774(0xec)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a30_0x4e8c48[_0x59a774(0x124)](_0x59a774(0xb1))),console['log'](_0x59a774(0xfe)+_0x1629d5[_0x59a774(0xdb)]),Object[_0x59a774(0xe5)]['hasOwnProperty']['call'](_0x4f9d7e['projectConfig'],'region')&&console[_0x59a774(0xec)](_0x59a774(0x111)+CLI_BIN_NAME+_0x59a774(0xdf)),Object['prototype'][_0x59a774(0xb3)][_0x59a774(0xf0)](_0x4f9d7e[_0x59a774(0x117)],_0x59a774(0x11a))&&console[_0x59a774(0xec)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x59a774(0xc6)));console[_0x59a774(0xec)](),console['log'](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0xed))),console[_0x59a774(0xec)](a30_0x4e8c48['gray'](_0x59a774(0xdd)['repeat'](0x1e))),console[_0x59a774(0xec)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4bd0f5[_0x59a774(0xbd)]||a30_0x4e8c48[_0x59a774(0x124)](_0x59a774(0xe0)))),console[_0x59a774(0xec)](_0x59a774(0xfc)+(_0x2de8b4??a30_0x4e8c48[_0x59a774(0x124)]('(invalid)'))),console[_0x59a774(0xec)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x4bd0f5[_0x59a774(0xc8)]),console[_0x59a774(0xec)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4bd0f5['defaultApp']||a30_0x4e8c48[_0x59a774(0xd5)]('(none)'))),console[_0x59a774(0xec)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4bd0f5['currentApp']||a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xde)))),console[_0x59a774(0xec)](_0x59a774(0xf5)+(_0x4bd0f5['format']||a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xea)+DEFAULT_CONFIG_VALUES[_0x59a774(0x118)]+')'))),console[_0x59a774(0xec)](_0x59a774(0xf2)+(_0x4bd0f5[_0x59a774(0xef)]??a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0x10c)))),console[_0x59a774(0xec)](_0x59a774(0xfa)+_0x4bd0f5['riskLevel']),console['log'](_0x59a774(0xc5)+_0x4bd0f5[_0x59a774(0xce)]),console[_0x59a774(0xec)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x59a774(0xd3)]),console[_0x59a774(0xec)](_0x59a774(0x104)+(_0x4bd0f5[_0x59a774(0xdc)]?a30_0x4e8c48[_0x59a774(0xd0)](_0x59a774(0x123)+_0x4bd0f5[_0x59a774(0xdc)][_0x59a774(0xaf)]+')'):a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xde)))),console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)]('\x20\x20API\x20Endpoints')),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)['repeat'](0x1e)));_0x31fe67||_0x1629d5?console[_0x59a774(0xec)](_0x59a774(0x11f)+a30_0x4e8c48[_0x59a774(0x124)](_0x59a774(0xb2))):(console[_0x59a774(0xec)](_0x59a774(0x107)+getApiDomain()),console[_0x59a774(0xec)](_0x59a774(0xcf)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](_0x59a774(0x10b)+getSkillDomain()));console[_0x59a774(0xec)](),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0xe6))),console['log'](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)[_0x59a774(0xd1)](0x1e)));const _0x117582=inspectServiceRegistry();console[_0x59a774(0xec)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x117582['registryPath']),console[_0x59a774(0xec)](_0x59a774(0x11f)+formatServiceRegistryStatus(_0x117582)),console[_0x59a774(0xec)](_0x59a774(0xe8)+_0x117582[_0x59a774(0x11b)]),console[_0x59a774(0xec)](_0x59a774(0xc2)+_0x117582[_0x59a774(0x101)]);for(const _0x86cd1f of _0x117582[_0x59a774(0xd2)]){console[_0x59a774(0xec)]('\x20\x20'+(_0x86cd1f[_0x59a774(0xbb)]+':')[_0x59a774(0x113)](0x11)+'\x20'+(_0x86cd1f[_0x59a774(0xd6)]||a30_0x4e8c48['gray']('(unnamed)'))+'\x20('+_0x86cd1f[_0x59a774(0x101)]+'\x20commands)'),console[_0x59a774(0xec)]('\x20\x20'+''[_0x59a774(0x113)](0x11)+_0x59a774(0xb8)+_0x86cd1f['source'][_0x59a774(0x11d)]);}return console['log'](),console['log'](a30_0x4e8c48[_0x59a774(0xf7)](_0x59a774(0xeb))),console[_0x59a774(0xec)](a30_0x4e8c48[_0x59a774(0xd5)](_0x59a774(0xdd)[_0x59a774(0xd1)](0x1e))),console['log'](_0x59a774(0xe4)+a30_0x4e8c48[_0x59a774(0xd0)](AUTH_MODE[_0x59a774(0xd3)]+_0x59a774(0xe9))),console[_0x59a774(0xec)](_0x59a774(0xcc)+a30_0x4e8c48['gray'](_0x59a774(0xcd))),console['log'](),{'ok':!![]};}function a30_0x46c9(_0x3d2e44,_0x1c1cbb){_0x3d2e44=_0x3d2e44-0xac;const _0x12ec31=a30_0x12ec();let _0x46c957=_0x12ec31[_0x3d2e44];return _0x46c957;}function formatServiceRegistryStatus(_0x1f215f){const _0x1f4087=a30_0x46c9;if(_0x1f215f['status']==='ok')return a30_0x4e8c48[_0x1f4087(0xd0)](_0x1f4087(0xc4));if(_0x1f215f[_0x1f4087(0xf3)]===_0x1f4087(0xff))return a30_0x4e8c48[_0x1f4087(0xd5)]('(not\x20found)');if(_0x1f215f[_0x1f4087(0xf3)]==='empty')return a30_0x4e8c48[_0x1f4087(0xf4)](_0x1f4087(0x11c));return a30_0x4e8c48[_0x1f4087(0x124)](_0x1f4087(0xb1)+(_0x1f215f[_0x1f4087(0xdb)]?':\x20'+_0x1f215f[_0x1f4087(0xdb)]:''));}export const doctorDefinition={'service':a30_0x1e0a0c(0x109),'command':a30_0x1e0a0c(0xb5),'description':a30_0x1e0a0c(0x125),'risk':a30_0x1e0a0c(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x4ac03c=a31_0x52bc;(function(_0x472123,_0x2964af){const _0x11f85c=a31_0x52bc,_0xebe641=_0x472123();while(!![]){try{const _0x545838=parseInt(_0x11f85c(0x1ad))/0x1*(-parseInt(_0x11f85c(0x19b))/0x2)+parseInt(_0x11f85c(0x1a6))/0x3*(parseInt(_0x11f85c(0x19f))/0x4)+parseInt(_0x11f85c(0x199))/0x5*(-parseInt(_0x11f85c(0x1a0))/0x6)+parseInt(_0x11f85c(0x1b2))/0x7*(parseInt(_0x11f85c(0x1b4))/0x8)+parseInt(_0x11f85c(0x1b0))/0x9+parseInt(_0x11f85c(0x198))/0xa+-parseInt(_0x11f85c(0x195))/0xb*(parseInt(_0x11f85c(0x192))/0xc);if(_0x545838===_0x2964af)break;else _0xebe641['push'](_0xebe641['shift']());}catch(_0x4d12b6){_0xebe641['push'](_0xebe641['shift']());}}}(a31_0xc9c9,0xd7d4f));function a31_0xc9c9(){const _0x1926df=['192lLEaGn','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','35684RVWHMb','boolean','download','3112900BQWhkW','9550SdQkWV','trim','50DbZRSh','path','/client/uploadFile','query-url','2518708SqZhXy','5274wwkGHa','long-term','\x20to\x20runtime\x20app\x20','appCode','filepath','str','6QkqvXM','read','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','bool','build','upload','filePath\x20is\x20required.','35626lSJIMd','string','POST','15013323FuVONK','filePath','1050JVxsHY','file','14224TDXKwt','validation','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a31_0xc9c9=function(){return _0x1926df;};return a31_0xc9c9();}function a31_0x52bc(_0x3c1f3a,_0x11d2e4){_0x3c1f3a=_0x3c1f3a-0x191;const _0xc9c9e0=a31_0xc9c9();let _0x52bca7=_0xc9c9e0[_0x3c1f3a];return _0x52bca7;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x4ac03c(0x1b3),'type':a31_0x4ac03c(0x1ae),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a31_0x4ac03c(0x1a4),'type':a31_0x4ac03c(0x1ae),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a31_0x4ac03c(0x196),'description':a31_0x4ac03c(0x191)},LONG_TERM_FLAG={'name':a31_0x4ac03c(0x1a1),'type':a31_0x4ac03c(0x196),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x5b07f2){const _0x3869ae=a31_0x4ac03c,_0x141337=_0x5b07f2[_0x3869ae(0x19a)]();if(!_0x141337)throw CliErrors[_0x3869ae(0x1b5)](_0x3869ae(0x1ac));return _0x141337;}const fileUpload={'service':a31_0x4ac03c(0x1b3),'command':a31_0x4ac03c(0x1ab),'description':a31_0x4ac03c(0x1a8),'risk':a31_0x4ac03c(0x1a7),'flags':[FILE_FLAG],async 'dryRun'(_0x47960){const _0x3b9ba1=a31_0x4ac03c,_0x27510e=requireRuntimeUploadFile(_0x47960[_0x3b9ba1(0x1a5)]('file'),_0x3b9ba1(0x194));return dryRun(_0x3b9ba1(0x1af),_0x3b9ba1(0x19d))['body']({'appCode':_0x47960[_0x3b9ba1(0x1a3)],'multipart':{'file':_0x27510e}})['description']('Preview:\x20upload\x20'+_0x27510e[_0x3b9ba1(0x19c)]+_0x3b9ba1(0x1a2)+_0x47960[_0x3b9ba1(0x1a3)])[_0x3b9ba1(0x1aa)]();},async 'execute'(_0x1da758){const _0x589a44=a31_0x4ac03c,_0x30c4c0=requireRuntimeUploadFile(_0x1da758[_0x589a44(0x1a5)](_0x589a44(0x1b3)),_0x589a44(0x194)),_0x5f2da0=await uploadRuntimeFile(_0x1da758['appCode'],_0x30c4c0[_0x589a44(0x19c)]);return{'ok':!![],'data':_0x5f2da0,'message':_0x5f2da0[_0x589a44(0x1b1)]?'Uploaded\x20file:\x20'+_0x5f2da0['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x589a44(0x193)};}},fileQueryUrl={'service':'file','command':a31_0x4ac03c(0x19e),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x5dd5e2){const _0x13f971=a31_0x4ac03c,_0x323b42=requireFilePath(_0x5dd5e2[_0x13f971(0x1a5)](_0x13f971(0x1a4))),_0x3a76aa=await queryRuntimeFileUrl(_0x323b42,{'download':_0x5dd5e2['bool'](_0x13f971(0x197)),'longTerm':_0x5dd5e2[_0x13f971(0x1a9)](_0x13f971(0x1a1))});return{'ok':!![],'data':_0x3a76aa};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x3a7744=a31_0xb507;function a31_0xb507(_0xf54118,_0x4e7a08){_0xf54118=_0xf54118-0x1c3;const _0x1fe00d=a31_0x1fe0();let _0xb5072b=_0x1fe00d[_0xf54118];return _0xb5072b;}(function(_0x181d81,_0x206ba8){const _0x1793bb=a31_0xb507,_0x4caf80=_0x181d81();while(!![]){try{const _0x5842b9=-parseInt(_0x1793bb(0x1e6))/0x1+parseInt(_0x1793bb(0x1e2))/0x2+parseInt(_0x1793bb(0x1e1))/0x3*(parseInt(_0x1793bb(0x1ce))/0x4)+parseInt(_0x1793bb(0x1d7))/0x5+-parseInt(_0x1793bb(0x1d2))/0x6+parseInt(_0x1793bb(0x1e0))/0x7+parseInt(_0x1793bb(0x1c7))/0x8*(parseInt(_0x1793bb(0x1d1))/0x9);if(_0x5842b9===_0x206ba8)break;else _0x4caf80['push'](_0x4caf80['shift']());}catch(_0x7b7ec5){_0x4caf80['push'](_0x4caf80['shift']());}}}(a31_0x1fe0,0x444e3));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a31_0x1fe0(){const _0x6cb6d6=['POST','file','464409aFaYXK','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath\x20is\x20required.','/client/uploadFile','long-term','description','\x20to\x20runtime\x20app\x20','string','916904EbJICs','bool','Path\x20to\x20the\x20local\x20file\x20to\x20upload','boolean','path','upload','filepath','316UUvwjc','body','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','27JqvSyA','2632044cMhPLf','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Uploaded\x20file:\x20','File','str','1770840vbiVsD','query-url','read','validation','trim','appCode','filePath','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Preview:\x20upload\x20','687498VcfFkE','3381crnQCM','595216oAutMe','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references'];a31_0x1fe0=function(){return _0x6cb6d6;};return a31_0x1fe0();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x3a7744(0x1e5),'type':a31_0x3a7744(0x1c6),'required':!![],'description':a31_0x3a7744(0x1c9)},FILEPATH_FLAG={'name':a31_0x3a7744(0x1cd),'type':a31_0x3a7744(0x1c6),'required':!![],'description':a31_0x3a7744(0x1d0)},DOWNLOAD_FLAG={'name':'download','type':a31_0x3a7744(0x1ca),'description':a31_0x3a7744(0x1e7)},LONG_TERM_FLAG={'name':'long-term','type':a31_0x3a7744(0x1ca),'description':a31_0x3a7744(0x1de)};function requireFilePath(_0x1c8a65){const _0x545631=a31_0x3a7744,_0x374a1a=_0x1c8a65[_0x545631(0x1db)]();if(!_0x374a1a)throw CliErrors[_0x545631(0x1da)](_0x545631(0x1e8));return _0x374a1a;}const fileUpload={'service':a31_0x3a7744(0x1e5),'command':a31_0x3a7744(0x1cc),'description':a31_0x3a7744(0x1e3),'risk':a31_0x3a7744(0x1d9),'flags':[FILE_FLAG],async 'dryRun'(_0x4c1bb2){const _0x130362=a31_0x3a7744,_0x3b36d0=requireRuntimeUploadFile(_0x4c1bb2[_0x130362(0x1d6)]('file'),_0x130362(0x1d5));return dryRun(_0x130362(0x1e4),_0x130362(0x1e9))[_0x130362(0x1cf)]({'appCode':_0x4c1bb2[_0x130362(0x1dc)],'multipart':{'file':_0x3b36d0}})[_0x130362(0x1c4)](_0x130362(0x1df)+_0x3b36d0['path']+_0x130362(0x1c5)+_0x4c1bb2[_0x130362(0x1dc)])['build']();},async 'execute'(_0x33718){const _0x25c518=a31_0x3a7744,_0x4c2b6c=requireRuntimeUploadFile(_0x33718['str']('file'),'File'),_0x1fe680=await uploadRuntimeFile(_0x33718[_0x25c518(0x1dc)],_0x4c2b6c[_0x25c518(0x1cb)]);return{'ok':!![],'data':_0x1fe680,'message':_0x1fe680[_0x25c518(0x1dd)]?_0x25c518(0x1d4)+_0x1fe680[_0x25c518(0x1dd)]+'.\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':a31_0x3a7744(0x1e5),'command':a31_0x3a7744(0x1d8),'description':a31_0x3a7744(0x1d3),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x57da91){const _0xf1b7c2=a31_0x3a7744,_0x3cb87d=requireFilePath(_0x57da91[_0xf1b7c2(0x1d6)]('filepath')),_0x5bd996=await queryRuntimeFileUrl(_0x3cb87d,{'download':_0x57da91[_0xf1b7c2(0x1c8)]('download'),'longTerm':_0x57da91[_0xf1b7c2(0x1c8)](_0xf1b7c2(0x1c3))});return{'ok':!![],'data':_0x5bd996};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0x1bb8b7=a32_0x10ee;(function(_0x684afc,_0x2f9cb8){const _0x4c41c1=a32_0x10ee,_0x4fe946=_0x684afc();while(!![]){try{const _0x9d2984=parseInt(_0x4c41c1(0x1de))/0x1*(-parseInt(_0x4c41c1(0x1f3))/0x2)+parseInt(_0x4c41c1(0x1cd))/0x3+-parseInt(_0x4c41c1(0x1e3))/0x4*(parseInt(_0x4c41c1(0x1e4))/0x5)+-parseInt(_0x4c41c1(0x1e7))/0x6*(-parseInt(_0x4c41c1(0x1e5))/0x7)+-parseInt(_0x4c41c1(0x1f0))/0x8+-parseInt(_0x4c41c1(0x1f2))/0x9+parseInt(_0x4c41c1(0x1e1))/0xa;if(_0x9d2984===_0x2f9cb8)break;else _0x4fe946['push'](_0x4fe946['shift']());}catch(_0x5f3321){_0x4fe946['push'](_0x4fe946['shift']());}}}(a32_0x2372,0xa2935));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';function a32_0x2372(){const _0xb08704=['1472CeqIju','log','appcode','boolean','file','378534YkEptP','includes','\x20\x20config:\x20\x20','Source\x20file\x20not\x20found:\x20','cwd','message','\x22.\x20Allowed:\x20','yes','riskLevel','\x20\x20default:\x20','apps','Override\x20imported\x20default\x20appcode','app','Skip\x20confirmation\x20when\x20overwriting','newConfigFileName','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','Imported\x20from\x20','164zbUQxP','Override\x20imported\x20default\x20env','validation','17606680qJBPAr','project','71188dqOWBU','25bSiBnM','7rdytIj','join','3252294WWtKWl','defaultApp','env','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','string','parse','Write\x20to\x20global\x20(~/','Failed\x20to\x20parse\x20source\x20file:\x20','3827736XKLTDh','global','9673470TxdfAC'];a32_0x2372=function(){return _0xb08704;};return a32_0x2372();}function a32_0x10ee(_0x3d80ca,_0x39477c){_0x3d80ca=_0x3d80ca-0x1cd;const _0x237296=a32_0x2372();let _0x10eeed=_0x237296[_0x3d80ca];return _0x10eeed;}import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':'file','type':a32_0x1bb8b7(0x1ec),'description':a32_0x1bb8b7(0x1dc),'required':!![]},{'name':'appcode','type':'string','description':a32_0x1bb8b7(0x1d8)},{'name':'env','type':a32_0x1bb8b7(0x1ec),'description':a32_0x1bb8b7(0x1df),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x1bb8b7(0x1f1),'type':a32_0x1bb8b7(0x1f6),'description':a32_0x1bb8b7(0x1ee)+PRODUCT_CONFIG[a32_0x1bb8b7(0x1db)]+')\x20instead\x20of\x20project','default':![]},{'name':'yes','type':a32_0x1bb8b7(0x1f6),'description':a32_0x1bb8b7(0x1da),'default':![]}];export async function runAppImport(_0xe4febb){const _0x591140=a32_0x1bb8b7,_0x1af0b3=_0xe4febb[_0x591140(0x1f1)]?'global':_0x591140(0x1e2),_0x3fe3c1=resolveWriteConfigPath(_0x1af0b3);await runFromImport(_0xe4febb,_0x3fe3c1);}async function runFromImport(_0x2360af,_0x168fd6){const _0x3e17a=a32_0x1bb8b7,_0x34cfcd=resolveFilePath(_0x2360af[_0x3e17a(0x1f7)]);if(!existsSync(_0x34cfcd))throw CliErrors[_0x3e17a(0x1e0)](_0x3e17a(0x1d0)+_0x34cfcd);const _0x275d24=readSourceFile(_0x34cfcd),_0x58e2f1=convertToRuntimeConfig(_0x275d24);_0x2360af[_0x3e17a(0x1f5)]&&(_0x58e2f1[_0x3e17a(0x1f5)]=String(_0x2360af[_0x3e17a(0x1f5)]));_0x2360af['env']&&(_0x58e2f1[_0x3e17a(0x1e9)]=resolveImportEnv(_0x2360af));if(!_0x58e2f1[_0x3e17a(0x1f5)])throw CliErrors['validation'](_0x3e17a(0x1eb),'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`.');await writeImportConfig(_0x168fd6,_0x58e2f1,_0x2360af),console[_0x3e17a(0x1f4)](_0x3e17a(0x1dd)+_0x34cfcd),console[_0x3e17a(0x1f4)](_0x3e17a(0x1cf)+_0x168fd6),console[_0x3e17a(0x1f4)]('\x20\x20appcode:\x20'+_0x58e2f1['appcode']);if(_0x58e2f1['defaultApp'])console['log'](_0x3e17a(0x1d6)+_0x58e2f1[_0x3e17a(0x1e8)]);}function convertToRuntimeConfig(_0x19b380){const _0x5a065b=a32_0x1bb8b7;if(_0x19b380[_0x5a065b(0x1d7)]&&typeof _0x19b380[_0x5a065b(0x1d7)]==='object')throw CliErrors[_0x5a065b(0x1e0)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x5a065b(0x1ea));const _0xab8299={};for(const _0x295240 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x19b380[_0x295240]!==undefined&&(_0xab8299[_0x295240]=_0x19b380[_0x295240]);}return!_0xab8299[_0x5a065b(0x1d5)]&&(_0xab8299[_0x5a065b(0x1d5)]=DEFAULT_CONFIG_VALUES[_0x5a065b(0x1d5)]),_0xab8299;}async function writeImportConfig(_0x5c794e,_0x1bfd2d,_0x587be9){const _0x11271b=a32_0x1bb8b7;let _0x30a837={};existsSync(_0x5c794e)&&!_0x587be9[_0x11271b(0x1d4)]&&(_0x30a837=readConfigFile(_0x5c794e));for(const [_0x3fd41f,_0x23afa3]of Object['entries'](_0x1bfd2d)){_0x23afa3!==undefined&&(_0x30a837[_0x3fd41f]=_0x23afa3);}if(_0x30a837[_0x11271b(0x1d9)])delete _0x30a837['app'];writeConfigFile(_0x5c794e,_0x30a837);}function resolveFilePath(_0x4e2bbf){const _0x53b7af=a32_0x1bb8b7;return isAbsolute(_0x4e2bbf)?_0x4e2bbf:resolve(process[_0x53b7af(0x1d1)](),_0x4e2bbf);}function readSourceFile(_0x2cf6c0){const _0x1a2d87=a32_0x1bb8b7;try{const _0x957cf4=readFileSync(_0x2cf6c0,{'encoding':'utf8'});return JSON[_0x1a2d87(0x1ed)](_0x957cf4);}catch(_0x2ff3cd){throw CliErrors[_0x1a2d87(0x1e0)](_0x1a2d87(0x1ef)+_0x2ff3cd[_0x1a2d87(0x1d2)]);}}function resolveImportEnv(_0x3a842c){const _0xee8cc4=a32_0x1bb8b7,_0x7e19fe=_0x3a842c[_0xee8cc4(0x1e9)];if(_0x7e19fe===undefined||_0x7e19fe==='')return DEFAULT_CONFIG_VALUES[_0xee8cc4(0x1e9)];if(!RUNTIME_ENV_VALUES[_0xee8cc4(0x1ce)](_0x7e19fe))throw CliErrors[_0xee8cc4(0x1e0)]('Invalid\x20env\x20\x22'+_0x7e19fe+_0xee8cc4(0x1d3)+RUNTIME_ENV_VALUES[_0xee8cc4(0x1e6)](',\x20'));return _0x7e19fe;}
1
+ const a32_0x3d0ba1=a32_0x58f5;(function(_0xa236da,_0x51e6d9){const _0x3df358=a32_0x58f5,_0x177f13=_0xa236da();while(!![]){try{const _0x4b572a=parseInt(_0x3df358(0x103))/0x1+parseInt(_0x3df358(0x104))/0x2+parseInt(_0x3df358(0xf4))/0x3*(-parseInt(_0x3df358(0xf7))/0x4)+-parseInt(_0x3df358(0xe9))/0x5+-parseInt(_0x3df358(0xfc))/0x6+parseInt(_0x3df358(0xe2))/0x7+parseInt(_0x3df358(0x109))/0x8;if(_0x4b572a===_0x51e6d9)break;else _0x177f13['push'](_0x177f13['shift']());}catch(_0x30a74c){_0x177f13['push'](_0x177f13['shift']());}}}(a32_0x5f89,0xbdea0));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':'file','type':a32_0x3d0ba1(0x10b),'description':a32_0x3d0ba1(0xed),'required':!![]},{'name':'appcode','type':'string','description':a32_0x3d0ba1(0xea)},{'name':a32_0x3d0ba1(0xfb),'type':'string','description':a32_0x3d0ba1(0xfd),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x3d0ba1(0xe3),'type':a32_0x3d0ba1(0x100),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a32_0x3d0ba1(0x102)]+a32_0x3d0ba1(0xe4),'default':![]},{'name':'yes','type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runAppImport(_0xed6b53){const _0x5651a7=a32_0x3d0ba1,_0x2c2974=_0xed6b53[_0x5651a7(0xe3)]?_0x5651a7(0xe3):_0x5651a7(0xe5),_0x1a1f06=resolveWriteConfigPath(_0x2c2974);await runFromImport(_0xed6b53,_0x1a1f06);}async function runFromImport(_0x4bb2b0,_0x5bc2ca){const _0x4fd4b1=a32_0x3d0ba1,_0x439458=resolveFilePath(_0x4bb2b0['file']);if(!existsSync(_0x439458))throw CliErrors[_0x4fd4b1(0xf5)](_0x4fd4b1(0xeb)+_0x439458);const _0x5b9782=readSourceFile(_0x439458),_0x10cf3c=convertToRuntimeConfig(_0x5b9782);_0x4bb2b0[_0x4fd4b1(0xf2)]&&(_0x10cf3c[_0x4fd4b1(0xf2)]=String(_0x4bb2b0[_0x4fd4b1(0xf2)]));_0x4bb2b0[_0x4fd4b1(0xfb)]&&(_0x10cf3c[_0x4fd4b1(0xfb)]=resolveImportEnv(_0x4bb2b0));if(!_0x10cf3c[_0x4fd4b1(0xf2)])throw CliErrors['validation'](_0x4fd4b1(0x107),_0x4fd4b1(0xf0));await writeImportConfig(_0x5bc2ca,_0x10cf3c,_0x4bb2b0),console[_0x4fd4b1(0xe8)]('Imported\x20from\x20'+_0x439458),console['log']('\x20\x20config:\x20\x20'+_0x5bc2ca),console['log']('\x20\x20appcode:\x20'+_0x10cf3c[_0x4fd4b1(0xf2)]);if(_0x10cf3c[_0x4fd4b1(0xef)])console[_0x4fd4b1(0xe8)](_0x4fd4b1(0xff)+_0x10cf3c['defaultApp']);}function a32_0x58f5(_0x3ffd40,_0x1c1cf4){_0x3ffd40=_0x3ffd40-0xe1;const _0x5f89f8=a32_0x5f89();let _0x58f5a9=_0x5f89f8[_0x3ffd40];return _0x58f5a9;}function convertToRuntimeConfig(_0x5ef8c3){const _0xe993ae=a32_0x3d0ba1;if(_0x5ef8c3[_0xe993ae(0xe1)]&&typeof _0x5ef8c3[_0xe993ae(0xe1)]===_0xe993ae(0xee))throw CliErrors[_0xe993ae(0xf5)](_0xe993ae(0xe7),_0xe993ae(0xfe));const _0x57764b={};for(const _0x595101 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x5ef8c3[_0x595101]!==undefined&&(_0x57764b[_0x595101]=_0x5ef8c3[_0x595101]);}return!_0x57764b['riskLevel']&&(_0x57764b[_0xe993ae(0xf6)]=DEFAULT_CONFIG_VALUES[_0xe993ae(0xf6)]),_0x57764b;}async function writeImportConfig(_0x4645b2,_0x3cd9a2,_0x44e6b8){const _0x380d6b=a32_0x3d0ba1;let _0x4337ee={};existsSync(_0x4645b2)&&!_0x44e6b8[_0x380d6b(0xe6)]&&(_0x4337ee=readConfigFile(_0x4645b2));for(const [_0x29a77d,_0x170c8d]of Object[_0x380d6b(0x10a)](_0x3cd9a2)){_0x170c8d!==undefined&&(_0x4337ee[_0x29a77d]=_0x170c8d);}if(_0x4337ee[_0x380d6b(0xf9)])delete _0x4337ee[_0x380d6b(0xf9)];writeConfigFile(_0x4645b2,_0x4337ee);}function a32_0x5f89(){const _0x352ecc=['appcode','parse','618675ogwbcr','validation','riskLevel','12KwVqED','\x22.\x20Allowed:\x20','app','includes','env','7871778FEGNYl','Override\x20imported\x20default\x20env','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','\x20\x20default:\x20','boolean','message','newConfigFileName','543237jrYFgl','3094172PSVWuT','cwd','Invalid\x20env\x20\x22','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','utf8','14262632yPczxe','entries','string','apps','963312zlkHgQ','global',')\x20instead\x20of\x20project','project','yes','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','log','6511210rHCicc','Override\x20imported\x20default\x20appcode','Source\x20file\x20not\x20found:\x20','Failed\x20to\x20parse\x20source\x20file:\x20','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','object','defaultApp','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`.','join'];a32_0x5f89=function(){return _0x352ecc;};return a32_0x5f89();}function resolveFilePath(_0x1fd9b1){const _0x100343=a32_0x3d0ba1;return isAbsolute(_0x1fd9b1)?_0x1fd9b1:resolve(process[_0x100343(0x105)](),_0x1fd9b1);}function readSourceFile(_0x4d400d){const _0x4cd877=a32_0x3d0ba1;try{const _0x18c68c=readFileSync(_0x4d400d,{'encoding':_0x4cd877(0x108)});return JSON[_0x4cd877(0xf3)](_0x18c68c);}catch(_0x213b30){throw CliErrors[_0x4cd877(0xf5)](_0x4cd877(0xec)+_0x213b30[_0x4cd877(0x101)]);}}function resolveImportEnv(_0x37923d){const _0x723bde=a32_0x3d0ba1,_0x413e29=_0x37923d[_0x723bde(0xfb)];if(_0x413e29===undefined||_0x413e29==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x723bde(0xfa)](_0x413e29))throw CliErrors['validation'](_0x723bde(0x106)+_0x413e29+_0x723bde(0xf8)+RUNTIME_ENV_VALUES[_0x723bde(0xf1)](',\x20'));return _0x413e29;}
@@ -1 +1 @@
1
- const a33_0x1912b8=a33_0x438e;(function(_0x3a6f1f,_0x1533ff){const _0xbffcf=a33_0x438e,_0x4ee98b=_0x3a6f1f();while(!![]){try{const _0x3ff32c=parseInt(_0xbffcf(0xf2))/0x1*(-parseInt(_0xbffcf(0x127))/0x2)+parseInt(_0xbffcf(0x10a))/0x3+parseInt(_0xbffcf(0x128))/0x4+-parseInt(_0xbffcf(0x101))/0x5*(parseInt(_0xbffcf(0xf8))/0x6)+parseInt(_0xbffcf(0x10e))/0x7*(parseInt(_0xbffcf(0xf5))/0x8)+-parseInt(_0xbffcf(0x10f))/0x9*(parseInt(_0xbffcf(0xf3))/0xa)+-parseInt(_0xbffcf(0x104))/0xb;if(_0x3ff32c===_0x1533ff)break;else _0x4ee98b['push'](_0x4ee98b['shift']());}catch(_0x4bb1e8){_0x4ee98b['push'](_0x4ee98b['shift']());}}}(a33_0x1d7d,0xc4e4b));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':'string','required':!![],'description':a33_0x1912b8(0xee)},FILE_FLAG={'name':a33_0x1912b8(0xf4),'type':a33_0x1912b8(0x123),'required':!![],'description':a33_0x1912b8(0x115)},QUERY_FLAG={'name':'query','type':a33_0x1912b8(0x123),'required':!![],'description':a33_0x1912b8(0x121)},TOPK_FLAG={'name':a33_0x1912b8(0x102),'type':a33_0x1912b8(0x10d),'description':a33_0x1912b8(0x110)};function readKnowledgeFile(_0x2c42ff){const _0x38c3a6=a33_0x1912b8;if(!_0x2c42ff)throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x125));if(!existsSync(_0x2c42ff))throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x122)+_0x2c42ff);if(!statSync(_0x2c42ff)[_0x38c3a6(0x11b)]())throw CliErrors[_0x38c3a6(0x11c)](_0x38c3a6(0x106)+_0x2c42ff);return readFileSync(_0x2c42ff,_0x38c3a6(0x103));}function a33_0x438e(_0xa4a80d,_0x397796){_0xa4a80d=_0xa4a80d-0xec;const _0x1d7db7=a33_0x1d7d();let _0x438e11=_0x1d7db7[_0xa4a80d];return _0x438e11;}function summarizePersonalItem(_0x285f33){const _0x77c64d=a33_0x1912b8;return{'id':_0x285f33['id'],'title':_0x285f33[_0x77c64d(0xfd)],'version':_0x285f33[_0x77c64d(0xfb)],'ragStatus':_0x285f33[_0x77c64d(0x118)],'ragErrorMessage':_0x285f33[_0x77c64d(0x105)],'updateTime':_0x285f33['updateTime']};}function detailPersonalItem(_0x103a34){const _0xa9a57d=a33_0x1912b8;return{'id':_0x103a34['id'],'appCode':_0x103a34[_0xa9a57d(0xfe)],'scope':_0x103a34[_0xa9a57d(0x109)],'userId':_0x103a34['userId'],'title':_0x103a34['title'],'content':_0x103a34[_0xa9a57d(0x117)]??'','version':_0x103a34[_0xa9a57d(0xfb)],'ragStatus':_0x103a34['ragStatus'],'ragErrorMessage':_0x103a34[_0xa9a57d(0x105)],'createTime':_0x103a34[_0xa9a57d(0x126)],'updateTime':_0x103a34[_0xa9a57d(0x114)]};}function readTopK(_0x5a55b7){const _0x1e5199=a33_0x1912b8,_0x4dcc56=_0x5a55b7['flag'](_0x1e5199(0x102));if(_0x4dcc56===undefined||_0x4dcc56===null||_0x4dcc56==='')return undefined;const _0xbf2651=_0x5a55b7[_0x1e5199(0x120)]('topk');if(!Number[_0x1e5199(0x111)](_0xbf2651)||_0xbf2651<0x1||_0xbf2651>0x32)throw CliErrors[_0x1e5199(0x11c)](_0x1e5199(0x116));return _0xbf2651;}const kbList={'service':'kb','command':'list','description':a33_0x1912b8(0xf0),'risk':a33_0x1912b8(0xfa),'flags':[VERBOSE_FLAG],async 'execute'(_0x1a1cb3){const _0x5b621f=a33_0x1912b8,_0x24dbe4=await listPersonalKnowledgeBaseItems(_0x1a1cb3[_0x5b621f(0xfe)]);if(_0x1a1cb3[_0x5b621f(0xff)](_0x5b621f(0x10c)))return{'ok':!![],'data':{'total':_0x24dbe4[_0x5b621f(0x11a)],'items':_0x24dbe4}};return{'ok':!![],'data':{'total':_0x24dbe4['length'],'items':_0x24dbe4['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x1912b8(0x100),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a33_0x1912b8(0xf1)}],async 'execute'(_0x1d8395){const _0x4fcfbb=a33_0x1912b8,_0x10e4a8=await getPersonalKnowledgeBaseItem(_0x1d8395['num']('id'),_0x1d8395[_0x4fcfbb(0xfe)]);return{'ok':!![],'data':detailPersonalItem(_0x10e4a8)};}},kbCreate={'service':'kb','command':'create','description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0x1912b8(0xfc),'confirmationDescription':a33_0x1912b8(0x124),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x41158a){const _0x94521d=a33_0x1912b8,_0x57d78d=_0x41158a[_0x94521d(0x119)](_0x94521d(0xfd)),_0x4fb355=readKnowledgeFile(_0x41158a['str'](_0x94521d(0xf4))),_0xd1777b=await createPersonalKnowledgeBaseItem(_0x41158a['appCode'],{'title':_0x57d78d,'content':_0x4fb355});return{'ok':!![],'data':summarizePersonalItem(_0xd1777b),'message':'Created\x20KB\x20entry\x20'+_0xd1777b['id']+'\x20('+_0xd1777b['title']+')'};},async 'dryRun'(_0x52c4b9){const _0x5e4756=a33_0x1912b8,_0xfcf16=_0x52c4b9[_0x5e4756(0x119)]('title'),_0x4acb31=readKnowledgeFile(_0x52c4b9[_0x5e4756(0x119)](_0x5e4756(0xf4)));return dryRun(_0x5e4756(0x11d),_0x5e4756(0x11f))[_0x5e4756(0x10b)]({'appCode':_0x52c4b9[_0x5e4756(0xfe)],'title':_0xfcf16,'content':_0x4acb31})[_0x5e4756(0x113)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0xfcf16+'\x22')['build']();}},kbUpdate={'service':'kb','command':a33_0x1912b8(0xf6),'description':a33_0x1912b8(0x108),'risk':'write','confirmationDescription':a33_0x1912b8(0x107),'flags':[{...ID_FLAG,'description':a33_0x1912b8(0xf1)},{...TITLE_FLAG,'required':![],'description':a33_0x1912b8(0xf9)},FILE_FLAG],async 'execute'(_0x3783e9){const _0x5813a3=a33_0x1912b8,_0x299a28=_0x3783e9['num']('id'),_0x7bf692=readKnowledgeFile(_0x3783e9[_0x5813a3(0x119)]('file')),_0x4e2c87=_0x3783e9[_0x5813a3(0x119)](_0x5813a3(0xfd))||(await getPersonalKnowledgeBaseItem(_0x299a28,_0x3783e9[_0x5813a3(0xfe)]))[_0x5813a3(0xfd)],_0x15c86a=await updatePersonalKnowledgeBaseItem(_0x299a28,_0x3783e9[_0x5813a3(0xfe)],{'title':_0x4e2c87,'content':_0x7bf692});return{'ok':!![],'data':summarizePersonalItem(_0x15c86a),'message':_0x5813a3(0x129)+_0x15c86a['id']+'\x20('+_0x15c86a['title']+')'};},async 'dryRun'(_0x2b713d){const _0x3d23d7=a33_0x1912b8,_0x1de42e=_0x2b713d[_0x3d23d7(0x120)]('id'),_0x8ad611=readKnowledgeFile(_0x2b713d[_0x3d23d7(0x119)]('file')),_0x542b63=_0x2b713d[_0x3d23d7(0x119)](_0x3d23d7(0xfd))||(await getPersonalKnowledgeBaseItem(_0x1de42e,_0x2b713d[_0x3d23d7(0xfe)]))[_0x3d23d7(0xfd)];return dryRun('POST','/client/knowledge-base/personal/'+_0x1de42e+_0x3d23d7(0xef))[_0x3d23d7(0x10b)]({'appCode':_0x2b713d[_0x3d23d7(0xfe)],'title':_0x542b63,'content':_0x8ad611})[_0x3d23d7(0x113)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1de42e)[_0x3d23d7(0xf7)]();}},kbSearch={'service':'kb','command':'search','description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a33_0x1912b8(0xfa),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x19d3c2){const _0x418bd5=a33_0x1912b8;if(!_0x19d3c2[_0x418bd5(0x119)](_0x418bd5(0xed))[_0x418bd5(0x112)]())throw CliErrors['validation'](_0x418bd5(0xec));readTopK(_0x19d3c2);},async 'execute'(_0x41c74b){const _0x2f9e77=a33_0x1912b8,_0x590690=_0x41c74b[_0x2f9e77(0x119)]('query')[_0x2f9e77(0x112)](),_0x1de134=readTopK(_0x41c74b),_0x5df7da=await searchRuntimeKnowledge({'appCode':_0x41c74b[_0x2f9e77(0xfe)],'accessKey':_0x41c74b['accessKey']??'','query':_0x590690,..._0x1de134!==undefined?{'topK':_0x1de134}:{},'signal':_0x41c74b[_0x2f9e77(0x11e)]});return{'ok':!![],'data':_0x5df7da};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];function a33_0x1d7d(){const _0x3dc471=['Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','content','ragStatus','str','length','isFile','validation','POST','signal','/client/knowledge-base/personal/create','num','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','File\x20not\x20found:\x20','string','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','File\x20path\x20is\x20required.','createTime','173750RtglSq','3039952uvkIyz','Updated\x20KB\x20entry\x20','Search\x20query\x20is\x20required.','query','Personal\x20knowledge-base\x20entry\x20title','/update','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Personal\x20knowledge-base\x20entry\x20ID','1TJgarD','10MUWJtj','file','8160rrJVmw','update','build','10722klBwOI','Override\x20the\x20existing\x20entry\x20title','read','version','write','title','appCode','bool','detail','595GprBDK','topk','utf8','6592586pCVNmj','ragErrorMessage','File\x20is\x20not\x20a\x20regular\x20file:\x20','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','scope','3470364TMIhDN','body','verbose','number','791fAXIzu','2940363AnwjJa','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','isSafeInteger','trim','description','updateTime'];a33_0x1d7d=function(){return _0x3dc471;};return a33_0x1d7d();}
1
+ const a33_0x283fd7=a33_0x6f4b;(function(_0x2bcbf2,_0x5ce28e){const _0x32c641=a33_0x6f4b,_0x4dd4c3=_0x2bcbf2();while(!![]){try{const _0x15e3eb=parseInt(_0x32c641(0xe6))/0x1+parseInt(_0x32c641(0xfa))/0x2*(-parseInt(_0x32c641(0xce))/0x3)+-parseInt(_0x32c641(0xe5))/0x4+parseInt(_0x32c641(0xf3))/0x5*(-parseInt(_0x32c641(0xee))/0x6)+parseInt(_0x32c641(0x102))/0x7*(-parseInt(_0x32c641(0xc8))/0x8)+-parseInt(_0x32c641(0xc9))/0x9+-parseInt(_0x32c641(0xed))/0xa*(-parseInt(_0x32c641(0xe0))/0xb);if(_0x15e3eb===_0x5ce28e)break;else _0x4dd4c3['push'](_0x4dd4c3['shift']());}catch(_0x2cc5af){_0x4dd4c3['push'](_0x4dd4c3['shift']());}}}(a33_0x1e87,0xbf04b));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchRuntimeKnowledge}from'../../core/kb-search-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x283fd7(0xd2),'type':a33_0x283fd7(0xe9),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a33_0x283fd7(0xea),'type':a33_0x283fd7(0xe9),'required':!![],'description':a33_0x283fd7(0x101)},QUERY_FLAG={'name':a33_0x283fd7(0xdf),'type':'string','required':!![],'description':a33_0x283fd7(0xf7)},TOPK_FLAG={'name':a33_0x283fd7(0xf4),'type':a33_0x283fd7(0xc4),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function a33_0x1e87(){const _0x3ddf17=['46007350zHYCgB','6SMmPiO','ragErrorMessage','write','ragStatus','read','2566845rtpKmD','topk','search','accessKey','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','bool','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','3308WYpHZs','map','build','version','trim','description','File\x20is\x20not\x20a\x20regular\x20file:\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','49OOvrci','createTime','validation','number','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','appCode','POST','244040rIZVdc','11688651eRAfvS','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','isFile','update','1677BnVsux','File\x20not\x20found:\x20','File\x20path\x20is\x20required.','num','title','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','utf8','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','updateTime','verbose','detail','/update','Updated\x20KB\x20entry\x20','content','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','length','Created\x20KB\x20entry\x20','query','11bfJtkp','body','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Personal\x20knowledge-base\x20entry\x20ID','create','4340244rpXdPt','216966GpWzrR','userId','Override\x20the\x20existing\x20entry\x20title','string','file','str','flag'];a33_0x1e87=function(){return _0x3ddf17;};return a33_0x1e87();}function readKnowledgeFile(_0x542064){const _0x286b65=a33_0x283fd7;if(!_0x542064)throw CliErrors['validation'](_0x286b65(0xd0));if(!existsSync(_0x542064))throw CliErrors[_0x286b65(0x104)](_0x286b65(0xcf)+_0x542064);if(!statSync(_0x542064)[_0x286b65(0xcc)]())throw CliErrors[_0x286b65(0x104)](_0x286b65(0x100)+_0x542064);return readFileSync(_0x542064,_0x286b65(0xd4));}function summarizePersonalItem(_0x439259){const _0x4ee838=a33_0x283fd7;return{'id':_0x439259['id'],'title':_0x439259[_0x4ee838(0xd2)],'version':_0x439259[_0x4ee838(0xfd)],'ragStatus':_0x439259[_0x4ee838(0xf1)],'ragErrorMessage':_0x439259[_0x4ee838(0xef)],'updateTime':_0x439259[_0x4ee838(0xd6)]};}function detailPersonalItem(_0x1f4df6){const _0x464503=a33_0x283fd7;return{'id':_0x1f4df6['id'],'appCode':_0x1f4df6['appCode'],'scope':_0x1f4df6['scope'],'userId':_0x1f4df6[_0x464503(0xe7)],'title':_0x1f4df6[_0x464503(0xd2)],'content':_0x1f4df6[_0x464503(0xdb)]??'','version':_0x1f4df6['version'],'ragStatus':_0x1f4df6[_0x464503(0xf1)],'ragErrorMessage':_0x1f4df6[_0x464503(0xef)],'createTime':_0x1f4df6[_0x464503(0x103)],'updateTime':_0x1f4df6[_0x464503(0xd6)]};}function a33_0x6f4b(_0x37d3d0,_0x2882bf){_0x37d3d0=_0x37d3d0-0xc4;const _0x1e8735=a33_0x1e87();let _0x6f4b95=_0x1e8735[_0x37d3d0];return _0x6f4b95;}function readTopK(_0x271a42){const _0x141417=a33_0x283fd7,_0x3b94ec=_0x271a42[_0x141417(0xec)]('topk');if(_0x3b94ec===undefined||_0x3b94ec===null||_0x3b94ec==='')return undefined;const _0x22eee4=_0x271a42[_0x141417(0xd1)](_0x141417(0xf4));if(!Number['isSafeInteger'](_0x22eee4)||_0x22eee4<0x1||_0x22eee4>0x32)throw CliErrors['validation'](_0x141417(0xd3));return _0x22eee4;}const kbList={'service':'kb','command':'list','description':a33_0x283fd7(0xca),'risk':a33_0x283fd7(0xf2),'flags':[VERBOSE_FLAG],async 'execute'(_0x17d4e0){const _0xffbc21=a33_0x283fd7,_0x334dfc=await listPersonalKnowledgeBaseItems(_0x17d4e0[_0xffbc21(0xc6)]);if(_0x17d4e0[_0xffbc21(0xf8)](_0xffbc21(0xd7)))return{'ok':!![],'data':{'total':_0x334dfc[_0xffbc21(0xdd)],'items':_0x334dfc}};return{'ok':!![],'data':{'total':_0x334dfc['length'],'items':_0x334dfc[_0xffbc21(0xfb)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x283fd7(0xd8),'description':a33_0x283fd7(0xcb),'risk':a33_0x283fd7(0xf2),'flags':[{...ID_FLAG,'description':a33_0x283fd7(0xe3)}],async 'execute'(_0x4e61ad){const _0x36d3aa=a33_0x283fd7,_0x27a7b6=await getPersonalKnowledgeBaseItem(_0x4e61ad[_0x36d3aa(0xd1)]('id'),_0x4e61ad[_0x36d3aa(0xc6)]);return{'ok':!![],'data':detailPersonalItem(_0x27a7b6)};}},kbCreate={'service':'kb','command':a33_0x283fd7(0xe4),'description':a33_0x283fd7(0xe2),'risk':'write','confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x47ccb0){const _0x564b20=a33_0x283fd7,_0x5edae2=_0x47ccb0[_0x564b20(0xeb)](_0x564b20(0xd2)),_0x21c3e6=readKnowledgeFile(_0x47ccb0['str'](_0x564b20(0xea))),_0x4e1fcd=await createPersonalKnowledgeBaseItem(_0x47ccb0['appCode'],{'title':_0x5edae2,'content':_0x21c3e6});return{'ok':!![],'data':summarizePersonalItem(_0x4e1fcd),'message':_0x564b20(0xde)+_0x4e1fcd['id']+'\x20('+_0x4e1fcd[_0x564b20(0xd2)]+')'};},async 'dryRun'(_0x138d88){const _0x40b56c=a33_0x283fd7,_0x2e55d5=_0x138d88[_0x40b56c(0xeb)](_0x40b56c(0xd2)),_0x597ed5=readKnowledgeFile(_0x138d88[_0x40b56c(0xeb)](_0x40b56c(0xea)));return dryRun(_0x40b56c(0xc7),'/client/knowledge-base/personal/create')[_0x40b56c(0xe1)]({'appCode':_0x138d88[_0x40b56c(0xc6)],'title':_0x2e55d5,'content':_0x597ed5})[_0x40b56c(0xff)](_0x40b56c(0xd5)+_0x2e55d5+'\x22')[_0x40b56c(0xfc)]();}},kbUpdate={'service':'kb','command':a33_0x283fd7(0xcd),'description':a33_0x283fd7(0xf9),'risk':a33_0x283fd7(0xf0),'confirmationDescription':a33_0x283fd7(0xc5),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a33_0x283fd7(0xe8)},FILE_FLAG],async 'execute'(_0x349420){const _0x47cd0f=a33_0x283fd7,_0x4b9287=_0x349420['num']('id'),_0x873fbf=readKnowledgeFile(_0x349420['str'](_0x47cd0f(0xea))),_0x5e1fd5=_0x349420[_0x47cd0f(0xeb)](_0x47cd0f(0xd2))||(await getPersonalKnowledgeBaseItem(_0x4b9287,_0x349420[_0x47cd0f(0xc6)]))[_0x47cd0f(0xd2)],_0x237b38=await updatePersonalKnowledgeBaseItem(_0x4b9287,_0x349420['appCode'],{'title':_0x5e1fd5,'content':_0x873fbf});return{'ok':!![],'data':summarizePersonalItem(_0x237b38),'message':_0x47cd0f(0xda)+_0x237b38['id']+'\x20('+_0x237b38['title']+')'};},async 'dryRun'(_0x5ae9d6){const _0x4fbb7e=a33_0x283fd7,_0x437342=_0x5ae9d6['num']('id'),_0x57ecc7=readKnowledgeFile(_0x5ae9d6[_0x4fbb7e(0xeb)](_0x4fbb7e(0xea))),_0x3b8112=_0x5ae9d6[_0x4fbb7e(0xeb)]('title')||(await getPersonalKnowledgeBaseItem(_0x437342,_0x5ae9d6[_0x4fbb7e(0xc6)]))[_0x4fbb7e(0xd2)];return dryRun(_0x4fbb7e(0xc7),'/client/knowledge-base/personal/'+_0x437342+_0x4fbb7e(0xd9))[_0x4fbb7e(0xe1)]({'appCode':_0x5ae9d6[_0x4fbb7e(0xc6)],'title':_0x3b8112,'content':_0x57ecc7})[_0x4fbb7e(0xff)](_0x4fbb7e(0xdc)+_0x437342)[_0x4fbb7e(0xfc)]();}},kbSearch={'service':'kb','command':a33_0x283fd7(0xf5),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a33_0x283fd7(0xf2),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x1407e9){const _0x4475b0=a33_0x283fd7;if(!_0x1407e9['str'](_0x4475b0(0xdf))[_0x4475b0(0xfe)]())throw CliErrors[_0x4475b0(0x104)]('Search\x20query\x20is\x20required.');readTopK(_0x1407e9);},async 'execute'(_0x5f3acf){const _0x247348=a33_0x283fd7,_0x75c93d=_0x5f3acf[_0x247348(0xeb)](_0x247348(0xdf))[_0x247348(0xfe)](),_0x5e42bf=readTopK(_0x5f3acf),_0x2a9d4b=await searchRuntimeKnowledge({'appCode':_0x5f3acf['appCode'],'accessKey':_0x5f3acf[_0x247348(0xf6)]??'','query':_0x75c93d,..._0x5e42bf!==undefined?{'topK':_0x5e42bf}:{},'signal':_0x5f3acf['signal']});return{'ok':!![],'data':_0x2a9d4b};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a34_0x1ddf00=a34_0x35c1;(function(_0x566e12,_0x1b4c4f){const _0x33c088=a34_0x35c1,_0x1b161f=_0x566e12();while(!![]){try{const _0x58111b=-parseInt(_0x33c088(0x9b))/0x1*(-parseInt(_0x33c088(0x93))/0x2)+parseInt(_0x33c088(0x88))/0x3*(-parseInt(_0x33c088(0x9e))/0x4)+-parseInt(_0x33c088(0x98))/0x5+-parseInt(_0x33c088(0x9f))/0x6+parseInt(_0x33c088(0x84))/0x7+-parseInt(_0x33c088(0x8f))/0x8+parseInt(_0x33c088(0x95))/0x9;if(_0x58111b===_0x1b4c4f)break;else _0x1b161f['push'](_0x1b161f['shift']());}catch(_0x11f21d){_0x1b161f['push'](_0x1b161f['shift']());}}}(a34_0x9a27,0x7d053));import{logger}from'../../utils/logger.js';function a34_0x9a27(){const _0x212870=['level','378789ApsQyO','warn','details','\x20\x20\x20Duration:\x20','toLocaleString','readLogs','duration','3716272zmbtGM','forEach','log','timestamp','78HNzeLD','error','14479614WkqxnA','en-US','message','4848780XvCkpI','command','View\x20command\x20history\x20logs','19914APQPKb','logs','length','12bnuqQJ','4742358emBXPt','stringify','\x20\x20\x20Time:\x20','5110441yqSOfL','*\x20No\x20logs\x20found','read'];a34_0x9a27=function(){return _0x212870;};return a34_0x9a27();}function a34_0x35c1(_0x2e6910,_0x18181c){_0x2e6910=_0x2e6910-0x83;const _0x9a276c=a34_0x9a27();let _0x35c137=_0x9a276c[_0x2e6910];return _0x35c137;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x524fd8){const _0x27121a=a34_0x35c1;if(_0x524fd8[_0x27121a(0x9d)]===0x0){console[_0x27121a(0x91)](_0x27121a(0x85));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x524fd8[_0x27121a(0x90)]((_0x5152ea,_0x37c7ae)=>{const _0x4fef1d=_0x27121a,_0x34be95=new Date(_0x5152ea[_0x4fef1d(0x92)])[_0x4fef1d(0x8c)](_0x4fef1d(0x96)),_0xb9e940=_0x5152ea[_0x4fef1d(0x87)]==='success'?'√':_0x5152ea[_0x4fef1d(0x87)]===_0x4fef1d(0x94)?'×':_0x5152ea[_0x4fef1d(0x87)]===_0x4fef1d(0x89)?'!':'i';console['log'](_0x37c7ae+0x1+'.\x20'+_0xb9e940+'\x20['+_0x5152ea[_0x4fef1d(0x99)]+']\x20'+_0x5152ea[_0x4fef1d(0x97)]),console['log'](_0x4fef1d(0x83)+_0x34be95),_0x5152ea[_0x4fef1d(0x8e)]&&console[_0x4fef1d(0x91)](_0x4fef1d(0x8b)+_0x5152ea[_0x4fef1d(0x8e)]+'ms'),_0x5152ea['details']&&Object['keys'](_0x5152ea[_0x4fef1d(0x8a)])[_0x4fef1d(0x9d)]>0x0&&console[_0x4fef1d(0x91)]('\x20\x20\x20Details:\x20'+JSON[_0x4fef1d(0xa0)](_0x5152ea['details'],null,0x2)),console[_0x4fef1d(0x91)]('');});}export const logsDefinitions=[{'service':a34_0x1ddf00(0x9c),'command':'show','description':a34_0x1ddf00(0x9a),'risk':a34_0x1ddf00(0x86),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x212f7a){const _0x740085=a34_0x1ddf00;return printLogs(logger[_0x740085(0x8d)]()),{'ok':!![]};}}];
1
+ const a34_0x183fea=a34_0x3954;(function(_0x12edc8,_0xc33b2f){const _0x553dee=a34_0x3954,_0x2b740f=_0x12edc8();while(!![]){try{const _0x158242=-parseInt(_0x553dee(0x74))/0x1+parseInt(_0x553dee(0x79))/0x2*(parseInt(_0x553dee(0x84))/0x3)+-parseInt(_0x553dee(0x72))/0x4+-parseInt(_0x553dee(0x7a))/0x5*(parseInt(_0x553dee(0x8a))/0x6)+parseInt(_0x553dee(0x81))/0x7+parseInt(_0x553dee(0x7c))/0x8+parseInt(_0x553dee(0x7f))/0x9;if(_0x158242===_0xc33b2f)break;else _0x2b740f['push'](_0x2b740f['shift']());}catch(_0x9241be){_0x2b740f['push'](_0x2b740f['shift']());}}}(a34_0x41de,0x19815));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x5504ea){const _0x101a5b=a34_0x3954;if(_0x5504ea[_0x101a5b(0x78)]===0x0){console['log'](_0x101a5b(0x83));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x101a5b(0x87)),_0x5504ea[_0x101a5b(0x7b)]((_0x54886b,_0x1cdbcd)=>{const _0x5ba4df=_0x101a5b,_0x464903=new Date(_0x54886b[_0x5ba4df(0x7d)])[_0x5ba4df(0x89)](_0x5ba4df(0x88)),_0x382a9d=_0x54886b[_0x5ba4df(0x76)]==='success'?'√':_0x54886b[_0x5ba4df(0x76)]===_0x5ba4df(0x86)?'×':_0x54886b[_0x5ba4df(0x76)]===_0x5ba4df(0x8c)?'!':'i';console[_0x5ba4df(0x80)](_0x1cdbcd+0x1+'.\x20'+_0x382a9d+'\x20['+_0x54886b['command']+']\x20'+_0x54886b[_0x5ba4df(0x8d)]),console[_0x5ba4df(0x80)]('\x20\x20\x20Time:\x20'+_0x464903),_0x54886b['duration']&&console['log'](_0x5ba4df(0x73)+_0x54886b['duration']+'ms'),_0x54886b[_0x5ba4df(0x75)]&&Object[_0x5ba4df(0x82)](_0x54886b[_0x5ba4df(0x75)])[_0x5ba4df(0x78)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5ba4df(0x85)](_0x54886b[_0x5ba4df(0x75)],null,0x2)),console['log']('');});}function a34_0x3954(_0x236b5d,_0x1e71b9){_0x236b5d=_0x236b5d-0x72;const _0x41defc=a34_0x41de();let _0x395467=_0x41defc[_0x236b5d];return _0x395467;}function a34_0x41de(){const _0x332bbf=['keys','*\x20No\x20logs\x20found','344238ZSjfrc','stringify','error','\x20logs:\x0a','en-US','toLocaleString','24zvoUaM','show','warn','message','349336CYlzIR','\x20\x20\x20Duration:\x20','126948ohiEXS','details','level','View\x20command\x20history\x20logs','length','2VkpAlj','255700NvAlwD','forEach','614960IDOlfL','timestamp','readLogs','2951118iUhjQO','log','26551RhTMwc'];a34_0x41de=function(){return _0x332bbf;};return a34_0x41de();}export const logsDefinitions=[{'service':'logs','command':a34_0x183fea(0x8b),'description':a34_0x183fea(0x77),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5ee03a){const _0x1498dc=a34_0x183fea;return printLogs(logger[_0x1498dc(0x7e)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a35_0x13e7(){const _0x1047f0=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','appCode','config-list','120470rBXiSx','16WoFkqG','1324512xmuUBx','string','436032vPNWjR','EMAIL','type','\x20notification\x20config(s)','Notification\x20channel\x20type','259452WFADgN','read','233575OYZXGp','1280376ZCntAD','2746336unMjNR','length','notification'];a35_0x13e7=function(){return _0x1047f0;};return a35_0x13e7();}const a35_0x5393f8=a35_0x59fb;function a35_0x59fb(_0x5a68d3,_0x1dbdfa){_0x5a68d3=_0x5a68d3-0x9e;const _0x13e7ca=a35_0x13e7();let _0x59fb3b=_0x13e7ca[_0x5a68d3];return _0x59fb3b;}(function(_0x4b69a0,_0x26b071){const _0x5927c0=a35_0x59fb,_0x581d82=_0x4b69a0();while(!![]){try{const _0x180345=parseInt(_0x5927c0(0xad))/0x1+parseInt(_0x5927c0(0x9e))/0x2+-parseInt(_0x5927c0(0xa3))/0x3+parseInt(_0x5927c0(0xae))/0x4*(parseInt(_0x5927c0(0xa5))/0x5)+parseInt(_0x5927c0(0xa6))/0x6+-parseInt(_0x5927c0(0xaf))/0x7+-parseInt(_0x5927c0(0xa7))/0x8;if(_0x180345===_0x26b071)break;else _0x581d82['push'](_0x581d82['shift']());}catch(_0x5061ed){_0x581d82['push'](_0x581d82['shift']());}}}(a35_0x13e7,0x1d3c6));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x5393f8(0xa9),'command':a35_0x5393f8(0xac),'description':a35_0x5393f8(0xaa),'risk':a35_0x5393f8(0xa4),'flags':[{'name':a35_0x5393f8(0xa0),'type':a35_0x5393f8(0xb0),'description':a35_0x5393f8(0xa2),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x5393f8(0x9f)}],async 'validate'(_0x7391fe){readNotificationChannelType(_0x7391fe);},async 'execute'(_0x2862a7){const _0x3cdad3=a35_0x5393f8,_0x3fff93=readNotificationChannelType(_0x2862a7),_0x5ac7f1=await listNotificationChannelConfigs(_0x2862a7[_0x3cdad3(0xab)],_0x3fff93),_0x1f3f1e=_0x5ac7f1['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x2862a7['appCode'],'channelType':_0x3fff93,'count':_0x1f3f1e[_0x3cdad3(0xa8)],'configs':_0x1f3f1e},'message':'Found\x20'+_0x1f3f1e[_0x3cdad3(0xa8)]+'\x20'+_0x3fff93+_0x3cdad3(0xa1)};}};
1
+ const a35_0x2ec81b=a35_0x5d66;function a35_0x37e5(){const _0x55dbf6=['18856xyAKEe','10372740xPuVQn','config-list','1413660WOTLFQ','Found\x20','1576OKvwlc','Notification\x20channel\x20type','length','1160128QKvGZS','EMAIL','6993610fVommE','20376DUnpcI','map','1061592FfCKKk','1762IJidde','string','appCode'];a35_0x37e5=function(){return _0x55dbf6;};return a35_0x37e5();}function a35_0x5d66(_0x4f61ff,_0x51bb28){_0x4f61ff=_0x4f61ff-0xb5;const _0x37e557=a35_0x37e5();let _0x5d6634=_0x37e557[_0x4f61ff];return _0x5d6634;}(function(_0x2b8b9,_0x283f97){const _0x3f73a0=a35_0x5d66,_0x5da0b3=_0x2b8b9();while(!![]){try{const _0x5bb16f=-parseInt(_0x3f73a0(0xb7))/0x1*(parseInt(_0x3f73a0(0xc0))/0x2)+-parseInt(_0x3f73a0(0xbf))/0x3+parseInt(_0x3f73a0(0xba))/0x4+-parseInt(_0x3f73a0(0xbc))/0x5+-parseInt(_0x3f73a0(0xb5))/0x6+-parseInt(_0x3f73a0(0xc4))/0x7+-parseInt(_0x3f73a0(0xc3))/0x8*(-parseInt(_0x3f73a0(0xbd))/0x9);if(_0x5bb16f===_0x283f97)break;else _0x5da0b3['push'](_0x5da0b3['shift']());}catch(_0x3530bb){_0x5da0b3['push'](_0x5da0b3['shift']());}}}(a35_0x37e5,0xbb740));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a35_0x2ec81b(0xc5),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[{'name':'type','type':a35_0x2ec81b(0xc1),'description':a35_0x2ec81b(0xb8),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x2ec81b(0xbb)}],async 'validate'(_0x28a3b6){readNotificationChannelType(_0x28a3b6);},async 'execute'(_0x3147f0){const _0x4b4e2e=a35_0x2ec81b,_0x4d1ffb=readNotificationChannelType(_0x3147f0),_0x3477a5=await listNotificationChannelConfigs(_0x3147f0['appCode'],_0x4d1ffb),_0x180c0b=_0x3477a5[_0x4b4e2e(0xbe)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3147f0[_0x4b4e2e(0xc2)],'channelType':_0x4d1ffb,'count':_0x180c0b['length'],'configs':_0x180c0b},'message':_0x4b4e2e(0xb6)+_0x180c0b[_0x4b4e2e(0xb9)]+'\x20'+_0x4d1ffb+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- function a36_0x581b(){const _0x1c70ed=['1bxkFdX','79263ZTWXIi','2949930vCfEaR','12544BQUAKw','8cWewIm','1030VfXeNy','3616TPojpg','831925abZgmm','99910BpMFhk','30050229ohSOVy','6227430lwQija'];a36_0x581b=function(){return _0x1c70ed;};return a36_0x581b();}function a36_0x1b7e(_0x4f9069,_0x1dac73){_0x4f9069=_0x4f9069-0x161;const _0x581b33=a36_0x581b();let _0x1b7e2d=_0x581b33[_0x4f9069];return _0x1b7e2d;}(function(_0x471325,_0xdfa43c){const _0x4d6703=a36_0x1b7e,_0x489d9b=_0x471325();while(!![]){try{const _0x7309d8=parseInt(_0x4d6703(0x166))/0x1*(parseInt(_0x4d6703(0x163))/0x2)+-parseInt(_0x4d6703(0x168))/0x3+parseInt(_0x4d6703(0x16a))/0x4*(-parseInt(_0x4d6703(0x162))/0x5)+-parseInt(_0x4d6703(0x165))/0x6+-parseInt(_0x4d6703(0x169))/0x7*(parseInt(_0x4d6703(0x161))/0x8)+-parseInt(_0x4d6703(0x167))/0x9*(-parseInt(_0x4d6703(0x16b))/0xa)+parseInt(_0x4d6703(0x164))/0xb;if(_0x7309d8===_0xdfa43c)break;else _0x489d9b['push'](_0x489d9b['shift']());}catch(_0x2cb772){_0x489d9b['push'](_0x489d9b['shift']());}}}(a36_0x581b,0x80292));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x2aaebd,_0x1cce30){const _0x10a451=a36_0x4c36,_0x38fe1f=_0x2aaebd();while(!![]){try{const _0x3d9501=parseInt(_0x10a451(0x1cc))/0x1*(parseInt(_0x10a451(0x1cb))/0x2)+parseInt(_0x10a451(0x1d3))/0x3*(parseInt(_0x10a451(0x1ce))/0x4)+parseInt(_0x10a451(0x1cf))/0x5+-parseInt(_0x10a451(0x1d1))/0x6*(-parseInt(_0x10a451(0x1cd))/0x7)+-parseInt(_0x10a451(0x1d5))/0x8*(-parseInt(_0x10a451(0x1d0))/0x9)+-parseInt(_0x10a451(0x1d4))/0xa*(parseInt(_0x10a451(0x1d2))/0xb)+-parseInt(_0x10a451(0x1ca))/0xc;if(_0x3d9501===_0x1cce30)break;else _0x38fe1f['push'](_0x38fe1f['shift']());}catch(_0x55e2ac){_0x38fe1f['push'](_0x38fe1f['shift']());}}}(a36_0xb6d3,0x39bcb));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];function a36_0x4c36(_0x2eb624,_0x59f9fa){_0x2eb624=_0x2eb624-0x1ca;const _0xb6d3aa=a36_0xb6d3();let _0x4c36a2=_0xb6d3aa[_0x2eb624];return _0x4c36a2;}function a36_0xb6d3(){const _0x1e38dc=['10551qSfhyo','1200cCapTM','8tHxlLa','4405788mbELPt','2oDItdw','102584mtUvCA','2611NiqkMD','100mYTOmq','2089980gWgTTG','1603116tJENaj','282AWMipl','18381noHljX'];a36_0xb6d3=function(){return _0x1e38dc;};return a36_0xb6d3();}
@@ -1 +1 @@
1
- const a37_0xb81c36=a37_0x8bf9;(function(_0x25d22b,_0x5ce6be){const _0x219f56=a37_0x8bf9,_0x3e3a03=_0x25d22b();while(!![]){try{const _0x96b9e9=-parseInt(_0x219f56(0x198))/0x1*(-parseInt(_0x219f56(0x1a6))/0x2)+parseInt(_0x219f56(0x1a9))/0x3+parseInt(_0x219f56(0x194))/0x4*(parseInt(_0x219f56(0x1a4))/0x5)+-parseInt(_0x219f56(0x196))/0x6+parseInt(_0x219f56(0x19b))/0x7+-parseInt(_0x219f56(0x1a1))/0x8+-parseInt(_0x219f56(0x1ae))/0x9;if(_0x96b9e9===_0x5ce6be)break;else _0x3e3a03['push'](_0x3e3a03['shift']());}catch(_0x3a79b2){_0x3e3a03['push'](_0x3e3a03['shift']());}}}(a37_0x4dff,0x3d98e));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0xb81c36(0x1ab),'FEISHU',a37_0xb81c36(0x199),a37_0xb81c36(0x1a5),a37_0xb81c36(0x19c)];export function readNotificationChannelType(_0x3fce90){const _0x50f460=a37_0xb81c36,_0xd0a350=_0x3fce90[_0x50f460(0x1a2)](_0x50f460(0x1aa))[_0x50f460(0x195)]()||_0x50f460(0x1ab);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0xd0a350))throw CliErrors['validation']('Invalid\x20--type:\x20'+_0xd0a350,_0x50f460(0x1ac)+NOTIFICATION_CHANNEL_TYPES[_0x50f460(0x19a)](',\x20')+'.');return _0xd0a350;}export function projectNotificationListConfig(_0x2f5d25,_0x38b631){const _0x3aa78e=a37_0xb81c36,_0x35255b=requireResponseObject(_0x2f5d25,_0x38b631);return{'configCode':requireResponseString(_0x35255b[_0x3aa78e(0x1a0)],'configCode',_0x38b631),'configName':requireResponseString(_0x35255b['configName'],_0x3aa78e(0x1ad),_0x38b631),'channelType':requireResponseString(_0x35255b[_0x3aa78e(0x19f)],_0x3aa78e(0x19f),_0x38b631),'description':normalizeNullableString(_0x35255b[_0x3aa78e(0x1a7)])};}function requireResponseObject(_0x5cecc5,_0x5f8c2f){const _0x3038b3=a37_0xb81c36;if(typeof _0x5cecc5!=='object'||_0x5cecc5===null||Array[_0x3038b3(0x19e)](_0x5cecc5))throw CliErrors['apiError'](_0x3038b3(0x1a8),'Item\x20'+(_0x5f8c2f+0x1)+_0x3038b3(0x1a3));return _0x5cecc5;}function a37_0x8bf9(_0x524a28,_0x1cd4c2){_0x524a28=_0x524a28-0x194;const _0x4dffff=a37_0x4dff();let _0x8bf9e=_0x4dffff[_0x524a28];return _0x8bf9e;}function requireResponseString(_0x4af599,_0x4aac32,_0x985f8b){const _0x1ece90=a37_0xb81c36;if(typeof _0x4af599!==_0x1ece90(0x19d)||!_0x4af599[_0x1ece90(0x195)]())throw CliErrors['apiError'](_0x1ece90(0x1a8),'Item\x20'+(_0x985f8b+0x1)+_0x1ece90(0x197)+_0x4aac32+'\x22.');return _0x4af599[_0x1ece90(0x195)]();}function normalizeNullableString(_0x1b3f9b){const _0x5c9170=a37_0xb81c36;return typeof _0x1b3f9b===_0x5c9170(0x19d)&&_0x1b3f9b[_0x5c9170(0x195)]()?_0x1b3f9b['trim']():null;}function a37_0x4dff(){const _0x2d310f=['Allowed\x20values:\x20','configName','2244582Bymhoy','64600gEjFbi','trim','497760KSrrXT','\x20is\x20missing\x20required\x20field\x20\x22','66754FxifMm','DINGTALK','join','779289QzQxVr','WEBHOOK','string','isArray','channelType','configCode','3605272CuPBpO','str','\x20must\x20be\x20an\x20object.','125pUiKHX','WECOM','14LVbpyq','description','Invalid\x20notification\x20config\x20response.','158892rKKIQA','type','EMAIL'];a37_0x4dff=function(){return _0x2d310f;};return a37_0x4dff();}
1
+ const a37_0x114aea=a37_0x452a;(function(_0x3e4985,_0x3d2f00){const _0x18ca5f=a37_0x452a,_0x41d784=_0x3e4985();while(!![]){try{const _0x107a5a=-parseInt(_0x18ca5f(0x113))/0x1*(parseInt(_0x18ca5f(0x11c))/0x2)+-parseInt(_0x18ca5f(0x126))/0x3*(parseInt(_0x18ca5f(0x11b))/0x4)+-parseInt(_0x18ca5f(0x122))/0x5*(parseInt(_0x18ca5f(0x111))/0x6)+parseInt(_0x18ca5f(0x112))/0x7+-parseInt(_0x18ca5f(0x10b))/0x8+parseInt(_0x18ca5f(0x109))/0x9+parseInt(_0x18ca5f(0x119))/0xa;if(_0x107a5a===_0x3d2f00)break;else _0x41d784['push'](_0x41d784['shift']());}catch(_0x209743){_0x41d784['push'](_0x41d784['shift']());}}}(a37_0x40b0,0x4c525));import{CliErrors}from'../../errors.js';function a37_0x40b0(){const _0x46ddf2=['EMAIL','type','configCode','636FFEBjh','apiError','includes','\x20must\x20be\x20an\x20object.','868203ZKGwRx','validation','1178144efCZQb','string','channelType','Invalid\x20notification\x20config\x20response.','WECOM','isArray','6QVslvH','4009222UbEokn','2877LPhpqj','str','\x20is\x20missing\x20required\x20field\x20\x22','object','configName','join','9702860ROUtkv','Allowed\x20values:\x20','11744inPaTw','266ODucNp','DINGTALK','Invalid\x20--type:\x20','description','trim','WEBHOOK','872725LnUoRI'];a37_0x40b0=function(){return _0x46ddf2;};return a37_0x40b0();}export const NOTIFICATION_CHANNEL_TYPES=['EMAIL','FEISHU',a37_0x114aea(0x11d),a37_0x114aea(0x10f),a37_0x114aea(0x121)];function a37_0x452a(_0x586e10,_0xcfcf52){_0x586e10=_0x586e10-0x108;const _0x40b014=a37_0x40b0();let _0x452acd=_0x40b014[_0x586e10];return _0x452acd;}export function readNotificationChannelType(_0x48d92c){const _0x45bbd4=a37_0x114aea,_0x137a19=_0x48d92c[_0x45bbd4(0x114)](_0x45bbd4(0x124))[_0x45bbd4(0x120)]()||_0x45bbd4(0x123);if(!NOTIFICATION_CHANNEL_TYPES[_0x45bbd4(0x128)](_0x137a19))throw CliErrors[_0x45bbd4(0x10a)](_0x45bbd4(0x11e)+_0x137a19,_0x45bbd4(0x11a)+NOTIFICATION_CHANNEL_TYPES[_0x45bbd4(0x118)](',\x20')+'.');return _0x137a19;}export function projectNotificationListConfig(_0x3d9ab,_0x43fd09){const _0x1d8a08=a37_0x114aea,_0x5aa112=requireResponseObject(_0x3d9ab,_0x43fd09);return{'configCode':requireResponseString(_0x5aa112[_0x1d8a08(0x125)],'configCode',_0x43fd09),'configName':requireResponseString(_0x5aa112[_0x1d8a08(0x117)],_0x1d8a08(0x117),_0x43fd09),'channelType':requireResponseString(_0x5aa112[_0x1d8a08(0x10d)],_0x1d8a08(0x10d),_0x43fd09),'description':normalizeNullableString(_0x5aa112[_0x1d8a08(0x11f)])};}function requireResponseObject(_0x5bd33c,_0x134590){const _0xece1f6=a37_0x114aea;if(typeof _0x5bd33c!==_0xece1f6(0x116)||_0x5bd33c===null||Array[_0xece1f6(0x110)](_0x5bd33c))throw CliErrors[_0xece1f6(0x127)]('Invalid\x20notification\x20config\x20response.','Item\x20'+(_0x134590+0x1)+_0xece1f6(0x108));return _0x5bd33c;}function requireResponseString(_0x428243,_0x46e141,_0x3a80e7){const _0x598216=a37_0x114aea;if(typeof _0x428243!=='string'||!_0x428243['trim']())throw CliErrors[_0x598216(0x127)](_0x598216(0x10e),'Item\x20'+(_0x3a80e7+0x1)+_0x598216(0x115)+_0x46e141+'\x22.');return _0x428243[_0x598216(0x120)]();}function normalizeNullableString(_0x1fb50b){const _0xf2d64=a37_0x114aea;return typeof _0x1fb50b===_0xf2d64(0x10c)&&_0x1fb50b[_0xf2d64(0x120)]()?_0x1fb50b[_0xf2d64(0x120)]():null;}
@@ -1 +1 @@
1
- function a38_0x26af(){const _0x55e491=['139202bqssiz','scene','/client/ocr','string','length','invoice','str','ocr','recognize','join','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','body','6455jlrYKF','toLowerCase','validation','apiError','fileName','general','Unsupported\x20OCR\x20scene:\x20','1640MpkjDz','\x20OCR','/client/uploadFile','69714UDErmb','Invoice','File\x20URL\x20response\x20missing\x20fileUrl.','fileUrl','POST','General','3BdCYll','.\x20Supported\x20scenes:\x20','<filePath\x20returned\x20by\x20/client/uploadFile>','889344MqvRNz','174ButKpq','File\x20upload\x20response\x20missing\x20filePath.','build','Table','imageUrl','idcard','description','image-file','path','341190jUXUBD','image-url','IdCard','Publicly\x20accessible\x20image\x20or\x20file\x20URL','form','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','2583lSWLkY','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','\x20OCR\x20from\x20URL','imageFile','filePath','appCode','1946140QqQGJa','trim','/client/queryFileUrl','idCard'];a38_0x26af=function(){return _0x55e491;};return a38_0x26af();}const a38_0x2b56bb=a38_0xe0e1;(function(_0x591b63,_0x494068){const _0x25e090=a38_0xe0e1,_0x9088a7=_0x591b63();while(!![]){try{const _0x4e04e0=parseInt(_0x25e090(0x20b))/0x1+parseInt(_0x25e090(0x1f5))/0x2*(-parseInt(_0x25e090(0x211))/0x3)+-parseInt(_0x25e090(0x214))/0x4+parseInt(_0x25e090(0x201))/0x5*(parseInt(_0x25e090(0x215))/0x6)+parseInt(_0x25e090(0x224))/0x7*(parseInt(_0x25e090(0x208))/0x8)+parseInt(_0x25e090(0x21e))/0x9+parseInt(_0x25e090(0x1f1))/0xa;if(_0x4e04e0===_0x494068)break;else _0x9088a7['push'](_0x9088a7['shift']());}catch(_0x39c5a1){_0x9088a7['push'](_0x9088a7['shift']());}}}(a38_0x26af,0x1e1f9));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x2b56bb(0x1fa),a38_0x2b56bb(0x206),a38_0x2b56bb(0x222),'idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x2b56bb(0x20c),'general':a38_0x2b56bb(0x210),'form':a38_0x2b56bb(0x218),'idCard':a38_0x2b56bb(0x220)},SCENE_FLAG={'name':a38_0x2b56bb(0x1f6),'type':a38_0x2b56bb(0x1f8),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x2b56bb(0x225)},IMAGE_FILE_FLAG={'name':a38_0x2b56bb(0x21c),'type':a38_0x2b56bb(0x1f8),'description':a38_0x2b56bb(0x223)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x2b56bb(0x1f8),'description':a38_0x2b56bb(0x221)};function normalizeScene(_0x5099ef){const _0x493625=a38_0x2b56bb,_0x1354e5=_0x5099ef['trim']()[_0x493625(0x202)]();if(_0x1354e5===_0x493625(0x21a))return _0x493625(0x1f4);if(_0x1354e5===_0x493625(0x1fa)||_0x1354e5===_0x493625(0x206)||_0x1354e5===_0x493625(0x222))return _0x1354e5;throw CliErrors[_0x493625(0x203)](_0x493625(0x207)+_0x5099ef+_0x493625(0x212)+SUPPORTED_SCENES[_0x493625(0x1fe)](',\x20'));}function selectedInputs(_0x582010){const _0x47385f=a38_0x2b56bb,_0xf24ee6=_0x582010[_0x47385f(0x1fb)](_0x47385f(0x21c))[_0x47385f(0x1f2)](),_0x4b3cb1=_0x582010[_0x47385f(0x1fb)](_0x47385f(0x21f))[_0x47385f(0x1f2)]();return{'imageFile':_0xf24ee6,'imageUrl':_0x4b3cb1,'count':[_0xf24ee6,_0x4b3cb1]['filter'](Boolean)[_0x47385f(0x1f9)]};}function validateInputSelection(_0x2a8b7b){const _0x5a219c=a38_0x2b56bb,_0x4b6f07=selectedInputs(_0x2a8b7b);if(_0x4b6f07['count']!==0x1)throw CliErrors[_0x5a219c(0x203)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x4b6f07;}function withScene(_0x3bfaa8,_0x3f3de1,_0x250a36){const _0x393e63=a38_0x2b56bb;return{..._0x3bfaa8,'scene':_0x3f3de1,..._0x250a36?{'sourceFile':{'fileName':_0x250a36[_0x393e63(0x205)],'filePath':_0x250a36[_0x393e63(0x1ef)]}}:{}};}function a38_0xe0e1(_0x33ce68,_0x3e24bf){_0x33ce68=_0x33ce68-0x1ee;const _0x26afdc=a38_0x26af();let _0xe0e15b=_0x26afdc[_0x33ce68];return _0xe0e15b;}const ocrRecognize={'service':a38_0x2b56bb(0x1fc),'command':a38_0x2b56bb(0x1fd),'description':a38_0x2b56bb(0x1ff),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x256bcc){const _0x45753a=a38_0x2b56bb,_0x2d06be=normalizeScene(_0x256bcc[_0x45753a(0x1fb)](_0x45753a(0x1f6))),_0x5a43ad=SCENE_TO_LEGACY_TYPE[_0x2d06be],_0x29c4c1=validateInputSelection(_0x256bcc);if(_0x29c4c1['imageUrl'])return dryRun('POST',_0x45753a(0x1f7))[_0x45753a(0x200)]({'appCode':_0x256bcc[_0x45753a(0x1f0)],'url':_0x29c4c1[_0x45753a(0x219)],'type':_0x5a43ad})[_0x45753a(0x21b)]('Preview:\x20recognize\x20'+_0x2d06be+_0x45753a(0x226))[_0x45753a(0x217)]();const _0x4ad4c6=requireRuntimeUploadFile(_0x29c4c1[_0x45753a(0x1ee)],'image-file');return dryRun('POST','/client/uploadFile')[_0x45753a(0x200)]({'steps':[{'method':_0x45753a(0x20f),'url':_0x45753a(0x20a),'body':{'appCode':_0x256bcc['appCode'],'multipart':{'file':_0x4ad4c6}}},{'method':'POST','url':_0x45753a(0x1f3),'body':{'filePath':_0x45753a(0x213),'downloadFlag':![]}},{'method':'POST','url':_0x45753a(0x1f7),'body':{'appCode':_0x256bcc[_0x45753a(0x1f0)],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x5a43ad}}]})['description']('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x2d06be+_0x45753a(0x209))['build']();},async 'execute'(_0x553533){const _0x4bb130=a38_0x2b56bb,_0x244623=normalizeScene(_0x553533[_0x4bb130(0x1fb)](_0x4bb130(0x1f6))),_0x24b069=SCENE_TO_LEGACY_TYPE[_0x244623],_0x4fc235=validateInputSelection(_0x553533);if(_0x4fc235[_0x4bb130(0x219)]){const _0x1293f0=await recognizeRuntimeOcr(_0x553533[_0x4bb130(0x1f0)],{'url':_0x4fc235[_0x4bb130(0x219)],'type':_0x24b069});return{'ok':!![],'data':withScene(_0x1293f0,_0x244623)};}const _0x68ebb3=requireRuntimeUploadFile(_0x4fc235['imageFile'],_0x4bb130(0x21c)),_0x4dfbb5=await uploadRuntimeFile(_0x553533['appCode'],_0x68ebb3[_0x4bb130(0x21d)]);if(!_0x4dfbb5[_0x4bb130(0x1ef)])throw CliErrors[_0x4bb130(0x204)](_0x4bb130(0x216));const _0x2369f6=await queryRuntimeFileUrl(_0x4dfbb5[_0x4bb130(0x1ef)],{'download':![]});if(!_0x2369f6[_0x4bb130(0x20e)])throw CliErrors[_0x4bb130(0x204)](_0x4bb130(0x20d));const _0x88f606=await recognizeRuntimeOcr(_0x553533[_0x4bb130(0x1f0)],{'url':_0x2369f6[_0x4bb130(0x20e)],'type':_0x24b069});return{'ok':!![],'data':withScene(_0x88f606,_0x244623,_0x4dfbb5)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x33c81c=a38_0x3788;(function(_0x1fb2ba,_0x19cbde){const _0x341b72=a38_0x3788,_0x2ac841=_0x1fb2ba();while(!![]){try{const _0x5ac34b=-parseInt(_0x341b72(0x8d))/0x1*(-parseInt(_0x341b72(0x93))/0x2)+-parseInt(_0x341b72(0x85))/0x3+parseInt(_0x341b72(0xa7))/0x4+-parseInt(_0x341b72(0xb7))/0x5*(-parseInt(_0x341b72(0x99))/0x6)+-parseInt(_0x341b72(0x89))/0x7*(-parseInt(_0x341b72(0xb2))/0x8)+parseInt(_0x341b72(0x9a))/0x9*(parseInt(_0x341b72(0x9f))/0xa)+-parseInt(_0x341b72(0x9e))/0xb;if(_0x5ac34b===_0x19cbde)break;else _0x2ac841['push'](_0x2ac841['shift']());}catch(_0x1253c2){_0x2ac841['push'](_0x2ac841['shift']());}}}(a38_0x3957,0x2b161));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';function a38_0x3788(_0x164a8f,_0x59f7b3){_0x164a8f=_0x164a8f-0x85;const _0x3957fe=a38_0x3957();let _0x37884b=_0x3957fe[_0x164a8f];return _0x37884b;}const SUPPORTED_SCENES=['invoice',a38_0x33c81c(0x88),a38_0x33c81c(0x90),a38_0x33c81c(0xa8)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x33c81c(0xb6),'general':'General','form':a38_0x33c81c(0x9d),'idCard':'IdCard'},SCENE_FLAG={'name':a38_0x33c81c(0x8b),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x33c81c(0xb0)},IMAGE_FILE_FLAG={'name':'image-file','type':a38_0x33c81c(0xac),'description':a38_0x33c81c(0x94)},IMAGE_URL_FLAG={'name':'image-url','type':a38_0x33c81c(0xac),'description':a38_0x33c81c(0xa4)};function normalizeScene(_0x3dafff){const _0x173ca9=a38_0x33c81c,_0x4f85b2=_0x3dafff[_0x173ca9(0x8a)]()['toLowerCase']();if(_0x4f85b2===_0x173ca9(0x8f))return _0x173ca9(0xa8);if(_0x4f85b2===_0x173ca9(0x8c)||_0x4f85b2===_0x173ca9(0x88)||_0x4f85b2===_0x173ca9(0x90))return _0x4f85b2;throw CliErrors[_0x173ca9(0xa6)](_0x173ca9(0xa0)+_0x3dafff+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES['join'](',\x20'));}function a38_0x3957(){const _0x2a7ee8=['scene','invoice','3kMPICg','imageFile','idcard','form','read','/client/ocr','198514AvhMHG','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','\x20OCR\x20from\x20URL','Preview:\x20recognize\x20','/client/uploadFile','filePath','6bITHnV','1427904OrixXj','length','image-file','Table','5609868PNNyDm','10DwxrZQ','Unsupported\x20OCR\x20scene:\x20','File\x20upload\x20response\x20missing\x20filePath.','build','body','Publicly\x20accessible\x20image\x20or\x20file\x20URL','image-url','validation','226108qTATyW','idCard','ocr','File\x20URL\x20response\x20missing\x20fileUrl.','str','string','/client/queryFileUrl','POST','appCode','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','42528oKhhdf','count','apiError','recognize','Invoice','894755gEJPML','imageUrl','\x20OCR','957240zPyPuk','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','fileName','general','413GqMwHD','trim'];a38_0x3957=function(){return _0x2a7ee8;};return a38_0x3957();}function selectedInputs(_0x40ab22){const _0x51a6ab=a38_0x33c81c,_0x4b8df4=_0x40ab22[_0x51a6ab(0xab)]('image-file')[_0x51a6ab(0x8a)](),_0x172351=_0x40ab22['str'](_0x51a6ab(0xa5))[_0x51a6ab(0x8a)]();return{'imageFile':_0x4b8df4,'imageUrl':_0x172351,'count':[_0x4b8df4,_0x172351]['filter'](Boolean)[_0x51a6ab(0x9b)]};}function validateInputSelection(_0x475cbb){const _0x23c397=a38_0x33c81c,_0x243560=selectedInputs(_0x475cbb);if(_0x243560[_0x23c397(0xb3)]!==0x1)throw CliErrors[_0x23c397(0xa6)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x243560;}function withScene(_0x286455,_0x2dd002,_0x360f42){const _0x48909d=a38_0x33c81c;return{..._0x286455,'scene':_0x2dd002,..._0x360f42?{'sourceFile':{'fileName':_0x360f42[_0x48909d(0x87)],'filePath':_0x360f42[_0x48909d(0x98)]}}:{}};}const ocrRecognize={'service':a38_0x33c81c(0xa9),'command':a38_0x33c81c(0xb5),'description':a38_0x33c81c(0xb1),'risk':a38_0x33c81c(0x91),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xadae9c){const _0x2b36bc=a38_0x33c81c,_0x1dfa70=normalizeScene(_0xadae9c[_0x2b36bc(0xab)]('scene')),_0x1bbf6d=SCENE_TO_LEGACY_TYPE[_0x1dfa70],_0x54728e=validateInputSelection(_0xadae9c);if(_0x54728e[_0x2b36bc(0xb8)])return dryRun(_0x2b36bc(0xae),_0x2b36bc(0x92))[_0x2b36bc(0xa3)]({'appCode':_0xadae9c[_0x2b36bc(0xaf)],'url':_0x54728e[_0x2b36bc(0xb8)],'type':_0x1bbf6d})['description'](_0x2b36bc(0x96)+_0x1dfa70+_0x2b36bc(0x95))[_0x2b36bc(0xa2)]();const _0x19f236=requireRuntimeUploadFile(_0x54728e['imageFile'],_0x2b36bc(0x9c));return dryRun(_0x2b36bc(0xae),_0x2b36bc(0x97))[_0x2b36bc(0xa3)]({'steps':[{'method':_0x2b36bc(0xae),'url':_0x2b36bc(0x97),'body':{'appCode':_0xadae9c[_0x2b36bc(0xaf)],'multipart':{'file':_0x19f236}}},{'method':_0x2b36bc(0xae),'url':_0x2b36bc(0xad),'body':{'filePath':'<filePath\x20returned\x20by\x20/client/uploadFile>','downloadFlag':![]}},{'method':_0x2b36bc(0xae),'url':_0x2b36bc(0x92),'body':{'appCode':_0xadae9c[_0x2b36bc(0xaf)],'url':_0x2b36bc(0x86),'type':_0x1bbf6d}}]})['description']('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x1dfa70+_0x2b36bc(0xb9))[_0x2b36bc(0xa2)]();},async 'execute'(_0x103e25){const _0x475cd5=a38_0x33c81c,_0x198a0e=normalizeScene(_0x103e25[_0x475cd5(0xab)]('scene')),_0x847b18=SCENE_TO_LEGACY_TYPE[_0x198a0e],_0x2ec7bc=validateInputSelection(_0x103e25);if(_0x2ec7bc[_0x475cd5(0xb8)]){const _0xeaf909=await recognizeRuntimeOcr(_0x103e25[_0x475cd5(0xaf)],{'url':_0x2ec7bc[_0x475cd5(0xb8)],'type':_0x847b18});return{'ok':!![],'data':withScene(_0xeaf909,_0x198a0e)};}const _0xdb927=requireRuntimeUploadFile(_0x2ec7bc[_0x475cd5(0x8e)],_0x475cd5(0x9c)),_0x5503d6=await uploadRuntimeFile(_0x103e25[_0x475cd5(0xaf)],_0xdb927['path']);if(!_0x5503d6['filePath'])throw CliErrors[_0x475cd5(0xb4)](_0x475cd5(0xa1));const _0x3aac7d=await queryRuntimeFileUrl(_0x5503d6[_0x475cd5(0x98)],{'download':![]});if(!_0x3aac7d['fileUrl'])throw CliErrors[_0x475cd5(0xb4)](_0x475cd5(0xaa));const _0x3997aa=await recognizeRuntimeOcr(_0x103e25[_0x475cd5(0xaf)],{'url':_0x3aac7d['fileUrl'],'type':_0x847b18});return{'ok':!![],'data':withScene(_0x3997aa,_0x198a0e,_0x5503d6)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x568a4e=a39_0x3730;(function(_0xe2b89d,_0x48236d){const _0x3b328b=a39_0x3730,_0x353dc7=_0xe2b89d();while(!![]){try{const _0x58d5e4=-parseInt(_0x3b328b(0x1c4))/0x1+parseInt(_0x3b328b(0x1bd))/0x2*(-parseInt(_0x3b328b(0x1c9))/0x3)+parseInt(_0x3b328b(0x1c7))/0x4*(-parseInt(_0x3b328b(0x1cd))/0x5)+-parseInt(_0x3b328b(0x1bc))/0x6+-parseInt(_0x3b328b(0x1ce))/0x7*(-parseInt(_0x3b328b(0x1cb))/0x8)+parseInt(_0x3b328b(0x1c2))/0x9+parseInt(_0x3b328b(0x1bf))/0xa*(parseInt(_0x3b328b(0x1cf))/0xb);if(_0x58d5e4===_0x48236d)break;else _0x353dc7['push'](_0x353dc7['shift']());}catch(_0x4a9270){_0x353dc7['push'](_0x353dc7['shift']());}}}(a39_0x7398,0xe8990));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x3730(_0xf53784,_0xde6390){_0xf53784=_0xf53784-0x1bc;const _0x7398bb=a39_0x7398();let _0x373042=_0x7398bb[_0xf53784];return _0x373042;}function a39_0x7398(){const _0x341ded=['556465nUbxQQ','3568313qGRsnM','66VVBVmn','7637742lMQkjY','2kxibas','runtime','9107790UEUTYX','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','str','828099AKgwSe','appCode','1861221wPkZEw','roleType','role','12RqZvlr','trim','4937001vVSBlO','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','8uLrgbd','string'];a39_0x7398=function(){return _0x341ded;};return a39_0x7398();}export const permitDatasetGet={'service':'permit','command':'dataset-get','description':a39_0x568a4e(0x1c0),'risk':'read','flags':[{'name':'role','type':a39_0x568a4e(0x1cc),'description':a39_0x568a4e(0x1ca)}],async 'execute'(_0x156d3d){const _0x164f2f=a39_0x568a4e,_0x34fcab=_0x156d3d[_0x164f2f(0x1c1)](_0x164f2f(0x1c6))[_0x164f2f(0x1c8)]();if(!_0x34fcab)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x156d3d['appCode'])}};const _0x59d9ac=await resolveRuntimeRoleRef(_0x156d3d[_0x164f2f(0x1c3)],_0x34fcab);return{'ok':!![],'data':{'scope':_0x164f2f(0x1be),'role':{'id':_0x59d9ac['id'],'roleName':_0x59d9ac['roleName'],'roleType':_0x59d9ac[_0x164f2f(0x1c5)]},'datasets':await listRuntimeDatasetPermits(_0x156d3d[_0x164f2f(0x1c3)],_0x59d9ac['id'])}};}};
1
+ const a39_0xdc9945=a39_0x35e7;(function(_0x552c18,_0x1fd8a6){const _0x21298c=a39_0x35e7,_0x502ebc=_0x552c18();while(!![]){try{const _0x67c476=parseInt(_0x21298c(0xd4))/0x1+-parseInt(_0x21298c(0xd6))/0x2*(parseInt(_0x21298c(0xd3))/0x3)+parseInt(_0x21298c(0xcb))/0x4*(parseInt(_0x21298c(0xc6))/0x5)+-parseInt(_0x21298c(0xc8))/0x6*(-parseInt(_0x21298c(0xd7))/0x7)+parseInt(_0x21298c(0xcf))/0x8+-parseInt(_0x21298c(0xc7))/0x9*(parseInt(_0x21298c(0xd5))/0xa)+-parseInt(_0x21298c(0xdb))/0xb;if(_0x67c476===_0x1fd8a6)break;else _0x502ebc['push'](_0x502ebc['shift']());}catch(_0x5d8b5c){_0x502ebc['push'](_0x502ebc['shift']());}}}(a39_0x31c2,0x6d7a8));function a39_0x35e7(_0xd5e788,_0x4de9f5){_0xd5e788=_0xd5e788-0xc4;const _0x31c2f6=a39_0x31c2();let _0x35e744=_0x31c2f6[_0xd5e788];return _0x35e744;}function a39_0x31c2(){const _0x30f870=['1509612boCtYN','384112GGddJG','3969640sUEmru','2LrVXTW','723177QKMlYX','runtime','dataset-get','read','7571333AnaJPj','str','roleName','6955mQQyHW','18GzQwzZ','42CmBMAr','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','appCode','2524SClahf','string','roleType','permit','3590792aWxKDq','role','trim','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'];a39_0x31c2=function(){return _0x30f870;};return a39_0x31c2();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0xdc9945(0xce),'command':a39_0xdc9945(0xd9),'description':a39_0xdc9945(0xc9),'risk':a39_0xdc9945(0xda),'flags':[{'name':'role','type':a39_0xdc9945(0xcc),'description':a39_0xdc9945(0xd2)}],async 'execute'(_0x1ebc83){const _0x2ed8e3=a39_0xdc9945,_0x2d5954=_0x1ebc83[_0x2ed8e3(0xc4)](_0x2ed8e3(0xd0))[_0x2ed8e3(0xd1)]();if(!_0x2d5954)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x1ebc83[_0x2ed8e3(0xca)])}};const _0x71633c=await resolveRuntimeRoleRef(_0x1ebc83[_0x2ed8e3(0xca)],_0x2d5954);return{'ok':!![],'data':{'scope':_0x2ed8e3(0xd8),'role':{'id':_0x71633c['id'],'roleName':_0x71633c[_0x2ed8e3(0xc5)],'roleType':_0x71633c[_0x2ed8e3(0xcd)]},'datasets':await listRuntimeDatasetPermits(_0x1ebc83['appCode'],_0x71633c['id'])}};}};