@lovrabet/lovrabet-cli 2.3.1-beta.3 → 2.3.1-beta.4

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 (175) 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.d.ts +3 -3
  97. package/lib/constant/domain.js +1 -1
  98. package/lib/constant/env.js +1 -1
  99. package/lib/constant/output.js +1 -1
  100. package/lib/constant/product.js +1 -1
  101. package/lib/constant/region.js +1 -1
  102. package/lib/constant/risk.js +1 -1
  103. package/lib/constant/url.js +1 -1
  104. package/lib/context.js +1 -1
  105. package/lib/core/api-client.d.ts +0 -16
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-search-client.d.ts +30 -0
  109. package/lib/core/kb-search-client.js +1 -0
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.d.ts +2 -0
  128. package/lib/framework/types.js +1 -1
  129. package/lib/generated/build-info.d.ts +4 -4
  130. package/lib/generated/build-info.js +1 -1
  131. package/lib/generated/official-routing.js +1 -1
  132. package/lib/generated/routing-contract.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/postinstall.js +1 -1
  135. package/lib/runtime/confirmation.js +1 -1
  136. package/lib/runtime/event.js +1 -1
  137. package/lib/runtime/index.js +1 -1
  138. package/lib/runtime/queue.js +1 -1
  139. package/lib/runtime/resolve.js +1 -1
  140. package/lib/skills/builtin-skill.js +1 -1
  141. package/lib/skills/npx-skills-add.js +1 -1
  142. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  143. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  144. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  145. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  146. package/lib/skills/runtime-skill-sync/links.js +1 -1
  147. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  148. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  149. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  150. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  151. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  152. package/lib/skills/runtime-skill-sync/push.js +1 -1
  153. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  155. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  156. package/lib/skills/runtime-skill-sync.js +1 -1
  157. package/lib/skills/skill-presence.js +1 -1
  158. package/lib/utils/access-key-redaction.js +1 -1
  159. package/lib/utils/apply-jq-filter.js +1 -1
  160. package/lib/utils/cli-version-check.js +1 -1
  161. package/lib/utils/cli-version-policy.js +1 -1
  162. package/lib/utils/logger.js +1 -1
  163. package/lib/utils/lossless-json.js +1 -1
  164. package/lib/utils/params.js +1 -1
  165. package/lib/utils/platform.js +1 -1
  166. package/lib/utils/update-notice.js +1 -1
  167. package/lib/utils/version.js +1 -1
  168. package/lib/utils/write-cli-side-channel.js +1 -1
  169. package/package.json +1 -1
  170. package/skills/lovrabet/SKILL.md +2 -2
  171. package/skills/lovrabet/references/lovrabet-config-commands.md +3 -1
  172. package/skills/lovrabet/references/lovrabet-config.md +2 -2
  173. package/skills/lovrabet/references/lovrabet-doctor.md +2 -0
  174. package/skills/lovrabet/references/lovrabet-kb-workflow.md +3 -1
  175. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a26_0x5c783d=a26_0x48f9;function a26_0x48f9(_0x131978,_0x172449){_0x131978=_0x131978-0x178;const _0x10a6ce=a26_0x10a6();let _0x48f9e8=_0x10a6ce[_0x131978];return _0x48f9e8;}(function(_0x17de89,_0x4d62aa){const _0x15c29c=a26_0x48f9,_0x3b1a27=_0x17de89();while(!![]){try{const _0x279ac6=-parseInt(_0x15c29c(0x1b3))/0x1*(-parseInt(_0x15c29c(0x18e))/0x2)+-parseInt(_0x15c29c(0x178))/0x3+parseInt(_0x15c29c(0x17e))/0x4+parseInt(_0x15c29c(0x1b6))/0x5*(-parseInt(_0x15c29c(0x1b5))/0x6)+-parseInt(_0x15c29c(0x192))/0x7+-parseInt(_0x15c29c(0x1ba))/0x8+-parseInt(_0x15c29c(0x182))/0x9*(-parseInt(_0x15c29c(0x18d))/0xa);if(_0x279ac6===_0x4d62aa)break;else _0x3b1a27['push'](_0x3b1a27['shift']());}catch(_0x23ea9e){_0x3b1a27['push'](_0x3b1a27['shift']());}}}(a26_0x10a6,0x57eae));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xac8a8){const _0x3316be=a26_0x48f9;if(_0xac8a8['deleted'])return null;const _0xc15efd=Boolean(_0xac8a8[_0x3316be(0x1a9)]!==undefined||_0xac8a8[_0x3316be(0x17b)]!==undefined);let _0x581636={};if(!_0xc15efd&&typeof _0xac8a8[_0x3316be(0x1b1)]==='string')try{_0x581636=JSON[_0x3316be(0x1bb)](_0xac8a8[_0x3316be(0x1b1)]);}catch{}const _0x4577fa=_0xc15efd?_0xac8a8[_0x3316be(0x1b2)]:_0xac8a8[_0x3316be(0x196)],_0x4b8a5b=_0xc15efd?_0xac8a8['displayName']:_0xac8a8['name'],_0x3834f9=_0xc15efd?_0xac8a8[_0x3316be(0x17b)]:_0xac8a8[_0x3316be(0x1a8)]||_0xac8a8[_0x3316be(0x180)],_0x4d5bbc=_0xc15efd?_0xac8a8[_0x3316be(0x194)]===!![]:_0x581636[_0x3316be(0x194)]===!![],_0x37a87c=_0xc15efd?_0xac8a8['required']===!![]:_0x581636['required']===!![],_0x69712=_0xc15efd?_0xac8a8['options']??null:_0x581636[_0x3316be(0x17f)]??null,_0x168654={'name':_0x4577fa,'displayName':_0x4b8a5b||_0x4577fa,'type':_0x3834f9,'dbType':_0xac8a8[_0x3316be(0x1b4)],'pk':_0x4d5bbc,'required':_0x37a87c,'description':_0xac8a8[_0x3316be(0x198)]||undefined};return Array[_0x3316be(0x18c)](_0x69712)&&_0x69712[_0x3316be(0x199)]>0x0&&(_0x168654[_0x3316be(0x17f)]=_0x69712),_0x168654;}function parseJsonMaybe(_0x210a55){const _0x2253f3=a26_0x48f9;if(typeof _0x210a55!==_0x2253f3(0x1bd))return _0x210a55;try{return JSON[_0x2253f3(0x1bb)](_0x210a55);}catch{return _0x210a55;}}function normalizeOperationEntry(_0x1a8329,_0x3b227c){const _0x8d3639=a26_0x48f9;if(!_0x3b227c||typeof _0x3b227c!==_0x8d3639(0x1a3))return null;if(!_0x3b227c[_0x8d3639(0x1a2)]||!_0x3b227c[_0x8d3639(0x19b)])return null;const _0x2c9053={'name':_0x1a8329,'method':_0x3b227c[_0x8d3639(0x1a2)],'path':_0x3b227c[_0x8d3639(0x19b)]};if(_0x3b227c[_0x8d3639(0x1b0)])_0x2c9053['host']=_0x3b227c[_0x8d3639(0x1b0)];if(_0x3b227c[_0x8d3639(0x185)]!=null)_0x2c9053[_0x8d3639(0x185)]=parseJsonMaybe(_0x3b227c['requestBody']);if(_0x3b227c[_0x8d3639(0x1b8)]!=null)_0x2c9053[_0x8d3639(0x1b8)]=parseJsonMaybe(_0x3b227c['responseBody']);if(_0x3b227c[_0x8d3639(0x1a7)]!=null)_0x2c9053['beforeScriptId']=_0x3b227c[_0x8d3639(0x1a7)];if(_0x3b227c['afterScriptId']!=null)_0x2c9053['afterScriptId']=_0x3b227c[_0x8d3639(0x193)];if(Array['isArray'](_0x3b227c[_0x8d3639(0x186)]))_0x2c9053[_0x8d3639(0x186)]=_0x3b227c[_0x8d3639(0x186)];if(Array[_0x8d3639(0x18c)](_0x3b227c[_0x8d3639(0x195)]))_0x2c9053[_0x8d3639(0x195)]=_0x3b227c['responseFields'];return _0x2c9053;}function summarizeDbtable(_0xf0136e){const _0x1046f4=a26_0x48f9,_0x5661d8={},_0x58b794=[_0x1046f4(0x1be),'dbName','tableName','datasetKey','pkField',_0x1046f4(0x1ae),'logicField',_0x1046f4(0x1a6),_0x1046f4(0x1ab),'creatorIdField',_0x1046f4(0x1b7),_0x1046f4(0x1bc),_0x1046f4(0x1a0),'labelField','dblinkInfoDTO'];for(const _0x5a4199 of _0x58b794){if(_0xf0136e[_0x5a4199]!==undefined)_0x5661d8[_0x5a4199]=_0xf0136e[_0x5a4199];}return typeof _0x5661d8['allFields']===_0x1046f4(0x1bd)&&_0x5661d8[_0x1046f4(0x1ae)][_0x1046f4(0x199)]>0x0&&(_0x5661d8[_0x1046f4(0x18b)]=_0x5661d8[_0x1046f4(0x1ae)][_0x1046f4(0x1af)](',')[_0x1046f4(0x1b9)](_0xf8c277=>_0xf8c277[_0x1046f4(0x17c)]())[_0x1046f4(0x19c)](Boolean)),_0x5661d8;}function normalizeRelatedPages(_0xa977d1){const _0xd055c=a26_0x48f9;if(!Array[_0xd055c(0x18c)](_0xa977d1))return[];return _0xa977d1[_0xd055c(0x19c)](_0x4fa3ec=>_0x4fa3ec&&typeof _0x4fa3ec===_0xd055c(0x1a3))[_0xd055c(0x1b9)](_0x59d197=>({'id':_0x59d197['id'],'type':_0x59d197[_0xd055c(0x1a8)],'code':_0x59d197[_0xd055c(0x196)],'title':_0x59d197['title'],'deleted':_0x59d197[_0xd055c(0x184)]===!![]}));}function normalizeFallbackFieldName(_0x4512bd,_0x5e1108){const _0x27656=a26_0x48f9,_0x2966e0=_0x4512bd[_0x27656(0x17c)]();if(!_0x2966e0)return null;return{'name':_0x2966e0,'displayName':_0x2966e0,'type':undefined,'dbType':undefined,'pk':_0x2966e0===_0x5e1108,'required':![],'description':undefined};}async function loadListFieldFallback(_0x5260cc,_0x5a2608){const _0x1755cf=a26_0x48f9;if(!_0x5260cc||!_0x5a2608)return[];try{const _0x504eee=await listDatasets(_0x5260cc,{'code':_0x5a2608}),_0x14956e=_0x504eee[_0x1755cf(0x19f)](_0x24d699=>_0x24d699['code']===_0x5a2608)??_0x504eee[0x0],_0x4da509=_0x14956e?.['dbtableConfig']??{},_0xad0e5e=typeof _0x4da509[_0x1755cf(0x1ae)]===_0x1755cf(0x1bd)?_0x4da509[_0x1755cf(0x1ae)]['split'](','):[];return _0xad0e5e['map'](_0x2b4e2d=>normalizeFallbackFieldName(_0x2b4e2d,_0x4da509[_0x1755cf(0x194)]))['filter'](_0x51706e=>_0x51706e!==null);}catch{return[];}}export const datasetDetail={'service':a26_0x5c783d(0x18a),'command':a26_0x5c783d(0x19a),'description':a26_0x5c783d(0x1a4),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2470d7){const _0x50e07d=a26_0x5c783d,_0xc8edd1=await getDatasetDetail(_0x2470d7[_0x50e07d(0x189)](_0x50e07d(0x196))),_0x36942c=Array[_0x50e07d(0x18c)](_0xc8edd1[_0x50e07d(0x190)])?_0xc8edd1[_0x50e07d(0x190)]:Array['isArray'](_0xc8edd1[_0x50e07d(0x1ac)])?_0xc8edd1[_0x50e07d(0x1ac)]:[];let _0x35e7e8=_0x36942c[_0x50e07d(0x1b9)](_0xa3cccd=>normalizeField(_0xa3cccd))[_0x50e07d(0x19c)](_0x9339f6=>_0x9339f6!==null);_0x35e7e8[_0x50e07d(0x199)]===0x0&&(_0x35e7e8=await loadListFieldFallback(_0x2470d7[_0x50e07d(0x19e)],_0x2470d7[_0x50e07d(0x189)](_0x50e07d(0x196))));const _0x1637fd=_0xc8edd1[_0x50e07d(0x17d)]??{},_0x1691b1=[];for(const [_0x51bac9,_0x317d9f]of Object[_0x50e07d(0x191)](_0x1637fd)){const _0x57b236=normalizeOperationEntry(_0x51bac9,_0x317d9f);if(_0x57b236)_0x1691b1[_0x50e07d(0x19d)](_0x57b236);}const _0xc8c045=_0xc8edd1[_0x50e07d(0x188)]??{},_0x5eea16=_0xc8edd1['dataset']??{},_0x5a7659=_0xc8c045['dbId']!=null?{'id':_0xc8c045[_0x50e07d(0x1be)],'name':_0xc8c045['dbName']??null}:undefined;let _0x412057;return typeof _0xc8edd1[_0x50e07d(0x1b1)]===_0x50e07d(0x1bd)&&(_0x412057=parseJsonMaybe(_0xc8edd1[_0x50e07d(0x1b1)])),{'ok':!![],'data':{'id':_0xc8edd1[_0x50e07d(0x187)]??_0xc8edd1['id'],'name':_0xc8edd1['name'],'code':_0xc8edd1[_0x50e07d(0x179)]||_0xc8edd1[_0x50e07d(0x196)],'doVersion':_0xc8edd1[_0x50e07d(0x183)],'description':_0xc8edd1[_0x50e07d(0x198)]||_0x5eea16[_0x50e07d(0x17a)]||undefined,'source':_0xc8edd1['source']||_0x5eea16['sourceType'],'table':_0xc8c045[_0x50e07d(0x197)]||_0x5eea16[_0x50e07d(0x197)],'datasetKey':_0xc8c045[_0x50e07d(0x1a1)],'pk':_0xc8c045['pkField'],'db':_0x5a7659,'dbtable':summarizeDbtable(_0xc8c045),'fields':_0x35e7e8,'operations':_0x1691b1,'indexes':Array['isArray'](_0x5eea16['indexes'])?_0x5eea16[_0x50e07d(0x1a5)]:[],'relations':_0xc8edd1[_0x50e07d(0x1ad)]??null,'relatedPages':normalizeRelatedPages(_0xc8edd1['relatedPageInfoList']),...Array[_0x50e07d(0x18c)](_0xc8edd1[_0x50e07d(0x1aa)])?{'columnCodeListWithDeleted':_0xc8edd1[_0x50e07d(0x1aa)]}:{},'formatRules':Array['isArray'](_0xc8edd1['formatRules'])?_0xc8edd1[_0x50e07d(0x181)]:[],'validateRules':Array[_0x50e07d(0x18c)](_0xc8edd1['validateRules'])?_0xc8edd1[_0x50e07d(0x18f)]:[],..._0x412057!==undefined?{'extend':_0x412057}:{},'stats':{'fieldCount':_0x35e7e8['length'],'operationCount':_0x1691b1[_0x50e07d(0x199)]}}};}};function a26_0x10a6(){const _0x31bb28=['operations','558692zvkqxJ','options','dataType','formatRules','18YrpgdA','doVersion','deleted','requestBody','requestFields','modelId','dbtableConfig','str','dataset','allFieldNames','isArray','7475080RKdtMy','2RoUytj','validateRules','fields','entries','3541125XMsYUy','afterScriptId','pkField','responseFields','code','tableName','description','length','detail','path','filter','push','appCode','find','modifierNameField','datasetKey','method','object','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','indexes','createTimeField','beforeScriptId','type','displayName','columnCodeListWithDeleted','updateTimeField','properties','relations','allFields','split','host','extend','name','557611fckHxZ','dbType','1959042hihWeu','10XimfWH','creatorNameField','responseBody','map','3521456CnmEGn','parse','modifierIdField','string','dbId','699357rNwxas','modelCode','tableComment','doType','trim'];a26_0x10a6=function(){return _0x31bb28;};return a26_0x10a6();}
