@lovrabet/lovrabet-cli 2.1.22 → 2.1.23-beta.2

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 (140) 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.d.ts +4 -8
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.d.ts +1 -16
  10. package/lib/commands/app/shared.js +1 -1
  11. package/lib/commands/app-config/get.js +1 -1
  12. package/lib/commands/app-config/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.d.ts +2 -2
  16. package/lib/commands/auth/index.js +1 -1
  17. package/lib/commands/auth/prompt.js +1 -1
  18. package/lib/commands/bff/detail.js +1 -1
  19. package/lib/commands/bff/exec.js +1 -1
  20. package/lib/commands/bff/index.js +1 -1
  21. package/lib/commands/cli-skill/index.js +1 -1
  22. package/lib/commands/common/config-policy.d.ts +4 -8
  23. package/lib/commands/common/config-policy.js +1 -1
  24. package/lib/commands/common/constraints.js +1 -1
  25. package/lib/commands/common/flags.js +1 -1
  26. package/lib/commands/common/local-file.js +1 -1
  27. package/lib/commands/config/definitions.js +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.d.ts +6 -24
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/ocr/index.js +1 -1
  41. package/lib/commands/personal-bff/index.js +1 -1
  42. package/lib/commands/registry.d.ts +7 -0
  43. package/lib/commands/registry.js +1 -1
  44. package/lib/commands/schedule/index.js +1 -1
  45. package/lib/commands/schema.js +1 -1
  46. package/lib/commands/service/dynamic.js +1 -1
  47. package/lib/commands/service/function-name-adapter.js +1 -1
  48. package/lib/commands/service/index.js +1 -1
  49. package/lib/commands/service/registry.js +1 -1
  50. package/lib/commands/skill/commands/create.js +1 -1
  51. package/lib/commands/skill/commands/diagram.js +1 -1
  52. package/lib/commands/skill/commands/install.js +1 -1
  53. package/lib/commands/skill/commands/list.js +1 -1
  54. package/lib/commands/skill/commands/push.js +1 -1
  55. package/lib/commands/skill/commands/validate.js +1 -1
  56. package/lib/commands/skill/diagram.js +1 -1
  57. package/lib/commands/skill/flags.js +1 -1
  58. package/lib/commands/skill/index.js +1 -1
  59. package/lib/commands/skill/manifest-helpers.js +1 -1
  60. package/lib/commands/skill/push-execute.js +1 -1
  61. package/lib/commands/skill/push-flow-helpers.js +1 -1
  62. package/lib/commands/skill/push-retarget.js +1 -1
  63. package/lib/commands/skill/scopes.js +1 -1
  64. package/lib/commands/skill/summary.js +1 -1
  65. package/lib/commands/skill/templates.js +1 -1
  66. package/lib/commands/skill/validate.js +1 -1
  67. package/lib/commands/sql/detail.js +1 -1
  68. package/lib/commands/sql/exec.js +1 -1
  69. package/lib/commands/sql/index.js +1 -1
  70. package/lib/commands/update.js +1 -1
  71. package/lib/commands/workspace/index.js +1 -1
  72. package/lib/config/schema.js +1 -1
  73. package/lib/constant/app.js +1 -1
  74. package/lib/constant/auth-mode.js +1 -1
  75. package/lib/constant/cli.js +1 -1
  76. package/lib/constant/defaults.js +1 -1
  77. package/lib/constant/distribution.js +1 -1
  78. package/lib/constant/domain.js +1 -1
  79. package/lib/constant/env.js +1 -1
  80. package/lib/constant/output.js +1 -1
  81. package/lib/constant/product.js +1 -1
  82. package/lib/constant/risk.js +1 -1
  83. package/lib/constant/url.js +1 -1
  84. package/lib/context.d.ts +5 -5
  85. package/lib/context.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/db-resolver.js +1 -1
  88. package/lib/core/sdk-client.js +1 -1
  89. package/lib/errors.js +1 -1
  90. package/lib/framework/build-all-flags.js +1 -1
  91. package/lib/framework/dryrun.js +1 -1
  92. package/lib/framework/flags.js +1 -1
  93. package/lib/framework/help.js +1 -1
  94. package/lib/framework/index.js +1 -1
  95. package/lib/framework/output.js +1 -1
  96. package/lib/framework/preparse.js +1 -1
  97. package/lib/framework/rate-limit.js +1 -1
  98. package/lib/framework/raw-flags.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner-confirmation.js +1 -1
  101. package/lib/framework/runner-error.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/framework/schema-export.js +1 -1
  104. package/lib/framework/service-order.js +1 -1
  105. package/lib/framework/types.js +1 -1
  106. package/lib/generated/build-info.d.ts +4 -4
  107. package/lib/generated/build-info.js +1 -1
  108. package/lib/help.js +1 -1
  109. package/lib/runtime/confirmation.js +1 -1
  110. package/lib/runtime/event.js +1 -1
  111. package/lib/runtime/index.d.ts +1 -1
  112. package/lib/runtime/index.js +1 -1
  113. package/lib/runtime/queue.d.ts +2 -1
  114. package/lib/runtime/queue.js +1 -1
  115. package/lib/runtime/resolve.js +1 -1
  116. package/lib/skills/npx-skills-add.js +1 -1
  117. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  118. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  119. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  120. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  121. package/lib/skills/runtime-skill-sync/links.js +1 -1
  122. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  123. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  124. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  125. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  126. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  127. package/lib/skills/runtime-skill-sync/push.js +1 -1
  128. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  129. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  130. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  131. package/lib/skills/runtime-skill-sync.js +1 -1
  132. package/lib/utils/apply-jq-filter.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/lossless-json.js +1 -1
  135. package/lib/utils/params.js +1 -1
  136. package/lib/utils/platform.js +1 -1
  137. package/lib/utils/update-notice.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/write-cli-side-channel.js +1 -1
  140. package/package.json +1 -1
