@lovrabet/lovrabet-cli 2.2.7-beta.1 → 2.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.d.ts +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.d.ts +12 -0
  26. package/lib/commands/config/init.js +1 -0
  27. package/lib/commands/config/shared.d.ts +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.d.ts +11 -0
  93. package/lib/config/domain-config.js +1 -0
  94. package/lib/config/schema.d.ts +7 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.d.ts +4 -0
  101. package/lib/constant/distribution.js +1 -1
  102. package/lib/constant/domain.d.ts +10 -3
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/output.js +1 -1
  106. package/lib/constant/product.d.ts +52 -14
  107. package/lib/constant/product.js +1 -1
  108. package/lib/constant/region.d.ts +15 -0
  109. package/lib/constant/region.js +1 -0
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/constant/url.d.ts +2 -0
  112. package/lib/constant/url.js +1 -1
  113. package/lib/context.d.ts +2 -6
  114. package/lib/context.js +1 -1
  115. package/lib/core/api-client.js +1 -1
  116. package/lib/core/db-resolver.js +1 -1
  117. package/lib/core/sdk-client.d.ts +2 -0
  118. package/lib/core/sdk-client.js +1 -1
  119. package/lib/errors.js +1 -1
  120. package/lib/framework/build-all-flags.js +1 -1
  121. package/lib/framework/dryrun.js +1 -1
  122. package/lib/framework/flags.js +1 -1
  123. package/lib/framework/help.js +1 -1
  124. package/lib/framework/index.js +1 -1
  125. package/lib/framework/output.js +1 -1
  126. package/lib/framework/preparse.js +1 -1
  127. package/lib/framework/rate-limit.js +1 -1
  128. package/lib/framework/raw-flags.js +1 -1
  129. package/lib/framework/response.js +1 -1
  130. package/lib/framework/runner-confirmation.js +1 -1
  131. package/lib/framework/runner-error.js +1 -1
  132. package/lib/framework/runner.d.ts +3 -1
  133. package/lib/framework/runner.js +1 -1
  134. package/lib/framework/schema-export.js +1 -1
  135. package/lib/framework/service-order.js +1 -1
  136. package/lib/framework/types.js +1 -1
  137. package/lib/generated/build-info.d.ts +4 -4
  138. package/lib/generated/build-info.js +1 -1
  139. package/lib/help.js +1 -1
  140. package/lib/postinstall.js +1 -1
  141. package/lib/runtime/confirmation.js +1 -1
  142. package/lib/runtime/event.js +1 -1
  143. package/lib/runtime/index.js +1 -1
  144. package/lib/runtime/queue.js +1 -1
  145. package/lib/runtime/resolve.js +1 -1
  146. package/lib/skills/builtin-skill.js +1 -1
  147. package/lib/skills/npx-skills-add.js +1 -1
  148. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  149. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  150. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  151. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  152. package/lib/skills/runtime-skill-sync/links.js +1 -1
  153. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  154. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  155. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  156. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  157. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  158. package/lib/skills/runtime-skill-sync/push.js +1 -1
  159. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  162. package/lib/skills/runtime-skill-sync.js +1 -1
  163. package/lib/skills/skill-presence.js +1 -1
  164. package/lib/utils/access-key-redaction.d.ts +15 -0
  165. package/lib/utils/access-key-redaction.js +1 -0
  166. package/lib/utils/apply-jq-filter.js +1 -1
  167. package/lib/utils/cli-version-check.d.ts +12 -0
  168. package/lib/utils/cli-version-check.js +1 -0
  169. package/lib/utils/cli-version-policy.d.ts +12 -0
  170. package/lib/utils/cli-version-policy.js +1 -0
  171. package/lib/utils/logger.js +1 -1
  172. package/lib/utils/lossless-json.js +1 -1
  173. package/lib/utils/params.js +1 -1
  174. package/lib/utils/platform.js +1 -1
  175. package/lib/utils/update-notice.d.ts +2 -1
  176. package/lib/utils/update-notice.js +1 -1
  177. package/lib/utils/version.js +1 -1
  178. package/lib/utils/write-cli-side-channel.js +1 -1
  179. package/package.json +3 -1
  180. package/skills/lovrabet/SKILL.md +11 -12
  181. package/skills/lovrabet/guides/troubleshooting.md +12 -8
  182. package/skills/lovrabet/references/lovrabet-app.md +1 -1
  183. package/skills/lovrabet/references/lovrabet-auth.md +7 -25
  184. package/skills/lovrabet/references/lovrabet-config-commands.md +42 -5
  185. package/skills/lovrabet/references/lovrabet-config.md +25 -5
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a25_0x1fe560=a25_0x28e2;(function(_0x50d3d3,_0x46ae2b){const _0x43d5f1=a25_0x28e2,_0x2f37dd=_0x50d3d3();while(!![]){try{const _0x1471e4=parseInt(_0x43d5f1(0x1df))/0x1*(-parseInt(_0x43d5f1(0x1e2))/0x2)+parseInt(_0x43d5f1(0x1d9))/0x3+parseInt(_0x43d5f1(0x21c))/0x4+-parseInt(_0x43d5f1(0x1d7))/0x5*(-parseInt(_0x43d5f1(0x20e))/0x6)+parseInt(_0x43d5f1(0x1f2))/0x7*(parseInt(_0x43d5f1(0x21a))/0x8)+parseInt(_0x43d5f1(0x1db))/0x9+-parseInt(_0x43d5f1(0x209))/0xa*(parseInt(_0x43d5f1(0x1fd))/0xb);if(_0x1471e4===_0x46ae2b)break;else _0x2f37dd['push'](_0x2f37dd['shift']());}catch(_0x5cad84){_0x2f37dd['push'](_0x2f37dd['shift']());}}}(a25_0x7308,0x418dd));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x252d30){const _0x1f566d=a25_0x28e2;if(_0x252d30[_0x1f566d(0x1e5)])return null;const _0x4170a3=Boolean(_0x252d30[_0x1f566d(0x21d)]!==undefined||_0x252d30[_0x1f566d(0x203)]!==undefined);let _0x26874b={};if(!_0x4170a3&&typeof _0x252d30['extend']===_0x1f566d(0x216))try{_0x26874b=JSON['parse'](_0x252d30['extend']);}catch{}const _0x29005e=_0x4170a3?_0x252d30[_0x1f566d(0x210)]:_0x252d30[_0x1f566d(0x1ff)],_0x241091=_0x4170a3?_0x252d30[_0x1f566d(0x21d)]:_0x252d30[_0x1f566d(0x210)],_0x43b2fd=_0x4170a3?_0x252d30['doType']:_0x252d30[_0x1f566d(0x1da)]||_0x252d30[_0x1f566d(0x201)],_0x473fb0=_0x4170a3?_0x252d30[_0x1f566d(0x1f5)]===!![]:_0x26874b[_0x1f566d(0x1f5)]===!![],_0x268b1a=_0x4170a3?_0x252d30[_0x1f566d(0x1e6)]===!![]:_0x26874b[_0x1f566d(0x1e6)]===!![],_0x492ac8=_0x4170a3?_0x252d30[_0x1f566d(0x1ef)]??null:_0x26874b['options']??null,_0x59fd22={'name':_0x29005e,'displayName':_0x241091||_0x29005e,'type':_0x43b2fd,'dbType':_0x252d30[_0x1f566d(0x211)],'pk':_0x473fb0,'required':_0x268b1a,'description':_0x252d30[_0x1f566d(0x212)]||undefined};return Array[_0x1f566d(0x1f8)](_0x492ac8)&&_0x492ac8[_0x1f566d(0x219)]>0x0&&(_0x59fd22['options']=_0x492ac8),_0x59fd22;}function parseJsonMaybe(_0x25541a){const _0x4945cf=a25_0x28e2;if(typeof _0x25541a!==_0x4945cf(0x216))return _0x25541a;try{return JSON[_0x4945cf(0x217)](_0x25541a);}catch{return _0x25541a;}}function a25_0x28e2(_0x2934cc,_0x5c3d3f){_0x2934cc=_0x2934cc-0x1d7;const _0x7308f2=a25_0x7308();let _0x28e288=_0x7308f2[_0x2934cc];return _0x28e288;}function normalizeOperationEntry(_0x27a997,_0xee0d7d){const _0x4930b1=a25_0x28e2;if(!_0xee0d7d||typeof _0xee0d7d!==_0x4930b1(0x20c))return null;if(!_0xee0d7d[_0x4930b1(0x1e8)]||!_0xee0d7d[_0x4930b1(0x1ee)])return null;const _0x506242={'name':_0x27a997,'method':_0xee0d7d[_0x4930b1(0x1e8)],'path':_0xee0d7d[_0x4930b1(0x1ee)]};if(_0xee0d7d[_0x4930b1(0x1ea)])_0x506242['host']=_0xee0d7d['host'];if(_0xee0d7d[_0x4930b1(0x1e0)]!=null)_0x506242[_0x4930b1(0x1e0)]=parseJsonMaybe(_0xee0d7d[_0x4930b1(0x1e0)]);if(_0xee0d7d[_0x4930b1(0x1d8)]!=null)_0x506242[_0x4930b1(0x1d8)]=parseJsonMaybe(_0xee0d7d['responseBody']);if(_0xee0d7d[_0x4930b1(0x220)]!=null)_0x506242[_0x4930b1(0x220)]=_0xee0d7d[_0x4930b1(0x220)];if(_0xee0d7d['afterScriptId']!=null)_0x506242[_0x4930b1(0x21f)]=_0xee0d7d[_0x4930b1(0x21f)];if(Array['isArray'](_0xee0d7d[_0x4930b1(0x1e4)]))_0x506242[_0x4930b1(0x1e4)]=_0xee0d7d[_0x4930b1(0x1e4)];if(Array[_0x4930b1(0x1f8)](_0xee0d7d[_0x4930b1(0x1f7)]))_0x506242[_0x4930b1(0x1f7)]=_0xee0d7d[_0x4930b1(0x1f7)];return _0x506242;}function summarizeDbtable(_0xcee25){const _0xa8c24a=a25_0x28e2,_0x3ff806={},_0x4d97c3=[_0xa8c24a(0x204),_0xa8c24a(0x1f9),'tableName',_0xa8c24a(0x1f4),_0xa8c24a(0x1f5),_0xa8c24a(0x218),'logicField',_0xa8c24a(0x1f6),_0xa8c24a(0x21e),'creatorIdField','creatorNameField',_0xa8c24a(0x1ec),_0xa8c24a(0x1e9),_0xa8c24a(0x1fc),_0xa8c24a(0x1dd)];for(const _0x20366d of _0x4d97c3){if(_0xcee25[_0x20366d]!==undefined)_0x3ff806[_0x20366d]=_0xcee25[_0x20366d];}return typeof _0x3ff806[_0xa8c24a(0x218)]==='string'&&_0x3ff806['allFields'][_0xa8c24a(0x219)]>0x0&&(_0x3ff806['allFieldNames']=_0x3ff806[_0xa8c24a(0x218)][_0xa8c24a(0x20b)](',')['map'](_0x535a5b=>_0x535a5b[_0xa8c24a(0x200)]())[_0xa8c24a(0x221)](Boolean)),_0x3ff806;}function normalizeRelatedPages(_0xccefb2){const _0x5392d6=a25_0x28e2;if(!Array[_0x5392d6(0x1f8)](_0xccefb2))return[];return _0xccefb2[_0x5392d6(0x221)](_0xba0419=>_0xba0419&&typeof _0xba0419===_0x5392d6(0x20c))[_0x5392d6(0x206)](_0x1139c7=>({'id':_0x1139c7['id'],'type':_0x1139c7[_0x5392d6(0x1da)],'code':_0x1139c7['code'],'title':_0x1139c7[_0x5392d6(0x1fe)],'deleted':_0x1139c7[_0x5392d6(0x1e5)]===!![]}));}function a25_0x7308(){const _0x171ae3=['relations','1546xrSMdx','dataset','requestFields','deleted','required','validateRules','method','modifierNameField','host','formatRules','modifierIdField','sourceType','path','options','source','extend','7iwETOP','properties','datasetKey','pkField','createTimeField','responseFields','isArray','dbName','appCode','columnCodeListWithDeleted','labelField','11TqKbGZ','title','code','trim','dataType','fields','doType','dbId','str','map','relatedPageInfoList','find','10809960ntdWBL','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','split','object','modelCode','726oTOPTI','dbtableConfig','name','dbType','description','entries','modelId','push','string','parse','allFields','length','1330808HnFfYB','operations','1939168NKGSyb','displayName','updateTimeField','afterScriptId','beforeScriptId','filter','detail','20285FWIWPv','responseBody','106887pSAIOQ','type','3445785RpbYfq','indexes','dblinkInfoDTO','tableName','273wwoHtS','requestBody'];a25_0x7308=function(){return _0x171ae3;};return a25_0x7308();}function normalizeFallbackFieldName(_0x406b19,_0x573185){const _0x516e9a=a25_0x28e2,_0x386963=_0x406b19[_0x516e9a(0x200)]();if(!_0x386963)return null;return{'name':_0x386963,'displayName':_0x386963,'type':undefined,'dbType':undefined,'pk':_0x386963===_0x573185,'required':![],'description':undefined};}async function loadListFieldFallback(_0x2f0150,_0x15dee0){const _0x2a6a49=a25_0x28e2;if(!_0x2f0150||!_0x15dee0)return[];try{const _0x43055e=await listDatasets(_0x2f0150,{'code':_0x15dee0}),_0x53fbeb=_0x43055e[_0x2a6a49(0x208)](_0x25836e=>_0x25836e[_0x2a6a49(0x1ff)]===_0x15dee0)??_0x43055e[0x0],_0x15aa32=_0x53fbeb?.[_0x2a6a49(0x20f)]??{},_0x21fdcd=typeof _0x15aa32[_0x2a6a49(0x218)]===_0x2a6a49(0x216)?_0x15aa32[_0x2a6a49(0x218)][_0x2a6a49(0x20b)](','):[];return _0x21fdcd[_0x2a6a49(0x206)](_0xdc59a5=>normalizeFallbackFieldName(_0xdc59a5,_0x15aa32['pkField']))['filter'](_0x53c53a=>_0x53c53a!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x1fe560(0x1e3),'command':a25_0x1fe560(0x222),'description':a25_0x1fe560(0x20a),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x1f17e0){const _0x550e05=a25_0x1fe560,_0x5364c8=await getDatasetDetail(_0x1f17e0[_0x550e05(0x205)](_0x550e05(0x1ff))),_0x176d1d=Array['isArray'](_0x5364c8[_0x550e05(0x202)])?_0x5364c8['fields']:Array['isArray'](_0x5364c8[_0x550e05(0x1f3)])?_0x5364c8[_0x550e05(0x1f3)]:[];let _0x45483a=_0x176d1d[_0x550e05(0x206)](_0x54adc5=>normalizeField(_0x54adc5))[_0x550e05(0x221)](_0x5cb1d6=>_0x5cb1d6!==null);_0x45483a[_0x550e05(0x219)]===0x0&&(_0x45483a=await loadListFieldFallback(_0x1f17e0[_0x550e05(0x1fa)],_0x1f17e0[_0x550e05(0x205)](_0x550e05(0x1ff))));const _0x21d5aa=_0x5364c8[_0x550e05(0x21b)]??{},_0x5b1971=[];for(const [_0x2980e1,_0x502a91]of Object[_0x550e05(0x213)](_0x21d5aa)){const _0x1a342f=normalizeOperationEntry(_0x2980e1,_0x502a91);if(_0x1a342f)_0x5b1971[_0x550e05(0x215)](_0x1a342f);}const _0x1ef5a0=_0x5364c8[_0x550e05(0x20f)]??{},_0x4774e5=_0x5364c8[_0x550e05(0x1e3)]??{},_0x262d90=_0x1ef5a0[_0x550e05(0x204)]!=null?{'id':_0x1ef5a0['dbId'],'name':_0x1ef5a0[_0x550e05(0x1f9)]??null}:undefined;let _0x4398aa;return typeof _0x5364c8[_0x550e05(0x1f1)]===_0x550e05(0x216)&&(_0x4398aa=parseJsonMaybe(_0x5364c8[_0x550e05(0x1f1)])),{'ok':!![],'data':{'id':_0x5364c8[_0x550e05(0x214)]??_0x5364c8['id'],'name':_0x5364c8[_0x550e05(0x210)],'code':_0x5364c8[_0x550e05(0x20d)]||_0x5364c8['code'],'doVersion':_0x5364c8['doVersion'],'description':_0x5364c8[_0x550e05(0x212)]||_0x4774e5['tableComment']||undefined,'source':_0x5364c8[_0x550e05(0x1f0)]||_0x4774e5[_0x550e05(0x1ed)],'table':_0x1ef5a0[_0x550e05(0x1de)]||_0x4774e5[_0x550e05(0x1de)],'datasetKey':_0x1ef5a0[_0x550e05(0x1f4)],'pk':_0x1ef5a0[_0x550e05(0x1f5)],'db':_0x262d90,'dbtable':summarizeDbtable(_0x1ef5a0),'fields':_0x45483a,'operations':_0x5b1971,'indexes':Array[_0x550e05(0x1f8)](_0x4774e5[_0x550e05(0x1dc)])?_0x4774e5['indexes']:[],'relations':_0x5364c8[_0x550e05(0x1e1)]??null,'relatedPages':normalizeRelatedPages(_0x5364c8[_0x550e05(0x207)]),...Array[_0x550e05(0x1f8)](_0x5364c8[_0x550e05(0x1fb)])?{'columnCodeListWithDeleted':_0x5364c8['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x5364c8['formatRules'])?_0x5364c8[_0x550e05(0x1eb)]:[],'validateRules':Array['isArray'](_0x5364c8[_0x550e05(0x1e7)])?_0x5364c8[_0x550e05(0x1e7)]:[],..._0x4398aa!==undefined?{'extend':_0x4398aa}:{},'stats':{'fieldCount':_0x45483a['length'],'operationCount':_0x5b1971['length']}}};}};
1
+ const a26_0x20b147=a26_0x2637;(function(_0x1282be,_0x28b51b){const _0x220a83=a26_0x2637,_0x1c7e4f=_0x1282be();while(!![]){try{const _0x77b73d=-parseInt(_0x220a83(0x114))/0x1+-parseInt(_0x220a83(0x110))/0x2*(parseInt(_0x220a83(0xf0))/0x3)+parseInt(_0x220a83(0x102))/0x4+-parseInt(_0x220a83(0xfe))/0x5+-parseInt(_0x220a83(0x12c))/0x6+parseInt(_0x220a83(0x121))/0x7+parseInt(_0x220a83(0xfc))/0x8;if(_0x77b73d===_0x28b51b)break;else _0x1c7e4f['push'](_0x1c7e4f['shift']());}catch(_0x2e65ff){_0x1c7e4f['push'](_0x1c7e4f['shift']());}}}(a26_0x2445,0x9118e));function a26_0x2637(_0x39e36f,_0x42aa7f){_0x39e36f=_0x39e36f-0xef;const _0x24455f=a26_0x2445();let _0x2637ab=_0x24455f[_0x39e36f];return _0x2637ab;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x33e133){const _0x21b3c0=a26_0x2637;if(_0x33e133['deleted'])return null;const _0x535a3b=Boolean(_0x33e133[_0x21b3c0(0x106)]!==undefined||_0x33e133['doType']!==undefined);let _0x244b63={};if(!_0x535a3b&&typeof _0x33e133[_0x21b3c0(0x10f)]==='string')try{_0x244b63=JSON['parse'](_0x33e133[_0x21b3c0(0x10f)]);}catch{}const _0x39de09=_0x535a3b?_0x33e133[_0x21b3c0(0x10e)]:_0x33e133['code'],_0x5d1bad=_0x535a3b?_0x33e133[_0x21b3c0(0x106)]:_0x33e133[_0x21b3c0(0x10e)],_0x1a56a0=_0x535a3b?_0x33e133[_0x21b3c0(0xf2)]:_0x33e133[_0x21b3c0(0x133)]||_0x33e133[_0x21b3c0(0xef)],_0xe29821=_0x535a3b?_0x33e133[_0x21b3c0(0x116)]===!![]:_0x244b63['pkField']===!![],_0x4d6ce6=_0x535a3b?_0x33e133[_0x21b3c0(0x128)]===!![]:_0x244b63[_0x21b3c0(0x128)]===!![],_0xc5f30f=_0x535a3b?_0x33e133['options']??null:_0x244b63[_0x21b3c0(0xfb)]??null,_0x1ce977={'name':_0x39de09,'displayName':_0x5d1bad||_0x39de09,'type':_0x1a56a0,'dbType':_0x33e133['dbType'],'pk':_0xe29821,'required':_0x4d6ce6,'description':_0x33e133[_0x21b3c0(0x112)]||undefined};return Array[_0x21b3c0(0xf6)](_0xc5f30f)&&_0xc5f30f[_0x21b3c0(0x10c)]>0x0&&(_0x1ce977[_0x21b3c0(0xfb)]=_0xc5f30f),_0x1ce977;}function parseJsonMaybe(_0x18bd9f){const _0x1d98eb=a26_0x2637;if(typeof _0x18bd9f!==_0x1d98eb(0x12f))return _0x18bd9f;try{return JSON['parse'](_0x18bd9f);}catch{return _0x18bd9f;}}function normalizeOperationEntry(_0x370360,_0xcde52b){const _0x3ad896=a26_0x2637;if(!_0xcde52b||typeof _0xcde52b!==_0x3ad896(0x12e))return null;if(!_0xcde52b[_0x3ad896(0x109)]||!_0xcde52b['path'])return null;const _0x2ed6ff={'name':_0x370360,'method':_0xcde52b[_0x3ad896(0x109)],'path':_0xcde52b['path']};if(_0xcde52b[_0x3ad896(0xf9)])_0x2ed6ff[_0x3ad896(0xf9)]=_0xcde52b[_0x3ad896(0xf9)];if(_0xcde52b[_0x3ad896(0x104)]!=null)_0x2ed6ff[_0x3ad896(0x104)]=parseJsonMaybe(_0xcde52b['requestBody']);if(_0xcde52b[_0x3ad896(0x127)]!=null)_0x2ed6ff['responseBody']=parseJsonMaybe(_0xcde52b[_0x3ad896(0x127)]);if(_0xcde52b[_0x3ad896(0x130)]!=null)_0x2ed6ff[_0x3ad896(0x130)]=_0xcde52b[_0x3ad896(0x130)];if(_0xcde52b[_0x3ad896(0xf4)]!=null)_0x2ed6ff[_0x3ad896(0xf4)]=_0xcde52b[_0x3ad896(0xf4)];if(Array[_0x3ad896(0xf6)](_0xcde52b[_0x3ad896(0xf8)]))_0x2ed6ff['requestFields']=_0xcde52b[_0x3ad896(0xf8)];if(Array[_0x3ad896(0xf6)](_0xcde52b['responseFields']))_0x2ed6ff[_0x3ad896(0x132)]=_0xcde52b[_0x3ad896(0x132)];return _0x2ed6ff;}function summarizeDbtable(_0x241293){const _0xeb3ad5=a26_0x2637,_0x314760={},_0x48b3f9=[_0xeb3ad5(0x117),_0xeb3ad5(0x134),_0xeb3ad5(0xfa),_0xeb3ad5(0x118),'pkField','allFields',_0xeb3ad5(0x10d),'createTimeField','updateTimeField',_0xeb3ad5(0x126),_0xeb3ad5(0x131),'modifierIdField',_0xeb3ad5(0x11a),_0xeb3ad5(0xfd),_0xeb3ad5(0xf5)];for(const _0x495d22 of _0x48b3f9){if(_0x241293[_0x495d22]!==undefined)_0x314760[_0x495d22]=_0x241293[_0x495d22];}return typeof _0x314760['allFields']===_0xeb3ad5(0x12f)&&_0x314760['allFields'][_0xeb3ad5(0x10c)]>0x0&&(_0x314760[_0xeb3ad5(0x11e)]=_0x314760['allFields'][_0xeb3ad5(0x119)](',')[_0xeb3ad5(0x100)](_0xb75aa1=>_0xb75aa1['trim']())[_0xeb3ad5(0x11f)](Boolean)),_0x314760;}function normalizeRelatedPages(_0x1fdc2a){const _0x303e59=a26_0x2637;if(!Array[_0x303e59(0xf6)](_0x1fdc2a))return[];return _0x1fdc2a[_0x303e59(0x11f)](_0x1e8173=>_0x1e8173&&typeof _0x1e8173===_0x303e59(0x12e))[_0x303e59(0x100)](_0x3531ea=>({'id':_0x3531ea['id'],'type':_0x3531ea[_0x303e59(0x133)],'code':_0x3531ea['code'],'title':_0x3531ea[_0x303e59(0xf7)],'deleted':_0x3531ea[_0x303e59(0x115)]===!![]}));}function normalizeFallbackFieldName(_0x5da4ac,_0x41b554){const _0x2e4227=a26_0x2637,_0x515505=_0x5da4ac[_0x2e4227(0xf1)]();if(!_0x515505)return null;return{'name':_0x515505,'displayName':_0x515505,'type':undefined,'dbType':undefined,'pk':_0x515505===_0x41b554,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1f100c,_0x573ee0){const _0x2e9731=a26_0x2637;if(!_0x1f100c||!_0x573ee0)return[];try{const _0x48d1c6=await listDatasets(_0x1f100c,{'code':_0x573ee0}),_0x4ae6f2=_0x48d1c6[_0x2e9731(0x10b)](_0x4488c1=>_0x4488c1[_0x2e9731(0xff)]===_0x573ee0)??_0x48d1c6[0x0],_0x507364=_0x4ae6f2?.[_0x2e9731(0x111)]??{},_0x4d9c4e=typeof _0x507364[_0x2e9731(0x125)]===_0x2e9731(0x12f)?_0x507364['allFields'][_0x2e9731(0x119)](','):[];return _0x4d9c4e[_0x2e9731(0x100)](_0x968c46=>normalizeFallbackFieldName(_0x968c46,_0x507364['pkField']))[_0x2e9731(0x11f)](_0x55a8cf=>_0x55a8cf!==null);}catch{return[];}}export const datasetDetail={'service':a26_0x20b147(0x11c),'command':a26_0x20b147(0x12a),'description':a26_0x20b147(0x122),'risk':a26_0x20b147(0x10a),'flags':[CODE_FLAG],async 'execute'(_0x17a734){const _0x4eaa45=a26_0x20b147,_0x45ebe8=await getDatasetDetail(_0x17a734[_0x4eaa45(0xf3)](_0x4eaa45(0xff))),_0x1d2cec=Array['isArray'](_0x45ebe8[_0x4eaa45(0x11b)])?_0x45ebe8['fields']:Array[_0x4eaa45(0xf6)](_0x45ebe8[_0x4eaa45(0x101)])?_0x45ebe8[_0x4eaa45(0x101)]:[];let _0x13a10e=_0x1d2cec['map'](_0x3c88d6=>normalizeField(_0x3c88d6))[_0x4eaa45(0x11f)](_0x1bb4be=>_0x1bb4be!==null);_0x13a10e[_0x4eaa45(0x10c)]===0x0&&(_0x13a10e=await loadListFieldFallback(_0x17a734[_0x4eaa45(0x12b)],_0x17a734[_0x4eaa45(0xf3)](_0x4eaa45(0xff))));const _0x11e211=_0x45ebe8[_0x4eaa45(0x123)]??{},_0x465457=[];for(const [_0x8ac375,_0x31495f]of Object[_0x4eaa45(0x120)](_0x11e211)){const _0x10c81b=normalizeOperationEntry(_0x8ac375,_0x31495f);if(_0x10c81b)_0x465457[_0x4eaa45(0x107)](_0x10c81b);}const _0x53d08d=_0x45ebe8[_0x4eaa45(0x111)]??{},_0x37398b=_0x45ebe8[_0x4eaa45(0x11c)]??{},_0x55dcfc=_0x53d08d['dbId']!=null?{'id':_0x53d08d[_0x4eaa45(0x117)],'name':_0x53d08d[_0x4eaa45(0x134)]??null}:undefined;let _0x4f7188;return typeof _0x45ebe8[_0x4eaa45(0x10f)]===_0x4eaa45(0x12f)&&(_0x4f7188=parseJsonMaybe(_0x45ebe8[_0x4eaa45(0x10f)])),{'ok':!![],'data':{'id':_0x45ebe8[_0x4eaa45(0x12d)]??_0x45ebe8['id'],'name':_0x45ebe8[_0x4eaa45(0x10e)],'code':_0x45ebe8[_0x4eaa45(0x129)]||_0x45ebe8[_0x4eaa45(0xff)],'doVersion':_0x45ebe8[_0x4eaa45(0x113)],'description':_0x45ebe8['description']||_0x37398b[_0x4eaa45(0x124)]||undefined,'source':_0x45ebe8[_0x4eaa45(0x108)]||_0x37398b[_0x4eaa45(0x11d)],'table':_0x53d08d[_0x4eaa45(0xfa)]||_0x37398b[_0x4eaa45(0xfa)],'datasetKey':_0x53d08d[_0x4eaa45(0x118)],'pk':_0x53d08d['pkField'],'db':_0x55dcfc,'dbtable':summarizeDbtable(_0x53d08d),'fields':_0x13a10e,'operations':_0x465457,'indexes':Array[_0x4eaa45(0xf6)](_0x37398b[_0x4eaa45(0x136)])?_0x37398b[_0x4eaa45(0x136)]:[],'relations':_0x45ebe8['relations']??null,'relatedPages':normalizeRelatedPages(_0x45ebe8['relatedPageInfoList']),...Array[_0x4eaa45(0xf6)](_0x45ebe8['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x45ebe8[_0x4eaa45(0x105)]}:{},'formatRules':Array[_0x4eaa45(0xf6)](_0x45ebe8[_0x4eaa45(0x135)])?_0x45ebe8[_0x4eaa45(0x135)]:[],'validateRules':Array[_0x4eaa45(0xf6)](_0x45ebe8[_0x4eaa45(0x103)])?_0x45ebe8[_0x4eaa45(0x103)]:[],..._0x4f7188!==undefined?{'extend':_0x4f7188}:{},'stats':{'fieldCount':_0x13a10e[_0x4eaa45(0x10c)],'operationCount':_0x465457[_0x4eaa45(0x10c)]}}};}};function a26_0x2445(){const _0x3cda18=['filter','entries','2510179jSfYEM','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','operations','tableComment','allFields','creatorIdField','responseBody','required','modelCode','detail','appCode','3436446nmLdLd','modelId','object','string','beforeScriptId','creatorNameField','responseFields','type','dbName','formatRules','indexes','dataType','9VdmfGN','trim','doType','str','afterScriptId','dblinkInfoDTO','isArray','title','requestFields','host','tableName','options','18316144MFEqDD','labelField','3130010FjiBPZ','code','map','properties','3145208eBjFYt','validateRules','requestBody','columnCodeListWithDeleted','displayName','push','source','method','read','find','length','logicField','name','extend','772466aHEJJn','dbtableConfig','description','doVersion','482657QbJAlW','deleted','pkField','dbId','datasetKey','split','modifierNameField','fields','dataset','sourceType','allFieldNames'];a26_0x2445=function(){return _0x3cda18;};return a26_0x2445();}
@@ -1 +1 @@
1
- (function(_0x29a377,_0x34a8f7){const _0x19361f=a26_0x39c0,_0x23e166=_0x29a377();while(!![]){try{const _0x3a04b2=parseInt(_0x19361f(0x197))/0x1*(-parseInt(_0x19361f(0x1a1))/0x2)+-parseInt(_0x19361f(0x19e))/0x3+parseInt(_0x19361f(0x1a0))/0x4*(parseInt(_0x19361f(0x198))/0x5)+parseInt(_0x19361f(0x19c))/0x6*(-parseInt(_0x19361f(0x19b))/0x7)+parseInt(_0x19361f(0x19d))/0x8*(parseInt(_0x19361f(0x19a))/0x9)+parseInt(_0x19361f(0x19f))/0xa+parseInt(_0x19361f(0x199))/0xb;if(_0x3a04b2===_0x34a8f7)break;else _0x23e166['push'](_0x23e166['shift']());}catch(_0x348d26){_0x23e166['push'](_0x23e166['shift']());}}}(a26_0x1323,0xdc48b));import{datasetList}from'../../commands/dataset/list.js';function a26_0x39c0(_0x520bc6,_0x4d803d){_0x520bc6=_0x520bc6-0x197;const _0x132375=a26_0x1323();let _0x39c021=_0x132375[_0x520bc6];return _0x39c021;}import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x1323(){const _0x1e7bd8=['9306wBZhMd','366653ZbnPef','204DAlEOn','9208MDOoTv','1542630WoGkYx','3559180hmXvhH','5721008NACWrG','343372hjJchA','1qwOGQq','5hfgwmU','4320371HezCyo'];a26_0x1323=function(){return _0x1e7bd8;};return a26_0x1323();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ (function(_0x26fb32,_0x3127dd){const _0x3b020b=a27_0x4704,_0x2f8a1c=_0x26fb32();while(!![]){try{const _0x34bdca=-parseInt(_0x3b020b(0x1a7))/0x1+parseInt(_0x3b020b(0x1a8))/0x2+parseInt(_0x3b020b(0x1a9))/0x3*(-parseInt(_0x3b020b(0x1ad))/0x4)+-parseInt(_0x3b020b(0x1af))/0x5+parseInt(_0x3b020b(0x1b0))/0x6+-parseInt(_0x3b020b(0x1aa))/0x7*(parseInt(_0x3b020b(0x1ac))/0x8)+parseInt(_0x3b020b(0x1ab))/0x9*(parseInt(_0x3b020b(0x1ae))/0xa);if(_0x34bdca===_0x3127dd)break;else _0x2f8a1c['push'](_0x2f8a1c['shift']());}catch(_0x526c98){_0x2f8a1c['push'](_0x2f8a1c['shift']());}}}(a27_0x3dd0,0x3e71f));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a27_0x3dd0(){const _0x573139=['2065375lvDtZC','894444tglaNv','278966xCTOfh','19850APrXfh','321XpZRCI','777zzhXPo','423GtBzGd','15112wCioej','7844zbWbQT','257090bmgTDV'];a27_0x3dd0=function(){return _0x573139;};return a27_0x3dd0();}function a27_0x4704(_0x203b23,_0x43cd91){_0x203b23=_0x203b23-0x1a7;const _0x3dd07a=a27_0x3dd0();let _0x470415=_0x3dd07a[_0x203b23];return _0x470415;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
@@ -1 +1 @@
1
- const a27_0x3bb400=a27_0x3169;(function(_0x56ed60,_0x3fc4a){const _0x4d09e3=a27_0x3169,_0x4dfea7=_0x56ed60();while(!![]){try{const _0x54ae19=parseInt(_0x4d09e3(0xc0))/0x1*(parseInt(_0x4d09e3(0xb0))/0x2)+-parseInt(_0x4d09e3(0xac))/0x3+parseInt(_0x4d09e3(0xc6))/0x4*(-parseInt(_0x4d09e3(0xb8))/0x5)+parseInt(_0x4d09e3(0xbf))/0x6*(parseInt(_0x4d09e3(0xbc))/0x7)+-parseInt(_0x4d09e3(0xae))/0x8*(-parseInt(_0x4d09e3(0xb5))/0x9)+parseInt(_0x4d09e3(0xbd))/0xa*(-parseInt(_0x4d09e3(0xbb))/0xb)+parseInt(_0x4d09e3(0xab))/0xc;if(_0x54ae19===_0x3fc4a)break;else _0x4dfea7['push'](_0x4dfea7['shift']());}catch(_0x57e58b){_0x4dfea7['push'](_0x4dfea7['shift']());}}}(a27_0x49da,0x348d1));function a27_0x3169(_0x3907b8,_0x21854f){_0x3907b8=_0x3907b8-0xa9;const _0x49da3a=a27_0x49da();let _0x316960=_0x49da3a[_0x3907b8];return _0x316960;}function a27_0x49da(){const _0xdd0ed5=['description','2357649rEplki','dbtableConfig','list','5GfRSNZ','code','allFields','47531KUebEL','387730rhDieu','50txoCRb','tableName','6HqIUvb','158431woVCJL','length','name','pkField','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','appCode','1654892zGdLoC','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','map','1212420mVDFvN','254013hjtmam','datasetKey','8FUWbZV','str','4ZLtrxe','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','split','string'];a27_0x49da=function(){return _0xdd0ed5;};return a27_0x49da();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a27_0x3bb400(0xb7),'description':a27_0x3bb400(0xa9),'risk':'read','flags':[{'name':a27_0x3bb400(0xc2),'type':a27_0x3bb400(0xb3),'description':a27_0x3bb400(0xc4)},{...CODE_FLAG,'required':![],'description':a27_0x3bb400(0xb1)}],async 'execute'(_0x51c332){const _0x176549=a27_0x3bb400,_0x1d0dcb=_0x51c332[_0x176549(0xaf)](_0x176549(0xc2)),_0x3790df=_0x51c332['str'](_0x176549(0xb9)),_0x44349e=await listDatasets(_0x51c332[_0x176549(0xc5)],{..._0x1d0dcb&&{'name':_0x1d0dcb},..._0x3790df&&{'code':_0x3790df}});return{'ok':!![],'data':{'total':_0x44349e[_0x176549(0xc1)],'datasets':_0x44349e[_0x176549(0xaa)](_0x1406d4=>{const _0x37a227=_0x176549,_0x5eeedc=_0x1406d4[_0x37a227(0xb6)]??{};return{'id':_0x1406d4['id'],'code':_0x1406d4['code'],'name':_0x1406d4[_0x37a227(0xc2)],'source':_0x1406d4['source'],'description':_0x1406d4[_0x37a227(0xb4)],'table':_0x5eeedc[_0x37a227(0xbe)],'datasetKey':_0x5eeedc[_0x37a227(0xad)],'pk':_0x5eeedc[_0x37a227(0xc3)],'fields':_0x5eeedc['allFields']?_0x5eeedc[_0x37a227(0xba)][_0x37a227(0xb2)](',')[_0x37a227(0xaa)](_0x232aa7=>_0x232aa7['trim']()):[]};})}};}};
1
+ function a28_0x8d76(){const _0x2740be=['1086ZhsjEw','source','name','108202Etovsw','49655qhBZaf','read','string','dbtableConfig','trim','description','str','2263142yBwtTE','54747QJXWtk','dataset','list','split','tableName','1121808HVVkoI','code','map','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','3742144VCAkkC','allFields','16031547xquBtC','148RSLjXt'];a28_0x8d76=function(){return _0x2740be;};return a28_0x8d76();}const a28_0x27d970=a28_0x498f;(function(_0x12911b,_0x4a54ae){const _0x57c222=a28_0x498f,_0xec3df2=_0x12911b();while(!![]){try{const _0x5e0c55=parseInt(_0x57c222(0x7f))/0x1+parseInt(_0x57c222(0x87))/0x2+-parseInt(_0x57c222(0x88))/0x3*(parseInt(_0x57c222(0x94))/0x4)+parseInt(_0x57c222(0x80))/0x5*(-parseInt(_0x57c222(0x95))/0x6)+parseInt(_0x57c222(0x91))/0x7+-parseInt(_0x57c222(0x8d))/0x8+parseInt(_0x57c222(0x93))/0x9;if(_0x5e0c55===_0x4a54ae)break;else _0xec3df2['push'](_0xec3df2['shift']());}catch(_0x527496){_0xec3df2['push'](_0xec3df2['shift']());}}}(a28_0x8d76,0xe626a));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x498f(_0x55718b,_0x36812f){_0x55718b=_0x55718b-0x7d;const _0x8d7620=a28_0x8d76();let _0x498f6e=_0x8d7620[_0x55718b];return _0x498f6e;}export const datasetList={'service':a28_0x27d970(0x89),'command':a28_0x27d970(0x8a),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a28_0x27d970(0x81),'flags':[{'name':a28_0x27d970(0x7e),'type':a28_0x27d970(0x82),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a28_0x27d970(0x90)}],async 'execute'(_0x262b1d){const _0x2bcab9=a28_0x27d970,_0x4ff0fb=_0x262b1d[_0x2bcab9(0x86)](_0x2bcab9(0x7e)),_0x4e96b5=_0x262b1d['str']('code'),_0x39bf53=await listDatasets(_0x262b1d['appCode'],{..._0x4ff0fb&&{'name':_0x4ff0fb},..._0x4e96b5&&{'code':_0x4e96b5}});return{'ok':!![],'data':{'total':_0x39bf53['length'],'datasets':_0x39bf53[_0x2bcab9(0x8f)](_0x188fce=>{const _0xdcc4f=_0x2bcab9,_0xc6a581=_0x188fce[_0xdcc4f(0x83)]??{};return{'id':_0x188fce['id'],'code':_0x188fce[_0xdcc4f(0x8e)],'name':_0x188fce[_0xdcc4f(0x7e)],'source':_0x188fce[_0xdcc4f(0x7d)],'description':_0x188fce[_0xdcc4f(0x85)],'table':_0xc6a581[_0xdcc4f(0x8c)],'datasetKey':_0xc6a581['datasetKey'],'pk':_0xc6a581['pkField'],'fields':_0xc6a581[_0xdcc4f(0x92)]?_0xc6a581[_0xdcc4f(0x92)][_0xdcc4f(0x8b)](',')['map'](_0x2ed9ce=>_0x2ed9ce[_0xdcc4f(0x84)]()):[]};})}};}};
@@ -1 +1 @@
1
- const a28_0x1e230f=a28_0x3a6b;(function(_0xd9cb8b,_0x4903ab){const _0x4b8e34=a28_0x3a6b,_0x407e06=_0xd9cb8b();while(!![]){try{const _0x5e44ef=-parseInt(_0x4b8e34(0xb3))/0x1*(parseInt(_0x4b8e34(0xa6))/0x2)+parseInt(_0x4b8e34(0xac))/0x3+-parseInt(_0x4b8e34(0xb1))/0x4+-parseInt(_0x4b8e34(0xab))/0x5*(parseInt(_0x4b8e34(0xad))/0x6)+-parseInt(_0x4b8e34(0xa3))/0x7+parseInt(_0x4b8e34(0xa7))/0x8+parseInt(_0x4b8e34(0xae))/0x9;if(_0x5e44ef===_0x4903ab)break;else _0x407e06['push'](_0x407e06['shift']());}catch(_0x5887cd){_0x407e06['push'](_0x407e06['shift']());}}}(a28_0x18d0,0x89ff8));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x1e230f(0xa5);function a28_0x3a6b(_0x421993,_0xe70146){_0x421993=_0x421993-0xa2;const _0x18d03f=a28_0x18d0();let _0x3a6b4a=_0x18d03f[_0x421993];return _0x3a6b4a;}export function formatDatasetSdkMarkdown(_0x3d84cb){const _0x9313e1=a28_0x1e230f,_0x4d4c10=typeof _0x3d84cb===_0x9313e1(0xb0)?_0x3d84cb[_0x9313e1(0xa9)]():'';return _0x4d4c10||DEFAULT_MARKDOWN;}function a28_0x18d0(){const _0x7ffed9=['sdk-doc','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','4YcNZIY','6043824AMSFWg','dataset','trim','read','17190awWiBP','1638561lpFiId','1524SeZuQx','14830038bvNCkz','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','string','1327436SHSlPB','appCode','275988eqVMvw','code','4389840PPGQXm'];a28_0x18d0=function(){return _0x7ffed9;};return a28_0x18d0();}export const datasetSdkDoc={'service':a28_0x1e230f(0xa8),'command':a28_0x1e230f(0xa4),'description':a28_0x1e230f(0xaf),'risk':a28_0x1e230f(0xaa),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x16e31e){const _0x41c396=a28_0x1e230f,_0x57989d=_0x16e31e['str'](_0x41c396(0xa2)),_0x41c6e2=await getDatasetSdkUsageDoc(_0x57989d,_0x16e31e[_0x41c396(0xb2)]);return{'ok':!![],'data':{'code':_0x57989d,'appCode':_0x16e31e[_0x41c396(0xb2)],'markdown':formatDatasetSdkMarkdown(_0x41c6e2)}};}};
1
+ const a29_0xd0d8bd=a29_0x1fa7;(function(_0x588f34,_0x20297d){const _0x523110=a29_0x1fa7,_0x1d5bf4=_0x588f34();while(!![]){try{const _0x3d3afe=-parseInt(_0x523110(0x1ee))/0x1*(parseInt(_0x523110(0x1e8))/0x2)+parseInt(_0x523110(0x1f4))/0x3*(-parseInt(_0x523110(0x1e9))/0x4)+parseInt(_0x523110(0x1ec))/0x5+parseInt(_0x523110(0x1f0))/0x6*(parseInt(_0x523110(0x1e7))/0x7)+-parseInt(_0x523110(0x1e3))/0x8*(parseInt(_0x523110(0x1f5))/0x9)+parseInt(_0x523110(0x1e2))/0xa*(-parseInt(_0x523110(0x1f1))/0xb)+parseInt(_0x523110(0x1f3))/0xc;if(_0x3d3afe===_0x20297d)break;else _0x1d5bf4['push'](_0x1d5bf4['shift']());}catch(_0x4ff5b8){_0x1d5bf4['push'](_0x1d5bf4['shift']());}}}(a29_0x370e,0x6968a));function a29_0x1fa7(_0x4b6936,_0x261758){_0x4b6936=_0x4b6936-0x1e1;const _0x370ea7=a29_0x370e();let _0x1fa774=_0x370ea7[_0x4b6936];return _0x1fa774;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a29_0xd0d8bd(0x1ea);function a29_0x370e(){const _0x26da88=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','3353cNCqHC','appCode','6fouWnY','4468409nXsPJW','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','15988944bnNasy','291207SWFugb','33606VAwXED','sdk-doc','20kdLLqU','1056cPZwFQ','dataset','code','str','5230834PemZsQ','278BkpoTv','16eXtvJX','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','string','2558745UrptvD'];a29_0x370e=function(){return _0x26da88;};return a29_0x370e();}export function formatDatasetSdkMarkdown(_0x5b3fa7){const _0x4b7529=a29_0xd0d8bd,_0x1dc9ef=typeof _0x5b3fa7===_0x4b7529(0x1eb)?_0x5b3fa7['trim']():'';return _0x1dc9ef||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a29_0xd0d8bd(0x1e4),'command':a29_0xd0d8bd(0x1e1),'description':a29_0xd0d8bd(0x1f2),'risk':'read','flags':[{...CODE_FLAG,'description':a29_0xd0d8bd(0x1ed)}],async 'execute'(_0x20fada){const _0x409c18=a29_0xd0d8bd,_0x1438e4=_0x20fada[_0x409c18(0x1e6)](_0x409c18(0x1e5)),_0x18383d=await getDatasetSdkUsageDoc(_0x1438e4,_0x20fada[_0x409c18(0x1ef)]);return{'ok':!![],'data':{'code':_0x1438e4,'appCode':_0x20fada[_0x409c18(0x1ef)],'markdown':formatDatasetSdkMarkdown(_0x18383d)}};}};
@@ -1 +1 @@
1
- const a29_0x161508=a29_0x1e25;(function(_0x11c17d,_0x55a9d2){const _0x547c3c=a29_0x1e25,_0x28ac94=_0x11c17d();while(!![]){try{const _0x22d2f3=-parseInt(_0x547c3c(0x246))/0x1+parseInt(_0x547c3c(0x208))/0x2*(-parseInt(_0x547c3c(0x251))/0x3)+parseInt(_0x547c3c(0x22a))/0x4*(parseInt(_0x547c3c(0x234))/0x5)+-parseInt(_0x547c3c(0x24e))/0x6+-parseInt(_0x547c3c(0x248))/0x7*(parseInt(_0x547c3c(0x1fb))/0x8)+parseInt(_0x547c3c(0x244))/0x9*(parseInt(_0x547c3c(0x22b))/0xa)+-parseInt(_0x547c3c(0x22c))/0xb*(-parseInt(_0x547c3c(0x242))/0xc);if(_0x22d2f3===_0x55a9d2)break;else _0x28ac94['push'](_0x28ac94['shift']());}catch(_0x5c5bc0){_0x28ac94['push'](_0x28ac94['shift']());}}}(a29_0x53e9,0xc131a));import a29_0x120a03 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0x1e25(_0x37066f,_0x2bf527){_0x37066f=_0x37066f-0x1f2;const _0x53e945=a29_0x53e9();let _0x1e2509=_0x53e945[_0x37066f];return _0x1e2509;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x53e9(){const _0xb2690=['(no\x20file)','\x20\x20Auth','1545UWwrVq','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','serviceCode','(none)','version','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','empty','yellow','161568ZDgbVH','env','216774ilSevR','\x20commands)','1358517CURAUN','green','7xLxaBA','ClientAk','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','check','source','9324072yWfZNa','log','\x20\x20─','6UItUss','path','padEnd','accessKey','repeat','⚠\x20Empty','arch','(unnamed)','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','Diagnose\x20CLI\x20configuration\x20and\x20environment','gray','3563440hOenfS','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','red','✗\x20Invalid\x20JSON','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','verbose','\x20doctor','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','message','825338zkFGCF','(default)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','Project','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','locale','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','registryPath','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','format','(set,\x20length=','serviceCount','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','appCode','Global','read','\x20\x20Config\x20JSON','commandCount','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','(not\x20found)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','✓\x20Loaded','✓\x20Valid\x20JSON','1812AUybjx','470qebZOC','3025LSQzxx','\x20(accessKey)','✓\x20current','state','bold','doctor'];a29_0x53e9=function(){return _0xb2690;};return a29_0x53e9();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x787b8a){const _0x4099a6=a29_0x1e25,_0x58fdae=getCliVersion(),_0x12e9bd=buildConfigFromFlags({});await initGlobalEnvironment(_0x12e9bd),console['log'](),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x230)](CLI_BIN_NAME+_0x4099a6(0x203))),console[_0x4099a6(0x24f)](a29_0x120a03['gray']('─'['repeat'](0x32))),console[_0x4099a6(0x24f)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x58fdae),console[_0x4099a6(0x24f)](_0x4099a6(0x21c)+process[_0x4099a6(0x239)]),console[_0x4099a6(0x24f)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4099a6(0x23d)]+'\x20'+process[_0x4099a6(0x1f4)]);const _0x1ccdb9=inspectBuiltinSkill();console[_0x4099a6(0x24f)](),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x230)]('\x20\x20Built-in\x20Skill')),console[_0x4099a6(0x24f)](a29_0x120a03['gray'](_0x4099a6(0x250)[_0x4099a6(0x1f2)](0x1e))),console[_0x4099a6(0x24f)](_0x4099a6(0x1fc)+(_0x1ccdb9['state']===_0x4099a6(0x211)?a29_0x120a03['green'](_0x4099a6(0x22e)):a29_0x120a03[_0x4099a6(0x1fe)]('✗\x20'+_0x1ccdb9[_0x4099a6(0x22f)]))),console[_0x4099a6(0x24f)]('\x20\x20Package\x20Version:\x20'+_0x1ccdb9[_0x4099a6(0x21d)]),console[_0x4099a6(0x24f)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x1ccdb9['skillVersion']||a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x20e)))),console['log']('\x20\x20Installed\x20Path:\x20\x20'+(_0x1ccdb9['installedPath']||a29_0x120a03['gray'](_0x4099a6(0x225))));_0x1ccdb9[_0x4099a6(0x22f)]!=='current'&&console[_0x4099a6(0x24f)](_0x4099a6(0x200)+_0x1ccdb9[_0x4099a6(0x201)]);_0x1ccdb9['reason']&&console[_0x4099a6(0x24f)](_0x4099a6(0x1f7)+_0x1ccdb9['reason']);console['log'](),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x230)]('\x20\x20Config\x20Files')),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x250)['repeat'](0x1e)));const _0x449a69=getGlobalConfigPath(),_0x41e90c=getProjectConfigPath();console[_0x4099a6(0x24f)](_0x4099a6(0x23a)+(_0x449a69||a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x225)))),console['log'](_0x4099a6(0x23e)+(_0x41e90c||a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x225)))),console['log'](),console['log'](a29_0x120a03[_0x4099a6(0x230)](_0x4099a6(0x221))),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x250)[_0x4099a6(0x1f2)](0x1e)));const _0x3c9430=(_0x1d0a56,_0xa2dc7b)=>{const _0x5e7909=_0x4099a6;if(!_0xa2dc7b){console['log']('\x20\x20'+_0x1d0a56[_0x5e7909(0x253)](0x11)+'\x20'+a29_0x120a03['gray'](_0x5e7909(0x232)));return;}const _0x378fd2=inspectCliConfigJsonFile(_0xa2dc7b);if(_0x378fd2['status']==='ok')console[_0x5e7909(0x24f)]('\x20\x20'+_0x1d0a56['padEnd'](0x11)+'\x20'+a29_0x120a03[_0x5e7909(0x247)](_0x5e7909(0x229)));else{if(_0x378fd2[_0x5e7909(0x224)]==='empty')console[_0x5e7909(0x24f)]('\x20\x20'+_0x1d0a56[_0x5e7909(0x253)](0x11)+'\x20'+a29_0x120a03[_0x5e7909(0x241)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x378fd2[_0x5e7909(0x224)]==='missing'?console[_0x5e7909(0x24f)]('\x20\x20'+_0x1d0a56[_0x5e7909(0x253)](0x11)+'\x20'+a29_0x120a03[_0x5e7909(0x1fa)](_0x5e7909(0x20e))):(console[_0x5e7909(0x24f)]('\x20\x20'+_0x1d0a56['padEnd'](0x11)+'\x20'+a29_0x120a03[_0x5e7909(0x1fe)](_0x5e7909(0x1ff))),console[_0x5e7909(0x24f)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x120a03[_0x5e7909(0x1fe)](_0x378fd2[_0x5e7909(0x207)])));}};_0x3c9430(_0x4099a6(0x21f),_0x449a69),_0x3c9430(_0x4099a6(0x20c),_0x41e90c),console[_0x4099a6(0x24f)](),console['log'](a29_0x120a03['bold']('\x20\x20Merged\x20Config')),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x250)['repeat'](0x1e))),console['log'](_0x4099a6(0x219)+(_0x12e9bd[_0x4099a6(0x21e)]||a29_0x120a03[_0x4099a6(0x1fe)]('(not\x20set)'))),console[_0x4099a6(0x24f)](_0x4099a6(0x24a)+_0x12e9bd[_0x4099a6(0x243)]);const _0x28f18e=isLegacyCompatConfigKey('locale')?a29_0x120a03[_0x4099a6(0x1fa)](_0x12e9bd[_0x4099a6(0x20f)]+_0x4099a6(0x20b)):_0x12e9bd['locale'];console[_0x4099a6(0x24f)](_0x4099a6(0x205)+_0x28f18e),console[_0x4099a6(0x24f)](_0x4099a6(0x23f)+(_0x12e9bd[_0x4099a6(0x1f8)]||a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x238)))),console['log'](_0x4099a6(0x217)+(_0x12e9bd[_0x4099a6(0x236)]||a29_0x120a03['gray']('(none)'))),console['log'](_0x4099a6(0x20a)+(_0x12e9bd[_0x4099a6(0x214)]||a29_0x120a03['gray'](_0x4099a6(0x206)+DEFAULT_CONFIG_VALUES[_0x4099a6(0x214)]+')'))),console['log'](_0x4099a6(0x235)+(_0x12e9bd[_0x4099a6(0x204)]??a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x209)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x12e9bd['riskLevel']),console[_0x4099a6(0x24f)](_0x4099a6(0x21a)+_0x12e9bd[_0x4099a6(0x202)]),console[_0x4099a6(0x24f)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x4099a6(0x249)]),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x12e9bd['accessKey']?a29_0x120a03[_0x4099a6(0x247)](_0x4099a6(0x215)+_0x12e9bd[_0x4099a6(0x254)][_0x4099a6(0x1fd)]+')'):a29_0x120a03[_0x4099a6(0x1fa)]('(none)'))),console[_0x4099a6(0x24f)](),console[_0x4099a6(0x24f)](a29_0x120a03['bold'](_0x4099a6(0x24b))),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x1fa)]('\x20\x20─'[_0x4099a6(0x1f2)](0x1e))),console[_0x4099a6(0x24f)](_0x4099a6(0x226)+getApiDomain()),console[_0x4099a6(0x24f)](_0x4099a6(0x213)+getUserDomain()),console['log'](_0x4099a6(0x1f6)+getRuntimeDomain()),console[_0x4099a6(0x24f)](),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x230)]('\x20\x20Service\x20Tree')),console['log'](a29_0x120a03['gray'](_0x4099a6(0x250)['repeat'](0x1e)));const _0x1a5773=inspectServiceRegistry();console[_0x4099a6(0x24f)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1a5773[_0x4099a6(0x212)]),console[_0x4099a6(0x24f)](_0x4099a6(0x223)+formatServiceRegistryStatus(_0x1a5773)),console[_0x4099a6(0x24f)](_0x4099a6(0x23c)+_0x1a5773[_0x4099a6(0x216)]),console['log'](_0x4099a6(0x20d)+_0x1a5773[_0x4099a6(0x222)]);for(const _0x193849 of _0x1a5773[_0x4099a6(0x23b)]){console[_0x4099a6(0x24f)]('\x20\x20'+(_0x193849[_0x4099a6(0x237)]+':')[_0x4099a6(0x253)](0x11)+'\x20'+(_0x193849['name']||a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x1f5)))+'\x20('+_0x193849[_0x4099a6(0x222)]+_0x4099a6(0x245)),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x193849[_0x4099a6(0x24d)][_0x4099a6(0x252)]);}return console[_0x4099a6(0x24f)](),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x230)](_0x4099a6(0x233))),console[_0x4099a6(0x24f)](a29_0x120a03[_0x4099a6(0x1fa)]('\x20\x20─'[_0x4099a6(0x1f2)](0x1e))),console[_0x4099a6(0x24f)](_0x4099a6(0x210)+a29_0x120a03[_0x4099a6(0x247)](AUTH_MODE[_0x4099a6(0x249)]+_0x4099a6(0x22d))),console['log'](_0x4099a6(0x218)+a29_0x120a03[_0x4099a6(0x1fa)](_0x4099a6(0x227))),console[_0x4099a6(0x24f)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5efcc9){const _0x447102=a29_0x1e25;if(_0x5efcc9['status']==='ok')return a29_0x120a03[_0x447102(0x247)](_0x447102(0x228));if(_0x5efcc9[_0x447102(0x224)]==='missing')return a29_0x120a03[_0x447102(0x1fa)](_0x447102(0x225));if(_0x5efcc9[_0x447102(0x224)]===_0x447102(0x240))return a29_0x120a03[_0x447102(0x241)](_0x447102(0x1f3));return a29_0x120a03['red'](_0x447102(0x21b)+(_0x5efcc9[_0x447102(0x207)]?':\x20'+_0x5efcc9['message']:''));}export const doctorDefinition={'service':a29_0x161508(0x231),'command':a29_0x161508(0x24c),'description':a29_0x161508(0x1f9),'risk':a29_0x161508(0x220),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a30_0x22d41c=a30_0x52f0;(function(_0xcb49a9,_0x493011){const _0x5601cd=a30_0x52f0,_0x55cae9=_0xcb49a9();while(!![]){try{const _0x1ba167=-parseInt(_0x5601cd(0x16e))/0x1+parseInt(_0x5601cd(0xf8))/0x2*(-parseInt(_0x5601cd(0x171))/0x3)+-parseInt(_0x5601cd(0x16a))/0x4*(-parseInt(_0x5601cd(0x108))/0x5)+-parseInt(_0x5601cd(0x105))/0x6*(-parseInt(_0x5601cd(0xfb))/0x7)+parseInt(_0x5601cd(0x148))/0x8+-parseInt(_0x5601cd(0x15b))/0x9+parseInt(_0x5601cd(0x168))/0xa*(-parseInt(_0x5601cd(0x12c))/0xb);if(_0x1ba167===_0x493011)break;else _0x55cae9['push'](_0x55cae9['shift']());}catch(_0x4748ea){_0x55cae9['push'](_0x55cae9['shift']());}}}(a30_0x2b5d,0xeb633));import a30_0x16417a from'chalk';function a30_0x52f0(_0x1ab6ae,_0x5d0ef9){_0x1ab6ae=_0x1ab6ae-0xf8;const _0x2b5dc=a30_0x2b5d();let _0x52f01c=_0x2b5dc[_0x1ab6ae];return _0x52f01c;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x425926){const _0xcdf3dc=a30_0x52f0,_0x4ed79c=getCliVersion(),_0x2066d8=buildConfigFromFlags({});await initGlobalEnvironment(_0x2066d8),console[_0xcdf3dc(0x16d)](),console['log'](a30_0x16417a[_0xcdf3dc(0x110)](CLI_BIN_NAME+_0xcdf3dc(0x106))),console[_0xcdf3dc(0x16d)](a30_0x16417a[_0xcdf3dc(0x13a)]('─'[_0xcdf3dc(0x10c)](0x32))),console['log'](_0xcdf3dc(0x10d)+_0x4ed79c),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x160)+process[_0xcdf3dc(0x121)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x12f)+process[_0xcdf3dc(0x120)]+'\x20'+process[_0xcdf3dc(0x127)]);const _0x5a2048=inspectBuiltinSkill();console[_0xcdf3dc(0x16d)](),console[_0xcdf3dc(0x16d)](a30_0x16417a[_0xcdf3dc(0x110)](_0xcdf3dc(0x152))),console[_0xcdf3dc(0x16d)](a30_0x16417a['gray'](_0xcdf3dc(0x109)['repeat'](0x1e))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x166)+(_0x5a2048[_0xcdf3dc(0x151)]==='current'?a30_0x16417a[_0xcdf3dc(0x139)](_0xcdf3dc(0x143)):a30_0x16417a[_0xcdf3dc(0x159)]('✗\x20'+_0x5a2048['state']))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x13b)+_0x5a2048[_0xcdf3dc(0xfd)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x130)+(_0x5a2048[_0xcdf3dc(0x176)]||a30_0x16417a[_0xcdf3dc(0x13a)]('(missing)'))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x115)+(_0x5a2048[_0xcdf3dc(0x145)]||a30_0x16417a[_0xcdf3dc(0x13a)]('(not\x20found)')));_0x5a2048[_0xcdf3dc(0x151)]!==_0xcdf3dc(0x155)&&console[_0xcdf3dc(0x16d)](_0xcdf3dc(0xfc)+_0x5a2048[_0xcdf3dc(0x123)]);_0x5a2048['reason']&&console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x122)+_0x5a2048[_0xcdf3dc(0x175)]);console['log'](),console['log'](a30_0x16417a[_0xcdf3dc(0x110)]('\x20\x20Config\x20Files')),console[_0xcdf3dc(0x16d)](a30_0x16417a['gray'](_0xcdf3dc(0x109)[_0xcdf3dc(0x10c)](0x1e)));const _0x4faffa=getGlobalConfigPath(),_0x4b03fa=getProjectConfigPath();console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x162)+(_0x4faffa||a30_0x16417a[_0xcdf3dc(0x13a)](_0xcdf3dc(0x11f)))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x15e)+(_0x4b03fa||a30_0x16417a[_0xcdf3dc(0x13a)]('(not\x20found)'))),console[_0xcdf3dc(0x16d)](),console['log'](a30_0x16417a['bold']('\x20\x20Config\x20JSON')),console['log'](a30_0x16417a[_0xcdf3dc(0x13a)]('\x20\x20─'[_0xcdf3dc(0x10c)](0x1e)));const _0x1c49f4=(_0x203bb6,_0x1b19a3)=>{const _0x127eb5=_0xcdf3dc;if(!_0x1b19a3){console[_0x127eb5(0x16d)]('\x20\x20'+_0x203bb6['padEnd'](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x13a)](_0x127eb5(0x14d)));return;}const _0x4e71d3=inspectCliConfigJsonFile(_0x1b19a3);if(_0x4e71d3['status']==='ok')console[_0x127eb5(0x16d)]('\x20\x20'+_0x203bb6[_0x127eb5(0x15d)](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x139)]('✓\x20Valid\x20JSON'));else{if(_0x4e71d3['status']==='empty')console[_0x127eb5(0x16d)]('\x20\x20'+_0x203bb6[_0x127eb5(0x15d)](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x10e)](_0x127eb5(0x112)));else _0x4e71d3['status']===_0x127eb5(0x158)?console[_0x127eb5(0x16d)]('\x20\x20'+_0x203bb6['padEnd'](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x13a)](_0x127eb5(0x119))):(console[_0x127eb5(0x16d)]('\x20\x20'+_0x203bb6[_0x127eb5(0x15d)](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x159)](_0x127eb5(0x104))),console['log']('\x20\x20'+''[_0x127eb5(0x15d)](0x11)+'\x20'+a30_0x16417a[_0x127eb5(0x159)](_0x4e71d3['message'])));}};_0x1c49f4('Global',_0x4faffa),_0x1c49f4(_0xcdf3dc(0x135),_0x4b03fa);const _0x247c58=loadRawConfigLayers(),_0x5625bf=[Object[_0xcdf3dc(0x12a)][_0xcdf3dc(0x12d)]['call'](_0x247c58[_0xcdf3dc(0x16f)],_0xcdf3dc(0x101))?_0xcdf3dc(0x142):null,Object[_0xcdf3dc(0x12a)][_0xcdf3dc(0x12d)][_0xcdf3dc(0x14e)](_0x247c58[_0xcdf3dc(0x128)],_0xcdf3dc(0x101))?_0xcdf3dc(0x118):null][_0xcdf3dc(0x14a)](Boolean);_0x5625bf['length']>0x0&&(console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x12e)+a30_0x16417a[_0xcdf3dc(0x10e)](_0xcdf3dc(0x174)+_0x5625bf[_0xcdf3dc(0x111)](_0xcdf3dc(0xfa))+_0xcdf3dc(0x146))),_0x5625bf[_0xcdf3dc(0x138)]('project')&&console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x136)+CLI_BIN_NAME+_0xcdf3dc(0x114)),_0x5625bf[_0xcdf3dc(0x138)](_0xcdf3dc(0x142))&&console[_0xcdf3dc(0x16d)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0xcdf3dc(0x10a)));console[_0xcdf3dc(0x16d)](),console[_0xcdf3dc(0x16d)](a30_0x16417a['bold']('\x20\x20Merged\x20Config')),console[_0xcdf3dc(0x16d)](a30_0x16417a[_0xcdf3dc(0x13a)](_0xcdf3dc(0x109)[_0xcdf3dc(0x10c)](0x1e))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x11b)+(_0x2066d8[_0xcdf3dc(0x132)]||a30_0x16417a['red']('(not\x20set)'))),console['log'](_0xcdf3dc(0x13f)+_0x2066d8[_0xcdf3dc(0x117)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x141)+normalizeLovrabetRegion(_0x2066d8[_0xcdf3dc(0x173)][_0xcdf3dc(0x15a)])),console['log'](_0xcdf3dc(0x113)+_0x2066d8[_0xcdf3dc(0x172)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x16c)+(_0x2066d8['defaultApp']||a30_0x16417a['gray']('(none)'))),console['log'](_0xcdf3dc(0x13e)+(_0x2066d8['currentApp']||a30_0x16417a['gray'](_0xcdf3dc(0x165)))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x129)+(_0x2066d8[_0xcdf3dc(0x11a)]||a30_0x16417a['gray'](_0xcdf3dc(0x102)+DEFAULT_CONFIG_VALUES[_0xcdf3dc(0x11a)]+')'))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x10f)+(_0x2066d8[_0xcdf3dc(0x154)]??a30_0x16417a['gray'](_0xcdf3dc(0x15f)))),console[_0xcdf3dc(0x16d)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x2066d8[_0xcdf3dc(0x11e)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x149)+_0x2066d8['verbose']),console['log'](_0xcdf3dc(0xff)+AUTH_MODE[_0xcdf3dc(0x103)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x125)+(_0x2066d8[_0xcdf3dc(0x150)]?a30_0x16417a[_0xcdf3dc(0x139)](_0xcdf3dc(0x11d)+_0x2066d8['accessKey'][_0xcdf3dc(0x137)]+')'):a30_0x16417a[_0xcdf3dc(0x13a)]('(none)'))),console[_0xcdf3dc(0x16d)](),console[_0xcdf3dc(0x16d)](a30_0x16417a[_0xcdf3dc(0x110)]('\x20\x20API\x20Endpoints')),console[_0xcdf3dc(0x16d)](a30_0x16417a['gray'](_0xcdf3dc(0x109)[_0xcdf3dc(0x10c)](0x1e))),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x14b)+getApiDomain()),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x134)+getUserDomain()),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x169)+getRuntimeDomain()),console['log'](_0xcdf3dc(0x14f)+getSkillDomain()),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x10b)+getKbDomain()),console['log'](),console['log'](a30_0x16417a[_0xcdf3dc(0x110)](_0xcdf3dc(0x131))),console['log'](a30_0x16417a[_0xcdf3dc(0x13a)](_0xcdf3dc(0x109)['repeat'](0x1e)));const _0x43ed90=inspectServiceRegistry();console['log'](_0xcdf3dc(0x161)+_0x43ed90[_0xcdf3dc(0x14c)]),console[_0xcdf3dc(0x16d)](_0xcdf3dc(0x13c)+formatServiceRegistryStatus(_0x43ed90)),console[_0xcdf3dc(0x16d)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x43ed90[_0xcdf3dc(0x124)]),console['log'](_0xcdf3dc(0x167)+_0x43ed90[_0xcdf3dc(0x144)]);for(const _0x5a42c1 of _0x43ed90[_0xcdf3dc(0x153)]){console[_0xcdf3dc(0x16d)]('\x20\x20'+(_0x5a42c1[_0xcdf3dc(0x156)]+':')[_0xcdf3dc(0x15d)](0x11)+'\x20'+(_0x5a42c1[_0xcdf3dc(0x11c)]||a30_0x16417a[_0xcdf3dc(0x13a)](_0xcdf3dc(0x140)))+'\x20('+_0x5a42c1[_0xcdf3dc(0x144)]+_0xcdf3dc(0x116)),console[_0xcdf3dc(0x16d)]('\x20\x20'+''[_0xcdf3dc(0x15d)](0x11)+_0xcdf3dc(0x12b)+_0x5a42c1[_0xcdf3dc(0x133)]['path']);}return console[_0xcdf3dc(0x16d)](),console[_0xcdf3dc(0x16d)](a30_0x16417a[_0xcdf3dc(0x110)](_0xcdf3dc(0x147))),console['log'](a30_0x16417a['gray']('\x20\x20─'[_0xcdf3dc(0x10c)](0x1e))),console[_0xcdf3dc(0x16d)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a30_0x16417a[_0xcdf3dc(0x139)](AUTH_MODE[_0xcdf3dc(0x103)]+_0xcdf3dc(0x164))),console['log'](_0xcdf3dc(0x170)+a30_0x16417a[_0xcdf3dc(0x13a)](_0xcdf3dc(0x107))),console[_0xcdf3dc(0x16d)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x37c759){const _0x1f62da=a30_0x52f0;if(_0x37c759['status']==='ok')return a30_0x16417a[_0x1f62da(0x139)]('✓\x20Loaded');if(_0x37c759['status']==='missing')return a30_0x16417a[_0x1f62da(0x13a)](_0x1f62da(0x11f));if(_0x37c759[_0x1f62da(0xfe)]===_0x1f62da(0x13d))return a30_0x16417a[_0x1f62da(0x10e)](_0x1f62da(0xf9));return a30_0x16417a[_0x1f62da(0x159)](_0x1f62da(0x100)+(_0x37c759[_0x1f62da(0x16b)]?':\x20'+_0x37c759[_0x1f62da(0x16b)]:''));}export const doctorDefinition={'service':a30_0x22d41c(0x126),'command':a30_0x22d41c(0x163),'description':a30_0x22d41c(0x157),'risk':a30_0x22d41c(0x15c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a30_0x2b5d(){const _0x309cc1=['red','region','15345531HAThMg','read','padEnd','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','\x20(accessKey)','(none)','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','5170yMrmWQ','\x20\x20runtimeDomain:\x20\x20\x20','3427564iDCSfZ','message','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','log','737238Ndfugl','globalConfig','\x20\x20Session\x20check:\x20\x20\x20','2714403iQvnlh','locale','raw','ignored\x20in\x20','reason','skillVersion','2VltCDi','⚠\x20Empty','\x20+\x20','143367hTaSCA','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','status','\x20\x20auth\x20(effective):\x20','✗\x20Invalid','inherit','(default:\x20','ClientAk','✗\x20Invalid\x20JSON','426jdoWPl','\x20doctor','(removed\x20—\x20cookie\x20auth\x20disabled)','10usDzPM','\x20\x20─','\x20config\x20delete\x20inherit\x20--global','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','yellow','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','bold','join','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','\x20\x20Installed\x20Path:\x20\x20','\x20commands)','env','project','(missing)','format','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','name','(set,\x20length=','riskLevel','(not\x20found)','platform','version','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','serviceCount','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','doctor','arch','projectConfig','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','\x20Imported\x20from:\x20','704jbHXcx','hasOwnProperty','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Service\x20Tree','appCode','source','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','Project','\x20\x20Repair\x20project:\x20\x20\x20','length','includes','green','gray','\x20\x20Package\x20Version:\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','✓\x20current','commandCount','installedPath','\x20config','\x20\x20Auth','9411200pyMzof','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','registryPath','(no\x20file)','call','\x20\x20skillDomain:\x20\x20\x20\x20\x20','accessKey','state','\x20\x20Built-in\x20Skill','services','pageSize','current','serviceCode','Diagnose\x20CLI\x20configuration\x20and\x20environment','missing'];a30_0x2b5d=function(){return _0x309cc1;};return a30_0x2b5d();}
@@ -1 +1 @@
1
- const a30_0x2e7c67=a30_0x189b;(function(_0x2b2a07,_0xbbe963){const _0x335f36=a30_0x189b,_0x48c5a0=_0x2b2a07();while(!![]){try{const _0x4db30e=parseInt(_0x335f36(0x1c9))/0x1*(-parseInt(_0x335f36(0x1cc))/0x2)+parseInt(_0x335f36(0x1c1))/0x3+parseInt(_0x335f36(0x1b6))/0x4*(-parseInt(_0x335f36(0x1be))/0x5)+-parseInt(_0x335f36(0x1c8))/0x6+-parseInt(_0x335f36(0x1b2))/0x7+-parseInt(_0x335f36(0x1a5))/0x8+-parseInt(_0x335f36(0x1ab))/0x9*(-parseInt(_0x335f36(0x1bd))/0xa);if(_0x4db30e===_0xbbe963)break;else _0x48c5a0['push'](_0x48c5a0['shift']());}catch(_0xfcf269){_0x48c5a0['push'](_0x48c5a0['shift']());}}}(a30_0x56bc,0xa17bc));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a30_0x56bc(){const _0x1f5f52=['Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','2219232PcapGT','Uploaded\x20file:\x20','build','download','bool','body','filepath','926028TwPQep','4102YLZVJA','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','\x20to\x20runtime\x20app\x20','42EUdsOx','4957848BXSOAe','trim','/client/uploadFile','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Preview:\x20upload\x20','File','19375263URlpTZ','appCode','query-url','file','filePath','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','long-term','8114414BJrDVD','upload','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','filePath\x20is\x20required.','2804ZpasIH','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','read','description','string','path','validation','10PUXshe','1510qMbVQY','boolean'];a30_0x56bc=function(){return _0x1f5f52;};return a30_0x56bc();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x2e7c67(0x1ae),'type':'string','required':!![],'description':a30_0x2e7c67(0x1a8)},FILEPATH_FLAG={'name':a30_0x2e7c67(0x1c7),'type':a30_0x2e7c67(0x1ba),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a30_0x2e7c67(0x1c4),'type':a30_0x2e7c67(0x1bf),'description':a30_0x2e7c67(0x1b4)},LONG_TERM_FLAG={'name':a30_0x2e7c67(0x1b1),'type':a30_0x2e7c67(0x1bf),'description':a30_0x2e7c67(0x1b7)};function requireFilePath(_0x4c15b2){const _0x5b6755=a30_0x2e7c67,_0x27c336=_0x4c15b2[_0x5b6755(0x1a6)]();if(!_0x27c336)throw CliErrors[_0x5b6755(0x1bc)](_0x5b6755(0x1b5));return _0x27c336;}function a30_0x189b(_0x5cc890,_0x1dd57e){_0x5cc890=_0x5cc890-0x1a5;const _0x56bc76=a30_0x56bc();let _0x189bea=_0x56bc76[_0x5cc890];return _0x189bea;}const fileUpload={'service':'file','command':a30_0x2e7c67(0x1b3),'description':a30_0x2e7c67(0x1b0),'risk':a30_0x2e7c67(0x1b8),'flags':[FILE_FLAG],async 'dryRun'(_0x20b40e){const _0x5b2f56=a30_0x2e7c67,_0x19dba1=requireRuntimeUploadFile(_0x20b40e['str'](_0x5b2f56(0x1ae)),'File');return dryRun('POST',_0x5b2f56(0x1a7))[_0x5b2f56(0x1c6)]({'appCode':_0x20b40e[_0x5b2f56(0x1ac)],'multipart':{'file':_0x19dba1}})[_0x5b2f56(0x1b9)](_0x5b2f56(0x1a9)+_0x19dba1[_0x5b2f56(0x1bb)]+_0x5b2f56(0x1cb)+_0x20b40e[_0x5b2f56(0x1ac)])[_0x5b2f56(0x1c3)]();},async 'execute'(_0x14d69c){const _0x1dfafe=a30_0x2e7c67,_0x3cdfb1=requireRuntimeUploadFile(_0x14d69c['str'](_0x1dfafe(0x1ae)),_0x1dfafe(0x1aa)),_0x46d4f4=await uploadRuntimeFile(_0x14d69c[_0x1dfafe(0x1ac)],_0x3cdfb1[_0x1dfafe(0x1bb)]);return{'ok':!![],'data':_0x46d4f4,'message':_0x46d4f4[_0x1dfafe(0x1af)]?_0x1dfafe(0x1c2)+_0x46d4f4[_0x1dfafe(0x1af)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x1dfafe(0x1ca)};}},fileQueryUrl={'service':'file','command':a30_0x2e7c67(0x1ad),'description':a30_0x2e7c67(0x1c0),'risk':a30_0x2e7c67(0x1b8),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x17c1ca){const _0x42fa2f=a30_0x2e7c67,_0x1d0ffb=requireFilePath(_0x17c1ca['str']('filepath')),_0x24de20=await queryRuntimeFileUrl(_0x1d0ffb,{'download':_0x17c1ca[_0x42fa2f(0x1c5)]('download'),'longTerm':_0x17c1ca[_0x42fa2f(0x1c5)]('long-term')});return{'ok':!![],'data':_0x24de20};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a31_0x44be0d=a31_0x3734;(function(_0xdf99ad,_0x64efbe){const _0x2d1deb=a31_0x3734,_0x3867f2=_0xdf99ad();while(!![]){try{const _0x2c4e14=parseInt(_0x2d1deb(0x89))/0x1+-parseInt(_0x2d1deb(0x68))/0x2*(-parseInt(_0x2d1deb(0x6b))/0x3)+-parseInt(_0x2d1deb(0x77))/0x4+-parseInt(_0x2d1deb(0x87))/0x5+-parseInt(_0x2d1deb(0x7a))/0x6+parseInt(_0x2d1deb(0x7d))/0x7+-parseInt(_0x2d1deb(0x6d))/0x8;if(_0x2c4e14===_0x64efbe)break;else _0x3867f2['push'](_0x3867f2['shift']());}catch(_0x44cae9){_0x3867f2['push'](_0x3867f2['shift']());}}}(a31_0x4ee3,0x72f3f));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a31_0x4ee3(){const _0x514035=['.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','4908432FALuOI','appCode','download','filePath\x20is\x20required.','build','filePath','filepath','body','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','query-url','680988YScPHi','str','POST','883194Apzpye','Preview:\x20upload\x20','read','3205839mbrnoH','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Path\x20to\x20the\x20local\x20file\x20to\x20upload','long-term','bool','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','description','boolean','path','file','1311220DVhHLF','validation','368920jjfOfu','trim','2OSpsEd','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','File','2511582tPrxEa'];a31_0x4ee3=function(){return _0x514035;};return a31_0x4ee3();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a31_0x3734(_0xdddb75,_0x21b21e){_0xdddb75=_0xdddb75-0x67;const _0x4ee372=a31_0x4ee3();let _0x3734b4=_0x4ee372[_0xdddb75];return _0x3734b4;}const FILE_FLAG={'name':a31_0x44be0d(0x86),'type':'string','required':!![],'description':a31_0x44be0d(0x7f)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a31_0x44be0d(0x69)},DOWNLOAD_FLAG={'name':'download','type':a31_0x44be0d(0x84),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a31_0x44be0d(0x80),'type':a31_0x44be0d(0x84),'description':a31_0x44be0d(0x7e)};function requireFilePath(_0x3423b7){const _0x1c3b6c=a31_0x44be0d,_0x5445a1=_0x3423b7[_0x1c3b6c(0x67)]();if(!_0x5445a1)throw CliErrors[_0x1c3b6c(0x88)](_0x1c3b6c(0x70));return _0x5445a1;}const fileUpload={'service':a31_0x44be0d(0x86),'command':'upload','description':a31_0x44be0d(0x82),'risk':a31_0x44be0d(0x7c),'flags':[FILE_FLAG],async 'dryRun'(_0x2915bd){const _0x332a3f=a31_0x44be0d,_0x58e1f6=requireRuntimeUploadFile(_0x2915bd[_0x332a3f(0x78)]('file'),_0x332a3f(0x6a));return dryRun(_0x332a3f(0x79),'/client/uploadFile')[_0x332a3f(0x74)]({'appCode':_0x2915bd['appCode'],'multipart':{'file':_0x58e1f6}})[_0x332a3f(0x83)](_0x332a3f(0x7b)+_0x58e1f6[_0x332a3f(0x85)]+'\x20to\x20runtime\x20app\x20'+_0x2915bd[_0x332a3f(0x6e)])[_0x332a3f(0x71)]();},async 'execute'(_0x9bef3d){const _0x4212a3=a31_0x44be0d,_0x96c07a=requireRuntimeUploadFile(_0x9bef3d['str'](_0x4212a3(0x86)),_0x4212a3(0x6a)),_0x4af9c7=await uploadRuntimeFile(_0x9bef3d[_0x4212a3(0x6e)],_0x96c07a[_0x4212a3(0x85)]);return{'ok':!![],'data':_0x4af9c7,'message':_0x4af9c7['filePath']?'Uploaded\x20file:\x20'+_0x4af9c7[_0x4212a3(0x72)]+_0x4212a3(0x6c):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a31_0x44be0d(0x86),'command':a31_0x44be0d(0x76),'description':a31_0x44be0d(0x75),'risk':a31_0x44be0d(0x7c),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x2f0b2e){const _0xb98d46=a31_0x44be0d,_0xdc6df7=requireFilePath(_0x2f0b2e['str'](_0xb98d46(0x73))),_0x168166=await queryRuntimeFileUrl(_0xdc6df7,{'download':_0x2f0b2e[_0xb98d46(0x81)](_0xb98d46(0x6f)),'longTerm':_0x2f0b2e[_0xb98d46(0x81)](_0xb98d46(0x80))});return{'ok':!![],'data':_0x168166};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a31_0x130419=a31_0x39a2;(function(_0x5efe1a,_0xe49edf){const _0x415900=a31_0x39a2,_0x5ede52=_0x5efe1a();while(!![]){try{const _0x321ddb=-parseInt(_0x415900(0x10b))/0x1*(-parseInt(_0x415900(0x115))/0x2)+parseInt(_0x415900(0x132))/0x3+-parseInt(_0x415900(0x127))/0x4+parseInt(_0x415900(0x134))/0x5*(-parseInt(_0x415900(0x119))/0x6)+parseInt(_0x415900(0x109))/0x7+parseInt(_0x415900(0x10c))/0x8*(-parseInt(_0x415900(0x120))/0x9)+-parseInt(_0x415900(0x114))/0xa;if(_0x321ddb===_0xe49edf)break;else _0x5ede52['push'](_0x5ede52['shift']());}catch(_0x543773){_0x5ede52['push'](_0x5ede52['shift']());}}}(a31_0x213d,0x9c561));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a31_0x39a2(_0x5d1df7,_0x27fa5d){_0x5d1df7=_0x5d1df7-0x109;const _0x213d49=a31_0x213d();let _0x39a257=_0x213d49[_0x5d1df7];return _0x39a257;}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':a31_0x130419(0x112),'type':a31_0x130419(0x117),'description':a31_0x130419(0x131),'required':!![]},{'name':a31_0x130419(0x122),'type':a31_0x130419(0x117),'description':a31_0x130419(0x12e)},{'name':a31_0x130419(0x10f),'type':a31_0x130419(0x117),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a31_0x130419(0x11d),'type':'boolean','description':a31_0x130419(0x113)+PRODUCT_CONFIG['newConfigFileName']+a31_0x130419(0x124),'default':![]},{'name':'yes','type':'boolean','description':a31_0x130419(0x12b),'default':![]}];export async function runAppImport(_0x5aff23){const _0x42e50e=a31_0x130419,_0x235b3c=_0x5aff23[_0x42e50e(0x11d)]?_0x42e50e(0x11d):_0x42e50e(0x11f),_0x4e4ce3=resolveWriteConfigPath(_0x235b3c);await runFromImport(_0x5aff23,_0x4e4ce3);}async function runFromImport(_0x556360,_0x5a28be){const _0x5c4bee=a31_0x130419,_0x525ec5=resolveFilePath(_0x556360[_0x5c4bee(0x112)]);if(!existsSync(_0x525ec5))throw CliErrors[_0x5c4bee(0x125)](_0x5c4bee(0x121)+_0x525ec5);const _0x56bf47=readSourceFile(_0x525ec5),_0x4defa7=convertToRuntimeConfig(_0x56bf47);_0x556360[_0x5c4bee(0x122)]&&(_0x4defa7['appcode']=String(_0x556360[_0x5c4bee(0x122)]));_0x556360[_0x5c4bee(0x10f)]&&(_0x4defa7['env']=resolveImportEnv(_0x556360));if(!_0x4defa7[_0x5c4bee(0x122)])throw CliErrors['validation'](_0x5c4bee(0x111),_0x5c4bee(0x12a));await writeImportConfig(_0x5a28be,_0x4defa7,_0x556360),console[_0x5c4bee(0x10a)](_0x5c4bee(0x11a)+_0x525ec5),console['log'](_0x5c4bee(0x11b)+_0x5a28be),console[_0x5c4bee(0x10a)](_0x5c4bee(0x126)+_0x4defa7[_0x5c4bee(0x122)]);if(_0x4defa7[_0x5c4bee(0x12f)])console[_0x5c4bee(0x10a)]('\x20\x20default:\x20'+_0x4defa7['defaultApp']);}function a31_0x213d(){const _0x1a6532=['Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','file','Write\x20to\x20global\x20(~/','3243100SEwWRC','124082CHfrVF','entries','string','includes','2910NREtKK','Imported\x20from\x20','\x20\x20config:\x20\x20','utf8','global','Invalid\x20env\x20\x22','project','4597704MReSNM','Source\x20file\x20not\x20found:\x20','appcode','message',')\x20instead\x20of\x20project','validation','\x20\x20appcode:\x20','2302256rXsgTm','join','riskLevel','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`.','Skip\x20confirmation\x20when\x20overwriting','apps','object','Override\x20imported\x20default\x20appcode','defaultApp','parse','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','885918EBDccc','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','905uZMufj','4653481Nbldau','log','19aOhIUG','8ydSSXB','app','Failed\x20to\x20parse\x20source\x20file:\x20','env','yes'];a31_0x213d=function(){return _0x1a6532;};return a31_0x213d();}function convertToRuntimeConfig(_0x5ab2c0){const _0x36d1cc=a31_0x130419;if(_0x5ab2c0[_0x36d1cc(0x12c)]&&typeof _0x5ab2c0[_0x36d1cc(0x12c)]===_0x36d1cc(0x12d))throw CliErrors[_0x36d1cc(0x125)](_0x36d1cc(0x133),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0xeee509={};for(const _0x438c71 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x5ab2c0[_0x438c71]!==undefined&&(_0xeee509[_0x438c71]=_0x5ab2c0[_0x438c71]);}return!_0xeee509[_0x36d1cc(0x129)]&&(_0xeee509['riskLevel']=DEFAULT_CONFIG_VALUES[_0x36d1cc(0x129)]),_0xeee509;}async function writeImportConfig(_0x5e55a8,_0x3da8d0,_0x4cdcae){const _0x25106d=a31_0x130419;let _0x5df454={};existsSync(_0x5e55a8)&&!_0x4cdcae[_0x25106d(0x110)]&&(_0x5df454=readConfigFile(_0x5e55a8));for(const [_0xdd5627,_0x27e7dc]of Object[_0x25106d(0x116)](_0x3da8d0)){_0x27e7dc!==undefined&&(_0x5df454[_0xdd5627]=_0x27e7dc);}if(_0x5df454[_0x25106d(0x10d)])delete _0x5df454[_0x25106d(0x10d)];writeConfigFile(_0x5e55a8,_0x5df454);}function resolveFilePath(_0x4db61b){return isAbsolute(_0x4db61b)?_0x4db61b:resolve(process['cwd'](),_0x4db61b);}function readSourceFile(_0x1f044d){const _0x365c07=a31_0x130419;try{const _0x3c5660=readFileSync(_0x1f044d,{'encoding':_0x365c07(0x11c)});return JSON[_0x365c07(0x130)](_0x3c5660);}catch(_0x164df6){throw CliErrors[_0x365c07(0x125)](_0x365c07(0x10e)+_0x164df6[_0x365c07(0x123)]);}}function resolveImportEnv(_0x57517f){const _0x5ed09b=a31_0x130419,_0x426642=_0x57517f[_0x5ed09b(0x10f)];if(_0x426642===undefined||_0x426642==='')return DEFAULT_CONFIG_VALUES[_0x5ed09b(0x10f)];if(!RUNTIME_ENV_VALUES[_0x5ed09b(0x118)](_0x426642))throw CliErrors[_0x5ed09b(0x125)](_0x5ed09b(0x11e)+_0x426642+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x5ed09b(0x128)](',\x20'));return _0x426642;}
1
+ const a32_0x40e7f6=a32_0x4225;(function(_0x1d9090,_0x3b5de4){const _0x5d701b=a32_0x4225,_0x5c55cf=_0x1d9090();while(!![]){try{const _0x2d59f3=-parseInt(_0x5d701b(0x1e4))/0x1*(-parseInt(_0x5d701b(0x1f2))/0x2)+-parseInt(_0x5d701b(0x1f1))/0x3*(-parseInt(_0x5d701b(0x1e3))/0x4)+parseInt(_0x5d701b(0x1de))/0x5*(parseInt(_0x5d701b(0x1e9))/0x6)+parseInt(_0x5d701b(0x1dc))/0x7*(-parseInt(_0x5d701b(0x1d1))/0x8)+-parseInt(_0x5d701b(0x1e0))/0x9+-parseInt(_0x5d701b(0x1ea))/0xa*(-parseInt(_0x5d701b(0x1d5))/0xb)+-parseInt(_0x5d701b(0x1e6))/0xc;if(_0x2d59f3===_0x3b5de4)break;else _0x5c55cf['push'](_0x5c55cf['shift']());}catch(_0x3d7d24){_0x5c55cf['push'](_0x5c55cf['shift']());}}}(a32_0x498f,0xd5155));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';function a32_0x4225(_0x59da5c,_0x4226c1){_0x59da5c=_0x59da5c-0x1ce;const _0x498f91=a32_0x498f();let _0x42258d=_0x498f91[_0x59da5c];return _0x42258d;}import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a32_0x40e7f6(0x1f4),'type':a32_0x40e7f6(0x1d4),'description':a32_0x40e7f6(0x1f3),'required':!![]},{'name':a32_0x40e7f6(0x1dd),'type':a32_0x40e7f6(0x1d4),'description':a32_0x40e7f6(0x1db)},{'name':a32_0x40e7f6(0x1e5),'type':a32_0x40e7f6(0x1d4),'description':a32_0x40e7f6(0x1ce),'enum':[...RUNTIME_ENV_VALUES]},{'name':a32_0x40e7f6(0x1d8),'type':a32_0x40e7f6(0x1d2),'description':a32_0x40e7f6(0x1f5)+PRODUCT_CONFIG[a32_0x40e7f6(0x1f0)]+a32_0x40e7f6(0x1d9),'default':![]},{'name':a32_0x40e7f6(0x1e8),'type':a32_0x40e7f6(0x1d2),'description':a32_0x40e7f6(0x1ed),'default':![]}];export async function runAppImport(_0x1c8244){const _0xf35c17=a32_0x40e7f6,_0x51f87e=_0x1c8244[_0xf35c17(0x1d8)]?_0xf35c17(0x1d8):'project',_0x55f175=resolveWriteConfigPath(_0x51f87e);await runFromImport(_0x1c8244,_0x55f175);}async function runFromImport(_0x489951,_0x3a5b1a){const _0x12f741=a32_0x40e7f6,_0x3010f5=resolveFilePath(_0x489951['file']);if(!existsSync(_0x3010f5))throw CliErrors[_0x12f741(0x1f7)]('Source\x20file\x20not\x20found:\x20'+_0x3010f5);const _0x59c017=readSourceFile(_0x3010f5),_0xe2b78f=convertToRuntimeConfig(_0x59c017);_0x489951[_0x12f741(0x1dd)]&&(_0xe2b78f[_0x12f741(0x1dd)]=String(_0x489951[_0x12f741(0x1dd)]));_0x489951[_0x12f741(0x1e5)]&&(_0xe2b78f['env']=resolveImportEnv(_0x489951));if(!_0xe2b78f[_0x12f741(0x1dd)])throw CliErrors['validation'](_0x12f741(0x1e2),_0x12f741(0x1e1));await writeImportConfig(_0x3a5b1a,_0xe2b78f,_0x489951),console[_0x12f741(0x1d0)]('Imported\x20from\x20'+_0x3010f5),console[_0x12f741(0x1d0)](_0x12f741(0x1f6)+_0x3a5b1a),console[_0x12f741(0x1d0)]('\x20\x20appcode:\x20'+_0xe2b78f[_0x12f741(0x1dd)]);if(_0xe2b78f[_0x12f741(0x1d7)])console[_0x12f741(0x1d0)](_0x12f741(0x1cf)+_0xe2b78f[_0x12f741(0x1d7)]);}function convertToRuntimeConfig(_0x2a7b52){const _0x47f84b=a32_0x40e7f6;if(_0x2a7b52['apps']&&typeof _0x2a7b52[_0x47f84b(0x1ef)]==='object')throw CliErrors['validation'](_0x47f84b(0x1ee),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x48f0c1={};for(const _0x457c93 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2a7b52[_0x457c93]!==undefined&&(_0x48f0c1[_0x457c93]=_0x2a7b52[_0x457c93]);}return!_0x48f0c1['riskLevel']&&(_0x48f0c1[_0x47f84b(0x1d6)]=DEFAULT_CONFIG_VALUES[_0x47f84b(0x1d6)]),_0x48f0c1;}async function writeImportConfig(_0x34e403,_0x5841e4,_0x256f2a){const _0x34f3cd=a32_0x40e7f6;let _0x37648={};existsSync(_0x34e403)&&!_0x256f2a[_0x34f3cd(0x1e8)]&&(_0x37648=readConfigFile(_0x34e403));for(const [_0x598c5a,_0x45bdf7]of Object['entries'](_0x5841e4)){_0x45bdf7!==undefined&&(_0x37648[_0x598c5a]=_0x45bdf7);}if(_0x37648[_0x34f3cd(0x1eb)])delete _0x37648['app'];writeConfigFile(_0x34e403,_0x37648);}function resolveFilePath(_0x4d8086){return isAbsolute(_0x4d8086)?_0x4d8086:resolve(process['cwd'](),_0x4d8086);}function readSourceFile(_0x311535){const _0x5e2c48=a32_0x40e7f6;try{const _0x39be6a=readFileSync(_0x311535,{'encoding':_0x5e2c48(0x1d3)});return JSON['parse'](_0x39be6a);}catch(_0x5a0416){throw CliErrors[_0x5e2c48(0x1f7)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x5a0416[_0x5e2c48(0x1df)]);}}function a32_0x498f(){const _0x5eb360=['11bCGOGY','riskLevel','defaultApp','global',')\x20instead\x20of\x20project','\x22.\x20Allowed:\x20','Override\x20imported\x20default\x20appcode','448AtHvDZ','appcode','176485izFAAY','message','10243422nPFRaQ','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`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','20tBXXDN','3OaZNjN','env','2170272iWqypn','includes','yes','78lTiDdV','14250690hqxSKP','app','join','Skip\x20confirmation\x20when\x20overwriting','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','apps','newConfigFileName','842097FxHXpb','169340BmWKHH','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','file','Write\x20to\x20global\x20(~/','\x20\x20config:\x20\x20','validation','Override\x20imported\x20default\x20env','\x20\x20default:\x20','log','168704mhlqBe','boolean','utf8','string'];a32_0x498f=function(){return _0x5eb360;};return a32_0x498f();}function resolveImportEnv(_0x6ff5ca){const _0x3c9b44=a32_0x40e7f6,_0x15ab5d=_0x6ff5ca[_0x3c9b44(0x1e5)];if(_0x15ab5d===undefined||_0x15ab5d==='')return DEFAULT_CONFIG_VALUES[_0x3c9b44(0x1e5)];if(!RUNTIME_ENV_VALUES[_0x3c9b44(0x1e7)](_0x15ab5d))throw CliErrors[_0x3c9b44(0x1f7)]('Invalid\x20env\x20\x22'+_0x15ab5d+_0x3c9b44(0x1da)+RUNTIME_ENV_VALUES[_0x3c9b44(0x1ec)](',\x20'));return _0x15ab5d;}
@@ -1 +1 @@
1
- const a32_0x1f63cd=a32_0x4d08;(function(_0x2aeb87,_0xc4a391){const _0x2a8a1b=a32_0x4d08,_0x1634ae=_0x2aeb87();while(!![]){try{const _0x2d8f46=parseInt(_0x2a8a1b(0x1e0))/0x1*(parseInt(_0x2a8a1b(0x1fe))/0x2)+-parseInt(_0x2a8a1b(0x1df))/0x3+parseInt(_0x2a8a1b(0x1e2))/0x4*(parseInt(_0x2a8a1b(0x1cc))/0x5)+-parseInt(_0x2a8a1b(0x1f9))/0x6+parseInt(_0x2a8a1b(0x20a))/0x7+-parseInt(_0x2a8a1b(0x206))/0x8+parseInt(_0x2a8a1b(0x1f3))/0x9;if(_0x2d8f46===_0xc4a391)break;else _0x1634ae['push'](_0x1634ae['shift']());}catch(_0x5e06f6){_0x1634ae['push'](_0x1634ae['shift']());}}}(a32_0x2d36,0x96597));import{existsSync,readFileSync,statSync}from'node:fs';function a32_0x2d36(){const _0x2586ae=['metadata','num','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','3099264TWOJyP','number','list','bool','7330050xGnVgj','description','File\x20not\x20found:\x20','5uUFNIs','map','--topk\x20must\x20be\x20a\x20positive\x20number.','verbose','create','File\x20is\x20not\x20a\x20regular\x20file:\x20','用本地文件内容替换个人知识库条目正文,并触发新的检索同步。','Search\x20query\x20is\x20required.','Updated\x20KB\x20entry\x20','updateTime','title','POST','query','把本地文件内容保存为个人知识库条目,并进入后续检索同步流程。','validation','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','trim','Personal\x20knowledge-base\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','3286908FKkZdn','63aVEOQG','File\x20path\x20is\x20required.','3601792zKkhUy','scope','Created\x20KB\x20entry\x20','score','根据本地文件创建个人知识库条目','flag','search','Personal\x20knowledge-base\x20entry\x20ID','content','string','ragStatus','body','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','isFinite','read','file','createTime','6379191YTeJUL','isFile','str','/update','/client/knowledge-base/personal/','length','3648666BIRSgt','topk','docId','appCode','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','1606SNKpYZ','build','ragErrorMessage','version','write'];a32_0x2d36=function(){return _0x2586ae;};return a32_0x2d36();}import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a32_0x1f63cd(0x1d6),'type':a32_0x1f63cd(0x1eb),'required':!![],'description':a32_0x1f63cd(0x1dd)},FILE_FLAG={'name':a32_0x1f63cd(0x1f1),'type':a32_0x1f63cd(0x1eb),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':a32_0x1f63cd(0x1d8),'type':a32_0x1f63cd(0x1eb),'required':!![],'description':'Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a32_0x1f63cd(0x1fa),'type':a32_0x1f63cd(0x207),'description':a32_0x1f63cd(0x1ee)};function readKnowledgeFile(_0x4f9030){const _0x2b3dfa=a32_0x1f63cd;if(!_0x4f9030)throw CliErrors[_0x2b3dfa(0x1da)](_0x2b3dfa(0x1e1));if(!existsSync(_0x4f9030))throw CliErrors['validation'](_0x2b3dfa(0x1cb)+_0x4f9030);if(!statSync(_0x4f9030)[_0x2b3dfa(0x1f4)]())throw CliErrors[_0x2b3dfa(0x1da)](_0x2b3dfa(0x1d1)+_0x4f9030);return readFileSync(_0x4f9030,'utf8');}function summarizePersonalItem(_0x583273){const _0x522185=a32_0x1f63cd;return{'id':_0x583273['id'],'title':_0x583273[_0x522185(0x1d6)],'version':_0x583273[_0x522185(0x201)],'ragStatus':_0x583273[_0x522185(0x1ec)],'ragErrorMessage':_0x583273[_0x522185(0x200)],'updateTime':_0x583273[_0x522185(0x1d5)]};}function detailPersonalItem(_0x3b760a){const _0x1d8f85=a32_0x1f63cd;return{'id':_0x3b760a['id'],'appCode':_0x3b760a[_0x1d8f85(0x1fc)],'scope':_0x3b760a[_0x1d8f85(0x1e3)],'userId':_0x3b760a['userId'],'title':_0x3b760a[_0x1d8f85(0x1d6)],'content':_0x3b760a[_0x1d8f85(0x1ea)]??'','version':_0x3b760a[_0x1d8f85(0x201)],'ragStatus':_0x3b760a[_0x1d8f85(0x1ec)],'ragErrorMessage':_0x3b760a[_0x1d8f85(0x200)],'createTime':_0x3b760a[_0x1d8f85(0x1f2)],'updateTime':_0x3b760a[_0x1d8f85(0x1d5)]};}function summarizeSearchHit(_0x289d2d){const _0x117c26=a32_0x1f63cd;return{'scope':_0x289d2d[_0x117c26(0x1e3)],'title':_0x289d2d['title'],'docId':_0x289d2d[_0x117c26(0x1fb)],'score':_0x289d2d[_0x117c26(0x1e5)],'weightedScore':_0x289d2d['weightedScore'],'content':_0x289d2d[_0x117c26(0x1ea)],'metadata':_0x289d2d[_0x117c26(0x203)]};}function a32_0x4d08(_0x4af459,_0x83d0e4){_0x4af459=_0x4af459-0x1ca;const _0x2d36eb=a32_0x2d36();let _0x4d086b=_0x2d36eb[_0x4af459];return _0x4d086b;}function readTopK(_0x5d77af){const _0x449872=a32_0x1f63cd,_0x14dfee=_0x5d77af[_0x449872(0x1e7)](_0x449872(0x1fa));if(_0x14dfee===undefined||_0x14dfee===null||_0x14dfee==='')return undefined;const _0x325f13=_0x5d77af[_0x449872(0x204)](_0x449872(0x1fa));if(!Number[_0x449872(0x1ef)](_0x325f13)||_0x325f13<0x1)throw CliErrors[_0x449872(0x1da)](_0x449872(0x1ce));return _0x325f13;}const kbList={'service':'kb','command':a32_0x1f63cd(0x208),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a32_0x1f63cd(0x1f0),'flags':[VERBOSE_FLAG],async 'execute'(_0xf675ea){const _0x52286e=a32_0x1f63cd,_0x3e6e0c=await listPersonalKnowledgeBaseItems(_0xf675ea[_0x52286e(0x1fc)]);if(_0xf675ea[_0x52286e(0x209)](_0x52286e(0x1cf)))return{'ok':!![],'data':{'total':_0x3e6e0c[_0x52286e(0x1f8)],'items':_0x3e6e0c}};return{'ok':!![],'data':{'total':_0x3e6e0c[_0x52286e(0x1f8)],'items':_0x3e6e0c[_0x52286e(0x1cd)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':'detail','description':a32_0x1f63cd(0x1de),'risk':a32_0x1f63cd(0x1f0),'flags':[{...ID_FLAG,'description':a32_0x1f63cd(0x1e9)}],async 'execute'(_0x2f7cc0){const _0x419cd4=a32_0x1f63cd,_0x3f73f4=await getPersonalKnowledgeBaseItem(_0x2f7cc0[_0x419cd4(0x204)]('id'),_0x2f7cc0['appCode']);return{'ok':!![],'data':detailPersonalItem(_0x3f73f4)};}},kbCreate={'service':'kb','command':a32_0x1f63cd(0x1d0),'description':a32_0x1f63cd(0x1e6),'risk':a32_0x1f63cd(0x202),'confirmationDescription':a32_0x1f63cd(0x1d9),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x49bbcf){const _0x19b0e9=a32_0x1f63cd,_0x5cab5d=_0x49bbcf[_0x19b0e9(0x1f5)]('title'),_0x279d67=readKnowledgeFile(_0x49bbcf[_0x19b0e9(0x1f5)](_0x19b0e9(0x1f1))),_0x27952d=await createPersonalKnowledgeBaseItem(_0x49bbcf[_0x19b0e9(0x1fc)],{'title':_0x5cab5d,'content':_0x279d67});return{'ok':!![],'data':summarizePersonalItem(_0x27952d),'message':_0x19b0e9(0x1e4)+_0x27952d['id']+'\x20('+_0x27952d[_0x19b0e9(0x1d6)]+')'};},async 'dryRun'(_0x5023f3){const _0x4e0d3b=a32_0x1f63cd,_0x410ba9=_0x5023f3[_0x4e0d3b(0x1f5)](_0x4e0d3b(0x1d6)),_0x271806=readKnowledgeFile(_0x5023f3[_0x4e0d3b(0x1f5)]('file'));return dryRun(_0x4e0d3b(0x1d7),'/client/knowledge-base/personal/create')[_0x4e0d3b(0x1ed)]({'appCode':_0x5023f3[_0x4e0d3b(0x1fc)],'title':_0x410ba9,'content':_0x271806})[_0x4e0d3b(0x1ca)](_0x4e0d3b(0x1fd)+_0x410ba9+'\x22')['build']();}},kbUpdate={'service':'kb','command':'update','description':'根据本地文件更新个人知识库条目','risk':a32_0x1f63cd(0x202),'confirmationDescription':a32_0x1f63cd(0x1d2),'flags':[{...ID_FLAG,'description':a32_0x1f63cd(0x1e9)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0xf411df){const _0x1a1908=a32_0x1f63cd,_0x1043f9=_0xf411df[_0x1a1908(0x204)]('id'),_0x18af10=readKnowledgeFile(_0xf411df['str'](_0x1a1908(0x1f1))),_0x21bc52=_0xf411df[_0x1a1908(0x1f5)](_0x1a1908(0x1d6))||(await getPersonalKnowledgeBaseItem(_0x1043f9,_0xf411df['appCode']))[_0x1a1908(0x1d6)],_0x26b803=await updatePersonalKnowledgeBaseItem(_0x1043f9,_0xf411df[_0x1a1908(0x1fc)],{'title':_0x21bc52,'content':_0x18af10});return{'ok':!![],'data':summarizePersonalItem(_0x26b803),'message':_0x1a1908(0x1d4)+_0x26b803['id']+'\x20('+_0x26b803[_0x1a1908(0x1d6)]+')'};},async 'dryRun'(_0xde0922){const _0x1f15c3=a32_0x1f63cd,_0x4ad513=_0xde0922['num']('id'),_0xfcda96=readKnowledgeFile(_0xde0922[_0x1f15c3(0x1f5)](_0x1f15c3(0x1f1))),_0x2b1082=_0xde0922[_0x1f15c3(0x1f5)](_0x1f15c3(0x1d6))||(await getPersonalKnowledgeBaseItem(_0x4ad513,_0xde0922[_0x1f15c3(0x1fc)]))['title'];return dryRun(_0x1f15c3(0x1d7),_0x1f15c3(0x1f7)+_0x4ad513+_0x1f15c3(0x1f6))[_0x1f15c3(0x1ed)]({'appCode':_0xde0922[_0x1f15c3(0x1fc)],'title':_0x2b1082,'content':_0xfcda96})[_0x1f15c3(0x1ca)](_0x1f15c3(0x205)+_0x4ad513)[_0x1f15c3(0x1ff)]();}},kbSearch={'service':'kb','command':a32_0x1f63cd(0x1e8),'description':a32_0x1f63cd(0x1db),'risk':a32_0x1f63cd(0x1f0),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x4af226){const _0x447521=a32_0x1f63cd;if(!_0x4af226[_0x447521(0x1f5)](_0x447521(0x1d8))[_0x447521(0x1dc)]())throw CliErrors['validation'](_0x447521(0x1d3));readTopK(_0x4af226);},async 'execute'(_0x48e71c){const _0x476967=a32_0x1f63cd,_0x2248a1=_0x48e71c[_0x476967(0x1f5)]('query')[_0x476967(0x1dc)](),_0x26860a=readTopK(_0x48e71c),_0x3cc3db=await searchKnowledgeBase(_0x48e71c[_0x476967(0x1fc)],{'query':_0x2248a1,'topK':_0x26860a});return{'ok':!![],'data':{'total':_0x3cc3db[_0x476967(0x1f8)],'hits':_0x3cc3db[_0x476967(0x1cd)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a33_0x3f12fa=a33_0x165e;function a33_0x43d7(){const _0x5efa52=['Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','length','File\x20is\x20not\x20a\x20regular\x20file:\x20','build','appCode','createTime','description','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','title','--topk\x20must\x20be\x20a\x20positive\x20number.','2251650dIuhmx','search','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','POST','Personal\x20knowledge-base\x20entry\x20ID','Created\x20KB\x20entry\x20','Search\x20query\x20is\x20required.','docId','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','update','scope','num','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','validation','read','userId','/client/knowledge-base/personal/','string','body','updateTime','score','weightedScore','File\x20path\x20is\x20required.','verbose','551916ghQvyw','ragErrorMessage','/update','16GGCymn','str','9882110zNpOkU','flag','2335096pgKmse','3775432UOZLvn','topk','ragStatus','63GezbFc','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','5jQwGyq','write','content','utf8','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','create','metadata','map','27tWQBcy','isFile','155817ekyocD','Override\x20the\x20existing\x20entry\x20title','detail','isFinite','trim','Updated\x20KB\x20entry\x20','query','File\x20not\x20found:\x20','29576415xOSSZV','file','Personal\x20knowledge-base\x20entry\x20title','/client/knowledge-base/personal/create','version'];a33_0x43d7=function(){return _0x5efa52;};return a33_0x43d7();}(function(_0x256cd1,_0x427c23){const _0x7d0426=a33_0x165e,_0x19154c=_0x256cd1();while(!![]){try{const _0x419987=-parseInt(_0x7d0426(0xc9))/0x1*(parseInt(_0x7d0426(0xb5))/0x2)+-parseInt(_0x7d0426(0xe2))/0x3+parseInt(_0x7d0426(0xba))/0x4*(parseInt(_0x7d0426(0xbf))/0x5)+-parseInt(_0x7d0426(0xb2))/0x6*(parseInt(_0x7d0426(0xbd))/0x7)+-parseInt(_0x7d0426(0xb9))/0x8*(-parseInt(_0x7d0426(0xc7))/0x9)+-parseInt(_0x7d0426(0xb7))/0xa+parseInt(_0x7d0426(0xd1))/0xb;if(_0x419987===_0x427c23)break;else _0x19154c['push'](_0x19154c['shift']());}catch(_0x3b019e){_0x19154c['push'](_0x19154c['shift']());}}}(a33_0x43d7,0xa9b49));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a33_0x3f12fa(0xe0),'type':a33_0x3f12fa(0xab),'required':!![],'description':a33_0x3f12fa(0xd3)},FILE_FLAG={'name':a33_0x3f12fa(0xd2),'type':a33_0x3f12fa(0xab),'required':!![],'description':a33_0x3f12fa(0xbe)},QUERY_FLAG={'name':'query','type':a33_0x3f12fa(0xab),'required':!![],'description':a33_0x3f12fa(0xdf)},TOPK_FLAG={'name':a33_0x3f12fa(0xbb),'type':'number','description':a33_0x3f12fa(0xd7)};function a33_0x165e(_0x31f000,_0x54e2f0){_0x31f000=_0x31f000-0xaa;const _0x43d7a7=a33_0x43d7();let _0x165e9a=_0x43d7a7[_0x31f000];return _0x165e9a;}function readKnowledgeFile(_0x2a6cf2){const _0x495ef4=a33_0x3f12fa;if(!_0x2a6cf2)throw CliErrors[_0x495ef4(0xef)](_0x495ef4(0xb0));if(!existsSync(_0x2a6cf2))throw CliErrors['validation'](_0x495ef4(0xd0)+_0x2a6cf2);if(!statSync(_0x2a6cf2)[_0x495ef4(0xc8)]())throw CliErrors[_0x495ef4(0xef)](_0x495ef4(0xd9)+_0x2a6cf2);return readFileSync(_0x2a6cf2,_0x495ef4(0xc2));}function summarizePersonalItem(_0x55ab43){const _0x4ffe75=a33_0x3f12fa;return{'id':_0x55ab43['id'],'title':_0x55ab43[_0x4ffe75(0xe0)],'version':_0x55ab43[_0x4ffe75(0xd5)],'ragStatus':_0x55ab43['ragStatus'],'ragErrorMessage':_0x55ab43['ragErrorMessage'],'updateTime':_0x55ab43[_0x4ffe75(0xad)]};}function detailPersonalItem(_0x1f24df){const _0x572b49=a33_0x3f12fa;return{'id':_0x1f24df['id'],'appCode':_0x1f24df[_0x572b49(0xdb)],'scope':_0x1f24df[_0x572b49(0xec)],'userId':_0x1f24df[_0x572b49(0xf1)],'title':_0x1f24df['title'],'content':_0x1f24df[_0x572b49(0xc1)]??'','version':_0x1f24df[_0x572b49(0xd5)],'ragStatus':_0x1f24df[_0x572b49(0xbc)],'ragErrorMessage':_0x1f24df[_0x572b49(0xb3)],'createTime':_0x1f24df[_0x572b49(0xdc)],'updateTime':_0x1f24df[_0x572b49(0xad)]};}function summarizeSearchHit(_0x243ec8){const _0xf2dd59=a33_0x3f12fa;return{'scope':_0x243ec8['scope'],'title':_0x243ec8[_0xf2dd59(0xe0)],'docId':_0x243ec8[_0xf2dd59(0xe9)],'score':_0x243ec8[_0xf2dd59(0xae)],'weightedScore':_0x243ec8[_0xf2dd59(0xaf)],'content':_0x243ec8[_0xf2dd59(0xc1)],'metadata':_0x243ec8[_0xf2dd59(0xc5)]};}function readTopK(_0x3702b1){const _0x395a79=a33_0x3f12fa,_0x50327a=_0x3702b1[_0x395a79(0xb8)](_0x395a79(0xbb));if(_0x50327a===undefined||_0x50327a===null||_0x50327a==='')return undefined;const _0x46e13d=_0x3702b1[_0x395a79(0xed)](_0x395a79(0xbb));if(!Number[_0x395a79(0xcc)](_0x46e13d)||_0x46e13d<0x1)throw CliErrors[_0x395a79(0xef)](_0x395a79(0xe1));return _0x46e13d;}const kbList={'service':'kb','command':'list','description':a33_0x3f12fa(0xee),'risk':a33_0x3f12fa(0xf0),'flags':[VERBOSE_FLAG],async 'execute'(_0x98cf2f){const _0x6b1d4=a33_0x3f12fa,_0x2054dc=await listPersonalKnowledgeBaseItems(_0x98cf2f[_0x6b1d4(0xdb)]);if(_0x98cf2f['bool'](_0x6b1d4(0xb1)))return{'ok':!![],'data':{'total':_0x2054dc[_0x6b1d4(0xd8)],'items':_0x2054dc}};return{'ok':!![],'data':{'total':_0x2054dc[_0x6b1d4(0xd8)],'items':_0x2054dc[_0x6b1d4(0xc6)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a33_0x3f12fa(0xcb),'description':a33_0x3f12fa(0xc3),'risk':'read','flags':[{...ID_FLAG,'description':a33_0x3f12fa(0xe6)}],async 'execute'(_0x1b8c8e){const _0x453bc8=a33_0x3f12fa,_0x17f7dc=await getPersonalKnowledgeBaseItem(_0x1b8c8e[_0x453bc8(0xed)]('id'),_0x1b8c8e[_0x453bc8(0xdb)]);return{'ok':!![],'data':detailPersonalItem(_0x17f7dc)};}},kbCreate={'service':'kb','command':a33_0x3f12fa(0xc4),'description':a33_0x3f12fa(0xde),'risk':a33_0x3f12fa(0xc0),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x405144){const _0x4878a0=a33_0x3f12fa,_0x4f0702=_0x405144['str'](_0x4878a0(0xe0)),_0x2c51ee=readKnowledgeFile(_0x405144[_0x4878a0(0xb6)](_0x4878a0(0xd2))),_0x30bf5f=await createPersonalKnowledgeBaseItem(_0x405144['appCode'],{'title':_0x4f0702,'content':_0x2c51ee});return{'ok':!![],'data':summarizePersonalItem(_0x30bf5f),'message':_0x4878a0(0xe7)+_0x30bf5f['id']+'\x20('+_0x30bf5f['title']+')'};},async 'dryRun'(_0xcd4d28){const _0x3e5f3d=a33_0x3f12fa,_0xbb4978=_0xcd4d28['str'](_0x3e5f3d(0xe0)),_0x5e8241=readKnowledgeFile(_0xcd4d28[_0x3e5f3d(0xb6)](_0x3e5f3d(0xd2)));return dryRun(_0x3e5f3d(0xe5),_0x3e5f3d(0xd4))['body']({'appCode':_0xcd4d28[_0x3e5f3d(0xdb)],'title':_0xbb4978,'content':_0x5e8241})[_0x3e5f3d(0xdd)](_0x3e5f3d(0xea)+_0xbb4978+'\x22')[_0x3e5f3d(0xda)]();}},kbUpdate={'service':'kb','command':a33_0x3f12fa(0xeb),'description':a33_0x3f12fa(0xe4),'risk':'write','confirmationDescription':'Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a33_0x3f12fa(0xca)},FILE_FLAG],async 'execute'(_0x3ebcf6){const _0x3f4a6f=a33_0x3f12fa,_0x5ecf31=_0x3ebcf6[_0x3f4a6f(0xed)]('id'),_0x1b7f19=readKnowledgeFile(_0x3ebcf6['str'](_0x3f4a6f(0xd2))),_0x594f8d=_0x3ebcf6[_0x3f4a6f(0xb6)](_0x3f4a6f(0xe0))||(await getPersonalKnowledgeBaseItem(_0x5ecf31,_0x3ebcf6[_0x3f4a6f(0xdb)]))['title'],_0x489d00=await updatePersonalKnowledgeBaseItem(_0x5ecf31,_0x3ebcf6[_0x3f4a6f(0xdb)],{'title':_0x594f8d,'content':_0x1b7f19});return{'ok':!![],'data':summarizePersonalItem(_0x489d00),'message':_0x3f4a6f(0xce)+_0x489d00['id']+'\x20('+_0x489d00[_0x3f4a6f(0xe0)]+')'};},async 'dryRun'(_0x2b632b){const _0x109648=a33_0x3f12fa,_0x40e7d9=_0x2b632b['num']('id'),_0x169f72=readKnowledgeFile(_0x2b632b['str'](_0x109648(0xd2))),_0x12a3c5=_0x2b632b[_0x109648(0xb6)]('title')||(await getPersonalKnowledgeBaseItem(_0x40e7d9,_0x2b632b[_0x109648(0xdb)]))['title'];return dryRun(_0x109648(0xe5),_0x109648(0xaa)+_0x40e7d9+_0x109648(0xb4))[_0x109648(0xac)]({'appCode':_0x2b632b[_0x109648(0xdb)],'title':_0x12a3c5,'content':_0x169f72})[_0x109648(0xdd)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x40e7d9)['build']();}},kbSearch={'service':'kb','command':a33_0x3f12fa(0xe3),'description':a33_0x3f12fa(0xd6),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x431505){const _0x17e089=a33_0x3f12fa;if(!_0x431505[_0x17e089(0xb6)](_0x17e089(0xcf))[_0x17e089(0xcd)]())throw CliErrors[_0x17e089(0xef)](_0x17e089(0xe8));readTopK(_0x431505);},async 'execute'(_0x94177a){const _0xd10d67=a33_0x3f12fa,_0x4e70aa=_0x94177a[_0xd10d67(0xb6)]('query')['trim'](),_0x52ed7f=readTopK(_0x94177a),_0x3e854e=await searchKnowledgeBase(_0x94177a[_0xd10d67(0xdb)],{'query':_0x4e70aa,'topK':_0x52ed7f});return{'ok':!![],'data':{'total':_0x3e854e[_0xd10d67(0xd8)],'hits':_0x3e854e[_0xd10d67(0xc6)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a33_0x15fcef=a33_0x401c;(function(_0x5ae3a5,_0x25b164){const _0x144d27=a33_0x401c,_0x2789b2=_0x5ae3a5();while(!![]){try{const _0x229030=parseInt(_0x144d27(0x129))/0x1+parseInt(_0x144d27(0x134))/0x2*(-parseInt(_0x144d27(0x12c))/0x3)+parseInt(_0x144d27(0x13f))/0x4+-parseInt(_0x144d27(0x13a))/0x5*(parseInt(_0x144d27(0x13b))/0x6)+-parseInt(_0x144d27(0x127))/0x7+-parseInt(_0x144d27(0x124))/0x8*(-parseInt(_0x144d27(0x133))/0x9)+-parseInt(_0x144d27(0x12f))/0xa;if(_0x229030===_0x25b164)break;else _0x2789b2['push'](_0x2789b2['shift']());}catch(_0x5b493c){_0x2789b2['push'](_0x2789b2['shift']());}}}(a33_0x43a6,0xb8ce6));function a33_0x43a6(){const _0x39a5d5=['command','en-US','\x20\x20\x20Duration:\x20','length','245ccOYvB','51414RabdOh','level','log','timestamp','3925848nukxUJ','View\x20command\x20history\x20logs','16NgEbhA','success','\x20\x20\x20Details:\x20','4499677aaHQlN','keys','881139NasQRd','stringify','toLocaleString','1907679ulCVbb','error','show','7053980JyCJlL','details','logs','\x20logs:\x0a','5842566NfhiGR','2fZlsxd','message'];a33_0x43a6=function(){return _0x39a5d5;};return a33_0x43a6();}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x2607cc){const _0x53fcc4=a33_0x401c;if(_0x2607cc[_0x53fcc4(0x139)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console[_0x53fcc4(0x13d)]('*\x20'+CLI_DISPLAY_NAME+_0x53fcc4(0x132)),_0x2607cc['forEach']((_0x1ec1fd,_0x234658)=>{const _0x2b0bb3=_0x53fcc4,_0x49afa2=new Date(_0x1ec1fd[_0x2b0bb3(0x13e)])[_0x2b0bb3(0x12b)](_0x2b0bb3(0x137)),_0x32fda0=_0x1ec1fd[_0x2b0bb3(0x13c)]===_0x2b0bb3(0x125)?'√':_0x1ec1fd[_0x2b0bb3(0x13c)]===_0x2b0bb3(0x12d)?'×':_0x1ec1fd[_0x2b0bb3(0x13c)]==='warn'?'!':'i';console[_0x2b0bb3(0x13d)](_0x234658+0x1+'.\x20'+_0x32fda0+'\x20['+_0x1ec1fd[_0x2b0bb3(0x136)]+']\x20'+_0x1ec1fd[_0x2b0bb3(0x135)]),console[_0x2b0bb3(0x13d)]('\x20\x20\x20Time:\x20'+_0x49afa2),_0x1ec1fd['duration']&&console[_0x2b0bb3(0x13d)](_0x2b0bb3(0x138)+_0x1ec1fd['duration']+'ms'),_0x1ec1fd['details']&&Object[_0x2b0bb3(0x128)](_0x1ec1fd['details'])[_0x2b0bb3(0x139)]>0x0&&console[_0x2b0bb3(0x13d)](_0x2b0bb3(0x126)+JSON[_0x2b0bb3(0x12a)](_0x1ec1fd[_0x2b0bb3(0x130)],null,0x2)),console[_0x2b0bb3(0x13d)]('');});}function a33_0x401c(_0x3b2551,_0x4300bb){_0x3b2551=_0x3b2551-0x124;const _0x43a6a0=a33_0x43a6();let _0x401ce7=_0x43a6a0[_0x3b2551];return _0x401ce7;}export const logsDefinitions=[{'service':a33_0x15fcef(0x131),'command':a33_0x15fcef(0x12e),'description':a33_0x15fcef(0x140),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1404a7){return printLogs(logger['readLogs']()),{'ok':!![]};}}];
1
+ function a34_0x2cce(_0x3f931d,_0xc8d1df){_0x3f931d=_0x3f931d-0x1c2;const _0x237fe9=a34_0x237f();let _0x2cce87=_0x237fe9[_0x3f931d];return _0x2cce87;}const a34_0x3cd1cd=a34_0x2cce;function a34_0x237f(){const _0xd61fd9=['1036788VOkcmo','toLocaleString','warn','log','timestamp','keys','duration','logs','2167484iuvVwa','forEach','details','1169308ZLqsSx','message','read','2085ustOHG','en-US','1KsVPsq','*\x20No\x20logs\x20found','error','stringify','469dWWeZk','readLogs','\x20logs:\x0a','5564GtmpID','\x20\x20\x20Details:\x20','length','10cyqDxU','\x20\x20\x20Time:\x20','level','5115978djFdQw','34422fkuiDs','\x20\x20\x20Duration:\x20','View\x20command\x20history\x20logs','12tXguSK','3307040sViTCZ','show'];a34_0x237f=function(){return _0xd61fd9;};return a34_0x237f();}(function(_0x2e8a49,_0x2dfacd){const _0x5061eb=a34_0x2cce,_0x554cbe=_0x2e8a49();while(!![]){try{const _0x2d5e94=-parseInt(_0x5061eb(0x1cf))/0x1*(parseInt(_0x5061eb(0x1ca))/0x2)+parseInt(_0x5061eb(0x1e3))/0x3+parseInt(_0x5061eb(0x1d6))/0x4*(parseInt(_0x5061eb(0x1cd))/0x5)+-parseInt(_0x5061eb(0x1dd))/0x6*(parseInt(_0x5061eb(0x1d3))/0x7)+-parseInt(_0x5061eb(0x1e1))/0x8+parseInt(_0x5061eb(0x1dc))/0x9*(parseInt(_0x5061eb(0x1d9))/0xa)+-parseInt(_0x5061eb(0x1c7))/0xb*(-parseInt(_0x5061eb(0x1e0))/0xc);if(_0x2d5e94===_0x2dfacd)break;else _0x554cbe['push'](_0x554cbe['shift']());}catch(_0x409739){_0x554cbe['push'](_0x554cbe['shift']());}}}(a34_0x237f,0x4b5ec));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x3449de){const _0x3bb5a3=a34_0x2cce;if(_0x3449de[_0x3bb5a3(0x1d8)]===0x0){console[_0x3bb5a3(0x1c2)](_0x3bb5a3(0x1d0));return;}console[_0x3bb5a3(0x1c2)]('*\x20'+CLI_DISPLAY_NAME+_0x3bb5a3(0x1d5)),_0x3449de[_0x3bb5a3(0x1c8)]((_0x5efb6a,_0x3f13de)=>{const _0x3705b4=_0x3bb5a3,_0x3f095d=new Date(_0x5efb6a[_0x3705b4(0x1c3)])[_0x3705b4(0x1e4)](_0x3705b4(0x1ce)),_0x2c0547=_0x5efb6a['level']==='success'?'√':_0x5efb6a[_0x3705b4(0x1db)]===_0x3705b4(0x1d1)?'×':_0x5efb6a['level']===_0x3705b4(0x1e5)?'!':'i';console[_0x3705b4(0x1c2)](_0x3f13de+0x1+'.\x20'+_0x2c0547+'\x20['+_0x5efb6a['command']+']\x20'+_0x5efb6a[_0x3705b4(0x1cb)]),console[_0x3705b4(0x1c2)](_0x3705b4(0x1da)+_0x3f095d),_0x5efb6a[_0x3705b4(0x1c5)]&&console['log'](_0x3705b4(0x1de)+_0x5efb6a[_0x3705b4(0x1c5)]+'ms'),_0x5efb6a[_0x3705b4(0x1c9)]&&Object[_0x3705b4(0x1c4)](_0x5efb6a[_0x3705b4(0x1c9)])[_0x3705b4(0x1d8)]>0x0&&console[_0x3705b4(0x1c2)](_0x3705b4(0x1d7)+JSON[_0x3705b4(0x1d2)](_0x5efb6a[_0x3705b4(0x1c9)],null,0x2)),console[_0x3705b4(0x1c2)]('');});}export const logsDefinitions=[{'service':a34_0x3cd1cd(0x1c6),'command':a34_0x3cd1cd(0x1e2),'description':a34_0x3cd1cd(0x1df),'risk':a34_0x3cd1cd(0x1cc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x399e3d){const _0xbb86cc=a34_0x3cd1cd;return printLogs(logger[_0xbb86cc(0x1d4)]()),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a34_0x58c058=a34_0x3c9f;(function(_0x413bd2,_0x5a7004){const _0x206fa9=a34_0x3c9f,_0x4e9e5f=_0x413bd2();while(!![]){try{const _0x5a1c5b=parseInt(_0x206fa9(0x1d8))/0x1*(-parseInt(_0x206fa9(0x1dc))/0x2)+parseInt(_0x206fa9(0x1d7))/0x3*(-parseInt(_0x206fa9(0x1e2))/0x4)+parseInt(_0x206fa9(0x1da))/0x5+-parseInt(_0x206fa9(0x1d5))/0x6+-parseInt(_0x206fa9(0x1e3))/0x7*(-parseInt(_0x206fa9(0x1d2))/0x8)+-parseInt(_0x206fa9(0x1df))/0x9+-parseInt(_0x206fa9(0x1dd))/0xa*(-parseInt(_0x206fa9(0x1d6))/0xb);if(_0x5a1c5b===_0x5a7004)break;else _0x4e9e5f['push'](_0x4e9e5f['shift']());}catch(_0x150b41){_0x4e9e5f['push'](_0x4e9e5f['shift']());}}}(a34_0x38a1,0x8c6bc));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a34_0x38a1(){const _0x21b4e8=['1238hFXwCa','20PPTZxR','appCode','900927HgVVha','length','map','264rrckaX','3461269tTwSUR','string','notification','Notification\x20channel\x20type','16DFqdag','Found\x20','config-list','4755120LvUGWX','5575273FkymPk','46275QJJUJI','791ebTJDD','EMAIL','4864230qPoRDc','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values'];a34_0x38a1=function(){return _0x21b4e8;};return a34_0x38a1();}function a34_0x3c9f(_0x49d0fb,_0x781e92){_0x49d0fb=_0x49d0fb-0x1d0;const _0x38a1eb=a34_0x38a1();let _0x3c9f87=_0x38a1eb[_0x49d0fb];return _0x3c9f87;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a34_0x58c058(0x1d0),'command':a34_0x58c058(0x1d4),'description':a34_0x58c058(0x1db),'risk':'read','flags':[{'name':'type','type':a34_0x58c058(0x1e4),'description':a34_0x58c058(0x1d1),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a34_0x58c058(0x1d9)}],async 'validate'(_0x2985d0){readNotificationChannelType(_0x2985d0);},async 'execute'(_0x3bd20a){const _0x2ac38a=a34_0x58c058,_0x40dbf0=readNotificationChannelType(_0x3bd20a),_0x4ccc13=await listNotificationChannelConfigs(_0x3bd20a[_0x2ac38a(0x1de)],_0x40dbf0),_0x11c93b=_0x4ccc13[_0x2ac38a(0x1e1)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3bd20a[_0x2ac38a(0x1de)],'channelType':_0x40dbf0,'count':_0x11c93b[_0x2ac38a(0x1e0)],'configs':_0x11c93b},'message':_0x2ac38a(0x1d3)+_0x11c93b[_0x2ac38a(0x1e0)]+'\x20'+_0x40dbf0+'\x20notification\x20config(s)'};}};
1
+ const a35_0x5ae4fd=a35_0x451d;function a35_0x6fe2(){const _0x3b44e2=['1018572jZbicB','Found\x20','10fcVayJ','Notification\x20channel\x20type','length','config-list','4407830MQpTCV','590166zRAsSZ','8tbWmqk','map','2594553BDcgEB','3853392EcyEhS','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','appCode','read','string','10039356EGxdnp','701956aRqodh','type'];a35_0x6fe2=function(){return _0x3b44e2;};return a35_0x6fe2();}(function(_0x47486c,_0x91b63d){const _0x37095c=a35_0x451d,_0x349ca0=_0x47486c();while(!![]){try{const _0x3d144c=parseInt(_0x37095c(0x154))/0x1+-parseInt(_0x37095c(0x14b))/0x2+-parseInt(_0x37095c(0x157))/0x3+parseInt(_0x37095c(0x158))/0x4+parseInt(_0x37095c(0x14f))/0x5*(-parseInt(_0x37095c(0x14d))/0x6)+-parseInt(_0x37095c(0x153))/0x7*(parseInt(_0x37095c(0x155))/0x8)+parseInt(_0x37095c(0x15d))/0x9;if(_0x3d144c===_0x91b63d)break;else _0x349ca0['push'](_0x349ca0['shift']());}catch(_0x3aeac4){_0x349ca0['push'](_0x349ca0['shift']());}}}(a35_0x6fe2,0x76273));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';function a35_0x451d(_0x527f05,_0x28a26c){_0x527f05=_0x527f05-0x14b;const _0x6fe24e=a35_0x6fe2();let _0x451d65=_0x6fe24e[_0x527f05];return _0x451d65;}export const notificationConfigList={'service':'notification','command':a35_0x5ae4fd(0x152),'description':a35_0x5ae4fd(0x159),'risk':a35_0x5ae4fd(0x15b),'flags':[{'name':a35_0x5ae4fd(0x14c),'type':a35_0x5ae4fd(0x15c),'description':a35_0x5ae4fd(0x150),'enum':NOTIFICATION_CHANNEL_TYPES,'default':'EMAIL'}],async 'validate'(_0x5326fb){readNotificationChannelType(_0x5326fb);},async 'execute'(_0x25da52){const _0x25d3fa=a35_0x5ae4fd,_0x166fd8=readNotificationChannelType(_0x25da52),_0x45309f=await listNotificationChannelConfigs(_0x25da52[_0x25d3fa(0x15a)],_0x166fd8),_0x204a90=_0x45309f[_0x25d3fa(0x156)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x25da52['appCode'],'channelType':_0x166fd8,'count':_0x204a90[_0x25d3fa(0x151)],'configs':_0x204a90},'message':_0x25d3fa(0x14e)+_0x204a90[_0x25d3fa(0x151)]+'\x20'+_0x166fd8+'\x20notification\x20config(s)'};}};
@@ -1 +1 @@
1
- function a35_0x13bd(_0xc7a3e6,_0x2d598d){_0xc7a3e6=_0xc7a3e6-0x143;const _0x2b7245=a35_0x2b72();let _0x13bd85=_0x2b7245[_0xc7a3e6];return _0x13bd85;}(function(_0x21f23c,_0xdb1aef){const _0x1662d6=a35_0x13bd,_0x3fba53=_0x21f23c();while(!![]){try{const _0x11837d=-parseInt(_0x1662d6(0x149))/0x1+parseInt(_0x1662d6(0x147))/0x2+-parseInt(_0x1662d6(0x144))/0x3*(-parseInt(_0x1662d6(0x148))/0x4)+parseInt(_0x1662d6(0x14a))/0x5*(parseInt(_0x1662d6(0x14b))/0x6)+parseInt(_0x1662d6(0x145))/0x7+parseInt(_0x1662d6(0x146))/0x8*(-parseInt(_0x1662d6(0x143))/0x9)+-parseInt(_0x1662d6(0x14c))/0xa;if(_0x11837d===_0xdb1aef)break;else _0x3fba53['push'](_0x3fba53['shift']());}catch(_0xcdef80){_0x3fba53['push'](_0x3fba53['shift']());}}}(a35_0x2b72,0x89e88));function a35_0x2b72(){const _0x9160b0=['1487400IlAIbN','5564CsRAcg','51853UvvwRW','5gRMwql','6240006gzbcdy','8046350kqeynf','111519LnEKQf','1089njpVWK','954779IaePxc','648svzDVg'];a35_0x2b72=function(){return _0x9160b0;};return a35_0x2b72();}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
1
+ (function(_0x3e6c40,_0x176cb6){const _0x4c807e=a36_0x5c6f,_0x5aa7ea=_0x3e6c40();while(!![]){try{const _0x1c0b71=parseInt(_0x4c807e(0x11d))/0x1+parseInt(_0x4c807e(0x124))/0x2+parseInt(_0x4c807e(0x11c))/0x3*(-parseInt(_0x4c807e(0x11b))/0x4)+-parseInt(_0x4c807e(0x11f))/0x5*(-parseInt(_0x4c807e(0x122))/0x6)+parseInt(_0x4c807e(0x120))/0x7+parseInt(_0x4c807e(0x123))/0x8+parseInt(_0x4c807e(0x121))/0x9*(-parseInt(_0x4c807e(0x11e))/0xa);if(_0x1c0b71===_0x176cb6)break;else _0x5aa7ea['push'](_0x5aa7ea['shift']());}catch(_0x286d10){_0x5aa7ea['push'](_0x5aa7ea['shift']());}}}(a36_0x16bd,0xf10d4));import{notificationConfigList}from'../../commands/notification/config-list.js';function a36_0x5c6f(_0x4f69a1,_0x4ed431){_0x4f69a1=_0x4f69a1-0x11b;const _0x16bd21=a36_0x16bd();let _0x5c6fdb=_0x16bd21[_0x4f69a1];return _0x5c6fdb;}export const notificationDefinitions=[notificationConfigList];function a36_0x16bd(){const _0x357cb2=['2085126AfYTCt','2374556TrdjQW','3UEVvwr','1744402PJbORv','70NaFOAU','141985NrsrMD','8606752VlvJDl','5261157qldKWW','174YSgUSL','6663872ssJLOC'];a36_0x16bd=function(){return _0x357cb2;};return a36_0x16bd();}
@@ -1 +1 @@
1
- const a36_0x77c98b=a36_0x19fc;(function(_0x1795a5,_0x17c841){const _0x96ca5d=a36_0x19fc,_0xe20f8a=_0x1795a5();while(!![]){try{const _0x3107fe=parseInt(_0x96ca5d(0x1b3))/0x1+-parseInt(_0x96ca5d(0x1c1))/0x2+-parseInt(_0x96ca5d(0x1c0))/0x3*(-parseInt(_0x96ca5d(0x1ba))/0x4)+parseInt(_0x96ca5d(0x1b9))/0x5*(parseInt(_0x96ca5d(0x1b0))/0x6)+parseInt(_0x96ca5d(0x1c2))/0x7*(parseInt(_0x96ca5d(0x1a8))/0x8)+-parseInt(_0x96ca5d(0x1ae))/0x9+parseInt(_0x96ca5d(0x1b5))/0xa*(-parseInt(_0x96ca5d(0x1c4))/0xb);if(_0x3107fe===_0x17c841)break;else _0xe20f8a['push'](_0xe20f8a['shift']());}catch(_0x596fc4){_0xe20f8a['push'](_0xe20f8a['shift']());}}}(a36_0x10b8,0x43862));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a36_0x77c98b(0x1ad),a36_0x77c98b(0x1af),'DINGTALK','WECOM','WEBHOOK'];export function readNotificationChannelType(_0xd70875){const _0x446b6c=a36_0x77c98b,_0x4b7bf9=_0xd70875['str']('type')[_0x446b6c(0x1be)]()||_0x446b6c(0x1ad);if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x4b7bf9))throw CliErrors[_0x446b6c(0x1b1)](_0x446b6c(0x1aa)+_0x4b7bf9,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x446b6c(0x1bb)](',\x20')+'.');return _0x4b7bf9;}export function projectNotificationListConfig(_0x2218cd,_0x203f47){const _0x8f06d0=a36_0x77c98b,_0x2de188=requireResponseObject(_0x2218cd,_0x203f47);return{'id':normalizeNullableId(_0x2de188['id'],_0x203f47),'configCode':requireResponseString(_0x2de188[_0x8f06d0(0x1ac)],_0x8f06d0(0x1ac),_0x203f47),'configName':requireResponseString(_0x2de188[_0x8f06d0(0x1b8)],_0x8f06d0(0x1b8),_0x203f47),'channelType':requireResponseString(_0x2de188[_0x8f06d0(0x1bf)],'channelType',_0x203f47),'description':normalizeNullableString(_0x2de188['description']),'createTime':normalizeNullableString(_0x2de188[_0x8f06d0(0x1bd)]),'updateTime':normalizeNullableString(_0x2de188['updateTime'])};}function requireResponseObject(_0x1b3cf6,_0x3c2970){const _0xd29433=a36_0x77c98b;if(typeof _0x1b3cf6!=='object'||_0x1b3cf6===null||Array['isArray'](_0x1b3cf6))throw CliErrors[_0xd29433(0x1b7)]('Invalid\x20notification\x20config\x20response.',_0xd29433(0x1c3)+(_0x3c2970+0x1)+'\x20must\x20be\x20an\x20object.');return _0x1b3cf6;}function requireResponseString(_0x542ed5,_0x44169b,_0x236317){const _0x34d11e=a36_0x77c98b;if(typeof _0x542ed5!==_0x34d11e(0x1b4)||!_0x542ed5[_0x34d11e(0x1be)]())throw CliErrors['apiError'](_0x34d11e(0x1bc),'Item\x20'+(_0x236317+0x1)+'\x20is\x20missing\x20required\x20field\x20\x22'+_0x44169b+'\x22.');return _0x542ed5[_0x34d11e(0x1be)]();}function a36_0x10b8(){const _0x181482=['1740825OMyJFU','FEISHU','2334QnTUaV','validation','number','421916oRSVnM','string','4520tTYgjP','\x20has\x20invalid\x20field\x20\x22id\x22.','apiError','configName','2045DeDRuG','3620Navpme','join','Invalid\x20notification\x20config\x20response.','createTime','trim','channelType','1119JvapwS','58902CrccuL','51303XDlcWe','Item\x20','16621KfgrVU','288XHUisF','test','Invalid\x20--type:\x20','isSafeInteger','configCode','EMAIL'];a36_0x10b8=function(){return _0x181482;};return a36_0x10b8();}function normalizeNullableString(_0x4d6f33){const _0x4cf3f5=a36_0x77c98b;return typeof _0x4d6f33==='string'&&_0x4d6f33[_0x4cf3f5(0x1be)]()?_0x4d6f33[_0x4cf3f5(0x1be)]():null;}function a36_0x19fc(_0x5e25ca,_0x4f2ad4){_0x5e25ca=_0x5e25ca-0x1a8;const _0x10b803=a36_0x10b8();let _0x19fc8f=_0x10b803[_0x5e25ca];return _0x19fc8f;}function normalizeNullableId(_0x2f1978,_0x1901d){const _0x4aa033=a36_0x77c98b;if(_0x2f1978===undefined||_0x2f1978===null)return null;if(typeof _0x2f1978===_0x4aa033(0x1b2)&&Number[_0x4aa033(0x1ab)](_0x2f1978))return _0x2f1978;if(typeof _0x2f1978===_0x4aa033(0x1b4)&&/^-?\d+$/[_0x4aa033(0x1a9)](_0x2f1978[_0x4aa033(0x1be)]()))return _0x2f1978[_0x4aa033(0x1be)]();throw CliErrors[_0x4aa033(0x1b7)]('Invalid\x20notification\x20config\x20response.',_0x4aa033(0x1c3)+(_0x1901d+0x1)+_0x4aa033(0x1b6));}
1
+ const a37_0x58c1ce=a37_0x46e4;(function(_0x53abc0,_0x1c82da){const _0x2674f3=a37_0x46e4,_0x138e4a=_0x53abc0();while(!![]){try{const _0xab91a1=parseInt(_0x2674f3(0xc5))/0x1+-parseInt(_0x2674f3(0xb1))/0x2+-parseInt(_0x2674f3(0xb9))/0x3+-parseInt(_0x2674f3(0xb5))/0x4+parseInt(_0x2674f3(0xc3))/0x5*(-parseInt(_0x2674f3(0xc0))/0x6)+parseInt(_0x2674f3(0xa8))/0x7+parseInt(_0x2674f3(0xb4))/0x8*(parseInt(_0x2674f3(0xad))/0x9);if(_0xab91a1===_0x1c82da)break;else _0x138e4a['push'](_0x138e4a['shift']());}catch(_0x474a54){_0x138e4a['push'](_0x138e4a['shift']());}}}(a37_0x4b61,0x27544));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=[a37_0x58c1ce(0xb8),'FEISHU',a37_0x58c1ce(0xa9),a37_0x58c1ce(0xaa),a37_0x58c1ce(0xbc)];function a37_0x46e4(_0x186b66,_0x26bec9){_0x186b66=_0x186b66-0xa4;const _0x4b6146=a37_0x4b61();let _0x46e488=_0x4b6146[_0x186b66];return _0x46e488;}export function readNotificationChannelType(_0xeaf32b){const _0x2932f7=a37_0x58c1ce,_0x4dc8ca=_0xeaf32b['str'](_0x2932f7(0xb7))[_0x2932f7(0xac)]()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES['includes'](_0x4dc8ca))throw CliErrors[_0x2932f7(0xb3)](_0x2932f7(0xbe)+_0x4dc8ca,'Allowed\x20values:\x20'+NOTIFICATION_CHANNEL_TYPES[_0x2932f7(0xb0)](',\x20')+'.');return _0x4dc8ca;}export function projectNotificationListConfig(_0x58515c,_0x220105){const _0x5dcde7=a37_0x58c1ce,_0x423545=requireResponseObject(_0x58515c,_0x220105);return{'id':normalizeNullableId(_0x423545['id'],_0x220105),'configCode':requireResponseString(_0x423545['configCode'],_0x5dcde7(0xa6),_0x220105),'configName':requireResponseString(_0x423545[_0x5dcde7(0xbb)],_0x5dcde7(0xbb),_0x220105),'channelType':requireResponseString(_0x423545['channelType'],_0x5dcde7(0xc4),_0x220105),'description':normalizeNullableString(_0x423545['description']),'createTime':normalizeNullableString(_0x423545[_0x5dcde7(0xb6)]),'updateTime':normalizeNullableString(_0x423545['updateTime'])};}function requireResponseObject(_0x2aa255,_0x162539){const _0x1e380f=a37_0x58c1ce;if(typeof _0x2aa255!==_0x1e380f(0xa7)||_0x2aa255===null||Array[_0x1e380f(0xae)](_0x2aa255))throw CliErrors['apiError'](_0x1e380f(0xab),_0x1e380f(0xa4)+(_0x162539+0x1)+_0x1e380f(0xc1));return _0x2aa255;}function requireResponseString(_0x1779cf,_0x5b6528,_0x439354){const _0x2643e5=a37_0x58c1ce;if(typeof _0x1779cf!==_0x2643e5(0xa5)||!_0x1779cf['trim']())throw CliErrors[_0x2643e5(0xc2)](_0x2643e5(0xab),_0x2643e5(0xa4)+(_0x439354+0x1)+_0x2643e5(0xba)+_0x5b6528+'\x22.');return _0x1779cf[_0x2643e5(0xac)]();}function a37_0x4b61(){const _0x182cb0=['join','85050dGyXqg','test','validation','8NGJdng','751144WiitGa','createTime','type','EMAIL','907026eqynTK','\x20is\x20missing\x20required\x20field\x20\x22','configName','WEBHOOK','number','Invalid\x20--type:\x20','\x20has\x20invalid\x20field\x20\x22id\x22.','13128iNEKsY','\x20must\x20be\x20an\x20object.','apiError','305iJgPvi','channelType','4735RlDYDM','Item\x20','string','configCode','object','1435735HMRqwv','DINGTALK','WECOM','Invalid\x20notification\x20config\x20response.','trim','5556357DUGEgr','isArray','isSafeInteger'];a37_0x4b61=function(){return _0x182cb0;};return a37_0x4b61();}function normalizeNullableString(_0x38c32d){const _0x2c24a2=a37_0x58c1ce;return typeof _0x38c32d===_0x2c24a2(0xa5)&&_0x38c32d[_0x2c24a2(0xac)]()?_0x38c32d[_0x2c24a2(0xac)]():null;}function normalizeNullableId(_0x4a4d04,_0x58c325){const _0x34546e=a37_0x58c1ce;if(_0x4a4d04===undefined||_0x4a4d04===null)return null;if(typeof _0x4a4d04===_0x34546e(0xbd)&&Number[_0x34546e(0xaf)](_0x4a4d04))return _0x4a4d04;if(typeof _0x4a4d04==='string'&&/^-?\d+$/[_0x34546e(0xb2)](_0x4a4d04[_0x34546e(0xac)]()))return _0x4a4d04[_0x34546e(0xac)]();throw CliErrors[_0x34546e(0xc2)](_0x34546e(0xab),_0x34546e(0xa4)+(_0x58c325+0x1)+_0x34546e(0xbf));}
@@ -1 +1 @@
1
- const a37_0x590580=a37_0x293d;(function(_0x503f3b,_0xd3a96c){const _0x1f8384=a37_0x293d,_0x232336=_0x503f3b();while(!![]){try{const _0x1f8c7e=-parseInt(_0x1f8384(0x1aa))/0x1+parseInt(_0x1f8384(0x1b1))/0x2*(parseInt(_0x1f8384(0x1af))/0x3)+parseInt(_0x1f8384(0x1bd))/0x4+-parseInt(_0x1f8384(0x1cf))/0x5*(parseInt(_0x1f8384(0x1b3))/0x6)+-parseInt(_0x1f8384(0x1d6))/0x7*(-parseInt(_0x1f8384(0x1d0))/0x8)+-parseInt(_0x1f8384(0x1b0))/0x9*(parseInt(_0x1f8384(0x1bf))/0xa)+parseInt(_0x1f8384(0x1ae))/0xb;if(_0x1f8c7e===_0xd3a96c)break;else _0x232336['push'](_0x232336['shift']());}catch(_0x24e1c4){_0x232336['push'](_0x232336['shift']());}}}(a37_0x250d,0xd892d));function a37_0x293d(_0x9b6bab,_0x3b7af5){_0x9b6bab=_0x9b6bab-0x1aa;const _0x250d39=a37_0x250d();let _0x293de0=_0x250d39[_0x9b6bab];return _0x293de0;}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=[a37_0x590580(0x1c9),a37_0x590580(0x1c1),a37_0x590580(0x1cc),a37_0x590580(0x1e2)],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':a37_0x590580(0x1d7),'form':'Table','idCard':a37_0x590580(0x1be)},SCENE_FLAG={'name':a37_0x590580(0x1b8),'type':'string','required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a37_0x590580(0x1de),'type':'string','description':a37_0x590580(0x1d3)},IMAGE_URL_FLAG={'name':a37_0x590580(0x1c5),'type':a37_0x590580(0x1b4),'description':a37_0x590580(0x1d9)};function normalizeScene(_0x317afc){const _0xb2f0e0=a37_0x590580,_0xab5a05=_0x317afc['trim']()['toLowerCase']();if(_0xab5a05===_0xb2f0e0(0x1c6))return _0xb2f0e0(0x1e2);if(_0xab5a05===_0xb2f0e0(0x1c9)||_0xab5a05==='general'||_0xab5a05===_0xb2f0e0(0x1cc))return _0xab5a05;throw CliErrors[_0xb2f0e0(0x1e1)](_0xb2f0e0(0x1d2)+_0x317afc+_0xb2f0e0(0x1e3)+SUPPORTED_SCENES[_0xb2f0e0(0x1e0)](',\x20'));}function selectedInputs(_0x1d893f){const _0x3b60e1=a37_0x590580,_0x398736=_0x1d893f[_0x3b60e1(0x1b9)](_0x3b60e1(0x1de))[_0x3b60e1(0x1b2)](),_0x5d3159=_0x1d893f[_0x3b60e1(0x1b9)](_0x3b60e1(0x1c5))[_0x3b60e1(0x1b2)]();return{'imageFile':_0x398736,'imageUrl':_0x5d3159,'count':[_0x398736,_0x5d3159][_0x3b60e1(0x1c7)](Boolean)[_0x3b60e1(0x1b5)]};}function validateInputSelection(_0x2e953f){const _0x5818a3=a37_0x590580,_0x1d767b=selectedInputs(_0x2e953f);if(_0x1d767b[_0x5818a3(0x1bc)]!==0x1)throw CliErrors[_0x5818a3(0x1e1)](_0x5818a3(0x1da));return _0x1d767b;}function withScene(_0x2708ac,_0x8d51bc,_0x594411){const _0xf28e6e=a37_0x590580;return{..._0x2708ac,'scene':_0x8d51bc,..._0x594411?{'sourceFile':{'fileName':_0x594411['fileName'],'filePath':_0x594411[_0xf28e6e(0x1c3)]}}:{}};}const ocrRecognize={'service':a37_0x590580(0x1d5),'command':a37_0x590580(0x1d8),'description':a37_0x590580(0x1db),'risk':a37_0x590580(0x1dc),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x23e25e){const _0x378d34=a37_0x590580,_0x59519d=normalizeScene(_0x23e25e[_0x378d34(0x1b9)](_0x378d34(0x1b8))),_0x5ec0a0=SCENE_TO_LEGACY_TYPE[_0x59519d],_0x2b115e=validateInputSelection(_0x23e25e);if(_0x2b115e['imageUrl'])return dryRun(_0x378d34(0x1c0),_0x378d34(0x1c4))[_0x378d34(0x1ce)]({'appCode':_0x23e25e[_0x378d34(0x1c8)],'url':_0x2b115e[_0x378d34(0x1bb)],'type':_0x5ec0a0})[_0x378d34(0x1ba)](_0x378d34(0x1b7)+_0x59519d+_0x378d34(0x1ad))['build']();const _0x357d36=requireRuntimeUploadFile(_0x2b115e[_0x378d34(0x1ab)],'image-file');return dryRun(_0x378d34(0x1c0),_0x378d34(0x1d4))['body']({'steps':[{'method':'POST','url':'/client/uploadFile','body':{'appCode':_0x23e25e[_0x378d34(0x1c8)],'multipart':{'file':_0x357d36}}},{'method':_0x378d34(0x1c0),'url':_0x378d34(0x1b6),'body':{'filePath':_0x378d34(0x1cb),'downloadFlag':![]}},{'method':_0x378d34(0x1c0),'url':'/client/ocr','body':{'appCode':_0x23e25e['appCode'],'url':_0x378d34(0x1ca),'type':_0x5ec0a0}}]})['description'](_0x378d34(0x1ac)+_0x59519d+'\x20OCR')[_0x378d34(0x1dd)]();},async 'execute'(_0x51575c){const _0x2c0fa1=a37_0x590580,_0x2050aa=normalizeScene(_0x51575c[_0x2c0fa1(0x1b9)]('scene')),_0x5e30fe=SCENE_TO_LEGACY_TYPE[_0x2050aa],_0x3c5824=validateInputSelection(_0x51575c);if(_0x3c5824['imageUrl']){const _0x8e7041=await recognizeRuntimeOcr(_0x51575c['appCode'],{'url':_0x3c5824[_0x2c0fa1(0x1bb)],'type':_0x5e30fe});return{'ok':!![],'data':withScene(_0x8e7041,_0x2050aa)};}const _0x249849=requireRuntimeUploadFile(_0x3c5824[_0x2c0fa1(0x1ab)],_0x2c0fa1(0x1de)),_0x3f42f7=await uploadRuntimeFile(_0x51575c[_0x2c0fa1(0x1c8)],_0x249849[_0x2c0fa1(0x1df)]);if(!_0x3f42f7['filePath'])throw CliErrors['apiError'](_0x2c0fa1(0x1cd));const _0xaee4e7=await queryRuntimeFileUrl(_0x3f42f7[_0x2c0fa1(0x1c3)],{'download':![]});if(!_0xaee4e7['fileUrl'])throw CliErrors['apiError'](_0x2c0fa1(0x1c2));const _0x1705f2=await recognizeRuntimeOcr(_0x51575c['appCode'],{'url':_0xaee4e7[_0x2c0fa1(0x1d1)],'type':_0x5e30fe});return{'ok':!![],'data':withScene(_0x1705f2,_0x2050aa,_0x3f42f7)};}};export const ocrDefinitions=[ocrRecognize];function a37_0x250d(){const _0x123c17=['/client/ocr','image-url','idcard','filter','appCode','invoice','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','<filePath\x20returned\x20by\x20/client/uploadFile>','form','File\x20upload\x20response\x20missing\x20filePath.','body','7030KdaNtP','736XfWYYd','fileUrl','Unsupported\x20OCR\x20scene:\x20','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/client/uploadFile','ocr','9079JaVHxk','General','recognize','Publicly\x20accessible\x20image\x20or\x20file\x20URL','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','提取票证类业务材料中的文字与结构化字段;不用于通用图片理解','read','build','image-file','path','join','validation','idCard','.\x20Supported\x20scenes:\x20','794707YeTGdA','imageFile','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','\x20OCR\x20from\x20URL','23151084DTcIfe','3acMLIN','882fbmlvL','35230RlawNp','trim','1884kkpVzR','string','length','/client/queryFileUrl','Preview:\x20recognize\x20','scene','str','description','imageUrl','count','3786636jhCRoF','IdCard','108670erETxQ','POST','general','File\x20URL\x20response\x20missing\x20fileUrl.','filePath'];a37_0x250d=function(){return _0x123c17;};return a37_0x250d();}
1
+ const a38_0x29a49d=a38_0x50c0;(function(_0x4a61b5,_0x4ac2b6){const _0x2673f2=a38_0x50c0,_0xee18d4=_0x4a61b5();while(!![]){try{const _0x9670b8=-parseInt(_0x2673f2(0x104))/0x1+parseInt(_0x2673f2(0x108))/0x2*(parseInt(_0x2673f2(0x107))/0x3)+-parseInt(_0x2673f2(0x110))/0x4+-parseInt(_0x2673f2(0xf8))/0x5*(parseInt(_0x2673f2(0x122))/0x6)+parseInt(_0x2673f2(0x11e))/0x7+parseInt(_0x2673f2(0x115))/0x8+-parseInt(_0x2673f2(0x11c))/0x9;if(_0x9670b8===_0x4ac2b6)break;else _0xee18d4['push'](_0xee18d4['shift']());}catch(_0xd1b50d){_0xee18d4['push'](_0xee18d4['shift']());}}}(a38_0x5b3d,0x31fe3));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a38_0x29a49d(0x127),a38_0x29a49d(0xfc),a38_0x29a49d(0x102),a38_0x29a49d(0x126)],SCENE_TO_LEGACY_TYPE={'invoice':a38_0x29a49d(0x11a),'general':a38_0x29a49d(0xfe),'form':'Table','idCard':a38_0x29a49d(0x10e)},SCENE_FLAG={'name':a38_0x29a49d(0x116),'type':a38_0x29a49d(0x10b),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a38_0x29a49d(0x118)},IMAGE_FILE_FLAG={'name':a38_0x29a49d(0xf3),'type':a38_0x29a49d(0x10b),'description':a38_0x29a49d(0x10c)},IMAGE_URL_FLAG={'name':a38_0x29a49d(0x111),'type':a38_0x29a49d(0x10b),'description':a38_0x29a49d(0x113)};function normalizeScene(_0x42286){const _0x2e0594=a38_0x29a49d,_0x2e221d=_0x42286[_0x2e0594(0xfb)]()[_0x2e0594(0xfd)]();if(_0x2e221d===_0x2e0594(0xf5))return _0x2e0594(0x126);if(_0x2e221d===_0x2e0594(0x127)||_0x2e221d===_0x2e0594(0xfc)||_0x2e221d===_0x2e0594(0x102))return _0x2e221d;throw CliErrors[_0x2e0594(0xff)]('Unsupported\x20OCR\x20scene:\x20'+_0x42286+_0x2e0594(0xf6)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x225f64){const _0x3a8cbe=a38_0x29a49d,_0x30f782=_0x225f64[_0x3a8cbe(0x11d)]('image-file')[_0x3a8cbe(0xfb)](),_0x29aa2e=_0x225f64['str'](_0x3a8cbe(0x111))[_0x3a8cbe(0xfb)]();return{'imageFile':_0x30f782,'imageUrl':_0x29aa2e,'count':[_0x30f782,_0x29aa2e][_0x3a8cbe(0x100)](Boolean)[_0x3a8cbe(0xf4)]};}function a38_0x50c0(_0x7ec27b,_0x1f255f){_0x7ec27b=_0x7ec27b-0xf2;const _0x5b3dd1=a38_0x5b3d();let _0x50c044=_0x5b3dd1[_0x7ec27b];return _0x50c044;}function validateInputSelection(_0x14d738){const _0x35e68e=a38_0x29a49d,_0x48f11b=selectedInputs(_0x14d738);if(_0x48f11b[_0x35e68e(0x106)]!==0x1)throw CliErrors[_0x35e68e(0xff)](_0x35e68e(0x119));return _0x48f11b;}function withScene(_0x19ffa7,_0x560924,_0x5c0594){const _0x25f0ba=a38_0x29a49d;return{..._0x19ffa7,'scene':_0x560924,..._0x5c0594?{'sourceFile':{'fileName':_0x5c0594[_0x25f0ba(0x10a)],'filePath':_0x5c0594[_0x25f0ba(0xf2)]}}:{}};}const ocrRecognize={'service':a38_0x29a49d(0x120),'command':'recognize','description':'Extract\x20text\x20and\x20structured\x20fields\x20from\x20voucher-style\x20business\x20documents;\x20not\x20for\x20general\x20image\x20understanding','risk':a38_0x29a49d(0xfa),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x3473bf){const _0x29020f=a38_0x29a49d,_0x273885=normalizeScene(_0x3473bf[_0x29020f(0x11d)](_0x29020f(0x116))),_0x44b8fd=SCENE_TO_LEGACY_TYPE[_0x273885],_0x159fbe=validateInputSelection(_0x3473bf);if(_0x159fbe[_0x29020f(0xf7)])return dryRun(_0x29020f(0x101),_0x29020f(0x112))['body']({'appCode':_0x3473bf[_0x29020f(0x114)],'url':_0x159fbe[_0x29020f(0xf7)],'type':_0x44b8fd})[_0x29020f(0x109)](_0x29020f(0x103)+_0x273885+_0x29020f(0x11f))[_0x29020f(0x125)]();const _0x25e8a2=requireRuntimeUploadFile(_0x159fbe[_0x29020f(0x121)],'image-file');return dryRun(_0x29020f(0x101),_0x29020f(0x117))['body']({'steps':[{'method':'POST','url':_0x29020f(0x117),'body':{'appCode':_0x3473bf[_0x29020f(0x114)],'multipart':{'file':_0x25e8a2}}},{'method':_0x29020f(0x101),'url':_0x29020f(0x10d),'body':{'filePath':_0x29020f(0x123),'downloadFlag':![]}},{'method':_0x29020f(0x101),'url':'/client/ocr','body':{'appCode':_0x3473bf['appCode'],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x44b8fd}}]})[_0x29020f(0x109)](_0x29020f(0x11b)+_0x273885+'\x20OCR')['build']();},async 'execute'(_0x44761a){const _0x5c151d=a38_0x29a49d,_0x4171d1=normalizeScene(_0x44761a[_0x5c151d(0x11d)]('scene')),_0x569997=SCENE_TO_LEGACY_TYPE[_0x4171d1],_0x5bbf79=validateInputSelection(_0x44761a);if(_0x5bbf79[_0x5c151d(0xf7)]){const _0x26b105=await recognizeRuntimeOcr(_0x44761a[_0x5c151d(0x114)],{'url':_0x5bbf79[_0x5c151d(0xf7)],'type':_0x569997});return{'ok':!![],'data':withScene(_0x26b105,_0x4171d1)};}const _0x3ba32d=requireRuntimeUploadFile(_0x5bbf79[_0x5c151d(0x121)],_0x5c151d(0xf3)),_0x559fdf=await uploadRuntimeFile(_0x44761a[_0x5c151d(0x114)],_0x3ba32d[_0x5c151d(0x105)]);if(!_0x559fdf[_0x5c151d(0xf2)])throw CliErrors[_0x5c151d(0x124)](_0x5c151d(0xf9));const _0x19e37a=await queryRuntimeFileUrl(_0x559fdf['filePath'],{'download':![]});if(!_0x19e37a['fileUrl'])throw CliErrors[_0x5c151d(0x124)](_0x5c151d(0x10f));const _0x50a303=await recognizeRuntimeOcr(_0x44761a['appCode'],{'url':_0x19e37a['fileUrl'],'type':_0x569997});return{'ok':!![],'data':withScene(_0x50a303,_0x4171d1,_0x559fdf)};}};export const ocrDefinitions=[ocrRecognize];function a38_0x5b3d(){const _0x4dca14=['length','idcard','.\x20Supported\x20scenes:\x20','imageUrl','115tgHfED','File\x20upload\x20response\x20missing\x20filePath.','read','trim','general','toLowerCase','General','validation','filter','POST','form','Preview:\x20recognize\x20','173991bemXYZ','path','count','714606MPXoBz','2xAydlP','description','fileName','string','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','/client/queryFileUrl','IdCard','File\x20URL\x20response\x20missing\x20fileUrl.','592496uMkZHp','image-url','/client/ocr','Publicly\x20accessible\x20image\x20or\x20file\x20URL','appCode','1956880MzNZob','scene','/client/uploadFile','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','Invoice','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','309213hFznoL','str','1235360WupgxH','\x20OCR\x20from\x20URL','ocr','imageFile','25578pADCAj','<filePath\x20returned\x20by\x20/client/uploadFile>','apiError','build','idCard','invoice','filePath','image-file'];a38_0x5b3d=function(){return _0x4dca14;};return a38_0x5b3d();}
@@ -1 +1 @@
1
- const a38_0x505fce=a38_0x4269;function a38_0x4269(_0x7db238,_0x5eaade){_0x7db238=_0x7db238-0x172;const _0x3a7001=a38_0x3a70();let _0x42696c=_0x3a7001[_0x7db238];return _0x42696c;}(function(_0x18494b,_0x1ffebf){const _0x3f3435=a38_0x4269,_0x217fe9=_0x18494b();while(!![]){try{const _0x55c09a=parseInt(_0x3f3435(0x176))/0x1*(parseInt(_0x3f3435(0x185))/0x2)+parseInt(_0x3f3435(0x17b))/0x3*(parseInt(_0x3f3435(0x180))/0x4)+-parseInt(_0x3f3435(0x175))/0x5*(parseInt(_0x3f3435(0x17d))/0x6)+-parseInt(_0x3f3435(0x17a))/0x7+-parseInt(_0x3f3435(0x17f))/0x8+-parseInt(_0x3f3435(0x177))/0x9+-parseInt(_0x3f3435(0x181))/0xa*(-parseInt(_0x3f3435(0x172))/0xb);if(_0x55c09a===_0x1ffebf)break;else _0x217fe9['push'](_0x217fe9['shift']());}catch(_0x5df1d3){_0x217fe9['push'](_0x217fe9['shift']());}}}(a38_0x3a70,0x80279));function a38_0x3a70(){const _0x2d24b8=['role','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','46dkxGPN','appCode','22vNpdGb','permit','read','4941070bnHRLw','10276QQBNuZ','116919CtBjPH','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','runtime','5569095mDJjIp','12534zNZTtT','dataset-get','6JRHKrD','string','5723976KAfWoY','812STNqaT','9763630OOyUsU','str'];a38_0x3a70=function(){return _0x2d24b8;};return a38_0x3a70();}import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';export const permitDatasetGet={'service':a38_0x505fce(0x173),'command':a38_0x505fce(0x17c),'description':a38_0x505fce(0x184),'risk':a38_0x505fce(0x174),'flags':[{'name':a38_0x505fce(0x183),'type':a38_0x505fce(0x17e),'description':a38_0x505fce(0x178)}],async 'execute'(_0x9a557b){const _0x3c9cae=a38_0x505fce,_0x2ffd08=_0x9a557b[_0x3c9cae(0x182)]('role')['trim']();if(!_0x2ffd08)return{'ok':!![],'data':{'scope':_0x3c9cae(0x179),'datasets':await listRuntimeDatasetRolePermits(_0x9a557b[_0x3c9cae(0x186)])}};const _0x387415=await resolveRuntimeRoleRef(_0x9a557b[_0x3c9cae(0x186)],_0x2ffd08);return{'ok':!![],'data':{'scope':_0x3c9cae(0x179),'role':{'id':_0x387415['id'],'roleName':_0x387415['roleName'],'roleType':_0x387415['roleType']},'datasets':await listRuntimeDatasetPermits(_0x9a557b[_0x3c9cae(0x186)],_0x387415['id'])}};}};
1
+ const a39_0x592f37=a39_0x1921;function a39_0x1921(_0x4b435d,_0x24e87a){_0x4b435d=_0x4b435d-0x1f2;const _0x25d6ca=a39_0x25d6();let _0x192157=_0x25d6ca[_0x4b435d];return _0x192157;}(function(_0x3addd9,_0x21a2a6){const _0x47ecaa=a39_0x1921,_0x3cee08=_0x3addd9();while(!![]){try{const _0x351c22=-parseInt(_0x47ecaa(0x1f4))/0x1*(-parseInt(_0x47ecaa(0x1f3))/0x2)+parseInt(_0x47ecaa(0x1fe))/0x3+-parseInt(_0x47ecaa(0x204))/0x4+-parseInt(_0x47ecaa(0x1f9))/0x5*(parseInt(_0x47ecaa(0x202))/0x6)+-parseInt(_0x47ecaa(0x201))/0x7*(-parseInt(_0x47ecaa(0x1f8))/0x8)+-parseInt(_0x47ecaa(0x203))/0x9+parseInt(_0x47ecaa(0x1f6))/0xa;if(_0x351c22===_0x21a2a6)break;else _0x3cee08['push'](_0x3cee08['shift']());}catch(_0x27acda){_0x3cee08['push'](_0x3cee08['shift']());}}}(a39_0x25d6,0xb6fee));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x25d6(){const _0xe98238=['Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','dataset-get','role','roleName','2419302NkzhmP','string','runtime','346703eMexQP','372FyCLYq','9609543lBGoSV','1453092oSDZik','appCode','6fyhCny','1587ZrgcEC','permit','19222630PJGoxo','roleType','48xoyIYp','68555qamPYw'];a39_0x25d6=function(){return _0xe98238;};return a39_0x25d6();}export const permitDatasetGet={'service':a39_0x592f37(0x1f5),'command':a39_0x592f37(0x1fb),'description':a39_0x592f37(0x1fa),'risk':'read','flags':[{'name':a39_0x592f37(0x1fc),'type':a39_0x592f37(0x1ff),'description':'Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name'}],async 'execute'(_0x28fae7){const _0x2fb127=a39_0x592f37,_0x168736=_0x28fae7['str'](_0x2fb127(0x1fc))['trim']();if(!_0x168736)return{'ok':!![],'data':{'scope':_0x2fb127(0x200),'datasets':await listRuntimeDatasetRolePermits(_0x28fae7['appCode'])}};const _0x244ba1=await resolveRuntimeRoleRef(_0x28fae7[_0x2fb127(0x1f2)],_0x168736);return{'ok':!![],'data':{'scope':_0x2fb127(0x200),'role':{'id':_0x244ba1['id'],'roleName':_0x244ba1[_0x2fb127(0x1fd)],'roleType':_0x244ba1[_0x2fb127(0x1f7)]},'datasets':await listRuntimeDatasetPermits(_0x28fae7[_0x2fb127(0x1f2)],_0x244ba1['id'])}};}};