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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/raw-flags.js +1 -1
  92. package/lib/framework/response.js +1 -1
  93. package/lib/framework/runner-confirmation.js +1 -1
  94. package/lib/framework/runner-error.js +1 -1
  95. package/lib/framework/runner.js +1 -1
  96. package/lib/framework/schema-export.js +1 -1
  97. package/lib/framework/service-order.js +1 -1
  98. package/lib/framework/types.js +1 -1
  99. package/lib/generated/build-info.d.ts +4 -4
  100. package/lib/generated/build-info.js +1 -1
  101. package/lib/help.js +1 -1
  102. package/lib/runtime/event.js +1 -1
  103. package/lib/runtime/index.js +1 -1
  104. package/lib/runtime/queue.js +1 -1
  105. package/lib/runtime/resolve.js +1 -1
  106. package/lib/skills/npx-skills-add.js +1 -1
  107. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  108. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  109. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  111. package/lib/skills/runtime-skill-sync/links.js +1 -1
  112. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  113. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  114. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  115. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  116. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  117. package/lib/skills/runtime-skill-sync/push.js +1 -1
  118. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  119. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  120. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  121. package/lib/skills/runtime-skill-sync.js +1 -1
  122. package/lib/utils/apply-jq-filter.js +1 -1
  123. package/lib/utils/logger.js +1 -1
  124. package/lib/utils/lossless-json.js +1 -1
  125. package/lib/utils/params.js +1 -1
  126. package/lib/utils/platform.js +1 -1
  127. package/lib/utils/update-notice.js +1 -1
  128. package/lib/utils/version.js +1 -1
  129. package/lib/utils/write-cli-side-channel.js +1 -1
  130. package/package.json +1 -1