@@ -1 +1 @@
1
- function a27_0x2b13(_0xb4b5cb,_0x11e945){_0xb4b5cb=_0xb4b5cb-0x1ac;const _0x2c4e6f=a27_0x2c4e();let _0x2b1384=_0x2c4e6f[_0xb4b5cb];return _0x2b1384;}const a27_0x390ab7=a27_0x2b13;(function(_0xa90a99,_0x40ee9e){const _0x312673=a27_0x2b13,_0x30f134=_0xa90a99();while(!![]){try{const _0x1188dc=-parseInt(_0x312673(0x1bc))/0x1+-parseInt(_0x312673(0x1ad))/0x2*(-parseInt(_0x312673(0x1bb))/0x3)+-parseInt(_0x312673(0x1bf))/0x4*(parseInt(_0x312673(0x1b3))/0x5)+parseInt(_0x312673(0x1c3))/0x6+parseInt(_0x312673(0x1ac))/0x7+parseInt(_0x312673(0x1c6))/0x8+-parseInt(_0x312673(0x1c1))/0x9*(parseInt(_0x312673(0x1be))/0xa);if(_0x1188dc===_0x40ee9e)break;else _0x30f134['push'](_0x30f134['shift']());}catch(_0x58d54b){_0x30f134['push'](_0x30f134['shift']());}}}(a27_0x2c4e,0xa6541));function a27_0x2c4e(){const _0xc84b80=['130uxoucH','5016112bTQzJX','code','782604worDOI','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1331280FVKUuN','dataset','source','8265504wttNWJ','string','6449541fytURK','8bCIOZR','map','name','pkField','str','list','5WFKeAS','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','allFields','tableName','read','datasetKey','appCode','824685gGzufA','210274rJVpSO','length'];a27_0x2c4e=function(){return _0xc84b80;};return a27_0x2c4e();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x390ab7(0x1c4),'command':a27_0x390ab7(0x1b2),'description':a27_0x390ab7(0x1b4),'risk':a27_0x390ab7(0x1b8),'flags':[{'name':a27_0x390ab7(0x1af),'type':a27_0x390ab7(0x1c7),'description':a27_0x390ab7(0x1b5)},{...CODE_FLAG,'required':![],'description':a27_0x390ab7(0x1c2)}],async 'execute'(_0x30d21f){const _0x3e3996=a27_0x390ab7,_0x360f1d=_0x30d21f['str'](_0x3e3996(0x1af)),_0x459a3b=_0x30d21f[_0x3e3996(0x1b1)](_0x3e3996(0x1c0)),_0x39726f=await listDatasets(_0x30d21f[_0x3e3996(0x1ba)],{..._0x360f1d&&{'name':_0x360f1d},..._0x459a3b&&{'code':_0x459a3b}});return{'ok':!![],'data':{'total':_0x39726f[_0x3e3996(0x1bd)],'datasets':_0x39726f[_0x3e3996(0x1ae)](_0x11a0cb=>{const _0x3bdc22=_0x3e3996,_0x65d8d1=_0x11a0cb['dbtableConfig']??{};return{'id':_0x11a0cb['id'],'code':_0x11a0cb['code'],'name':_0x11a0cb[_0x3bdc22(0x1af)],'source':_0x11a0cb[_0x3bdc22(0x1c5)],'description':_0x11a0cb['description'],'table':_0x65d8d1[_0x3bdc22(0x1b7)],'datasetKey':_0x65d8d1[_0x3bdc22(0x1b9)],'pk':_0x65d8d1[_0x3bdc22(0x1b0)],'fields':_0x65d8d1[_0x3bdc22(0x1b6)]?_0x65d8d1['allFields']['split'](',')[_0x3bdc22(0x1ae)](_0x37617f=>_0x37617f['trim']()):[]};})}};}};
1
+ const a27_0x3659f5=a27_0x3b56;(function(_0x37da82,_0x5b9ee2){const _0x12c3d3=a27_0x3b56,_0x4d1c67=_0x37da82();while(!![]){try{const _0x4bb0f1=parseInt(_0x12c3d3(0x11a))/0x1+parseInt(_0x12c3d3(0x10d))/0x2*(-parseInt(_0x12c3d3(0x10c))/0x3)+parseInt(_0x12c3d3(0x117))/0x4+parseInt(_0x12c3d3(0x114))/0x5+parseInt(_0x12c3d3(0x110))/0x6+-parseInt(_0x12c3d3(0x113))/0x7+-parseInt(_0x12c3d3(0x118))/0x8;if(_0x4bb0f1===_0x5b9ee2)break;else _0x4d1c67['push'](_0x4d1c67['shift']());}catch(_0x3d221a){_0x4d1c67['push'](_0x4d1c67['shift']());}}}(a27_0x1a0c,0x8707b));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x3659f5(0x112),'command':'list','description':a27_0x3659f5(0x10e),'risk':'read','flags':[{'name':'name','type':'string','description':a27_0x3659f5(0x115)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x55dff5){const _0x810fa=a27_0x3659f5,_0x8de60f=_0x55dff5[_0x810fa(0x11f)](_0x810fa(0x11d)),_0x4f5f04=_0x55dff5[_0x810fa(0x11f)]('code'),_0x276baa=await listDatasets(_0x55dff5['appCode'],{..._0x8de60f&&{'name':_0x8de60f},..._0x4f5f04&&{'code':_0x4f5f04}});return{'ok':!![],'data':{'total':_0x276baa[_0x810fa(0x11b)],'datasets':_0x276baa['map'](_0xefa8d8=>{const _0x2c14ad=_0x810fa,_0x554d51=_0xefa8d8[_0x2c14ad(0x121)]??{};return{'id':_0xefa8d8['id'],'code':_0xefa8d8[_0x2c14ad(0x120)],'name':_0xefa8d8[_0x2c14ad(0x11d)],'source':_0xefa8d8[_0x2c14ad(0x10f)],'description':_0xefa8d8[_0x2c14ad(0x122)],'table':_0x554d51['tableName'],'datasetKey':_0x554d51['datasetKey'],'pk':_0x554d51[_0x2c14ad(0x119)],'fields':_0x554d51[_0x2c14ad(0x111)]?_0x554d51[_0x2c14ad(0x111)][_0x2c14ad(0x11c)](',')[_0x2c14ad(0x11e)](_0x48c113=>_0x48c113[_0x2c14ad(0x116)]()):[]};})}};}};function a27_0x3b56(_0x138652,_0x5ceadd){_0x138652=_0x138652-0x10c;const _0x1a0c0c=a27_0x1a0c();let _0x3b5643=_0x1a0c0c[_0x138652];return _0x3b5643;}function a27_0x1a0c(){const _0x277de6=['map','str','code','dbtableConfig','description','33mYKmPQ','12134WsgkEJ','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','source','255540KLpRcV','allFields','dataset','4316319YMvSsg','3015325PSNFNQ','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','trim','2372748RXFBxA','2496264eEdycH','pkField','309628yOLCWg','length','split','name'];a27_0x1a0c=function(){return _0x277de6;};return a27_0x1a0c();}
@@ -1 +1 @@
1
- const a28_0x6f0743=a28_0x4b10;(function(_0x20a57b,_0x3f576b){const _0x124ef1=a28_0x4b10,_0x195201=_0x20a57b();while(!![]){try{const _0x40e0f9=parseInt(_0x124ef1(0x10f))/0x1*(-parseInt(_0x124ef1(0x115))/0x2)+-parseInt(_0x124ef1(0x108))/0x3+-parseInt(_0x124ef1(0x10d))/0x4*(-parseInt(_0x124ef1(0x10c))/0x5)+-parseInt(_0x124ef1(0x103))/0x6*(parseInt(_0x124ef1(0x102))/0x7)+parseInt(_0x124ef1(0x112))/0x8*(-parseInt(_0x124ef1(0x111))/0x9)+-parseInt(_0x124ef1(0x109))/0xa*(-parseInt(_0x124ef1(0x107))/0xb)+parseInt(_0x124ef1(0x104))/0xc*(parseInt(_0x124ef1(0x110))/0xd);if(_0x40e0f9===_0x3f576b)break;else _0x195201['push'](_0x195201['shift']());}catch(_0xe548e){_0x195201['push'](_0x195201['shift']());}}}(a28_0xe106,0x65f30));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0xe106(){const _0x36c9ac=['7lPMwph','1590702SddSot','8421288EpNfQI','appCode','read','33SCEdRd','2313267hHBifB','1753770xDpjhK','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','56720iCxtpf','152sLMcaY','str','8175atEfEh','26ABhvHz','55116KoSYgb','512fJecWR','sdk-doc','code','126izQHJZ','string'];a28_0xe106=function(){return _0x36c9ac;};return a28_0xe106();}const DEFAULT_MARKDOWN='#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档';function a28_0x4b10(_0x512d68,_0x9d178c){_0x512d68=_0x512d68-0x101;const _0xe10673=a28_0xe106();let _0x4b1092=_0xe10673[_0x512d68];return _0x4b1092;}export function formatDatasetSdkMarkdown(_0x53fb50){const _0x4c0e1b=a28_0x4b10,_0x3544e5=typeof _0x53fb50===_0x4c0e1b(0x101)?_0x53fb50['trim']():'';return _0x3544e5||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a28_0x6f0743(0x113),'description':a28_0x6f0743(0x10b),'risk':a28_0x6f0743(0x106),'flags':[{...CODE_FLAG,'description':a28_0x6f0743(0x10a)}],async 'execute'(_0x179728){const _0x10cd74=a28_0x6f0743,_0x59e55e=_0x179728[_0x10cd74(0x10e)](_0x10cd74(0x114)),_0x35789f=await getDatasetSdkUsageDoc(_0x59e55e,_0x179728[_0x10cd74(0x105)]);return{'ok':!![],'data':{'code':_0x59e55e,'appCode':_0x179728['appCode'],'markdown':formatDatasetSdkMarkdown(_0x35789f)}};}};
1
+ const a28_0xb9c266=a28_0x1a0f;(function(_0xf05479,_0x2316a4){const _0x213507=a28_0x1a0f,_0xfb6156=_0xf05479();while(!![]){try{const _0x15a3bd=parseInt(_0x213507(0xad))/0x1*(parseInt(_0x213507(0xbb))/0x2)+-parseInt(_0x213507(0xbc))/0x3+-parseInt(_0x213507(0xb0))/0x4+-parseInt(_0x213507(0xac))/0x5*(parseInt(_0x213507(0xbe))/0x6)+-parseInt(_0x213507(0xb5))/0x7*(parseInt(_0x213507(0xb3))/0x8)+parseInt(_0x213507(0xbd))/0x9*(parseInt(_0x213507(0xb6))/0xa)+parseInt(_0x213507(0xb9))/0xb*(parseInt(_0x213507(0xc0))/0xc);if(_0x15a3bd===_0x2316a4)break;else _0xfb6156['push'](_0xfb6156['shift']());}catch(_0x3a8085){_0xfb6156['push'](_0xfb6156['shift']());}}}(a28_0x1591,0x5e995));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x1591(){const _0x5dc7e2=['408DwbWLU','sdk-doc','4555164CMlxWZ','code','52265dNSAJd','1658dJPJBm','str','trim','1870080ZZlVdY','read','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','16vYozAa','dataset','16716FZJUQK','207670RWiYXC','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','appCode','33GzzuOr','string','808WBDPQW','776439nZtCuw','9VhbCmL'];a28_0x1591=function(){return _0x5dc7e2;};return a28_0x1591();}const DEFAULT_MARKDOWN=a28_0xb9c266(0xb7);function a28_0x1a0f(_0x3d2918,_0x24aacc){_0x3d2918=_0x3d2918-0xab;const _0x15911b=a28_0x1591();let _0x1a0f3d=_0x15911b[_0x3d2918];return _0x1a0f3d;}export function formatDatasetSdkMarkdown(_0x30566b){const _0x34a57f=a28_0xb9c266,_0x1672a9=typeof _0x30566b===_0x34a57f(0xba)?_0x30566b[_0x34a57f(0xaf)]():'';return _0x1672a9||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0xb9c266(0xb4),'command':a28_0xb9c266(0xbf),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0xb9c266(0xb1),'flags':[{...CODE_FLAG,'description':a28_0xb9c266(0xb2)}],async 'execute'(_0xc68445){const _0x386265=a28_0xb9c266,_0x533c47=_0xc68445[_0x386265(0xae)](_0x386265(0xab)),_0x529c68=await getDatasetSdkUsageDoc(_0x533c47,_0xc68445[_0x386265(0xb8)]);return{'ok':!![],'data':{'code':_0x533c47,'appCode':_0xc68445['appCode'],'markdown':formatDatasetSdkMarkdown(_0x529c68)}};}};
@@ -1 +1 @@
1
- function a29_0x41e2(){const _0x492e4f=['422903djXtFk','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','green','Global','274xqxYZH','gray','✓\x20Loaded','locale','status','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','✗\x20Invalid','\x20\x20Auth','yellow','platform','\x20\x20Session\x20check:\x20\x20\x20','missing','repeat','bold','12mgyqSu','⚠\x20Empty','3966498hahnVc','\x20\x20auth\x20(effective):\x20','\x20\x20Service\x20Tree','pageSize','ClientAk','46755rhpTUF','Diagnose\x20CLI\x20configuration\x20and\x20environment','accessKey','env','serviceCount','defaultApp','30sXzMnI','commandCount','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(not\x20found)','6618xJFylX','✓\x20Valid\x20JSON','704DpmIZE','currentApp','doctor','read','3628285aAlTcn','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','format','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','836896IVtVJM','log','\x20\x20Merged\x20Config','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14OFeSbY','\x20Imported\x20from:\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Config\x20JSON','(none)','\x20commands)','\x20(legacy/compat\x20only)','1360403jIvMYA','services','padEnd','path','\x20(accessKey)','252mCSZoA','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','red','registryPath','\x20doctor','(default)','(not\x20set)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','version','verbose','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'];a29_0x41e2=function(){return _0x492e4f;};return a29_0x41e2();}const a29_0x2d79b8=a29_0x231c;(function(_0x4bd502,_0x27b6ab){const _0x596cff=a29_0x231c,_0x22f56c=_0x4bd502();while(!![]){try{const _0x462978=parseInt(_0x596cff(0x1b5))/0x1*(-parseInt(_0x596cff(0x182))/0x2)+parseInt(_0x596cff(0x1c8))/0x3*(parseInt(_0x596cff(0x18e))/0x4)+-parseInt(_0x596cff(0x188))/0x5+-parseInt(_0x596cff(0x1ca))/0x6*(-parseInt(_0x596cff(0x194))/0x7)+-parseInt(_0x596cff(0x184))/0x8*(-parseInt(_0x596cff(0x1cf))/0x9)+parseInt(_0x596cff(0x1d5))/0xa*(parseInt(_0x596cff(0x19b))/0xb)+parseInt(_0x596cff(0x1a0))/0xc*(-parseInt(_0x596cff(0x1af))/0xd);if(_0x462978===_0x27b6ab)break;else _0x22f56c['push'](_0x22f56c['shift']());}catch(_0x52acd0){_0x22f56c['push'](_0x22f56c['shift']());}}}(a29_0x41e2,0xa4017));import a29_0x462eeb from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';function a29_0x231c(_0xd3c3f3,_0x307946){_0xd3c3f3=_0xd3c3f3-0x17e;const _0x41e26c=a29_0x41e2();let _0x231c51=_0x41e26c[_0xd3c3f3];return _0x231c51;}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x13f217){const _0x3e82c2=a29_0x231c,_0xd8bda8=getCliVersion(),_0x515526=buildConfigFromFlags({});await initGlobalEnvironment(_0x515526),console[_0x3e82c2(0x18f)](),console[_0x3e82c2(0x18f)](a29_0x462eeb['bold'](CLI_BIN_NAME+_0x3e82c2(0x1a5))),console['log'](a29_0x462eeb[_0x3e82c2(0x1b6)]('─'['repeat'](0x32))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x180)+_0xd8bda8),console['log'](_0x3e82c2(0x1aa)+process[_0x3e82c2(0x1ac)]),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1b0)+process[_0x3e82c2(0x1c3)]+'\x20'+process[_0x3e82c2(0x1a2)]),console[_0x3e82c2(0x18f)](),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1c7)]('\x20\x20Config\x20Files')),console[_0x3e82c2(0x18f)](a29_0x462eeb['gray'](_0x3e82c2(0x1b2)[_0x3e82c2(0x1c6)](0x1e)));const _0x10494f=getGlobalConfigPath(),_0x23def1=getProjectConfigPath();console[_0x3e82c2(0x18f)](_0x3e82c2(0x1bb)+(_0x10494f||a29_0x462eeb['gray'](_0x3e82c2(0x181)))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x18c)+(_0x23def1||a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x181)))),console[_0x3e82c2(0x18f)](),console['log'](a29_0x462eeb['bold'](_0x3e82c2(0x197))),console[_0x3e82c2(0x18f)](a29_0x462eeb['gray'](_0x3e82c2(0x1b2)[_0x3e82c2(0x1c6)](0x1e)));const _0x1f68ad=(_0x5a1ed1,_0x449108)=>{const _0x383c11=_0x3e82c2;if(!_0x449108){console[_0x383c11(0x18f)]('\x20\x20'+_0x5a1ed1[_0x383c11(0x19d)](0x11)+'\x20'+a29_0x462eeb[_0x383c11(0x1b6)](_0x383c11(0x1ab)));return;}const _0x5b1cc8=inspectCliConfigJsonFile(_0x449108);if(_0x5b1cc8[_0x383c11(0x1b9)]==='ok')console[_0x383c11(0x18f)]('\x20\x20'+_0x5a1ed1[_0x383c11(0x19d)](0x11)+'\x20'+a29_0x462eeb[_0x383c11(0x1b3)](_0x383c11(0x183)));else{if(_0x5b1cc8['status']===_0x383c11(0x192))console[_0x383c11(0x18f)]('\x20\x20'+_0x5a1ed1['padEnd'](0x11)+'\x20'+a29_0x462eeb[_0x383c11(0x1c2)](_0x383c11(0x196)));else _0x5b1cc8['status']===_0x383c11(0x1c5)?console[_0x383c11(0x18f)]('\x20\x20'+_0x5a1ed1[_0x383c11(0x19d)](0x11)+'\x20'+a29_0x462eeb[_0x383c11(0x1b6)]('(missing)')):(console[_0x383c11(0x18f)]('\x20\x20'+_0x5a1ed1['padEnd'](0x11)+'\x20'+a29_0x462eeb[_0x383c11(0x1a3)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x383c11(0x19d)](0x11)+'\x20'+a29_0x462eeb['red'](_0x5b1cc8['message'])));}};_0x1f68ad(_0x3e82c2(0x1b4),_0x10494f),_0x1f68ad('Project',_0x23def1),console[_0x3e82c2(0x18f)](),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1c7)](_0x3e82c2(0x190))),console[_0x3e82c2(0x18f)](a29_0x462eeb['gray']('\x20\x20─'[_0x3e82c2(0x1c6)](0x1e))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1a1)+(_0x515526[_0x3e82c2(0x18a)]||a29_0x462eeb[_0x3e82c2(0x1a3)](_0x3e82c2(0x1a7)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x515526[_0x3e82c2(0x1d2)]);const _0x4e12bc=isLegacyCompatConfigKey(_0x3e82c2(0x1b8))?a29_0x462eeb[_0x3e82c2(0x1b6)](_0x515526['locale']+_0x3e82c2(0x19a)):_0x515526[_0x3e82c2(0x1b8)];console[_0x3e82c2(0x18f)](_0x3e82c2(0x1b1)+_0x4e12bc),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1a8)+(_0x515526[_0x3e82c2(0x1d4)]||a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x198)))),console['log'](_0x3e82c2(0x1ba)+(_0x515526[_0x3e82c2(0x185)]||a29_0x462eeb['gray'](_0x3e82c2(0x198)))),console[_0x3e82c2(0x18f)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x515526['format']||a29_0x462eeb['gray'](_0x3e82c2(0x1be)+DEFAULT_CONFIG_VALUES[_0x3e82c2(0x18b)]+')'))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x189)+(_0x515526[_0x3e82c2(0x1cd)]??a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x1a6)))),console[_0x3e82c2(0x18f)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x515526['riskLevel']),console[_0x3e82c2(0x18f)](_0x3e82c2(0x18d)+_0x515526[_0x3e82c2(0x1ad)]),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1cb)+AUTH_MODE['ClientAk']),console[_0x3e82c2(0x18f)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x515526[_0x3e82c2(0x1d1)]?a29_0x462eeb[_0x3e82c2(0x1b3)]('(set,\x20length='+_0x515526[_0x3e82c2(0x1d1)]['length']+')'):a29_0x462eeb[_0x3e82c2(0x1b6)]('(none)'))),console[_0x3e82c2(0x18f)](),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1c7)]('\x20\x20API\x20Endpoints')),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x1b2)[_0x3e82c2(0x1c6)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x3e82c2(0x1bc)+getUserDomain()),console['log'](_0x3e82c2(0x1a9)+getRuntimeDomain()),console[_0x3e82c2(0x18f)](),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1c7)](_0x3e82c2(0x1cc))),console[_0x3e82c2(0x18f)](a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x1b2)[_0x3e82c2(0x1c6)](0x1e)));const _0x32d3c9=inspectServiceRegistry();console[_0x3e82c2(0x18f)](_0x3e82c2(0x1ae)+_0x32d3c9[_0x3e82c2(0x1a4)]),console[_0x3e82c2(0x18f)](_0x3e82c2(0x193)+formatServiceRegistryStatus(_0x32d3c9)),console[_0x3e82c2(0x18f)](_0x3e82c2(0x191)+_0x32d3c9[_0x3e82c2(0x1d3)]),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1bd)+_0x32d3c9[_0x3e82c2(0x17e)]);for(const _0x502ac5 of _0x32d3c9[_0x3e82c2(0x19c)]){console['log']('\x20\x20'+(_0x502ac5['serviceCode']+':')[_0x3e82c2(0x19d)](0x11)+'\x20'+(_0x502ac5['name']||a29_0x462eeb['gray']('(unnamed)'))+'\x20('+_0x502ac5['commandCount']+_0x3e82c2(0x199)),console[_0x3e82c2(0x18f)]('\x20\x20'+''[_0x3e82c2(0x19d)](0x11)+_0x3e82c2(0x195)+_0x502ac5['source'][_0x3e82c2(0x19e)]);}return console[_0x3e82c2(0x18f)](),console['log'](a29_0x462eeb[_0x3e82c2(0x1c7)](_0x3e82c2(0x1c1))),console['log'](a29_0x462eeb['gray'](_0x3e82c2(0x1b2)[_0x3e82c2(0x1c6)](0x1e))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x17f)+a29_0x462eeb[_0x3e82c2(0x1b3)](AUTH_MODE[_0x3e82c2(0x1ce)]+_0x3e82c2(0x19f))),console[_0x3e82c2(0x18f)](_0x3e82c2(0x1c4)+a29_0x462eeb[_0x3e82c2(0x1b6)](_0x3e82c2(0x1bf))),console[_0x3e82c2(0x18f)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x167156){const _0x290950=a29_0x231c;if(_0x167156[_0x290950(0x1b9)]==='ok')return a29_0x462eeb[_0x290950(0x1b3)](_0x290950(0x1b7));if(_0x167156[_0x290950(0x1b9)]===_0x290950(0x1c5))return a29_0x462eeb[_0x290950(0x1b6)]('(not\x20found)');if(_0x167156[_0x290950(0x1b9)]===_0x290950(0x192))return a29_0x462eeb[_0x290950(0x1c2)](_0x290950(0x1c9));return a29_0x462eeb[_0x290950(0x1a3)](_0x290950(0x1c0)+(_0x167156['message']?':\x20'+_0x167156['message']:''));}export const doctorDefinition={'service':a29_0x2d79b8(0x186),'command':'check','description':a29_0x2d79b8(0x1d0),'risk':a29_0x2d79b8(0x187),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a29_0x541f(_0x22686e,_0x5f2099){_0x22686e=_0x22686e-0x78;const _0x1e2b50=a29_0x1e2b();let _0x541f24=_0x1e2b50[_0x22686e];return _0x541f24;}const a29_0x9e2646=a29_0x541f;(function(_0x10a0a9,_0x46db5d){const _0x4c35de=a29_0x541f,_0xae02bb=_0x10a0a9();while(!![]){try{const _0x375120=-parseInt(_0x4c35de(0x7d))/0x1+-parseInt(_0x4c35de(0x93))/0x2*(parseInt(_0x4c35de(0x97))/0x3)+-parseInt(_0x4c35de(0xa3))/0x4+-parseInt(_0x4c35de(0x8f))/0x5*(parseInt(_0x4c35de(0x83))/0x6)+-parseInt(_0x4c35de(0x89))/0x7+-parseInt(_0x4c35de(0xc7))/0x8*(-parseInt(_0x4c35de(0x78))/0x9)+-parseInt(_0x4c35de(0xc8))/0xa*(-parseInt(_0x4c35de(0xa8))/0xb);if(_0x375120===_0x46db5d)break;else _0xae02bb['push'](_0xae02bb['shift']());}catch(_0x4774df){_0xae02bb['push'](_0xae02bb['shift']());}}}(a29_0x1e2b,0x66043));import a29_0x5f25d8 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,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';async function execute(_0xdea1cf){const _0x143588=a29_0x541f,_0x642e2b=getCliVersion(),_0x4800d5=buildConfigFromFlags({});await initGlobalEnvironment(_0x4800d5),console[_0x143588(0x9e)](),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0xb2)](CLI_BIN_NAME+_0x143588(0xa4))),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0x94)]('─'['repeat'](0x32))),console['log'](_0x143588(0xa7)+_0x642e2b),console[_0x143588(0x9e)](_0x143588(0x9a)+process[_0x143588(0x85)]),console['log'](_0x143588(0x88)+process[_0x143588(0xad)]+'\x20'+process['arch']),console[_0x143588(0x9e)](),console[_0x143588(0x9e)](a29_0x5f25d8['bold'](_0x143588(0xb4))),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x92)[_0x143588(0xb0)](0x1e)));const _0x47652c=getGlobalConfigPath(),_0x2ca4f4=getProjectConfigPath();console[_0x143588(0x9e)](_0x143588(0xb8)+(_0x47652c||a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x87)))),console['log'](_0x143588(0x84)+(_0x2ca4f4||a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x87)))),console[_0x143588(0x9e)](),console['log'](a29_0x5f25d8[_0x143588(0xb2)](_0x143588(0x95))),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0x94)]('\x20\x20─'['repeat'](0x1e)));const _0xd6c35a=(_0x3c9a68,_0x529df1)=>{const _0x446666=_0x143588;if(!_0x529df1){console['log']('\x20\x20'+_0x3c9a68[_0x446666(0x9c)](0x11)+'\x20'+a29_0x5f25d8[_0x446666(0x94)]('(no\x20file)'));return;}const _0x1b2626=inspectCliConfigJsonFile(_0x529df1);if(_0x1b2626[_0x446666(0xb3)]==='ok')console[_0x446666(0x9e)]('\x20\x20'+_0x3c9a68['padEnd'](0x11)+'\x20'+a29_0x5f25d8[_0x446666(0x9d)](_0x446666(0xb7)));else{if(_0x1b2626['status']===_0x446666(0xbe))console[_0x446666(0x9e)]('\x20\x20'+_0x3c9a68['padEnd'](0x11)+'\x20'+a29_0x5f25d8[_0x446666(0x81)](_0x446666(0xc5)));else _0x1b2626[_0x446666(0xb3)]===_0x446666(0xac)?console[_0x446666(0x9e)]('\x20\x20'+_0x3c9a68[_0x446666(0x9c)](0x11)+'\x20'+a29_0x5f25d8['gray']('(missing)')):(console[_0x446666(0x9e)]('\x20\x20'+_0x3c9a68[_0x446666(0x9c)](0x11)+'\x20'+a29_0x5f25d8[_0x446666(0xa0)]('✗\x20Invalid\x20JSON')),console[_0x446666(0x9e)]('\x20\x20'+''[_0x446666(0x9c)](0x11)+'\x20'+a29_0x5f25d8[_0x446666(0xa0)](_0x1b2626['message'])));}};_0xd6c35a('Global',_0x47652c),_0xd6c35a('Project',_0x2ca4f4),console[_0x143588(0x9e)](),console['log'](a29_0x5f25d8[_0x143588(0xb2)](_0x143588(0xa5))),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x92)[_0x143588(0xb0)](0x1e))),console[_0x143588(0x9e)](_0x143588(0xa6)+(_0x4800d5[_0x143588(0xba)]||a29_0x5f25d8[_0x143588(0xa0)](_0x143588(0xb9)))),console['log'](_0x143588(0xab)+_0x4800d5['env']);const _0x178267=isLegacyCompatConfigKey(_0x143588(0x8e))?a29_0x5f25d8[_0x143588(0x94)](_0x4800d5[_0x143588(0x8e)]+'\x20(legacy/compat\x20only)'):_0x4800d5[_0x143588(0x8e)];console['log'](_0x143588(0xc1)+_0x178267),console[_0x143588(0x9e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4800d5[_0x143588(0xb6)]||a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x96)))),console['log'](_0x143588(0xc6)+(_0x4800d5[_0x143588(0xc4)]||a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x96)))),console['log'](_0x143588(0xc9)+(_0x4800d5[_0x143588(0x7a)]||a29_0x5f25d8['gray'](_0x143588(0x7f)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x143588(0x9e)](_0x143588(0x9b)+(_0x4800d5[_0x143588(0xbb)]??a29_0x5f25d8[_0x143588(0x94)](_0x143588(0xa9)))),console[_0x143588(0x9e)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4800d5[_0x143588(0x9f)]),console[_0x143588(0x9e)](_0x143588(0x86)+_0x4800d5[_0x143588(0x99)]),console[_0x143588(0x9e)](_0x143588(0xb5)+AUTH_MODE[_0x143588(0x7b)]),console['log']('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x4800d5[_0x143588(0xc0)]?a29_0x5f25d8[_0x143588(0x9d)](_0x143588(0xb1)+_0x4800d5[_0x143588(0xc0)][_0x143588(0x80)]+')'):a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x96)))),console[_0x143588(0x9e)](),console[_0x143588(0x9e)](a29_0x5f25d8['bold'](_0x143588(0xbf))),console[_0x143588(0x9e)](a29_0x5f25d8['gray'](_0x143588(0x92)[_0x143588(0xb0)](0x1e))),console[_0x143588(0x9e)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x143588(0x9e)](_0x143588(0xa2)+getUserDomain()),console[_0x143588(0x9e)](_0x143588(0x91)+getRuntimeDomain()),console[_0x143588(0x9e)](),console['log'](a29_0x5f25d8[_0x143588(0xb2)]('\x20\x20Service\x20Tree')),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0x94)](_0x143588(0x92)[_0x143588(0xb0)](0x1e)));const _0x191653=inspectServiceRegistry();console[_0x143588(0x9e)](_0x143588(0x7c)+_0x191653[_0x143588(0xae)]),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x191653)),console[_0x143588(0x9e)](_0x143588(0xc3)+_0x191653[_0x143588(0x79)]),console['log'](_0x143588(0xbc)+_0x191653[_0x143588(0x8a)]);for(const _0x4d414e of _0x191653['services']){console[_0x143588(0x9e)]('\x20\x20'+(_0x4d414e[_0x143588(0xc2)]+':')['padEnd'](0x11)+'\x20'+(_0x4d414e['name']||a29_0x5f25d8[_0x143588(0x94)](_0x143588(0xaa)))+'\x20('+_0x4d414e['commandCount']+'\x20commands)'),console['log']('\x20\x20'+''[_0x143588(0x9c)](0x11)+_0x143588(0x98)+_0x4d414e['source']['path']);}return console['log'](),console[_0x143588(0x9e)](a29_0x5f25d8[_0x143588(0xb2)]('\x20\x20Auth')),console[_0x143588(0x9e)](a29_0x5f25d8['gray'](_0x143588(0x92)[_0x143588(0xb0)](0x1e))),console[_0x143588(0x9e)](_0x143588(0x8c)+a29_0x5f25d8['green'](AUTH_MODE[_0x143588(0x7b)]+_0x143588(0x8b))),console[_0x143588(0x9e)](_0x143588(0x90)+a29_0x5f25d8['gray'](_0x143588(0xaf))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1152f5){const _0x58e38e=a29_0x541f;if(_0x1152f5[_0x58e38e(0xb3)]==='ok')return a29_0x5f25d8[_0x58e38e(0x9d)]('✓\x20Loaded');if(_0x1152f5['status']===_0x58e38e(0xac))return a29_0x5f25d8[_0x58e38e(0x94)](_0x58e38e(0x87));if(_0x1152f5[_0x58e38e(0xb3)]===_0x58e38e(0xbe))return a29_0x5f25d8[_0x58e38e(0x81)](_0x58e38e(0xbd));return a29_0x5f25d8[_0x58e38e(0xa0)]('✗\x20Invalid'+(_0x1152f5[_0x58e38e(0x7e)]?':\x20'+_0x1152f5['message']:''));}function a29_0x1e2b(){const _0x1e1736=['ClientAk','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','39430GmEDHu','message','(default:\x20','length','yellow','Diagnose\x20CLI\x20configuration\x20and\x20environment','474972fZJMvm','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','617008BUbxfu','commandCount','\x20(accessKey)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','locale','5KOReGA','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20─','102kqZxza','gray','\x20\x20Config\x20JSON','(none)','25923mStdMF','\x20Imported\x20from:\x20','verbose','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','green','log','riskLevel','red','doctor','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','1730572ZIykzJ','\x20doctor','\x20\x20Merged\x20Config','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','77xBVvOc','(default)','(unnamed)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','platform','registryPath','(removed\x20—\x20cookie\x20auth\x20disabled)','repeat','(set,\x20length=','bold','status','\x20\x20Config\x20Files','\x20\x20auth\x20(effective):\x20','defaultApp','✓\x20Valid\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','appCode','pageSize','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','empty','\x20\x20API\x20Endpoints','accessKey','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','47776BroMKs','1073470jVFdzc','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1125lXygRK','serviceCount','format'];a29_0x1e2b=function(){return _0x1e1736;};return a29_0x1e2b();}export const doctorDefinition={'service':a29_0x9e2646(0xa1),'command':a29_0x9e2646(0x8d),'description':a29_0x9e2646(0x82),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a30_0x3eaa47=a30_0x2464;function a30_0x2464(_0x118f04,_0x454cad){_0x118f04=_0x118f04-0x65;const _0x11e38d=a30_0x11e3();let _0x246472=_0x11e38d[_0x118f04];return _0x246472;}(function(_0x592077,_0x469683){const _0x277300=a30_0x2464,_0x4dc046=_0x592077();while(!![]){try{const _0x2825c1=parseInt(_0x277300(0x7e))/0x1*(-parseInt(_0x277300(0x68))/0x2)+parseInt(_0x277300(0x76))/0x3+parseInt(_0x277300(0x82))/0x4+-parseInt(_0x277300(0x7a))/0x5*(-parseInt(_0x277300(0x72))/0x6)+-parseInt(_0x277300(0x75))/0x7+-parseInt(_0x277300(0x80))/0x8+parseInt(_0x277300(0x6f))/0x9;if(_0x2825c1===_0x469683)break;else _0x4dc046['push'](_0x4dc046['shift']());}catch(_0x35a98f){_0x4dc046['push'](_0x4dc046['shift']());}}}(a30_0x11e3,0x9e630));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a30_0x11e3(){const _0x1bbfef=['appCode','\x20to\x20runtime\x20app\x20','10823841BWkfoZ','download','bool','254454pPxzbS','Preview:\x20upload\x20','trim','2267405zgyhbd','937872RSewid','string','read','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','115DxJiBD','POST','upload','File','662dBeliq','file','3963608HcbvWb','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','196864PjYOwT','filepath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','body','str','validation','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','build','3238kItWht','boolean','path','filePath','long-term'];a30_0x11e3=function(){return _0x1bbfef;};return a30_0x11e3();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':'file','type':a30_0x3eaa47(0x77),'required':!![],'description':a30_0x3eaa47(0x84)},FILEPATH_FLAG={'name':a30_0x3eaa47(0x83),'type':a30_0x3eaa47(0x77),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a30_0x3eaa47(0x70),'type':a30_0x3eaa47(0x69),'description':a30_0x3eaa47(0x66)},LONG_TERM_FLAG={'name':a30_0x3eaa47(0x6c),'type':'boolean','description':a30_0x3eaa47(0x81)};function requireFilePath(_0x453fa1){const _0x2e2674=a30_0x3eaa47,_0x1cc2c1=_0x453fa1[_0x2e2674(0x74)]();if(!_0x1cc2c1)throw CliErrors[_0x2e2674(0x88)]('filePath\x20is\x20required.');return _0x1cc2c1;}const fileUpload={'service':a30_0x3eaa47(0x7f),'command':a30_0x3eaa47(0x7c),'description':a30_0x3eaa47(0x65),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x22f8da){const _0x557fc0=a30_0x3eaa47,_0x4033ea=requireRuntimeUploadFile(_0x22f8da[_0x557fc0(0x87)](_0x557fc0(0x7f)),_0x557fc0(0x7d));return dryRun(_0x557fc0(0x7b),'/client/uploadFile')[_0x557fc0(0x86)]({'appCode':_0x22f8da['appCode'],'multipart':{'file':_0x4033ea}})['description'](_0x557fc0(0x73)+_0x4033ea[_0x557fc0(0x6a)]+_0x557fc0(0x6e)+_0x22f8da[_0x557fc0(0x6d)])[_0x557fc0(0x67)]();},async 'execute'(_0x236526){const _0x4051e8=a30_0x3eaa47,_0x2017e0=requireRuntimeUploadFile(_0x236526[_0x4051e8(0x87)](_0x4051e8(0x7f)),_0x4051e8(0x7d)),_0x5c2c1e=await uploadRuntimeFile(_0x236526['appCode'],_0x2017e0[_0x4051e8(0x6a)]);return{'ok':!![],'data':_0x5c2c1e,'message':_0x5c2c1e[_0x4051e8(0x6b)]?'Uploaded\x20file:\x20'+_0x5c2c1e[_0x4051e8(0x6b)]+_0x4051e8(0x85):_0x4051e8(0x79)};}},fileQueryUrl={'service':'file','command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a30_0x3eaa47(0x78),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x29018d){const _0x3f8d80=a30_0x3eaa47,_0x53c8c2=requireFilePath(_0x29018d[_0x3f8d80(0x87)](_0x3f8d80(0x83))),_0x45fa9f=await queryRuntimeFileUrl(_0x53c8c2,{'download':_0x29018d[_0x3f8d80(0x71)](_0x3f8d80(0x70)),'longTerm':_0x29018d[_0x3f8d80(0x71)](_0x3f8d80(0x6c))});return{'ok':!![],'data':_0x45fa9f};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a30_0x3b1747=a30_0x5976;function a30_0x5976(_0xa72cd7,_0x15909f){_0xa72cd7=_0xa72cd7-0x7d;const _0x44de63=a30_0x44de();let _0x597626=_0x44de63[_0xa72cd7];return _0x597626;}(function(_0x59b5ae,_0x1b1b16){const _0x3e5f2e=a30_0x5976,_0x5e08e6=_0x59b5ae();while(!![]){try{const _0x418676=parseInt(_0x3e5f2e(0x9b))/0x1*(parseInt(_0x3e5f2e(0xa0))/0x2)+-parseInt(_0x3e5f2e(0x85))/0x3+-parseInt(_0x3e5f2e(0x90))/0x4+-parseInt(_0x3e5f2e(0x8f))/0x5+-parseInt(_0x3e5f2e(0x8a))/0x6+-parseInt(_0x3e5f2e(0x8d))/0x7+-parseInt(_0x3e5f2e(0x82))/0x8*(-parseInt(_0x3e5f2e(0x7d))/0x9);if(_0x418676===_0x1b1b16)break;else _0x5e08e6['push'](_0x5e08e6['shift']());}catch(_0x200b2b){_0x5e08e6['push'](_0x5e08e6['shift']());}}}(a30_0x44de,0x97685));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x3b1747(0x99),'type':'string','required':!![],'description':a30_0x3b1747(0x94)},FILEPATH_FLAG={'name':a30_0x3b1747(0x93),'type':a30_0x3b1747(0x83),'required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a30_0x3b1747(0xa1),'type':a30_0x3b1747(0x9a),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x86a31d){const _0xe0bf09=a30_0x3b1747,_0x378d11=_0x86a31d[_0xe0bf09(0x9f)]();if(!_0x378d11)throw CliErrors[_0xe0bf09(0x81)](_0xe0bf09(0x80));return _0x378d11;}const fileUpload={'service':a30_0x3b1747(0x99),'command':'upload','description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x3e3713){const _0x3e6eed=a30_0x3b1747,_0x298d9f=requireRuntimeUploadFile(_0x3e3713[_0x3e6eed(0x98)](_0x3e6eed(0x99)),_0x3e6eed(0x89));return dryRun(_0x3e6eed(0x91),_0x3e6eed(0x96))[_0x3e6eed(0x8b)]({'appCode':_0x3e3713['appCode'],'multipart':{'file':_0x298d9f}})[_0x3e6eed(0x9e)](_0x3e6eed(0x92)+_0x298d9f[_0x3e6eed(0x95)]+_0x3e6eed(0x9c)+_0x3e3713[_0x3e6eed(0x9d)])[_0x3e6eed(0x86)]();},async 'execute'(_0x44f21c){const _0x4301c2=a30_0x3b1747,_0x514649=requireRuntimeUploadFile(_0x44f21c[_0x4301c2(0x98)]('file'),'File'),_0x25399d=await uploadRuntimeFile(_0x44f21c[_0x4301c2(0x9d)],_0x514649['path']);return{'ok':!![],'data':_0x25399d,'message':_0x25399d[_0x4301c2(0x8e)]?_0x4301c2(0x97)+_0x25399d['filePath']+_0x4301c2(0x8c):_0x4301c2(0x88)};}},fileQueryUrl={'service':a30_0x3b1747(0x99),'command':a30_0x3b1747(0x84),'description':a30_0x3b1747(0x87),'risk':a30_0x3b1747(0x7e),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x18d7f9){const _0xe3f3c1=a30_0x3b1747,_0x63e8ec=requireFilePath(_0x18d7f9[_0xe3f3c1(0x98)](_0xe3f3c1(0x93))),_0xa7dbd6=await queryRuntimeFileUrl(_0x63e8ec,{'download':_0x18d7f9[_0xe3f3c1(0x7f)](_0xe3f3c1(0xa1)),'longTerm':_0x18d7f9[_0xe3f3c1(0x7f)]('long-term')});return{'ok':!![],'data':_0xa7dbd6};}};function a30_0x44de(){const _0x3b7c8e=['\x20to\x20runtime\x20app\x20','appCode','description','trim','4390PcmnZg','download','27891TAoRvF','read','bool','filePath\x20is\x20required.','validation','10232YjvktL','string','query-url','843144JloqoE','build','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','6205470NNdAwT','body','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','7725431fzBpZD','filePath','2448490nbKeCb','2696348GCdCwm','POST','Preview:\x20upload\x20','filepath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','path','/client/uploadFile','Uploaded\x20file:\x20','str','file','boolean','109opdzlD'];a30_0x44de=function(){return _0x3b7c8e;};return a30_0x44de();}export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1,32 +1,14 @@
1
1
  /**
2
- * @fileoverview Internal helpers for `app init` / `app import`.
2
+ * @fileoverview Internal helpers for `app import`.
3
3
  *
4
- * Why a dedicated init module: project initialization is the first thing users do
5
- * and must be rock-solid. The logic handles:
6
- * - Non-interactive (CI): fully automated with required `--appcode`
7
- * - Interactive: prompts for missing values with sensible defaults
8
- * - Import from rabetbase: converts an existing `.rabetbase.json` to `.lovrabet.json`
9
- *
10
- * Design decision: `init` NEVER asks about environment. The default is always
11
- * `production`. If users need `daily`, they pass `--env daily` on the command line.
12
- * This keeps the interactive flow fast and avoids a confusing first question
13
- * when most users want `production`.
14
- *
15
- * Why `AbortPrompt` is converted to `CliErrors.cancelled()` at the top level:
16
- * Ctrl+C during any prompt should produce a clean exit with code 0, not a stack trace.
17
- * By catching `AbortPrompt` at the `runInit` / `runInitImport` boundary, individual
18
- * prompt functions don't need to know about the CLI's error taxonomy.
19
- *
20
- * Why atomic writes via `writeConfigFile`: `init` creates the project config.
4
+ * The import path converts an upgraded `.rabetbase.json` into the runtime
5
+ * `.lovrabet.json` shape. Workspace lifecycle is owned by `workspace init/use`.
6
+ * Why atomic writes via `writeConfigFile`: import updates the project config.
21
7
  * If the process crashes mid-write, we could leave a corrupt empty file.
22
8
  * The atomic write (temp + rename) prevents this.
23
9
  */
24
10
  import type { FlagDef } from "../framework/types.js";
25
- /** Flags for `lovrabet app init` (non-import). */
26
- export declare const initCreateFlagDefs: FlagDef[];
27
11
  /** Flags for `lovrabet app import`. */
28
- export declare const initImportFlagDefs: FlagDef[];
29
- /** Handles `lovrabet app init` (non-import path). */
30
- export declare function runInit(flags: Record<string, any>): Promise<void>;
12
+ export declare const appImportFlagDefs: FlagDef[];
31
13
  /** Handles `lovrabet app import`. */
32
- export declare function runInitImport(flags: Record<string, any>): Promise<void>;
14
+ export declare function runAppImport(flags: Record<string, any>): Promise<void>;
@@ -1 +1 @@
1
- const a31_0x4d5bae=a31_0x8f5d;(function(_0x46a591,_0x5ef3b4){const _0x2d7de4=a31_0x8f5d,_0x3c8b08=_0x46a591();while(!![]){try{const _0x305c28=parseInt(_0x2d7de4(0x177))/0x1*(parseInt(_0x2d7de4(0x17f))/0x2)+-parseInt(_0x2d7de4(0x1b5))/0x3+-parseInt(_0x2d7de4(0x1a4))/0x4*(-parseInt(_0x2d7de4(0x19b))/0x5)+parseInt(_0x2d7de4(0x1a6))/0x6*(parseInt(_0x2d7de4(0x187))/0x7)+parseInt(_0x2d7de4(0x1a7))/0x8*(parseInt(_0x2d7de4(0x1b2))/0x9)+-parseInt(_0x2d7de4(0x1a5))/0xa+-parseInt(_0x2d7de4(0x18e))/0xb;if(_0x305c28===_0x5ef3b4)break;else _0x3c8b08['push'](_0x3c8b08['shift']());}catch(_0x971c9){_0x3c8b08['push'](_0x3c8b08['shift']());}}}(a31_0x3f9a,0xeffdb));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';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,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a31_0x3f9a(){const _0x5d2f6c=['file','race','cwd','22966ETtpPM','[y/N]','apiDir','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','User\x20aborted\x20prompt','\x20\x20default:\x20','entries','yes','1876cxORIU','\x20\x20env:\x20\x20\x20\x20\x20','Usage:\x20','object','trim','global','close','16611067XIBNSQ','SIGINT','once','boolean','defaultApp','Override\x20imported\x20default\x20appcode','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','[Y/n]','newConfigFileName','Write\x20to\x20global\x20(~/','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','string','app','920lHXnTc','Aborted.','name','\x20\x20config:\x20\x20','):\x20','Invalid\x20env\x20\x22','stdin','App\x20code','message','41804BeUkhV','18825230eZYQio','38562xWBAOV','19752mGdAdN','appcode','riskLevel','File\x20','join','toLowerCase','App\x20code\x20for\x20the\x20project','AbortPrompt','\x20\x20appcode:\x20','Imported\x20from\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','657CeDJcf','validation','log','3069615pBxxYc','apps','Target\x20environment\x20(default\x20','env','Initialized\x20','\x20already\x20exists.\x20Overwrite?','137mWOaBE','question','flagMissing','removeListener','\x22.\x20Allowed:\x20'];a31_0x3f9a=function(){return _0x5d2f6c;};return a31_0x3f9a();}import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a31_0x4d5bae(0x1a8),'type':a31_0x4d5bae(0x199),'description':a31_0x4d5bae(0x1ad)},{'name':'env','type':a31_0x4d5bae(0x199),'description':a31_0x4d5bae(0x1b7)+DEFAULT_CONFIG_VALUES[a31_0x4d5bae(0x1b8)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a31_0x4d5bae(0x18c),'type':'boolean','description':a31_0x4d5bae(0x197)+PRODUCT_CONFIG['newConfigFileName']+')\x20instead\x20of\x20project','default':![]},{'name':a31_0x4d5bae(0x186),'type':'boolean','description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a31_0x4d5bae(0x17c),'type':a31_0x4d5bae(0x199),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':'appcode','type':a31_0x4d5bae(0x199),'description':a31_0x4d5bae(0x193)},{'name':a31_0x4d5bae(0x1b8),'type':'string','description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a31_0x4d5bae(0x18c),'type':'boolean','description':a31_0x4d5bae(0x197)+PRODUCT_CONFIG[a31_0x4d5bae(0x196)]+')\x20instead\x20of\x20project','default':![]},{'name':a31_0x4d5bae(0x186),'type':a31_0x4d5bae(0x191),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x3b272c){const _0x516dfe=a31_0x4d5bae,_0x1d2afc=isNonInteractiveMode(_0x3b272c),_0x1a7634=_0x3b272c[_0x516dfe(0x18c)]?_0x516dfe(0x18c):'project',_0x416eca=resolveWriteConfigPath(_0x1a7634);try{_0x1d2afc?await runNonInteractive(_0x3b272c,_0x416eca):await runInteractive(_0x3b272c,_0x416eca);}catch(_0x1ca070){if(_0x1ca070 instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x1ca070;}}export async function runInitImport(_0x41698f){const _0x113290=a31_0x4d5bae,_0x3bea0e=_0x41698f[_0x113290(0x18c)]?_0x113290(0x18c):'project',_0x1c23b6=resolveWriteConfigPath(_0x3bea0e);await runFromImport(_0x41698f,_0x1c23b6);}const RUNTIME_IRRELEVANT_KEYS=new Set([a31_0x4d5bae(0x181)]);async function runFromImport(_0x54b7f8,_0x12f09e){const _0x2731b3=a31_0x4d5bae,_0xe4901b=resolveFilePath(_0x54b7f8['file']);if(!existsSync(_0xe4901b))throw CliErrors[_0x2731b3(0x1b3)]('Source\x20file\x20not\x20found:\x20'+_0xe4901b);const _0x4cc5fa=readSourceFile(_0xe4901b),_0xb70ecf=convertToRuntimeConfig(_0x4cc5fa);_0x54b7f8[_0x2731b3(0x1a8)]&&(_0xb70ecf[_0x2731b3(0x1a8)]=String(_0x54b7f8[_0x2731b3(0x1a8)]));_0x54b7f8['env']&&(_0xb70ecf[_0x2731b3(0x1b8)]=resolveInitEnv(_0x54b7f8));if(!_0xb70ecf[_0x2731b3(0x1a8)])throw CliErrors[_0x2731b3(0x1b3)](_0x2731b3(0x1b1),'Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.');await writeInitConfig(_0x12f09e,_0xb70ecf,_0x54b7f8),console['log'](_0x2731b3(0x1b0)+_0xe4901b),console['log'](_0x2731b3(0x19e)+_0x12f09e),console[_0x2731b3(0x1b4)](_0x2731b3(0x1af)+_0xb70ecf[_0x2731b3(0x1a8)]);if(_0xb70ecf[_0x2731b3(0x192)])console[_0x2731b3(0x1b4)](_0x2731b3(0x184)+_0xb70ecf['defaultApp']);}function convertToRuntimeConfig(_0x9637e0){const _0x12eadc=a31_0x4d5bae;if(_0x9637e0[_0x12eadc(0x1b6)]&&typeof _0x9637e0[_0x12eadc(0x1b6)]===_0x12eadc(0x18a))throw CliErrors[_0x12eadc(0x1b3)](_0x12eadc(0x194),_0x12eadc(0x182));const _0x1c0da8={};for(const _0xa3115f of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x9637e0[_0xa3115f]!==undefined&&(_0x1c0da8[_0xa3115f]=_0x9637e0[_0xa3115f]);}return!_0x1c0da8[_0x12eadc(0x1a9)]&&(_0x1c0da8[_0x12eadc(0x1a9)]=DEFAULT_CONFIG_VALUES[_0x12eadc(0x1a9)]),_0x1c0da8;}async function runNonInteractive(_0x4fa154,_0x52a8b4){const _0x4f0892=a31_0x4d5bae,_0x4096ff=_0x4fa154[_0x4f0892(0x1a8)];if(!_0x4096ff)throw CliErrors[_0x4f0892(0x179)](_0x4f0892(0x1a8),_0x4f0892(0x189)+CLI_BIN_NAME+_0x4f0892(0x198));const _0x43e035=resolveInitEnv(_0x4fa154);await writeInitConfig(_0x52a8b4,{'appcode':_0x4096ff,'env':_0x43e035},_0x4fa154),console[_0x4f0892(0x1b4)](_0x4f0892(0x1b9)+_0x52a8b4),console[_0x4f0892(0x1b4)]('\x20\x20appcode:\x20'+_0x4096ff),console[_0x4f0892(0x1b4)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x43e035);}async function runInteractive(_0x5c0567,_0x132d2e){const _0x2191e7=a31_0x4d5bae,_0x493187=loadExisting(_0x132d2e),_0x160fd4=typeof _0x493187?.['appcode']===_0x2191e7(0x199)?_0x493187[_0x2191e7(0x1a8)]:'',_0x3d6e48=resolveInitEnv(_0x5c0567);console[_0x2191e7(0x1b4)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG[_0x2191e7(0x196)]+'\x0a');if(existsSync(_0x132d2e)&&!_0x5c0567[_0x2191e7(0x186)]){const _0x4964c1=await promptYesNo(_0x2191e7(0x1aa)+_0x132d2e+_0x2191e7(0x1ba),![]);if(!_0x4964c1){console[_0x2191e7(0x1b4)](_0x2191e7(0x19c));return;}}const _0x2c4736=typeof _0x5c0567['appcode']===_0x2191e7(0x199)?_0x5c0567[_0x2191e7(0x1a8)][_0x2191e7(0x18b)]():'';let _0x31ebd7=_0x2c4736;!_0x31ebd7&&(_0x31ebd7=await promptInput(_0x2191e7(0x1a2),_0x160fd4));if(!_0x31ebd7['trim']())throw CliErrors[_0x2191e7(0x1b3)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x132d2e,{'appcode':_0x31ebd7[_0x2191e7(0x18b)](),'env':_0x3d6e48},_0x5c0567),console['log']('\x0aInitialized\x20'+_0x132d2e),console[_0x2191e7(0x1b4)](_0x2191e7(0x1af)+_0x31ebd7[_0x2191e7(0x18b)]()),console[_0x2191e7(0x1b4)](_0x2191e7(0x188)+_0x3d6e48);}async function writeInitConfig(_0x5b03b7,_0x513197,_0x19d834){const _0x9411c1=a31_0x4d5bae;let _0x577d5d={};existsSync(_0x5b03b7)&&!_0x19d834[_0x9411c1(0x186)]&&(_0x577d5d=readConfigFile(_0x5b03b7));for(const [_0x18bd40,_0x35b438]of Object[_0x9411c1(0x185)](_0x513197)){_0x35b438!==undefined&&(_0x577d5d[_0x18bd40]=_0x35b438);}if(_0x577d5d[_0x9411c1(0x19a)])delete _0x577d5d[_0x9411c1(0x19a)];writeConfigFile(_0x5b03b7,_0x577d5d);}class AbortPrompt extends Error{constructor(){const _0x5f3954=a31_0x4d5bae;super(_0x5f3954(0x183)),this[_0x5f3954(0x19d)]=_0x5f3954(0x1ae);}}function createSafeRl(){const _0x1201c1=a31_0x4d5bae,_0x4f8418=createInterface({'input':process[_0x1201c1(0x1a1)],'output':process['stdout']});let _0x33940e;const _0x39cafa=new Promise((_0xbc072d,_0x36deeb)=>{const _0x2a3b0a=_0x1201c1;_0x33940e=()=>{const _0x12385c=a31_0x8f5d;_0x33940e&&(_0x4f8418[_0x12385c(0x17a)](_0x12385c(0x18f),_0x33940e),_0x33940e=undefined);try{_0x4f8418[_0x12385c(0x18d)]();}catch{}_0x36deeb(new AbortPrompt());},_0x4f8418[_0x2a3b0a(0x190)](_0x2a3b0a(0x18f),_0x33940e);}),_0x49cf49=()=>{const _0x21a236=_0x1201c1;_0x33940e&&(_0x4f8418[_0x21a236(0x17a)](_0x21a236(0x18f),_0x33940e),_0x33940e=undefined);try{_0x4f8418[_0x21a236(0x18d)]();}catch{}};return{'rl':_0x4f8418,'abortPromise':_0x39cafa,'disposeSuccess':_0x49cf49};}async function promptInput(_0x35e328,_0x4ef636){const _0x234c07=a31_0x4d5bae,{rl:_0x125f7a,abortPromise:_0x10a2c1,disposeSuccess:_0x4131f6}=createSafeRl(),_0x6fce11=new Promise(_0x5655d7=>{const _0x42cfca=a31_0x8f5d,_0x15e93a=_0x4ef636?'\x20\x20'+_0x35e328+'\x20('+_0x4ef636+_0x42cfca(0x19f):'\x20\x20'+_0x35e328+':\x20';_0x125f7a[_0x42cfca(0x178)](_0x15e93a,_0x1d88ce=>{const _0x5e9b40=_0x42cfca;_0x4131f6(),_0x5655d7(_0x1d88ce[_0x5e9b40(0x18b)]()||_0x4ef636);});});return Promise[_0x234c07(0x17d)]([_0x6fce11,_0x10a2c1]);}async function promptYesNo(_0x49a06d,_0x9f6db5){const _0x2f7c80=a31_0x4d5bae,{rl:_0x4a7df3,abortPromise:_0x430dca,disposeSuccess:_0x5e3e2f}=createSafeRl(),_0x46e432=new Promise(_0x346fb0=>{const _0x36acc3=a31_0x8f5d,_0x5cdc12=_0x9f6db5?_0x36acc3(0x195):_0x36acc3(0x180);_0x4a7df3[_0x36acc3(0x178)]('\x20\x20'+_0x49a06d+'\x20'+_0x5cdc12+':\x20',_0x1475b0=>{const _0xf24b21=_0x36acc3;_0x5e3e2f();const _0x507631=_0x1475b0[_0xf24b21(0x18b)]()[_0xf24b21(0x1ac)]();if(_0x507631==='y'||_0x507631===_0xf24b21(0x186))_0x346fb0(!![]);else{if(_0x507631==='n'||_0x507631==='no')_0x346fb0(![]);else _0x346fb0(_0x9f6db5);}});});return Promise[_0x2f7c80(0x17d)]([_0x46e432,_0x430dca]);}function loadExisting(_0x3f1616){if(!existsSync(_0x3f1616))return null;return readConfigFile(_0x3f1616);}function resolveFilePath(_0xd8ef77){const _0x42c058=a31_0x4d5bae;return isAbsolute(_0xd8ef77)?_0xd8ef77:resolve(process[_0x42c058(0x17e)](),_0xd8ef77);}function a31_0x8f5d(_0x42b843,_0x17ae4a){_0x42b843=_0x42b843-0x177;const _0x3f9af3=a31_0x3f9a();let _0x8f5d94=_0x3f9af3[_0x42b843];return _0x8f5d94;}function readSourceFile(_0x4bf85a){const _0x107e54=a31_0x4d5bae;try{const _0x124a08=readFileSync(_0x4bf85a,{'encoding':'utf8'});return JSON['parse'](_0x124a08);}catch(_0x2fee29){throw CliErrors[_0x107e54(0x1b3)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x2fee29[_0x107e54(0x1a3)]);}}function resolveInitEnv(_0x41d7cd){const _0x55c60e=a31_0x4d5bae,_0x108dec=_0x41d7cd[_0x55c60e(0x1b8)];if(_0x108dec===undefined||_0x108dec==='')return DEFAULT_CONFIG_VALUES[_0x55c60e(0x1b8)];if(!RUNTIME_ENV_VALUES['includes'](_0x108dec))throw CliErrors[_0x55c60e(0x1b3)](_0x55c60e(0x1a0)+_0x108dec+_0x55c60e(0x17b)+RUNTIME_ENV_VALUES[_0x55c60e(0x1ab)](',\x20'));return _0x108dec;}
1
+ const a31_0x11f26a=a31_0x3800;(function(_0xdc09ed,_0x1b687c){const _0x4d7d85=a31_0x3800,_0x1a600d=_0xdc09ed();while(!![]){try{const _0x3cdaec=parseInt(_0x4d7d85(0x83))/0x1*(parseInt(_0x4d7d85(0xad))/0x2)+-parseInt(_0x4d7d85(0xa0))/0x3*(parseInt(_0x4d7d85(0x82))/0x4)+parseInt(_0x4d7d85(0xa8))/0x5*(parseInt(_0x4d7d85(0x9f))/0x6)+-parseInt(_0x4d7d85(0x8f))/0x7*(parseInt(_0x4d7d85(0x91))/0x8)+parseInt(_0x4d7d85(0x9d))/0x9*(parseInt(_0x4d7d85(0x9b))/0xa)+-parseInt(_0x4d7d85(0x86))/0xb+parseInt(_0x4d7d85(0x97))/0xc*(parseInt(_0x4d7d85(0x90))/0xd);if(_0x3cdaec===_0x1b687c)break;else _0x1a600d['push'](_0x1a600d['shift']());}catch(_0x593486){_0x1a600d['push'](_0x1a600d['shift']());}}}(a31_0x1924,0xe7101));import{existsSync,readFileSync}from'node:fs';function a31_0x3800(_0x16ab08,_0x1440fe){_0x16ab08=_0x16ab08-0x7e;const _0x19248d=a31_0x1924();let _0x380073=_0x19248d[_0x16ab08];return _0x380073;}import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a31_0x11f26a(0x80),'type':a31_0x11f26a(0x7f),'description':a31_0x11f26a(0x81),'required':!![]},{'name':a31_0x11f26a(0x96),'type':a31_0x11f26a(0x7f),'description':a31_0x11f26a(0x8c)},{'name':a31_0x11f26a(0x8b),'type':a31_0x11f26a(0x7f),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a31_0x11f26a(0x92)+PRODUCT_CONFIG['newConfigFileName']+a31_0x11f26a(0x93),'default':![]},{'name':a31_0x11f26a(0xab),'type':a31_0x11f26a(0x98),'description':a31_0x11f26a(0x85),'default':![]}];function a31_0x1924(){const _0x16b532=['12Hkvskz','boolean','parse','cwd','5090WHdEkM','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`.','9414NjFzRW','apps','12GvDmcP','21kpOqrW','log','Failed\x20to\x20parse\x20source\x20file:\x20','validation','Source\x20file\x20not\x20found:\x20','\x20\x20appcode:\x20','\x20\x20default:\x20','Imported\x20from\x20','907585XSPIrf','\x22.\x20Allowed:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','yes','includes','14788qWWKoT','defaultApp','string','file','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','1061524vROIHK','13HWeCwf','global','Skip\x20confirmation\x20when\x20overwriting','12784783BcoNLc','app','project','message','entries','env','Override\x20imported\x20default\x20appcode','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','\x20\x20config:\x20\x20','7266448rzkOWk','52167011oIHQLG','8GErSnN','Write\x20to\x20global\x20(~/',')\x20instead\x20of\x20project','riskLevel','object','appcode'];a31_0x1924=function(){return _0x16b532;};return a31_0x1924();}export async function runAppImport(_0x1f72ee){const _0x3d33fc=a31_0x11f26a,_0x154f7c=_0x1f72ee[_0x3d33fc(0x84)]?'global':_0x3d33fc(0x88),_0x50cec9=resolveWriteConfigPath(_0x154f7c);await runFromImport(_0x1f72ee,_0x50cec9);}async function runFromImport(_0x25c85f,_0x4f4299){const _0x241f5a=a31_0x11f26a,_0x5c3282=resolveFilePath(_0x25c85f[_0x241f5a(0x80)]);if(!existsSync(_0x5c3282))throw CliErrors[_0x241f5a(0xa3)](_0x241f5a(0xa4)+_0x5c3282);const _0x40a662=readSourceFile(_0x5c3282),_0x1072d9=convertToRuntimeConfig(_0x40a662);_0x25c85f[_0x241f5a(0x96)]&&(_0x1072d9[_0x241f5a(0x96)]=String(_0x25c85f[_0x241f5a(0x96)]));_0x25c85f['env']&&(_0x1072d9[_0x241f5a(0x8b)]=resolveImportEnv(_0x25c85f));if(!_0x1072d9[_0x241f5a(0x96)])throw CliErrors[_0x241f5a(0xa3)](_0x241f5a(0x8d),_0x241f5a(0x9c));await writeImportConfig(_0x4f4299,_0x1072d9,_0x25c85f),console[_0x241f5a(0xa1)](_0x241f5a(0xa7)+_0x5c3282),console[_0x241f5a(0xa1)](_0x241f5a(0x8e)+_0x4f4299),console['log'](_0x241f5a(0xa5)+_0x1072d9[_0x241f5a(0x96)]);if(_0x1072d9[_0x241f5a(0x7e)])console[_0x241f5a(0xa1)](_0x241f5a(0xa6)+_0x1072d9[_0x241f5a(0x7e)]);}function convertToRuntimeConfig(_0x1a3b28){const _0x3e641b=a31_0x11f26a;if(_0x1a3b28[_0x3e641b(0x9e)]&&typeof _0x1a3b28[_0x3e641b(0x9e)]===_0x3e641b(0x95))throw CliErrors[_0x3e641b(0xa3)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x3e641b(0xaa));const _0x9a756f={};for(const _0x35c40c of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x1a3b28[_0x35c40c]!==undefined&&(_0x9a756f[_0x35c40c]=_0x1a3b28[_0x35c40c]);}return!_0x9a756f[_0x3e641b(0x94)]&&(_0x9a756f[_0x3e641b(0x94)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x9a756f;}async function writeImportConfig(_0x15925b,_0x216979,_0x207b91){const _0x6c0623=a31_0x11f26a;let _0x369be0={};existsSync(_0x15925b)&&!_0x207b91[_0x6c0623(0xab)]&&(_0x369be0=readConfigFile(_0x15925b));for(const [_0x421199,_0x4540ad]of Object[_0x6c0623(0x8a)](_0x216979)){_0x4540ad!==undefined&&(_0x369be0[_0x421199]=_0x4540ad);}if(_0x369be0[_0x6c0623(0x87)])delete _0x369be0[_0x6c0623(0x87)];writeConfigFile(_0x15925b,_0x369be0);}function resolveFilePath(_0x47299b){const _0x8525e1=a31_0x11f26a;return isAbsolute(_0x47299b)?_0x47299b:resolve(process[_0x8525e1(0x9a)](),_0x47299b);}function readSourceFile(_0x24d834){const _0x4b9311=a31_0x11f26a;try{const _0x2e80ab=readFileSync(_0x24d834,{'encoding':'utf8'});return JSON[_0x4b9311(0x99)](_0x2e80ab);}catch(_0x3634d3){throw CliErrors[_0x4b9311(0xa3)](_0x4b9311(0xa2)+_0x3634d3[_0x4b9311(0x89)]);}}function resolveImportEnv(_0x223634){const _0x53672e=a31_0x11f26a,_0x313170=_0x223634[_0x53672e(0x8b)];if(_0x313170===undefined||_0x313170==='')return DEFAULT_CONFIG_VALUES[_0x53672e(0x8b)];if(!RUNTIME_ENV_VALUES[_0x53672e(0xac)](_0x313170))throw CliErrors[_0x53672e(0xa3)]('Invalid\x20env\x20\x22'+_0x313170+_0x53672e(0xa9)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x313170;}
@@ -1 +1 @@
1
- function a32_0x5997(){const _0x138142=['write','score','/update','query','map','verbose','title','/client/knowledge-base/personal/create','createTime','8203563DvclOT','metadata','2244473tuvXgU','string','read','Personal\x20knowledge-base\x20entry\x20ID','build','713823KLxLje','File\x20path\x20is\x20required.','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','validation','topk','search','1208643QKmNCd','bool','20oOJdaY','create','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','flag','isFinite','POST','content','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','578515mKCBbz','description','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','18yxyBZF','userId','Override\x20the\x20existing\x20entry\x20title','/client/knowledge-base/personal/','weightedScore','num','utf8','appCode','str','updateTime','23520nvWWfC','isFile','4QCbfrN','file','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','--topk\x20must\x20be\x20a\x20positive\x20number.','ragStatus','number','docId','ragErrorMessage','4014796qylvqw','8OYgKuL','version','scope','body','File\x20not\x20found:\x20','detail','length','update','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id'];a32_0x5997=function(){return _0x138142;};return a32_0x5997();}const a32_0x55c939=a32_0x5317;(function(_0x33920f,_0x542c21){const _0x17d342=a32_0x5317,_0x1328a7=_0x33920f();while(!![]){try{const _0x55a557=parseInt(_0x17d342(0x1f7))/0x1+-parseInt(_0x17d342(0x206))/0x2*(parseInt(_0x17d342(0x1ed))/0x3)+-parseInt(_0x17d342(0x20e))/0x4+-parseInt(_0x17d342(0x204))/0x5+-parseInt(_0x17d342(0x1fa))/0x6*(-parseInt(_0x17d342(0x223))/0x7)+-parseInt(_0x17d342(0x20f))/0x8*(-parseInt(_0x17d342(0x221))/0x9)+-parseInt(_0x17d342(0x1ef))/0xa*(parseInt(_0x17d342(0x1e7))/0xb);if(_0x55a557===_0x542c21)break;else _0x1328a7['push'](_0x1328a7['shift']());}catch(_0x44abde){_0x1328a7['push'](_0x1328a7['shift']());}}}(a32_0x5997,0x7c054));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';function a32_0x5317(_0x21ea04,_0x1ea9af){_0x21ea04=_0x21ea04-0x1e4;const _0x599784=a32_0x5997();let _0x53175a=_0x599784[_0x21ea04];return _0x53175a;}const TITLE_FLAG={'name':a32_0x55c939(0x21e),'type':a32_0x55c939(0x224),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':a32_0x55c939(0x207),'type':'string','required':!![],'description':a32_0x55c939(0x1f9)},QUERY_FLAG={'name':a32_0x55c939(0x21b),'type':a32_0x55c939(0x224),'required':!![],'description':a32_0x55c939(0x1f6)},TOPK_FLAG={'name':a32_0x55c939(0x1eb),'type':a32_0x55c939(0x20b),'description':a32_0x55c939(0x208)};function readKnowledgeFile(_0x449259){const _0x265164=a32_0x55c939;if(!_0x449259)throw CliErrors['validation'](_0x265164(0x1e8));if(!existsSync(_0x449259))throw CliErrors['validation'](_0x265164(0x213)+_0x449259);if(!statSync(_0x449259)[_0x265164(0x205)]())throw CliErrors[_0x265164(0x1ea)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x449259);return readFileSync(_0x449259,_0x265164(0x200));}function summarizePersonalItem(_0x2f0ad3){const _0x51ed3b=a32_0x55c939;return{'id':_0x2f0ad3['id'],'title':_0x2f0ad3[_0x51ed3b(0x21e)],'version':_0x2f0ad3['version'],'ragStatus':_0x2f0ad3['ragStatus'],'ragErrorMessage':_0x2f0ad3['ragErrorMessage'],'updateTime':_0x2f0ad3[_0x51ed3b(0x203)]};}function detailPersonalItem(_0x24d278){const _0x1f8257=a32_0x55c939;return{'id':_0x24d278['id'],'appCode':_0x24d278['appCode'],'scope':_0x24d278[_0x1f8257(0x211)],'userId':_0x24d278[_0x1f8257(0x1fb)],'title':_0x24d278['title'],'content':_0x24d278[_0x1f8257(0x1f5)]??'','version':_0x24d278[_0x1f8257(0x210)],'ragStatus':_0x24d278[_0x1f8257(0x20a)],'ragErrorMessage':_0x24d278[_0x1f8257(0x20d)],'createTime':_0x24d278[_0x1f8257(0x220)],'updateTime':_0x24d278['updateTime']};}function summarizeSearchHit(_0x1c3a9b){const _0x393bc7=a32_0x55c939;return{'scope':_0x1c3a9b[_0x393bc7(0x211)],'title':_0x1c3a9b['title'],'docId':_0x1c3a9b[_0x393bc7(0x20c)],'score':_0x1c3a9b[_0x393bc7(0x219)],'weightedScore':_0x1c3a9b[_0x393bc7(0x1fe)],'content':_0x1c3a9b[_0x393bc7(0x1f5)],'metadata':_0x1c3a9b[_0x393bc7(0x222)]};}function readTopK(_0x3090d2){const _0x21e0d9=a32_0x55c939,_0x1e7a2d=_0x3090d2[_0x21e0d9(0x1f2)](_0x21e0d9(0x1eb));if(_0x1e7a2d===undefined||_0x1e7a2d===null||_0x1e7a2d==='')return undefined;const _0x325858=_0x3090d2[_0x21e0d9(0x1ff)]('topk');if(!Number[_0x21e0d9(0x1f3)](_0x325858)||_0x325858<0x1)throw CliErrors[_0x21e0d9(0x1ea)](_0x21e0d9(0x209));return _0x325858;}const kbList={'service':'kb','command':'list','description':a32_0x55c939(0x1f1),'risk':a32_0x55c939(0x1e4),'flags':[VERBOSE_FLAG],async 'execute'(_0x44109b){const _0x27748c=a32_0x55c939,_0x230350=await listPersonalKnowledgeBaseItems(_0x44109b[_0x27748c(0x201)]);if(_0x44109b[_0x27748c(0x1ee)](_0x27748c(0x21d)))return{'ok':!![],'data':{'total':_0x230350['length'],'items':_0x230350}};return{'ok':!![],'data':{'total':_0x230350['length'],'items':_0x230350[_0x27748c(0x21c)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a32_0x55c939(0x214),'description':a32_0x55c939(0x217),'risk':'read','flags':[{...ID_FLAG,'description':a32_0x55c939(0x1e5)}],async 'execute'(_0x3d4961){const _0x206904=a32_0x55c939,_0x4a85f7=await getPersonalKnowledgeBaseItem(_0x3d4961[_0x206904(0x1ff)]('id'),_0x3d4961[_0x206904(0x201)]);return{'ok':!![],'data':detailPersonalItem(_0x4a85f7)};}},kbCreate={'service':'kb','command':a32_0x55c939(0x1f0),'description':'根据本地文件创建个人知识库条目','risk':a32_0x55c939(0x218),'confirmationDescription':'把本地文件内容保存为个人知识库条目,并进入后续检索同步流程。','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x272f62){const _0x1399fc=a32_0x55c939,_0xaea9c8=_0x272f62['str'](_0x1399fc(0x21e)),_0x482d9f=readKnowledgeFile(_0x272f62[_0x1399fc(0x202)]('file')),_0x6bdedd=await createPersonalKnowledgeBaseItem(_0x272f62[_0x1399fc(0x201)],{'title':_0xaea9c8,'content':_0x482d9f});return{'ok':!![],'data':summarizePersonalItem(_0x6bdedd),'message':'Created\x20KB\x20entry\x20'+_0x6bdedd['id']+'\x20('+_0x6bdedd[_0x1399fc(0x21e)]+')'};},async 'dryRun'(_0x3ee94f){const _0x43f1e8=a32_0x55c939,_0x4a0fc8=_0x3ee94f[_0x43f1e8(0x202)]('title'),_0x2e1495=readKnowledgeFile(_0x3ee94f['str'](_0x43f1e8(0x207)));return dryRun(_0x43f1e8(0x1f4),_0x43f1e8(0x21f))[_0x43f1e8(0x212)]({'appCode':_0x3ee94f['appCode'],'title':_0x4a0fc8,'content':_0x2e1495})[_0x43f1e8(0x1f8)](_0x43f1e8(0x1e9)+_0x4a0fc8+'\x22')['build']();}},kbUpdate={'service':'kb','command':a32_0x55c939(0x216),'description':'根据本地文件更新个人知识库条目','risk':a32_0x55c939(0x218),'confirmationDescription':'用本地文件内容替换个人知识库条目正文,并触发新的检索同步。','flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a32_0x55c939(0x1fc)},FILE_FLAG],async 'execute'(_0x249733){const _0x393fe5=a32_0x55c939,_0x407824=_0x249733[_0x393fe5(0x1ff)]('id'),_0x326051=readKnowledgeFile(_0x249733['str']('file')),_0x2159c6=_0x249733[_0x393fe5(0x202)](_0x393fe5(0x21e))||(await getPersonalKnowledgeBaseItem(_0x407824,_0x249733[_0x393fe5(0x201)]))[_0x393fe5(0x21e)],_0x1bc721=await updatePersonalKnowledgeBaseItem(_0x407824,_0x249733['appCode'],{'title':_0x2159c6,'content':_0x326051});return{'ok':!![],'data':summarizePersonalItem(_0x1bc721),'message':'Updated\x20KB\x20entry\x20'+_0x1bc721['id']+'\x20('+_0x1bc721['title']+')'};},async 'dryRun'(_0x705d22){const _0x5218fd=a32_0x55c939,_0x4bb0d3=_0x705d22[_0x5218fd(0x1ff)]('id'),_0x195582=readKnowledgeFile(_0x705d22[_0x5218fd(0x202)](_0x5218fd(0x207))),_0xa64a5=_0x705d22[_0x5218fd(0x202)](_0x5218fd(0x21e))||(await getPersonalKnowledgeBaseItem(_0x4bb0d3,_0x705d22['appCode']))['title'];return dryRun('POST',_0x5218fd(0x1fd)+_0x4bb0d3+_0x5218fd(0x21a))[_0x5218fd(0x212)]({'appCode':_0x705d22[_0x5218fd(0x201)],'title':_0xa64a5,'content':_0x195582})[_0x5218fd(0x1f8)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x4bb0d3)[_0x5218fd(0x1e6)]();}},kbSearch={'service':'kb','command':a32_0x55c939(0x1ec),'description':'Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','risk':a32_0x55c939(0x1e4),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x19c9cb){const _0x331790=a32_0x55c939;if(!_0x19c9cb[_0x331790(0x202)](_0x331790(0x21b))['trim']())throw CliErrors[_0x331790(0x1ea)]('Search\x20query\x20is\x20required.');readTopK(_0x19c9cb);},async 'execute'(_0x41b16f){const _0x14ad97=a32_0x55c939,_0x7a39fa=_0x41b16f[_0x14ad97(0x202)](_0x14ad97(0x21b))['trim'](),_0x537ea8=readTopK(_0x41b16f),_0x2ff74d=await searchKnowledgeBase(_0x41b16f[_0x14ad97(0x201)],{'query':_0x7a39fa,'topK':_0x537ea8});return{'ok':!![],'data':{'total':_0x2ff74d[_0x14ad97(0x215)],'hits':_0x2ff74d[_0x14ad97(0x21c)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a32_0x2d4647=a32_0x5421;(function(_0x45cf81,_0x4c08cb){const _0x5b831f=a32_0x5421,_0x2230e2=_0x45cf81();while(!![]){try{const _0x2619c5=parseInt(_0x5b831f(0xf7))/0x1+-parseInt(_0x5b831f(0xf9))/0x2+-parseInt(_0x5b831f(0xd9))/0x3*(-parseInt(_0x5b831f(0xda))/0x4)+parseInt(_0x5b831f(0xd6))/0x5*(-parseInt(_0x5b831f(0xbd))/0x6)+-parseInt(_0x5b831f(0xe2))/0x7*(-parseInt(_0x5b831f(0xc4))/0x8)+parseInt(_0x5b831f(0xfc))/0x9+-parseInt(_0x5b831f(0xe8))/0xa;if(_0x2619c5===_0x4c08cb)break;else _0x2230e2['push'](_0x2230e2['shift']());}catch(_0x567979){_0x2230e2['push'](_0x2230e2['shift']());}}}(a32_0xcfe4,0xa377b));function a32_0xcfe4(){const _0x1f7bc9=['把本地文件内容保存为个人知识库条目,并进入后续检索同步流程。','/client/knowledge-base/personal/','isFinite','update','Personal\x20knowledge-base\x20entry\x20ID','updateTime','query','detail','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','metadata','433217MMSKYz','file','1236388pwXrth','build','ragErrorMessage','9152748wcIXeU','content','12OiCuaH','/update','appCode','File\x20path\x20is\x20required.','search','score','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','8AMKcgf','Updated\x20KB\x20entry\x20','根据本地文件更新个人知识库条目','trim','POST','title','number','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','docId','validation','topk','verbose','body','用本地文件内容替换个人知识库条目正文,并触发新的检索同步。','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','list','userId','File\x20is\x20not\x20a\x20regular\x20file:\x20','396920xwRcFL','create','num','1461fummSD','1820xototA','createTime','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','Search\x20query\x20is\x20required.','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','/client/knowledge-base/personal/create','length','scope','3833627nXAbcR','Personal\x20knowledge-base\x20entry\x20title','bool','string','weightedScore','read','7729100nyNnvG','description','File\x20not\x20found:\x20','根据本地文件创建个人知识库条目','str'];a32_0xcfe4=function(){return _0x1f7bc9;};return a32_0xcfe4();}import{existsSync,readFileSync,statSync}from'node:fs';function a32_0x5421(_0xed0c7d,_0x3abd1c){_0xed0c7d=_0xed0c7d-0xbd;const _0xcfe4c9=a32_0xcfe4();let _0x5421a3=_0xcfe4c9[_0xed0c7d];return _0x5421a3;}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_0x2d4647(0xc9),'type':a32_0x2d4647(0xe5),'required':!![],'description':a32_0x2d4647(0xe3)},FILE_FLAG={'name':a32_0x2d4647(0xf8),'type':'string','required':!![],'description':a32_0x2d4647(0xdc)},QUERY_FLAG={'name':a32_0x2d4647(0xf3),'type':a32_0x2d4647(0xe5),'required':!![],'description':a32_0x2d4647(0xde)},TOPK_FLAG={'name':'topk','type':a32_0x2d4647(0xca),'description':a32_0x2d4647(0xd2)};function readKnowledgeFile(_0x18f231){const _0x38cb8c=a32_0x2d4647;if(!_0x18f231)throw CliErrors['validation'](_0x38cb8c(0xc0));if(!existsSync(_0x18f231))throw CliErrors['validation'](_0x38cb8c(0xea)+_0x18f231);if(!statSync(_0x18f231)['isFile']())throw CliErrors[_0x38cb8c(0xcd)](_0x38cb8c(0xd5)+_0x18f231);return readFileSync(_0x18f231,'utf8');}function summarizePersonalItem(_0x3d058a){const _0x5c7f7b=a32_0x2d4647;return{'id':_0x3d058a['id'],'title':_0x3d058a[_0x5c7f7b(0xc9)],'version':_0x3d058a['version'],'ragStatus':_0x3d058a['ragStatus'],'ragErrorMessage':_0x3d058a[_0x5c7f7b(0xfb)],'updateTime':_0x3d058a['updateTime']};}function detailPersonalItem(_0x120558){const _0x480243=a32_0x2d4647;return{'id':_0x120558['id'],'appCode':_0x120558[_0x480243(0xbf)],'scope':_0x120558['scope'],'userId':_0x120558[_0x480243(0xd4)],'title':_0x120558[_0x480243(0xc9)],'content':_0x120558[_0x480243(0xfd)]??'','version':_0x120558['version'],'ragStatus':_0x120558['ragStatus'],'ragErrorMessage':_0x120558[_0x480243(0xfb)],'createTime':_0x120558[_0x480243(0xdb)],'updateTime':_0x120558[_0x480243(0xf2)]};}function summarizeSearchHit(_0x2d9424){const _0x55c4af=a32_0x2d4647;return{'scope':_0x2d9424[_0x55c4af(0xe1)],'title':_0x2d9424['title'],'docId':_0x2d9424[_0x55c4af(0xcc)],'score':_0x2d9424[_0x55c4af(0xc2)],'weightedScore':_0x2d9424[_0x55c4af(0xe6)],'content':_0x2d9424[_0x55c4af(0xfd)],'metadata':_0x2d9424[_0x55c4af(0xf6)]};}function readTopK(_0x71827c){const _0x58d779=a32_0x2d4647,_0x1bfb63=_0x71827c['flag'](_0x58d779(0xce));if(_0x1bfb63===undefined||_0x1bfb63===null||_0x1bfb63==='')return undefined;const _0x83eeae=_0x71827c[_0x58d779(0xd8)](_0x58d779(0xce));if(!Number[_0x58d779(0xef)](_0x83eeae)||_0x83eeae<0x1)throw CliErrors[_0x58d779(0xcd)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x83eeae;}const kbList={'service':'kb','command':a32_0x2d4647(0xd3),'description':a32_0x2d4647(0xc3),'risk':a32_0x2d4647(0xe7),'flags':[VERBOSE_FLAG],async 'execute'(_0x2f9f11){const _0x2eab53=a32_0x2d4647,_0x3f242a=await listPersonalKnowledgeBaseItems(_0x2f9f11[_0x2eab53(0xbf)]);if(_0x2f9f11[_0x2eab53(0xe4)](_0x2eab53(0xcf)))return{'ok':!![],'data':{'total':_0x3f242a['length'],'items':_0x3f242a}};return{'ok':!![],'data':{'total':_0x3f242a[_0x2eab53(0xe0)],'items':_0x3f242a['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a32_0x2d4647(0xf4),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a32_0x2d4647(0xf1)}],async 'execute'(_0xfd4f99){const _0x719be=a32_0x2d4647,_0x5ca12e=await getPersonalKnowledgeBaseItem(_0xfd4f99[_0x719be(0xd8)]('id'),_0xfd4f99[_0x719be(0xbf)]);return{'ok':!![],'data':detailPersonalItem(_0x5ca12e)};}},kbCreate={'service':'kb','command':a32_0x2d4647(0xd7),'description':a32_0x2d4647(0xeb),'risk':'write','confirmationDescription':a32_0x2d4647(0xed),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x4e5249){const _0x28245b=a32_0x2d4647,_0x5ad6e3=_0x4e5249[_0x28245b(0xec)](_0x28245b(0xc9)),_0x2a8c7a=readKnowledgeFile(_0x4e5249['str'](_0x28245b(0xf8))),_0x962f7d=await createPersonalKnowledgeBaseItem(_0x4e5249[_0x28245b(0xbf)],{'title':_0x5ad6e3,'content':_0x2a8c7a});return{'ok':!![],'data':summarizePersonalItem(_0x962f7d),'message':'Created\x20KB\x20entry\x20'+_0x962f7d['id']+'\x20('+_0x962f7d['title']+')'};},async 'dryRun'(_0x4364e8){const _0x3d7ddf=a32_0x2d4647,_0x272dd3=_0x4364e8[_0x3d7ddf(0xec)](_0x3d7ddf(0xc9)),_0x1309ca=readKnowledgeFile(_0x4364e8[_0x3d7ddf(0xec)](_0x3d7ddf(0xf8)));return dryRun(_0x3d7ddf(0xc8),_0x3d7ddf(0xdf))[_0x3d7ddf(0xd0)]({'appCode':_0x4364e8[_0x3d7ddf(0xbf)],'title':_0x272dd3,'content':_0x1309ca})[_0x3d7ddf(0xe9)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x272dd3+'\x22')[_0x3d7ddf(0xfa)]();}},kbUpdate={'service':'kb','command':a32_0x2d4647(0xf0),'description':a32_0x2d4647(0xc6),'risk':'write','confirmationDescription':a32_0x2d4647(0xd1),'flags':[{...ID_FLAG,'description':a32_0x2d4647(0xf1)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x172160){const _0x3dfbaf=a32_0x2d4647,_0x3e4676=_0x172160['num']('id'),_0x3fcb48=readKnowledgeFile(_0x172160[_0x3dfbaf(0xec)](_0x3dfbaf(0xf8))),_0x1b8a9c=_0x172160[_0x3dfbaf(0xec)](_0x3dfbaf(0xc9))||(await getPersonalKnowledgeBaseItem(_0x3e4676,_0x172160[_0x3dfbaf(0xbf)]))['title'],_0x255237=await updatePersonalKnowledgeBaseItem(_0x3e4676,_0x172160[_0x3dfbaf(0xbf)],{'title':_0x1b8a9c,'content':_0x3fcb48});return{'ok':!![],'data':summarizePersonalItem(_0x255237),'message':_0x3dfbaf(0xc5)+_0x255237['id']+'\x20('+_0x255237[_0x3dfbaf(0xc9)]+')'};},async 'dryRun'(_0x2fbc06){const _0x5d349a=a32_0x2d4647,_0x4899ec=_0x2fbc06['num']('id'),_0x155ac3=readKnowledgeFile(_0x2fbc06[_0x5d349a(0xec)]('file')),_0x580bbe=_0x2fbc06[_0x5d349a(0xec)]('title')||(await getPersonalKnowledgeBaseItem(_0x4899ec,_0x2fbc06[_0x5d349a(0xbf)]))['title'];return dryRun(_0x5d349a(0xc8),_0x5d349a(0xee)+_0x4899ec+_0x5d349a(0xbe))[_0x5d349a(0xd0)]({'appCode':_0x2fbc06['appCode'],'title':_0x580bbe,'content':_0x155ac3})[_0x5d349a(0xe9)](_0x5d349a(0xf5)+_0x4899ec)[_0x5d349a(0xfa)]();}},kbSearch={'service':'kb','command':a32_0x2d4647(0xc1),'description':a32_0x2d4647(0xcb),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x444fbe){const _0x3c1fab=a32_0x2d4647;if(!_0x444fbe['str'](_0x3c1fab(0xf3))[_0x3c1fab(0xc7)]())throw CliErrors[_0x3c1fab(0xcd)](_0x3c1fab(0xdd));readTopK(_0x444fbe);},async 'execute'(_0x464ab8){const _0x5f4efe=a32_0x2d4647,_0x46647=_0x464ab8[_0x5f4efe(0xec)]('query')[_0x5f4efe(0xc7)](),_0x5b438e=readTopK(_0x464ab8),_0x36383c=await searchKnowledgeBase(_0x464ab8[_0x5f4efe(0xbf)],{'query':_0x46647,'topK':_0x5b438e});return{'ok':!![],'data':{'total':_0x36383c[_0x5f4efe(0xe0)],'hits':_0x36383c['map'](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
@@ -1 +1 @@
1
- const a33_0x262343=a33_0x52f4;(function(_0x3b3c08,_0x2a0793){const _0xf27cef=a33_0x52f4,_0x16181d=_0x3b3c08();while(!![]){try{const _0x1458b6=parseInt(_0xf27cef(0x132))/0x1*(-parseInt(_0xf27cef(0x12c))/0x2)+-parseInt(_0xf27cef(0x12f))/0x3*(parseInt(_0xf27cef(0x131))/0x4)+parseInt(_0xf27cef(0x12e))/0x5+-parseInt(_0xf27cef(0x149))/0x6*(parseInt(_0xf27cef(0x14a))/0x7)+-parseInt(_0xf27cef(0x12d))/0x8*(-parseInt(_0xf27cef(0x13b))/0x9)+-parseInt(_0xf27cef(0x140))/0xa+parseInt(_0xf27cef(0x13f))/0xb;if(_0x1458b6===_0x2a0793)break;else _0x16181d['push'](_0x16181d['shift']());}catch(_0x396e47){_0x16181d['push'](_0x16181d['shift']());}}}(a33_0x2b4a,0x97dea));function a33_0x2b4a(){const _0x596037=['349395faWZZd','695364UekIyF','read','4cjtxFk','1ylnLpg','show','command','stringify','logs','View\x20command\x20history\x20logs','readLogs','success','write','118521QjlTJB','\x20logs:\x0a','clearLogs','error','20413657FEpZQw','452920QjdjqG','toLocaleString','log','details','\x20\x20\x20Duration:\x20','en-US','level','message','clear','156HhjoQE','303401opkUOP','清除命令历史日志','duration','\x20\x20\x20Details:\x20','length','warn','keys','1563866PtJQTy','536lfUxQE'];a33_0x2b4a=function(){return _0x596037;};return a33_0x2b4a();}function a33_0x52f4(_0x407e0b,_0x3a27f0){_0x407e0b=_0x407e0b-0x12c;const _0x2b4a03=a33_0x2b4a();let _0x52f4e0=_0x2b4a03[_0x407e0b];return _0x52f4e0;}import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x1454ec){const _0x120348=a33_0x52f4;if(_0x1454ec['length']===0x0){console[_0x120348(0x142)]('*\x20No\x20logs\x20found');return;}console[_0x120348(0x142)]('*\x20'+CLI_DISPLAY_NAME+_0x120348(0x13c)),_0x1454ec['forEach']((_0x5801b7,_0x10be82)=>{const _0x32130c=_0x120348,_0x11c763=new Date(_0x5801b7['timestamp'])[_0x32130c(0x141)](_0x32130c(0x145)),_0x135df2=_0x5801b7['level']===_0x32130c(0x139)?'√':_0x5801b7[_0x32130c(0x146)]===_0x32130c(0x13e)?'×':_0x5801b7[_0x32130c(0x146)]===_0x32130c(0x14f)?'!':'i';console[_0x32130c(0x142)](_0x10be82+0x1+'.\x20'+_0x135df2+'\x20['+_0x5801b7[_0x32130c(0x134)]+']\x20'+_0x5801b7[_0x32130c(0x147)]),console[_0x32130c(0x142)]('\x20\x20\x20Time:\x20'+_0x11c763),_0x5801b7[_0x32130c(0x14c)]&&console[_0x32130c(0x142)](_0x32130c(0x144)+_0x5801b7['duration']+'ms'),_0x5801b7[_0x32130c(0x143)]&&Object[_0x32130c(0x150)](_0x5801b7[_0x32130c(0x143)])[_0x32130c(0x14e)]>0x0&&console[_0x32130c(0x142)](_0x32130c(0x14d)+JSON[_0x32130c(0x135)](_0x5801b7[_0x32130c(0x143)],null,0x2)),console[_0x32130c(0x142)]('');});}export const logsDefinitions=[{'service':a33_0x262343(0x136),'command':a33_0x262343(0x133),'description':a33_0x262343(0x137),'risk':a33_0x262343(0x130),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x20af2c){const _0x5b407b=a33_0x262343;return printLogs(logger[_0x5b407b(0x138)]()),{'ok':!![]};}},{'service':'logs','command':a33_0x262343(0x148),'description':a33_0x262343(0x14b),'risk':a33_0x262343(0x13a),'confirmationDescription':'将永久清空当前工作目录下的\x20Lovrabet\x20CLI\x20本地诊断日志;不会影响平台业务数据。','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x23caf0){const _0x5d53f7=a33_0x262343;return logger[_0x5d53f7(0x13d)](),console[_0x5d53f7(0x142)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
1
+ const a33_0x1171d8=a33_0x340a;function a33_0x3d21(){const _0x25fc08=['\x20\x20\x20Time:\x20','750726phcKZY','message','forEach','将永久清空当前工作目录下的\x20Lovrabet\x20CLI\x20本地诊断日志;不会影响平台业务数据。','1710zkKpAy','*\x20No\x20logs\x20found','312dQRhcL','\x20logs:\x0a','409509TVHLTO','level','\x20\x20\x20Details:\x20','*\x20Logs\x20cleared','26719bOktBp','log','clear','2246656tZhixC','toLocaleString','277833DFlPJq','en-US','error','95ImoGNY','read','86436TDCmBb','readLogs','success','清除命令历史日志','28237ZHdOQT','keys','length','\x20\x20\x20Duration:\x20','4GXKZfP','details','command','show','timestamp','logs'];a33_0x3d21=function(){return _0x25fc08;};return a33_0x3d21();}(function(_0x382595,_0x46be1d){const _0x1dab54=a33_0x340a,_0x250a64=_0x382595();while(!![]){try{const _0xa0683b=parseInt(_0x1dab54(0x72))/0x1+parseInt(_0x1dab54(0x88))/0x2*(-parseInt(_0x1dab54(0x7b))/0x3)+parseInt(_0x1dab54(0x80))/0x4*(-parseInt(_0x1dab54(0x7e))/0x5)+-parseInt(_0x1dab54(0x70))/0x6*(parseInt(_0x1dab54(0x76))/0x7)+parseInt(_0x1dab54(0x79))/0x8+parseInt(_0x1dab54(0x8f))/0x9+parseInt(_0x1dab54(0x93))/0xa*(parseInt(_0x1dab54(0x84))/0xb);if(_0xa0683b===_0x46be1d)break;else _0x250a64['push'](_0x250a64['shift']());}catch(_0x3eb9ba){_0x250a64['push'](_0x250a64['shift']());}}}(a33_0x3d21,0x66283));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0x21c4c0){const _0x3978d9=a33_0x340a;if(_0x21c4c0[_0x3978d9(0x86)]===0x0){console[_0x3978d9(0x77)](_0x3978d9(0x6f));return;}console[_0x3978d9(0x77)]('*\x20'+CLI_DISPLAY_NAME+_0x3978d9(0x71)),_0x21c4c0[_0x3978d9(0x91)]((_0x3bb833,_0x537d12)=>{const _0x3cb724=_0x3978d9,_0x1e349b=new Date(_0x3bb833[_0x3cb724(0x8c)])[_0x3cb724(0x7a)](_0x3cb724(0x7c)),_0x7761e=_0x3bb833['level']===_0x3cb724(0x82)?'√':_0x3bb833[_0x3cb724(0x73)]===_0x3cb724(0x7d)?'×':_0x3bb833['level']==='warn'?'!':'i';console['log'](_0x537d12+0x1+'.\x20'+_0x7761e+'\x20['+_0x3bb833[_0x3cb724(0x8a)]+']\x20'+_0x3bb833[_0x3cb724(0x90)]),console[_0x3cb724(0x77)](_0x3cb724(0x8e)+_0x1e349b),_0x3bb833['duration']&&console[_0x3cb724(0x77)](_0x3cb724(0x87)+_0x3bb833['duration']+'ms'),_0x3bb833[_0x3cb724(0x89)]&&Object[_0x3cb724(0x85)](_0x3bb833['details'])[_0x3cb724(0x86)]>0x0&&console['log'](_0x3cb724(0x74)+JSON['stringify'](_0x3bb833['details'],null,0x2)),console[_0x3cb724(0x77)]('');});}function a33_0x340a(_0x516e2a,_0x1a4b02){_0x516e2a=_0x516e2a-0x6f;const _0x3d212c=a33_0x3d21();let _0x340a45=_0x3d212c[_0x516e2a];return _0x340a45;}export const logsDefinitions=[{'service':'logs','command':a33_0x1171d8(0x8b),'description':'View\x20command\x20history\x20logs','risk':a33_0x1171d8(0x7f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3ee25d){const _0x383b6f=a33_0x1171d8;return printLogs(logger[_0x383b6f(0x81)]()),{'ok':!![]};}},{'service':a33_0x1171d8(0x8d),'command':a33_0x1171d8(0x78),'description':a33_0x1171d8(0x83),'risk':'write','confirmationDescription':a33_0x1171d8(0x92),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x19983b){const _0xfb946=a33_0x1171d8;return logger['clearLogs'](),console[_0xfb946(0x77)](_0xfb946(0x75)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a34_0xd55abd=a34_0x3f36;(function(_0x23bad7,_0x52ad89){const _0x28ce57=a34_0x3f36,_0x4e757b=_0x23bad7();while(!![]){try{const _0x599855=-parseInt(_0x28ce57(0x171))/0x1+-parseInt(_0x28ce57(0x163))/0x2+parseInt(_0x28ce57(0x18e))/0x3+-parseInt(_0x28ce57(0x186))/0x4*(parseInt(_0x28ce57(0x173))/0x5)+-parseInt(_0x28ce57(0x178))/0x6*(-parseInt(_0x28ce57(0x17e))/0x7)+-parseInt(_0x28ce57(0x17c))/0x8+parseInt(_0x28ce57(0x16f))/0x9*(parseInt(_0x28ce57(0x167))/0xa);if(_0x599855===_0x52ad89)break;else _0x4e757b['push'](_0x4e757b['shift']());}catch(_0xea6c7c){_0x4e757b['push'](_0x4e757b['shift']());}}}(a34_0xcc9d,0x3a749));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=[a34_0xd55abd(0x185),'general',a34_0xd55abd(0x161),a34_0xd55abd(0x180)],SCENE_TO_LEGACY_TYPE={'invoice':a34_0xd55abd(0x188),'general':'General','form':a34_0xd55abd(0x182),'idCard':a34_0xd55abd(0x16a)},SCENE_FLAG={'name':a34_0xd55abd(0x18f),'type':a34_0xd55abd(0x169),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a34_0xd55abd(0x179),'type':a34_0xd55abd(0x169),'description':a34_0xd55abd(0x165)},IMAGE_URL_FLAG={'name':a34_0xd55abd(0x162),'type':a34_0xd55abd(0x169),'description':a34_0xd55abd(0x15e)};function normalizeScene(_0x1c6612){const _0x3c2016=a34_0xd55abd,_0x2bbae6=_0x1c6612[_0x3c2016(0x170)]()[_0x3c2016(0x184)]();if(_0x2bbae6==='idcard')return _0x3c2016(0x180);if(_0x2bbae6===_0x3c2016(0x185)||_0x2bbae6==='general'||_0x2bbae6===_0x3c2016(0x161))return _0x2bbae6;throw CliErrors['validation'](_0x3c2016(0x174)+_0x1c6612+_0x3c2016(0x181)+SUPPORTED_SCENES[_0x3c2016(0x177)](',\x20'));}function selectedInputs(_0x21bb77){const _0x349f60=a34_0xd55abd,_0x506294=_0x21bb77[_0x349f60(0x16e)]('image-file')[_0x349f60(0x170)](),_0x5d98a5=_0x21bb77[_0x349f60(0x16e)](_0x349f60(0x162))[_0x349f60(0x170)]();return{'imageFile':_0x506294,'imageUrl':_0x5d98a5,'count':[_0x506294,_0x5d98a5][_0x349f60(0x166)](Boolean)[_0x349f60(0x17f)]};}function a34_0x3f36(_0x16cce9,_0x2a8ae9){_0x16cce9=_0x16cce9-0x15d;const _0xcc9d34=a34_0xcc9d();let _0x3f36b1=_0xcc9d34[_0x16cce9];return _0x3f36b1;}function validateInputSelection(_0x2b4b2a){const _0x40397a=a34_0xd55abd,_0x9ede06=selectedInputs(_0x2b4b2a);if(_0x9ede06['count']!==0x1)throw CliErrors[_0x40397a(0x189)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x9ede06;}function withScene(_0x3a0e16,_0x6785ab,_0x524cb9){const _0x1ad1c3=a34_0xd55abd;return{..._0x3a0e16,'scene':_0x6785ab,..._0x524cb9?{'sourceFile':{'fileName':_0x524cb9['fileName'],'filePath':_0x524cb9[_0x1ad1c3(0x172)]}}:{}};}function a34_0xcc9d(){const _0x4b6dfc=['148508qZLSuu','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','filter','20GavoUs','description','string','IdCard','POST','imageUrl','apiError','str','1206270EUkOYG','trim','41480Xzlzmp','filePath','59005TBtgDl','Unsupported\x20OCR\x20scene:\x20','path','/client/queryFileUrl','join','6HyGYES','image-file','\x20OCR\x20from\x20URL','read','3183872EAYiSQ','/client/uploadFile','359527gzSBsL','length','idCard','.\x20Supported\x20scenes:\x20','Table','imageFile','toLowerCase','invoice','4PkZsqt','<filePath\x20returned\x20by\x20/client/uploadFile>','Invoice','validation','appCode','build','/client/ocr','ocr','1336593ZxCqrO','scene','fileUrl','recognize','Preview:\x20recognize\x20','Publicly\x20accessible\x20image\x20or\x20file\x20URL','body','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','form','image-url'];a34_0xcc9d=function(){return _0x4b6dfc;};return a34_0xcc9d();}const ocrRecognize={'service':a34_0xd55abd(0x18d),'command':a34_0xd55abd(0x191),'description':'使用运行态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','risk':a34_0xd55abd(0x17b),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0xc669b){const _0x515f21=a34_0xd55abd,_0xb5fc6c=normalizeScene(_0xc669b[_0x515f21(0x16e)](_0x515f21(0x18f))),_0x2172c0=SCENE_TO_LEGACY_TYPE[_0xb5fc6c],_0x27a59a=validateInputSelection(_0xc669b);if(_0x27a59a['imageUrl'])return dryRun(_0x515f21(0x16b),_0x515f21(0x18c))[_0x515f21(0x15f)]({'appCode':_0xc669b[_0x515f21(0x18a)],'url':_0x27a59a[_0x515f21(0x16c)],'type':_0x2172c0})[_0x515f21(0x168)](_0x515f21(0x15d)+_0xb5fc6c+_0x515f21(0x17a))[_0x515f21(0x18b)]();const _0x36e3b8=requireRuntimeUploadFile(_0x27a59a[_0x515f21(0x183)],_0x515f21(0x179));return dryRun(_0x515f21(0x16b),_0x515f21(0x17d))[_0x515f21(0x15f)]({'steps':[{'method':_0x515f21(0x16b),'url':_0x515f21(0x17d),'body':{'appCode':_0xc669b[_0x515f21(0x18a)],'multipart':{'file':_0x36e3b8}}},{'method':'POST','url':_0x515f21(0x176),'body':{'filePath':_0x515f21(0x187),'downloadFlag':![]}},{'method':_0x515f21(0x16b),'url':_0x515f21(0x18c),'body':{'appCode':_0xc669b['appCode'],'url':_0x515f21(0x164),'type':_0x2172c0}}]})[_0x515f21(0x168)](_0x515f21(0x160)+_0xb5fc6c+'\x20OCR')['build']();},async 'execute'(_0x8ec4de){const _0x48c354=a34_0xd55abd,_0x2b5c1f=normalizeScene(_0x8ec4de[_0x48c354(0x16e)]('scene')),_0x2c5e94=SCENE_TO_LEGACY_TYPE[_0x2b5c1f],_0x444ac4=validateInputSelection(_0x8ec4de);if(_0x444ac4[_0x48c354(0x16c)]){const _0x13790e=await recognizeRuntimeOcr(_0x8ec4de['appCode'],{'url':_0x444ac4[_0x48c354(0x16c)],'type':_0x2c5e94});return{'ok':!![],'data':withScene(_0x13790e,_0x2b5c1f)};}const _0x1def92=requireRuntimeUploadFile(_0x444ac4[_0x48c354(0x183)],'image-file'),_0x64c96b=await uploadRuntimeFile(_0x8ec4de[_0x48c354(0x18a)],_0x1def92[_0x48c354(0x175)]);if(!_0x64c96b[_0x48c354(0x172)])throw CliErrors[_0x48c354(0x16d)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x3229af=await queryRuntimeFileUrl(_0x64c96b[_0x48c354(0x172)],{'download':![]});if(!_0x3229af[_0x48c354(0x190)])throw CliErrors[_0x48c354(0x16d)]('File\x20URL\x20response\x20missing\x20fileUrl.');const _0x4dd23b=await recognizeRuntimeOcr(_0x8ec4de[_0x48c354(0x18a)],{'url':_0x3229af[_0x48c354(0x190)],'type':_0x2c5e94});return{'ok':!![],'data':withScene(_0x4dd23b,_0x2b5c1f,_0x64c96b)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a34_0x365baf=a34_0x390f;(function(_0x5aec4d,_0x261c63){const _0x23e3ec=a34_0x390f,_0x1c5b60=_0x5aec4d();while(!![]){try{const _0x38338b=-parseInt(_0x23e3ec(0xe2))/0x1+-parseInt(_0x23e3ec(0xdc))/0x2*(-parseInt(_0x23e3ec(0x10c))/0x3)+-parseInt(_0x23e3ec(0xf2))/0x4*(-parseInt(_0x23e3ec(0xd3))/0x5)+parseInt(_0x23e3ec(0xf0))/0x6+parseInt(_0x23e3ec(0x10a))/0x7*(parseInt(_0x23e3ec(0xf6))/0x8)+-parseInt(_0x23e3ec(0xf3))/0x9*(-parseInt(_0x23e3ec(0xfd))/0xa)+parseInt(_0x23e3ec(0xef))/0xb*(-parseInt(_0x23e3ec(0x108))/0xc);if(_0x38338b===_0x261c63)break;else _0x1c5b60['push'](_0x1c5b60['shift']());}catch(_0x536c10){_0x1c5b60['push'](_0x1c5b60['shift']());}}}(a34_0x206b,0xd0a2e));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=[a34_0x365baf(0xde),'general',a34_0x365baf(0xd4),a34_0x365baf(0xf8)],SCENE_TO_LEGACY_TYPE={'invoice':a34_0x365baf(0xe0),'general':a34_0x365baf(0xd5),'form':a34_0x365baf(0x102),'idCard':'IdCard'},SCENE_FLAG={'name':'scene','type':a34_0x365baf(0xd8),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a34_0x365baf(0xd2),'type':a34_0x365baf(0xd8),'description':a34_0x365baf(0x106)},IMAGE_URL_FLAG={'name':a34_0x365baf(0x104),'type':a34_0x365baf(0xd8),'description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x5b6819){const _0x46dbe4=a34_0x365baf,_0x2421c6=_0x5b6819[_0x46dbe4(0xee)]()[_0x46dbe4(0xe5)]();if(_0x2421c6===_0x46dbe4(0xe1))return _0x46dbe4(0xf8);if(_0x2421c6==='invoice'||_0x2421c6===_0x46dbe4(0xfb)||_0x2421c6===_0x46dbe4(0xd4))return _0x2421c6;throw CliErrors['validation'](_0x46dbe4(0xfe)+_0x5b6819+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES[_0x46dbe4(0x101)](',\x20'));}function selectedInputs(_0x4fd5a1){const _0xc4c3e9=a34_0x365baf,_0x1c434b=_0x4fd5a1[_0xc4c3e9(0xf7)]('image-file')[_0xc4c3e9(0xee)](),_0x425bde=_0x4fd5a1[_0xc4c3e9(0xf7)](_0xc4c3e9(0x104))[_0xc4c3e9(0xee)]();return{'imageFile':_0x1c434b,'imageUrl':_0x425bde,'count':[_0x1c434b,_0x425bde][_0xc4c3e9(0x10d)](Boolean)[_0xc4c3e9(0x100)]};}function a34_0x390f(_0x111a2a,_0x1225ed){_0x111a2a=_0x111a2a-0xd2;const _0x206bda=a34_0x206b();let _0x390ff7=_0x206bda[_0x111a2a];return _0x390ff7;}function validateInputSelection(_0x383396){const _0x4ec788=a34_0x365baf,_0x2d9b5a=selectedInputs(_0x383396);if(_0x2d9b5a[_0x4ec788(0xdf)]!==0x1)throw CliErrors[_0x4ec788(0xe7)](_0x4ec788(0xda));return _0x2d9b5a;}function a34_0x206b(){const _0x1f5279=['480571CsoFXP','\x20OCR\x20from\x20URL','3398874mHrLwo','filter','image-file','5906045PWSkzt','form','General','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','build','string','apiError','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','/client/queryFileUrl','2NuuFbU','File\x20URL\x20response\x20missing\x20fileUrl.','invoice','count','Invoice','idcard','21099HjshIm','path','File\x20upload\x20response\x20missing\x20filePath.','toLowerCase','使用运行态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','validation','\x20OCR','appCode','POST','description','fileName','/client/uploadFile','trim','152317fsRDNN','4396362roNNEk','body','4abtJok','18xXfWVA','ocr','imageFile','56XRPPRn','str','idCard','imageUrl','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','general','filePath','5434490eawElu','Unsupported\x20OCR\x20scene:\x20','fileUrl','length','join','Table','scene','image-url','<filePath\x20returned\x20by\x20/client/uploadFile>','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','read','3240JUrEmC','/client/ocr'];a34_0x206b=function(){return _0x1f5279;};return a34_0x206b();}function withScene(_0x4c5d49,_0x40c0fa,_0x2e3f4c){const _0x1a2f96=a34_0x365baf;return{..._0x4c5d49,'scene':_0x40c0fa,..._0x2e3f4c?{'sourceFile':{'fileName':_0x2e3f4c[_0x1a2f96(0xec)],'filePath':_0x2e3f4c[_0x1a2f96(0xfc)]}}:{}};}const ocrRecognize={'service':a34_0x365baf(0xf4),'command':'recognize','description':a34_0x365baf(0xe6),'risk':a34_0x365baf(0x107),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x36b34f){const _0x433a46=a34_0x365baf,_0x454ae8=normalizeScene(_0x36b34f['str'](_0x433a46(0x103))),_0x25825c=SCENE_TO_LEGACY_TYPE[_0x454ae8],_0x522ee2=validateInputSelection(_0x36b34f);if(_0x522ee2[_0x433a46(0xf9)])return dryRun(_0x433a46(0xea),'/client/ocr')[_0x433a46(0xf1)]({'appCode':_0x36b34f[_0x433a46(0xe9)],'url':_0x522ee2[_0x433a46(0xf9)],'type':_0x25825c})[_0x433a46(0xeb)]('Preview:\x20recognize\x20'+_0x454ae8+_0x433a46(0x10b))[_0x433a46(0xd7)]();const _0x29ccfd=requireRuntimeUploadFile(_0x522ee2[_0x433a46(0xf5)],_0x433a46(0xd2));return dryRun(_0x433a46(0xea),'/client/uploadFile')[_0x433a46(0xf1)]({'steps':[{'method':_0x433a46(0xea),'url':_0x433a46(0xed),'body':{'appCode':_0x36b34f['appCode'],'multipart':{'file':_0x29ccfd}}},{'method':_0x433a46(0xea),'url':_0x433a46(0xdb),'body':{'filePath':_0x433a46(0x105),'downloadFlag':![]}},{'method':'POST','url':_0x433a46(0x109),'body':{'appCode':_0x36b34f[_0x433a46(0xe9)],'url':_0x433a46(0xfa),'type':_0x25825c}}]})[_0x433a46(0xeb)](_0x433a46(0xd6)+_0x454ae8+_0x433a46(0xe8))['build']();},async 'execute'(_0x1c1ddb){const _0x462a4a=a34_0x365baf,_0x3e80af=normalizeScene(_0x1c1ddb[_0x462a4a(0xf7)](_0x462a4a(0x103))),_0x1fa4fb=SCENE_TO_LEGACY_TYPE[_0x3e80af],_0x3ef9c4=validateInputSelection(_0x1c1ddb);if(_0x3ef9c4[_0x462a4a(0xf9)]){const _0x3337e8=await recognizeRuntimeOcr(_0x1c1ddb[_0x462a4a(0xe9)],{'url':_0x3ef9c4[_0x462a4a(0xf9)],'type':_0x1fa4fb});return{'ok':!![],'data':withScene(_0x3337e8,_0x3e80af)};}const _0x1ea3c0=requireRuntimeUploadFile(_0x3ef9c4['imageFile'],'image-file'),_0x508545=await uploadRuntimeFile(_0x1c1ddb[_0x462a4a(0xe9)],_0x1ea3c0[_0x462a4a(0xe3)]);if(!_0x508545[_0x462a4a(0xfc)])throw CliErrors[_0x462a4a(0xd9)](_0x462a4a(0xe4));const _0x1a79f6=await queryRuntimeFileUrl(_0x508545['filePath'],{'download':![]});if(!_0x1a79f6[_0x462a4a(0xff)])throw CliErrors[_0x462a4a(0xd9)](_0x462a4a(0xdd));const _0x37321c=await recognizeRuntimeOcr(_0x1c1ddb[_0x462a4a(0xe9)],{'url':_0x1a79f6['fileUrl'],'type':_0x1fa4fb});return{'ok':!![],'data':withScene(_0x37321c,_0x3e80af,_0x508545)};}};export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- const a35_0x254dc7=a35_0x10ca;(function(_0x56f546,_0x16a8d4){const _0xd28655=a35_0x10ca,_0x3c850d=_0x56f546();while(!![]){try{const _0x3121d1=parseInt(_0xd28655(0x12a))/0x1+-parseInt(_0xd28655(0x153))/0x2+parseInt(_0xd28655(0x16f))/0x3*(parseInt(_0xd28655(0x164))/0x4)+-parseInt(_0xd28655(0x134))/0x5+parseInt(_0xd28655(0x13e))/0x6+parseInt(_0xd28655(0x163))/0x7*(parseInt(_0xd28655(0x142))/0x8)+-parseInt(_0xd28655(0x15e))/0x9*(parseInt(_0xd28655(0x14d))/0xa);if(_0x3121d1===_0x16a8d4)break;else _0x3c850d['push'](_0x3c850d['shift']());}catch(_0x7397e0){_0x3c850d['push'](_0x3c850d['shift']());}}}(a35_0x5cc0,0xbf34e));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a35_0x10ca(_0x48a3d2,_0x5791be){_0x48a3d2=_0x48a3d2-0x123;const _0x5cc0ec=a35_0x5cc0();let _0x10ca91=_0x5cc0ec[_0x48a3d2];return _0x10ca91;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a35_0x254dc7(0x15a),'type':a35_0x254dc7(0x16a),'description':a35_0x254dc7(0x160)},FUNCTION_NAME_FLAG={'name':'name','type':'string','required':!![],'description':a35_0x254dc7(0x158)},DESCRIPTION_FLAG={'name':'description','type':a35_0x254dc7(0x16a),'description':a35_0x254dc7(0x138)},SOURCE_SESSION_FLAG={'name':'source-session-id','type':a35_0x254dc7(0x16a),'description':a35_0x254dc7(0x14f)};function normalizeFunctionName(_0x35b534){const _0x2657e6=a35_0x254dc7,_0x1ca78e=String(_0x35b534||'')[_0x2657e6(0x13a)]();if(!_0x1ca78e||!FUNCTION_NAME_PATTERN['test'](_0x1ca78e))throw CliErrors['validation'](_0x2657e6(0x147));return _0x1ca78e;}function readScriptFile(_0x304a77){const _0x159fb7=a35_0x254dc7;if(!_0x304a77)throw CliErrors[_0x159fb7(0x16b)](_0x159fb7(0x151));if(!existsSync(_0x304a77))throw CliErrors[_0x159fb7(0x16b)](_0x159fb7(0x161)+_0x304a77);if(!statSync(_0x304a77)[_0x159fb7(0x13d)]())throw CliErrors[_0x159fb7(0x16b)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x304a77);const _0x3923c8=readFileSync(_0x304a77,_0x159fb7(0x16e));if(!_0x3923c8[_0x159fb7(0x13a)]())throw CliErrors['validation'](_0x159fb7(0x14c));return _0x3923c8;}function optionalTrimmed(_0x1332ba){const _0x17a601=a35_0x254dc7,_0x46dde0=String(_0x1332ba||'')[_0x17a601(0x13a)]();return _0x46dde0||undefined;}function summarizeBff(_0x409735){const _0x14a3a8=a35_0x254dc7;return{'id':_0x409735['id'],'appCode':_0x409735[_0x14a3a8(0x144)],'functionName':_0x409735[_0x14a3a8(0x12b)],'description':_0x409735['description'],'scriptType':_0x409735['scriptType'],'version':_0x409735[_0x14a3a8(0x127)],'gmtModified':_0x409735[_0x14a3a8(0x15d)],'updateTime':_0x409735[_0x14a3a8(0x15c)]};}function detailBff(_0x5891e7){const _0x8636ec=a35_0x254dc7;return{'id':_0x5891e7['id'],'appCode':_0x5891e7['appCode'],'functionName':_0x5891e7[_0x8636ec(0x12b)],'description':_0x5891e7[_0x8636ec(0x12e)],'scriptType':_0x5891e7[_0x8636ec(0x169)],'scriptContent':_0x5891e7[_0x8636ec(0x15f)]??'','config':_0x5891e7[_0x8636ec(0x156)],'version':_0x5891e7['version'],'createUserId':_0x5891e7[_0x8636ec(0x14b)],'gmtCreate':_0x5891e7[_0x8636ec(0x145)],'gmtModified':_0x5891e7[_0x8636ec(0x15d)],'createTime':_0x5891e7[_0x8636ec(0x157)],'updateTime':_0x5891e7[_0x8636ec(0x15c)]};}function buildCreateInput(_0x26469f){const _0x50cb74=a35_0x254dc7;return{'functionName':normalizeFunctionName(_0x26469f[_0x50cb74(0x12d)](_0x50cb74(0x14a))),...optionalTrimmed(_0x26469f[_0x50cb74(0x12d)](_0x50cb74(0x12e)))?{'description':optionalTrimmed(_0x26469f[_0x50cb74(0x12d)](_0x50cb74(0x12e)))}:{},'scriptContent':readScriptFile(_0x26469f[_0x50cb74(0x12d)](_0x50cb74(0x15a))),...optionalTrimmed(_0x26469f['str'](_0x50cb74(0x168)))?{'sourceSessionId':optionalTrimmed(_0x26469f[_0x50cb74(0x12d)](_0x50cb74(0x168)))}:{}};}function buildUpdateInput(_0x7d2333){const _0x3857eb=a35_0x254dc7,_0x1a75c0={};optionalTrimmed(_0x7d2333[_0x3857eb(0x12d)](_0x3857eb(0x14a)))&&(_0x1a75c0['functionName']=normalizeFunctionName(_0x7d2333[_0x3857eb(0x12d)](_0x3857eb(0x14a))));_0x7d2333[_0x3857eb(0x137)]('description')!==undefined&&(_0x1a75c0['description']=_0x7d2333[_0x3857eb(0x12d)](_0x3857eb(0x12e)));optionalTrimmed(_0x7d2333[_0x3857eb(0x12d)](_0x3857eb(0x15a)))&&(_0x1a75c0[_0x3857eb(0x15f)]=readScriptFile(_0x7d2333['str'](_0x3857eb(0x15a))));_0x7d2333[_0x3857eb(0x137)]('source-session-id')!==undefined&&(_0x1a75c0[_0x3857eb(0x149)]=_0x7d2333[_0x3857eb(0x12d)]('source-session-id'));if(Object[_0x3857eb(0x135)](_0x1a75c0)[_0x3857eb(0x166)]===0x0)throw CliErrors[_0x3857eb(0x16b)](_0x3857eb(0x139));return _0x1a75c0;}function a35_0x5cc0(){const _0x35f6f3=['write','bool','根据\x20ID\x20执行个人\x20BFF,并可传入\x20JSON\x20参数','2395775BRZBPF','keys','List\x20current\x20user\x27s\x20personal\x20BFF\x20scripts\x20for\x20the\x20current\x20app','flag','Personal\x20BFF\x20description','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','trim','detail','isArray','isFile','5771094WUyOEI','Preview:\x20create\x20personal\x20BFF\x20','params','把本地脚本保存为个人\x20BFF;之后可在当前应用中调用该脚本。','16Nxixkq','/client/runtime-bff/personal/create','appCode','gmtCreate','high-risk-write','--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.','POST','sourceSessionId','name','createUserId','Personal\x20BFF\x20script\x20file\x20is\x20blank.','10SMKNKX','map','Optional\x20source\x20RuntimeAgent\x20session\x20id','exec','File\x20path\x20is\x20required.','update','2847680Bffpfb','执行个人\x20BFF\x20脚本;脚本可能读取或修改业务数据,也可能调用外部服务。','body','config','createTime','Personal\x20BFF\x20functionName,\x20for\x20example\x20loadOrders','更新个人\x20BFF\x20的脚本或元信息;之后的调用将使用新版本。','file','Personal\x20BFF\x20script\x20ID','updateTime','gmtModified','6456519tpFAAT','scriptContent','Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file','File\x20not\x20found:\x20','Created\x20personal\x20BFF\x20','1216922sLaTKL','284168VQaydN','create','length','personal-bff','source-session-id','scriptType','string','validation','JSON\x20object\x20passed\x20to\x20the\x20personal\x20BFF\x20execution','Executed\x20personal\x20BFF\x20','utf8','24VymvOd','build','list','根据本地脚本文件创建个人\x20BFF','根据\x20ID\x20更新个人\x20BFF','version','read','num','1525691rqJhsI','functionName','Updated\x20personal\x20BFF\x20','str','description','Preview:\x20update\x20personal\x20BFF\x20','verbose'];a35_0x5cc0=function(){return _0x35f6f3;};return a35_0x5cc0();}function parseExecParams(_0x3a2b24){const _0x109de3=a35_0x254dc7,_0x4c866f=parseJsonParams(_0x3a2b24)??{};if(Array[_0x109de3(0x13c)](_0x4c866f))throw CliErrors[_0x109de3(0x16b)]('--params\x20must\x20be\x20a\x20JSON\x20object.');return _0x4c866f;}const personalBffList={'service':'personal-bff','command':a35_0x254dc7(0x124),'description':a35_0x254dc7(0x136),'risk':a35_0x254dc7(0x128),'flags':[VERBOSE_FLAG],async 'execute'(_0x40be84){const _0x1179f6=a35_0x254dc7,_0x1bb43d=await listPersonalBffs(_0x40be84[_0x1179f6(0x144)]);return{'ok':!![],'data':{'total':_0x1bb43d[_0x1179f6(0x166)],'items':_0x40be84[_0x1179f6(0x132)](_0x1179f6(0x130))?_0x1bb43d:_0x1bb43d[_0x1179f6(0x14e)](summarizeBff)}};}},personalBffDetail={'service':a35_0x254dc7(0x167),'command':a35_0x254dc7(0x13b),'description':'Show\x20one\x20personal\x20BFF\x20by\x20id','risk':a35_0x254dc7(0x128),'flags':[{...ID_FLAG,'description':a35_0x254dc7(0x15b)}],async 'execute'(_0xc0d0ec){const _0x3abf5d=a35_0x254dc7,_0xe04666=await getPersonalBff(_0xc0d0ec[_0x3abf5d(0x129)]('id'),_0xc0d0ec[_0x3abf5d(0x144)]);return{'ok':!![],'data':detailBff(_0xe04666)};}},personalBffCreate={'service':a35_0x254dc7(0x167),'command':a35_0x254dc7(0x165),'description':a35_0x254dc7(0x125),'risk':a35_0x254dc7(0x131),'confirmationDescription':a35_0x254dc7(0x141),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x3aadd1){const _0x320488=a35_0x254dc7,_0x1a630e=buildCreateInput(_0x3aadd1),_0x573003=await createPersonalBff(_0x3aadd1[_0x320488(0x144)],_0x1a630e);return{'ok':!![],'data':detailBff(_0x573003),'message':_0x320488(0x162)+_0x573003['id']+(_0x573003[_0x320488(0x12b)]?'\x20('+_0x573003[_0x320488(0x12b)]+')':'')};},async 'dryRun'(_0x3f8007){const _0x2cd7c3=a35_0x254dc7,_0x15019b=buildCreateInput(_0x3f8007);return dryRun(_0x2cd7c3(0x148),_0x2cd7c3(0x143))[_0x2cd7c3(0x155)]({'appCode':_0x3f8007[_0x2cd7c3(0x144)],..._0x15019b})['description'](_0x2cd7c3(0x13f)+_0x15019b['functionName'])[_0x2cd7c3(0x123)]();}},personalBffUpdate={'service':'personal-bff','command':a35_0x254dc7(0x152),'description':a35_0x254dc7(0x126),'risk':a35_0x254dc7(0x131),'confirmationDescription':a35_0x254dc7(0x159),'flags':[{...ID_FLAG,'description':'Personal\x20BFF\x20script\x20ID'},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0xaf61d9){const _0xa67f53=a35_0x254dc7,_0x160053=_0xaf61d9['num']('id'),_0x2438be=buildUpdateInput(_0xaf61d9),_0x100d21=await updatePersonalBff(_0x160053,_0xaf61d9[_0xa67f53(0x144)],_0x2438be);return{'ok':!![],'data':detailBff(_0x100d21),'message':_0xa67f53(0x12c)+_0x100d21['id']+(_0x100d21['functionName']?'\x20('+_0x100d21[_0xa67f53(0x12b)]+')':'')};},async 'dryRun'(_0x4db761){const _0x1f336e=a35_0x254dc7,_0x1a7e9c=_0x4db761['num']('id'),_0x4faab0=buildUpdateInput(_0x4db761);return dryRun(_0x1f336e(0x148),'/client/runtime-bff/personal/'+_0x1a7e9c+'/update')['body']({'appCode':_0x4db761[_0x1f336e(0x144)],..._0x4faab0})['description'](_0x1f336e(0x12f)+_0x1a7e9c)[_0x1f336e(0x123)]();}},personalBffExec={'service':a35_0x254dc7(0x167),'command':a35_0x254dc7(0x150),'description':a35_0x254dc7(0x133),'risk':a35_0x254dc7(0x146),'confirmationDescription':a35_0x254dc7(0x154),'flags':[{...ID_FLAG,'description':a35_0x254dc7(0x15b)},{...PARAMS_FLAG,'description':a35_0x254dc7(0x16c)}],async 'validate'(_0x30e537){const _0x3ad152=a35_0x254dc7;parseExecParams(_0x30e537[_0x3ad152(0x12d)]('params'));},async 'execute'(_0x489385){const _0x1a1d9c=a35_0x254dc7,_0x538c9b=_0x489385['num']('id'),_0x28e554=parseExecParams(_0x489385['str'](_0x1a1d9c(0x140))),_0x46f59e=await executePersonalBff(_0x538c9b,_0x489385[_0x1a1d9c(0x144)],_0x28e554);return{'ok':!![],'data':{'result':_0x46f59e},'message':_0x1a1d9c(0x16d)+_0x538c9b};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
1
+ const a35_0x2d05f7=a35_0x3453;(function(_0x2be189,_0x340386){const _0x409234=a35_0x3453,_0xab01dd=_0x2be189();while(!![]){try{const _0x387590=parseInt(_0x409234(0x15f))/0x1*(parseInt(_0x409234(0x164))/0x2)+parseInt(_0x409234(0x160))/0x3*(-parseInt(_0x409234(0x150))/0x4)+parseInt(_0x409234(0x161))/0x5*(-parseInt(_0x409234(0x12b))/0x6)+parseInt(_0x409234(0x139))/0x7*(-parseInt(_0x409234(0x165))/0x8)+-parseInt(_0x409234(0x14b))/0x9*(parseInt(_0x409234(0x15b))/0xa)+parseInt(_0x409234(0x156))/0xb*(-parseInt(_0x409234(0x15c))/0xc)+-parseInt(_0x409234(0x14f))/0xd*(-parseInt(_0x409234(0x125))/0xe);if(_0x387590===_0x340386)break;else _0xab01dd['push'](_0xab01dd['shift']());}catch(_0x422435){_0xab01dd['push'](_0xab01dd['shift']());}}}(a35_0x2c87,0x9a731));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalBff,executePersonalBff,getPersonalBff,listPersonalBffs,updatePersonalBff}from'../../core/api-client.js';import{ID_FLAG,PARAMS_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{parseJsonParams}from'../../utils/params.js';const FUNCTION_NAME_PATTERN=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,FILE_FLAG={'name':a35_0x2d05f7(0x158),'type':a35_0x2d05f7(0x13f),'description':'Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file'},FUNCTION_NAME_FLAG={'name':a35_0x2d05f7(0x147),'type':a35_0x2d05f7(0x13f),'required':!![],'description':a35_0x2d05f7(0x12f)},DESCRIPTION_FLAG={'name':a35_0x2d05f7(0x15e),'type':a35_0x2d05f7(0x13f),'description':a35_0x2d05f7(0x159)},SOURCE_SESSION_FLAG={'name':a35_0x2d05f7(0x14e),'type':'string','description':a35_0x2d05f7(0x162)};function normalizeFunctionName(_0x3fff79){const _0x4f7a62=a35_0x2d05f7,_0x33dad6=String(_0x3fff79||'')[_0x4f7a62(0x12d)]();if(!_0x33dad6||!FUNCTION_NAME_PATTERN[_0x4f7a62(0x148)](_0x33dad6))throw CliErrors[_0x4f7a62(0x11c)](_0x4f7a62(0x12a));return _0x33dad6;}function readScriptFile(_0x368cc1){const _0x4c72d1=a35_0x2d05f7;if(!_0x368cc1)throw CliErrors[_0x4c72d1(0x11c)](_0x4c72d1(0x157));if(!existsSync(_0x368cc1))throw CliErrors[_0x4c72d1(0x11c)](_0x4c72d1(0x135)+_0x368cc1);if(!statSync(_0x368cc1)[_0x4c72d1(0x142)]())throw CliErrors[_0x4c72d1(0x11c)](_0x4c72d1(0x15a)+_0x368cc1);const _0x5cc9b6=readFileSync(_0x368cc1,_0x4c72d1(0x143));if(!_0x5cc9b6['trim']())throw CliErrors[_0x4c72d1(0x11c)](_0x4c72d1(0x134));return _0x5cc9b6;}function optionalTrimmed(_0x3a6787){const _0x37b1cf=a35_0x2d05f7,_0x50ce0a=String(_0x3a6787||'')[_0x37b1cf(0x12d)]();return _0x50ce0a||undefined;}function summarizeBff(_0x2f653b){const _0x32f33c=a35_0x2d05f7;return{'id':_0x2f653b['id'],'appCode':_0x2f653b[_0x32f33c(0x11e)],'functionName':_0x2f653b['functionName'],'description':_0x2f653b[_0x32f33c(0x15e)],'scriptType':_0x2f653b[_0x32f33c(0x117)],'version':_0x2f653b[_0x32f33c(0x124)],'gmtModified':_0x2f653b[_0x32f33c(0x149)],'updateTime':_0x2f653b[_0x32f33c(0x13b)]};}function detailBff(_0x2ace30){const _0x3a3535=a35_0x2d05f7;return{'id':_0x2ace30['id'],'appCode':_0x2ace30[_0x3a3535(0x11e)],'functionName':_0x2ace30[_0x3a3535(0x154)],'description':_0x2ace30[_0x3a3535(0x15e)],'scriptType':_0x2ace30['scriptType'],'scriptContent':_0x2ace30[_0x3a3535(0x129)]??'','config':_0x2ace30[_0x3a3535(0x155)],'version':_0x2ace30['version'],'createUserId':_0x2ace30[_0x3a3535(0x12c)],'gmtCreate':_0x2ace30[_0x3a3535(0x120)],'gmtModified':_0x2ace30[_0x3a3535(0x149)],'createTime':_0x2ace30[_0x3a3535(0x138)],'updateTime':_0x2ace30['updateTime']};}function a35_0x3453(_0x5717e2,_0x152ccc){_0x5717e2=_0x5717e2-0x114;const _0x2c87dd=a35_0x2c87();let _0x3453c5=_0x2c87dd[_0x5717e2];return _0x3453c5;}function buildCreateInput(_0x56b26f){const _0xd0409e=a35_0x2d05f7;return{'functionName':normalizeFunctionName(_0x56b26f['str'](_0xd0409e(0x147))),...optionalTrimmed(_0x56b26f['str']('description'))?{'description':optionalTrimmed(_0x56b26f['str'](_0xd0409e(0x15e)))}:{},'scriptContent':readScriptFile(_0x56b26f['str'](_0xd0409e(0x158))),...optionalTrimmed(_0x56b26f[_0xd0409e(0x151)](_0xd0409e(0x14e)))?{'sourceSessionId':optionalTrimmed(_0x56b26f[_0xd0409e(0x151)](_0xd0409e(0x14e)))}:{}};}function a35_0x2c87(){const _0x1fad88=['length','Show\x20one\x20personal\x20BFF\x20by\x20id','create','Personal\x20BFF\x20script\x20file\x20is\x20blank.','File\x20not\x20found:\x20','keys','把本地脚本保存为个人\x20BFF;之后可在当前应用中调用该脚本。','createTime','1102241MVtbEu','Preview:\x20create\x20personal\x20BFF\x20','updateTime','--params\x20must\x20be\x20a\x20JSON\x20object.','根据\x20ID\x20更新个人\x20BFF','read','string','sourceSessionId','List\x20current\x20user\x27s\x20personal\x20BFF\x20scripts\x20for\x20the\x20current\x20app','isFile','utf8','执行个人\x20BFF\x20脚本;脚本可能读取或修改业务数据,也可能调用外部服务。','write','detail','name','test','gmtModified','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','1694871AVEXxs','exec','isArray','source-session-id','923sONEfL','296GRdyDr','str','Updated\x20personal\x20BFF\x20','JSON\x20object\x20passed\x20to\x20the\x20personal\x20BFF\x20execution','functionName','config','3773YIOQSA','File\x20path\x20is\x20required.','file','Personal\x20BFF\x20description','File\x20is\x20not\x20a\x20regular\x20file:\x20','50SmBEry','32292moGxmT','personal-bff','description','1FeBKBs','36516fETKHF','5XprqEy','Optional\x20source\x20RuntimeAgent\x20session\x20id','POST','624534xZvbDo','24SxZzSA','根据\x20ID\x20执行个人\x20BFF,并可传入\x20JSON\x20参数','Created\x20personal\x20BFF\x20','Personal\x20BFF\x20script\x20ID','scriptType','params','flag','num','根据本地脚本文件创建个人\x20BFF','validation','high-risk-write','appCode','update','gmtCreate','body','/client/runtime-bff/personal/create','/client/runtime-bff/personal/','version','876400dcSXnh','verbose','build','list','scriptContent','--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.','5319102vMWVkT','createUserId','trim','/update','Personal\x20BFF\x20functionName,\x20for\x20example\x20loadOrders','map'];a35_0x2c87=function(){return _0x1fad88;};return a35_0x2c87();}function buildUpdateInput(_0x5763e3){const _0x528b30=a35_0x2d05f7,_0x17beab={};optionalTrimmed(_0x5763e3[_0x528b30(0x151)](_0x528b30(0x147)))&&(_0x17beab[_0x528b30(0x154)]=normalizeFunctionName(_0x5763e3[_0x528b30(0x151)](_0x528b30(0x147))));_0x5763e3['flag'](_0x528b30(0x15e))!==undefined&&(_0x17beab[_0x528b30(0x15e)]=_0x5763e3[_0x528b30(0x151)](_0x528b30(0x15e)));optionalTrimmed(_0x5763e3[_0x528b30(0x151)](_0x528b30(0x158)))&&(_0x17beab['scriptContent']=readScriptFile(_0x5763e3[_0x528b30(0x151)](_0x528b30(0x158))));_0x5763e3[_0x528b30(0x119)](_0x528b30(0x14e))!==undefined&&(_0x17beab[_0x528b30(0x140)]=_0x5763e3[_0x528b30(0x151)](_0x528b30(0x14e)));if(Object[_0x528b30(0x136)](_0x17beab)['length']===0x0)throw CliErrors[_0x528b30(0x11c)](_0x528b30(0x14a));return _0x17beab;}function parseExecParams(_0x28e57f){const _0x8ebffe=a35_0x2d05f7,_0x26bf7d=parseJsonParams(_0x28e57f)??{};if(Array[_0x8ebffe(0x14d)](_0x26bf7d))throw CliErrors[_0x8ebffe(0x11c)](_0x8ebffe(0x13c));return _0x26bf7d;}const personalBffList={'service':a35_0x2d05f7(0x15d),'command':a35_0x2d05f7(0x128),'description':a35_0x2d05f7(0x141),'risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0xcae4cd){const _0x5997a2=a35_0x2d05f7,_0x2c6130=await listPersonalBffs(_0xcae4cd[_0x5997a2(0x11e)]);return{'ok':!![],'data':{'total':_0x2c6130[_0x5997a2(0x131)],'items':_0xcae4cd['bool'](_0x5997a2(0x126))?_0x2c6130:_0x2c6130[_0x5997a2(0x130)](summarizeBff)}};}},personalBffDetail={'service':a35_0x2d05f7(0x15d),'command':a35_0x2d05f7(0x146),'description':a35_0x2d05f7(0x132),'risk':a35_0x2d05f7(0x13e),'flags':[{...ID_FLAG,'description':a35_0x2d05f7(0x116)}],async 'execute'(_0x2f80c0){const _0x2bdad3=a35_0x2d05f7,_0x5ef316=await getPersonalBff(_0x2f80c0[_0x2bdad3(0x11a)]('id'),_0x2f80c0[_0x2bdad3(0x11e)]);return{'ok':!![],'data':detailBff(_0x5ef316)};}},personalBffCreate={'service':'personal-bff','command':a35_0x2d05f7(0x133),'description':a35_0x2d05f7(0x11b),'risk':a35_0x2d05f7(0x145),'confirmationDescription':a35_0x2d05f7(0x137),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x2b0292){const _0x37af0b=a35_0x2d05f7,_0x66987e=buildCreateInput(_0x2b0292),_0x279469=await createPersonalBff(_0x2b0292['appCode'],_0x66987e);return{'ok':!![],'data':detailBff(_0x279469),'message':_0x37af0b(0x115)+_0x279469['id']+(_0x279469[_0x37af0b(0x154)]?'\x20('+_0x279469[_0x37af0b(0x154)]+')':'')};},async 'dryRun'(_0x28d5e1){const _0x576c33=a35_0x2d05f7,_0x1d4a51=buildCreateInput(_0x28d5e1);return dryRun(_0x576c33(0x163),_0x576c33(0x122))[_0x576c33(0x121)]({'appCode':_0x28d5e1[_0x576c33(0x11e)],..._0x1d4a51})[_0x576c33(0x15e)](_0x576c33(0x13a)+_0x1d4a51[_0x576c33(0x154)])[_0x576c33(0x127)]();}},personalBffUpdate={'service':a35_0x2d05f7(0x15d),'command':a35_0x2d05f7(0x11f),'description':a35_0x2d05f7(0x13d),'risk':a35_0x2d05f7(0x145),'confirmationDescription':'更新个人\x20BFF\x20的脚本或元信息;之后的调用将使用新版本。','flags':[{...ID_FLAG,'description':'Personal\x20BFF\x20script\x20ID'},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x496c78){const _0xc4cf13=a35_0x2d05f7,_0x26ea8b=_0x496c78['num']('id'),_0x283c9e=buildUpdateInput(_0x496c78),_0xa8cb45=await updatePersonalBff(_0x26ea8b,_0x496c78[_0xc4cf13(0x11e)],_0x283c9e);return{'ok':!![],'data':detailBff(_0xa8cb45),'message':_0xc4cf13(0x152)+_0xa8cb45['id']+(_0xa8cb45['functionName']?'\x20('+_0xa8cb45[_0xc4cf13(0x154)]+')':'')};},async 'dryRun'(_0x55703f){const _0x553794=a35_0x2d05f7,_0x18116c=_0x55703f[_0x553794(0x11a)]('id'),_0x399feb=buildUpdateInput(_0x55703f);return dryRun(_0x553794(0x163),_0x553794(0x123)+_0x18116c+_0x553794(0x12e))[_0x553794(0x121)]({'appCode':_0x55703f['appCode'],..._0x399feb})[_0x553794(0x15e)]('Preview:\x20update\x20personal\x20BFF\x20'+_0x18116c)[_0x553794(0x127)]();}},personalBffExec={'service':a35_0x2d05f7(0x15d),'command':a35_0x2d05f7(0x14c),'description':a35_0x2d05f7(0x114),'risk':a35_0x2d05f7(0x11d),'confirmationDescription':a35_0x2d05f7(0x144),'flags':[{...ID_FLAG,'description':a35_0x2d05f7(0x116)},{...PARAMS_FLAG,'description':a35_0x2d05f7(0x153)}],async 'validate'(_0x37f240){parseExecParams(_0x37f240['str']('params'));},async 'execute'(_0x1611b1){const _0x36cabd=a35_0x2d05f7,_0x5819fe=_0x1611b1['num']('id'),_0x25c68e=parseExecParams(_0x1611b1[_0x36cabd(0x151)](_0x36cabd(0x118))),_0x64d2fb=await executePersonalBff(_0x5819fe,_0x1611b1[_0x36cabd(0x11e)],_0x25c68e);return{'ok':!![],'data':{'result':_0x64d2fb},'message':'Executed\x20personal\x20BFF\x20'+_0x5819fe};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
@@ -46,8 +46,15 @@ export declare const serviceRegistry: ServiceEntry[];
46
46
  export declare const definitions: Map<string, CommandDefinition>;
47
47
  /** Map of `service` → array of `CommandDefinition` for that service. */
48
48
  export declare const serviceGroups: Map<string, CommandDefinition[]>;
49
+ export interface RemovedCommand {
50
+ command: string;
51
+ message: string;
52
+ hint: string;
53
+ }
49
54
  /** Looks up a command definition by service and command name. */
50
55
  export declare function findDefinition(service: string, command: string): CommandDefinition | undefined;
56
+ /** Returns a migration error for commands that were removed from discovery and execution. */
57
+ export declare function resolveRemovedCommand(service: string | undefined, command: string | undefined): RemovedCommand | undefined;
51
58
  /** Returns `true` if `name` is a known service name. */
52
59
  export declare function isKnownService(name: string): boolean;
53
60
  /** Returns the service entry for a service name, or undefined. */
@@ -1 +1 @@
1
- const a36_0x4e6cdc=a36_0x1c47;(function(_0x4f0b4f,_0x3cbc5e){const _0x7b655=a36_0x1c47,_0x36c94c=_0x4f0b4f();while(!![]){try{const _0x5658e3=parseInt(_0x7b655(0x1f3))/0x1*(-parseInt(_0x7b655(0x20b))/0x2)+parseInt(_0x7b655(0x20d))/0x3+-parseInt(_0x7b655(0x1ed))/0x4+parseInt(_0x7b655(0x1ec))/0x5+-parseInt(_0x7b655(0x20c))/0x6+parseInt(_0x7b655(0x1f9))/0x7*(parseInt(_0x7b655(0x212))/0x8)+-parseInt(_0x7b655(0x211))/0x9;if(_0x5658e3===_0x3cbc5e)break;else _0x36c94c['push'](_0x36c94c['shift']());}catch(_0x1250cc){_0x36c94c['push'](_0x36c94c['shift']());}}}(a36_0x201d,0x5e206));import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{serviceDefinitions}from'../commands/service/index.js';import{updateDefinition}from'../commands/update.js';import{doctorDefinition}from'../commands/doctor.js';import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{artifactDefinitions}from'../commands/artifact/index.js';function a36_0x201d(){const _0x48615d=['Skills','149800yHwDoN','risk','map','write','Knowledge\x20Base','list','defaultCommand','Diagnostics','OCR','get','\x20\x20[high-risk-write]','Instant\x20API','CLI\x20Built-in\x20Skill','login','set','File','install','BFF\x20Scripts','310KmeTDk','2141082lKfgUI','1940505XdstWS','from','Service\x20Tree','Datasets','2528406RdVUxC','128bSyHdn','description','Artifacts','SQL\x20Queries','3426455BgFzax','314532WbyEwy','Personal\x20BFF','Schema','read','Runtime\x20App\x20Config','service','3694aPpOew','Logs','show','\x20\x20[write]','push'];a36_0x201d=function(){return _0x48615d;};return a36_0x201d();}import{personalBffDefinitions}from'../commands/personal-bff/index.js';import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{scheduleDefinitions}from'../commands/schedule/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function a36_0x1c47(_0xd1f40f,_0x41b911){_0xd1f40f=_0xd1f40f-0x1ea;const _0x201d24=a36_0x201d();let _0x1c4780=_0x201d24[_0xd1f40f];return _0x1c4780;}function registerDefinitions(_0x2f8570){const _0x3ab5b6=a36_0x1c47;for(const _0xe9b529 of _0x2f8570){definitions[_0x3ab5b6(0x207)](_0xe9b529[_0x3ab5b6(0x1f2)]+':'+_0xe9b529['command'],_0xe9b529);let _0x257f4e=serviceGroups[_0x3ab5b6(0x202)](_0xe9b529[_0x3ab5b6(0x1f2)]);!_0x257f4e&&(_0x257f4e=[],serviceGroups[_0x3ab5b6(0x207)](_0xe9b529['service'],_0x257f4e)),_0x257f4e['push'](_0xe9b529);}}function registerService(_0x1d6ddc,_0x16055c,_0x3eaf3b){const _0x12e8eb=a36_0x1c47;registerDefinitions(_0x16055c);const _0x1948f7=_0x3fe92d=>_0x3fe92d===_0x12e8eb(0x1f0)?'':_0x3fe92d===_0x12e8eb(0x1fc)?_0x12e8eb(0x1f6):_0x12e8eb(0x203),_0x1cfa9a={'service':_0x16055c[0x0][_0x12e8eb(0x1f2)],'label':_0x1d6ddc,'commands':_0x16055c[_0x12e8eb(0x1fb)](_0x1d5ac3=>({'command':_0x1d5ac3['command'],'description':_0x1d5ac3[_0x12e8eb(0x213)],'tag':_0x1948f7(_0x1d5ac3[_0x12e8eb(0x1fa)])})),'defaultCommand':_0x3eaf3b?.[_0x12e8eb(0x1ff)]??(_0x3eaf3b?.['isSingleCommand']?_0x16055c[0x0]['command']:undefined),'isSingleCommand':_0x3eaf3b?.['isSingleCommand']};serviceRegistry[_0x12e8eb(0x1f7)](_0x1cfa9a),serviceByName[_0x12e8eb(0x207)](_0x1cfa9a[_0x12e8eb(0x1f2)],_0x1cfa9a);}registerService('Authentication',authDefinitions,{'defaultCommand':a36_0x4e6cdc(0x206)}),registerService('App\x20Management',appDefinitions,{'defaultCommand':a36_0x4e6cdc(0x1fe)}),registerService('Workspace',workspaceDefinitions),registerService(a36_0x4e6cdc(0x1f1),appConfigDefinitions),registerService('Configuration',configDefinitions,{'defaultCommand':a36_0x4e6cdc(0x1fe)}),registerService('API\x20Documentation',apiDocDefinitions),registerService(a36_0x4e6cdc(0x210),datasetDefinitions),registerService(a36_0x4e6cdc(0x204),dataDefinitions),registerService(a36_0x4e6cdc(0x1eb),sqlDefinitions),registerService(a36_0x4e6cdc(0x20a),bffDefinitions),registerService(a36_0x4e6cdc(0x1ee),personalBffDefinitions),registerService(a36_0x4e6cdc(0x1ea),artifactDefinitions),registerService(a36_0x4e6cdc(0x208),fileDefinitions),registerService(a36_0x4e6cdc(0x201),ocrDefinitions),registerService(a36_0x4e6cdc(0x1fd),kbDefinitions),registerService('Agent\x20Schedules',scheduleDefinitions,{'defaultCommand':a36_0x4e6cdc(0x1fe)}),registerService(a36_0x4e6cdc(0x20f),serviceDefinitions,{'defaultCommand':a36_0x4e6cdc(0x1fe)}),registerService(a36_0x4e6cdc(0x1f8),skillDefinitions,{'defaultCommand':a36_0x4e6cdc(0x209)}),registerService(a36_0x4e6cdc(0x205),cliSkillDefinitions,{'defaultCommand':a36_0x4e6cdc(0x209)}),registerService('Self\x20Update',[updateDefinition],{'defaultCommand':'run','isSingleCommand':!![]}),registerService(a36_0x4e6cdc(0x200),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a36_0x4e6cdc(0x1ef),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a36_0x4e6cdc(0x1f4),logsDefinitions,{'defaultCommand':a36_0x4e6cdc(0x1f5)});export function findDefinition(_0x79f5d,_0x3926ee){const _0x1d8ed3=a36_0x4e6cdc;return definitions[_0x1d8ed3(0x202)](_0x79f5d+':'+_0x3926ee);}export function isKnownService(_0x3e187e){return serviceByName['has'](_0x3e187e);}export function getServiceEntry(_0x581474){return serviceByName['get'](_0x581474);}export function getAllDefinitions(){const _0x24024d=a36_0x4e6cdc;return Array[_0x24024d(0x20e)](definitions['values']());}
1
+ const a36_0x44acb6=a36_0x4187;(function(_0x5a2ac0,_0x142e36){const _0x3408a6=a36_0x4187,_0x27fe33=_0x5a2ac0();while(!![]){try{const _0x2caf9d=parseInt(_0x3408a6(0x86))/0x1+parseInt(_0x3408a6(0x9d))/0x2*(parseInt(_0x3408a6(0x84))/0x3)+-parseInt(_0x3408a6(0x9e))/0x4*(-parseInt(_0x3408a6(0xa0))/0x5)+parseInt(_0x3408a6(0x8a))/0x6*(-parseInt(_0x3408a6(0x87))/0x7)+-parseInt(_0x3408a6(0x90))/0x8*(-parseInt(_0x3408a6(0x97))/0x9)+parseInt(_0x3408a6(0x76))/0xa+-parseInt(_0x3408a6(0xa3))/0xb;if(_0x2caf9d===_0x142e36)break;else _0x27fe33['push'](_0x27fe33['shift']());}catch(_0x154fd5){_0x27fe33['push'](_0x27fe33['shift']());}}}(a36_0x2862,0x23c84));import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{serviceDefinitions}from'../commands/service/index.js';import{updateDefinition}from'../commands/update.js';import{doctorDefinition}from'../commands/doctor.js';import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{artifactDefinitions}from'../commands/artifact/index.js';import{personalBffDefinitions}from'../commands/personal-bff/index.js';function a36_0x2862(){const _0x1f1be0=['`lovrabet\x20app\x20use`\x20has\x20been\x20removed.','Runtime\x20App\x20Config','list','push','Agent\x20Schedules','133186lWgKFA','8UUfIjd','set','70255itTzZF','values','app\x20use','3939947SJEGjj','Self\x20Update','BFF\x20Scripts','command','Use\x20`lovrabet\x20workspace\x20use\x20--app\x20<name>`\x20instead.','app\x20init','API\x20Documentation','init','write','1322600dbTYVA','get','service','use','\x20\x20[high-risk-write]','isSingleCommand','Schema','Personal\x20BFF','app','has','login','from','Service\x20Tree','`lovrabet\x20app\x20init`\x20has\x20been\x20removed.','3BlrcMA','App\x20Management','289696HOQOjc','1414IirPeZ','defaultCommand','OCR','1488BHCVca','SQL\x20Queries','Logs','install','Use\x20`lovrabet\x20workspace\x20init\x20--appcode\x20<code>`\x20instead.','Authentication','305488zSZOdl','Workspace','run','read','Configuration','Knowledge\x20Base','map','9SEKKMD'];a36_0x2862=function(){return _0x1f1be0;};return a36_0x2862();}import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{scheduleDefinitions}from'../commands/schedule/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0xce294d){const _0x2d056e=a36_0x4187;for(const _0x23d0d1 of _0xce294d){definitions[_0x2d056e(0x9f)](_0x23d0d1['service']+':'+_0x23d0d1[_0x2d056e(0x70)],_0x23d0d1);let _0x14327f=serviceGroups[_0x2d056e(0x77)](_0x23d0d1[_0x2d056e(0x78)]);!_0x14327f&&(_0x14327f=[],serviceGroups[_0x2d056e(0x9f)](_0x23d0d1['service'],_0x14327f)),_0x14327f[_0x2d056e(0x9b)](_0x23d0d1);}}function registerService(_0x271338,_0x3aed76,_0x1989c2){const _0x4d6052=a36_0x4187;registerDefinitions(_0x3aed76);const _0x2a5b84=_0x2cf780=>_0x2cf780===_0x4d6052(0x93)?'':_0x2cf780===_0x4d6052(0x75)?'\x20\x20[write]':_0x4d6052(0x7a),_0x158544={'service':_0x3aed76[0x0][_0x4d6052(0x78)],'label':_0x271338,'commands':_0x3aed76[_0x4d6052(0x96)](_0x12f6b2=>({'command':_0x12f6b2[_0x4d6052(0x70)],'description':_0x12f6b2['description'],'tag':_0x2a5b84(_0x12f6b2['risk'])})),'defaultCommand':_0x1989c2?.[_0x4d6052(0x88)]??(_0x1989c2?.['isSingleCommand']?_0x3aed76[0x0][_0x4d6052(0x70)]:undefined),'isSingleCommand':_0x1989c2?.[_0x4d6052(0x7b)]};serviceRegistry['push'](_0x158544),serviceByName['set'](_0x158544['service'],_0x158544);}registerService(a36_0x44acb6(0x8f),authDefinitions,{'defaultCommand':a36_0x44acb6(0x80)}),registerService(a36_0x44acb6(0x85),appDefinitions,{'defaultCommand':a36_0x44acb6(0x9a)}),registerService(a36_0x44acb6(0x91),workspaceDefinitions),registerService(a36_0x44acb6(0x99),appConfigDefinitions),registerService(a36_0x44acb6(0x94),configDefinitions,{'defaultCommand':a36_0x44acb6(0x9a)}),registerService(a36_0x44acb6(0x73),apiDocDefinitions),registerService('Datasets',datasetDefinitions),registerService('Instant\x20API',dataDefinitions),registerService(a36_0x44acb6(0x8b),sqlDefinitions),registerService(a36_0x44acb6(0x6f),bffDefinitions),registerService(a36_0x44acb6(0x7d),personalBffDefinitions),registerService('Artifacts',artifactDefinitions),registerService('File',fileDefinitions),registerService(a36_0x44acb6(0x89),ocrDefinitions),registerService(a36_0x44acb6(0x95),kbDefinitions),registerService(a36_0x44acb6(0x9c),scheduleDefinitions,{'defaultCommand':'list'}),registerService(a36_0x44acb6(0x82),serviceDefinitions,{'defaultCommand':a36_0x44acb6(0x9a)}),registerService('Skills',skillDefinitions,{'defaultCommand':a36_0x44acb6(0x8d)}),registerService('CLI\x20Built-in\x20Skill',cliSkillDefinitions,{'defaultCommand':a36_0x44acb6(0x8d)}),registerService(a36_0x44acb6(0x6e),[updateDefinition],{'defaultCommand':a36_0x44acb6(0x92),'isSingleCommand':!![]}),registerService('Diagnostics',[doctorDefinition],{'isSingleCommand':!![]}),registerService(a36_0x44acb6(0x7c),[schemaDefinition],{'isSingleCommand':!![]}),registerService(a36_0x44acb6(0x8c),logsDefinitions,{'defaultCommand':'show'});function a36_0x4187(_0x479459,_0x24644c){_0x479459=_0x479459-0x6e;const _0x2862e6=a36_0x2862();let _0x41871a=_0x2862e6[_0x479459];return _0x41871a;}export function findDefinition(_0x21677c,_0x1608bb){const _0x3a9dcb=a36_0x44acb6;return definitions[_0x3a9dcb(0x77)](_0x21677c+':'+_0x1608bb);}export function resolveRemovedCommand(_0x213926,_0x3199b1){const _0x13aaa5=a36_0x44acb6;if(_0x213926===_0x13aaa5(0x7e)&&_0x3199b1===_0x13aaa5(0x74))return{'command':_0x13aaa5(0x72),'message':_0x13aaa5(0x83),'hint':_0x13aaa5(0x8e)};if(_0x213926===_0x13aaa5(0x7e)&&_0x3199b1===_0x13aaa5(0x79))return{'command':_0x13aaa5(0xa2),'message':_0x13aaa5(0x98),'hint':_0x13aaa5(0x71)};return undefined;}export function isKnownService(_0x2870ae){const _0x2e6279=a36_0x44acb6;return serviceByName[_0x2e6279(0x7f)](_0x2870ae);}export function getServiceEntry(_0xf89aac){return serviceByName['get'](_0xf89aac);}export function getAllDefinitions(){const _0x4fe79d=a36_0x44acb6;return Array[_0x4fe79d(0x81)](definitions[_0x4fe79d(0xa1)]());}