@lovrabet/lovrabet-cli 2.2.4-beta.2 → 2.2.4-beta.3
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.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.d.ts +19 -0
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +4 -4
- package/skills/lovrabet/references/lovrabet-ocr-workflow.md +17 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a28_0x549e(){const _0x286dd9=['35347165ZnhBhU','appCode','6790840VBKeiq','read','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','trim','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','3275130fHWqrJ','3186786meltdU','string','2605026znBAYi','3288778dfMmwW','sdk-doc','str','721548wFJevp','code'];a28_0x549e=function(){return _0x286dd9;};return a28_0x549e();}const a28_0x5a407c=a28_0x329c;(function(_0x37f9bc,_0x320b1a){const _0x816b3c=a28_0x329c,_0x4c5aa5=_0x37f9bc();while(!![]){try{const _0x50493b=-parseInt(_0x816b3c(0x74))/0x1+-parseInt(_0x816b3c(0x82))/0x2+parseInt(_0x816b3c(0x7f))/0x3+-parseInt(_0x816b3c(0x78))/0x4+-parseInt(_0x816b3c(0x7e))/0x5+-parseInt(_0x816b3c(0x81))/0x6+parseInt(_0x816b3c(0x76))/0x7;if(_0x50493b===_0x320b1a)break;else _0x4c5aa5['push'](_0x4c5aa5['shift']());}catch(_0x505ee0){_0x4c5aa5['push'](_0x4c5aa5['shift']());}}}(a28_0x549e,0xea225));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x329c(_0x1efc20,_0x45bce9){_0x1efc20=_0x1efc20-0x74;const _0x549e65=a28_0x549e();let _0x329cde=_0x549e65[_0x1efc20];return _0x329cde;}const DEFAULT_MARKDOWN=a28_0x5a407c(0x7a);export function formatDatasetSdkMarkdown(_0x3f2b42){const _0x1106f0=a28_0x5a407c,_0x4a385c=typeof _0x3f2b42===_0x1106f0(0x80)?_0x3f2b42[_0x1106f0(0x7b)]():'';return _0x4a385c||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a28_0x5a407c(0x83),'description':a28_0x5a407c(0x7d),'risk':a28_0x5a407c(0x79),'flags':[{...CODE_FLAG,'description':a28_0x5a407c(0x7c)}],async 'execute'(_0x46c9dc){const _0x4f6afb=a28_0x5a407c,_0x285c26=_0x46c9dc[_0x4f6afb(0x84)](_0x4f6afb(0x75)),_0x42b3a2=await getDatasetSdkUsageDoc(_0x285c26,_0x46c9dc[_0x4f6afb(0x77)]);return{'ok':!![],'data':{'code':_0x285c26,'appCode':_0x46c9dc[_0x4f6afb(0x77)],'markdown':formatDatasetSdkMarkdown(_0x42b3a2)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x72f595=a29_0x389f;(function(_0xccf3f2,_0x44d336){const _0x244ebb=a29_0x389f,_0x5ea5ad=_0xccf3f2();while(!![]){try{const _0x5a3814=-parseInt(_0x244ebb(0x134))/0x1+-parseInt(_0x244ebb(0x156))/0x2+-parseInt(_0x244ebb(0x162))/0x3+-parseInt(_0x244ebb(0x196))/0x4*(parseInt(_0x244ebb(0x175))/0x5)+-parseInt(_0x244ebb(0x158))/0x6+parseInt(_0x244ebb(0x165))/0x7+-parseInt(_0x244ebb(0x148))/0x8*(-parseInt(_0x244ebb(0x163))/0x9);if(_0x5a3814===_0x44d336)break;else _0x5ea5ad['push'](_0x5ea5ad['shift']());}catch(_0x30e0b2){_0x5ea5ad['push'](_0x5ea5ad['shift']());}}}(a29_0x2451,0x7888f));import a29_0x330871 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';function a29_0x2451(){const _0x3ea21c=['(set,\x20length=','appCode','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✓\x20current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(none)','ClientAk','doctor','reason','name','currentApp','19644XDmBVA','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','packageVersion','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','385398dDjMfC','(default)','services','(not\x20found)','read','serviceCode','green','(unnamed)','✗\x20Invalid\x20JSON','registryPath','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Package\x20Version:\x20','locale','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','check','verbose','yellow','(no\x20file)','27423464hIyiad','gray','\x20\x20Session\x20check:\x20\x20\x20','(missing)','length','status','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','1203452AWkLcu','state','5695500zXMpco','message','bold','Project','\x20\x20Merged\x20Config','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Config\x20Files','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Config\x20JSON','1124811NdNgtf','9CCXaDs','defaultApp','1380582Jrwang','riskLevel','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','empty','repeat','missing','\x20(legacy/compat\x20only)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','version','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','835BDUQjx','installedPath','(not\x20set)','Global','\x20\x20API\x20Endpoints','(default:\x20','log','platform','\x20Imported\x20from:\x20','skillVersion','\x20\x20runtimeDomain:\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','serviceCount','✗\x20Invalid','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a29_0x2451=function(){return _0x3ea21c;};return a29_0x2451();}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';function a29_0x389f(_0x98d953,_0x25bc4a){_0x98d953=_0x98d953-0x133;const _0x2451e0=a29_0x2451();let _0x389fa1=_0x2451e0[_0x98d953];return _0x389fa1;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x485650){const _0x588ca0=a29_0x389f,_0x3cd1b0=getCliVersion(),_0x35b040=buildConfigFromFlags({});await initGlobalEnvironment(_0x35b040),console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)]('─'[_0x588ca0(0x16a)](0x32))),console[_0x588ca0(0x17b)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3cd1b0),console[_0x588ca0(0x17b)](_0x588ca0(0x16d)+process[_0x588ca0(0x16f)]),console['log'](_0x588ca0(0x18a)+process[_0x588ca0(0x17c)]+'\x20'+process[_0x588ca0(0x150)]);const _0x43eafc=inspectBuiltinSkill();console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871['bold'](_0x588ca0(0x174))),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e))),console['log'](_0x588ca0(0x14f)+(_0x43eafc[_0x588ca0(0x157)]===_0x588ca0(0x16e)?a29_0x330871[_0x588ca0(0x13a)](_0x588ca0(0x188)):a29_0x330871[_0x588ca0(0x168)]('✗\x20'+_0x43eafc[_0x588ca0(0x157)]))),console['log'](_0x588ca0(0x13f)+_0x43eafc[_0x588ca0(0x199)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x43eafc[_0x588ca0(0x17e)]||a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x14b)))),console[_0x588ca0(0x17b)](_0x588ca0(0x13e)+(_0x43eafc[_0x588ca0(0x176)]||a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x137))));_0x43eafc['state']!==_0x588ca0(0x16e)&&console[_0x588ca0(0x17b)](_0x588ca0(0x167)+_0x43eafc['repairCommand']);_0x43eafc[_0x588ca0(0x193)]&&console['log'](_0x588ca0(0x133)+_0x43eafc[_0x588ca0(0x193)]);console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x15a)](_0x588ca0(0x15f))),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e)));const _0x1f409a=getGlobalConfigPath(),_0x1cda5f=getProjectConfigPath();console[_0x588ca0(0x17b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f409a||a29_0x330871['gray'](_0x588ca0(0x137)))),console['log'](_0x588ca0(0x183)+(_0x1cda5f||a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x137)))),console['log'](),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x15a)](_0x588ca0(0x161))),console['log'](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e)));const _0x26b40c=(_0x4e8d3a,_0x2f8bc2)=>{const _0x1d971d=_0x588ca0;if(!_0x2f8bc2){console[_0x1d971d(0x17b)]('\x20\x20'+_0x4e8d3a[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871[_0x1d971d(0x149)](_0x1d971d(0x147)));return;}const _0x4eb899=inspectCliConfigJsonFile(_0x2f8bc2);if(_0x4eb899[_0x1d971d(0x14d)]==='ok')console[_0x1d971d(0x17b)]('\x20\x20'+_0x4e8d3a[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871[_0x1d971d(0x13a)]('✓\x20Valid\x20JSON'));else{if(_0x4eb899[_0x1d971d(0x14d)]==='empty')console[_0x1d971d(0x17b)]('\x20\x20'+_0x4e8d3a[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871['yellow'](_0x1d971d(0x160)));else _0x4eb899['status']===_0x1d971d(0x16b)?console[_0x1d971d(0x17b)]('\x20\x20'+_0x4e8d3a[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871[_0x1d971d(0x149)](_0x1d971d(0x14b))):(console[_0x1d971d(0x17b)]('\x20\x20'+_0x4e8d3a[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871['red'](_0x1d971d(0x13c))),console['log']('\x20\x20'+''[_0x1d971d(0x152)](0x11)+'\x20'+a29_0x330871[_0x1d971d(0x168)](_0x4eb899[_0x1d971d(0x159)])));}};_0x26b40c(_0x588ca0(0x178),_0x1f409a),_0x26b40c(_0x588ca0(0x15b),_0x1cda5f),console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871['bold'](_0x588ca0(0x15c))),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e))),console[_0x588ca0(0x17b)](_0x588ca0(0x142)+(_0x35b040[_0x588ca0(0x185)]||a29_0x330871[_0x588ca0(0x168)](_0x588ca0(0x177)))),console[_0x588ca0(0x17b)](_0x588ca0(0x151)+_0x35b040[_0x588ca0(0x18d)]);const _0x548ff6=isLegacyCompatConfigKey('locale')?a29_0x330871[_0x588ca0(0x149)](_0x35b040[_0x588ca0(0x140)]+_0x588ca0(0x16c)):_0x35b040[_0x588ca0(0x140)];console[_0x588ca0(0x17b)](_0x588ca0(0x154)+_0x548ff6),console[_0x588ca0(0x17b)](_0x588ca0(0x18f)+(_0x35b040[_0x588ca0(0x164)]||a29_0x330871['gray']('(none)'))),console[_0x588ca0(0x17b)](_0x588ca0(0x171)+(_0x35b040[_0x588ca0(0x195)]||a29_0x330871['gray'](_0x588ca0(0x190)))),console[_0x588ca0(0x17b)](_0x588ca0(0x15d)+(_0x35b040[_0x588ca0(0x18b)]||a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x17a)+DEFAULT_CONFIG_VALUES[_0x588ca0(0x18b)]+')'))),console[_0x588ca0(0x17b)](_0x588ca0(0x173)+(_0x35b040[_0x588ca0(0x153)]??a29_0x330871['gray'](_0x588ca0(0x135)))),console['log'](_0x588ca0(0x155)+_0x35b040[_0x588ca0(0x166)]),console[_0x588ca0(0x17b)](_0x588ca0(0x189)+_0x35b040[_0x588ca0(0x145)]),console[_0x588ca0(0x17b)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x588ca0(0x191)]),console[_0x588ca0(0x17b)](_0x588ca0(0x197)+(_0x35b040[_0x588ca0(0x15e)]?a29_0x330871[_0x588ca0(0x13a)](_0x588ca0(0x184)+_0x35b040['accessKey'][_0x588ca0(0x14c)]+')'):a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x190)))),console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x15a)](_0x588ca0(0x179))),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e))),console[_0x588ca0(0x17b)](_0x588ca0(0x172)+getApiDomain()),console[_0x588ca0(0x17b)](_0x588ca0(0x187)+getUserDomain()),console['log'](_0x588ca0(0x17f)+getRuntimeDomain()),console['log'](),console['log'](a29_0x330871[_0x588ca0(0x15a)](_0x588ca0(0x198))),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e)));const _0xdb439f=inspectServiceRegistry();console[_0x588ca0(0x17b)](_0x588ca0(0x141)+_0xdb439f[_0x588ca0(0x13d)]),console[_0x588ca0(0x17b)](_0x588ca0(0x18c)+formatServiceRegistryStatus(_0xdb439f)),console['log'](_0x588ca0(0x14e)+_0xdb439f[_0x588ca0(0x181)]),console[_0x588ca0(0x17b)](_0x588ca0(0x186)+_0xdb439f['commandCount']);for(const _0x40e95d of _0xdb439f[_0x588ca0(0x136)]){console[_0x588ca0(0x17b)]('\x20\x20'+(_0x40e95d[_0x588ca0(0x139)]+':')[_0x588ca0(0x152)](0x11)+'\x20'+(_0x40e95d[_0x588ca0(0x194)]||a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x13b)))+'\x20('+_0x40e95d[_0x588ca0(0x143)]+'\x20commands)'),console[_0x588ca0(0x17b)]('\x20\x20'+''[_0x588ca0(0x152)](0x11)+_0x588ca0(0x17d)+_0x40e95d['source']['path']);}return console[_0x588ca0(0x17b)](),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x15a)]('\x20\x20Auth')),console[_0x588ca0(0x17b)](a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x170)[_0x588ca0(0x16a)](0x1e))),console[_0x588ca0(0x17b)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x330871[_0x588ca0(0x13a)](AUTH_MODE[_0x588ca0(0x191)]+'\x20(accessKey)')),console[_0x588ca0(0x17b)](_0x588ca0(0x14a)+a29_0x330871[_0x588ca0(0x149)](_0x588ca0(0x180))),console[_0x588ca0(0x17b)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1ed71c){const _0x5dde78=a29_0x389f;if(_0x1ed71c[_0x5dde78(0x14d)]==='ok')return a29_0x330871['green']('✓\x20Loaded');if(_0x1ed71c['status']===_0x5dde78(0x16b))return a29_0x330871[_0x5dde78(0x149)]('(not\x20found)');if(_0x1ed71c[_0x5dde78(0x14d)]===_0x5dde78(0x169))return a29_0x330871[_0x5dde78(0x146)]('⚠\x20Empty');return a29_0x330871[_0x5dde78(0x168)](_0x5dde78(0x182)+(_0x1ed71c[_0x5dde78(0x159)]?':\x20'+_0x1ed71c[_0x5dde78(0x159)]:''));}export const doctorDefinition={'service':a29_0x72f595(0x192),'command':a29_0x72f595(0x144),'description':a29_0x72f595(0x18e),'risk':a29_0x72f595(0x138),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
function a29_0x518e(_0x4d5759,_0xc47558){_0x4d5759=_0x4d5759-0x15a;const _0x24e7bd=a29_0x24e7();let _0x518e59=_0x24e7bd[_0x4d5759];return _0x518e59;}const a29_0x5875bb=a29_0x518e;(function(_0x591d5b,_0x2265c5){const _0x22bc59=a29_0x518e,_0x497bac=_0x591d5b();while(!![]){try{const _0x10cb37=parseInt(_0x22bc59(0x1a2))/0x1+-parseInt(_0x22bc59(0x18f))/0x2*(parseInt(_0x22bc59(0x191))/0x3)+-parseInt(_0x22bc59(0x178))/0x4+-parseInt(_0x22bc59(0x169))/0x5*(-parseInt(_0x22bc59(0x1a9))/0x6)+-parseInt(_0x22bc59(0x176))/0x7*(-parseInt(_0x22bc59(0x19e))/0x8)+parseInt(_0x22bc59(0x17a))/0x9+parseInt(_0x22bc59(0x1ae))/0xa;if(_0x10cb37===_0x2265c5)break;else _0x497bac['push'](_0x497bac['shift']());}catch(_0x79db49){_0x497bac['push'](_0x497bac['shift']());}}}(a29_0x24e7,0xbe36d));import a29_0x49f478 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';function a29_0x24e7(){const _0xabbbfe=['5624012hsIeHo','Project','2257299hreyyf','verbose','env','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','packageVersion','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','(not\x20set)','(not\x20found)','appCode','bold','state','padEnd','\x20\x20API\x20Endpoints','\x20\x20Built-in\x20Skill','✓\x20current','arch','pageSize','186QLMeBW','serviceCount','5073oKgaeu','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20\x20auth\x20(effective):\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','format','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','accessKey','riskLevel','8wSFoyf','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','188152ErsaAK','empty','locale','red','path','name','\x20\x20Auth','6aWBJvc','✗\x20Invalid','\x20\x20Service\x20Tree','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','Global','5237980Lqpfwp','\x20\x20Config\x20Files','reason','doctor','log','\x20\x20runtimeDomain:\x20\x20\x20','missing','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','services','message','current','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20─','Diagnose\x20CLI\x20configuration\x20and\x20environment','commandCount','yellow','(no\x20file)','defaultApp','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Skill\x20Version:\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','repeat','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20doctor','green','2723950xcQWNr','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20commands)','(default)','\x20Imported\x20from:\x20','registryPath','\x20(legacy/compat\x20only)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','gray','\x20\x20Config\x20JSON','status','5843824afLKVU','(none)'];a29_0x24e7=function(){return _0xabbbfe;};return a29_0x24e7();}import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x5f56a4){const _0x375304=a29_0x518e,_0x4e37d7=getCliVersion(),_0x47541b=buildConfigFromFlags({});await initGlobalEnvironment(_0x47541b),console[_0x375304(0x1b2)](),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x187)](CLI_BIN_NAME+_0x375304(0x167))),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x173)]('─'['repeat'](0x32))),console[_0x375304(0x1b2)](_0x375304(0x1bb)+_0x4e37d7),console[_0x375304(0x1b2)](_0x375304(0x1a0)+process[_0x375304(0x172)]),console[_0x375304(0x1b2)](_0x375304(0x16a)+process[_0x375304(0x195)]+'\x20'+process[_0x375304(0x18d)]);const _0x2b938b=inspectBuiltinSkill();console['log'](),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x187)](_0x375304(0x18b))),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x173)](_0x375304(0x1bc)[_0x375304(0x164)](0x1e))),console[_0x375304(0x1b2)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2b938b['state']===_0x375304(0x1b8)?a29_0x49f478[_0x375304(0x168)](_0x375304(0x18c)):a29_0x49f478[_0x375304(0x1a5)]('✗\x20'+_0x2b938b[_0x375304(0x188)]))),console['log'](_0x375304(0x19b)+_0x2b938b[_0x375304(0x17f)]),console[_0x375304(0x1b2)](_0x375304(0x160)+(_0x2b938b[_0x375304(0x183)]||a29_0x49f478[_0x375304(0x173)](_0x375304(0x193)))),console[_0x375304(0x1b2)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x2b938b['installedPath']||a29_0x49f478[_0x375304(0x173)](_0x375304(0x185))));_0x2b938b[_0x375304(0x188)]!==_0x375304(0x1b8)&&console['log'](_0x375304(0x17d)+_0x2b938b['repairCommand']);_0x2b938b['reason']&&console['log'](_0x375304(0x180)+_0x2b938b[_0x375304(0x1b0)]);console[_0x375304(0x1b2)](),console['log'](a29_0x49f478[_0x375304(0x187)](_0x375304(0x1af))),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x173)]('\x20\x20─'['repeat'](0x1e)));const _0x3f67c2=getGlobalConfigPath(),_0x364694=getProjectConfigPath();console['log'](_0x375304(0x171)+(_0x3f67c2||a29_0x49f478[_0x375304(0x173)](_0x375304(0x185)))),console[_0x375304(0x1b2)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x364694||a29_0x49f478[_0x375304(0x173)](_0x375304(0x185)))),console[_0x375304(0x1b2)](),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x187)](_0x375304(0x174))),console['log'](a29_0x49f478[_0x375304(0x173)](_0x375304(0x1bc)[_0x375304(0x164)](0x1e)));const _0x4e05b8=(_0x515df8,_0x4ffb15)=>{const _0x5cd43a=_0x375304;if(!_0x4ffb15){console[_0x5cd43a(0x1b2)]('\x20\x20'+_0x515df8[_0x5cd43a(0x189)](0x11)+'\x20'+a29_0x49f478[_0x5cd43a(0x173)](_0x5cd43a(0x15c)));return;}const _0x8b7895=inspectCliConfigJsonFile(_0x4ffb15);if(_0x8b7895[_0x5cd43a(0x175)]==='ok')console['log']('\x20\x20'+_0x515df8[_0x5cd43a(0x189)](0x11)+'\x20'+a29_0x49f478['green'](_0x5cd43a(0x163)));else{if(_0x8b7895['status']===_0x5cd43a(0x1a3))console[_0x5cd43a(0x1b2)]('\x20\x20'+_0x515df8[_0x5cd43a(0x189)](0x11)+'\x20'+a29_0x49f478[_0x5cd43a(0x15b)](_0x5cd43a(0x15f)));else _0x8b7895[_0x5cd43a(0x175)]===_0x5cd43a(0x1b4)?console[_0x5cd43a(0x1b2)]('\x20\x20'+_0x515df8[_0x5cd43a(0x189)](0x11)+'\x20'+a29_0x49f478[_0x5cd43a(0x173)](_0x5cd43a(0x193))):(console['log']('\x20\x20'+_0x515df8[_0x5cd43a(0x189)](0x11)+'\x20'+a29_0x49f478['red']('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x49f478['red'](_0x8b7895[_0x5cd43a(0x1b7)])));}};_0x4e05b8(_0x375304(0x1ad),_0x3f67c2),_0x4e05b8(_0x375304(0x179),_0x364694),console[_0x375304(0x1b2)](),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x187)]('\x20\x20Merged\x20Config')),console['log'](a29_0x49f478['gray'](_0x375304(0x1bc)['repeat'](0x1e))),console[_0x375304(0x1b2)](_0x375304(0x19f)+(_0x47541b[_0x375304(0x186)]||a29_0x49f478[_0x375304(0x1a5)](_0x375304(0x184)))),console[_0x375304(0x1b2)](_0x375304(0x1a1)+_0x47541b[_0x375304(0x17c)]);const _0x153b52=isLegacyCompatConfigKey(_0x375304(0x1a4))?a29_0x49f478['gray'](_0x47541b[_0x375304(0x1a4)]+_0x375304(0x170)):_0x47541b['locale'];console[_0x375304(0x1b2)](_0x375304(0x1b5)+_0x153b52),console[_0x375304(0x1b2)](_0x375304(0x17e)+(_0x47541b[_0x375304(0x15d)]||a29_0x49f478[_0x375304(0x173)]('(none)'))),console[_0x375304(0x1b2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x47541b['currentApp']||a29_0x49f478[_0x375304(0x173)](_0x375304(0x177)))),console[_0x375304(0x1b2)](_0x375304(0x194)+(_0x47541b[_0x375304(0x199)]||a29_0x49f478[_0x375304(0x173)](_0x375304(0x166)+DEFAULT_CONFIG_VALUES[_0x375304(0x199)]+')'))),console[_0x375304(0x1b2)](_0x375304(0x1b9)+(_0x47541b[_0x375304(0x18e)]??a29_0x49f478['gray'](_0x375304(0x16d)))),console[_0x375304(0x1b2)](_0x375304(0x165)+_0x47541b[_0x375304(0x19d)]),console[_0x375304(0x1b2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47541b[_0x375304(0x17b)]),console[_0x375304(0x1b2)](_0x375304(0x196)+AUTH_MODE['ClientAk']),console[_0x375304(0x1b2)](_0x375304(0x19a)+(_0x47541b['accessKey']?a29_0x49f478[_0x375304(0x168)]('(set,\x20length='+_0x47541b[_0x375304(0x19c)][_0x375304(0x181)]+')'):a29_0x49f478[_0x375304(0x173)](_0x375304(0x177)))),console[_0x375304(0x1b2)](),console['log'](a29_0x49f478[_0x375304(0x187)](_0x375304(0x18a))),console['log'](a29_0x49f478[_0x375304(0x173)](_0x375304(0x1bc)[_0x375304(0x164)](0x1e))),console['log'](_0x375304(0x1ba)+getApiDomain()),console[_0x375304(0x1b2)](_0x375304(0x162)+getUserDomain()),console[_0x375304(0x1b2)](_0x375304(0x1b3)+getRuntimeDomain()),console[_0x375304(0x1b2)](),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x187)](_0x375304(0x1ab))),console['log'](a29_0x49f478[_0x375304(0x173)](_0x375304(0x1bc)[_0x375304(0x164)](0x1e)));const _0x5ed9b2=inspectServiceRegistry();console[_0x375304(0x1b2)](_0x375304(0x1ac)+_0x5ed9b2[_0x375304(0x16f)]),console['log'](_0x375304(0x192)+formatServiceRegistryStatus(_0x5ed9b2)),console[_0x375304(0x1b2)](_0x375304(0x15e)+_0x5ed9b2[_0x375304(0x190)]),console[_0x375304(0x1b2)](_0x375304(0x182)+_0x5ed9b2[_0x375304(0x15a)]);for(const _0x53e73b of _0x5ed9b2[_0x375304(0x1b6)]){console[_0x375304(0x1b2)]('\x20\x20'+(_0x53e73b['serviceCode']+':')[_0x375304(0x189)](0x11)+'\x20'+(_0x53e73b[_0x375304(0x1a7)]||a29_0x49f478[_0x375304(0x173)]('(unnamed)'))+'\x20('+_0x53e73b[_0x375304(0x15a)]+_0x375304(0x16c)),console['log']('\x20\x20'+''[_0x375304(0x189)](0x11)+_0x375304(0x16e)+_0x53e73b[_0x375304(0x16b)][_0x375304(0x1a6)]);}return console[_0x375304(0x1b2)](),console[_0x375304(0x1b2)](a29_0x49f478['bold'](_0x375304(0x1a8))),console[_0x375304(0x1b2)](a29_0x49f478[_0x375304(0x173)]('\x20\x20─'[_0x375304(0x164)](0x1e))),console[_0x375304(0x1b2)](_0x375304(0x197)+a29_0x49f478['green'](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console[_0x375304(0x1b2)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0x49f478[_0x375304(0x173)](_0x375304(0x161))),console[_0x375304(0x1b2)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x22fd3f){const _0xed1bf7=a29_0x518e;if(_0x22fd3f[_0xed1bf7(0x175)]==='ok')return a29_0x49f478['green'](_0xed1bf7(0x198));if(_0x22fd3f[_0xed1bf7(0x175)]===_0xed1bf7(0x1b4))return a29_0x49f478[_0xed1bf7(0x173)](_0xed1bf7(0x185));if(_0x22fd3f[_0xed1bf7(0x175)]===_0xed1bf7(0x1a3))return a29_0x49f478[_0xed1bf7(0x15b)]('⚠\x20Empty');return a29_0x49f478['red'](_0xed1bf7(0x1aa)+(_0x22fd3f[_0xed1bf7(0x1b7)]?':\x20'+_0x22fd3f['message']:''));}export const doctorDefinition={'service':a29_0x5875bb(0x1b1),'command':'check','description':a29_0x5875bb(0x1bd),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x101db3=a30_0xca76;(function(_0x2573f3,_0x322598){const _0x419a85=a30_0xca76,_0x17f596=_0x2573f3();while(!![]){try{const _0x1e95f8=-parseInt(_0x419a85(0xa1))/0x1+parseInt(_0x419a85(0x9c))/0x2*(-parseInt(_0x419a85(0xac))/0x3)+-parseInt(_0x419a85(0xae))/0x4+parseInt(_0x419a85(0xa6))/0x5+-parseInt(_0x419a85(0xaf))/0x6*(parseInt(_0x419a85(0xb0))/0x7)+parseInt(_0x419a85(0x95))/0x8+parseInt(_0x419a85(0xa0))/0x9*(parseInt(_0x419a85(0x9d))/0xa);if(_0x1e95f8===_0x322598)break;else _0x17f596['push'](_0x17f596['shift']());}catch(_0x1785ec){_0x17f596['push'](_0x17f596['shift']());}}}(a30_0x1cd8,0x22b15));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';function a30_0x1cd8(){const _0x3508ca=['path','106BmfatT','40nKeWxV','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','trim','646011xZClxs','240414rEtNpt','description','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','filePath\x20is\x20required.','1184440zkBodb','str','upload','\x20to\x20runtime\x20app\x20','appCode','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','3498yEiHDZ','boolean','144448XPiBMy','6YjklHI','1868741QSMYFv','query-url','body','POST','bool','1787072QFybwI','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','read','file','File'];a30_0x1cd8=function(){return _0x3508ca;};return a30_0x1cd8();}import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a30_0x101db3(0x99),'type':'string','required':!![],'description':a30_0x101db3(0xa3)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a30_0x101db3(0x96)},DOWNLOAD_FLAG={'name':'download','type':a30_0x101db3(0xad),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':a30_0x101db3(0xad),'description':a30_0x101db3(0x9e)};function a30_0xca76(_0x13af36,_0x56ac33){_0x13af36=_0x13af36-0x94;const _0x1cd8be=a30_0x1cd8();let _0xca76de=_0x1cd8be[_0x13af36];return _0xca76de;}function requireFilePath(_0x296868){const _0x1cf376=a30_0x101db3,_0x3cb24b=_0x296868[_0x1cf376(0x9f)]();if(!_0x3cb24b)throw CliErrors['validation'](_0x1cf376(0xa5));return _0x3cb24b;}const fileUpload={'service':'file','command':a30_0x101db3(0xa8),'description':a30_0x101db3(0x97),'risk':a30_0x101db3(0x98),'flags':[FILE_FLAG],async 'dryRun'(_0x1e7674){const _0x503e4b=a30_0x101db3,_0x1b6bdf=requireRuntimeUploadFile(_0x1e7674[_0x503e4b(0xa7)]('file'),_0x503e4b(0x9a));return dryRun(_0x503e4b(0xb3),'/client/uploadFile')[_0x503e4b(0xb2)]({'appCode':_0x1e7674[_0x503e4b(0xaa)],'multipart':{'file':_0x1b6bdf}})[_0x503e4b(0xa2)]('Preview:\x20upload\x20'+_0x1b6bdf[_0x503e4b(0x9b)]+_0x503e4b(0xa9)+_0x1e7674[_0x503e4b(0xaa)])['build']();},async 'execute'(_0xe3feae){const _0x53ed56=a30_0x101db3,_0x2d7920=requireRuntimeUploadFile(_0xe3feae[_0x53ed56(0xa7)]('file'),'File'),_0x2f720d=await uploadRuntimeFile(_0xe3feae['appCode'],_0x2d7920[_0x53ed56(0x9b)]);return{'ok':!![],'data':_0x2f720d,'message':_0x2f720d['filePath']?'Uploaded\x20file:\x20'+_0x2f720d['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x53ed56(0xab)};}},fileQueryUrl={'service':a30_0x101db3(0x99),'command':a30_0x101db3(0xb1),'description':a30_0x101db3(0xa4),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x247036){const _0x254c1c=a30_0x101db3,_0x567e89=requireFilePath(_0x247036[_0x254c1c(0xa7)]('filepath')),_0x50a164=await queryRuntimeFileUrl(_0x567e89,{'download':_0x247036[_0x254c1c(0x94)]('download'),'longTerm':_0x247036[_0x254c1c(0x94)]('long-term')});return{'ok':!![],'data':_0x50a164};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0xbdf4d2=a31_0x4c70;function a31_0x4c70(_0x299b5a,_0x61748f){_0x299b5a=_0x299b5a-0xda;const _0x3594a1=a31_0x3594();let _0x4c70ee=_0x3594a1[_0x299b5a];return _0x4c70ee;}(function(_0x22b8e5,_0x528b05){const _0x4822c9=a31_0x4c70,_0x23e393=_0x22b8e5();while(!![]){try{const _0x1e9750=-parseInt(_0x4822c9(0xdf))/0x1*(-parseInt(_0x4822c9(0xef))/0x2)+-parseInt(_0x4822c9(0xfe))/0x3+parseInt(_0x4822c9(0x101))/0x4+-parseInt(_0x4822c9(0x100))/0x5+parseInt(_0x4822c9(0xde))/0x6+-parseInt(_0x4822c9(0xf8))/0x7*(parseInt(_0x4822c9(0xf6))/0x8)+parseInt(_0x4822c9(0xda))/0x9*(-parseInt(_0x4822c9(0xf2))/0xa);if(_0x1e9750===_0x528b05)break;else _0x23e393['push'](_0x23e393['shift']());}catch(_0x1db86e){_0x23e393['push'](_0x23e393['shift']());}}}(a31_0x3594,0x8c878));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a31_0xbdf4d2(0xe8),'type':a31_0xbdf4d2(0xeb),'description':a31_0xbdf4d2(0xe3),'required':!![]},{'name':'appcode','type':a31_0xbdf4d2(0xeb),'description':a31_0xbdf4d2(0xfa)},{'name':'env','type':a31_0xbdf4d2(0xeb),'description':a31_0xbdf4d2(0xfd),'enum':[...RUNTIME_ENV_VALUES]},{'name':a31_0xbdf4d2(0xec),'type':a31_0xbdf4d2(0x104),'description':a31_0xbdf4d2(0xea)+PRODUCT_CONFIG[a31_0xbdf4d2(0xe0)]+a31_0xbdf4d2(0xe6),'default':![]},{'name':a31_0xbdf4d2(0xfc),'type':a31_0xbdf4d2(0x104),'description':a31_0xbdf4d2(0xe7),'default':![]}];export async function runAppImport(_0x2bbcd7){const _0x1f2532=a31_0xbdf4d2,_0x230a7e=_0x2bbcd7[_0x1f2532(0xec)]?_0x1f2532(0xec):_0x1f2532(0x102),_0x4944dc=resolveWriteConfigPath(_0x230a7e);await runFromImport(_0x2bbcd7,_0x4944dc);}function a31_0x3594(){const _0x150944=['object','Override\x20imported\x20default\x20appcode','\x20\x20config:\x20\x20','yes','Override\x20imported\x20default\x20env','2879127hBkgLj','utf8','2183505TVMyoP','1725284FCyDDE','project','defaultApp','boolean','\x20\x20default:\x20','9ZeZPZi','Source\x20file\x20not\x20found:\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','cwd','4162662bWrnXI','1RCvAmZ','newConfigFileName','Imported\x20from\x20','join','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','env','Invalid\x20env\x20\x22',')\x20instead\x20of\x20project','Skip\x20confirmation\x20when\x20overwriting','file','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Write\x20to\x20global\x20(~/','string','global','appcode','log','2265786BJwxHY','message','apps','898600jEJUKP','riskLevel','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','validation','1568904EwFlQc','app','7eCKGKn'];a31_0x3594=function(){return _0x150944;};return a31_0x3594();}async function runFromImport(_0x3076b4,_0x39219c){const _0x6f4cde=a31_0xbdf4d2,_0x59edc9=resolveFilePath(_0x3076b4[_0x6f4cde(0xe8)]);if(!existsSync(_0x59edc9))throw CliErrors['validation'](_0x6f4cde(0xdb)+_0x59edc9);const _0x3d641b=readSourceFile(_0x59edc9),_0x29a54b=convertToRuntimeConfig(_0x3d641b);_0x3076b4['appcode']&&(_0x29a54b[_0x6f4cde(0xed)]=String(_0x3076b4[_0x6f4cde(0xed)]));_0x3076b4[_0x6f4cde(0xe4)]&&(_0x29a54b['env']=resolveImportEnv(_0x3076b4));if(!_0x29a54b['appcode'])throw CliErrors['validation'](_0x6f4cde(0xdc),_0x6f4cde(0xf4));await writeImportConfig(_0x39219c,_0x29a54b,_0x3076b4),console[_0x6f4cde(0xee)](_0x6f4cde(0xe1)+_0x59edc9),console[_0x6f4cde(0xee)](_0x6f4cde(0xfb)+_0x39219c),console[_0x6f4cde(0xee)]('\x20\x20appcode:\x20'+_0x29a54b[_0x6f4cde(0xed)]);if(_0x29a54b['defaultApp'])console['log'](_0x6f4cde(0x105)+_0x29a54b[_0x6f4cde(0x103)]);}function convertToRuntimeConfig(_0x2e9b39){const _0x34c232=a31_0xbdf4d2;if(_0x2e9b39['apps']&&typeof _0x2e9b39[_0x34c232(0xf1)]===_0x34c232(0xf9))throw CliErrors['validation'](_0x34c232(0xe9),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x1dc7f5={};for(const _0x60e831 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x2e9b39[_0x60e831]!==undefined&&(_0x1dc7f5[_0x60e831]=_0x2e9b39[_0x60e831]);}return!_0x1dc7f5[_0x34c232(0xf3)]&&(_0x1dc7f5['riskLevel']=DEFAULT_CONFIG_VALUES[_0x34c232(0xf3)]),_0x1dc7f5;}async function writeImportConfig(_0x4dff11,_0x2f4b31,_0x485e8d){const _0x4058ff=a31_0xbdf4d2;let _0x3ced42={};existsSync(_0x4dff11)&&!_0x485e8d[_0x4058ff(0xfc)]&&(_0x3ced42=readConfigFile(_0x4dff11));for(const [_0x4316d1,_0x2365d4]of Object['entries'](_0x2f4b31)){_0x2365d4!==undefined&&(_0x3ced42[_0x4316d1]=_0x2365d4);}if(_0x3ced42[_0x4058ff(0xf7)])delete _0x3ced42[_0x4058ff(0xf7)];writeConfigFile(_0x4dff11,_0x3ced42);}function resolveFilePath(_0x2f3e88){const _0x36e126=a31_0xbdf4d2;return isAbsolute(_0x2f3e88)?_0x2f3e88:resolve(process[_0x36e126(0xdd)](),_0x2f3e88);}function readSourceFile(_0xac5848){const _0xd661e6=a31_0xbdf4d2;try{const _0x21037a=readFileSync(_0xac5848,{'encoding':_0xd661e6(0xff)});return JSON['parse'](_0x21037a);}catch(_0x2afc52){throw CliErrors[_0xd661e6(0xf5)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x2afc52[_0xd661e6(0xf0)]);}}function resolveImportEnv(_0x44555d){const _0x445fd1=a31_0xbdf4d2,_0x54b53f=_0x44555d['env'];if(_0x54b53f===undefined||_0x54b53f==='')return DEFAULT_CONFIG_VALUES[_0x445fd1(0xe4)];if(!RUNTIME_ENV_VALUES['includes'](_0x54b53f))throw CliErrors[_0x445fd1(0xf5)](_0x445fd1(0xe5)+_0x54b53f+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x445fd1(0xe2)](',\x20'));return _0x54b53f;}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a32_0x6299(_0x29a9e3,_0x5590cb){_0x29a9e3=_0x29a9e3-0x7a;const _0x2d00f2=a32_0x2d00();let _0x629955=_0x2d00f2[_0x29a9e3];return _0x629955;}const a32_0x4cb905=a32_0x6299;(function(_0x34e05d,_0x306ac8){const _0x100444=a32_0x6299,_0x48550e=_0x34e05d();while(!![]){try{const _0x1ce4f5=-parseInt(_0x100444(0xbe))/0x1*(parseInt(_0x100444(0xbd))/0x2)+parseInt(_0x100444(0xb6))/0x3*(-parseInt(_0x100444(0x94))/0x4)+parseInt(_0x100444(0xa5))/0x5+-parseInt(_0x100444(0x92))/0x6+parseInt(_0x100444(0xb4))/0x7*(-parseInt(_0x100444(0xb2))/0x8)+parseInt(_0x100444(0x80))/0x9+-parseInt(_0x100444(0xb9))/0xa*(-parseInt(_0x100444(0x7f))/0xb);if(_0x1ce4f5===_0x306ac8)break;else _0x48550e['push'](_0x48550e['shift']());}catch(_0x5463a5){_0x48550e['push'](_0x48550e['shift']());}}}(a32_0x2d00,0x68c76));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';function a32_0x2d00(){const _0x2dc8d2=['根据本地文件创建个人知识库条目','length','validation','search','File\x20path\x20is\x20required.','用本地文件内容替换个人知识库条目正文,并触发新的检索同步。','/update','/client/knowledge-base/personal/','read','Search\x20query\x20is\x20required.','Override\x20the\x20existing\x20entry\x20title','detail','createTime','write','3298710qmCNbU','Personal\x20knowledge-base\x20entry\x20ID','scope','Created\x20KB\x20entry\x20','weightedScore','POST','appCode','file','description','trim','--topk\x20must\x20be\x20a\x20positive\x20number.','flag','docId','80GdeHBp','build','276164KWjfgY','ragErrorMessage','376953IZyeQY','num','score','390IrGxcL','content','Updated\x20KB\x20entry\x20','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','2JuWHbr','167831Ifluus','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','ragStatus','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','number','utf8','209033MzjLWJ','873792ekwSfx','create','File\x20is\x20not\x20a\x20regular\x20file:\x20','userId','string','topk','title','Search\x20visible\x20company\x20and\x20personal\x20knowledge\x20base\x20content','query','version','根据本地文件更新个人知识库条目','bool','/client/knowledge-base/personal/create','File\x20not\x20found:\x20','metadata','map','str','把本地文件内容保存为个人知识库条目,并进入后续检索同步流程。','776814buKbmO','verbose','12aFaLdE','body','updateTime'];a32_0x2d00=function(){return _0x2dc8d2;};return a32_0x2d00();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a32_0x4cb905(0x84),'required':!![],'description':'Personal\x20knowledge-base\x20entry\x20title'},FILE_FLAG={'name':'file','type':a32_0x4cb905(0x84),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file'},QUERY_FLAG={'name':'query','type':a32_0x4cb905(0x84),'required':!![],'description':'Search\x20query\x20for\x20visible\x20company\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':a32_0x4cb905(0x85),'type':a32_0x4cb905(0x7d),'description':a32_0x4cb905(0x7c)};function readKnowledgeFile(_0x146f1e){const _0x2cea54=a32_0x4cb905;if(!_0x146f1e)throw CliErrors[_0x2cea54(0x99)](_0x2cea54(0x9b));if(!existsSync(_0x146f1e))throw CliErrors['validation'](_0x2cea54(0x8d)+_0x146f1e);if(!statSync(_0x146f1e)['isFile']())throw CliErrors[_0x2cea54(0x99)](_0x2cea54(0x82)+_0x146f1e);return readFileSync(_0x146f1e,_0x2cea54(0x7e));}function summarizePersonalItem(_0x491de1){const _0x88ad5a=a32_0x4cb905;return{'id':_0x491de1['id'],'title':_0x491de1[_0x88ad5a(0x86)],'version':_0x491de1[_0x88ad5a(0x89)],'ragStatus':_0x491de1[_0x88ad5a(0x7b)],'ragErrorMessage':_0x491de1[_0x88ad5a(0xb5)],'updateTime':_0x491de1[_0x88ad5a(0x96)]};}function detailPersonalItem(_0x551ce5){const _0x2ea239=a32_0x4cb905;return{'id':_0x551ce5['id'],'appCode':_0x551ce5[_0x2ea239(0xab)],'scope':_0x551ce5['scope'],'userId':_0x551ce5[_0x2ea239(0x83)],'title':_0x551ce5[_0x2ea239(0x86)],'content':_0x551ce5[_0x2ea239(0xba)]??'','version':_0x551ce5[_0x2ea239(0x89)],'ragStatus':_0x551ce5[_0x2ea239(0x7b)],'ragErrorMessage':_0x551ce5[_0x2ea239(0xb5)],'createTime':_0x551ce5[_0x2ea239(0xa3)],'updateTime':_0x551ce5[_0x2ea239(0x96)]};}function summarizeSearchHit(_0x56cbf0){const _0x512eba=a32_0x4cb905;return{'scope':_0x56cbf0[_0x512eba(0xa7)],'title':_0x56cbf0['title'],'docId':_0x56cbf0[_0x512eba(0xb1)],'score':_0x56cbf0[_0x512eba(0xb8)],'weightedScore':_0x56cbf0[_0x512eba(0xa9)],'content':_0x56cbf0[_0x512eba(0xba)],'metadata':_0x56cbf0[_0x512eba(0x8e)]};}function readTopK(_0x211520){const _0x200f54=a32_0x4cb905,_0x3f8ea1=_0x211520[_0x200f54(0xb0)](_0x200f54(0x85));if(_0x3f8ea1===undefined||_0x3f8ea1===null||_0x3f8ea1==='')return undefined;const _0x190b78=_0x211520[_0x200f54(0xb7)](_0x200f54(0x85));if(!Number['isFinite'](_0x190b78)||_0x190b78<0x1)throw CliErrors[_0x200f54(0x99)](_0x200f54(0xaf));return _0x190b78;}const kbList={'service':'kb','command':'list','description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a32_0x4cb905(0x9f),'flags':[VERBOSE_FLAG],async 'execute'(_0x187121){const _0x26d4a1=a32_0x4cb905,_0x5ee24e=await listPersonalKnowledgeBaseItems(_0x187121[_0x26d4a1(0xab)]);if(_0x187121[_0x26d4a1(0x8b)](_0x26d4a1(0x93)))return{'ok':!![],'data':{'total':_0x5ee24e[_0x26d4a1(0x98)],'items':_0x5ee24e}};return{'ok':!![],'data':{'total':_0x5ee24e[_0x26d4a1(0x98)],'items':_0x5ee24e['map'](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a32_0x4cb905(0xa2),'description':a32_0x4cb905(0x7a),'risk':'read','flags':[{...ID_FLAG,'description':a32_0x4cb905(0xa6)}],async 'execute'(_0x1134fb){const _0x55ccdf=a32_0x4cb905,_0x4dc1b3=await getPersonalKnowledgeBaseItem(_0x1134fb['num']('id'),_0x1134fb[_0x55ccdf(0xab)]);return{'ok':!![],'data':detailPersonalItem(_0x4dc1b3)};}},kbCreate={'service':'kb','command':a32_0x4cb905(0x81),'description':a32_0x4cb905(0x97),'risk':a32_0x4cb905(0xa4),'confirmationDescription':a32_0x4cb905(0x91),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x1509c1){const _0x235acd=a32_0x4cb905,_0x51bd13=_0x1509c1[_0x235acd(0x90)](_0x235acd(0x86)),_0x18ea4f=readKnowledgeFile(_0x1509c1['str'](_0x235acd(0xac))),_0x303543=await createPersonalKnowledgeBaseItem(_0x1509c1[_0x235acd(0xab)],{'title':_0x51bd13,'content':_0x18ea4f});return{'ok':!![],'data':summarizePersonalItem(_0x303543),'message':_0x235acd(0xa8)+_0x303543['id']+'\x20('+_0x303543[_0x235acd(0x86)]+')'};},async 'dryRun'(_0x33043e){const _0x5e8642=a32_0x4cb905,_0x54a320=_0x33043e['str']('title'),_0x2bec2e=readKnowledgeFile(_0x33043e['str']('file'));return dryRun(_0x5e8642(0xaa),_0x5e8642(0x8c))[_0x5e8642(0x95)]({'appCode':_0x33043e['appCode'],'title':_0x54a320,'content':_0x2bec2e})[_0x5e8642(0xad)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x54a320+'\x22')['build']();}},kbUpdate={'service':'kb','command':'update','description':a32_0x4cb905(0x8a),'risk':a32_0x4cb905(0xa4),'confirmationDescription':a32_0x4cb905(0x9c),'flags':[{...ID_FLAG,'description':a32_0x4cb905(0xa6)},{...TITLE_FLAG,'required':![],'description':a32_0x4cb905(0xa1)},FILE_FLAG],async 'execute'(_0x3ccf78){const _0x113631=a32_0x4cb905,_0x6ee4ed=_0x3ccf78[_0x113631(0xb7)]('id'),_0x16f548=readKnowledgeFile(_0x3ccf78[_0x113631(0x90)](_0x113631(0xac))),_0x28cebe=_0x3ccf78[_0x113631(0x90)]('title')||(await getPersonalKnowledgeBaseItem(_0x6ee4ed,_0x3ccf78['appCode']))['title'],_0x18d3e2=await updatePersonalKnowledgeBaseItem(_0x6ee4ed,_0x3ccf78[_0x113631(0xab)],{'title':_0x28cebe,'content':_0x16f548});return{'ok':!![],'data':summarizePersonalItem(_0x18d3e2),'message':_0x113631(0xbb)+_0x18d3e2['id']+'\x20('+_0x18d3e2[_0x113631(0x86)]+')'};},async 'dryRun'(_0x1f3d3c){const _0x236043=a32_0x4cb905,_0x53f7ce=_0x1f3d3c[_0x236043(0xb7)]('id'),_0x21412b=readKnowledgeFile(_0x1f3d3c[_0x236043(0x90)](_0x236043(0xac))),_0x3e2fe4=_0x1f3d3c[_0x236043(0x90)]('title')||(await getPersonalKnowledgeBaseItem(_0x53f7ce,_0x1f3d3c['appCode']))[_0x236043(0x86)];return dryRun('POST',_0x236043(0x9e)+_0x53f7ce+_0x236043(0x9d))['body']({'appCode':_0x1f3d3c[_0x236043(0xab)],'title':_0x3e2fe4,'content':_0x21412b})[_0x236043(0xad)](_0x236043(0xbc)+_0x53f7ce)[_0x236043(0xb3)]();}},kbSearch={'service':'kb','command':a32_0x4cb905(0x9a),'description':a32_0x4cb905(0x87),'risk':a32_0x4cb905(0x9f),'flags':[QUERY_FLAG,TOPK_FLAG],async 'validate'(_0x1be68f){const _0x2c6032=a32_0x4cb905;if(!_0x1be68f[_0x2c6032(0x90)](_0x2c6032(0x88))[_0x2c6032(0xae)]())throw CliErrors[_0x2c6032(0x99)](_0x2c6032(0xa0));readTopK(_0x1be68f);},async 'execute'(_0x333025){const _0x138c69=a32_0x4cb905,_0x3938b2=_0x333025[_0x138c69(0x90)]('query')[_0x138c69(0xae)](),_0x14add9=readTopK(_0x333025),_0x5cc7af=await searchKnowledgeBase(_0x333025[_0x138c69(0xab)],{'query':_0x3938b2,'topK':_0x14add9});return{'ok':!![],'data':{'total':_0x5cc7af[_0x138c69(0x98)],'hits':_0x5cc7af[_0x138c69(0x8f)](summarizeSearchHit)}};}};export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbSearch];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a33_0x347967=a33_0x3276;(function(_0x1db25f,_0x320700){const _0x4a665e=a33_0x3276,_0x353804=_0x1db25f();while(!![]){try{const _0x719b47=parseInt(_0x4a665e(0x84))/0x1+-parseInt(_0x4a665e(0x86))/0x2+-parseInt(_0x4a665e(0x82))/0x3*(-parseInt(_0x4a665e(0x90))/0x4)+parseInt(_0x4a665e(0x83))/0x5*(-parseInt(_0x4a665e(0x8d))/0x6)+-parseInt(_0x4a665e(0x94))/0x7+-parseInt(_0x4a665e(0x92))/0x8*(-parseInt(_0x4a665e(0x8c))/0x9)+parseInt(_0x4a665e(0x80))/0xa*(parseInt(_0x4a665e(0x7a))/0xb);if(_0x719b47===_0x320700)break;else _0x353804['push'](_0x353804['shift']());}catch(_0x3572ed){_0x353804['push'](_0x353804['shift']());}}}(a33_0xbf51,0x445eb));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a33_0x3276(_0x11c584,_0x51320a){_0x11c584=_0x11c584-0x75;const _0xbf5190=a33_0xbf51();let _0x3276cb=_0xbf5190[_0x11c584];return _0x3276cb;}function printLogs(_0x3cfce7){const _0x3f339b=a33_0x3276;if(_0x3cfce7[_0x3f339b(0x7c)]===0x0){console[_0x3f339b(0x7b)](_0x3f339b(0x77));return;}console[_0x3f339b(0x7b)]('*\x20'+CLI_DISPLAY_NAME+_0x3f339b(0x91)),_0x3cfce7[_0x3f339b(0x8f)]((_0x51394d,_0x4018aa)=>{const _0x562ced=_0x3f339b,_0x4d3624=new Date(_0x51394d['timestamp'])[_0x562ced(0x85)](_0x562ced(0x7f)),_0x53cbe4=_0x51394d[_0x562ced(0x78)]===_0x562ced(0x8e)?'√':_0x51394d['level']===_0x562ced(0x93)?'×':_0x51394d['level']===_0x562ced(0x79)?'!':'i';console[_0x562ced(0x7b)](_0x4018aa+0x1+'.\x20'+_0x53cbe4+'\x20['+_0x51394d[_0x562ced(0x87)]+']\x20'+_0x51394d[_0x562ced(0x7d)]),console[_0x562ced(0x7b)](_0x562ced(0x8a)+_0x4d3624),_0x51394d[_0x562ced(0x76)]&&console[_0x562ced(0x7b)]('\x20\x20\x20Duration:\x20'+_0x51394d[_0x562ced(0x76)]+'ms'),_0x51394d[_0x562ced(0x88)]&&Object[_0x562ced(0x75)](_0x51394d[_0x562ced(0x88)])['length']>0x0&&console[_0x562ced(0x7b)]('\x20\x20\x20Details:\x20'+JSON[_0x562ced(0x81)](_0x51394d[_0x562ced(0x88)],null,0x2)),console[_0x562ced(0x7b)]('');});}export const logsDefinitions=[{'service':a33_0x347967(0x8b),'command':a33_0x347967(0x95),'description':'View\x20command\x20history\x20logs','risk':a33_0x347967(0x89),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x245bf6){const _0x31c493=a33_0x347967;return printLogs(logger[_0x31c493(0x7e)]()),{'ok':!![]};}}];function a33_0xbf51(){const _0x2efaa0=['readLogs','en-US','3419170RHEfTc','stringify','702813KCYoBn','5auCbkY','255032clEYjI','toLocaleString','1049088PxYHli','command','details','read','\x20\x20\x20Time:\x20','logs','420219MQIzDO','2415186WgEGum','success','forEach','4ZKGkil','\x20logs:\x0a','72cDYhwa','error','310247fhbRpH','show','keys','duration','*\x20No\x20logs\x20found','level','warn','11chUimO','log','length','message'];a33_0xbf51=function(){return _0x2efaa0;};return a33_0xbf51();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a34_0x426d(_0x14e64b,_0xbe4e11){_0x14e64b=_0x14e64b-0x16a;const _0x16b9c1=a34_0x16b9();let _0x426d59=_0x16b9c1[_0x14e64b];return _0x426d59;}function a34_0x16b9(){const _0x96fb6b=['2263910GyQbGg','length','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','5084100UXDODV','64376VlBJhV','963WtdNOR','63288fIBskY','6908388WLMMkG','7qCXgzm','41351QKFUks','read','type','6RVodAC','config-list','appCode','EMAIL','notification','string','1638246TxWqzw'];a34_0x16b9=function(){return _0x96fb6b;};return a34_0x16b9();}const a34_0x474b3f=a34_0x426d;(function(_0x37c7ce,_0x358be8){const _0x14f47e=a34_0x426d,_0x5a217f=_0x37c7ce();while(!![]){try{const _0x3bd8f1=-parseInt(_0x14f47e(0x172))/0x1*(parseInt(_0x14f47e(0x175))/0x2)+-parseInt(_0x14f47e(0x17b))/0x3+-parseInt(_0x14f47e(0x16d))/0x4+parseInt(_0x14f47e(0x17c))/0x5+-parseInt(_0x14f47e(0x170))/0x6*(-parseInt(_0x14f47e(0x171))/0x7)+parseInt(_0x14f47e(0x16f))/0x8*(-parseInt(_0x14f47e(0x16e))/0x9)+parseInt(_0x14f47e(0x16c))/0xa;if(_0x3bd8f1===_0x358be8)break;else _0x5a217f['push'](_0x5a217f['shift']());}catch(_0x2051bf){_0x5a217f['push'](_0x5a217f['shift']());}}}(a34_0x16b9,0x8d92c));import{listNotificationChannelConfigs}from'../../core/api-client.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a34_0x474b3f(0x179),'command':a34_0x474b3f(0x176),'description':a34_0x474b3f(0x16b),'risk':a34_0x474b3f(0x173),'flags':[{'name':a34_0x474b3f(0x174),'type':a34_0x474b3f(0x17a),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':a34_0x474b3f(0x178)}],async 'validate'(_0x4b1a09){readNotificationChannelType(_0x4b1a09);},async 'execute'(_0x5197f6){const _0x4c4d07=a34_0x474b3f,_0x2f6c01=readNotificationChannelType(_0x5197f6),_0x37129e=await listNotificationChannelConfigs(_0x5197f6[_0x4c4d07(0x177)],_0x2f6c01),_0x538e19=_0x37129e['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x5197f6[_0x4c4d07(0x177)],'channelType':_0x2f6c01,'count':_0x538e19[_0x4c4d07(0x16a)],'configs':_0x538e19},'message':'Found\x20'+_0x538e19['length']+'\x20'+_0x2f6c01+'\x20notification\x20config(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3603c0,_0x3c60b9){const _0x2419b1=a35_0x1427,_0x1cbf23=_0x3603c0();while(!![]){try{const _0x207620=-parseInt(_0x2419b1(0x16a))/0x1+-parseInt(_0x2419b1(0x170))/0x2+-parseInt(_0x2419b1(0x169))/0x3+-parseInt(_0x2419b1(0x16b))/0x4*(parseInt(_0x2419b1(0x16d))/0x5)+parseInt(_0x2419b1(0x16c))/0x6*(-parseInt(_0x2419b1(0x16e))/0x7)+parseInt(_0x2419b1(0x168))/0x8+parseInt(_0x2419b1(0x16f))/0x9;if(_0x207620===_0x3c60b9)break;else _0x1cbf23['push'](_0x1cbf23['shift']());}catch(_0x44a3c9){_0x1cbf23['push'](_0x1cbf23['shift']());}}}(a35_0x4b3d,0x1b9b1));function a35_0x1427(_0x477099,_0x4b4cd4){_0x477099=_0x477099-0x168;const _0x4b3d8a=a35_0x4b3d();let _0x142701=_0x4b3d8a[_0x477099];return _0x142701;}function a35_0x4b3d(){const _0x2d66d3=['28Xddoet','5564169VpoHPm','425802TmKmdL','1416128wsbuKA','374490NAKRTd','147124FinHnz','4rIKXhR','206274KRyGDw','299065mvULvu'];a35_0x4b3d=function(){return _0x2d66d3;};return a35_0x4b3d();}import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x299fb5=a36_0x4716;function a36_0x4716(_0x2ae7ea,_0x1a79d6){_0x2ae7ea=_0x2ae7ea-0xda;const _0x1e5159=a36_0x1e51();let _0x471639=_0x1e5159[_0x2ae7ea];return _0x471639;}(function(_0x33f655,_0x323831){const _0x3bbe88=a36_0x4716,_0x519463=_0x33f655();while(!![]){try{const _0x34f173=parseInt(_0x3bbe88(0xf0))/0x1*(parseInt(_0x3bbe88(0xf1))/0x2)+parseInt(_0x3bbe88(0xf5))/0x3*(-parseInt(_0x3bbe88(0xf4))/0x4)+parseInt(_0x3bbe88(0xed))/0x5*(parseInt(_0x3bbe88(0xeb))/0x6)+-parseInt(_0x3bbe88(0xfc))/0x7*(parseInt(_0x3bbe88(0xfb))/0x8)+-parseInt(_0x3bbe88(0xfa))/0x9+parseInt(_0x3bbe88(0xe8))/0xa*(-parseInt(_0x3bbe88(0xee))/0xb)+-parseInt(_0x3bbe88(0xf9))/0xc*(-parseInt(_0x3bbe88(0xea))/0xd);if(_0x34f173===_0x323831)break;else _0x519463['push'](_0x519463['shift']());}catch(_0x144588){_0x519463['push'](_0x519463['shift']());}}}(a36_0x1e51,0x6902d));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL',a36_0x299fb5(0xf2),'DINGTALK',a36_0x299fb5(0xda),'WEBHOOK'];export function readNotificationChannelType(_0x1e6c37){const _0x4645af=a36_0x299fb5,_0x5a0a2c=_0x1e6c37[_0x4645af(0xfd)]('type')['trim']()||_0x4645af(0xde);if(!NOTIFICATION_CHANNEL_TYPES[_0x4645af(0xe6)](_0x5a0a2c))throw CliErrors['validation'](_0x4645af(0xdc)+_0x5a0a2c,_0x4645af(0xf7)+NOTIFICATION_CHANNEL_TYPES['join'](',\x20')+'.');return _0x5a0a2c;}export function projectNotificationListConfig(_0x29b947,_0x27d788){const _0x4bcd32=a36_0x299fb5,_0x46838b=requireResponseObject(_0x29b947,_0x27d788);return{'id':normalizeNullableId(_0x46838b['id'],_0x27d788),'configCode':requireResponseString(_0x46838b[_0x4bcd32(0xe3)],_0x4bcd32(0xe3),_0x27d788),'configName':requireResponseString(_0x46838b['configName'],_0x4bcd32(0xef),_0x27d788),'channelType':requireResponseString(_0x46838b[_0x4bcd32(0xdb)],'channelType',_0x27d788),'description':normalizeNullableString(_0x46838b[_0x4bcd32(0xe0)]),'createTime':normalizeNullableString(_0x46838b[_0x4bcd32(0xe2)]),'updateTime':normalizeNullableString(_0x46838b[_0x4bcd32(0xe1)])};}function requireResponseObject(_0xe25de0,_0x3bebcc){const _0x42a0ae=a36_0x299fb5;if(typeof _0xe25de0!==_0x42a0ae(0xdd)||_0xe25de0===null||Array['isArray'](_0xe25de0))throw CliErrors[_0x42a0ae(0xfe)](_0x42a0ae(0xf6),_0x42a0ae(0xe4)+(_0x3bebcc+0x1)+'\x20must\x20be\x20an\x20object.');return _0xe25de0;}function a36_0x1e51(){const _0x1882db=['4741DGAuVF','configName','1kudBxA','540232vDnXLs','FEISHU','\x20is\x20missing\x20required\x20field\x20\x22','52576fQCKvC','87smwRYQ','Invalid\x20notification\x20config\x20response.','Allowed\x20values:\x20','trim','852JCFNnj','5529087XNGCnG','6904UJKkhx','3521oFicwb','str','apiError','WECOM','channelType','Invalid\x20--type:\x20','object','EMAIL','\x20has\x20invalid\x20field\x20\x22id\x22.','description','updateTime','createTime','configCode','Item\x20','number','includes','string','9410JFQIvx','isSafeInteger','331019wtXEvZ','6vFVUOo','test','936575APvovc'];a36_0x1e51=function(){return _0x1882db;};return a36_0x1e51();}function requireResponseString(_0x3693ca,_0x4a3357,_0x3e8ab7){const _0x113f94=a36_0x299fb5;if(typeof _0x3693ca!==_0x113f94(0xe7)||!_0x3693ca[_0x113f94(0xf8)]())throw CliErrors['apiError'](_0x113f94(0xf6),_0x113f94(0xe4)+(_0x3e8ab7+0x1)+_0x113f94(0xf3)+_0x4a3357+'\x22.');return _0x3693ca[_0x113f94(0xf8)]();}function normalizeNullableString(_0x4b01bd){const _0x2fc3f3=a36_0x299fb5;return typeof _0x4b01bd===_0x2fc3f3(0xe7)&&_0x4b01bd[_0x2fc3f3(0xf8)]()?_0x4b01bd[_0x2fc3f3(0xf8)]():null;}function normalizeNullableId(_0x340824,_0x39629b){const _0x5a996f=a36_0x299fb5;if(_0x340824===undefined||_0x340824===null)return null;if(typeof _0x340824===_0x5a996f(0xe5)&&Number[_0x5a996f(0xe9)](_0x340824))return _0x340824;if(typeof _0x340824===_0x5a996f(0xe7)&&/^-?\d+$/[_0x5a996f(0xec)](_0x340824[_0x5a996f(0xf8)]()))return _0x340824[_0x5a996f(0xf8)]();throw CliErrors[_0x5a996f(0xfe)]('Invalid\x20notification\x20config\x20response.',_0x5a996f(0xe4)+(_0x39629b+0x1)+_0x5a996f(0xdf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a37_0x45b2(_0x4fb997,_0x3d6753){_0x4fb997=_0x4fb997-0x17f;const _0x503f54=a37_0x503f();let _0x45b25c=_0x503f54[_0x4fb997];return _0x45b25c;}const a37_0x34ca29=a37_0x45b2;function a37_0x503f(){const _0x1adddd=['1266uImjVo','description','imageUrl','toLowerCase','\x20OCR','4076664WbAerj','/client/ocr','提取票证类业务材料中的文字与结构化字段;不用于通用图片理解','Preview:\x20recognize\x20','recognize','image-file','File\x20URL\x20response\x20missing\x20fileUrl.','Unsupported\x20OCR\x20scene:\x20','<filePath\x20returned\x20by\x20/client/uploadFile>','imageFile','length','idCard','appCode','Local\x20image\x20or\x20PDF\x20file;\x20current\x20backend\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR','filePath','Table','idcard','scene','10176246pabqMz','read','File\x20upload\x20response\x20missing\x20filePath.','16976kWrmUS','str','Invoice','POST','Publicly\x20accessible\x20image\x20or\x20file\x20URL','fileUrl','string','body','<fileUrl\x20returned\x20by\x20/client/queryFileUrl>','6XgslSB','join','IdCard','build','.\x20Supported\x20scenes:\x20','form','general','8379180YPjDQx','ocr','General','apiError','path','/client/uploadFile','fileName','count','10491089IiVldi','image-url','1006cFrBjQ','trim','invoice','validation','2936010XzMAPc','968IoAhEM'];a37_0x503f=function(){return _0x1adddd;};return a37_0x503f();}(function(_0x5c501f,_0x532aed){const _0x3bbb31=a37_0x45b2,_0x1be3a4=_0x5c501f();while(!![]){try{const _0x4cd7f4=-parseInt(_0x3bbb31(0x17f))/0x1*(-parseInt(_0x3bbb31(0x1b4))/0x2)+-parseInt(_0x3bbb31(0x180))/0x3*(-parseInt(_0x3bbb31(0x19a))/0x4)+parseInt(_0x3bbb31(0x1b8))/0x5*(-parseInt(_0x3bbb31(0x1a3))/0x6)+-parseInt(_0x3bbb31(0x1b2))/0x7+parseInt(_0x3bbb31(0x185))/0x8+parseInt(_0x3bbb31(0x197))/0x9+-parseInt(_0x3bbb31(0x1aa))/0xa;if(_0x4cd7f4===_0x532aed)break;else _0x1be3a4['push'](_0x1be3a4['shift']());}catch(_0x5e5275){_0x1be3a4['push'](_0x1be3a4['shift']());}}}(a37_0x503f,0xf2bfe));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,recognizeRuntimeOcr,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const SUPPORTED_SCENES=[a37_0x34ca29(0x1b6),a37_0x34ca29(0x1a9),'form','idCard'],SCENE_TO_LEGACY_TYPE={'invoice':a37_0x34ca29(0x19c),'general':a37_0x34ca29(0x1ac),'form':a37_0x34ca29(0x194),'idCard':a37_0x34ca29(0x1a5)},SCENE_FLAG={'name':'scene','type':a37_0x34ca29(0x1a0),'required':!![],'enum':[...SUPPORTED_SCENES],'description':'OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard'},IMAGE_FILE_FLAG={'name':a37_0x34ca29(0x18a),'type':a37_0x34ca29(0x1a0),'description':a37_0x34ca29(0x192)},IMAGE_URL_FLAG={'name':'image-url','type':a37_0x34ca29(0x1a0),'description':a37_0x34ca29(0x19e)};function normalizeScene(_0x18884b){const _0x3f3be2=a37_0x34ca29,_0x38655c=_0x18884b[_0x3f3be2(0x1b5)]()[_0x3f3be2(0x183)]();if(_0x38655c===_0x3f3be2(0x195))return _0x3f3be2(0x190);if(_0x38655c==='invoice'||_0x38655c===_0x3f3be2(0x1a9)||_0x38655c===_0x3f3be2(0x1a8))return _0x38655c;throw CliErrors[_0x3f3be2(0x1b7)](_0x3f3be2(0x18c)+_0x18884b+_0x3f3be2(0x1a7)+SUPPORTED_SCENES[_0x3f3be2(0x1a4)](',\x20'));}function selectedInputs(_0x34727a){const _0x5c604d=a37_0x34ca29,_0x5876ae=_0x34727a['str'](_0x5c604d(0x18a))[_0x5c604d(0x1b5)](),_0x14ec88=_0x34727a[_0x5c604d(0x19b)](_0x5c604d(0x1b3))[_0x5c604d(0x1b5)]();return{'imageFile':_0x5876ae,'imageUrl':_0x14ec88,'count':[_0x5876ae,_0x14ec88]['filter'](Boolean)[_0x5c604d(0x18f)]};}function validateInputSelection(_0x62b026){const _0x54e9d6=a37_0x34ca29,_0x5635c6=selectedInputs(_0x62b026);if(_0x5635c6[_0x54e9d6(0x1b1)]!==0x1)throw CliErrors['validation']('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x5635c6;}function withScene(_0x34f74e,_0x627ecf,_0x4f143b){const _0x4992ba=a37_0x34ca29;return{..._0x34f74e,'scene':_0x627ecf,..._0x4f143b?{'sourceFile':{'fileName':_0x4f143b[_0x4992ba(0x1b0)],'filePath':_0x4f143b[_0x4992ba(0x193)]}}:{}};}const ocrRecognize={'service':a37_0x34ca29(0x1ab),'command':a37_0x34ca29(0x189),'description':a37_0x34ca29(0x187),'risk':a37_0x34ca29(0x198),'flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x50f106){const _0x17d721=a37_0x34ca29,_0x41e4e7=normalizeScene(_0x50f106[_0x17d721(0x19b)](_0x17d721(0x196))),_0x3d5d8e=SCENE_TO_LEGACY_TYPE[_0x41e4e7],_0x3f0774=validateInputSelection(_0x50f106);if(_0x3f0774[_0x17d721(0x182)])return dryRun(_0x17d721(0x19d),_0x17d721(0x186))[_0x17d721(0x1a1)]({'appCode':_0x50f106[_0x17d721(0x191)],'url':_0x3f0774['imageUrl'],'type':_0x3d5d8e})[_0x17d721(0x181)](_0x17d721(0x188)+_0x41e4e7+'\x20OCR\x20from\x20URL')[_0x17d721(0x1a6)]();const _0x251d72=requireRuntimeUploadFile(_0x3f0774[_0x17d721(0x18e)],_0x17d721(0x18a));return dryRun('POST',_0x17d721(0x1af))[_0x17d721(0x1a1)]({'steps':[{'method':_0x17d721(0x19d),'url':'/client/uploadFile','body':{'appCode':_0x50f106[_0x17d721(0x191)],'multipart':{'file':_0x251d72}}},{'method':_0x17d721(0x19d),'url':'/client/queryFileUrl','body':{'filePath':_0x17d721(0x18d),'downloadFlag':![]}},{'method':_0x17d721(0x19d),'url':_0x17d721(0x186),'body':{'appCode':_0x50f106['appCode'],'url':_0x17d721(0x1a2),'type':_0x3d5d8e}}]})[_0x17d721(0x181)]('Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20'+_0x41e4e7+_0x17d721(0x184))[_0x17d721(0x1a6)]();},async 'execute'(_0x100944){const _0x199c03=a37_0x34ca29,_0x148e4a=normalizeScene(_0x100944[_0x199c03(0x19b)]('scene')),_0x1c9b9d=SCENE_TO_LEGACY_TYPE[_0x148e4a],_0x342383=validateInputSelection(_0x100944);if(_0x342383[_0x199c03(0x182)]){const _0x4bd916=await recognizeRuntimeOcr(_0x100944['appCode'],{'url':_0x342383[_0x199c03(0x182)],'type':_0x1c9b9d});return{'ok':!![],'data':withScene(_0x4bd916,_0x148e4a)};}const _0x2283df=requireRuntimeUploadFile(_0x342383['imageFile'],_0x199c03(0x18a)),_0x263645=await uploadRuntimeFile(_0x100944[_0x199c03(0x191)],_0x2283df[_0x199c03(0x1ae)]);if(!_0x263645[_0x199c03(0x193)])throw CliErrors[_0x199c03(0x1ad)](_0x199c03(0x199));const _0x173674=await queryRuntimeFileUrl(_0x263645['filePath'],{'download':![]});if(!_0x173674[_0x199c03(0x19f)])throw CliErrors[_0x199c03(0x1ad)](_0x199c03(0x18b));const _0x53cc92=await recognizeRuntimeOcr(_0x100944[_0x199c03(0x191)],{'url':_0x173674[_0x199c03(0x19f)],'type':_0x1c9b9d});return{'ok':!![],'data':withScene(_0x53cc92,_0x148e4a,_0x263645)};}};export const ocrDefinitions=[ocrRecognize];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a38_0x46ec(_0x2deea6,_0x1c2719){_0x2deea6=_0x2deea6-0xc0;const _0x14a664=a38_0x14a6();let _0x46ec32=_0x14a664[_0x2deea6];return _0x46ec32;}const a38_0x1ee98c=a38_0x46ec;(function(_0x309ea7,_0x16b5e){const _0x627f7=a38_0x46ec,_0x1f0422=_0x309ea7();while(!![]){try{const _0x3773d5=parseInt(_0x627f7(0xc9))/0x1*(-parseInt(_0x627f7(0xcf))/0x2)+parseInt(_0x627f7(0xc5))/0x3+-parseInt(_0x627f7(0xcb))/0x4*(-parseInt(_0x627f7(0xd2))/0x5)+-parseInt(_0x627f7(0xce))/0x6+parseInt(_0x627f7(0xc7))/0x7+parseInt(_0x627f7(0xc3))/0x8*(-parseInt(_0x627f7(0xd5))/0x9)+-parseInt(_0x627f7(0xcc))/0xa*(-parseInt(_0x627f7(0xca))/0xb);if(_0x3773d5===_0x16b5e)break;else _0x1f0422['push'](_0x1f0422['shift']());}catch(_0x1009cd){_0x1f0422['push'](_0x1f0422['shift']());}}}(a38_0x14a6,0x68149));import{listRuntimeDatasetPermits,listRuntimeDatasetRolePermits}from'../../core/api-client.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a38_0x14a6(){const _0x34e081=['read','roleName','2152eJsxLC','str','2309691RSGogx','string','336077zYAjeK','runtime','124349jHaagX','3377IhluPQ','8MknrVl','13670ThgJTP','Show\x20runtime\x20dataset\x20permissions,\x20optionally\x20evaluated\x20for\x20one\x20role','3999546nYvkkd','4aosxBw','appCode','Runtime\x20role\x20ID\x20or\x20exact\x20role\x20name','852535rzPmqU','trim','permit','7929kMrDdq','dataset-get','role'];a38_0x14a6=function(){return _0x34e081;};return a38_0x14a6();}export const permitDatasetGet={'service':a38_0x1ee98c(0xd4),'command':a38_0x1ee98c(0xd6),'description':a38_0x1ee98c(0xcd),'risk':a38_0x1ee98c(0xc1),'flags':[{'name':a38_0x1ee98c(0xc0),'type':a38_0x1ee98c(0xc6),'description':a38_0x1ee98c(0xd1)}],async 'execute'(_0x5e1923){const _0x4f2f88=a38_0x1ee98c,_0x5aa0ec=_0x5e1923[_0x4f2f88(0xc4)]('role')[_0x4f2f88(0xd3)]();if(!_0x5aa0ec)return{'ok':!![],'data':{'scope':_0x4f2f88(0xc8),'datasets':await listRuntimeDatasetRolePermits(_0x5e1923[_0x4f2f88(0xd0)])}};const _0x52dd75=await resolveRuntimeRoleRef(_0x5e1923[_0x4f2f88(0xd0)],_0x5aa0ec);return{'ok':!![],'data':{'scope':_0x4f2f88(0xc8),'role':{'id':_0x52dd75['id'],'roleName':_0x52dd75[_0x4f2f88(0xc2)],'roleType':_0x52dd75['roleType']},'datasets':await listRuntimeDatasetPermits(_0x5e1923[_0x4f2f88(0xd0)],_0x52dd75['id'])}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x5b9354=a39_0x482e;(function(_0x522686,_0x2031c0){const _0x3c9b90=a39_0x482e,_0x2209d4=_0x522686();while(!![]){try{const _0x2e3c18=-parseInt(_0x3c9b90(0xfc))/0x1+parseInt(_0x3c9b90(0x100))/0x2+parseInt(_0x3c9b90(0xf6))/0x3+parseInt(_0x3c9b90(0xe6))/0x4*(-parseInt(_0x3c9b90(0xf0))/0x5)+parseInt(_0x3c9b90(0xea))/0x6*(-parseInt(_0x3c9b90(0xd6))/0x7)+parseInt(_0x3c9b90(0xe7))/0x8+-parseInt(_0x3c9b90(0xf3))/0x9*(-parseInt(_0x3c9b90(0xc8))/0xa);if(_0x2e3c18===_0x2031c0)break;else _0x2209d4['push'](_0x2209d4['shift']());}catch(_0x14467b){_0x2209d4['push'](_0x2209d4['shift']());}}}(a39_0x724b,0xd0c5a));import{listRuntimeDatasetRolePermits,listRuntimePermitRoles,saveRuntimeDatasetRolePermits}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{resolveRuntimeRoleRef}from'../../commands/role/shared.js';function a39_0x724b(){const _0x25bc6e=['bool','str','validation','DATA_DETAIL','5127339ZXrrnz','DATA_ROW','DATA_UPDATE','warnings','datasets','appCode','actions','\x20was\x20not\x20found.','revoke','length','string','Dataset\x20','find','\x20does\x20not\x20expose\x20','--datasets','\x20selected\x20runtime\x20dataset\x20actions','2916616VjTJzG','4447968eSGekA','dataset-','datasetCodes','6czBjYM','filter','build','/client/permit/resource/batch-save-dataset','DATA_DELETE','before','5IHDCKp','--actions','datasetCode','17211357JXkXSJ','\x20for\x20role\x20','resourceType','2236053vLHEKD','toUpperCase','dataset-set','push','join','grant','1307727AaHVlC','Comma-separated\x20actions:\x20','rolePermit','includes','821536UUYuGc','10QByDTn','授予或收回目标角色对指定数据集动作的权限;变更会影响该角色用户的数据操作能力。','operation','DATA_CREATE','permitList','Comma-separated\x20runtime\x20dataset\x20codes','\x20already\x20reflects\x20','permitId','body','resourceName'];a39_0x724b=function(){return _0x25bc6e;};return a39_0x724b();}function a39_0x482e(_0x45158a,_0x2c44c3){_0x45158a=_0x45158a-0xc8;const _0x724bc9=a39_0x724b();let _0x482e8e=_0x724bc9[_0x45158a];return _0x482e8e;}import{applyRuntimeRolePermission,assertGrantOrRevoke,assertRuntimePermissionManager,assertRuntimePermitRoleConfigurable,GRANT_FLAG,REVOKE_FLAG,ROLE_REF_FLAG,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';const DATA_ACTIONS=[a39_0x5b9354(0xcb),a39_0x5b9354(0xd8),a39_0x5b9354(0xee),a39_0x5b9354(0xd5),'DATA_EXPORT',a39_0x5b9354(0xd7)],DATASETS_FLAG={'name':a39_0x5b9354(0xda),'type':a39_0x5b9354(0xe0),'required':!![],'description':a39_0x5b9354(0xcd)},ACTIONS_FLAG={'name':'actions','type':a39_0x5b9354(0xe0),'required':!![],'description':a39_0x5b9354(0xfd)+DATA_ACTIONS[a39_0x5b9354(0xfa)](',\x20')};async function prepare(_0x5c60c4){const _0x10ba13=a39_0x5b9354;await assertRuntimePermissionManager(_0x5c60c4[_0x10ba13(0xdb)]);const _0x9ca7f7=assertGrantOrRevoke(_0x5c60c4[_0x10ba13(0xd2)](_0x10ba13(0xfb)),_0x5c60c4[_0x10ba13(0xd2)](_0x10ba13(0xde))),_0x36ff58=await resolveRuntimeRoleRef(_0x5c60c4[_0x10ba13(0xdb)],_0x5c60c4['str']('role'));assertRuntimePermitRoleConfigurable(_0x36ff58);const _0x5e82ea=splitRefs(_0x5c60c4[_0x10ba13(0xd3)](_0x10ba13(0xda)),_0x10ba13(0xe4)),_0x37da06=[...new Set(splitRefs(_0x5c60c4['str'](_0x10ba13(0xdc)),_0x10ba13(0xf1))['map'](_0x4b6cbd=>_0x4b6cbd[_0x10ba13(0xf7)]()))],_0x1a5402=_0x37da06[_0x10ba13(0xeb)](_0x169b44=>!DATA_ACTIONS[_0x10ba13(0xff)](_0x169b44));if(_0x1a5402[_0x10ba13(0xdf)]>0x0)throw CliErrors[_0x10ba13(0xd4)]('Invalid\x20dataset\x20actions:\x20'+_0x1a5402[_0x10ba13(0xfa)](',\x20')+'.');const _0x2da66a=await listRuntimeDatasetRolePermits(_0x5c60c4[_0x10ba13(0xdb)]),_0x2a6219=await listRuntimePermitRoles(_0x5c60c4[_0x10ba13(0xdb)]),_0x2451c4=[],_0x6569c2=[],_0x5339f2=[],_0x5f1326=[];for(const _0x6c60a9 of _0x5e82ea){const _0x37eee8=_0x2da66a['find'](_0x3b4043=>_0x3b4043[_0x10ba13(0xf2)]===_0x6c60a9);if(!_0x37eee8)throw CliErrors['validation']('Runtime\x20dataset\x20'+_0x6c60a9+_0x10ba13(0xdd));for(const _0x4ea361 of _0x37da06){const _0x49128e=_0x37eee8['dataPermitList'][_0x10ba13(0xe2)](_0xea3533=>_0xea3533[_0x10ba13(0xf5)]===_0x4ea361);if(!_0x49128e)throw CliErrors[_0x10ba13(0xd4)](_0x10ba13(0xe1)+_0x6c60a9+_0x10ba13(0xe3)+_0x4ea361+'.');const _0x48d0c5=applyRuntimeRolePermission(_0x49128e[_0x10ba13(0xfe)],_0x36ff58,_0x2a6219,_0x9ca7f7);_0x6569c2[_0x10ba13(0xf9)]({'datasetCode':_0x6c60a9,'resourceType':_0x4ea361,'rolePermit':_0x49128e[_0x10ba13(0xfe)]}),_0x5339f2['push']({'datasetCode':_0x6c60a9,'resourceType':_0x4ea361,'rolePermit':_0x48d0c5['roles']}),_0x48d0c5['changed']?_0x2451c4[_0x10ba13(0xf9)]({..._0x49128e[_0x10ba13(0xcf)]!=null?{'id':_0x49128e[_0x10ba13(0xcf)]}:{},'appCode':_0x5c60c4['appCode'],'resourceCode':_0x6c60a9,'resourceType':_0x4ea361,'resourceName':_0x49128e[_0x10ba13(0xd1)],'rolePermit':_0x48d0c5['roles']}):_0x5f1326[_0x10ba13(0xf9)](_0x6c60a9+'/'+_0x4ea361+_0x10ba13(0xce)+_0x9ca7f7+_0x10ba13(0xf4)+_0x36ff58['id']+'.');}}return{'operation':_0x9ca7f7,'role':_0x36ff58,'datasetCodes':_0x5e82ea,'actions':_0x37da06,'permitList':_0x2451c4,'before':_0x6569c2,'after':_0x5339f2,'warnings':_0x5f1326};}export const permitDatasetSet={'service':'permit','command':a39_0x5b9354(0xf8),'description':'Grant\x20or\x20revoke\x20selected\x20runtime\x20dataset\x20actions\x20for\x20one\x20role','risk':'high-risk-write','confirmationDescription':a39_0x5b9354(0xc9),'flags':[ROLE_REF_FLAG,GRANT_FLAG,REVOKE_FLAG,DATASETS_FLAG,ACTIONS_FLAG],async 'validate'(_0x53119e){const _0x3d2f52=a39_0x5b9354;assertGrantOrRevoke(_0x53119e[_0x3d2f52(0xd2)](_0x3d2f52(0xfb)),_0x53119e[_0x3d2f52(0xd2)](_0x3d2f52(0xde)));},async 'dryRun'(_0x400631){const _0xd84f07=a39_0x5b9354,_0x206974=await prepare(_0x400631);return dryRun('POST',_0xd84f07(0xed))[_0xd84f07(0xd0)]({'appCode':_0x400631[_0xd84f07(0xdb)],'permitList':_0x206974[_0xd84f07(0xcc)]})['description']('Preview:\x20'+_0x206974['operation']+_0xd84f07(0xe5))[_0xd84f07(0xec)]();},async 'execute'(_0x51ac68){const _0x185fcb=a39_0x5b9354,_0xe232b6=await prepare(_0x51ac68);return _0xe232b6[_0x185fcb(0xcc)][_0x185fcb(0xdf)]>0x0&&await saveRuntimeDatasetRolePermits(_0x51ac68['appCode'],_0xe232b6[_0x185fcb(0xcc)]),{'ok':!![],'data':runtimePermitWriteResult(_0x185fcb(0xe8)+_0xe232b6[_0x185fcb(0xca)],{'roleId':_0xe232b6['role']['id'],'datasetCodes':_0xe232b6[_0x185fcb(0xe9)],'actions':_0xe232b6[_0x185fcb(0xdc)]},_0xe232b6[_0x185fcb(0xef)],_0xe232b6['after'],{'method':'POST','path':_0x185fcb(0xed)},_0xe232b6[_0x185fcb(0xd9)])};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a40_0x361b(_0x57ccb7,_0x5d65c){_0x57ccb7=_0x57ccb7-0x180;const _0x2e13cc=a40_0x2e13();let _0x361bc8=_0x2e13cc[_0x57ccb7];return _0x361bc8;}function a40_0x2e13(){const _0x54ae74=['11bUBArP','8kUUGTY','7399TiPcEU','3213ausWFN','5712eGPKAw','482fXaVkJ','2987545uJbnix','2186376bJQfzA','14295560zpSYUm','12536mWKQLB','6851448MNMhte','1509rmlVKs'];a40_0x2e13=function(){return _0x54ae74;};return a40_0x2e13();}(function(_0x403b5b,_0x5ab301){const _0x2e01b4=a40_0x361b,_0x12ec23=_0x403b5b();while(!![]){try{const _0x318407=parseInt(_0x2e01b4(0x187))/0x1*(parseInt(_0x2e01b4(0x181))/0x2)+-parseInt(_0x2e01b4(0x183))/0x3*(-parseInt(_0x2e01b4(0x189))/0x4)+-parseInt(_0x2e01b4(0x182))/0x5+-parseInt(_0x2e01b4(0x180))/0x6*(-parseInt(_0x2e01b4(0x18a))/0x7)+-parseInt(_0x2e01b4(0x185))/0x8*(parseInt(_0x2e01b4(0x18b))/0x9)+-parseInt(_0x2e01b4(0x184))/0xa+parseInt(_0x2e01b4(0x188))/0xb*(parseInt(_0x2e01b4(0x186))/0xc);if(_0x318407===_0x5ab301)break;else _0x12ec23['push'](_0x12ec23['shift']());}catch(_0x1b079d){_0x12ec23['push'](_0x12ec23['shift']());}}}(a40_0x2e13,0xc63d3));import{permitPageGet}from'../../commands/permit/page-get.js';import{permitPageSet}from'../../commands/permit/page-set.js';import{permitRoleMenus}from'../../commands/permit/role-menus.js';import{permitRoleMenusSet}from'../../commands/permit/role-menus-set.js';import{permitDatasetGet}from'../../commands/permit/dataset-get.js';import{permitDatasetSet}from'../../commands/permit/dataset-set.js';export const permitDefinitions=[permitPageGet,permitPageSet,permitRoleMenus,permitRoleMenusSet,permitDatasetGet,permitDatasetSet];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a41_0x4bed(){const _0x389bb4=['4uHVGyk','3ZiUYDU','17690QhFlGk','767370NpnPwl','9028197omjHBO','permit','runtime','num','5130800soPKPe','4444BVFeDB','7127544VFGVlb','4622838vhJBHP','7wlmUQq','6578480cjOwTq'];a41_0x4bed=function(){return _0x389bb4;};return a41_0x4bed();}function a41_0x33d8(_0x593a31,_0x4188eb){_0x593a31=_0x593a31-0xf9;const _0x4bedc0=a41_0x4bed();let _0x33d89c=_0x4bedc0[_0x593a31];return _0x33d89c;}const a41_0x133d1c=a41_0x33d8;(function(_0x99202e,_0x5be510){const _0x370d64=a41_0x33d8,_0x2016eb=_0x99202e();while(!![]){try{const _0x150a59=parseInt(_0x370d64(0x106))/0x1*(parseInt(_0x370d64(0xfa))/0x2)+-parseInt(_0x370d64(0x102))/0x3+parseInt(_0x370d64(0x105))/0x4*(-parseInt(_0x370d64(0xff))/0x5)+parseInt(_0x370d64(0x101))/0x6+-parseInt(_0x370d64(0x103))/0x7*(-parseInt(_0x370d64(0x104))/0x8)+parseInt(_0x370d64(0xfb))/0x9+parseInt(_0x370d64(0xf9))/0xa*(-parseInt(_0x370d64(0x100))/0xb);if(_0x150a59===_0x5be510)break;else _0x2016eb['push'](_0x2016eb['shift']());}catch(_0x1237fd){_0x2016eb['push'](_0x2016eb['shift']());}}}(a41_0x4bed,0xd77d0));import{getRuntimePagePermit}from'../../core/api-client.js';import{MENU_ID_FLAG,projectRuntimePagePermit}from'../../commands/permit/shared.js';export const permitPageGet={'service':a41_0x133d1c(0xfc),'command':'page-get','description':'Get\x20runtime\x20page\x20permission\x20slots\x20by\x20menu\x20ID','risk':'read','flags':[MENU_ID_FLAG],async 'execute'(_0x215be7){const _0x3bf8f0=a41_0x133d1c,_0x411667=await getRuntimePagePermit(_0x215be7[_0x3bf8f0(0xfe)]('menu-id'));return{'ok':!![],'data':{'scope':_0x3bf8f0(0xfd),'page':projectRuntimePagePermit(_0x411667)}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x41d721=a42_0x429f;(function(_0x446c4d,_0x31edc5){const _0x378b90=a42_0x429f,_0x4b719e=_0x446c4d();while(!![]){try{const _0x2b72f5=parseInt(_0x378b90(0xa5))/0x1+-parseInt(_0x378b90(0xa7))/0x2+-parseInt(_0x378b90(0xa6))/0x3*(-parseInt(_0x378b90(0xb7))/0x4)+parseInt(_0x378b90(0xb8))/0x5+-parseInt(_0x378b90(0xb4))/0x6*(-parseInt(_0x378b90(0xad))/0x7)+parseInt(_0x378b90(0xb2))/0x8*(-parseInt(_0x378b90(0xa9))/0x9)+-parseInt(_0x378b90(0xac))/0xa;if(_0x2b72f5===_0x31edc5)break;else _0x4b719e['push'](_0x4b719e['shift']());}catch(_0x7daea2){_0x4b719e['push'](_0x4b719e['shift']());}}}(a42_0x25bc,0x36ebd));import{getRuntimePagePermit,saveRuntimePagePermit}from'../../core/api-client.js';function a42_0x429f(_0x57933c,_0x9bd023){_0x57933c=_0x57933c-0xa0;const _0x25bc65=a42_0x25bc();let _0x429f3f=_0x25bc65[_0x57933c];return _0x429f3f;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';import{assertRuntimePermissionManager,MENU_ID_FLAG,PAGE_ROLE_FLAGS,PAGE_SLOT_SPECS,projectRuntimePagePermit,resolveRuntimePermitRoles,runtimePermitWriteResult,splitRefs}from'../../commands/permit/shared.js';function a42_0x25bc(){const _0x194967=['menu-id','before','Menu\x20','str','308333YoRykN','166869sxqkdB','217886LYHcRy','Preview:\x20update\x20page\x20permission\x20slots\x20','2008161uaVAUH','high-risk-write','allowSelf','1068630NfAkDl','490994kXuaNS','description','Set\x20selected\x20runtime\x20page\x20permission\x20slots','join','rolePermit','16CjJMPl','menuId','12QjtBeF','push','appCode','24zYfbxA','523330IDnBOA','permit','flag','length','page','Page\x20menu\x20','slots','page-set','\x20does\x20not\x20belong\x20to\x20app\x20','validation','/client/permit/page/save','key','body','POST'];a42_0x25bc=function(){return _0x194967;};return a42_0x25bc();}async function prepare(_0x299947){const _0x52c630=a42_0x429f;await assertRuntimePermissionManager(_0x299947[_0x52c630(0xb6)]);const _0x4f9b83=_0x299947['num'](_0x52c630(0xa1)),_0x447e8c=await getRuntimePagePermit(_0x4f9b83);if(_0x447e8c[_0x52c630(0xb6)]&&_0x447e8c[_0x52c630(0xb6)]!==_0x299947[_0x52c630(0xb6)])throw CliErrors['validation'](_0x52c630(0xa3)+_0x4f9b83+_0x52c630(0xc0)+_0x299947[_0x52c630(0xb6)]+'.');const _0x42b8ee=structuredClone(_0x447e8c),_0x248840=[];for(const _0x21fc02 of PAGE_SLOT_SPECS){if(_0x299947['flag'](_0x21fc02[_0x52c630(0xba)])===undefined)continue;const _0x23a467=_0x447e8c[_0x21fc02[_0x52c630(0xc3)]];if(!_0x23a467)throw CliErrors[_0x52c630(0xc1)](_0x52c630(0xbd)+_0x4f9b83+'\x20does\x20not\x20expose\x20'+_0x21fc02[_0x52c630(0xc3)]+'.');_0x23a467[_0x52c630(0xb1)]=await resolveRuntimePermitRoles(_0x299947[_0x52c630(0xb6)],splitRefs(_0x299947[_0x52c630(0xa4)](_0x21fc02[_0x52c630(0xba)]),'--'+_0x21fc02[_0x52c630(0xba)]),_0x21fc02[_0x52c630(0xab)]),_0x248840[_0x52c630(0xb5)](_0x21fc02['key']);}if(_0x248840[_0x52c630(0xbb)]===0x0)throw CliErrors['validation']('Pass\x20at\x20least\x20one\x20page\x20role\x20flag\x20to\x20update.');return{'menuId':_0x4f9b83,'page':_0x447e8c,'before':_0x42b8ee,'slots':_0x248840};}export const permitPageSet={'service':a42_0x41d721(0xb9),'command':a42_0x41d721(0xbf),'description':a42_0x41d721(0xaf),'risk':a42_0x41d721(0xaa),'confirmationDescription':'修改指定运行页面的角色权限槽位;未获授权的用户可能无法查看页面或执行数据操作。','flags':[MENU_ID_FLAG,...PAGE_ROLE_FLAGS],async 'dryRun'(_0x4ea900){const _0x23a27d=a42_0x41d721,_0x81336=await prepare(_0x4ea900);return dryRun(_0x23a27d(0xa0),_0x23a27d(0xc2))[_0x23a27d(0xc4)](_0x81336[_0x23a27d(0xbc)])[_0x23a27d(0xae)](_0x23a27d(0xa8)+_0x81336[_0x23a27d(0xbe)][_0x23a27d(0xb0)](',\x20'))['build']();},async 'execute'(_0x1bde5f){const _0x4c6949=a42_0x41d721,_0x5519e7=await prepare(_0x1bde5f),_0x4481d0=await saveRuntimePagePermit(_0x5519e7[_0x4c6949(0xbc)]);return{'ok':!![],'data':runtimePermitWriteResult('page-set',{'menuId':_0x5519e7[_0x4c6949(0xb3)],'slots':_0x5519e7[_0x4c6949(0xbe)]},projectRuntimePagePermit(_0x5519e7[_0x4c6949(0xa2)]),projectRuntimePagePermit(_0x4481d0),{'method':'POST','path':_0x4c6949(0xc2)})};}};
|