1
+ function a26_0x50bb(){const _0x2964c9=['map','options','creatorIdField','creatorNameField','validateRules','extend','logicField','modelCode','64vyQRXJ','path','appCode','relations','doType','allFieldNames','properties','allFields','dbtableConfig','responseFields','beforeScriptId','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','datasetKey','string','parse','303772vvOEox','responseBody','dbName','title','object','indexes','requestFields','334763PZijbk','215217yfpnza','tableComment','description','split','displayName','push','130lZuauQ','columnCodeListWithDeleted','6skEpXX','code','method','968zkJZew','afterScriptId','fields','119615sedtyp','pkField','length','807ZoiHJL','requestBody','deleted','dbId','find','doVersion','dbType','filter','detail','name','host','modifierIdField','249235fIkVtc','required','str','read','sourceType','entries','formatRules','createTimeField','dblinkInfoDTO','dataset','isArray','trim','258219HZmDWQ','type','tableName'];a26_0x50bb=function(){return _0x2964c9;};return a26_0x50bb();}function a26_0x5ebb(_0x1b2163,_0x2d80f4){_0x1b2163=_0x1b2163-0x9f;const _0x50bbfc=a26_0x50bb();let _0x5ebb9a=_0x50bbfc[_0x1b2163];return _0x5ebb9a;}const a26_0x34ba0b=a26_0x5ebb;(function(_0x382895,_0x45e6da){const _0x1a27dc=a26_0x5ebb,_0x594258=_0x382895();while(!![]){try{const _0x5b184e=parseInt(_0x1a27dc(0xcb))/0x1+parseInt(_0x1a27dc(0xe5))/0x2+-parseInt(_0x1a27dc(0xb3))/0x3*(parseInt(_0x1a27dc(0xad))/0x4)+-parseInt(_0x1a27dc(0xb0))/0x5*(parseInt(_0x1a27dc(0xaa))/0x6)+parseInt(_0x1a27dc(0xbf))/0x7+-parseInt(_0x1a27dc(0xd6))/0x8*(-parseInt(_0x1a27dc(0xa2))/0x9)+-parseInt(_0x1a27dc(0xa8))/0xa*(parseInt(_0x1a27dc(0xa1))/0xb);if(_0x5b184e===_0x45e6da)break;else _0x594258['push'](_0x594258['shift']());}catch(_0x3e854a){_0x594258['push'](_0x594258['shift']());}}}(a26_0x50bb,0x2532c));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x29ca99){const _0x589a57=a26_0x5ebb;if(_0x29ca99['deleted'])return null;const _0x53a235=Boolean(_0x29ca99[_0x589a57(0xa6)]!==undefined||_0x29ca99[_0x589a57(0xda)]!==undefined);let _0x164c47={};if(!_0x53a235&&typeof _0x29ca99[_0x589a57(0xd3)]===_0x589a57(0xe3))try{_0x164c47=JSON[_0x589a57(0xe4)](_0x29ca99['extend']);}catch{}const _0xbf346f=_0x53a235?_0x29ca99[_0x589a57(0xbc)]:_0x29ca99[_0x589a57(0xab)],_0x8e0811=_0x53a235?_0x29ca99['displayName']:_0x29ca99[_0x589a57(0xbc)],_0x13ff2d=_0x53a235?_0x29ca99[_0x589a57(0xda)]:_0x29ca99[_0x589a57(0xcc)]||_0x29ca99['dataType'],_0x31beb9=_0x53a235?_0x29ca99['pkField']===!![]:_0x164c47[_0x589a57(0xb1)]===!![],_0x14a924=_0x53a235?_0x29ca99[_0x589a57(0xc0)]===!![]:_0x164c47[_0x589a57(0xc0)]===!![],_0x1df9e1=_0x53a235?_0x29ca99[_0x589a57(0xcf)]??null:_0x164c47['options']??null,_0x1c9ca0={'name':_0xbf346f,'displayName':_0x8e0811||_0xbf346f,'type':_0x13ff2d,'dbType':_0x29ca99[_0x589a57(0xb9)],'pk':_0x31beb9,'required':_0x14a924,'description':_0x29ca99[_0x589a57(0xa4)]||undefined};return Array['isArray'](_0x1df9e1)&&_0x1df9e1[_0x589a57(0xb2)]>0x0&&(_0x1c9ca0[_0x589a57(0xcf)]=_0x1df9e1),_0x1c9ca0;}function parseJsonMaybe(_0x7bfff4){const _0x2256f1=a26_0x5ebb;if(typeof _0x7bfff4!=='string')return _0x7bfff4;try{return JSON[_0x2256f1(0xe4)](_0x7bfff4);}catch{return _0x7bfff4;}}function normalizeOperationEntry(_0x52500e,_0x4938d3){const _0x4da2e2=a26_0x5ebb;if(!_0x4938d3||typeof _0x4938d3!==_0x4da2e2(0xe9))return null;if(!_0x4938d3[_0x4da2e2(0xac)]||!_0x4938d3[_0x4da2e2(0xd7)])return null;const _0x2e018c={'name':_0x52500e,'method':_0x4938d3[_0x4da2e2(0xac)],'path':_0x4938d3['path']};if(_0x4938d3[_0x4da2e2(0xbd)])_0x2e018c[_0x4da2e2(0xbd)]=_0x4938d3[_0x4da2e2(0xbd)];if(_0x4938d3[_0x4da2e2(0xb4)]!=null)_0x2e018c[_0x4da2e2(0xb4)]=parseJsonMaybe(_0x4938d3[_0x4da2e2(0xb4)]);if(_0x4938d3['responseBody']!=null)_0x2e018c[_0x4da2e2(0xe6)]=parseJsonMaybe(_0x4938d3[_0x4da2e2(0xe6)]);if(_0x4938d3[_0x4da2e2(0xe0)]!=null)_0x2e018c['beforeScriptId']=_0x4938d3[_0x4da2e2(0xe0)];if(_0x4938d3[_0x4da2e2(0xae)]!=null)_0x2e018c[_0x4da2e2(0xae)]=_0x4938d3['afterScriptId'];if(Array[_0x4da2e2(0xc9)](_0x4938d3['requestFields']))_0x2e018c[_0x4da2e2(0xa0)]=_0x4938d3[_0x4da2e2(0xa0)];if(Array[_0x4da2e2(0xc9)](_0x4938d3[_0x4da2e2(0xdf)]))_0x2e018c['responseFields']=_0x4938d3[_0x4da2e2(0xdf)];return _0x2e018c;}function summarizeDbtable(_0x2a2c14){const _0x523688=a26_0x5ebb,_0x115709={},_0xf95e56=[_0x523688(0xb6),_0x523688(0xe7),_0x523688(0xcd),_0x523688(0xe2),'pkField',_0x523688(0xdd),_0x523688(0xd4),_0x523688(0xc6),'updateTimeField',_0x523688(0xd0),_0x523688(0xd1),_0x523688(0xbe),'modifierNameField','labelField',_0x523688(0xc7)];for(const _0x28ed94 of _0xf95e56){if(_0x2a2c14[_0x28ed94]!==undefined)_0x115709[_0x28ed94]=_0x2a2c14[_0x28ed94];}return typeof _0x115709[_0x523688(0xdd)]===_0x523688(0xe3)&&_0x115709[_0x523688(0xdd)][_0x523688(0xb2)]>0x0&&(_0x115709[_0x523688(0xdb)]=_0x115709[_0x523688(0xdd)]['split'](',')[_0x523688(0xce)](_0x2dbf9b=>_0x2dbf9b['trim']())['filter'](Boolean)),_0x115709;}function normalizeRelatedPages(_0x405b63){const _0x2a9de4=a26_0x5ebb;if(!Array['isArray'](_0x405b63))return[];return _0x405b63[_0x2a9de4(0xba)](_0x3013b5=>_0x3013b5&&typeof _0x3013b5===_0x2a9de4(0xe9))[_0x2a9de4(0xce)](_0x5349cf=>({'id':_0x5349cf['id'],'type':_0x5349cf[_0x2a9de4(0xcc)],'code':_0x5349cf[_0x2a9de4(0xab)],'title':_0x5349cf[_0x2a9de4(0xe8)],'deleted':_0x5349cf[_0x2a9de4(0xb5)]===!![]}));}function normalizeFallbackFieldName(_0x4c137d,_0x597880){const _0x2462cf=a26_0x5ebb,_0xec9de3=_0x4c137d[_0x2462cf(0xca)]();if(!_0xec9de3)return null;return{'name':_0xec9de3,'displayName':_0xec9de3,'type':undefined,'dbType':undefined,'pk':_0xec9de3===_0x597880,'required':![],'description':undefined};}async function loadListFieldFallback(_0x3997ab,_0x168a4f){const _0x54dc55=a26_0x5ebb;if(!_0x3997ab||!_0x168a4f)return[];try{const _0x498eb0=await listDatasets(_0x3997ab,{'code':_0x168a4f}),_0x3c6810=_0x498eb0[_0x54dc55(0xb7)](_0x29f6f3=>_0x29f6f3[_0x54dc55(0xab)]===_0x168a4f)??_0x498eb0[0x0],_0x1b6c14=_0x3c6810?.[_0x54dc55(0xde)]??{},_0x3209d1=typeof _0x1b6c14[_0x54dc55(0xdd)]===_0x54dc55(0xe3)?_0x1b6c14['allFields'][_0x54dc55(0xa5)](','):[];return _0x3209d1[_0x54dc55(0xce)](_0xdb24ac=>normalizeFallbackFieldName(_0xdb24ac,_0x1b6c14[_0x54dc55(0xb1)]))[_0x54dc55(0xba)](_0x312360=>_0x312360!==null);}catch{return[];}}export const datasetDetail={'service':a26_0x34ba0b(0xc8),'command':a26_0x34ba0b(0xbb),'description':a26_0x34ba0b(0xe1),'risk':a26_0x34ba0b(0xc2),'flags':[CODE_FLAG],async 'execute'(_0xcdee41){const _0xb45368=a26_0x34ba0b,_0x16378a=await getDatasetDetail(_0xcdee41[_0xb45368(0xc1)](_0xb45368(0xab))),_0x49f6ba=Array['isArray'](_0x16378a[_0xb45368(0xaf)])?_0x16378a[_0xb45368(0xaf)]:Array[_0xb45368(0xc9)](_0x16378a[_0xb45368(0xdc)])?_0x16378a[_0xb45368(0xdc)]:[];let _0x51ccff=_0x49f6ba[_0xb45368(0xce)](_0x5391c7=>normalizeField(_0x5391c7))['filter'](_0x331df4=>_0x331df4!==null);_0x51ccff[_0xb45368(0xb2)]===0x0&&(_0x51ccff=await loadListFieldFallback(_0xcdee41[_0xb45368(0xd8)],_0xcdee41[_0xb45368(0xc1)](_0xb45368(0xab))));const _0x452c98=_0x16378a['operations']??{},_0x193377=[];for(const [_0x239900,_0x3eb909]of Object[_0xb45368(0xc4)](_0x452c98)){const _0x32fdd3=normalizeOperationEntry(_0x239900,_0x3eb909);if(_0x32fdd3)_0x193377[_0xb45368(0xa7)](_0x32fdd3);}const _0x43f3e0=_0x16378a[_0xb45368(0xde)]??{},_0x2c5f25=_0x16378a[_0xb45368(0xc8)]??{},_0x194e49=_0x43f3e0[_0xb45368(0xb6)]!=null?{'id':_0x43f3e0[_0xb45368(0xb6)],'name':_0x43f3e0[_0xb45368(0xe7)]??null}:undefined;let _0x5435f2;return typeof _0x16378a[_0xb45368(0xd3)]==='string'&&(_0x5435f2=parseJsonMaybe(_0x16378a['extend'])),{'ok':!![],'data':{'id':_0x16378a['modelId']??_0x16378a['id'],'name':_0x16378a[_0xb45368(0xbc)],'code':_0x16378a[_0xb45368(0xd5)]||_0x16378a[_0xb45368(0xab)],'doVersion':_0x16378a[_0xb45368(0xb8)],'description':_0x16378a[_0xb45368(0xa4)]||_0x2c5f25[_0xb45368(0xa3)]||undefined,'source':_0x16378a['source']||_0x2c5f25[_0xb45368(0xc3)],'table':_0x43f3e0['tableName']||_0x2c5f25[_0xb45368(0xcd)],'datasetKey':_0x43f3e0[_0xb45368(0xe2)],'pk':_0x43f3e0[_0xb45368(0xb1)],'db':_0x194e49,'dbtable':summarizeDbtable(_0x43f3e0),'fields':_0x51ccff,'operations':_0x193377,'indexes':Array[_0xb45368(0xc9)](_0x2c5f25['indexes'])?_0x2c5f25[_0xb45368(0x9f)]:[],'relations':_0x16378a[_0xb45368(0xd9)]??null,'relatedPages':normalizeRelatedPages(_0x16378a['relatedPageInfoList']),...Array[_0xb45368(0xc9)](_0x16378a[_0xb45368(0xa9)])?{'columnCodeListWithDeleted':_0x16378a[_0xb45368(0xa9)]}:{},'formatRules':Array['isArray'](_0x16378a[_0xb45368(0xc5)])?_0x16378a['formatRules']:[],'validateRules':Array[_0xb45368(0xc9)](_0x16378a[_0xb45368(0xd2)])?_0x16378a['validateRules']:[],..._0x5435f2!==undefined?{'extend':_0x5435f2}:{},'stats':{'fieldCount':_0x51ccff[_0xb45368(0xb2)],'operationCount':_0x193377[_0xb45368(0xb2)]}}};}};
@@ -1 +1 @@
1
- (function(_0xc956cf,_0x4b7f6a){const _0x57490d=a27_0x5a30,_0x471e75=_0xc956cf();while(!![]){try{const _0xe2ff09=parseInt(_0x57490d(0x1f8))/0x1*(parseInt(_0x57490d(0x1fe))/0x2)+-parseInt(_0x57490d(0x1fd))/0x3*(parseInt(_0x57490d(0x1fc))/0x4)+-parseInt(_0x57490d(0x1f4))/0x5*(parseInt(_0x57490d(0x1f9))/0x6)+parseInt(_0x57490d(0x1f5))/0x7+parseInt(_0x57490d(0x1fa))/0x8*(parseInt(_0x57490d(0x1f7))/0x9)+-parseInt(_0x57490d(0x1ff))/0xa*(parseInt(_0x57490d(0x1fb))/0xb)+parseInt(_0x57490d(0x1f6))/0xc;if(_0xe2ff09===_0x4b7f6a)break;else _0x471e75['push'](_0x471e75['shift']());}catch(_0x445346){_0x471e75['push'](_0x471e75['shift']());}}}(a27_0x1310,0x909a1));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a27_0x1310(){const _0x4e4206=['881150MgAuRx','15FoJchy','2874620qVGrMg','2219472YsrMUt','16893NhKTEH','1NxWaKg','535410pOJfOI','2080vzCPOo','33nalJbf','8uZfprr','1646751YtEFQd','2277074hLSBDn'];a27_0x1310=function(){return _0x4e4206;};return a27_0x1310();}function a27_0x5a30(_0x1e0f51,_0x227f80){_0x1e0f51=_0x1e0f51-0x1f4;const _0x1310b8=a27_0x1310();let _0x5a306b=_0x1310b8[_0x1e0f51];return _0x5a306b;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x531a6b,_0x3e1f7e){const _0x342dcd=a27_0x6c1b,_0x2b6678=_0x531a6b();while(!![]){try{const _0x3ca92a=parseInt(_0x342dcd(0x1cc))/0x1+parseInt(_0x342dcd(0x1cf))/0x2*(parseInt(_0x342dcd(0x1d2))/0x3)+parseInt(_0x342dcd(0x1ca))/0x4*(parseInt(_0x342dcd(0x1cd))/0x5)+parseInt(_0x342dcd(0x1d0))/0x6+-parseInt(_0x342dcd(0x1ce))/0x7*(parseInt(_0x342dcd(0x1d3))/0x8)+parseInt(_0x342dcd(0x1d1))/0x9+-parseInt(_0x342dcd(0x1cb))/0xa;if(_0x3ca92a===_0x3e1f7e)break;else _0x2b6678['push'](_0x2b6678['shift']());}catch(_0x289c9c){_0x2b6678['push'](_0x2b6678['shift']());}}}(a27_0x5019,0x8ceb7));import{datasetList}from'../../commands/dataset/list.js';function a27_0x6c1b(_0x1e3e5c,_0x2c5200){_0x1e3e5c=_0x1e3e5c-0x1ca;const _0x501904=a27_0x5019();let _0x6c1b6=_0x501904[_0x1e3e5c];return _0x6c1b6;}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a27_0x5019(){const _0x19987f=['6702486VZAtFT','841131BrsQMt','154833XfGWkM','2488912FyDLuV','8DuwKKd','16068420rBViGB','309522olEVvN','1276505UFIzHL','7NLhDdT','18PsICxM'];a27_0x5019=function(){return _0x19987f;};return a27_0x5019();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- function a28_0x56dd(){const _0x1c9d4c=['description','source','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','232205qlXwsv','datasetKey','allFields','code','76ceKgud','string','1655298TwlzLI','9198010JWLyXR','8GdatFT','28702956aajZAk','map','list','read','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','name','1062181ivBmGc','3393502cpJJJU','str','dbtableConfig','1687JLdEUV','tableName','pkField','trim','22KqGoZD','3QZhMRy','21522WCLaOP','appCode'];a28_0x56dd=function(){return _0x1c9d4c;};return a28_0x56dd();}const a28_0x5ae78e=a28_0x46b6;(function(_0x3d0ec8,_0x4c5864){const _0x531ccb=a28_0x46b6,_0x1142c3=_0x3d0ec8();while(!![]){try{const _0x195e72=-parseInt(_0x531ccb(0x194))/0x1+-parseInt(_0x531ccb(0x195))/0x2*(-parseInt(_0x531ccb(0x17f))/0x3)+-parseInt(_0x531ccb(0x189))/0x4*(parseInt(_0x531ccb(0x185))/0x5)+-parseInt(_0x531ccb(0x180))/0x6*(-parseInt(_0x531ccb(0x198))/0x7)+parseInt(_0x531ccb(0x18d))/0x8*(-parseInt(_0x531ccb(0x18b))/0x9)+-parseInt(_0x531ccb(0x18c))/0xa*(parseInt(_0x531ccb(0x17e))/0xb)+parseInt(_0x531ccb(0x18e))/0xc;if(_0x195e72===_0x4c5864)break;else _0x1142c3['push'](_0x1142c3['shift']());}catch(_0x5108ae){_0x1142c3['push'](_0x1142c3['shift']());}}}(a28_0x56dd,0xf07d7));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x46b6(_0x403696,_0x58b93e){_0x403696=_0x403696-0x17d;const _0x56dd1d=a28_0x56dd();let _0x46b6d9=_0x56dd1d[_0x403696];return _0x46b6d9;}export const datasetList={'service':'dataset','command':a28_0x5ae78e(0x190),'description':a28_0x5ae78e(0x184),'risk':a28_0x5ae78e(0x191),'flags':[{'name':a28_0x5ae78e(0x193),'type':a28_0x5ae78e(0x18a),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a28_0x5ae78e(0x192)}],async 'execute'(_0xd646d4){const _0x1e540f=a28_0x5ae78e,_0x1ab5b0=_0xd646d4[_0x1e540f(0x196)](_0x1e540f(0x193)),_0x29b31b=_0xd646d4[_0x1e540f(0x196)](_0x1e540f(0x188)),_0x2999a6=await listDatasets(_0xd646d4[_0x1e540f(0x181)],{..._0x1ab5b0&&{'name':_0x1ab5b0},..._0x29b31b&&{'code':_0x29b31b}});return{'ok':!![],'data':{'total':_0x2999a6['length'],'datasets':_0x2999a6[_0x1e540f(0x18f)](_0x49a468=>{const _0x27ad67=_0x1e540f,_0x3084a2=_0x49a468[_0x27ad67(0x197)]??{};return{'id':_0x49a468['id'],'code':_0x49a468[_0x27ad67(0x188)],'name':_0x49a468[_0x27ad67(0x193)],'source':_0x49a468[_0x27ad67(0x183)],'description':_0x49a468[_0x27ad67(0x182)],'table':_0x3084a2[_0x27ad67(0x199)],'datasetKey':_0x3084a2[_0x27ad67(0x186)],'pk':_0x3084a2[_0x27ad67(0x19a)],'fields':_0x3084a2[_0x27ad67(0x187)]?_0x3084a2['allFields']['split'](',')[_0x27ad67(0x18f)](_0x4a0090=>_0x4a0090[_0x27ad67(0x17d)]()):[]};})}};}};
1
+ const a28_0x3df496=a28_0x5520;function a28_0x5520(_0x2d5f55,_0x8511d8){_0x2d5f55=_0x2d5f55-0x1d6;const _0x4b948e=a28_0x4b94();let _0x55201f=_0x4b948e[_0x2d5f55];return _0x55201f;}(function(_0x3adebe,_0x5c7ac5){const _0x45cc87=a28_0x5520,_0x490df2=_0x3adebe();while(!![]){try{const _0x192aec=parseInt(_0x45cc87(0x1f1))/0x1+parseInt(_0x45cc87(0x1d9))/0x2*(-parseInt(_0x45cc87(0x1e2))/0x3)+parseInt(_0x45cc87(0x1d6))/0x4*(parseInt(_0x45cc87(0x1dc))/0x5)+parseInt(_0x45cc87(0x1dd))/0x6+-parseInt(_0x45cc87(0x1ea))/0x7+-parseInt(_0x45cc87(0x1e0))/0x8+-parseInt(_0x45cc87(0x1d8))/0x9*(-parseInt(_0x45cc87(0x1df))/0xa);if(_0x192aec===_0x5c7ac5)break;else _0x490df2['push'](_0x490df2['shift']());}catch(_0x1e3eba){_0x490df2['push'](_0x490df2['shift']());}}}(a28_0x4b94,0x3205c));function a28_0x4b94(){const _0x326ea1=['split','10430EJTJZN','1240936ljqhMi','str','105wVgAgT','pkField','list','length','dbtableConfig','trim','read','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','2507610VyndFl','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','datasetKey','tableName','code','map','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','328140zQqDEs','name','388ejyRQT','dataset','1197xPwBbL','20168GlDOus','string','allFields','15245RQSiSw','1851402LMLkur'];a28_0x4b94=function(){return _0x326ea1;};return a28_0x4b94();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a28_0x3df496(0x1d7),'command':a28_0x3df496(0x1e4),'description':a28_0x3df496(0x1eb),'risk':a28_0x3df496(0x1e8),'flags':[{'name':a28_0x3df496(0x1f2),'type':a28_0x3df496(0x1da),'description':a28_0x3df496(0x1e9)},{...CODE_FLAG,'required':![],'description':a28_0x3df496(0x1f0)}],async 'execute'(_0x3f9904){const _0x59b7be=a28_0x3df496,_0x58d8ed=_0x3f9904[_0x59b7be(0x1e1)]('name'),_0x348915=_0x3f9904['str']('code'),_0x4e792e=await listDatasets(_0x3f9904['appCode'],{..._0x58d8ed&&{'name':_0x58d8ed},..._0x348915&&{'code':_0x348915}});return{'ok':!![],'data':{'total':_0x4e792e[_0x59b7be(0x1e5)],'datasets':_0x4e792e['map'](_0x8b62dc=>{const _0x489634=_0x59b7be,_0x5aa8af=_0x8b62dc[_0x489634(0x1e6)]??{};return{'id':_0x8b62dc['id'],'code':_0x8b62dc[_0x489634(0x1ee)],'name':_0x8b62dc[_0x489634(0x1f2)],'source':_0x8b62dc['source'],'description':_0x8b62dc['description'],'table':_0x5aa8af[_0x489634(0x1ed)],'datasetKey':_0x5aa8af[_0x489634(0x1ec)],'pk':_0x5aa8af[_0x489634(0x1e3)],'fields':_0x5aa8af[_0x489634(0x1db)]?_0x5aa8af[_0x489634(0x1db)][_0x489634(0x1de)](',')[_0x489634(0x1ef)](_0x56f8de=>_0x56f8de[_0x489634(0x1e7)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a29_0x449908=a29_0x25d1;(function(_0x2d3076,_0x5ac5de){const _0x3e4fd8=a29_0x25d1,_0x14554b=_0x2d3076();while(!![]){try{const _0x4e43c1=parseInt(_0x3e4fd8(0xd8))/0x1+-parseInt(_0x3e4fd8(0xd7))/0x2*(-parseInt(_0x3e4fd8(0xd5))/0x3)+parseInt(_0x3e4fd8(0xd6))/0x4+-parseInt(_0x3e4fd8(0xd1))/0x5+-parseInt(_0x3e4fd8(0xda))/0x6+-parseInt(_0x3e4fd8(0xd3))/0x7+parseInt(_0x3e4fd8(0xd2))/0x8;if(_0x4e43c1===_0x5ac5de)break;else _0x14554b['push'](_0x14554b['shift']());}catch(_0x298877){_0x14554b['push'](_0x14554b['shift']());}}}(a29_0x589e,0x99ee7));function a29_0x25d1(_0x3539e8,_0x4ea174){_0x3539e8=_0x3539e8-0xcd;const _0x589e87=a29_0x589e();let _0x25d11c=_0x589e87[_0x3539e8];return _0x25d11c;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0x449908(0xd0);export function formatDatasetSdkMarkdown(_0x18bde9){const _0xe8fc3e=a29_0x449908,_0x167f81=typeof _0x18bde9==='string'?_0x18bde9[_0xe8fc3e(0xdb)]():'';return _0x167f81||DEFAULT_MARKDOWN;}function a29_0x589e(){const _0x28d3b3=['str','dataset','read','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','332105qfQhUh','8311512EtQhQn','7376642xJRSsH','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','3VNXGWa','2216328ODaTbE','888970pqPPrG','374856QAPjqm','appCode','3969792eGCGUz','trim'];a29_0x589e=function(){return _0x28d3b3;};return a29_0x589e();}export const datasetSdkDoc={'service':a29_0x449908(0xcd),'command':'sdk-doc','description':a29_0x449908(0xd4),'risk':a29_0x449908(0xce),'flags':[{...CODE_FLAG,'description':a29_0x449908(0xcf)}],async 'execute'(_0x2c09b8){const _0x87a1e6=a29_0x449908,_0x129738=_0x2c09b8[_0x87a1e6(0xdc)]('code'),_0x117f77=await getDatasetSdkUsageDoc(_0x129738,_0x2c09b8[_0x87a1e6(0xd9)]);return{'ok':!![],'data':{'code':_0x129738,'appCode':_0x2c09b8[_0x87a1e6(0xd9)],'markdown':formatDatasetSdkMarkdown(_0x117f77)}};}};
1
+ const a29_0x10dc7a=a29_0x22f6;function a29_0x22f6(_0x432786,_0x532384){_0x432786=_0x432786-0x1f1;const _0x4ad5fa=a29_0x4ad5();let _0x22f6c8=_0x4ad5fa[_0x432786];return _0x22f6c8;}(function(_0x132ddd,_0x23911c){const _0x3498e1=a29_0x22f6,_0x2648fe=_0x132ddd();while(!![]){try{const _0x51cb2a=-parseInt(_0x3498e1(0x1f6))/0x1+-parseInt(_0x3498e1(0x1fe))/0x2*(parseInt(_0x3498e1(0x1f9))/0x3)+-parseInt(_0x3498e1(0x1f7))/0x4+parseInt(_0x3498e1(0x1fb))/0x5*(parseInt(_0x3498e1(0x1fa))/0x6)+-parseInt(_0x3498e1(0x1f4))/0x7*(parseInt(_0x3498e1(0x1f2))/0x8)+parseInt(_0x3498e1(0x1fd))/0x9*(-parseInt(_0x3498e1(0x1f5))/0xa)+parseInt(_0x3498e1(0x1f3))/0xb*(parseInt(_0x3498e1(0x1fc))/0xc);if(_0x51cb2a===_0x23911c)break;else _0x2648fe['push'](_0x2648fe['shift']());}catch(_0x50225f){_0x2648fe['push'](_0x2648fe['shift']());}}}(a29_0x4ad5,0xe3cc8));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a29_0x4ad5(){const _0x34808f=['appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','str','trim','5876872WHEOmF','5753agshfm','14fdSLgP','130110csxrBC','688661skdYWl','576216FMEuVQ','code','5196VmIBnP','72JKmTcJ','152135ZFqeLB','100092dbmPzZ','522vYNlpr','852khlMzD'];a29_0x4ad5=function(){return _0x34808f;};return a29_0x4ad5();}const DEFAULT_MARKDOWN=a29_0x10dc7a(0x200);export function formatDatasetSdkMarkdown(_0x1420ab){const _0x5ada59=a29_0x10dc7a,_0xa56037=typeof _0x1420ab==='string'?_0x1420ab[_0x5ada59(0x1f1)]():'';return _0xa56037||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x2b9fb5){const _0x1d617f=a29_0x10dc7a,_0x28d94d=_0x2b9fb5[_0x1d617f(0x201)](_0x1d617f(0x1f8)),_0xcb73fc=await getDatasetSdkUsageDoc(_0x28d94d,_0x2b9fb5['appCode']);return{'ok':!![],'data':{'code':_0x28d94d,'appCode':_0x2b9fb5[_0x1d617f(0x1ff)],'markdown':formatDatasetSdkMarkdown(_0xcb73fc)}};}};
@@ -1 +1 @@
1
- const a30_0x19d718=a30_0x2e24;(function(_0x487fa3,_0x245fab){const _0x443d97=a30_0x2e24,_0x41a866=_0x487fa3();while(!![]){try{const _0x5e897e=-parseInt(_0x443d97(0x222))/0x1*(parseInt(_0x443d97(0x1d5))/0x2)+-parseInt(_0x443d97(0x1e0))/0x3+parseInt(_0x443d97(0x20b))/0x4*(parseInt(_0x443d97(0x216))/0x5)+parseInt(_0x443d97(0x1f6))/0x6+-parseInt(_0x443d97(0x1bf))/0x7*(parseInt(_0x443d97(0x1b5))/0x8)+-parseInt(_0x443d97(0x228))/0x9*(-parseInt(_0x443d97(0x22d))/0xa)+parseInt(_0x443d97(0x1da))/0xb*(-parseInt(_0x443d97(0x1c6))/0xc);if(_0x5e897e===_0x245fab)break;else _0x41a866['push'](_0x41a866['shift']());}catch(_0x31b0d3){_0x41a866['push'](_0x41a866['shift']());}}}(a30_0xeee4,0x645a6));import a30_0x3e8ff0 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,getKbDomain,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';function a30_0x2e24(_0x2eba20,_0x3c2241){_0x2eba20=_0x2eba20-0x1b0;const _0xeee40e=a30_0xeee4();let _0x2e2495=_0xeee40e[_0x2eba20];return _0x2e2495;}function a30_0xeee4(){const _0x1022ac=['\x20\x20Config\x20Files','globalConfig','registryPath','accessKey','8113970pGyDdd','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','skillVersion','current','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Built-in\x20Skill','8oKahxU','\x20config\x20delete\x20inherit\x20--global','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20config','empty','\x20(accessKey)','call','ClientAk','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1277143eXOMkj','\x20\x20Country/Region\x20Configuration','hasOwnProperty','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','404844nSkmIr','platform','\x20\x20Routing\x20Configuration','\x20commands)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','log','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','state','bold','repairCommand','2sAWRcg','green','(missing)','prototype','\x20\x20Legacy\x20inherit:\x20\x20\x20','11VYTEOf','locale','\x20+\x20','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','1822788RsSZFl','\x20\x20Repair\x20global:\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','region','serviceCode','includes','format','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','red','project','✓\x20Loaded','message','arch','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','\x20\x20Repair\x20project:\x20\x20\x20','(not\x20found)','global','621198YPWRBW','\x20config\x20delete\x20inherit','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','verbose','\x20config\x20delete\x20routing\x20--global','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','gray','repeat','length','\x20\x20auth\x20(effective):\x20','status','read','\x20\x20Service\x20Tree','✗\x20Invalid\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','pageSize','(default:\x20','yellow','4wAYRWt','(none)','raw','version','\x20\x20skillDomain:\x20\x20\x20\x20\x20','doctor','Global','packageVersion','padEnd','defaultApp','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2175620IMSrTG','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','commandCount','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','⚠\x20Empty','\x20\x20Config\x20JSON','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','projectConfig','✗\x20Invalid','join','missing','115226ZHVULK','\x20\x20Repair\x20project:\x20\x20','inherit','\x20\x20Repair\x20global:\x20\x20\x20\x20','routing','\x20\x20Session\x20check:\x20\x20\x20','9HSJuXG'];a30_0xeee4=function(){return _0x1022ac;};return a30_0xeee4();}import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x528f43){const _0x1090d3=a30_0x2e24,_0x382403=getCliVersion(),_0x38987e=buildConfigFromFlags({});let _0x452130,_0x24da99;try{_0x452130=normalizeLovrabetRegion(_0x38987e[_0x1090d3(0x20d)][_0x1090d3(0x1e6)]);}catch(_0x53198d){_0x24da99=_0x53198d instanceof Error?_0x53198d:new Error(String(_0x53198d));}let _0x2443be;if(!_0x24da99)try{await initGlobalEnvironment(_0x38987e);}catch(_0x380900){_0x2443be=_0x380900 instanceof Error?_0x380900:new Error(String(_0x380900));}console['log'](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1d3)](CLI_BIN_NAME+_0x1090d3(0x1b8))),console['log'](a30_0x3e8ff0[_0x1090d3(0x1fe)]('─'[_0x1090d3(0x1ff)](0x32))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1d1)+_0x382403),console['log'](_0x1090d3(0x1f1)+process[_0x1090d3(0x20e)]),console[_0x1090d3(0x1d0)](_0x1090d3(0x1b7)+process[_0x1090d3(0x1c7)]+'\x20'+process[_0x1090d3(0x1f0)]);const _0x75117f=inspectBuiltinSkill();console[_0x1090d3(0x1d0)](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0['bold'](_0x1090d3(0x1b4))),console['log'](a30_0x3e8ff0['gray'](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1be)+(_0x75117f[_0x1090d3(0x1d2)]==='current'?a30_0x3e8ff0[_0x1090d3(0x1d6)]('✓\x20current'):a30_0x3e8ff0[_0x1090d3(0x1ec)]('✗\x20'+_0x75117f[_0x1090d3(0x1d2)]))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1c5)+_0x75117f[_0x1090d3(0x212)]),console[_0x1090d3(0x1d0)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x75117f[_0x1090d3(0x1b1)]||a30_0x3e8ff0[_0x1090d3(0x1fe)]('(missing)'))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1b3)+(_0x75117f['installedPath']||a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1f4))));_0x75117f[_0x1090d3(0x1d2)]!==_0x1090d3(0x1b2)&&console[_0x1090d3(0x1d0)](_0x1090d3(0x22e)+_0x75117f[_0x1090d3(0x1d4)]);_0x75117f['reason']&&console[_0x1090d3(0x1d0)](_0x1090d3(0x1e4)+_0x75117f['reason']);console[_0x1090d3(0x1d0)](),console['log'](a30_0x3e8ff0[_0x1090d3(0x1d3)](_0x1090d3(0x229))),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e)));const _0x585146=getGlobalConfigPath(),_0x22feae=getProjectConfigPath();console[_0x1090d3(0x1d0)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x585146||a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1f4)))),console[_0x1090d3(0x1d0)](_0x1090d3(0x215)+(_0x22feae||a30_0x3e8ff0['gray'](_0x1090d3(0x1f4)))),console[_0x1090d3(0x1d0)](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0['bold'](_0x1090d3(0x21c))),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)]('\x20\x20─'[_0x1090d3(0x1ff)](0x1e)));const _0xf92e4c=(_0x2f2998,_0x620fc3)=>{const _0x190255=_0x1090d3;if(!_0x620fc3){console[_0x190255(0x1d0)]('\x20\x20'+_0x2f2998[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0['gray']('(no\x20file)'));return;}const _0x161c86=inspectCliConfigJsonFile(_0x620fc3);if(_0x161c86['status']==='ok')console[_0x190255(0x1d0)]('\x20\x20'+_0x2f2998[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0[_0x190255(0x1d6)]('✓\x20Valid\x20JSON'));else{if(_0x161c86['status']==='empty')console[_0x190255(0x1d0)]('\x20\x20'+_0x2f2998[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0[_0x190255(0x20a)](_0x190255(0x1e2)));else _0x161c86['status']===_0x190255(0x221)?console[_0x190255(0x1d0)]('\x20\x20'+_0x2f2998[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0[_0x190255(0x1fe)](_0x190255(0x1d7))):(console[_0x190255(0x1d0)]('\x20\x20'+_0x2f2998[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0[_0x190255(0x1ec)](_0x190255(0x205))),console[_0x190255(0x1d0)]('\x20\x20'+''[_0x190255(0x213)](0x11)+'\x20'+a30_0x3e8ff0['red'](_0x161c86[_0x190255(0x1ef)])));}};_0xf92e4c(_0x1090d3(0x211),_0x585146),_0xf92e4c('Project',_0x22feae);const _0x4db638=loadRawConfigLayers(),_0x16a368=[Object[_0x1090d3(0x1d8)][_0x1090d3(0x1c1)][_0x1090d3(0x1bc)](_0x4db638[_0x1090d3(0x22a)],_0x1090d3(0x224))?'global':null,Object[_0x1090d3(0x1d8)]['hasOwnProperty'][_0x1090d3(0x1bc)](_0x4db638[_0x1090d3(0x21e)],'inherit')?_0x1090d3(0x1ed):null][_0x1090d3(0x1cf)](Boolean);_0x16a368[_0x1090d3(0x200)]>0x0&&(console[_0x1090d3(0x1d0)](_0x1090d3(0x1d9)+a30_0x3e8ff0[_0x1090d3(0x20a)]('ignored\x20in\x20'+_0x16a368[_0x1090d3(0x220)](_0x1090d3(0x1dc))+_0x1090d3(0x1b9))),_0x16a368[_0x1090d3(0x1e8)](_0x1090d3(0x1ed))&&console[_0x1090d3(0x1d0)](_0x1090d3(0x1f3)+CLI_BIN_NAME+_0x1090d3(0x1f7)),_0x16a368[_0x1090d3(0x1e8)](_0x1090d3(0x1f5))&&console[_0x1090d3(0x1d0)](_0x1090d3(0x225)+CLI_BIN_NAME+_0x1090d3(0x1b6)));_0x2443be&&(console['log'](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1d3)](_0x1090d3(0x1c8))),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)]('\x20\x20─'['repeat'](0x1e))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1ce)+a30_0x3e8ff0[_0x1090d3(0x1ec)](_0x1090d3(0x21f))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2443be[_0x1090d3(0x1ef)]),Object[_0x1090d3(0x1d8)][_0x1090d3(0x1c1)][_0x1090d3(0x1bc)](_0x4db638[_0x1090d3(0x21e)],_0x1090d3(0x226))&&console['log'](_0x1090d3(0x223)+CLI_BIN_NAME+_0x1090d3(0x207)),Object[_0x1090d3(0x1d8)][_0x1090d3(0x1c1)]['call'](_0x4db638['globalConfig'],'routing')&&console[_0x1090d3(0x1d0)](_0x1090d3(0x1e1)+CLI_BIN_NAME+_0x1090d3(0x1fb)));_0x24da99&&(console['log'](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0['bold'](_0x1090d3(0x1c0))),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1ce)+a30_0x3e8ff0['red']('✗\x20Invalid')),console[_0x1090d3(0x1d0)](_0x1090d3(0x1e4)+_0x24da99['message']),Object['prototype'][_0x1090d3(0x1c1)][_0x1090d3(0x1bc)](_0x4db638[_0x1090d3(0x21e)],_0x1090d3(0x1e6))&&console[_0x1090d3(0x1d0)](_0x1090d3(0x223)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x1090d3(0x1d8)][_0x1090d3(0x1c1)][_0x1090d3(0x1bc)](_0x4db638[_0x1090d3(0x22a)],_0x1090d3(0x1e6))&&console['log'](_0x1090d3(0x1e1)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x1090d3(0x1d0)](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0['bold']('\x20\x20Merged\x20Config')),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1cc)+(_0x38987e['appCode']||a30_0x3e8ff0[_0x1090d3(0x1ec)](_0x1090d3(0x1ea)))),console[_0x1090d3(0x1d0)](_0x1090d3(0x21d)+(_0x452130??a30_0x3e8ff0[_0x1090d3(0x1ec)]('(invalid)'))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1c4)+_0x38987e[_0x1090d3(0x1db)]),console[_0x1090d3(0x1d0)](_0x1090d3(0x1e3)+(_0x38987e[_0x1090d3(0x214)]||a30_0x3e8ff0[_0x1090d3(0x1fe)]('(none)'))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1de)+(_0x38987e[_0x1090d3(0x1f9)]||a30_0x3e8ff0['gray']('(none)'))),console['log'](_0x1090d3(0x1cd)+(_0x38987e[_0x1090d3(0x1e9)]||a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x209)+DEFAULT_CONFIG_VALUES[_0x1090d3(0x1e9)]+')'))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1f8)+(_0x38987e[_0x1090d3(0x208)]??a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x218)))),console[_0x1090d3(0x1d0)](_0x1090d3(0x1c3)+_0x38987e['riskLevel']),console[_0x1090d3(0x1d0)](_0x1090d3(0x217)+_0x38987e[_0x1090d3(0x1fa)]),console[_0x1090d3(0x1d0)](_0x1090d3(0x201)+AUTH_MODE[_0x1090d3(0x1bd)]),console[_0x1090d3(0x1d0)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x38987e[_0x1090d3(0x22c)]?a30_0x3e8ff0[_0x1090d3(0x1d6)]('(set,\x20length='+_0x38987e[_0x1090d3(0x22c)]['length']+')'):a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x20c)))),console[_0x1090d3(0x1d0)](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1d3)]('\x20\x20API\x20Endpoints')),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e)));_0x2443be||_0x24da99?console[_0x1090d3(0x1d0)](_0x1090d3(0x1ce)+a30_0x3e8ff0['red'](_0x1090d3(0x21a))):(console[_0x1090d3(0x1d0)](_0x1090d3(0x1c2)+getApiDomain()),console[_0x1090d3(0x1d0)](_0x1090d3(0x1b0)+getUserDomain()),console[_0x1090d3(0x1d0)](_0x1090d3(0x1eb)+getRuntimeDomain()),console[_0x1090d3(0x1d0)](_0x1090d3(0x20f)+getSkillDomain()),console['log'](_0x1090d3(0x1e5)+getKbDomain()));console[_0x1090d3(0x1d0)](),console['log'](a30_0x3e8ff0[_0x1090d3(0x1d3)](_0x1090d3(0x204))),console['log'](a30_0x3e8ff0[_0x1090d3(0x1fe)]('\x20\x20─'[_0x1090d3(0x1ff)](0x1e)));const _0x73a7da=inspectServiceRegistry();console[_0x1090d3(0x1d0)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x73a7da[_0x1090d3(0x22b)]),console[_0x1090d3(0x1d0)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x73a7da)),console[_0x1090d3(0x1d0)](_0x1090d3(0x1ca)+_0x73a7da['serviceCount']),console[_0x1090d3(0x1d0)](_0x1090d3(0x1fc)+_0x73a7da[_0x1090d3(0x219)]);for(const _0x1cbc7e of _0x73a7da[_0x1090d3(0x1f2)]){console['log']('\x20\x20'+(_0x1cbc7e[_0x1090d3(0x1e7)]+':')[_0x1090d3(0x213)](0x11)+'\x20'+(_0x1cbc7e['name']||a30_0x3e8ff0['gray']('(unnamed)'))+'\x20('+_0x1cbc7e[_0x1090d3(0x219)]+_0x1090d3(0x1c9)),console[_0x1090d3(0x1d0)]('\x20\x20'+''[_0x1090d3(0x213)](0x11)+_0x1090d3(0x1df)+_0x1cbc7e[_0x1090d3(0x1cb)]['path']);}return console[_0x1090d3(0x1d0)](),console[_0x1090d3(0x1d0)](a30_0x3e8ff0['bold']('\x20\x20Auth')),console[_0x1090d3(0x1d0)](a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1dd)[_0x1090d3(0x1ff)](0x1e))),console[_0x1090d3(0x1d0)](_0x1090d3(0x206)+a30_0x3e8ff0[_0x1090d3(0x1d6)](AUTH_MODE[_0x1090d3(0x1bd)]+_0x1090d3(0x1bb))),console[_0x1090d3(0x1d0)](_0x1090d3(0x227)+a30_0x3e8ff0[_0x1090d3(0x1fe)](_0x1090d3(0x1fd))),console[_0x1090d3(0x1d0)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x49be28){const _0x29b37c=a30_0x2e24;if(_0x49be28[_0x29b37c(0x202)]==='ok')return a30_0x3e8ff0[_0x29b37c(0x1d6)](_0x29b37c(0x1ee));if(_0x49be28['status']===_0x29b37c(0x221))return a30_0x3e8ff0[_0x29b37c(0x1fe)](_0x29b37c(0x1f4));if(_0x49be28[_0x29b37c(0x202)]===_0x29b37c(0x1ba))return a30_0x3e8ff0[_0x29b37c(0x20a)](_0x29b37c(0x21b));return a30_0x3e8ff0[_0x29b37c(0x1ec)]('✗\x20Invalid'+(_0x49be28['message']?':\x20'+_0x49be28[_0x29b37c(0x1ef)]:''));}export const doctorDefinition={'service':a30_0x19d718(0x210),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a30_0x19d718(0x203),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x12ab22=a30_0x3ac2;(function(_0xc0148,_0x44442f){const _0x3c55ae=a30_0x3ac2,_0x3bc1a8=_0xc0148();while(!![]){try{const _0x2e0004=parseInt(_0x3c55ae(0x196))/0x1*(parseInt(_0x3c55ae(0x161))/0x2)+parseInt(_0x3c55ae(0x17c))/0x3*(parseInt(_0x3c55ae(0x15d))/0x4)+-parseInt(_0x3c55ae(0x179))/0x5*(parseInt(_0x3c55ae(0x186))/0x6)+parseInt(_0x3c55ae(0x16b))/0x7+-parseInt(_0x3c55ae(0x15b))/0x8*(parseInt(_0x3c55ae(0x170))/0x9)+-parseInt(_0x3c55ae(0x154))/0xa*(parseInt(_0x3c55ae(0x1aa))/0xb)+-parseInt(_0x3c55ae(0x197))/0xc;if(_0x2e0004===_0x44442f)break;else _0x3bc1a8['push'](_0x3bc1a8['shift']());}catch(_0x1e1f25){_0x3bc1a8['push'](_0x3bc1a8['shift']());}}}(a30_0x4451,0x35690));function a30_0x4451(){const _0x7a00f=['8JUNRwJ','\x20\x20skillDomain:\x20\x20\x20\x20\x20','4916kvOJPv','commandCount','gray','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','14NnmtSj','(none)','\x20\x20Config\x20JSON','\x20+\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','\x20\x20Repair\x20global:\x20\x20\x20','missing','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(no\x20file)','2647932EnWjeO','currentApp','includes','projectConfig','ClientAk','1661301IVZnMa','routing','Project','check','(invalid)','padEnd','accessKey','✗\x20Invalid\x20JSON','state','295tmfsPQ','join','Diagnose\x20CLI\x20configuration\x20and\x20environment','219JhvBUV','⚠\x20Empty\x20(treated\x20as\x20{})','green','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','\x20\x20Skill\x20Version:\x20\x20\x20','format','\x20\x20Repair\x20project:\x20\x20','verbose','22206ZabeUC','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','\x20\x20Repair\x20project:\x20\x20\x20','red','prototype','\x20config\x20delete\x20region','\x20\x20Package\x20Version:\x20','Global','version','source','(removed\x20—\x20cookie\x20auth\x20disabled)','services','doctor','call','50539frICip','2282916kGkFdq','\x20\x20auth\x20(effective):\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20API\x20Endpoints','skillVersion','pageSize','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','✗\x20Invalid','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','serviceCount','path','\x20config','\x20config\x20delete\x20routing\x20--global','5137ZcxLFB','platform','(default:\x20','message','\x20\x20Auth','raw','riskLevel','\x20\x20Routing\x20Configuration','\x20config\x20init','length','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','ignored\x20in\x20','(unnamed)','empty','globalConfig','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','serviceCode','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','inherit','current','bold','⚠\x20Empty','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','log','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','filter','\x20\x20Merged\x20Config','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','yellow','hasOwnProperty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','arch','210uUmNaR','registryPath','defaultApp','project','(missing)','✓\x20Loaded','packageVersion'];a30_0x4451=function(){return _0x7a00f;};return a30_0x4451();}import a30_0x2bcf3a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a30_0x3ac2(_0x10c611,_0x340b35){_0x10c611=_0x10c611-0x142;const _0x44511b=a30_0x4451();let _0x3ac2cf=_0x44511b[_0x10c611];return _0x3ac2cf;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,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(_0x2747a6){const _0x4e31a1=a30_0x3ac2,_0x191971=getCliVersion(),_0xc26e7c=buildConfigFromFlags({});let _0x514418,_0x1aa58a;try{_0x514418=normalizeLovrabetRegion(_0xc26e7c[_0x4e31a1(0x1af)][_0x4e31a1(0x1bd)]);}catch(_0x3e1298){_0x1aa58a=_0x3e1298 instanceof Error?_0x3e1298:new Error(String(_0x3e1298));}let _0x25894a;if(!_0x1aa58a)try{await initGlobalEnvironment(_0xc26e7c);}catch(_0x5aa87b){_0x25894a=_0x5aa87b instanceof Error?_0x5aa87b:new Error(String(_0x5aa87b));}console[_0x4e31a1(0x147)](),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x143)](CLI_BIN_NAME+'\x20doctor')),console['log'](a30_0x2bcf3a[_0x4e31a1(0x15f)]('─'['repeat'](0x32))),console['log'](_0x4e31a1(0x1a2)+_0x191971),console['log'](_0x4e31a1(0x187)+process[_0x4e31a1(0x190)]),console['log'](_0x4e31a1(0x1b6)+process[_0x4e31a1(0x1ab)]+'\x20'+process[_0x4e31a1(0x153)]);const _0x32f781=inspectBuiltinSkill();console[_0x4e31a1(0x147)](),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x143)]('\x20\x20Built-in\x20Skill')),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)]('\x20\x20─'['repeat'](0x1e))),console[_0x4e31a1(0x147)](_0x4e31a1(0x188)+(_0x32f781[_0x4e31a1(0x178)]===_0x4e31a1(0x142)?a30_0x2bcf3a[_0x4e31a1(0x17e)]('✓\x20current'):a30_0x2bcf3a[_0x4e31a1(0x18b)]('✗\x20'+_0x32f781[_0x4e31a1(0x178)]))),console['log'](_0x4e31a1(0x18e)+_0x32f781[_0x4e31a1(0x15a)]),console[_0x4e31a1(0x147)](_0x4e31a1(0x182)+(_0x32f781[_0x4e31a1(0x19d)]||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x158)))),console[_0x4e31a1(0x147)](_0x4e31a1(0x1c1)+(_0x32f781['installedPath']||a30_0x2bcf3a['gray'](_0x4e31a1(0x14a))));_0x32f781[_0x4e31a1(0x178)]!==_0x4e31a1(0x142)&&console['log'](_0x4e31a1(0x1b5)+_0x32f781['repairCommand']);_0x32f781['reason']&&console['log'](_0x4e31a1(0x165)+_0x32f781['reason']);console[_0x4e31a1(0x147)](),console['log'](a30_0x2bcf3a['bold'](_0x4e31a1(0x148))),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x152)[_0x4e31a1(0x1a1)](0x1e)));const _0x2b7ecf=getGlobalConfigPath(),_0x36ade6=getProjectConfigPath();console[_0x4e31a1(0x147)](_0x4e31a1(0x199)+(_0x2b7ecf||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x14a)))),console['log'](_0x4e31a1(0x180)+(_0x36ade6||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x14a)))),console[_0x4e31a1(0x147)](),console['log'](a30_0x2bcf3a['bold'](_0x4e31a1(0x163))),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x152)[_0x4e31a1(0x1a1)](0x1e)));const _0x333ddb=(_0x93bfed,_0x37110c)=>{const _0xdb3fee=_0x4e31a1;if(!_0x37110c){console[_0xdb3fee(0x147)]('\x20\x20'+_0x93bfed['padEnd'](0x11)+'\x20'+a30_0x2bcf3a[_0xdb3fee(0x15f)](_0xdb3fee(0x16a)));return;}const _0xfc241b=inspectCliConfigJsonFile(_0x37110c);if(_0xfc241b[_0xdb3fee(0x19b)]==='ok')console[_0xdb3fee(0x147)]('\x20\x20'+_0x93bfed['padEnd'](0x11)+'\x20'+a30_0x2bcf3a['green']('✓\x20Valid\x20JSON'));else{if(_0xfc241b[_0xdb3fee(0x19b)]===_0xdb3fee(0x1ba))console[_0xdb3fee(0x147)]('\x20\x20'+_0x93bfed[_0xdb3fee(0x175)](0x11)+'\x20'+a30_0x2bcf3a[_0xdb3fee(0x14e)](_0xdb3fee(0x17d)));else _0xfc241b[_0xdb3fee(0x19b)]===_0xdb3fee(0x168)?console[_0xdb3fee(0x147)]('\x20\x20'+_0x93bfed[_0xdb3fee(0x175)](0x11)+'\x20'+a30_0x2bcf3a[_0xdb3fee(0x15f)](_0xdb3fee(0x158))):(console['log']('\x20\x20'+_0x93bfed['padEnd'](0x11)+'\x20'+a30_0x2bcf3a['red'](_0xdb3fee(0x177))),console[_0xdb3fee(0x147)]('\x20\x20'+''[_0xdb3fee(0x175)](0x11)+'\x20'+a30_0x2bcf3a[_0xdb3fee(0x18b)](_0xfc241b['message'])));}};_0x333ddb(_0x4e31a1(0x18f),_0x2b7ecf),_0x333ddb(_0x4e31a1(0x172),_0x36ade6);const _0x485785=loadRawConfigLayers(),_0x1c356e=[Object[_0x4e31a1(0x18c)][_0x4e31a1(0x14f)][_0x4e31a1(0x195)](_0x485785[_0x4e31a1(0x1bb)],_0x4e31a1(0x1c2))?_0x4e31a1(0x166):null,Object[_0x4e31a1(0x18c)][_0x4e31a1(0x14f)][_0x4e31a1(0x195)](_0x485785[_0x4e31a1(0x16e)],_0x4e31a1(0x1c2))?_0x4e31a1(0x157):null][_0x4e31a1(0x14b)](Boolean);_0x1c356e[_0x4e31a1(0x1b3)]>0x0&&(console[_0x4e31a1(0x147)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a30_0x2bcf3a[_0x4e31a1(0x14e)](_0x4e31a1(0x1b8)+_0x1c356e[_0x4e31a1(0x17a)](_0x4e31a1(0x164))+_0x4e31a1(0x1a8))),_0x1c356e[_0x4e31a1(0x16d)](_0x4e31a1(0x157))&&console['log'](_0x4e31a1(0x18a)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x1c356e[_0x4e31a1(0x16d)](_0x4e31a1(0x166))&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x25894a&&(console['log'](),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x143)](_0x4e31a1(0x1b1))),console['log'](a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x152)[_0x4e31a1(0x1a1)](0x1e))),console['log'](_0x4e31a1(0x1a4)+a30_0x2bcf3a[_0x4e31a1(0x18b)]('✗\x20Invalid')),console[_0x4e31a1(0x147)](_0x4e31a1(0x165)+_0x25894a[_0x4e31a1(0x1ad)]),Object[_0x4e31a1(0x18c)][_0x4e31a1(0x14f)][_0x4e31a1(0x195)](_0x485785['projectConfig'],_0x4e31a1(0x171))&&console[_0x4e31a1(0x147)](_0x4e31a1(0x184)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object[_0x4e31a1(0x18c)][_0x4e31a1(0x14f)][_0x4e31a1(0x195)](_0x485785[_0x4e31a1(0x1bb)],_0x4e31a1(0x171))&&console[_0x4e31a1(0x147)](_0x4e31a1(0x167)+CLI_BIN_NAME+_0x4e31a1(0x1a9)));_0x1aa58a&&(console[_0x4e31a1(0x147)](),console[_0x4e31a1(0x147)](a30_0x2bcf3a['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)]('\x20\x20─'['repeat'](0x1e))),console[_0x4e31a1(0x147)](_0x4e31a1(0x1a4)+a30_0x2bcf3a[_0x4e31a1(0x18b)](_0x4e31a1(0x1a3))),console[_0x4e31a1(0x147)](_0x4e31a1(0x165)+_0x1aa58a[_0x4e31a1(0x1ad)]),Object['prototype']['hasOwnProperty'][_0x4e31a1(0x195)](_0x485785[_0x4e31a1(0x16e)],_0x4e31a1(0x1bd))&&console[_0x4e31a1(0x147)](_0x4e31a1(0x184)+CLI_BIN_NAME+_0x4e31a1(0x18d)),Object[_0x4e31a1(0x18c)][_0x4e31a1(0x14f)][_0x4e31a1(0x195)](_0x485785[_0x4e31a1(0x1bb)],_0x4e31a1(0x1bd))&&console[_0x4e31a1(0x147)](_0x4e31a1(0x167)+CLI_BIN_NAME+_0x4e31a1(0x1b2)));console[_0x4e31a1(0x147)](),console['log'](a30_0x2bcf3a[_0x4e31a1(0x143)](_0x4e31a1(0x14c))),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x152)[_0x4e31a1(0x1a1)](0x1e))),console[_0x4e31a1(0x147)](_0x4e31a1(0x1c0)+(_0xc26e7c['appCode']||a30_0x2bcf3a[_0x4e31a1(0x18b)]('(not\x20set)'))),console[_0x4e31a1(0x147)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x514418??a30_0x2bcf3a['red'](_0x4e31a1(0x174)))),console[_0x4e31a1(0x147)](_0x4e31a1(0x169)+_0xc26e7c['locale']),console[_0x4e31a1(0x147)](_0x4e31a1(0x150)+(_0xc26e7c[_0x4e31a1(0x156)]||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x162)))),console[_0x4e31a1(0x147)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0xc26e7c[_0x4e31a1(0x16c)]||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x162)))),console[_0x4e31a1(0x147)](_0x4e31a1(0x1a0)+(_0xc26e7c[_0x4e31a1(0x183)]||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x1ac)+DEFAULT_CONFIG_VALUES[_0x4e31a1(0x183)]+')'))),console[_0x4e31a1(0x147)](_0x4e31a1(0x19a)+(_0xc26e7c[_0x4e31a1(0x19e)]??a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x1a5)))),console[_0x4e31a1(0x147)](_0x4e31a1(0x149)+_0xc26e7c[_0x4e31a1(0x1b0)]),console[_0x4e31a1(0x147)](_0x4e31a1(0x1bc)+_0xc26e7c[_0x4e31a1(0x185)]),console[_0x4e31a1(0x147)](_0x4e31a1(0x198)+AUTH_MODE[_0x4e31a1(0x16f)]),console[_0x4e31a1(0x147)](_0x4e31a1(0x151)+(_0xc26e7c[_0x4e31a1(0x176)]?a30_0x2bcf3a[_0x4e31a1(0x17e)](_0x4e31a1(0x1b7)+_0xc26e7c[_0x4e31a1(0x176)][_0x4e31a1(0x1b3)]+')'):a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x162)))),console[_0x4e31a1(0x147)](),console['log'](a30_0x2bcf3a[_0x4e31a1(0x143)](_0x4e31a1(0x19c))),console['log'](a30_0x2bcf3a['gray'](_0x4e31a1(0x152)[_0x4e31a1(0x1a1)](0x1e)));_0x25894a||_0x1aa58a?console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a30_0x2bcf3a[_0x4e31a1(0x18b)](_0x4e31a1(0x19f))):(console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x4e31a1(0x147)](_0x4e31a1(0x160)+getUserDomain()),console[_0x4e31a1(0x147)](_0x4e31a1(0x146)+getRuntimeDomain()),console[_0x4e31a1(0x147)](_0x4e31a1(0x15c)+getSkillDomain()),console[_0x4e31a1(0x147)](_0x4e31a1(0x14d)+getKbDomain()));console[_0x4e31a1(0x147)](),console['log'](a30_0x2bcf3a[_0x4e31a1(0x143)]('\x20\x20Service\x20Tree')),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x152)['repeat'](0x1e)));const _0x5df645=inspectServiceRegistry();console[_0x4e31a1(0x147)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5df645[_0x4e31a1(0x155)]),console[_0x4e31a1(0x147)](_0x4e31a1(0x1a4)+formatServiceRegistryStatus(_0x5df645)),console[_0x4e31a1(0x147)](_0x4e31a1(0x1bf)+_0x5df645[_0x4e31a1(0x1a6)]),console['log'](_0x4e31a1(0x145)+_0x5df645[_0x4e31a1(0x15e)]);for(const _0x1bb069 of _0x5df645[_0x4e31a1(0x193)]){console['log']('\x20\x20'+(_0x1bb069[_0x4e31a1(0x1be)]+':')[_0x4e31a1(0x175)](0x11)+'\x20'+(_0x1bb069['name']||a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x1b9)))+'\x20('+_0x1bb069[_0x4e31a1(0x15e)]+_0x4e31a1(0x181)),console['log']('\x20\x20'+''['padEnd'](0x11)+_0x4e31a1(0x189)+_0x1bb069[_0x4e31a1(0x191)][_0x4e31a1(0x1a7)]);}return console['log'](),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x143)](_0x4e31a1(0x1ae))),console[_0x4e31a1(0x147)](a30_0x2bcf3a[_0x4e31a1(0x15f)]('\x20\x20─'[_0x4e31a1(0x1a1)](0x1e))),console['log'](_0x4e31a1(0x17f)+a30_0x2bcf3a[_0x4e31a1(0x17e)](AUTH_MODE[_0x4e31a1(0x16f)]+'\x20(accessKey)')),console['log'](_0x4e31a1(0x1b4)+a30_0x2bcf3a[_0x4e31a1(0x15f)](_0x4e31a1(0x192))),console[_0x4e31a1(0x147)](),{'ok':!![]};}function formatServiceRegistryStatus(_0xb761ce){const _0x900291=a30_0x3ac2;if(_0xb761ce[_0x900291(0x19b)]==='ok')return a30_0x2bcf3a[_0x900291(0x17e)](_0x900291(0x159));if(_0xb761ce[_0x900291(0x19b)]==='missing')return a30_0x2bcf3a[_0x900291(0x15f)](_0x900291(0x14a));if(_0xb761ce[_0x900291(0x19b)]===_0x900291(0x1ba))return a30_0x2bcf3a[_0x900291(0x14e)](_0x900291(0x144));return a30_0x2bcf3a[_0x900291(0x18b)](_0x900291(0x1a3)+(_0xb761ce[_0x900291(0x1ad)]?':\x20'+_0xb761ce[_0x900291(0x1ad)]:''));}export const doctorDefinition={'service':a30_0x12ab22(0x194),'command':a30_0x12ab22(0x173),'description':a30_0x12ab22(0x17b),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a31_0x5419f2=a31_0x7e95;(function(_0x5bdeea,_0x5b08f2){const _0x47bbbd=a31_0x7e95,_0x51a858=_0x5bdeea();while(!![]){try{const _0xe84a49=parseInt(_0x47bbbd(0x8c))/0x1*(parseInt(_0x47bbbd(0x83))/0x2)+-parseInt(_0x47bbbd(0x9f))/0x3*(parseInt(_0x47bbbd(0x86))/0x4)+-parseInt(_0x47bbbd(0x93))/0x5+-parseInt(_0x47bbbd(0x8e))/0x6+parseInt(_0x47bbbd(0x92))/0x7+-parseInt(_0x47bbbd(0x9e))/0x8+parseInt(_0x47bbbd(0x7f))/0x9;if(_0xe84a49===_0x5b08f2)break;else _0x51a858['push'](_0x51a858['shift']());}catch(_0x6cae3a){_0x51a858['push'](_0x51a858['shift']());}}}(a31_0x23dd,0x3b4bb));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a31_0x23dd(){const _0x21fbd8=['long-term','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','2oULedP','str','trim','16gnwbGg','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','validation','query-url','bool','455539UrnIXJ','File','430098QFwnWQ','file','appCode','boolean','465010WhRnBv','415925TnKHLJ','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','body','/client/uploadFile','path','Preview:\x20upload\x20','string','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','upload','download','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','2405576ZaBlVa','287943LyVtof','filePath\x20is\x20required.','filePath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5043555owbEnr','filepath'];a31_0x23dd=function(){return _0x21fbd8;};return a31_0x23dd();}import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a31_0x5419f2(0x8f),'type':a31_0x5419f2(0x99),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a31_0x5419f2(0x80),'type':a31_0x5419f2(0x99),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a31_0x5419f2(0x9c),'type':a31_0x5419f2(0x91),'description':a31_0x5419f2(0x94)},LONG_TERM_FLAG={'name':'long-term','type':a31_0x5419f2(0x91),'description':a31_0x5419f2(0x82)};function requireFilePath(_0x8afe9e){const _0x3bcf33=a31_0x5419f2,_0x53d34a=_0x8afe9e[_0x3bcf33(0x85)]();if(!_0x53d34a)throw CliErrors[_0x3bcf33(0x89)](_0x3bcf33(0xa0));return _0x53d34a;}const fileUpload={'service':a31_0x5419f2(0x8f),'command':a31_0x5419f2(0x9b),'description':a31_0x5419f2(0x9d),'risk':a31_0x5419f2(0x87),'flags':[FILE_FLAG],async 'dryRun'(_0x1fcf51){const _0x2545ad=a31_0x5419f2,_0x1d2089=requireRuntimeUploadFile(_0x1fcf51[_0x2545ad(0x84)](_0x2545ad(0x8f)),_0x2545ad(0x8d));return dryRun('POST',_0x2545ad(0x96))[_0x2545ad(0x95)]({'appCode':_0x1fcf51['appCode'],'multipart':{'file':_0x1d2089}})['description'](_0x2545ad(0x98)+_0x1d2089[_0x2545ad(0x97)]+'\x20to\x20runtime\x20app\x20'+_0x1fcf51[_0x2545ad(0x90)])['build']();},async 'execute'(_0x3db1cd){const _0x22b38a=a31_0x5419f2,_0x305f7e=requireRuntimeUploadFile(_0x3db1cd[_0x22b38a(0x84)](_0x22b38a(0x8f)),'File'),_0x5d6824=await uploadRuntimeFile(_0x3db1cd[_0x22b38a(0x90)],_0x305f7e[_0x22b38a(0x97)]);return{'ok':!![],'data':_0x5d6824,'message':_0x5d6824[_0x22b38a(0x7d)]?'Uploaded\x20file:\x20'+_0x5d6824['filePath']+_0x22b38a(0x7e):_0x22b38a(0x88)};}},fileQueryUrl={'service':a31_0x5419f2(0x8f),'command':a31_0x5419f2(0x8a),'description':a31_0x5419f2(0x9a),'risk':a31_0x5419f2(0x87),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1a36fc){const _0x3e590c=a31_0x5419f2,_0x521896=requireFilePath(_0x1a36fc[_0x3e590c(0x84)](_0x3e590c(0x80))),_0x7628b=await queryRuntimeFileUrl(_0x521896,{'download':_0x1a36fc[_0x3e590c(0x8b)](_0x3e590c(0x9c)),'longTerm':_0x1a36fc['bool'](_0x3e590c(0x81))});return{'ok':!![],'data':_0x7628b};}};function a31_0x7e95(_0x4a2628,_0x1e3d99){_0x4a2628=_0x4a2628-0x7d;const _0x23dde9=a31_0x23dd();let _0x7e95d=_0x23dde9[_0x4a2628];return _0x7e95d;}export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x63d032=a31_0x1d40;(function(_0x2a577e,_0x58a6b8){const _0x195e49=a31_0x1d40,_0x30f146=_0x2a577e();while(!![]){try{const _0x59c05b=parseInt(_0x195e49(0x1da))/0x1+-parseInt(_0x195e49(0x1cc))/0x2*(-parseInt(_0x195e49(0x1ea))/0x3)+-parseInt(_0x195e49(0x1d0))/0x4+parseInt(_0x195e49(0x1cd))/0x5*(parseInt(_0x195e49(0x1e2))/0x6)+parseInt(_0x195e49(0x1d1))/0x7*(parseInt(_0x195e49(0x1e9))/0x8)+parseInt(_0x195e49(0x1dc))/0x9+-parseInt(_0x195e49(0x1ce))/0xa*(parseInt(_0x195e49(0x1e6))/0xb);if(_0x59c05b===_0x58a6b8)break;else _0x30f146['push'](_0x30f146['shift']());}catch(_0x35474b){_0x30f146['push'](_0x30f146['shift']());}}}(a31_0x35c4,0xdc1b4));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a31_0x35c4(){const _0x21ba3b=['appCode','long-term','File','Path\x20to\x20the\x20local\x20file\x20to\x20upload','file','Preview:\x20upload\x20','1466589zmfqZG','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','4976532iXNVDE','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','string','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','bool','2676GTdXEs','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','path','Uploaded\x20file:\x20','44GnmgjA','str','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','72nqUsOD','1297335PtKuVL','body','filePath','\x20to\x20runtime\x20app\x20','/client/uploadFile','8iaLylm','10885IHuVmP','12082170nzYIGp','upload','1727856GBVtFm','1124767SDdLnn','query-url','boolean'];a31_0x35c4=function(){return _0x21ba3b;};return a31_0x35c4();}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a31_0x1d40(_0x14bff5,_0x47ce73){_0x14bff5=_0x14bff5-0x1ca;const _0x35c448=a31_0x35c4();let _0x1d400c=_0x35c448[_0x14bff5];return _0x1d400c;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a31_0x63d032(0x1de),'required':!![],'description':a31_0x63d032(0x1d7)},FILEPATH_FLAG={'name':'filepath','type':a31_0x63d032(0x1de),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a31_0x63d032(0x1e0),'type':a31_0x63d032(0x1d3),'description':a31_0x63d032(0x1dd)},LONG_TERM_FLAG={'name':a31_0x63d032(0x1d5),'type':a31_0x63d032(0x1d3),'description':a31_0x63d032(0x1e8)};function requireFilePath(_0x145498){const _0x23df74=_0x145498['trim']();if(!_0x23df74)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x23df74;}const fileUpload={'service':'file','command':a31_0x63d032(0x1cf),'description':a31_0x63d032(0x1df),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x2df5db){const _0x5ba88a=a31_0x63d032,_0x255722=requireRuntimeUploadFile(_0x2df5db[_0x5ba88a(0x1e7)](_0x5ba88a(0x1d8)),_0x5ba88a(0x1d6));return dryRun('POST',_0x5ba88a(0x1cb))[_0x5ba88a(0x1eb)]({'appCode':_0x2df5db[_0x5ba88a(0x1d4)],'multipart':{'file':_0x255722}})['description'](_0x5ba88a(0x1d9)+_0x255722[_0x5ba88a(0x1e4)]+_0x5ba88a(0x1ca)+_0x2df5db[_0x5ba88a(0x1d4)])['build']();},async 'execute'(_0x21be9f){const _0x2dbdb4=a31_0x63d032,_0x4c0fea=requireRuntimeUploadFile(_0x21be9f['str']('file'),'File'),_0x467b5b=await uploadRuntimeFile(_0x21be9f[_0x2dbdb4(0x1d4)],_0x4c0fea['path']);return{'ok':!![],'data':_0x467b5b,'message':_0x467b5b['filePath']?_0x2dbdb4(0x1e5)+_0x467b5b[_0x2dbdb4(0x1ec)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x2dbdb4(0x1db)};}},fileQueryUrl={'service':a31_0x63d032(0x1d8),'command':a31_0x63d032(0x1d2),'description':a31_0x63d032(0x1e3),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1390de){const _0x4eef62=a31_0x63d032,_0x1144f3=requireFilePath(_0x1390de['str']('filepath')),_0x51dfee=await queryRuntimeFileUrl(_0x1144f3,{'download':_0x1390de[_0x4eef62(0x1e1)](_0x4eef62(0x1e0)),'longTerm':_0x1390de[_0x4eef62(0x1e1)](_0x4eef62(0x1d5))});return{'ok':!![],'data':_0x51dfee};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a32_0x478a5e=a32_0x4dcf;(function(_0x6cf646,_0x11c3b3){const _0x587ca8=a32_0x4dcf,_0x4a6e81=_0x6cf646();while(!![]){try{const _0x1f0975=parseInt(_0x587ca8(0x204))/0x1*(-parseInt(_0x587ca8(0x1f4))/0x2)+-parseInt(_0x587ca8(0x1e9))/0x3+parseInt(_0x587ca8(0x210))/0x4*(-parseInt(_0x587ca8(0x209))/0x5)+-parseInt(_0x587ca8(0x1fa))/0x6+parseInt(_0x587ca8(0x202))/0x7*(-parseInt(_0x587ca8(0x203))/0x8)+parseInt(_0x587ca8(0x1e6))/0x9+parseInt(_0x587ca8(0x1f3))/0xa;if(_0x1f0975===_0x11c3b3)break;else _0x4a6e81['push'](_0x4a6e81['shift']());}catch(_0x10165e){_0x4a6e81['push'](_0x4a6e81['shift']());}}}(a32_0x12af,0x4d188));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':a32_0x478a5e(0x1ea),'type':a32_0x478a5e(0x1ee),'description':a32_0x478a5e(0x1f5),'required':!![]},{'name':a32_0x478a5e(0x1e8),'type':'string','description':a32_0x478a5e(0x1f0)},{'name':a32_0x478a5e(0x1ef),'type':'string','description':a32_0x478a5e(0x1e7),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a32_0x478a5e(0x1fc),'description':a32_0x478a5e(0x1ec)+PRODUCT_CONFIG['newConfigFileName']+')\x20instead\x20of\x20project','default':![]},{'name':a32_0x478a5e(0x1eb),'type':a32_0x478a5e(0x1fc),'description':a32_0x478a5e(0x1fb),'default':![]}];export async function runAppImport(_0xe75652){const _0x1d5ac8=a32_0x478a5e,_0x4cc1b4=_0xe75652[_0x1d5ac8(0x200)]?_0x1d5ac8(0x200):_0x1d5ac8(0x205),_0x11c9df=resolveWriteConfigPath(_0x4cc1b4);await runFromImport(_0xe75652,_0x11c9df);}async function runFromImport(_0x3ba122,_0x150322){const _0x2af817=a32_0x478a5e,_0x5c8c28=resolveFilePath(_0x3ba122['file']);if(!existsSync(_0x5c8c28))throw CliErrors[_0x2af817(0x20c)](_0x2af817(0x1f6)+_0x5c8c28);const _0x54b975=readSourceFile(_0x5c8c28),_0x39745e=convertToRuntimeConfig(_0x54b975);_0x3ba122['appcode']&&(_0x39745e[_0x2af817(0x1e8)]=String(_0x3ba122['appcode']));_0x3ba122['env']&&(_0x39745e[_0x2af817(0x1ef)]=resolveImportEnv(_0x3ba122));if(!_0x39745e[_0x2af817(0x1e8)])throw CliErrors[_0x2af817(0x20c)](_0x2af817(0x20d),'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(_0x150322,_0x39745e,_0x3ba122),console[_0x2af817(0x1f7)](_0x2af817(0x1f2)+_0x5c8c28),console[_0x2af817(0x1f7)]('\x20\x20config:\x20\x20'+_0x150322),console[_0x2af817(0x1f7)](_0x2af817(0x20e)+_0x39745e[_0x2af817(0x1e8)]);if(_0x39745e['defaultApp'])console[_0x2af817(0x1f7)]('\x20\x20default:\x20'+_0x39745e[_0x2af817(0x20a)]);}function a32_0x12af(){const _0x321cf3=['32858DfgjtC','152RlCVTW','3bOivqr','project','message','riskLevel','object','1195965ialAIU','defaultApp','join','validation','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','\x20\x20appcode:\x20','Invalid\x20env\x20\x22','4KbXhCi','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','4736331BKTQdU','Override\x20imported\x20default\x20env','appcode','1138578mgvTaY','file','yes','Write\x20to\x20global\x20(~/','entries','string','env','Override\x20imported\x20default\x20appcode','parse','Imported\x20from\x20','8954440RAXNyL','157660XDldmX','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','Source\x20file\x20not\x20found:\x20','log','utf8','app','969144inJrfa','Skip\x20confirmation\x20when\x20overwriting','boolean','cwd','\x22.\x20Allowed:\x20','apps','global','includes'];a32_0x12af=function(){return _0x321cf3;};return a32_0x12af();}function convertToRuntimeConfig(_0x3c359d){const _0x34380b=a32_0x478a5e;if(_0x3c359d[_0x34380b(0x1ff)]&&typeof _0x3c359d[_0x34380b(0x1ff)]===_0x34380b(0x208))throw CliErrors[_0x34380b(0x20c)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x34380b(0x1e5));const _0x19a721={};for(const _0x1ac3b3 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3c359d[_0x1ac3b3]!==undefined&&(_0x19a721[_0x1ac3b3]=_0x3c359d[_0x1ac3b3]);}return!_0x19a721['riskLevel']&&(_0x19a721['riskLevel']=DEFAULT_CONFIG_VALUES[_0x34380b(0x207)]),_0x19a721;}async function writeImportConfig(_0x74e7c0,_0x143c63,_0x52e4a7){const _0x537196=a32_0x478a5e;let _0x857b6f={};existsSync(_0x74e7c0)&&!_0x52e4a7[_0x537196(0x1eb)]&&(_0x857b6f=readConfigFile(_0x74e7c0));for(const [_0xcab8e8,_0xd026d5]of Object[_0x537196(0x1ed)](_0x143c63)){_0xd026d5!==undefined&&(_0x857b6f[_0xcab8e8]=_0xd026d5);}if(_0x857b6f[_0x537196(0x1f9)])delete _0x857b6f['app'];writeConfigFile(_0x74e7c0,_0x857b6f);}function a32_0x4dcf(_0x3cb633,_0x250266){_0x3cb633=_0x3cb633-0x1e5;const _0x12afa9=a32_0x12af();let _0x4dcf9f=_0x12afa9[_0x3cb633];return _0x4dcf9f;}function resolveFilePath(_0x1435b5){const _0x14955b=a32_0x478a5e;return isAbsolute(_0x1435b5)?_0x1435b5:resolve(process[_0x14955b(0x1fd)](),_0x1435b5);}function readSourceFile(_0x1e6680){const _0x50c0c0=a32_0x478a5e;try{const _0x4d67ec=readFileSync(_0x1e6680,{'encoding':_0x50c0c0(0x1f8)});return JSON[_0x50c0c0(0x1f1)](_0x4d67ec);}catch(_0x110ddd){throw CliErrors[_0x50c0c0(0x20c)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x110ddd[_0x50c0c0(0x206)]);}}function resolveImportEnv(_0x3436ad){const _0x194cf6=a32_0x478a5e,_0x1c5ce5=_0x3436ad[_0x194cf6(0x1ef)];if(_0x1c5ce5===undefined||_0x1c5ce5==='')return DEFAULT_CONFIG_VALUES[_0x194cf6(0x1ef)];if(!RUNTIME_ENV_VALUES[_0x194cf6(0x201)](_0x1c5ce5))throw CliErrors[_0x194cf6(0x20c)](_0x194cf6(0x20f)+_0x1c5ce5+_0x194cf6(0x1fe)+RUNTIME_ENV_VALUES[_0x194cf6(0x20b)](',\x20'));return _0x1c5ce5;}
1
+ const a32_0x5e0f90=a32_0x236c;(function(_0x17544e,_0x4fa8fc){const _0x2c8f43=a32_0x236c,_0x41ccfc=_0x17544e();while(!![]){try{const _0x796923=-parseInt(_0x2c8f43(0x1d5))/0x1*(-parseInt(_0x2c8f43(0x1cc))/0x2)+parseInt(_0x2c8f43(0x1da))/0x3+-parseInt(_0x2c8f43(0x1d7))/0x4*(-parseInt(_0x2c8f43(0x1db))/0x5)+parseInt(_0x2c8f43(0x1cf))/0x6+-parseInt(_0x2c8f43(0x1c6))/0x7*(-parseInt(_0x2c8f43(0x1ea))/0x8)+-parseInt(_0x2c8f43(0x1e6))/0x9*(-parseInt(_0x2c8f43(0x1d3))/0xa)+-parseInt(_0x2c8f43(0x1d0))/0xb*(parseInt(_0x2c8f43(0x1ed))/0xc);if(_0x796923===_0x4fa8fc)break;else _0x41ccfc['push'](_0x41ccfc['shift']());}catch(_0x156309){_0x41ccfc['push'](_0x41ccfc['shift']());}}}(a32_0x4761,0x1d429));function a32_0x236c(_0x4a2045,_0x4d21c8){_0x4a2045=_0x4a2045-0x1c6;const _0x4761f3=a32_0x4761();let _0x236c39=_0x4761f3[_0x4a2045];return _0x236c39;}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_0x5e0f90(0x1cb),'description':a32_0x5e0f90(0x1dc),'required':!![]},{'name':a32_0x5e0f90(0x1f1),'type':'string','description':'Override\x20imported\x20default\x20appcode'},{'name':a32_0x5e0f90(0x1c8),'type':a32_0x5e0f90(0x1cb),'description':a32_0x5e0f90(0x1d2),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x5e0f90(0x1ec),'type':a32_0x5e0f90(0x1df),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG['newConfigFileName']+')\x20instead\x20of\x20project','default':![]},{'name':a32_0x5e0f90(0x1cd),'type':a32_0x5e0f90(0x1df),'description':a32_0x5e0f90(0x1e1),'default':![]}];export async function runAppImport(_0xe52c39){const _0x3face9=a32_0x5e0f90,_0x4a9a60=_0xe52c39[_0x3face9(0x1ec)]?_0x3face9(0x1ec):_0x3face9(0x1ef),_0x3978a9=resolveWriteConfigPath(_0x4a9a60);await runFromImport(_0xe52c39,_0x3978a9);}async function runFromImport(_0x13135b,_0x2a6549){const _0x368f6f=a32_0x5e0f90,_0x3924bf=resolveFilePath(_0x13135b[_0x368f6f(0x1c9)]);if(!existsSync(_0x3924bf))throw CliErrors[_0x368f6f(0x1ee)](_0x368f6f(0x1d6)+_0x3924bf);const _0xd4852b=readSourceFile(_0x3924bf),_0x3897d3=convertToRuntimeConfig(_0xd4852b);_0x13135b[_0x368f6f(0x1f1)]&&(_0x3897d3[_0x368f6f(0x1f1)]=String(_0x13135b[_0x368f6f(0x1f1)]));_0x13135b[_0x368f6f(0x1c8)]&&(_0x3897d3[_0x368f6f(0x1c8)]=resolveImportEnv(_0x13135b));if(!_0x3897d3[_0x368f6f(0x1f1)])throw CliErrors[_0x368f6f(0x1ee)](_0x368f6f(0x1e0),_0x368f6f(0x1dd));await writeImportConfig(_0x2a6549,_0x3897d3,_0x13135b),console[_0x368f6f(0x1d8)](_0x368f6f(0x1e9)+_0x3924bf),console[_0x368f6f(0x1d8)]('\x20\x20config:\x20\x20'+_0x2a6549),console[_0x368f6f(0x1d8)](_0x368f6f(0x1e2)+_0x3897d3[_0x368f6f(0x1f1)]);if(_0x3897d3[_0x368f6f(0x1e4)])console[_0x368f6f(0x1d8)](_0x368f6f(0x1eb)+_0x3897d3[_0x368f6f(0x1e4)]);}function convertToRuntimeConfig(_0x26cdf9){const _0x588c19=a32_0x5e0f90;if(_0x26cdf9[_0x588c19(0x1e5)]&&typeof _0x26cdf9[_0x588c19(0x1e5)]===_0x588c19(0x1e3))throw CliErrors[_0x588c19(0x1ee)](_0x588c19(0x1e8),_0x588c19(0x1d9));const _0x508417={};for(const _0x3c1626 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x26cdf9[_0x3c1626]!==undefined&&(_0x508417[_0x3c1626]=_0x26cdf9[_0x3c1626]);}return!_0x508417[_0x588c19(0x1e7)]&&(_0x508417[_0x588c19(0x1e7)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x508417;}async function writeImportConfig(_0x1855d1,_0x49f9c7,_0x5b9f2d){const _0x415b92=a32_0x5e0f90;let _0x589a08={};existsSync(_0x1855d1)&&!_0x5b9f2d['yes']&&(_0x589a08=readConfigFile(_0x1855d1));for(const [_0x207ada,_0x44a349]of Object['entries'](_0x49f9c7)){_0x44a349!==undefined&&(_0x589a08[_0x207ada]=_0x44a349);}if(_0x589a08[_0x415b92(0x1ce)])delete _0x589a08[_0x415b92(0x1ce)];writeConfigFile(_0x1855d1,_0x589a08);}function resolveFilePath(_0xd3a16f){const _0xc6eab9=a32_0x5e0f90;return isAbsolute(_0xd3a16f)?_0xd3a16f:resolve(process[_0xc6eab9(0x1d4)](),_0xd3a16f);}function readSourceFile(_0x24b367){const _0x1f7ad4=a32_0x5e0f90;try{const _0x303d5c=readFileSync(_0x24b367,{'encoding':'utf8'});return JSON[_0x1f7ad4(0x1f0)](_0x303d5c);}catch(_0x5da1bb){throw CliErrors[_0x1f7ad4(0x1ee)](_0x1f7ad4(0x1d1)+_0x5da1bb[_0x1f7ad4(0x1ca)]);}}function a32_0x4761(){const _0x45b351=['riskLevel','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Imported\x20from\x20','1208NNfMPz','\x20\x20default:\x20','global','60tOvNbp','validation','project','parse','appcode','7196YOGlCg','Invalid\x20env\x20\x22','env','file','message','string','3516dUQLDC','yes','app','71592JygfCj','1418593OehYCv','Failed\x20to\x20parse\x20source\x20file:\x20','Override\x20imported\x20default\x20env','58270UEtbfl','cwd','117QVxPvb','Source\x20file\x20not\x20found:\x20','8UCRqPQ','log','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','443622HIPWxB','260240NjUUKp','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','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`.','\x22.\x20Allowed:\x20','boolean','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Skip\x20confirmation\x20when\x20overwriting','\x20\x20appcode:\x20','object','defaultApp','apps','216cusSIc'];a32_0x4761=function(){return _0x45b351;};return a32_0x4761();}function resolveImportEnv(_0x28c957){const _0x558a7f=a32_0x5e0f90,_0xa46756=_0x28c957[_0x558a7f(0x1c8)];if(_0xa46756===undefined||_0xa46756==='')return DEFAULT_CONFIG_VALUES[_0x558a7f(0x1c8)];if(!RUNTIME_ENV_VALUES['includes'](_0xa46756))throw CliErrors[_0x558a7f(0x1ee)](_0x558a7f(0x1c7)+_0xa46756+_0x558a7f(0x1de)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0xa46756;}
@@ -1 +1 @@
1
- function a33_0x58d0(_0x37287d,_0x14418a){_0x37287d=_0x37287d-0x13e;const _0x375cbc=a33_0x375c();let _0x58d0ca=_0x375cbc[_0x37287d];return _0x58d0ca;}const a33_0x156ba4=a33_0x58d0;(function(_0x47d848,_0x3109ac){const _0x416bcc=a33_0x58d0,_0x1a6feb=_0x47d848();while(!![]){try{const _0x5278fe=parseInt(_0x416bcc(0x168))/0x1*(parseInt(_0x416bcc(0x143))/0x2)+-parseInt(_0x416bcc(0x15f))/0x3*(-parseInt(_0x416bcc(0x15a))/0x4)+-parseInt(_0x416bcc(0x142))/0x5*(parseInt(_0x416bcc(0x140))/0x6)+parseInt(_0x416bcc(0x162))/0x7+-parseInt(_0x416bcc(0x177))/0x8+-parseInt(_0x416bcc(0x150))/0x9+parseInt(_0x416bcc(0x17e))/0xa*(-parseInt(_0x416bcc(0x159))/0xb);if(_0x5278fe===_0x3109ac)break;else _0x1a6feb['push'](_0x1a6feb['shift']());}catch(_0x186b56){_0x1a6feb['push'](_0x1a6feb['shift']());}}}(a33_0x375c,0xdd8d9));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-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_0x156ba4(0x171),'type':a33_0x156ba4(0x164),'required':!![],'description':a33_0x156ba4(0x17f)},FILE_FLAG={'name':a33_0x156ba4(0x174),'type':'string','required':!![],'description':a33_0x156ba4(0x15b)},QUERY_FLAG={'name':a33_0x156ba4(0x144),'type':a33_0x156ba4(0x164),'required':!![],'description':a33_0x156ba4(0x169)},TOPK_FLAG={'name':a33_0x156ba4(0x154),'type':'number','description':a33_0x156ba4(0x166)};function readKnowledgeFile(_0x5461df){const _0x5cde12=a33_0x156ba4;if(!_0x5461df)throw CliErrors[_0x5cde12(0x16c)]('File\x20path\x20is\x20required.');if(!existsSync(_0x5461df))throw CliErrors[_0x5cde12(0x16c)](_0x5cde12(0x178)+_0x5461df);if(!statSync(_0x5461df)[_0x5cde12(0x152)]())throw CliErrors[_0x5cde12(0x16c)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x5461df);return readFileSync(_0x5461df,_0x5cde12(0x16e));}function summarizePersonalItem(_0x52d1e6){const _0x580b97=a33_0x156ba4;return{'id':_0x52d1e6['id'],'title':_0x52d1e6[_0x580b97(0x171)],'version':_0x52d1e6[_0x580b97(0x17b)],'ragStatus':_0x52d1e6[_0x580b97(0x14e)],'ragErrorMessage':_0x52d1e6[_0x580b97(0x156)],'updateTime':_0x52d1e6[_0x580b97(0x13f)]};}function detailPersonalItem(_0x7d9c6e){const _0x26aa51=a33_0x156ba4;return{'id':_0x7d9c6e['id'],'appCode':_0x7d9c6e[_0x26aa51(0x17d)],'scope':_0x7d9c6e['scope'],'userId':_0x7d9c6e[_0x26aa51(0x16b)],'title':_0x7d9c6e[_0x26aa51(0x171)],'content':_0x7d9c6e['content']??'','version':_0x7d9c6e['version'],'ragStatus':_0x7d9c6e['ragStatus'],'ragErrorMessage':_0x7d9c6e['ragErrorMessage'],'createTime':_0x7d9c6e[_0x26aa51(0x147)],'updateTime':_0x7d9c6e[_0x26aa51(0x13f)]};}function summarizeSearchHit(_0x4a768c){const _0x183551=a33_0x156ba4;return{'scope':_0x4a768c[_0x183551(0x15c)],'title':_0x4a768c[_0x183551(0x171)],'docId':_0x4a768c[_0x183551(0x14f)],'score':_0x4a768c[_0x183551(0x175)],'weightedScore':_0x4a768c[_0x183551(0x13e)],'content':_0x4a768c[_0x183551(0x14d)],'metadata':_0x4a768c[_0x183551(0x16f)]};}function readTopK(_0x28107c){const _0x1c733b=a33_0x156ba4,_0x2c106e=_0x28107c[_0x1c733b(0x14a)](_0x1c733b(0x154));if(_0x2c106e===undefined||_0x2c106e===null||_0x2c106e==='')return undefined;const _0x231561=_0x28107c[_0x1c733b(0x170)](_0x1c733b(0x154));if(!Number[_0x1c733b(0x141)](_0x231561)||_0x231561<0x1)throw CliErrors[_0x1c733b(0x16c)](_0x1c733b(0x163));return _0x231561;}function a33_0x375c(){const _0x10a39e=['ragErrorMessage','length','POST','11CGCHgK','4qsUDwj','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','scope','detail','bool','4232271uVoOqz','/client/knowledge-base/personal/','Search\x20query\x20is\x20required.','12202071BrrQGh','--topk\x20must\x20be\x20a\x20positive\x20number.','string','read','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Updated\x20KB\x20entry\x20','261VyhmWC','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','write','userId','validation','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','utf8','metadata','num','title','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','file','score','list','3302832xuPbhw','File\x20not\x20found:\x20','map','trim','version','build','appCode','19413670hbwnWr','Personal\x20knowledge-base\x20entry\x20title','body','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','verbose','weightedScore','updateTime','239676nCyhwN','isFinite','25mzYtwj','8314fKCBbz','query','description','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','createTime','search','str','flag','create','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','content','ragStatus','docId','6997095rsWvfF','Override\x20the\x20existing\x20entry\x20title','isFile','/client/knowledge-base/personal/create','topk','Personal\x20knowledge-base\x20entry\x20ID'];a33_0x375c=function(){return _0x10a39e;};return a33_0x375c();}const kbList={'service':'kb','command':a33_0x156ba4(0x176),'description':a33_0x156ba4(0x181),'risk':a33_0x156ba4(0x165),'flags':[VERBOSE_FLAG],async 'execute'(_0x1bb378){const _0x2e6ac3=a33_0x156ba4,_0x53b163=await listPersonalKnowledgeBaseItems(_0x1bb378[_0x2e6ac3(0x17d)]);if(_0x1bb378[_0x2e6ac3(0x15e)](_0x2e6ac3(0x182)))return{'ok':!![],'data':{'total':_0x53b163[_0x2e6ac3(0x157)],'items':_0x53b163}};return{'ok':!![],'data':{'total':_0x53b163[_0x2e6ac3(0x157)],'items':_0x53b163[_0x2e6ac3(0x179)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x156ba4(0x15d),'description':a33_0x156ba4(0x14c),'risk':'read','flags':[{...ID_FLAG,'description':a33_0x156ba4(0x155)}],async 'execute'(_0x37ab06){const _0x374643=a33_0x156ba4,_0x46bfcd=await getPersonalKnowledgeBaseItem(_0x37ab06[_0x374643(0x170)]('id'),_0x37ab06['appCode']);return{'ok':!![],'data':detailPersonalItem(_0x46bfcd)};}},kbCreate={'service':'kb','command':a33_0x156ba4(0x14b),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a33_0x156ba4(0x16a),'confirmationDescription':a33_0x156ba4(0x146),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x22e652){const _0x334735=a33_0x156ba4,_0x4774e3=_0x22e652[_0x334735(0x149)](_0x334735(0x171)),_0x212684=readKnowledgeFile(_0x22e652['str'](_0x334735(0x174))),_0x57684f=await createPersonalKnowledgeBaseItem(_0x22e652['appCode'],{'title':_0x4774e3,'content':_0x212684});return{'ok':!![],'data':summarizePersonalItem(_0x57684f),'message':'Created\x20KB\x20entry\x20'+_0x57684f['id']+'\x20('+_0x57684f[_0x334735(0x171)]+')'};},async 'dryRun'(_0x565aa5){const _0x5062da=a33_0x156ba4,_0xfafc4a=_0x565aa5[_0x5062da(0x149)](_0x5062da(0x171)),_0x25f8e9=readKnowledgeFile(_0x565aa5[_0x5062da(0x149)](_0x5062da(0x174)));return dryRun(_0x5062da(0x158),_0x5062da(0x153))[_0x5062da(0x180)]({'appCode':_0x565aa5['appCode'],'title':_0xfafc4a,'content':_0x25f8e9})[_0x5062da(0x145)](_0x5062da(0x172)+_0xfafc4a+'\x22')['build']();}},kbUpdate={'service':'kb','command':'update','description':a33_0x156ba4(0x173),'risk':a33_0x156ba4(0x16a),'confirmationDescription':a33_0x156ba4(0x16d),'flags':[{...ID_FLAG,'description':a33_0x156ba4(0x155)},{...TITLE_FLAG,'required':![],'description':a33_0x156ba4(0x151)},FILE_FLAG],async 'execute'(_0x344242){const _0x29552c=a33_0x156ba4,_0x1561ca=_0x344242[_0x29552c(0x170)]('id'),_0xb77893=readKnowledgeFile(_0x344242[_0x29552c(0x149)](_0x29552c(0x174))),_0x571a61=_0x344242[_0x29552c(0x149)](_0x29552c(0x171))||(await getPersonalKnowledgeBaseItem(_0x1561ca,_0x344242['appCode']))[_0x29552c(0x171)],_0x16773d=await updatePersonalKnowledgeBaseItem(_0x1561ca,_0x344242[_0x29552c(0x17d)],{'title':_0x571a61,'content':_0xb77893});return{'ok':!![],'data':summarizePersonalItem(_0x16773d),'message':_0x29552c(0x167)+_0x16773d['id']+'\x20('+_0x16773d[_0x29552c(0x171)]+')'};},async 'dryRun'(_0xf50a32){const _0x453575=a33_0x156ba4,_0x519f14=_0xf50a32[_0x453575(0x170)]('id'),_0x58681f=readKnowledgeFile(_0xf50a32[_0x453575(0x149)](_0x453575(0x174))),_0x471521=_0xf50a32[_0x453575(0x149)](_0x453575(0x171))||(await getPersonalKnowledgeBaseItem(_0x519f14,_0xf50a32[_0x453575(0x17d)]))['title'];return dryRun('POST',_0x453575(0x160)+_0x519f14+'/update')[_0x453575(0x180)]({'appCode':_0xf50a32[_0x453575(0x17d)],'title':_0x471521,'content':_0x58681f})[_0x453575(0x145)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x519f14)[_0x453575(0x17c)]();}},kbSearch={'service':'kb','command':a33_0x156ba4(0x148),'description':'Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','risk':a33_0x156ba4(0x165),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x37e31a){const _0x878ee9=a33_0x156ba4;if(!_0x37e31a['str']('query')[_0x878ee9(0x17a)]())throw CliErrors[_0x878ee9(0x16c)](_0x878ee9(0x161));readTopK(_0x37e31a);},async 'execute'(_0x3995d2){const _0x428224=a33_0x156ba4,_0x1a8218=_0x3995d2[_0x428224(0x149)](_0x428224(0x144))[_0x428224(0x17a)](),_0x4516e3=readTopK(_0x3995d2),_0x5dc71b=await searchKnowledgeBase(_0x3995d2['appCode'],{'query':_0x1a8218,'topK':_0x4516e3});return{'ok':!![],'data':{'total':_0x5dc71b[_0x428224(0x157)],'hits':_0x5dc71b[_0x428224(0x179)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x43d9fe=a33_0x8dfc;(function(_0x461766,_0x450205){const _0x20db8e=a33_0x8dfc,_0x3e8895=_0x461766();while(!![]){try{const _0x4b98ad=parseInt(_0x20db8e(0x1b7))/0x1+-parseInt(_0x20db8e(0x1db))/0x2+-parseInt(_0x20db8e(0x1c2))/0x3*(-parseInt(_0x20db8e(0x1b4))/0x4)+parseInt(_0x20db8e(0x1bc))/0x5+parseInt(_0x20db8e(0x1d5))/0x6+parseInt(_0x20db8e(0x1c3))/0x7*(-parseInt(_0x20db8e(0x1dc))/0x8)+-parseInt(_0x20db8e(0x1b6))/0x9*(parseInt(_0x20db8e(0x1de))/0xa);if(_0x4b98ad===_0x450205)break;else _0x3e8895['push'](_0x3e8895['shift']());}catch(_0x11694b){_0x3e8895['push'](_0x3e8895['shift']());}}}(a33_0x4677,0x6fe7a));import{existsSync,readFileSync,statSync}from'node:fs';function a33_0x8dfc(_0x230e1a,_0x40f6af){_0x230e1a=_0x230e1a-0x1a5;const _0x4677c4=a33_0x4677();let _0x8dfcd=_0x4677c4[_0x230e1a];return _0x8dfcd;}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_0x43d9fe(0x1c0),'type':a33_0x43d9fe(0x1c1),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':'file','type':a33_0x43d9fe(0x1c1),'required':!![],'description':a33_0x43d9fe(0x1d9)},QUERY_FLAG={'name':a33_0x43d9fe(0x1e1),'type':'string','required':!![],'description':a33_0x43d9fe(0x1da)},TOPK_FLAG={'name':'topk','type':a33_0x43d9fe(0x1bd),'description':a33_0x43d9fe(0x1af)};function a33_0x4677(){const _0x4461fd=['Personal\x20knowledge-base\x20entry\x20ID','isSafeInteger','create','build','2532105aaZlvR','number','utf8','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','title','string','223467ASCxto','3788645EANsNM','createTime','trim','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','content','isFile','read','body','search','ragStatus','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','description','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','appCode','length','write','map','1333926PQmfBQ','userId','File\x20path\x20is\x20required.','update','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','1135482qsGqCj','8UyixUh','verbose','112430emBugt','detail','num','query','version','ragErrorMessage','topk','validation','Override\x20the\x20existing\x20entry\x20title','flag','/client/knowledge-base/personal/create','str','signal','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','/update','file','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','File\x20not\x20found:\x20','accessKey','list','updateTime','40RyDLpT','POST','549xvuaBu','779529jGybvv'];a33_0x4677=function(){return _0x4461fd;};return a33_0x4677();}function readKnowledgeFile(_0x2aaacb){const _0x3b68f2=a33_0x43d9fe;if(!_0x2aaacb)throw CliErrors[_0x3b68f2(0x1a6)](_0x3b68f2(0x1d7));if(!existsSync(_0x2aaacb))throw CliErrors['validation'](_0x3b68f2(0x1b0)+_0x2aaacb);if(!statSync(_0x2aaacb)[_0x3b68f2(0x1c8)]())throw CliErrors[_0x3b68f2(0x1a6)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x2aaacb);return readFileSync(_0x2aaacb,_0x3b68f2(0x1be));}function summarizePersonalItem(_0x4b5b61){const _0x385d74=a33_0x43d9fe;return{'id':_0x4b5b61['id'],'title':_0x4b5b61[_0x385d74(0x1c0)],'version':_0x4b5b61[_0x385d74(0x1e2)],'ragStatus':_0x4b5b61[_0x385d74(0x1cc)],'ragErrorMessage':_0x4b5b61[_0x385d74(0x1e3)],'updateTime':_0x4b5b61[_0x385d74(0x1b3)]};}function detailPersonalItem(_0x2100f1){const _0x680e0b=a33_0x43d9fe;return{'id':_0x2100f1['id'],'appCode':_0x2100f1[_0x680e0b(0x1d1)],'scope':_0x2100f1['scope'],'userId':_0x2100f1[_0x680e0b(0x1d6)],'title':_0x2100f1[_0x680e0b(0x1c0)],'content':_0x2100f1[_0x680e0b(0x1c7)]??'','version':_0x2100f1['version'],'ragStatus':_0x2100f1[_0x680e0b(0x1cc)],'ragErrorMessage':_0x2100f1[_0x680e0b(0x1e3)],'createTime':_0x2100f1[_0x680e0b(0x1c4)],'updateTime':_0x2100f1[_0x680e0b(0x1b3)]};}function readTopK(_0x1083e4){const _0x3c054f=a33_0x43d9fe,_0xc90d9b=_0x1083e4[_0x3c054f(0x1a8)](_0x3c054f(0x1a5));if(_0xc90d9b===undefined||_0xc90d9b===null||_0xc90d9b==='')return undefined;const _0x2baf40=_0x1083e4[_0x3c054f(0x1e0)]('topk');if(!Number[_0x3c054f(0x1b9)](_0x2baf40)||_0x2baf40<0x1||_0x2baf40>0x32)throw CliErrors['validation']('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x2baf40;}const kbList={'service':'kb','command':a33_0x43d9fe(0x1b2),'description':a33_0x43d9fe(0x1bf),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0x38f595){const _0xaf846c=a33_0x43d9fe,_0x4b4b03=await listPersonalKnowledgeBaseItems(_0x38f595[_0xaf846c(0x1d1)]);if(_0x38f595['bool'](_0xaf846c(0x1dd)))return{'ok':!![],'data':{'total':_0x4b4b03['length'],'items':_0x4b4b03}};return{'ok':!![],'data':{'total':_0x4b4b03[_0xaf846c(0x1d2)],'items':_0x4b4b03[_0xaf846c(0x1d4)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x43d9fe(0x1df),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a33_0x43d9fe(0x1c9),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x3a729a){const _0x926d0d=a33_0x43d9fe,_0x8c5329=await getPersonalKnowledgeBaseItem(_0x3a729a[_0x926d0d(0x1e0)]('id'),_0x3a729a[_0x926d0d(0x1d1)]);return{'ok':!![],'data':detailPersonalItem(_0x8c5329)};}},kbCreate={'service':'kb','command':a33_0x43d9fe(0x1ba),'description':a33_0x43d9fe(0x1ce),'risk':a33_0x43d9fe(0x1d3),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x5b448a){const _0xacd117=a33_0x43d9fe,_0x4a85c2=_0x5b448a[_0xacd117(0x1aa)](_0xacd117(0x1c0)),_0x2c3e0f=readKnowledgeFile(_0x5b448a['str'](_0xacd117(0x1ae))),_0x102c22=await createPersonalKnowledgeBaseItem(_0x5b448a[_0xacd117(0x1d1)],{'title':_0x4a85c2,'content':_0x2c3e0f});return{'ok':!![],'data':summarizePersonalItem(_0x102c22),'message':'Created\x20KB\x20entry\x20'+_0x102c22['id']+'\x20('+_0x102c22[_0xacd117(0x1c0)]+')'};},async 'dryRun'(_0xd62b06){const _0x430822=a33_0x43d9fe,_0x3afd00=_0xd62b06[_0x430822(0x1aa)](_0x430822(0x1c0)),_0x25368f=readKnowledgeFile(_0xd62b06[_0x430822(0x1aa)](_0x430822(0x1ae)));return dryRun('POST',_0x430822(0x1a9))['body']({'appCode':_0xd62b06[_0x430822(0x1d1)],'title':_0x3afd00,'content':_0x25368f})[_0x430822(0x1cf)](_0x430822(0x1ac)+_0x3afd00+'\x22')[_0x430822(0x1bb)]();}},kbUpdate={'service':'kb','command':a33_0x43d9fe(0x1d8),'description':a33_0x43d9fe(0x1cd),'risk':a33_0x43d9fe(0x1d3),'confirmationDescription':a33_0x43d9fe(0x1c6),'flags':[{...ID_FLAG,'description':a33_0x43d9fe(0x1b8)},{...TITLE_FLAG,'required':![],'description':a33_0x43d9fe(0x1a7)},FILE_FLAG],async 'execute'(_0x462f27){const _0x3df316=a33_0x43d9fe,_0xaa88a4=_0x462f27[_0x3df316(0x1e0)]('id'),_0x21def0=readKnowledgeFile(_0x462f27['str'](_0x3df316(0x1ae))),_0x3e4a17=_0x462f27[_0x3df316(0x1aa)](_0x3df316(0x1c0))||(await getPersonalKnowledgeBaseItem(_0xaa88a4,_0x462f27[_0x3df316(0x1d1)]))['title'],_0x3c7747=await updatePersonalKnowledgeBaseItem(_0xaa88a4,_0x462f27[_0x3df316(0x1d1)],{'title':_0x3e4a17,'content':_0x21def0});return{'ok':!![],'data':summarizePersonalItem(_0x3c7747),'message':'Updated\x20KB\x20entry\x20'+_0x3c7747['id']+'\x20('+_0x3c7747[_0x3df316(0x1c0)]+')'};},async 'dryRun'(_0x3ed1ea){const _0x431905=a33_0x43d9fe,_0x163cb4=_0x3ed1ea[_0x431905(0x1e0)]('id'),_0x4ae1a9=readKnowledgeFile(_0x3ed1ea[_0x431905(0x1aa)](_0x431905(0x1ae))),_0x5088d8=_0x3ed1ea[_0x431905(0x1aa)](_0x431905(0x1c0))||(await getPersonalKnowledgeBaseItem(_0x163cb4,_0x3ed1ea[_0x431905(0x1d1)]))[_0x431905(0x1c0)];return dryRun(_0x431905(0x1b5),'/client/knowledge-base/personal/'+_0x163cb4+_0x431905(0x1ad))[_0x431905(0x1ca)]({'appCode':_0x3ed1ea[_0x431905(0x1d1)],'title':_0x5088d8,'content':_0x4ae1a9})[_0x431905(0x1cf)](_0x431905(0x1d0)+_0x163cb4)['build']();}},kbSearch={'service':'kb','command':a33_0x43d9fe(0x1cb),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':a33_0x43d9fe(0x1c9),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x174c7a){const _0x124770=a33_0x43d9fe;if(!_0x174c7a[_0x124770(0x1aa)](_0x124770(0x1e1))[_0x124770(0x1c5)]())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x174c7a);},async 'execute'(_0x5a87d8){const _0xa4aa68=a33_0x43d9fe,_0x2ec481=_0x5a87d8[_0xa4aa68(0x1aa)](_0xa4aa68(0x1e1))['trim'](),_0x54f459=readTopK(_0x5a87d8),_0x3bcce6=await searchRuntimeKnowledge({'appCode':_0x5a87d8[_0xa4aa68(0x1d1)],'accessKey':_0x5a87d8[_0xa4aa68(0x1b1)]??'','query':_0x2ec481,..._0x54f459!==undefined?{'topK':_0x54f459}:{},'signal':_0x5a87d8[_0xa4aa68(0x1ab)]});return{'ok':!![],'data':_0x3bcce6};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a34_0x44154e=a34_0x352d;(function(_0x320fa6,_0x39ae6e){const _0x5a1d14=a34_0x352d,_0x39d82e=_0x320fa6();while(!![]){try{const _0x372bcd=-parseInt(_0x5a1d14(0x112))/0x1*(-parseInt(_0x5a1d14(0x115))/0x2)+parseInt(_0x5a1d14(0xfc))/0x3*(-parseInt(_0x5a1d14(0x106))/0x4)+parseInt(_0x5a1d14(0x114))/0x5+parseInt(_0x5a1d14(0x101))/0x6+-parseInt(_0x5a1d14(0xfa))/0x7+parseInt(_0x5a1d14(0x10a))/0x8+parseInt(_0x5a1d14(0x10c))/0x9*(-parseInt(_0x5a1d14(0x110))/0xa);if(_0x372bcd===_0x39ae6e)break;else _0x39d82e['push'](_0x39d82e['shift']());}catch(_0x1e5485){_0x39d82e['push'](_0x39d82e['shift']());}}}(a34_0x236c,0x8cf7b));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a34_0x352d(_0x3d0dd7,_0x5ac855){_0x3d0dd7=_0x3d0dd7-0xfa;const _0x236c84=a34_0x236c();let _0x352d40=_0x236c84[_0x3d0dd7];return _0x352d40;}function a34_0x236c(){const _0x4925e0=['command','5167512ReqQoo','View\x20command\x20history\x20logs','3fNfBeX','length','*\x20No\x20logs\x20found','timestamp','read','5371584FWOIwM','message','readLogs','warn','toLocaleString','290384QoTSLC','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','log','2146760IRWRiX','level','189351uDEMYe','\x20\x20\x20Time:\x20','error','show','830IzUqnh','details','59wfZuaA','duration','5265195ciJfLG','31112sddzgi','\x20logs:\x0a'];a34_0x236c=function(){return _0x4925e0;};return a34_0x236c();}function printLogs(_0x2ec5c5){const _0x11efeb=a34_0x352d;if(_0x2ec5c5[_0x11efeb(0xfd)]===0x0){console['log'](_0x11efeb(0xfe));return;}console[_0x11efeb(0x109)]('*\x20'+CLI_DISPLAY_NAME+_0x11efeb(0x116)),_0x2ec5c5['forEach']((_0x638299,_0x411d07)=>{const _0x2f9f77=_0x11efeb,_0x385b54=new Date(_0x638299[_0x2f9f77(0xff)])[_0x2f9f77(0x105)]('en-US'),_0x32f981=_0x638299[_0x2f9f77(0x10b)]==='success'?'√':_0x638299[_0x2f9f77(0x10b)]===_0x2f9f77(0x10e)?'×':_0x638299[_0x2f9f77(0x10b)]===_0x2f9f77(0x104)?'!':'i';console[_0x2f9f77(0x109)](_0x411d07+0x1+'.\x20'+_0x32f981+'\x20['+_0x638299[_0x2f9f77(0x117)]+']\x20'+_0x638299[_0x2f9f77(0x102)]),console[_0x2f9f77(0x109)](_0x2f9f77(0x10d)+_0x385b54),_0x638299['duration']&&console['log'](_0x2f9f77(0x108)+_0x638299[_0x2f9f77(0x113)]+'ms'),_0x638299[_0x2f9f77(0x111)]&&Object['keys'](_0x638299['details'])['length']>0x0&&console[_0x2f9f77(0x109)](_0x2f9f77(0x107)+JSON['stringify'](_0x638299['details'],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':'logs','command':a34_0x44154e(0x10f),'description':a34_0x44154e(0xfb),'risk':a34_0x44154e(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x33fd8d){const _0x183bbd=a34_0x44154e;return printLogs(logger[_0x183bbd(0x103)]()),{'ok':!![]};}}];
1
+ function a34_0x5d24(_0x28ea8c,_0x559a94){_0x28ea8c=_0x28ea8c-0x1d5;const _0x3c286a=a34_0x3c28();let _0x5d2457=_0x3c286a[_0x28ea8c];return _0x5d2457;}const a34_0x5d1c78=a34_0x5d24;(function(_0x287f3f,_0x2abae0){const _0x4ac47e=a34_0x5d24,_0x4d06ee=_0x287f3f();while(!![]){try{const _0x3d680e=parseInt(_0x4ac47e(0x1eb))/0x1*(parseInt(_0x4ac47e(0x1ed))/0x2)+-parseInt(_0x4ac47e(0x1d5))/0x3*(-parseInt(_0x4ac47e(0x1d6))/0x4)+parseInt(_0x4ac47e(0x1d8))/0x5+parseInt(_0x4ac47e(0x1f2))/0x6+-parseInt(_0x4ac47e(0x1ec))/0x7+parseInt(_0x4ac47e(0x1e3))/0x8*(-parseInt(_0x4ac47e(0x1ef))/0x9)+parseInt(_0x4ac47e(0x1f4))/0xa*(-parseInt(_0x4ac47e(0x1de))/0xb);if(_0x3d680e===_0x2abae0)break;else _0x4d06ee['push'](_0x4d06ee['shift']());}catch(_0x357b7f){_0x4d06ee['push'](_0x4d06ee['shift']());}}}(a34_0x3c28,0x48c75));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a34_0x3c28(){const _0x539d5b=['error','duration','level','command','timestamp','1067kJtDiQ','details','message','en-US','log','8mIzmLi','\x20logs:\x0a','View\x20command\x20history\x20logs','length','stringify','logs','readLogs','show','1SehnWa','3207638AVacPj','478690aBEBub','toLocaleString','1475487kkvZtH','\x20\x20\x20Details:\x20','forEach','2854692lfiIda','*\x20No\x20logs\x20found','55030WBuZli','6AMgyXO','1103092clGjAR','read','936980eCKFHR'];a34_0x3c28=function(){return _0x539d5b;};return a34_0x3c28();}function printLogs(_0x194a4d){const _0x58158e=a34_0x5d24;if(_0x194a4d[_0x58158e(0x1e6)]===0x0){console[_0x58158e(0x1e2)](_0x58158e(0x1f3));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x58158e(0x1e4)),_0x194a4d[_0x58158e(0x1f1)]((_0x56069a,_0xc7ae07)=>{const _0xfe4f6a=_0x58158e,_0x27cbcc=new Date(_0x56069a[_0xfe4f6a(0x1dd)])[_0xfe4f6a(0x1ee)](_0xfe4f6a(0x1e1)),_0x2107fa=_0x56069a[_0xfe4f6a(0x1db)]==='success'?'√':_0x56069a[_0xfe4f6a(0x1db)]===_0xfe4f6a(0x1d9)?'×':_0x56069a[_0xfe4f6a(0x1db)]==='warn'?'!':'i';console['log'](_0xc7ae07+0x1+'.\x20'+_0x2107fa+'\x20['+_0x56069a[_0xfe4f6a(0x1dc)]+']\x20'+_0x56069a[_0xfe4f6a(0x1e0)]),console[_0xfe4f6a(0x1e2)]('\x20\x20\x20Time:\x20'+_0x27cbcc),_0x56069a['duration']&&console['log']('\x20\x20\x20Duration:\x20'+_0x56069a[_0xfe4f6a(0x1da)]+'ms'),_0x56069a[_0xfe4f6a(0x1df)]&&Object['keys'](_0x56069a['details'])['length']>0x0&&console['log'](_0xfe4f6a(0x1f0)+JSON[_0xfe4f6a(0x1e7)](_0x56069a[_0xfe4f6a(0x1df)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a34_0x5d1c78(0x1e8),'command':a34_0x5d1c78(0x1ea),'description':a34_0x5d1c78(0x1e5),'risk':a34_0x5d1c78(0x1d7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5be5f4){const _0x4c4c84=a34_0x5d1c78;return printLogs(logger[_0x4c4c84(0x1e9)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a35_0x5d39f3=a35_0x3d02;(function(_0xea62fa,_0x2351f2){const _0x19709b=a35_0x3d02,_0x312ca4=_0xea62fa();while(!![]){try{const _0x31f016=parseInt(_0x19709b(0x200))/0x1+parseInt(_0x19709b(0x1f2))/0x2*(parseInt(_0x19709b(0x1ff))/0x3)+parseInt(_0x19709b(0x1f3))/0x4+-parseInt(_0x19709b(0x1f7))/0x5+-parseInt(_0x19709b(0x1fa))/0x6*(parseInt(_0x19709b(0x1f9))/0x7)+-parseInt(_0x19709b(0x1f5))/0x8+parseInt(_0x19709b(0x1fd))/0x9;if(_0x31f016===_0x2351f2)break;else _0x312ca4['push'](_0x312ca4['shift']());}catch(_0x205f0a){_0x312ca4['push'](_0x312ca4['shift']());}}}(a35_0x1d2e,0x5dfdc));function a35_0x1d2e(){const _0x37ee1e=['Found\x20','length','973406dvPePF','1801032RcizLb','\x20notification\x20config(s)','4187712ydnVhG','appCode','2609745orEHtx','type','1141Tfefhu','11886JpUZbI','read','string','420066nXIiWp','map','3lWiXon','769669qdViqT','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values'];a35_0x1d2e=function(){return _0x37ee1e;};return a35_0x1d2e();}function a35_0x3d02(_0xa63d4,_0x5bf148){_0xa63d4=_0xa63d4-0x1f1;const _0x1d2eb8=a35_0x1d2e();let _0x3d0285=_0x1d2eb8[_0xa63d4];return _0x3d0285;}import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':'config-list','description':a35_0x5d39f3(0x201),'risk':a35_0x5d39f3(0x1fb),'flags':[{'name':a35_0x5d39f3(0x1f8),'type':a35_0x5d39f3(0x1fc),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x2e2f5c){readNotificationChannelType(_0x2e2f5c);},async 'execute'(_0x21b42f){const _0x345a1c=a35_0x5d39f3,_0x14efed=readNotificationChannelType(_0x21b42f),_0x448696=await listNotificationChannelConfigs(_0x21b42f['appCode'],_0x14efed),_0x2c9c68=_0x448696[_0x345a1c(0x1fe)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x21b42f[_0x345a1c(0x1f6)],'channelType':_0x14efed,'count':_0x2c9c68['length'],'configs':_0x2c9c68},'message':_0x345a1c(0x202)+_0x2c9c68[_0x345a1c(0x1f1)]+'\x20'+_0x14efed+_0x345a1c(0x1f4)};}};
1
+ function a35_0x15fb(_0x2d7611,_0x58bd0b){_0x2d7611=_0x2d7611-0x99;const _0x59bc07=a35_0x59bc();let _0x15fb18=_0x59bc07[_0x2d7611];return _0x15fb18;}const a35_0x3a803c=a35_0x15fb;(function(_0x436b81,_0x7e5ae9){const _0x1323ed=a35_0x15fb,_0x94fbc0=_0x436b81();while(!![]){try{const _0x289eea=-parseInt(_0x1323ed(0xa4))/0x1+parseInt(_0x1323ed(0xad))/0x2*(parseInt(_0x1323ed(0xa6))/0x3)+-parseInt(_0x1323ed(0xac))/0x4+parseInt(_0x1323ed(0x9a))/0x5*(parseInt(_0x1323ed(0x9c))/0x6)+-parseInt(_0x1323ed(0x9d))/0x7+parseInt(_0x1323ed(0xa3))/0x8*(parseInt(_0x1323ed(0x99))/0x9)+-parseInt(_0x1323ed(0xa0))/0xa*(-parseInt(_0x1323ed(0xa8))/0xb);if(_0x289eea===_0x7e5ae9)break;else _0x94fbc0['push'](_0x94fbc0['shift']());}catch(_0x598872){_0x94fbc0['push'](_0x94fbc0['shift']());}}}(a35_0x59bc,0x518fc));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a35_0x59bc(){const _0x1a574d=['305336PkZHyp','config-list','21DuNFlB','Notification\x20channel\x20type','1937848WPUnwa','notification','appCode','string','2195392InZTbZ','156758CLJIdf','\x20notification\x20config(s)','54ODfhMr','307780RDAdje','EMAIL','36WttBqw','2444883EtkJUG','read','type','20WmWvGJ','length','Found\x20','356272RSMsOA'];a35_0x59bc=function(){return _0x1a574d;};return a35_0x59bc();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a35_0x3a803c(0xa9),'command':a35_0x3a803c(0xa5),'description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':a35_0x3a803c(0x9e),'flags':[{'name':a35_0x3a803c(0x9f),'type':a35_0x3a803c(0xab),'description':a35_0x3a803c(0xa7),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a35_0x3a803c(0x9b)}],async 'validate'(_0x24cd6d){readNotificationChannelType(_0x24cd6d);},async 'execute'(_0x12e48d){const _0x4835de=a35_0x3a803c,_0x81e299=readNotificationChannelType(_0x12e48d),_0x45c9d7=await listNotificationChannelConfigs(_0x12e48d[_0x4835de(0xaa)],_0x81e299),_0x5700f3=_0x45c9d7['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x12e48d[_0x4835de(0xaa)],'channelType':_0x81e299,'count':_0x5700f3['length'],'configs':_0x5700f3},'message':_0x4835de(0xa2)+_0x5700f3[_0x4835de(0xa1)]+'\x20'+_0x81e299+_0x4835de(0xae)};}};
@@ -1 +1 @@
1
- function a36_0x5aa1(_0x167922,_0x46d134){_0x167922=_0x167922-0x1ba;const _0x578358=a36_0x5783();let _0x5aa1f1=_0x578358[_0x167922];return _0x5aa1f1;}function a36_0x5783(){const _0x521510=['340443gKDzdW','225532MJnhVN','3696875RyzlQN','3RlAqDs','6uCDmkq','6471474qZjEMg','6886580zbYiHH','925173uJzswT','32HgqdeA','2284779gruZrw'];a36_0x5783=function(){return _0x521510;};return a36_0x5783();}(function(_0x3ad2d4,_0x4092ec){const _0xa412df=a36_0x5aa1,_0x17d45e=_0x3ad2d4();while(!![]){try{const _0x31d6e8=parseInt(_0xa412df(0x1c1))/0x1*(-parseInt(_0xa412df(0x1bb))/0x2)+parseInt(_0xa412df(0x1ba))/0x3*(-parseInt(_0xa412df(0x1c2))/0x4)+parseInt(_0xa412df(0x1c3))/0x5+parseInt(_0xa412df(0x1bc))/0x6+-parseInt(_0xa412df(0x1c0))/0x7+parseInt(_0xa412df(0x1bf))/0x8*(-parseInt(_0xa412df(0x1be))/0x9)+parseInt(_0xa412df(0x1bd))/0xa;if(_0x31d6e8===_0x4092ec)break;else _0x17d45e['push'](_0x17d45e['shift']());}catch(_0x7eecf2){_0x17d45e['push'](_0x17d45e['shift']());}}}(a36_0x5783,0xa8c73));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x564345,_0x4e5da6){const _0x1630f9=a36_0x157d,_0x3ad4f2=_0x564345();while(!![]){try{const _0x5e15c6=parseInt(_0x1630f9(0x15b))/0x1+-parseInt(_0x1630f9(0x15e))/0x2+parseInt(_0x1630f9(0x158))/0x3*(-parseInt(_0x1630f9(0x15d))/0x4)+-parseInt(_0x1630f9(0x159))/0x5*(parseInt(_0x1630f9(0x15a))/0x6)+-parseInt(_0x1630f9(0x156))/0x7+-parseInt(_0x1630f9(0x15c))/0x8*(parseInt(_0x1630f9(0x160))/0x9)+-parseInt(_0x1630f9(0x157))/0xa*(-parseInt(_0x1630f9(0x15f))/0xb);if(_0x5e15c6===_0x4e5da6)break;else _0x3ad4f2['push'](_0x3ad4f2['shift']());}catch(_0x4ec4cb){_0x3ad4f2['push'](_0x3ad4f2['shift']());}}}(a36_0x17d5,0x7e614));function a36_0x17d5(){const _0x2c5e0b=['9aUChmX','3069283OJMDaV','1010ipadDi','64257PDKPwE','12285oIKgcM','822gPBdfY','247859IkLsYq','3554456yjUBUo','40gVhYfb','1428336zckcol','263296eLkxjG'];a36_0x17d5=function(){return _0x2c5e0b;};return a36_0x17d5();}function a36_0x157d(_0x45a3af,_0x40a023){_0x45a3af=_0x45a3af-0x156;const _0x17d5c7=a36_0x17d5();let _0x157d16=_0x17d5c7[_0x45a3af];return _0x157d16;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- const a37_0x1154f5=a37_0x5e8f;(function(_0x4fff52,_0x2e8677){const _0x234038=a37_0x5e8f,_0x492abe=_0x4fff52();while(!![]){try{const _0x26e971=parseInt(_0x234038(0x211))/0x1+-parseInt(_0x234038(0x204))/0x2+-parseInt(_0x234038(0x206))/0x3*(parseInt(_0x234038(0x1fb))/0x4)+-parseInt(_0x234038(0x200))/0x5+-parseInt(_0x234038(0x1fe))/0x6*(parseInt(_0x234038(0x1fc))/0x7)+parseInt(_0x234038(0x20f))/0x8+-parseInt(_0x234038(0x1f4))/0x9*(-parseInt(_0x234038(0x201))/0xa);if(_0x26e971===_0x2e8677)break;else _0x492abe['push'](_0x492abe['shift']());}catch(_0x17def5){_0x492abe['push'](_0x492abe['shift']());}}}(a37_0xebad,0x9ae9d));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a37_0x1154f5(0x208),a37_0x1154f5(0x20b),a37_0x1154f5(0x203),a37_0x1154f5(0x1f3)];export function readNotificationChannelType(_0x2c00e7){const _0xbe9184=a37_0x1154f5,_0x75cddd=_0x2c00e7[_0xbe9184(0x20c)](_0xbe9184(0x1f5))[_0xbe9184(0x1fd)]()||_0xbe9184(0x20d);if(!NOTIFICATION_CHANNEL_TYPES[_0xbe9184(0x1f8)](_0x75cddd))throw CliErrors['validation'](_0xbe9184(0x210)+_0x75cddd,_0xbe9184(0x1f7)+NOTIFICATION_CHANNEL_TYPES[_0xbe9184(0x202)](',\x20')+'.');return _0x75cddd;}function a37_0xebad(){const _0x44c8c9=['WECOM','166162dDXxbk','configName','6FcimvH','channelType','FEISHU','updateTime','createTime','DINGTALK','str','EMAIL','apiError','4074992DTqptU','Invalid\x20--type:\x20','889470FsyAFB','isSafeInteger','Invalid\x20notification\x20config\x20response.','isArray','object','configCode','WEBHOOK','644787MSNgRJ','type','\x20must\x20be\x20an\x20object.','Allowed\x20values:\x20','includes','test','Item\x20','71320LKwzYr','49VRjhOO','trim','886638GAukTw','string','4503705KSkWfs','180YPXHDc','join'];a37_0xebad=function(){return _0x44c8c9;};return a37_0xebad();}export function projectNotificationListConfig(_0xf3099d,_0xde92f3){const _0x2c0035=a37_0x1154f5,_0x314ccc=requireResponseObject(_0xf3099d,_0xde92f3);return{'id':normalizeNullableId(_0x314ccc['id'],_0xde92f3),'configCode':requireResponseString(_0x314ccc[_0x2c0035(0x216)],_0x2c0035(0x216),_0xde92f3),'configName':requireResponseString(_0x314ccc['configName'],_0x2c0035(0x205),_0xde92f3),'channelType':requireResponseString(_0x314ccc[_0x2c0035(0x207)],'channelType',_0xde92f3),'description':normalizeNullableString(_0x314ccc['description']),'createTime':normalizeNullableString(_0x314ccc[_0x2c0035(0x20a)]),'updateTime':normalizeNullableString(_0x314ccc[_0x2c0035(0x209)])};}function requireResponseObject(_0x364550,_0xfb7f05){const _0x22d7fc=a37_0x1154f5;if(typeof _0x364550!==_0x22d7fc(0x215)||_0x364550===null||Array[_0x22d7fc(0x214)](_0x364550))throw CliErrors[_0x22d7fc(0x20e)](_0x22d7fc(0x213),_0x22d7fc(0x1fa)+(_0xfb7f05+0x1)+_0x22d7fc(0x1f6));return _0x364550;}function a37_0x5e8f(_0x2939a1,_0x3a7492){_0x2939a1=_0x2939a1-0x1f3;const _0xebad95=a37_0xebad();let _0x5e8fdf=_0xebad95[_0x2939a1];return _0x5e8fdf;}function requireResponseString(_0x2b311f,_0x5acf47,_0x4380a6){const _0x52469c=a37_0x1154f5;if(typeof _0x2b311f!==_0x52469c(0x1ff)||!_0x2b311f['trim']())throw CliErrors[_0x52469c(0x20e)](_0x52469c(0x213),_0x52469c(0x1fa)+(_0x4380a6+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x5acf47+'\x22.');return _0x2b311f['trim']();}function normalizeNullableString(_0x5da082){return typeof _0x5da082==='string'&&_0x5da082['trim']()?_0x5da082['trim']():null;}function normalizeNullableId(_0x28f07e,_0x3210cc){const _0x386515=a37_0x1154f5;if(_0x28f07e===undefined||_0x28f07e===null)return null;if(typeof _0x28f07e==='number'&&Number[_0x386515(0x212)](_0x28f07e))return _0x28f07e;if(typeof _0x28f07e===_0x386515(0x1ff)&&/^-?\d+$/[_0x386515(0x1f9)](_0x28f07e[_0x386515(0x1fd)]()))return _0x28f07e[_0x386515(0x1fd)]();throw CliErrors[_0x386515(0x20e)](_0x386515(0x213),_0x386515(0x1fa)+(_0x3210cc+0x1)+'\x20has\x20invalid\x20field\x20\x22id\x22.');}
1
+ const a37_0x411c1a=a37_0x4e65;(function(_0x33d090,_0x28d4f4){const _0x43e914=a37_0x4e65,_0x1a1627=_0x33d090();while(!![]){try{const _0x21d5d5=-parseInt(_0x43e914(0x17c))/0x1+parseInt(_0x43e914(0x16c))/0x2+-parseInt(_0x43e914(0x17f))/0x3+-parseInt(_0x43e914(0x181))/0x4*(parseInt(_0x43e914(0x179))/0x5)+parseInt(_0x43e914(0x174))/0x6+parseInt(_0x43e914(0x168))/0x7+parseInt(_0x43e914(0x16e))/0x8;if(_0x21d5d5===_0x28d4f4)break;else _0x1a1627['push'](_0x1a1627['shift']());}catch(_0x3f5b19){_0x1a1627['push'](_0x1a1627['shift']());}}}(a37_0x219e,0xe4231));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a37_0x411c1a(0x184),a37_0x411c1a(0x180),'WECOM',a37_0x411c1a(0x172)];export function readNotificationChannelType(_0x4db7b9){const _0x1f0d1d=a37_0x411c1a,_0x301562=_0x4db7b9[_0x1f0d1d(0x182)](_0x1f0d1d(0x167))[_0x1f0d1d(0x176)]()||_0x1f0d1d(0x17d);if(!NOTIFICATION_CHANNEL_TYPES[_0x1f0d1d(0x170)](_0x301562))throw CliErrors[_0x1f0d1d(0x173)](_0x1f0d1d(0x183)+_0x301562,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x1f0d1d(0x165)](',\x20')+'.');return _0x301562;}export function projectNotificationListConfig(_0x1ebba1,_0x4047fa){const _0x275990=a37_0x411c1a,_0x14880a=requireResponseObject(_0x1ebba1,_0x4047fa);return{'id':normalizeNullableId(_0x14880a['id'],_0x4047fa),'configCode':requireResponseString(_0x14880a[_0x275990(0x164)],_0x275990(0x164),_0x4047fa),'configName':requireResponseString(_0x14880a[_0x275990(0x171)],_0x275990(0x171),_0x4047fa),'channelType':requireResponseString(_0x14880a['channelType'],'channelType',_0x4047fa),'description':normalizeNullableString(_0x14880a[_0x275990(0x16d)]),'createTime':normalizeNullableString(_0x14880a['createTime']),'updateTime':normalizeNullableString(_0x14880a['updateTime'])};}function a37_0x219e(){const _0xe5e044=['join','isArray','type','2527665eUbSDr','\x20has\x20invalid\x20field\x20\x22id\x22.','Item\x20','isSafeInteger','1067502qiyxKK','description','16533688Kvabay','Invalid\x20notification\x20config\x20response.','includes','configName','WEBHOOK','validation','904152Wzwnkf','test','trim','apiError','object','875kLnFAw','\x20must\x20be\x20an\x20object.','string','1589383RPKvZk','EMAIL','\x20is\x20missing\x20required\x20field\x20\x22','108876JMrsuR','DINGTALK','12620dYVErI','str','Invalid\x20--type:\x20','FEISHU','configCode'];a37_0x219e=function(){return _0xe5e044;};return a37_0x219e();}function a37_0x4e65(_0x3bb30c,_0x139905){_0x3bb30c=_0x3bb30c-0x164;const _0x219e7f=a37_0x219e();let _0x4e65dd=_0x219e7f[_0x3bb30c];return _0x4e65dd;}function requireResponseObject(_0x351fe6,_0x982baa){const _0x2a14eb=a37_0x411c1a;if(typeof _0x351fe6!==_0x2a14eb(0x178)||_0x351fe6===null||Array[_0x2a14eb(0x166)](_0x351fe6))throw CliErrors[_0x2a14eb(0x177)](_0x2a14eb(0x16f),'Item\x20'+(_0x982baa+0x1)+_0x2a14eb(0x17a));return _0x351fe6;}function requireResponseString(_0x354f7d,_0x4c6eb9,_0x3ba55a){const _0x21a0b7=a37_0x411c1a;if(typeof _0x354f7d!==_0x21a0b7(0x17b)||!_0x354f7d['trim']())throw CliErrors[_0x21a0b7(0x177)](_0x21a0b7(0x16f),_0x21a0b7(0x16a)+(_0x3ba55a+0x1)+_0x21a0b7(0x17e)+_0x4c6eb9+'\x22.');return _0x354f7d[_0x21a0b7(0x176)]();}function normalizeNullableString(_0x58a7ad){const _0x2469f8=a37_0x411c1a;return typeof _0x58a7ad===_0x2469f8(0x17b)&&_0x58a7ad[_0x2469f8(0x176)]()?_0x58a7ad[_0x2469f8(0x176)]():null;}function normalizeNullableId(_0x480611,_0x423736){const _0x5f0a6b=a37_0x411c1a;if(_0x480611===undefined||_0x480611===null)return null;if(typeof _0x480611==='number'&&Number[_0x5f0a6b(0x16b)](_0x480611))return _0x480611;if(typeof _0x480611===_0x5f0a6b(0x17b)&&/^-?\d+$/[_0x5f0a6b(0x175)](_0x480611[_0x5f0a6b(0x176)]()))return _0x480611[_0x5f0a6b(0x176)]();throw CliErrors['apiError']('Invalid\x20notification\x20config\x20response.',_0x5f0a6b(0x16a)+(_0x423736+0x1)+_0x5f0a6b(0x169));}
@@ -1 +1 @@
1
- const a38_0x4f32d7=a38_0x17e0;(function(_0x1701d0,_0x244fe1){const _0x5b1fdf=a38_0x17e0,_0x51db61=_0x1701d0();while(!![]){try{const _0xed1171=-parseInt(_0x5b1fdf(0x169))/0x1+-parseInt(_0x5b1fdf(0x191))/0x2*(parseInt(_0x5b1fdf(0x171))/0x3)+-parseInt(_0x5b1fdf(0x15f))/0x4*(-parseInt(_0x5b1fdf(0x18f))/0x5)+parseInt(_0x5b1fdf(0x17d))/0x6*(parseInt(_0x5b1fdf(0x177))/0x7)+-parseInt(_0x5b1fdf(0x176))/0x8+parseInt(_0x5b1fdf(0x18b))/0x9*(-parseInt(_0x5b1fdf(0x160))/0xa)+parseInt(_0x5b1fdf(0x182))/0xb;if(_0xed1171===_0x244fe1)break;else _0x51db61['push'](_0x51db61['shift']());}catch(_0x3f31de){_0x51db61['push'](_0x51db61['shift']());}}}(a38_0x5adc,0x6f7ea));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=['invoice',a38_0x4f32d7(0x181),a38_0x4f32d7(0x184),a38_0x4f32d7(0x15e)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x4f32d7(0x16d),'general':a38_0x4f32d7(0x190),'form':a38_0x4f32d7(0x17a),'idCard':'IdCard'},SCENE_FLAG={'name':a38_0x4f32d7(0x18c),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a38_0x4f32d7(0x16c),'type':a38_0x4f32d7(0x183),'description':a38_0x4f32d7(0x17f)},IMAGE_URL_FLAG={'name':a38_0x4f32d7(0x168),'type':a38_0x4f32d7(0x183),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x4f41a2){const _0x45181d=a38_0x4f32d7,_0x583a0a=_0x4f41a2[_0x45181d(0x18a)]()[_0x45181d(0x163)]();if(_0x583a0a===_0x45181d(0x162))return _0x45181d(0x15e);if(_0x583a0a===_0x45181d(0x185)||_0x583a0a===_0x45181d(0x181)||_0x583a0a===_0x45181d(0x184))return _0x583a0a;throw CliErrors[_0x45181d(0x164)]('Unsupported\x20OCR\x20scene:\x20'+_0x4f41a2+_0x45181d(0x172)+SUPPORTED_SCENES[_0x45181d(0x186)](',\x20'));}function selectedInputs(_0x2ac0e4){const _0x12fd82=a38_0x4f32d7,_0x33add2=_0x2ac0e4[_0x12fd82(0x15c)](_0x12fd82(0x16c))[_0x12fd82(0x18a)](),_0x36a997=_0x2ac0e4[_0x12fd82(0x15c)](_0x12fd82(0x168))[_0x12fd82(0x18a)]();return{'imageFile':_0x33add2,'imageUrl':_0x36a997,'count':[_0x33add2,_0x36a997][_0x12fd82(0x173)](Boolean)['length']};}function a38_0x5adc(){const _0x289ed6=['General','536288vIxaOW','Preview:\x20recognize\x20','str','body','idCard','8JtvlFE','603940nvjart','imageFile','idcard','toLowerCase','validation','build','description','\x20OCR\x20from\x20URL','image-url','886004NebTkL','/client/ocr','/client/uploadFile','image-file','Invoice','count','\x20OCR','read','3upEPpU','.\x20Supported\x20scenes:\x20','filter','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','4186408nTurwY','3224711coUzzP','imageUrl','recognize','Table','apiError','<filePath\x20returned\x20by\x20/client/uploadFile>','6QXNtTN','ocr','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','File\x20upload\x20response\x20missing\x20filePath.','general','13172456llEdKT','string','form','invoice','join','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','appCode','filePath','trim','9JnApjG','scene','POST','path','1340890dvWqFR'];a38_0x5adc=function(){return _0x289ed6;};return a38_0x5adc();}function validateInputSelection(_0x3c3064){const _0x269dc4=a38_0x4f32d7,_0x309377=selectedInputs(_0x3c3064);if(_0x309377[_0x269dc4(0x16e)]!==0x1)throw CliErrors['validation']('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x309377;}function withScene(_0x26bf0d,_0xc1fdfc,_0x2b49d3){const _0x2631f4=a38_0x4f32d7;return{..._0x26bf0d,'scene':_0xc1fdfc,..._0x2b49d3?{'sourceFile':{'fileName':_0x2b49d3['fileName'],'filePath':_0x2b49d3[_0x2631f4(0x189)]}}:{}};}function a38_0x17e0(_0x266fe6,_0x99fdce){_0x266fe6=_0x266fe6-0x15b;const _0x5adc76=a38_0x5adc();let _0x17e03c=_0x5adc76[_0x266fe6];return _0x17e03c;}const ocrRecognize={'service':a38_0x4f32d7(0x17e),'command':a38_0x4f32d7(0x179),'description':a38_0x4f32d7(0x175),'risk':a38_0x4f32d7(0x170),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x4ca2e9){const _0x1d7227=a38_0x4f32d7,_0x2bf4e1=normalizeScene(_0x4ca2e9[_0x1d7227(0x15c)](_0x1d7227(0x18c))),_0x452498=SCENE_TO_LEGACY_TYPE[_0x2bf4e1],_0x214288=validateInputSelection(_0x4ca2e9);if(_0x214288['imageUrl'])return dryRun(_0x1d7227(0x18d),_0x1d7227(0x16a))[_0x1d7227(0x15d)]({'appCode':_0x4ca2e9[_0x1d7227(0x188)],'url':_0x214288['imageUrl'],'type':_0x452498})[_0x1d7227(0x166)](_0x1d7227(0x15b)+_0x2bf4e1+_0x1d7227(0x167))[_0x1d7227(0x165)]();const _0x2c9e7b=requireRuntimeUploadFile(_0x214288['imageFile'],'image-file');return dryRun(_0x1d7227(0x18d),_0x1d7227(0x16b))[_0x1d7227(0x15d)]({'steps':[{'method':'POST','url':_0x1d7227(0x16b),'body':{'appCode':_0x4ca2e9['appCode'],'multipart':{'file':_0x2c9e7b}}},{'method':'POST','url':'/client/queryFileUrl','body':{'filePath':_0x1d7227(0x17c),'downloadFlag':![]}},{'method':'POST','url':_0x1d7227(0x16a),'body':{'appCode':_0x4ca2e9[_0x1d7227(0x188)],'url':_0x1d7227(0x174),'type':_0x452498}}]})[_0x1d7227(0x166)](_0x1d7227(0x187)+_0x2bf4e1+_0x1d7227(0x16f))['build']();},async 'execute'(_0xa16ed9){const _0x17d496=a38_0x4f32d7,_0x3d8b57=normalizeScene(_0xa16ed9[_0x17d496(0x15c)](_0x17d496(0x18c))),_0x2befba=SCENE_TO_LEGACY_TYPE[_0x3d8b57],_0x2f4ab1=validateInputSelection(_0xa16ed9);if(_0x2f4ab1[_0x17d496(0x178)]){const _0x551640=await recognizeRuntimeOcr(_0xa16ed9['appCode'],{'url':_0x2f4ab1[_0x17d496(0x178)],'type':_0x2befba});return{'ok':!![],'data':withScene(_0x551640,_0x3d8b57)};}const _0x2ab2c6=requireRuntimeUploadFile(_0x2f4ab1[_0x17d496(0x161)],_0x17d496(0x16c)),_0x878953=await uploadRuntimeFile(_0xa16ed9[_0x17d496(0x188)],_0x2ab2c6[_0x17d496(0x18e)]);if(!_0x878953[_0x17d496(0x189)])throw CliErrors[_0x17d496(0x17b)](_0x17d496(0x180));const _0x5a53f5=await queryRuntimeFileUrl(_0x878953[_0x17d496(0x189)],{'download':![]});if(!_0x5a53f5['fileUrl'])throw CliErrors[_0x17d496(0x17b)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x5892dc=await recognizeRuntimeOcr(_0xa16ed9[_0x17d496(0x188)],{'url':_0x5a53f5['fileUrl'],'type':_0x2befba});return{'ok':!![],'data':withScene(_0x5892dc,_0x3d8b57,_0x878953)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a38_0x223236=a38_0x3f1c;(function(_0x1d31be,_0x17ec87){const _0x151ac3=a38_0x3f1c,_0x20b984=_0x1d31be();while(!![]){try{const _0x1db3da=parseInt(_0x151ac3(0x167))/0x1+-parseInt(_0x151ac3(0x155))/0x2+-parseInt(_0x151ac3(0x14d))/0x3*(-parseInt(_0x151ac3(0x13f))/0x4)+parseInt(_0x151ac3(0x15c))/0x5+parseInt(_0x151ac3(0x137))/0x6*(parseInt(_0x151ac3(0x13a))/0x7)+-parseInt(_0x151ac3(0x151))/0x8*(-parseInt(_0x151ac3(0x13b))/0x9)+-parseInt(_0x151ac3(0x140))/0xa;if(_0x1db3da===_0x17ec87)break;else _0x20b984['push'](_0x20b984['shift']());}catch(_0x55b0d8){_0x20b984['push'](_0x20b984['shift']());}}}(a38_0x5be7,0xa6e7c));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_0x5be7(){const _0x4acc40=['validation','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','212698ntLdeo','ocr','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','appCode','Unsupported\x20OCR\x20scene:\x20','File\x20upload\x20response\x20missing\x20filePath.','/client/queryFileUrl','<filePath\x20returned\x20by\x20/client/uploadFile>','6oJbicd','trim','count','3085838CCGFNC','369tcZoYx','description','/client/ocr','apiError','860IelCcc','17825860UoqWWt','imageFile','imageUrl','invoice','Preview:\x20recognize\x20','path','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','form','idCard','recognize','scene','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','7683MpLMKd','POST','fileUrl','Publicly\x20accessible\x20image\x20or\x20file\x20URL','70352OSmMrx','/client/uploadFile','filePath','general','165408NckESJ','string','build','length','image-file','General','\x20OCR','4921165ZuDevx','body','str','join','image-url','toLowerCase','\x20OCR\x20from\x20URL','filter','Invoice'];a38_0x5be7=function(){return _0x4acc40;};return a38_0x5be7();}const SUPPORTED_SCENES=[a38_0x223236(0x143),a38_0x223236(0x154),a38_0x223236(0x148),a38_0x223236(0x149)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x223236(0x164),'general':a38_0x223236(0x15a),'form':'Table','idCard':'IdCard'},SCENE_FLAG={'name':a38_0x223236(0x14b),'type':a38_0x223236(0x156),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x223236(0x169)},IMAGE_FILE_FLAG={'name':'image-file','type':a38_0x223236(0x156),'description':a38_0x223236(0x147)},IMAGE_URL_FLAG={'name':a38_0x223236(0x160),'type':a38_0x223236(0x156),'description':a38_0x223236(0x150)};function normalizeScene(_0x48f015){const _0x30d67d=a38_0x223236,_0x4de4eb=_0x48f015[_0x30d67d(0x138)]()[_0x30d67d(0x161)]();if(_0x4de4eb==='idcard')return'idCard';if(_0x4de4eb===_0x30d67d(0x143)||_0x4de4eb==='general'||_0x4de4eb==='form')return _0x4de4eb;throw CliErrors['validation'](_0x30d67d(0x16b)+_0x48f015+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x30d67d(0x15f)](',\x20'));}function selectedInputs(_0x2e6fd4){const _0x58162a=a38_0x223236,_0x1ef35e=_0x2e6fd4[_0x58162a(0x15e)](_0x58162a(0x159))[_0x58162a(0x138)](),_0x4eee7d=_0x2e6fd4[_0x58162a(0x15e)](_0x58162a(0x160))[_0x58162a(0x138)]();return{'imageFile':_0x1ef35e,'imageUrl':_0x4eee7d,'count':[_0x1ef35e,_0x4eee7d][_0x58162a(0x163)](Boolean)[_0x58162a(0x158)]};}function validateInputSelection(_0x1ac9e0){const _0x1d8078=a38_0x223236,_0x3fd87c=selectedInputs(_0x1ac9e0);if(_0x3fd87c[_0x1d8078(0x139)]!==0x1)throw CliErrors[_0x1d8078(0x165)](_0x1d8078(0x146));return _0x3fd87c;}function withScene(_0x7f7ef,_0x598671,_0x10a1e5){const _0xc8358d=a38_0x223236;return{..._0x7f7ef,'scene':_0x598671,..._0x10a1e5?{'sourceFile':{'fileName':_0x10a1e5['fileName'],'filePath':_0x10a1e5[_0xc8358d(0x153)]}}:{}};}function a38_0x3f1c(_0x40d54a,_0x5ea141){_0x40d54a=_0x40d54a-0x135;const _0x5be777=a38_0x5be7();let _0x3f1c76=_0x5be777[_0x40d54a];return _0x3f1c76;}const ocrRecognize={'service':a38_0x223236(0x168),'command':a38_0x223236(0x14a),'description':a38_0x223236(0x14c),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x411ce6){const _0x40d77d=a38_0x223236,_0x1290b3=normalizeScene(_0x411ce6[_0x40d77d(0x15e)](_0x40d77d(0x14b))),_0x3d3b0b=SCENE_TO_LEGACY_TYPE[_0x1290b3],_0x395e95=validateInputSelection(_0x411ce6);if(_0x395e95['imageUrl'])return dryRun(_0x40d77d(0x14e),'/client/ocr')['body']({'appCode':_0x411ce6[_0x40d77d(0x16a)],'url':_0x395e95[_0x40d77d(0x142)],'type':_0x3d3b0b})[_0x40d77d(0x13c)](_0x40d77d(0x144)+_0x1290b3+_0x40d77d(0x162))[_0x40d77d(0x157)]();const _0x191444=requireRuntimeUploadFile(_0x395e95[_0x40d77d(0x141)],'image-file');return dryRun(_0x40d77d(0x14e),'/client/uploadFile')[_0x40d77d(0x15d)]({'steps':[{'method':'POST','url':_0x40d77d(0x152),'body':{'appCode':_0x411ce6[_0x40d77d(0x16a)],'multipart':{'file':_0x191444}}},{'method':_0x40d77d(0x14e),'url':_0x40d77d(0x135),'body':{'filePath':_0x40d77d(0x136),'downloadFlag':![]}},{'method':_0x40d77d(0x14e),'url':_0x40d77d(0x13d),'body':{'appCode':_0x411ce6[_0x40d77d(0x16a)],'url':_0x40d77d(0x166),'type':_0x3d3b0b}}]})[_0x40d77d(0x13c)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x1290b3+_0x40d77d(0x15b))['build']();},async 'execute'(_0x582522){const _0x620aea=a38_0x223236,_0x3ae349=normalizeScene(_0x582522[_0x620aea(0x15e)]('scene')),_0x3fd22d=SCENE_TO_LEGACY_TYPE[_0x3ae349],_0x35f0de=validateInputSelection(_0x582522);if(_0x35f0de['imageUrl']){const _0x5431d2=await recognizeRuntimeOcr(_0x582522['appCode'],{'url':_0x35f0de[_0x620aea(0x142)],'type':_0x3fd22d});return{'ok':!![],'data':withScene(_0x5431d2,_0x3ae349)};}const _0x1034e9=requireRuntimeUploadFile(_0x35f0de[_0x620aea(0x141)],_0x620aea(0x159)),_0x18ac7c=await uploadRuntimeFile(_0x582522['appCode'],_0x1034e9[_0x620aea(0x145)]);if(!_0x18ac7c['filePath'])throw CliErrors['apiError'](_0x620aea(0x16c));const _0xd7a61e=await queryRuntimeFileUrl(_0x18ac7c[_0x620aea(0x153)],{'download':![]});if(!_0xd7a61e[_0x620aea(0x14f)])throw CliErrors[_0x620aea(0x13e)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x166ece=await recognizeRuntimeOcr(_0x582522[_0x620aea(0x16a)],{'url':_0xd7a61e[_0x620aea(0x14f)],'type':_0x3fd22d});return{'ok':!![],'data':withScene(_0x166ece,_0x3ae349,_0x18ac7c)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a39_0x3d2b89=a39_0x5a7c;(function(_0xef3d6,_0x3f826e){const _0x42a9c4=a39_0x5a7c,_0x2f8ce6=_0xef3d6();while(!![]){try{const _0x45c9a0=-parseInt(_0x42a9c4(0x186))/0x1+parseInt(_0x42a9c4(0x191))/0x2+parseInt(_0x42a9c4(0x18a))/0x3+parseInt(_0x42a9c4(0x180))/0x4*(-parseInt(_0x42a9c4(0x182))/0x5)+-parseInt(_0x42a9c4(0x188))/0x6*(parseInt(_0x42a9c4(0x184))/0x7)+parseInt(_0x42a9c4(0x185))/0x8*(-parseInt(_0x42a9c4(0x181))/0x9)+-parseInt(_0x42a9c4(0x183))/0xa*(-parseInt(_0x42a9c4(0x192))/0xb);if(_0x45c9a0===_0x3f826e)break;else _0x2f8ce6['push'](_0x2f8ce6['shift']());}catch(_0x3c90fa){_0x2f8ce6['push'](_0x2f8ce6['shift']());}}}(a39_0x2efc,0xb8f77));function a39_0x5a7c(_0x33cdd7,_0x184538){_0x33cdd7=_0x33cdd7-0x17f;const _0x2efc8e=a39_0x2efc();let _0x5a7cb0=_0x2efc8e[_0x33cdd7];return _0x5a7cb0;}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a39_0x2efc(){const _0x19208e=['1522458pNzjcO','11FlLBZd','roleType','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','8yHSlgR','63rlmbQT','1003870ccFYoi','15313530bSXhjH','21aeDjBX','465008BpFOte','580620MILsVO','dataset-get','1677738jDaCKK','str','2078880jwlJEa','string','roleName','runtime','appCode','permit','role'];a39_0x2efc=function(){return _0x19208e;};return a39_0x2efc();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a39_0x3d2b89(0x18f),'command':a39_0x3d2b89(0x187),'description':a39_0x3d2b89(0x17f),'risk':'read','flags':[{'name':a39_0x3d2b89(0x190),'type':a39_0x3d2b89(0x18b),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x3d0c55){const _0x20f6cd=a39_0x3d2b89,_0x5bd78c=_0x3d0c55[_0x20f6cd(0x189)](_0x20f6cd(0x190))['trim']();if(!_0x5bd78c)return{'ok':!![],'data':{'scope':'runtime','datasets':await listRuntimeDatasetRolePermits(_0x3d0c55[_0x20f6cd(0x18e)])}};const _0xc32a57=await resolveRuntimeRoleRef(_0x3d0c55[_0x20f6cd(0x18e)],_0x5bd78c);return{'ok':!![],'data':{'scope':_0x20f6cd(0x18d),'role':{'id':_0xc32a57['id'],'roleName':_0xc32a57[_0x20f6cd(0x18c)],'roleType':_0xc32a57[_0x20f6cd(0x193)]},'datasets':await listRuntimeDatasetPermits(_0x3d0c55[_0x20f6cd(0x18e)],_0xc32a57['id'])}};}};
1
+ const a39_0x2df438=a39_0x1541;function a39_0x1c1f(){const _0x5f33f4=['roleType','permit','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','21HSzrZb','read','881aXiaFm','3OXBKlp','roleName','trim','string','role','926996ejVXQa','1022695irsuUs','96lWYnUP','24jIhFzn','287748brvQaL','1942120zCDtMv','runtime','6751833aDCZXI','dataset-get','572rPcjwO','str','507534sFvsCD','appCode'];a39_0x1c1f=function(){return _0x5f33f4;};return a39_0x1c1f();}(function(_0x1a5190,_0x3deabf){const _0x35af86=a39_0x1541,_0x461789=_0x1a5190();while(!![]){try{const _0x10f8db=-parseInt(_0x35af86(0xa8))/0x1*(parseInt(_0x35af86(0x9f))/0x2)+-parseInt(_0x35af86(0xa9))/0x3*(parseInt(_0x35af86(0xae))/0x4)+-parseInt(_0x35af86(0xaf))/0x5+-parseInt(_0x35af86(0xa1))/0x6*(-parseInt(_0x35af86(0xa6))/0x7)+-parseInt(_0x35af86(0xb0))/0x8*(parseInt(_0x35af86(0xb2))/0x9)+-parseInt(_0x35af86(0x9b))/0xa+parseInt(_0x35af86(0x9d))/0xb*(parseInt(_0x35af86(0xb1))/0xc);if(_0x10f8db===_0x3deabf)break;else _0x461789['push'](_0x461789['shift']());}catch(_0x1c195f){_0x461789['push'](_0x461789['shift']());}}}(a39_0x1c1f,0x348cb));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x1541(_0x1dd958,_0x31dadf){_0x1dd958=_0x1dd958-0x9b;const _0x1c1f2e=a39_0x1c1f();let _0x1541fe=_0x1c1f2e[_0x1dd958];return _0x1541fe;}export const permitDatasetGet={'service':a39_0x2df438(0xa4),'command':a39_0x2df438(0x9e),'description':a39_0x2df438(0xa5),'risk':a39_0x2df438(0xa7),'flags':[{'name':a39_0x2df438(0xad),'type':a39_0x2df438(0xac),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x3af0ac){const _0x45ab84=a39_0x2df438,_0x53b65e=_0x3af0ac[_0x45ab84(0xa0)]('role')[_0x45ab84(0xab)]();if(!_0x53b65e)return{'ok':!![],'data':{'scope':_0x45ab84(0x9c),'datasets':await listRuntimeDatasetRolePermits(_0x3af0ac['appCode'])}};const _0x20da46=await resolveRuntimeRoleRef(_0x3af0ac['appCode'],_0x53b65e);return{'ok':!![],'data':{'scope':'runtime','role':{'id':_0x20da46['id'],'roleName':_0x20da46[_0x45ab84(0xaa)],'roleType':_0x20da46[_0x45ab84(0xa3)]},'datasets':await listRuntimeDatasetPermits(_0x3af0ac[_0x45ab84(0xa2)],_0x20da46['id'])}};}};