@lovrabet/lovrabet-cli 2.2.5 → 2.2.6
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/README.md +3 -3
- 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.d.ts +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.d.ts +2 -2
- 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.d.ts +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.d.ts +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.d.ts +3 -3
- 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.d.ts +3 -3
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +16 -15
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +2 -2
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +7 -5
- package/skills/lovrabet/references/dataset-discovery-workflow.md +2 -2
- package/skills/lovrabet/references/lovrabet-app-config.md +1 -1
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-file-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +35 -7
- package/skills/lovrabet.manifest.json +3 -3
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a83_0x512d9=a83_0x1c10;(function(_0x754247,_0x19ca3e){const _0x3931f6=a83_0x1c10,_0x1761b5=_0x754247();while(!![]){try{const _0x8a8fb0=parseInt(_0x3931f6(0x1e8))/0x1+-parseInt(_0x3931f6(0x1cd))/0x2*(parseInt(_0x3931f6(0x216))/0x3)+parseInt(_0x3931f6(0x1e4))/0x4+parseInt(_0x3931f6(0x1f7))/0x5+-parseInt(_0x3931f6(0x1fb))/0x6+-parseInt(_0x3931f6(0x1d1))/0x7+parseInt(_0x3931f6(0x1ed))/0x8;if(_0x8a8fb0===_0x19ca3e)break;else _0x1761b5['push'](_0x1761b5['shift']());}catch(_0x3c9551){_0x1761b5['push'](_0x1761b5['shift']());}}}(a83_0x904f,0x83319));import{spawnSync}from'node:child_process';import{fileURLToPath}from'node:url';import{basename,dirname,relative,win32}from'node:path';function a83_0x904f(){const _0x2c98ed=['\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','message','\x20is\x20current.','pipe','dirname','reason','lib','bool','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','/dist-tags','json','1850692uLssvR','Invalid\x20version:\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','inherit','7122920qKESXc','basename','\x20\x20Run\x20manually:\x20','latest','filter','state','platform','str','run','\x20\x20CLI\x20Built-in\x20Skill\x20',']:\x20','stderr','node_modules','log','error','status','Unable\x20to\x20resolve\x20','string','Update\x20failed:\x20','3606220MvlMBR','Already\x20on\x20requested\x20version\x20(v','join','Current\x20version:\x20','608909npSXkH','Checking\x20npm\x20dist-tags...','install','write','INSTALL_FAILED','3975744Xcmaiz','Install\x20a\x20specific\x20CLI\x20version','validation','npm','test','valid','includes','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','code','Checking\x20CLI\x20Built-in\x20Skill...','3380350AjvkqH','relative','win32','@lovrabet\x5clovrabet-cli','1219362USodLg','warn','trim','从\x20npm\x20更新\x20','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','read','\x20CLI','length','timeout','toString','source','update','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','find','cwd','toLowerCase','args','object','boolean','entries','unknown','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','stdout','exit\x20','fromEntries','map','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','3AWfnvD','version','nonInteractive','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','beta','repairCommand'];a83_0x904f=function(){return _0x2c98ed;};return a83_0x904f();}import a83_0x5eeafd 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_0x512d9(0x1d4),'type':a83_0x512d9(0x20d),'description':a83_0x512d9(0x215),'default':![]},{'name':a83_0x512d9(0x1c0),'type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a83_0x512d9(0x1ee)}];function getRequestedVersion(_0x30b8a5){const _0xd6c8a3=a83_0x512d9,_0xf24532=_0x30b8a5[_0xd6c8a3(0x1d8)](_0xd6c8a3(0x1bd))[_0xd6c8a3(0x1fd)]();if(_0xf24532)return _0xf24532;return String(_0x30b8a5[_0xd6c8a3(0x20b)]?.[0x0]??'')[_0xd6c8a3(0x1fd)]();}async function validateUpdateFlags(_0x536b91){const _0xf06df2=a83_0x512d9,_0x488484=getRequestedVersion(_0x536b91),_0x3fddd9=[_0x536b91[_0xf06df2(0x1c9)](_0xf06df2(0x1d4))?_0xf06df2(0x1d4):'',_0x536b91[_0xf06df2(0x1c9)](_0xf06df2(0x1c0))?'beta':'',_0x488484?'version':''][_0xf06df2(0x1d5)](Boolean);if(_0x3fddd9[_0xf06df2(0x202)]>0x1)throw CliErrors['validation'](_0xf06df2(0x210),_0xf06df2(0x1bf));if(_0x488484&&!a83_0x5eeafd[_0xf06df2(0x1f2)](_0x488484))throw CliErrors[_0xf06df2(0x1ef)](_0xf06df2(0x1ce)+_0x488484,_0xf06df2(0x1cf));}async function fetchNpmDistTags(){const _0x3e70d1=a83_0x512d9;try{const _0x57630e=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3e70d1(0x1cb),_0x5211b5=await fetch(_0x57630e,{'signal':AbortSignal[_0x3e70d1(0x203)](0x2710)});if(!_0x5211b5['ok'])return null;const _0x442798=await _0x5211b5[_0x3e70d1(0x1cc)]();if(!_0x442798||typeof _0x442798!==_0x3e70d1(0x20c))return null;return Object[_0x3e70d1(0x213)](Object[_0x3e70d1(0x20e)](_0x442798)[_0x3e70d1(0x1d5)](([,_0x8cef4])=>typeof _0x8cef4===_0x3e70d1(0x1e2)&&_0x8cef4['trim']())[_0x3e70d1(0x214)](([_0x151f90,_0x3605da])=>[_0x151f90,String(_0x3605da)[_0x3e70d1(0x1fd)]()]));}catch{return null;}}async function resolveTargetVersion(_0x2c3ae9){const _0x5cbd6f=a83_0x512d9,_0x2bde39=getRequestedVersion(_0x2c3ae9);if(_0x2bde39)return{'version':_0x2bde39,'source':'version'};const _0x4e8603=_0x2c3ae9[_0x5cbd6f(0x1c9)](_0x5cbd6f(0x1c0))?'beta':_0x5cbd6f(0x1d4),_0x2f493b=await fetchNpmDistTags(),_0x5507d3=_0x2f493b?.[_0x4e8603];if(!_0x5507d3)return null;return{'version':_0x5507d3,'source':_0x4e8603};}function shouldInstallTarget(_0x289184,_0x177920){const _0x5ab935=a83_0x512d9;if(_0x177920['source']===_0x5ab935(0x1bd)||_0x177920[_0x5ab935(0x205)]===_0x5ab935(0x1c0))return!a83_0x5eeafd['eq'](_0x289184,_0x177920['version']);return a83_0x5eeafd['lt'](_0x289184,_0x177920[_0x5ab935(0x1bd)]);}export function installCliPackage(_0x5a55c9,_0x186fe2,_0x440dbf=resolveCurrentCliNpmPrefix()){const _0x593aa2=a83_0x512d9,_0x379ec1=resolveNpmBin(_0x593aa2(0x1f0)),_0x4fe1d2=LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5a55c9,_0x290004=[_0x593aa2(0x1ea),'-g',_0x4fe1d2],_0x2ca9f3=runNpmInstall(_0x379ec1,_0x290004,_0x186fe2);if(_0x2ca9f3['ok']||!isNpmPrefixPermissionError(_0x2ca9f3[_0x593aa2(0x1df)]))return _0x2ca9f3;if(!_0x440dbf||_0x2ca9f3[_0x593aa2(0x1df)]?.[_0x593aa2(0x20a)]()[_0x593aa2(0x1f3)](_0x440dbf[_0x593aa2(0x20a)]()))return _0x2ca9f3;return console[_0x593aa2(0x1fc)]('Global\x20npm\x20prefix\x20is\x20not\x20writable;\x20retrying\x20in\x20the\x20current\x20CLI\x20Node\x20environment:\x20'+_0x440dbf),runNpmInstall(_0x379ec1,[..._0x290004,'--prefix',_0x440dbf],_0x186fe2);}export function resolveCurrentCliNpmPrefix(_0x31d585=fileURLToPath(import.meta.url),_0x290de7=process[a83_0x512d9(0x1d7)]){const _0x553aa4=a83_0x512d9,_0x5a0b09=_0x290de7===_0x553aa4(0x1f9)?win32:{'basename':basename,'dirname':dirname,'relative':relative},_0x83253e=_0x5a0b09['dirname'](_0x5a0b09[_0x553aa4(0x1c6)](_0x5a0b09[_0x553aa4(0x1c6)](_0x31d585))),_0x1304ae=_0x290de7===_0x553aa4(0x1f9)?_0x553aa4(0x1fa):'@lovrabet/lovrabet-cli';let _0x83754a=_0x5a0b09[_0x553aa4(0x1c6)](_0x83253e);while(!![]){if(_0x5a0b09[_0x553aa4(0x1d2)](_0x83754a)===_0x553aa4(0x1dd)&&_0x5a0b09[_0x553aa4(0x1f8)](_0x83754a,_0x83253e)===_0x1304ae){const _0x1ee423=_0x5a0b09['dirname'](_0x83754a);return _0x5a0b09[_0x553aa4(0x1d2)](_0x1ee423)===_0x553aa4(0x1c8)?_0x5a0b09[_0x553aa4(0x1c6)](_0x1ee423):_0x1ee423;}const _0x54a548=_0x5a0b09[_0x553aa4(0x1c6)](_0x83754a);if(_0x54a548===_0x83754a)return null;_0x83754a=_0x54a548;}}function runNpmInstall(_0x167ad4,_0x4a29d1,_0x4799cf){const _0x361c37=a83_0x512d9;console[_0x361c37(0x1de)]('*\x20'+[_0x167ad4,..._0x4a29d1][_0x361c37(0x1e6)]('\x20'));const _0x2a6a0a=spawnSync(_0x167ad4,_0x4a29d1,{'cwd':process[_0x361c37(0x209)](),'stdio':_0x361c37(0x1c5),'env':process.env,'shell':![]}),_0x2a3103=_0x2a6a0a[_0x361c37(0x1dc)]?_0x2a6a0a[_0x361c37(0x1dc)][_0x361c37(0x204)]()[_0x361c37(0x1fd)]():'',_0x129a4a=_0x2a6a0a[_0x361c37(0x211)]?_0x2a6a0a['stdout']['toString']()[_0x361c37(0x1fd)]():'';if(!_0x4799cf){if(_0x129a4a)process[_0x361c37(0x211)][_0x361c37(0x1eb)](_0x129a4a+'\x0a');if(_0x2a3103)process[_0x361c37(0x1dc)][_0x361c37(0x1eb)](_0x2a3103+'\x0a');}if(_0x2a6a0a[_0x361c37(0x1e0)]===0x0)return{'ok':!![]};const _0x5d83e1=_0x2a6a0a[_0x361c37(0x1df)]?.[_0x361c37(0x1c3)]||_0x2a3103||_0x129a4a||_0x361c37(0x212)+(_0x2a6a0a[_0x361c37(0x1e0)]??_0x361c37(0x20f));return{'ok':![],'error':_0x5d83e1};}function isNpmPrefixPermissionError(_0x5aa404){const _0xa4d7b2=a83_0x512d9;return Boolean(_0x5aa404&&/\b(?:EACCES|EPERM)\b/[_0xa4d7b2(0x1f1)](_0x5aa404));}function repairCurrentBuiltinSkill(_0x26f52f){const _0x117045=a83_0x512d9;console[_0x117045(0x1de)](_0x117045(0x1f6));const _0x184f46=installBuiltinSkill({'stdio':_0x26f52f?_0x117045(0x1c5):_0x117045(0x1d0)});if(_0x184f46['ok'])return console['log'](_0x117045(0x1da)+_0x184f46['skillVersion']+'\x20is\x20current.'),!![];return console[_0x117045(0x1fc)](_0x117045(0x1f4)+(_0x184f46[_0x117045(0x1f5)]||_0x117045(0x1ec))+_0x117045(0x1db)+(_0x184f46[_0x117045(0x1df)]||'unknown')),console['log'](_0x117045(0x1d3)+_0x184f46['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x2c1382){const _0x1f4e05=a83_0x512d9;console[_0x1f4e05(0x1de)](_0x1f4e05(0x1f6));const _0x3a59a4=inspectInstalledBuiltinSkillVersion(_0x2c1382);if(_0x3a59a4['state']==='current')return console[_0x1f4e05(0x1de)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2c1382+_0x1f4e05(0x1c4)),!![];console[_0x1f4e05(0x1fc)](_0x1f4e05(0x1ff)+_0x3a59a4[_0x1f4e05(0x1d6)]+'.');if(_0x3a59a4[_0x1f4e05(0x1c7)])console[_0x1f4e05(0x1fc)]('\x20\x20'+_0x3a59a4['reason']);return console[_0x1f4e05(0x1de)]('\x20\x20Run\x20manually:\x20'+_0x3a59a4[_0x1f4e05(0x1c1)]),![];}async function execute(_0x59c561){const _0x47b01c=a83_0x512d9;await validateUpdateFlags(_0x59c561);const _0x25885b=getCliVersion();console[_0x47b01c(0x1de)](_0x47b01c(0x1e7)+_0x25885b),console['log'](_0x47b01c(0x1e9));const _0x1892b3=await resolveTargetVersion(_0x59c561);if(!_0x1892b3){const _0x26bc8e=_0x59c561['bool']('beta')?_0x47b01c(0x1c0):_0x47b01c(0x1d4),_0x1396d0=_0x47b01c(0x1e1)+_0x26bc8e+'\x20version\x20from\x20npm.';return console[_0x47b01c(0x1fc)](_0x1396d0),console['log'](_0x47b01c(0x1c2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x26bc8e),{'ok':![]};}const _0x365b1f=[_0x25885b,_0x1892b3[_0x47b01c(0x1bd)]][_0x47b01c(0x208)](_0x153c99=>!a83_0x5eeafd['valid'](_0x153c99));if(_0x365b1f)return console['warn']('Version\x20comparison\x20failed:\x20'+_0x365b1f+'.'),{'ok':![]};if(!shouldInstallTarget(_0x25885b,_0x1892b3)){const _0x9a70f2=_0x1892b3[_0x47b01c(0x205)]===_0x47b01c(0x1bd)?_0x47b01c(0x1e5)+_0x1892b3[_0x47b01c(0x1bd)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x1892b3['version']+').';return console[_0x47b01c(0x1de)](_0x9a70f2),{'ok':repairCurrentBuiltinSkill(_0x59c561[_0x47b01c(0x1be)])};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x25885b+'\x20->\x20'+_0x1892b3[_0x47b01c(0x1bd)]);const _0x196b48=installCliPackage(_0x1892b3['version'],_0x59c561['nonInteractive']);if(!_0x196b48['ok']){const _0x2ce693=_0x47b01c(0x1e3)+(_0x196b48[_0x47b01c(0x1df)]||'unknown');return console[_0x47b01c(0x1df)](_0x2ce693),console[_0x47b01c(0x1de)](_0x47b01c(0x1ca)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1892b3[_0x47b01c(0x1bd)]),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x1892b3['version']+'.'),console[_0x47b01c(0x1de)](_0x47b01c(0x207)),{'ok':verifyUpdatedBuiltinSkill(_0x1892b3[_0x47b01c(0x1bd)])};}function a83_0x1c10(_0x51d11e,_0x4db176){_0x51d11e=_0x51d11e-0x1bd;const _0x904f33=a83_0x904f();let _0x1c101e=_0x904f33[_0x51d11e];return _0x1c101e;}export const updateDefinition={'service':a83_0x512d9(0x206),'command':a83_0x512d9(0x1d9),'description':a83_0x512d9(0x1fe)+CLI_BIN_NAME+a83_0x512d9(0x201),'risk':a83_0x512d9(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0x14f957=a84_0x8793;(function(_0x509815,_0x4fb57b){const _0x5d4f14=a84_0x8793,_0x18f1b2=_0x509815();while(!![]){try{const _0x1114a4=parseInt(_0x5d4f14(0xa8))/0x1*(-parseInt(_0x5d4f14(0x9f))/0x2)+parseInt(_0x5d4f14(0xa4))/0x3*(-parseInt(_0x5d4f14(0xae))/0x4)+-parseInt(_0x5d4f14(0xa2))/0x5*(parseInt(_0x5d4f14(0x9d))/0x6)+parseInt(_0x5d4f14(0xa7))/0x7*(-parseInt(_0x5d4f14(0x9b))/0x8)+parseInt(_0x5d4f14(0xa3))/0x9*(parseInt(_0x5d4f14(0xac))/0xa)+parseInt(_0x5d4f14(0x97))/0xb+parseInt(_0x5d4f14(0xaa))/0xc;if(_0x1114a4===_0x4fb57b)break;else _0x18f1b2['push'](_0x18f1b2['shift']());}catch(_0x1e0f7a){_0x18f1b2['push'](_0x18f1b2['shift']());}}}(a84_0x19a6,0x74bc4));import{bindExternalUserAccount,USER_ACCOUNT_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const CURRENT_BINDING_WARNING=a84_0x14f957(0xa9),SUPPORTED_PROVIDERS=[a84_0x14f957(0xaf)];function a84_0x19a6(){const _0x186916=['1260476FHzgYH','1nHWguh','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','31585320xKXIMc','string','298530VNYSDL','includes','103916MmQDqE','dingtalk','--account-id\x20cannot\x20be\x20empty.','bind','将当前\x20AccessKey\x20所属的平台用户绑定到指定协同生态外部账号;已有同\x20provider\x20绑定可能被替换。','5381508xODQBD','Bind\x20the\x20current\x20platform\x20user\x20to\x20an\x20external\x20provider\x20account','trim','account-id','32nGvnTA','Pass\x20one\x20of:\x20','6buWBkx','join','1307918qWGkQO','write','External\x20account\x20provider','3116790kUEqDO','9TJcQqE','78sGIzDu','POST','toLowerCase'];a84_0x19a6=function(){return _0x186916;};return a84_0x19a6();}function readBindingInput(_0x2e0523){const _0x7bb1a9=a84_0x14f957,_0x51a70a=_0x2e0523['str']('provider')[_0x7bb1a9(0x99)]()[_0x7bb1a9(0xa6)]();if(!SUPPORTED_PROVIDERS[_0x7bb1a9(0xad)](_0x51a70a))throw CliErrors['validation']('Unsupported\x20provider:\x20'+(_0x51a70a||'(empty)')+'.',_0x7bb1a9(0x9c)+SUPPORTED_PROVIDERS[_0x7bb1a9(0x9e)](',\x20')+'.');const _0x4af7fc=_0x2e0523['str'](_0x7bb1a9(0x9a))['trim']();if(!_0x4af7fc)throw CliErrors['validation'](_0x7bb1a9(0xb0),'Pass\x20the\x20external\x20account\x20ID\x20for\x20the\x20selected\x20provider.');return{'provider':_0x51a70a,'accountId':_0x4af7fc};}function buildBindingData(_0x148429,_0x11c7f4,_0x302d58){const _0x991327=a84_0x14f957;return{'operation':_0x991327(0x95),'selector':{'provider':_0x148429,'accountId':_0x11c7f4},'before':null,'after':{'provider':_0x148429,'accountId':_0x11c7f4,'bound':!![]},'dryRun':_0x302d58,'warnings':[CURRENT_BINDING_WARNING]};}function a84_0x8793(_0x40d9a0,_0xa71c1a){_0x40d9a0=_0x40d9a0-0x95;const _0x19a66c=a84_0x19a6();let _0x879396=_0x19a66c[_0x40d9a0];return _0x879396;}export const bindUserAccount={'service':'user-account','command':'bind','description':a84_0x14f957(0x98),'risk':a84_0x14f957(0xa0),'confirmationDescription':a84_0x14f957(0x96),'requiresAuth':!![],'requiresAppCode':![],'flags':[{'name':'provider','type':a84_0x14f957(0xab),'required':!![],'enum':[...SUPPORTED_PROVIDERS],'description':a84_0x14f957(0xa1)},{'name':a84_0x14f957(0x9a),'type':a84_0x14f957(0xab),'required':!![],'description':'External\x20account\x20ID\x20for\x20the\x20selected\x20provider'}],async 'validate'(_0x394a73){readBindingInput(_0x394a73);},async 'dryRun'(_0x475f31){const _0x16ab40=a84_0x14f957,{provider:_0x433064,accountId:_0x28404e}=readBindingInput(_0x475f31);return{...buildBindingData(_0x433064,_0x28404e,!![]),'method':_0x16ab40(0xa5),'url':USER_ACCOUNT_BIND_PATH,'body':{'provider':_0x433064,'accountId':_0x28404e}};},async 'execute'(_0x198c27){const {provider:_0x21abb5,accountId:_0xb81e13}=readBindingInput(_0x198c27),_0x3388fc=await bindExternalUserAccount(_0x21abb5,_0xb81e13);if(_0x3388fc!==!![])throw CliErrors['apiError']('External\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--provider\x20and\x20--account-id\x20only\x20after\x20checking\x20the\x20current\x20AccessKey\x20identity.');return{'ok':!![],'data':buildBindingData(_0x21abb5,_0xb81e13,![]),'message':'Bound\x20current\x20user\x20to\x20external\x20provider\x20account.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a85_0x541c(_0x47396d,_0x5933dc){_0x47396d=_0x47396d-0x1d4;const _0x43a918=a85_0x43a9();let _0x541c55=_0x43a918[_0x47396d];return _0x541c55;}function a85_0x43a9(){const _0x525026=['447192JVcbzm','9HqtoHR','146441EjAyeO','10JTGOlR','264EkAVTQ','1841670TVzfVd','409570fWMxso','8206056wvFbje','134769ugvfTT','1536210KyAfPQ','136RcqrAq','7FEOQZC'];a85_0x43a9=function(){return _0x525026;};return a85_0x43a9();}(function(_0x38bfd6,_0x535efa){const _0x42ca7f=a85_0x541c,_0x3a2225=_0x38bfd6();while(!![]){try{const _0x25717b=parseInt(_0x42ca7f(0x1db))/0x1*(-parseInt(_0x42ca7f(0x1dc))/0x2)+-parseInt(_0x42ca7f(0x1d5))/0x3*(-parseInt(_0x42ca7f(0x1d7))/0x4)+-parseInt(_0x42ca7f(0x1df))/0x5+-parseInt(_0x42ca7f(0x1d6))/0x6+-parseInt(_0x42ca7f(0x1d8))/0x7*(-parseInt(_0x42ca7f(0x1d4))/0x8)+-parseInt(_0x42ca7f(0x1da))/0x9*(-parseInt(_0x42ca7f(0x1de))/0xa)+-parseInt(_0x42ca7f(0x1dd))/0xb*(parseInt(_0x42ca7f(0x1d9))/0xc);if(_0x25717b===_0x535efa)break;else _0x3a2225['push'](_0x3a2225['shift']());}catch(_0xb1b561){_0x3a2225['push'](_0x3a2225['shift']());}}}(a85_0x43a9,0xbcaa0));import{bindUserAccount}from'../../commands/user-account/bind.js';export const userAccountDefinitions=[bindUserAccount];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x5306fe=a86_0x5525;(function(_0x3f68dc,_0x41e0dc){const _0xa145b7=a86_0x5525,_0xbc871d=_0x3f68dc();while(!![]){try{const _0xab9899=-parseInt(_0xa145b7(0x1d1))/0x1*(-parseInt(_0xa145b7(0x1ca))/0x2)+parseInt(_0xa145b7(0x1c3))/0x3*(parseInt(_0xa145b7(0x1ee))/0x4)+-parseInt(_0xa145b7(0x1c6))/0x5*(parseInt(_0xa145b7(0x1fc))/0x6)+parseInt(_0xa145b7(0x1f4))/0x7+parseInt(_0xa145b7(0x1e8))/0x8+-parseInt(_0xa145b7(0x1d2))/0x9+-parseInt(_0xa145b7(0x1ec))/0xa*(parseInt(_0xa145b7(0x1d0))/0xb);if(_0xab9899===_0x41e0dc)break;else _0xbc871d['push'](_0xbc871d['shift']());}catch(_0x3f3bb2){_0xbc871d['push'](_0xbc871d['shift']());}}}(a86_0x3fb5,0xbfc2a));function a86_0x3fb5(){const _0x3b5fec=['Workspace\x20app\x20context\x20is\x20not\x20initialized.','\x20workspace\x20','items','init','app','将在尚未绑定应用的当前工作目录写入\x20Lovrabet\x20项目配置,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','39312VclvQH','Missing\x20workspace\x20app\x20selector.','appName','authRequired','Conflicting\x20workspace\x20app\x20selectors.','appCode','为尚未绑定应用的当前工作目录初始化应用上下文','env','3zSASLh','workspace','\x20workspace\x20init\x20--app\x20<name>`\x20or\x20`','830MLjWyI','Target\x20environment','\x22\x20not\x20found.','defaultApp','767818WvDmoP','apps','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Workspace\x20app\x20context\x20is\x20already\x20initialized.','str','Invalid\x20env\x20\x22','11rGryog','2kXFaTn','11115423jBkgPE','appcode','accessKey','\x20workspace\x20use\x20--app\x20<name>`\x20or\x20`','\x0aAccessKey:\x20not\x20written','shouldWriteEnv','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','length','trim','\x20workspace\x20use\x20--appcode\x20<code>`\x20to\x20change\x20it.','command','map','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','workspace\x20','Run\x20`','Use\x20`','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','use','../../commands/app/remote-source.js','将更新当前工作目录已有的应用绑定,并把所选应用设为该目录的默认应用;不会写入\x20AccessKey。','11710512ZcjNVd','string','\x0aEnv:\x20','envName','14711570ZGmOIC','Usage:\x20','4408744VGjVxP','App\x20\x22','includes','write','App\x20code\x20to\x20bind\x20directly','修改当前工作目录已有绑定的应用上下文','8718276QlMuOY','Workspace\x20configured.\x0aConfig\x20file:\x20'];a86_0x3fb5=function(){return _0x3b5fec;};return a86_0x3fb5();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a86_0x5525(_0x137e47,_0x107586){_0x137e47=_0x137e47-0x1bf;const _0x3fb5eb=a86_0x3fb5();let _0x552564=_0x3fb5eb[_0x137e47];return _0x552564;}import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a86_0x5306fe(0x1fa),'type':'string','description':a86_0x5306fe(0x1d8)},{'name':a86_0x5306fe(0x1d3),'type':a86_0x5306fe(0x1e9),'description':a86_0x5306fe(0x1f2)},{'name':'env','type':a86_0x5306fe(0x1e9),'description':a86_0x5306fe(0x1c7),'enum':[...RUNTIME_ENV_VALUES]}];async function executeWorkspaceUse(_0x224325,_0x39ea2a){const _0x1658bd=a86_0x5306fe,_0x7e2f47=_0x224325[_0x1658bd(0x1ce)]('app')['trim'](),_0x3c72c3=_0x224325[_0x1658bd(0x1ce)](_0x1658bd(0x1d3))['trim'](),_0x5096f7=_0x224325[_0x1658bd(0x1ce)](_0x1658bd(0x1c2))[_0x1658bd(0x1db)](),_0x28aa22=resolveWorkspaceEnv(_0x5096f7||_0x224325[_0x1658bd(0x1eb)]||DEFAULT_CONFIG_VALUES[_0x1658bd(0x1c2)]);if(!_0x7e2f47&&!_0x3c72c3)throw CliErrors[_0x1658bd(0x1df)](_0x1658bd(0x1fd),_0x1658bd(0x1ed)+CLI_BIN_NAME+'\x20workspace\x20'+_0x39ea2a+_0x1658bd(0x1e4)+CLI_BIN_NAME+_0x1658bd(0x1f7)+_0x39ea2a+'\x20--appcode\x20<code>\x20[--env\x20daily]');if(_0x7e2f47&&_0x3c72c3)throw CliErrors[_0x1658bd(0x1df)](_0x1658bd(0x1bf),'Pass\x20either\x20--app\x20<name>\x20or\x20--appcode\x20<code>,\x20not\x20both.');const _0x2c3de8=resolveWriteConfigPath('project'),_0x2ccbc2=readConfigFile(_0x2c3de8);assertWorkspaceCommandState(_0x39ea2a,_0x2ccbc2);const _0x258d28=_0x3c72c3||await resolveRemoteAppCode({'command':_0x39ea2a,'appName':_0x7e2f47,'env':_0x28aa22,'accessKey':_0x224325['accessKey']});return writeWorkspaceConfig({'command':_0x39ea2a,'appName':_0x7e2f47,'appcode':_0x258d28,'env':_0x28aa22,'shouldWriteEnv':!!_0x5096f7,'accessKey':_0x224325['accessKey']},_0x2c3de8,_0x2ccbc2),{'ok':!![],'data':{'configPath':_0x2c3de8,'app':_0x7e2f47||null,'appcode':_0x258d28,'env':_0x5096f7?_0x28aa22:null,'accessKeyWritten':![],'command':_0x1658bd(0x1e1)+_0x39ea2a},'message':buildWorkspaceMessage(_0x2c3de8,_0x7e2f47,_0x258d28,_0x5096f7?_0x28aa22:undefined)};}async function resolveRemoteAppCode(_0x206989){const _0x2aca92=a86_0x5306fe;if(!_0x206989['accessKey'])throw CliErrors[_0x2aca92(0x1ff)](_0x2aca92(0x1cc)+CLI_BIN_NAME+_0x2aca92(0x1f7)+_0x206989[_0x2aca92(0x1dd)]+'.');const {setActiveAK:_0x492eb3}=await import('../../core/api-client.js'),{getRemoteAppList:_0x3e7e51}=await import(_0x2aca92(0x1e6));_0x492eb3(_0x206989[_0x2aca92(0x1d4)]);const _0x10a81c=await _0x3e7e51({'env':_0x206989[_0x2aca92(0x1c2)],'accessKey':_0x206989[_0x2aca92(0x1d4)],'noCache':![]}),_0x3c9546=findAppByName(_0x10a81c[_0x2aca92(0x1f8)],_0x206989[_0x2aca92(0x1fe)]);if(_0x3c9546&&!isRuntimeAccessibleApp(_0x3c9546))throw runtimeInaccessibleAppError(_0x3c9546,'\x22'+_0x206989[_0x2aca92(0x1fe)]+'\x22');const _0x313b7c=_0x3c9546?.[_0x2aca92(0x1c0)]?.[_0x2aca92(0x1db)]();if(_0x313b7c)return _0x313b7c;const _0x31e191=_0x10a81c[_0x2aca92(0x1f8)][_0x2aca92(0x1de)](_0x3ba918=>_0x3ba918['appName'])['filter'](Boolean),_0x5a0ff6=_0x31e191['length']?'Available\x20apps:\x20'+Array['from'](new Set(_0x31e191))['join'](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x2aca92(0x1e0);throw CliErrors[_0x2aca92(0x1df)](_0x2aca92(0x1ef)+_0x206989['appName']+_0x2aca92(0x1c8),_0x5a0ff6);}function writeWorkspaceConfig(_0x393802,_0x2ad369,_0x5a1557){const _0x4f44a3=a86_0x5306fe;_0x393802[_0x4f44a3(0x1d7)]&&(_0x5a1557[_0x4f44a3(0x1c2)]=_0x393802[_0x4f44a3(0x1c2)]);if(_0x393802['appName']){const _0x211c92=isRecord(_0x5a1557[_0x4f44a3(0x1cb)])?{..._0x5a1557[_0x4f44a3(0x1cb)]}:{},_0x4e3b19=isRecord(_0x211c92[_0x393802['appName']])?_0x211c92[_0x393802[_0x4f44a3(0x1fe)]]:{};return _0x211c92[_0x393802[_0x4f44a3(0x1fe)]]={..._0x4e3b19,'appcode':_0x393802['appcode']},_0x5a1557[_0x4f44a3(0x1cb)]=_0x211c92,_0x5a1557['defaultApp']=_0x393802[_0x4f44a3(0x1fe)],delete _0x5a1557[_0x4f44a3(0x1d3)],delete _0x5a1557[_0x4f44a3(0x1fa)],writeAndReturn(_0x2ad369,_0x5a1557);}return _0x5a1557[_0x4f44a3(0x1d3)]=_0x393802[_0x4f44a3(0x1d3)],delete _0x5a1557[_0x4f44a3(0x1c9)],delete _0x5a1557[_0x4f44a3(0x1fa)],writeAndReturn(_0x2ad369,_0x5a1557);}function writeAndReturn(_0x33749d,_0x9c998e){return writeConfigFile(_0x33749d,_0x9c998e),_0x33749d;}function resolveWorkspaceEnv(_0x40c30e){const _0x32bfde=a86_0x5306fe;if(RUNTIME_ENV_VALUES[_0x32bfde(0x1f0)](_0x40c30e))return _0x40c30e;throw CliErrors['validation'](_0x32bfde(0x1cf)+_0x40c30e+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x346ae0,_0x200354,_0x5f4be1,_0x5a90ad){const _0x7c640f=a86_0x5306fe,_0x1a95db=_0x200354?_0x200354+'\x20('+_0x5f4be1+')':_0x5f4be1,_0x29f212=_0x5a90ad?_0x7c640f(0x1ea)+_0x5a90ad:'';return _0x7c640f(0x1f5)+_0x346ae0+'\x0aDefault\x20app:\x20'+_0x1a95db+_0x29f212+_0x7c640f(0x1d6);}function isRecord(_0x3fcf14){return typeof _0x3fcf14==='object'&&_0x3fcf14!==null&&!Array['isArray'](_0x3fcf14);}function hasWorkspaceAppBinding(_0x12f844){const _0x121f5b=a86_0x5306fe;if(typeof _0x12f844[_0x121f5b(0x1d3)]===_0x121f5b(0x1e9)&&_0x12f844[_0x121f5b(0x1d3)][_0x121f5b(0x1db)]()[_0x121f5b(0x1da)]>0x0)return!![];if(typeof _0x12f844[_0x121f5b(0x1c9)]!=='string'||!_0x12f844[_0x121f5b(0x1c9)][_0x121f5b(0x1db)]())return![];if(!isRecord(_0x12f844[_0x121f5b(0x1cb)]))return![];const _0x29c8ba=_0x12f844[_0x121f5b(0x1cb)][_0x12f844[_0x121f5b(0x1c9)][_0x121f5b(0x1db)]()];return isRecord(_0x29c8ba)&&typeof _0x29c8ba[_0x121f5b(0x1d3)]==='string'&&_0x29c8ba['appcode'][_0x121f5b(0x1db)]()[_0x121f5b(0x1da)]>0x0;}function assertWorkspaceCommandState(_0x1543fa,_0x154b8e){const _0x1ddc63=a86_0x5306fe,_0x4ac1d8=hasWorkspaceAppBinding(_0x154b8e);if(_0x1543fa===_0x1ddc63(0x1f9)&&_0x4ac1d8)throw CliErrors[_0x1ddc63(0x1df)](_0x1ddc63(0x1cd),_0x1ddc63(0x1e3)+CLI_BIN_NAME+_0x1ddc63(0x1d5)+CLI_BIN_NAME+_0x1ddc63(0x1dc));if(_0x1543fa===_0x1ddc63(0x1e5)&&!_0x4ac1d8)throw CliErrors[_0x1ddc63(0x1df)](_0x1ddc63(0x1f6),_0x1ddc63(0x1e2)+CLI_BIN_NAME+_0x1ddc63(0x1c5)+CLI_BIN_NAME+_0x1ddc63(0x1d9));}function makeWorkspaceCommand(_0x902f38){const _0x2efdb5=a86_0x5306fe;return{'service':_0x2efdb5(0x1c4),'command':_0x902f38,'description':_0x902f38===_0x2efdb5(0x1f9)?_0x2efdb5(0x1c1):_0x2efdb5(0x1f3),'risk':_0x2efdb5(0x1f1),'confirmationDescription':_0x902f38===_0x2efdb5(0x1f9)?_0x2efdb5(0x1fb):_0x2efdb5(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x4c2515){return executeWorkspaceUse(_0x4c2515,_0x902f38);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a86_0x5306fe(0x1f9)),makeWorkspaceCommand(a86_0x5306fe(0x1e5))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x41171d=a87_0x29b2;(function(_0xc45eaf,_0x774a8){const _0x1e198f=a87_0x29b2,_0x1186b2=_0xc45eaf();while(!![]){try{const _0x4546a0=-parseInt(_0x1e198f(0x1f4))/0x1*(-parseInt(_0x1e198f(0x1dd))/0x2)+parseInt(_0x1e198f(0x1ea))/0x3+-parseInt(_0x1e198f(0x1f1))/0x4+-parseInt(_0x1e198f(0x1e3))/0x5*(-parseInt(_0x1e198f(0x1e9))/0x6)+parseInt(_0x1e198f(0x1de))/0x7+parseInt(_0x1e198f(0x1f3))/0x8+parseInt(_0x1e198f(0x1e7))/0x9*(-parseInt(_0x1e198f(0x1fe))/0xa);if(_0x4546a0===_0x774a8)break;else _0x1186b2['push'](_0x1186b2['shift']());}catch(_0x51df4d){_0x1186b2['push'](_0x1186b2['shift']());}}}(a87_0xd3c9,0xca442));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':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1e1)],'importable':!![]},'format':{'description':a87_0x41171d(0x1f2),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1f5)],'importable':!![]},'pageSize':{'description':a87_0x41171d(0x1e6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a87_0x41171d(0x1fd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a87_0x41171d(0x1e8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a87_0x41171d(0x1df),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a87_0x41171d(0x1ee),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a87_0x41171d(0x1e2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1f6)],'importable':!![]},'locale':{'description':a87_0x41171d(0x1e0),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a87_0x41171d(0x1fa)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x42bfbf])=>_0x42bfbf[a87_0x41171d(0x1e4)])['map'](([_0x36983c])=>_0x36983c));export const CONFIG_ENUM_VALUES=Object[a87_0x41171d(0x1f7)](Object[a87_0x41171d(0x1ec)](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x19b848])=>_0x19b848[a87_0x41171d(0x1dc)])['map'](([_0x38781b,_0x4df367])=>[_0x38781b,[..._0x4df367[a87_0x41171d(0x1dc)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a87_0x41171d(0x1ec)](CONFIG_FIELD_SCHEMAS)[a87_0x41171d(0x1fb)](([,_0x375ec3])=>_0x375ec3[a87_0x41171d(0x1f8)])[a87_0x41171d(0x1e5)](([_0x15d24b])=>_0x15d24b);export function getConfigFieldSchema(_0x11cf70){return CONFIG_FIELD_SCHEMAS[_0x11cf70];}export function getConfigEnumValues(_0x11e9c6){const _0xeb043=a87_0x41171d;return getConfigFieldSchema(_0x11e9c6)?.[_0xeb043(0x1dc)];}export function getConfigDefaultValue(_0x416344){const _0x1781d3=a87_0x41171d;return getConfigFieldSchema(_0x416344)?.[_0x1781d3(0x1f9)];}export function isTopLevelConfigKey(_0xbd4a4f){const _0x1f9c3e=a87_0x41171d;return TOP_LEVEL_CONFIG_KEYS[_0x1f9c3e(0x1ed)](_0xbd4a4f);}export function isLegacyCompatConfigKey(_0xde4240){const _0x4cef1f=a87_0x41171d;return getConfigFieldSchema(_0xde4240)?.[_0x4cef1f(0x1ef)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a87_0xd3c9(){const _0x39afd1=['Risk\x20level','110BPpOPW','cliSettableTopLevel','map','Default\x20page\x20size','9udoapb','Override\x20user\x20domain','302394HayiWn','7926pEVBJA','Config\x20key.\x20Top-level:\x20','entries','has','Access\x20key\x20(client-ak\x20auth)','legacyCompatOnly',';\x20local\x20alias:\x20apps.<alias>.appcode','3105008TUxOGk','Default\x20output\x20format','8947584XTSPmc','1vkEOjq','format','riskLevel','fromEntries','importable','defaultValue','locale','filter','join','Override\x20API\x20domain','9095810QKwKGV','enumValues','13538xRnOaW','1943746gwurha','Override\x20SkillHub\x20domain','Locale','env'];a87_0xd3c9=function(){return _0x39afd1;};return a87_0xd3c9();}export function formatConfigKeyList(_0x2e2920){const _0x3fd33f=a87_0x41171d;return[..._0x2e2920][_0x3fd33f(0x1fc)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a87_0x29b2(_0x37aa44,_0x58ae73){_0x37aa44=_0x37aa44-0x1dc;const _0xd3c984=a87_0xd3c9();let _0x29b2e5=_0xd3c984[_0x37aa44];return _0x29b2e5;}export function getConfigCommandKeyDescription(){const _0x388631=a87_0x41171d;return _0x388631(0x1eb)+getTopLevelConfigKeySummary()+_0x388631(0x1f0);}export function buildAppProfileListFields(_0x1e3ddc){return{'env':_0x1e3ddc,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x31fbd8=a88_0x1b45;(function(_0x414d71,_0x15212f){const _0x3ce6f6=a88_0x1b45,_0x368f0a=_0x414d71();while(!![]){try{const _0x4d92c9=parseInt(_0x3ce6f6(0x67))/0x1+parseInt(_0x3ce6f6(0x6a))/0x2*(parseInt(_0x3ce6f6(0x6d))/0x3)+-parseInt(_0x3ce6f6(0x69))/0x4+-parseInt(_0x3ce6f6(0x6f))/0x5+parseInt(_0x3ce6f6(0x71))/0x6+parseInt(_0x3ce6f6(0x6c))/0x7+-parseInt(_0x3ce6f6(0x6b))/0x8*(-parseInt(_0x3ce6f6(0x66))/0x9);if(_0x4d92c9===_0x15212f)break;else _0x368f0a['push'](_0x368f0a['shift']());}catch(_0xdc2f44){_0x368f0a['push'](_0x368f0a['shift']());}}}(a88_0xf941,0x3b980));export const APP_PUBLISH_STATUS={'Published':a88_0x31fbd8(0x68),'Unpublished':a88_0x31fbd8(0x70)};function a88_0x1b45(_0x247f75,_0x4fa495){_0x247f75=_0x247f75-0x66;const _0xf941c2=a88_0xf941();let _0x1b4519=_0xf941c2[_0x247f75];return _0x1b4519;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a88_0x31fbd8(0x6e)];function a88_0xf941(){const _0x522ded=['122316FHQMNJ','9ZvDpTo','75248XyUYfS','PUBLISHED','106880rPYpyc','106xDIEXs','603488zFaoDa','1133377jeUFlG','14394gFpAgi','Published','1582295ixrMun','UNPUBLISH'];a88_0xf941=function(){return _0x522ded;};return a88_0xf941();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x178754=a89_0x4925;function a89_0x4925(_0x22c802,_0x2a0802){_0x22c802=_0x22c802-0x152;const _0x36ed18=a89_0x36ed();let _0x4925ad=_0x36ed18[_0x22c802];return _0x4925ad;}(function(_0xf56845,_0xfc1f97){const _0x40cc60=a89_0x4925,_0x3a7403=_0xf56845();while(!![]){try{const _0x854283=-parseInt(_0x40cc60(0x158))/0x1*(parseInt(_0x40cc60(0x156))/0x2)+-parseInt(_0x40cc60(0x15a))/0x3*(-parseInt(_0x40cc60(0x154))/0x4)+-parseInt(_0x40cc60(0x157))/0x5+-parseInt(_0x40cc60(0x15b))/0x6+-parseInt(_0x40cc60(0x152))/0x7+-parseInt(_0x40cc60(0x15c))/0x8+parseInt(_0x40cc60(0x155))/0x9;if(_0x854283===_0xfc1f97)break;else _0x3a7403['push'](_0x3a7403['shift']());}catch(_0x1c8f21){_0x3a7403['push'](_0x3a7403['shift']());}}}(a89_0x36ed,0xc5505));export const AUTH_MODE={'ClientAk':a89_0x178754(0x153)};function a89_0x36ed(){const _0x2b988e=['20831058JKiEpx','2024234vXZafp','1570980EkZhun','1qKfgmv','ClientAk','315708SfZHfS','1801026cOdKlA','2457920knAuTu','5848311gCupiK','client-ak','48KIFLno'];a89_0x36ed=function(){return _0x2b988e;};return a89_0x36ed();}export function isAuthMode(_0x5de049){const _0xc0662c=a89_0x178754;return _0x5de049===AUTH_MODE[_0xc0662c(0x159)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a90_0x2487(_0x2d57c6,_0x5d043b){_0x2d57c6=_0x2d57c6-0xea;const _0x157fc8=a90_0x157f();let _0x24872e=_0x157fc8[_0x2d57c6];return _0x24872e;}const a90_0x4a4b76=a90_0x2487;(function(_0x12192a,_0x1a12f9){const _0x51db5f=a90_0x2487,_0x142519=_0x12192a();while(!![]){try{const _0x59b084=parseInt(_0x51db5f(0xec))/0x1+-parseInt(_0x51db5f(0x115))/0x2+parseInt(_0x51db5f(0x112))/0x3+parseInt(_0x51db5f(0xfb))/0x4+parseInt(_0x51db5f(0xf5))/0x5*(parseInt(_0x51db5f(0xf6))/0x6)+parseInt(_0x51db5f(0xeb))/0x7+parseInt(_0x51db5f(0x104))/0x8*(-parseInt(_0x51db5f(0x103))/0x9);if(_0x59b084===_0x1a12f9)break;else _0x142519['push'](_0x142519['shift']());}catch(_0x5caeb2){_0x142519['push'](_0x142519['shift']());}}}(a90_0x157f,0x31f29));function a90_0x157f(){const _0x1503e2=['dry-run','verbose','appcode','Select\x20app\x20profile\x20by\x20name','807224unDqIh','app','params','SQL\x20query\x20code','env','meowKey','json\x20|\x20pretty\x20|\x20compress','dryRun','6433281hbeOGK','8QoICIg','Alias\x20for\x20--non-interactive','JSON\x20params\x20for\x20execute\x20commands','cliDisplayName','<code>','non-interactive','yes','production\x20|\x20development\x20|\x20daily','fromEntries','boolean','Use\x20global\x20config\x20scope','Output\x20format','name','string','307719IEOZxh','type','Clear\x20output','451586auWMxn','help','Preview\x20operation\x20without\x20executing','map','Environment','2290981MdUizx','368145rzRrBB','Record\x20ID','Verbose\x20output','format','<name>','sqlcode','<expr>','clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','100AJknlB','43614NzVkZU'];a90_0x157f=function(){return _0x1503e2;};return a90_0x157f();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG['cliBinName'];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a90_0x4a4b76(0x107)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a90_0x4a4b76(0xf9),'meowKey':a90_0x4a4b76(0xf9),'type':a90_0x4a4b76(0x111),'description':'Override\x20appcode','hint':a90_0x4a4b76(0x108)},{'name':a90_0x4a4b76(0xfc),'meowKey':'app','type':a90_0x4a4b76(0x111),'description':a90_0x4a4b76(0xfa),'hint':a90_0x4a4b76(0xf0)},{'name':a90_0x4a4b76(0xff),'meowKey':a90_0x4a4b76(0xff),'type':'string','description':a90_0x4a4b76(0xea),'hint':a90_0x4a4b76(0x10b)},{'name':'format','meowKey':a90_0x4a4b76(0xef),'type':'string','description':a90_0x4a4b76(0x10f),'hint':a90_0x4a4b76(0x101)},{'name':'jq','meowKey':'jq','type':'string','description':a90_0x4a4b76(0xf4),'hint':a90_0x4a4b76(0xf2)},{'name':a90_0x4a4b76(0xf7),'meowKey':a90_0x4a4b76(0x102),'type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x117)},{'name':a90_0x4a4b76(0x10a),'meowKey':'yes','type':a90_0x4a4b76(0x10d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a90_0x4a4b76(0x109),'meowKey':'nonInteractive','type':a90_0x4a4b76(0x10d),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x10e)},{'name':'ci','meowKey':'ci','type':'boolean','description':a90_0x4a4b76(0x105),'hidden':!![]},{'name':a90_0x4a4b76(0x116),'meowKey':a90_0x4a4b76(0x116),'type':a90_0x4a4b76(0x10d),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a90_0x4a4b76(0xed),'hidden':!![]},{'name':'name','meowKey':a90_0x4a4b76(0x110),'type':a90_0x4a4b76(0x111),'description':'Name\x20filter','hidden':!![]},{'name':'sqlcode','meowKey':a90_0x4a4b76(0xf1),'type':'string','description':a90_0x4a4b76(0xfe),'hidden':!![]},{'name':a90_0x4a4b76(0xfd),'meowKey':a90_0x4a4b76(0xfd),'type':a90_0x4a4b76(0x111),'description':a90_0x4a4b76(0x106),'hidden':!![]},{'name':a90_0x4a4b76(0xf8),'meowKey':a90_0x4a4b76(0xf8),'type':'boolean','description':a90_0x4a4b76(0xee),'hidden':!![]},{'name':a90_0x4a4b76(0xf3),'meowKey':a90_0x4a4b76(0xf3),'type':a90_0x4a4b76(0x10d),'description':a90_0x4a4b76(0x114),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app',a90_0x4a4b76(0xff),a90_0x4a4b76(0xef),'jq',a90_0x4a4b76(0xf7),a90_0x4a4b76(0x10a),a90_0x4a4b76(0x109),'ci']);export function buildMeowFlags(){const _0x4e4d05=a90_0x4a4b76;return Object[_0x4e4d05(0x10c)](GLOBAL_FLAGS[_0x4e4d05(0x118)](_0x414fc2=>[_0x414fc2[_0x4e4d05(0x100)],{'type':_0x414fc2[_0x4e4d05(0x113)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a91_0x5d75fd=a91_0x2509;function a91_0x2509(_0x1e261a,_0xfaf89){_0x1e261a=_0x1e261a-0x1b3;const _0x11157a=a91_0x1115();let _0x250929=_0x11157a[_0x1e261a];return _0x250929;}function a91_0x1115(){const _0x947440=['en-US','write','12oFfdhz','main','1367004vJsRHh','1851367Jpclik','4031019iaRfvw','compress','168645kpNokr','86081JweZIu','production','673365SwLGnX','103886gpcVDw','8mqCjJC'];a91_0x1115=function(){return _0x947440;};return a91_0x1115();}(function(_0x2fc430,_0x4f8d35){const _0x5b2c77=a91_0x2509,_0x1ccdda=_0x2fc430();while(!![]){try{const _0x3ba591=parseInt(_0x5b2c77(0x1c0))/0x1+-parseInt(_0x5b2c77(0x1b5))/0x2+parseInt(_0x5b2c77(0x1bf))/0x3*(-parseInt(_0x5b2c77(0x1b9))/0x4)+-parseInt(_0x5b2c77(0x1b4))/0x5+parseInt(_0x5b2c77(0x1bb))/0x6+parseInt(_0x5b2c77(0x1bc))/0x7*(-parseInt(_0x5b2c77(0x1b6))/0x8)+parseInt(_0x5b2c77(0x1bd))/0x9;if(_0x3ba591===_0x4f8d35)break;else _0x1ccdda['push'](_0x1ccdda['shift']());}catch(_0x59706e){_0x1ccdda['push'](_0x1ccdda['shift']());}}}(a91_0x1115,0x22af0));export const DEFAULT_APP_PROFILE_NAME=a91_0x5d75fd(0x1ba);export const DEFAULT_CONFIG_VALUES={'env':a91_0x5d75fd(0x1b3),'format':a91_0x5d75fd(0x1be),'locale':a91_0x5d75fd(0x1b7),'riskLevel':a91_0x5d75fd(0x1b8)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a91_0x5d75fd(0x1be);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x183ffd=a92_0x5aac;(function(_0x5eac12,_0x16e460){const _0x4fe061=a92_0x5aac,_0x183846=_0x5eac12();while(!![]){try{const _0x174d1e=parseInt(_0x4fe061(0xa6))/0x1+parseInt(_0x4fe061(0xab))/0x2*(-parseInt(_0x4fe061(0xa7))/0x3)+parseInt(_0x4fe061(0xaa))/0x4+-parseInt(_0x4fe061(0xac))/0x5+-parseInt(_0x4fe061(0xa5))/0x6*(parseInt(_0x4fe061(0xae))/0x7)+-parseInt(_0x4fe061(0xa4))/0x8+parseInt(_0x4fe061(0xa9))/0x9*(parseInt(_0x4fe061(0xa8))/0xa);if(_0x174d1e===_0x16e460)break;else _0x183846['push'](_0x183846['shift']());}catch(_0x4c002d){_0x183846['push'](_0x183846['shift']());}}}(a92_0x2782,0xf4224));import{PRODUCT_CONFIG}from'../constant/product.js';function a92_0x2782(){const _0x26ba5b=['npmRegistryBaseUrl','6247648QItpHs','6pHbVeC','31210lcgUID','1191euCeDD','5870HXgvdO','70758SaMGau','577016BfuSTb','7262xVyTnr','3233720YNNRfY','npmPackageName','6448953CGSAIU','skillSource'];a92_0x2782=function(){return _0x26ba5b;};return a92_0x2782();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a92_0x183ffd(0xad)];function a92_0x5aac(_0x344b3f,_0x211550){_0x344b3f=_0x344b3f-0xa3;const _0x27822a=a92_0x2782();let _0x5aacd6=_0x27822a[_0x344b3f];return _0x5aacd6;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a92_0x183ffd(0xaf)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a92_0x183ffd(0xa3)];
|
package/lib/constant/domain.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare function initDomains(domains?: {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const getUserDomain: () => string;
|
|
40
40
|
/**
|
|
41
|
-
* Returns the primary API domain for management operations (datasets, SQL,
|
|
41
|
+
* Returns the primary API domain for management operations (datasets, SQL, Backend Function).
|
|
42
42
|
*
|
|
43
43
|
* Why the domain changes based on env: production and staging (daily) have
|
|
44
44
|
* separate infrastructure. Development uses the same staging API — there is no
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x3af66f=a93_0x6b7a;function a93_0x6b7a(_0x365ee6,_0x822de2){_0x365ee6=_0x365ee6-0x1bb;const _0x458eb6=a93_0x458e();let _0x6b7ae8=_0x458eb6[_0x365ee6];return _0x6b7ae8;}(function(_0x182046,_0x52e83c){const _0x127370=a93_0x6b7a,_0x3c32bc=_0x182046();while(!![]){try{const _0x5ee9a3=-parseInt(_0x127370(0x1c6))/0x1+parseInt(_0x127370(0x1be))/0x2*(parseInt(_0x127370(0x1bb))/0x3)+parseInt(_0x127370(0x1c4))/0x4+-parseInt(_0x127370(0x1c2))/0x5*(parseInt(_0x127370(0x1c0))/0x6)+parseInt(_0x127370(0x1cb))/0x7+parseInt(_0x127370(0x1bf))/0x8+-parseInt(_0x127370(0x1bc))/0x9;if(_0x5ee9a3===_0x52e83c)break;else _0x3c32bc['push'](_0x3c32bc['shift']());}catch(_0x22f57f){_0x3c32bc['push'](_0x3c32bc['shift']());}}}(a93_0x458e,0xbd2a7));function a93_0x458e(){const _0x521cbc=['apiDomain','user','289164kLLFHu','6683661GSdrFG','userDomain','16AZMAzK','5088184isHtFQ','402vcnIXm','production','64510UyUpie','domains','4091828koMyQt','nonProduction','718945UIoNSc','skillHubDomain','api','runtime','skillhub','4695229WcdQiY'];a93_0x458e=function(){return _0x521cbc;};return a93_0x458e();}import{getEnv,isProduction}from'../constant/env.js';import{PRODUCT_CONFIG}from'../constant/product.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillHubDomain;export function initDomains(_0x1ba1a4){const _0x5d9a95=a93_0x6b7a;customApiDomain=_0x1ba1a4?.[_0x5d9a95(0x1cc)],customUserDomain=_0x1ba1a4?.[_0x5d9a95(0x1bd)],customRuntimeDomain=_0x1ba1a4?.['runtimeDomain'],customSkillHubDomain=_0x1ba1a4?.[_0x5d9a95(0x1c7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c1)][a93_0x3af66f(0x1cd)]:PRODUCT_CONFIG['domains']['nonProduction'][a93_0x3af66f(0x1cd)]);export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?PRODUCT_CONFIG['domains'][a93_0x3af66f(0x1c1)][a93_0x3af66f(0x1c8)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['nonProduction'][a93_0x3af66f(0x1c8)]);export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['production'][a93_0x3af66f(0x1c9)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c5)]['runtime']);export const getSkillHubDomain=()=>customSkillHubDomain||(isProduction(getEnv())?PRODUCT_CONFIG[a93_0x3af66f(0x1c3)]['production'][a93_0x3af66f(0x1ca)]:PRODUCT_CONFIG[a93_0x3af66f(0x1c3)][a93_0x3af66f(0x1c5)][a93_0x3af66f(0x1ca)]);
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a94_0x2029c4=a94_0x368d;(function(_0x21c94e,_0x5024d9){const _0x1606ae=a94_0x368d,_0x1c6c03=_0x21c94e();while(!![]){try{const _0xe57ee0=-parseInt(_0x1606ae(0xda))/0x1*(-parseInt(_0x1606ae(0xd7))/0x2)+-parseInt(_0x1606ae(0xd9))/0x3+parseInt(_0x1606ae(0xd8))/0x4+parseInt(_0x1606ae(0xde))/0x5+parseInt(_0x1606ae(0xdc))/0x6*(parseInt(_0x1606ae(0xdb))/0x7)+parseInt(_0x1606ae(0xe5))/0x8*(-parseInt(_0x1606ae(0xdd))/0x9)+parseInt(_0x1606ae(0xe1))/0xa*(-parseInt(_0x1606ae(0xe4))/0xb);if(_0xe57ee0===_0x5024d9)break;else _0x1c6c03['push'](_0x1c6c03['shift']());}catch(_0x8c4027){_0x1c6c03['push'](_0x1c6c03['shift']());}}}(a94_0x5996,0x836e7));import{productEnv}from'../constant/product.js';function a94_0x368d(_0x55dc7e,_0x556b04){_0x55dc7e=_0x55dc7e-0xd7;const _0x59965d=a94_0x5996();let _0x368d18=_0x59965d[_0x55dc7e];return _0x368d18;}export const RUNTIME_ENV_VALUES=[a94_0x2029c4(0xdf),a94_0x2029c4(0xe7),'daily'];export function normalizeEnv(_0x5af66e){const _0x55b587=a94_0x2029c4;return _0x5af66e===_0x55b587(0xe0)?_0x55b587(0xdf):_0x5af66e;}export function isProduction(_0x4ff016){return normalizeEnv(_0x4ff016)==='production';}export function isDaily(_0xc78f84){const _0x8c4e7a=a94_0x2029c4;return normalizeEnv(_0xc78f84)===_0x8c4e7a(0xe6);}export function isDev(_0x3c4318){const _0x2e62d8=a94_0x2029c4,_0x351914=normalizeEnv(_0x3c4318);return _0x351914==='development'||_0x351914===_0x2e62d8(0xe3);}let env=normalizeEnv(productEnv(a94_0x2029c4(0xe2))||a94_0x2029c4(0xdf));export function getEnv(){return env;}function a94_0x5996(){const _0x3f4bd2=['733302QjnDDF','9tMbSaL','4818210aIyDvW','production','online','4430FMDXXJ','ENV','dev','3058XNeMSw','7006424hyUocj','daily','development','470curMVy','1928204jLNjQG','2778585hFxzbl','3811DYDVmW','7xMkxrQ'];a94_0x5996=function(){return _0x3f4bd2;};return a94_0x5996();}export function initEnv(_0x19339e){env=normalizeEnv(_0x19339e);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0x588f(_0x71bb8c,_0x59e3a4){_0x71bb8c=_0x71bb8c-0x120;const _0x57b004=a95_0x57b0();let _0x588fd5=_0x57b004[_0x71bb8c];return _0x588fd5;}function a95_0x57b0(){const _0x2a7db7=['compress','152000RmrtgY','1943862CNkRwA','263061oMnbdY','803085AJDrTQ','5128605oIwFli','304RHRCdv','8wPMnhS','pretty','524931BWvcvu','46879BUOcyw'];a95_0x57b0=function(){return _0x2a7db7;};return a95_0x57b0();}const a95_0x3c3441=a95_0x588f;(function(_0x457905,_0x3175ea){const _0x182880=a95_0x588f,_0x370a1a=_0x457905();while(!![]){try{const _0x7f92d0=-parseInt(_0x182880(0x125))/0x1+parseInt(_0x182880(0x123))/0x2+parseInt(_0x182880(0x120))/0x3+-parseInt(_0x182880(0x129))/0x4*(parseInt(_0x182880(0x126))/0x5)+-parseInt(_0x182880(0x124))/0x6+-parseInt(_0x182880(0x121))/0x7*(-parseInt(_0x182880(0x128))/0x8)+parseInt(_0x182880(0x127))/0x9;if(_0x7f92d0===_0x3175ea)break;else _0x370a1a['push'](_0x370a1a['shift']());}catch(_0x58d9d8){_0x370a1a['push'](_0x370a1a['shift']());}}}(a95_0x57b0,0x28c7c));export const OUTPUT_FORMAT_VALUES=['json',a95_0x3c3441(0x12a),a95_0x3c3441(0x122)];
|
package/lib/constant/product.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x5c40a2=a96_0x2a14;function a96_0x5881(){const _0x4cebb4=['2725565LDtbnr','.lovrabet-runtime.log','.lovrabetrc','https://skills-daily.lovrabet.com','.lovrabet.json','https://user.lovrabet.com','256808tOPVSi','https://user-daily.lovrabet.com','map','.lovrabet','6OftkZu','6CSKgBz','https://daily-api.lovrabet.com','1782064DjCLEI','https://daily-runtime.lovrabet.com','RABETBASE','1277241suoLMM','679842zivLFo','189800eWQMxN','LOVRABET','lovrabet','Lovrabet\x20Runtime\x20CLI','https://registry.npmjs.org','1212843mQMydG','legacyEnvPrefixes','cli:lovrabet-runtime','envPrefix','Lovrabet\x20User\x20Center','https://runtime.lovrabet.com','SKIP_NPX_SKILLS'];a96_0x5881=function(){return _0x4cebb4;};return a96_0x5881();}(function(_0x5ba8e2,_0x1f30c2){const _0x340f9f=a96_0x2a14,_0x3c7dab=_0x5ba8e2();while(!![]){try{const _0x1fd944=-parseInt(_0x340f9f(0x152))/0x1*(-parseInt(_0x340f9f(0x14a))/0x2)+-parseInt(_0x340f9f(0x157))/0x3+parseInt(_0x340f9f(0x14d))/0x4+parseInt(_0x340f9f(0x15e))/0x5*(-parseInt(_0x340f9f(0x14b))/0x6)+parseInt(_0x340f9f(0x150))/0x7+parseInt(_0x340f9f(0x146))/0x8+parseInt(_0x340f9f(0x151))/0x9;if(_0x1fd944===_0x1f30c2)break;else _0x3c7dab['push'](_0x3c7dab['shift']());}catch(_0x43ffe3){_0x3c7dab['push'](_0x3c7dab['shift']());}}}(a96_0x5881,0x56d28));export const PRODUCT_CONFIG={'cliBinName':a96_0x5c40a2(0x154),'cliDisplayName':a96_0x5c40a2(0x155),'npmPackageName':'@lovrabet/lovrabet-cli','skillSource':'lovrabet/lovrabet-cli','internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a96_0x5c40a2(0x154),'npmRegistryBaseUrl':a96_0x5c40a2(0x156),'envPrefix':a96_0x5c40a2(0x153),'legacyEnvPrefixes':[a96_0x5c40a2(0x14f)],'configFileNames':[a96_0x5c40a2(0x144),a96_0x5c40a2(0x142)],'newConfigFileName':'.lovrabet.json','homeDirName':a96_0x5c40a2(0x149),'logFileName':a96_0x5c40a2(0x141),'invokeSource':a96_0x5c40a2(0x159),'userCenterDisplayName':a96_0x5c40a2(0x15b),'skipNpxSkillsEnvSuffix':a96_0x5c40a2(0x15d),'domains':{'production':{'user':a96_0x5c40a2(0x145),'api':'https://api.lovrabet.com','runtime':a96_0x5c40a2(0x15c),'skillhub':'https://skills.lovrabet.com'},'nonProduction':{'user':a96_0x5c40a2(0x147),'api':a96_0x5c40a2(0x14c),'runtime':a96_0x5c40a2(0x14e),'skillhub':a96_0x5c40a2(0x143)}},'accessKeyCreatePath':'/user/ak'};export function productEnvName(_0x4212c3){const _0x4fcec9=a96_0x5c40a2;return PRODUCT_CONFIG[_0x4fcec9(0x15a)]+'_'+_0x4212c3;}function a96_0x2a14(_0x25084b,_0x5c0cae){_0x25084b=_0x25084b-0x141;const _0x5881e6=a96_0x5881();let _0x2a1461=_0x5881e6[_0x25084b];return _0x2a1461;}export function productEnvNames(_0x4f9a1a){const _0x84421f=a96_0x5c40a2;return[productEnvName(_0x4f9a1a),...PRODUCT_CONFIG[_0x84421f(0x158)][_0x84421f(0x148)](_0x28f310=>_0x28f310+'_'+_0x4f9a1a)];}export function productEnv(_0x44de51){for(const _0x128158 of productEnvNames(_0x44de51)){const _0x598a24=process.env[_0x128158];if(_0x598a24!==undefined)return _0x598a24;}return undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x4b67(_0x23a3cc,_0x1c5570){_0x23a3cc=_0x23a3cc-0x121;const _0x2179a6=a97_0x2179();let _0x4b67c6=_0x2179a6[_0x23a3cc];return _0x4b67c6;}const a97_0x1ceac9=a97_0x4b67;function a97_0x2179(){const _0x17405c=['4709873uteXNt','4881132xceqbB','3559984xkLszo','15sitbGL','223506obKcnE','read','469124muKtWL','1404910MXuqhw','1iPhDLt','3840306SMnEyl'];a97_0x2179=function(){return _0x17405c;};return a97_0x2179();}(function(_0x5ae037,_0x550b91){const _0x43accf=a97_0x4b67,_0x34b81d=_0x5ae037();while(!![]){try{const _0x394390=parseInt(_0x43accf(0x123))/0x1*(-parseInt(_0x43accf(0x129))/0x2)+parseInt(_0x43accf(0x128))/0x3*(-parseInt(_0x43accf(0x121))/0x4)+-parseInt(_0x43accf(0x122))/0x5+parseInt(_0x43accf(0x124))/0x6+parseInt(_0x43accf(0x125))/0x7+-parseInt(_0x43accf(0x127))/0x8+parseInt(_0x43accf(0x126))/0x9;if(_0x394390===_0x550b91)break;else _0x34b81d['push'](_0x34b81d['shift']());}catch(_0x3e777d){_0x34b81d['push'](_0x34b81d['shift']());}}}(a97_0x2179,0x693fc));export const RISK_LEVEL_VALUES=[a97_0x1ceac9(0x12a),'write','high-risk-write'];
|
package/lib/constant/url.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98_0xbffc(_0x151d19,_0x5b8f84){_0x151d19=_0x151d19-0x16e;const _0x50e2d3=a98_0x50e2();let _0xbffc85=_0x50e2d3[_0x151d19];return _0xbffc85;}const a98_0x39e0cd=a98_0xbffc;(function(_0x322cae,_0x546797){const _0x1188b8=a98_0xbffc,_0x19e939=_0x322cae();while(!![]){try{const _0x1e3493=parseInt(_0x1188b8(0x178))/0x1+-parseInt(_0x1188b8(0x177))/0x2*(parseInt(_0x1188b8(0x16e))/0x3)+-parseInt(_0x1188b8(0x174))/0x4+-parseInt(_0x1188b8(0x17a))/0x5+-parseInt(_0x1188b8(0x173))/0x6*(parseInt(_0x1188b8(0x16f))/0x7)+parseInt(_0x1188b8(0x179))/0x8+parseInt(_0x1188b8(0x171))/0x9;if(_0x1e3493===_0x546797)break;else _0x19e939['push'](_0x19e939['shift']());}catch(_0x41d46e){_0x19e939['push'](_0x19e939['shift']());}}}(a98_0x50e2,0xd48ee));import{PRODUCT_CONFIG}from'../constant/product.js';function a98_0x50e2(){const _0x42ed31=['1498836GCKXlf','8813608PGmGjL','6984400IaVRqg','120051WUEjRW','217wXYcks','accessKeyCreatePath','10829916KoQsca','production','122214nyeXxJ','2659208JicdqE','domains','user','12IMUBlw'];a98_0x50e2=function(){return _0x42ed31;};return a98_0x50e2();}export const USER_ACCESS_KEY_CREATE_URL=''+PRODUCT_CONFIG[a98_0x39e0cd(0x175)][a98_0x39e0cd(0x172)][a98_0x39e0cd(0x176)]+PRODUCT_CONFIG[a98_0x39e0cd(0x170)];
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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)]();}};}
|
|
1
|
+
function a99_0x1a21(){const _0x3869b8=['authRequired','APP','true','inherit','locale','35oKKArH','error','FORMAT','some','trim','apps','development','isTTY','173821ESPDIR','app','local-alias','string','./constant/env.js','riskLevel','object','stdin','EXDEV','global','projectConfig','values','join','stringify','./constant/domain.js','cwd','message','setLogPath','EPERM','accessKey','slice','code','925944NUrWZD','daily','newConfigFileName','stdout','find','PAGE_SIZE','read','ACCESS_KEY','format','8Qnqluh','setRawMode','parse','configFileNames','globalConfig','top-level','maxRisk','14166020XqLWUS','project','skillHubDomain','4000356LAYciV','argv','runtimeDomain','3805479nMCAfe','appcode','.tmp','1271814lnHoae','isRaw','env','write','raw','defaultApp','5580HamQxT','utf8','production','10QaonjM','pageSize'];a99_0x1a21=function(){return _0x3869b8;};return a99_0x1a21();}const a99_0x1a7dd6=a99_0x949c;(function(_0x27d3cd,_0x50a419){const _0x5567bd=a99_0x949c,_0x370f97=_0x27d3cd();while(!![]){try{const _0x40ce91=-parseInt(_0x5567bd(0x76))/0x1*(-parseInt(_0x5567bd(0x67))/0x2)+parseInt(_0x5567bd(0xa5))/0x3+-parseInt(_0x5567bd(0x9f))/0x4+parseInt(_0x5567bd(0xab))/0x5+parseInt(_0x5567bd(0x8c))/0x6*(-parseInt(_0x5567bd(0x6e))/0x7)+parseInt(_0x5567bd(0x95))/0x8*(-parseInt(_0x5567bd(0xa2))/0x9)+parseInt(_0x5567bd(0x9c))/0xa;if(_0x40ce91===_0x50a419)break;else _0x370f97['push'](_0x370f97['shift']());}catch(_0x3430e6){_0x370f97['push'](_0x370f97['shift']());}}}(a99_0x1a21,0x7e07d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a99_0x949c(_0x1d4a91,_0x4e5874){_0x1d4a91=_0x1d4a91-0x66;const _0x1a211c=a99_0x1a21();let _0x949cfd=_0x1a211c[_0x1d4a91];return _0x949cfd;}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_0x1a7dd6(0x98)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a99_0x1a7dd6(0x8e)];function resolveConfigPath(_0x56c4d5){for(const _0x23ba1d of CONFIG_NAMES){const _0x2c5811=resolve(_0x56c4d5,_0x23ba1d);if(existsSync(_0x2c5811))return _0x2c5811;}return undefined;}export function resolveWriteConfigPath(_0x2ab1e5){const _0x2fb3ed=a99_0x1a7dd6,_0x318ed0=_0x2ab1e5==='project'?process[_0x2fb3ed(0x85)]():homedir(),_0xd28292=resolveConfigPath(_0x318ed0);return _0xd28292??resolve(_0x318ed0,NEW_CONFIG_NAME);}export function readConfigFile(_0x148098){const _0x178d4c=a99_0x1a7dd6;try{if(existsSync(_0x148098)){const _0x1bbfc5=readFileSync(_0x148098,{'encoding':_0x178d4c(0xac)});if(_0x1bbfc5){const _0x3cd9f2=JSON[_0x178d4c(0x97)](_0x1bbfc5);return migrateOnlineEnv(_0x148098,_0x3cd9f2),_0x3cd9f2;}}}catch{}return{};}function migrateOnlineEnv(_0x1673b8,_0xc04a75){const _0x513388=a99_0x1a7dd6;let _0x3231a8=![];_0xc04a75['env']==='online'&&(_0xc04a75[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);if(_0xc04a75[_0x513388(0x73)]&&typeof _0xc04a75[_0x513388(0x73)]===_0x513388(0x7c))for(const _0x119887 of Object[_0x513388(0x81)](_0xc04a75[_0x513388(0x73)])){_0x119887&&_0x119887['env']==='online'&&(_0x119887[_0x513388(0xa7)]=_0x513388(0x66),_0x3231a8=!![]);}if(_0x3231a8)try{writeConfigFile(_0x1673b8,_0xc04a75);}catch{}}export function writeConfigFile(_0x130bd0,_0x3fb908){const _0x486322=a99_0x1a7dd6,_0xd0eb09=dirname(_0x130bd0);!existsSync(_0xd0eb09)&&mkdirSync(_0xd0eb09,{'recursive':!![]});const _0x5b16b9=_0x130bd0+_0x486322(0xa4);try{writeFileSync(_0x5b16b9,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac),'mode':0x180});try{renameSync(_0x5b16b9,_0x130bd0);}catch(_0x2060e7){if(_0x2060e7[_0x486322(0x8b)]===_0x486322(0x88)||_0x2060e7[_0x486322(0x8b)]===_0x486322(0x7e)||_0x2060e7[_0x486322(0x8b)]==='EACCES'){writeFileSync(_0x130bd0,JSON[_0x486322(0x83)](_0x3fb908,null,0x2)+'\x0a',{'encoding':_0x486322(0xac)});try{unlinkSync(_0x5b16b9);}catch{}}else throw _0x2060e7;}}catch(_0x1b3a6b){try{unlinkSync(_0x5b16b9);}catch{}throw _0x1b3a6b;}}export function isNonInteractiveMode(_0x12d2ac){const _0xca34d4=a99_0x1a7dd6;return!!(_0x12d2ac['nonInteractive']||_0x12d2ac['ci']||productEnvNames('CI')[_0xca34d4(0x71)](_0x47451e=>process.env[_0x47451e]==='true')||process.env.CI===_0xca34d4(0x6b)||!process[_0xca34d4(0x8f)][_0xca34d4(0x75)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x568c6f=a99_0x1a7dd6;if(!process[_0x568c6f(0x7d)][_0x568c6f(0x75)])return![];try{const _0x378c58=process['stdin'][_0x568c6f(0xa6)];return process[_0x568c6f(0x7d)]['setRawMode'](!![]),process[_0x568c6f(0x7d)][_0x568c6f(0x96)](_0x378c58??![]),!![];}catch{return![];}}export async function createContext(_0x453650){const _0x10b57a=a99_0x1a7dd6,_0x329101=readRawConfig(),_0x18e0ce=buildConfig(_0x329101,_0x453650);await initGlobalEnvironment(_0x18e0ce);const {getUserDomain:_0x5c683f,getApiDomain:_0x39e89d}=await import(_0x10b57a(0x84)),_0x3b799e={'apiDomain':_0x39e89d(),'userDomain':_0x5c683f()},_0x58d5d6=await buildAuth(_0x18e0ce);logger[_0x10b57a(0x87)](process[_0x10b57a(0x85)]());const _0x4d48dc=(CLI_BIN_NAME+'\x20'+process[_0x10b57a(0xa0)][_0x10b57a(0x8a)](0x2)[_0x10b57a(0x82)]('\x20'))[_0x10b57a(0x72)]();logger['setRawCommand'](_0x4d48dc);const _0x152582=isNonInteractiveMode(_0x453650);return{'config':_0x18e0ce,'auth':_0x58d5d6,'logger':logger,'env':_0x3b799e,'nonInteractive':_0x152582};}export function buildConfigFromFlags(_0x3bd514){return buildConfig(readRawConfig(),_0x3bd514);}export function getLocalAppAliases(_0x25daff){const _0x533086=a99_0x1a7dd6;return _0x25daff[_0x533086(0x73)]&&typeof _0x25daff[_0x533086(0x73)]===_0x533086(0x7c)?_0x25daff['apps']:{};}export function resolveLocalAppAliasCode(_0x391281,_0x2c2297){const _0x5cd4b9=a99_0x1a7dd6;if(!_0x2c2297)return undefined;const _0x24bedd=getLocalAppAliases(_0x391281)[_0x2c2297],_0x23b918=_0x24bedd?.[_0x5cd4b9(0xa3)];return typeof _0x23b918==='string'&&_0x23b918[_0x5cd4b9(0x72)]()?_0x23b918['trim']():undefined;}export function readAppCodeFromConfig(){const _0x20884c=a99_0x1a7dd6,_0x51243e=readRawConfig(),_0x476e6d=_0x51243e[_0x20884c(0xa3)]??_0x51243e[_0x20884c(0x77)];if(typeof _0x476e6d==='string'&&_0x476e6d[_0x20884c(0x72)]())return _0x476e6d['trim']();const _0x60dc70=resolveLocalAppAliasCode(_0x51243e,typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined);if(_0x60dc70)return _0x60dc70;const _0x57058c=normalizeEnv(String(_0x51243e[_0x20884c(0xa7)]||'production')),_0x4bd321=isDaily(_0x57058c)?_0x20884c(0x8d):isDev(_0x57058c)?_0x20884c(0x74):_0x20884c(0x66),_0x7c6f1a=resolveCachedAppCode(typeof _0x51243e[_0x20884c(0xaa)]===_0x20884c(0x79)?_0x51243e[_0x20884c(0xaa)]:undefined,_0x4bd321,typeof _0x51243e['accessKey']==='string'?_0x51243e['accessKey']:undefined);if(_0x7c6f1a)return _0x7c6f1a;const _0x344139=Object[_0x20884c(0x81)](getLocalAppAliases(_0x51243e))[_0x20884c(0x90)](_0x55bbba=>_0x55bbba?.[_0x20884c(0xa3)]);return typeof _0x344139?.[_0x20884c(0xa3)]===_0x20884c(0x79)&&_0x344139['appcode'][_0x20884c(0x72)]()?_0x344139[_0x20884c(0xa3)][_0x20884c(0x72)]():undefined;}export function readScopedConfig(_0x34d64a){const _0x55f590=a99_0x1a7dd6,_0x531402=_0x34d64a['global']?_0x55f590(0x7f):_0x55f590(0x9d);return readConfigFile(resolveWriteConfigPath(_0x531402));}export function writeScopedConfig(_0x190dfa,_0x44fb64){const _0xf04e9=a99_0x1a7dd6,_0xeb22ac=_0x44fb64[_0xf04e9(0x7f)]?_0xf04e9(0x7f):_0xf04e9(0x9d);writeConfigFile(resolveWriteConfigPath(_0xeb22ac),_0x190dfa);}export async function initGlobalEnvironment(_0x4aefbc){const _0x57fce3=a99_0x1a7dd6,{initEnv:_0x18dbe6}=await import(_0x57fce3(0x7a));_0x18dbe6(_0x4aefbc[_0x57fce3(0xa7)]);const {initDomains:_0x5e1120}=await import(_0x57fce3(0x84));_0x5e1120({'apiDomain':_0x4aefbc[_0x57fce3(0xa9)]['apiDomain']||_0x4aefbc[_0x57fce3(0xa9)]['host']||undefined,'userDomain':_0x4aefbc[_0x57fce3(0xa9)]['userDomain']||undefined,'runtimeDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0xa1)]||undefined,'skillHubDomain':_0x4aefbc[_0x57fce3(0xa9)][_0x57fce3(0x9e)]||undefined});}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x37e7e5){const _0x435009=a99_0x1a7dd6;if(!existsSync(_0x37e7e5))return{'status':'missing'};try{const _0x4d5781=readFileSync(_0x37e7e5,{'encoding':_0x435009(0xac)});if(!_0x4d5781?.[_0x435009(0x72)]())return{'status':'empty'};const _0x810f30=JSON[_0x435009(0x97)](_0x4d5781);return{'status':'ok','data':_0x810f30};}catch(_0x4b5496){return{'status':_0x435009(0x6f),'message':_0x4b5496 instanceof Error?_0x4b5496[_0x435009(0x86)]:String(_0x4b5496)};}}export function loadRawConfigLayers(_0x949b2){const _0x411dd6=a99_0x1a7dd6;let _0x58d4e8={},_0x50c000={},_0x50db3c,_0x4ce400;try{_0x50db3c=resolveConfigPath(homedir());if(_0x50db3c){const _0x4110bc=readFileSync(_0x50db3c,{'encoding':'utf8'});if(_0x4110bc)_0x58d4e8=JSON['parse'](_0x4110bc);}}catch{}try{const _0x2ac6d4=_0x949b2||process[_0x411dd6(0x85)]();_0x4ce400=resolveConfigPath(_0x2ac6d4);if(_0x4ce400){const _0x195100=readFileSync(_0x4ce400,{'encoding':_0x411dd6(0xac)});if(_0x195100)_0x50c000=JSON[_0x411dd6(0x97)](_0x195100);}}catch{}return{'globalPath':_0x50db3c,'projectPath':_0x4ce400,'globalConfig':_0x58d4e8,'projectConfig':_0x50c000};}function mergeRawConfigLayers(_0x228ed4){const _0x25e17e=a99_0x1a7dd6,{globalConfig:_0x502511,projectConfig:_0x5b18c5}=_0x228ed4;if(_0x5b18c5[_0x25e17e(0x6c)]===![]){const _0x27219a={..._0x5b18c5};return delete _0x27219a[_0x25e17e(0x6c)],_0x27219a;}const _0x529426={..._0x502511,..._0x5b18c5};if('defaultApp'in _0x5b18c5)_0x529426[_0x25e17e(0xaa)]=_0x5b18c5[_0x25e17e(0xaa)];else _0x502511[_0x25e17e(0xaa)]&&(_0x529426[_0x25e17e(0xaa)]=_0x502511[_0x25e17e(0xaa)]);return _0x529426;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x25aab0){return mergeRawConfigLayers(loadRawConfigLayers(_0x25aab0));}export function readRawConfigWithLayers(_0x3a49b7){const _0x4e393f=loadRawConfigLayers(_0x3a49b7);return{'config':mergeRawConfigLayers(_0x4e393f),'layers':_0x4e393f};}export function resolveDefaultAppSource(_0x34d7c5){const _0x5ca720=a99_0x1a7dd6;if(_0x5ca720(0xaa)in _0x34d7c5['projectConfig'])return _0x5ca720(0x9d);if(_0x34d7c5[_0x5ca720(0x80)][_0x5ca720(0x6c)]===![])return null;if(_0x34d7c5[_0x5ca720(0x99)][_0x5ca720(0xaa)])return _0x5ca720(0x7f);return null;}function buildConfig(_0x70237a,_0x246019){const _0x480b6a=a99_0x1a7dd6,_0x37305e=_0x70237a['defaultApp']||undefined,_0xdc2309=_0x246019[_0x480b6a(0x77)]||env(_0x480b6a(0x6a))||undefined,_0x258469=_0xdc2309||_0x37305e||undefined,_0x494119=env(_0x480b6a(0x93))||_0x70237a[_0x480b6a(0x89)]||undefined,_0x4a19ea=_0x246019[_0x480b6a(0xa7)]||env('ENV')||_0x70237a[_0x480b6a(0xa7)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0xa7)],_0x39783f=normalizeEnv(String(_0x4a19ea)),_0x2ec8b5=isDaily(_0x39783f)?'daily':isDev(_0x39783f)?_0x480b6a(0x74):'production',_0xab3338=typeof _0x246019[_0x480b6a(0xa3)]===_0x480b6a(0x79)?_0x246019['appcode']:undefined,_0x45ae58=env('APPCODE'),_0x103701=_0xdc2309?undefined:_0x70237a[_0x480b6a(0xa3)]||_0x70237a['app']||undefined,_0x5cac37=_0xdc2309||(_0x103701?undefined:_0x37305e),_0x190f47=resolveLocalAppAliasCode(_0x70237a,_0x5cac37),_0x53b185=resolveCachedAppCode(_0x5cac37,_0x2ec8b5,_0x494119),_0xe0c130=_0xab3338||_0x45ae58||_0x103701||_0x190f47||_0x53b185||undefined,_0x5059ba=_0xab3338?'explicit':_0x45ae58?_0x480b6a(0xa7):_0x103701?_0x480b6a(0x9a):_0x190f47?_0x480b6a(0x78):_0x53b185?'cache':undefined,_0x3cd840=_0x70237a[_0x480b6a(0x6d)]||DEFAULT_CONFIG_VALUES[_0x480b6a(0x6d)],_0xb7de10=undefined,_0x237a14=_0x246019[_0x480b6a(0x94)]||env(_0x480b6a(0x70))||_0x70237a[_0x480b6a(0x94)],_0x2e27ee=normalizeLegacyOutputFormat(_0x237a14),_0x1b62c3=env(_0x480b6a(0x91))||_0x70237a[_0x480b6a(0x68)],_0x3c03d0=_0x1b62c3?Number(_0x1b62c3)||undefined:undefined,_0x53ef5b=_0x70237a['riskLevel']||_0x70237a[_0x480b6a(0x9b)],_0x27dfd8=_0x53ef5b===_0x480b6a(0x92)||_0x53ef5b===_0x480b6a(0xa8)||_0x53ef5b==='high-risk-write'?_0x53ef5b:DEFAULT_CONFIG_VALUES[_0x480b6a(0x7b)],_0x3e16c1=env('VERBOSE'),_0x27e37e=_0x3e16c1==='1'||_0x3e16c1===_0x480b6a(0x6b);return{'appCode':typeof _0xe0c130==='string'&&_0xe0c130['trim']()?_0xe0c130['trim']():undefined,'appCodeSource':_0x5059ba,'env':_0x2ec8b5,'locale':_0x3cd840,'cookie':_0xb7de10,'accessKey':_0x494119,'format':_0x2e27ee,'pageSize':_0x3c03d0,'riskLevel':_0x27dfd8,'verbose':_0x27e37e,'defaultApp':_0x37305e,'currentApp':typeof _0x258469===_0x480b6a(0x79)?_0x258469:undefined,'raw':_0x70237a};}function env(_0x699b33){return productEnv(_0x699b33);}async function buildAuth(_0x41031d){const _0x196314=a99_0x1a7dd6,_0x24ea9a='',_0x180070=!!_0x41031d[_0x196314(0x89)];return{'cookie':_0x24ea9a,'isLoggedIn':_0x180070,async 'getOrLogin'(){const _0x349586=_0x196314;if(_0x180070)return _0x24ea9a;throw CliErrors[_0x349586(0x69)]();}};}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Management API client using raw `fetch`.
|
|
3
3
|
*
|
|
4
4
|
* Why a separate module from `sdk-client.ts`: the SDK (`@lovrabet/sdk`) is designed
|
|
5
|
-
* for runtime operations (data/SQL/
|
|
5
|
+
* for runtime operations (data/SQL/Backend Function execution) and encapsulates the SDK client
|
|
6
6
|
* lifecycle. This module handles authenticated API calls that the SDK does not
|
|
7
7
|
* cover: listing datasets, fetching app lists, querying runtime contracts, etc.
|
|
8
8
|
*
|
|
@@ -18,7 +18,7 @@ import type { Paging } from "../framework/response.js";
|
|
|
18
18
|
export declare function setActiveAK(ak: string): void;
|
|
19
19
|
/** Clears the active AccessKey after command completion. */
|
|
20
20
|
export declare function clearActiveAK(): void;
|
|
21
|
-
/** Public runtime contract for one known
|
|
21
|
+
/** Public runtime contract for one known Backend Function endpoint. */
|
|
22
22
|
export interface BffEndpointContract {
|
|
23
23
|
appCode: string;
|
|
24
24
|
functionName: string;
|
|
@@ -27,7 +27,7 @@ export interface BffEndpointContract {
|
|
|
27
27
|
gmtModified?: string | number;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Fetches one known
|
|
30
|
+
* Fetches one known Backend Function endpoint contract by its stable runtime identity.
|
|
31
31
|
* The runtime exposes an AK-authenticated exact endpoint keyed by appCode + functionName.
|
|
32
32
|
* Platform-only fields returned by older backends are intentionally discarded here.
|
|
33
33
|
*/
|