@lovrabet/lovrabet-cli 2.1.4-beta.1 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/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/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.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/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/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/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/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/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/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.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/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/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x119af9=a37_0x1c69;function a37_0x1c69(_0x3ae636,_0x59dec4){_0x3ae636=_0x3ae636-0xfd;const _0x2160fd=a37_0x2160();let _0x1c697b=_0x2160fd[_0x3ae636];return _0x1c697b;}function a37_0x2160(){const _0x269306=['310NLynYR','length','bool','12PLCkqk','authRequired','list','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','scope','1419271RCcBwe','map','7149303VZGhhU','2132RXKVEV','30998GqSAqi','str','../../../core/api-client.js','../../../skills/runtime-skill-sync.js','trim','8jvtGKB','11334gbHlNo','2579285ZJzfkx','appCode','Listed\x20','14904LmgdzV','local','filter','accessKey','640AiBRjq','read','758jJXEaZ','personal','631izqSmX','company','skill','\x20local\x20Skill(s).'];a37_0x2160=function(){return _0x269306;};return a37_0x2160();}(function(_0x1d8f45,_0xd9fd3b){const _0x5efff7=a37_0x1c69,_0x4eb29e=_0x1d8f45();while(!![]){try{const _0x2820ee=parseInt(_0x5efff7(0x111))/0x1*(-parseInt(_0x5efff7(0x10f))/0x2)+-parseInt(_0x5efff7(0x105))/0x3*(-parseInt(_0x5efff7(0x10d))/0x4)+-parseInt(_0x5efff7(0x106))/0x5*(-parseInt(_0x5efff7(0x118))/0x6)+-parseInt(_0x5efff7(0x11d))/0x7*(parseInt(_0x5efff7(0x104))/0x8)+-parseInt(_0x5efff7(0xfd))/0x9+-parseInt(_0x5efff7(0x115))/0xa*(parseInt(_0x5efff7(0xff))/0xb)+parseInt(_0x5efff7(0x109))/0xc*(parseInt(_0x5efff7(0xfe))/0xd);if(_0x2820ee===_0xd9fd3b)break;else _0x4eb29e['push'](_0x4eb29e['shift']());}catch(_0x389575){_0x4eb29e['push'](_0x4eb29e['shift']());}}}(a37_0x2160,0x7e09f));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a37_0x119af9(0x113),'command':a37_0x119af9(0x11a),'description':a37_0x119af9(0x11b),'risk':a37_0x119af9(0x10e),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x5947d0){const _0x1de7ad=a37_0x119af9,_0x59cd37=_0x5947d0[_0x1de7ad(0x100)]('code'),_0x1ffe35=normalizeListScope(_0x5947d0[_0x1de7ad(0x100)](_0x1de7ad(0x11c)));if(_0x5947d0[_0x1de7ad(0x117)]('local')){const _0x5e6fb3=_0x5947d0[_0x1de7ad(0x10c)];if(!_0x5e6fb3)throw CliErrors[_0x1de7ad(0x119)]();const {listLocalRuntimeSkills:_0x1a97a6}=await import(_0x1de7ad(0x102)),_0x2a5d53=_0x1a97a6({'env':_0x5947d0['envName']??'production','accessKey':_0x5e6fb3,'appCode':_0x5947d0[_0x1de7ad(0x107)],'scopes':listScopeToRuntimeScopes(_0x1ffe35),'code':_0x59cd37[_0x1de7ad(0x103)]()||undefined}),_0x505575=groupLocalRuntimeSkills(_0x2a5d53);return{'ok':!![],'data':{'appCode':_0x5947d0[_0x1de7ad(0x107)],'source':_0x1de7ad(0x10a),'scope':_0x1ffe35,'total':_0x2a5d53[_0x1de7ad(0x116)],'personal':_0x505575[_0x1de7ad(0x110)][_0x1de7ad(0x116)],'company':_0x505575['company'][_0x1de7ad(0x116)],'items':_0x2a5d53[_0x1de7ad(0x11e)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x505575[_0x1de7ad(0x110)]['map'](summarizeLocalRuntimeSkill),'company':_0x505575[_0x1de7ad(0x112)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x1de7ad(0x108)+_0x2a5d53['length']+_0x1de7ad(0x114)};}const {listRuntimeSkills:_0x10c8f7}=await import(_0x1de7ad(0x101)),_0x1d30c0=await _0x10c8f7({'appCode':_0x5947d0['appCode'],'scope':listScopeToRemoteScope(_0x1ffe35),'code':_0x59cd37[_0x1de7ad(0x103)]()||undefined}),_0x1ef8a3=shouldListScope(_0x1ffe35,_0x1de7ad(0x110))?_0x1d30c0['personal']??[]:[],_0x42cd8e=shouldListScope(_0x1ffe35,'company')?_0x1d30c0[_0x1de7ad(0x112)]??[]:[],_0x533fa3=[..._0x1ef8a3,..._0x42cd8e];return{'ok':!![],'data':{'appCode':_0x5947d0[_0x1de7ad(0x107)],'source':'remote','scope':_0x1ffe35,'total':_0x533fa3[_0x1de7ad(0x116)],'personal':_0x1ef8a3[_0x1de7ad(0x116)],'company':_0x42cd8e[_0x1de7ad(0x116)],'items':_0x533fa3['map'](summarizeRuntimeSkill),'skills':{'personal':_0x1ef8a3[_0x1de7ad(0x11e)](summarizeRuntimeSkill),'company':_0x42cd8e[_0x1de7ad(0x11e)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x533fa3[_0x1de7ad(0x116)]+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x2323e6){const _0x70a6c9=a37_0x119af9;return{'personal':_0x2323e6['filter'](_0x3bb5a1=>_0x3bb5a1[_0x70a6c9(0x11c)]==='personal'),'company':_0x2323e6[_0x70a6c9(0x10b)](_0xf60b08=>_0xf60b08[_0x70a6c9(0x11c)]===_0x70a6c9(0x112)),'builtin':_0x2323e6[_0x70a6c9(0x10b)](_0x3aa20a=>_0x3aa20a[_0x70a6c9(0x11c)]==='builtin')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a38_0x30fc(){const _0x58d49e=['find','8aBhVUr','str','write','11316837EIEfps','26874160MeBNjI','skillCode','195HJyRft','../../../core/api-client.js','dir','1LornQO','3322917WgLwyT','skill','13341816bZgYDx','authRequired','2969918XAsvtQ','input','files','8092110Xctauo','appCode','personal','175076NnkXWS','../../../skills/runtime-skill-sync.js'];a38_0x30fc=function(){return _0x58d49e;};return a38_0x30fc();}function a38_0x1bdd(_0x591ddd,_0x4fe2cb){_0x591ddd=_0x591ddd-0x102;const _0x30fc5a=a38_0x30fc();let _0x1bddd8=_0x30fc5a[_0x591ddd];return _0x1bddd8;}const a38_0x44ab74=a38_0x1bdd;(function(_0x2d89e2,_0x3fc4e2){const _0x3e44c4=a38_0x1bdd,_0x3f5c7e=_0x2d89e2();while(!![]){try{const _0xb5f7bd=parseInt(_0x3e44c4(0x107))/0x1*(parseInt(_0x3e44c4(0x10c))/0x2)+-parseInt(_0x3e44c4(0x108))/0x3+parseInt(_0x3e44c4(0x112))/0x4*(parseInt(_0x3e44c4(0x104))/0x5)+parseInt(_0x3e44c4(0x10f))/0x6+parseInt(_0x3e44c4(0x118))/0x7+parseInt(_0x3e44c4(0x115))/0x8*(-parseInt(_0x3e44c4(0x10a))/0x9)+-parseInt(_0x3e44c4(0x102))/0xa;if(_0xb5f7bd===_0x3fc4e2)break;else _0x3f5c7e['push'](_0x3f5c7e['shift']());}catch(_0x500eb5){_0x3f5c7e['push'](_0x3f5c7e['shift']());}}}(a38_0x30fc,0xd6ce7));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x44ab74(0x109),'command':'push','description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','risk':a38_0x44ab74(0x117),'flags':[DIR_FLAG],async 'execute'(_0x41e784){const _0x5e97f=a38_0x44ab74,{createPersonalRuntimeSkill:_0x5d4bb2,downloadRuntimeSkillPackage:_0x2f4635,listRuntimeSkills:_0x1568b9,updatePersonalRuntimeSkill:_0x143a8a}=await import(_0x5e97f(0x105)),{verifyRuntimeSkillPackage:_0x2d5bfd,verifyRuntimeSkillBundle:_0x575caa,readPushDirectory:_0x43fc2a,recordPushedRuntimeSkill:_0x58f585}=await import(_0x5e97f(0x113));if(!_0x41e784['accessKey'])throw CliErrors[_0x5e97f(0x10b)]();const _0x494c41=_0x41e784[_0x5e97f(0x116)]('dir'),_0x556e4e=validateSkillDirectory(_0x494c41);throwIfSkillValidationFailed(_0x556e4e);const _0x21ac34=_0x556e4e[_0x5e97f(0x106)],_0x21f37a=_0x43fc2a(_0x21ac34,_0x41e784[_0x5e97f(0x110)]),_0x1006d6=(await _0x1568b9({'appCode':_0x41e784[_0x5e97f(0x110)],'scope':_0x5e97f(0x111)}))['personal'][_0x5e97f(0x114)](_0x4cc93f=>_0x4cc93f[_0x5e97f(0x103)]===_0x21f37a[_0x5e97f(0x103)]),_0x172d31=_0x1006d6?await _0x143a8a(_0x21f37a[_0x5e97f(0x103)],_0x41e784[_0x5e97f(0x110)],_0x21f37a[_0x5e97f(0x10d)]):await _0x5d4bb2(_0x41e784[_0x5e97f(0x110)],_0x21f37a[_0x5e97f(0x10d)]);let _0x4ec2f9=_0x172d31;if(isMultiFileManifest(_0x21f37a[_0x5e97f(0x10d)][_0x5e97f(0x10e)])){const _0x2a32d4=await _0x2f4635(_0x5e97f(0x111),_0x172d31[_0x5e97f(0x103)]||_0x21f37a['skillCode'],_0x41e784['appCode']);_0x575caa(_0x21f37a[_0x5e97f(0x10d)]['files'],_0x2a32d4),_0x4ec2f9={..._0x172d31,'files':_0x21f37a[_0x5e97f(0x10d)][_0x5e97f(0x10e)]};}else{if(isPackageBackedManifest(_0x172d31[_0x5e97f(0x10e)])){const _0x2978f9=await _0x2f4635('personal',_0x172d31[_0x5e97f(0x103)]||_0x21f37a[_0x5e97f(0x103)],_0x41e784['appCode']);_0x2d5bfd(_0x172d31[_0x5e97f(0x10e)],_0x2978f9);}}return _0x58f585(_0x21ac34,_0x4ec2f9,_0x41e784[_0x5e97f(0x110)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x172d31),'message':_0x1006d6?'Updated\x20personal\x20Skill\x20'+_0x21f37a[_0x5e97f(0x103)]:'Created\x20personal\x20Skill\x20'+_0x21f37a[_0x5e97f(0x103)]};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39_0xd47e(_0x52b0a9,_0x39cf4d){_0x52b0a9=_0x52b0a9-0x167;const _0x3dc99c=a39_0x3dc9();let _0xd47e42=_0x3dc99c[_0x52b0a9];return _0xd47e42;}const a39_0x52d3ff=a39_0xd47e;(function(_0x4914a0,_0x54a7f0){const _0x220c72=a39_0xd47e,_0x1453d6=_0x4914a0();while(!![]){try{const _0x17e2fb=-parseInt(_0x220c72(0x16e))/0x1+-parseInt(_0x220c72(0x175))/0x2*(-parseInt(_0x220c72(0x171))/0x3)+parseInt(_0x220c72(0x174))/0x4+parseInt(_0x220c72(0x16b))/0x5+parseInt(_0x220c72(0x173))/0x6+-parseInt(_0x220c72(0x16a))/0x7+-parseInt(_0x220c72(0x168))/0x8;if(_0x17e2fb===_0x54a7f0)break;else _0x1453d6['push'](_0x1453d6['shift']());}catch(_0x156890){_0x1453d6['push'](_0x1453d6['shift']());}}}(a39_0x3dc9,0xbb005));function a39_0x3dc9(){const _0x27731b=['5136448QArKLw','774678dJnMsF','dir','bool','25272408EqTORN','strict','2670262rqtbCT','7033115AgqlNU','str','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','1064780kMjCuT','warnings','validate','9NBRmIl','errors','9111012fYNomv'];a39_0x3dc9=function(){return _0x27731b;};return a39_0x3dc9();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a39_0x52d3ff(0x170),'description':a39_0x52d3ff(0x16d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x4e4d55){const _0xcf75ac=a39_0x52d3ff,_0x16b478=_0x4e4d55[_0xcf75ac(0x167)](_0xcf75ac(0x169)),_0x9c76cb=validateSkillDirectory(_0x4e4d55[_0xcf75ac(0x16c)](_0xcf75ac(0x176)),{'strict':_0x16b478});return throwIfSkillValidationFailed(_0x9c76cb,_0x16b478),{'ok':!![],'data':{'dir':_0x9c76cb['dir'],'type':_0x9c76cb['type'],'errors':_0x9c76cb[_0xcf75ac(0x172)],'warnings':_0x9c76cb[_0xcf75ac(0x16f)]},'message':'Skill\x20validation\x20passed.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0xc57838=a40_0x3537;(function(_0xbaefee,_0x274b62){const _0x2550d3=a40_0x3537,_0x1ca415=_0xbaefee();while(!![]){try{const _0x5110e1=-parseInt(_0x2550d3(0x168))/0x1*(-parseInt(_0x2550d3(0x172))/0x2)+parseInt(_0x2550d3(0x15b))/0x3+-parseInt(_0x2550d3(0x15a))/0x4*(-parseInt(_0x2550d3(0x155))/0x5)+-parseInt(_0x2550d3(0x169))/0x6+parseInt(_0x2550d3(0x161))/0x7*(parseInt(_0x2550d3(0x157))/0x8)+parseInt(_0x2550d3(0x159))/0x9*(-parseInt(_0x2550d3(0x156))/0xa)+-parseInt(_0x2550d3(0x160))/0xb*(parseInt(_0x2550d3(0x16f))/0xc);if(_0x5110e1===_0x274b62)break;else _0x1ca415['push'](_0x1ca415['shift']());}catch(_0x35d9b5){_0x1ca415['push'](_0x1ca415['shift']());}}}(a40_0x28bf,0x8f202));function a40_0x28bf(){const _0x14786b=['2081145CnYKun','string','all','Skill\x20template\x20type','Local\x20Skill\x20directory\x20containing\x20SKILL.md','11RsuWWf','7407211YJMbKI','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','personal','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','803218aQvFcZ','852078MvVVkm','local','target','dir','strict','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','11245284AcASAK','name','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','2kWmhdL','boolean','scope','code','268610PPKVcs','60YiqlRC','8YZeIlH','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1495782PKtTti','8mdhmPq'];a40_0x28bf=function(){return _0x14786b;};return a40_0x28bf();}function a40_0x3537(_0x4d12f2,_0x4e836f){_0x4d12f2=_0x4d12f2-0x152;const _0x28bfea=a40_0x28bf();let _0x3537d7=_0x28bfea[_0x4d12f2];return _0x3537d7;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0xc57838(0x154),'type':'string','description':a40_0xc57838(0x158)};export const SCOPE_FLAG={'name':a40_0xc57838(0x153),'type':'string','description':a40_0xc57838(0x165),'enum':[a40_0xc57838(0x15d),a40_0xc57838(0x163),a40_0xc57838(0x166)]};export const LIST_SCOPE_FLAG={'name':a40_0xc57838(0x153),'type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x16e),'enum':[a40_0xc57838(0x15d),a40_0xc57838(0x163),a40_0xc57838(0x166)]};export const LOCAL_FLAG={'name':a40_0xc57838(0x16a),'type':a40_0xc57838(0x152),'description':a40_0xc57838(0x167)};export const DIR_FLAG={'name':a40_0xc57838(0x16c),'type':'string','required':!![],'description':a40_0xc57838(0x15f)};export const CREATE_NAME_FLAG={'name':a40_0xc57838(0x170),'type':a40_0xc57838(0x15c),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0xc57838(0x162)}};export const TYPE_FLAG={'name':'type','type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x15e),'default':'write','enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0xc57838(0x16b),'type':a40_0xc57838(0x15c),'description':a40_0xc57838(0x164),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a40_0xc57838(0x152),'description':a40_0xc57838(0x171)};export const STRICT_FLAG={'name':a40_0xc57838(0x16d),'type':a40_0xc57838(0x152),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x11f14e,_0x447355){const _0x500ccf=a41_0x33fd,_0x1fc9f8=_0x11f14e();while(!![]){try{const _0x200bcc=parseInt(_0x500ccf(0xc3))/0x1+-parseInt(_0x500ccf(0xc1))/0x2*(-parseInt(_0x500ccf(0xc2))/0x3)+parseInt(_0x500ccf(0xc0))/0x4+-parseInt(_0x500ccf(0xbd))/0x5+parseInt(_0x500ccf(0xbf))/0x6+parseInt(_0x500ccf(0xbb))/0x7+parseInt(_0x500ccf(0xbe))/0x8*(-parseInt(_0x500ccf(0xbc))/0x9);if(_0x200bcc===_0x447355)break;else _0x1fc9f8['push'](_0x1fc9f8['shift']());}catch(_0x50a813){_0x1fc9f8['push'](_0x1fc9f8['shift']());}}}(a41_0x3d00,0xa1b90));function a41_0x3d00(){const _0x53a132=['1109322bLhijU','4150476mWDLPZ','15856bOVouE','78jRIrcN','1182669RZkSwb','4995816ZmNiCA','10953LcAytR','1161130rgIumd','15976SBmUcv'];a41_0x3d00=function(){return _0x53a132;};return a41_0x3d00();}import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a41_0x33fd(_0x1dc13d,_0x4f5ed4){_0x1dc13d=_0x1dc13d-0xbb;const _0x3d005c=a41_0x3d00();let _0x33fd12=_0x3d005c[_0x1dc13d];return _0x33fd12;}import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a42_0x3ddc(_0x27d34b,_0x3b553d){_0x27d34b=_0x27d34b-0x138;var _0xfce9a4=a42_0xfce9();var _0x3ddcd0=_0xfce9a4[_0x27d34b];return _0x3ddcd0;}function a42_0xfce9(){var _0x13a197=['4209210GAFFBU','33857923vICLfZ','length','SKILL.md','678TaSPPC','9722648Axtmxo','7714270FCPLLZ','isArray','some','13jsNQdu','ossPath','4MGJoFz','62762lDOlvD','9yfUoDR','string','files','81988VfKwit','object','path','12477970CMhIGb'];a42_0xfce9=function(){return _0x13a197;};return a42_0xfce9();}(function(_0x3c833e,_0xd51b09){var _0x1e594d=a42_0x3ddc,_0x332c48=_0x3c833e();while(!![]){try{var _0x54cfbc=parseInt(_0x1e594d(0x13e))/0x1*(-parseInt(_0x1e594d(0x145))/0x2)+parseInt(_0x1e594d(0x149))/0x3+-parseInt(_0x1e594d(0x140))/0x4*(-parseInt(_0x1e594d(0x13b))/0x5)+-parseInt(_0x1e594d(0x139))/0x6*(parseInt(_0x1e594d(0x141))/0x7)+parseInt(_0x1e594d(0x13a))/0x8+-parseInt(_0x1e594d(0x142))/0x9*(-parseInt(_0x1e594d(0x148))/0xa)+-parseInt(_0x1e594d(0x14a))/0xb;if(_0x54cfbc===_0xd51b09)break;else _0x332c48['push'](_0x332c48['shift']());}catch(_0x2bf6fd){_0x332c48['push'](_0x332c48['shift']());}}}(a42_0xfce9,0xbfa53));export function isPackageBackedManifest(_0x9afea0){var _0x41461b=a42_0x3ddc;return!!_0x9afea0&&typeof _0x9afea0==='object'&&!Array[_0x41461b(0x13c)](_0x9afea0)&&typeof _0x9afea0[_0x41461b(0x13f)]===_0x41461b(0x143)&&_0x9afea0['ossPath'][_0x41461b(0x14b)]>0x0&&Array[_0x41461b(0x13c)](_0x9afea0[_0x41461b(0x144)]);}export function isMultiFileManifest(_0xd84df){var _0x1b4b9b=a42_0x3ddc;return!!_0xd84df&&typeof _0xd84df===_0x1b4b9b(0x146)&&!Array[_0x1b4b9b(0x13c)](_0xd84df)&&Array[_0x1b4b9b(0x13c)](_0xd84df[_0x1b4b9b(0x144)])&&_0xd84df[_0x1b4b9b(0x144)][_0x1b4b9b(0x13d)](_0x390ba6=>_0x390ba6[_0x1b4b9b(0x147)]!==_0x1b4b9b(0x138));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a43_0x386a(){const _0x3cd8cf=['18eIHuUd','Unsupported\x20Skill\x20list\x20scope:\x20','1013925uQMmam','273otQLRC','trim','company','30zPaazc','593QcgLHb','1228785Cfpatu','4bEuiWr','5806BUQhCN','all','43408BJarbq','264bnHPAF','validation','personal','1965093RECDDt','1678524KbcYkZ','8088540IguLvm'];a43_0x386a=function(){return _0x3cd8cf;};return a43_0x386a();}(function(_0x38bcff,_0x5e8fa0){const _0x1960a1=a43_0x5ea3,_0x2973f2=_0x38bcff();while(!![]){try{const _0x2305a1=-parseInt(_0x1960a1(0xcd))/0x1*(-parseInt(_0x1960a1(0xd0))/0x2)+parseInt(_0x1960a1(0xce))/0x3*(-parseInt(_0x1960a1(0xcf))/0x4)+-parseInt(_0x1960a1(0xcc))/0x5*(-parseInt(_0x1960a1(0xc4))/0x6)+parseInt(_0x1960a1(0xc9))/0x7*(-parseInt(_0x1960a1(0xd2))/0x8)+-parseInt(_0x1960a1(0xc6))/0x9*(-parseInt(_0x1960a1(0xc5))/0xa)+-parseInt(_0x1960a1(0xc8))/0xb+parseInt(_0x1960a1(0xd3))/0xc*(-parseInt(_0x1960a1(0xc3))/0xd);if(_0x2305a1===_0x5e8fa0)break;else _0x2973f2['push'](_0x2973f2['shift']());}catch(_0x29370a){_0x2973f2['push'](_0x2973f2['shift']());}}}(a43_0x386a,0xeef61));function a43_0x5ea3(_0x3c6b86,_0x2f9a04){_0x3c6b86=_0x3c6b86-0xc1;const _0x386aa5=a43_0x386a();let _0x5ea32d=_0x386aa5[_0x3c6b86];return _0x5ea32d;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x27519a){const _0x5950f1=a43_0x5ea3,_0x42997b=_0x27519a['trim']();if(!_0x42997b||_0x42997b==='all')return['personal',_0x5950f1(0xcb)];if(_0x42997b==='personal'||_0x42997b===_0x5950f1(0xcb))return[_0x42997b];throw CliErrors[_0x5950f1(0xc1)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x27519a);}export function normalizeListScope(_0x4a301e){const _0x3781ae=a43_0x5ea3,_0x2e0b63=_0x4a301e[_0x3781ae(0xca)]();if(!_0x2e0b63)return _0x3781ae(0xd1);if(_0x2e0b63==='personal'||_0x2e0b63===_0x3781ae(0xcb)||_0x2e0b63==='all')return _0x2e0b63;throw CliErrors[_0x3781ae(0xc1)](_0x3781ae(0xc7)+_0x4a301e);}export function shouldListScope(_0x5a23b1,_0x55b6f6){const _0x30d079=a43_0x5ea3;if(_0x5a23b1===_0x30d079(0xd1))return!![];return _0x5a23b1===_0x55b6f6;}export function listScopeToRuntimeScopes(_0x34e2f3){const _0x5ddb0b=a43_0x5ea3;if(_0x34e2f3==='all')return[_0x5ddb0b(0xc2),_0x5ddb0b(0xcb)];return[_0x34e2f3==='company'?_0x5ddb0b(0xcb):_0x34e2f3];}export function listScopeToRemoteScope(_0x554bdf){return _0x554bdf;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45a83e,_0x170430){var _0x14beba=a44_0x18fb,_0x1cf0be=_0x45a83e();while(!![]){try{var _0x127230=-parseInt(_0x14beba(0x143))/0x1+parseInt(_0x14beba(0x14a))/0x2*(parseInt(_0x14beba(0x142))/0x3)+-parseInt(_0x14beba(0x148))/0x4+-parseInt(_0x14beba(0x14c))/0x5*(-parseInt(_0x14beba(0x146))/0x6)+-parseInt(_0x14beba(0x145))/0x7*(parseInt(_0x14beba(0x156))/0x8)+-parseInt(_0x14beba(0x14e))/0x9+parseInt(_0x14beba(0x150))/0xa*(parseInt(_0x14beba(0x153))/0xb);if(_0x127230===_0x170430)break;else _0x1cf0be['push'](_0x1cf0be['shift']());}catch(_0x11aaa0){_0x1cf0be['push'](_0x1cf0be['shift']());}}}(a44_0x2739,0x47ae1));function a44_0x18fb(_0x14f550,_0x590159){_0x14f550=_0x14f550-0x142;var _0x27392b=a44_0x2739();var _0x18fbbd=_0x27392b[_0x14f550];return _0x18fbbd;}export function summarizeRuntimeSkill(_0x103ae0){var _0x4ba198=a44_0x18fb;return{'id':_0x103ae0['id'],'skillCode':_0x103ae0['skillCode'],'skillName':_0x103ae0[_0x4ba198(0x154)],'scope':_0x103ae0[_0x4ba198(0x151)],'version':_0x103ae0['version'],'readonly':_0x103ae0[_0x4ba198(0x15b)]};}function a44_0x2739(){var _0x1d3b82=['metadataPath','1669680EqCJPR','tags','3412qAzPoN','cacheDir','5zhSAso','treeHash','4871547ZfqrYc','linkedPaths','30spMqaE','scope','dir','5964596RQwnMT','skillName','skillMdPath','2648tperCr','status','pulledAt','version','skillCode','readonly','186jFlNKX','210837GMdiIF','contentHash','9401tbhXkr','1051164hunNPf'];a44_0x2739=function(){return _0x1d3b82;};return a44_0x2739();}export function summarizeLocalRuntimeSkill(_0x570701){var _0x2d5122=a44_0x18fb;return{'id':_0x570701['id'],'skillCode':_0x570701[_0x2d5122(0x15a)],'skillName':_0x570701[_0x2d5122(0x154)],'scope':_0x570701[_0x2d5122(0x151)],'appCode':_0x570701['appCode'],'version':_0x570701[_0x2d5122(0x159)],'status':_0x570701[_0x2d5122(0x157)],'readonly':_0x570701['readonly'],'tags':_0x570701[_0x2d5122(0x149)],'dir':_0x570701[_0x2d5122(0x152)],'cacheDir':_0x570701[_0x2d5122(0x14b)],'skillMdPath':_0x570701[_0x2d5122(0x155)],'metadataPath':_0x570701[_0x2d5122(0x147)],'linkedPaths':_0x570701[_0x2d5122(0x14f)],'contentHash':_0x570701[_0x2d5122(0x144)],'treeHash':_0x570701[_0x2d5122(0x14d)],'pulledAt':_0x570701[_0x2d5122(0x158)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a45_0x30908a=a45_0x4521;(function(_0x13654d,_0x3fc856){const _0x2f2f3b=a45_0x4521,_0xc3927a=_0x13654d();while(!![]){try{const _0x401fb1=parseInt(_0x2f2f3b(0x110))/0x1*(parseInt(_0x2f2f3b(0xf6))/0x2)+-parseInt(_0x2f2f3b(0x112))/0x3+-parseInt(_0x2f2f3b(0x113))/0x4+-parseInt(_0x2f2f3b(0xf7))/0x5+-parseInt(_0x2f2f3b(0x11c))/0x6*(parseInt(_0x2f2f3b(0xfa))/0x7)+parseInt(_0x2f2f3b(0x11d))/0x8*(-parseInt(_0x2f2f3b(0x10b))/0x9)+parseInt(_0x2f2f3b(0x120))/0xa;if(_0x401fb1===_0x3fc856)break;else _0xc3927a['push'](_0xc3927a['shift']());}catch(_0x2981a7){_0xc3927a['push'](_0xc3927a['shift']());}}}(a45_0x12cc,0x7c723));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x30908a(0xf9),'read','trainer'];export const DEFAULT_SKILL_TARGET=a45_0x30908a(0x119);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a45_0x12cc(){const _0x24ee69=['##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','2984yurNGm','1854195BFqSyK','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','write','91IbQLjO','\x0a\x20\x20created:\x20\x22','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','read','timestamp','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','toISOString','---\x0aname:\x20','references/output-contract.md','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','includes','test','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','Unsupported\x20Skill\x20type:\x20','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','2518353HVRYQU','skillName','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','26deyWyG','SKILL.md','612858YEoUqF','2679672lcxLAI','trainer','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','Use\x20one\x20of:\x20','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','references/runtime-contract.md','.agents/skills','validation','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','273414LICwyT','24nSJVRy','trim','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','31478300GxgwOZ','Invalid\x20Skill\x20name:\x20'];a45_0x12cc=function(){return _0x24ee69;};return a45_0x12cc();}export const RUNTIME_CONTRACT_FILE=a45_0x30908a(0x118);export const OUTPUT_CONTRACT_FILE=a45_0x30908a(0x102);export function validateSkillName(_0x33e826){const _0x41546f=a45_0x30908a,_0x5bec0e=_0x33e826['trim']();if(!SKILL_NAME_PATTERN[_0x41546f(0x105)](_0x5bec0e))throw CliErrors['validation'](_0x41546f(0x121)+_0x33e826+_0x41546f(0x11f),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x5bec0e;}export function normalizeSkillTemplateType(_0x5ad90a){const _0x46a7b7=a45_0x30908a,_0x43b3d7=(_0x5ad90a||_0x46a7b7(0xf9))[_0x46a7b7(0x11e)]()||_0x46a7b7(0xf9);if(SKILL_TYPES[_0x46a7b7(0x104)](_0x43b3d7))return _0x43b3d7;throw CliErrors[_0x46a7b7(0x11a)](_0x46a7b7(0x108)+_0x5ad90a,_0x46a7b7(0x116)+SKILL_TYPES['join'](',\x20')+'.');}function a45_0x4521(_0x409984,_0x5a5e77){_0x409984=_0x409984-0xf5;const _0x12cc88=a45_0x12cc();let _0x4521b7=_0x12cc88[_0x409984];return _0x4521b7;}export function renderSkillTemplate(_0x538897){const _0x6af3aa=a45_0x30908a,_0xf77e90=validateSkillName(_0x538897[_0x6af3aa(0x10c)]),_0x30db20=normalizeSkillTemplateType(_0x538897['type']),_0xa97a62=_0x538897[_0x6af3aa(0xfe)]??new Date()[_0x6af3aa(0x100)]();return{'skillName':_0xf77e90,'type':_0x30db20,'files':[{'path':_0x6af3aa(0x111),'content':renderSkillMd(_0xf77e90,_0x30db20,_0xa97a62)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0xf77e90,_0x30db20)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0xf77e90,_0x30db20)}]};}function renderSkillMd(_0x1b46b0,_0x5831b1,_0x2c0bbf){const _0x48e0be=a45_0x30908a,_0x34340b=typeWorkflow(_0x5831b1);return _0x48e0be(0x101)+_0x1b46b0+_0x48e0be(0x10d)+_0x5831b1+_0x48e0be(0xfb)+_0x2c0bbf+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x1b46b0+_0x48e0be(0x109)+_0x34340b+'\x0a\x0a'+businessStateSection(_0x5831b1)+_0x48e0be(0x11b);}function renderRuntimeContract(_0x219b7f,_0x48a54d){const _0x28285a=a45_0x30908a,_0x3e5ccf=_0x48a54d===_0x28285a(0xf9)?_0x28285a(0xf5):'';return _0x28285a(0x10a)+_0x219b7f+_0x28285a(0xff)+_0x48a54d+'\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a'+_0x3e5ccf+_0x28285a(0x10f);}function renderOutputContract(_0x5e5313,_0x17d96c){const _0x15e1c5=a45_0x30908a,_0x4f58af=_0x17d96c===_0x15e1c5(0xf9)?_0x15e1c5(0x115):_0x17d96c+_0x15e1c5(0xf8);return'#\x20Output\x20Contract\x0a\x0a'+_0x5e5313+_0x15e1c5(0x117)+_0x4f58af+_0x15e1c5(0x10e);}function typeWorkflow(_0x1175d0){const _0x4f4fa7=a45_0x30908a;if(_0x1175d0===_0x4f4fa7(0xfd))return _0x4f4fa7(0xfc);if(_0x1175d0===_0x4f4fa7(0x114))return _0x4f4fa7(0x107);return _0x4f4fa7(0x103);}function businessStateSection(_0x5d561b){const _0x202103=a45_0x30908a;if(_0x5d561b!==_0x202103(0xf9))return'';return _0x202103(0x106);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x50f061=a46_0x5055;function a46_0x57ce(){const _0x590bda=['endsWith','type','metadata','hasFrontmatter','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','20HPQelX','1160298pVNlqf','207176xPXiQe','message','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Frontmatter\x20description\x20is\x20empty.','toLowerCase','suggestion','137982jBPdfs','utf8','Skill\x20directory\x20not\x20found:\x20','push','frontmatter-required','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','structure-complete','1354266iafyWZ','split','641072xdnVxa','internal-skill','file','Missing\x20SKILL.md.','32fMagQs','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','filter','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','read','description','write','level','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','has','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','content','length','toUpperCase','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','isFile','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','trainer','isSymbolicLink','false','error','join','Skill\x20validation\x20failed:\x0a','Frontmatter\x20name\x20is\x20missing.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','isDirectory','5FjBaoQ','11177595BLUMun','validation','584836vXKhxn','trim','test','path','match','ruleId','map','errors','section','name','14htmmeo','Add\x20frontmatter\x20with\x20name\x20and\x20description.','SKILL.md','startsWith','SKILL.md\x20must\x20start\x20with\x20frontmatter.'];a46_0x57ce=function(){return _0x590bda;};return a46_0x57ce();}function a46_0x5055(_0x58df6f,_0xaee02d){_0x58df6f=_0x58df6f-0x138;const _0x57ce04=a46_0x57ce();let _0x5055cf=_0x57ce04[_0x58df6f];return _0x5055cf;}(function(_0x13447f,_0x4b44c6){const _0x3ace28=a46_0x5055,_0x1150cf=_0x13447f();while(!![]){try{const _0x58cd4e=parseInt(_0x3ace28(0x176))/0x1+parseInt(_0x3ace28(0x160))/0x2+-parseInt(_0x3ace28(0x17c))/0x3*(-parseInt(_0x3ace28(0x143))/0x4)+parseInt(_0x3ace28(0x15d))/0x5*(parseInt(_0x3ace28(0x175))/0x6)+parseInt(_0x3ace28(0x16a))/0x7*(-parseInt(_0x3ace28(0x13f))/0x8)+parseInt(_0x3ace28(0x13d))/0x9*(parseInt(_0x3ace28(0x174))/0xa)+-parseInt(_0x3ace28(0x15e))/0xb;if(_0x58cd4e===_0x4b44c6)break;else _0x1150cf['push'](_0x1150cf['shift']());}catch(_0x248fe7){_0x1150cf['push'](_0x1150cf['shift']());}}}(a46_0x57ce,0x2d478));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';const SKILL_FILE=a46_0x50f061(0x16c),SUPPORTED_SKILL_TYPES=new Set([a46_0x50f061(0x149),a46_0x50f061(0x147),a46_0x50f061(0x154)]);export function validateSkillDirectory(_0x1b7590,_0x4a1718={}){const _0x5c377f=a46_0x50f061,_0x5cca52=resolveSkillDirectoryRoot(_0x1b7590),_0x2facb9=[],_0x54dccf=loadRequiredSkillFile(_0x5cca52,_0x2facb9),_0x242492=_0x54dccf?parseFrontmatter(_0x54dccf[_0x5c377f(0x14e)]):{'hasFrontmatter':![]};_0x54dccf&&validateFrontmatter(_0x54dccf[_0x5c377f(0x163)],_0x242492,_0x2facb9);const _0x246d00=_0x2facb9[_0x5c377f(0x145)](_0x4ccdfa=>_0x4ccdfa[_0x5c377f(0x14a)]===_0x5c377f(0x157));return{'ok':_0x246d00[_0x5c377f(0x14f)]===0x0,'dir':_0x5cca52,'type':_0x242492[_0x5c377f(0x170)],'errors':_0x246d00,'warnings':[]};}function resolveSkillDirectoryRoot(_0x315107){const _0x109525=a46_0x50f061,_0x5081fe=resolve(_0x315107);if(!existsSync(_0x5081fe))throw CliErrors[_0x109525(0x15f)](_0x109525(0x138)+_0x315107);const _0x2632c7=lstatSync(_0x5081fe);if(_0x2632c7[_0x109525(0x15c)]())return _0x5081fe;if(_0x2632c7[_0x109525(0x155)]()){const _0x914728=realpathSync(_0x5081fe);if(lstatSync(_0x914728)[_0x109525(0x15c)]())return _0x914728;}throw CliErrors[_0x109525(0x15f)](_0x109525(0x138)+_0x315107);}export function throwIfSkillValidationFailed(_0x55ba22,_0x45c0b4=![]){const _0x5d8fac=a46_0x50f061;if(_0x55ba22['ok'])return;const _0x479dab=_0x55ba22[_0x5d8fac(0x167)][_0x5d8fac(0x166)](_0x3ac894=>{const _0x3c402e=_0x5d8fac,_0xcb8501=_0x3ac894[_0x3c402e(0x168)]?'#'+_0x3ac894['section']:'';return _0x3ac894[_0x3c402e(0x14a)][_0x3c402e(0x150)]()+'\x20'+_0x3ac894[_0x3c402e(0x165)]+'\x20'+_0x3ac894[_0x3c402e(0x141)]+_0xcb8501+':\x20'+_0x3ac894[_0x3c402e(0x177)]+'\x20Fix:\x20'+_0x3ac894[_0x3c402e(0x17b)];});throw CliErrors['validation'](_0x5d8fac(0x159)+_0x479dab[_0x5d8fac(0x158)]('\x0a'),_0x5d8fac(0x144));}function loadRequiredSkillFile(_0x1f7f91,_0x1a48e2){const _0x170c22=a46_0x50f061,_0x3736bc=resolve(_0x1f7f91,SKILL_FILE);if(!existsSync(_0x3736bc))return _0x1a48e2['push'](issue(_0x170c22(0x157),_0x170c22(0x13c),SKILL_FILE,_0x170c22(0x142),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x47f4ce=lstatSync(_0x3736bc);if(_0x47f4ce[_0x170c22(0x155)]())return _0x1a48e2['push'](issue(_0x170c22(0x157),'structure-complete',SKILL_FILE,_0x170c22(0x14b),_0x170c22(0x178))),undefined;if(!_0x47f4ce[_0x170c22(0x152)]())return _0x1a48e2[_0x170c22(0x139)](issue('error',_0x170c22(0x13c),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x170c22(0x15b))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3736bc,_0x170c22(0x17d))};}function validateFrontmatter(_0x52a2de,_0x11f458,_0xc3ff62){const _0x1def76=a46_0x50f061;if(!_0x11f458[_0x1def76(0x172)]){_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x16e),_0x1def76(0x16b)));return;}!_0x11f458['name']?.[_0x1def76(0x161)]()&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x15a),_0x1def76(0x13b))),!_0x11f458[_0x1def76(0x148)]?.[_0x1def76(0x161)]()&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),'description-required',_0x52a2de,_0x1def76(0x179),_0x1def76(0x151))),_0x11f458['internal']===!![]&&_0xc3ff62[_0x1def76(0x139)](issue(_0x1def76(0x157),_0x1def76(0x140),_0x52a2de,_0x1def76(0x146),_0x1def76(0x14d))),_0x11f458['type']?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x1def76(0x14c)](_0x11f458[_0x1def76(0x170)])&&_0xc3ff62['push'](issue(_0x1def76(0x157),_0x1def76(0x13a),_0x52a2de,_0x1def76(0x173),_0x1def76(0x153)));}function parseFrontmatter(_0x3fa90f){const _0x41d70d=a46_0x50f061,_0x48f2ed=_0x3fa90f[_0x41d70d(0x164)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x48f2ed)return{'hasFrontmatter':![]};const _0x37a880=_0x48f2ed[0x1]??'',_0x4c267a={'hasFrontmatter':!![]};let _0x438c99=![];for(const _0x25c40b of _0x37a880[_0x41d70d(0x13e)](/\r?\n/)){if(/^\s*$/[_0x41d70d(0x162)](_0x25c40b))continue;const _0x3eea9c=_0x25c40b['match'](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x3eea9c){const _0x3bae8d=_0x3eea9c[0x1],_0x52d0ab=cleanScalar(_0x3eea9c[0x2]??'');_0x438c99=_0x3bae8d===_0x41d70d(0x171);if(_0x3bae8d===_0x41d70d(0x169))_0x4c267a['name']=_0x52d0ab;if(_0x3bae8d===_0x41d70d(0x148))_0x4c267a[_0x41d70d(0x148)]=_0x52d0ab;continue;}const _0x28028e=_0x25c40b[_0x41d70d(0x164)](/^\s+type:\s*(.*)$/);if(_0x438c99&&_0x28028e){_0x4c267a['type']=cleanScalar(_0x28028e[0x1]??'');continue;}const _0x59aab3=_0x25c40b[_0x41d70d(0x164)](/^\s+internal:\s*(.*)$/);_0x438c99&&_0x59aab3&&(_0x4c267a['internal']=cleanBoolean(_0x59aab3[0x1]??''));}return _0x4c267a;}function cleanScalar(_0x327144){const _0x36b526=a46_0x50f061,_0x1a6bc1=_0x327144[_0x36b526(0x161)]();if(_0x1a6bc1[_0x36b526(0x16d)]('\x22')&&_0x1a6bc1[_0x36b526(0x16f)]('\x22')||_0x1a6bc1[_0x36b526(0x16d)]('\x27')&&_0x1a6bc1[_0x36b526(0x16f)]('\x27'))return _0x1a6bc1['slice'](0x1,-0x1);return _0x1a6bc1;}function cleanBoolean(_0x471abc){const _0x557d16=a46_0x50f061,_0x2c1606=cleanScalar(_0x471abc)[_0x557d16(0x17a)]();if(_0x2c1606==='true')return!![];if(_0x2c1606===_0x557d16(0x156))return![];return undefined;}function issue(_0x28fb73,_0x3ac501,_0x1a0b92,_0x27c9e7,_0x6ca8d,_0x34dfc1){return{'level':_0x28fb73,'ruleId':_0x3ac501,'file':_0x1a0b92,'section':_0x34dfc1,'message':_0x27c9e7,'suggestion':_0x6ca8d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x49aec9=a47_0x5e0a;(function(_0x4e69c0,_0x2b3288){const _0x8b970a=a47_0x5e0a,_0x12ae6f=_0x4e69c0();while(!![]){try{const _0x40210f=-parseInt(_0x8b970a(0x1c3))/0x1*(-parseInt(_0x8b970a(0x1cb))/0x2)+-parseInt(_0x8b970a(0x1c6))/0x3*(-parseInt(_0x8b970a(0x1cd))/0x4)+-parseInt(_0x8b970a(0x1cc))/0x5+-parseInt(_0x8b970a(0x1ca))/0x6*(parseInt(_0x8b970a(0x1ce))/0x7)+parseInt(_0x8b970a(0x1d1))/0x8+parseInt(_0x8b970a(0x1bd))/0x9+parseInt(_0x8b970a(0x1d0))/0xa*(-parseInt(_0x8b970a(0x1c0))/0xb);if(_0x40210f===_0x2b3288)break;else _0x12ae6f['push'](_0x12ae6f['shift']());}catch(_0x87f9fa){_0x12ae6f['push'](_0x12ae6f['shift']());}}}(a47_0x44d2,0x45c1a));import{getSqlQueryInfo}from'../../core/api-client.js';function a47_0x44d2(){const _0x3c863a=['description','sqlCode','109884XOUznJ','4UxNISE','1651985irYzIH','8VLWlHp','28nwGVcL','detail','20470GbodWo','1073304jwzVft','appCode','dbId','4294728dqTIMX','sqlName','verbose','2882XZrBrJ','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','str','134060JXMgvI','sqlContent','read','519321hbZLNi','sqlcode'];a47_0x44d2=function(){return _0x3c863a;};return a47_0x44d2();}function a47_0x5e0a(_0x564c9b,_0x59efae){_0x564c9b=_0x564c9b-0x1bd;const _0x44d222=a47_0x44d2();let _0x5e0ab7=_0x44d222[_0x564c9b];return _0x5e0ab7;}import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':'sql','command':a47_0x49aec9(0x1cf),'description':a47_0x49aec9(0x1c1),'risk':a47_0x49aec9(0x1c5),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x479148){const _0x3b2034=a47_0x49aec9,_0x1725c8=await getSqlQueryInfo(_0x479148[_0x3b2034(0x1d2)],_0x479148[_0x3b2034(0x1c2)](_0x3b2034(0x1c7))),_0x1c9d32=_0x479148['bool'](_0x3b2034(0x1bf));if(_0x1c9d32)return{'ok':!![],'data':_0x1725c8};const _0x4eaa6c=_0x1725c8[_0x3b2034(0x1d3)]?await getDbName(_0x479148[_0x3b2034(0x1d2)],_0x1725c8['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x1725c8[_0x3b2034(0x1c9)],'sqlName':_0x1725c8[_0x3b2034(0x1be)],'db':_0x4eaa6c?_0x4eaa6c+'\x20('+_0x1725c8['dbId']+')':_0x1725c8['dbId']??'','description':_0x1725c8[_0x3b2034(0x1c8)]??'','sqlContent':_0x1725c8[_0x3b2034(0x1c4)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a48_0x22a4(){const _0x46fc23=['11749976bqjvtK','16196aeAlAw','28866NnMwhf','3851658WSzHnD','SQL\x20execution\x20failed','9oHLIaC','now','params','isArray','2NJGONi','Returned\x20','execResult','execSuccess','sql','str','13103030gdcHxi','sqlcode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','259BNmrpc','377155xxgzhl','execError','41081788GKAXWt','\x20row(s)\x20in\x20','1810VoROxw'];a48_0x22a4=function(){return _0x46fc23;};return a48_0x22a4();}function a48_0x1509(_0x33daf4,_0x115f13){_0x33daf4=_0x33daf4-0x108;const _0x22a403=a48_0x22a4();let _0x1509ea=_0x22a403[_0x33daf4];return _0x1509ea;}const a48_0x39bf96=a48_0x1509;(function(_0x54c701,_0x240a5b){const _0x10212c=a48_0x1509,_0x56dc37=_0x54c701();while(!![]){try{const _0x37876a=-parseInt(_0x10212c(0x10c))/0x1*(-parseInt(_0x10212c(0x11a))/0x2)+parseInt(_0x10212c(0x114))/0x3+-parseInt(_0x10212c(0x112))/0x4*(parseInt(_0x10212c(0x110))/0x5)+parseInt(_0x10212c(0x113))/0x6*(-parseInt(_0x10212c(0x10b))/0x7)+-parseInt(_0x10212c(0x111))/0x8+-parseInt(_0x10212c(0x116))/0x9*(parseInt(_0x10212c(0x108))/0xa)+parseInt(_0x10212c(0x10e))/0xb;if(_0x37876a===_0x240a5b)break;else _0x56dc37['push'](_0x56dc37['shift']());}catch(_0x3d4870){_0x56dc37['push'](_0x56dc37['shift']());}}}(a48_0x22a4,0xed89a));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x39bf96(0x11e),'command':'exec','description':a48_0x39bf96(0x10a),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5eda8b){const _0x58b04e=a48_0x39bf96,_0x626168=parseJsonParams(_0x5eda8b[_0x58b04e(0x11f)](_0x58b04e(0x118))),_0x37c2ad=Date[_0x58b04e(0x117)](),_0x229415=await executeSdkSql(_0x5eda8b[_0x58b04e(0x11f)](_0x58b04e(0x109)),_0x626168),_0x367ff0=Date[_0x58b04e(0x117)]()-_0x37c2ad,_0x206290=_0x229415?.[_0x58b04e(0x11c)]??_0x229415,_0x34c163=_0x229415?.[_0x58b04e(0x11d)]??!![];if(!_0x34c163)return{'ok':![],'data':{'error':_0x229415?.[_0x58b04e(0x10d)]||_0x58b04e(0x115),'elapsed':_0x367ff0},'message':_0x58b04e(0x115)};const _0x1aaae6=Array[_0x58b04e(0x119)](_0x206290)?_0x206290:[];return{'ok':!![],'data':{'rows':_0x1aaae6,'rowCount':_0x1aaae6['length'],'elapsed':_0x367ff0},'message':_0x58b04e(0x11b)+_0x1aaae6['length']+_0x58b04e(0x10f)+_0x367ff0+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a49_0x3599(){const _0x2072b0=['154wtJaok','32988gpnyBc','141ehuehJ','1514120eEhMrE','46986HqVyMb','5316840KIgTyS','1399552IjOiih','1825824Otmzsv','211984BDHpBK'];a49_0x3599=function(){return _0x2072b0;};return a49_0x3599();}(function(_0x15356e,_0x441da3){const _0x5abbaf=a49_0x9389,_0x358d19=_0x15356e();while(!![]){try{const _0x1a4f1d=-parseInt(_0x5abbaf(0x188))/0x1+parseInt(_0x5abbaf(0x185))/0x2*(parseInt(_0x5abbaf(0x186))/0x3)+parseInt(_0x5abbaf(0x18a))/0x4+-parseInt(_0x5abbaf(0x187))/0x5+-parseInt(_0x5abbaf(0x18b))/0x6+parseInt(_0x5abbaf(0x184))/0x7*(-parseInt(_0x5abbaf(0x183))/0x8)+parseInt(_0x5abbaf(0x189))/0x9;if(_0x1a4f1d===_0x441da3)break;else _0x358d19['push'](_0x358d19['shift']());}catch(_0x4b8687){_0x358d19['push'](_0x358d19['shift']());}}}(a49_0x3599,0x74e4c));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a49_0x9389(_0x575fb1,_0x568cb4){_0x575fb1=_0x575fb1-0x183;const _0x359955=a49_0x3599();let _0x93898b=_0x359955[_0x575fb1];return _0x93898b;}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50_0x18dd2e=a50_0x4061;(function(_0x4496f9,_0x2dc859){const _0x156333=a50_0x4061,_0x42851a=_0x4496f9();while(!![]){try{const _0xf72872=-parseInt(_0x156333(0xea))/0x1+parseInt(_0x156333(0xf1))/0x2*(-parseInt(_0x156333(0x120))/0x3)+-parseInt(_0x156333(0x101))/0x4+parseInt(_0x156333(0x117))/0x5*(-parseInt(_0x156333(0x11a))/0x6)+parseInt(_0x156333(0xda))/0x7*(parseInt(_0x156333(0x10a))/0x8)+-parseInt(_0x156333(0x12a))/0x9*(-parseInt(_0x156333(0x124))/0xa)+parseInt(_0x156333(0xdf))/0xb;if(_0xf72872===_0x2dc859)break;else _0x42851a['push'](_0x42851a['shift']());}catch(_0x272554){_0x42851a['push'](_0x42851a['shift']());}}}(a50_0x106d,0xedc63));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';function a50_0x4061(_0x1aedea,_0x4b1cec){_0x1aedea=_0x1aedea-0xd8;const _0x106d0c=a50_0x106d();let _0x406122=_0x106d0c[_0x1aedea];return _0x406122;}import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0xe2),'default':![]},{'name':a50_0x18dd2e(0x109),'type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0x125),'default':![]},{'name':a50_0x18dd2e(0xec),'type':a50_0x18dd2e(0xf8),'description':a50_0x18dd2e(0x10f)},{'name':a50_0x18dd2e(0xf3),'type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0x129),'default':![]},{'name':'skills','type':a50_0x18dd2e(0xe9),'description':a50_0x18dd2e(0xef),'default':!![],'hidden':!![]}];function parseSemver(_0x455801){const _0x36ecd6=a50_0x18dd2e,_0x1f7724=_0x455801[_0x36ecd6(0x116)]()[_0x36ecd6(0x10b)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x1f7724)return null;return{'major':Number(_0x1f7724[0x1]),'minor':Number(_0x1f7724[0x2]),'patch':Number(_0x1f7724[0x3]),'prerelease':_0x1f7724[0x4]};}function compareSemver(_0x4084d5,_0xca973a){const _0x4ed895=a50_0x18dd2e,_0x68ec91=parseSemver(_0x4084d5),_0xa1ff0e=parseSemver(_0xca973a);if(!_0x68ec91||!_0xa1ff0e)throw CliErrors[_0x4ed895(0xf0)](_0x4ed895(0x127),_0x4ed895(0xf9));for(const _0xc7e339 of[_0x4ed895(0xfa),_0x4ed895(0xe3),_0x4ed895(0x113)]){if(_0x68ec91[_0xc7e339]<_0xa1ff0e[_0xc7e339])return-0x1;if(_0x68ec91[_0xc7e339]>_0xa1ff0e[_0xc7e339])return 0x1;}if(!_0x68ec91[_0x4ed895(0xdd)]&&!_0xa1ff0e['prerelease'])return 0x0;if(!_0x68ec91['prerelease'])return 0x1;if(!_0xa1ff0e[_0x4ed895(0xdd)])return-0x1;if(_0x68ec91[_0x4ed895(0xdd)]===_0xa1ff0e['prerelease'])return 0x0;return _0x68ec91[_0x4ed895(0xdd)]<_0xa1ff0e[_0x4ed895(0xdd)]?-0x1:0x1;}function a50_0x106d(){const _0x1d4525=['version','Updating\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','validation','4048gXMUHo','npm','no-skills','Invalid\x20version:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','write','str','string','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','major','unknown','\x20version\x20from\x20npm.','stderr','Update\x20','length','message','7653564SOhNBf','entries','run','=1).','Updated\x20to\x20v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','warn','json','beta','184JtANEL','match','stdout','Already\x20up\x20to\x20date\x20(v','log','Install\x20a\x20specific\x20CLI\x20version','Checking\x20CLI\x20Built-in\x20Skill...','Current\x20version:\x20','join','patch','toString','status','trim','1770QqPwny','flag','skipped','27444dzGEHf','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','object','error','1482aZEOgQ','\x20CLI\x20from\x20npm','Update\x20failed:\x20','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','8650fKkJrt','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','fromEntries','Version\x20comparison\x20failed.','nonInteractive','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','2385DHnXPo','bool','filter','276983kxQOZg','Checking\x20npm\x20dist-tags...','/dist-tags','prerelease','pipe','60069284LHFxLQ','cwd','inherit','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','minor','map','Unable\x20to\x20resolve\x20','/-/package/','source','timeout','boolean','1093790igXUkE','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install'];a50_0x106d=function(){return _0x1d4525;};return a50_0x106d();}function getRequestedVersion(_0x201ce9){const _0xcd29b2=a50_0x18dd2e,_0x532a98=_0x201ce9[_0xcd29b2(0xf7)](_0xcd29b2(0xec))['trim']();if(_0x532a98)return _0x532a98;return String(_0x201ce9['args']?.[0x0]??'')[_0xcd29b2(0x116)]();}function shouldSkipCliBuiltInSkill(_0x11a0d3){const _0x4c68b8=a50_0x18dd2e;return _0x11a0d3[_0x4c68b8(0xd8)]('no-skills')||_0x11a0d3[_0x4c68b8(0x118)]('skills')===![];}async function validateUpdateFlags(_0x431eb5){const _0x2f21c4=a50_0x18dd2e,_0x35c6c4=getRequestedVersion(_0x431eb5),_0x51ccdf=[_0x431eb5[_0x2f21c4(0xd8)](_0x2f21c4(0x11c))?_0x2f21c4(0x11c):'',_0x431eb5[_0x2f21c4(0xd8)](_0x2f21c4(0x109))?_0x2f21c4(0x109):'',_0x35c6c4?_0x2f21c4(0xec):''][_0x2f21c4(0xd9)](Boolean);if(_0x51ccdf[_0x2f21c4(0xff)]>0x1)throw CliErrors['validation'](_0x2f21c4(0x123),_0x2f21c4(0xf5));if(_0x35c6c4&&!parseSemver(_0x35c6c4))throw CliErrors[_0x2f21c4(0xf0)](_0x2f21c4(0xf4)+_0x35c6c4,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x51f8b3=a50_0x18dd2e;try{const _0x1dfc90=NPM_REGISTRY_BASE_URL+_0x51f8b3(0xe6)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x51f8b3(0xdc),_0x22f90d=await fetch(_0x1dfc90,{'signal':AbortSignal[_0x51f8b3(0xe8)](0x2710)});if(!_0x22f90d['ok'])return null;const _0x1c69a8=await _0x22f90d[_0x51f8b3(0x108)]();if(!_0x1c69a8||typeof _0x1c69a8!==_0x51f8b3(0x11e))return null;return Object[_0x51f8b3(0x126)](Object[_0x51f8b3(0x102)](_0x1c69a8)[_0x51f8b3(0xd9)](([,_0x26f4f9])=>typeof _0x26f4f9===_0x51f8b3(0xf8)&&_0x26f4f9['trim']())[_0x51f8b3(0xe4)](([_0x398002,_0x4d67ba])=>[_0x398002,String(_0x4d67ba)[_0x51f8b3(0x116)]()]));}catch{return null;}}async function resolveTargetVersion(_0x51727f){const _0x50dfbb=a50_0x18dd2e,_0x5ebf51=getRequestedVersion(_0x51727f);if(_0x5ebf51)return{'version':_0x5ebf51,'source':_0x50dfbb(0xec)};const _0x51d544=_0x51727f['bool']('beta')?_0x50dfbb(0x109):_0x50dfbb(0x11c),_0x512f01=await fetchNpmDistTags(),_0x2de6ea=_0x512f01?.[_0x51d544];if(!_0x2de6ea)return null;return{'version':_0x2de6ea,'source':_0x51d544};}function shouldInstallTarget(_0x2b46ba,_0x138702){const _0x4e7b11=a50_0x18dd2e,_0x1d1867=compareSemver(_0x2b46ba,_0x138702[_0x4e7b11(0xec)]);if(_0x138702[_0x4e7b11(0xe7)]===_0x4e7b11(0xec))return _0x1d1867!==0x0;return _0x1d1867<0x0;}function installCliPackage(_0x3c13ea,_0x3f2b93){const _0x4cd286=a50_0x18dd2e,_0x2758c7=resolveNpmBin(_0x4cd286(0xf2)),_0x326652=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3c13ea];console[_0x4cd286(0x10e)]('*\x20'+[_0x2758c7,..._0x326652][_0x4cd286(0x112)]('\x20'));const _0x41a18f=spawnSync(_0x2758c7,_0x326652,{'cwd':process[_0x4cd286(0xe0)](),'stdio':_0x3f2b93?'pipe':_0x4cd286(0xe1),'env':process.env,'shell':![]});if(_0x41a18f[_0x4cd286(0x115)]===0x0)return{'ok':!![]};let _0x3350c=_0x41a18f[_0x4cd286(0x11f)]?.[_0x4cd286(0x100)]||'exit\x20'+(_0x41a18f[_0x4cd286(0x115)]??_0x4cd286(0xfb));if(_0x3f2b93){const _0x4b3524=_0x41a18f[_0x4cd286(0xfd)]?_0x41a18f[_0x4cd286(0xfd)]['toString']()[_0x4cd286(0x116)]():'',_0x38aff1=_0x41a18f[_0x4cd286(0x10c)]?_0x41a18f['stdout'][_0x4cd286(0x114)]()[_0x4cd286(0x116)]():'';if(_0x4b3524)_0x3350c=_0x4b3524;else{if(_0x38aff1)_0x3350c=_0x38aff1;}}return{'ok':![],'error':_0x3350c};}async function installCliBuiltInSkill(_0x4b5350){const _0x246047=a50_0x18dd2e;console[_0x246047(0x10e)](_0x246047(0x110));const _0x426c87=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4b5350?_0x246047(0xde):_0x246047(0xe1)});if(_0x426c87[_0x246047(0x119)]){console[_0x246047(0x10e)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x246047(0x104));return;}if(_0x426c87['ok']){console[_0x246047(0x10e)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console[_0x246047(0x107)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x426c87['error']||_0x246047(0xfb))),console[_0x246047(0x10e)](_0x246047(0xeb));}async function execute(_0x2cee21){const _0x28e554=a50_0x18dd2e;await validateUpdateFlags(_0x2cee21);const _0x520858=getCliVersion();console[_0x28e554(0x10e)](_0x28e554(0x111)+_0x520858),console[_0x28e554(0x10e)](_0x28e554(0xdb));const _0x2b2705=await resolveTargetVersion(_0x2cee21);if(!_0x2b2705){const _0x2a7b29=_0x2cee21[_0x28e554(0xd8)](_0x28e554(0x109))?_0x28e554(0x109):'latest',_0x1563c4=_0x28e554(0xe5)+_0x2a7b29+_0x28e554(0xfc);return console[_0x28e554(0x107)](_0x1563c4),console[_0x28e554(0x10e)](_0x28e554(0xee)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2a7b29),{'ok':![]};}if(!shouldInstallTarget(_0x520858,_0x2b2705)){const _0x3e610b=_0x2b2705[_0x28e554(0xe7)]===_0x28e554(0xec)?'Already\x20on\x20requested\x20version\x20(v'+_0x2b2705[_0x28e554(0xec)]+').':_0x28e554(0x10d)+_0x2b2705['version']+').';return console['log'](_0x3e610b),shouldSkipCliBuiltInSkill(_0x2cee21)?console[_0x28e554(0x10e)](_0x28e554(0x11d)):await installCliBuiltInSkill(_0x2cee21['nonInteractive']),{'ok':!![]};}console[_0x28e554(0x10e)](_0x28e554(0xed)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x520858+'\x20->\x20'+_0x2b2705[_0x28e554(0xec)]);const _0x237f2b=installCliPackage(_0x2b2705['version'],_0x2cee21[_0x28e554(0x128)]);if(!_0x237f2b['ok']){const _0x268eaa=_0x28e554(0x122)+(_0x237f2b[_0x28e554(0x11f)]||_0x28e554(0xfb));return console[_0x28e554(0x11f)](_0x268eaa),console[_0x28e554(0x10e)](_0x28e554(0x11b)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x2b2705[_0x28e554(0xec)]),{'ok':![]};}return console[_0x28e554(0x10e)](_0x28e554(0x105)+_0x2b2705[_0x28e554(0xec)]+'.'),console[_0x28e554(0x10e)](_0x28e554(0x106)),shouldSkipCliBuiltInSkill(_0x2cee21)?console['log'](_0x28e554(0x11d)):await installCliBuiltInSkill(_0x2cee21[_0x28e554(0x128)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a50_0x18dd2e(0x103),'description':a50_0x18dd2e(0xfe)+CLI_BIN_NAME+a50_0x18dd2e(0x121),'risk':a50_0x18dd2e(0xf6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
function a50_0x47a4(_0x47a68f,_0x5438d4){_0x47a68f=_0x47a68f-0x15e;const _0x2c6412=a50_0x2c64();let _0x47a436=_0x2c6412[_0x47a68f];return _0x47a436;}const a50_0x4b1653=a50_0x47a4;(function(_0x4bf853,_0x12a19a){const _0x21ac54=a50_0x47a4,_0x180969=_0x4bf853();while(!![]){try{const _0xcc53a3=-parseInt(_0x21ac54(0x15f))/0x1*(parseInt(_0x21ac54(0x1aa))/0x2)+parseInt(_0x21ac54(0x165))/0x3+parseInt(_0x21ac54(0x18c))/0x4*(-parseInt(_0x21ac54(0x16e))/0x5)+parseInt(_0x21ac54(0x185))/0x6+parseInt(_0x21ac54(0x1a8))/0x7+parseInt(_0x21ac54(0x1b4))/0x8*(-parseInt(_0x21ac54(0x18b))/0x9)+parseInt(_0x21ac54(0x18f))/0xa;if(_0xcc53a3===_0x12a19a)break;else _0x180969['push'](_0x180969['shift']());}catch(_0x15b74f){_0x180969['push'](_0x180969['shift']());}}}(a50_0x2c64,0x8b2a2));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a50_0x4b1653(0x16c),'type':'boolean','description':a50_0x4b1653(0x163),'default':![]},{'name':a50_0x4b1653(0x197),'type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x177),'default':![]},{'name':'version','type':a50_0x4b1653(0x194),'description':a50_0x4b1653(0x178)},{'name':a50_0x4b1653(0x17b),'type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x174),'default':![]},{'name':'skills','type':a50_0x4b1653(0x162),'description':a50_0x4b1653(0x19d),'default':!![],'hidden':!![]}];function parseSemver(_0x42582b){const _0x2acc64=a50_0x4b1653,_0x53f3c8=_0x42582b[_0x2acc64(0x161)]()[_0x2acc64(0x190)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x53f3c8)return null;return{'major':Number(_0x53f3c8[0x1]),'minor':Number(_0x53f3c8[0x2]),'patch':Number(_0x53f3c8[0x3]),'prerelease':_0x53f3c8[0x4]};}function compareSemver(_0x58cda4,_0x5c0632){const _0xe35ad=a50_0x4b1653,_0x10b49a=parseSemver(_0x58cda4),_0x53337b=parseSemver(_0x5c0632);if(!_0x10b49a||!_0x53337b)throw CliErrors[_0xe35ad(0x15e)](_0xe35ad(0x183),_0xe35ad(0x199));for(const _0x56502c of[_0xe35ad(0x184),_0xe35ad(0x1ac),_0xe35ad(0x16b)]){if(_0x10b49a[_0x56502c]<_0x53337b[_0x56502c])return-0x1;if(_0x10b49a[_0x56502c]>_0x53337b[_0x56502c])return 0x1;}if(!_0x10b49a[_0xe35ad(0x17f)]&&!_0x53337b[_0xe35ad(0x17f)])return 0x0;if(!_0x10b49a['prerelease'])return 0x1;if(!_0x53337b[_0xe35ad(0x17f)])return-0x1;if(_0x10b49a['prerelease']===_0x53337b[_0xe35ad(0x17f)])return 0x0;return _0x10b49a['prerelease']<_0x53337b[_0xe35ad(0x17f)]?-0x1:0x1;}function getRequestedVersion(_0x291529){const _0x375c47=a50_0x4b1653,_0x4d1db3=_0x291529[_0x375c47(0x1b6)]('version')[_0x375c47(0x161)]();if(_0x4d1db3)return _0x4d1db3;return String(_0x291529[_0x375c47(0x186)]?.[0x0]??'')[_0x375c47(0x161)]();}function shouldSkipCliBuiltInSkill(_0x3f6c2b){const _0x5307fc=a50_0x4b1653;return _0x3f6c2b[_0x5307fc(0x16a)]('no-skills')||_0x3f6c2b['flag'](_0x5307fc(0x17e))===![];}async function validateUpdateFlags(_0x4ee946){const _0x2e6ec1=a50_0x4b1653,_0x5f02d1=getRequestedVersion(_0x4ee946),_0x15a7ac=[_0x4ee946[_0x2e6ec1(0x16a)](_0x2e6ec1(0x16c))?'latest':'',_0x4ee946[_0x2e6ec1(0x16a)](_0x2e6ec1(0x197))?'beta':'',_0x5f02d1?_0x2e6ec1(0x171):''][_0x2e6ec1(0x191)](Boolean);if(_0x15a7ac[_0x2e6ec1(0x198)]>0x1)throw CliErrors['validation'](_0x2e6ec1(0x169),_0x2e6ec1(0x18d));if(_0x5f02d1&&!parseSemver(_0x5f02d1))throw CliErrors[_0x2e6ec1(0x15e)](_0x2e6ec1(0x1a0)+_0x5f02d1,_0x2e6ec1(0x17a));}async function fetchNpmDistTags(){const _0x21a2d0=a50_0x4b1653;try{const _0xe0773e=NPM_REGISTRY_BASE_URL+_0x21a2d0(0x18a)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x21a2d0(0x1a1),_0x568b4e=await fetch(_0xe0773e,{'signal':AbortSignal[_0x21a2d0(0x1a3)](0x2710)});if(!_0x568b4e['ok'])return null;const _0x39fda4=await _0x568b4e[_0x21a2d0(0x196)]();if(!_0x39fda4||typeof _0x39fda4!==_0x21a2d0(0x168))return null;return Object[_0x21a2d0(0x1a9)](Object[_0x21a2d0(0x1b2)](_0x39fda4)[_0x21a2d0(0x191)](([,_0x578b02])=>typeof _0x578b02===_0x21a2d0(0x194)&&_0x578b02[_0x21a2d0(0x161)]())[_0x21a2d0(0x193)](([_0x4382c4,_0x127131])=>[_0x4382c4,String(_0x127131)[_0x21a2d0(0x161)]()]));}catch{return null;}}async function resolveTargetVersion(_0x18f804){const _0x1946d4=a50_0x4b1653,_0x415fcb=getRequestedVersion(_0x18f804);if(_0x415fcb)return{'version':_0x415fcb,'source':_0x1946d4(0x171)};const _0x376480=_0x18f804[_0x1946d4(0x16a)](_0x1946d4(0x197))?_0x1946d4(0x197):'latest',_0x5402c0=await fetchNpmDistTags(),_0x5b86be=_0x5402c0?.[_0x376480];if(!_0x5b86be)return null;return{'version':_0x5b86be,'source':_0x376480};}function shouldInstallTarget(_0x33ab45,_0x918c8f){const _0xdbe9a5=a50_0x4b1653,_0x4b1b7f=compareSemver(_0x33ab45,_0x918c8f[_0xdbe9a5(0x171)]);if(_0x918c8f[_0xdbe9a5(0x160)]==='version')return _0x4b1b7f!==0x0;return _0x4b1b7f<0x0;}function installCliPackage(_0x4d6432,_0x550419){const _0x500295=a50_0x4b1653,_0x16883b=resolveNpmBin(_0x500295(0x19a)),_0xff8bdd=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d6432];console[_0x500295(0x172)]('*\x20'+[_0x16883b,..._0xff8bdd][_0x500295(0x16f)]('\x20'));const _0x39d2ed=spawnSync(_0x16883b,_0xff8bdd,{'cwd':process[_0x500295(0x19c)](),'stdio':_0x550419?_0x500295(0x1a7):_0x500295(0x192),'env':process.env,'shell':![]});if(_0x39d2ed[_0x500295(0x1b5)]===0x0)return{'ok':!![]};let _0xe6f5ac=_0x39d2ed['error']?.[_0x500295(0x1b1)]||_0x500295(0x170)+(_0x39d2ed[_0x500295(0x1b5)]??_0x500295(0x1a4));if(_0x550419){const _0x53c50f=_0x39d2ed[_0x500295(0x179)]?_0x39d2ed[_0x500295(0x179)][_0x500295(0x1af)]()[_0x500295(0x161)]():'',_0x2a1afd=_0x39d2ed['stdout']?_0x39d2ed[_0x500295(0x166)][_0x500295(0x1af)]()[_0x500295(0x161)]():'';if(_0x53c50f)_0xe6f5ac=_0x53c50f;else{if(_0x2a1afd)_0xe6f5ac=_0x2a1afd;}}return{'ok':![],'error':_0xe6f5ac};}function a50_0x2c64(){const _0x276940=['1255464vMPfnU','args','update','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','warn','/-/package/','27OAgWTC','140lGnVKK','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','nonInteractive','529940aZrdYP','match','filter','inherit','map','string','skipped','json','beta','length','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','npm','=1).','cwd','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','Checking\x20CLI\x20Built-in\x20Skill...','Already\x20on\x20requested\x20version\x20(v','Invalid\x20version:\x20','/dist-tags','error','timeout','unknown','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Checking\x20npm\x20dist-tags...','pipe','7186382fOIeEw','fromEntries','2IPMShn','Updating\x20','minor','\x20CLI\x20from\x20npm','Already\x20up\x20to\x20date\x20(v','toString','Unable\x20to\x20resolve\x20','message','entries','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','285656ctCuLA','status','str','validation','953263XYtIOI','source','trim','boolean','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Updated\x20to\x20v','3095949yVCqqp','stdout','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','object','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','bool','patch','latest','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','98635kTNcdQ','join','exit\x20','version','log','\x20->\x20','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20version\x20from\x20npm.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Install\x20a\x20specific\x20CLI\x20version','stderr','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','no-skills','run','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','skills','prerelease','Current\x20version:\x20','Update\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Version\x20comparison\x20failed.','major'];a50_0x2c64=function(){return _0x276940;};return a50_0x2c64();}async function installCliBuiltInSkill(_0x43117d){const _0x35c81e=a50_0x4b1653;console[_0x35c81e(0x172)](_0x35c81e(0x19e));const _0x23a334=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x43117d?_0x35c81e(0x1a7):_0x35c81e(0x192)});if(_0x23a334[_0x35c81e(0x195)]){console[_0x35c81e(0x172)](_0x35c81e(0x1a5)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x35c81e(0x19b));return;}if(_0x23a334['ok']){console['log'](_0x35c81e(0x182));return;}console[_0x35c81e(0x189)](_0x35c81e(0x17d)+(_0x23a334[_0x35c81e(0x1a2)]||_0x35c81e(0x1a4))),console[_0x35c81e(0x172)](_0x35c81e(0x1b3));}async function execute(_0x1cf117){const _0x594881=a50_0x4b1653;await validateUpdateFlags(_0x1cf117);const _0x4ece83=getCliVersion();console[_0x594881(0x172)](_0x594881(0x180)+_0x4ece83),console[_0x594881(0x172)](_0x594881(0x1a6));const _0x3b6317=await resolveTargetVersion(_0x1cf117);if(!_0x3b6317){const _0xf21026=_0x1cf117[_0x594881(0x16a)](_0x594881(0x197))?_0x594881(0x197):_0x594881(0x16c),_0x50290c=_0x594881(0x1b0)+_0xf21026+_0x594881(0x175);return console['warn'](_0x50290c),console[_0x594881(0x172)](_0x594881(0x167)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xf21026),{'ok':![]};}if(!shouldInstallTarget(_0x4ece83,_0x3b6317)){const _0x55ce86=_0x3b6317[_0x594881(0x160)]===_0x594881(0x171)?_0x594881(0x19f)+_0x3b6317[_0x594881(0x171)]+').':_0x594881(0x1ae)+_0x3b6317[_0x594881(0x171)]+').';return console[_0x594881(0x172)](_0x55ce86),shouldSkipCliBuiltInSkill(_0x1cf117)?console[_0x594881(0x172)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x1cf117[_0x594881(0x18e)]),{'ok':!![]};}console[_0x594881(0x172)](_0x594881(0x1ab)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x4ece83+_0x594881(0x173)+_0x3b6317[_0x594881(0x171)]);const _0x14f076=installCliPackage(_0x3b6317[_0x594881(0x171)],_0x1cf117[_0x594881(0x18e)]);if(!_0x14f076['ok']){const _0x31709b='Update\x20failed:\x20'+(_0x14f076['error']||'unknown');return console[_0x594881(0x1a2)](_0x31709b),console[_0x594881(0x172)](_0x594881(0x188)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3b6317[_0x594881(0x171)]),{'ok':![]};}return console['log'](_0x594881(0x164)+_0x3b6317[_0x594881(0x171)]+'.'),console['log'](_0x594881(0x176)),shouldSkipCliBuiltInSkill(_0x1cf117)?console[_0x594881(0x172)](_0x594881(0x16d)):await installCliBuiltInSkill(_0x1cf117[_0x594881(0x18e)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x4b1653(0x187),'command':a50_0x4b1653(0x17c),'description':a50_0x4b1653(0x181)+CLI_BIN_NAME+a50_0x4b1653(0x1ad),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0x142ac3=a51_0x48d5;(function(_0x5199f7,_0x35afb0){const _0x208b89=a51_0x48d5,_0x62aba7=_0x5199f7();while(!![]){try{const _0x393f32=-parseInt(_0x208b89(0x1ee))/0x1+parseInt(_0x208b89(0x1d9))/0x2+-parseInt(_0x208b89(0x1f1))/0x3+parseInt(_0x208b89(0x1d5))/0x4*(parseInt(_0x208b89(0x20a))/0x5)+parseInt(_0x208b89(0x1e1))/0x6+-parseInt(_0x208b89(0x1d8))/0x7*(-parseInt(_0x208b89(0x1fb))/0x8)+parseInt(_0x208b89(0x1f0))/0x9*(parseInt(_0x208b89(0x1da))/0xa);if(_0x393f32===_0x35afb0)break;else _0x62aba7['push'](_0x62aba7['shift']());}catch(_0x29702b){_0x62aba7['push'](_0x62aba7['shift']());}}}(a51_0x24b7,0xab769));function a51_0x24b7(){const _0x1a20ff=['filter','Usage:\x20','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','appCode','defaultApp','\x0aAccessKey:\x20not\x20written','appcode','validation','join','string','Missing\x20workspace\x20app\x20selector.','\x22\x20not\x20found.','envName','15cLGzbr','../../core/api-client.js','write','App\x20code\x20to\x20bind\x20directly','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x0aEnv:\x20','Target\x20environment','use','146224ZsoQmR','env','items','1321621hADUsL','1267762yIXrqz','77530IIcAdV','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','init','from','\x0aDefault\x20app:\x20','apps','str','1426278UbRjzm','map','workspace\x20','\x20workspace\x20','accessKey','boolean','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','\x20--appcode\x20<code>\x20[--env\x20daily]','Run\x20`','includes','trim','../../commands/app/remote-source.js','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','1022466nPjspU','\x22.\x20Allowed:\x20','612oElBJs','1616697QJLsHv','command','Invalid\x20env\x20\x22','yes','appName','app','object','authRequired','App\x20\x22','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','32wLeZNb','shouldWriteEnv'];a51_0x24b7=function(){return _0x1a20ff;};return a51_0x24b7();}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';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a51_0x142ac3(0x1f6),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x1db)},{'name':a51_0x142ac3(0x203),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x20d)},{'name':a51_0x142ac3(0x1d6),'type':a51_0x142ac3(0x206),'description':a51_0x142ac3(0x1d3),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x142ac3(0x1f4),'type':a51_0x142ac3(0x1e6),'description':a51_0x142ac3(0x20e),'default':![]}];async function executeWorkspaceUse(_0x36d787,_0x78ba94){const _0x33f538=a51_0x142ac3,_0x24c2ff=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x1f6))['trim'](),_0x1ee4a1=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x203))[_0x33f538(0x1eb)](),_0x16b08e=_0x36d787[_0x33f538(0x1e0)](_0x33f538(0x1d6))[_0x33f538(0x1eb)](),_0x1677bd=resolveWorkspaceEnv(_0x16b08e||_0x36d787[_0x33f538(0x209)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x24c2ff&&!_0x1ee4a1)throw CliErrors[_0x33f538(0x204)](_0x33f538(0x207),_0x33f538(0x1fe)+CLI_BIN_NAME+_0x33f538(0x1e4)+_0x78ba94+_0x33f538(0x1ed)+CLI_BIN_NAME+_0x33f538(0x1e4)+_0x78ba94+_0x33f538(0x1e8));const _0x889d64=_0x1ee4a1||await resolveRemoteAppCode({'command':_0x78ba94,'appName':_0x24c2ff,'env':_0x1677bd,'accessKey':_0x36d787[_0x33f538(0x1e5)]}),_0x2142ae=writeWorkspaceConfig({'command':_0x78ba94,'appName':_0x24c2ff,'appcode':_0x889d64,'env':_0x1677bd,'shouldWriteEnv':!!_0x16b08e,'accessKey':_0x36d787['accessKey']});return{'ok':!![],'data':{'configPath':_0x2142ae,'app':_0x24c2ff||null,'appcode':_0x889d64,'env':_0x16b08e?_0x1677bd:null,'accessKeyWritten':![],'command':_0x33f538(0x1e3)+_0x78ba94},'message':buildWorkspaceMessage(_0x2142ae,_0x24c2ff,_0x889d64,_0x16b08e?_0x1677bd:undefined)};}async function resolveRemoteAppCode(_0xa9cade){const _0x2afd63=a51_0x142ac3;if(!_0xa9cade[_0x2afd63(0x1e5)])throw CliErrors[_0x2afd63(0x1f8)](_0x2afd63(0x1ff)+CLI_BIN_NAME+_0x2afd63(0x1e4)+_0xa9cade[_0x2afd63(0x1f2)]+'.');const {setActiveAK:_0x3d38d7}=await import(_0x2afd63(0x20b)),{getRemoteAppList:_0x2f7ced}=await import(_0x2afd63(0x1ec));_0x3d38d7(_0xa9cade[_0x2afd63(0x1e5)]);const _0x4e0dde=await _0x2f7ced({'env':_0xa9cade['env'],'accessKey':_0xa9cade['accessKey'],'noCache':![]}),_0x41201f=findAppByName(_0x4e0dde['items'],_0xa9cade[_0x2afd63(0x1f5)]);if(_0x41201f&&!isRuntimeAccessibleApp(_0x41201f))throw runtimeInaccessibleAppError(_0x41201f,'\x22'+_0xa9cade[_0x2afd63(0x1f5)]+'\x22');const _0x4264d0=_0x41201f?.[_0x2afd63(0x200)]?.[_0x2afd63(0x1eb)]();if(_0x4264d0)return _0x4264d0;const _0x3100d3=_0x4e0dde[_0x2afd63(0x1d7)][_0x2afd63(0x1e2)](_0x44caa5=>_0x44caa5[_0x2afd63(0x1f5)])[_0x2afd63(0x1fd)](Boolean),_0x483fc9=_0x3100d3['length']?'Available\x20apps:\x20'+Array[_0x2afd63(0x1dd)](new Set(_0x3100d3))[_0x2afd63(0x205)](',\x20')+'.':_0x2afd63(0x1e9)+CLI_BIN_NAME+_0x2afd63(0x1e7);throw CliErrors[_0x2afd63(0x204)](_0x2afd63(0x1f9)+_0xa9cade[_0x2afd63(0x1f5)]+_0x2afd63(0x208),_0x483fc9);}function writeWorkspaceConfig(_0x46e46a){const _0x4028f0=a51_0x142ac3,_0x39793b=resolveWriteConfigPath('project'),_0x23d6ac=readConfigFile(_0x39793b);_0x46e46a[_0x4028f0(0x1fc)]&&(_0x23d6ac[_0x4028f0(0x1d6)]=_0x46e46a[_0x4028f0(0x1d6)]);if(_0x46e46a[_0x4028f0(0x1f5)]){const _0x496574=isRecord(_0x23d6ac[_0x4028f0(0x1df)])?{..._0x23d6ac[_0x4028f0(0x1df)]}:{},_0x27a9e4=isRecord(_0x496574[_0x46e46a['appName']])?_0x496574[_0x46e46a[_0x4028f0(0x1f5)]]:{};_0x496574[_0x46e46a[_0x4028f0(0x1f5)]]={..._0x27a9e4,'appcode':_0x46e46a[_0x4028f0(0x203)]},_0x23d6ac['apps']=_0x496574,_0x23d6ac[_0x4028f0(0x201)]=_0x46e46a[_0x4028f0(0x1f5)];if(_0x23d6ac['app'])delete _0x23d6ac['app'];return writeAndReturn(_0x39793b,_0x23d6ac);}_0x23d6ac[_0x4028f0(0x203)]=_0x46e46a[_0x4028f0(0x203)];if(_0x23d6ac[_0x4028f0(0x1f6)])delete _0x23d6ac['app'];return writeAndReturn(_0x39793b,_0x23d6ac);}function writeAndReturn(_0xa8d65a,_0xbbb4c4){return writeConfigFile(_0xa8d65a,_0xbbb4c4),_0xa8d65a;}function resolveWorkspaceEnv(_0x1d1e35){const _0x3fe814=a51_0x142ac3;if(RUNTIME_ENV_VALUES[_0x3fe814(0x1ea)](_0x1d1e35))return _0x1d1e35;throw CliErrors['validation'](_0x3fe814(0x1f3)+_0x1d1e35+_0x3fe814(0x1ef)+RUNTIME_ENV_VALUES[_0x3fe814(0x205)](',\x20'));}function buildWorkspaceMessage(_0xd92288,_0x2b8e3f,_0x3f354d,_0x5af3f2){const _0x5a3d46=a51_0x142ac3,_0x4f1672=_0x2b8e3f?_0x2b8e3f+'\x20('+_0x3f354d+')':_0x3f354d,_0x196728=_0x5af3f2?_0x5a3d46(0x1d2)+_0x5af3f2:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xd92288+_0x5a3d46(0x1de)+_0x4f1672+_0x196728+_0x5a3d46(0x202);}function a51_0x48d5(_0x4ce92c,_0x5cc282){_0x4ce92c=_0x4ce92c-0x1d2;const _0x24b728=a51_0x24b7();let _0x48d5e8=_0x24b728[_0x4ce92c];return _0x48d5e8;}function isRecord(_0x4b9fa0){const _0x3a3345=a51_0x142ac3;return typeof _0x4b9fa0===_0x3a3345(0x1f7)&&_0x4b9fa0!==null&&!Array['isArray'](_0x4b9fa0);}function makeWorkspaceCommand(_0x510a0c){const _0x118397=a51_0x142ac3;return{'service':'workspace','command':_0x510a0c,'description':_0x510a0c===_0x118397(0x1dc)?_0x118397(0x1fa):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x118397(0x20c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x30a9ee){return executeWorkspaceUse(_0x30a9ee,_0x510a0c);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x142ac3(0x1dc)),makeWorkspaceCommand(a51_0x142ac3(0x1d4))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a52_0x4287fd=a52_0x2e87;(function(_0x530bc6,_0xb226dd){const _0x2bfbac=a52_0x2e87,_0x5b4c93=_0x530bc6();while(!![]){try{const _0x27af80=parseInt(_0x2bfbac(0xb5))/0x1+parseInt(_0x2bfbac(0xce))/0x2+-parseInt(_0x2bfbac(0xb7))/0x3+-parseInt(_0x2bfbac(0xc3))/0x4+parseInt(_0x2bfbac(0xc8))/0x5+-parseInt(_0x2bfbac(0xb8))/0x6*(parseInt(_0x2bfbac(0xbc))/0x7)+parseInt(_0x2bfbac(0xcd))/0x8*(-parseInt(_0x2bfbac(0xba))/0x9);if(_0x27af80===_0xb226dd)break;else _0x5b4c93['push'](_0x5b4c93['shift']());}catch(_0x874125){_0x5b4c93['push'](_0x5b4c93['shift']());}}}(a52_0x520c,0xdef10));function a52_0x2e87(_0x41f20a,_0x11a2a6){_0x41f20a=_0x41f20a-0xb1;const _0x520c47=a52_0x520c();let _0x2e8792=_0x520c47[_0x41f20a];return _0x2e8792;}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':a52_0x4287fd(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xca)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb1)],'importable':!![]},'pageSize':{'description':a52_0x4287fd(0xc7),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x4287fd(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x4287fd(0xbf),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x4287fd(0xb9),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x4287fd(0xc4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x4287fd(0xcf),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb4)],'importable':!![]},'locale':{'description':a52_0x4287fd(0xc2),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x4287fd(0xb2)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xba3938])=>_0xba3938[a52_0x4287fd(0xbe)])['map'](([_0x2d5b18])=>_0x2d5b18));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x6d5471])=>_0x6d5471[a52_0x4287fd(0xbb)])['map'](([_0x4a8800,_0x146f46])=>[_0x4a8800,[..._0x146f46[a52_0x4287fd(0xbb)]||[]]]));function a52_0x520c(){const _0x291d90=['defaultValue','env','has','importable','3139808KowqKG','2842484UbecrG','Risk\x20level','format','locale','filter','riskLevel','968606ItUlBH','Config\x20key.\x20Top-level:\x20','3312132SdXEIf','18qzWsGA','Override\x20SkillHub\x20domain','18RtQAlL','enumValues','279853BftqyT','Target\x20environment','cliSettableTopLevel','Override\x20runtime\x20domain','join','Override\x20API\x20domain','Locale','1747692bVKEQc','Access\x20key\x20(client-ak\x20auth)','legacyCompatOnly','entries','Default\x20page\x20size','4845880pNMzSH'];a52_0x520c=function(){return _0x291d90;};return a52_0x520c();}export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x4287fd(0xc6)](CONFIG_FIELD_SCHEMAS)[a52_0x4287fd(0xb3)](([,_0x403cd7])=>_0x403cd7[a52_0x4287fd(0xcc)])['map'](([_0x448a75])=>_0x448a75);export function getConfigFieldSchema(_0x1ada97){return CONFIG_FIELD_SCHEMAS[_0x1ada97];}export function getConfigEnumValues(_0x292332){const _0x635401=a52_0x4287fd;return getConfigFieldSchema(_0x292332)?.[_0x635401(0xbb)];}export function getConfigDefaultValue(_0x30f8b1){const _0x4fc3d3=a52_0x4287fd;return getConfigFieldSchema(_0x30f8b1)?.[_0x4fc3d3(0xc9)];}export function isTopLevelConfigKey(_0x23c18d){const _0x478200=a52_0x4287fd;return TOP_LEVEL_CONFIG_KEYS[_0x478200(0xcb)](_0x23c18d);}export function isLegacyCompatConfigKey(_0x12c23f){const _0x1c5b08=a52_0x4287fd;return getConfigFieldSchema(_0x12c23f)?.[_0x1c5b08(0xc5)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x191866){const _0x284fba=a52_0x4287fd;return[..._0x191866][_0x284fba(0xc0)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xf568a2=a52_0x4287fd;return _0xf568a2(0xb6)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x252ff3){return{'env':_0x252ff3,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|