@lovrabet/lovrabet-cli 2.2.5-beta.1 → 2.2.5
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.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.d.ts +3 -3
- 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-schedule-workflow.md +7 -6
- package/skills/lovrabet.manifest.json +3 -3
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a83_0x17c1c8=a83_0x2ad2;(function(_0x266dc8,_0x9ce311){const _0x2299e2=a83_0x2ad2,_0x4cb1dd=_0x266dc8();while(!![]){try{const _0x1caf5e=-parseInt(_0x2299e2(0x1c9))/0x1*(-parseInt(_0x2299e2(0x1f8))/0x2)+parseInt(_0x2299e2(0x205))/0x3+parseInt(_0x2299e2(0x201))/0x4+parseInt(_0x2299e2(0x212))/0x5*(parseInt(_0x2299e2(0x1ef))/0x6)+parseInt(_0x2299e2(0x1d1))/0x7*(parseInt(_0x2299e2(0x1f0))/0x8)+-parseInt(_0x2299e2(0x1ee))/0x9+-parseInt(_0x2299e2(0x202))/0xa;if(_0x1caf5e===_0x9ce311)break;else _0x4cb1dd['push'](_0x4cb1dd['shift']());}catch(_0x4c3585){_0x4cb1dd['push'](_0x4cb1dd['shift']());}}}(a83_0x8f50,0xa31d1));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a83_0x38cd5e from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x17c1c8(0x1bb),'type':a83_0x17c1c8(0x1e9),'description':a83_0x17c1c8(0x1f3),'default':![]},{'name':a83_0x17c1c8(0x20d),'type':a83_0x17c1c8(0x1e9),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a83_0x17c1c8(0x1c0),'type':'string','description':a83_0x17c1c8(0x1c5)}];function getRequestedVersion(_0x20fa4f){const _0x3d49d4=a83_0x17c1c8,_0x651ee3=_0x20fa4f[_0x3d49d4(0x1ca)]('version')[_0x3d49d4(0x1be)]();if(_0x651ee3)return _0x651ee3;return String(_0x20fa4f[_0x3d49d4(0x1f1)]?.[0x0]??'')['trim']();}async function validateUpdateFlags(_0x337120){const _0x29e1be=a83_0x17c1c8,_0x300b05=getRequestedVersion(_0x337120),_0x2db16b=[_0x337120[_0x29e1be(0x1e6)](_0x29e1be(0x1bb))?_0x29e1be(0x1bb):'',_0x337120[_0x29e1be(0x1e6)](_0x29e1be(0x20d))?_0x29e1be(0x20d):'',_0x300b05?_0x29e1be(0x1c0):''][_0x29e1be(0x1fe)](Boolean);if(_0x2db16b[_0x29e1be(0x1f7)]>0x1)throw CliErrors['validation'](_0x29e1be(0x1ff),_0x29e1be(0x1d4));if(_0x300b05&&!a83_0x38cd5e[_0x29e1be(0x200)](_0x300b05))throw CliErrors[_0x29e1be(0x1f9)](_0x29e1be(0x20a)+_0x300b05,_0x29e1be(0x1e8));}async function fetchNpmDistTags(){const _0x5758a8=a83_0x17c1c8;try{const _0xab30da=NPM_REGISTRY_BASE_URL+_0x5758a8(0x1b9)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x5758a8(0x1fd),_0x2f654f=await fetch(_0xab30da,{'signal':AbortSignal[_0x5758a8(0x1f6)](0x2710)});if(!_0x2f654f['ok'])return null;const _0x1734c7=await _0x2f654f[_0x5758a8(0x1dd)]();if(!_0x1734c7||typeof _0x1734c7!=='object')return null;return Object[_0x5758a8(0x1c8)](Object[_0x5758a8(0x1c7)](_0x1734c7)[_0x5758a8(0x1fe)](([,_0x365b30])=>typeof _0x365b30==='string'&&_0x365b30[_0x5758a8(0x1be)]())[_0x5758a8(0x1cd)](([_0x4d3d8a,_0x209e92])=>[_0x4d3d8a,String(_0x209e92)[_0x5758a8(0x1be)]()]));}catch{return null;}}function a83_0x2ad2(_0x3550e9,_0x14b411){_0x3550e9=_0x3550e9-0x1b8;const _0x8f50cb=a83_0x8f50();let _0x2ad2fa=_0x8f50cb[_0x3550e9];return _0x2ad2fa;}async function resolveTargetVersion(_0x3848f9){const _0x47c27f=a83_0x17c1c8,_0x297b7d=getRequestedVersion(_0x3848f9);if(_0x297b7d)return{'version':_0x297b7d,'source':'version'};const _0x56202c=_0x3848f9[_0x47c27f(0x1e6)](_0x47c27f(0x20d))?'beta':'latest',_0x436a80=await fetchNpmDistTags(),_0x306542=_0x436a80?.[_0x56202c];if(!_0x306542)return null;return{'version':_0x306542,'source':_0x56202c};}function shouldInstallTarget(_0x25d7fa,_0x32841d){const _0x543105=a83_0x17c1c8;if(_0x32841d[_0x543105(0x1fc)]==='version'||_0x32841d[_0x543105(0x1fc)]===_0x543105(0x20d))return!a83_0x38cd5e['eq'](_0x25d7fa,_0x32841d[_0x543105(0x1c0)]);return a83_0x38cd5e['lt'](_0x25d7fa,_0x32841d[_0x543105(0x1c0)]);}export function installCliPackage(_0x4d3e82,_0x39f906,_0x2fb0ad=resolveCurrentCliNpmPrefix()){const _0x464d17=a83_0x17c1c8,_0x547b2a=resolveNpmBin('npm'),_0x4e8d38=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d3e82,_0x509b4b=[_0x464d17(0x1da),'-g',_0x4e8d38],_0x173090=runNpmInstall(_0x547b2a,_0x509b4b,_0x39f906);if(_0x173090['ok']||!isNpmPrefixPermissionError(_0x173090[_0x464d17(0x1eb)]))return _0x173090;if(!_0x2fb0ad||_0x173090['error']?.[_0x464d17(0x204)]()[_0x464d17(0x1cb)](_0x2fb0ad[_0x464d17(0x204)]()))return _0x173090;return console[_0x464d17(0x1d7)](_0x464d17(0x1f4)+_0x2fb0ad),runNpmInstall(_0x547b2a,[..._0x509b4b,_0x464d17(0x207),_0x2fb0ad],_0x39f906);}export function resolveCurrentCliNpmPrefix(_0x1638f9=fileURLToPath(import.meta.url),_0x4dbc84=process[a83_0x17c1c8(0x1e7)]){const _0x192c47=a83_0x17c1c8,_0x1a8a18=_0x4dbc84===_0x192c47(0x1c2)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x18a3c4=_0x1a8a18['dirname'](_0x1a8a18['dirname'](_0x1a8a18['dirname'](_0x1638f9))),_0x3652c1=_0x4dbc84===_0x192c47(0x1c2)?'@lovrabet\x5clovrabet-cli':_0x192c47(0x1e5);let _0x5436dd=_0x1a8a18[_0x192c47(0x20c)](_0x18a3c4);while(!![]){if(_0x1a8a18[_0x192c47(0x1e1)](_0x5436dd)==='node_modules'&&_0x1a8a18[_0x192c47(0x1e2)](_0x5436dd,_0x18a3c4)===_0x3652c1){const _0x390530=_0x1a8a18['dirname'](_0x5436dd);return _0x1a8a18[_0x192c47(0x1e1)](_0x390530)===_0x192c47(0x206)?_0x1a8a18[_0x192c47(0x20c)](_0x390530):_0x390530;}const _0x25490e=_0x1a8a18['dirname'](_0x5436dd);if(_0x25490e===_0x5436dd)return null;_0x5436dd=_0x25490e;}}function runNpmInstall(_0x6c8276,_0x3650bc,_0x26d0ce){const _0x2a7f2a=a83_0x17c1c8;console[_0x2a7f2a(0x1ba)]('*\x20'+[_0x6c8276,..._0x3650bc][_0x2a7f2a(0x1ce)]('\x20'));const _0x28529e=spawnSync(_0x6c8276,_0x3650bc,{'cwd':process[_0x2a7f2a(0x1cf)](),'stdio':_0x2a7f2a(0x1d6),'env':process.env,'shell':![]}),_0x12b4e1=_0x28529e[_0x2a7f2a(0x1d2)]?_0x28529e[_0x2a7f2a(0x1d2)]['toString']()['trim']():'',_0x3ad0ce=_0x28529e[_0x2a7f2a(0x1ec)]?_0x28529e[_0x2a7f2a(0x1ec)][_0x2a7f2a(0x1ea)]()[_0x2a7f2a(0x1be)]():'';if(!_0x26d0ce){if(_0x3ad0ce)process[_0x2a7f2a(0x1ec)]['write'](_0x3ad0ce+'\x0a');if(_0x12b4e1)process[_0x2a7f2a(0x1d2)]['write'](_0x12b4e1+'\x0a');}if(_0x28529e[_0x2a7f2a(0x1f2)]===0x0)return{'ok':!![]};const _0x45dfb0=_0x28529e['error']?.[_0x2a7f2a(0x1d3)]||_0x12b4e1||_0x3ad0ce||_0x2a7f2a(0x1bd)+(_0x28529e[_0x2a7f2a(0x1f2)]??_0x2a7f2a(0x1fa));return{'ok':![],'error':_0x45dfb0};}function isNpmPrefixPermissionError(_0xd79907){const _0x2da08a=a83_0x17c1c8;return Boolean(_0xd79907&&/\b(?:EACCES|EPERM)\b/[_0x2da08a(0x1dc)](_0xd79907));}function repairCurrentBuiltinSkill(_0x459d56){const _0x4003c6=a83_0x17c1c8;console['log'](_0x4003c6(0x1fb));const _0x1e005b=installBuiltinSkill({'stdio':_0x459d56?'pipe':_0x4003c6(0x1db)});if(_0x1e005b['ok'])return console[_0x4003c6(0x1ba)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x1e005b[_0x4003c6(0x1bf)]+'\x20is\x20current.'),!![];return console[_0x4003c6(0x1d7)](_0x4003c6(0x209)+(_0x1e005b[_0x4003c6(0x1cc)]||_0x4003c6(0x1e3))+']:\x20'+(_0x1e005b[_0x4003c6(0x1eb)]||_0x4003c6(0x1fa))),console[_0x4003c6(0x1ba)](_0x4003c6(0x1d8)+_0x1e005b[_0x4003c6(0x1c4)]),![];}function verifyUpdatedBuiltinSkill(_0x4df8d){const _0x23e799=a83_0x17c1c8;console[_0x23e799(0x1ba)](_0x23e799(0x1fb));const _0x1501dd=inspectInstalledBuiltinSkillVersion(_0x4df8d);if(_0x1501dd[_0x23e799(0x203)]===_0x23e799(0x211))return console[_0x23e799(0x1ba)](_0x23e799(0x1ed)+_0x4df8d+_0x23e799(0x20e)),!![];console[_0x23e799(0x1d7)]('\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x1501dd[_0x23e799(0x203)]+'.');if(_0x1501dd['reason'])console[_0x23e799(0x1d7)]('\x20\x20'+_0x1501dd[_0x23e799(0x20b)]);return console[_0x23e799(0x1ba)](_0x23e799(0x1d8)+_0x1501dd[_0x23e799(0x1c4)]),![];}async function execute(_0x96bdfe){const _0x58547d=a83_0x17c1c8;await validateUpdateFlags(_0x96bdfe);const _0x1fd523=getCliVersion();console[_0x58547d(0x1ba)](_0x58547d(0x1d5)+_0x1fd523),console['log'](_0x58547d(0x1c1));const _0x395cd9=await resolveTargetVersion(_0x96bdfe);if(!_0x395cd9){const _0x4062aa=_0x96bdfe['bool'](_0x58547d(0x20d))?_0x58547d(0x20d):_0x58547d(0x1bb),_0x1d6c8b='Unable\x20to\x20resolve\x20'+_0x4062aa+_0x58547d(0x210);return console[_0x58547d(0x1d7)](_0x1d6c8b),console[_0x58547d(0x1ba)](_0x58547d(0x1bc)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4062aa),{'ok':![]};}const _0x34d646=[_0x1fd523,_0x395cd9[_0x58547d(0x1c0)]][_0x58547d(0x1f5)](_0x559b45=>!a83_0x38cd5e[_0x58547d(0x200)](_0x559b45));if(_0x34d646)return console[_0x58547d(0x1d7)](_0x58547d(0x1d0)+_0x34d646+'.'),{'ok':![]};if(!shouldInstallTarget(_0x1fd523,_0x395cd9)){const _0x174079=_0x395cd9['source']===_0x58547d(0x1c0)?_0x58547d(0x1e4)+_0x395cd9[_0x58547d(0x1c0)]+').':_0x58547d(0x1b8)+_0x395cd9[_0x58547d(0x1c0)]+').';return console[_0x58547d(0x1ba)](_0x174079),{'ok':repairCurrentBuiltinSkill(_0x96bdfe[_0x58547d(0x1c6)])};}console[_0x58547d(0x1ba)](_0x58547d(0x1df)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1fd523+'\x20->\x20'+_0x395cd9[_0x58547d(0x1c0)]);const _0x1e7e05=installCliPackage(_0x395cd9[_0x58547d(0x1c0)],_0x96bdfe[_0x58547d(0x1c6)]);if(!_0x1e7e05['ok']){const _0x2018c3='Update\x20failed:\x20'+(_0x1e7e05['error']||_0x58547d(0x1fa));return console[_0x58547d(0x1eb)](_0x2018c3),console[_0x58547d(0x1ba)](_0x58547d(0x20f)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x395cd9[_0x58547d(0x1c0)]),{'ok':![]};}return console[_0x58547d(0x1ba)](_0x58547d(0x208)+_0x395cd9['version']+'.'),console[_0x58547d(0x1ba)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),{'ok':verifyUpdatedBuiltinSkill(_0x395cd9[_0x58547d(0x1c0)])};}function a83_0x8f50(){const _0x170149=['cwd','Version\x20comparison\x20failed:\x20','120141TRfTSB','stderr','message','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Current\x20version:\x20','pipe','warn','\x20\x20Run\x20manually:\x20','read','install','inherit','test','json','update','Updating\x20','\x20CLI','basename','relative','INSTALL_FAILED','Already\x20on\x20requested\x20version\x20(v','@lovrabet/lovrabet-cli','bool','platform','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','boolean','toString','error','stdout','\x20\x20CLI\x20Built-in\x20Skill\x20','3949947iEeela','21606JMuvdM','424oChEsQ','args','status','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','find','timeout','length','644AcJxJT','validation','unknown','Checking\x20CLI\x20Built-in\x20Skill...','source','/dist-tags','filter','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','valid','3640804EslsEH','39012710UWRHos','state','toLowerCase','3790482Zpngcx','lib','--prefix','Updated\x20to\x20v','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Invalid\x20version:\x20','reason','dirname','beta','\x20is\x20current.','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','\x20version\x20from\x20npm.','current','1475JTQbpk','Already\x20up\x20to\x20date\x20(v','/-/package/','log','latest','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','exit\x20','trim','skillVersion','version','Checking\x20npm\x20dist-tags...','win32','run','repairCommand','Install\x20a\x20specific\x20CLI\x20version','nonInteractive','entries','fromEntries','2679loJnUB','str','includes','code','map','join'];a83_0x8f50=function(){return _0x170149;};return a83_0x8f50();}export const updateDefinition={'service':a83_0x17c1c8(0x1de),'command':a83_0x17c1c8(0x1c3),'description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+a83_0x17c1c8(0x1e0),'risk':a83_0x17c1c8(0x1d9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a83_0x1fddaa=a83_0x45ef;(function(_0x29234f,_0xa4a9fe){const _0x3f0de8=a83_0x45ef,_0x147c42=_0x29234f();while(!![]){try{const _0x1da7a8=-parseInt(_0x3f0de8(0xf2))/0x1*(parseInt(_0x3f0de8(0xd9))/0x2)+-parseInt(_0x3f0de8(0x107))/0x3+parseInt(_0x3f0de8(0xe9))/0x4*(-parseInt(_0x3f0de8(0x116))/0x5)+-parseInt(_0x3f0de8(0x115))/0x6*(parseInt(_0x3f0de8(0x11c))/0x7)+-parseInt(_0x3f0de8(0xfa))/0x8*(-parseInt(_0x3f0de8(0x100))/0x9)+parseInt(_0x3f0de8(0x105))/0xa*(-parseInt(_0x3f0de8(0x101))/0xb)+-parseInt(_0x3f0de8(0xc8))/0xc*(-parseInt(_0x3f0de8(0x109))/0xd);if(_0x1da7a8===_0xa4a9fe)break;else _0x147c42['push'](_0x147c42['shift']());}catch(_0x3adb70){_0x147c42['push'](_0x147c42['shift']());}}}(a83_0x3c58,0xde893));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';import a83_0x47b59c from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a83_0x1fddaa(0xfb),'type':a83_0x1fddaa(0xcc),'description':a83_0x1fddaa(0xe1),'default':![]},{'name':a83_0x1fddaa(0xc9),'type':a83_0x1fddaa(0xcc),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a83_0x1fddaa(0xe8),'description':a83_0x1fddaa(0x103)}];function getRequestedVersion(_0x1ae41f){const _0x3edc99=a83_0x1fddaa,_0x3f67cc=_0x1ae41f['str'](_0x3edc99(0xf1))[_0x3edc99(0xdb)]();if(_0x3f67cc)return _0x3f67cc;return String(_0x1ae41f[_0x3edc99(0x102)]?.[0x0]??'')[_0x3edc99(0xdb)]();}async function validateUpdateFlags(_0x58ad6f){const _0x94f9dc=a83_0x1fddaa,_0x1ebeef=getRequestedVersion(_0x58ad6f),_0x2dfd42=[_0x58ad6f[_0x94f9dc(0xd6)](_0x94f9dc(0xfb))?_0x94f9dc(0xfb):'',_0x58ad6f[_0x94f9dc(0xd6)]('beta')?_0x94f9dc(0xc9):'',_0x1ebeef?_0x94f9dc(0xf1):'']['filter'](Boolean);if(_0x2dfd42[_0x94f9dc(0xd2)]>0x1)throw CliErrors[_0x94f9dc(0xf7)](_0x94f9dc(0x118),_0x94f9dc(0x11d));if(_0x1ebeef&&!a83_0x47b59c[_0x94f9dc(0xfc)](_0x1ebeef))throw CliErrors[_0x94f9dc(0xf7)](_0x94f9dc(0xf3)+_0x1ebeef,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x16bf03=a83_0x1fddaa;try{const _0x277147=NPM_REGISTRY_BASE_URL+_0x16bf03(0xd3)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x16bf03(0xe5),_0x1096fc=await fetch(_0x277147,{'signal':AbortSignal[_0x16bf03(0xf6)](0x2710)});if(!_0x1096fc['ok'])return null;const _0x165060=await _0x1096fc[_0x16bf03(0xed)]();if(!_0x165060||typeof _0x165060!==_0x16bf03(0x113))return null;return Object[_0x16bf03(0x10a)](Object['entries'](_0x165060)[_0x16bf03(0xd5)](([,_0x2c41b7])=>typeof _0x2c41b7===_0x16bf03(0xe8)&&_0x2c41b7['trim']())[_0x16bf03(0xcd)](([_0x171523,_0x489b8d])=>[_0x171523,String(_0x489b8d)[_0x16bf03(0xdb)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3341c3){const _0x49acd8=a83_0x1fddaa,_0x4edccd=getRequestedVersion(_0x3341c3);if(_0x4edccd)return{'version':_0x4edccd,'source':_0x49acd8(0xf1)};const _0x408ad6=_0x3341c3[_0x49acd8(0xd6)](_0x49acd8(0xc9))?_0x49acd8(0xc9):_0x49acd8(0xfb),_0x30de97=await fetchNpmDistTags(),_0x3f4b16=_0x30de97?.[_0x408ad6];if(!_0x3f4b16)return null;return{'version':_0x3f4b16,'source':_0x408ad6};}function shouldInstallTarget(_0x3140a1,_0x174877){const _0x130e0b=a83_0x1fddaa;if(_0x174877[_0x130e0b(0xec)]===_0x130e0b(0xf1)||_0x174877[_0x130e0b(0xec)]===_0x130e0b(0xc9))return!a83_0x47b59c['eq'](_0x3140a1,_0x174877[_0x130e0b(0xf1)]);return a83_0x47b59c['lt'](_0x3140a1,_0x174877['version']);}function a83_0x3c58(){const _0x19c022=['/-/package/','\x20\x20Run\x20manually:\x20','filter','bool','exit\x20','read','6TawXnL','Current\x20version:\x20','trim','code','run','find','write','update','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','repairCommand','dirname','nonInteractive','/dist-tags','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','platform','string','2404MXEOXs','stderr','join','source','json','\x20is\x20current.','--prefix','\x20\x20CLI\x20Built-in\x20Skill\x20','version','4283YgUPLz','Invalid\x20version:\x20','pipe','Unable\x20to\x20resolve\x20','timeout','validation','error','npm','332472huuPtu','latest','valid','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','Version\x20comparison\x20failed:\x20','\x20version\x20from\x20npm.','378Xxcgqu','121wctQQl','args','Install\x20a\x20specific\x20CLI\x20version','status','1033450SGEeij','toLowerCase','4526772ZapRbF','includes','13RnbRqL','fromEntries','warn','state','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','INSTALL_FAILED','unknown','Updating\x20','Update\x20failed:\x20','Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20','object','relative','6qSZdsp','4695rGRmhu','reason','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20->\x20','lib','stdout','314965oxhSWS','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','Updated\x20to\x20v','node_modules','basename','inherit','message','Already\x20up\x20to\x20date\x20(v','29207172ENfWQQ','beta','skillVersion','log','boolean','map','@lovrabet/lovrabet-cli','install','Checking\x20CLI\x20Built-in\x20Skill...','toString','length'];a83_0x3c58=function(){return _0x19c022;};return a83_0x3c58();}export function installCliPackage(_0x3b73fa,_0x173408,_0x2b91b0=resolveCurrentCliNpmPrefix()){const _0x18a570=a83_0x1fddaa,_0x3c23cf=resolveNpmBin(_0x18a570(0xf9)),_0x1f9faf=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3b73fa,_0xe10ff5=[_0x18a570(0xcf),'-g',_0x1f9faf],_0x1e0e99=runNpmInstall(_0x3c23cf,_0xe10ff5,_0x173408);if(_0x1e0e99['ok']||!isNpmPrefixPermissionError(_0x1e0e99[_0x18a570(0xf8)]))return _0x1e0e99;if(!_0x2b91b0||_0x1e0e99[_0x18a570(0xf8)]?.[_0x18a570(0x106)]()[_0x18a570(0x108)](_0x2b91b0[_0x18a570(0x106)]()))return _0x1e0e99;return console[_0x18a570(0x10b)](_0x18a570(0x112)+_0x2b91b0),runNpmInstall(_0x3c23cf,[..._0xe10ff5,_0x18a570(0xef),_0x2b91b0],_0x173408);}export function resolveCurrentCliNpmPrefix(_0x4af237=fileURLToPath(import.meta.url),_0x24e30e=process[a83_0x1fddaa(0xe7)]){const _0x3ee0b6=a83_0x1fddaa,_0xc0569=_0x24e30e==='win32'?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x3d8dbb=_0xc0569[_0x3ee0b6(0xe3)](_0xc0569['dirname'](_0xc0569[_0x3ee0b6(0xe3)](_0x4af237))),_0x3892ed=_0x24e30e==='win32'?'@lovrabet\x5clovrabet-cli':_0x3ee0b6(0xce);let _0x42e60c=_0xc0569[_0x3ee0b6(0xe3)](_0x3d8dbb);while(!![]){if(_0xc0569[_0x3ee0b6(0xc4)](_0x42e60c)===_0x3ee0b6(0x11f)&&_0xc0569[_0x3ee0b6(0x114)](_0x42e60c,_0x3d8dbb)===_0x3892ed){const _0x40c29b=_0xc0569['dirname'](_0x42e60c);return _0xc0569[_0x3ee0b6(0xc4)](_0x40c29b)===_0x3ee0b6(0x11a)?_0xc0569['dirname'](_0x40c29b):_0x40c29b;}const _0x4ffc21=_0xc0569[_0x3ee0b6(0xe3)](_0x42e60c);if(_0x4ffc21===_0x42e60c)return null;_0x42e60c=_0x4ffc21;}}function runNpmInstall(_0x111021,_0x391d68,_0x2a1a3c){const _0x2211d7=a83_0x1fddaa;console[_0x2211d7(0xcb)]('*\x20'+[_0x111021,..._0x391d68][_0x2211d7(0xeb)]('\x20'));const _0x5356e2=spawnSync(_0x111021,_0x391d68,{'cwd':process['cwd'](),'stdio':_0x2211d7(0xf4),'env':process.env,'shell':![]}),_0x350db8=_0x5356e2[_0x2211d7(0xea)]?_0x5356e2['stderr'][_0x2211d7(0xd1)]()[_0x2211d7(0xdb)]():'',_0x5d9ef5=_0x5356e2[_0x2211d7(0x11b)]?_0x5356e2[_0x2211d7(0x11b)][_0x2211d7(0xd1)]()['trim']():'';if(!_0x2a1a3c){if(_0x5d9ef5)process['stdout']['write'](_0x5d9ef5+'\x0a');if(_0x350db8)process[_0x2211d7(0xea)][_0x2211d7(0xdf)](_0x350db8+'\x0a');}if(_0x5356e2[_0x2211d7(0x104)]===0x0)return{'ok':!![]};const _0x5d7cdc=_0x5356e2[_0x2211d7(0xf8)]?.[_0x2211d7(0xc6)]||_0x350db8||_0x5d9ef5||_0x2211d7(0xd7)+(_0x5356e2[_0x2211d7(0x104)]??'unknown');return{'ok':![],'error':_0x5d7cdc};}function isNpmPrefixPermissionError(_0x2d8898){return Boolean(_0x2d8898&&/\b(?:EACCES|EPERM)\b/['test'](_0x2d8898));}function repairCurrentBuiltinSkill(_0x34755c){const _0x1c598f=a83_0x1fddaa;console[_0x1c598f(0xcb)](_0x1c598f(0xd0));const _0x64d88a=installBuiltinSkill({'stdio':_0x34755c?_0x1c598f(0xf4):_0x1c598f(0xc5)});if(_0x64d88a['ok'])return console[_0x1c598f(0xcb)](_0x1c598f(0xf0)+_0x64d88a[_0x1c598f(0xca)]+_0x1c598f(0xee)),!![];return console[_0x1c598f(0x10b)](_0x1c598f(0xfd)+(_0x64d88a[_0x1c598f(0xdc)]||_0x1c598f(0x10e))+']:\x20'+(_0x64d88a[_0x1c598f(0xf8)]||_0x1c598f(0x10f))),console[_0x1c598f(0xcb)](_0x1c598f(0xd4)+_0x64d88a['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x53858e){const _0x1a4cb1=a83_0x1fddaa;console[_0x1a4cb1(0xcb)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x25c5e3=inspectInstalledBuiltinSkillVersion(_0x53858e);if(_0x25c5e3[_0x1a4cb1(0x10c)]==='current')return console[_0x1a4cb1(0xcb)](_0x1a4cb1(0xf0)+_0x53858e+_0x1a4cb1(0xee)),!![];console[_0x1a4cb1(0x10b)](_0x1a4cb1(0x10d)+_0x25c5e3[_0x1a4cb1(0x10c)]+'.');if(_0x25c5e3['reason'])console['warn']('\x20\x20'+_0x25c5e3[_0x1a4cb1(0x117)]);return console[_0x1a4cb1(0xcb)](_0x1a4cb1(0xd4)+_0x25c5e3[_0x1a4cb1(0xe2)]),![];}async function execute(_0x270428){const _0x48fcef=a83_0x1fddaa;await validateUpdateFlags(_0x270428);const _0x25eadf=getCliVersion();console[_0x48fcef(0xcb)](_0x48fcef(0xda)+_0x25eadf),console[_0x48fcef(0xcb)]('Checking\x20npm\x20dist-tags...');const _0xa78117=await resolveTargetVersion(_0x270428);if(!_0xa78117){const _0x3a55d9=_0x270428[_0x48fcef(0xd6)](_0x48fcef(0xc9))?_0x48fcef(0xc9):_0x48fcef(0xfb),_0x132e4a=_0x48fcef(0xf5)+_0x3a55d9+_0x48fcef(0xff);return console[_0x48fcef(0x10b)](_0x132e4a),console[_0x48fcef(0xcb)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3a55d9),{'ok':![]};}const _0x5a0870=[_0x25eadf,_0xa78117[_0x48fcef(0xf1)]][_0x48fcef(0xde)](_0x300e48=>!a83_0x47b59c[_0x48fcef(0xfc)](_0x300e48));if(_0x5a0870)return console[_0x48fcef(0x10b)](_0x48fcef(0xfe)+_0x5a0870+'.'),{'ok':![]};if(!shouldInstallTarget(_0x25eadf,_0xa78117)){const _0x3aa1ad=_0xa78117['source']===_0x48fcef(0xf1)?'Already\x20on\x20requested\x20version\x20(v'+_0xa78117['version']+').':_0x48fcef(0xc7)+_0xa78117['version']+').';return console[_0x48fcef(0xcb)](_0x3aa1ad),{'ok':repairCurrentBuiltinSkill(_0x270428[_0x48fcef(0xe4)])};}console['log'](_0x48fcef(0x110)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x25eadf+_0x48fcef(0x119)+_0xa78117[_0x48fcef(0xf1)]);const _0x2e740d=installCliPackage(_0xa78117[_0x48fcef(0xf1)],_0x270428[_0x48fcef(0xe4)]);if(!_0x2e740d['ok']){const _0x12b620=_0x48fcef(0x111)+(_0x2e740d[_0x48fcef(0xf8)]||'unknown');return console[_0x48fcef(0xf8)](_0x12b620),console[_0x48fcef(0xcb)]('\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xa78117[_0x48fcef(0xf1)]),{'ok':![]};}return console[_0x48fcef(0xcb)](_0x48fcef(0x11e)+_0xa78117['version']+'.'),console[_0x48fcef(0xcb)](_0x48fcef(0xe6)),{'ok':verifyUpdatedBuiltinSkill(_0xa78117[_0x48fcef(0xf1)])};}function a83_0x45ef(_0x196271,_0x2536f3){_0x196271=_0x196271-0xc4;const _0x3c5845=a83_0x3c58();let _0x45ef5a=_0x3c5845[_0x196271];return _0x45ef5a;}export const updateDefinition={'service':a83_0x1fddaa(0xe0),'command':a83_0x1fddaa(0xdd),'description':'从\x20npm\x20更新\x20'+CLI_BIN_NAME+'\x20CLI','risk':a83_0x1fddaa(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x1ac60b=a84_0x4cd6;(function(_0x52030f,_0x4fd01f){const _0x5128fc=a84_0x4cd6,_0x37d5e1=_0x52030f();while(!![]){try{const _0x39e291=parseInt(_0x5128fc(0x155))/0x1+parseInt(_0x5128fc(0x167))/0x2*(-parseInt(_0x5128fc(0x15d))/0x3)+-parseInt(_0x5128fc(0x166))/0x4+-parseInt(_0x5128fc(0x165))/0x5+parseInt(_0x5128fc(0x16f))/0x6*(-parseInt(_0x5128fc(0x152))/0x7)+-parseInt(_0x5128fc(0x16a))/0x8+parseInt(_0x5128fc(0x16d))/0x9*(parseInt(_0x5128fc(0x163))/0xa);if(_0x39e291===_0x4fd01f)break;else _0x37d5e1['push'](_0x37d5e1['shift']());}catch(_0x3d63a3){_0x37d5e1['push'](_0x37d5e1['shift']());}}}(a84_0x116f,0xe6f34));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';function a84_0x4cd6(_0x3f2386,_0x2a81d0){_0x3f2386=_0x3f2386-0x150;const _0x116fac=a84_0x116f();let _0x4cd671=_0x116fac[_0x3f2386];return _0x4cd671;}import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.',SUPPORTED_PROVIDERS=[a84_0x1ac60b(0x168)];function a84_0x116f(){const _0x158022=['user-account','POST','Bound\x20current\x20user\x20to\x20external\x20provider\x20account.','1614004gbbnsT','str','account-id','963212wjTCMA','validation','write','trim','Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.','toLowerCase','apiError','bind','463863WrxbDH','Pass\x20one\x20of:\x20','provider','--account-id\x20cannot\x20be\x20empty.','External\x20account\x20binding\x20was\x20not\x20confirmed.','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','52622030tgwFSk','External\x20account\x20provider','7011310QePSMR','3479740VZuWtk','18ViuyIt','dingtalk','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.','3702376JNhnlh','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','includes','9QMiPct','string','30ZTpvAv'];a84_0x116f=function(){return _0x158022;};return a84_0x116f();}function readBindingInput(_0x345486){const _0x2ecc2c=a84_0x1ac60b,_0x39588d=_0x345486[_0x2ecc2c(0x153)]('provider')[_0x2ecc2c(0x158)]()[_0x2ecc2c(0x15a)]();if(!SUPPORTED_PROVIDERS[_0x2ecc2c(0x16c)](_0x39588d))throw CliErrors[_0x2ecc2c(0x156)]('Unsupported\x20provider:\x20'+(_0x39588d||'(empty)')+'.',_0x2ecc2c(0x15e)+SUPPORTED_PROVIDERS['join'](',\x20')+'.');const _0x1f2e9c=_0x345486['str'](_0x2ecc2c(0x154))['trim']();if(!_0x1f2e9c)throw CliErrors[_0x2ecc2c(0x156)](_0x2ecc2c(0x160),_0x2ecc2c(0x159));return{'provider':_0x39588d,'accountId':_0x1f2e9c};}function buildBindingData(_0x11e0ac,_0x60095,_0x40ef20){const _0x4f703b=a84_0x1ac60b;return{'operation':_0x4f703b(0x15c),'selector':{'provider':_0x11e0ac,'accountId':_0x60095},'before':null,'after':{'provider':_0x11e0ac,'accountId':_0x60095,'bound':!![]},'dryRun':_0x40ef20,'warnings':[CURRENT_BINDING_WARNING]};}export const bindUserAccount={'service':a84_0x1ac60b(0x170),'command':a84_0x1ac60b(0x15c),'description':a84_0x1ac60b(0x16b),'risk':a84_0x1ac60b(0x157),'confirmationDescription':a84_0x1ac60b(0x162),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':a84_0x1ac60b(0x15f),'type':a84_0x1ac60b(0x16e),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x1ac60b(0x164)},{'name':'account-id','type':a84_0x1ac60b(0x16e),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x7ff6ce){readBindingInput(_0x7ff6ce);},async 'dryRun'(_0x5f034f){const _0x276256=a84_0x1ac60b,{provider:_0x3f6094,accountId:_0x26eae1}=readBindingInput(_0x5f034f);return{...buildBindingData(_0x3f6094,_0x26eae1,!![]),'method':_0x276256(0x150),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x3f6094,'accountId':_0x26eae1}};},async 'execute'(_0x4cc542){const _0x551714=a84_0x1ac60b,{provider:_0x563837,accountId:_0x551845}=readBindingInput(_0x4cc542),_0x440996=await bindExternalUserAccount(_0x563837,_0x551845);if(_0x440996!==!![])throw CliErrors[_0x551714(0x15b)](_0x551714(0x161),_0x551714(0x169));return{'ok':!![],'data':buildBindingData(_0x563837,_0x551845,![]),'message':_0x551714(0x151)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1029fc,_0x2aa3b1){const _0x1fcbfc=a85_0x29ae,_0x593b98=_0x1029fc();while(!![]){try{const _0x517d59=-parseInt(_0x1fcbfc(0x81))/0x1*(-parseInt(_0x1fcbfc(0x7f))/0x2)+parseInt(_0x1fcbfc(0x7a))/0x3+parseInt(_0x1fcbfc(0x78))/0x4+parseInt(_0x1fcbfc(0x7c))/0x5*(parseInt(_0x1fcbfc(0x80))/0x6)+parseInt(_0x1fcbfc(0x79))/0x7*(parseInt(_0x1fcbfc(0x7d))/0x8)+parseInt(_0x1fcbfc(0x7e))/0x9+-parseInt(_0x1fcbfc(0x7b))/0xa;if(_0x517d59===_0x2aa3b1)break;else _0x593b98['push'](_0x593b98['shift']());}catch(_0x4d2a2b){_0x593b98['push'](_0x593b98['shift']());}}}(a85_0x10b0,0x2efca));function a85_0x29ae(_0x741565,_0x3debc2){_0x741565=_0x741565-0x78;const _0x10b0a5=a85_0x10b0();let _0x29ae35=_0x10b0a5[_0x741565];return _0x29ae35;}import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];function a85_0x10b0(){const _0x33b0e6=['345kXtgVJ','800288ADjMOb','93485GTvKiJ','75399UUuuPB','10617950WGuqvQ','1383185MBSqtJ','144RxaVeK','3443814QgkxgD','750xRrnkm','6wnXJAp'];a85_0x10b0=function(){return _0x33b0e6;};return a85_0x10b0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x5297b7=a86_0x3d2c;(function(_0x1ce2c5,_0x3a5b79){const _0x219386=a86_0x3d2c,_0x137df6=_0x1ce2c5();while(!![]){try{const _0x474e64=-parseInt(_0x219386(0xb4))/0x1+-parseInt(_0x219386(0x91))/0x2+-parseInt(_0x219386(0xa9))/0x3+-parseInt(_0x219386(0xa8))/0x4*(parseInt(_0x219386(0x96))/0x5)+parseInt(_0x219386(0xb1))/0x6+parseInt(_0x219386(0x9c))/0x7+parseInt(_0x219386(0x9a))/0x8*(parseInt(_0x219386(0xb3))/0x9);if(_0x474e64===_0x3a5b79)break;else _0x137df6['push'](_0x137df6['shift']());}catch(_0xd9c60){_0x137df6['push'](_0x137df6['shift']());}}}(a86_0x5c0b,0x3c2e9));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a86_0x3d2c(_0x5fade,_0x59107f){_0x5fade=_0x5fade-0x82;const _0x5c0b24=a86_0x5c0b();let _0x3d2cfe=_0x5c0b24[_0x5fade];return _0x3d2cfe;}import{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a86_0x5c0b(){const _0x47b330=['use','map','2743002zsiWUS','includes','4382793LMDlSP','354205vEubCI','trim','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','../../commands/app/remote-source.js','Available\x20apps:\x20','apps','items','\x0aDefault\x20app:\x20','validation','Workspace\x20configured.\x0aConfig\x20file:\x20','str','authRequired','\x0aAccessKey:\x20not\x20written','from','init','command','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','env','string','Target\x20environment','Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.','\x20workspace\x20','Use\x20`','560394uhoJzO','\x20--appcode\x20<code>\x20[--env\x20daily]','object','\x22.\x20Allowed:\x20','App\x20\x22','115zksDok','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','App\x20code\x20to\x20bind\x20directly','Run\x20`','16BXODYD','shouldWriteEnv','279412yqYhgO','workspace','Invalid\x20env\x20\x22','\x22\x20not\x20found.','../../core/api-client.js','accessKey','\x0aEnv:\x20','appcode','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','envName','appName','join','24868MwtfOi','1341417StidKJ','appCode','write','defaultApp','Conflicting\x20workspace\x20app\x20selectors.','length'];a86_0x5c0b=function(){return _0x47b330;};return a86_0x5c0b();}import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':'string','description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a86_0x5297b7(0xa3),'type':'string','description':a86_0x5297b7(0x98)},{'name':a86_0x5297b7(0x8b),'type':a86_0x5297b7(0x8c),'description':a86_0x5297b7(0x8d),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x7e9b23,_0xaa90b6){const _0x57179e=a86_0x5297b7,_0x34c2d9=_0x7e9b23[_0x57179e(0x83)]('app')[_0x57179e(0xb5)](),_0x50e1e9=_0x7e9b23[_0x57179e(0x83)]('appcode')[_0x57179e(0xb5)](),_0x41b406=_0x7e9b23['str'](_0x57179e(0x8b))[_0x57179e(0xb5)](),_0x54babe=resolveWorkspaceEnv(_0x41b406||_0x7e9b23[_0x57179e(0xa5)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x34c2d9&&!_0x50e1e9)throw CliErrors[_0x57179e(0xbc)]('Missing\x20workspace\x20app\x20selector.','Usage:\x20'+CLI_BIN_NAME+_0x57179e(0x8f)+_0xaa90b6+_0x57179e(0x89)+CLI_BIN_NAME+_0x57179e(0x8f)+_0xaa90b6+_0x57179e(0x92));if(_0x34c2d9&&_0x50e1e9)throw CliErrors[_0x57179e(0xbc)](_0x57179e(0xad),_0x57179e(0x8e));const _0x358e14=resolveWriteConfigPath('project'),_0x5d5f3f=readConfigFile(_0x358e14);assertWorkspaceCommandState(_0xaa90b6,_0x5d5f3f);const _0x1a0511=_0x50e1e9||await resolveRemoteAppCode({'command':_0xaa90b6,'appName':_0x34c2d9,'env':_0x54babe,'accessKey':_0x7e9b23[_0x57179e(0xa1)]});return writeWorkspaceConfig({'command':_0xaa90b6,'appName':_0x34c2d9,'appcode':_0x1a0511,'env':_0x54babe,'shouldWriteEnv':!!_0x41b406,'accessKey':_0x7e9b23[_0x57179e(0xa1)]},_0x358e14,_0x5d5f3f),{'ok':!![],'data':{'configPath':_0x358e14,'app':_0x34c2d9||null,'appcode':_0x1a0511,'env':_0x41b406?_0x54babe:null,'accessKeyWritten':![],'command':'workspace\x20'+_0xaa90b6},'message':buildWorkspaceMessage(_0x358e14,_0x34c2d9,_0x1a0511,_0x41b406?_0x54babe:undefined)};}async function resolveRemoteAppCode(_0x50bf53){const _0x1a6977=a86_0x5297b7;if(!_0x50bf53[_0x1a6977(0xa1)])throw CliErrors[_0x1a6977(0x84)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x50bf53[_0x1a6977(0x88)]+'.');const {setActiveAK:_0xe5ac3a}=await import(_0x1a6977(0xa0)),{getRemoteAppList:_0xaef398}=await import(_0x1a6977(0xb7));_0xe5ac3a(_0x50bf53[_0x1a6977(0xa1)]);const _0x5a6679=await _0xaef398({'env':_0x50bf53[_0x1a6977(0x8b)],'accessKey':_0x50bf53[_0x1a6977(0xa1)],'noCache':![]}),_0x4317d0=findAppByName(_0x5a6679[_0x1a6977(0xba)],_0x50bf53['appName']);if(_0x4317d0&&!isRuntimeAccessibleApp(_0x4317d0))throw runtimeInaccessibleAppError(_0x4317d0,'\x22'+_0x50bf53[_0x1a6977(0xa6)]+'\x22');const _0x45bf6d=_0x4317d0?.[_0x1a6977(0xaa)]?.['trim']();if(_0x45bf6d)return _0x45bf6d;const _0x462e88=_0x5a6679['items'][_0x1a6977(0xb0)](_0x4aa929=>_0x4aa929[_0x1a6977(0xa6)])['filter'](Boolean),_0x1d4dda=_0x462e88[_0x1a6977(0xae)]?_0x1a6977(0xb8)+Array[_0x1a6977(0x86)](new Set(_0x462e88))[_0x1a6977(0xa7)](',\x20')+'.':_0x1a6977(0x99)+CLI_BIN_NAME+_0x1a6977(0xb6);throw CliErrors['validation'](_0x1a6977(0x95)+_0x50bf53[_0x1a6977(0xa6)]+_0x1a6977(0x9f),_0x1d4dda);}function writeWorkspaceConfig(_0x57f0d6,_0x37eea1,_0x254ee3){const _0x39e1f8=a86_0x5297b7;_0x57f0d6[_0x39e1f8(0x9b)]&&(_0x254ee3['env']=_0x57f0d6[_0x39e1f8(0x8b)]);if(_0x57f0d6[_0x39e1f8(0xa6)]){const _0x5a8b55=isRecord(_0x254ee3['apps'])?{..._0x254ee3[_0x39e1f8(0xb9)]}:{},_0x10bed6=isRecord(_0x5a8b55[_0x57f0d6[_0x39e1f8(0xa6)]])?_0x5a8b55[_0x57f0d6[_0x39e1f8(0xa6)]]:{};return _0x5a8b55[_0x57f0d6['appName']]={..._0x10bed6,'appcode':_0x57f0d6[_0x39e1f8(0xa3)]},_0x254ee3[_0x39e1f8(0xb9)]=_0x5a8b55,_0x254ee3[_0x39e1f8(0xac)]=_0x57f0d6['appName'],delete _0x254ee3[_0x39e1f8(0xa3)],delete _0x254ee3['app'],writeAndReturn(_0x37eea1,_0x254ee3);}return _0x254ee3['appcode']=_0x57f0d6[_0x39e1f8(0xa3)],delete _0x254ee3[_0x39e1f8(0xac)],delete _0x254ee3['app'],writeAndReturn(_0x37eea1,_0x254ee3);}function writeAndReturn(_0x224342,_0xbc98d3){return writeConfigFile(_0x224342,_0xbc98d3),_0x224342;}function resolveWorkspaceEnv(_0x3f24d8){const _0x39791f=a86_0x5297b7;if(RUNTIME_ENV_VALUES[_0x39791f(0xb2)](_0x3f24d8))return _0x3f24d8;throw CliErrors[_0x39791f(0xbc)](_0x39791f(0x9e)+_0x3f24d8+_0x39791f(0x94)+RUNTIME_ENV_VALUES[_0x39791f(0xa7)](',\x20'));}function buildWorkspaceMessage(_0x3e5d40,_0x2c94d0,_0x58f05b,_0x57519e){const _0x2a4b43=a86_0x5297b7,_0x552e1c=_0x2c94d0?_0x2c94d0+'\x20('+_0x58f05b+')':_0x58f05b,_0x323d8e=_0x57519e?_0x2a4b43(0xa2)+_0x57519e:'';return _0x2a4b43(0x82)+_0x3e5d40+_0x2a4b43(0xbb)+_0x552e1c+_0x323d8e+_0x2a4b43(0x85);}function isRecord(_0x4c8caa){const _0x2bce7d=a86_0x5297b7;return typeof _0x4c8caa===_0x2bce7d(0x93)&&_0x4c8caa!==null&&!Array['isArray'](_0x4c8caa);}function hasWorkspaceAppBinding(_0x2541ac){const _0x55b89b=a86_0x5297b7;if(typeof _0x2541ac[_0x55b89b(0xa3)]===_0x55b89b(0x8c)&&_0x2541ac['appcode'][_0x55b89b(0xb5)]()[_0x55b89b(0xae)]>0x0)return!![];if(typeof _0x2541ac['defaultApp']!=='string'||!_0x2541ac[_0x55b89b(0xac)][_0x55b89b(0xb5)]())return![];if(!isRecord(_0x2541ac[_0x55b89b(0xb9)]))return![];const _0x33199c=_0x2541ac[_0x55b89b(0xb9)][_0x2541ac[_0x55b89b(0xac)][_0x55b89b(0xb5)]()];return isRecord(_0x33199c)&&typeof _0x33199c[_0x55b89b(0xa3)]===_0x55b89b(0x8c)&&_0x33199c[_0x55b89b(0xa3)][_0x55b89b(0xb5)]()[_0x55b89b(0xae)]>0x0;}function assertWorkspaceCommandState(_0x4ef0aa,_0x4eedc2){const _0x5eb9ad=a86_0x5297b7,_0x193712=hasWorkspaceAppBinding(_0x4eedc2);if(_0x4ef0aa===_0x5eb9ad(0x87)&&_0x193712)throw CliErrors[_0x5eb9ad(0xbc)]('Workspace\x20app\x20context\x20is\x20already\x20initialized.',_0x5eb9ad(0x90)+CLI_BIN_NAME+_0x5eb9ad(0x97)+CLI_BIN_NAME+'\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.');if(_0x4ef0aa==='use'&&!_0x193712)throw CliErrors[_0x5eb9ad(0xbc)]('Workspace\x20app\x20context\x20is\x20not\x20initialized.',_0x5eb9ad(0x99)+CLI_BIN_NAME+'\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`'+CLI_BIN_NAME+_0x5eb9ad(0xa4));}function makeWorkspaceCommand(_0x3072f3){const _0xc768b7=a86_0x5297b7;return{'service':_0xc768b7(0x9d),'command':_0x3072f3,'description':_0x3072f3==='init'?'为尚未绑定应用的当前工作目录初始化应用上下文':'修改当前工作目录已有绑定的应用上下文','risk':_0xc768b7(0xab),'confirmationDescription':_0x3072f3===_0xc768b7(0x87)?_0xc768b7(0x8a):'将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x44514c){return executeWorkspaceUse(_0x44514c,_0x3072f3);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x5297b7(0x87)),makeWorkspaceCommand(a86_0x5297b7(0xaf))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x45b5a0=a87_0x8967;(function(_0x13b710,_0x239b2d){const _0x43966a=a87_0x8967,_0x513ee7=_0x13b710();while(!![]){try{const _0x8021d1=-parseInt(_0x43966a(0x1a1))/0x1+parseInt(_0x43966a(0x1a0))/0x2+parseInt(_0x43966a(0x1b4))/0x3*(-parseInt(_0x43966a(0x1a9))/0x4)+parseInt(_0x43966a(0x1b3))/0x5*(-parseInt(_0x43966a(0x1a2))/0x6)+-parseInt(_0x43966a(0x1a4))/0x7+-parseInt(_0x43966a(0x19c))/0x8*(parseInt(_0x43966a(0x19d))/0x9)+-parseInt(_0x43966a(0x1b0))/0xa*(-parseInt(_0x43966a(0x1a3))/0xb);if(_0x8021d1===_0x239b2d)break;else _0x513ee7['push'](_0x513ee7['shift']());}catch(_0x4eda04){_0x513ee7['push'](_0x513ee7['shift']());}}}(a87_0x265c,0x874e9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a87_0x45b5a0(0x1ac),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a87_0x45b5a0(0x19b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x45b5a0(0x19f)],'importable':!![]},'pageSize':{'description':a87_0x45b5a0(0x1af),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x45b5a0(0x1b1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':'Override\x20SkillHub\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x45b5a0(0x1b5),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x45b5a0(0x1a8)],'importable':!![]},'locale':{'description':a87_0x45b5a0(0x1ab),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x45b5a0(0x1a5)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a87_0x45b5a0(0x1aa)](CONFIG_FIELD_SCHEMAS)[a87_0x45b5a0(0x199)](([,_0x4cf1f9])=>_0x4cf1f9['cliSettableTopLevel'])[a87_0x45b5a0(0x19e)](([_0x1e1264])=>_0x1e1264));function a87_0x8967(_0x4cc67c,_0x59e666){_0x4cc67c=_0x4cc67c-0x198;const _0x265cde=a87_0x265c();let _0x8967d3=_0x265cde[_0x4cc67c];return _0x8967d3;}export const CONFIG_ENUM_VALUES=Object[a87_0x45b5a0(0x198)](Object[a87_0x45b5a0(0x1aa)](CONFIG_FIELD_SCHEMAS)[a87_0x45b5a0(0x199)](([,_0x43bde5])=>_0x43bde5[a87_0x45b5a0(0x1a6)])['map'](([_0x202abf,_0x561f48])=>[_0x202abf,[..._0x561f48[a87_0x45b5a0(0x1a6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x45b5a0(0x1aa)](CONFIG_FIELD_SCHEMAS)[a87_0x45b5a0(0x199)](([,_0xf99da3])=>_0xf99da3[a87_0x45b5a0(0x1b2)])['map'](([_0x11afb3])=>_0x11afb3);export function getConfigFieldSchema(_0x24f4b5){return CONFIG_FIELD_SCHEMAS[_0x24f4b5];}export function getConfigEnumValues(_0x2ee0fd){const _0x31080b=a87_0x45b5a0;return getConfigFieldSchema(_0x2ee0fd)?.[_0x31080b(0x1a6)];}export function getConfigDefaultValue(_0xe5c0a3){return getConfigFieldSchema(_0xe5c0a3)?.['defaultValue'];}export function isTopLevelConfigKey(_0xc01aeb){const _0x39405b=a87_0x45b5a0;return TOP_LEVEL_CONFIG_KEYS[_0x39405b(0x1ae)](_0xc01aeb);}export function isLegacyCompatConfigKey(_0x5274c2){const _0x2780b8=a87_0x45b5a0;return getConfigFieldSchema(_0x5274c2)?.[_0x2780b8(0x1ad)]===!![];}function a87_0x265c(){const _0x101aa1=['1692859JCjzwN','locale','enumValues','join','riskLevel','36sHDYLF','entries','Locale','Target\x20environment','legacyCompatOnly','has','Default\x20page\x20size','1663870reEJkC','Override\x20API\x20domain','importable','15130qOqURr','140109RkvDLY','Risk\x20level','fromEntries','filter',';\x20local\x20alias:\x20apps.<alias>.appcode','Default\x20output\x20format','440312RGNkoU','18YTsglP','map','format','999038AkxIYN','29074yCRLcq','942dtemvg','88YfsXaL'];a87_0x265c=function(){return _0x101aa1;};return a87_0x265c();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x288918){const _0x5115b9=a87_0x45b5a0;return[..._0x288918][_0x5115b9(0x1a7)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5a7e41=a87_0x45b5a0;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x5a7e41(0x19a);}export function buildAppProfileListFields(_0x241dce){return{'env':_0x241dce,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a88_0x49074d=a88_0x11b8;(function(_0x420632,_0x261ca8){const _0x514d51=a88_0x11b8,_0x578e53=_0x420632();while(!![]){try{const _0x185e61=-parseInt(_0x514d51(0x1b6))/0x1*(-parseInt(_0x514d51(0x1b1))/0x2)+-parseInt(_0x514d51(0x1b4))/0x3+-parseInt(_0x514d51(0x1b7))/0x4*(-parseInt(_0x514d51(0x1be))/0x5)+-parseInt(_0x514d51(0x1b3))/0x6*(parseInt(_0x514d51(0x1b9))/0x7)+-parseInt(_0x514d51(0x1bd))/0x8*(-parseInt(_0x514d51(0x1bb))/0x9)+parseInt(_0x514d51(0x1b5))/0xa+-parseInt(_0x514d51(0x1ba))/0xb*(-parseInt(_0x514d51(0x1b8))/0xc);if(_0x185e61===_0x261ca8)break;else _0x578e53['push'](_0x578e53['shift']());}catch(_0x224f94){_0x578e53['push'](_0x578e53['shift']());}}}(a88_0x1499,0x404de));export const APP_PUBLISH_STATUS={'Published':a88_0x49074d(0x1b2),'Unpublished':'UNPUBLISH'};function a88_0x11b8(_0x4ed85e,_0x513231){_0x4ed85e=_0x4ed85e-0x1b1;const _0x1499f8=a88_0x1499();let _0x11b84e=_0x1499f8[_0x4ed85e];return _0x11b84e;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x49074d(0x1bc)];function a88_0x1499(){const _0x25ae22=['105934ZRPgoL','PUBLISHED','239790mWIlKJ','1474350XWkYxK','1119180aGBlxG','1jsXCuN','18928YeLwPH','1281636QLJZiU','7fYssvd','33GgxgTZ','9FEYdWq','Published','166872kzQKGm','305gCwmyB'];a88_0x1499=function(){return _0x25ae22;};return a88_0x1499();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x889dda=a89_0x3834;function a89_0x3834(_0x7484c0,_0x106a35){_0x7484c0=_0x7484c0-0xf5;const _0x3617d8=a89_0x3617();let _0x383438=_0x3617d8[_0x7484c0];return _0x383438;}(function(_0x239c06,_0x302da2){const _0x2ebe72=a89_0x3834,_0x2c2ad3=_0x239c06();while(!![]){try{const _0x4d3afe=-parseInt(_0x2ebe72(0xf9))/0x1*(-parseInt(_0x2ebe72(0xfe))/0x2)+-parseInt(_0x2ebe72(0xf8))/0x3*(-parseInt(_0x2ebe72(0xfd))/0x4)+parseInt(_0x2ebe72(0xf6))/0x5*(-parseInt(_0x2ebe72(0xfc))/0x6)+parseInt(_0x2ebe72(0xf7))/0x7+-parseInt(_0x2ebe72(0xff))/0x8+parseInt(_0x2ebe72(0xfb))/0x9+-parseInt(_0x2ebe72(0xfa))/0xa;if(_0x4d3afe===_0x302da2)break;else _0x2c2ad3['push'](_0x2c2ad3['shift']());}catch(_0x31aad2){_0x2c2ad3['push'](_0x2c2ad3['shift']());}}}(a89_0x3617,0x467e6));function a89_0x3617(){const _0x243865=['1349208zigNEc','18JCJGmD','3zXRRbf','1181710StEvdl','4086756lmVHCY','32628FAVlwp','24444jbMpFG','297606UevCAd','4435296esYrff','client-ak','155fQAypY'];a89_0x3617=function(){return _0x243865;};return a89_0x3617();}export const AUTH_MODE={'ClientAk':a89_0x889dda(0xf5)};export function isAuthMode(_0x1cb18f){return _0x1cb18f===AUTH_MODE['ClientAk'];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x4d6eb5=a90_0x10e5;(function(_0x3afb3e,_0x4a9ca6){const _0x50900f=a90_0x10e5,_0x521a77=_0x3afb3e();while(!![]){try{const _0x5081b6=-parseInt(_0x50900f(0x1f4))/0x1+parseInt(_0x50900f(0x1ec))/0x2*(-parseInt(_0x50900f(0x1e5))/0x3)+-parseInt(_0x50900f(0x20e))/0x4+parseInt(_0x50900f(0x200))/0x5*(-parseInt(_0x50900f(0x1df))/0x6)+-parseInt(_0x50900f(0x1fd))/0x7*(-parseInt(_0x50900f(0x1e2))/0x8)+-parseInt(_0x50900f(0x1fe))/0x9*(parseInt(_0x50900f(0x1f2))/0xa)+parseInt(_0x50900f(0x20b))/0xb;if(_0x5081b6===_0x4a9ca6)break;else _0x521a77['push'](_0x521a77['shift']());}catch(_0x4de6c2){_0x521a77['push'](_0x521a77['shift']());}}}(a90_0x3fe6,0x9643d));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a90_0x4d6eb5(0x1f9)];function a90_0x10e5(_0x2fdab7,_0x3a27a3){_0x2fdab7=_0x2fdab7-0x1df;const _0x3fe62d=a90_0x3fe6();let _0x10e542=_0x3fe62d[_0x2fdab7];return _0x10e542;}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x4d6eb5(0x208),'meowKey':a90_0x4d6eb5(0x208),'type':a90_0x4d6eb5(0x1e1),'description':a90_0x4d6eb5(0x205),'hint':a90_0x4d6eb5(0x1f8)},{'name':a90_0x4d6eb5(0x1fa),'meowKey':a90_0x4d6eb5(0x1fa),'type':'string','description':a90_0x4d6eb5(0x1f7),'hint':a90_0x4d6eb5(0x1eb)},{'name':a90_0x4d6eb5(0x1e3),'meowKey':a90_0x4d6eb5(0x1e3),'type':a90_0x4d6eb5(0x1e1),'description':'Environment','hint':a90_0x4d6eb5(0x1ee)},{'name':'format','meowKey':a90_0x4d6eb5(0x1f1),'type':a90_0x4d6eb5(0x1e1),'description':'Output\x20format','hint':a90_0x4d6eb5(0x1e8)},{'name':'jq','meowKey':'jq','type':a90_0x4d6eb5(0x1e1),'description':a90_0x4d6eb5(0x1ff),'hint':'<expr>'},{'name':a90_0x4d6eb5(0x202),'meowKey':a90_0x4d6eb5(0x1e0),'type':a90_0x4d6eb5(0x1ed),'description':a90_0x4d6eb5(0x1fc)},{'name':'yes','meowKey':a90_0x4d6eb5(0x209),'type':a90_0x4d6eb5(0x1ed),'description':a90_0x4d6eb5(0x1f3)},{'name':a90_0x4d6eb5(0x206),'meowKey':a90_0x4d6eb5(0x1e7),'type':a90_0x4d6eb5(0x1ed),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a90_0x4d6eb5(0x204),'meowKey':'global','type':'boolean','description':a90_0x4d6eb5(0x1fb)},{'name':'ci','meowKey':'ci','type':'boolean','description':a90_0x4d6eb5(0x20d),'hidden':!![]},{'name':a90_0x4d6eb5(0x1f6),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':'id','meowKey':'id','type':a90_0x4d6eb5(0x1e1),'description':a90_0x4d6eb5(0x1e9),'hidden':!![]},{'name':'name','meowKey':a90_0x4d6eb5(0x1f0),'type':a90_0x4d6eb5(0x1e1),'description':a90_0x4d6eb5(0x1e4),'hidden':!![]},{'name':a90_0x4d6eb5(0x1ea),'meowKey':a90_0x4d6eb5(0x1ea),'type':a90_0x4d6eb5(0x1e1),'description':a90_0x4d6eb5(0x203),'hidden':!![]},{'name':'params','meowKey':a90_0x4d6eb5(0x1ef),'type':a90_0x4d6eb5(0x1e1),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a90_0x4d6eb5(0x1e6),'meowKey':'verbose','type':a90_0x4d6eb5(0x1ed),'description':'Verbose\x20output','hidden':!![]},{'name':a90_0x4d6eb5(0x201),'meowKey':a90_0x4d6eb5(0x201),'type':a90_0x4d6eb5(0x1ed),'description':a90_0x4d6eb5(0x207),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a90_0x4d6eb5(0x1fa),'env','format','jq','dry-run',a90_0x4d6eb5(0x209),a90_0x4d6eb5(0x206),'ci']);function a90_0x3fe6(){const _0x28ea8f=['<code>','cliBinName','app','Use\x20global\x20config\x20scope','Preview\x20operation\x20without\x20executing','7JOKiMp','4923RppNXp','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','5xSRCZg','clear','dry-run','SQL\x20query\x20code','global','Override\x20appcode','non-interactive','Clear\x20output','appcode','yes','map','41683664tvfIjx','type','Alias\x20for\x20--non-interactive','4333224DBDkTl','fromEntries','1866108VTiUbL','dryRun','string','276232QpPspP','env','Name\x20filter','527754oLzJzm','verbose','nonInteractive','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','sqlcode','<name>','12Xozamd','boolean','production\x20|\x20development\x20|\x20daily','params','name','format','8020tAuDXy','Skip\x20confirmation\x20for\x20high-risk\x20writes','319942KwSvZi','meowKey','help','Select\x20app\x20profile\x20by\x20name'];a90_0x3fe6=function(){return _0x28ea8f;};return a90_0x3fe6();}export function buildMeowFlags(){const _0x20a0ee=a90_0x4d6eb5;return Object[_0x20a0ee(0x20f)](GLOBAL_FLAGS[_0x20a0ee(0x20a)](_0x321267=>[_0x321267[_0x20a0ee(0x1f5)],{'type':_0x321267[_0x20a0ee(0x20c)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x4e61(){const _0x5d1d45=['10ZXsHwm','en-US','8466XMFKWd','16zNTQtL','257226oonlLm','4752396GfCEqM','write','133746VvBiLS','4gRpiNH','15179186QIOpFO','3129QImLCP','compress','production','4171440GDUDQz','84495ycLvfX'];a91_0x4e61=function(){return _0x5d1d45;};return a91_0x4e61();}function a91_0x2601(_0x129ac3,_0x4882a6){_0x129ac3=_0x129ac3-0x19e;const _0x4e61e2=a91_0x4e61();let _0x2601ea=_0x4e61e2[_0x129ac3];return _0x2601ea;}const a91_0x3ab703=a91_0x2601;(function(_0x1a9c65,_0x1c3a7a){const _0x2e5fa0=a91_0x2601,_0x1877a8=_0x1a9c65();while(!![]){try{const _0x4c9663=parseInt(_0x2e5fa0(0x1a5))/0x1*(-parseInt(_0x2e5fa0(0x1a6))/0x2)+parseInt(_0x2e5fa0(0x1a2))/0x3+parseInt(_0x2e5fa0(0x1a1))/0x4*(-parseInt(_0x2e5fa0(0x1ac))/0x5)+parseInt(_0x2e5fa0(0x1a0))/0x6*(-parseInt(_0x2e5fa0(0x1a8))/0x7)+parseInt(_0x2e5fa0(0x1ab))/0x8+parseInt(_0x2e5fa0(0x1a3))/0x9*(-parseInt(_0x2e5fa0(0x19e))/0xa)+parseInt(_0x2e5fa0(0x1a7))/0xb;if(_0x4c9663===_0x1c3a7a)break;else _0x1877a8['push'](_0x1877a8['shift']());}catch(_0x191414){_0x1877a8['push'](_0x1877a8['shift']());}}}(a91_0x4e61,0x786c1));export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a91_0x3ab703(0x1aa),'format':a91_0x3ab703(0x1a9),'locale':a91_0x3ab703(0x19f),'riskLevel':a91_0x3ab703(0x1a4)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x36e47d=a92_0x161c;(function(_0x15608e,_0x351184){const _0x13d550=a92_0x161c,_0x3e4bfd=_0x15608e();while(!![]){try{const _0x1d3343=parseInt(_0x13d550(0x8d))/0x1+-parseInt(_0x13d550(0x92))/0x2+parseInt(_0x13d550(0x8b))/0x3*(parseInt(_0x13d550(0x8c))/0x4)+-parseInt(_0x13d550(0x8e))/0x5+-parseInt(_0x13d550(0x8a))/0x6*(parseInt(_0x13d550(0x8f))/0x7)+-parseInt(_0x13d550(0x91))/0x8+parseInt(_0x13d550(0x90))/0x9;if(_0x1d3343===_0x351184)break;else _0x3e4bfd['push'](_0x3e4bfd['shift']());}catch(_0x1060de){_0x3e4bfd['push'](_0x3e4bfd['shift']());}}}(a92_0x4152,0x36901));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG['npmPackageName'];function a92_0x4152(){const _0x207cb2=['2564ozUYQx','42588BkUsXN','1279865uupUmA','782803sBzuQR','10091286aQeyWs','636368NDRPrB','863630OQnRSf','npmRegistryBaseUrl','12RiisGM','237aqaYCy'];a92_0x4152=function(){return _0x207cb2;};return a92_0x4152();}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];function a92_0x161c(_0x1b500c,_0x45d3a7){_0x1b500c=_0x1b500c-0x8a;const _0x415273=a92_0x4152();let _0x161c00=_0x415273[_0x1b500c];return _0x161c00;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x36e47d(0x93)];
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x31411a=a93_0x5b1a;function a93_0x5b1a(_0x3b549f,_0xc05d58){_0x3b549f=_0x3b549f-0x1d1;const _0x3510e9=a93_0x3510();let _0x5b1ae4=_0x3510e9[_0x3b549f];return _0x5b1ae4;}(function(_0xd6d140,_0xde78a8){const _0xe4aa48=a93_0x5b1a,_0x320942=_0xd6d140();while(!![]){try{const _0x5a6b8e=parseInt(_0xe4aa48(0x1e6))/0x1*(parseInt(_0xe4aa48(0x1dd))/0x2)+parseInt(_0xe4aa48(0x1e4))/0x3*(-parseInt(_0xe4aa48(0x1d6))/0x4)+parseInt(_0xe4aa48(0x1d8))/0x5*(-parseInt(_0xe4aa48(0x1d5))/0x6)+-parseInt(_0xe4aa48(0x1d9))/0x7*(-parseInt(_0xe4aa48(0x1e0))/0x8)+-parseInt(_0xe4aa48(0x1d3))/0x9+-parseInt(_0xe4aa48(0x1e3))/0xa+-parseInt(_0xe4aa48(0x1df))/0xb*(-parseInt(_0xe4aa48(0x1d4))/0xc);if(_0x5a6b8e===_0xde78a8)break;else _0x320942['push'](_0x320942['shift']());}catch(_0x3d8564){_0x320942['push'](_0x320942['shift']());}}}(a93_0x3510,0x19456));import{getEnv,isProduction}from'../constant/env.js';function a93_0x3510(){const _0x14509c=['runtime','25IOuPCU','924ocdigt','domains','userDomain','runtimeDomain','61682PyLknp','skillHubDomain','66zluQDL','5856SXnZfv','skillhub','nonProduction','1032790MIDxiO','54KsRtMp','user','4sGcBCc','api','production','753444sAdaSZ','374568diqcRA','18318BaTfdz','22556mvARUN'];a93_0x3510=function(){return _0x14509c;};return a93_0x3510();}import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x5697f5){const _0x176255=a93_0x5b1a;customApiDomain=_0x5697f5?.['apiDomain'],customUserDomain=_0x5697f5?.[_0x176255(0x1db)],customRuntimeDomain=_0x5697f5?.[_0x176255(0x1dc)],customSkillHubDomain=_0x5697f5?.[_0x176255(0x1de)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x31411a(0x1d2)][a93_0x31411a(0x1e5)]:PRODUCT_CONFIG[a93_0x31411a(0x1da)][a93_0x31411a(0x1e2)][a93_0x31411a(0x1e5)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x31411a(0x1d2)][a93_0x31411a(0x1d1)]:PRODUCT_CONFIG[a93_0x31411a(0x1da)][a93_0x31411a(0x1e2)][a93_0x31411a(0x1d1)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x31411a(0x1da)]['production'][a93_0x31411a(0x1d7)]:PRODUCT_CONFIG[a93_0x31411a(0x1da)][a93_0x31411a(0x1e2)][a93_0x31411a(0x1d7)]);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x31411a(0x1da)]['production']['skillhub']:PRODUCT_CONFIG['domains'][a93_0x31411a(0x1e2)][a93_0x31411a(0x1e1)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94_0x3e36(){const _0x261ee7=['2400937XAIiIZ','44657mTXwVG','112lspcCx','online','58068tmGeTo','development','ENV','30xHovyv','241345bKIAuu','dev','2037492YuVuKX','332404QXLiEm','production','daily','90WQKJxT','21dAfVZY','1065933PWFtWP'];a94_0x3e36=function(){return _0x261ee7;};return a94_0x3e36();}const a94_0x520116=a94_0x4def;(function(_0x56163a,_0x53c996){const _0x3332d4=a94_0x4def,_0x2c54ce=_0x56163a();while(!![]){try{const _0x58ac6b=-parseInt(_0x3332d4(0x17b))/0x1*(-parseInt(_0x3332d4(0x170))/0x2)+-parseInt(_0x3332d4(0x178))/0x3*(-parseInt(_0x3332d4(0x174))/0x4)+parseInt(_0x3332d4(0x171))/0x5+-parseInt(_0x3332d4(0x173))/0x6+parseInt(_0x3332d4(0x17a))/0x7+-parseInt(_0x3332d4(0x17c))/0x8*(parseInt(_0x3332d4(0x17e))/0x9)+parseInt(_0x3332d4(0x177))/0xa*(-parseInt(_0x3332d4(0x179))/0xb);if(_0x58ac6b===_0x53c996)break;else _0x2c54ce['push'](_0x2c54ce['shift']());}catch(_0x432667){_0x2c54ce['push'](_0x2c54ce['shift']());}}}(a94_0x3e36,0x53331));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a94_0x520116(0x175),a94_0x520116(0x16e),a94_0x520116(0x176)];export function normalizeEnv(_0x23f0dc){const _0x36ea82=a94_0x520116;return _0x23f0dc===_0x36ea82(0x17d)?_0x36ea82(0x175):_0x23f0dc;}export function isProduction(_0x1073af){return normalizeEnv(_0x1073af)==='production';}export function isDaily(_0x5c7f00){const _0x293d4c=a94_0x520116;return normalizeEnv(_0x5c7f00)===_0x293d4c(0x176);}export function isDev(_0x18289f){const _0x5c878f=a94_0x520116,_0x5db3ba=normalizeEnv(_0x18289f);return _0x5db3ba===_0x5c878f(0x16e)||_0x5db3ba===_0x5c878f(0x172);}function a94_0x4def(_0x37992b,_0x33e7d7){_0x37992b=_0x37992b-0x16e;const _0x3e36d8=a94_0x3e36();let _0x4defb1=_0x3e36d8[_0x37992b];return _0x4defb1;}let env=normalizeEnv(productEnv(a94_0x520116(0x16f))||a94_0x520116(0x175));export function getEnv(){return env;}export function initEnv(_0x45a0b5){env=normalizeEnv(_0x45a0b5);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a95_0x51c8(_0xdb4ffe,_0x2b2f0d){_0xdb4ffe=_0xdb4ffe-0x9c;const _0x44c806=a95_0x44c8();let _0x51c898=_0x44c806[_0xdb4ffe];return _0x51c898;}const a95_0x5a373d=a95_0x51c8;function a95_0x44c8(){const _0x147fdf=['104xmBwoN','100275KaccYw','184420yJZIWP','100413HKOORn','2YlQebS','2981fPDMLo','742140EFnPBC','5028NHNfeJ','66SYZIMU','10ViahTB','124889KGvlFu','json','472540dvNgVH'];a95_0x44c8=function(){return _0x147fdf;};return a95_0x44c8();}(function(_0x2850ed,_0x4fccc8){const _0x37ea7c=a95_0x51c8,_0x3dd67c=_0x2850ed();while(!![]){try{const _0x505e34=-parseInt(_0x37ea7c(0xa8))/0x1*(-parseInt(_0x37ea7c(0xa2))/0x2)+parseInt(_0x37ea7c(0xa4))/0x3+-parseInt(_0x37ea7c(0xa0))/0x4*(parseInt(_0x37ea7c(0xa7))/0x5)+-parseInt(_0x37ea7c(0xa6))/0x6*(parseInt(_0x37ea7c(0x9f))/0x7)+parseInt(_0x37ea7c(0x9e))/0x8*(-parseInt(_0x37ea7c(0xa1))/0x9)+parseInt(_0x37ea7c(0x9d))/0xa+parseInt(_0x37ea7c(0xa3))/0xb*(parseInt(_0x37ea7c(0xa5))/0xc);if(_0x505e34===_0x4fccc8)break;else _0x3dd67c['push'](_0x3dd67c['shift']());}catch(_0x3470e6){_0x3dd67c['push'](_0x3dd67c['shift']());}}}(a95_0x44c8,0x21c06));export const OUTPUT_FORMAT_VALUES=[a95_0x5a373d(0x9c),'pretty','compress'];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96_0x39f83c=a96_0x1793;(function(_0x335845,_0x5a3a05){const _0x3ecf91=a96_0x1793,_0x5386e0=_0x335845();while(!![]){try{const _0x189d97=parseInt(_0x3ecf91(0xbc))/0x1+parseInt(_0x3ecf91(0xbd))/0x2+parseInt(_0x3ecf91(0xcb))/0x3+parseInt(_0x3ecf91(0xc5))/0x4+parseInt(_0x3ecf91(0xd0))/0x5*(parseInt(_0x3ecf91(0xc1))/0x6)+parseInt(_0x3ecf91(0xc8))/0x7*(parseInt(_0x3ecf91(0xc6))/0x8)+-parseInt(_0x3ecf91(0xc9))/0x9*(parseInt(_0x3ecf91(0xcc))/0xa);if(_0x189d97===_0x5a3a05)break;else _0x5386e0['push'](_0x5386e0['shift']());}catch(_0x53df5d){_0x5386e0['push'](_0x5386e0['shift']());}}}(a96_0xad75,0x8dab7));export const PRODUCT_CONFIG={'cliBinName':a96_0x39f83c(0xc2),'cliDisplayName':a96_0x39f83c(0xce),'npmPackageName':a96_0x39f83c(0xd3),'skillSource':a96_0x39f83c(0xc7),'internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':'lovrabet','npmRegistryBaseUrl':a96_0x39f83c(0xd1),'envPrefix':a96_0x39f83c(0xc0),'legacyEnvPrefixes':['RABETBASE'],'configFileNames':[a96_0x39f83c(0xbe),a96_0x39f83c(0xd2)],'newConfigFileName':a96_0x39f83c(0xbe),'homeDirName':a96_0x39f83c(0xcd),'logFileName':a96_0x39f83c(0xc4),'invokeSource':a96_0x39f83c(0xbb),'userCenterDisplayName':a96_0x39f83c(0xca),'skipNpxSkillsEnvSuffix':'SKIP_NPX_SKILLS','domains':{'production':{'user':'https://user.lovrabet.com','api':a96_0x39f83c(0xcf),'runtime':'https://runtime.lovrabet.com','skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a96_0x39f83c(0xbf),'api':a96_0x39f83c(0xd4),'runtime':'https://daily-runtime.lovrabet.com','skillhub':a96_0x39f83c(0xba)}},'accessKeyCreatePath':a96_0x39f83c(0xc3)};export function productEnvName(_0x223c21){return PRODUCT_CONFIG['envPrefix']+'_'+_0x223c21;}function a96_0x1793(_0x424dcd,_0x1e3be0){_0x424dcd=_0x424dcd-0xba;const _0xad75c2=a96_0xad75();let _0x1793c6=_0xad75c2[_0x424dcd];return _0x1793c6;}export function productEnvNames(_0x2dbbe2){return[productEnvName(_0x2dbbe2),...PRODUCT_CONFIG['legacyEnvPrefixes']['map'](_0x1a1586=>_0x1a1586+'_'+_0x2dbbe2)];}export function productEnv(_0x315a05){for(const _0xbb1746 of productEnvNames(_0x315a05)){const _0xbabfd2=process.env[_0xbb1746];if(_0xbabfd2!==undefined)return _0xbabfd2;}return undefined;}function a96_0xad75(){const _0x413047=['1063692zuqGUn','10RitmPF','.lovrabet','Lovrabet\x20Runtime\x20CLI','https://api.lovrabet.com','85giUHOi','https://registry.npmjs.org','.lovrabetrc','@lovrabet/lovrabet-cli','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.com','cli:lovrabet-runtime','106192YlkQIu','1017346Ytzhsw','.lovrabet.json','https://user-daily.lovrabet.com','LOVRABET','210318yrHurE','lovrabet','/user/ak','.lovrabet-runtime.log','3392116DPrYWm','8NFChqL','lovrabet/lovrabet-cli','5891522FEojaF','24072534RTZMbC','Lovrabet\x20User\x20Center'];a96_0xad75=function(){return _0x413047;};return a96_0xad75();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x508bf1=a97_0x1bb1;function a97_0x2d36(){const _0x2a585c=['high-risk-write','16899021ESszjK','50ljzkPx','4108041fMcrgL','43188996GdEWxo','2cYmJaX','6GHYGlY','4320415acIqGS','write','1216601dvRMTo','10CGFawj','720676otRiKO','1057326YgaOJM','8nSBNiu'];a97_0x2d36=function(){return _0x2a585c;};return a97_0x2d36();}function a97_0x1bb1(_0x6fa6bb,_0x10e1b1){_0x6fa6bb=_0x6fa6bb-0x91;const _0x2d36de=a97_0x2d36();let _0x1bb16d=_0x2d36de[_0x6fa6bb];return _0x1bb16d;}(function(_0x45d4b9,_0x3687a7){const _0x9af2d6=a97_0x1bb1,_0x120f42=_0x45d4b9();while(!![]){try{const _0x409c32=-parseInt(_0x9af2d6(0x9c))/0x1*(parseInt(_0x9af2d6(0x98))/0x2)+-parseInt(_0x9af2d6(0x99))/0x3*(parseInt(_0x9af2d6(0x9e))/0x4)+parseInt(_0x9af2d6(0x9d))/0x5*(-parseInt(_0x9af2d6(0x91))/0x6)+-parseInt(_0x9af2d6(0x96))/0x7+parseInt(_0x9af2d6(0x92))/0x8*(parseInt(_0x9af2d6(0x94))/0x9)+-parseInt(_0x9af2d6(0x95))/0xa*(parseInt(_0x9af2d6(0x9a))/0xb)+parseInt(_0x9af2d6(0x97))/0xc;if(_0x409c32===_0x3687a7)break;else _0x120f42['push'](_0x120f42['shift']());}catch(_0x52b351){_0x120f42['push'](_0x120f42['shift']());}}}(a97_0x2d36,0xf354b));export const RISK_LEVEL_VALUES=['read',a97_0x508bf1(0x9b),a97_0x508bf1(0x93)];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x2daeb4=a98_0x22b0;(function(_0x5487c1,_0x4c7a0e){const _0x23b760=a98_0x22b0,_0x2ac54b=_0x5487c1();while(!![]){try{const _0x1428d4=-parseInt(_0x23b760(0x6e))/0x1*(-parseInt(_0x23b760(0x65))/0x2)+parseInt(_0x23b760(0x70))/0x3+-parseInt(_0x23b760(0x6c))/0x4+-parseInt(_0x23b760(0x6f))/0x5+-parseInt(_0x23b760(0x6d))/0x6*(parseInt(_0x23b760(0x68))/0x7)+-parseInt(_0x23b760(0x69))/0x8*(-parseInt(_0x23b760(0x67))/0x9)+-parseInt(_0x23b760(0x71))/0xa*(-parseInt(_0x23b760(0x64))/0xb);if(_0x1428d4===_0x4c7a0e)break;else _0x2ac54b['push'](_0x2ac54b['shift']());}catch(_0x140e26){_0x2ac54b['push'](_0x2ac54b['shift']());}}}(a98_0x2ea1,0x9a708));function a98_0x2ea1(){const _0x346a12=['1007852lgcQKL','24vKfrKc','37SDXLnY','2739070tobXIo','1934928alCJVU','65560rOoHxd','accessKeyCreatePath','1980xEVGkM','7002jesIZy','user','2311398JWdtHI','1812783hZWqCv','16IooZRD','domains','production'];a98_0x2ea1=function(){return _0x346a12;};return a98_0x2ea1();}import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x22b0(_0x522043,_0x9389f1){_0x522043=_0x522043-0x64;const _0x2ea1aa=a98_0x2ea1();let _0x22b0d0=_0x2ea1aa[_0x522043];return _0x22b0d0;}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x2daeb4(0x6a)][a98_0x2daeb4(0x6b)][a98_0x2daeb4(0x66)]+PRODUCT_CONFIG[a98_0x2daeb4(0x72)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99_0x4e6e73=a99_0x3c5c;(function(_0x1de17e,_0x4bb558){const _0x30d056=a99_0x3c5c,_0x6b2c27=_0x1de17e();while(!![]){try{const _0x3eb2a=parseInt(_0x30d056(0x219))/0x1*(parseInt(_0x30d056(0x204))/0x2)+parseInt(_0x30d056(0x20d))/0x3*(-parseInt(_0x30d056(0x1f3))/0x4)+-parseInt(_0x30d056(0x20b))/0x5+parseInt(_0x30d056(0x20a))/0x6+-parseInt(_0x30d056(0x1e5))/0x7+parseInt(_0x30d056(0x208))/0x8+-parseInt(_0x30d056(0x21f))/0x9;if(_0x3eb2a===_0x4bb558)break;else _0x6b2c27['push'](_0x6b2c27['shift']());}catch(_0x1933ee){_0x6b2c27['push'](_0x6b2c27['shift']());}}}(a99_0x2cbf,0xc6b67));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a99_0x4e6e73(0x1f9)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x4e6e73(0x1fc)];function resolveConfigPath(_0x3a9c1d){for(const _0x2079a7 of CONFIG_NAMES){const _0xaf35ee=resolve(_0x3a9c1d,_0x2079a7);if(existsSync(_0xaf35ee))return _0xaf35ee;}return undefined;}export function resolveWriteConfigPath(_0x31c518){const _0x1dfee4=a99_0x4e6e73,_0x299b8c=_0x31c518===_0x1dfee4(0x226)?process[_0x1dfee4(0x1f2)]():homedir(),_0x3e3f9e=resolveConfigPath(_0x299b8c);return _0x3e3f9e??resolve(_0x299b8c,NEW_CONFIG_NAME);}export function readConfigFile(_0x333ee8){const _0x5c8c7a=a99_0x4e6e73;try{if(existsSync(_0x333ee8)){const _0x2bebb2=readFileSync(_0x333ee8,{'encoding':_0x5c8c7a(0x223)});if(_0x2bebb2){const _0x9525eb=JSON['parse'](_0x2bebb2);return migrateOnlineEnv(_0x333ee8,_0x9525eb),_0x9525eb;}}}catch{}return{};}function migrateOnlineEnv(_0xc8ee37,_0x1b397e){const _0x35822c=a99_0x4e6e73;let _0x5d29d6=![];_0x1b397e['env']===_0x35822c(0x221)&&(_0x1b397e['env']=_0x35822c(0x202),_0x5d29d6=!![]);if(_0x1b397e[_0x35822c(0x1e9)]&&typeof _0x1b397e[_0x35822c(0x1e9)]==='object')for(const _0x5978d8 of Object[_0x35822c(0x224)](_0x1b397e[_0x35822c(0x1e9)])){_0x5978d8&&_0x5978d8[_0x35822c(0x212)]===_0x35822c(0x221)&&(_0x5978d8[_0x35822c(0x212)]=_0x35822c(0x202),_0x5d29d6=!![]);}if(_0x5d29d6)try{writeConfigFile(_0xc8ee37,_0x1b397e);}catch{}}export function writeConfigFile(_0x3faf09,_0x27431b){const _0x1b7d77=a99_0x4e6e73,_0x27b58e=dirname(_0x3faf09);!existsSync(_0x27b58e)&&mkdirSync(_0x27b58e,{'recursive':!![]});const _0x96e8ef=_0x3faf09+_0x1b7d77(0x200);try{writeFileSync(_0x96e8ef,JSON['stringify'](_0x27431b,null,0x2)+'\x0a',{'encoding':_0x1b7d77(0x223),'mode':0x180});try{renameSync(_0x96e8ef,_0x3faf09);}catch(_0xf5179b){if(_0xf5179b[_0x1b7d77(0x1f7)]==='EPERM'||_0xf5179b[_0x1b7d77(0x1f7)]===_0x1b7d77(0x227)||_0xf5179b[_0x1b7d77(0x1f7)]===_0x1b7d77(0x215)){writeFileSync(_0x3faf09,JSON['stringify'](_0x27431b,null,0x2)+'\x0a',{'encoding':_0x1b7d77(0x223)});try{unlinkSync(_0x96e8ef);}catch{}}else throw _0xf5179b;}}catch(_0x3af7e1){try{unlinkSync(_0x96e8ef);}catch{}throw _0x3af7e1;}}export function isNonInteractiveMode(_0x3f9266){const _0xecc382=a99_0x4e6e73;return!!(_0x3f9266[_0xecc382(0x213)]||_0x3f9266['ci']||productEnvNames('CI')[_0xecc382(0x21e)](_0x15a38e=>process.env[_0x15a38e]===_0xecc382(0x1f5))||process.env.CI==='true'||!process[_0xecc382(0x207)][_0xecc382(0x216)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1899d3=a99_0x4e6e73;if(!process['stdin'][_0x1899d3(0x216)])return![];try{const _0x2c19c2=process['stdin']['isRaw'];return process[_0x1899d3(0x210)][_0x1899d3(0x218)](!![]),process[_0x1899d3(0x210)][_0x1899d3(0x218)](_0x2c19c2??![]),!![];}catch{return![];}}export async function createContext(_0x1a13fb){const _0xd3ed2f=a99_0x4e6e73,_0x65b247=readRawConfig(),_0x49d2e2=buildConfig(_0x65b247,_0x1a13fb);await initGlobalEnvironment(_0x49d2e2);const {getUserDomain:_0x1de407,getApiDomain:_0x33c93d}=await import(_0xd3ed2f(0x217)),_0x5baedb={'apiDomain':_0x33c93d(),'userDomain':_0x1de407()},_0x5d08d9=await buildAuth(_0x49d2e2);logger[_0xd3ed2f(0x1ec)](process[_0xd3ed2f(0x1f2)]());const _0x3665ea=(CLI_BIN_NAME+'\x20'+process[_0xd3ed2f(0x1f8)][_0xd3ed2f(0x20f)](0x2)['join']('\x20'))[_0xd3ed2f(0x203)]();logger[_0xd3ed2f(0x1e6)](_0x3665ea);const _0x503b90=isNonInteractiveMode(_0x1a13fb);return{'config':_0x49d2e2,'auth':_0x5d08d9,'logger':logger,'env':_0x5baedb,'nonInteractive':_0x503b90};}export function buildConfigFromFlags(_0x5b2f49){return buildConfig(readRawConfig(),_0x5b2f49);}export function getLocalAppAliases(_0x302fcf){const _0x17a543=a99_0x4e6e73;return _0x302fcf[_0x17a543(0x1e9)]&&typeof _0x302fcf[_0x17a543(0x1e9)]===_0x17a543(0x222)?_0x302fcf['apps']:{};}export function resolveLocalAppAliasCode(_0x43f814,_0xe52eb0){const _0x37f34f=a99_0x4e6e73;if(!_0xe52eb0)return undefined;const _0x2bde7a=getLocalAppAliases(_0x43f814)[_0xe52eb0],_0x4e2092=_0x2bde7a?.[_0x37f34f(0x1fa)];return typeof _0x4e2092===_0x37f34f(0x21a)&&_0x4e2092['trim']()?_0x4e2092[_0x37f34f(0x203)]():undefined;}export function readAppCodeFromConfig(){const _0x29c6f0=a99_0x4e6e73,_0x521130=readRawConfig(),_0x1e0b67=_0x521130[_0x29c6f0(0x1fa)]??_0x521130[_0x29c6f0(0x1f0)];if(typeof _0x1e0b67===_0x29c6f0(0x21a)&&_0x1e0b67[_0x29c6f0(0x203)]())return _0x1e0b67[_0x29c6f0(0x203)]();const _0x1ed207=resolveLocalAppAliasCode(_0x521130,typeof _0x521130[_0x29c6f0(0x1fd)]===_0x29c6f0(0x21a)?_0x521130[_0x29c6f0(0x1fd)]:undefined);if(_0x1ed207)return _0x1ed207;const _0x4e783b=normalizeEnv(String(_0x521130[_0x29c6f0(0x212)]||_0x29c6f0(0x202))),_0xc67c98=isDaily(_0x4e783b)?_0x29c6f0(0x205):isDev(_0x4e783b)?_0x29c6f0(0x1ea):'production',_0xa25814=resolveCachedAppCode(typeof _0x521130[_0x29c6f0(0x1fd)]===_0x29c6f0(0x21a)?_0x521130[_0x29c6f0(0x1fd)]:undefined,_0xc67c98,typeof _0x521130[_0x29c6f0(0x20c)]==='string'?_0x521130[_0x29c6f0(0x20c)]:undefined);if(_0xa25814)return _0xa25814;const _0x22960c=Object['values'](getLocalAppAliases(_0x521130))[_0x29c6f0(0x1fb)](_0x4c674a=>_0x4c674a?.[_0x29c6f0(0x1fa)]);return typeof _0x22960c?.[_0x29c6f0(0x1fa)]===_0x29c6f0(0x21a)&&_0x22960c[_0x29c6f0(0x1fa)][_0x29c6f0(0x203)]()?_0x22960c[_0x29c6f0(0x1fa)][_0x29c6f0(0x203)]():undefined;}export function readScopedConfig(_0x3b9633){const _0x2e4c7d=a99_0x4e6e73,_0x1e7b9a=_0x3b9633[_0x2e4c7d(0x1f1)]?_0x2e4c7d(0x1f1):_0x2e4c7d(0x226);return readConfigFile(resolveWriteConfigPath(_0x1e7b9a));}export function writeScopedConfig(_0x31a35a,_0xb3e421){const _0x5505c7=a99_0x4e6e73,_0x554e07=_0xb3e421[_0x5505c7(0x1f1)]?_0x5505c7(0x1f1):_0x5505c7(0x226);writeConfigFile(resolveWriteConfigPath(_0x554e07),_0x31a35a);}export async function initGlobalEnvironment(_0x357f11){const _0xbbda45=a99_0x4e6e73,{initEnv:_0x2f8594}=await import('./constant/env.js');_0x2f8594(_0x357f11[_0xbbda45(0x212)]);const {initDomains:_0x31d6a8}=await import('./constant/domain.js');_0x31d6a8({'apiDomain':_0x357f11[_0xbbda45(0x1e8)][_0xbbda45(0x1eb)]||_0x357f11[_0xbbda45(0x1e8)][_0xbbda45(0x220)]||undefined,'userDomain':_0x357f11[_0xbbda45(0x1e8)]['userDomain']||undefined,'runtimeDomain':_0x357f11[_0xbbda45(0x1e8)]['runtimeDomain']||undefined,'skillHubDomain':_0x357f11['raw']['skillHubDomain']||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4f73bb){const _0x5939f4=a99_0x4e6e73;if(!existsSync(_0x4f73bb))return{'status':_0x5939f4(0x206)};try{const _0x398ac1=readFileSync(_0x4f73bb,{'encoding':_0x5939f4(0x223)});if(!_0x398ac1?.['trim']())return{'status':_0x5939f4(0x201)};const _0x3ddf5d=JSON[_0x5939f4(0x225)](_0x398ac1);return{'status':'ok','data':_0x3ddf5d};}catch(_0x22c522){return{'status':'error','message':_0x22c522 instanceof Error?_0x22c522['message']:String(_0x22c522)};}}export function loadRawConfigLayers(_0x45180e){const _0x367f3f=a99_0x4e6e73;let _0x55a898={},_0x1cccc8={},_0x1939df,_0x469dca;try{_0x1939df=resolveConfigPath(homedir());if(_0x1939df){const _0x2fdbab=readFileSync(_0x1939df,{'encoding':'utf8'});if(_0x2fdbab)_0x55a898=JSON[_0x367f3f(0x225)](_0x2fdbab);}}catch{}try{const _0x1025cc=_0x45180e||process[_0x367f3f(0x1f2)]();_0x469dca=resolveConfigPath(_0x1025cc);if(_0x469dca){const _0x18cb4f=readFileSync(_0x469dca,{'encoding':'utf8'});if(_0x18cb4f)_0x1cccc8=JSON[_0x367f3f(0x225)](_0x18cb4f);}}catch{}return{'globalPath':_0x1939df,'projectPath':_0x469dca,'globalConfig':_0x55a898,'projectConfig':_0x1cccc8};}function mergeRawConfigLayers(_0x4a7793){const _0x3060ca=a99_0x4e6e73,{globalConfig:_0x6e4e4d,projectConfig:_0xaaa669}=_0x4a7793;if(_0xaaa669[_0x3060ca(0x21b)]===![]){const _0x4c3e55={..._0xaaa669};return delete _0x4c3e55[_0x3060ca(0x21b)],_0x4c3e55;}const _0x44921b={..._0x6e4e4d,..._0xaaa669};if(_0x3060ca(0x1fd)in _0xaaa669)_0x44921b[_0x3060ca(0x1fd)]=_0xaaa669[_0x3060ca(0x1fd)];else _0x6e4e4d[_0x3060ca(0x1fd)]&&(_0x44921b['defaultApp']=_0x6e4e4d[_0x3060ca(0x1fd)]);return _0x44921b;}export function isInProject(){return!!getProjectConfigPath();}function a99_0x2cbf(){const _0x51a9d5=['setLogPath','top-level','high-risk-write','explicit','app','global','cwd','24nyaebT','riskLevel','true','APP','code','argv','configFileNames','appcode','find','newConfigFileName','defaultApp','write','VERBOSE','.tmp','empty','production','trim','2DCQwSH','daily','missing','stdout','9528352zTTfhY','format','7155606aBOUbs','1923375sKwUmJ','accessKey','510519pRBblg','APPCODE','slice','stdin','locale','env','nonInteractive','projectConfig','EACCES','isTTY','./constant/domain.js','setRawMode','662455xMmpuB','string','inherit','pageSize','FORMAT','some','1901709eGESvL','host','online','object','utf8','values','parse','project','EXDEV','PAGE_SIZE','4306113VLqGDu','setRawCommand','local-alias','raw','apps','development','apiDomain'];a99_0x2cbf=function(){return _0x51a9d5;};return a99_0x2cbf();}export function readRawConfig(_0x125e31){return mergeRawConfigLayers(loadRawConfigLayers(_0x125e31));}export function readRawConfigWithLayers(_0x3a2856){const _0x4bf2a5=loadRawConfigLayers(_0x3a2856);return{'config':mergeRawConfigLayers(_0x4bf2a5),'layers':_0x4bf2a5};}function a99_0x3c5c(_0x5ebe3f,_0x2e463c){_0x5ebe3f=_0x5ebe3f-0x1e5;const _0x2cbf71=a99_0x2cbf();let _0x3c5c00=_0x2cbf71[_0x5ebe3f];return _0x3c5c00;}export function resolveDefaultAppSource(_0x27ed0c){const _0x99106b=a99_0x4e6e73;if(_0x99106b(0x1fd)in _0x27ed0c['projectConfig'])return _0x99106b(0x226);if(_0x27ed0c[_0x99106b(0x214)][_0x99106b(0x21b)]===![])return null;if(_0x27ed0c['globalConfig']['defaultApp'])return'global';return null;}function buildConfig(_0x1a1e1c,_0x52206){const _0x92b404=a99_0x4e6e73,_0x17c664=_0x1a1e1c[_0x92b404(0x1fd)]||undefined,_0x4c6d91=_0x52206[_0x92b404(0x1f0)]||env(_0x92b404(0x1f6))||undefined,_0x44d162=_0x4c6d91||_0x17c664||undefined,_0x412ebb=env('ACCESS_KEY')||_0x1a1e1c[_0x92b404(0x20c)]||undefined,_0x4fb62d=_0x52206['env']||env('ENV')||_0x1a1e1c[_0x92b404(0x212)]||DEFAULT_CONFIG_VALUES['env'],_0x3d38b8=normalizeEnv(String(_0x4fb62d)),_0x5e8bd6=isDaily(_0x3d38b8)?_0x92b404(0x205):isDev(_0x3d38b8)?_0x92b404(0x1ea):_0x92b404(0x202),_0x5c88a3=typeof _0x52206[_0x92b404(0x1fa)]===_0x92b404(0x21a)?_0x52206['appcode']:undefined,_0x3a5b14=env(_0x92b404(0x20e)),_0xb935a0=_0x4c6d91?undefined:_0x1a1e1c[_0x92b404(0x1fa)]||_0x1a1e1c[_0x92b404(0x1f0)]||undefined,_0x30dfce=_0x4c6d91||(_0xb935a0?undefined:_0x17c664),_0x3470c1=resolveLocalAppAliasCode(_0x1a1e1c,_0x30dfce),_0x37e9aa=resolveCachedAppCode(_0x30dfce,_0x5e8bd6,_0x412ebb),_0x13acce=_0x5c88a3||_0x3a5b14||_0xb935a0||_0x3470c1||_0x37e9aa||undefined,_0x408807=_0x5c88a3?_0x92b404(0x1ef):_0x3a5b14?_0x92b404(0x212):_0xb935a0?_0x92b404(0x1ed):_0x3470c1?_0x92b404(0x1e7):_0x37e9aa?'cache':undefined,_0x2dcf2d=_0x1a1e1c[_0x92b404(0x211)]||DEFAULT_CONFIG_VALUES[_0x92b404(0x211)],_0x38fb89=undefined,_0x222ac2=_0x52206[_0x92b404(0x209)]||env(_0x92b404(0x21d))||_0x1a1e1c[_0x92b404(0x209)],_0x127eca=normalizeLegacyOutputFormat(_0x222ac2),_0x2e3808=env(_0x92b404(0x228))||_0x1a1e1c[_0x92b404(0x21c)],_0x3286b5=_0x2e3808?Number(_0x2e3808)||undefined:undefined,_0x45732a=_0x1a1e1c[_0x92b404(0x1f4)]||_0x1a1e1c['maxRisk'],_0x25bf8b=_0x45732a==='read'||_0x45732a===_0x92b404(0x1fe)||_0x45732a===_0x92b404(0x1ee)?_0x45732a:DEFAULT_CONFIG_VALUES[_0x92b404(0x1f4)],_0x5d3215=env(_0x92b404(0x1ff)),_0x1dc43c=_0x5d3215==='1'||_0x5d3215===_0x92b404(0x1f5);return{'appCode':typeof _0x13acce===_0x92b404(0x21a)&&_0x13acce[_0x92b404(0x203)]()?_0x13acce['trim']():undefined,'appCodeSource':_0x408807,'env':_0x5e8bd6,'locale':_0x2dcf2d,'cookie':_0x38fb89,'accessKey':_0x412ebb,'format':_0x127eca,'pageSize':_0x3286b5,'riskLevel':_0x25bf8b,'verbose':_0x1dc43c,'defaultApp':_0x17c664,'currentApp':typeof _0x44d162===_0x92b404(0x21a)?_0x44d162:undefined,'raw':_0x1a1e1c};}function env(_0x1e11f3){return productEnv(_0x1e11f3);}async function buildAuth(_0x2c2230){const _0x18dc0e=a99_0x4e6e73,_0x53f112='',_0x28491e=!!_0x2c2230[_0x18dc0e(0x20c)];return{'cookie':_0x53f112,'isLoggedIn':_0x28491e,async 'getOrLogin'(){if(_0x28491e)return _0x53f112;throw CliErrors['authRequired']();}};}
|
|
1
|
+
const a99_0xf7f404=a99_0x5e78;(function(_0x1f6edb,_0x24a3cc){const _0x17893d=a99_0x5e78,_0x41c10f=_0x1f6edb();while(!![]){try{const _0x474339=-parseInt(_0x17893d(0xa6))/0x1*(parseInt(_0x17893d(0xad))/0x2)+-parseInt(_0x17893d(0xe0))/0x3*(parseInt(_0x17893d(0xda))/0x4)+-parseInt(_0x17893d(0xbc))/0x5*(-parseInt(_0x17893d(0xaf))/0x6)+-parseInt(_0x17893d(0xa0))/0x7*(-parseInt(_0x17893d(0xca))/0x8)+parseInt(_0x17893d(0x9c))/0x9+-parseInt(_0x17893d(0xae))/0xa+parseInt(_0x17893d(0xd8))/0xb*(-parseInt(_0x17893d(0xdf))/0xc);if(_0x474339===_0x24a3cc)break;else _0x41c10f['push'](_0x41c10f['shift']());}catch(_0x5a7781){_0x41c10f['push'](_0x41c10f['shift']());}}}(a99_0x3ea9,0x9d032));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0xf7f404(0xb4)];function resolveConfigPath(_0x1b6f11){for(const _0x1daafd of CONFIG_NAMES){const _0x1ab26c=resolve(_0x1b6f11,_0x1daafd);if(existsSync(_0x1ab26c))return _0x1ab26c;}return undefined;}export function resolveWriteConfigPath(_0x5a4c86){const _0x5cc28a=a99_0xf7f404,_0x3d66ac=_0x5a4c86==='project'?process[_0x5cc28a(0x9f)]():homedir(),_0x34339d=resolveConfigPath(_0x3d66ac);return _0x34339d??resolve(_0x3d66ac,NEW_CONFIG_NAME);}export function readConfigFile(_0x5dbcdf){try{if(existsSync(_0x5dbcdf)){const _0x4750d9=readFileSync(_0x5dbcdf,{'encoding':'utf8'});if(_0x4750d9){const _0x3701d2=JSON['parse'](_0x4750d9);return migrateOnlineEnv(_0x5dbcdf,_0x3701d2),_0x3701d2;}}}catch{}return{};}function migrateOnlineEnv(_0x168df8,_0x272347){const _0x1f77fd=a99_0xf7f404;let _0x256e51=![];_0x272347[_0x1f77fd(0xc9)]===_0x1f77fd(0xe2)&&(_0x272347[_0x1f77fd(0xc9)]=_0x1f77fd(0xa8),_0x256e51=!![]);if(_0x272347['apps']&&typeof _0x272347[_0x1f77fd(0xbb)]===_0x1f77fd(0xb0))for(const _0xf6b2f7 of Object['values'](_0x272347[_0x1f77fd(0xbb)])){_0xf6b2f7&&_0xf6b2f7[_0x1f77fd(0xc9)]===_0x1f77fd(0xe2)&&(_0xf6b2f7['env']=_0x1f77fd(0xa8),_0x256e51=!![]);}if(_0x256e51)try{writeConfigFile(_0x168df8,_0x272347);}catch{}}export function writeConfigFile(_0x25b2f9,_0x109b76){const _0x33b9cc=a99_0xf7f404,_0x51c891=dirname(_0x25b2f9);!existsSync(_0x51c891)&&mkdirSync(_0x51c891,{'recursive':!![]});const _0x3544e1=_0x25b2f9+_0x33b9cc(0xd4);try{writeFileSync(_0x3544e1,JSON[_0x33b9cc(0xa4)](_0x109b76,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x3544e1,_0x25b2f9);}catch(_0x45e9c7){if(_0x45e9c7[_0x33b9cc(0xa7)]==='EPERM'||_0x45e9c7[_0x33b9cc(0xa7)]===_0x33b9cc(0xdc)||_0x45e9c7[_0x33b9cc(0xa7)]===_0x33b9cc(0xa1)){writeFileSync(_0x25b2f9,JSON[_0x33b9cc(0xa4)](_0x109b76,null,0x2)+'\x0a',{'encoding':_0x33b9cc(0xa2)});try{unlinkSync(_0x3544e1);}catch{}}else throw _0x45e9c7;}}catch(_0x54ab73){try{unlinkSync(_0x3544e1);}catch{}throw _0x54ab73;}}export function isNonInteractiveMode(_0x2a0349){const _0x2b452b=a99_0xf7f404;return!!(_0x2a0349[_0x2b452b(0xba)]||_0x2a0349['ci']||productEnvNames('CI')[_0x2b452b(0xa3)](_0x2b13b7=>process.env[_0x2b13b7]==='true')||process.env.CI==='true'||!process['stdout'][_0x2b452b(0xcf)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1597e7=a99_0xf7f404;if(!process[_0x1597e7(0xd6)][_0x1597e7(0xcf)])return![];try{const _0x495d27=process['stdin'][_0x1597e7(0xc0)];return process[_0x1597e7(0xd6)][_0x1597e7(0xb3)](!![]),process[_0x1597e7(0xd6)]['setRawMode'](_0x495d27??![]),!![];}catch{return![];}}export async function createContext(_0x4de388){const _0x2762ca=a99_0xf7f404,_0x1a3c17=readRawConfig(),_0x2b116f=buildConfig(_0x1a3c17,_0x4de388);await initGlobalEnvironment(_0x2b116f);const {getUserDomain:_0x3cfdfb,getApiDomain:_0x2714c4}=await import(_0x2762ca(0xac)),_0x3a9f3f={'apiDomain':_0x2714c4(),'userDomain':_0x3cfdfb()},_0x3999c4=await buildAuth(_0x2b116f);logger[_0x2762ca(0xb7)](process['cwd']());const _0x31c3d6=(CLI_BIN_NAME+'\x20'+process['argv'][_0x2762ca(0xb6)](0x2)[_0x2762ca(0xc8)]('\x20'))[_0x2762ca(0xdd)]();logger['setRawCommand'](_0x31c3d6);const _0x2456a2=isNonInteractiveMode(_0x4de388);return{'config':_0x2b116f,'auth':_0x3999c4,'logger':logger,'env':_0x3a9f3f,'nonInteractive':_0x2456a2};}export function buildConfigFromFlags(_0xfb8231){return buildConfig(readRawConfig(),_0xfb8231);}export function getLocalAppAliases(_0x2abfcb){const _0x5a64a0=a99_0xf7f404;return _0x2abfcb[_0x5a64a0(0xbb)]&&typeof _0x2abfcb[_0x5a64a0(0xbb)]==='object'?_0x2abfcb[_0x5a64a0(0xbb)]:{};}export function resolveLocalAppAliasCode(_0x578a74,_0x38a490){const _0x2aae6e=a99_0xf7f404;if(!_0x38a490)return undefined;const _0x59c41e=getLocalAppAliases(_0x578a74)[_0x38a490],_0x16f6a9=_0x59c41e?.[_0x2aae6e(0xc2)];return typeof _0x16f6a9===_0x2aae6e(0xd1)&&_0x16f6a9[_0x2aae6e(0xdd)]()?_0x16f6a9['trim']():undefined;}export function readAppCodeFromConfig(){const _0x2d2e09=a99_0xf7f404,_0x2ce2d9=readRawConfig(),_0x5d51e9=_0x2ce2d9[_0x2d2e09(0xc2)]??_0x2ce2d9[_0x2d2e09(0x9e)];if(typeof _0x5d51e9===_0x2d2e09(0xd1)&&_0x5d51e9['trim']())return _0x5d51e9['trim']();const _0x53a3ff=resolveLocalAppAliasCode(_0x2ce2d9,typeof _0x2ce2d9['defaultApp']===_0x2d2e09(0xd1)?_0x2ce2d9['defaultApp']:undefined);if(_0x53a3ff)return _0x53a3ff;const _0x2e3683=normalizeEnv(String(_0x2ce2d9[_0x2d2e09(0xc9)]||_0x2d2e09(0xa8))),_0x1ca47f=isDaily(_0x2e3683)?_0x2d2e09(0xb8):isDev(_0x2e3683)?'development':_0x2d2e09(0xa8),_0xe34ce6=resolveCachedAppCode(typeof _0x2ce2d9[_0x2d2e09(0xab)]==='string'?_0x2ce2d9['defaultApp']:undefined,_0x1ca47f,typeof _0x2ce2d9['accessKey']===_0x2d2e09(0xd1)?_0x2ce2d9[_0x2d2e09(0xd0)]:undefined);if(_0xe34ce6)return _0xe34ce6;const _0x19e2c5=Object[_0x2d2e09(0xc4)](getLocalAppAliases(_0x2ce2d9))['find'](_0x241252=>_0x241252?.[_0x2d2e09(0xc2)]);return typeof _0x19e2c5?.['appcode']===_0x2d2e09(0xd1)&&_0x19e2c5[_0x2d2e09(0xc2)][_0x2d2e09(0xdd)]()?_0x19e2c5['appcode'][_0x2d2e09(0xdd)]():undefined;}export function readScopedConfig(_0x4c25d5){const _0x57be47=a99_0xf7f404,_0xe4f1e=_0x4c25d5[_0x57be47(0xc3)]?'global':'project';return readConfigFile(resolveWriteConfigPath(_0xe4f1e));}export function writeScopedConfig(_0x1285da,_0x141531){const _0x5f4a3d=a99_0xf7f404,_0xac59cd=_0x141531[_0x5f4a3d(0xc3)]?_0x5f4a3d(0xc3):_0x5f4a3d(0xb9);writeConfigFile(resolveWriteConfigPath(_0xac59cd),_0x1285da);}export async function initGlobalEnvironment(_0x562113){const _0x4aeb69=a99_0xf7f404,{initEnv:_0x5102af}=await import('./constant/env.js');_0x5102af(_0x562113[_0x4aeb69(0xc9)]);const {initDomains:_0x1524d3}=await import('./constant/domain.js');_0x1524d3({'apiDomain':_0x562113[_0x4aeb69(0xa5)][_0x4aeb69(0xcd)]||_0x562113[_0x4aeb69(0xa5)][_0x4aeb69(0xdb)]||undefined,'userDomain':_0x562113['raw'][_0x4aeb69(0xbe)]||undefined,'runtimeDomain':_0x562113[_0x4aeb69(0xa5)]['runtimeDomain']||undefined,'skillHubDomain':_0x562113[_0x4aeb69(0xa5)]['skillHubDomain']||undefined});}export function getProjectConfigPath(){const _0x789ef2=a99_0xf7f404;return resolveConfigPath(process[_0x789ef2(0x9f)]());}function a99_0x5e78(_0x17f994,_0x22a74f){_0x17f994=_0x17f994-0x9c;const _0x3ea9a0=a99_0x3ea9();let _0x5e78d6=_0x3ea9a0[_0x17f994];return _0x5e78d6;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x54cb06){const _0x48b263=a99_0xf7f404;if(!existsSync(_0x54cb06))return{'status':_0x48b263(0xb2)};try{const _0x17cd33=readFileSync(_0x54cb06,{'encoding':_0x48b263(0xa2)});if(!_0x17cd33?.[_0x48b263(0xdd)]())return{'status':'empty'};const _0x2ed1b0=JSON['parse'](_0x17cd33);return{'status':'ok','data':_0x2ed1b0};}catch(_0x3b4786){return{'status':_0x48b263(0xde),'message':_0x3b4786 instanceof Error?_0x3b4786[_0x48b263(0xd3)]:String(_0x3b4786)};}}function a99_0x3ea9(){const _0x165116=['FORMAT','isRaw','VERBOSE','appcode','global','values','projectConfig','APPCODE','maxRisk','join','env','8uFfjSC','PAGE_SIZE','APP','apiDomain','pageSize','isTTY','accessKey','string','ENV','message','.tmp','globalConfig','stdin','riskLevel','11wfdxGl','explicit','52XGbdeQ','host','EXDEV','trim','error','275052Unypmr','199479fzqUrs','authRequired','online','4278951ajchju','write','app','cwd','3860801bUkimD','EACCES','utf8','some','stringify','raw','17584RDyxML','code','production','inherit','locale','defaultApp','./constant/domain.js','8ADqkPs','1521390bAthhG','13002rRvshE','object','parse','missing','setRawMode','newConfigFileName','format','slice','setLogPath','daily','project','nonInteractive','apps','1675QtATaw','true','userDomain'];a99_0x3ea9=function(){return _0x165116;};return a99_0x3ea9();}export function loadRawConfigLayers(_0x4f34b5){const _0x5e65a3=a99_0xf7f404;let _0x69b758={},_0x52d83d={},_0x5f5a08,_0x40560d;try{_0x5f5a08=resolveConfigPath(homedir());if(_0x5f5a08){const _0x298f5a=readFileSync(_0x5f5a08,{'encoding':_0x5e65a3(0xa2)});if(_0x298f5a)_0x69b758=JSON[_0x5e65a3(0xb1)](_0x298f5a);}}catch{}try{const _0x1009a2=_0x4f34b5||process[_0x5e65a3(0x9f)]();_0x40560d=resolveConfigPath(_0x1009a2);if(_0x40560d){const _0x237fd2=readFileSync(_0x40560d,{'encoding':_0x5e65a3(0xa2)});if(_0x237fd2)_0x52d83d=JSON[_0x5e65a3(0xb1)](_0x237fd2);}}catch{}return{'globalPath':_0x5f5a08,'projectPath':_0x40560d,'globalConfig':_0x69b758,'projectConfig':_0x52d83d};}function mergeRawConfigLayers(_0x15f3c6){const _0x272617=a99_0xf7f404,{globalConfig:_0x21aab8,projectConfig:_0xb7f289}=_0x15f3c6;if(_0xb7f289[_0x272617(0xa9)]===![]){const _0x1adad1={..._0xb7f289};return delete _0x1adad1[_0x272617(0xa9)],_0x1adad1;}const _0x1d0a09={..._0x21aab8,..._0xb7f289};if(_0x272617(0xab)in _0xb7f289)_0x1d0a09['defaultApp']=_0xb7f289[_0x272617(0xab)];else _0x21aab8[_0x272617(0xab)]&&(_0x1d0a09[_0x272617(0xab)]=_0x21aab8[_0x272617(0xab)]);return _0x1d0a09;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x4aaded){return mergeRawConfigLayers(loadRawConfigLayers(_0x4aaded));}export function readRawConfigWithLayers(_0x386c59){const _0x38db22=loadRawConfigLayers(_0x386c59);return{'config':mergeRawConfigLayers(_0x38db22),'layers':_0x38db22};}export function resolveDefaultAppSource(_0x24d037){const _0x5d555e=a99_0xf7f404;if(_0x5d555e(0xab)in _0x24d037[_0x5d555e(0xc5)])return'project';if(_0x24d037[_0x5d555e(0xc5)][_0x5d555e(0xa9)]===![])return null;if(_0x24d037[_0x5d555e(0xd5)][_0x5d555e(0xab)])return _0x5d555e(0xc3);return null;}function buildConfig(_0x4dbedf,_0x5c7b2f){const _0x5769ad=a99_0xf7f404,_0x4632f8=_0x4dbedf[_0x5769ad(0xab)]||undefined,_0x320472=_0x5c7b2f[_0x5769ad(0x9e)]||env(_0x5769ad(0xcc))||undefined,_0x4c1627=_0x320472||_0x4632f8||undefined,_0x1657e4=env('ACCESS_KEY')||_0x4dbedf[_0x5769ad(0xd0)]||undefined,_0x525467=_0x5c7b2f['env']||env(_0x5769ad(0xd2))||_0x4dbedf[_0x5769ad(0xc9)]||DEFAULT_CONFIG_VALUES[_0x5769ad(0xc9)],_0x2f1ad8=normalizeEnv(String(_0x525467)),_0xeaf281=isDaily(_0x2f1ad8)?_0x5769ad(0xb8):isDev(_0x2f1ad8)?'development':'production',_0x834568=typeof _0x5c7b2f['appcode']===_0x5769ad(0xd1)?_0x5c7b2f[_0x5769ad(0xc2)]:undefined,_0x1bd28f=env(_0x5769ad(0xc6)),_0x2fc80e=_0x320472?undefined:_0x4dbedf[_0x5769ad(0xc2)]||_0x4dbedf[_0x5769ad(0x9e)]||undefined,_0x4f606c=_0x320472||(_0x2fc80e?undefined:_0x4632f8),_0x4babd7=resolveLocalAppAliasCode(_0x4dbedf,_0x4f606c),_0x241cac=resolveCachedAppCode(_0x4f606c,_0xeaf281,_0x1657e4),_0x1cec73=_0x834568||_0x1bd28f||_0x2fc80e||_0x4babd7||_0x241cac||undefined,_0x46aefd=_0x834568?_0x5769ad(0xd9):_0x1bd28f?_0x5769ad(0xc9):_0x2fc80e?'top-level':_0x4babd7?'local-alias':_0x241cac?'cache':undefined,_0x1c4bc0=_0x4dbedf[_0x5769ad(0xaa)]||DEFAULT_CONFIG_VALUES['locale'],_0x3a4a0f=undefined,_0x18b797=_0x5c7b2f[_0x5769ad(0xb5)]||env(_0x5769ad(0xbf))||_0x4dbedf[_0x5769ad(0xb5)],_0xad4cc=normalizeLegacyOutputFormat(_0x18b797),_0x37750e=env(_0x5769ad(0xcb))||_0x4dbedf[_0x5769ad(0xce)],_0x41e771=_0x37750e?Number(_0x37750e)||undefined:undefined,_0x4259a8=_0x4dbedf['riskLevel']||_0x4dbedf[_0x5769ad(0xc7)],_0x4969db=_0x4259a8==='read'||_0x4259a8===_0x5769ad(0x9d)||_0x4259a8==='high-risk-write'?_0x4259a8:DEFAULT_CONFIG_VALUES[_0x5769ad(0xd7)],_0x38c290=env(_0x5769ad(0xc1)),_0x34156b=_0x38c290==='1'||_0x38c290===_0x5769ad(0xbd);return{'appCode':typeof _0x1cec73==='string'&&_0x1cec73[_0x5769ad(0xdd)]()?_0x1cec73[_0x5769ad(0xdd)]():undefined,'appCodeSource':_0x46aefd,'env':_0xeaf281,'locale':_0x1c4bc0,'cookie':_0x3a4a0f,'accessKey':_0x1657e4,'format':_0xad4cc,'pageSize':_0x41e771,'riskLevel':_0x4969db,'verbose':_0x34156b,'defaultApp':_0x4632f8,'currentApp':typeof _0x4c1627===_0x5769ad(0xd1)?_0x4c1627:undefined,'raw':_0x4dbedf};}function env(_0x53587f){return productEnv(_0x53587f);}async function buildAuth(_0x13b5d4){const _0x2981d9=a99_0xf7f404,_0x1196ee='',_0x2d01ac=!!_0x13b5d4[_0x2981d9(0xd0)];return{'cookie':_0x1196ee,'isLoggedIn':_0x2d01ac,async 'getOrLogin'(){const _0x16804f=_0x2981d9;if(_0x2d01ac)return _0x1196ee;throw CliErrors[_0x16804f(0xe1)]();}};}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ export interface LoginUserInfo {
|
|
|
351
351
|
[key: string]: unknown;
|
|
352
352
|
}
|
|
353
353
|
export type RuntimeScheduleKind = "CRON" | "ONCE";
|
|
354
|
-
export type
|
|
354
|
+
export type RuntimeScheduleModel = "kimi/k3" | "deepseek-v4-flash-0731" | "deepseek-v4-pro-0813";
|
|
355
355
|
export type RuntimeScheduleTaskStatus = "QUEUED" | "RUNNING" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
356
356
|
export type RuntimeScheduleInput = {
|
|
357
357
|
kind: "CRON";
|
|
@@ -359,14 +359,14 @@ export type RuntimeScheduleInput = {
|
|
|
359
359
|
cron: string;
|
|
360
360
|
title: string;
|
|
361
361
|
prompt: string;
|
|
362
|
-
|
|
362
|
+
model: RuntimeScheduleModel;
|
|
363
363
|
} | {
|
|
364
364
|
kind: "ONCE";
|
|
365
365
|
timezone: "UTC";
|
|
366
366
|
scheduledAt: string;
|
|
367
367
|
title: string;
|
|
368
368
|
prompt: string;
|
|
369
|
-
|
|
369
|
+
model: RuntimeScheduleModel;
|
|
370
370
|
};
|
|
371
371
|
export interface RuntimeScheduleSummary {
|
|
372
372
|
scheduleId: string;
|