@@ -1 +1 @@
1
- const a28_0x10fd56=a28_0x2793;(function(_0x1dacec,_0x1679c5){const _0x1fb581=a28_0x2793,_0x4c5f9e=_0x1dacec();while(!![]){try{const _0x22b6cf=parseInt(_0x1fb581(0x1db))/0x1+parseInt(_0x1fb581(0x1e6))/0x2*(-parseInt(_0x1fb581(0x1e3))/0x3)+-parseInt(_0x1fb581(0x1e2))/0x4+parseInt(_0x1fb581(0x1e1))/0x5+-parseInt(_0x1fb581(0x1da))/0x6*(parseInt(_0x1fb581(0x1df))/0x7)+-parseInt(_0x1fb581(0x1d8))/0x8*(-parseInt(_0x1fb581(0x1e5))/0x9)+parseInt(_0x1fb581(0x1e0))/0xa*(parseInt(_0x1fb581(0x1dd))/0xb);if(_0x22b6cf===_0x1679c5)break;else _0x4c5f9e['push'](_0x4c5f9e['shift']());}catch(_0x172f38){_0x4c5f9e['push'](_0x4c5f9e['shift']());}}}(a28_0x5289,0xa1553));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x5289(){const _0x830075=['#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','60702VnWggX','622235FpPwzg','dataset','4433KjteOf','code','826slHOvV','45880irovhv','381265igGVOY','2121684ezAzFV','1421661dDJiou','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','2286tLpYWJ','4fzRrli','read','string','appCode','24736CPIhEk'];a28_0x5289=function(){return _0x830075;};return a28_0x5289();}import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x2793(_0x2fd65b,_0x34114b){_0x2fd65b=_0x2fd65b-0x1d6;const _0x528950=a28_0x5289();let _0x2793a1=_0x528950[_0x2fd65b];return _0x2793a1;}const DEFAULT_MARKDOWN=a28_0x10fd56(0x1d9);export function formatDatasetSdkMarkdown(_0x5bf086){const _0x5dcf26=a28_0x10fd56,_0x42c055=typeof _0x5bf086===_0x5dcf26(0x1d6)?_0x5bf086['trim']():'';return _0x42c055||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x10fd56(0x1dc),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a28_0x10fd56(0x1e7),'flags':[{...CODE_FLAG,'description':a28_0x10fd56(0x1e4)}],async 'execute'(_0x399b25){const _0x745bcc=a28_0x10fd56,_0x40254f=_0x399b25['str'](_0x745bcc(0x1de)),_0x4caede=await getDatasetSdkUsageDoc(_0x40254f,_0x399b25['appCode']);return{'ok':!![],'data':{'code':_0x40254f,'appCode':_0x399b25[_0x745bcc(0x1d7)],'markdown':formatDatasetSdkMarkdown(_0x4caede)}};}};
1
+ const a28_0x576371=a28_0xacd7;(function(_0x289a08,_0x1f93b5){const _0x46a51f=a28_0xacd7,_0x534036=_0x289a08();while(!![]){try{const _0x314269=-parseInt(_0x46a51f(0x71))/0x1+-parseInt(_0x46a51f(0x6d))/0x2*(parseInt(_0x46a51f(0x78))/0x3)+-parseInt(_0x46a51f(0x72))/0x4+parseInt(_0x46a51f(0x76))/0x5*(parseInt(_0x46a51f(0x7a))/0x6)+-parseInt(_0x46a51f(0x79))/0x7*(-parseInt(_0x46a51f(0x73))/0x8)+parseInt(_0x46a51f(0x6c))/0x9*(-parseInt(_0x46a51f(0x6f))/0xa)+parseInt(_0x46a51f(0x7c))/0xb;if(_0x314269===_0x1f93b5)break;else _0x534036['push'](_0x534036['shift']());}catch(_0x78445e){_0x534036['push'](_0x534036['shift']());}}}(a28_0x3c18,0x2a1c1));function a28_0xacd7(_0xcf1c7e,_0x107656){_0xcf1c7e=_0xcf1c7e-0x69;const _0x3c18f3=a28_0x3c18();let _0xacd725=_0x3c18f3[_0xcf1c7e];return _0xacd725;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x576371(0x70);export function formatDatasetSdkMarkdown(_0x485298){const _0x20faf3=a28_0x576371,_0x20860b=typeof _0x485298==='string'?_0x485298[_0x20faf3(0x69)]():'';return _0x20860b||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x576371(0x6a),'command':'sdk-doc','description':a28_0x576371(0x77),'risk':a28_0x576371(0x7b),'flags':[{...CODE_FLAG,'description':a28_0x576371(0x74)}],async 'execute'(_0x1525f2){const _0x17a9d2=a28_0x576371,_0x411376=_0x1525f2[_0x17a9d2(0x75)](_0x17a9d2(0x6e)),_0xbc11b7=await getDatasetSdkUsageDoc(_0x411376,_0x1525f2[_0x17a9d2(0x6b)]);return{'ok':!![],'data':{'code':_0x411376,'appCode':_0x1525f2['appCode'],'markdown':formatDatasetSdkMarkdown(_0xbc11b7)}};}};function a28_0x3c18(){const _0x360c96=['trim','dataset','appCode','1359PBsdNJ','24jtvoep','code','4610nMzpNZ','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','133521ngZwPT','686776aDbZWN','8ivRXvX','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','419485VbGpjo','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','30354YcwIEM','1670144rvceyB','12sjztCL','read','2885707QimZpL'];a28_0x3c18=function(){return _0x360c96;};return a28_0x3c18();}
@@ -1 +1 @@
1
- const a29_0x58848d=a29_0x4278;(function(_0x38856c,_0xba0dce){const _0x207920=a29_0x4278,_0x1c630c=_0x38856c();while(!![]){try{const _0x3c4349=parseInt(_0x207920(0x176))/0x1*(-parseInt(_0x207920(0x166))/0x2)+parseInt(_0x207920(0x1a1))/0x3*(parseInt(_0x207920(0x16e))/0x4)+-parseInt(_0x207920(0x191))/0x5*(parseInt(_0x207920(0x165))/0x6)+parseInt(_0x207920(0x159))/0x7*(-parseInt(_0x207920(0x197))/0x8)+-parseInt(_0x207920(0x184))/0x9+-parseInt(_0x207920(0x15b))/0xa+parseInt(_0x207920(0x18a))/0xb;if(_0x3c4349===_0xba0dce)break;else _0x1c630c['push'](_0x1c630c['shift']());}catch(_0x195742){_0x1c630c['push'](_0x1c630c['shift']());}}}(a29_0x4b75,0xc60cb));function a29_0x4b75(){const _0x97460e=['\x20\x20API\x20Endpoints','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','16411417WEMAnU','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','check','\x20\x20runtimeDomain:\x20\x20\x20','(not\x20set)','verbose','5zsVUjy','yellow','riskLevel','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','serviceCode','(removed\x20—\x20cookie\x20auth\x20disabled)','92696fczRKW','version','(no\x20file)','serviceCount','registryPath','log','⚠\x20Empty','\x20\x20─','services','\x20\x20Auth','4127637pcOgKC','ClientAk','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','✓\x20Valid\x20JSON','repeat','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','empty','gray','\x20Imported\x20from:\x20','read','padEnd','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','98VqQdyO','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2262950fzSWxM','\x20(accessKey)','env','missing','accessKey','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','doctor','\x20doctor','(not\x20found)','649164SvdGJo','79242TWRZRH','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','Global','(unnamed)','format','4vlhJQA','appCode','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','locale','2jaOBid','commandCount','red','bold','Diagnose\x20CLI\x20configuration\x20and\x20environment','(none)','\x20(legacy/compat\x20only)','\x20\x20Config\x20Files','defaultApp','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','✗\x20Invalid\x20JSON','source','\x20commands)','13325994OLyYgt','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Loaded'];a29_0x4b75=function(){return _0x97460e;};return a29_0x4b75();}import a29_0x4a6023 from'chalk';function a29_0x4278(_0x27f838,_0x3c02a4){_0x27f838=_0x27f838-0x151;const _0x4b7506=a29_0x4b75();let _0x4278b3=_0x4b7506[_0x27f838];return _0x4278b3;}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(_0x442078){const _0xc3862e=a29_0x4278,_0x4f3ce6=getCliVersion(),_0x37f58a=buildConfigFromFlags({});await initGlobalEnvironment(_0x37f58a),console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023['bold'](CLI_BIN_NAME+_0xc3862e(0x163))),console['log'](a29_0x4a6023[_0xc3862e(0x153)]('─'[_0xc3862e(0x1a6)](0x32))),console[_0xc3862e(0x19c)](_0xc3862e(0x194)+_0x4f3ce6),console[_0xc3862e(0x19c)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xc3862e(0x198)]),console[_0xc3862e(0x19c)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process['arch']),console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x179)](_0xc3862e(0x17d))),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x19e)['repeat'](0x1e)));const _0x2341c4=getGlobalConfigPath(),_0x23b159=getProjectConfigPath();console['log'](_0xc3862e(0x189)+(_0x2341c4||a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x164)))),console['log'](_0xc3862e(0x1a3)+(_0x23b159||a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x164)))),console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x179)]('\x20\x20Config\x20JSON')),console['log'](a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x19e)[_0xc3862e(0x1a6)](0x1e)));const _0x167d49=(_0x3ce81a,_0x3a86ca)=>{const _0x5713fd=_0xc3862e;if(!_0x3a86ca){console[_0x5713fd(0x19c)]('\x20\x20'+_0x3ce81a['padEnd'](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x153)](_0x5713fd(0x199)));return;}const _0x512fd5=inspectCliConfigJsonFile(_0x3a86ca);if(_0x512fd5['status']==='ok')console[_0x5713fd(0x19c)]('\x20\x20'+_0x3ce81a[_0x5713fd(0x156)](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x1a4)](_0x5713fd(0x1a5)));else{if(_0x512fd5['status']==='empty')console[_0x5713fd(0x19c)]('\x20\x20'+_0x3ce81a['padEnd'](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x192)](_0x5713fd(0x170)));else _0x512fd5[_0x5713fd(0x161)]===_0x5713fd(0x15e)?console['log']('\x20\x20'+_0x3ce81a[_0x5713fd(0x156)](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x153)](_0x5713fd(0x172))):(console[_0x5713fd(0x19c)]('\x20\x20'+_0x3ce81a[_0x5713fd(0x156)](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x178)](_0x5713fd(0x181))),console[_0x5713fd(0x19c)]('\x20\x20'+''[_0x5713fd(0x156)](0x11)+'\x20'+a29_0x4a6023[_0x5713fd(0x178)](_0x512fd5['message'])));}};_0x167d49(_0xc3862e(0x16b),_0x2341c4),_0x167d49(_0xc3862e(0x174),_0x23b159),console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x179)](_0xc3862e(0x16a))),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x19e)[_0xc3862e(0x1a6)](0x1e))),console[_0xc3862e(0x19c)](_0xc3862e(0x173)+(_0x37f58a[_0xc3862e(0x16f)]||a29_0x4a6023[_0xc3862e(0x178)](_0xc3862e(0x18f)))),console[_0xc3862e(0x19c)](_0xc3862e(0x15a)+_0x37f58a[_0xc3862e(0x15d)]);const _0x3ef78b=isLegacyCompatConfigKey(_0xc3862e(0x175))?a29_0x4a6023[_0xc3862e(0x153)](_0x37f58a[_0xc3862e(0x175)]+_0xc3862e(0x17c)):_0x37f58a[_0xc3862e(0x175)];console[_0xc3862e(0x19c)](_0xc3862e(0x18b)+_0x3ef78b),console[_0xc3862e(0x19c)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x37f58a[_0xc3862e(0x17e)]||a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x17b)))),console[_0xc3862e(0x19c)](_0xc3862e(0x186)+(_0x37f58a['currentApp']||a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x17b)))),console['log'](_0xc3862e(0x17f)+(_0x37f58a[_0xc3862e(0x16d)]||a29_0x4a6023[_0xc3862e(0x153)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0xc3862e(0x16d)]+')'))),console[_0xc3862e(0x19c)](_0xc3862e(0x185)+(_0x37f58a['pageSize']??a29_0x4a6023[_0xc3862e(0x153)]('(default)'))),console['log'](_0xc3862e(0x158)+_0x37f58a[_0xc3862e(0x193)]),console[_0xc3862e(0x19c)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x37f58a[_0xc3862e(0x190)]),console[_0xc3862e(0x19c)](_0xc3862e(0x18c)+AUTH_MODE['ClientAk']),console[_0xc3862e(0x19c)](_0xc3862e(0x1a7)+(_0x37f58a[_0xc3862e(0x15f)]?a29_0x4a6023['green']('(set,\x20length='+_0x37f58a[_0xc3862e(0x15f)][_0xc3862e(0x180)]+')'):a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x17b)))),console['log'](),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x179)](_0xc3862e(0x188))),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x153)]('\x20\x20─'[_0xc3862e(0x1a6)](0x1e))),console[_0xc3862e(0x19c)](_0xc3862e(0x171)+getApiDomain()),console[_0xc3862e(0x19c)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xc3862e(0x19c)](_0xc3862e(0x18e)+getRuntimeDomain()),console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023['bold'](_0xc3862e(0x168))),console['log'](a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x19e)[_0xc3862e(0x1a6)](0x1e)));const _0x31a196=inspectServiceRegistry();console[_0xc3862e(0x19c)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31a196[_0xc3862e(0x19b)]),console[_0xc3862e(0x19c)](_0xc3862e(0x169)+formatServiceRegistryStatus(_0x31a196)),console[_0xc3862e(0x19c)](_0xc3862e(0x167)+_0x31a196[_0xc3862e(0x19a)]),console[_0xc3862e(0x19c)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31a196['commandCount']);for(const _0x47ec7b of _0x31a196[_0xc3862e(0x19f)]){console[_0xc3862e(0x19c)]('\x20\x20'+(_0x47ec7b[_0xc3862e(0x195)]+':')[_0xc3862e(0x156)](0x11)+'\x20'+(_0x47ec7b['name']||a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x16c)))+'\x20('+_0x47ec7b[_0xc3862e(0x177)]+_0xc3862e(0x183)),console[_0xc3862e(0x19c)]('\x20\x20'+''[_0xc3862e(0x156)](0x11)+_0xc3862e(0x154)+_0x47ec7b[_0xc3862e(0x182)]['path']);}return console[_0xc3862e(0x19c)](),console[_0xc3862e(0x19c)](a29_0x4a6023[_0xc3862e(0x179)](_0xc3862e(0x1a0))),console['log'](a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x19e)[_0xc3862e(0x1a6)](0x1e))),console[_0xc3862e(0x19c)](_0xc3862e(0x160)+a29_0x4a6023[_0xc3862e(0x1a4)](AUTH_MODE[_0xc3862e(0x1a2)]+_0xc3862e(0x15c))),console[_0xc3862e(0x19c)](_0xc3862e(0x157)+a29_0x4a6023[_0xc3862e(0x153)](_0xc3862e(0x196))),console[_0xc3862e(0x19c)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x344518){const _0xd5e524=a29_0x4278;if(_0x344518[_0xd5e524(0x161)]==='ok')return a29_0x4a6023[_0xd5e524(0x1a4)](_0xd5e524(0x187));if(_0x344518[_0xd5e524(0x161)]==='missing')return a29_0x4a6023[_0xd5e524(0x153)]('(not\x20found)');if(_0x344518['status']===_0xd5e524(0x152))return a29_0x4a6023[_0xd5e524(0x192)](_0xd5e524(0x19d));return a29_0x4a6023[_0xd5e524(0x178)](_0xd5e524(0x151)+(_0x344518['message']?':\x20'+_0x344518['message']:''));}export const doctorDefinition={'service':a29_0x58848d(0x162),'command':a29_0x58848d(0x18d),'description':a29_0x58848d(0x17a),'risk':a29_0x58848d(0x155),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a29_0x294229=a29_0xbd61;(function(_0x48d2f8,_0xef9892){const _0xd49d05=a29_0xbd61,_0x355fcf=_0x48d2f8();while(!![]){try{const _0x360df7=parseInt(_0xd49d05(0x13f))/0x1+parseInt(_0xd49d05(0x14d))/0x2+parseInt(_0xd49d05(0x110))/0x3+-parseInt(_0xd49d05(0x113))/0x4*(-parseInt(_0xd49d05(0x15f))/0x5)+-parseInt(_0xd49d05(0x140))/0x6+-parseInt(_0xd49d05(0x11f))/0x7*(-parseInt(_0xd49d05(0x132))/0x8)+-parseInt(_0xd49d05(0x138))/0x9*(parseInt(_0xd49d05(0x12e))/0xa);if(_0x360df7===_0xef9892)break;else _0x355fcf['push'](_0x355fcf['shift']());}catch(_0x4a6a51){_0x355fcf['push'](_0x355fcf['shift']());}}}(a29_0x16a7,0x4c860));import a29_0x306bb0 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';function a29_0x16a7(){const _0x4c74de=['read','gray','441mueyXv','serviceCode','path','\x20commands)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','verbose','321464mijSZi','3195156RRsNDe','doctor','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','pageSize','⚠\x20Empty\x20(treated\x20as\x20{})','arch','services','source','bold','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','10374fGHMtD','message','\x20\x20Merged\x20Config','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','⚠\x20Empty','\x20\x20Service\x20Tree','\x20doctor','(no\x20file)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','green','padEnd','(set,\x20length=','accessKey','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','riskLevel','5baXqqq','\x20\x20Config\x20Files','880821DzbQlO','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','1783896DOrWxo','registryPath','appCode','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','red','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20\x20─','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','length','check','format','68950NORBeY','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','(default:\x20','\x20(legacy/compat\x20only)','ClientAk','status','log','\x20\x20Auth','\x20\x20Config\x20JSON','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','yellow','locale','(unnamed)','121340lXTCji','(missing)','currentApp','✗\x20Invalid','304sesmMW','platform','\x20\x20Session\x20check:\x20\x20\x20','repeat'];a29_0x16a7=function(){return _0x4c74de;};return a29_0x16a7();}import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x38044a){const _0x15ac6f=a29_0xbd61,_0x5d20c8=getCliVersion(),_0x15558f=buildConfigFromFlags({});await initGlobalEnvironment(_0x15558f),console[_0x15ac6f(0x126)](),console['log'](a29_0x306bb0['bold'](CLI_BIN_NAME+_0x15ac6f(0x154))),console[_0x15ac6f(0x126)](a29_0x306bb0[_0x15ac6f(0x137)]('─'[_0x15ac6f(0x135)](0x32))),console[_0x15ac6f(0x126)](_0x15ac6f(0x116)+_0x5d20c8),console[_0x15ac6f(0x126)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x15ac6f(0x133)]+'\x20'+process[_0x15ac6f(0x148)]),console[_0x15ac6f(0x126)](),console['log'](a29_0x306bb0['bold'](_0x15ac6f(0x160))),console[_0x15ac6f(0x126)](a29_0x306bb0[_0x15ac6f(0x137)](_0x15ac6f(0x11a)[_0x15ac6f(0x135)](0x1e)));const _0x1767d1=getGlobalConfigPath(),_0x2ad3d8=getProjectConfigPath();console[_0x15ac6f(0x126)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1767d1||a29_0x306bb0[_0x15ac6f(0x137)](_0x15ac6f(0x143)))),console[_0x15ac6f(0x126)](_0x15ac6f(0x150)+(_0x2ad3d8||a29_0x306bb0[_0x15ac6f(0x137)](_0x15ac6f(0x143)))),console[_0x15ac6f(0x126)](),console[_0x15ac6f(0x126)](a29_0x306bb0['bold'](_0x15ac6f(0x128))),console['log'](a29_0x306bb0[_0x15ac6f(0x137)]('\x20\x20─'[_0x15ac6f(0x135)](0x1e)));const _0x2aa27a=(_0x15e624,_0x460f4b)=>{const _0x9e82a0=_0x15ac6f;if(!_0x460f4b){console[_0x9e82a0(0x126)]('\x20\x20'+_0x15e624[_0x9e82a0(0x158)](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x137)](_0x9e82a0(0x155)));return;}const _0x44c4a5=inspectCliConfigJsonFile(_0x460f4b);if(_0x44c4a5[_0x9e82a0(0x125)]==='ok')console[_0x9e82a0(0x126)]('\x20\x20'+_0x15e624[_0x9e82a0(0x158)](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x157)](_0x9e82a0(0x13d)));else{if(_0x44c4a5['status']===_0x9e82a0(0x145))console[_0x9e82a0(0x126)]('\x20\x20'+_0x15e624[_0x9e82a0(0x158)](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x12b)](_0x9e82a0(0x147)));else _0x44c4a5[_0x9e82a0(0x125)]==='missing'?console[_0x9e82a0(0x126)]('\x20\x20'+_0x15e624['padEnd'](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x137)](_0x9e82a0(0x12f))):(console[_0x9e82a0(0x126)]('\x20\x20'+_0x15e624['padEnd'](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x117)]('✗\x20Invalid\x20JSON')),console[_0x9e82a0(0x126)]('\x20\x20'+''[_0x9e82a0(0x158)](0x11)+'\x20'+a29_0x306bb0[_0x9e82a0(0x117)](_0x44c4a5[_0x9e82a0(0x14e)])));}};_0x2aa27a('Global',_0x1767d1),_0x2aa27a('Project',_0x2ad3d8),console[_0x15ac6f(0x126)](),console[_0x15ac6f(0x126)](a29_0x306bb0[_0x15ac6f(0x14b)](_0x15ac6f(0x14f))),console['log'](a29_0x306bb0['gray']('\x20\x20─'[_0x15ac6f(0x135)](0x1e))),console[_0x15ac6f(0x126)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15558f[_0x15ac6f(0x115)]||a29_0x306bb0[_0x15ac6f(0x117)]('(not\x20set)'))),console[_0x15ac6f(0x126)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15558f['env']);const _0x3ae904=isLegacyCompatConfigKey(_0x15ac6f(0x12c))?a29_0x306bb0['gray'](_0x15558f[_0x15ac6f(0x12c)]+_0x15ac6f(0x123)):_0x15558f[_0x15ac6f(0x12c)];console[_0x15ac6f(0x126)](_0x15ac6f(0x129)+_0x3ae904),console[_0x15ac6f(0x126)](_0x15ac6f(0x15d)+(_0x15558f[_0x15ac6f(0x121)]||a29_0x306bb0['gray'](_0x15ac6f(0x12a)))),console['log'](_0x15ac6f(0x14c)+(_0x15558f[_0x15ac6f(0x130)]||a29_0x306bb0[_0x15ac6f(0x137)](_0x15ac6f(0x12a)))),console[_0x15ac6f(0x126)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15558f[_0x15ac6f(0x11e)]||a29_0x306bb0['gray'](_0x15ac6f(0x122)+DEFAULT_CONFIG_VALUES[_0x15ac6f(0x11e)]+')'))),console[_0x15ac6f(0x126)](_0x15ac6f(0x120)+(_0x15558f[_0x15ac6f(0x146)]??a29_0x306bb0[_0x15ac6f(0x137)]('(default)'))),console[_0x15ac6f(0x126)](_0x15ac6f(0x156)+_0x15558f[_0x15ac6f(0x15e)]),console[_0x15ac6f(0x126)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15558f[_0x15ac6f(0x13e)]),console[_0x15ac6f(0x126)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x15ac6f(0x124)]),console[_0x15ac6f(0x126)](_0x15ac6f(0x11b)+(_0x15558f['accessKey']?a29_0x306bb0['green'](_0x15ac6f(0x159)+_0x15558f[_0x15ac6f(0x15a)][_0x15ac6f(0x11c)]+')'):a29_0x306bb0[_0x15ac6f(0x137)]('(none)'))),console[_0x15ac6f(0x126)](),console[_0x15ac6f(0x126)](a29_0x306bb0['bold']('\x20\x20API\x20Endpoints')),console[_0x15ac6f(0x126)](a29_0x306bb0['gray'](_0x15ac6f(0x11a)[_0x15ac6f(0x135)](0x1e))),console[_0x15ac6f(0x126)](_0x15ac6f(0x118)+getApiDomain()),console[_0x15ac6f(0x126)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x15ac6f(0x126)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console['log'](a29_0x306bb0[_0x15ac6f(0x14b)](_0x15ac6f(0x153))),console['log'](a29_0x306bb0[_0x15ac6f(0x137)]('\x20\x20─'[_0x15ac6f(0x135)](0x1e)));const _0x35b15b=inspectServiceRegistry();console['log'](_0x15ac6f(0x111)+_0x35b15b[_0x15ac6f(0x114)]),console[_0x15ac6f(0x126)](_0x15ac6f(0x142)+formatServiceRegistryStatus(_0x35b15b)),console[_0x15ac6f(0x126)](_0x15ac6f(0x15c)+_0x35b15b[_0x15ac6f(0x151)]),console[_0x15ac6f(0x126)](_0x15ac6f(0x13c)+_0x35b15b[_0x15ac6f(0x112)]);for(const _0x139004 of _0x35b15b[_0x15ac6f(0x149)]){console[_0x15ac6f(0x126)]('\x20\x20'+(_0x139004[_0x15ac6f(0x139)]+':')['padEnd'](0x11)+'\x20'+(_0x139004['name']||a29_0x306bb0['gray'](_0x15ac6f(0x12d)))+'\x20('+_0x139004['commandCount']+_0x15ac6f(0x13b)),console['log']('\x20\x20'+''[_0x15ac6f(0x158)](0x11)+'\x20Imported\x20from:\x20'+_0x139004[_0x15ac6f(0x14a)][_0x15ac6f(0x13a)]);}return console[_0x15ac6f(0x126)](),console['log'](a29_0x306bb0[_0x15ac6f(0x14b)](_0x15ac6f(0x127))),console[_0x15ac6f(0x126)](a29_0x306bb0[_0x15ac6f(0x137)]('\x20\x20─'[_0x15ac6f(0x135)](0x1e))),console[_0x15ac6f(0x126)](_0x15ac6f(0x144)+a29_0x306bb0[_0x15ac6f(0x157)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x15ac6f(0x126)](_0x15ac6f(0x134)+a29_0x306bb0[_0x15ac6f(0x137)](_0x15ac6f(0x15b))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x239d98){const _0x25efbf=a29_0xbd61;if(_0x239d98[_0x25efbf(0x125)]==='ok')return a29_0x306bb0[_0x25efbf(0x157)](_0x25efbf(0x119));if(_0x239d98[_0x25efbf(0x125)]==='missing')return a29_0x306bb0[_0x25efbf(0x137)](_0x25efbf(0x143));if(_0x239d98['status']===_0x25efbf(0x145))return a29_0x306bb0[_0x25efbf(0x12b)](_0x25efbf(0x152));return a29_0x306bb0[_0x25efbf(0x117)](_0x25efbf(0x131)+(_0x239d98[_0x25efbf(0x14e)]?':\x20'+_0x239d98[_0x25efbf(0x14e)]:''));}function a29_0xbd61(_0x4df812,_0x2458df){_0x4df812=_0x4df812-0x110;const _0x16a78f=a29_0x16a7();let _0xbd619e=_0x16a78f[_0x4df812];return _0xbd619e;}export const doctorDefinition={'service':a29_0x294229(0x141),'command':a29_0x294229(0x11d),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x294229(0x136),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a30_0x49dbdf=a30_0x55c2;(function(_0x209513,_0x548bc9){const _0x8f6c6e=a30_0x55c2,_0x3ac401=_0x209513();while(!![]){try{const _0x51201f=parseInt(_0x8f6c6e(0x1e9))/0x1*(-parseInt(_0x8f6c6e(0x1ed))/0x2)+-parseInt(_0x8f6c6e(0x1ea))/0x3*(-parseInt(_0x8f6c6e(0x1e2))/0x4)+-parseInt(_0x8f6c6e(0x1e3))/0x5*(-parseInt(_0x8f6c6e(0x1d6))/0x6)+parseInt(_0x8f6c6e(0x1d3))/0x7*(-parseInt(_0x8f6c6e(0x1e8))/0x8)+-parseInt(_0x8f6c6e(0x1cc))/0x9+parseInt(_0x8f6c6e(0x1cb))/0xa*(-parseInt(_0x8f6c6e(0x1da))/0xb)+parseInt(_0x8f6c6e(0x1d0))/0xc*(parseInt(_0x8f6c6e(0x1ca))/0xd);if(_0x51201f===_0x548bc9)break;else _0x3ac401['push'](_0x3ac401['shift']());}catch(_0x43594a){_0x3ac401['push'](_0x3ac401['shift']());}}}(a30_0x3e3a,0x72d61));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';function a30_0x3e3a(){const _0x1d52b7=['Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','validation','trim','filePath','104qyRRNC','11410QdQUqY','7008255wRuFWY','filePath\x20is\x20required.','boolean','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','2098884RpJGeo','read','build','7LtKRTt','download','Preview:\x20upload\x20','1943628sPFsNR','query-url','filepath','upload','2607HUIMrE','\x20to\x20runtime\x20app\x20','bool','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','appCode','POST','string','1720suGCUg','5ixkDfs','File','str','Uploaded\x20file:\x20','long-term','2184312BDUzXm','141852ipjqNI','2463sGCKUu','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','4CQPvXA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a30_0x3e3a=function(){return _0x1d52b7;};return a30_0x3e3a();}import{CliErrors}from'../../errors.js';function a30_0x55c2(_0x4f03ff,_0x13ceac){_0x4f03ff=_0x4f03ff-0x1c5;const _0x3e3a08=a30_0x3e3a();let _0x55c2e4=_0x3e3a08[_0x4f03ff];return _0x55c2e4;}import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x49dbdf(0x1dd),'type':'string','required':!![],'description':a30_0x49dbdf(0x1eb)},FILEPATH_FLAG={'name':a30_0x49dbdf(0x1d8),'type':a30_0x49dbdf(0x1e1),'required':!![],'description':a30_0x49dbdf(0x1ee)},DOWNLOAD_FLAG={'name':'download','type':a30_0x49dbdf(0x1ce),'description':a30_0x49dbdf(0x1cf)},LONG_TERM_FLAG={'name':'long-term','type':a30_0x49dbdf(0x1ce),'description':a30_0x49dbdf(0x1c6)};function requireFilePath(_0x461731){const _0x3b0920=a30_0x49dbdf,_0x3980f8=_0x461731[_0x3b0920(0x1c8)]();if(!_0x3980f8)throw CliErrors[_0x3b0920(0x1c7)](_0x3b0920(0x1cd));return _0x3980f8;}const fileUpload={'service':a30_0x49dbdf(0x1dd),'command':a30_0x49dbdf(0x1d9),'description':a30_0x49dbdf(0x1de),'risk':a30_0x49dbdf(0x1d1),'flags':[FILE_FLAG],async 'dryRun'(_0x1da3b6){const _0x127569=a30_0x49dbdf,_0x405f2f=requireRuntimeUploadFile(_0x1da3b6[_0x127569(0x1e5)](_0x127569(0x1dd)),_0x127569(0x1e4));return dryRun(_0x127569(0x1e0),'/client/uploadFile')['body']({'appCode':_0x1da3b6[_0x127569(0x1df)],'multipart':{'file':_0x405f2f}})['description'](_0x127569(0x1d5)+_0x405f2f['path']+_0x127569(0x1db)+_0x1da3b6[_0x127569(0x1df)])[_0x127569(0x1d2)]();},async 'execute'(_0x513934){const _0x14b69e=a30_0x49dbdf,_0x10733b=requireRuntimeUploadFile(_0x513934['str'](_0x14b69e(0x1dd)),'File'),_0x65e93f=await uploadRuntimeFile(_0x513934['appCode'],_0x10733b['path']);return{'ok':!![],'data':_0x65e93f,'message':_0x65e93f[_0x14b69e(0x1c9)]?_0x14b69e(0x1e6)+_0x65e93f[_0x14b69e(0x1c9)]+_0x14b69e(0x1c5):_0x14b69e(0x1ec)};}},fileQueryUrl={'service':'file','command':a30_0x49dbdf(0x1d7),'description':a30_0x49dbdf(0x1ef),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x10cf6e){const _0x8ba36f=a30_0x49dbdf,_0x25e1c5=requireFilePath(_0x10cf6e[_0x8ba36f(0x1e5)](_0x8ba36f(0x1d8))),_0x543836=await queryRuntimeFileUrl(_0x25e1c5,{'download':_0x10cf6e[_0x8ba36f(0x1dc)](_0x8ba36f(0x1d4)),'longTerm':_0x10cf6e['bool'](_0x8ba36f(0x1e7))});return{'ok':!![],'data':_0x543836};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a30_0x5deeb1=a30_0x5712;(function(_0x5cb365,_0x1a92eb){const _0x5c4015=a30_0x5712,_0x1e4dd6=_0x5cb365();while(!![]){try{const _0x518702=parseInt(_0x5c4015(0x16f))/0x1*(parseInt(_0x5c4015(0x174))/0x2)+parseInt(_0x5c4015(0x191))/0x3+parseInt(_0x5c4015(0x187))/0x4*(parseInt(_0x5c4015(0x184))/0x5)+-parseInt(_0x5c4015(0x196))/0x6*(parseInt(_0x5c4015(0x18a))/0x7)+-parseInt(_0x5c4015(0x181))/0x8*(parseInt(_0x5c4015(0x17c))/0x9)+parseInt(_0x5c4015(0x18c))/0xa*(parseInt(_0x5c4015(0x16e))/0xb)+parseInt(_0x5c4015(0x190))/0xc*(-parseInt(_0x5c4015(0x177))/0xd);if(_0x518702===_0x1a92eb)break;else _0x1e4dd6['push'](_0x1e4dd6['shift']());}catch(_0x429c4d){_0x1e4dd6['push'](_0x1e4dd6['shift']());}}}(a30_0x2923,0x9803d));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';function a30_0x5712(_0x9c4383,_0x5ce269){_0x9c4383=_0x9c4383-0x16d;const _0x2923ed=a30_0x2923();let _0x5712a3=_0x2923ed[_0x9c4383];return _0x5712a3;}const FILE_FLAG={'name':'file','type':a30_0x5deeb1(0x171),'required':!![],'description':a30_0x5deeb1(0x176)},FILEPATH_FLAG={'name':a30_0x5deeb1(0x188),'type':a30_0x5deeb1(0x171),'required':!![],'description':a30_0x5deeb1(0x183)},DOWNLOAD_FLAG={'name':a30_0x5deeb1(0x185),'type':a30_0x5deeb1(0x193),'description':a30_0x5deeb1(0x17d)},LONG_TERM_FLAG={'name':a30_0x5deeb1(0x178),'type':a30_0x5deeb1(0x193),'description':a30_0x5deeb1(0x16d)};function requireFilePath(_0x46c297){const _0x144930=a30_0x5deeb1,_0x3ae30e=_0x46c297['trim']();if(!_0x3ae30e)throw CliErrors[_0x144930(0x18d)]('filePath\x20is\x20required.');return _0x3ae30e;}function a30_0x2923(){const _0x2322fa=['upload','24TrfmMd','2134509awHymX','str','boolean','filePath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','30SmtBSu','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','55wtcCUq','2315TlvJvx','File','string','read','bool','614mVITiH','description','Path\x20to\x20the\x20local\x20file\x20to\x20upload','11012066zyDWuQ','long-term','Preview:\x20upload\x20','body','Uploaded\x20file:\x20','2746602UoxBEB','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','/client/uploadFile','\x20to\x20runtime\x20app\x20','build','8xLdBxq','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','1719985JMinDV','download','appCode','4WDnhWM','filepath','file','149205rwUHbN','path','1924730vRPOFk','validation','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references'];a30_0x2923=function(){return _0x2322fa;};return a30_0x2923();}const fileUpload={'service':a30_0x5deeb1(0x189),'command':a30_0x5deeb1(0x18f),'description':a30_0x5deeb1(0x18e),'risk':a30_0x5deeb1(0x172),'flags':[FILE_FLAG],async 'dryRun'(_0xb7f02f){const _0x22e9cf=a30_0x5deeb1,_0x5bce80=requireRuntimeUploadFile(_0xb7f02f[_0x22e9cf(0x192)](_0x22e9cf(0x189)),_0x22e9cf(0x170));return dryRun('POST',_0x22e9cf(0x17e))[_0x22e9cf(0x17a)]({'appCode':_0xb7f02f[_0x22e9cf(0x186)],'multipart':{'file':_0x5bce80}})[_0x22e9cf(0x175)](_0x22e9cf(0x179)+_0x5bce80[_0x22e9cf(0x18b)]+_0x22e9cf(0x17f)+_0xb7f02f[_0x22e9cf(0x186)])[_0x22e9cf(0x180)]();},async 'execute'(_0x327fbb){const _0x336de2=a30_0x5deeb1,_0x4b1ce1=requireRuntimeUploadFile(_0x327fbb[_0x336de2(0x192)](_0x336de2(0x189)),_0x336de2(0x170)),_0x14b1b5=await uploadRuntimeFile(_0x327fbb[_0x336de2(0x186)],_0x4b1ce1[_0x336de2(0x18b)]);return{'ok':!![],'data':_0x14b1b5,'message':_0x14b1b5[_0x336de2(0x194)]?_0x336de2(0x17b)+_0x14b1b5[_0x336de2(0x194)]+_0x336de2(0x195):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a30_0x5deeb1(0x189),'command':'query-url','description':a30_0x5deeb1(0x182),'risk':a30_0x5deeb1(0x172),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x23821e){const _0x2918ee=a30_0x5deeb1,_0x3dbe51=requireFilePath(_0x23821e[_0x2918ee(0x192)](_0x2918ee(0x188))),_0x74ac1c=await queryRuntimeFileUrl(_0x3dbe51,{'download':_0x23821e[_0x2918ee(0x173)](_0x2918ee(0x185)),'longTerm':_0x23821e['bool'](_0x2918ee(0x178))});return{'ok':!![],'data':_0x74ac1c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a31_0x4e5730=a31_0x43f7;(function(_0x8959f0,_0x1fbcd7){const _0x5af08a=a31_0x43f7,_0x4825ba=_0x8959f0();while(!![]){try{const _0x7df80f=parseInt(_0x5af08a(0xf5))/0x1*(-parseInt(_0x5af08a(0x101))/0x2)+-parseInt(_0x5af08a(0xf3))/0x3*(parseInt(_0x5af08a(0x11e))/0x4)+parseInt(_0x5af08a(0xfd))/0x5*(-parseInt(_0x5af08a(0x125))/0x6)+-parseInt(_0x5af08a(0x112))/0x7+-parseInt(_0x5af08a(0x100))/0x8+-parseInt(_0x5af08a(0xef))/0x9+parseInt(_0x5af08a(0xf1))/0xa;if(_0x7df80f===_0x1fbcd7)break;else _0x4825ba['push'](_0x4825ba['shift']());}catch(_0x488e){_0x4825ba['push'](_0x4825ba['shift']());}}}(a31_0x3af5,0xad050));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';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a31_0x4e5730(0x119),'type':'string','description':a31_0x4e5730(0x131)},{'name':'env','type':'string','description':a31_0x4e5730(0x124)+DEFAULT_CONFIG_VALUES[a31_0x4e5730(0x104)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a31_0x4e5730(0xf0),'type':a31_0x4e5730(0x123),'description':a31_0x4e5730(0x129)+PRODUCT_CONFIG[a31_0x4e5730(0x10f)]+')\x20instead\x20of\x20project','default':![]},{'name':a31_0x4e5730(0x114),'type':'boolean','description':a31_0x4e5730(0x128),'default':![]}];export const initImportFlagDefs=[{'name':a31_0x4e5730(0x12a),'type':a31_0x4e5730(0x115),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':'appcode','type':a31_0x4e5730(0x115),'description':a31_0x4e5730(0x11d)},{'name':a31_0x4e5730(0x104),'type':a31_0x4e5730(0x115),'description':a31_0x4e5730(0x122),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a31_0x4e5730(0x123),'description':a31_0x4e5730(0x129)+PRODUCT_CONFIG[a31_0x4e5730(0x10f)]+')\x20instead\x20of\x20project','default':![]},{'name':a31_0x4e5730(0x114),'type':'boolean','description':a31_0x4e5730(0x128),'default':![]}];export async function runInit(_0x1c43c3){const _0x1b8cab=a31_0x4e5730,_0x3a09af=isNonInteractiveMode(_0x1c43c3),_0x457c99=_0x1c43c3[_0x1b8cab(0xf0)]?'global':_0x1b8cab(0x107),_0x54e16d=resolveWriteConfigPath(_0x457c99);try{_0x3a09af?await runNonInteractive(_0x1c43c3,_0x54e16d):await runInteractive(_0x1c43c3,_0x54e16d);}catch(_0x10f794){if(_0x10f794 instanceof AbortPrompt)throw CliErrors[_0x1b8cab(0x102)]();throw _0x10f794;}}function a31_0x3af5(){const _0x1c0f96=['875382jIdiXh','validation','265AtEIeU','apps','defaultApp','User\x20aborted\x20prompt','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','log','\x0aInitialized\x20','\x20init\x20—\x20Create\x20','836530QTOdTc','Invalid\x20env\x20\x22','App\x20code\x20cannot\x20be\x20empty.','6579768pBlWzH','96GlwCNX','cancelled','\x20\x20default:\x20','env','toLowerCase','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','project','Source\x20file\x20not\x20found:\x20','stdin','object','includes','\x20\x20env:\x20\x20\x20\x20\x20','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`.','App\x20code','newConfigFileName','trim','removeListener','1005662kbYoBL','cwd','yes','string','stdout','):\x20','message','appcode','once','[y/N]','entries','Override\x20imported\x20default\x20appcode','12HcFrWc','\x20\x20appcode:\x20','close','name','Override\x20imported\x20default\x20env','boolean','Target\x20environment\x20(default\x20','12CXmuLr','Aborted.','question','Skip\x20confirmation\x20when\x20overwriting','Write\x20to\x20global\x20(~/','file','flagMissing','Usage:\x20','riskLevel','\x22.\x20Allowed:\x20','SIGINT','utf8','App\x20code\x20for\x20the\x20project','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','race','Failed\x20to\x20parse\x20source\x20file:\x20','69948RjjHhO','global','29053110VwfjFj','File\x20'];a31_0x3af5=function(){return _0x1c0f96;};return a31_0x3af5();}export async function runInitImport(_0x1f847d){const _0x2588f0=a31_0x4e5730,_0x1deae9=_0x1f847d[_0x2588f0(0xf0)]?_0x2588f0(0xf0):_0x2588f0(0x107),_0x2f0f84=resolveWriteConfigPath(_0x1deae9);await runFromImport(_0x1f847d,_0x2f0f84);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x27289d,_0x37bb51){const _0x606095=a31_0x4e5730,_0x531f90=resolveFilePath(_0x27289d['file']);if(!existsSync(_0x531f90))throw CliErrors['validation'](_0x606095(0x108)+_0x531f90);const _0x290d23=readSourceFile(_0x531f90),_0xf55e03=convertToRuntimeConfig(_0x290d23);_0x27289d[_0x606095(0x119)]&&(_0xf55e03[_0x606095(0x119)]=String(_0x27289d[_0x606095(0x119)]));_0x27289d[_0x606095(0x104)]&&(_0xf55e03['env']=resolveInitEnv(_0x27289d));if(!_0xf55e03[_0x606095(0x119)])throw CliErrors[_0x606095(0xf4)](_0x606095(0x106),_0x606095(0x10d));await writeInitConfig(_0x37bb51,_0xf55e03,_0x27289d),console[_0x606095(0xfa)]('Imported\x20from\x20'+_0x531f90),console[_0x606095(0xfa)]('\x20\x20config:\x20\x20'+_0x37bb51),console[_0x606095(0xfa)](_0x606095(0x11f)+_0xf55e03[_0x606095(0x119)]);if(_0xf55e03['defaultApp'])console[_0x606095(0xfa)](_0x606095(0x103)+_0xf55e03[_0x606095(0xf7)]);}function convertToRuntimeConfig(_0xb709ff){const _0x233bf7=a31_0x4e5730;if(_0xb709ff[_0x233bf7(0xf6)]&&typeof _0xb709ff[_0x233bf7(0xf6)]===_0x233bf7(0x10a))throw CliErrors['validation'](_0x233bf7(0x132),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x27f4a6={};for(const _0x1e14e9 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xb709ff[_0x1e14e9]!==undefined&&(_0x27f4a6[_0x1e14e9]=_0xb709ff[_0x1e14e9]);}return!_0x27f4a6[_0x233bf7(0x12d)]&&(_0x27f4a6[_0x233bf7(0x12d)]=DEFAULT_CONFIG_VALUES[_0x233bf7(0x12d)]),_0x27f4a6;}async function runNonInteractive(_0x3ff5a7,_0x419862){const _0xfd2273=a31_0x4e5730,_0x48eb68=_0x3ff5a7[_0xfd2273(0x119)];if(!_0x48eb68)throw CliErrors[_0xfd2273(0x12b)]('appcode',_0xfd2273(0x12c)+CLI_BIN_NAME+_0xfd2273(0xf9));const _0x2ac1d4=resolveInitEnv(_0x3ff5a7);await writeInitConfig(_0x419862,{'appcode':_0x48eb68,'env':_0x2ac1d4},_0x3ff5a7),console[_0xfd2273(0xfa)]('Initialized\x20'+_0x419862),console[_0xfd2273(0xfa)](_0xfd2273(0x11f)+_0x48eb68),console[_0xfd2273(0xfa)](_0xfd2273(0x10c)+_0x2ac1d4);}async function runInteractive(_0x3430ae,_0x3f9604){const _0x5bd31e=a31_0x4e5730,_0x5a5736=loadExisting(_0x3f9604),_0x1841b9=typeof _0x5a5736?.[_0x5bd31e(0x119)]===_0x5bd31e(0x115)?_0x5a5736[_0x5bd31e(0x119)]:'',_0x30d2f2=resolveInitEnv(_0x3430ae);console[_0x5bd31e(0xfa)](CLI_BIN_NAME+_0x5bd31e(0xfc)+PRODUCT_CONFIG['newConfigFileName']+'\x0a');if(existsSync(_0x3f9604)&&!_0x3430ae[_0x5bd31e(0x114)]){const _0x51dba7=await promptYesNo(_0x5bd31e(0xf2)+_0x3f9604+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x51dba7){console[_0x5bd31e(0xfa)](_0x5bd31e(0x126));return;}}const _0x413e68=typeof _0x3430ae[_0x5bd31e(0x119)]===_0x5bd31e(0x115)?_0x3430ae[_0x5bd31e(0x119)]['trim']():'';let _0xa007b8=_0x413e68;!_0xa007b8&&(_0xa007b8=await promptInput(_0x5bd31e(0x10e),_0x1841b9));if(!_0xa007b8['trim']())throw CliErrors[_0x5bd31e(0xf4)](_0x5bd31e(0xff));await writeInitConfig(_0x3f9604,{'appcode':_0xa007b8[_0x5bd31e(0x110)](),'env':_0x30d2f2},_0x3430ae),console['log'](_0x5bd31e(0xfb)+_0x3f9604),console[_0x5bd31e(0xfa)](_0x5bd31e(0x11f)+_0xa007b8[_0x5bd31e(0x110)]()),console[_0x5bd31e(0xfa)](_0x5bd31e(0x10c)+_0x30d2f2);}async function writeInitConfig(_0x4d0212,_0x27e26d,_0x423f1d){const _0x2fed3d=a31_0x4e5730;let _0xd92fb1={};existsSync(_0x4d0212)&&!_0x423f1d[_0x2fed3d(0x114)]&&(_0xd92fb1=readConfigFile(_0x4d0212));for(const [_0x179af0,_0x3c5b94]of Object[_0x2fed3d(0x11c)](_0x27e26d)){_0x3c5b94!==undefined&&(_0xd92fb1[_0x179af0]=_0x3c5b94);}if(_0xd92fb1['app'])delete _0xd92fb1['app'];writeConfigFile(_0x4d0212,_0xd92fb1);}class AbortPrompt extends Error{constructor(){const _0x26271c=a31_0x4e5730;super(_0x26271c(0xf8)),this[_0x26271c(0x121)]='AbortPrompt';}}function createSafeRl(){const _0x1dfee1=a31_0x4e5730,_0x11e370=createInterface({'input':process[_0x1dfee1(0x109)],'output':process[_0x1dfee1(0x116)]});let _0x53ee1f;const _0x5c3e25=new Promise((_0x30f8d0,_0x234dbe)=>{const _0x207c59=_0x1dfee1;_0x53ee1f=()=>{const _0x206580=a31_0x43f7;_0x53ee1f&&(_0x11e370['removeListener'](_0x206580(0x12f),_0x53ee1f),_0x53ee1f=undefined);try{_0x11e370[_0x206580(0x120)]();}catch{}_0x234dbe(new AbortPrompt());},_0x11e370[_0x207c59(0x11a)](_0x207c59(0x12f),_0x53ee1f);}),_0x271ed1=()=>{const _0xdf7c7d=_0x1dfee1;_0x53ee1f&&(_0x11e370[_0xdf7c7d(0x111)](_0xdf7c7d(0x12f),_0x53ee1f),_0x53ee1f=undefined);try{_0x11e370['close']();}catch{}};return{'rl':_0x11e370,'abortPromise':_0x5c3e25,'disposeSuccess':_0x271ed1};}async function promptInput(_0x32f7a0,_0x37ea6b){const _0x263fed=a31_0x4e5730,{rl:_0x30bee6,abortPromise:_0x249fa4,disposeSuccess:_0x4f6ec8}=createSafeRl(),_0x5e14eb=new Promise(_0x2398c9=>{const _0x51bd5c=a31_0x43f7,_0x1bd120=_0x37ea6b?'\x20\x20'+_0x32f7a0+'\x20('+_0x37ea6b+_0x51bd5c(0x117):'\x20\x20'+_0x32f7a0+':\x20';_0x30bee6[_0x51bd5c(0x127)](_0x1bd120,_0x37638f=>{_0x4f6ec8(),_0x2398c9(_0x37638f['trim']()||_0x37ea6b);});});return Promise[_0x263fed(0x133)]([_0x5e14eb,_0x249fa4]);}async function promptYesNo(_0x9e8fae,_0x1be078){const _0x566d4c=a31_0x4e5730,{rl:_0x3ac8cb,abortPromise:_0x1a1b83,disposeSuccess:_0x55ca21}=createSafeRl(),_0x1302de=new Promise(_0x82cc6f=>{const _0x1d6355=a31_0x43f7,_0xcb90eb=_0x1be078?'[Y/n]':_0x1d6355(0x11b);_0x3ac8cb[_0x1d6355(0x127)]('\x20\x20'+_0x9e8fae+'\x20'+_0xcb90eb+':\x20',_0x14a138=>{const _0x4d6584=_0x1d6355;_0x55ca21();const _0x53ef69=_0x14a138[_0x4d6584(0x110)]()[_0x4d6584(0x105)]();if(_0x53ef69==='y'||_0x53ef69==='yes')_0x82cc6f(!![]);else{if(_0x53ef69==='n'||_0x53ef69==='no')_0x82cc6f(![]);else _0x82cc6f(_0x1be078);}});});return Promise[_0x566d4c(0x133)]([_0x1302de,_0x1a1b83]);}function loadExisting(_0x2fd049){if(!existsSync(_0x2fd049))return null;return readConfigFile(_0x2fd049);}function resolveFilePath(_0x31967a){const _0xd13f32=a31_0x4e5730;return isAbsolute(_0x31967a)?_0x31967a:resolve(process[_0xd13f32(0x113)](),_0x31967a);}function a31_0x43f7(_0x4694ff,_0x25f438){_0x4694ff=_0x4694ff-0xef;const _0x3af5a8=a31_0x3af5();let _0x43f74d=_0x3af5a8[_0x4694ff];return _0x43f74d;}function readSourceFile(_0x452ce5){const _0x5f1d88=a31_0x4e5730;try{const _0x5cddf1=readFileSync(_0x452ce5,{'encoding':_0x5f1d88(0x130)});return JSON['parse'](_0x5cddf1);}catch(_0xb243d9){throw CliErrors[_0x5f1d88(0xf4)](_0x5f1d88(0x134)+_0xb243d9[_0x5f1d88(0x118)]);}}function resolveInitEnv(_0x669a6d){const _0x403ff7=a31_0x4e5730,_0x4270d6=_0x669a6d['env'];if(_0x4270d6===undefined||_0x4270d6==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x403ff7(0x10b)](_0x4270d6))throw CliErrors['validation'](_0x403ff7(0xfe)+_0x4270d6+_0x403ff7(0x12e)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x4270d6;}
1
+ const a31_0x4966d7=a31_0xb6a6;(function(_0x3e05f0,_0x28983f){const _0x57721b=a31_0xb6a6,_0x5294eb=_0x3e05f0();while(!![]){try{const _0x1ccc37=parseInt(_0x57721b(0x1ba))/0x1+-parseInt(_0x57721b(0x182))/0x2+-parseInt(_0x57721b(0x1b3))/0x3*(-parseInt(_0x57721b(0x1a2))/0x4)+-parseInt(_0x57721b(0x184))/0x5+parseInt(_0x57721b(0x198))/0x6+parseInt(_0x57721b(0x186))/0x7*(parseInt(_0x57721b(0x18a))/0x8)+-parseInt(_0x57721b(0x1ae))/0x9;if(_0x1ccc37===_0x28983f)break;else _0x5294eb['push'](_0x5294eb['shift']());}catch(_0x9b45c8){_0x5294eb['push'](_0x5294eb['shift']());}}}(a31_0x1dac,0x9c413));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';function a31_0xb6a6(_0x415d13,_0x7822ec){_0x415d13=_0x415d13-0x180;const _0x1dac85=a31_0x1dac();let _0xb6a6b9=_0x1dac85[_0x415d13];return _0xb6a6b9;}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';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':a31_0x4966d7(0x19d),'type':a31_0x4966d7(0x18e),'description':a31_0x4966d7(0x199)},{'name':a31_0x4966d7(0x1bf),'type':a31_0x4966d7(0x18e),'description':a31_0x4966d7(0x1b1)+DEFAULT_CONFIG_VALUES[a31_0x4966d7(0x1bf)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a31_0x4966d7(0x19c),'description':a31_0x4966d7(0x18c)+PRODUCT_CONFIG[a31_0x4966d7(0x196)]+a31_0x4966d7(0x191),'default':![]},{'name':a31_0x4966d7(0x1ad),'type':a31_0x4966d7(0x19c),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];function a31_0x1dac(){const _0x4d37d2=['riskLevel','6741600sTqxrz','App\x20code\x20for\x20the\x20project','AbortPrompt','join','boolean','appcode','question','\x20\x20config:\x20\x20','utf8','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','4ogkxzo','defaultApp','\x20\x20env:\x20\x20\x20\x20\x20','log','once','[y/N]','message','app','close','validation','global','yes','1048500pGvqOK','parse','race','Target\x20environment\x20(default\x20','Skip\x20confirmation\x20when\x20overwriting','2565546LOfrFG','\x20\x20appcode:\x20','Usage:\x20','file','User\x20aborted\x20prompt','trim','name','143752iRcpTW','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`.','cancelled','\x22.\x20Allowed:\x20','\x20\x20default:\x20','env','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Imported\x20from\x20','toLowerCase','Initialized\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','stdout','\x20already\x20exists.\x20Overwrite?','2324490FOncrd','stdin','2208475hOCyZX','apiDir','175BXjKki','object','Invalid\x20env\x20\x22','App\x20code\x20cannot\x20be\x20empty.','76136ZAxoRB','Failed\x20to\x20parse\x20source\x20file:\x20','Write\x20to\x20global\x20(~/','flagMissing','string','Override\x20imported\x20default\x20env','Override\x20imported\x20default\x20appcode',')\x20instead\x20of\x20project','removeListener','SIGINT','project','):\x20','newConfigFileName'];a31_0x1dac=function(){return _0x4d37d2;};return a31_0x1dac();}export const initImportFlagDefs=[{'name':a31_0x4966d7(0x1b6),'type':a31_0x4966d7(0x18e),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a31_0x4966d7(0x19d),'type':a31_0x4966d7(0x18e),'description':a31_0x4966d7(0x190)},{'name':'env','type':a31_0x4966d7(0x18e),'description':a31_0x4966d7(0x18f),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a31_0x4966d7(0x18c)+PRODUCT_CONFIG[a31_0x4966d7(0x196)]+a31_0x4966d7(0x191),'default':![]},{'name':'yes','type':'boolean','description':a31_0x4966d7(0x1b2),'default':![]}];export async function runInit(_0x80feeb){const _0x6bf84a=a31_0x4966d7,_0x1411ec=isNonInteractiveMode(_0x80feeb),_0x44c2ba=_0x80feeb['global']?_0x6bf84a(0x1ac):_0x6bf84a(0x194),_0x581f8a=resolveWriteConfigPath(_0x44c2ba);try{_0x1411ec?await runNonInteractive(_0x80feeb,_0x581f8a):await runInteractive(_0x80feeb,_0x581f8a);}catch(_0x46ce6c){if(_0x46ce6c instanceof AbortPrompt)throw CliErrors[_0x6bf84a(0x1bc)]();throw _0x46ce6c;}}export async function runInitImport(_0xedcca){const _0x3a0abe=a31_0x4966d7,_0x13e93c=_0xedcca[_0x3a0abe(0x1ac)]?_0x3a0abe(0x1ac):_0x3a0abe(0x194),_0x2e9501=resolveWriteConfigPath(_0x13e93c);await runFromImport(_0xedcca,_0x2e9501);}const RUNTIME_IRRELEVANT_KEYS=new Set([a31_0x4966d7(0x185)]);async function runFromImport(_0x29dea6,_0x59cadd){const _0x5ce5ed=a31_0x4966d7,_0x11647f=resolveFilePath(_0x29dea6[_0x5ce5ed(0x1b6)]);if(!existsSync(_0x11647f))throw CliErrors[_0x5ce5ed(0x1ab)]('Source\x20file\x20not\x20found:\x20'+_0x11647f);const _0x592bde=readSourceFile(_0x11647f),_0xd7f8cd=convertToRuntimeConfig(_0x592bde);_0x29dea6['appcode']&&(_0xd7f8cd['appcode']=String(_0x29dea6['appcode']));_0x29dea6[_0x5ce5ed(0x1bf)]&&(_0xd7f8cd[_0x5ce5ed(0x1bf)]=resolveInitEnv(_0x29dea6));if(!_0xd7f8cd[_0x5ce5ed(0x19d)])throw CliErrors[_0x5ce5ed(0x1ab)](_0x5ce5ed(0x1c4),_0x5ce5ed(0x1bb));await writeInitConfig(_0x59cadd,_0xd7f8cd,_0x29dea6),console[_0x5ce5ed(0x1a5)](_0x5ce5ed(0x1c1)+_0x11647f),console[_0x5ce5ed(0x1a5)](_0x5ce5ed(0x19f)+_0x59cadd),console[_0x5ce5ed(0x1a5)](_0x5ce5ed(0x1b4)+_0xd7f8cd[_0x5ce5ed(0x19d)]);if(_0xd7f8cd['defaultApp'])console['log'](_0x5ce5ed(0x1be)+_0xd7f8cd[_0x5ce5ed(0x1a3)]);}function convertToRuntimeConfig(_0x4cafb3){const _0x2f7abf=a31_0x4966d7;if(_0x4cafb3['apps']&&typeof _0x4cafb3['apps']===_0x2f7abf(0x187))throw CliErrors[_0x2f7abf(0x1ab)](_0x2f7abf(0x1c0),_0x2f7abf(0x1a1));const _0x3bc0cb={};for(const _0x28725b of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x4cafb3[_0x28725b]!==undefined&&(_0x3bc0cb[_0x28725b]=_0x4cafb3[_0x28725b]);}return!_0x3bc0cb['riskLevel']&&(_0x3bc0cb[_0x2f7abf(0x197)]=DEFAULT_CONFIG_VALUES[_0x2f7abf(0x197)]),_0x3bc0cb;}async function runNonInteractive(_0x5d4543,_0x2e8883){const _0x2b0ed4=a31_0x4966d7,_0x235ca9=_0x5d4543[_0x2b0ed4(0x19d)];if(!_0x235ca9)throw CliErrors[_0x2b0ed4(0x18d)]('appcode',_0x2b0ed4(0x1b5)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x518154=resolveInitEnv(_0x5d4543);await writeInitConfig(_0x2e8883,{'appcode':_0x235ca9,'env':_0x518154},_0x5d4543),console[_0x2b0ed4(0x1a5)](_0x2b0ed4(0x1c3)+_0x2e8883),console[_0x2b0ed4(0x1a5)](_0x2b0ed4(0x1b4)+_0x235ca9),console[_0x2b0ed4(0x1a5)](_0x2b0ed4(0x1a4)+_0x518154);}async function runInteractive(_0x106686,_0x2a8650){const _0x36bf6c=a31_0x4966d7,_0x22dcc0=loadExisting(_0x2a8650),_0x1a58d3=typeof _0x22dcc0?.[_0x36bf6c(0x19d)]===_0x36bf6c(0x18e)?_0x22dcc0[_0x36bf6c(0x19d)]:'',_0x35b557=resolveInitEnv(_0x106686);console[_0x36bf6c(0x1a5)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20'+PRODUCT_CONFIG[_0x36bf6c(0x196)]+'\x0a');if(existsSync(_0x2a8650)&&!_0x106686['yes']){const _0x5d9180=await promptYesNo('File\x20'+_0x2a8650+_0x36bf6c(0x181),![]);if(!_0x5d9180){console[_0x36bf6c(0x1a5)]('Aborted.');return;}}const _0x1d48b0=typeof _0x106686[_0x36bf6c(0x19d)]==='string'?_0x106686[_0x36bf6c(0x19d)]['trim']():'';let _0x1f5be5=_0x1d48b0;!_0x1f5be5&&(_0x1f5be5=await promptInput('App\x20code',_0x1a58d3));if(!_0x1f5be5[_0x36bf6c(0x1b8)]())throw CliErrors[_0x36bf6c(0x1ab)](_0x36bf6c(0x189));await writeInitConfig(_0x2a8650,{'appcode':_0x1f5be5[_0x36bf6c(0x1b8)](),'env':_0x35b557},_0x106686),console[_0x36bf6c(0x1a5)]('\x0aInitialized\x20'+_0x2a8650),console['log'](_0x36bf6c(0x1b4)+_0x1f5be5[_0x36bf6c(0x1b8)]()),console[_0x36bf6c(0x1a5)](_0x36bf6c(0x1a4)+_0x35b557);}async function writeInitConfig(_0x1cdeb9,_0x16e26b,_0x70980e){const _0x372183=a31_0x4966d7;let _0x26148a={};existsSync(_0x1cdeb9)&&!_0x70980e[_0x372183(0x1ad)]&&(_0x26148a=readConfigFile(_0x1cdeb9));for(const [_0x461c07,_0xec5ef9]of Object['entries'](_0x16e26b)){_0xec5ef9!==undefined&&(_0x26148a[_0x461c07]=_0xec5ef9);}if(_0x26148a[_0x372183(0x1a9)])delete _0x26148a[_0x372183(0x1a9)];writeConfigFile(_0x1cdeb9,_0x26148a);}class AbortPrompt extends Error{constructor(){const _0x370ec4=a31_0x4966d7;super(_0x370ec4(0x1b7)),this[_0x370ec4(0x1b9)]=_0x370ec4(0x19a);}}function createSafeRl(){const _0x38e964=a31_0x4966d7,_0xbada0d=createInterface({'input':process[_0x38e964(0x183)],'output':process[_0x38e964(0x180)]});let _0x4cbcae;const _0x214afa=new Promise((_0x31e029,_0x14257c)=>{const _0x4b10e8=_0x38e964;_0x4cbcae=()=>{const _0x3eb432=a31_0xb6a6;_0x4cbcae&&(_0xbada0d['removeListener'](_0x3eb432(0x193),_0x4cbcae),_0x4cbcae=undefined);try{_0xbada0d[_0x3eb432(0x1aa)]();}catch{}_0x14257c(new AbortPrompt());},_0xbada0d[_0x4b10e8(0x1a6)]('SIGINT',_0x4cbcae);}),_0x331487=()=>{const _0x4a8d9d=_0x38e964;_0x4cbcae&&(_0xbada0d[_0x4a8d9d(0x192)](_0x4a8d9d(0x193),_0x4cbcae),_0x4cbcae=undefined);try{_0xbada0d[_0x4a8d9d(0x1aa)]();}catch{}};return{'rl':_0xbada0d,'abortPromise':_0x214afa,'disposeSuccess':_0x331487};}async function promptInput(_0x5a3e0e,_0x370f37){const _0x59cce5=a31_0x4966d7,{rl:_0x440bee,abortPromise:_0x5b3848,disposeSuccess:_0x3aa25a}=createSafeRl(),_0x106cdf=new Promise(_0x5ef27e=>{const _0x4d3177=a31_0xb6a6,_0x5f2455=_0x370f37?'\x20\x20'+_0x5a3e0e+'\x20('+_0x370f37+_0x4d3177(0x195):'\x20\x20'+_0x5a3e0e+':\x20';_0x440bee['question'](_0x5f2455,_0x377a56=>{const _0x4bd536=_0x4d3177;_0x3aa25a(),_0x5ef27e(_0x377a56[_0x4bd536(0x1b8)]()||_0x370f37);});});return Promise[_0x59cce5(0x1b0)]([_0x106cdf,_0x5b3848]);}async function promptYesNo(_0x593e5e,_0x3485ba){const _0x3a64bb=a31_0x4966d7,{rl:_0x5b5cee,abortPromise:_0xc43c77,disposeSuccess:_0x41a854}=createSafeRl(),_0x23bbf0=new Promise(_0x245b86=>{const _0x240fb0=a31_0xb6a6,_0x4bef16=_0x3485ba?'[Y/n]':_0x240fb0(0x1a7);_0x5b5cee[_0x240fb0(0x19e)]('\x20\x20'+_0x593e5e+'\x20'+_0x4bef16+':\x20',_0x16a14f=>{const _0x2f02c1=_0x240fb0;_0x41a854();const _0x457715=_0x16a14f[_0x2f02c1(0x1b8)]()[_0x2f02c1(0x1c2)]();if(_0x457715==='y'||_0x457715===_0x2f02c1(0x1ad))_0x245b86(!![]);else{if(_0x457715==='n'||_0x457715==='no')_0x245b86(![]);else _0x245b86(_0x3485ba);}});});return Promise[_0x3a64bb(0x1b0)]([_0x23bbf0,_0xc43c77]);}function loadExisting(_0x446549){if(!existsSync(_0x446549))return null;return readConfigFile(_0x446549);}function resolveFilePath(_0x57db9f){return isAbsolute(_0x57db9f)?_0x57db9f:resolve(process['cwd'](),_0x57db9f);}function readSourceFile(_0xb103bb){const _0xa3f96b=a31_0x4966d7;try{const _0x1b44df=readFileSync(_0xb103bb,{'encoding':_0xa3f96b(0x1a0)});return JSON[_0xa3f96b(0x1af)](_0x1b44df);}catch(_0x401d6e){throw CliErrors[_0xa3f96b(0x1ab)](_0xa3f96b(0x18b)+_0x401d6e[_0xa3f96b(0x1a8)]);}}function resolveInitEnv(_0x5e3632){const _0x232216=a31_0x4966d7,_0x53135c=_0x5e3632[_0x232216(0x1bf)];if(_0x53135c===undefined||_0x53135c==='')return DEFAULT_CONFIG_VALUES[_0x232216(0x1bf)];if(!RUNTIME_ENV_VALUES['includes'](_0x53135c))throw CliErrors[_0x232216(0x1ab)](_0x232216(0x188)+_0x53135c+_0x232216(0x1bd)+RUNTIME_ENV_VALUES[_0x232216(0x19b)](',\x20'));return _0x53135c;}
@@ -1 +1 @@
1
- const a32_0x4c4797=a32_0x37d7;(function(_0x19ac0f,_0x23934e){const _0x16b1d4=a32_0x37d7,_0x4c73eb=_0x19ac0f();while(!![]){try{const _0x5dc9a1=parseInt(_0x16b1d4(0x163))/0x1*(-parseInt(_0x16b1d4(0x182))/0x2)+-parseInt(_0x16b1d4(0x161))/0x3+-parseInt(_0x16b1d4(0x174))/0x4+-parseInt(_0x16b1d4(0x155))/0x5+-parseInt(_0x16b1d4(0x187))/0x6+parseInt(_0x16b1d4(0x18b))/0x7*(parseInt(_0x16b1d4(0x157))/0x8)+parseInt(_0x16b1d4(0x178))/0x9*(parseInt(_0x16b1d4(0x186))/0xa);if(_0x5dc9a1===_0x23934e)break;else _0x4c73eb['push'](_0x4c73eb['shift']());}catch(_0xf81feb){_0x4c73eb['push'](_0x4c73eb['shift']());}}}(a32_0xe739,0x482ab));import{existsSync,readFileSync,statSync}from'node:fs';function a32_0x37d7(_0x3c54cc,_0x2b8842){_0x3c54cc=_0x3c54cc-0x155;const _0xe7396d=a32_0xe739();let _0x37d70f=_0xe7396d[_0x3c54cc];return _0x37d70f;}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';function a32_0xe739(){const _0x2921f2=['description','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','write','query','Personal\x20knowledge-base\x20entry\x20title','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','validation','docId','length','createTime','updateTime','userId','POST','num','bool','1286124VogMkT','read','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','20915406DYBmki','/client/knowledge-base/personal/create','verbose','title','Personal\x20knowledge-base\x20entry\x20ID','appCode','weightedScore','File\x20not\x20found:\x20','detail','Search\x20query\x20is\x20required.','1192WwRKQv','ragStatus','ragErrorMessage','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','10cRveIw','2091690NGXFYw','topk','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','utf8','24850yEJUVu','body','map','scope','build','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','File\x20is\x20not\x20a\x20regular\x20file:\x20','update','Created\x20KB\x20entry\x20','2506410xwOEfD','isFile','32geUaAb','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','flag','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','str','string','/client/knowledge-base/personal/','content','isFinite','--topk\x20must\x20be\x20a\x20positive\x20number.','1715757epifoG','create','502tRYmFa','file'];a32_0xe739=function(){return _0x2921f2;};return a32_0xe739();}import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a32_0x4c4797(0x17b),'type':a32_0x4c4797(0x15c),'required':!![],'description':a32_0x4c4797(0x169)},FILE_FLAG={'name':a32_0x4c4797(0x164),'type':a32_0x4c4797(0x15c),'required':!![],'description':a32_0x4c4797(0x177)},QUERY_FLAG={'name':'query','type':'string','required':!![],'description':a32_0x4c4797(0x190)},TOPK_FLAG={'name':a32_0x4c4797(0x188),'type':'number','description':a32_0x4c4797(0x158)};function readKnowledgeFile(_0x5f3333){const _0x43bf34=a32_0x4c4797;if(!_0x5f3333)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x5f3333))throw CliErrors[_0x43bf34(0x16b)](_0x43bf34(0x17f)+_0x5f3333);if(!statSync(_0x5f3333)[_0x43bf34(0x156)]())throw CliErrors[_0x43bf34(0x16b)](_0x43bf34(0x191)+_0x5f3333);return readFileSync(_0x5f3333,_0x43bf34(0x18a));}function summarizePersonalItem(_0x269371){const _0x26ad72=a32_0x4c4797;return{'id':_0x269371['id'],'title':_0x269371[_0x26ad72(0x17b)],'version':_0x269371['version'],'ragStatus':_0x269371[_0x26ad72(0x183)],'ragErrorMessage':_0x269371[_0x26ad72(0x184)],'updateTime':_0x269371[_0x26ad72(0x16f)]};}function detailPersonalItem(_0x5c35a5){const _0x5db7bd=a32_0x4c4797;return{'id':_0x5c35a5['id'],'appCode':_0x5c35a5[_0x5db7bd(0x17d)],'scope':_0x5c35a5[_0x5db7bd(0x18e)],'userId':_0x5c35a5[_0x5db7bd(0x170)],'title':_0x5c35a5[_0x5db7bd(0x17b)],'content':_0x5c35a5[_0x5db7bd(0x15e)]??'','version':_0x5c35a5['version'],'ragStatus':_0x5c35a5[_0x5db7bd(0x183)],'ragErrorMessage':_0x5c35a5[_0x5db7bd(0x184)],'createTime':_0x5c35a5[_0x5db7bd(0x16e)],'updateTime':_0x5c35a5[_0x5db7bd(0x16f)]};}function summarizeSearchHit(_0x4a5936){const _0x6d61ee=a32_0x4c4797;return{'scope':_0x4a5936[_0x6d61ee(0x18e)],'title':_0x4a5936[_0x6d61ee(0x17b)],'docId':_0x4a5936[_0x6d61ee(0x16c)],'score':_0x4a5936['score'],'weightedScore':_0x4a5936[_0x6d61ee(0x17e)],'content':_0x4a5936[_0x6d61ee(0x15e)],'metadata':_0x4a5936['metadata']};}function readTopK(_0x12684d){const _0x3a0333=a32_0x4c4797,_0x2d0a1f=_0x12684d[_0x3a0333(0x159)](_0x3a0333(0x188));if(_0x2d0a1f===undefined||_0x2d0a1f===null||_0x2d0a1f==='')return undefined;const _0x2ee581=_0x12684d[_0x3a0333(0x172)](_0x3a0333(0x188));if(!Number[_0x3a0333(0x15f)](_0x2ee581)||_0x2ee581<0x1)throw CliErrors[_0x3a0333(0x16b)](_0x3a0333(0x160));return _0x2ee581;}const kbList={'service':'kb','command':'list','description':a32_0x4c4797(0x189),'risk':a32_0x4c4797(0x175),'flags':[VERBOSE_FLAG],async 'execute'(_0x13799f){const _0x595dc2=a32_0x4c4797,_0x5d499b=await listPersonalKnowledgeBaseItems(_0x13799f[_0x595dc2(0x17d)]);if(_0x13799f[_0x595dc2(0x173)](_0x595dc2(0x17a)))return{'ok':!![],'data':{'total':_0x5d499b[_0x595dc2(0x16d)],'items':_0x5d499b}};return{'ok':!![],'data':{'total':_0x5d499b[_0x595dc2(0x16d)],'items':_0x5d499b[_0x595dc2(0x18d)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a32_0x4c4797(0x180),'description':a32_0x4c4797(0x16a),'risk':a32_0x4c4797(0x175),'flags':[{...ID_FLAG,'description':a32_0x4c4797(0x17c)}],async 'execute'(_0x465a82){const _0x7ba061=a32_0x4c4797,_0x231949=await getPersonalKnowledgeBaseItem(_0x465a82['num']('id'),_0x465a82[_0x7ba061(0x17d)]);return{'ok':!![],'data':detailPersonalItem(_0x231949)};}},kbCreate={'service':'kb','command':a32_0x4c4797(0x162),'description':a32_0x4c4797(0x166),'risk':'write','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x2a4d28){const _0x1ca835=a32_0x4c4797,_0x3be6f1=_0x2a4d28[_0x1ca835(0x15b)](_0x1ca835(0x17b)),_0x5ef907=readKnowledgeFile(_0x2a4d28[_0x1ca835(0x15b)]('file')),_0x155dbd=await createPersonalKnowledgeBaseItem(_0x2a4d28[_0x1ca835(0x17d)],{'title':_0x3be6f1,'content':_0x5ef907});return{'ok':!![],'data':summarizePersonalItem(_0x155dbd),'message':_0x1ca835(0x193)+_0x155dbd['id']+'\x20('+_0x155dbd[_0x1ca835(0x17b)]+')'};},async 'dryRun'(_0x280e0a){const _0x3e0377=a32_0x4c4797,_0x242394=_0x280e0a[_0x3e0377(0x15b)]('title'),_0x2ad289=readKnowledgeFile(_0x280e0a[_0x3e0377(0x15b)](_0x3e0377(0x164)));return dryRun(_0x3e0377(0x171),_0x3e0377(0x179))[_0x3e0377(0x18c)]({'appCode':_0x280e0a[_0x3e0377(0x17d)],'title':_0x242394,'content':_0x2ad289})[_0x3e0377(0x165)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x242394+'\x22')['build']();}},kbUpdate={'service':'kb','command':a32_0x4c4797(0x192),'description':a32_0x4c4797(0x15a),'risk':a32_0x4c4797(0x167),'flags':[{...ID_FLAG,'description':a32_0x4c4797(0x17c)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0x4023fb){const _0x1733c1=a32_0x4c4797,_0x36f1f3=_0x4023fb['num']('id'),_0x19404c=readKnowledgeFile(_0x4023fb[_0x1733c1(0x15b)](_0x1733c1(0x164))),_0x2f5cdc=_0x4023fb['str'](_0x1733c1(0x17b))||(await getPersonalKnowledgeBaseItem(_0x36f1f3,_0x4023fb[_0x1733c1(0x17d)]))[_0x1733c1(0x17b)],_0x4aae7e=await updatePersonalKnowledgeBaseItem(_0x36f1f3,_0x4023fb['appCode'],{'title':_0x2f5cdc,'content':_0x19404c});return{'ok':!![],'data':summarizePersonalItem(_0x4aae7e),'message':'Updated\x20KB\x20entry\x20'+_0x4aae7e['id']+'\x20('+_0x4aae7e['title']+')'};},async 'dryRun'(_0x4cf85b){const _0x4d193d=a32_0x4c4797,_0x22ff42=_0x4cf85b['num']('id'),_0x34cbf2=readKnowledgeFile(_0x4cf85b[_0x4d193d(0x15b)](_0x4d193d(0x164))),_0x94830f=_0x4cf85b[_0x4d193d(0x15b)](_0x4d193d(0x17b))||(await getPersonalKnowledgeBaseItem(_0x22ff42,_0x4cf85b[_0x4d193d(0x17d)]))[_0x4d193d(0x17b)];return dryRun('POST',_0x4d193d(0x15d)+_0x22ff42+'/update')[_0x4d193d(0x18c)]({'appCode':_0x4cf85b['appCode'],'title':_0x94830f,'content':_0x34cbf2})[_0x4d193d(0x165)](_0x4d193d(0x176)+_0x22ff42)[_0x4d193d(0x18f)]();}},kbSearch={'service':'kb','command':'search','description':a32_0x4c4797(0x185),'risk':a32_0x4c4797(0x175),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x20fca9){const _0x39e8ee=a32_0x4c4797;if(!_0x20fca9['str'](_0x39e8ee(0x168))['trim']())throw CliErrors[_0x39e8ee(0x16b)](_0x39e8ee(0x181));readTopK(_0x20fca9);},async 'execute'(_0xc953a9){const _0x2f1d9c=a32_0x4c4797,_0x74d522=_0xc953a9[_0x2f1d9c(0x15b)]('query')['trim'](),_0x2d21ac=readTopK(_0xc953a9),_0x534e06=await searchKnowledgeBase(_0xc953a9['appCode'],{'query':_0x74d522,'topK':_0x2d21ac});return{'ok':!![],'data':{'total':_0x534e06[_0x2f1d9c(0x16d)],'hits':_0x534e06[_0x2f1d9c(0x18d)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
1
+ const a32_0x494a46=a32_0x2c76;(function(_0x27cbe7,_0x43457e){const _0x5eaeb0=a32_0x2c76,_0x4938ce=_0x27cbe7();while(!![]){try{const _0x43cd61=parseInt(_0x5eaeb0(0x1a3))/0x1+-parseInt(_0x5eaeb0(0x1d9))/0x2+-parseInt(_0x5eaeb0(0x19f))/0x3*(parseInt(_0x5eaeb0(0x1b0))/0x4)+-parseInt(_0x5eaeb0(0x1be))/0x5+-parseInt(_0x5eaeb0(0x1a7))/0x6*(-parseInt(_0x5eaeb0(0x1d5))/0x7)+parseInt(_0x5eaeb0(0x1bc))/0x8*(-parseInt(_0x5eaeb0(0x1cb))/0x9)+parseInt(_0x5eaeb0(0x1c0))/0xa*(parseInt(_0x5eaeb0(0x1d8))/0xb);if(_0x43cd61===_0x43457e)break;else _0x4938ce['push'](_0x4938ce['shift']());}catch(_0x4202a1){_0x4938ce['push'](_0x4938ce['shift']());}}}(a32_0x57e8,0x4a4bd));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,searchKnowledgeBase,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a32_0x494a46(0x1a4),'required':!![],'description':a32_0x494a46(0x1c8)},FILE_FLAG={'name':'file','type':a32_0x494a46(0x1a4),'required':!![],'description':a32_0x494a46(0x1bf)},QUERY_FLAG={'name':a32_0x494a46(0x1d7),'type':a32_0x494a46(0x1a4),'required':!![],'description':a32_0x494a46(0x1c5)},TOPK_FLAG={'name':a32_0x494a46(0x1aa),'type':a32_0x494a46(0x1ba),'description':a32_0x494a46(0x1d4)};function readKnowledgeFile(_0x367491){const _0x42e457=a32_0x494a46;if(!_0x367491)throw CliErrors[_0x42e457(0x1c4)](_0x42e457(0x1c7));if(!existsSync(_0x367491))throw CliErrors[_0x42e457(0x1c4)](_0x42e457(0x1d0)+_0x367491);if(!statSync(_0x367491)['isFile']())throw CliErrors['validation'](_0x42e457(0x1ad)+_0x367491);return readFileSync(_0x367491,_0x42e457(0x1ab));}function summarizePersonalItem(_0x2160ea){const _0x421fb1=a32_0x494a46;return{'id':_0x2160ea['id'],'title':_0x2160ea['title'],'version':_0x2160ea['version'],'ragStatus':_0x2160ea['ragStatus'],'ragErrorMessage':_0x2160ea[_0x421fb1(0x1c2)],'updateTime':_0x2160ea[_0x421fb1(0x19e)]};}function detailPersonalItem(_0x32de15){const _0x5cb12b=a32_0x494a46;return{'id':_0x32de15['id'],'appCode':_0x32de15[_0x5cb12b(0x1d2)],'scope':_0x32de15[_0x5cb12b(0x1b1)],'userId':_0x32de15[_0x5cb12b(0x1ae)],'title':_0x32de15['title'],'content':_0x32de15[_0x5cb12b(0x1af)]??'','version':_0x32de15[_0x5cb12b(0x1c1)],'ragStatus':_0x32de15[_0x5cb12b(0x1a6)],'ragErrorMessage':_0x32de15['ragErrorMessage'],'createTime':_0x32de15[_0x5cb12b(0x19b)],'updateTime':_0x32de15[_0x5cb12b(0x19e)]};}function summarizeSearchHit(_0x273b1a){const _0x3512dd=a32_0x494a46;return{'scope':_0x273b1a[_0x3512dd(0x1b1)],'title':_0x273b1a[_0x3512dd(0x1ca)],'docId':_0x273b1a[_0x3512dd(0x1cc)],'score':_0x273b1a[_0x3512dd(0x1cf)],'weightedScore':_0x273b1a[_0x3512dd(0x1b6)],'content':_0x273b1a[_0x3512dd(0x1af)],'metadata':_0x273b1a[_0x3512dd(0x1b2)]};}function readTopK(_0x46739c){const _0x5ed7a5=a32_0x494a46,_0x26025b=_0x46739c[_0x5ed7a5(0x1bb)]('topk');if(_0x26025b===undefined||_0x26025b===null||_0x26025b==='')return undefined;const _0x51c062=_0x46739c[_0x5ed7a5(0x1c6)](_0x5ed7a5(0x1aa));if(!Number[_0x5ed7a5(0x19d)](_0x51c062)||_0x51c062<0x1)throw CliErrors[_0x5ed7a5(0x1c4)]('--topk\x20must\x20be\x20a\x20positive\x20number.');return _0x51c062;}const kbList={'service':'kb','command':a32_0x494a46(0x1a5),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':'read','flags':[VERBOSE_FLAG],async 'execute'(_0xef97ec){const _0x45e51c=a32_0x494a46,_0x6c6a53=await listPersonalKnowledgeBaseItems(_0xef97ec['appCode']);if(_0xef97ec['bool'](_0x45e51c(0x1b7)))return{'ok':!![],'data':{'total':_0x6c6a53[_0x45e51c(0x1a1)],'items':_0x6c6a53}};return{'ok':!![],'data':{'total':_0x6c6a53[_0x45e51c(0x1a1)],'items':_0x6c6a53[_0x45e51c(0x1a0)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a32_0x494a46(0x1b8),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a32_0x494a46(0x1ac),'flags':[{...ID_FLAG,'description':a32_0x494a46(0x1d3)}],async 'execute'(_0x23354e){const _0x2150c5=a32_0x494a46,_0x123952=await getPersonalKnowledgeBaseItem(_0x23354e[_0x2150c5(0x1c6)]('id'),_0x23354e[_0x2150c5(0x1d2)]);return{'ok':!![],'data':detailPersonalItem(_0x123952)};}},kbCreate={'service':'kb','command':'create','description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a32_0x494a46(0x1d1),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0xb02a78){const _0x3746e2=a32_0x494a46,_0x5f42f1=_0xb02a78['str'](_0x3746e2(0x1ca)),_0xd8b518=readKnowledgeFile(_0xb02a78[_0x3746e2(0x1a9)](_0x3746e2(0x1a8))),_0x1d9ff2=await createPersonalKnowledgeBaseItem(_0xb02a78[_0x3746e2(0x1d2)],{'title':_0x5f42f1,'content':_0xd8b518});return{'ok':!![],'data':summarizePersonalItem(_0x1d9ff2),'message':'Created\x20KB\x20entry\x20'+_0x1d9ff2['id']+'\x20('+_0x1d9ff2[_0x3746e2(0x1ca)]+')'};},async 'dryRun'(_0x462c91){const _0x222b4a=a32_0x494a46,_0x3553e1=_0x462c91[_0x222b4a(0x1a9)](_0x222b4a(0x1ca)),_0x5559c7=readKnowledgeFile(_0x462c91[_0x222b4a(0x1a9)]('file'));return dryRun('POST',_0x222b4a(0x1b3))[_0x222b4a(0x1ce)]({'appCode':_0x462c91[_0x222b4a(0x1d2)],'title':_0x3553e1,'content':_0x5559c7})[_0x222b4a(0x1cd)](_0x222b4a(0x1b9)+_0x3553e1+'\x22')[_0x222b4a(0x1a2)]();}},kbUpdate={'service':'kb','command':a32_0x494a46(0x1d6),'description':a32_0x494a46(0x1c3),'risk':a32_0x494a46(0x1d1),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a32_0x494a46(0x1c9)},FILE_FLAG],async 'execute'(_0x452d9a){const _0x21490e=a32_0x494a46,_0x1c0791=_0x452d9a[_0x21490e(0x1c6)]('id'),_0x1112b6=readKnowledgeFile(_0x452d9a[_0x21490e(0x1a9)]('file')),_0x448c47=_0x452d9a[_0x21490e(0x1a9)](_0x21490e(0x1ca))||(await getPersonalKnowledgeBaseItem(_0x1c0791,_0x452d9a[_0x21490e(0x1d2)]))[_0x21490e(0x1ca)],_0x283135=await updatePersonalKnowledgeBaseItem(_0x1c0791,_0x452d9a['appCode'],{'title':_0x448c47,'content':_0x1112b6});return{'ok':!![],'data':summarizePersonalItem(_0x283135),'message':_0x21490e(0x1bd)+_0x283135['id']+'\x20('+_0x283135[_0x21490e(0x1ca)]+')'};},async 'dryRun'(_0x434ca2){const _0x1fc3ae=a32_0x494a46,_0x739d01=_0x434ca2[_0x1fc3ae(0x1c6)]('id'),_0x4ad223=readKnowledgeFile(_0x434ca2[_0x1fc3ae(0x1a9)](_0x1fc3ae(0x1a8))),_0x737a8a=_0x434ca2[_0x1fc3ae(0x1a9)]('title')||(await getPersonalKnowledgeBaseItem(_0x739d01,_0x434ca2[_0x1fc3ae(0x1d2)]))['title'];return dryRun('POST',_0x1fc3ae(0x1b5)+_0x739d01+'/update')['body']({'appCode':_0x434ca2[_0x1fc3ae(0x1d2)],'title':_0x737a8a,'content':_0x4ad223})['description']('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x739d01)['build']();}},kbSearch={'service':'kb','command':'search','description':a32_0x494a46(0x19c),'risk':a32_0x494a46(0x1ac),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x18f1b9){const _0x58ba12=a32_0x494a46;if(!_0x18f1b9['str'](_0x58ba12(0x1d7))[_0x58ba12(0x1b4)]())throw CliErrors['validation']('Search\x20query\x20is\x20required.');readTopK(_0x18f1b9);},async 'execute'(_0x38a4a1){const _0x58f415=a32_0x494a46,_0xb5805e=_0x38a4a1['str'](_0x58f415(0x1d7))['trim'](),_0x4622df=readTopK(_0x38a4a1),_0xa7b94=await searchKnowledgeBase(_0x38a4a1[_0x58f415(0x1d2)],{'query':_0xb5805e,'topK':_0x4622df});return{'ok':!![],'data':{'total':_0xa7b94['length'],'hits':_0xa7b94[_0x58f415(0x1a0)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];function a32_0x2c76(_0x427681,_0xe5f725){_0x427681=_0x427681-0x19b;const _0x57e8ee=a32_0x57e8();let _0x2c7676=_0x57e8ee[_0x427681];return _0x2c7676;}function a32_0x57e8(){const _0x2ba90f=['scope','metadata','/client/knowledge-base/personal/create','trim','/client/knowledge-base/personal/','weightedScore','verbose','detail','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','number','flag','80LrMicG','Updated\x20KB\x20entry\x20','2661595KyyDIi','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','965720upqwuc','version','ragErrorMessage','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','validation','Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge','num','File\x20path\x20is\x20required.','Personal\x20knowledge-base\x20entry\x20title','Override\x20the\x20existing\x20entry\x20title','title','83853nAaEGw','docId','description','body','score','File\x20not\x20found:\x20','write','appCode','Personal\x20knowledge-base\x20entry\x20ID','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','133ykIzcM','update','query','77evnjof','1005708nrYnZm','createTime','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','isFinite','updateTime','3qxsBfY','map','length','build','608323yIyKyQ','string','list','ragStatus','187416tQpPEp','file','str','topk','utf8','read','File\x20is\x20not\x20a\x20regular\x20file:\x20','userId','content','1780604yocNmE'];a32_0x57e8=function(){return _0x2ba90f;};return a32_0x57e8();}
@@ -1 +1 @@
1
- const a33_0x4f1171=a33_0xb690;function a33_0x78b4(){const _0x890192=['20979440eIfNQZ','command','en-US','1017081CfbvfX','forEach','logs','timestamp','show','1292967NxlHPC','\x20\x20\x20Duration:\x20','duration','74347NjAJhp','level','*\x20Logs\x20cleared','2719686QUjOWZ','5qjSOOc','107546KRTzCn','14jlqeqS','View\x20command\x20history\x20logs','warn','details','toLocaleString','\x20\x20\x20Details:\x20','length','396892xwcDLD','write','\x20\x20\x20Time:\x20','error','log','544bJMLVk','clear','clearLogs','keys'];a33_0x78b4=function(){return _0x890192;};return a33_0x78b4();}(function(_0x21cca2,_0x5627f9){const _0x4a0083=a33_0xb690,_0xdc911c=_0x21cca2();while(!![]){try{const _0x2610ef=-parseInt(_0x4a0083(0x14f))/0x1*(parseInt(_0x4a0083(0x14e))/0x2)+parseInt(_0x4a0083(0x167))/0x3+-parseInt(_0x4a0083(0x156))/0x4+-parseInt(_0x4a0083(0x14d))/0x5*(parseInt(_0x4a0083(0x14c))/0x6)+parseInt(_0x4a0083(0x149))/0x7*(-parseInt(_0x4a0083(0x15b))/0x8)+-parseInt(_0x4a0083(0x162))/0x9+parseInt(_0x4a0083(0x15f))/0xa;if(_0x2610ef===_0x5627f9)break;else _0xdc911c['push'](_0xdc911c['shift']());}catch(_0x1880eb){_0xdc911c['push'](_0xdc911c['shift']());}}}(a33_0x78b4,0x5ed12));import{logger}from'../../utils/logger.js';function a33_0xb690(_0x2a2840,_0x27038e){_0x2a2840=_0x2a2840-0x147;const _0x78b448=a33_0x78b4();let _0xb690a7=_0x78b448[_0x2a2840];return _0xb690a7;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function printLogs(_0xb7b72f){const _0x2f7211=a33_0xb690;if(_0xb7b72f[_0x2f7211(0x155)]===0x0){console[_0x2f7211(0x15a)]('*\x20No\x20logs\x20found');return;}console[_0x2f7211(0x15a)]('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0xb7b72f[_0x2f7211(0x163)]((_0x38627f,_0x53a7ce)=>{const _0x11bdb4=_0x2f7211,_0x584fb7=new Date(_0x38627f[_0x11bdb4(0x165)])[_0x11bdb4(0x153)](_0x11bdb4(0x161)),_0x3531b2=_0x38627f[_0x11bdb4(0x14a)]==='success'?'√':_0x38627f[_0x11bdb4(0x14a)]===_0x11bdb4(0x159)?'×':_0x38627f[_0x11bdb4(0x14a)]===_0x11bdb4(0x151)?'!':'i';console['log'](_0x53a7ce+0x1+'.\x20'+_0x3531b2+'\x20['+_0x38627f[_0x11bdb4(0x160)]+']\x20'+_0x38627f['message']),console[_0x11bdb4(0x15a)](_0x11bdb4(0x158)+_0x584fb7),_0x38627f['duration']&&console[_0x11bdb4(0x15a)](_0x11bdb4(0x147)+_0x38627f[_0x11bdb4(0x148)]+'ms'),_0x38627f[_0x11bdb4(0x152)]&&Object[_0x11bdb4(0x15e)](_0x38627f[_0x11bdb4(0x152)])[_0x11bdb4(0x155)]>0x0&&console[_0x11bdb4(0x15a)](_0x11bdb4(0x154)+JSON['stringify'](_0x38627f[_0x11bdb4(0x152)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a33_0x4f1171(0x164),'command':a33_0x4f1171(0x166),'description':a33_0x4f1171(0x150),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2bb926){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':a33_0x4f1171(0x15c),'description':'Clear\x20command\x20history\x20logs','risk':a33_0x4f1171(0x157),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x19c9db){const _0x584ef5=a33_0x4f1171;return logger[_0x584ef5(0x15d)](),console[_0x584ef5(0x15a)](_0x584ef5(0x14b)),{'ok':!![]};}}];
1
+ const a33_0xa591ca=a33_0x214c;(function(_0x4a049a,_0x4ca269){const _0x443017=a33_0x214c,_0x51bebd=_0x4a049a();while(!![]){try{const _0xcf330c=parseInt(_0x443017(0x14e))/0x1+-parseInt(_0x443017(0x15b))/0x2+-parseInt(_0x443017(0x165))/0x3+parseInt(_0x443017(0x15e))/0x4*(parseInt(_0x443017(0x149))/0x5)+parseInt(_0x443017(0x152))/0x6*(parseInt(_0x443017(0x153))/0x7)+parseInt(_0x443017(0x164))/0x8*(-parseInt(_0x443017(0x15d))/0x9)+parseInt(_0x443017(0x14c))/0xa;if(_0xcf330c===_0x4ca269)break;else _0x51bebd['push'](_0x51bebd['shift']());}catch(_0x1218e3){_0x51bebd['push'](_0x51bebd['shift']());}}}(a33_0x39ff,0x4be40));import{logger}from'../../utils/logger.js';function a33_0x214c(_0x442fa4,_0x42c8b9){_0x442fa4=_0x442fa4-0x144;const _0x39ff48=a33_0x39ff();let _0x214c93=_0x39ff48[_0x442fa4];return _0x214c93;}import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a33_0x39ff(){const _0x3891a4=['4lEmABi','\x20\x20\x20Duration:\x20','log','en-US','Clear\x20command\x20history\x20logs','timestamp','1113592nKuPzu','773535XzJRpa','show','readLogs','*\x20No\x20logs\x20found','duration','keys','error','read','30575ELyqbw','write','details','189410ikAwcB','command','400049kvtOPT','\x20\x20\x20Details:\x20','success','stringify','6fxcIal','3993633KoHSGU','View\x20command\x20history\x20logs','logs','length','toLocaleString','clearLogs','\x20\x20\x20Time:\x20','level','575464lYswAM','warn','9pEcwMv'];a33_0x39ff=function(){return _0x3891a4;};return a33_0x39ff();}function printLogs(_0x2d21d5){const _0x2fecb1=a33_0x214c;if(_0x2d21d5[_0x2fecb1(0x156)]===0x0){console['log'](_0x2fecb1(0x144));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+'\x20logs:\x0a'),_0x2d21d5['forEach']((_0x2a5148,_0x5eb39f)=>{const _0x38204a=_0x2fecb1,_0x51db2d=new Date(_0x2a5148[_0x38204a(0x163)])[_0x38204a(0x157)](_0x38204a(0x161)),_0x728b9c=_0x2a5148[_0x38204a(0x15a)]===_0x38204a(0x150)?'√':_0x2a5148['level']===_0x38204a(0x147)?'×':_0x2a5148['level']===_0x38204a(0x15c)?'!':'i';console[_0x38204a(0x160)](_0x5eb39f+0x1+'.\x20'+_0x728b9c+'\x20['+_0x2a5148[_0x38204a(0x14d)]+']\x20'+_0x2a5148['message']),console[_0x38204a(0x160)](_0x38204a(0x159)+_0x51db2d),_0x2a5148[_0x38204a(0x145)]&&console[_0x38204a(0x160)](_0x38204a(0x15f)+_0x2a5148[_0x38204a(0x145)]+'ms'),_0x2a5148[_0x38204a(0x14b)]&&Object[_0x38204a(0x146)](_0x2a5148[_0x38204a(0x14b)])[_0x38204a(0x156)]>0x0&&console[_0x38204a(0x160)](_0x38204a(0x14f)+JSON[_0x38204a(0x151)](_0x2a5148['details'],null,0x2)),console[_0x38204a(0x160)]('');});}export const logsDefinitions=[{'service':a33_0xa591ca(0x155),'command':a33_0xa591ca(0x166),'description':a33_0xa591ca(0x154),'risk':a33_0xa591ca(0x148),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x53f2c0){const _0x270232=a33_0xa591ca;return printLogs(logger[_0x270232(0x167)]()),{'ok':!![]};}},{'service':a33_0xa591ca(0x155),'command':'clear','description':a33_0xa591ca(0x162),'risk':a33_0xa591ca(0x14a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4ec5eb){const _0x42ffbe=a33_0xa591ca;return logger[_0x42ffbe(0x158)](),console[_0x42ffbe(0x160)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a34_0x3c3aad=a34_0x2c54;function a34_0x9d74(){const _0x389da3=['Recognize\x20text\x20from\x20a\x20URL\x20or\x20local\x20file\x20using\x20the\x20runtime\x20OCR\x20service','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','body','2877464oyZnwA','/client/uploadFile','build','toLowerCase','filter','fileUrl','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','351228ZeFNex','File\x20URL\x20response\x20missing\x20fileUrl.','ocr','fileName','\x20OCR','general','.\x20Supported\x20scenes:\x20','idCard','write','2177266RjiFma','count','idcard','File\x20upload\x20response\x20missing\x20filePath.','25443140fzRhWh','\x20OCR\x20from\x20URL','join','IdCard','808687RndPLy','6TdpEEa','string','str','36NKRuOr','imageUrl','description','/client/queryFileUrl','invoice','Preview:\x20recognize\x20','729612VZkjDU','validation','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','filePath','length','image-url','apiError','trim','429372oxAncd','85TaaBjO','scene','appCode','image-file','/client/ocr','POST','form'];a34_0x9d74=function(){return _0x389da3;};return a34_0x9d74();}(function(_0x36199e,_0x513ded){const _0x23f9c0=a34_0x2c54,_0x2f951d=_0x36199e();while(!![]){try{const _0x54cf55=-parseInt(_0x23f9c0(0x1b6))/0x1+-parseInt(_0x23f9c0(0x1c9))/0x2*(parseInt(_0x23f9c0(0x1b7))/0x3)+parseInt(_0x23f9c0(0x1c0))/0x4+parseInt(_0x23f9c0(0x1ca))/0x5*(parseInt(_0x23f9c0(0x1a5))/0x6)+-parseInt(_0x23f9c0(0x1ae))/0x7+-parseInt(_0x23f9c0(0x19e))/0x8*(parseInt(_0x23f9c0(0x1ba))/0x9)+parseInt(_0x23f9c0(0x1b2))/0xa;if(_0x54cf55===_0x513ded)break;else _0x2f951d['push'](_0x2f951d['shift']());}catch(_0x5131bc){_0x2f951d['push'](_0x2f951d['shift']());}}}(a34_0x9d74,0xb3352));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';function a34_0x2c54(_0x487480,_0x1e8559){_0x487480=_0x487480-0x195;const _0x9d7481=a34_0x9d74();let _0x2c54c7=_0x9d7481[_0x487480];return _0x2c54c7;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a34_0x3c3aad(0x1be),a34_0x3c3aad(0x1aa),'form',a34_0x3c3aad(0x1ac)],SCENE_TO_LEGACY_TYPE={'invoice':'Invoice','general':'General','form':'Table','idCard':a34_0x3c3aad(0x1b5)},SCENE_FLAG={'name':a34_0x3c3aad(0x195),'type':a34_0x3c3aad(0x1b8),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a34_0x3c3aad(0x1c3)},IMAGE_FILE_FLAG={'name':'image-file','type':a34_0x3c3aad(0x1b8),'description':a34_0x3c3aad(0x1a4)},IMAGE_URL_FLAG={'name':a34_0x3c3aad(0x1c6),'type':'string','description':'Publicly\x20accessible\x20image\x20or\x20file\x20URL'};function normalizeScene(_0x494ae8){const _0x4cceaa=a34_0x3c3aad,_0xbc22d3=_0x494ae8[_0x4cceaa(0x1c8)]()[_0x4cceaa(0x1a1)]();if(_0xbc22d3===_0x4cceaa(0x1b0))return _0x4cceaa(0x1ac);if(_0xbc22d3===_0x4cceaa(0x1be)||_0xbc22d3===_0x4cceaa(0x1aa)||_0xbc22d3===_0x4cceaa(0x19a))return _0xbc22d3;throw CliErrors[_0x4cceaa(0x1c1)]('Unsupported\x20OCR\x20scene:\x20'+_0x494ae8+_0x4cceaa(0x1ab)+SUPPORTED_SCENES[_0x4cceaa(0x1b4)](',\x20'));}function selectedInputs(_0x2bee7f){const _0x38027b=a34_0x3c3aad,_0x4afb80=_0x2bee7f[_0x38027b(0x1b9)](_0x38027b(0x197))[_0x38027b(0x1c8)](),_0x2f9cfd=_0x2bee7f[_0x38027b(0x1b9)]('image-url')[_0x38027b(0x1c8)]();return{'imageFile':_0x4afb80,'imageUrl':_0x2f9cfd,'count':[_0x4afb80,_0x2f9cfd][_0x38027b(0x1a2)](Boolean)[_0x38027b(0x1c5)]};}function validateInputSelection(_0xaf747e){const _0x269360=a34_0x3c3aad,_0x4ffecf=selectedInputs(_0xaf747e);if(_0x4ffecf[_0x269360(0x1af)]!==0x1)throw CliErrors[_0x269360(0x1c1)](_0x269360(0x1c2));return _0x4ffecf;}function withScene(_0x15f9f7,_0x43453d,_0x2bcced){const _0x1858a2=a34_0x3c3aad;return{..._0x15f9f7,'scene':_0x43453d,..._0x2bcced?{'sourceFile':{'fileName':_0x2bcced[_0x1858a2(0x1a8)],'filePath':_0x2bcced[_0x1858a2(0x1c4)]}}:{}};}const ocrRecognize={'service':a34_0x3c3aad(0x1a7),'command':'recognize','description':a34_0x3c3aad(0x19b),'risk':a34_0x3c3aad(0x1ad),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x466c4e){const _0x147368=a34_0x3c3aad,_0x5dc7b5=normalizeScene(_0x466c4e[_0x147368(0x1b9)]('scene')),_0x2cbd78=SCENE_TO_LEGACY_TYPE[_0x5dc7b5],_0x626431=validateInputSelection(_0x466c4e);if(_0x626431[_0x147368(0x1bb)])return dryRun(_0x147368(0x199),_0x147368(0x198))[_0x147368(0x19d)]({'appCode':_0x466c4e[_0x147368(0x196)],'url':_0x626431[_0x147368(0x1bb)],'type':_0x2cbd78})[_0x147368(0x1bc)](_0x147368(0x1bf)+_0x5dc7b5+_0x147368(0x1b3))[_0x147368(0x1a0)]();const _0x4559df=requireRuntimeUploadFile(_0x626431['imageFile'],_0x147368(0x197));return dryRun(_0x147368(0x199),_0x147368(0x19f))['body']({'steps':[{'method':_0x147368(0x199),'url':_0x147368(0x19f),'body':{'appCode':_0x466c4e['appCode'],'multipart':{'file':_0x4559df}}},{'method':_0x147368(0x199),'url':_0x147368(0x1bd),'body':{'filePath':'<filePath\x20returned\x20by\x20/client/uploadFile>','downloadFlag':![]}},{'method':_0x147368(0x199),'url':_0x147368(0x198),'body':{'appCode':_0x466c4e[_0x147368(0x196)],'url':'<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','type':_0x2cbd78}}]})['description'](_0x147368(0x19c)+_0x5dc7b5+_0x147368(0x1a9))['build']();},async 'execute'(_0x3a3f48){const _0x33a0c8=a34_0x3c3aad,_0x4c8e62=normalizeScene(_0x3a3f48[_0x33a0c8(0x1b9)]('scene')),_0x480ece=SCENE_TO_LEGACY_TYPE[_0x4c8e62],_0x1bff40=validateInputSelection(_0x3a3f48);if(_0x1bff40[_0x33a0c8(0x1bb)]){const _0x22d527=await recognizeRuntimeOcr(_0x3a3f48[_0x33a0c8(0x196)],{'url':_0x1bff40[_0x33a0c8(0x1bb)],'type':_0x480ece});return{'ok':!![],'data':withScene(_0x22d527,_0x4c8e62)};}const _0x48bbfd=requireRuntimeUploadFile(_0x1bff40['imageFile'],_0x33a0c8(0x197)),_0x349dd4=await uploadRuntimeFile(_0x3a3f48[_0x33a0c8(0x196)],_0x48bbfd['path']);if(!_0x349dd4[_0x33a0c8(0x1c4)])throw CliErrors['apiError'](_0x33a0c8(0x1b1));const _0x4771e0=await queryRuntimeFileUrl(_0x349dd4[_0x33a0c8(0x1c4)],{'download':![]});if(!_0x4771e0[_0x33a0c8(0x1a3)])throw CliErrors[_0x33a0c8(0x1c7)](_0x33a0c8(0x1a6));const _0x1d8835=await recognizeRuntimeOcr(_0x3a3f48[_0x33a0c8(0x196)],{'url':_0x4771e0[_0x33a0c8(0x1a3)],'type':_0x480ece});return{'ok':!![],'data':withScene(_0x1d8835,_0x4c8e62,_0x349dd4)};}};export const ocrDefinitions=[ocrRecognize];
1
+ const a34_0x32f810=a34_0x1658;(function(_0x3d6938,_0x48c821){const _0x2ecd02=a34_0x1658,_0x39d4d1=_0x3d6938();while(!![]){try{const _0x4bcbb3=parseInt(_0x2ecd02(0x1d2))/0x1*(parseInt(_0x2ecd02(0x1cf))/0x2)+parseInt(_0x2ecd02(0x1f2))/0x3+-parseInt(_0x2ecd02(0x1d7))/0x4*(-parseInt(_0x2ecd02(0x1ed))/0x5)+-parseInt(_0x2ecd02(0x1d1))/0x6+-parseInt(_0x2ecd02(0x1c0))/0x7*(parseInt(_0x2ecd02(0x1e7))/0x8)+parseInt(_0x2ecd02(0x1de))/0x9*(-parseInt(_0x2ecd02(0x1ce))/0xa)+parseInt(_0x2ecd02(0x1eb))/0xb;if(_0x4bcbb3===_0x48c821)break;else _0x39d4d1['push'](_0x39d4d1['shift']());}catch(_0x5ec6f2){_0x39d4d1['push'](_0x39d4d1['shift']());}}}(a34_0x261d,0x64ca8));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';function a34_0x1658(_0xcc32f0,_0x4a8d9c){_0xcc32f0=_0xcc32f0-0x1c0;const _0x261df6=a34_0x261d();let _0x1658c2=_0x261df6[_0xcc32f0];return _0x1658c2;}const SUPPORTED_SCENES=[a34_0x32f810(0x1e2),a34_0x32f810(0x1e5),a34_0x32f810(0x1d4),a34_0x32f810(0x1ca)],SCENE_TO_LEGACY_TYPE={'invoice':a34_0x32f810(0x1cd),'general':a34_0x32f810(0x1ec),'form':'Table','idCard':a34_0x32f810(0x1e6)},SCENE_FLAG={'name':'scene','type':a34_0x32f810(0x1db),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a34_0x32f810(0x1e3)},IMAGE_FILE_FLAG={'name':a34_0x32f810(0x1c6),'type':a34_0x32f810(0x1db),'description':'Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':a34_0x32f810(0x1d0),'type':a34_0x32f810(0x1db),'description':a34_0x32f810(0x1d3)};function normalizeScene(_0x72155f){const _0xe95517=a34_0x32f810,_0x2bf7ed=_0x72155f[_0xe95517(0x1d5)]()['toLowerCase']();if(_0x2bf7ed===_0xe95517(0x1e0))return _0xe95517(0x1ca);if(_0x2bf7ed===_0xe95517(0x1e2)||_0x2bf7ed===_0xe95517(0x1e5)||_0x2bf7ed===_0xe95517(0x1d4))return _0x2bf7ed;throw CliErrors[_0xe95517(0x1e9)](_0xe95517(0x1f5)+_0x72155f+'.\x20Supported\x20scenes:\x20'+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x102f10){const _0xf393b=a34_0x32f810,_0x1cbf00=_0x102f10[_0xf393b(0x1e8)](_0xf393b(0x1c6))['trim'](),_0x4cc89e=_0x102f10[_0xf393b(0x1e8)](_0xf393b(0x1d0))[_0xf393b(0x1d5)]();return{'imageFile':_0x1cbf00,'imageUrl':_0x4cc89e,'count':[_0x1cbf00,_0x4cc89e]['filter'](Boolean)[_0xf393b(0x1cc)]};}function validateInputSelection(_0x25e15e){const _0x74ccd7=a34_0x32f810,_0x45bcb8=selectedInputs(_0x25e15e);if(_0x45bcb8[_0x74ccd7(0x1f1)]!==0x1)throw CliErrors[_0x74ccd7(0x1e9)](_0x74ccd7(0x1d6));return _0x45bcb8;}function withScene(_0x188580,_0x4a4743,_0x10cd4c){const _0x2a4f55=a34_0x32f810;return{..._0x188580,'scene':_0x4a4743,..._0x10cd4c?{'sourceFile':{'fileName':_0x10cd4c[_0x2a4f55(0x1c3)],'filePath':_0x10cd4c[_0x2a4f55(0x1c4)]}}:{}};}const ocrRecognize={'service':a34_0x32f810(0x1d8),'command':a34_0x32f810(0x1da),'description':a34_0x32f810(0x1c5),'risk':a34_0x32f810(0x1c7),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x23c652){const _0x5a0c19=a34_0x32f810,_0xaa969b=normalizeScene(_0x23c652[_0x5a0c19(0x1e8)](_0x5a0c19(0x1ef))),_0x4a0d29=SCENE_TO_LEGACY_TYPE[_0xaa969b],_0x561f1a=validateInputSelection(_0x23c652);if(_0x561f1a['imageUrl'])return dryRun(_0x5a0c19(0x1f4),'/client/ocr')[_0x5a0c19(0x1c1)]({'appCode':_0x23c652['appCode'],'url':_0x561f1a[_0x5a0c19(0x1cb)],'type':_0x4a0d29})[_0x5a0c19(0x1e1)]('Preview:\x20recognize\x20'+_0xaa969b+'\x20OCR\x20from\x20URL')['build']();const _0x5c04c0=requireRuntimeUploadFile(_0x561f1a[_0x5a0c19(0x1df)],_0x5a0c19(0x1c6));return dryRun('POST',_0x5a0c19(0x1c8))['body']({'steps':[{'method':_0x5a0c19(0x1f4),'url':'/client/uploadFile','body':{'appCode':_0x23c652[_0x5a0c19(0x1d9)],'multipart':{'file':_0x5c04c0}}},{'method':_0x5a0c19(0x1f4),'url':_0x5a0c19(0x1ea),'body':{'filePath':_0x5a0c19(0x1e4),'downloadFlag':![]}},{'method':_0x5a0c19(0x1f4),'url':_0x5a0c19(0x1dd),'body':{'appCode':_0x23c652[_0x5a0c19(0x1d9)],'url':_0x5a0c19(0x1ee),'type':_0x4a0d29}}]})['description'](_0x5a0c19(0x1f3)+_0xaa969b+_0x5a0c19(0x1dc))['build']();},async 'execute'(_0x18a8db){const _0x1983b8=a34_0x32f810,_0x35ac02=normalizeScene(_0x18a8db['str'](_0x1983b8(0x1ef))),_0x2f034c=SCENE_TO_LEGACY_TYPE[_0x35ac02],_0x47c26f=validateInputSelection(_0x18a8db);if(_0x47c26f[_0x1983b8(0x1cb)]){const _0x4f0f40=await recognizeRuntimeOcr(_0x18a8db[_0x1983b8(0x1d9)],{'url':_0x47c26f[_0x1983b8(0x1cb)],'type':_0x2f034c});return{'ok':!![],'data':withScene(_0x4f0f40,_0x35ac02)};}const _0x37975c=requireRuntimeUploadFile(_0x47c26f[_0x1983b8(0x1df)],_0x1983b8(0x1c6)),_0x295ffc=await uploadRuntimeFile(_0x18a8db[_0x1983b8(0x1d9)],_0x37975c['path']);if(!_0x295ffc[_0x1983b8(0x1c4)])throw CliErrors[_0x1983b8(0x1c2)]('File\x20upload\x20response\x20missing\x20filePath.');const _0x11d10f=await queryRuntimeFileUrl(_0x295ffc[_0x1983b8(0x1c4)],{'download':![]});if(!_0x11d10f[_0x1983b8(0x1f0)])throw CliErrors[_0x1983b8(0x1c2)](_0x1983b8(0x1c9));const _0x10d680=await recognizeRuntimeOcr(_0x18a8db[_0x1983b8(0x1d9)],{'url':_0x11d10f[_0x1983b8(0x1f0)],'type':_0x2f034c});return{'ok':!![],'data':withScene(_0x10d680,_0x35ac02,_0x295ffc)};}};function a34_0x261d(){const _0x4582fe=['imageUrl','length','Invoice','10LHpJWH','2FwNEag','image-url','2182896VjQKqd','485948dTwYJa','Publicly\x20accessible\x20image\x20or\x20file\x20URL','form','trim','Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.','16504QEbNRp','ocr','appCode','recognize','string','\x20OCR','/client/ocr','6091947xRbvxf','imageFile','idcard','description','invoice','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','<filePath\x20returned\x20by\x20/client/uploadFile>','general','IdCard','1538344mKeqkr','str','validation','/client/queryFileUrl','7881137JWNOcd','General','305uzzMWl','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','scene','fileUrl','count','2305830qTUZsP','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','POST','Unsupported\x20OCR\x20scene:\x20','28GAfLMp','body','apiError','fileName','filePath','Recognize\x20text\x20from\x20a\x20URL\x20or\x20local\x20file\x20using\x20the\x20runtime\x20OCR\x20service','image-file','write','/client/uploadFile','File\x20URL\x20response\x20missing\x20fileUrl.','idCard'];a34_0x261d=function(){return _0x4582fe;};return a34_0x261d();}export const ocrDefinitions=[ocrRecognize];
@@ -1 +1 @@
1
- function a35_0x17f0(_0x45c94a,_0x29aafa){_0x45c94a=_0x45c94a-0x137;const _0x33aad4=a35_0x33aa();let _0x17f0b7=_0x33aad4[_0x45c94a];return _0x17f0b7;}const a35_0x59e8df=a35_0x17f0;(function(_0x437ed6,_0xf78240){const _0x4adb16=a35_0x17f0,_0x20574c=_0x437ed6();while(!![]){try{const _0x5a17eb=-parseInt(_0x4adb16(0x148))/0x1+parseInt(_0x4adb16(0x143))/0x2*(parseInt(_0x4adb16(0x137))/0x3)+parseInt(_0x4adb16(0x178))/0x4+-parseInt(_0x4adb16(0x16a))/0x5*(-parseInt(_0x4adb16(0x138))/0x6)+parseInt(_0x4adb16(0x175))/0x7+-parseInt(_0x4adb16(0x161))/0x8+parseInt(_0x4adb16(0x145))/0x9*(parseInt(_0x4adb16(0x14f))/0xa);if(_0x5a17eb===_0xf78240)break;else _0x20574c['push'](_0x20574c['shift']());}catch(_0x1d2305){_0x20574c['push'](_0x20574c['shift']());}}}(a35_0x33aa,0x282f8));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_0x59e8df(0x140),'type':a35_0x59e8df(0x13a),'description':a35_0x59e8df(0x14c)},FUNCTION_NAME_FLAG={'name':a35_0x59e8df(0x13d),'type':a35_0x59e8df(0x13a),'required':!![],'description':'Personal\x20BFF\x20functionName,\x20for\x20example\x20loadOrders'},DESCRIPTION_FLAG={'name':a35_0x59e8df(0x158),'type':a35_0x59e8df(0x13a),'description':a35_0x59e8df(0x155)},SOURCE_SESSION_FLAG={'name':a35_0x59e8df(0x16b),'type':'string','description':'Optional\x20source\x20RuntimeAgent\x20session\x20id'};function normalizeFunctionName(_0x1dde03){const _0x343a56=a35_0x59e8df,_0x184bf1=String(_0x1dde03||'')['trim']();if(!_0x184bf1||!FUNCTION_NAME_PATTERN[_0x343a56(0x156)](_0x184bf1))throw CliErrors['validation'](_0x343a56(0x15f));return _0x184bf1;}function readScriptFile(_0x2fbaf5){const _0x546c8c=a35_0x59e8df;if(!_0x2fbaf5)throw CliErrors[_0x546c8c(0x167)](_0x546c8c(0x14e));if(!existsSync(_0x2fbaf5))throw CliErrors['validation'](_0x546c8c(0x14b)+_0x2fbaf5);if(!statSync(_0x2fbaf5)['isFile']())throw CliErrors[_0x546c8c(0x167)](_0x546c8c(0x179)+_0x2fbaf5);const _0x4b8f30=readFileSync(_0x2fbaf5,_0x546c8c(0x168));if(!_0x4b8f30[_0x546c8c(0x153)]())throw CliErrors['validation'](_0x546c8c(0x16c));return _0x4b8f30;}function optionalTrimmed(_0x1ebc35){const _0x35f128=a35_0x59e8df,_0x37bc00=String(_0x1ebc35||'')[_0x35f128(0x153)]();return _0x37bc00||undefined;}function a35_0x33aa(){const _0x4a1549=['scriptType','Execute\x20a\x20personal\x20BFF\x20by\x20id\x20with\x20optional\x20JSON\x20params','trim','create','Personal\x20BFF\x20description','test','map','description','Update\x20a\x20personal\x20BFF\x20by\x20id','high-risk-write','sourceSessionId','build','update','detail','--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.','gmtModified','2501376UaUTNq','flag','gmtCreate','createUserId','personal-bff','appCode','validation','utf8','write','1345ZeHasj','source-session-id','Personal\x20BFF\x20script\x20file\x20is\x20blank.','params','bool','list','keys','num','JSON\x20object\x20passed\x20to\x20the\x20personal\x20BFF\x20execution','body','/update','143094JVnSTW','personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.','exec','596864Fpybcz','File\x20is\x20not\x20a\x20regular\x20file:\x20','12KXZkIQ','774BoDffi','read','string','version','verbose','name','Show\x20one\x20personal\x20BFF\x20by\x20id','--params\x20must\x20be\x20a\x20JSON\x20object.','file','List\x20current\x20user\x27s\x20personal\x20BFF\x20scripts\x20for\x20the\x20current\x20app','scriptContent','136066kohJrb','Personal\x20BFF\x20script\x20ID','234MqBxMv','POST','Preview:\x20update\x20personal\x20BFF\x20','82783rKxMOM','length','str','File\x20not\x20found:\x20','Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file','config','File\x20path\x20is\x20required.','32140LkyBME','functionName'];a35_0x33aa=function(){return _0x4a1549;};return a35_0x33aa();}function summarizeBff(_0x497ec3){const _0x2c9ca2=a35_0x59e8df;return{'id':_0x497ec3['id'],'appCode':_0x497ec3['appCode'],'functionName':_0x497ec3[_0x2c9ca2(0x150)],'description':_0x497ec3[_0x2c9ca2(0x158)],'scriptType':_0x497ec3[_0x2c9ca2(0x151)],'version':_0x497ec3[_0x2c9ca2(0x13b)],'gmtModified':_0x497ec3[_0x2c9ca2(0x160)],'updateTime':_0x497ec3['updateTime']};}function detailBff(_0x1ba28e){const _0x5aecab=a35_0x59e8df;return{'id':_0x1ba28e['id'],'appCode':_0x1ba28e['appCode'],'functionName':_0x1ba28e[_0x5aecab(0x150)],'description':_0x1ba28e['description'],'scriptType':_0x1ba28e['scriptType'],'scriptContent':_0x1ba28e[_0x5aecab(0x142)]??'','config':_0x1ba28e[_0x5aecab(0x14d)],'version':_0x1ba28e[_0x5aecab(0x13b)],'createUserId':_0x1ba28e[_0x5aecab(0x164)],'gmtCreate':_0x1ba28e[_0x5aecab(0x163)],'gmtModified':_0x1ba28e[_0x5aecab(0x160)],'createTime':_0x1ba28e['createTime'],'updateTime':_0x1ba28e['updateTime']};}function buildCreateInput(_0x5b2544){const _0x493655=a35_0x59e8df;return{'functionName':normalizeFunctionName(_0x5b2544['str'](_0x493655(0x13d))),...optionalTrimmed(_0x5b2544[_0x493655(0x14a)]('description'))?{'description':optionalTrimmed(_0x5b2544[_0x493655(0x14a)]('description'))}:{},'scriptContent':readScriptFile(_0x5b2544[_0x493655(0x14a)](_0x493655(0x140))),...optionalTrimmed(_0x5b2544[_0x493655(0x14a)](_0x493655(0x16b)))?{'sourceSessionId':optionalTrimmed(_0x5b2544[_0x493655(0x14a)](_0x493655(0x16b)))}:{}};}function buildUpdateInput(_0x2e23f6){const _0x14d866=a35_0x59e8df,_0x594409={};optionalTrimmed(_0x2e23f6['str']('name'))&&(_0x594409[_0x14d866(0x150)]=normalizeFunctionName(_0x2e23f6[_0x14d866(0x14a)]('name')));_0x2e23f6[_0x14d866(0x162)](_0x14d866(0x158))!==undefined&&(_0x594409[_0x14d866(0x158)]=_0x2e23f6[_0x14d866(0x14a)]('description'));optionalTrimmed(_0x2e23f6[_0x14d866(0x14a)]('file'))&&(_0x594409[_0x14d866(0x142)]=readScriptFile(_0x2e23f6[_0x14d866(0x14a)]('file')));_0x2e23f6[_0x14d866(0x162)]('source-session-id')!==undefined&&(_0x594409[_0x14d866(0x15b)]=_0x2e23f6[_0x14d866(0x14a)](_0x14d866(0x16b)));if(Object[_0x14d866(0x170)](_0x594409)[_0x14d866(0x149)]===0x0)throw CliErrors[_0x14d866(0x167)](_0x14d866(0x176));return _0x594409;}function parseExecParams(_0x9a1d21){const _0x5ac616=a35_0x59e8df,_0x45f209=parseJsonParams(_0x9a1d21)??{};if(Array['isArray'](_0x45f209))throw CliErrors['validation'](_0x5ac616(0x13f));return _0x45f209;}const personalBffList={'service':a35_0x59e8df(0x165),'command':a35_0x59e8df(0x16f),'description':a35_0x59e8df(0x141),'risk':a35_0x59e8df(0x139),'flags':[VERBOSE_FLAG],async 'execute'(_0x465b74){const _0x1105b3=a35_0x59e8df,_0x2d5450=await listPersonalBffs(_0x465b74[_0x1105b3(0x166)]);return{'ok':!![],'data':{'total':_0x2d5450[_0x1105b3(0x149)],'items':_0x465b74[_0x1105b3(0x16e)](_0x1105b3(0x13c))?_0x2d5450:_0x2d5450[_0x1105b3(0x157)](summarizeBff)}};}},personalBffDetail={'service':a35_0x59e8df(0x165),'command':a35_0x59e8df(0x15e),'description':a35_0x59e8df(0x13e),'risk':a35_0x59e8df(0x139),'flags':[{...ID_FLAG,'description':a35_0x59e8df(0x144)}],async 'execute'(_0x18d3c1){const _0x4a37d3=a35_0x59e8df,_0x5822be=await getPersonalBff(_0x18d3c1[_0x4a37d3(0x171)]('id'),_0x18d3c1[_0x4a37d3(0x166)]);return{'ok':!![],'data':detailBff(_0x5822be)};}},personalBffCreate={'service':a35_0x59e8df(0x165),'command':a35_0x59e8df(0x154),'description':'Create\x20a\x20personal\x20BFF\x20from\x20a\x20local\x20script\x20file','risk':a35_0x59e8df(0x169),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x37055){const _0x3c872f=a35_0x59e8df,_0x2b4ef=buildCreateInput(_0x37055),_0x528611=await createPersonalBff(_0x37055['appCode'],_0x2b4ef);return{'ok':!![],'data':detailBff(_0x528611),'message':'Created\x20personal\x20BFF\x20'+_0x528611['id']+(_0x528611['functionName']?'\x20('+_0x528611[_0x3c872f(0x150)]+')':'')};},async 'dryRun'(_0x2fad9c){const _0x51da1d=a35_0x59e8df,_0x3bd7c8=buildCreateInput(_0x2fad9c);return dryRun(_0x51da1d(0x146),'/client/runtime-bff/personal/create')[_0x51da1d(0x173)]({'appCode':_0x2fad9c[_0x51da1d(0x166)],..._0x3bd7c8})[_0x51da1d(0x158)]('Preview:\x20create\x20personal\x20BFF\x20'+_0x3bd7c8['functionName'])[_0x51da1d(0x15c)]();}},personalBffUpdate={'service':'personal-bff','command':a35_0x59e8df(0x15d),'description':a35_0x59e8df(0x159),'risk':a35_0x59e8df(0x169),'flags':[{...ID_FLAG,'description':'Personal\x20BFF\x20script\x20ID'},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x5f3de1){const _0x369f8d=a35_0x59e8df,_0x2ef4eb=_0x5f3de1[_0x369f8d(0x171)]('id'),_0x32af9b=buildUpdateInput(_0x5f3de1),_0x1405f9=await updatePersonalBff(_0x2ef4eb,_0x5f3de1['appCode'],_0x32af9b);return{'ok':!![],'data':detailBff(_0x1405f9),'message':'Updated\x20personal\x20BFF\x20'+_0x1405f9['id']+(_0x1405f9['functionName']?'\x20('+_0x1405f9[_0x369f8d(0x150)]+')':'')};},async 'dryRun'(_0x1417e0){const _0x3321c5=a35_0x59e8df,_0x146bea=_0x1417e0[_0x3321c5(0x171)]('id'),_0x1bb26d=buildUpdateInput(_0x1417e0);return dryRun('POST','/client/runtime-bff/personal/'+_0x146bea+_0x3321c5(0x174))[_0x3321c5(0x173)]({'appCode':_0x1417e0['appCode'],..._0x1bb26d})[_0x3321c5(0x158)](_0x3321c5(0x147)+_0x146bea)[_0x3321c5(0x15c)]();}},personalBffExec={'service':a35_0x59e8df(0x165),'command':a35_0x59e8df(0x177),'description':a35_0x59e8df(0x152),'risk':a35_0x59e8df(0x15a),'flags':[{...ID_FLAG,'description':'Personal\x20BFF\x20script\x20ID'},{...PARAMS_FLAG,'description':a35_0x59e8df(0x172)}],async 'validate'(_0x5a32a3){const _0x36f5e0=a35_0x59e8df;parseExecParams(_0x5a32a3['str'](_0x36f5e0(0x16d)));},async 'execute'(_0x570ee4){const _0x264495=a35_0x59e8df,_0x5299fc=_0x570ee4[_0x264495(0x171)]('id'),_0x355ca0=parseExecParams(_0x570ee4[_0x264495(0x14a)](_0x264495(0x16d))),_0x4a6878=await executePersonalBff(_0x5299fc,_0x570ee4[_0x264495(0x166)],_0x355ca0);return{'ok':!![],'data':{'result':_0x4a6878},'message':'Executed\x20personal\x20BFF\x20'+_0x5299fc};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
1
+ const a35_0x142c44=a35_0x3f14;(function(_0x246262,_0x40fc92){const _0x141b5e=a35_0x3f14,_0x2c9245=_0x246262();while(!![]){try{const _0xac1112=-parseInt(_0x141b5e(0x220))/0x1+-parseInt(_0x141b5e(0x20b))/0x2*(-parseInt(_0x141b5e(0x1f8))/0x3)+-parseInt(_0x141b5e(0x21e))/0x4*(parseInt(_0x141b5e(0x210))/0x5)+parseInt(_0x141b5e(0x203))/0x6*(-parseInt(_0x141b5e(0x207))/0x7)+parseInt(_0x141b5e(0x226))/0x8+-parseInt(_0x141b5e(0x204))/0x9*(-parseInt(_0x141b5e(0x1ec))/0xa)+-parseInt(_0x141b5e(0x214))/0xb*(-parseInt(_0x141b5e(0x21b))/0xc);if(_0xac1112===_0x40fc92)break;else _0x2c9245['push'](_0x2c9245['shift']());}catch(_0x9a3c64){_0x2c9245['push'](_0x2c9245['shift']());}}}(a35_0xa5c6,0xe8beb));import{existsSync,readFileSync,statSync}from'node:fs';function a35_0x3f14(_0x284a9a,_0x241b2b){_0x284a9a=_0x284a9a-0x1e6;const _0xa5c6cd=a35_0xa5c6();let _0x3f1439=_0xa5c6cd[_0x284a9a];return _0x3f1439;}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':'file','type':'string','description':a35_0x142c44(0x1fc)},FUNCTION_NAME_FLAG={'name':a35_0x142c44(0x1e8),'type':a35_0x142c44(0x1fa),'required':!![],'description':a35_0x142c44(0x1e7)},DESCRIPTION_FLAG={'name':a35_0x142c44(0x1f4),'type':a35_0x142c44(0x1fa),'description':a35_0x142c44(0x217)},SOURCE_SESSION_FLAG={'name':'source-session-id','type':a35_0x142c44(0x1fa),'description':a35_0x142c44(0x1f5)};function normalizeFunctionName(_0x6172ae){const _0xbeca37=a35_0x142c44,_0x417bbc=String(_0x6172ae||'')['trim']();if(!_0x417bbc||!FUNCTION_NAME_PATTERN[_0xbeca37(0x1ff)](_0x417bbc))throw CliErrors['validation']('--name\x20must\x20be\x20a\x20valid\x20JavaScript\x20identifier,\x20for\x20example\x20loadOrders.');return _0x417bbc;}function readScriptFile(_0x8ab19b){const _0x5c1afe=a35_0x142c44;if(!_0x8ab19b)throw CliErrors[_0x5c1afe(0x21c)]('File\x20path\x20is\x20required.');if(!existsSync(_0x8ab19b))throw CliErrors[_0x5c1afe(0x21c)](_0x5c1afe(0x223)+_0x8ab19b);if(!statSync(_0x8ab19b)[_0x5c1afe(0x1fe)]())throw CliErrors[_0x5c1afe(0x21c)](_0x5c1afe(0x1f6)+_0x8ab19b);const _0xbc781=readFileSync(_0x8ab19b,_0x5c1afe(0x222));if(!_0xbc781[_0x5c1afe(0x1f2)]())throw CliErrors['validation']('Personal\x20BFF\x20script\x20file\x20is\x20blank.');return _0xbc781;}function optionalTrimmed(_0x98da6c){const _0x32dd17=a35_0x142c44,_0xa5c8cf=String(_0x98da6c||'')[_0x32dd17(0x1f2)]();return _0xa5c8cf||undefined;}function a35_0xa5c6(){const _0x613673=['string','flag','Path\x20to\x20a\x20local\x20UTF-8\x20JavaScript\x20or\x20TypeScript\x20file','personal-bff','isFile','test','appCode','scriptContent','--params\x20must\x20be\x20a\x20JSON\x20object.','5536710dhbfNN','36YxIqBA','/update','high-risk-write','14nUcnuW','scriptType','num','map','1096HbosuS','config','List\x20current\x20user\x27s\x20personal\x20BFF\x20scripts\x20for\x20the\x20current\x20app','createTime','read','2302460nYifQV','params','JSON\x20object\x20passed\x20to\x20the\x20personal\x20BFF\x20execution','bool','3453142OElRpL','updateTime','body','Personal\x20BFF\x20description','list','Update\x20a\x20personal\x20BFF\x20by\x20id','Personal\x20BFF\x20script\x20ID','120SubnZq','validation','Show\x20one\x20personal\x20BFF\x20by\x20id','12NJJWQH','update','707484zoCYVb','Updated\x20personal\x20BFF\x20','utf8','File\x20not\x20found:\x20','Create\x20a\x20personal\x20BFF\x20from\x20a\x20local\x20script\x20file','keys','2088872yqLBiv','POST','version','verbose','exec','createUserId','sourceSessionId','Personal\x20BFF\x20functionName,\x20for\x20example\x20loadOrders','name','length','build','write','360940yzHixi','Created\x20personal\x20BFF\x20','file','isArray','str','source-session-id','trim','functionName','description','Optional\x20source\x20RuntimeAgent\x20session\x20id','File\x20is\x20not\x20a\x20regular\x20file:\x20','gmtCreate','7353HfMNdX','Executed\x20personal\x20BFF\x20'];a35_0xa5c6=function(){return _0x613673;};return a35_0xa5c6();}function summarizeBff(_0x54d160){const _0x3a6ecd=a35_0x142c44;return{'id':_0x54d160['id'],'appCode':_0x54d160['appCode'],'functionName':_0x54d160[_0x3a6ecd(0x1f3)],'description':_0x54d160[_0x3a6ecd(0x1f4)],'scriptType':_0x54d160[_0x3a6ecd(0x208)],'version':_0x54d160['version'],'gmtModified':_0x54d160['gmtModified'],'updateTime':_0x54d160[_0x3a6ecd(0x215)]};}function detailBff(_0x293832){const _0x3c1f2d=a35_0x142c44;return{'id':_0x293832['id'],'appCode':_0x293832['appCode'],'functionName':_0x293832[_0x3c1f2d(0x1f3)],'description':_0x293832[_0x3c1f2d(0x1f4)],'scriptType':_0x293832[_0x3c1f2d(0x208)],'scriptContent':_0x293832[_0x3c1f2d(0x201)]??'','config':_0x293832[_0x3c1f2d(0x20c)],'version':_0x293832[_0x3c1f2d(0x228)],'createUserId':_0x293832[_0x3c1f2d(0x22b)],'gmtCreate':_0x293832[_0x3c1f2d(0x1f7)],'gmtModified':_0x293832['gmtModified'],'createTime':_0x293832[_0x3c1f2d(0x20e)],'updateTime':_0x293832[_0x3c1f2d(0x215)]};}function buildCreateInput(_0x39815d){const _0x30aa0a=a35_0x142c44;return{'functionName':normalizeFunctionName(_0x39815d['str'](_0x30aa0a(0x1e8))),...optionalTrimmed(_0x39815d['str'](_0x30aa0a(0x1f4)))?{'description':optionalTrimmed(_0x39815d[_0x30aa0a(0x1f0)](_0x30aa0a(0x1f4)))}:{},'scriptContent':readScriptFile(_0x39815d[_0x30aa0a(0x1f0)](_0x30aa0a(0x1ee))),...optionalTrimmed(_0x39815d['str'](_0x30aa0a(0x1f1)))?{'sourceSessionId':optionalTrimmed(_0x39815d[_0x30aa0a(0x1f0)](_0x30aa0a(0x1f1)))}:{}};}function buildUpdateInput(_0xcd768f){const _0x23ac7b=a35_0x142c44,_0x186764={};optionalTrimmed(_0xcd768f[_0x23ac7b(0x1f0)](_0x23ac7b(0x1e8)))&&(_0x186764[_0x23ac7b(0x1f3)]=normalizeFunctionName(_0xcd768f[_0x23ac7b(0x1f0)](_0x23ac7b(0x1e8))));_0xcd768f[_0x23ac7b(0x1fb)](_0x23ac7b(0x1f4))!==undefined&&(_0x186764['description']=_0xcd768f[_0x23ac7b(0x1f0)](_0x23ac7b(0x1f4)));optionalTrimmed(_0xcd768f[_0x23ac7b(0x1f0)]('file'))&&(_0x186764['scriptContent']=readScriptFile(_0xcd768f[_0x23ac7b(0x1f0)](_0x23ac7b(0x1ee))));_0xcd768f['flag'](_0x23ac7b(0x1f1))!==undefined&&(_0x186764[_0x23ac7b(0x1e6)]=_0xcd768f[_0x23ac7b(0x1f0)](_0x23ac7b(0x1f1)));if(Object[_0x23ac7b(0x225)](_0x186764)['length']===0x0)throw CliErrors[_0x23ac7b(0x21c)]('personal-bff\x20update\x20requires\x20at\x20least\x20one\x20of\x20--name,\x20--description,\x20--file,\x20or\x20--source-session-id.');return _0x186764;}function parseExecParams(_0x3ec175){const _0x41fea5=a35_0x142c44,_0x1d130a=parseJsonParams(_0x3ec175)??{};if(Array[_0x41fea5(0x1ef)](_0x1d130a))throw CliErrors['validation'](_0x41fea5(0x202));return _0x1d130a;}const personalBffList={'service':a35_0x142c44(0x1fd),'command':a35_0x142c44(0x218),'description':a35_0x142c44(0x20d),'risk':a35_0x142c44(0x20f),'flags':[VERBOSE_FLAG],async 'execute'(_0x3da5ef){const _0x582c98=a35_0x142c44,_0x31e204=await listPersonalBffs(_0x3da5ef[_0x582c98(0x200)]);return{'ok':!![],'data':{'total':_0x31e204[_0x582c98(0x1e9)],'items':_0x3da5ef[_0x582c98(0x213)](_0x582c98(0x229))?_0x31e204:_0x31e204[_0x582c98(0x20a)](summarizeBff)}};}},personalBffDetail={'service':a35_0x142c44(0x1fd),'command':'detail','description':a35_0x142c44(0x21d),'risk':a35_0x142c44(0x20f),'flags':[{...ID_FLAG,'description':'Personal\x20BFF\x20script\x20ID'}],async 'execute'(_0x30ab30){const _0x3550f8=a35_0x142c44,_0xb56e7=await getPersonalBff(_0x30ab30[_0x3550f8(0x209)]('id'),_0x30ab30[_0x3550f8(0x200)]);return{'ok':!![],'data':detailBff(_0xb56e7)};}},personalBffCreate={'service':a35_0x142c44(0x1fd),'command':'create','description':a35_0x142c44(0x224),'risk':a35_0x142c44(0x1eb),'flags':[FUNCTION_NAME_FLAG,{...FILE_FLAG,'required':!![]},DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x52d7e7){const _0x302995=a35_0x142c44,_0x1f522f=buildCreateInput(_0x52d7e7),_0x27190c=await createPersonalBff(_0x52d7e7[_0x302995(0x200)],_0x1f522f);return{'ok':!![],'data':detailBff(_0x27190c),'message':_0x302995(0x1ed)+_0x27190c['id']+(_0x27190c[_0x302995(0x1f3)]?'\x20('+_0x27190c[_0x302995(0x1f3)]+')':'')};},async 'dryRun'(_0xb96af){const _0x5493d9=a35_0x142c44,_0x23f590=buildCreateInput(_0xb96af);return dryRun(_0x5493d9(0x227),'/client/runtime-bff/personal/create')[_0x5493d9(0x216)]({'appCode':_0xb96af[_0x5493d9(0x200)],..._0x23f590})[_0x5493d9(0x1f4)]('Preview:\x20create\x20personal\x20BFF\x20'+_0x23f590['functionName'])[_0x5493d9(0x1ea)]();}},personalBffUpdate={'service':'personal-bff','command':a35_0x142c44(0x21f),'description':a35_0x142c44(0x219),'risk':a35_0x142c44(0x1eb),'flags':[{...ID_FLAG,'description':a35_0x142c44(0x21a)},{...FUNCTION_NAME_FLAG,'required':![]},FILE_FLAG,DESCRIPTION_FLAG,SOURCE_SESSION_FLAG],async 'execute'(_0x464654){const _0x33a7f6=a35_0x142c44,_0x102353=_0x464654[_0x33a7f6(0x209)]('id'),_0x359860=buildUpdateInput(_0x464654),_0x5a8578=await updatePersonalBff(_0x102353,_0x464654[_0x33a7f6(0x200)],_0x359860);return{'ok':!![],'data':detailBff(_0x5a8578),'message':_0x33a7f6(0x221)+_0x5a8578['id']+(_0x5a8578[_0x33a7f6(0x1f3)]?'\x20('+_0x5a8578['functionName']+')':'')};},async 'dryRun'(_0x4c0b66){const _0x43a4c0=a35_0x142c44,_0xf9c2bc=_0x4c0b66[_0x43a4c0(0x209)]('id'),_0xf2216d=buildUpdateInput(_0x4c0b66);return dryRun(_0x43a4c0(0x227),'/client/runtime-bff/personal/'+_0xf9c2bc+_0x43a4c0(0x205))[_0x43a4c0(0x216)]({'appCode':_0x4c0b66[_0x43a4c0(0x200)],..._0xf2216d})[_0x43a4c0(0x1f4)]('Preview:\x20update\x20personal\x20BFF\x20'+_0xf9c2bc)['build']();}},personalBffExec={'service':'personal-bff','command':a35_0x142c44(0x22a),'description':'Execute\x20a\x20personal\x20BFF\x20by\x20id\x20with\x20optional\x20JSON\x20params','risk':a35_0x142c44(0x206),'flags':[{...ID_FLAG,'description':a35_0x142c44(0x21a)},{...PARAMS_FLAG,'description':a35_0x142c44(0x212)}],async 'validate'(_0x11ed84){const _0x44beac=a35_0x142c44;parseExecParams(_0x11ed84[_0x44beac(0x1f0)](_0x44beac(0x211)));},async 'execute'(_0x4ef73a){const _0x1a5272=a35_0x142c44,_0x3d22bb=_0x4ef73a['num']('id'),_0x2acc3c=parseExecParams(_0x4ef73a[_0x1a5272(0x1f0)](_0x1a5272(0x211))),_0x3dabb5=await executePersonalBff(_0x3d22bb,_0x4ef73a[_0x1a5272(0x200)],_0x2acc3c);return{'ok':!![],'data':{'result':_0x3dabb5},'message':_0x1a5272(0x1f9)+_0x3d22bb};}};export const personalBffDefinitions=[personalBffList,personalBffDetail,personalBffCreate,personalBffUpdate,personalBffExec];
@@ -1 +1 @@
1
- const a36_0x5090d8=a36_0xed33;(function(_0x4bb5c9,_0x32f79f){const _0xe1270=a36_0xed33,_0x19521a=_0x4bb5c9();while(!![]){try{const _0x143b1a=parseInt(_0xe1270(0x1be))/0x1*(-parseInt(_0xe1270(0x1b1))/0x2)+parseInt(_0xe1270(0x1b5))/0x3*(-parseInt(_0xe1270(0x1d4))/0x4)+-parseInt(_0xe1270(0x1c9))/0x5*(-parseInt(_0xe1270(0x1cb))/0x6)+-parseInt(_0xe1270(0x1a9))/0x7*(parseInt(_0xe1270(0x1d3))/0x8)+-parseInt(_0xe1270(0x1a8))/0x9*(parseInt(_0xe1270(0x1a7))/0xa)+-parseInt(_0xe1270(0x1b4))/0xb*(-parseInt(_0xe1270(0x1bf))/0xc)+parseInt(_0xe1270(0x1ab))/0xd*(parseInt(_0xe1270(0x1b8))/0xe);if(_0x143b1a===_0x32f79f)break;else _0x19521a['push'](_0x19521a['shift']());}catch(_0x34b80d){_0x19521a['push'](_0x19521a['shift']());}}}(a36_0x2861,0xab281));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';import{apiDocDefinitions}from'../commands/api-doc/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{fileDefinitions}from'../commands/file/index.js';function a36_0xed33(_0x8f3b6e,_0x27ffb8){_0x8f3b6e=_0x8f3b6e-0x1a6;const _0x28610f=a36_0x2861();let _0xed339b=_0x28610f[_0x8f3b6e];return _0xed339b;}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(_0x47d746){const _0x42098a=a36_0xed33;for(const _0x236457 of _0x47d746){definitions[_0x42098a(0x1d0)](_0x236457['service']+':'+_0x236457[_0x42098a(0x1c5)],_0x236457);let _0x110468=serviceGroups[_0x42098a(0x1aa)](_0x236457['service']);!_0x110468&&(_0x110468=[],serviceGroups[_0x42098a(0x1d0)](_0x236457[_0x42098a(0x1d2)],_0x110468)),_0x110468['push'](_0x236457);}}function registerService(_0x18807c,_0x5e3883,_0x4bc233){const _0xc203c0=a36_0xed33;registerDefinitions(_0x5e3883);const _0x22e08f=_0x30e1e8=>_0x30e1e8===_0xc203c0(0x1ad)?'':_0x30e1e8===_0xc203c0(0x1a6)?_0xc203c0(0x1b7):_0xc203c0(0x1cd),_0x2c20ff={'service':_0x5e3883[0x0][_0xc203c0(0x1d2)],'label':_0x18807c,'commands':_0x5e3883[_0xc203c0(0x1d1)](_0x28b968=>({'command':_0x28b968[_0xc203c0(0x1c5)],'description':_0x28b968['description'],'tag':_0x22e08f(_0x28b968['risk'])})),'defaultCommand':_0x4bc233?.['defaultCommand']??(_0x4bc233?.['isSingleCommand']?_0x5e3883[0x0][_0xc203c0(0x1c5)]:undefined),'isSingleCommand':_0x4bc233?.[_0xc203c0(0x1bb)]};serviceRegistry[_0xc203c0(0x1c6)](_0x2c20ff),serviceByName[_0xc203c0(0x1d0)](_0x2c20ff[_0xc203c0(0x1d2)],_0x2c20ff);}registerService(a36_0x5090d8(0x1bc),authDefinitions,{'defaultCommand':a36_0x5090d8(0x1b3)}),registerService('App\x20Management',appDefinitions,{'defaultCommand':a36_0x5090d8(0x1c3)}),registerService('Workspace',workspaceDefinitions),registerService(a36_0x5090d8(0x1b2),appConfigDefinitions),registerService(a36_0x5090d8(0x1d5),configDefinitions,{'defaultCommand':a36_0x5090d8(0x1c3)}),registerService(a36_0x5090d8(0x1af),apiDocDefinitions),registerService(a36_0x5090d8(0x1ca),datasetDefinitions),registerService(a36_0x5090d8(0x1b9),dataDefinitions),registerService(a36_0x5090d8(0x1ae),sqlDefinitions),registerService(a36_0x5090d8(0x1cf),bffDefinitions),registerService(a36_0x5090d8(0x1cc),personalBffDefinitions),registerService(a36_0x5090d8(0x1c1),artifactDefinitions),registerService('File',fileDefinitions),registerService(a36_0x5090d8(0x1d7),ocrDefinitions),registerService(a36_0x5090d8(0x1ba),kbDefinitions),registerService(a36_0x5090d8(0x1ac),scheduleDefinitions,{'defaultCommand':'list'}),registerService(a36_0x5090d8(0x1ce),serviceDefinitions,{'defaultCommand':a36_0x5090d8(0x1c3)}),registerService(a36_0x5090d8(0x1c8),skillDefinitions,{'defaultCommand':a36_0x5090d8(0x1bd)}),registerService(a36_0x5090d8(0x1b0),cliSkillDefinitions,{'defaultCommand':a36_0x5090d8(0x1bd)}),registerService('Self\x20Update',[updateDefinition],{'defaultCommand':'run','isSingleCommand':!![]}),registerService(a36_0x5090d8(0x1d6),[doctorDefinition],{'isSingleCommand':!![]}),registerService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerService(a36_0x5090d8(0x1c4),logsDefinitions,{'defaultCommand':a36_0x5090d8(0x1c2)});export function findDefinition(_0x646a9b,_0x5b0ba8){const _0x13fa6b=a36_0x5090d8;return definitions[_0x13fa6b(0x1aa)](_0x646a9b+':'+_0x5b0ba8);}function a36_0x2861(){const _0x57323a=['8315238pHVKvw','Personal\x20BFF','\x20\x20[high-risk-write]','Service\x20Tree','BFF\x20Scripts','set','map','service','8aPmgiu','4HwERcw','Configuration','Diagnostics','OCR','write','10MParmI','4103577VkGQPP','5317018iOWubr','get','53677gFVNdW','Agent\x20Schedules','read','SQL\x20Queries','API\x20Documentation','CLI\x20Built-in\x20Skill','6lwjkEK','Runtime\x20App\x20Config','login','2618DSFSCA','3293463cNKnFR','values','\x20\x20[write]','8806bcqGUM','Instant\x20API','Knowledge\x20Base','isSingleCommand','Authentication','install','363647xnwCSr','6168WUdurz','has','Artifacts','show','list','Logs','command','push','from','Skills','5OSnDXA','Datasets'];a36_0x2861=function(){return _0x57323a;};return a36_0x2861();}export function isKnownService(_0x56b5cf){const _0x45d8e6=a36_0x5090d8;return serviceByName[_0x45d8e6(0x1c0)](_0x56b5cf);}export function getServiceEntry(_0x1cc6c4){const _0x7669bb=a36_0x5090d8;return serviceByName[_0x7669bb(0x1aa)](_0x1cc6c4);}export function getAllDefinitions(){const _0x3d9d40=a36_0x5090d8;return Array[_0x3d9d40(0x1c7)](definitions[_0x3d9d40(0x1b6)]());}
1
+ const a36_0x3f8dde=a36_0x3473;(function(_0x2bf63f,_0x2ec0ea){const _0x1fe768=a36_0x3473,_0x491ac2=_0x2bf63f();while(!![]){try{const _0x1a2df5=-parseInt(_0x1fe768(0x178))/0x1*(parseInt(_0x1fe768(0x18e))/0x2)+-parseInt(_0x1fe768(0x189))/0x3*(parseInt(_0x1fe768(0x193))/0x4)+-parseInt(_0x1fe768(0x183))/0x5+-parseInt(_0x1fe768(0x17a))/0x6+-parseInt(_0x1fe768(0x19c))/0x7+-parseInt(_0x1fe768(0x18a))/0x8*(-parseInt(_0x1fe768(0x181))/0x9)+parseInt(_0x1fe768(0x19e))/0xa;if(_0x1a2df5===_0x2ec0ea)break;else _0x491ac2['push'](_0x491ac2['shift']());}catch(_0x4a2591){_0x491ac2['push'](_0x491ac2['shift']());}}}(a36_0x3a56,0x5ad85));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';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();function a36_0x3a56(){const _0x433e49=['service','set','Knowledge\x20Base','Datasets','79266AvOXpt','40CayNOS','Instant\x20API','Runtime\x20App\x20Config','map','5680NRpbwz','Self\x20Update','Configuration','BFF\x20Scripts','push','64PzebHK','CLI\x20Built-in\x20Skill','has','Artifacts','login','install','isSingleCommand','Service\x20Tree','read','4643800YHUCHt','values','22019120ztbdMr','description','\x20\x20[write]','get','OCR','Skills','API\x20Documentation','command','SQL\x20Queries','7pvHubw','\x20\x20[high-risk-write]','814446iRjOwN','Logs','Agent\x20Schedules','run','File','list','Workspace','197784XwOHWm','risk','3489590Xysfhj','defaultCommand'];a36_0x3a56=function(){return _0x433e49;};return a36_0x3a56();}function a36_0x3473(_0x5011e6,_0x572688){_0x5011e6=_0x5011e6-0x178;const _0x3a5659=a36_0x3a56();let _0x3473d5=_0x3a5659[_0x5011e6];return _0x3473d5;}export const serviceGroups=new Map();function registerDefinitions(_0x39ba30){const _0x588864=a36_0x3473;for(const _0x2d7de0 of _0x39ba30){definitions[_0x588864(0x186)](_0x2d7de0[_0x588864(0x185)]+':'+_0x2d7de0[_0x588864(0x1a5)],_0x2d7de0);let _0x131bd5=serviceGroups[_0x588864(0x1a1)](_0x2d7de0['service']);!_0x131bd5&&(_0x131bd5=[],serviceGroups[_0x588864(0x186)](_0x2d7de0[_0x588864(0x185)],_0x131bd5)),_0x131bd5[_0x588864(0x192)](_0x2d7de0);}}function registerService(_0x3aae1a,_0x4896e9,_0x3958ec){const _0x5cde79=a36_0x3473;registerDefinitions(_0x4896e9);const _0xfbcc44=_0x20f867=>_0x20f867===_0x5cde79(0x19b)?'':_0x20f867==='write'?_0x5cde79(0x1a0):_0x5cde79(0x179),_0x154fec={'service':_0x4896e9[0x0][_0x5cde79(0x185)],'label':_0x3aae1a,'commands':_0x4896e9[_0x5cde79(0x18d)](_0x183584=>({'command':_0x183584[_0x5cde79(0x1a5)],'description':_0x183584[_0x5cde79(0x19f)],'tag':_0xfbcc44(_0x183584[_0x5cde79(0x182)])})),'defaultCommand':_0x3958ec?.[_0x5cde79(0x184)]??(_0x3958ec?.[_0x5cde79(0x199)]?_0x4896e9[0x0]['command']:undefined),'isSingleCommand':_0x3958ec?.[_0x5cde79(0x199)]};serviceRegistry[_0x5cde79(0x192)](_0x154fec),serviceByName['set'](_0x154fec[_0x5cde79(0x185)],_0x154fec);}registerService('Authentication',authDefinitions,{'defaultCommand':a36_0x3f8dde(0x197)}),registerService('App\x20Management',appDefinitions,{'defaultCommand':a36_0x3f8dde(0x17f)}),registerService(a36_0x3f8dde(0x180),workspaceDefinitions),registerService(a36_0x3f8dde(0x18c),appConfigDefinitions),registerService(a36_0x3f8dde(0x190),configDefinitions,{'defaultCommand':a36_0x3f8dde(0x17f)}),registerService(a36_0x3f8dde(0x1a4),apiDocDefinitions),registerService(a36_0x3f8dde(0x188),datasetDefinitions),registerService(a36_0x3f8dde(0x18b),dataDefinitions),registerService(a36_0x3f8dde(0x1a6),sqlDefinitions),registerService(a36_0x3f8dde(0x191),bffDefinitions),registerService('Personal\x20BFF',personalBffDefinitions),registerService(a36_0x3f8dde(0x196),artifactDefinitions),registerService(a36_0x3f8dde(0x17e),fileDefinitions),registerService(a36_0x3f8dde(0x1a2),ocrDefinitions),registerService(a36_0x3f8dde(0x187),kbDefinitions),registerService(a36_0x3f8dde(0x17c),scheduleDefinitions,{'defaultCommand':a36_0x3f8dde(0x17f)}),registerService(a36_0x3f8dde(0x19a),serviceDefinitions,{'defaultCommand':'list'}),registerService(a36_0x3f8dde(0x1a3),skillDefinitions,{'defaultCommand':a36_0x3f8dde(0x198)}),registerService(a36_0x3f8dde(0x194),cliSkillDefinitions,{'defaultCommand':'install'}),registerService(a36_0x3f8dde(0x18f),[updateDefinition],{'defaultCommand':a36_0x3f8dde(0x17d),'isSingleCommand':!![]}),registerService('Diagnostics',[doctorDefinition],{'isSingleCommand':!![]}),registerService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerService(a36_0x3f8dde(0x17b),logsDefinitions,{'defaultCommand':'show'});export function findDefinition(_0x3e751a,_0x3202e6){return definitions['get'](_0x3e751a+':'+_0x3202e6);}export function isKnownService(_0x39b06d){const _0x2df082=a36_0x3f8dde;return serviceByName[_0x2df082(0x195)](_0x39b06d);}export function getServiceEntry(_0x168db2){const _0x5bd4af=a36_0x3f8dde;return serviceByName[_0x5bd4af(0x1a1)](_0x168db2);}export function getAllDefinitions(){const _0xeb616c=a36_0x3f8dde;return Array['from'](definitions[_0xeb616c(0x19d)]());}
@@ -1 +1 @@
1
- const a37_0x24ca85=a37_0x4926;(function(_0x511a26,_0x3930aa){const _0x971edc=a37_0x4926,_0x4e1120=_0x511a26();while(!![]){try{const _0x368725=-parseInt(_0x971edc(0x11a))/0x1+-parseInt(_0x971edc(0x116))/0x2+-parseInt(_0x971edc(0xd7))/0x3+-parseInt(_0x971edc(0xf0))/0x4+parseInt(_0x971edc(0xe6))/0x5+-parseInt(_0x971edc(0xed))/0x6*(parseInt(_0x971edc(0x10c))/0x7)+parseInt(_0x971edc(0xdb))/0x8;if(_0x368725===_0x3930aa)break;else _0x4e1120['push'](_0x4e1120['shift']());}catch(_0x5b0a85){_0x4e1120['push'](_0x4e1120['shift']());}}}(a37_0x46d3,0x63418));function a37_0x46d3(){const _0x558fce=['Schedule\x20kind:\x20CRON\x20or\x20ONCE','Deleted\x20schedule\x20','str','Show\x20one\x20schedule\x20by\x20schedule\x20ID','258420EMpalJ','list','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','/api/harness/apps/','204733LmsTDB','\x20immediately','\x20from\x20schedule\x20','premium','schedule','CRON','1689771uQHuUe','run','Delete\x20a\x20schedule\x20and\x20stop\x20its\x20future\x20triggers','List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','10637784XiWtdo','num','Queued\x20Task\x20','scheduleId','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','appCode','ONCE','UTC','POST','auto','Create\x20a\x20recurring\x20or\x20one-time\x20Agent\x20schedule','1323725WSukMs','number','create','title','limit','channel','high-risk-write','24ZmIofP','Created\x20','Schedule\x20UUID','802752vNtqhR','Preview:\x20run\x20schedule\x20','kind','/run','Schedule\x20title','--kind\x20must\x20be\x20CRON\x20or\x20ONCE.','validation','prompt','string','build','Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules','delete','Preview:\x20delete\x20schedule\x20','Run\x20one\x20schedule\x20immediately\x20and\x20create\x20a\x20Task','Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','--prompt\x20must\x20not\x20be\x20blank.','taskId','trim','Task\x20channel:\x20auto\x20or\x20premium','schedule-id','description','--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.','scheduled-at','Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules','/schedules','body','validate','157549VcKZEj','read','cron','cursor','a\x20UUID\x20returned\x20by\x20schedule\x20create/list','detail'];a37_0x46d3=function(){return _0x558fce;};return a37_0x46d3();}import{createRuntimeSchedule,deleteRuntimeSchedule,getRuntimeSchedule,listRuntimeSchedules,runRuntimeSchedule,validateRuntimeSchedule}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SCHEDULE_ID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,KIND_FLAG={'name':a37_0x24ca85(0xf2),'type':a37_0x24ca85(0xf8),'required':!![],'enum':['CRON',a37_0x24ca85(0xe1)],'description':a37_0x24ca85(0x112)},CRON_FLAG={'name':a37_0x24ca85(0x10e),'type':'string','description':a37_0x24ca85(0xfa)},SCHEDULED_AT_FLAG={'name':a37_0x24ca85(0x107),'type':a37_0x24ca85(0xf8),'description':a37_0x24ca85(0x108)},TITLE_FLAG={'name':a37_0x24ca85(0xe9),'type':'string','required':!![],'description':a37_0x24ca85(0xf4)},PROMPT_FLAG={'name':a37_0x24ca85(0xf7),'type':a37_0x24ca85(0xf8),'required':!![],'description':a37_0x24ca85(0xff)},CHANNEL_FLAG={'name':a37_0x24ca85(0xeb),'type':a37_0x24ca85(0xf8),'enum':[a37_0x24ca85(0xe4),'premium'],'default':a37_0x24ca85(0x11d),'description':a37_0x24ca85(0x103)},SCHEDULE_ID_FLAG={'name':'schedule-id','type':a37_0x24ca85(0xf8),'required':!![],'description':a37_0x24ca85(0xef),'pattern':{'regex':SCHEDULE_ID_PATTERN,'description':a37_0x24ca85(0x110)}},LIMIT_FLAG={'name':'limit','type':a37_0x24ca85(0xe7),'default':0x14,'description':'Page\x20size\x20from\x201\x20to\x20100'},CURSOR_FLAG={'name':a37_0x24ca85(0x10f),'type':a37_0x24ca85(0xf8),'description':a37_0x24ca85(0xfe)},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,CHANNEL_FLAG];function readScheduleInput(_0x2f01c2){const _0x49ea77=a37_0x24ca85,_0x195aba=_0x2f01c2[_0x49ea77(0x114)](_0x49ea77(0xf2)),_0x49a13a=_0x2f01c2[_0x49ea77(0x114)](_0x49ea77(0xe9))['trim'](),_0x39e766=_0x2f01c2[_0x49ea77(0x114)]('prompt')[_0x49ea77(0x102)](),_0xfa4efd=_0x2f01c2[_0x49ea77(0x114)](_0x49ea77(0xeb)),_0x40d5ce=_0x2f01c2['str'](_0x49ea77(0x10e)),_0xbf19c0=_0x2f01c2[_0x49ea77(0x114)](_0x49ea77(0x107));if(!_0x49a13a)throw CliErrors[_0x49ea77(0xf6)]('--title\x20must\x20not\x20be\x20blank.');if(!_0x39e766)throw CliErrors[_0x49ea77(0xf6)](_0x49ea77(0x100));if(_0x195aba===_0x49ea77(0x11f)){if(!_0x40d5ce||_0xbf19c0)throw CliErrors[_0x49ea77(0xf6)]('CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.');return{'kind':_0x195aba,'timezone':_0x49ea77(0xe2),'cron':_0x40d5ce,'title':_0x49a13a,'prompt':_0x39e766,'channel':_0xfa4efd};}if(_0x195aba==='ONCE'){if(!_0xbf19c0||_0x40d5ce)throw CliErrors[_0x49ea77(0xf6)](_0x49ea77(0xdf));return{'kind':_0x195aba,'timezone':_0x49ea77(0xe2),'scheduledAt':_0xbf19c0,'title':_0x49a13a,'prompt':_0x39e766,'channel':_0xfa4efd};}throw CliErrors[_0x49ea77(0xf6)](_0x49ea77(0xf5));}function scheduleCollectionPath(_0x3f94a3){const _0x4f6c48=a37_0x24ca85;return _0x4f6c48(0x119)+encodeURIComponent(_0x3f94a3)+_0x4f6c48(0x109);}function scheduleItemPath(_0x1694de,_0x421a09){return scheduleCollectionPath(_0x1694de)+'/'+encodeURIComponent(_0x421a09);}function a37_0x4926(_0x48f344,_0x18fae0){_0x48f344=_0x48f344-0xd7;const _0x46d3a1=a37_0x46d3();let _0x49261a=_0x46d3a1[_0x48f344];return _0x49261a;}const scheduleValidate={'service':a37_0x24ca85(0x11e),'command':a37_0x24ca85(0x10b),'description':'Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','risk':'read','flags':INPUT_FLAGS,async 'validate'(_0x496d97){readScheduleInput(_0x496d97);},async 'execute'(_0x252965){const _0x15747b=a37_0x24ca85,_0x11d01f=readScheduleInput(_0x252965),_0x2f3a79=await validateRuntimeSchedule(_0x252965[_0x15747b(0xe0)],_0x11d01f);return{'ok':!![],'data':_0x2f3a79,'message':'Schedule\x20input\x20is\x20valid'};}},scheduleCreate={'service':a37_0x24ca85(0x11e),'command':a37_0x24ca85(0xe8),'description':a37_0x24ca85(0xe5),'risk':a37_0x24ca85(0xec),'flags':INPUT_FLAGS,async 'validate'(_0x3356ca){readScheduleInput(_0x3356ca);},async 'execute'(_0x7048de){const _0x5d69f9=a37_0x24ca85,_0x494c1b=readScheduleInput(_0x7048de),_0x2b5b30=await validateRuntimeSchedule(_0x7048de[_0x5d69f9(0xe0)],_0x494c1b),_0x59e68c=await createRuntimeSchedule(_0x7048de[_0x5d69f9(0xe0)],_0x2b5b30);return{'ok':!![],'data':_0x59e68c,'message':_0x5d69f9(0xee)+_0x59e68c['kind']+'\x20schedule\x20'+_0x59e68c[_0x5d69f9(0xde)]};},async 'dryRun'(_0x404e28){const _0x4b1122=a37_0x24ca85,_0x202492=readScheduleInput(_0x404e28);return dryRun('POST',scheduleCollectionPath(_0x404e28['appCode']))[_0x4b1122(0x10a)](_0x202492)[_0x4b1122(0x105)]('Preview:\x20create\x20an\x20Agent\x20schedule')[_0x4b1122(0xf9)]();}},scheduleList={'service':a37_0x24ca85(0x11e),'command':a37_0x24ca85(0x117),'description':a37_0x24ca85(0xda),'risk':a37_0x24ca85(0x10d),'flags':[LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x2eb328){const _0x91e457=a37_0x24ca85,_0x2e1dec=_0x2eb328[_0x91e457(0xdc)](_0x91e457(0xea));if(!Number['isSafeInteger'](_0x2e1dec)||_0x2e1dec<0x1||_0x2e1dec>0x64)throw CliErrors[_0x91e457(0xf6)](_0x91e457(0x118));const _0x763c11=_0x2eb328[_0x91e457(0x114)]('cursor');if(_0x763c11&&(_0x763c11['length']>0x400||_0x763c11[_0x91e457(0x102)]()!==_0x763c11))throw CliErrors[_0x91e457(0xf6)](_0x91e457(0x106));},async 'execute'(_0x1cdc1e){const _0x3203bb=a37_0x24ca85,_0x3050b0=_0x1cdc1e[_0x3203bb(0x114)]('cursor'),_0x5543ff=await listRuntimeSchedules(_0x1cdc1e[_0x3203bb(0xe0)],{'limit':_0x1cdc1e['num'](_0x3203bb(0xea)),..._0x3050b0?{'cursor':_0x3050b0}:{}});return{'ok':!![],'data':_0x5543ff};}},scheduleDetail={'service':'schedule','command':a37_0x24ca85(0x111),'description':a37_0x24ca85(0x115),'risk':a37_0x24ca85(0x10d),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x16109d){const _0x309eba=a37_0x24ca85,_0x2903c4=await getRuntimeSchedule(_0x16109d['appCode'],_0x16109d[_0x309eba(0x114)](_0x309eba(0x104)));return{'ok':!![],'data':_0x2903c4};}},scheduleRun={'service':a37_0x24ca85(0x11e),'command':a37_0x24ca85(0xd8),'description':a37_0x24ca85(0xfd),'risk':a37_0x24ca85(0xec),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x262ad0){const _0x3400a1=a37_0x24ca85,_0x3f671d=_0x262ad0['str'](_0x3400a1(0x104)),_0x5e1661=await runRuntimeSchedule(_0x262ad0[_0x3400a1(0xe0)],_0x3f671d);return{'ok':!![],'data':_0x5e1661,'message':_0x3400a1(0xdd)+_0x5e1661[_0x3400a1(0x101)]+_0x3400a1(0x11c)+_0x3f671d};},async 'dryRun'(_0x240fb1){const _0x260717=a37_0x24ca85,_0x3389e9=_0x240fb1[_0x260717(0x114)](_0x260717(0x104));return dryRun(_0x260717(0xe3),scheduleItemPath(_0x240fb1['appCode'],_0x3389e9)+_0x260717(0xf3))[_0x260717(0x105)](_0x260717(0xf1)+_0x3389e9+_0x260717(0x11b))[_0x260717(0xf9)]();}},scheduleDelete={'service':'schedule','command':a37_0x24ca85(0xfb),'description':a37_0x24ca85(0xd9),'risk':'high-risk-write','flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x268c66){const _0x14aeba=a37_0x24ca85,_0xef5ecf=_0x268c66[_0x14aeba(0x114)]('schedule-id'),_0x37c6dc=await deleteRuntimeSchedule(_0x268c66[_0x14aeba(0xe0)],_0xef5ecf);return{'ok':!![],'data':_0x37c6dc,'message':_0x14aeba(0x113)+_0xef5ecf};},async 'dryRun'(_0x463490){const _0xc81bc9=a37_0x24ca85,_0x4fa37d=_0x463490[_0xc81bc9(0x114)]('schedule-id');return dryRun('DELETE',scheduleItemPath(_0x463490[_0xc81bc9(0xe0)],_0x4fa37d))[_0xc81bc9(0x105)](_0xc81bc9(0xfc)+_0x4fa37d)[_0xc81bc9(0xf9)]();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
1
+ const a37_0x1abb11=a37_0x420b;(function(_0x4eb012,_0xcbde8a){const _0x14e737=a37_0x420b,_0x5037f1=_0x4eb012();while(!![]){try{const _0x5c6da2=parseInt(_0x14e737(0xa9))/0x1+-parseInt(_0x14e737(0xd5))/0x2+-parseInt(_0x14e737(0xa7))/0x3+parseInt(_0x14e737(0xad))/0x4+parseInt(_0x14e737(0xa2))/0x5*(-parseInt(_0x14e737(0xb7))/0x6)+-parseInt(_0x14e737(0xc1))/0x7+-parseInt(_0x14e737(0xdb))/0x8*(-parseInt(_0x14e737(0x97))/0x9);if(_0x5c6da2===_0xcbde8a)break;else _0x5037f1['push'](_0x5037f1['shift']());}catch(_0x278700){_0x5037f1['push'](_0x5037f1['shift']());}}}(a37_0x4e83,0x6b5e7));import{createRuntimeSchedule,deleteRuntimeSchedule,getRuntimeSchedule,listRuntimeSchedules,runRuntimeSchedule,validateRuntimeSchedule}from'../../core/api-client.js';function a37_0x420b(_0x1481e3,_0x1b786a){_0x1481e3=_0x1481e3-0x97;const _0x4e83df=a37_0x4e83();let _0x420b6b=_0x4e83df[_0x1481e3];return _0x420b6b;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SCHEDULE_ID_PATTERN=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,KIND_FLAG={'name':a37_0x1abb11(0x9a),'type':a37_0x1abb11(0xcd),'required':!![],'enum':[a37_0x1abb11(0xae),a37_0x1abb11(0xce)],'description':a37_0x1abb11(0xbc)},CRON_FLAG={'name':'cron','type':a37_0x1abb11(0xcd),'description':a37_0x1abb11(0xda)},SCHEDULED_AT_FLAG={'name':'scheduled-at','type':'string','description':'Canonical\x20UTC\x20ISO\x20datetime\x20for\x20ONCE\x20schedules'},TITLE_FLAG={'name':a37_0x1abb11(0xb2),'type':a37_0x1abb11(0xcd),'required':!![],'description':'Schedule\x20title'},PROMPT_FLAG={'name':a37_0x1abb11(0xd3),'type':a37_0x1abb11(0xcd),'required':!![],'description':a37_0x1abb11(0xc6)},CHANNEL_FLAG={'name':a37_0x1abb11(0x9f),'type':a37_0x1abb11(0xcd),'enum':[a37_0x1abb11(0xb0),a37_0x1abb11(0xaf)],'default':a37_0x1abb11(0xaf),'description':a37_0x1abb11(0x9d)},SCHEDULE_ID_FLAG={'name':a37_0x1abb11(0xd4),'type':a37_0x1abb11(0xcd),'required':!![],'description':a37_0x1abb11(0xc4),'pattern':{'regex':SCHEDULE_ID_PATTERN,'description':a37_0x1abb11(0xbd)}},LIMIT_FLAG={'name':a37_0x1abb11(0xba),'type':a37_0x1abb11(0xc5),'default':0x14,'description':a37_0x1abb11(0xd8)},CURSOR_FLAG={'name':a37_0x1abb11(0xde),'type':a37_0x1abb11(0xcd),'description':a37_0x1abb11(0xa4)},INPUT_FLAGS=[KIND_FLAG,CRON_FLAG,SCHEDULED_AT_FLAG,TITLE_FLAG,PROMPT_FLAG,CHANNEL_FLAG];function readScheduleInput(_0x175ff1){const _0x20f3c9=a37_0x1abb11,_0x51fefc=_0x175ff1['str']('kind'),_0x2d225d=_0x175ff1['str'](_0x20f3c9(0xb2))['trim'](),_0x40fe61=_0x175ff1['str'](_0x20f3c9(0xd3))[_0x20f3c9(0xcf)](),_0x323903=_0x175ff1[_0x20f3c9(0xd6)](_0x20f3c9(0x9f)),_0x165acd=_0x175ff1['str'](_0x20f3c9(0xbe)),_0x1c2707=_0x175ff1['str'](_0x20f3c9(0xd7));if(!_0x2d225d)throw CliErrors[_0x20f3c9(0xa0)]('--title\x20must\x20not\x20be\x20blank.');if(!_0x40fe61)throw CliErrors[_0x20f3c9(0xa0)](_0x20f3c9(0xb4));if(_0x51fefc===_0x20f3c9(0xae)){if(!_0x165acd||_0x1c2707)throw CliErrors[_0x20f3c9(0xa0)]('CRON\x20schedules\x20require\x20--cron\x20and\x20do\x20not\x20accept\x20--scheduled-at.');return{'kind':_0x51fefc,'timezone':_0x20f3c9(0xbb),'cron':_0x165acd,'title':_0x2d225d,'prompt':_0x40fe61,'channel':_0x323903};}if(_0x51fefc===_0x20f3c9(0xce)){if(!_0x1c2707||_0x165acd)throw CliErrors[_0x20f3c9(0xa0)](_0x20f3c9(0xcb));return{'kind':_0x51fefc,'timezone':_0x20f3c9(0xbb),'scheduledAt':_0x1c2707,'title':_0x2d225d,'prompt':_0x40fe61,'channel':_0x323903};}throw CliErrors[_0x20f3c9(0xa0)]('--kind\x20must\x20be\x20CRON\x20or\x20ONCE.');}function a37_0x4e83(){const _0x4328fd=['Opaque\x20nextCursor\x20returned\x20by\x20the\x20previous\x20list\x20call','create','--limit\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','1980186YLmpLN','high-risk-write','630880cHVBSo','List\x20current\x20user\x27s\x20schedules\x20for\x20the\x20current\x20app','\x20schedule\x20','Preview:\x20run\x20schedule\x20','2312644vlDZmB','CRON','premium','auto','isSafeInteger','title','\x20from\x20schedule\x20','--prompt\x20must\x20not\x20be\x20blank.','run','/api/harness/apps/','30tksMIA','/run','read','limit','UTC','Schedule\x20kind:\x20CRON\x20or\x20ONCE','a\x20UUID\x20returned\x20by\x20schedule\x20create/list','cron','Create\x20a\x20recurring\x20or\x20one-time\x20Agent\x20schedule','Preview:\x20delete\x20schedule\x20','2777516kEISLv','POST','appCode','Schedule\x20UUID','number','Prompt\x20sent\x20to\x20the\x20Agent\x20when\x20the\x20schedule\x20runs','--cursor\x20must\x20be\x20the\x20unchanged\x20nextCursor\x20from\x20schedule\x20list.','taskId','scheduleId','list','ONCE\x20schedules\x20require\x20--scheduled-at\x20and\x20do\x20not\x20accept\x20--cron.','detail','string','ONCE','trim','DELETE','\x20immediately','length','prompt','schedule-id','1391254dXvMGy','str','scheduled-at','Page\x20size\x20from\x201\x20to\x20100','Schedule\x20input\x20is\x20valid','Five-field\x20UTC\x20cron\x20expression\x20for\x20CRON\x20schedules','11051912DyGELt','body','schedule','cursor','9CXolFi','Preview:\x20create\x20an\x20Agent\x20schedule','build','kind','Delete\x20a\x20schedule\x20and\x20stop\x20its\x20future\x20triggers','description','Task\x20channel:\x20auto\x20or\x20premium','Run\x20one\x20schedule\x20immediately\x20and\x20create\x20a\x20Task','channel','validation','Validate\x20a\x20UTC\x20schedule\x20without\x20creating\x20it','398270DxAsgk','num'];a37_0x4e83=function(){return _0x4328fd;};return a37_0x4e83();}function scheduleCollectionPath(_0x88391c){const _0x53c877=a37_0x1abb11;return _0x53c877(0xb6)+encodeURIComponent(_0x88391c)+'/schedules';}function scheduleItemPath(_0x55e5b0,_0x446264){return scheduleCollectionPath(_0x55e5b0)+'/'+encodeURIComponent(_0x446264);}const scheduleValidate={'service':a37_0x1abb11(0xdd),'command':'validate','description':a37_0x1abb11(0xa1),'risk':'read','flags':INPUT_FLAGS,async 'validate'(_0x4bec6b){readScheduleInput(_0x4bec6b);},async 'execute'(_0x2aa0dd){const _0xd7900f=a37_0x1abb11,_0x1d1423=readScheduleInput(_0x2aa0dd),_0x2440e0=await validateRuntimeSchedule(_0x2aa0dd[_0xd7900f(0xc3)],_0x1d1423);return{'ok':!![],'data':_0x2440e0,'message':_0xd7900f(0xd9)};}},scheduleCreate={'service':a37_0x1abb11(0xdd),'command':a37_0x1abb11(0xa5),'description':a37_0x1abb11(0xbf),'risk':'high-risk-write','flags':INPUT_FLAGS,async 'validate'(_0x8fde16){readScheduleInput(_0x8fde16);},async 'execute'(_0x49f7b0){const _0x532118=a37_0x1abb11,_0x8a98c7=readScheduleInput(_0x49f7b0),_0x4c4ef9=await validateRuntimeSchedule(_0x49f7b0[_0x532118(0xc3)],_0x8a98c7),_0x8d4fde=await createRuntimeSchedule(_0x49f7b0[_0x532118(0xc3)],_0x4c4ef9);return{'ok':!![],'data':_0x8d4fde,'message':'Created\x20'+_0x8d4fde['kind']+_0x532118(0xab)+_0x8d4fde[_0x532118(0xc9)]};},async 'dryRun'(_0x1bf673){const _0x54dc40=a37_0x1abb11,_0x707f3f=readScheduleInput(_0x1bf673);return dryRun('POST',scheduleCollectionPath(_0x1bf673['appCode']))[_0x54dc40(0xdc)](_0x707f3f)['description'](_0x54dc40(0x98))[_0x54dc40(0x99)]();}},scheduleList={'service':a37_0x1abb11(0xdd),'command':a37_0x1abb11(0xca),'description':a37_0x1abb11(0xaa),'risk':a37_0x1abb11(0xb9),'flags':[LIMIT_FLAG,CURSOR_FLAG],async 'validate'(_0x3d48){const _0x5f0fa1=a37_0x1abb11,_0x39f5f6=_0x3d48['num']('limit');if(!Number[_0x5f0fa1(0xb1)](_0x39f5f6)||_0x39f5f6<0x1||_0x39f5f6>0x64)throw CliErrors[_0x5f0fa1(0xa0)](_0x5f0fa1(0xa6));const _0x5b2907=_0x3d48[_0x5f0fa1(0xd6)](_0x5f0fa1(0xde));if(_0x5b2907&&(_0x5b2907[_0x5f0fa1(0xd2)]>0x400||_0x5b2907[_0x5f0fa1(0xcf)]()!==_0x5b2907))throw CliErrors['validation'](_0x5f0fa1(0xc7));},async 'execute'(_0x4bf5a4){const _0x4cff4f=a37_0x1abb11,_0x31d1d9=_0x4bf5a4[_0x4cff4f(0xd6)](_0x4cff4f(0xde)),_0x423718=await listRuntimeSchedules(_0x4bf5a4['appCode'],{'limit':_0x4bf5a4[_0x4cff4f(0xa3)](_0x4cff4f(0xba)),..._0x31d1d9?{'cursor':_0x31d1d9}:{}});return{'ok':!![],'data':_0x423718};}},scheduleDetail={'service':a37_0x1abb11(0xdd),'command':a37_0x1abb11(0xcc),'description':'Show\x20one\x20schedule\x20by\x20schedule\x20ID','risk':a37_0x1abb11(0xb9),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x473f7d){const _0x3fa3a7=a37_0x1abb11,_0x9966b2=await getRuntimeSchedule(_0x473f7d['appCode'],_0x473f7d['str'](_0x3fa3a7(0xd4)));return{'ok':!![],'data':_0x9966b2};}},scheduleRun={'service':a37_0x1abb11(0xdd),'command':a37_0x1abb11(0xb5),'description':a37_0x1abb11(0x9e),'risk':a37_0x1abb11(0xa8),'flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x2833ef){const _0xb9c2d3=a37_0x1abb11,_0x1f1d90=_0x2833ef[_0xb9c2d3(0xd6)](_0xb9c2d3(0xd4)),_0x54b8d4=await runRuntimeSchedule(_0x2833ef[_0xb9c2d3(0xc3)],_0x1f1d90);return{'ok':!![],'data':_0x54b8d4,'message':'Queued\x20Task\x20'+_0x54b8d4[_0xb9c2d3(0xc8)]+_0xb9c2d3(0xb3)+_0x1f1d90};},async 'dryRun'(_0x476d65){const _0x27d10d=a37_0x1abb11,_0x1e59bb=_0x476d65['str'](_0x27d10d(0xd4));return dryRun(_0x27d10d(0xc2),scheduleItemPath(_0x476d65[_0x27d10d(0xc3)],_0x1e59bb)+_0x27d10d(0xb8))['description'](_0x27d10d(0xac)+_0x1e59bb+_0x27d10d(0xd1))['build']();}},scheduleDelete={'service':'schedule','command':'delete','description':a37_0x1abb11(0x9b),'risk':'high-risk-write','flags':[SCHEDULE_ID_FLAG],async 'execute'(_0x57e38e){const _0x1e9e38=a37_0x1abb11,_0x237b53=_0x57e38e[_0x1e9e38(0xd6)](_0x1e9e38(0xd4)),_0x323b6e=await deleteRuntimeSchedule(_0x57e38e[_0x1e9e38(0xc3)],_0x237b53);return{'ok':!![],'data':_0x323b6e,'message':'Deleted\x20schedule\x20'+_0x237b53};},async 'dryRun'(_0xd1bd0a){const _0x40417c=a37_0x1abb11,_0xac5a79=_0xd1bd0a['str']('schedule-id');return dryRun(_0x40417c(0xd0),scheduleItemPath(_0xd1bd0a[_0x40417c(0xc3)],_0xac5a79))[_0x40417c(0x9c)](_0x40417c(0xc0)+_0xac5a79)[_0x40417c(0x99)]();}};export const scheduleDefinitions=[scheduleValidate,scheduleCreate,scheduleList,scheduleDetail,scheduleRun,scheduleDelete];
@@ -1 +1 @@
1
- const a38_0x4f433=a38_0x1f7a;(function(_0x471ddf,_0x4f3675){const _0x101e53=a38_0x1f7a,_0x40ecb8=_0x471ddf();while(!![]){try{const _0x3a3d3f=parseInt(_0x101e53(0x167))/0x1+-parseInt(_0x101e53(0x16e))/0x2+-parseInt(_0x101e53(0x166))/0x3+parseInt(_0x101e53(0x16d))/0x4*(-parseInt(_0x101e53(0x16c))/0x5)+-parseInt(_0x101e53(0x164))/0x6*(-parseInt(_0x101e53(0x16b))/0x7)+parseInt(_0x101e53(0x16a))/0x8+parseInt(_0x101e53(0x165))/0x9;if(_0x3a3d3f===_0x4f3675)break;else _0x40ecb8['push'](_0x40ecb8['shift']());}catch(_0x465721){_0x40ecb8['push'](_0x40ecb8['shift']());}}}(a38_0xd220,0x2f64a));import{buildSchemaPayload}from'../framework/schema-export.js';function a38_0xd220(){const _0xd1cf0a=['export','2262408pOxVow','7VSkeMu','28580WAbntH','140AclsFo','231800fbgKxF','Export\x20machine-readable\x20command\x20schema\x20(JSON)','1330038nPfbfp','720666uGeSTl','1111173TBKHEv','295925XZDJME','read'];a38_0xd220=function(){return _0xd1cf0a;};return a38_0xd220();}function a38_0x1f7a(_0x52f37a,_0x2afa6c){_0x52f37a=_0x52f37a-0x164;const _0xd2207d=a38_0xd220();let _0x1f7ac6=_0xd2207d[_0x52f37a];return _0x1f7ac6;}async function execute(_0x6103ff){const _0x466026=await buildSchemaPayload();return{'ok':!![],'data':_0x466026};}export const schemaDefinition={'service':'schema','command':a38_0x4f433(0x169),'description':a38_0x4f433(0x16f),'risk':a38_0x4f433(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
1
+ const a38_0x2fcaaf=a38_0x3964;function a38_0x3964(_0x41d92d,_0x32c763){_0x41d92d=_0x41d92d-0x66;const _0x5be85d=a38_0x5be8();let _0x3964e1=_0x5be85d[_0x41d92d];return _0x3964e1;}(function(_0x34805a,_0x954664){const _0x1be59f=a38_0x3964,_0x536895=_0x34805a();while(!![]){try{const _0x2c9f41=-parseInt(_0x1be59f(0x6c))/0x1+-parseInt(_0x1be59f(0x6b))/0x2*(parseInt(_0x1be59f(0x70))/0x3)+-parseInt(_0x1be59f(0x68))/0x4+parseInt(_0x1be59f(0x67))/0x5*(parseInt(_0x1be59f(0x66))/0x6)+parseInt(_0x1be59f(0x6d))/0x7+parseInt(_0x1be59f(0x69))/0x8+parseInt(_0x1be59f(0x72))/0x9;if(_0x2c9f41===_0x954664)break;else _0x536895['push'](_0x536895['shift']());}catch(_0x616177){_0x536895['push'](_0x536895['shift']());}}}(a38_0x5be8,0xd10b2));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x1350bb){const _0x51ad7a=await buildSchemaPayload();return{'ok':!![],'data':_0x51ad7a};}function a38_0x5be8(){const _0x464605=['1438146uFYUrm','1656571aXmpHu','7832342cTtHRD','read','schema','3cgWTAy','export','14651037PFyNWn','786630JFlDHt','5DSmENa','275644yIJsPB','3383144hgkrHG','Export\x20machine-readable\x20command\x20schema\x20(JSON)'];a38_0x5be8=function(){return _0x464605;};return a38_0x5be8();}export const schemaDefinition={'service':a38_0x2fcaaf(0x6f),'command':a38_0x2fcaaf(0x71),'description':a38_0x2fcaaf(0x6a),'risk':a38_0x2fcaaf(0x6e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};