@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-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 (184) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-management-client.js +1 -1
  109. package/lib/core/kb-sdk-errors.d.ts +3 -0
  110. package/lib/core/kb-sdk-errors.js +1 -0
  111. package/lib/core/kb-search-client.d.ts +3 -21
  112. package/lib/core/kb-search-client.js +1 -1
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.js +1 -1
  135. package/lib/generated/routing-contract.js +1 -1
  136. package/lib/help.js +1 -1
  137. package/lib/postinstall.js +1 -1
  138. package/lib/runtime/confirmation.js +1 -1
  139. package/lib/runtime/event.js +1 -1
  140. package/lib/runtime/index.js +1 -1
  141. package/lib/runtime/queue.js +1 -1
  142. package/lib/runtime/resolve.js +1 -1
  143. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  144. package/lib/services/dataset-import/excel-reader.js +1 -1
  145. package/lib/services/dataset-import/image-bytes.js +1 -1
  146. package/lib/services/dataset-import/image-ooxml.js +1 -1
  147. package/lib/services/dataset-import/image-runner.js +1 -1
  148. package/lib/services/dataset-import/metadata.js +1 -1
  149. package/lib/services/dataset-import/preview.js +1 -1
  150. package/lib/services/dataset-import/runner.js +1 -1
  151. package/lib/skills/builtin-skill.js +1 -1
  152. package/lib/skills/npx-skills-add.js +1 -1
  153. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  154. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  155. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  156. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  157. package/lib/skills/runtime-skill-sync/links.js +1 -1
  158. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  159. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  160. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  161. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  162. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  163. package/lib/skills/runtime-skill-sync/push.js +1 -1
  164. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  167. package/lib/skills/runtime-skill-sync.js +1 -1
  168. package/lib/skills/skill-presence.js +1 -1
  169. package/lib/utils/access-key-redaction.js +1 -1
  170. package/lib/utils/apply-jq-filter.js +1 -1
  171. package/lib/utils/cli-version-check.js +1 -1
  172. package/lib/utils/cli-version-policy.js +1 -1
  173. package/lib/utils/logger.js +1 -1
  174. package/lib/utils/lossless-json.js +1 -1
  175. package/lib/utils/params.js +1 -1
  176. package/lib/utils/positive-safe-integer.js +1 -1
  177. package/lib/utils/redaction.js +1 -1
  178. package/lib/utils/runtime-user-id.js +1 -1
  179. package/lib/utils/update-notice.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/write-cli-side-channel.js +1 -1
  182. package/package.json +2 -2
  183. package/skills/lovrabet/SKILL.md +1 -1
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a28_0x5ba640=a28_0x14aa;(function(_0x4394ca,_0x187889){const _0x3674fc=a28_0x14aa,_0x490999=_0x4394ca();while(!![]){try{const _0x284e98=parseInt(_0x3674fc(0x1f0))/0x1*(parseInt(_0x3674fc(0x1ed))/0x2)+parseInt(_0x3674fc(0x1e4))/0x3*(-parseInt(_0x3674fc(0x207))/0x4)+-parseInt(_0x3674fc(0x1f4))/0x5+parseInt(_0x3674fc(0x202))/0x6*(-parseInt(_0x3674fc(0x1de))/0x7)+-parseInt(_0x3674fc(0x1f7))/0x8*(parseInt(_0x3674fc(0x1d0))/0x9)+parseInt(_0x3674fc(0x1ca))/0xa*(-parseInt(_0x3674fc(0x1c9))/0xb)+parseInt(_0x3674fc(0x201))/0xc;if(_0x284e98===_0x187889)break;else _0x490999['push'](_0x490999['shift']());}catch(_0x295f0a){_0x490999['push'](_0x490999['shift']());}}}(a28_0x461f,0xd5ade));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x461f(){const _0xa898c4=['code','responseBody','dataset','afterScriptId','18gVaMAN','fields','read','parse','relations','logicField','allFields','extend','datasetKey','34EgaTxo','path','string','6340fmkcdM','dataType','doType','appCode','6728860sErUKI','creatorIdField','apiError','8AabeCF','sourceType','description','properties','validateRules','updateTimeField','relatedPageInfoList','filter','type','displayName','82535148AKhiaa','1461126XZAKAT','isArray','requestBody','map','allFieldNames','548144QNgKAa','requestFields','method','dbName','columnCodeListWithDeleted','required','modelCode','tableComment','Dataset\x20detail\x20must\x20be\x20an\x20object.','modelId','modifierIdField','dbId','options','dbtableConfig','split','5844729jHKSrn','10DGoBUc','object','trim','entries','labelField','name','15358545FaJqjW','host','push','formatRules','detail','responseFields','beforeScriptId','tableName','source','indexes','deleted','str','pkField','length','49iZTFiU','operations'];a28_0x461f=function(){return _0xa898c4;};return a28_0x461f();}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x28ec75){const _0x2533fe=a28_0x14aa;return _0x28ec75!==null&&typeof _0x28ec75===_0x2533fe(0x1cb)&&!Array['isArray'](_0x28ec75);}function normalizeField(_0x41dce1){const _0x976c6c=a28_0x14aa;if(_0x41dce1[_0x976c6c(0x1da)])return null;const _0x5335bd=Boolean(_0x41dce1['displayName']!==undefined||_0x41dce1[_0x976c6c(0x1f2)]!==undefined);let _0x843678={};if(!_0x5335bd&&typeof _0x41dce1['extend']==='string')try{_0x843678=JSON[_0x976c6c(0x1e7)](_0x41dce1[_0x976c6c(0x1eb)]);}catch{}const _0x5def90=_0x5335bd?_0x41dce1[_0x976c6c(0x1cf)]:_0x41dce1[_0x976c6c(0x1e0)],_0x5304f0=_0x5335bd?_0x41dce1[_0x976c6c(0x200)]:_0x41dce1[_0x976c6c(0x1cf)],_0x741601=_0x5335bd?_0x41dce1['doType']:_0x41dce1[_0x976c6c(0x1ff)]||_0x41dce1[_0x976c6c(0x1f1)],_0x4753ce=_0x5335bd?_0x41dce1[_0x976c6c(0x1dc)]===!![]:_0x843678['pkField']===!![],_0x518f7f=_0x5335bd?_0x41dce1[_0x976c6c(0x20c)]===!![]:_0x843678[_0x976c6c(0x20c)]===!![],_0x23d6f7=_0x5335bd?_0x41dce1[_0x976c6c(0x1c6)]??null:_0x843678[_0x976c6c(0x1c6)]??null,_0x340e47={'name':_0x5def90,'displayName':_0x5304f0||_0x5def90,'type':_0x741601,'dbType':_0x41dce1['dbType'],'pk':_0x4753ce,'required':_0x518f7f,'description':_0x41dce1[_0x976c6c(0x1f9)]||undefined};return Array[_0x976c6c(0x203)](_0x23d6f7)&&_0x23d6f7[_0x976c6c(0x1dd)]>0x0&&(_0x340e47[_0x976c6c(0x1c6)]=_0x23d6f7),_0x340e47;}function parseJsonMaybe(_0x531c86){const _0x8b502a=a28_0x14aa;if(typeof _0x531c86!==_0x8b502a(0x1ef))return _0x531c86;try{return JSON[_0x8b502a(0x1e7)](_0x531c86);}catch{return _0x531c86;}}function normalizeOperationEntry(_0x3dd077,_0x567db4){const _0x2be52a=a28_0x14aa;if(!_0x567db4||typeof _0x567db4!=='object')return null;if(!_0x567db4[_0x2be52a(0x209)]||!_0x567db4[_0x2be52a(0x1ee)])return null;const _0x5d4d9a={'name':_0x3dd077,'method':_0x567db4['method'],'path':_0x567db4[_0x2be52a(0x1ee)]};if(_0x567db4[_0x2be52a(0x1d1)])_0x5d4d9a[_0x2be52a(0x1d1)]=_0x567db4[_0x2be52a(0x1d1)];if(_0x567db4[_0x2be52a(0x204)]!=null)_0x5d4d9a[_0x2be52a(0x204)]=parseJsonMaybe(_0x567db4['requestBody']);if(_0x567db4[_0x2be52a(0x1e1)]!=null)_0x5d4d9a['responseBody']=parseJsonMaybe(_0x567db4[_0x2be52a(0x1e1)]);if(_0x567db4[_0x2be52a(0x1d6)]!=null)_0x5d4d9a[_0x2be52a(0x1d6)]=_0x567db4['beforeScriptId'];if(_0x567db4[_0x2be52a(0x1e3)]!=null)_0x5d4d9a[_0x2be52a(0x1e3)]=_0x567db4[_0x2be52a(0x1e3)];if(Array['isArray'](_0x567db4[_0x2be52a(0x208)]))_0x5d4d9a[_0x2be52a(0x208)]=_0x567db4[_0x2be52a(0x208)];if(Array[_0x2be52a(0x203)](_0x567db4[_0x2be52a(0x1d5)]))_0x5d4d9a[_0x2be52a(0x1d5)]=_0x567db4['responseFields'];return _0x5d4d9a;}function summarizeDbtable(_0x5d9fef){const _0x2ea596=a28_0x14aa,_0xeaa3b8={},_0x5ca1dc=[_0x2ea596(0x1c5),_0x2ea596(0x20a),_0x2ea596(0x1d7),_0x2ea596(0x1ec),_0x2ea596(0x1dc),_0x2ea596(0x1ea),_0x2ea596(0x1e9),'createTimeField',_0x2ea596(0x1fc),_0x2ea596(0x1f5),'creatorNameField',_0x2ea596(0x1c4),'modifierNameField',_0x2ea596(0x1ce),'dblinkInfoDTO'];for(const _0x7c8333 of _0x5ca1dc){if(_0x5d9fef[_0x7c8333]!==undefined)_0xeaa3b8[_0x7c8333]=_0x5d9fef[_0x7c8333];}return typeof _0xeaa3b8['allFields']===_0x2ea596(0x1ef)&&_0xeaa3b8['allFields'][_0x2ea596(0x1dd)]>0x0&&(_0xeaa3b8[_0x2ea596(0x206)]=_0xeaa3b8[_0x2ea596(0x1ea)][_0x2ea596(0x1c8)](',')[_0x2ea596(0x205)](_0x406c4b=>_0x406c4b['trim']())['filter'](Boolean)),_0xeaa3b8;}function normalizeRelatedPages(_0x270df1){const _0x5187c0=a28_0x14aa;if(!Array[_0x5187c0(0x203)](_0x270df1))return[];return _0x270df1['filter'](_0x5bfee1=>_0x5bfee1&&typeof _0x5bfee1==='object')[_0x5187c0(0x205)](_0x3f9242=>({'id':_0x3f9242['id'],'type':_0x3f9242[_0x5187c0(0x1ff)],'code':_0x3f9242['code'],'title':_0x3f9242['title'],'deleted':_0x3f9242[_0x5187c0(0x1da)]===!![]}));}function normalizeFallbackFieldName(_0x19f31d,_0xac235){const _0x55214f=a28_0x14aa,_0x5d77e8=_0x19f31d[_0x55214f(0x1cc)]();if(!_0x5d77e8)return null;return{'name':_0x5d77e8,'displayName':_0x5d77e8,'type':undefined,'dbType':undefined,'pk':_0x5d77e8===_0xac235,'required':![],'description':undefined};}function a28_0x14aa(_0x117d0b,_0x1f9d09){_0x117d0b=_0x117d0b-0x1c2;const _0x461fe2=a28_0x461f();let _0x14aa41=_0x461fe2[_0x117d0b];return _0x14aa41;}async function loadListFieldFallback(_0x25d5bf,_0x1cb622){const _0x462484=a28_0x14aa;if(!_0x25d5bf||!_0x1cb622)return[];try{const _0x5c73c2=await listDatasets(_0x25d5bf,{'code':_0x1cb622}),_0x4e7882=_0x5c73c2['find'](_0x37e86b=>_0x37e86b[_0x462484(0x1e0)]===_0x1cb622)??_0x5c73c2[0x0],_0x4593b7=_0x4e7882?.[_0x462484(0x1c7)]??{},_0x1c39cf=typeof _0x4593b7['allFields']==='string'?_0x4593b7['allFields'][_0x462484(0x1c8)](','):[];return _0x1c39cf[_0x462484(0x205)](_0x3477b9=>normalizeFallbackFieldName(_0x3477b9,_0x4593b7[_0x462484(0x1dc)]))[_0x462484(0x1fe)](_0x5d6b4d=>_0x5d6b4d!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x5ba640(0x1e2),'command':a28_0x5ba640(0x1d4),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x5ba640(0x1e6),'flags':[CODE_FLAG],async 'execute'(_0xb7ed9f){const _0x4b2cf2=a28_0x5ba640,_0x5d4fe8=await getDatasetDetail(_0xb7ed9f[_0x4b2cf2(0x1db)]('code'));if(!isRecord(_0x5d4fe8))throw CliErrors[_0x4b2cf2(0x1f6)](_0x4b2cf2(0x1c2));const _0x32c5c6=Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1e5)])?_0x5d4fe8[_0x4b2cf2(0x1e5)]:Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1fa)])?_0x5d4fe8[_0x4b2cf2(0x1fa)]:[];let _0x3ad3af=_0x32c5c6[_0x4b2cf2(0x205)](_0x4e7ddc=>normalizeField(_0x4e7ddc))[_0x4b2cf2(0x1fe)](_0x3b109e=>_0x3b109e!==null);_0x3ad3af['length']===0x0&&(_0x3ad3af=await loadListFieldFallback(_0xb7ed9f[_0x4b2cf2(0x1f3)],_0xb7ed9f[_0x4b2cf2(0x1db)](_0x4b2cf2(0x1e0))));const _0x4719fd=_0x5d4fe8[_0x4b2cf2(0x1df)]??{},_0x2587be=[];for(const [_0x2dad07,_0x2f48ae]of Object[_0x4b2cf2(0x1cd)](_0x4719fd)){const _0x1dbdde=normalizeOperationEntry(_0x2dad07,_0x2f48ae);if(_0x1dbdde)_0x2587be[_0x4b2cf2(0x1d2)](_0x1dbdde);}const _0x25d2a4=isRecord(_0x5d4fe8[_0x4b2cf2(0x1c7)])?_0x5d4fe8[_0x4b2cf2(0x1c7)]:{},_0x3a3ac1=isRecord(_0x5d4fe8[_0x4b2cf2(0x1e2)])?_0x5d4fe8[_0x4b2cf2(0x1e2)]:{},_0x3b6f3a=_0x25d2a4['dbId']!=null?{'id':_0x25d2a4['dbId'],'name':_0x25d2a4[_0x4b2cf2(0x20a)]??null}:undefined;let _0x45b919;return typeof _0x5d4fe8[_0x4b2cf2(0x1eb)]==='string'&&(_0x45b919=parseJsonMaybe(_0x5d4fe8[_0x4b2cf2(0x1eb)])),{'ok':!![],'data':{'id':_0x5d4fe8[_0x4b2cf2(0x1c3)]??_0x5d4fe8['id'],'name':_0x5d4fe8[_0x4b2cf2(0x1cf)],'code':_0x5d4fe8[_0x4b2cf2(0x20d)]||_0x5d4fe8['code'],'doVersion':_0x5d4fe8['doVersion'],'description':_0x5d4fe8['description']||_0x3a3ac1[_0x4b2cf2(0x20e)]||undefined,'source':_0x5d4fe8[_0x4b2cf2(0x1d8)]||_0x3a3ac1[_0x4b2cf2(0x1f8)],'table':_0x25d2a4[_0x4b2cf2(0x1d7)]||_0x3a3ac1[_0x4b2cf2(0x1d7)],'datasetKey':_0x25d2a4[_0x4b2cf2(0x1ec)],'pk':_0x25d2a4[_0x4b2cf2(0x1dc)],'db':_0x3b6f3a,'dbtable':summarizeDbtable(_0x25d2a4),'fields':_0x3ad3af,'operations':_0x2587be,'indexes':Array['isArray'](_0x3a3ac1[_0x4b2cf2(0x1d9)])?_0x3a3ac1[_0x4b2cf2(0x1d9)]:[],'relations':_0x5d4fe8[_0x4b2cf2(0x1e8)]??null,'relatedPages':normalizeRelatedPages(_0x5d4fe8[_0x4b2cf2(0x1fd)]),...Array['isArray'](_0x5d4fe8[_0x4b2cf2(0x20b)])?{'columnCodeListWithDeleted':_0x5d4fe8[_0x4b2cf2(0x20b)]}:{},'formatRules':Array[_0x4b2cf2(0x203)](_0x5d4fe8[_0x4b2cf2(0x1d3)])?_0x5d4fe8[_0x4b2cf2(0x1d3)]:[],'validateRules':Array[_0x4b2cf2(0x203)](_0x5d4fe8['validateRules'])?_0x5d4fe8[_0x4b2cf2(0x1fb)]:[],..._0x45b919!==undefined?{'extend':_0x45b919}:{},'stats':{'fieldCount':_0x3ad3af['length'],'operationCount':_0x2587be[_0x4b2cf2(0x1dd)]}}};}};
1
+ const a28_0x384cdd=a28_0x574b;(function(_0x332671,_0x42e2e9){const _0x2dace9=a28_0x574b,_0x2e6d3e=_0x332671();while(!![]){try{const _0x50724b=parseInt(_0x2dace9(0xc9))/0x1+parseInt(_0x2dace9(0xe0))/0x2+parseInt(_0x2dace9(0xb2))/0x3*(-parseInt(_0x2dace9(0xb5))/0x4)+parseInt(_0x2dace9(0xf1))/0x5*(parseInt(_0x2dace9(0xe9))/0x6)+parseInt(_0x2dace9(0xf4))/0x7+-parseInt(_0x2dace9(0xf9))/0x8*(parseInt(_0x2dace9(0xc0))/0x9)+-parseInt(_0x2dace9(0xdb))/0xa*(parseInt(_0x2dace9(0xf5))/0xb);if(_0x50724b===_0x42e2e9)break;else _0x2e6d3e['push'](_0x2e6d3e['shift']());}catch(_0x50cc2d){_0x2e6d3e['push'](_0x2e6d3e['shift']());}}}(a28_0x4605,0x4396e));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a28_0x574b(_0xc2a269,_0x5502bc){_0xc2a269=_0xc2a269-0xb2;const _0x460591=a28_0x4605();let _0x574bf2=_0x460591[_0xc2a269];return _0x574bf2;}import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x59120e){const _0x41f8c5=a28_0x574b;return _0x59120e!==null&&typeof _0x59120e==='object'&&!Array[_0x41f8c5(0xed)](_0x59120e);}function normalizeField(_0x3307af){const _0x1720f5=a28_0x574b;if(_0x3307af[_0x1720f5(0xc4)])return null;const _0x32f425=Boolean(_0x3307af[_0x1720f5(0xf6)]!==undefined||_0x3307af[_0x1720f5(0xb3)]!==undefined);let _0x5107fd={};if(!_0x32f425&&typeof _0x3307af['extend']===_0x1720f5(0xeb))try{_0x5107fd=JSON[_0x1720f5(0xc8)](_0x3307af[_0x1720f5(0xc7)]);}catch{}const _0x146184=_0x32f425?_0x3307af[_0x1720f5(0xf8)]:_0x3307af[_0x1720f5(0xb4)],_0x2f4466=_0x32f425?_0x3307af['displayName']:_0x3307af[_0x1720f5(0xf8)],_0x3ca9da=_0x32f425?_0x3307af['doType']:_0x3307af[_0x1720f5(0x101)]||_0x3307af[_0x1720f5(0xbe)],_0x15b7b4=_0x32f425?_0x3307af[_0x1720f5(0xf0)]===!![]:_0x5107fd['pkField']===!![],_0x3fc4a8=_0x32f425?_0x3307af[_0x1720f5(0xcf)]===!![]:_0x5107fd[_0x1720f5(0xcf)]===!![],_0x504664=_0x32f425?_0x3307af[_0x1720f5(0xca)]??null:_0x5107fd['options']??null,_0x2ba3b4={'name':_0x146184,'displayName':_0x2f4466||_0x146184,'type':_0x3ca9da,'dbType':_0x3307af[_0x1720f5(0xdc)],'pk':_0x15b7b4,'required':_0x3fc4a8,'description':_0x3307af[_0x1720f5(0xe5)]||undefined};return Array[_0x1720f5(0xed)](_0x504664)&&_0x504664['length']>0x0&&(_0x2ba3b4['options']=_0x504664),_0x2ba3b4;}function parseJsonMaybe(_0xceb4a0){const _0x55eb36=a28_0x574b;if(typeof _0xceb4a0!==_0x55eb36(0xeb))return _0xceb4a0;try{return JSON[_0x55eb36(0xc8)](_0xceb4a0);}catch{return _0xceb4a0;}}function a28_0x4605(){const _0x23416a=['type','144loZnNt','doType','code','27108JtryRc','validateRules','length','afterScriptId','tableName','dblinkInfoDTO','indexes','formatRules','filter','dataType','object','90tYNYVo','logicField','relations','requestFields','deleted','properties','sourceType','extend','parse','237511JmrRXD','options','trim','modelCode','path','operations','required','createTimeField','modelId','beforeScriptId','creatorNameField','allFields','responseFields','dbtableConfig','requestBody','find','modifierNameField','datasetKey','198910afZRZT','dbType','dbId','fields','doVersion','75494cGRmRg','dataset','modifierIdField','split','creatorIdField','description','tableComment','entries','appCode','12RsupaQ','host','string','read','isArray','source','title','pkField','30115ffOpnv','relatedPageInfoList','dbName','3227441rQCyNc','55neLnNz','displayName','columnCodeListWithDeleted','name','37416ISJKvS','labelField','responseBody','detail','method','str','allFieldNames','map'];a28_0x4605=function(){return _0x23416a;};return a28_0x4605();}function normalizeOperationEntry(_0x1db5f6,_0x52d5ad){const _0x542cc6=a28_0x574b;if(!_0x52d5ad||typeof _0x52d5ad!==_0x542cc6(0xbf))return null;if(!_0x52d5ad[_0x542cc6(0xfd)]||!_0x52d5ad[_0x542cc6(0xcd)])return null;const _0x5c5220={'name':_0x1db5f6,'method':_0x52d5ad['method'],'path':_0x52d5ad['path']};if(_0x52d5ad['host'])_0x5c5220['host']=_0x52d5ad[_0x542cc6(0xea)];if(_0x52d5ad[_0x542cc6(0xd7)]!=null)_0x5c5220[_0x542cc6(0xd7)]=parseJsonMaybe(_0x52d5ad['requestBody']);if(_0x52d5ad[_0x542cc6(0xfb)]!=null)_0x5c5220[_0x542cc6(0xfb)]=parseJsonMaybe(_0x52d5ad[_0x542cc6(0xfb)]);if(_0x52d5ad[_0x542cc6(0xd2)]!=null)_0x5c5220[_0x542cc6(0xd2)]=_0x52d5ad['beforeScriptId'];if(_0x52d5ad['afterScriptId']!=null)_0x5c5220[_0x542cc6(0xb8)]=_0x52d5ad[_0x542cc6(0xb8)];if(Array['isArray'](_0x52d5ad['requestFields']))_0x5c5220[_0x542cc6(0xc3)]=_0x52d5ad[_0x542cc6(0xc3)];if(Array['isArray'](_0x52d5ad[_0x542cc6(0xd5)]))_0x5c5220[_0x542cc6(0xd5)]=_0x52d5ad[_0x542cc6(0xd5)];return _0x5c5220;}function summarizeDbtable(_0x4c2240){const _0x3306db=a28_0x574b,_0xd9cb07={},_0xca556a=[_0x3306db(0xdd),_0x3306db(0xf3),'tableName','datasetKey','pkField',_0x3306db(0xd4),_0x3306db(0xc1),_0x3306db(0xd0),'updateTimeField',_0x3306db(0xe4),_0x3306db(0xd3),_0x3306db(0xe2),_0x3306db(0xd9),_0x3306db(0xfa),_0x3306db(0xba)];for(const _0xdae253 of _0xca556a){if(_0x4c2240[_0xdae253]!==undefined)_0xd9cb07[_0xdae253]=_0x4c2240[_0xdae253];}return typeof _0xd9cb07[_0x3306db(0xd4)]===_0x3306db(0xeb)&&_0xd9cb07['allFields'][_0x3306db(0xb7)]>0x0&&(_0xd9cb07[_0x3306db(0xff)]=_0xd9cb07[_0x3306db(0xd4)][_0x3306db(0xe3)](',')['map'](_0x3a8e01=>_0x3a8e01[_0x3306db(0xcb)]())[_0x3306db(0xbd)](Boolean)),_0xd9cb07;}function normalizeRelatedPages(_0x42270d){const _0x19d1b4=a28_0x574b;if(!Array[_0x19d1b4(0xed)](_0x42270d))return[];return _0x42270d['filter'](_0x1f1ce2=>_0x1f1ce2&&typeof _0x1f1ce2===_0x19d1b4(0xbf))['map'](_0x407431=>({'id':_0x407431['id'],'type':_0x407431[_0x19d1b4(0x101)],'code':_0x407431['code'],'title':_0x407431[_0x19d1b4(0xef)],'deleted':_0x407431[_0x19d1b4(0xc4)]===!![]}));}function normalizeFallbackFieldName(_0x1dccc4,_0x216654){const _0x222d75=_0x1dccc4['trim']();if(!_0x222d75)return null;return{'name':_0x222d75,'displayName':_0x222d75,'type':undefined,'dbType':undefined,'pk':_0x222d75===_0x216654,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1c1d09,_0x73c4b7){const _0x4595da=a28_0x574b;if(!_0x1c1d09||!_0x73c4b7)return[];try{const _0x3cc433=await listDatasets(_0x1c1d09,{'code':_0x73c4b7}),_0x2e42d0=_0x3cc433[_0x4595da(0xd8)](_0x3246b0=>_0x3246b0['code']===_0x73c4b7)??_0x3cc433[0x0],_0x1649f4=_0x2e42d0?.['dbtableConfig']??{},_0x41c7dc=typeof _0x1649f4[_0x4595da(0xd4)]===_0x4595da(0xeb)?_0x1649f4[_0x4595da(0xd4)][_0x4595da(0xe3)](','):[];return _0x41c7dc['map'](_0x263324=>normalizeFallbackFieldName(_0x263324,_0x1649f4[_0x4595da(0xf0)]))[_0x4595da(0xbd)](_0x4fe140=>_0x4fe140!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x384cdd(0xe1),'command':a28_0x384cdd(0xfc),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x384cdd(0xec),'flags':[CODE_FLAG],async 'execute'(_0x5f2ed5){const _0x8204=a28_0x384cdd,_0x4ba38e=await getDatasetDetail(_0x5f2ed5['str']('code'));if(!isRecord(_0x4ba38e))throw CliErrors['apiError']('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0x23282e=Array[_0x8204(0xed)](_0x4ba38e['fields'])?_0x4ba38e[_0x8204(0xde)]:Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xc5)])?_0x4ba38e[_0x8204(0xc5)]:[];let _0x9bcbae=_0x23282e[_0x8204(0x100)](_0x430914=>normalizeField(_0x430914))['filter'](_0x3882c8=>_0x3882c8!==null);_0x9bcbae[_0x8204(0xb7)]===0x0&&(_0x9bcbae=await loadListFieldFallback(_0x5f2ed5[_0x8204(0xe8)],_0x5f2ed5[_0x8204(0xfe)]('code')));const _0x2b912e=_0x4ba38e[_0x8204(0xce)]??{},_0x2fcc19=[];for(const [_0x23ee52,_0x3c635c]of Object[_0x8204(0xe7)](_0x2b912e)){const _0x9033ad=normalizeOperationEntry(_0x23ee52,_0x3c635c);if(_0x9033ad)_0x2fcc19['push'](_0x9033ad);}const _0x4a113f=isRecord(_0x4ba38e[_0x8204(0xd6)])?_0x4ba38e['dbtableConfig']:{},_0x40fc56=isRecord(_0x4ba38e['dataset'])?_0x4ba38e[_0x8204(0xe1)]:{},_0x28d935=_0x4a113f[_0x8204(0xdd)]!=null?{'id':_0x4a113f['dbId'],'name':_0x4a113f[_0x8204(0xf3)]??null}:undefined;let _0x2478da;return typeof _0x4ba38e[_0x8204(0xc7)]===_0x8204(0xeb)&&(_0x2478da=parseJsonMaybe(_0x4ba38e[_0x8204(0xc7)])),{'ok':!![],'data':{'id':_0x4ba38e[_0x8204(0xd1)]??_0x4ba38e['id'],'name':_0x4ba38e[_0x8204(0xf8)],'code':_0x4ba38e[_0x8204(0xcc)]||_0x4ba38e[_0x8204(0xb4)],'doVersion':_0x4ba38e[_0x8204(0xdf)],'description':_0x4ba38e['description']||_0x40fc56[_0x8204(0xe6)]||undefined,'source':_0x4ba38e[_0x8204(0xee)]||_0x40fc56[_0x8204(0xc6)],'table':_0x4a113f[_0x8204(0xb9)]||_0x40fc56[_0x8204(0xb9)],'datasetKey':_0x4a113f[_0x8204(0xda)],'pk':_0x4a113f[_0x8204(0xf0)],'db':_0x28d935,'dbtable':summarizeDbtable(_0x4a113f),'fields':_0x9bcbae,'operations':_0x2fcc19,'indexes':Array[_0x8204(0xed)](_0x40fc56[_0x8204(0xbb)])?_0x40fc56[_0x8204(0xbb)]:[],'relations':_0x4ba38e[_0x8204(0xc2)]??null,'relatedPages':normalizeRelatedPages(_0x4ba38e[_0x8204(0xf2)]),...Array[_0x8204(0xed)](_0x4ba38e[_0x8204(0xf7)])?{'columnCodeListWithDeleted':_0x4ba38e[_0x8204(0xf7)]}:{},'formatRules':Array[_0x8204(0xed)](_0x4ba38e['formatRules'])?_0x4ba38e[_0x8204(0xbc)]:[],'validateRules':Array['isArray'](_0x4ba38e['validateRules'])?_0x4ba38e[_0x8204(0xb6)]:[],..._0x2478da!==undefined?{'extend':_0x2478da}:{},'stats':{'fieldCount':_0x9bcbae[_0x8204(0xb7)],'operationCount':_0x2fcc19[_0x8204(0xb7)]}}};}};
@@ -1 +1 @@
1
- function a29_0x56c6(){const _0x3a4642=['2106440VBFJGe','9177777lgfZQC','2968940LFJhvj','2555838XramDF','624297FpIPaq','178426XYKEkc','18YBUAYp','9152530STDksB','4sissDB','7QgCjAO'];a29_0x56c6=function(){return _0x3a4642;};return a29_0x56c6();}(function(_0x1bc4c0,_0x431969){const _0x5436a8=a29_0x2257,_0x458e1d=_0x1bc4c0();while(!![]){try{const _0x185f78=-parseInt(_0x5436a8(0x1e9))/0x1+-parseInt(_0x5436a8(0x1ea))/0x2*(-parseInt(_0x5436a8(0x1eb))/0x3)+-parseInt(_0x5436a8(0x1ed))/0x4*(-parseInt(_0x5436a8(0x1e7))/0x5)+parseInt(_0x5436a8(0x1e8))/0x6+parseInt(_0x5436a8(0x1e4))/0x7*(-parseInt(_0x5436a8(0x1e5))/0x8)+-parseInt(_0x5436a8(0x1e6))/0x9+parseInt(_0x5436a8(0x1ec))/0xa;if(_0x185f78===_0x431969)break;else _0x458e1d['push'](_0x458e1d['shift']());}catch(_0x81008){_0x458e1d['push'](_0x458e1d['shift']());}}}(a29_0x56c6,0x896f9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a29_0x2257(_0x385818,_0x3cbfaa){_0x385818=_0x385818-0x1e4;const _0x56c6d2=a29_0x56c6();let _0x2257de=_0x56c6d2[_0x385818];return _0x2257de;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x4efbeb,_0x48960e){const _0x5781c6=a29_0x137f,_0x503023=_0x4efbeb();while(!![]){try{const _0x3a6e97=parseInt(_0x5781c6(0x10b))/0x1+parseInt(_0x5781c6(0x106))/0x2*(parseInt(_0x5781c6(0x109))/0x3)+-parseInt(_0x5781c6(0x107))/0x4+-parseInt(_0x5781c6(0x103))/0x5*(parseInt(_0x5781c6(0x108))/0x6)+parseInt(_0x5781c6(0x101))/0x7*(parseInt(_0x5781c6(0x102))/0x8)+parseInt(_0x5781c6(0x104))/0x9*(-parseInt(_0x5781c6(0x105))/0xa)+-parseInt(_0x5781c6(0x10a))/0xb;if(_0x3a6e97===_0x48960e)break;else _0x503023['push'](_0x503023['shift']());}catch(_0x3897ef){_0x503023['push'](_0x503023['shift']());}}}(a29_0x245e,0xb8f2d));import{datasetList}from'../../commands/dataset/list.js';function a29_0x245e(){const _0x563931=['3054884JPdZuW','882OzDLuw','24LFlNwb','12660450cLZSAR','549514SZcXuM','1576841QWDtcZ','48WRkuEb','720rZxZUa','339804OahxYK','120FChbTh','311342qsQwAE'];a29_0x245e=function(){return _0x563931;};return a29_0x245e();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x137f(_0x4ec535,_0x21758d){_0x4ec535=_0x4ec535-0x101;const _0x245e19=a29_0x245e();let _0x137fff=_0x245e19[_0x4ec535];return _0x137fff;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a30_0x1a44a2=a30_0x1ceb;(function(_0x56ed96,_0x106a5a){const _0x175983=a30_0x1ceb,_0x483869=_0x56ed96();while(!![]){try{const _0x34ffd1=parseInt(_0x175983(0xfd))/0x1+parseInt(_0x175983(0xf9))/0x2*(parseInt(_0x175983(0x100))/0x3)+parseInt(_0x175983(0xe9))/0x4*(-parseInt(_0x175983(0xed))/0x5)+-parseInt(_0x175983(0xfb))/0x6+parseInt(_0x175983(0xf7))/0x7+-parseInt(_0x175983(0xf8))/0x8*(-parseInt(_0x175983(0xf1))/0x9)+-parseInt(_0x175983(0xee))/0xa*(parseInt(_0x175983(0xf3))/0xb);if(_0x34ffd1===_0x106a5a)break;else _0x483869['push'](_0x483869['shift']());}catch(_0x8eebbf){_0x483869['push'](_0x483869['shift']());}}}(a30_0x341c,0x7d437));import{listDatasets}from'../../core/api-client.js';function a30_0x1ceb(_0x36dc85,_0x32be03){_0x36dc85=_0x36dc85-0xe8;const _0x341cb1=a30_0x341c();let _0x1ceb97=_0x341cb1[_0x36dc85];return _0x1ceb97;}function a30_0x341c(){const _0x4af320=['3843396mvfodv','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','158927WISKAn','string','code','9DKbLCs','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','pkField','name','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','split','allFields','tableName','56044zNAYeN','dataset','trim','map','350hQFvhp','42920cSHHZR','str','dbtableConfig','9XonbJf','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1397gdnEZw','table-name','source','list','7104559kksodb','8006120acbWfA','336580bAkPSh','read'];a30_0x341c=function(){return _0x4af320;};return a30_0x341c();}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x1a44a2(0xea),'command':a30_0x1a44a2(0xf6),'description':a30_0x1a44a2(0x104),'risk':a30_0x1a44a2(0xfa),'flags':[{'name':a30_0x1a44a2(0x103),'type':a30_0x1a44a2(0xfe),'description':a30_0x1a44a2(0xfc)},{'name':a30_0x1a44a2(0xf4),'type':a30_0x1a44a2(0xfe),'description':a30_0x1a44a2(0x101)},{...CODE_FLAG,'required':![],'description':a30_0x1a44a2(0xf2)}],async 'execute'(_0x5de454){const _0x48b94a=a30_0x1a44a2,_0x53dc5e=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0x103)),_0x2001e5=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0xff)),_0x46e1f7=_0x5de454[_0x48b94a(0xef)](_0x48b94a(0xf4)),_0x2a9104=await listDatasets(_0x5de454['appCode'],{..._0x53dc5e&&{'name':_0x53dc5e},..._0x2001e5&&{'code':_0x2001e5},..._0x46e1f7&&{'tableName':_0x46e1f7}});return{'ok':!![],'data':{'total':_0x2a9104['length'],'datasets':_0x2a9104[_0x48b94a(0xec)](_0x1295c1=>{const _0x46c2e0=_0x48b94a,_0x24261a=_0x1295c1[_0x46c2e0(0xf0)]??{};return{'id':_0x1295c1['id'],'code':_0x1295c1[_0x46c2e0(0xff)],'name':_0x1295c1[_0x46c2e0(0x103)],'source':_0x1295c1[_0x46c2e0(0xf5)],'description':_0x1295c1['description'],'table':_0x24261a[_0x46c2e0(0xe8)],'datasetKey':_0x24261a['datasetKey'],'pk':_0x24261a[_0x46c2e0(0x102)],'fields':_0x24261a[_0x46c2e0(0x106)]?_0x24261a['allFields'][_0x46c2e0(0x105)](',')['map'](_0x3a860d=>_0x3a860d[_0x46c2e0(0xeb)]()):[]};})}};}};
1
+ const a30_0x32d483=a30_0x3251;(function(_0x291394,_0x34aaf6){const _0x31244b=a30_0x3251,_0x1d3c60=_0x291394();while(!![]){try{const _0x13337a=parseInt(_0x31244b(0x188))/0x1*(-parseInt(_0x31244b(0x179))/0x2)+-parseInt(_0x31244b(0x177))/0x3*(-parseInt(_0x31244b(0x185))/0x4)+parseInt(_0x31244b(0x175))/0x5+parseInt(_0x31244b(0x16e))/0x6*(parseInt(_0x31244b(0x17e))/0x7)+parseInt(_0x31244b(0x180))/0x8+parseInt(_0x31244b(0x17c))/0x9*(-parseInt(_0x31244b(0x172))/0xa)+-parseInt(_0x31244b(0x16f))/0xb*(parseInt(_0x31244b(0x18d))/0xc);if(_0x13337a===_0x34aaf6)break;else _0x1d3c60['push'](_0x1d3c60['shift']());}catch(_0x523598){_0x1d3c60['push'](_0x1d3c60['shift']());}}}(a30_0x25a0,0x28d75));function a30_0x25a0(){const _0x48bdb3=['30gbSzzg','11LzaCbk','trim','pkField','3304430ylePWf','read','dbtableConfig','867590LOJnZQ','table-name','12lTDqyf','map','173034LWIGIs','length','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','9RyDiOH','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','399623gETRhn','split','1689096EFwRep','allFields','list','datasetKey','tableName','23656pmFPDo','dataset','name','2JHKwvE','source','appCode','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','str','275928AGCvBa','string','code'];a30_0x25a0=function(){return _0x48bdb3;};return a30_0x25a0();}function a30_0x3251(_0x3760d1,_0x4d9c58){_0x3760d1=_0x3760d1-0x16d;const _0x25a014=a30_0x25a0();let _0x32512c=_0x25a014[_0x3760d1];return _0x32512c;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x32d483(0x186),'command':a30_0x32d483(0x182),'description':a30_0x32d483(0x18b),'risk':a30_0x32d483(0x173),'flags':[{'name':'name','type':'string','description':a30_0x32d483(0x17b)},{'name':a30_0x32d483(0x176),'type':a30_0x32d483(0x18e),'description':a30_0x32d483(0x17d)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x43e8e1){const _0x1b3021=a30_0x32d483,_0x251ea3=_0x43e8e1[_0x1b3021(0x18c)](_0x1b3021(0x187)),_0x192224=_0x43e8e1['str'](_0x1b3021(0x16d)),_0x31e64e=_0x43e8e1[_0x1b3021(0x18c)]('table-name'),_0x5d686d=await listDatasets(_0x43e8e1[_0x1b3021(0x18a)],{..._0x251ea3&&{'name':_0x251ea3},..._0x192224&&{'code':_0x192224},..._0x31e64e&&{'tableName':_0x31e64e}});return{'ok':!![],'data':{'total':_0x5d686d[_0x1b3021(0x17a)],'datasets':_0x5d686d[_0x1b3021(0x178)](_0x18a092=>{const _0x2f8d53=_0x1b3021,_0x43fc88=_0x18a092[_0x2f8d53(0x174)]??{};return{'id':_0x18a092['id'],'code':_0x18a092[_0x2f8d53(0x16d)],'name':_0x18a092[_0x2f8d53(0x187)],'source':_0x18a092[_0x2f8d53(0x189)],'description':_0x18a092['description'],'table':_0x43fc88[_0x2f8d53(0x184)],'datasetKey':_0x43fc88[_0x2f8d53(0x183)],'pk':_0x43fc88[_0x2f8d53(0x171)],'fields':_0x43fc88[_0x2f8d53(0x181)]?_0x43fc88[_0x2f8d53(0x181)][_0x2f8d53(0x17f)](',')[_0x2f8d53(0x178)](_0x5a67db=>_0x5a67db[_0x2f8d53(0x170)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a31_0x62ada2=a31_0xb9b2;function a31_0xb9b2(_0x2dc042,_0x542d63){_0x2dc042=_0x2dc042-0x10c;const _0x5c8c2a=a31_0x5c8c();let _0xb9b2b7=_0x5c8c2a[_0x2dc042];return _0xb9b2b7;}(function(_0x29350e,_0x555276){const _0x18d119=a31_0xb9b2,_0x1ee691=_0x29350e();while(!![]){try{const _0x45bdaa=-parseInt(_0x18d119(0x110))/0x1*(parseInt(_0x18d119(0x11a))/0x2)+-parseInt(_0x18d119(0x11c))/0x3+parseInt(_0x18d119(0x10e))/0x4*(parseInt(_0x18d119(0x111))/0x5)+parseInt(_0x18d119(0x10f))/0x6+parseInt(_0x18d119(0x116))/0x7+parseInt(_0x18d119(0x118))/0x8+parseInt(_0x18d119(0x113))/0x9*(-parseInt(_0x18d119(0x10c))/0xa);if(_0x45bdaa===_0x555276)break;else _0x1ee691['push'](_0x1ee691['shift']());}catch(_0x168a87){_0x1ee691['push'](_0x1ee691['shift']());}}}(a31_0x5c8c,0xd240c));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x62ada2(0x112);export function formatDatasetSdkMarkdown(_0x2dde9c){const _0x586666=a31_0x62ada2,_0x4281bd=typeof _0x2dde9c===_0x586666(0x11d)?_0x2dde9c[_0x586666(0x11b)]():'';return _0x4281bd||DEFAULT_MARKDOWN;}function a31_0x5c8c(){const _0xbfecff=['appCode','6481587gGUpIK','sdk-doc','3987160hzlAEn','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2iXnNBv','trim','417258qKYVai','string','9830xJiWcq','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','4bvulBN','7738134AnGYnm','1537609WGHlIN','3488765dbbuWX','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','8001oyqiHw','code'];a31_0x5c8c=function(){return _0xbfecff;};return a31_0x5c8c();}export const datasetSdkDoc={'service':'dataset','command':a31_0x62ada2(0x117),'description':a31_0x62ada2(0x10d),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x62ada2(0x119)}],async 'execute'(_0x133c05){const _0x51aaa1=a31_0x62ada2,_0x59c9a1=_0x133c05['str'](_0x51aaa1(0x114)),_0x3cf274=await getDatasetSdkUsageDoc(_0x59c9a1,_0x133c05[_0x51aaa1(0x115)]);return{'ok':!![],'data':{'code':_0x59c9a1,'appCode':_0x133c05[_0x51aaa1(0x115)],'markdown':formatDatasetSdkMarkdown(_0x3cf274)}};}};
1
+ const a31_0x4a287f=a31_0x46a0;(function(_0x1dedca,_0xea872e){const _0x2a7327=a31_0x46a0,_0x52f0ee=_0x1dedca();while(!![]){try{const _0x33ce77=parseInt(_0x2a7327(0x136))/0x1*(-parseInt(_0x2a7327(0x137))/0x2)+-parseInt(_0x2a7327(0x13f))/0x3+-parseInt(_0x2a7327(0x13e))/0x4*(parseInt(_0x2a7327(0x13b))/0x5)+parseInt(_0x2a7327(0x134))/0x6+-parseInt(_0x2a7327(0x139))/0x7*(-parseInt(_0x2a7327(0x13c))/0x8)+parseInt(_0x2a7327(0x143))/0x9*(parseInt(_0x2a7327(0x138))/0xa)+parseInt(_0x2a7327(0x135))/0xb;if(_0x33ce77===_0xea872e)break;else _0x52f0ee['push'](_0x52f0ee['shift']());}catch(_0x31b3a2){_0x52f0ee['push'](_0x52f0ee['shift']());}}}(a31_0x14b8,0xd33c8));function a31_0x14b8(){const _0x32e18e=['28iKTnoW','8141320TJsBIO','56TFVmeD','str','5JNUrsz','175040Dovlvo','trim','1694148zxNzph','4248651QDleDB','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','code','9snyskF','appCode','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','read','string','8981538uwJpnh','8584807CbQAMS','40111WxeVbZ'];a31_0x14b8=function(){return _0x32e18e;};return a31_0x14b8();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a31_0x46a0(_0x5e96fd,_0x5b86c0){_0x5e96fd=_0x5e96fd-0x132;const _0x14b8c8=a31_0x14b8();let _0x46a07c=_0x14b8c8[_0x5e96fd];return _0x46a07c;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x4a287f(0x145);export function formatDatasetSdkMarkdown(_0x15a448){const _0x5ae1d3=a31_0x4a287f,_0x2a1451=typeof _0x15a448===_0x5ae1d3(0x133)?_0x15a448[_0x5ae1d3(0x13d)]():'';return _0x2a1451||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':'sdk-doc','description':a31_0x4a287f(0x141),'risk':a31_0x4a287f(0x132),'flags':[{...CODE_FLAG,'description':a31_0x4a287f(0x140)}],async 'execute'(_0x1ed9fe){const _0x340097=a31_0x4a287f,_0x57205b=_0x1ed9fe[_0x340097(0x13a)](_0x340097(0x142)),_0x25f059=await getDatasetSdkUsageDoc(_0x57205b,_0x1ed9fe['appCode']);return{'ok':!![],'data':{'code':_0x57205b,'appCode':_0x1ed9fe[_0x340097(0x144)],'markdown':formatDatasetSdkMarkdown(_0x25f059)}};}};
@@ -1 +1 @@
1
- const a32_0x149a77=a32_0x5c76;(function(_0x23ae03,_0x257383){const _0x58cb8c=a32_0x5c76,_0x5d9f5b=_0x23ae03();while(!![]){try{const _0x55b25b=parseInt(_0x58cb8c(0x106))/0x1+parseInt(_0x58cb8c(0xf9))/0x2+-parseInt(_0x58cb8c(0xf6))/0x3*(parseInt(_0x58cb8c(0xf8))/0x4)+parseInt(_0x58cb8c(0xeb))/0x5*(parseInt(_0x58cb8c(0x148))/0x6)+-parseInt(_0x58cb8c(0x133))/0x7*(-parseInt(_0x58cb8c(0x14a))/0x8)+parseInt(_0x58cb8c(0x111))/0x9+-parseInt(_0x58cb8c(0x113))/0xa*(parseInt(_0x58cb8c(0x10d))/0xb);if(_0x55b25b===_0x257383)break;else _0x5d9f5b['push'](_0x5d9f5b['shift']());}catch(_0x355cd3){_0x5d9f5b['push'](_0x5d9f5b['shift']());}}}(a32_0x2028,0x3c95d));import a32_0xf2be34 from'chalk';function a32_0x5c76(_0x1cc85b,_0x33c8a9){_0x1cc85b=_0x1cc85b-0xe8;const _0x20284d=a32_0x2028();let _0x5c763b=_0x20284d[_0x1cc85b];return _0x5c763b;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a32_0x2028(){const _0x482858=['projectConfig','serviceCode','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','commandCount','globalConfig','check','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','skillVersion','\x20\x20Config\x20Files','join','message','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20\x20Service\x20Tree','✗\x20Invalid','\x20\x20Repair\x20project:\x20\x20','version','18ZMfyxa','(unnamed)','6192booZYB','read','filter','\x20\x20Country/Region\x20Configuration','(not\x20found)','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','padEnd','\x20\x20Skill\x20Version:\x20\x20\x20','red','call','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','state','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','serviceCount','inherit','region','status','missing','\x20\x20Package\x20Version:\x20','source','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','294285dkUIKX','reason','\x20\x20─','\x20\x20Merged\x20Config','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Global','raw','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','project','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','1434XvkHrq','(removed\x20—\x20cookie\x20auth\x20disabled)','436NwWLhN','666298jpqibE','\x20commands)','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','ClientAk','yellow','✗\x20Invalid\x20JSON','arch','doctor','\x20\x20auth\x20(effective):\x20','platform','Project','\x20\x20Auth','74178smRShu','\x20config\x20delete\x20inherit\x20--global','pageSize','currentApp','riskLevel','\x20\x20skillDomain:\x20\x20\x20\x20\x20','log','5334010nppxbv','gray','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','3061827WXWzCH','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','20HXpwAL','empty','includes','(none)','(missing)','defaultApp','locale','(not\x20set)','\x20\x20Installed\x20Path:\x20\x20','\x20+\x20','name','hasOwnProperty','green','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','registryPath','current','✓\x20current','ignored\x20in\x20','accessKey','\x20Imported\x20from:\x20','bold','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20Session\x20check:\x20\x20\x20','routing','\x20\x20Legacy\x20inherit:\x20\x20\x20','⚠\x20Empty','(default:\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20config\x20delete\x20inherit','Diagnose\x20CLI\x20configuration\x20and\x20environment','3129wynezp','prototype','verbose'];a32_0x2028=function(){return _0x482858;};return a32_0x2028();}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(_0x47139a){const _0x70ea=a32_0x5c76,_0x409f06=getCliVersion(),_0x160f9d=buildConfigFromFlags({});let _0x372f47,_0x9740f5;try{_0x372f47=normalizeLovrabetRegion(_0x160f9d[_0x70ea(0xf1)][_0x70ea(0x15f)]);}catch(_0x266477){_0x9740f5=_0x266477 instanceof Error?_0x266477:new Error(String(_0x266477));}let _0x28de2a;if(!_0x9740f5)try{await initGlobalEnvironment(_0x160f9d);}catch(_0x5f3f8f){_0x28de2a=_0x5f3f8f instanceof Error?_0x5f3f8f:new Error(String(_0x5f3f8f));}console['log'](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](CLI_BIN_NAME+'\x20doctor')),console['log'](a32_0xf2be34[_0x70ea(0x10e)]('─'['repeat'](0x32))),console['log'](_0x70ea(0x110)+_0x409f06),console[_0x70ea(0x10c)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x70ea(0x147)]),console[_0x70ea(0x10c)](_0x70ea(0xf4)+process[_0x70ea(0x103)]+'\x20'+process[_0x70ea(0x100)]);const _0x2e1b46=inspectBuiltinSkill();console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Built-in\x20Skill')),console['log'](a32_0xf2be34['gray'](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x156)+(_0x2e1b46[_0x70ea(0x15a)]===_0x70ea(0x122)?a32_0xf2be34[_0x70ea(0x11f)](_0x70ea(0x123)):a32_0xf2be34[_0x70ea(0x154)]('✗\x20'+_0x2e1b46[_0x70ea(0x15a)]))),console['log'](_0x70ea(0xe8)+_0x2e1b46['packageVersion']),console[_0x70ea(0x10c)](_0x70ea(0x153)+(_0x2e1b46[_0x70ea(0x13e)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x117)))),console[_0x70ea(0x10c)](_0x70ea(0x11b)+(_0x2e1b46['installedPath']||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x14e))));_0x2e1b46['state']!==_0x70ea(0x122)&&console['log'](_0x70ea(0xea)+_0x2e1b46['repairCommand']);_0x2e1b46[_0x70ea(0xec)]&&console[_0x70ea(0x10c)](_0x70ea(0xfb)+_0x2e1b46[_0x70ea(0xec)]);console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34['bold'](_0x70ea(0x13f))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e)));const _0x2e32b8=getGlobalConfigPath(),_0x99c6f5=getProjectConfigPath();console['log'](_0x70ea(0x112)+(_0x2e32b8||a32_0xf2be34[_0x70ea(0x10e)]('(not\x20found)'))),console[_0x70ea(0x10c)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x99c6f5||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x14e)))),console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Config\x20JSON')),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)['repeat'](0x1e)));const _0x5d72e9=(_0x4a7ca0,_0x324315)=>{const _0x2293da=_0x70ea;if(!_0x324315){console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34['gray'](_0x2293da(0x130)));return;}const _0x37c03d=inspectCliConfigJsonFile(_0x324315);if(_0x37c03d[_0x2293da(0x160)]==='ok')console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x11f)]('✓\x20Valid\x20JSON'));else{if(_0x37c03d[_0x2293da(0x160)]===_0x2293da(0x114))console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0xfe)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x37c03d[_0x2293da(0x160)]===_0x2293da(0x161)?console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0['padEnd'](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x10e)](_0x2293da(0x117))):(console[_0x2293da(0x10c)]('\x20\x20'+_0x4a7ca0[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x154)](_0x2293da(0xff))),console[_0x2293da(0x10c)]('\x20\x20'+''[_0x2293da(0x152)](0x11)+'\x20'+a32_0xf2be34[_0x2293da(0x154)](_0x37c03d[_0x2293da(0x141)])));}};_0x5d72e9(_0x70ea(0xf0),_0x2e32b8),_0x5d72e9(_0x70ea(0x104),_0x99c6f5);const _0x5f5c99=loadRawConfigLayers(),_0x56411a=[Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x13a)],'inherit')?'global':null,Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x15e))?_0x70ea(0xf3):null][_0x70ea(0x14c)](Boolean);_0x56411a[_0x70ea(0xfc)]>0x0&&(console[_0x70ea(0x10c)](_0x70ea(0x12c)+a32_0xf2be34[_0x70ea(0xfe)](_0x70ea(0x124)+_0x56411a[_0x70ea(0x140)](_0x70ea(0x11c))+'\x20config')),_0x56411a[_0x70ea(0x115)](_0x70ea(0xf3))&&console[_0x70ea(0x10c)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x70ea(0x131)),_0x56411a['includes']('global')&&console[_0x70ea(0x10c)](_0x70ea(0x150)+CLI_BIN_NAME+_0x70ea(0x107)));_0x28de2a&&(console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)]('\x20\x20Routing\x20Configuration')),console['log'](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34['red']('✗\x20Invalid')),console[_0x70ea(0x10c)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28de2a['message']),Object[_0x70ea(0x134)]['hasOwnProperty'][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x12b))&&console[_0x70ea(0x10c)](_0x70ea(0x146)+CLI_BIN_NAME+_0x70ea(0xf5)),Object[_0x70ea(0x134)][_0x70ea(0x11e)]['call'](_0x5f5c99[_0x70ea(0x13a)],_0x70ea(0x12b))&&console[_0x70ea(0x10c)](_0x70ea(0x14f)+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));_0x9740f5&&(console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x14d))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x145))),console[_0x70ea(0x10c)](_0x70ea(0xfb)+_0x9740f5[_0x70ea(0x141)]),Object[_0x70ea(0x134)][_0x70ea(0x11e)]['call'](_0x5f5c99[_0x70ea(0x136)],_0x70ea(0x15f))&&console[_0x70ea(0x10c)](_0x70ea(0x146)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x70ea(0x134)][_0x70ea(0x11e)][_0x70ea(0x155)](_0x5f5c99[_0x70ea(0x13a)],_0x70ea(0x15f))&&console[_0x70ea(0x10c)](_0x70ea(0x14f)+CLI_BIN_NAME+'\x20config\x20init'));console[_0x70ea(0x10c)](),console['log'](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0xee))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console[_0x70ea(0x10c)](_0x70ea(0x13c)+(_0x160f9d[_0x70ea(0x159)]||a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x11a)))),console[_0x70ea(0x10c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x372f47??a32_0xf2be34[_0x70ea(0x154)]('(invalid)'))),console['log'](_0x70ea(0x10f)+_0x160f9d[_0x70ea(0x119)]),console[_0x70ea(0x10c)](_0x70ea(0x158)+(_0x160f9d[_0x70ea(0x118)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x116)))),console['log'](_0x70ea(0xf2)+(_0x160f9d[_0x70ea(0x109)]||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x116)))),console[_0x70ea(0x10c)](_0x70ea(0x120)+(_0x160f9d['format']||a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0x12e)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x70ea(0x10c)](_0x70ea(0x12f)+(_0x160f9d[_0x70ea(0x108)]??a32_0xf2be34[_0x70ea(0x10e)]('(default)'))),console['log'](_0x70ea(0xef)+_0x160f9d[_0x70ea(0x10a)]),console[_0x70ea(0x10c)](_0x70ea(0x128)+_0x160f9d[_0x70ea(0x135)]),console[_0x70ea(0x10c)](_0x70ea(0x102)+AUTH_MODE[_0x70ea(0xfd)]),console[_0x70ea(0x10c)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x160f9d[_0x70ea(0x125)]?a32_0xf2be34[_0x70ea(0x11f)](_0x70ea(0x15c)+_0x160f9d['accessKey'][_0x70ea(0xfc)]+')'):a32_0xf2be34['gray'](_0x70ea(0x116)))),console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x157))),console[_0x70ea(0x10c)](a32_0xf2be34['gray'](_0x70ea(0xed)['repeat'](0x1e)));_0x28de2a||_0x9740f5?console[_0x70ea(0x10c)](_0x70ea(0x142)+a32_0xf2be34[_0x70ea(0x154)](_0x70ea(0x138))):(console[_0x70ea(0x10c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x70ea(0x10c)](_0x70ea(0x151)+getRuntimeDomain()),console[_0x70ea(0x10c)](_0x70ea(0x10b)+getSkillDomain()),console[_0x70ea(0x10c)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??'not\x20configured')));console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34['bold'](_0x70ea(0x144))),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x10e)]('\x20\x20─'[_0x70ea(0x129)](0x1e)));const _0x58414a=inspectServiceRegistry();console[_0x70ea(0x10c)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58414a[_0x70ea(0x121)]),console[_0x70ea(0x10c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x58414a)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58414a[_0x70ea(0x15d)]),console[_0x70ea(0x10c)](_0x70ea(0x15b)+_0x58414a[_0x70ea(0x139)]);for(const _0x109f81 of _0x58414a['services']){console['log']('\x20\x20'+(_0x109f81[_0x70ea(0x137)]+':')[_0x70ea(0x152)](0x11)+'\x20'+(_0x109f81[_0x70ea(0x11d)]||a32_0xf2be34['gray'](_0x70ea(0x149)))+'\x20('+_0x109f81['commandCount']+_0x70ea(0xfa)),console[_0x70ea(0x10c)]('\x20\x20'+''[_0x70ea(0x152)](0x11)+_0x70ea(0x126)+_0x109f81[_0x70ea(0xe9)][_0x70ea(0x13d)]);}return console[_0x70ea(0x10c)](),console[_0x70ea(0x10c)](a32_0xf2be34[_0x70ea(0x127)](_0x70ea(0x105))),console['log'](a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xed)[_0x70ea(0x129)](0x1e))),console['log']('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xf2be34[_0x70ea(0x11f)](AUTH_MODE[_0x70ea(0xfd)]+'\x20(accessKey)')),console['log'](_0x70ea(0x12a)+a32_0xf2be34[_0x70ea(0x10e)](_0x70ea(0xf7))),console[_0x70ea(0x10c)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1153e3){const _0x59c68b=a32_0x5c76;if(_0x1153e3[_0x59c68b(0x160)]==='ok')return a32_0xf2be34['green'](_0x59c68b(0x143));if(_0x1153e3[_0x59c68b(0x160)]===_0x59c68b(0x161))return a32_0xf2be34['gray'](_0x59c68b(0x14e));if(_0x1153e3[_0x59c68b(0x160)]===_0x59c68b(0x114))return a32_0xf2be34[_0x59c68b(0xfe)](_0x59c68b(0x12d));return a32_0xf2be34[_0x59c68b(0x154)]('✗\x20Invalid'+(_0x1153e3[_0x59c68b(0x141)]?':\x20'+_0x1153e3[_0x59c68b(0x141)]:''));}export const doctorDefinition={'service':a32_0x149a77(0x101),'command':a32_0x149a77(0x13b),'description':a32_0x149a77(0x132),'risk':a32_0x149a77(0x14b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a32_0x252cc1=a32_0x47cc;(function(_0x153039,_0x404bff){const _0x1002b2=a32_0x47cc,_0xe8fc50=_0x153039();while(!![]){try{const _0x363128=parseInt(_0x1002b2(0x1c8))/0x1+parseInt(_0x1002b2(0x1a5))/0x2+-parseInt(_0x1002b2(0x180))/0x3+-parseInt(_0x1002b2(0x16c))/0x4*(parseInt(_0x1002b2(0x198))/0x5)+parseInt(_0x1002b2(0x1a7))/0x6+-parseInt(_0x1002b2(0x173))/0x7+-parseInt(_0x1002b2(0x177))/0x8*(-parseInt(_0x1002b2(0x19e))/0x9);if(_0x363128===_0x404bff)break;else _0xe8fc50['push'](_0xe8fc50['shift']());}catch(_0x3238e7){_0xe8fc50['push'](_0xe8fc50['shift']());}}}(a32_0x2958,0x36d64));import a32_0xafc843 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a32_0x47cc(_0x5b2f2d,_0xf4f62a){_0x5b2f2d=_0x5b2f2d-0x160;const _0x2958b6=a32_0x2958();let _0x47cc02=_0x2958b6[_0x5b2f2d];return _0x47cc02;}async function execute(_0x2b6424){const _0x81763e=a32_0x47cc,_0x1e6272=getCliVersion(),_0x1ee557=buildConfigFromFlags({});let _0x2b5351,_0x1f9773;try{_0x2b5351=normalizeLovrabetRegion(_0x1ee557[_0x81763e(0x1d2)][_0x81763e(0x1ab)]);}catch(_0x50fcb2){_0x1f9773=_0x50fcb2 instanceof Error?_0x50fcb2:new Error(String(_0x50fcb2));}let _0x17bf5e;if(!_0x1f9773)try{await initGlobalEnvironment(_0x1ee557);}catch(_0x78fece){_0x17bf5e=_0x78fece instanceof Error?_0x78fece:new Error(String(_0x78fece));}console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)](CLI_BIN_NAME+_0x81763e(0x184))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('─'[_0x81763e(0x17a)](0x32))),console[_0x81763e(0x1a6)](_0x81763e(0x1bf)+_0x1e6272),console[_0x81763e(0x1a6)](_0x81763e(0x1d1)+process[_0x81763e(0x19f)]),console[_0x81763e(0x1a6)](_0x81763e(0x1b1)+process[_0x81763e(0x19a)]+'\x20'+process[_0x81763e(0x170)]);const _0x5e482e=inspectBuiltinSkill();console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x190))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console['log'](_0x81763e(0x1ae)+(_0x5e482e[_0x81763e(0x1a0)]===_0x81763e(0x17c)?a32_0xafc843[_0x81763e(0x1c4)](_0x81763e(0x1cc)):a32_0xafc843[_0x81763e(0x16d)]('✗\x20'+_0x5e482e[_0x81763e(0x1a0)]))),console[_0x81763e(0x1a6)]('\x20\x20Package\x20Version:\x20'+_0x5e482e[_0x81763e(0x160)]),console[_0x81763e(0x1a6)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x5e482e['skillVersion']||a32_0xafc843[_0x81763e(0x1c5)]('(missing)'))),console[_0x81763e(0x1a6)](_0x81763e(0x164)+(_0x5e482e[_0x81763e(0x166)]||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6))));_0x5e482e[_0x81763e(0x1a0)]!==_0x81763e(0x17c)&&console['log'](_0x81763e(0x19d)+_0x5e482e[_0x81763e(0x1d0)]);_0x5e482e[_0x81763e(0x18e)]&&console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x5e482e[_0x81763e(0x18e)]);console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1c1))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e)));const _0x240aa7=getGlobalConfigPath(),_0x6e1aed=getProjectConfigPath();console[_0x81763e(0x1a6)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x240aa7||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console[_0x81763e(0x1a6)](_0x81763e(0x16b)+(_0x6e1aed||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1d6)))),console['log'](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Config\x20JSON')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));const _0x17777a=(_0x2f1614,_0x337e63)=>{const _0x5bf94a=_0x81763e;if(!_0x337e63){console['log']('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c5)](_0x5bf94a(0x18b)));return;}const _0x1a970d=inspectCliConfigJsonFile(_0x337e63);if(_0x1a970d[_0x5bf94a(0x1b3)]==='ok')console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1c4)](_0x5bf94a(0x169)));else{if(_0x1a970d[_0x5bf94a(0x1b3)]===_0x5bf94a(0x1c0))console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x1a3)](_0x5bf94a(0x1bb)));else _0x1a970d['status']===_0x5bf94a(0x168)?console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843['gray'](_0x5bf94a(0x1b8))):(console[_0x5bf94a(0x1a6)]('\x20\x20'+_0x2f1614['padEnd'](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x5bf94a(0x186))),console[_0x5bf94a(0x1a6)]('\x20\x20'+''[_0x5bf94a(0x16e)](0x11)+'\x20'+a32_0xafc843[_0x5bf94a(0x16d)](_0x1a970d[_0x5bf94a(0x174)])));}};_0x17777a(_0x81763e(0x193),_0x240aa7),_0x17777a(_0x81763e(0x1b6),_0x6e1aed);const _0x2596ff=loadRawConfigLayers(),_0x573e42=[Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'inherit')?'global':null,Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x161)],_0x81763e(0x172))?_0x81763e(0x188):null][_0x81763e(0x1d8)](Boolean);_0x573e42[_0x81763e(0x17b)]>0x0&&(console[_0x81763e(0x1a6)](_0x81763e(0x18c)+a32_0xafc843['yellow'](_0x81763e(0x185)+_0x573e42[_0x81763e(0x1bc)]('\x20+\x20')+_0x81763e(0x179))),_0x573e42[_0x81763e(0x189)](_0x81763e(0x188))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a1)+CLI_BIN_NAME+_0x81763e(0x1b5)),_0x573e42[_0x81763e(0x189)](_0x81763e(0x171))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a2)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x17bf5e&&(console['log'](),console['log'](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ac))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x17bf5e['message']),Object[_0x81763e(0x16a)]['hasOwnProperty']['call'](_0x2596ff[_0x81763e(0x161)],'routing')&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff[_0x81763e(0x192)],'routing')&&console['log']('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x81763e(0x194)));_0x1f9773&&(console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d5))),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0xafc843[_0x81763e(0x16d)](_0x81763e(0x1aa))),console[_0x81763e(0x1a6)](_0x81763e(0x197)+_0x1f9773[_0x81763e(0x174)]),Object[_0x81763e(0x16a)]['hasOwnProperty'][_0x81763e(0x1d4)](_0x2596ff['projectConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x1a4)+CLI_BIN_NAME+'\x20config\x20delete\x20region'),Object[_0x81763e(0x16a)][_0x81763e(0x18d)][_0x81763e(0x1d4)](_0x2596ff['globalConfig'],_0x81763e(0x1ab))&&console[_0x81763e(0x1a6)](_0x81763e(0x19c)+CLI_BIN_NAME+_0x81763e(0x1b0)));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1d7))),console['log'](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x1d3)+(_0x1ee557[_0x81763e(0x1ce)]||a32_0xafc843['red'](_0x81763e(0x195)))),console['log'](_0x81763e(0x1a9)+(_0x2b5351??a32_0xafc843[_0x81763e(0x16d)]('(invalid)'))),console[_0x81763e(0x1a6)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x1cb)]),console[_0x81763e(0x1a6)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1ee557['defaultApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](_0x81763e(0x199)+(_0x1ee557['currentApp']||a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1ee557[_0x81763e(0x1cd)]||a32_0xafc843['gray'](_0x81763e(0x1ca)+DEFAULT_CONFIG_VALUES[_0x81763e(0x1cd)]+')'))),console[_0x81763e(0x1a6)](_0x81763e(0x187)+(_0x1ee557[_0x81763e(0x1c6)]??a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1cf)))),console[_0x81763e(0x1a6)](_0x81763e(0x1c2)+_0x1ee557[_0x81763e(0x17f)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1ee557[_0x81763e(0x182)]),console['log'](_0x81763e(0x1b2)+AUTH_MODE[_0x81763e(0x18a)]),console['log'](_0x81763e(0x191)+(_0x1ee557[_0x81763e(0x163)]?a32_0xafc843[_0x81763e(0x1c4)]('(set,\x20length='+_0x1ee557['accessKey'][_0x81763e(0x17b)]+')'):a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1be)))),console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1af)](_0x81763e(0x1ba))),console['log'](a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x176)[_0x81763e(0x17a)](0x1e)));_0x17bf5e||_0x1f9773?console['log'](_0x81763e(0x181)+a32_0xafc843[_0x81763e(0x16d)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x81763e(0x1a6)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1c9)+getUserDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x1b7)+getRuntimeDomain()),console[_0x81763e(0x1a6)](_0x81763e(0x196)+getSkillDomain()),console[_0x81763e(0x1a6)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x81763e(0x183))));console[_0x81763e(0x1a6)](),console[_0x81763e(0x1a6)](a32_0xafc843['bold']('\x20\x20Service\x20Tree')),console['log'](a32_0xafc843['gray']('\x20\x20─'['repeat'](0x1e)));const _0x2853a6=inspectServiceRegistry();console[_0x81763e(0x1a6)](_0x81763e(0x1c3)+_0x2853a6[_0x81763e(0x17e)]),console[_0x81763e(0x1a6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x2853a6)),console[_0x81763e(0x1a6)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6['serviceCount']),console[_0x81763e(0x1a6)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2853a6[_0x81763e(0x165)]);for(const _0x30996f of _0x2853a6[_0x81763e(0x178)]){console[_0x81763e(0x1a6)]('\x20\x20'+(_0x30996f[_0x81763e(0x1b4)]+':')['padEnd'](0x11)+'\x20'+(_0x30996f[_0x81763e(0x175)]||a32_0xafc843[_0x81763e(0x1c5)]('(unnamed)'))+'\x20('+_0x30996f[_0x81763e(0x165)]+'\x20commands)'),console[_0x81763e(0x1a6)]('\x20\x20'+''[_0x81763e(0x16e)](0x11)+_0x81763e(0x167)+_0x30996f[_0x81763e(0x1a8)][_0x81763e(0x17d)]);}return console[_0x81763e(0x1a6)](),console['log'](a32_0xafc843[_0x81763e(0x1af)]('\x20\x20Auth')),console[_0x81763e(0x1a6)](a32_0xafc843[_0x81763e(0x1c5)]('\x20\x20─'[_0x81763e(0x17a)](0x1e))),console[_0x81763e(0x1a6)](_0x81763e(0x162)+a32_0xafc843[_0x81763e(0x1c4)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x81763e(0x1a6)](_0x81763e(0x1c7)+a32_0xafc843[_0x81763e(0x1c5)](_0x81763e(0x1b9))),console[_0x81763e(0x1a6)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x40ab44){const _0x23c0de=a32_0x47cc;if(_0x40ab44[_0x23c0de(0x1b3)]==='ok')return a32_0xafc843[_0x23c0de(0x1c4)]('✓\x20Loaded');if(_0x40ab44['status']==='missing')return a32_0xafc843[_0x23c0de(0x1c5)](_0x23c0de(0x1d6));if(_0x40ab44[_0x23c0de(0x1b3)]===_0x23c0de(0x1c0))return a32_0xafc843[_0x23c0de(0x1a3)](_0x23c0de(0x1bd));return a32_0xafc843[_0x23c0de(0x16d)](_0x23c0de(0x1aa)+(_0x40ab44[_0x23c0de(0x174)]?':\x20'+_0x40ab44['message']:''));}function a32_0x2958(){const _0x567d88=['\x20\x20Session\x20check:\x20\x20\x20','315460sIlWRx','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default:\x20','locale','✓\x20current','format','appCode','(default)','repairCommand','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','\x20\x20Country/Region\x20Configuration','(not\x20found)','\x20\x20Merged\x20Config','filter','packageVersion','projectConfig','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Installed\x20Path:\x20\x20','commandCount','installedPath','\x20Imported\x20from:\x20','missing','✓\x20Valid\x20JSON','prototype','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','716BwKiYJ','red','padEnd','read','arch','global','inherit','144865DPUMbp','message','name','\x20\x20─','2184792sbCQXH','services','\x20config','repeat','length','current','path','registryPath','riskLevel','1285944vXcxHd','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','not\x20configured','\x20doctor','ignored\x20in\x20','✗\x20Invalid\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','project','includes','ClientAk','(no\x20file)','\x20\x20Legacy\x20inherit:\x20\x20\x20','hasOwnProperty','reason','check','\x20\x20Built-in\x20Skill','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','globalConfig','Global','\x20config\x20delete\x20routing\x20--global','(not\x20set)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9745wJeOau','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','doctor','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9LewYoH','version','state','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','yellow','\x20\x20Repair\x20project:\x20\x20','264448zVgCSo','log','1812258OjCGxB','source','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','region','\x20\x20Routing\x20Configuration','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20config\x20init','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','status','serviceCode','\x20config\x20delete\x20inherit','Project','\x20\x20runtimeDomain:\x20\x20\x20','(missing)','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20API\x20Endpoints','⚠\x20Empty\x20(treated\x20as\x20{})','join','⚠\x20Empty','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','empty','\x20\x20Config\x20Files','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','green','gray','pageSize'];a32_0x2958=function(){return _0x567d88;};return a32_0x2958();}export const doctorDefinition={'service':a32_0x252cc1(0x19b),'command':a32_0x252cc1(0x18f),'description':a32_0x252cc1(0x1ad),'risk':a32_0x252cc1(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a33_0x2dbb73=a33_0x3ad4;(function(_0x5d94f3,_0x4ffdd4){const _0x137e94=a33_0x3ad4,_0x4301fb=_0x5d94f3();while(!![]){try{const _0x94bf92=parseInt(_0x137e94(0x1e2))/0x1+parseInt(_0x137e94(0x1cd))/0x2+-parseInt(_0x137e94(0x1ee))/0x3+-parseInt(_0x137e94(0x1de))/0x4*(-parseInt(_0x137e94(0x1e1))/0x5)+-parseInt(_0x137e94(0x1ea))/0x6+-parseInt(_0x137e94(0x1ec))/0x7*(-parseInt(_0x137e94(0x1d5))/0x8)+parseInt(_0x137e94(0x1e8))/0x9;if(_0x94bf92===_0x4ffdd4)break;else _0x4301fb['push'](_0x4301fb['shift']());}catch(_0xd65a96){_0x4301fb['push'](_0x4301fb['shift']());}}}(a33_0x3a15,0xe74da));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a33_0x3ad4(_0x165e3b,_0x6a47c6){_0x165e3b=_0x165e3b-0x1cb;const _0x3a153f=a33_0x3a15();let _0x3ad4af=_0x3a153f[_0x165e3b];return _0x3ad4af;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a33_0x2dbb73(0x1df),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x2dbb73(0x1df),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a33_0x2dbb73(0x1cb),'description':a33_0x2dbb73(0x1ce)},LONG_TERM_FLAG={'name':a33_0x2dbb73(0x1d7),'type':'boolean','description':a33_0x2dbb73(0x1e7)};function a33_0x3a15(){const _0x2e96df=['query-url','479848xIqObx','/client/uploadFile','long-term','path','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','upload','filePath\x20is\x20required.','File','24hGihkG','string','Preview:\x20upload\x20','237855cntcgJ','434671tOzemL','download','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','description','Uploaded\x20file:\x20','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','476046sVVFjx','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','4695138qwvbBR','bool','49HwAPER','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1038564mLurNn','body','boolean','appCode','1766542AWawkB','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','build','str','filepath','read','filePath'];a33_0x3a15=function(){return _0x2e96df;};return a33_0x3a15();}function requireFilePath(_0xc60da){const _0x215594=a33_0x2dbb73,_0x51db4b=_0xc60da['trim']();if(!_0x51db4b)throw CliErrors['validation'](_0x215594(0x1dc));return _0x51db4b;}const fileUpload={'service':'file','command':a33_0x2dbb73(0x1db),'description':a33_0x2dbb73(0x1e4),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x4a65cd){const _0x35f00a=a33_0x2dbb73,_0x207b36=requireRuntimeUploadFile(_0x4a65cd[_0x35f00a(0x1d0)]('file'),'File');return dryRun('POST',_0x35f00a(0x1d6))[_0x35f00a(0x1ef)]({'appCode':_0x4a65cd[_0x35f00a(0x1cc)],'multipart':{'file':_0x207b36}})[_0x35f00a(0x1e5)](_0x35f00a(0x1e0)+_0x207b36[_0x35f00a(0x1d8)]+'\x20to\x20runtime\x20app\x20'+_0x4a65cd['appCode'])[_0x35f00a(0x1cf)]();},async 'execute'(_0x58135e){const _0x397c6e=a33_0x2dbb73,_0x2e7134=requireRuntimeUploadFile(_0x58135e[_0x397c6e(0x1d0)](_0x397c6e(0x1da)),_0x397c6e(0x1dd)),_0x3d07a8=await uploadRuntimeFile(_0x58135e[_0x397c6e(0x1cc)],_0x2e7134[_0x397c6e(0x1d8)]);return{'ok':!![],'data':_0x3d07a8,'message':_0x3d07a8[_0x397c6e(0x1d3)]?_0x397c6e(0x1e6)+_0x3d07a8['filePath']+_0x397c6e(0x1d9):_0x397c6e(0x1ed)};}},fileQueryUrl={'service':a33_0x2dbb73(0x1da),'command':a33_0x2dbb73(0x1d4),'description':a33_0x2dbb73(0x1e9),'risk':a33_0x2dbb73(0x1d2),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x52e9ce){const _0x53be55=a33_0x2dbb73,_0x191010=requireFilePath(_0x52e9ce[_0x53be55(0x1d0)](_0x53be55(0x1d1))),_0x472f57=await queryRuntimeFileUrl(_0x191010,{'download':_0x52e9ce[_0x53be55(0x1eb)](_0x53be55(0x1e3)),'longTerm':_0x52e9ce['bool'](_0x53be55(0x1d7))});return{'ok':!![],'data':_0x472f57};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a33_0x1cf5bc=a33_0x3265;function a33_0x3265(_0x2cbe4d,_0x47e4a3){_0x2cbe4d=_0x2cbe4d-0x1be;const _0x5db669=a33_0x5db6();let _0x326519=_0x5db669[_0x2cbe4d];return _0x326519;}(function(_0xd9bcdf,_0x3276ab){const _0x59e466=a33_0x3265,_0x23a6bb=_0xd9bcdf();while(!![]){try{const _0x3e22d9=-parseInt(_0x59e466(0x1c2))/0x1*(parseInt(_0x59e466(0x1cc))/0x2)+parseInt(_0x59e466(0x1be))/0x3*(parseInt(_0x59e466(0x1da))/0x4)+-parseInt(_0x59e466(0x1c8))/0x5+-parseInt(_0x59e466(0x1cb))/0x6*(parseInt(_0x59e466(0x1ce))/0x7)+-parseInt(_0x59e466(0x1d1))/0x8*(-parseInt(_0x59e466(0x1e1))/0x9)+-parseInt(_0x59e466(0x1dd))/0xa+parseInt(_0x59e466(0x1d6))/0xb*(-parseInt(_0x59e466(0x1e2))/0xc);if(_0x3e22d9===_0x3276ab)break;else _0x23a6bb['push'](_0x23a6bb['shift']());}catch(_0x61cf6e){_0x23a6bb['push'](_0x23a6bb['shift']());}}}(a33_0x5db6,0x9af20));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a33_0x5db6(){const _0x2f6e54=['8hcgnvA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','query-url','appCode','string','11YAFRCH','path','upload','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2820CCPaIo','POST','filePath','666740UTlsPy','\x20to\x20runtime\x20app\x20','filePath\x20is\x20required.','long-term','6883506dcTRGV','2661144WhAtKg','trim','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','download','4809PIGAxR','build','/client/uploadFile','validation','145FEuiQT','File','read','file','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1582155JeTxKt','Uploaded\x20file:\x20','description','834uNUSNe','3118BkIwtG','filepath','21623YqzVsT','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','boolean'];a33_0x5db6=function(){return _0x2f6e54;};return a33_0x5db6();}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x1cf5bc(0x1c5),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x1cf5bc(0x1cd),'type':a33_0x1cf5bc(0x1d5),'required':!![],'description':a33_0x1cf5bc(0x1d2)},DOWNLOAD_FLAG={'name':a33_0x1cf5bc(0x1e5),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1e4)},LONG_TERM_FLAG={'name':a33_0x1cf5bc(0x1e0),'type':a33_0x1cf5bc(0x1d0),'description':a33_0x1cf5bc(0x1cf)};function requireFilePath(_0x35ab47){const _0x592821=a33_0x1cf5bc,_0x55144b=_0x35ab47[_0x592821(0x1e3)]();if(!_0x55144b)throw CliErrors[_0x592821(0x1c1)](_0x592821(0x1df));return _0x55144b;}const fileUpload={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d8),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x1cf5bc(0x1c4),'flags':[FILE_FLAG],async 'dryRun'(_0x562ea9){const _0x1862a7=a33_0x1cf5bc,_0x4abfb4=requireRuntimeUploadFile(_0x562ea9[_0x1862a7(0x1c6)](_0x1862a7(0x1c5)),_0x1862a7(0x1c3));return dryRun(_0x1862a7(0x1db),_0x1862a7(0x1c0))['body']({'appCode':_0x562ea9['appCode'],'multipart':{'file':_0x4abfb4}})[_0x1862a7(0x1ca)]('Preview:\x20upload\x20'+_0x4abfb4[_0x1862a7(0x1d7)]+_0x1862a7(0x1de)+_0x562ea9[_0x1862a7(0x1d4)])[_0x1862a7(0x1bf)]();},async 'execute'(_0xfbbe5e){const _0x5b63fe=a33_0x1cf5bc,_0x5b59ff=requireRuntimeUploadFile(_0xfbbe5e['str'](_0x5b63fe(0x1c5)),'File'),_0x176867=await uploadRuntimeFile(_0xfbbe5e['appCode'],_0x5b59ff[_0x5b63fe(0x1d7)]);return{'ok':!![],'data':_0x176867,'message':_0x176867[_0x5b63fe(0x1dc)]?_0x5b63fe(0x1c9)+_0x176867[_0x5b63fe(0x1dc)]+_0x5b63fe(0x1c7):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a33_0x1cf5bc(0x1c5),'command':a33_0x1cf5bc(0x1d3),'description':a33_0x1cf5bc(0x1d9),'risk':a33_0x1cf5bc(0x1c4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x2d56a4){const _0x44f916=a33_0x1cf5bc,_0x209ebc=requireFilePath(_0x2d56a4[_0x44f916(0x1c6)](_0x44f916(0x1cd))),_0x1e68ee=await queryRuntimeFileUrl(_0x209ebc,{'download':_0x2d56a4['bool'](_0x44f916(0x1e5)),'longTerm':_0x2d56a4['bool']('long-term')});return{'ok':!![],'data':_0x1e68ee};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a34_0x2611(){const _0x353419=['message','apps','validation','Imported\x20from\x20','13820808TbiNTW','string','yes','boolean','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Write\x20to\x20global\x20(~/','6318865KMGSpX','Invalid\x20env\x20\x22','\x20\x20default:\x20','1472680KulGlk','975WARLhh','710602fuGkPK','join','Skip\x20confirmation\x20when\x20overwriting','\x20\x20config:\x20\x20','object','defaultApp','Failed\x20to\x20parse\x20source\x20file:\x20','log','entries','newConfigFileName','file','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`.','appcode','\x22.\x20Allowed:\x20','env','\x20\x20appcode:\x20','global','project','Source\x20file\x20not\x20found:\x20','includes','cwd','546024TrkiQu','riskLevel','27402AXMIvl','582233oSBlOr',')\x20instead\x20of\x20project'];a34_0x2611=function(){return _0x353419;};return a34_0x2611();}const a34_0x598d0c=a34_0x4fca;(function(_0x30be4f,_0x374854){const _0x25a5ee=a34_0x4fca,_0x2a3fb8=_0x30be4f();while(!![]){try{const _0x85c360=parseInt(_0x25a5ee(0xdb))/0x1+parseInt(_0x25a5ee(0xec))/0x2+-parseInt(_0x25a5ee(0xd8))/0x3+-parseInt(_0x25a5ee(0xea))/0x4+parseInt(_0x25a5ee(0xeb))/0x5*(parseInt(_0x25a5ee(0xda))/0x6)+parseInt(_0x25a5ee(0xe7))/0x7+-parseInt(_0x25a5ee(0xe1))/0x8;if(_0x85c360===_0x374854)break;else _0x2a3fb8['push'](_0x2a3fb8['shift']());}catch(_0xffcb04){_0x2a3fb8['push'](_0x2a3fb8['shift']());}}}(a34_0x2611,0x6e997));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x598d0c(0xf6),'type':a34_0x598d0c(0xe2),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a34_0x598d0c(0xf8),'type':a34_0x598d0c(0xe2),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a34_0x598d0c(0xe2),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x598d0c(0xfc),'type':a34_0x598d0c(0xe4),'description':a34_0x598d0c(0xe6)+PRODUCT_CONFIG[a34_0x598d0c(0xf5)]+a34_0x598d0c(0xdc),'default':![]},{'name':a34_0x598d0c(0xe3),'type':a34_0x598d0c(0xe4),'description':a34_0x598d0c(0xee),'default':![]}];export async function runAppImport(_0x3c6f6f){const _0x5d891c=a34_0x598d0c,_0xfb0fa5=_0x3c6f6f[_0x5d891c(0xfc)]?'global':_0x5d891c(0xfd),_0x2a3982=resolveWriteConfigPath(_0xfb0fa5);await runFromImport(_0x3c6f6f,_0x2a3982);}async function runFromImport(_0x4b46fe,_0x39141e){const _0x1fed88=a34_0x598d0c,_0x106915=resolveFilePath(_0x4b46fe['file']);if(!existsSync(_0x106915))throw CliErrors[_0x1fed88(0xdf)](_0x1fed88(0xfe)+_0x106915);const _0x64798c=readSourceFile(_0x106915),_0x3d3a2b=convertToRuntimeConfig(_0x64798c);_0x4b46fe[_0x1fed88(0xf8)]&&(_0x3d3a2b[_0x1fed88(0xf8)]=String(_0x4b46fe[_0x1fed88(0xf8)]));_0x4b46fe['env']&&(_0x3d3a2b[_0x1fed88(0xfa)]=resolveImportEnv(_0x4b46fe));if(!_0x3d3a2b['appcode'])throw CliErrors['validation'](_0x1fed88(0xe5),_0x1fed88(0xf7));await writeImportConfig(_0x39141e,_0x3d3a2b,_0x4b46fe),console[_0x1fed88(0xf3)](_0x1fed88(0xe0)+_0x106915),console[_0x1fed88(0xf3)](_0x1fed88(0xef)+_0x39141e),console[_0x1fed88(0xf3)](_0x1fed88(0xfb)+_0x3d3a2b['appcode']);if(_0x3d3a2b[_0x1fed88(0xf1)])console[_0x1fed88(0xf3)](_0x1fed88(0xe9)+_0x3d3a2b[_0x1fed88(0xf1)]);}function a34_0x4fca(_0x731733,_0x3cc1d8){_0x731733=_0x731733-0xd8;const _0x2611fa=a34_0x2611();let _0x4fcab1=_0x2611fa[_0x731733];return _0x4fcab1;}function convertToRuntimeConfig(_0x6638f9){const _0x1cd465=a34_0x598d0c;if(_0x6638f9[_0x1cd465(0xde)]&&typeof _0x6638f9['apps']===_0x1cd465(0xf0))throw CliErrors[_0x1cd465(0xdf)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x4f2729={};for(const _0x1097a9 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x6638f9[_0x1097a9]!==undefined&&(_0x4f2729[_0x1097a9]=_0x6638f9[_0x1097a9]);}return!_0x4f2729['riskLevel']&&(_0x4f2729['riskLevel']=DEFAULT_CONFIG_VALUES[_0x1cd465(0xd9)]),_0x4f2729;}async function writeImportConfig(_0x55171c,_0x16f764,_0x36950d){const _0x10de10=a34_0x598d0c;let _0x3d1611={};existsSync(_0x55171c)&&!_0x36950d['yes']&&(_0x3d1611=readConfigFile(_0x55171c));for(const [_0x2dae99,_0x244289]of Object[_0x10de10(0xf4)](_0x16f764)){_0x244289!==undefined&&(_0x3d1611[_0x2dae99]=_0x244289);}if(_0x3d1611['app'])delete _0x3d1611['app'];writeConfigFile(_0x55171c,_0x3d1611);}function resolveFilePath(_0x146c05){const _0x48e073=a34_0x598d0c;return isAbsolute(_0x146c05)?_0x146c05:resolve(process[_0x48e073(0x100)](),_0x146c05);}function readSourceFile(_0x3eb04c){const _0x4c198b=a34_0x598d0c;try{const _0x23aeaf=readFileSync(_0x3eb04c,{'encoding':'utf8'});return JSON['parse'](_0x23aeaf);}catch(_0x16d183){throw CliErrors['validation'](_0x4c198b(0xf2)+_0x16d183[_0x4c198b(0xdd)]);}}function resolveImportEnv(_0x5523a1){const _0x589e57=a34_0x598d0c,_0x5917e5=_0x5523a1[_0x589e57(0xfa)];if(_0x5917e5===undefined||_0x5917e5==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x589e57(0xff)](_0x5917e5))throw CliErrors[_0x589e57(0xdf)](_0x589e57(0xe8)+_0x5917e5+_0x589e57(0xf9)+RUNTIME_ENV_VALUES[_0x589e57(0xed)](',\x20'));return _0x5917e5;}
1
+ function a34_0x33e5(){const _0x153876=['\x20\x20default:\x20','app','defaultApp','env','yes','cwd','Source\x20file\x20not\x20found:\x20','4364uRupcO','\x22.\x20Allowed:\x20','object','Failed\x20to\x20parse\x20source\x20file:\x20','1738940wIXIiG','58BgrfII','string','join','\x20\x20config:\x20\x20','newConfigFileName','2367xxNVRL','log','3368064ZtxXss','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`.','36quGwXS','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','734166PceflY','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','134465GrlWOl','file','Override\x20imported\x20default\x20appcode','boolean','utf8','project','6096bSRnZn','validation','global','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','\x20\x20appcode:\x20','parse','riskLevel','appcode','2469341KyXGtu','apps','message',')\x20instead\x20of\x20project','Override\x20imported\x20default\x20env','Imported\x20from\x20'];a34_0x33e5=function(){return _0x153876;};return a34_0x33e5();}const a34_0x49f4dd=a34_0x1622;(function(_0x40acca,_0x1b63b9){const _0x21bea2=a34_0x1622,_0x439b7a=_0x40acca();while(!![]){try{const _0x239fd8=parseInt(_0x21bea2(0x183))/0x1*(parseInt(_0x21bea2(0x17e))/0x2)+parseInt(_0x21bea2(0x161))/0x3+-parseInt(_0x21bea2(0x15f))/0x4*(parseInt(_0x21bea2(0x163))/0x5)+parseInt(_0x21bea2(0x15d))/0x6+-parseInt(_0x21bea2(0x171))/0x7+-parseInt(_0x21bea2(0x169))/0x8*(-parseInt(_0x21bea2(0x15b))/0x9)+-parseInt(_0x21bea2(0x182))/0xa;if(_0x239fd8===_0x1b63b9)break;else _0x439b7a['push'](_0x439b7a['shift']());}catch(_0x4f4ef5){_0x439b7a['push'](_0x439b7a['shift']());}}}(a34_0x33e5,0x58f2e));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x49f4dd(0x164),'type':'string','description':a34_0x49f4dd(0x160),'required':!![]},{'name':a34_0x49f4dd(0x170),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x165)},{'name':a34_0x49f4dd(0x17a),'type':a34_0x49f4dd(0x157),'description':a34_0x49f4dd(0x175),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x49f4dd(0x16b),'type':a34_0x49f4dd(0x166),'description':'Write\x20to\x20global\x20(~/'+PRODUCT_CONFIG[a34_0x49f4dd(0x15a)]+a34_0x49f4dd(0x174),'default':![]},{'name':a34_0x49f4dd(0x17b),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];function a34_0x1622(_0x4cbeaf,_0x46666f){_0x4cbeaf=_0x4cbeaf-0x157;const _0x33e5e9=a34_0x33e5();let _0x162279=_0x33e5e9[_0x4cbeaf];return _0x162279;}export async function runAppImport(_0x52f506){const _0x58c465=a34_0x49f4dd,_0x7d1067=_0x52f506['global']?_0x58c465(0x16b):_0x58c465(0x168),_0x4a22c3=resolveWriteConfigPath(_0x7d1067);await runFromImport(_0x52f506,_0x4a22c3);}async function runFromImport(_0x567cbe,_0x2139b5){const _0x397406=a34_0x49f4dd,_0x29c21f=resolveFilePath(_0x567cbe[_0x397406(0x164)]);if(!existsSync(_0x29c21f))throw CliErrors['validation'](_0x397406(0x17d)+_0x29c21f);const _0x5db2d4=readSourceFile(_0x29c21f),_0x5c844c=convertToRuntimeConfig(_0x5db2d4);_0x567cbe['appcode']&&(_0x5c844c[_0x397406(0x170)]=String(_0x567cbe[_0x397406(0x170)]));_0x567cbe[_0x397406(0x17a)]&&(_0x5c844c['env']=resolveImportEnv(_0x567cbe));if(!_0x5c844c[_0x397406(0x170)])throw CliErrors['validation'](_0x397406(0x162),_0x397406(0x15e));await writeImportConfig(_0x2139b5,_0x5c844c,_0x567cbe),console[_0x397406(0x15c)](_0x397406(0x176)+_0x29c21f),console[_0x397406(0x15c)](_0x397406(0x159)+_0x2139b5),console[_0x397406(0x15c)](_0x397406(0x16d)+_0x5c844c[_0x397406(0x170)]);if(_0x5c844c[_0x397406(0x179)])console['log'](_0x397406(0x177)+_0x5c844c[_0x397406(0x179)]);}function convertToRuntimeConfig(_0x183350){const _0x1fda33=a34_0x49f4dd;if(_0x183350[_0x1fda33(0x172)]&&typeof _0x183350[_0x1fda33(0x172)]===_0x1fda33(0x180))throw CliErrors[_0x1fda33(0x16a)](_0x1fda33(0x16c),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x4e99ca={};for(const _0x3ed6ed of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x183350[_0x3ed6ed]!==undefined&&(_0x4e99ca[_0x3ed6ed]=_0x183350[_0x3ed6ed]);}return!_0x4e99ca[_0x1fda33(0x16f)]&&(_0x4e99ca[_0x1fda33(0x16f)]=DEFAULT_CONFIG_VALUES[_0x1fda33(0x16f)]),_0x4e99ca;}async function writeImportConfig(_0x4fb80a,_0x527659,_0x30e281){const _0x56e370=a34_0x49f4dd;let _0x48bee4={};existsSync(_0x4fb80a)&&!_0x30e281[_0x56e370(0x17b)]&&(_0x48bee4=readConfigFile(_0x4fb80a));for(const [_0x4ca9de,_0x3470f4]of Object['entries'](_0x527659)){_0x3470f4!==undefined&&(_0x48bee4[_0x4ca9de]=_0x3470f4);}if(_0x48bee4[_0x56e370(0x178)])delete _0x48bee4[_0x56e370(0x178)];writeConfigFile(_0x4fb80a,_0x48bee4);}function resolveFilePath(_0x462348){const _0x267896=a34_0x49f4dd;return isAbsolute(_0x462348)?_0x462348:resolve(process[_0x267896(0x17c)](),_0x462348);}function readSourceFile(_0x144ed6){const _0x4b5bd8=a34_0x49f4dd;try{const _0x35979f=readFileSync(_0x144ed6,{'encoding':_0x4b5bd8(0x167)});return JSON[_0x4b5bd8(0x16e)](_0x35979f);}catch(_0x2bc25f){throw CliErrors[_0x4b5bd8(0x16a)](_0x4b5bd8(0x181)+_0x2bc25f[_0x4b5bd8(0x173)]);}}function resolveImportEnv(_0x20ee77){const _0x4f7029=a34_0x49f4dd,_0x33a89b=_0x20ee77[_0x4f7029(0x17a)];if(_0x33a89b===undefined||_0x33a89b==='')return DEFAULT_CONFIG_VALUES[_0x4f7029(0x17a)];if(!RUNTIME_ENV_VALUES['includes'](_0x33a89b))throw CliErrors[_0x4f7029(0x16a)]('Invalid\x20env\x20\x22'+_0x33a89b+_0x4f7029(0x17f)+RUNTIME_ENV_VALUES[_0x4f7029(0x158)](',\x20'));return _0x33a89b;}
@@ -1 +1 @@
1
- function a35_0x4b37(_0x275407,_0x37702b){_0x275407=_0x275407-0xa3;const _0x11dfc9=a35_0x11df();let _0x4b378d=_0x11dfc9[_0x275407];return _0x4b378d;}const a35_0x1c02ed=a35_0x4b37;(function(_0x49f62f,_0x355632){const _0x2dcefc=a35_0x4b37,_0x65a13c=_0x49f62f();while(!![]){try{const _0xccf33d=parseInt(_0x2dcefc(0xc1))/0x1*(parseInt(_0x2dcefc(0xe8))/0x2)+parseInt(_0x2dcefc(0xb2))/0x3+-parseInt(_0x2dcefc(0xe6))/0x4*(parseInt(_0x2dcefc(0xcc))/0x5)+-parseInt(_0x2dcefc(0xb1))/0x6+-parseInt(_0x2dcefc(0xb8))/0x7+parseInt(_0x2dcefc(0xe9))/0x8+-parseInt(_0x2dcefc(0xac))/0x9*(-parseInt(_0x2dcefc(0xd3))/0xa);if(_0xccf33d===_0x355632)break;else _0x65a13c['push'](_0x65a13c['shift']());}catch(_0x26c9c2){_0x65a13c['push'](_0x65a13c['shift']());}}}(a35_0x11df,0x87290));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';function a35_0x11df(){const _0x279edd=['scope','trim','content','search','updateTime','validation','dryRun','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','Override\x20the\x20existing\x20entry\x20title','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','bool','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','write','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','File\x20not\x20found:\x20','signal','8VUohdb','ragStatus','2hSpybl','4615672hfgmEs','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','read','userId','parse','Created\x20KB\x20entry\x20','File\x20path\x20is\x20required.','verbose','jsonBody','Personal\x20knowledge-base\x20entry\x20title','9zDfJJn','ragErrorMessage','isSafeInteger','kb-service-url','Search\x20query\x20is\x20required.','6418980pdvThQ','2927424JXViST','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','description','length','isFile','number','6501803bxCmxo','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','map','path','build','str','topk','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','num','387526DkDOhQ','title','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','method','execute','appCode','create','version','Personal\x20knowledge-base\x20entry\x20ID','file','1972730WyTNBU','string','File\x20is\x20not\x20a\x20regular\x20file:\x20','flag','update','query','body','14010740GGtfyK'];a35_0x11df=function(){return _0x279edd;};return a35_0x11df();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x1c02ed(0xc2),'type':a35_0x1c02ed(0xcd),'required':!![],'description':a35_0x1c02ed(0xab)},FILE_FLAG={'name':a35_0x1c02ed(0xcb),'type':a35_0x1c02ed(0xcd),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a35_0x1c02ed(0xd1),'type':a35_0x1c02ed(0xcd),'required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':'topk','type':a35_0x1c02ed(0xb7),'description':a35_0x1c02ed(0xe0)};function readKnowledgeFile(_0x53356a){const _0x41fd94=a35_0x1c02ed;if(!_0x53356a)throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xa8));if(!existsSync(_0x53356a))throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xe4)+_0x53356a);if(!statSync(_0x53356a)[_0x41fd94(0xb6)]())throw CliErrors[_0x41fd94(0xd9)](_0x41fd94(0xce)+_0x53356a);return readFileSync(_0x53356a,'utf8');}function summarizePersonalItem(_0x4782cf){const _0x3f285a=a35_0x1c02ed;return{'id':_0x4782cf['id'],'title':_0x4782cf[_0x3f285a(0xc2)],'version':_0x4782cf[_0x3f285a(0xc9)],'ragStatus':_0x4782cf[_0x3f285a(0xe7)],'ragErrorMessage':_0x4782cf[_0x3f285a(0xad)],'updateTime':_0x4782cf[_0x3f285a(0xd8)]};}function detailPersonalItem(_0x4d1a88){const _0x38e8fe=a35_0x1c02ed;return{'id':_0x4d1a88['id'],'appCode':_0x4d1a88['appCode'],'scope':_0x4d1a88[_0x38e8fe(0xd4)],'userId':_0x4d1a88[_0x38e8fe(0xa5)],'title':_0x4d1a88[_0x38e8fe(0xc2)],'content':_0x4d1a88[_0x38e8fe(0xd6)],'version':_0x4d1a88[_0x38e8fe(0xc9)],'ragStatus':_0x4d1a88[_0x38e8fe(0xe7)],'ragErrorMessage':_0x4d1a88[_0x38e8fe(0xad)],'createTime':_0x4d1a88['createTime'],'updateTime':_0x4d1a88[_0x38e8fe(0xd8)]};}function readTopK(_0x4f5be4){const _0x1cd408=a35_0x1c02ed,_0xb1723=_0x4f5be4[_0x1cd408(0xcf)](_0x1cd408(0xbe));if(_0xb1723===undefined||_0xb1723===null||_0xb1723==='')return undefined;const _0x587830=_0x4f5be4[_0x1cd408(0xc0)](_0x1cd408(0xbe));if(!Number[_0x1cd408(0xae)](_0x587830)||_0x587830<0x1||_0x587830>0x32)throw CliErrors['validation'](_0x1cd408(0xde));return _0x587830;}const kbList={'service':'kb','command':'list','description':a35_0x1c02ed(0xbf),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0xd4f853){const _0x3e2cd6=a35_0x1c02ed,_0x548cc8=await listPersonalKnowledgeBaseItems(_0xd4f853[_0x3e2cd6(0xc7)],_0xd4f853[_0x3e2cd6(0xe5)]);if(_0xd4f853[_0x3e2cd6(0xdf)](_0x3e2cd6(0xa9)))return{'ok':!![],'data':{'total':_0x548cc8[_0x3e2cd6(0xb5)],'items':_0x548cc8}};return{'ok':!![],'data':{'total':_0x548cc8[_0x3e2cd6(0xb5)],'items':_0x548cc8['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a35_0x1c02ed(0xa3),'risk':a35_0x1c02ed(0xa4),'flags':[{...ID_FLAG,'type':a35_0x1c02ed(0xcd),'description':'Personal\x20knowledge-base\x20entry\x20ID'}],async 'execute'(_0x4bc7dd){const _0x51744d=a35_0x1c02ed,_0x567fb1=await getPersonalKnowledgeBaseItem(_0x4bc7dd[_0x51744d(0xbd)]('id'),_0x4bc7dd[_0x51744d(0xc7)],_0x4bc7dd['signal']);return{'ok':!![],'data':detailPersonalItem(_0x567fb1)};}},kbCreate={'service':'kb','command':a35_0x1c02ed(0xc8),'description':a35_0x1c02ed(0xc4),'risk':'write','confirmationDescription':a35_0x1c02ed(0xdb),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x3ffce2){const _0xedada4=a35_0x1c02ed,_0x354cf5=_0x3ffce2[_0xedada4(0xbd)](_0xedada4(0xc2)),_0x49532e=readKnowledgeFile(_0x3ffce2['str']('file')),_0x5d9382=await createPersonalKnowledgeBaseItem(_0x3ffce2[_0xedada4(0xc7)],{'title':_0x354cf5,'content':_0x49532e},_0x3ffce2[_0xedada4(0xe5)]);return{'ok':!![],'data':summarizePersonalItem(_0x5d9382),'message':_0xedada4(0xa7)+_0x5d9382['id']+'\x20('+_0x5d9382[_0xedada4(0xc2)]+')'};},async 'dryRun'(_0x4aaf13){const _0x158da5=a35_0x1c02ed,_0x18f587=_0x4aaf13['str'](_0x158da5(0xc2)),_0x26a277=readKnowledgeFile(_0x4aaf13[_0x158da5(0xbd)]('file')),_0x5a89e8=planPersonalKnowledgeWrite(_0x4aaf13['appCode'],{'title':_0x18f587,'content':_0x26a277});return dryRun(_0x5a89e8[_0x158da5(0xc5)],_0x5a89e8['path'])[_0x158da5(0xd2)](JSON[_0x158da5(0xa6)](_0x5a89e8['jsonBody']))[_0x158da5(0xb4)](_0x158da5(0xe3)+_0x18f587+'\x22')[_0x158da5(0xbc)]();}},kbUpdate={'service':'kb','command':a35_0x1c02ed(0xd0),'description':a35_0x1c02ed(0xdd),'risk':a35_0x1c02ed(0xe2),'confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'type':'string','description':a35_0x1c02ed(0xca)},{...TITLE_FLAG,'required':![],'description':a35_0x1c02ed(0xdc)},FILE_FLAG],async 'execute'(_0xc6f165){const _0x3da0b3=a35_0x1c02ed,_0x50e3e5=_0xc6f165[_0x3da0b3(0xbd)]('id'),_0x3fecd2=readKnowledgeFile(_0xc6f165['str'](_0x3da0b3(0xcb))),_0x4c1cf6=_0xc6f165['str'](_0x3da0b3(0xc2))||undefined,_0x538e47=await updatePersonalKnowledgeBaseItem(_0x50e3e5,_0xc6f165['appCode'],{'title':_0x4c1cf6,'content':_0x3fecd2},_0xc6f165[_0x3da0b3(0xe5)]);return{'ok':!![],'data':summarizePersonalItem(_0x538e47),'message':'Updated\x20KB\x20entry\x20'+_0x538e47['id']+'\x20('+_0x538e47[_0x3da0b3(0xc2)]+')'};},async 'dryRun'(_0x440fb9){const _0x482fe5=a35_0x1c02ed,_0x1655a5=_0x440fb9[_0x482fe5(0xbd)]('id'),_0x2ce27f=readKnowledgeFile(_0x440fb9['str'](_0x482fe5(0xcb))),_0x5628c3=await getPersonalKnowledgeBaseItem(_0x1655a5,_0x440fb9[_0x482fe5(0xc7)],_0x440fb9['signal']),_0x4ba0e6=_0x440fb9[_0x482fe5(0xbd)](_0x482fe5(0xc2))||_0x5628c3[_0x482fe5(0xc2)],_0x28c44d=planPersonalKnowledgeWrite(_0x440fb9[_0x482fe5(0xc7)],{'title':_0x4ba0e6,'content':_0x2ce27f},_0x1655a5,_0x5628c3[_0x482fe5(0xc9)]);return dryRun(_0x28c44d['method'],_0x28c44d[_0x482fe5(0xbb)])['body'](JSON['parse'](_0x28c44d[_0x482fe5(0xaa)]))[_0x482fe5(0xb4)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1655a5)[_0x482fe5(0xbc)]();}};function readSearchServiceUrl(_0x39ca8a){const _0x508de7=a35_0x1c02ed;if(_0x39ca8a[_0x508de7(0xcf)](_0x508de7(0xaf))!==undefined)return normalizeKbServiceOrigin(_0x39ca8a[_0x508de7(0xbd)](_0x508de7(0xaf)));const _0xa1eed=getKbServiceDomain();if(!_0xa1eed)throw CliErrors[_0x508de7(0xd9)](_0x508de7(0xb9),_0x508de7(0xc3));return normalizeKbServiceOrigin(_0xa1eed);}const kbSearch={'service':'kb','command':a35_0x1c02ed(0xd7),'description':a35_0x1c02ed(0xb3),'risk':a35_0x1c02ed(0xa4),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x1c02ed(0xaf),'type':'string','required':![],'description':a35_0x1c02ed(0xe1)}],async 'validate'(_0x2772c4){const _0x4a6c94=a35_0x1c02ed;if(!_0x2772c4['str'](_0x4a6c94(0xd1))[_0x4a6c94(0xd5)]())throw CliErrors[_0x4a6c94(0xd9)](_0x4a6c94(0xb0));readTopK(_0x2772c4),readSearchServiceUrl(_0x2772c4);},async 'execute'(_0x595cf3){const _0x5f20eb=a35_0x1c02ed,_0x471760=_0x595cf3[_0x5f20eb(0xbd)]('query')[_0x5f20eb(0xd5)](),_0x1dbfb0=readTopK(_0x595cf3),_0x35b0bf=readSearchServiceUrl(_0x595cf3),_0x3ebe78={'appCode':_0x595cf3[_0x5f20eb(0xc7)],'accessKey':_0x595cf3['accessKey']??'','query':_0x471760,..._0x1dbfb0!==undefined?{'topK':_0x1dbfb0}:{},'signal':_0x595cf3['signal']},_0x3cb439=await searchDirectKnowledge({..._0x3ebe78,'serviceUrl':_0x35b0bf});return{'ok':!![],'data':_0x3cb439};}};function managementCommand(_0x1a4523){const _0x47bbcf=a35_0x1c02ed;return{..._0x1a4523,'execute':_0x12e559=>withKbManagementOrigin(()=>_0x1a4523[_0x47bbcf(0xc6)](_0x12e559)),..._0x1a4523[_0x47bbcf(0xda)]?{'dryRun':_0x5cb453=>withKbManagementOrigin(()=>_0x1a4523[_0x47bbcf(0xda)](_0x5cb453))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x1c02ed(0xba)](managementCommand),kbSearch];
1
+ const a35_0x124643=a35_0x2c29;function a35_0x336b(){const _0x48d655=['858290uAWUCv','120020Gedbsh','Personal\x20knowledge-base\x20entry\x20ID','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','topk','utf8','3vHpYzr','accessKey','method','appCode','Search\x20query\x20is\x20required.','validation','bool','parse','title','query','list','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','isFile','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','string','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','description','str','jsonBody','dryRun','version','write','flag','43911fiLxNH','length','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','detail','search','update','529572BOeala','signal','File\x20is\x20not\x20a\x20regular\x20file:\x20','3mnJYPD','path','780862KyUtcq','kb-service-url','execute','verbose','288hdaATK','updateTime','map','file','build','body','1032756ZXCKJA','content','num','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','createTime','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','create','File\x20not\x20found:\x20','ragErrorMessage','trim','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','11khmtfB','ragStatus','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','103743MGFSpC','read'];a35_0x336b=function(){return _0x48d655;};return a35_0x336b();}(function(_0x47ccdd,_0x446549){const _0x35eb03=a35_0x2c29,_0x1ecc9d=_0x47ccdd();while(!![]){try{const _0x3ae8b2=parseInt(_0x35eb03(0x233))/0x1*(parseInt(_0x35eb03(0x235))/0x2)+-parseInt(_0x35eb03(0x211))/0x3*(parseInt(_0x35eb03(0x1fb))/0x4)+-parseInt(_0x35eb03(0x20c))/0x5+parseInt(_0x35eb03(0x230))/0x6+parseInt(_0x35eb03(0x22a))/0x7+-parseInt(_0x35eb03(0x1f5))/0x8*(parseInt(_0x35eb03(0x209))/0x9)+parseInt(_0x35eb03(0x20b))/0xa*(parseInt(_0x35eb03(0x206))/0xb);if(_0x3ae8b2===_0x446549)break;else _0x1ecc9d['push'](_0x1ecc9d['shift']());}catch(_0xbea78f){_0x1ecc9d['push'](_0x1ecc9d['shift']());}}}(a35_0x336b,0x9fc9c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';function a35_0x2c29(_0x490864,_0x2abd2a){_0x490864=_0x490864-0x1f3;const _0x336b80=a35_0x336b();let _0x2c2973=_0x336b80[_0x490864];return _0x2c2973;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x124643(0x219),'type':a35_0x124643(0x21f),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a35_0x124643(0x1f8),'type':a35_0x124643(0x21f),'required':!![],'description':a35_0x124643(0x21c)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a35_0x124643(0x200)},TOPK_FLAG={'name':a35_0x124643(0x20f),'type':'number','description':a35_0x124643(0x221)};function readKnowledgeFile(_0xc7ab3c){const _0x448557=a35_0x124643;if(!_0xc7ab3c)throw CliErrors[_0x448557(0x216)]('File\x20path\x20is\x20required.');if(!existsSync(_0xc7ab3c))throw CliErrors[_0x448557(0x216)](_0x448557(0x202)+_0xc7ab3c);if(!statSync(_0xc7ab3c)[_0x448557(0x21d)]())throw CliErrors[_0x448557(0x216)](_0x448557(0x232)+_0xc7ab3c);return readFileSync(_0xc7ab3c,_0x448557(0x210));}function summarizePersonalItem(_0x35308e){const _0x5a7d37=a35_0x124643;return{'id':_0x35308e['id'],'title':_0x35308e[_0x5a7d37(0x219)],'version':_0x35308e[_0x5a7d37(0x227)],'ragStatus':_0x35308e[_0x5a7d37(0x207)],'ragErrorMessage':_0x35308e[_0x5a7d37(0x203)],'updateTime':_0x35308e[_0x5a7d37(0x1f6)]};}function detailPersonalItem(_0x66e06b){const _0x5e3c05=a35_0x124643;return{'id':_0x66e06b['id'],'appCode':_0x66e06b['appCode'],'scope':_0x66e06b['scope'],'userId':_0x66e06b['userId'],'title':_0x66e06b[_0x5e3c05(0x219)],'content':_0x66e06b[_0x5e3c05(0x1fc)],'version':_0x66e06b[_0x5e3c05(0x227)],'ragStatus':_0x66e06b['ragStatus'],'ragErrorMessage':_0x66e06b['ragErrorMessage'],'createTime':_0x66e06b[_0x5e3c05(0x1ff)],'updateTime':_0x66e06b['updateTime']};}function readTopK(_0x2c0b57){const _0x4b1318=a35_0x124643,_0x32b436=_0x2c0b57['flag'](_0x4b1318(0x20f));if(_0x32b436===undefined||_0x32b436===null||_0x32b436==='')return undefined;const _0x54ebe5=_0x2c0b57[_0x4b1318(0x1fd)](_0x4b1318(0x20f));if(!Number['isSafeInteger'](_0x54ebe5)||_0x54ebe5<0x1||_0x54ebe5>0x32)throw CliErrors['validation']('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x54ebe5;}const kbList={'service':'kb','command':a35_0x124643(0x21b),'description':a35_0x124643(0x205),'risk':a35_0x124643(0x20a),'flags':[VERBOSE_FLAG],async 'execute'(_0x2c9bb6){const _0x23f437=a35_0x124643,_0x45a706=await listPersonalKnowledgeBaseItems(_0x2c9bb6[_0x23f437(0x214)],_0x2c9bb6['signal']);if(_0x2c9bb6[_0x23f437(0x217)](_0x23f437(0x1f4)))return{'ok':!![],'data':{'total':_0x45a706['length'],'items':_0x45a706}};return{'ok':!![],'data':{'total':_0x45a706[_0x23f437(0x22b)],'items':_0x45a706[_0x23f437(0x1f7)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x124643(0x22d),'description':a35_0x124643(0x21e),'risk':'read','flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)}],async 'execute'(_0x5f467c){const _0x2ec9a2=a35_0x124643,_0x5de37f=await getPersonalKnowledgeBaseItem(_0x5f467c['str']('id'),_0x5f467c[_0x2ec9a2(0x214)],_0x5f467c[_0x2ec9a2(0x231)]);return{'ok':!![],'data':detailPersonalItem(_0x5de37f)};}},kbCreate={'service':'kb','command':a35_0x124643(0x201),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x22c),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x1f01e2){const _0x29d740=a35_0x124643,_0x243924=_0x1f01e2[_0x29d740(0x224)](_0x29d740(0x219)),_0x4ef931=readKnowledgeFile(_0x1f01e2['str'](_0x29d740(0x1f8))),_0x118da7=await createPersonalKnowledgeBaseItem(_0x1f01e2[_0x29d740(0x214)],{'title':_0x243924,'content':_0x4ef931},_0x1f01e2['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x118da7),'message':'Created\x20KB\x20entry\x20'+_0x118da7['id']+'\x20('+_0x118da7[_0x29d740(0x219)]+')'};},async 'dryRun'(_0x25e29d){const _0x4bfe81=a35_0x124643,_0x3a91c2=_0x25e29d[_0x4bfe81(0x224)]('title'),_0x45db41=readKnowledgeFile(_0x25e29d[_0x4bfe81(0x224)](_0x4bfe81(0x1f8))),_0x2a9dae=planPersonalKnowledgeWrite(_0x25e29d[_0x4bfe81(0x214)],{'title':_0x3a91c2,'content':_0x45db41});return dryRun(_0x2a9dae[_0x4bfe81(0x213)],_0x2a9dae[_0x4bfe81(0x234)])[_0x4bfe81(0x1fa)](JSON[_0x4bfe81(0x218)](_0x2a9dae[_0x4bfe81(0x225)]))[_0x4bfe81(0x223)](_0x4bfe81(0x208)+_0x3a91c2+'\x22')[_0x4bfe81(0x1f9)]();}},kbUpdate={'service':'kb','command':a35_0x124643(0x22f),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x124643(0x228),'confirmationDescription':a35_0x124643(0x222),'flags':[{...ID_FLAG,'type':a35_0x124643(0x21f),'description':a35_0x124643(0x20d)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x27ac0e){const _0x5d22cd=a35_0x124643,_0x3a044f=_0x27ac0e['str']('id'),_0x372f17=readKnowledgeFile(_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x1f8))),_0x45c54f=_0x27ac0e[_0x5d22cd(0x224)](_0x5d22cd(0x219))||undefined,_0x3b85a3=await updatePersonalKnowledgeBaseItem(_0x3a044f,_0x27ac0e[_0x5d22cd(0x214)],{'title':_0x45c54f,'content':_0x372f17},_0x27ac0e[_0x5d22cd(0x231)]);return{'ok':!![],'data':summarizePersonalItem(_0x3b85a3),'message':'Updated\x20KB\x20entry\x20'+_0x3b85a3['id']+'\x20('+_0x3b85a3[_0x5d22cd(0x219)]+')'};},async 'dryRun'(_0x34c0fb){const _0x4f2e9f=a35_0x124643,_0x70b8ff=_0x34c0fb[_0x4f2e9f(0x224)]('id'),_0x53281e=readKnowledgeFile(_0x34c0fb['str'](_0x4f2e9f(0x1f8))),_0x526aa0=await getPersonalKnowledgeBaseItem(_0x70b8ff,_0x34c0fb['appCode'],_0x34c0fb[_0x4f2e9f(0x231)]),_0x32da48=_0x34c0fb['str'](_0x4f2e9f(0x219))||_0x526aa0[_0x4f2e9f(0x219)],_0x1bdaab=planPersonalKnowledgeWrite(_0x34c0fb['appCode'],{'title':_0x32da48,'content':_0x53281e},_0x70b8ff,_0x526aa0[_0x4f2e9f(0x227)]);return dryRun(_0x1bdaab[_0x4f2e9f(0x213)],_0x1bdaab[_0x4f2e9f(0x234)])['body'](JSON[_0x4f2e9f(0x218)](_0x1bdaab[_0x4f2e9f(0x225)]))[_0x4f2e9f(0x223)](_0x4f2e9f(0x20e)+_0x70b8ff)[_0x4f2e9f(0x1f9)]();}};function readSearchServiceUrl(_0x1a6c73){const _0x488b9f=a35_0x124643;if(_0x1a6c73[_0x488b9f(0x229)]('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x1a6c73[_0x488b9f(0x224)]('kb-service-url'));const _0x46f158=getKbServiceDomain();if(!_0x46f158)throw CliErrors['validation']('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x46f158);}const kbSearch={'service':'kb','command':a35_0x124643(0x22e),'description':a35_0x124643(0x1fe),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x124643(0x236),'type':a35_0x124643(0x21f),'required':![],'description':a35_0x124643(0x220)}],async 'validate'(_0x481d0c){const _0x2ad8b8=a35_0x124643;if(!_0x481d0c['str'](_0x2ad8b8(0x21a))['trim']())throw CliErrors[_0x2ad8b8(0x216)](_0x2ad8b8(0x215));readTopK(_0x481d0c),readSearchServiceUrl(_0x481d0c);},async 'execute'(_0x42aa3e){const _0x300ebb=a35_0x124643,_0x4f0257=_0x42aa3e['str'](_0x300ebb(0x21a))[_0x300ebb(0x204)](),_0x53f128=readTopK(_0x42aa3e),_0x12f636=readSearchServiceUrl(_0x42aa3e),_0x137971={'appCode':_0x42aa3e[_0x300ebb(0x214)],'accessKey':_0x42aa3e[_0x300ebb(0x212)]??'','query':_0x4f0257,..._0x53f128!==undefined?{'topK':_0x53f128}:{},'signal':_0x42aa3e[_0x300ebb(0x231)]},_0x41e6d1=await searchDirectKnowledge({..._0x137971,'serviceUrl':_0x12f636});return{'ok':!![],'data':_0x41e6d1};}};function managementCommand(_0x46bfd8){const _0x3b2a46=a35_0x124643;return{..._0x46bfd8,'execute':_0x4edd47=>withKbManagementOrigin(()=>_0x46bfd8[_0x3b2a46(0x1f3)](_0x4edd47)),..._0x46bfd8[_0x3b2a46(0x226)]?{'dryRun':_0x40252e=>withKbManagementOrigin(()=>_0x46bfd8['dryRun'](_0x40252e))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x124643(0x1f7)](managementCommand),kbSearch];
@@ -1 +1 @@
1
- const a36_0xbed6a8=a36_0x610f;(function(_0x4ae721,_0x42149a){const _0x10a2e8=a36_0x610f,_0x437a14=_0x4ae721();while(!![]){try{const _0x498e66=-parseInt(_0x10a2e8(0x12a))/0x1+parseInt(_0x10a2e8(0x148))/0x2+-parseInt(_0x10a2e8(0x141))/0x3*(-parseInt(_0x10a2e8(0x13d))/0x4)+parseInt(_0x10a2e8(0x12f))/0x5+-parseInt(_0x10a2e8(0x144))/0x6*(-parseInt(_0x10a2e8(0x13a))/0x7)+parseInt(_0x10a2e8(0x13f))/0x8*(-parseInt(_0x10a2e8(0x129))/0x9)+-parseInt(_0x10a2e8(0x12b))/0xa*(-parseInt(_0x10a2e8(0x13b))/0xb);if(_0x498e66===_0x42149a)break;else _0x437a14['push'](_0x437a14['shift']());}catch(_0x5d8d3f){_0x437a14['push'](_0x437a14['shift']());}}}(a36_0x35fa,0xdefdb));import{logger}from'../../utils/logger.js';function a36_0x610f(_0x2ba698,_0x848408){_0x2ba698=_0x2ba698-0x129;const _0x35faa5=a36_0x35fa();let _0x610f69=_0x35faa5[_0x2ba698];return _0x610f69;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x1e26a9){const _0x277767=a36_0x610f;if(_0x1e26a9['length']===0x0){console[_0x277767(0x13e)](_0x277767(0x140));return;}console[_0x277767(0x13e)]('*\x20'+CLI_DISPLAY_NAME+_0x277767(0x131)),_0x1e26a9[_0x277767(0x12e)]((_0x2cf566,_0xf7b5f0)=>{const _0x15367c=_0x277767,_0x1b1132=new Date(_0x2cf566[_0x15367c(0x142)])['toLocaleString'](_0x15367c(0x145)),_0x4b6caf=_0x2cf566[_0x15367c(0x12c)]===_0x15367c(0x132)?'√':_0x2cf566[_0x15367c(0x12c)]==='error'?'×':_0x2cf566[_0x15367c(0x12c)]===_0x15367c(0x138)?'!':'i';console['log'](_0xf7b5f0+0x1+'.\x20'+_0x4b6caf+'\x20['+_0x2cf566[_0x15367c(0x137)]+']\x20'+_0x2cf566[_0x15367c(0x143)]),console['log'](_0x15367c(0x136)+_0x1b1132),_0x2cf566['duration']&&console['log'](_0x15367c(0x135)+_0x2cf566[_0x15367c(0x134)]+'ms'),_0x2cf566[_0x15367c(0x146)]&&Object[_0x15367c(0x133)](_0x2cf566[_0x15367c(0x146)])[_0x15367c(0x147)]>0x0&&console[_0x15367c(0x13e)]('\x20\x20\x20Details:\x20'+JSON[_0x15367c(0x13c)](_0x2cf566[_0x15367c(0x146)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':'logs','command':a36_0xbed6a8(0x139),'description':'View\x20command\x20history\x20logs','risk':a36_0xbed6a8(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x48da8b){const _0x2bff13=a36_0xbed6a8;return printLogs(logger[_0x2bff13(0x130)]()),{'ok':!![]};}}];function a36_0x35fa(){const _0x531f9d=['stringify','4mugaGy','log','8cyiqZL','*\x20No\x20logs\x20found','4471839LlWCrr','timestamp','message','13734nuwsUF','en-US','details','length','61558wXhniw','12070449KTcBgC','1819012vQQbkc','10gcOaZe','level','read','forEach','1006615nsBItC','readLogs','\x20logs:\x0a','success','keys','duration','\x20\x20\x20Duration:\x20','\x20\x20\x20Time:\x20','command','warn','show','21HDCDgj','25783582sLCHJl'];a36_0x35fa=function(){return _0x531f9d;};return a36_0x35fa();}
1
+ const a36_0x3b718e=a36_0x2081;(function(_0x15d20b,_0x451820){const _0x12d043=a36_0x2081,_0xc896cb=_0x15d20b();while(!![]){try{const _0x1d17da=parseInt(_0x12d043(0xb7))/0x1*(-parseInt(_0x12d043(0xb0))/0x2)+-parseInt(_0x12d043(0xae))/0x3*(parseInt(_0x12d043(0xaa))/0x4)+-parseInt(_0x12d043(0xa5))/0x5+-parseInt(_0x12d043(0xa7))/0x6+parseInt(_0x12d043(0xa6))/0x7*(parseInt(_0x12d043(0xbb))/0x8)+parseInt(_0x12d043(0xa9))/0x9*(parseInt(_0x12d043(0xc1))/0xa)+parseInt(_0x12d043(0xad))/0xb;if(_0x1d17da===_0x451820)break;else _0xc896cb['push'](_0xc896cb['shift']());}catch(_0x4d5715){_0xc896cb['push'](_0xc896cb['shift']());}}}(a36_0x2d87,0x2beba));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x11211d){const _0xa64ac7=a36_0x2081;if(_0x11211d[_0xa64ac7(0xb2)]===0x0){console['log'](_0xa64ac7(0xc0));return;}console[_0xa64ac7(0xa8)]('*\x20'+CLI_DISPLAY_NAME+_0xa64ac7(0xba)),_0x11211d[_0xa64ac7(0xac)]((_0xa94ebf,_0x5593f3)=>{const _0x17fa8d=_0xa64ac7,_0x5345cb=new Date(_0xa94ebf[_0x17fa8d(0xb8)])[_0x17fa8d(0xa4)](_0x17fa8d(0xbf)),_0x3f615d=_0xa94ebf['level']===_0x17fa8d(0xab)?'√':_0xa94ebf[_0x17fa8d(0xb1)]==='error'?'×':_0xa94ebf[_0x17fa8d(0xb1)]==='warn'?'!':'i';console[_0x17fa8d(0xa8)](_0x5593f3+0x1+'.\x20'+_0x3f615d+'\x20['+_0xa94ebf[_0x17fa8d(0xbd)]+']\x20'+_0xa94ebf[_0x17fa8d(0xb3)]),console[_0x17fa8d(0xa8)](_0x17fa8d(0xaf)+_0x5345cb),_0xa94ebf[_0x17fa8d(0xb4)]&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Duration:\x20'+_0xa94ebf[_0x17fa8d(0xb4)]+'ms'),_0xa94ebf[_0x17fa8d(0xbe)]&&Object['keys'](_0xa94ebf['details'])[_0x17fa8d(0xb2)]>0x0&&console[_0x17fa8d(0xa8)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0xa94ebf[_0x17fa8d(0xbe)],null,0x2)),console[_0x17fa8d(0xa8)]('');});}function a36_0x2081(_0x4facaf,_0x3d5a45){_0x4facaf=_0x4facaf-0xa4;const _0x2d8786=a36_0x2d87();let _0x2081cd=_0x2d8786[_0x4facaf];return _0x2081cd;}function a36_0x2d87(){const _0x3fdd74=['251961eeSXCY','\x20\x20\x20Time:\x20','2GwsoEY','level','length','message','duration','readLogs','read','40861UogDhe','timestamp','View\x20command\x20history\x20logs','\x20logs:\x0a','256LBwvzG','logs','command','details','en-US','*\x20No\x20logs\x20found','2449260aSiLvM','toLocaleString','1609335WNOhfl','24521xaAuzC','1125498uJCBej','log','9xAcleX','12YnwDwT','success','forEach','6876628qYLyEt'];a36_0x2d87=function(){return _0x3fdd74;};return a36_0x2d87();}export const logsDefinitions=[{'service':a36_0x3b718e(0xbc),'command':'show','description':a36_0x3b718e(0xb9),'risk':a36_0x3b718e(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x467568){const _0x17756f=a36_0x3b718e;return printLogs(logger[_0x17756f(0xb5)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a37_0x2afa79=a37_0x2c7b;(function(_0x2dac0f,_0x39a090){const _0x1440c5=a37_0x2c7b,_0x3ffb3e=_0x2dac0f();while(!![]){try{const _0x49012e=-parseInt(_0x1440c5(0x1ed))/0x1+parseInt(_0x1440c5(0x1f4))/0x2*(parseInt(_0x1440c5(0x1e8))/0x3)+parseInt(_0x1440c5(0x1eb))/0x4+-parseInt(_0x1440c5(0x1e6))/0x5*(parseInt(_0x1440c5(0x1f6))/0x6)+parseInt(_0x1440c5(0x1f5))/0x7+-parseInt(_0x1440c5(0x1f2))/0x8*(parseInt(_0x1440c5(0x1ea))/0x9)+parseInt(_0x1440c5(0x1f9))/0xa*(-parseInt(_0x1440c5(0x1f7))/0xb);if(_0x49012e===_0x39a090)break;else _0x3ffb3e['push'](_0x3ffb3e['shift']());}catch(_0x41df47){_0x3ffb3e['push'](_0x3ffb3e['shift']());}}}(a37_0x2e1e,0x51893));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2c7b(_0x17421c,_0x3dc143){_0x17421c=_0x17421c-0x1e6;const _0x2e1e24=a37_0x2e1e();let _0x2c7beb=_0x2e1e24[_0x17421c];return _0x2c7beb;}function a37_0x2e1e(){const _0x2162db=['string','appCode','40FkFBah','read','8mdBtaf','2638286YNdTlk','174FJMenZ','11AhxRcj','Found\x20','1218460SQwLMf','length','37190XMkDdD','Notification\x20channel\x20type','216285rCpszz','\x20notification\x20config(s)','1001943kzpNVZ','2422876kJRBBO','config-list','42843jGqkou','map','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values'];a37_0x2e1e=function(){return _0x2162db;};return a37_0x2e1e();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a37_0x2afa79(0x1ec),'description':a37_0x2afa79(0x1ef),'risk':a37_0x2afa79(0x1f3),'flags':[{'name':'type','type':a37_0x2afa79(0x1f0),'description':a37_0x2afa79(0x1e7),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0xb6044d){readNotificationChannelType(_0xb6044d);},async 'execute'(_0x593dbe){const _0x591508=a37_0x2afa79,_0xfe464f=readNotificationChannelType(_0x593dbe),_0x184318=await listNotificationChannelConfigs(_0x593dbe[_0x591508(0x1f1)],_0xfe464f),_0x4160ba=_0x184318[_0x591508(0x1ee)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x593dbe[_0x591508(0x1f1)],'channelType':_0xfe464f,'count':_0x4160ba[_0x591508(0x1fa)],'configs':_0x4160ba},'message':_0x591508(0x1f8)+_0x4160ba[_0x591508(0x1fa)]+'\x20'+_0xfe464f+_0x591508(0x1e9)};}};
1
+ const a37_0xba41e2=a37_0x2091;(function(_0x3d964d,_0x5dfed1){const _0x3025f1=a37_0x2091,_0x3d4d14=_0x3d964d();while(!![]){try{const _0x46a567=parseInt(_0x3025f1(0x75))/0x1+parseInt(_0x3025f1(0x6b))/0x2+parseInt(_0x3025f1(0x6d))/0x3*(-parseInt(_0x3025f1(0x7a))/0x4)+-parseInt(_0x3025f1(0x6f))/0x5+-parseInt(_0x3025f1(0x70))/0x6+parseInt(_0x3025f1(0x69))/0x7+parseInt(_0x3025f1(0x78))/0x8;if(_0x46a567===_0x5dfed1)break;else _0x3d4d14['push'](_0x3d4d14['shift']());}catch(_0x3e270a){_0x3d4d14['push'](_0x3d4d14['shift']());}}}(a37_0x77d2,0xf3350));function a37_0x77d2(){const _0x383a29=['notification','353596vnnvAN','EMAIL','type','config-list','11436824yzEeLO','map','778238Uemoyj','\x20notification\x20config(s)','51TZvVcS','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5859670MtmXbL','9401622bjLRQP','Notification\x20channel\x20type','read','string','appCode','1733291UUshUb','length','Found\x20','11852704eGRPvx'];a37_0x77d2=function(){return _0x383a29;};return a37_0x77d2();}import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2091(_0x56b0b4,_0x100f62){_0x56b0b4=_0x56b0b4-0x69;const _0x77d2b6=a37_0x77d2();let _0x209168=_0x77d2b6[_0x56b0b4];return _0x209168;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a37_0xba41e2(0x79),'command':a37_0xba41e2(0x7d),'description':a37_0xba41e2(0x6e),'risk':a37_0xba41e2(0x72),'flags':[{'name':a37_0xba41e2(0x7c),'type':a37_0xba41e2(0x73),'description':a37_0xba41e2(0x71),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0xba41e2(0x7b)}],async 'validate'(_0x4284be){readNotificationChannelType(_0x4284be);},async 'execute'(_0x1419d0){const _0x57ad4f=a37_0xba41e2,_0x1426a4=readNotificationChannelType(_0x1419d0),_0x567589=await listNotificationChannelConfigs(_0x1419d0[_0x57ad4f(0x74)],_0x1426a4),_0x345128=_0x567589[_0x57ad4f(0x6a)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x1419d0['appCode'],'channelType':_0x1426a4,'count':_0x345128[_0x57ad4f(0x76)],'configs':_0x345128},'message':_0x57ad4f(0x77)+_0x345128[_0x57ad4f(0x76)]+'\x20'+_0x1426a4+_0x57ad4f(0x6c)};}};
@@ -1 +1 @@
1
- (function(_0x4f3204,_0x4f97c2){const _0x5d8264=a38_0x11a3,_0x49a2f2=_0x4f3204();while(!![]){try{const _0x329ff6=-parseInt(_0x5d8264(0x126))/0x1*(-parseInt(_0x5d8264(0x128))/0x2)+parseInt(_0x5d8264(0x127))/0x3*(parseInt(_0x5d8264(0x124))/0x4)+parseInt(_0x5d8264(0x125))/0x5+parseInt(_0x5d8264(0x123))/0x6+parseInt(_0x5d8264(0x121))/0x7+parseInt(_0x5d8264(0x129))/0x8+parseInt(_0x5d8264(0x12a))/0x9*(-parseInt(_0x5d8264(0x122))/0xa);if(_0x329ff6===_0x4f97c2)break;else _0x49a2f2['push'](_0x49a2f2['shift']());}catch(_0x1ab60f){_0x49a2f2['push'](_0x49a2f2['shift']());}}}(a38_0x2d87,0x8a551));import{notificationConfigList}from'../../commands/notification/config-list.js';function a38_0x2d87(){const _0x4c2809=['7604zzsYwQ','5070615XPdCYz','1RajBAa','249nYRpuE','1452172MeMhrI','8827944MnVKwy','6678342ouqVRu','1820539qlaytc','40AKAaPY','1639194xYwrEy'];a38_0x2d87=function(){return _0x4c2809;};return a38_0x2d87();}function a38_0x11a3(_0x30ea5f,_0x12e29c){_0x30ea5f=_0x30ea5f-0x121;const _0x2d87c0=a38_0x2d87();let _0x11a3cf=_0x2d87c0[_0x30ea5f];return _0x11a3cf;}export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x47c56c,_0x37c122){const _0x5826a7=a38_0x3f8b,_0x94b7bc=_0x47c56c();while(!![]){try{const _0x40447e=-parseInt(_0x5826a7(0x182))/0x1*(parseInt(_0x5826a7(0x176))/0x2)+-parseInt(_0x5826a7(0x17b))/0x3*(parseInt(_0x5826a7(0x17d))/0x4)+parseInt(_0x5826a7(0x181))/0x5*(-parseInt(_0x5826a7(0x177))/0x6)+-parseInt(_0x5826a7(0x179))/0x7*(parseInt(_0x5826a7(0x183))/0x8)+-parseInt(_0x5826a7(0x17a))/0x9*(-parseInt(_0x5826a7(0x180))/0xa)+-parseInt(_0x5826a7(0x17e))/0xb*(-parseInt(_0x5826a7(0x17c))/0xc)+-parseInt(_0x5826a7(0x178))/0xd*(-parseInt(_0x5826a7(0x17f))/0xe);if(_0x40447e===_0x37c122)break;else _0x94b7bc['push'](_0x94b7bc['shift']());}catch(_0x5c65a7){_0x94b7bc['push'](_0x94b7bc['shift']());}}}(a38_0xd186,0x5cc3e));function a38_0xd186(){const _0x4b6cf6=['696635mUqCst','274312tZLSGp','2wpNpfv','2688678tpAnPn','104gKbaBM','21ewsgAR','9SmxNbU','15237KkBsfA','12iaROuP','340AVTmDE','4865069kNLWAm','1943900mznwVZ','5062170qIzlZr','5HpRCIs'];a38_0xd186=function(){return _0x4b6cf6;};return a38_0xd186();}function a38_0x3f8b(_0x130b11,_0x2166e2){_0x130b11=_0x130b11-0x176;const _0xd18638=a38_0xd186();let _0x3f8b72=_0xd18638[_0x130b11];return _0x3f8b72;}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
@@ -1 +1 @@
1
- function a39_0x4212(){const _0x42df67=['trim','DINGTALK','configCode','apiError','EMAIL','56190sjKDMe','FEISHU','validation','3311820JzzSMI','\x20must\x20be\x20an\x20object.','Invalid\x20notification\x20config\x20response.','51969UgLaqr','WEBHOOK','join','10056837RDskyI','658321gqLuEc','Item\x20','string','object','40OScpOK','configName','12056944LyNlJr','type','channelType','Allowed\x20values:\x20','5MspyAm','19213344FUQxzq','includes'];a39_0x4212=function(){return _0x42df67;};return a39_0x4212();}const a39_0xf4119d=a39_0x1e5d;(function(_0x37bc0b,_0x673da6){const _0x3e1ba2=a39_0x1e5d,_0x1bd5b5=_0x37bc0b();while(!![]){try{const _0x20173b=-parseInt(_0x3e1ba2(0x105))/0x1+parseInt(_0x3e1ba2(0x117))/0x2+-parseInt(_0x3e1ba2(0x101))/0x3*(-parseInt(_0x3e1ba2(0x109))/0x4)+-parseInt(_0x3e1ba2(0x10f))/0x5*(-parseInt(_0x3e1ba2(0xfe))/0x6)+parseInt(_0x3e1ba2(0x104))/0x7+parseInt(_0x3e1ba2(0x10b))/0x8+-parseInt(_0x3e1ba2(0x110))/0x9;if(_0x20173b===_0x673da6)break;else _0x1bd5b5['push'](_0x1bd5b5['shift']());}catch(_0x165815){_0x1bd5b5['push'](_0x1bd5b5['shift']());}}}(a39_0x4212,0xdcb1f));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0xf4119d(0x116),a39_0xf4119d(0x118),a39_0xf4119d(0x113),'WECOM',a39_0xf4119d(0x102)];export function readNotificationChannelType(_0x2e4fb9){const _0x25018e=a39_0xf4119d,_0x1c63f1=_0x2e4fb9['str'](_0x25018e(0x10c))[_0x25018e(0x112)]()||_0x25018e(0x116);if(!NOTIFICATION_CHANNEL_TYPES[_0x25018e(0x111)](_0x1c63f1))throw CliErrors[_0x25018e(0xfd)]('Invalid\x20--type:\x20'+_0x1c63f1,_0x25018e(0x10e)+NOTIFICATION_CHANNEL_TYPES[_0x25018e(0x103)](',\x20')+'.');return _0x1c63f1;}export function projectNotificationListConfig(_0x1513ce,_0x2b6858){const _0x52d5d7=a39_0xf4119d,_0x5cdae4=requireResponseObject(_0x1513ce,_0x2b6858);return{'configCode':requireResponseString(_0x5cdae4['configCode'],_0x52d5d7(0x114),_0x2b6858),'configName':requireResponseString(_0x5cdae4[_0x52d5d7(0x10a)],_0x52d5d7(0x10a),_0x2b6858),'channelType':requireResponseString(_0x5cdae4['channelType'],_0x52d5d7(0x10d),_0x2b6858),'description':normalizeNullableString(_0x5cdae4['description'])};}function requireResponseObject(_0x3a22d4,_0x47264d){const _0xdb0329=a39_0xf4119d;if(typeof _0x3a22d4!==_0xdb0329(0x108)||_0x3a22d4===null||Array['isArray'](_0x3a22d4))throw CliErrors[_0xdb0329(0x115)](_0xdb0329(0x100),_0xdb0329(0x106)+(_0x47264d+0x1)+_0xdb0329(0xff));return _0x3a22d4;}function requireResponseString(_0x2edf53,_0x6812f9,_0x458649){const _0x179d17=a39_0xf4119d;if(typeof _0x2edf53!==_0x179d17(0x107)||!_0x2edf53[_0x179d17(0x112)]())throw CliErrors['apiError'](_0x179d17(0x100),'Item\x20'+(_0x458649+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x6812f9+'\x22.');return _0x2edf53[_0x179d17(0x112)]();}function a39_0x1e5d(_0x38d3cb,_0x38c830){_0x38d3cb=_0x38d3cb-0xfd;const _0x421236=a39_0x4212();let _0x1e5dc9=_0x421236[_0x38d3cb];return _0x1e5dc9;}function normalizeNullableString(_0x187838){const _0x290293=a39_0xf4119d;return typeof _0x187838===_0x290293(0x107)&&_0x187838[_0x290293(0x112)]()?_0x187838[_0x290293(0x112)]():null;}
1
+ const a39_0x32a487=a39_0x12cb;(function(_0x2db49c,_0x51b68c){const _0x3d020e=a39_0x12cb,_0x3e1ca7=_0x2db49c();while(!![]){try{const _0x3b9941=parseInt(_0x3d020e(0x1e3))/0x1*(parseInt(_0x3d020e(0x1f2))/0x2)+parseInt(_0x3d020e(0x1fd))/0x3+parseInt(_0x3d020e(0x1e9))/0x4+parseInt(_0x3d020e(0x1f7))/0x5+parseInt(_0x3d020e(0x1e6))/0x6*(parseInt(_0x3d020e(0x1fa))/0x7)+-parseInt(_0x3d020e(0x1ff))/0x8*(-parseInt(_0x3d020e(0x1f4))/0x9)+-parseInt(_0x3d020e(0x1e8))/0xa*(parseInt(_0x3d020e(0x1fe))/0xb);if(_0x3b9941===_0x51b68c)break;else _0x3e1ca7['push'](_0x3e1ca7['shift']());}catch(_0x3e6bec){_0x3e1ca7['push'](_0x3e1ca7['shift']());}}}(a39_0x1311,0x370a8));function a39_0x12cb(_0x2df4a0,_0x2e87ad){_0x2df4a0=_0x2df4a0-0x1e3;const _0x131133=a39_0x1311();let _0x12cb18=_0x131133[_0x2df4a0];return _0x12cb18;}import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a39_0x32a487(0x1f9),a39_0x32a487(0x1fb),'DINGTALK',a39_0x32a487(0x1f6),'WEBHOOK'];export function readNotificationChannelType(_0xcb55d5){const _0x56029b=a39_0x32a487,_0x2494bb=_0xcb55d5['str'](_0x56029b(0x1f5))[_0x56029b(0x1e5)]()||_0x56029b(0x1f9);if(!NOTIFICATION_CHANNEL_TYPES[_0x56029b(0x1ed)](_0x2494bb))throw CliErrors[_0x56029b(0x201)](_0x56029b(0x1f1)+_0x2494bb,_0x56029b(0x1ec)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x2494bb;}export function projectNotificationListConfig(_0x33a192,_0xe36435){const _0xeafa4a=a39_0x32a487,_0xd9611f=requireResponseObject(_0x33a192,_0xe36435);return{'configCode':requireResponseString(_0xd9611f['configCode'],_0xeafa4a(0x1ea),_0xe36435),'configName':requireResponseString(_0xd9611f[_0xeafa4a(0x1ee)],_0xeafa4a(0x1ee),_0xe36435),'channelType':requireResponseString(_0xd9611f[_0xeafa4a(0x1f0)],_0xeafa4a(0x1f0),_0xe36435),'description':normalizeNullableString(_0xd9611f[_0xeafa4a(0x1eb)])};}function a39_0x1311(){const _0x865d91=['\x20must\x20be\x20an\x20object.','649521owgzLc','11650892NQXRMg','8OjUSXP','apiError','validation','844jsKtqY','\x20is\x20missing\x20required\x20field\x20\x22','trim','2346tyaDoz','Item\x20','10tKdTVd','1383828fVZHEf','configCode','description','Allowed\x20values:\x20','includes','configName','Invalid\x20notification\x20config\x20response.','channelType','Invalid\x20--type:\x20','818JsmxAw','isArray','329256xoQvCF','type','WECOM','1306970CcYlRr','string','EMAIL','1414nqseeA','FEISHU'];a39_0x1311=function(){return _0x865d91;};return a39_0x1311();}function requireResponseObject(_0x4b473a,_0x35da11){const _0x36cf98=a39_0x32a487;if(typeof _0x4b473a!=='object'||_0x4b473a===null||Array[_0x36cf98(0x1f3)](_0x4b473a))throw CliErrors[_0x36cf98(0x200)](_0x36cf98(0x1ef),_0x36cf98(0x1e7)+(_0x35da11+0x1)+_0x36cf98(0x1fc));return _0x4b473a;}function requireResponseString(_0x3f2e71,_0x1cb97d,_0x5e1cef){const _0x43ea9b=a39_0x32a487;if(typeof _0x3f2e71!=='string'||!_0x3f2e71[_0x43ea9b(0x1e5)]())throw CliErrors['apiError'](_0x43ea9b(0x1ef),_0x43ea9b(0x1e7)+(_0x5e1cef+0x1)+_0x43ea9b(0x1e4)+_0x1cb97d+'\x22.');return _0x3f2e71[_0x43ea9b(0x1e5)]();}function normalizeNullableString(_0x95e671){const _0x39737c=a39_0x32a487;return typeof _0x95e671===_0x39737c(0x1f8)&&_0x95e671[_0x39737c(0x1e5)]()?_0x95e671[_0x39737c(0x1e5)]():null;}
@@ -1 +1 @@
1
- const a40_0x5037c1=a40_0x58d8;function a40_0x10b2(){const _0x143b54=['apiError','/client/queryFileUrl','18FbjQrZ','join','length','imageUrl','count','general','84103UcmLAM','/client/ocr','filePath','7qUePuv','str','imageFile','path','idCard','38212JtqXVD','invoice','File\x20URL\x20response\x20missing\x20fileUrl.','36LqPDsc','\x20OCR\x20from\x20URL','/client/uploadFile','validation','3760263mxjnEC','description','General','fileUrl','scene','trim','ocr','appCode','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','8245616oGJyYe','<filePath\x20returned\x20by\x20/client/uploadFile>','IdCard','File\x20upload\x20response\x20missing\x20filePath.','8441694qbXXlh','image-file','idcard','75KUbKgE','Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','build','6853570gbrReA','toLowerCase','22eOnUwV','Publicly\x20accessible\x20image\x20or\x20file\x20URL','4035564WoaSjm','string','Unsupported\x20OCR\x20scene:\x20','Preview:\x20recognize\x20','image-url','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','\x20OCR','POST','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','form','body','5vTOadm','recognize'];a40_0x10b2=function(){return _0x143b54;};return a40_0x10b2();}(function(_0x3a9f1d,_0x4d4a62){const _0x202912=a40_0x58d8,_0x22f360=_0x3a9f1d();while(!![]){try{const _0x33fc14=parseInt(_0x202912(0xaa))/0x1*(parseInt(_0x202912(0xa4))/0x2)+-parseInt(_0x202912(0x8d))/0x3*(parseInt(_0x202912(0xb2))/0x4)+parseInt(_0x202912(0xa0))/0x5*(parseInt(_0x202912(0x8a))/0x6)+-parseInt(_0x202912(0xad))/0x7*(parseInt(_0x202912(0x86))/0x8)+parseInt(_0x202912(0x95))/0x9+-parseInt(_0x202912(0x91))/0xa*(parseInt(_0x202912(0x93))/0xb)+-parseInt(_0x202912(0x79))/0xc*(-parseInt(_0x202912(0x7d))/0xd);if(_0x33fc14===_0x4d4a62)break;else _0x22f360['push'](_0x22f360['shift']());}catch(_0x8d79e9){_0x22f360['push'](_0x22f360['shift']());}}}(a40_0x10b2,0xcd068));function a40_0x58d8(_0x39adf1,_0xc916ef){_0x39adf1=_0x39adf1-0x77;const _0x10b292=a40_0x10b2();let _0x58d89f=_0x10b292[_0x39adf1];return _0x58d89f;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a40_0x5037c1(0x77),a40_0x5037c1(0xa9),'form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a40_0x5037c1(0x7f),'form':'Table','idCard':a40_0x5037c1(0x88)},SCENE_FLAG={'name':'scene','type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x5037c1(0x9a)},IMAGE_FILE_FLAG={'name':a40_0x5037c1(0x8b),'type':a40_0x5037c1(0x96),'description':a40_0x5037c1(0x85)},IMAGE_URL_FLAG={'name':a40_0x5037c1(0x99),'type':a40_0x5037c1(0x96),'description':a40_0x5037c1(0x94)};function normalizeScene(_0x665a01){const _0x600455=a40_0x5037c1,_0x2332ca=_0x665a01[_0x600455(0x82)]()[_0x600455(0x92)]();if(_0x2332ca===_0x600455(0x8c))return _0x600455(0xb1);if(_0x2332ca===_0x600455(0x77)||_0x2332ca===_0x600455(0xa9)||_0x2332ca===_0x600455(0x9e))return _0x2332ca;throw CliErrors['validation'](_0x600455(0x97)+_0x665a01+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x600455(0xa5)](',\x20'));}function selectedInputs(_0x58477d){const _0x15101a=a40_0x5037c1,_0x810ac3=_0x58477d[_0x15101a(0xae)](_0x15101a(0x8b))[_0x15101a(0x82)](),_0x3ee3e3=_0x58477d[_0x15101a(0xae)](_0x15101a(0x99))[_0x15101a(0x82)]();return{'imageFile':_0x810ac3,'imageUrl':_0x3ee3e3,'count':[_0x810ac3,_0x3ee3e3]['filter'](Boolean)[_0x15101a(0xa6)]};}function validateInputSelection(_0x1eacbf){const _0x3c14be=a40_0x5037c1,_0x45e4f0=selectedInputs(_0x1eacbf);if(_0x45e4f0[_0x3c14be(0xa8)]!==0x1)throw CliErrors[_0x3c14be(0x7c)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x45e4f0;}function withScene(_0x484069,_0x93dd3c,_0x239484){const _0x38c19b=a40_0x5037c1;return{..._0x484069,'scene':_0x93dd3c,..._0x239484?{'sourceFile':{'fileName':_0x239484['fileName'],'filePath':_0x239484[_0x38c19b(0xac)]}}:{}};}const ocrRecognize={'service':a40_0x5037c1(0x83),'command':a40_0x5037c1(0xa1),'description':a40_0x5037c1(0x8e),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x52de01){const _0x533a22=a40_0x5037c1,_0x337c3a=normalizeScene(_0x52de01[_0x533a22(0xae)]('scene')),_0x3bfa04=SCENE_TO_LEGACY_TYPE[_0x337c3a],_0x2a26fa=validateInputSelection(_0x52de01);if(_0x2a26fa[_0x533a22(0xa7)])return dryRun(_0x533a22(0x9c),_0x533a22(0xab))[_0x533a22(0x9f)]({'appCode':_0x52de01[_0x533a22(0x84)],'url':_0x2a26fa['imageUrl'],'type':_0x3bfa04})[_0x533a22(0x7e)](_0x533a22(0x98)+_0x337c3a+_0x533a22(0x7a))[_0x533a22(0x90)]();const _0x490294=requireRuntimeUploadFile(_0x2a26fa[_0x533a22(0xaf)],_0x533a22(0x8b));return dryRun('POST',_0x533a22(0x7b))[_0x533a22(0x9f)]({'steps':[{'method':_0x533a22(0x9c),'url':_0x533a22(0x7b),'body':{'appCode':_0x52de01[_0x533a22(0x84)],'multipart':{'file':_0x490294}}},{'method':_0x533a22(0x9c),'url':_0x533a22(0xa3),'body':{'filePath':_0x533a22(0x87),'downloadFlag':![]}},{'method':_0x533a22(0x9c),'url':'/client/ocr','body':{'appCode':_0x52de01[_0x533a22(0x84)],'url':_0x533a22(0x8f),'type':_0x3bfa04}}]})[_0x533a22(0x7e)](_0x533a22(0x9d)+_0x337c3a+_0x533a22(0x9b))[_0x533a22(0x90)]();},async 'execute'(_0x290e84){const _0x37d3fc=a40_0x5037c1,_0x12468f=normalizeScene(_0x290e84[_0x37d3fc(0xae)](_0x37d3fc(0x81))),_0x489632=SCENE_TO_LEGACY_TYPE[_0x12468f],_0x129663=validateInputSelection(_0x290e84);if(_0x129663['imageUrl']){const _0x5271ab=await recognizeRuntimeOcr(_0x290e84[_0x37d3fc(0x84)],{'url':_0x129663['imageUrl'],'type':_0x489632});return{'ok':!![],'data':withScene(_0x5271ab,_0x12468f)};}const _0x33975f=requireRuntimeUploadFile(_0x129663[_0x37d3fc(0xaf)],'image-file'),_0x3ed98a=await uploadRuntimeFile(_0x290e84[_0x37d3fc(0x84)],_0x33975f[_0x37d3fc(0xb0)]);if(!_0x3ed98a[_0x37d3fc(0xac)])throw CliErrors[_0x37d3fc(0xa2)](_0x37d3fc(0x89));const _0x348e3a=await queryRuntimeFileUrl(_0x3ed98a[_0x37d3fc(0xac)],{'download':![]});if(!_0x348e3a[_0x37d3fc(0x80)])throw CliErrors['apiError'](_0x37d3fc(0x78));const _0x18b94b=await recognizeRuntimeOcr(_0x290e84[_0x37d3fc(0x84)],{'url':_0x348e3a[_0x37d3fc(0x80)],'type':_0x489632});return{'ok':!![],'data':withScene(_0x18b94b,_0x12468f,_0x3ed98a)};}};export const ocrDefinitions=[ocrRecognize];
1
+ function a40_0x165f(){const _0x3e7476=['filePath','count','idCard','str','5714628pCsBto','apiError','build','490rBWLMt','length','filter','/client/ocr','scene','IdCard','General','130IjLTuS','form','recognize','imageFile','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','idcard','14002408QLuhft','808153NWBJfr','6096YPTFwl','invoice','toLowerCase','<filePath\x20returned\x20by\x20/client/uploadFile>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','string','path','7cHfuLF','31230jdGCWj','/client/queryFileUrl','description','1293FdhCGc','263223tdaGVB','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','join','validation','Unsupported\x20OCR\x20scene:\x20','Preview:\x20recognize\x20','\x20OCR\x20from\x20URL','trim','imageUrl','image-url','image-file','Publicly\x20accessible\x20image\x20or\x20file\x20URL','File\x20URL\x20response\x20missing\x20fileUrl.','general','143wbqjda','body','fileUrl','POST','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','appCode','File\x20upload\x20response\x20missing\x20filePath.','2350402udwhYi','/client/uploadFile','.\x20Supported\x20scenes:\x20'];a40_0x165f=function(){return _0x3e7476;};return a40_0x165f();}const a40_0x2c82c1=a40_0x39fd;(function(_0x2265e3,_0x296dab){const _0x4ec3a0=a40_0x39fd,_0x1cbec6=_0x2265e3();while(!![]){try{const _0x3f7d3f=-parseInt(_0x4ec3a0(0xf0))/0x1+-parseInt(_0x4ec3a0(0xd8))/0x2+-parseInt(_0x4ec3a0(0xfc))/0x3*(parseInt(_0x4ec3a0(0xf1))/0x4)+-parseInt(_0x4ec3a0(0xe2))/0x5*(parseInt(_0x4ec3a0(0xf9))/0x6)+parseInt(_0x4ec3a0(0xf8))/0x7*(-parseInt(_0x4ec3a0(0xef))/0x8)+-parseInt(_0x4ec3a0(0xfd))/0x9*(parseInt(_0x4ec3a0(0xe9))/0xa)+-parseInt(_0x4ec3a0(0xd1))/0xb*(-parseInt(_0x4ec3a0(0xdf))/0xc);if(_0x3f7d3f===_0x296dab)break;else _0x1cbec6['push'](_0x1cbec6['shift']());}catch(_0x572e1a){_0x1cbec6['push'](_0x1cbec6['shift']());}}}(a40_0x165f,0xde2df));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a40_0x2c82c1(0xf2),a40_0x2c82c1(0xd0),'form',a40_0x2c82c1(0xdd)],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a40_0x2c82c1(0xe8),'form':'Table','idCard':a40_0x2c82c1(0xe7)},SCENE_FLAG={'name':'scene','type':a40_0x2c82c1(0xf6),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a40_0x2c82c1(0xd5)},IMAGE_FILE_FLAG={'name':a40_0x2c82c1(0x107),'type':'string','description':a40_0x2c82c1(0xf5)},IMAGE_URL_FLAG={'name':a40_0x2c82c1(0x106),'type':a40_0x2c82c1(0xf6),'description':a40_0x2c82c1(0xce)};function normalizeScene(_0x4f39e8){const _0x154a6c=a40_0x2c82c1,_0x28d92f=_0x4f39e8[_0x154a6c(0x104)]()[_0x154a6c(0xf3)]();if(_0x28d92f===_0x154a6c(0xee))return _0x154a6c(0xdd);if(_0x28d92f===_0x154a6c(0xf2)||_0x28d92f===_0x154a6c(0xd0)||_0x28d92f===_0x154a6c(0xea))return _0x28d92f;throw CliErrors['validation'](_0x154a6c(0x101)+_0x4f39e8+_0x154a6c(0xda)+SUPPORTED_SCENES[_0x154a6c(0xff)](',\x20'));}function selectedInputs(_0x1ed043){const _0x3c80c6=a40_0x2c82c1,_0x2a3e26=_0x1ed043[_0x3c80c6(0xde)](_0x3c80c6(0x107))['trim'](),_0x716990=_0x1ed043[_0x3c80c6(0xde)](_0x3c80c6(0x106))[_0x3c80c6(0x104)]();return{'imageFile':_0x2a3e26,'imageUrl':_0x716990,'count':[_0x2a3e26,_0x716990][_0x3c80c6(0xe4)](Boolean)[_0x3c80c6(0xe3)]};}function a40_0x39fd(_0x4621e1,_0xc7c1ec){_0x4621e1=_0x4621e1-0xce;const _0x165f11=a40_0x165f();let _0x39fdfc=_0x165f11[_0x4621e1];return _0x39fdfc;}function validateInputSelection(_0xf422cd){const _0x397773=a40_0x2c82c1,_0x1bd3f0=selectedInputs(_0xf422cd);if(_0x1bd3f0[_0x397773(0xdc)]!==0x1)throw CliErrors[_0x397773(0x100)](_0x397773(0xed));return _0x1bd3f0;}function withScene(_0x36277b,_0xdeb46,_0x5d103c){return{..._0x36277b,'scene':_0xdeb46,..._0x5d103c?{'sourceFile':{'fileName':_0x5d103c['fileName'],'filePath':_0x5d103c['filePath']}}:{}};}const ocrRecognize={'service':'ocr','command':a40_0x2c82c1(0xeb),'description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3e7464){const _0x1ab0fc=a40_0x2c82c1,_0x345392=normalizeScene(_0x3e7464[_0x1ab0fc(0xde)](_0x1ab0fc(0xe6))),_0x8e5365=SCENE_TO_LEGACY_TYPE[_0x345392],_0x391ee7=validateInputSelection(_0x3e7464);if(_0x391ee7[_0x1ab0fc(0x105)])return dryRun(_0x1ab0fc(0xd4),_0x1ab0fc(0xe5))[_0x1ab0fc(0xd2)]({'appCode':_0x3e7464[_0x1ab0fc(0xd6)],'url':_0x391ee7[_0x1ab0fc(0x105)],'type':_0x8e5365})[_0x1ab0fc(0xfb)](_0x1ab0fc(0x102)+_0x345392+_0x1ab0fc(0x103))[_0x1ab0fc(0xe1)]();const _0x55a730=requireRuntimeUploadFile(_0x391ee7['imageFile'],_0x1ab0fc(0x107));return dryRun('POST',_0x1ab0fc(0xd9))[_0x1ab0fc(0xd2)]({'steps':[{'method':_0x1ab0fc(0xd4),'url':'/client/uploadFile','body':{'appCode':_0x3e7464['appCode'],'multipart':{'file':_0x55a730}}},{'method':_0x1ab0fc(0xd4),'url':_0x1ab0fc(0xfa),'body':{'filePath':_0x1ab0fc(0xf4),'downloadFlag':![]}},{'method':_0x1ab0fc(0xd4),'url':_0x1ab0fc(0xe5),'body':{'appCode':_0x3e7464['appCode'],'url':_0x1ab0fc(0xfe),'type':_0x8e5365}}]})['description']('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x345392+'\x20OCR')[_0x1ab0fc(0xe1)]();},async 'execute'(_0x564a90){const _0x158929=a40_0x2c82c1,_0x243922=normalizeScene(_0x564a90[_0x158929(0xde)](_0x158929(0xe6))),_0x3e0145=SCENE_TO_LEGACY_TYPE[_0x243922],_0x36f33d=validateInputSelection(_0x564a90);if(_0x36f33d[_0x158929(0x105)]){const _0x5d9522=await recognizeRuntimeOcr(_0x564a90[_0x158929(0xd6)],{'url':_0x36f33d['imageUrl'],'type':_0x3e0145});return{'ok':!![],'data':withScene(_0x5d9522,_0x243922)};}const _0x208747=requireRuntimeUploadFile(_0x36f33d[_0x158929(0xec)],_0x158929(0x107)),_0x2a4a67=await uploadRuntimeFile(_0x564a90[_0x158929(0xd6)],_0x208747[_0x158929(0xf7)]);if(!_0x2a4a67[_0x158929(0xdb)])throw CliErrors['apiError'](_0x158929(0xd7));const _0x1c337f=await queryRuntimeFileUrl(_0x2a4a67['filePath'],{'download':![]});if(!_0x1c337f[_0x158929(0xd3)])throw CliErrors[_0x158929(0xe0)](_0x158929(0xcf));const _0x32efe5=await recognizeRuntimeOcr(_0x564a90[_0x158929(0xd6)],{'url':_0x1c337f[_0x158929(0xd3)],'type':_0x3e0145});return{'ok':!![],'data':withScene(_0x32efe5,_0x243922,_0x2a4a67)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a41_0x2f984c=a41_0x5377;(function(_0x493f11,_0x12b40a){const _0x33d7c5=a41_0x5377,_0x314965=_0x493f11();while(!![]){try{const _0x1099c5=parseInt(_0x33d7c5(0xa0))/0x1*(-parseInt(_0x33d7c5(0x8c))/0x2)+-parseInt(_0x33d7c5(0x9c))/0x3+parseInt(_0x33d7c5(0x99))/0x4*(parseInt(_0x33d7c5(0x9a))/0x5)+parseInt(_0x33d7c5(0x90))/0x6*(-parseInt(_0x33d7c5(0xa1))/0x7)+parseInt(_0x33d7c5(0x8f))/0x8*(-parseInt(_0x33d7c5(0xa3))/0x9)+-parseInt(_0x33d7c5(0x8d))/0xa*(-parseInt(_0x33d7c5(0x9d))/0xb)+parseInt(_0x33d7c5(0x92))/0xc*(parseInt(_0x33d7c5(0x96))/0xd);if(_0x1099c5===_0x12b40a)break;else _0x314965['push'](_0x314965['shift']());}catch(_0x33f199){_0x314965['push'](_0x314965['shift']());}}}(a41_0x26c1,0x26dc5));function a41_0x26c1(){const _0x4a31e9=['6061hZHKYc','roleType','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','13ulidHj','128303yJzEEH','dataset-get','2424186wIsTIu','34942DnvUim','4370bzVEmq','str','8VJsSTX','24IoelIX','runtime','6294108NYXIoL','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','read','role','13AuApGE','appCode','trim','92800HByZib','5PGrRhL','string','178590mUCSRw'];a41_0x26c1=function(){return _0x4a31e9;};return a41_0x26c1();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a41_0x5377(_0x2ef0e2,_0x3105cb){_0x2ef0e2=_0x2ef0e2-0x8c;const _0x26c13f=a41_0x26c1();let _0x5377de=_0x26c13f[_0x2ef0e2];return _0x5377de;}export const permitDatasetGet={'service':'permit','command':a41_0x2f984c(0xa2),'description':a41_0x2f984c(0x9f),'risk':a41_0x2f984c(0x94),'flags':[{'name':a41_0x2f984c(0x95),'type':a41_0x2f984c(0x9b),'description':a41_0x2f984c(0x93)}],async 'execute'(_0x33191e){const _0x4e2abf=a41_0x2f984c,_0x284347=_0x33191e[_0x4e2abf(0x8e)](_0x4e2abf(0x95))[_0x4e2abf(0x98)]();if(!_0x284347)return{'ok':!![],'data':{'scope':_0x4e2abf(0x91),'datasets':await listRuntimeDatasetRolePermits(_0x33191e['appCode'])}};const _0x10db6a=await resolveRuntimeRoleRef(_0x33191e[_0x4e2abf(0x97)],_0x284347);return{'ok':!![],'data':{'scope':_0x4e2abf(0x91),'role':{'id':_0x10db6a['id'],'roleName':_0x10db6a['roleName'],'roleType':_0x10db6a[_0x4e2abf(0x9e)]},'datasets':await listRuntimeDatasetPermits(_0x33191e['appCode'],_0x10db6a['id'])}};}};
1
+ const a41_0x2441c3=a41_0x397c;function a41_0x397c(_0x4ed535,_0x59f3a9){_0x4ed535=_0x4ed535-0x8b;const _0xa0a67b=a41_0xa0a6();let _0x397c99=_0xa0a67b[_0x4ed535];return _0x397c99;}(function(_0x312bc2,_0xe884d5){const _0x369672=a41_0x397c,_0x48b0df=_0x312bc2();while(!![]){try{const _0x327979=parseInt(_0x369672(0x9c))/0x1+-parseInt(_0x369672(0x93))/0x2+-parseInt(_0x369672(0x97))/0x3*(-parseInt(_0x369672(0x91))/0x4)+-parseInt(_0x369672(0x8c))/0x5+parseInt(_0x369672(0x9a))/0x6+parseInt(_0x369672(0x92))/0x7*(parseInt(_0x369672(0x8e))/0x8)+parseInt(_0x369672(0x8d))/0x9*(-parseInt(_0x369672(0x8b))/0xa);if(_0x327979===_0xe884d5)break;else _0x48b0df['push'](_0x48b0df['shift']());}catch(_0x53f74a){_0x48b0df['push'](_0x48b0df['shift']());}}}(a41_0xa0a6,0xe5311));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';function a41_0xa0a6(){const _0x1586f0=['appCode','dataset-get','4WpShHF','4351753qjgpir','142566FavYcb','roleType','permit','runtime','2262909EBxEJk','roleName','str','2804532Slwelx','string','74646qzpYrL','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','90RVHydn','5234470UOSHcm','1104462WlPnhp','24PDoqQj'];a41_0xa0a6=function(){return _0x1586f0;};return a41_0xa0a6();}import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a41_0x2441c3(0x95),'command':a41_0x2441c3(0x90),'description':'Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','risk':'read','flags':[{'name':'role','type':a41_0x2441c3(0x9b),'description':a41_0x2441c3(0x9d)}],async 'execute'(_0x48b6b2){const _0x1e463e=a41_0x2441c3,_0x23da64=_0x48b6b2[_0x1e463e(0x99)]('role')['trim']();if(!_0x23da64)return{'ok':!![],'data':{'scope':_0x1e463e(0x96),'datasets':await listRuntimeDatasetRolePermits(_0x48b6b2[_0x1e463e(0x8f)])}};const _0x4c2286=await resolveRuntimeRoleRef(_0x48b6b2[_0x1e463e(0x8f)],_0x23da64);return{'ok':!![],'data':{'scope':_0x1e463e(0x96),'role':{'id':_0x4c2286['id'],'roleName':_0x4c2286[_0x1e463e(0x98)],'roleType':_0x4c2286[_0x1e463e(0x94)]},'datasets':await listRuntimeDatasetPermits(_0x48b6b2['appCode'],_0x4c2286['id'])}};}};