@lovrabet/lovrabet-cli 2.1.6-beta.2 → 2.1.6-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/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_0x2168c2=a37_0x1ece;function a37_0x1ece(_0xbd7dad,_0x3e6be3){_0xbd7dad=_0xbd7dad-0x12e;const _0x4772aa=a37_0x4772();let _0x1ece2f=_0x4772aa[_0xbd7dad];return _0x1ece2f;}(function(_0x3b82d5,_0x12f9f8){const _0xf8b00d=a37_0x1ece,_0x407a60=_0x3b82d5();while(!![]){try{const _0xdb2c69=parseInt(_0xf8b00d(0x150))/0x1*(parseInt(_0xf8b00d(0x151))/0x2)+-parseInt(_0xf8b00d(0x148))/0x3*(parseInt(_0xf8b00d(0x14d))/0x4)+parseInt(_0xf8b00d(0x139))/0x5*(-parseInt(_0xf8b00d(0x13b))/0x6)+-parseInt(_0xf8b00d(0x133))/0x7*(parseInt(_0xf8b00d(0x140))/0x8)+-parseInt(_0xf8b00d(0x14a))/0x9*(-parseInt(_0xf8b00d(0x13a))/0xa)+-parseInt(_0xf8b00d(0x144))/0xb*(-parseInt(_0xf8b00d(0x152))/0xc)+parseInt(_0xf8b00d(0x145))/0xd*(parseInt(_0xf8b00d(0x132))/0xe);if(_0xdb2c69===_0x12f9f8)break;else _0x407a60['push'](_0x407a60['shift']());}catch(_0x29003c){_0x407a60['push'](_0x407a60['shift']());}}}(a37_0x4772,0x3b1a1));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_0x2168c2(0x134),'command':a37_0x2168c2(0x147),'description':a37_0x2168c2(0x13e),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x1be93a){const _0x1e2789=a37_0x2168c2,_0x1ddfd0=_0x1be93a[_0x1e2789(0x13d)](_0x1e2789(0x135)),_0x45f51c=normalizeListScope(_0x1be93a[_0x1e2789(0x13d)](_0x1e2789(0x149)));if(_0x1be93a[_0x1e2789(0x141)](_0x1e2789(0x12e))){const _0x6cf346=_0x1be93a[_0x1e2789(0x12f)];if(!_0x6cf346)throw CliErrors[_0x1e2789(0x14c)]();const {listLocalRuntimeSkills:_0x4a7a7e}=await import(_0x1e2789(0x138)),_0x111bc0=_0x4a7a7e({'env':_0x1be93a['envName']??_0x1e2789(0x13f),'accessKey':_0x6cf346,'appCode':_0x1be93a[_0x1e2789(0x14b)],'scopes':listScopeToRuntimeScopes(_0x45f51c),'code':_0x1ddfd0[_0x1e2789(0x153)]()||undefined}),_0x829863=groupLocalRuntimeSkills(_0x111bc0);return{'ok':!![],'data':{'appCode':_0x1be93a['appCode'],'source':_0x1e2789(0x12e),'scope':_0x45f51c,'total':_0x111bc0[_0x1e2789(0x14f)],'personal':_0x829863[_0x1e2789(0x142)][_0x1e2789(0x14f)],'company':_0x829863['company'][_0x1e2789(0x14f)],'items':_0x111bc0[_0x1e2789(0x136)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x829863[_0x1e2789(0x142)]['map'](summarizeLocalRuntimeSkill),'company':_0x829863[_0x1e2789(0x146)]['map'](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x111bc0[_0x1e2789(0x14f)]+_0x1e2789(0x131)};}const {listRuntimeSkills:_0x462041}=await import(_0x1e2789(0x154)),_0xbd5d23=await _0x462041({'appCode':_0x1be93a[_0x1e2789(0x14b)],'scope':listScopeToRemoteScope(_0x45f51c),'code':_0x1ddfd0[_0x1e2789(0x153)]()||undefined}),_0x3f2b68=shouldListScope(_0x45f51c,'personal')?_0xbd5d23['personal']??[]:[],_0x5b96f3=shouldListScope(_0x45f51c,_0x1e2789(0x146))?_0xbd5d23['company']??[]:[],_0x47ab8b=[..._0x3f2b68,..._0x5b96f3];return{'ok':!![],'data':{'appCode':_0x1be93a['appCode'],'source':_0x1e2789(0x137),'scope':_0x45f51c,'total':_0x47ab8b[_0x1e2789(0x14f)],'personal':_0x3f2b68[_0x1e2789(0x14f)],'company':_0x5b96f3[_0x1e2789(0x14f)],'items':_0x47ab8b[_0x1e2789(0x136)](summarizeRuntimeSkill),'skills':{'personal':_0x3f2b68[_0x1e2789(0x136)](summarizeRuntimeSkill),'company':_0x5b96f3[_0x1e2789(0x136)](summarizeRuntimeSkill)}},'message':_0x1e2789(0x130)+_0x47ab8b[_0x1e2789(0x14f)]+_0x1e2789(0x13c)};}};function groupLocalRuntimeSkills(_0x577e42){const _0x3d1b90=a37_0x2168c2;return{'personal':_0x577e42[_0x3d1b90(0x143)](_0x509b4e=>_0x509b4e[_0x3d1b90(0x149)]===_0x3d1b90(0x142)),'company':_0x577e42[_0x3d1b90(0x143)](_0x1ca6a6=>_0x1ca6a6[_0x3d1b90(0x149)]==='company'),'builtin':_0x577e42[_0x3d1b90(0x143)](_0x400e1e=>_0x400e1e['scope']===_0x3d1b90(0x14e))};}function a37_0x4772(){const _0x7707f3=['10cOmaLQ','12YbGMgX','\x20remote\x20Skill(s).','str','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','production','13744saTnvh','bool','personal','filter','2329217izKVom','3764501zXEyeS','company','list','3wbthMt','scope','1045782wklQOM','appCode','authRequired','1257784fligoX','builtin','length','4871tCxFAa','196QHvODv','12gFTnwq','trim','../../../core/api-client.js','local','accessKey','Listed\x20','\x20local\x20Skill(s).','28RZIbNl','1764mXjxiw','skill','code','map','remote','../../../skills/runtime-skill-sync.js','987485sfiwtV'];a37_0x4772=function(){return _0x7707f3;};return a37_0x4772();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0x11a0c8=a38_0x1332;function a38_0x5356(){const _0x122c77=['14112576yIVzIQ','../../../skills/runtime-skill-sync.js','push','accessKey','str','appCode','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','dir','find','190lDypzv','../../../core/api-client.js','40blgKsJ','skillCode','personal','authRequired','warnings','2070558JspvlG','2415798EDeyRz','36096ceyYlH','Created\x20personal\x20Skill\x20','skill','4249875kcnTOp','input','26MBJnEA','files','9061116DswVsm','510OjvVvH','101162mksKdb','Updated\x20personal\x20Skill\x20'];a38_0x5356=function(){return _0x122c77;};return a38_0x5356();}(function(_0x50efab,_0x4e10ea){const _0x3f855a=a38_0x1332,_0x5cddc1=_0x50efab();while(!![]){try{const _0x6812a0=-parseInt(_0x3f855a(0xcb))/0x1*(parseInt(_0x3f855a(0xcf))/0x2)+-parseInt(_0x3f855a(0xc9))/0x3+parseInt(_0x3f855a(0xc6))/0x4*(parseInt(_0x3f855a(0xce))/0x5)+parseInt(_0x3f855a(0xcd))/0x6+-parseInt(_0x3f855a(0xc4))/0x7*(parseInt(_0x3f855a(0xbf))/0x8)+-parseInt(_0x3f855a(0xd1))/0x9+parseInt(_0x3f855a(0xbd))/0xa*(parseInt(_0x3f855a(0xc5))/0xb);if(_0x6812a0===_0x4e10ea)break;else _0x5cddc1['push'](_0x5cddc1['shift']());}catch(_0x1b91b){_0x5cddc1['push'](_0x5cddc1['shift']());}}}(a38_0x5356,0xc9523));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';function a38_0x1332(_0x59a683,_0x52b066){_0x59a683=_0x59a683-0xb9;const _0x5356f7=a38_0x5356();let _0x133288=_0x5356f7[_0x59a683];return _0x133288;}export const pushCommand={'service':a38_0x11a0c8(0xc8),'command':a38_0x11a0c8(0xd3),'description':a38_0x11a0c8(0xba),'risk':'write','flags':[DIR_FLAG],async 'execute'(_0x4fdb86){const _0x4cea8a=a38_0x11a0c8,{createPersonalRuntimeSkill:_0x2fd7e6,downloadRuntimeSkillPackage:_0x547b05,listRuntimeSkills:_0x569ddf,updatePersonalRuntimeSkill:_0x5b3b30}=await import(_0x4cea8a(0xbe)),{verifyRuntimeSkillPackage:_0x38d4b2,verifyRuntimeSkillBundle:_0x53ce8e,readPushDirectory:_0x5d777f,recordPushedRuntimeSkill:_0x404043}=await import(_0x4cea8a(0xd2));if(!_0x4fdb86[_0x4cea8a(0xd4)])throw CliErrors[_0x4cea8a(0xc2)]();const _0x127501=_0x4fdb86[_0x4cea8a(0xd5)](_0x4cea8a(0xbb)),_0x5485d5=validateSkillDirectory(_0x127501);throwIfSkillValidationFailed(_0x5485d5);const _0x45345f=_0x5485d5[_0x4cea8a(0xbb)],_0x5d5cfe=_0x5d777f(_0x45345f,_0x4fdb86[_0x4cea8a(0xb9)]),_0x128f63=(await _0x569ddf({'appCode':_0x4fdb86[_0x4cea8a(0xb9)],'scope':_0x4cea8a(0xc1)}))['personal'][_0x4cea8a(0xbc)](_0xb2b41=>_0xb2b41[_0x4cea8a(0xc0)]===_0x5d5cfe['skillCode']),_0x374049=_0x128f63?await _0x5b3b30(_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86['appCode'],_0x5d5cfe[_0x4cea8a(0xca)]):await _0x2fd7e6(_0x4fdb86[_0x4cea8a(0xb9)],_0x5d5cfe[_0x4cea8a(0xca)]);let _0x5dda6d=_0x374049;if(isMultiFileManifest(_0x5d5cfe[_0x4cea8a(0xca)]['files'])){const _0x26a3ee=await _0x547b05('personal',_0x374049[_0x4cea8a(0xc0)]||_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86['appCode']);_0x53ce8e(_0x5d5cfe[_0x4cea8a(0xca)][_0x4cea8a(0xcc)],_0x26a3ee),_0x5dda6d={..._0x374049,'files':_0x5d5cfe[_0x4cea8a(0xca)][_0x4cea8a(0xcc)]};}else{if(isPackageBackedManifest(_0x374049[_0x4cea8a(0xcc)])){const _0x7eb15f=await _0x547b05(_0x4cea8a(0xc1),_0x374049[_0x4cea8a(0xc0)]||_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86[_0x4cea8a(0xb9)]);_0x38d4b2(_0x374049[_0x4cea8a(0xcc)],_0x7eb15f);}}return _0x404043(_0x45345f,_0x5dda6d,_0x4fdb86[_0x4cea8a(0xb9)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x374049),'warnings':_0x5485d5[_0x4cea8a(0xc3)]},'message':_0x128f63?_0x4cea8a(0xd0)+_0x5d5cfe[_0x4cea8a(0xc0)]:_0x4cea8a(0xc7)+_0x5d5cfe['skillCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39_0xb2df9=a39_0x525d;(function(_0x5887d7,_0x42300c){const _0x191ec1=a39_0x525d,_0x1f7273=_0x5887d7();while(!![]){try{const _0x18a72e=parseInt(_0x191ec1(0x105))/0x1*(-parseInt(_0x191ec1(0x109))/0x2)+parseInt(_0x191ec1(0x10b))/0x3+parseInt(_0x191ec1(0x104))/0x4+parseInt(_0x191ec1(0x10f))/0x5*(parseInt(_0x191ec1(0x112))/0x6)+parseInt(_0x191ec1(0x10d))/0x7+-parseInt(_0x191ec1(0x10e))/0x8+-parseInt(_0x191ec1(0x113))/0x9*(-parseInt(_0x191ec1(0x111))/0xa);if(_0x18a72e===_0x42300c)break;else _0x1f7273['push'](_0x1f7273['shift']());}catch(_0x5984ae){_0x1f7273['push'](_0x1f7273['shift']());}}}(a39_0x474a,0x91035));function a39_0x525d(_0x1ebe83,_0x129af4){_0x1ebe83=_0x1ebe83-0x104;const _0x474ab3=a39_0x474a();let _0x525d5f=_0x474ab3[_0x1ebe83];return _0x525d5f;}function a39_0x474a(){const _0x15ab4e=['58tQafaT','skill','1345194fVmrMR','str','3986430UYFbdq','2863320PFpWcq','358255yjJKPF','warnings','127780hJBLPe','6rgpcFp','18uhgBZx','dir','1054344kmctED','14717WBcBoT','type','errors','read'];a39_0x474a=function(){return _0x15ab4e;};return a39_0x474a();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0xb2df9(0x10a),'command':'validate','description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a39_0xb2df9(0x108),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x3ac907){const _0x246824=a39_0xb2df9,_0x47bd90=_0x3ac907['bool']('strict'),_0x5e110f=validateSkillDirectory(_0x3ac907[_0x246824(0x10c)]('dir'),{'strict':_0x47bd90});return throwIfSkillValidationFailed(_0x5e110f,_0x47bd90),{'ok':!![],'data':{'dir':_0x5e110f[_0x246824(0x114)],'type':_0x5e110f[_0x246824(0x106)],'errors':_0x5e110f[_0x246824(0x107)],'warnings':_0x5e110f[_0x246824(0x110)]},'message':'Skill\x20validation\x20passed.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a40_0x590bb2=a40_0x330c;(function(_0x5d4a0d,_0x3e0260){const _0x496c9f=a40_0x330c,_0x448656=_0x5d4a0d();while(!![]){try{const _0x36bd47=parseInt(_0x496c9f(0x72))/0x1+parseInt(_0x496c9f(0x7f))/0x2*(parseInt(_0x496c9f(0x83))/0x3)+-parseInt(_0x496c9f(0x86))/0x4*(-parseInt(_0x496c9f(0x74))/0x5)+-parseInt(_0x496c9f(0x89))/0x6*(parseInt(_0x496c9f(0x82))/0x7)+parseInt(_0x496c9f(0x7c))/0x8*(-parseInt(_0x496c9f(0x79))/0x9)+parseInt(_0x496c9f(0x7d))/0xa*(parseInt(_0x496c9f(0x8d))/0xb)+-parseInt(_0x496c9f(0x71))/0xc;if(_0x36bd47===_0x3e0260)break;else _0x448656['push'](_0x448656['shift']());}catch(_0x114d2f){_0x448656['push'](_0x448656['shift']());}}}(a40_0x4629,0xe5c7f));function a40_0x330c(_0x5081ea,_0x11119b){_0x5081ea=_0x5081ea-0x71;const _0x46292a=a40_0x4629();let _0x330c4f=_0x46292a[_0x5081ea];return _0x330c4f;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x590bb2(0x7b),'type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x75)};export const SCOPE_FLAG={'name':'scope','type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x88),'enum':['all',a40_0x590bb2(0x77),a40_0x590bb2(0x8a)]};export const LIST_SCOPE_FLAG={'name':a40_0x590bb2(0x8e),'type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x7a),'enum':[a40_0x590bb2(0x7e),a40_0x590bb2(0x77),a40_0x590bb2(0x8a)]};export const LOCAL_FLAG={'name':a40_0x590bb2(0x81),'type':a40_0x590bb2(0x84),'description':a40_0x590bb2(0x8b)};export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const CREATE_NAME_FLAG={'name':'name','type':'string','required':!![],'description':a40_0x590bb2(0x8c),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x590bb2(0x85)}};function a40_0x4629(){const _0x43595f=['string','local','287xdMJMV','102387anhbVq','boolean','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','6720580ANYAkd','strict','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','127554rBNyRR','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','43087gQSzXP','scope','18069864jXoXhz','901021ZXfJGU','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','5KQPYrY','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','type','personal','write','45FHwJAQ','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','code','611560YyCqnj','2510XnYqGt','all','8OfVlNM'];a40_0x4629=function(){return _0x43595f;};return a40_0x4629();}export const TYPE_FLAG={'name':a40_0x590bb2(0x76),'type':a40_0x590bb2(0x80),'description':'Skill\x20template\x20type','default':a40_0x590bb2(0x78),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x73),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':'Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists'};export const STRICT_FLAG={'name':a40_0x590bb2(0x87),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7ec8ea,_0x3de70b){const _0x5e5d10=a41_0x16cb,_0x10a5ff=_0x7ec8ea();while(!![]){try{const _0x5aa21c=-parseInt(_0x5e5d10(0x1c3))/0x1*(parseInt(_0x5e5d10(0x1bc))/0x2)+-parseInt(_0x5e5d10(0x1ba))/0x3+-parseInt(_0x5e5d10(0x1c0))/0x4+parseInt(_0x5e5d10(0x1c1))/0x5+parseInt(_0x5e5d10(0x1be))/0x6*(-parseInt(_0x5e5d10(0x1c2))/0x7)+-parseInt(_0x5e5d10(0x1c4))/0x8*(parseInt(_0x5e5d10(0x1bd))/0x9)+parseInt(_0x5e5d10(0x1bb))/0xa*(parseInt(_0x5e5d10(0x1bf))/0xb);if(_0x5aa21c===_0x3de70b)break;else _0x10a5ff['push'](_0x10a5ff['shift']());}catch(_0x56ffe0){_0x10a5ff['push'](_0x10a5ff['shift']());}}}(a41_0x1c64,0x9e0c6));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a41_0x1c64(){const _0x53cf5f=['1634104zFSBTn','60885zvdTRs','9186TMZawy','33JLiWtS','1817356wDXdjv','920470YHLZOs','5138XLuZjS','1STDAQx','1344rzUMns','3260532DiUXnl','16939270mRqhfs'];a41_0x1c64=function(){return _0x53cf5f;};return a41_0x1c64();}function a41_0x16cb(_0x19e561,_0x317bba){_0x19e561=_0x19e561-0x1ba;const _0x1c6431=a41_0x1c64();let _0x16cbbf=_0x1c6431[_0x19e561];return _0x16cbbf;}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(_0xb36d1,_0x4af411){var _0x418d9b=a42_0x2c0b,_0xa357b0=_0xb36d1();while(!![]){try{var _0x585472=parseInt(_0x418d9b(0x1b3))/0x1*(parseInt(_0x418d9b(0x1bc))/0x2)+parseInt(_0x418d9b(0x1b4))/0x3*(-parseInt(_0x418d9b(0x1be))/0x4)+-parseInt(_0x418d9b(0x1b1))/0x5+parseInt(_0x418d9b(0x1b7))/0x6+-parseInt(_0x418d9b(0x1b0))/0x7*(parseInt(_0x418d9b(0x1c0))/0x8)+-parseInt(_0x418d9b(0x1b8))/0x9+parseInt(_0x418d9b(0x1bb))/0xa;if(_0x585472===_0x4af411)break;else _0xa357b0['push'](_0xa357b0['shift']());}catch(_0x414348){_0xa357b0['push'](_0xa357b0['shift']());}}}(a42_0x573c,0x4a7b8));function a42_0x2c0b(_0x4930c6,_0x54a766){_0x4930c6=_0x4930c6-0x1af;var _0x573cf4=a42_0x573c();var _0x2c0b40=_0x573cf4[_0x4930c6];return _0x2c0b40;}export function isPackageBackedManifest(_0x40114b){var _0x13a0e1=a42_0x2c0b;return!!_0x40114b&&typeof _0x40114b===_0x13a0e1(0x1b6)&&!Array['isArray'](_0x40114b)&&typeof _0x40114b[_0x13a0e1(0x1af)]==='string'&&_0x40114b[_0x13a0e1(0x1af)][_0x13a0e1(0x1b9)]>0x0&&Array['isArray'](_0x40114b['files']);}function a42_0x573c(){var _0x1655a0=['SKILL.md','178EuIILR','327000kObHzf','some','object','2374320eQxVVm','2658816Hdssgn','length','files','5183030JSfWde','6602hTDyMb','path','8UbZPKI','isArray','35560oIUzIE','ossPath','889zkNYEh','592910BbiObQ'];a42_0x573c=function(){return _0x1655a0;};return a42_0x573c();}export function isMultiFileManifest(_0x3c145a){var _0x3f60d6=a42_0x2c0b;return!!_0x3c145a&&typeof _0x3c145a===_0x3f60d6(0x1b6)&&!Array[_0x3f60d6(0x1bf)](_0x3c145a)&&Array[_0x3f60d6(0x1bf)](_0x3c145a[_0x3f60d6(0x1ba)])&&_0x3c145a[_0x3f60d6(0x1ba)][_0x3f60d6(0x1b5)](_0x25a7b8=>_0x25a7b8[_0x3f60d6(0x1bd)]!==_0x3f60d6(0x1b2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a43_0x4e4e(){const _0x1f9259=['788HuTcPQ','3582snROhS','5346675xDchEJ','personal','2134262OsHNhe','validation','413794OgKZuz','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','800274yXJHHG','company','30441350Eevptn','Unsupported\x20Skill\x20list\x20scope:\x20','5560XEmqwp','7pGgcZQ','3558BRWkfS','all'];a43_0x4e4e=function(){return _0x1f9259;};return a43_0x4e4e();}(function(_0x458c95,_0x58657b){const _0x3b8d05=a43_0xf27c,_0x1a1dc9=_0x458c95();while(!![]){try{const _0x4ca0e2=parseInt(_0x3b8d05(0x1c6))/0x1+-parseInt(_0x3b8d05(0x1c4))/0x2+parseInt(_0x3b8d05(0x1cf))/0x3*(-parseInt(_0x3b8d05(0x1d1))/0x4)+-parseInt(_0x3b8d05(0x1c2))/0x5+-parseInt(_0x3b8d05(0x1c9))/0x6*(-parseInt(_0x3b8d05(0x1ce))/0x7)+-parseInt(_0x3b8d05(0x1cd))/0x8*(parseInt(_0x3b8d05(0x1d2))/0x9)+parseInt(_0x3b8d05(0x1cb))/0xa;if(_0x4ca0e2===_0x58657b)break;else _0x1a1dc9['push'](_0x1a1dc9['shift']());}catch(_0x2e890c){_0x1a1dc9['push'](_0x1a1dc9['shift']());}}}(a43_0x4e4e,0xe69ce));function a43_0xf27c(_0x2200c1,_0xb97f84){_0x2200c1=_0x2200c1-0x1c2;const _0x4e4ef6=a43_0x4e4e();let _0xf27c18=_0x4e4ef6[_0x2200c1];return _0xf27c18;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1b3bde){const _0x5e169d=a43_0xf27c,_0x467ab0=_0x1b3bde[_0x5e169d(0x1c7)]();if(!_0x467ab0||_0x467ab0==='all')return[_0x5e169d(0x1c3),'company'];if(_0x467ab0===_0x5e169d(0x1c3)||_0x467ab0===_0x5e169d(0x1ca))return[_0x467ab0];throw CliErrors[_0x5e169d(0x1c5)](_0x5e169d(0x1c8)+_0x1b3bde);}export function normalizeListScope(_0x2e3733){const _0x541251=a43_0xf27c,_0x2546d1=_0x2e3733[_0x541251(0x1c7)]();if(!_0x2546d1)return _0x541251(0x1d0);if(_0x2546d1===_0x541251(0x1c3)||_0x2546d1==='company'||_0x2546d1===_0x541251(0x1d0))return _0x2546d1;throw CliErrors[_0x541251(0x1c5)](_0x541251(0x1cc)+_0x2e3733);}export function shouldListScope(_0xd6dff,_0x31cedd){if(_0xd6dff==='all')return!![];return _0xd6dff===_0x31cedd;}export function listScopeToRuntimeScopes(_0x1a99d1){const _0x4c6588=a43_0xf27c;if(_0x1a99d1==='all')return[_0x4c6588(0x1c3),_0x4c6588(0x1ca)];return[_0x1a99d1==='company'?_0x4c6588(0x1ca):_0x1a99d1];}export function listScopeToRemoteScope(_0xa611f3){return _0xa611f3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f3ad4,_0x9f467b){var _0x213e19=a44_0x2f99,_0xf5a545=_0x3f3ad4();while(!![]){try{var _0x3735b1=parseInt(_0x213e19(0x162))/0x1+parseInt(_0x213e19(0x15f))/0x2*(-parseInt(_0x213e19(0x164))/0x3)+-parseInt(_0x213e19(0x165))/0x4+parseInt(_0x213e19(0x166))/0x5+parseInt(_0x213e19(0x167))/0x6+parseInt(_0x213e19(0x15c))/0x7*(-parseInt(_0x213e19(0x160))/0x8)+parseInt(_0x213e19(0x163))/0x9;if(_0x3735b1===_0x9f467b)break;else _0xf5a545['push'](_0xf5a545['shift']());}catch(_0x3d139a){_0xf5a545['push'](_0xf5a545['shift']());}}}(a44_0x1e9e,0xc7b7b));export function summarizeRuntimeSkill(_0x2d4a37){var _0x5973e9=a44_0x2f99;return{'id':_0x2d4a37['id'],'skillCode':_0x2d4a37[_0x5973e9(0x15b)],'skillName':_0x2d4a37['skillName'],'scope':_0x2d4a37[_0x5973e9(0x168)],'version':_0x2d4a37[_0x5973e9(0x159)],'readonly':_0x2d4a37[_0x5973e9(0x157)]};}export function summarizeLocalRuntimeSkill(_0x34c73b){var _0x169c0b=a44_0x2f99;return{'id':_0x34c73b['id'],'skillCode':_0x34c73b[_0x169c0b(0x15b)],'skillName':_0x34c73b['skillName'],'scope':_0x34c73b[_0x169c0b(0x168)],'appCode':_0x34c73b['appCode'],'version':_0x34c73b[_0x169c0b(0x159)],'status':_0x34c73b[_0x169c0b(0x15d)],'readonly':_0x34c73b[_0x169c0b(0x157)],'tags':_0x34c73b[_0x169c0b(0x15a)],'dir':_0x34c73b[_0x169c0b(0x15e)],'cacheDir':_0x34c73b[_0x169c0b(0x169)],'skillMdPath':_0x34c73b['skillMdPath'],'metadataPath':_0x34c73b['metadataPath'],'linkedPaths':_0x34c73b[_0x169c0b(0x161)],'contentHash':_0x34c73b['contentHash'],'treeHash':_0x34c73b[_0x169c0b(0x156)],'pulledAt':_0x34c73b[_0x169c0b(0x158)]};}function a44_0x2f99(_0x73e641,_0x4282a3){_0x73e641=_0x73e641-0x156;var _0x1e9ecf=a44_0x1e9e();var _0x2f9926=_0x1e9ecf[_0x73e641];return _0x2f9926;}function a44_0x1e9e(){var _0x37eb38=['6045042afWDPZ','scope','cacheDir','treeHash','readonly','pulledAt','version','tags','skillCode','2499378lWsnmA','status','dir','185764YYeZAf','16YuhdAn','linkedPaths','1066061gorskr','9697149moAFst','15kZaqqK','5869716NLrjXT','1564805zLYwoS'];a44_0x1e9e=function(){return _0x37eb38;};return a44_0x1e9e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x3a644=a45_0x1451;(function(_0x49b019,_0x212053){const _0x142efa=a45_0x1451,_0x3bebef=_0x49b019();while(!![]){try{const _0x26b95e=-parseInt(_0x142efa(0x1e9))/0x1*(parseInt(_0x142efa(0x1c8))/0x2)+-parseInt(_0x142efa(0x1cb))/0x3*(-parseInt(_0x142efa(0x1ca))/0x4)+-parseInt(_0x142efa(0x1e0))/0x5*(-parseInt(_0x142efa(0x1d8))/0x6)+-parseInt(_0x142efa(0x1c6))/0x7+-parseInt(_0x142efa(0x1d7))/0x8*(-parseInt(_0x142efa(0x1d0))/0x9)+-parseInt(_0x142efa(0x1e3))/0xa*(parseInt(_0x142efa(0x1cc))/0xb)+parseInt(_0x142efa(0x1da))/0xc;if(_0x26b95e===_0x212053)break;else _0x3bebef['push'](_0x3bebef['shift']());}catch(_0x3a38d6){_0x3bebef['push'](_0x3bebef['shift']());}}}(a45_0x1b18,0xeee3b));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read',a45_0x3a644(0x1de)];export const DEFAULT_SKILL_TARGET='.agents/skills';function a45_0x1451(_0x35bf51,_0x11e999){_0x35bf51=_0x35bf51-0x1c5;const _0x1b18c0=a45_0x1b18();let _0x1451c1=_0x1b18c0[_0x35bf51];return _0x1451c1;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a45_0x3a644(0x1db);export const OUTPUT_CONTRACT_FILE=a45_0x3a644(0x1d6);export function validateSkillName(_0x1f7997){const _0x12ce89=a45_0x3a644,_0x39b5d5=_0x1f7997[_0x12ce89(0x1e7)]();if(!SKILL_NAME_PATTERN[_0x12ce89(0x1ce)](_0x39b5d5))throw CliErrors[_0x12ce89(0x1e4)](_0x12ce89(0x1eb)+_0x1f7997+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x39b5d5;}export function normalizeSkillTemplateType(_0x23569d){const _0x25ad4e=a45_0x3a644,_0x22fe89=(_0x23569d||_0x25ad4e(0x1c7))['trim']()||_0x25ad4e(0x1c7);if(SKILL_TYPES['includes'](_0x22fe89))return _0x22fe89;throw CliErrors[_0x25ad4e(0x1e4)](_0x25ad4e(0x1ec)+_0x23569d,_0x25ad4e(0x1dc)+SKILL_TYPES[_0x25ad4e(0x1c9)](',\x20')+'.');}export function renderSkillTemplate(_0xdf6297){const _0x106600=a45_0x3a644,_0x11045a=validateSkillName(_0xdf6297[_0x106600(0x1e8)]),_0x16d812=normalizeSkillTemplateType(_0xdf6297['type']),_0x122212=_0xdf6297[_0x106600(0x1cf)]??new Date()['toISOString']();return{'skillName':_0x11045a,'type':_0x16d812,'files':[{'path':_0x106600(0x1d9),'content':renderSkillMd(_0x11045a,_0x16d812,_0x122212)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x11045a,_0x16d812)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x11045a,_0x16d812)}]};}function a45_0x1b18(){const _0x272f03=['#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','trainer','\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','4797955STRSdn','read','\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','7837910HXEIyi','validation','---\x0aname:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','trim','skillName','101767RrIHpU','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','Invalid\x20Skill\x20name:\x20','Unsupported\x20Skill\x20type:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\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=','4894820aiPdpZ','write','34oEJrwE','join','8FBkOnf','1165716irYHQm','11xjVgEc','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','test','timestamp','376227cJfCuX','\x0a\x20\x20created:\x20\x22','#\x20Output\x20Contract\x0a\x0a','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\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','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','references/output-contract.md','200hsHkwX','6dynhvP','SKILL.md','16917252sejOrm','references/runtime-contract.md','Use\x20one\x20of:\x20'];a45_0x1b18=function(){return _0x272f03;};return a45_0x1b18();}function renderSkillMd(_0x2f12c0,_0x11eedb,_0x4b3968){const _0x3f60f9=a45_0x3a644,_0x424203=typeWorkflow(_0x11eedb);return _0x3f60f9(0x1e5)+_0x2f12c0+_0x3f60f9(0x1ea)+_0x11eedb+_0x3f60f9(0x1d1)+_0x4b3968+_0x3f60f9(0x1cd)+_0x2f12c0+_0x3f60f9(0x1df)+_0x424203+'\x0a\x0a'+businessStateSection(_0x11eedb)+'\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';}function renderRuntimeContract(_0xcbb738,_0x5b7260){const _0xf24ed=a45_0x3a644,_0x595333=_0x5b7260===_0xf24ed(0x1c7)?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0xf24ed(0x1dd)+_0xcbb738+_0xf24ed(0x1c5)+_0x5b7260+_0xf24ed(0x1e2)+_0x595333+_0xf24ed(0x1d4);}function renderOutputContract(_0xdf67ab,_0x45152f){const _0x23e695=a45_0x3a644,_0x5ef309=_0x45152f===_0x23e695(0x1c7)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x45152f+_0x23e695(0x1e6);return _0x23e695(0x1d2)+_0xdf67ab+'\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'+_0x5ef309+_0x23e695(0x1d5);}function typeWorkflow(_0x31c7f2){const _0x8ef048=a45_0x3a644;if(_0x31c7f2===_0x8ef048(0x1e1))return _0x8ef048(0x1ed);if(_0x31c7f2===_0x8ef048(0x1de))return _0x8ef048(0x1d3);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0xf1d31){const _0xad3dda=a45_0x3a644;if(_0xf1d31!==_0xad3dda(0x1c7))return'';return _0xad3dda(0x1ee);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a46_0x56368f=a46_0x20ff;(function(_0x1054c3,_0x5c0547){const _0x5b2c07=a46_0x20ff,_0x5b6f64=_0x1054c3();while(!![]){try{const _0x2ac1bb=-parseInt(_0x5b2c07(0x1af))/0x1*(-parseInt(_0x5b2c07(0x1aa))/0x2)+-parseInt(_0x5b2c07(0x1bb))/0x3*(-parseInt(_0x5b2c07(0x1cd))/0x4)+parseInt(_0x5b2c07(0x1b4))/0x5+-parseInt(_0x5b2c07(0x1d0))/0x6+parseInt(_0x5b2c07(0x1c3))/0x7+parseInt(_0x5b2c07(0x1ae))/0x8*(parseInt(_0x5b2c07(0x1d2))/0x9)+-parseInt(_0x5b2c07(0x1ee))/0xa;if(_0x2ac1bb===_0x5c0547)break;else _0x5b6f64['push'](_0x5b6f64['shift']());}catch(_0x12e03a){_0x5b6f64['push'](_0x5b6f64['shift']());}}}(a46_0xb267,0x19a8c));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a46_0x56368f(0x1c4),SUPPORTED_SKILL_TYPES=new Set([a46_0x56368f(0x1d6),a46_0x56368f(0x1f3),a46_0x56368f(0x1c6)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x376f66,_0x495718={}){const _0x544f74=a46_0x56368f,_0x5a3cdc=resolveSkillDirectoryRoot(_0x376f66),_0x13f490=[],_0x4407ed=loadRequiredSkillFile(_0x5a3cdc,_0x13f490),_0x35399a=_0x4407ed?parseFrontmatter(_0x4407ed[_0x544f74(0x1e8)]):{'hasFrontmatter':![]};_0x4407ed&&validateFrontmatter(_0x4407ed[_0x544f74(0x1f1)],_0x35399a,_0x13f490);validateRuntimeCliReferences(_0x5a3cdc,_0x13f490);const _0x3ac29d=_0x13f490[_0x544f74(0x1a8)](_0x395c75=>_0x395c75[_0x544f74(0x1c0)]===_0x544f74(0x1e1)),_0xba5e37=_0x13f490[_0x544f74(0x1a8)](_0x46c400=>_0x46c400[_0x544f74(0x1c0)]===_0x544f74(0x1dd));return{'ok':_0x3ac29d['length']===0x0,'dir':_0x5a3cdc,'type':_0x35399a[_0x544f74(0x1ad)],'errors':_0x3ac29d,'warnings':_0xba5e37};}function resolveSkillDirectoryRoot(_0x5bb1fe){const _0x475edb=a46_0x56368f,_0x4e46dd=resolve(_0x5bb1fe);if(!existsSync(_0x4e46dd))throw CliErrors[_0x475edb(0x1c2)]('Skill\x20directory\x20not\x20found:\x20'+_0x5bb1fe);const _0x3aaf3d=lstatSync(_0x4e46dd);if(_0x3aaf3d[_0x475edb(0x1b3)]())return _0x4e46dd;if(_0x3aaf3d[_0x475edb(0x1ca)]()){const _0xa9c9a0=realpathSync(_0x4e46dd);if(lstatSync(_0xa9c9a0)['isDirectory']())return _0xa9c9a0;}throw CliErrors['validation'](_0x475edb(0x1f0)+_0x5bb1fe);}export function throwIfSkillValidationFailed(_0x1f6f67,_0x15d3a9=![]){const _0x5e5072=a46_0x56368f;if(_0x1f6f67['ok'])return;const _0x2a7fa8=_0x1f6f67[_0x5e5072(0x1ba)][_0x5e5072(0x1e4)](_0x2a7815=>{const _0x39790e=_0x5e5072,_0x5c483a=_0x2a7815[_0x39790e(0x1e2)]?'#'+_0x2a7815[_0x39790e(0x1e2)]:'';return _0x2a7815[_0x39790e(0x1c0)][_0x39790e(0x1fd)]()+'\x20'+_0x2a7815[_0x39790e(0x1ef)]+'\x20'+_0x2a7815[_0x39790e(0x1f4)]+_0x5c483a+':\x20'+_0x2a7815['message']+_0x39790e(0x1f5)+_0x2a7815[_0x39790e(0x1e0)];});throw CliErrors[_0x5e5072(0x1c2)]('Skill\x20validation\x20failed:\x0a'+_0x2a7fa8[_0x5e5072(0x1bd)]('\x0a'),_0x5e5072(0x1c9));}function loadRequiredSkillFile(_0x51fe51,_0x553bc6){const _0x267f68=a46_0x56368f,_0x3f6728=resolve(_0x51fe51,SKILL_FILE);if(!existsSync(_0x3f6728))return _0x553bc6[_0x267f68(0x1b0)](issue(_0x267f68(0x1e1),'structure-complete',SKILL_FILE,'Missing\x20SKILL.md.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x338336=lstatSync(_0x3f6728);if(_0x338336['isSymbolicLink']())return _0x553bc6[_0x267f68(0x1b0)](issue(_0x267f68(0x1e1),_0x267f68(0x1be),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x267f68(0x1e7))),undefined;if(!_0x338336[_0x267f68(0x1f7)]())return _0x553bc6[_0x267f68(0x1b0)](issue('error',_0x267f68(0x1be),SKILL_FILE,_0x267f68(0x1cf),_0x267f68(0x1d9))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x3f6728,_0x267f68(0x1bf))};}function validateFrontmatter(_0xdc78d1,_0x2b0870,_0x1d3a8b){const _0x3fbb02=a46_0x56368f;if(!_0x2b0870[_0x3fbb02(0x1e5)]){_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1f6),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x2b0870[_0x3fbb02(0x1fb)]?.['trim']()&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1ac),_0x3fbb02(0x1d3))),!_0x2b0870[_0x3fbb02(0x1fa)]?.[_0x3fbb02(0x1cc)]()&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1db),_0xdc78d1,_0x3fbb02(0x1dc),_0x3fbb02(0x1bc))),_0x2b0870['internal']===!![]&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1fc),_0xdc78d1,_0x3fbb02(0x1e6),_0x3fbb02(0x1c7))),_0x2b0870['type']?.[_0x3fbb02(0x1cc)]()&&!SUPPORTED_SKILL_TYPES[_0x3fbb02(0x1b8)](_0x2b0870[_0x3fbb02(0x1ad)])&&_0x1d3a8b[_0x3fbb02(0x1b0)](issue(_0x3fbb02(0x1e1),_0x3fbb02(0x1b7),_0xdc78d1,_0x3fbb02(0x1ea),_0x3fbb02(0x1b2)));}function validateRuntimeCliReferences(_0x296247,_0x56f156){const _0x365105=a46_0x56368f;for(const _0x41112b of findRabetbaseCliInvocations(_0x296247)){_0x56f156['push'](issue(_0x365105(0x1dd),'rabetbase-cli-reference',_0x41112b['file'],_0x365105(0x1c5),_0x365105(0x1b9),'L'+_0x41112b[_0x365105(0x1eb)]));}}function findRabetbaseCliInvocations(_0x498e37){const _0x3979bc=a46_0x56368f;return scanSkillDirectory(_0x498e37)['filter'](_0x4f5242=>TEXT_SKILL_FILE_PATTERN['test'](_0x4f5242[_0x3979bc(0x1f1)]))[_0x3979bc(0x1e3)](_0x235906=>{const _0xe211ca=_0x3979bc,_0x2404de=fileText(_0x235906);return _0x2404de['split'](/\r?\n/)['map']((_0x434c12,_0xc895d1)=>({'file':_0x235906[_0xe211ca(0x1f1)],'line':_0xc895d1+0x1,'text':_0x434c12}))[_0xe211ca(0x1a8)](({text:_0x150ea5})=>isRabetbaseCliInvocation(_0x150ea5))[_0xe211ca(0x1e4)](({file:_0x4046fb,line:_0x4c1bbc})=>({'file':_0x4046fb,'line':_0x4c1bbc}));});}const RABETBASE_SUBCOMMANDS=['dataset',a46_0x56368f(0x1a9),'bff',a46_0x56368f(0x1b1),a46_0x56368f(0x1ec),a46_0x56368f(0x1ce),a46_0x56368f(0x1b6),'service','artifact','kb','config',a46_0x56368f(0x1d8),a46_0x56368f(0x1d5),a46_0x56368f(0x1de),a46_0x56368f(0x1df),a46_0x56368f(0x1d4)],RABETBASE_INVOCATION=new RegExp(String[a46_0x56368f(0x1c1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x56368f(0x1bd)]('|')})\b`+String[a46_0x56368f(0x1c1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function a46_0xb267(){const _0x6764eb=['SKILL.md','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','trainer','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','false','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','isSymbolicLink','match','trim','13336uIxejd','app','SKILL.md\x20is\x20not\x20a\x20file.','799110HkoxEb','internal','18wRclWe','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','registry','data','write','test','workspace','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','startsWith','description-required','Frontmatter\x20description\x20is\x20empty.','warning','auth','logs','suggestion','error','section','flatMap','map','hasFrontmatter','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','content','metadata','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','line','project','true','1800890stgbUI','ruleId','Skill\x20directory\x20not\x20found:\x20','path','split','read','file','\x20Fix:\x20','SKILL.md\x20must\x20start\x20with\x20frontmatter.','isFile','search','endsWith','description','name','internal-skill','toUpperCase','filter','sql','8652LuXFiE','slice','Frontmatter\x20name\x20is\x20missing.','type','28696DdLsaD','43MVGcvK','push','page','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','isDirectory','756840DmgikS','toLowerCase','schema','frontmatter-required','has','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','errors','39CWBVXS','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','join','structure-complete','utf8','level','raw','validation','213304RUiaxS'];a46_0xb267=function(){return _0x6764eb;};return a46_0xb267();}function isRabetbaseCliInvocation(_0xe3364d){const _0x57246c=a46_0x56368f,_0x396809=_0xe3364d[_0x57246c(0x1f8)](/\brabetbase\b/i);if(_0x396809<0x0)return![];const _0x3d3bb0=_0xe3364d[_0x57246c(0x1ab)](_0x396809)[_0x57246c(0x1f2)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0x3d3bb0);}function parseFrontmatter(_0xad2b3d){const _0x24dc4e=a46_0x56368f,_0x56ad66=_0xad2b3d[_0x24dc4e(0x1cb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56ad66)return{'hasFrontmatter':![]};const _0x5d35fc=_0x56ad66[0x1]??'',_0x4fc857={'hasFrontmatter':!![]};let _0x211949=![];for(const _0x763a8f of _0x5d35fc[_0x24dc4e(0x1f2)](/\r?\n/)){if(/^\s*$/[_0x24dc4e(0x1d7)](_0x763a8f))continue;const _0x42a93c=_0x763a8f[_0x24dc4e(0x1cb)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x42a93c){const _0x5f2999=_0x42a93c[0x1],_0x4aa3d4=cleanScalar(_0x42a93c[0x2]??'');_0x211949=_0x5f2999===_0x24dc4e(0x1e9);if(_0x5f2999==='name')_0x4fc857[_0x24dc4e(0x1fb)]=_0x4aa3d4;if(_0x5f2999===_0x24dc4e(0x1fa))_0x4fc857[_0x24dc4e(0x1fa)]=_0x4aa3d4;continue;}const _0x4b7fdf=_0x763a8f[_0x24dc4e(0x1cb)](/^\s+type:\s*(.*)$/);if(_0x211949&&_0x4b7fdf){_0x4fc857[_0x24dc4e(0x1ad)]=cleanScalar(_0x4b7fdf[0x1]??'');continue;}const _0xd45a35=_0x763a8f[_0x24dc4e(0x1cb)](/^\s+internal:\s*(.*)$/);_0x211949&&_0xd45a35&&(_0x4fc857[_0x24dc4e(0x1d1)]=cleanBoolean(_0xd45a35[0x1]??''));}return _0x4fc857;}function a46_0x20ff(_0x46c2ad,_0x18ca26){_0x46c2ad=_0x46c2ad-0x1a8;const _0xb2675b=a46_0xb267();let _0x20fff9=_0xb2675b[_0x46c2ad];return _0x20fff9;}function cleanScalar(_0x2d1f2d){const _0x41b230=a46_0x56368f,_0x1f36f9=_0x2d1f2d[_0x41b230(0x1cc)]();if(_0x1f36f9['startsWith']('\x22')&&_0x1f36f9[_0x41b230(0x1f9)]('\x22')||_0x1f36f9[_0x41b230(0x1da)]('\x27')&&_0x1f36f9[_0x41b230(0x1f9)]('\x27'))return _0x1f36f9[_0x41b230(0x1ab)](0x1,-0x1);return _0x1f36f9;}function cleanBoolean(_0x4cd8fb){const _0x1c3093=a46_0x56368f,_0xd26990=cleanScalar(_0x4cd8fb)[_0x1c3093(0x1b5)]();if(_0xd26990===_0x1c3093(0x1ed))return!![];if(_0xd26990===_0x1c3093(0x1c8))return![];return undefined;}function issue(_0x537cdd,_0x41ebf4,_0x4ef62c,_0x9ce80b,_0x564c31,_0x308ad4){return{'level':_0x537cdd,'ruleId':_0x41ebf4,'file':_0x4ef62c,'section':_0x308ad4,'message':_0x9ce80b,'suggestion':_0x564c31};}
|
|
1
|
+
const a46_0x521582=a46_0x3b23;(function(_0x4f4172,_0x5a06b3){const _0xbcb0e6=a46_0x3b23,_0x48bd2e=_0x4f4172();while(!![]){try{const _0x578613=-parseInt(_0xbcb0e6(0x20b))/0x1+parseInt(_0xbcb0e6(0x208))/0x2*(parseInt(_0xbcb0e6(0x1f9))/0x3)+parseInt(_0xbcb0e6(0x224))/0x4*(parseInt(_0xbcb0e6(0x1ee))/0x5)+parseInt(_0xbcb0e6(0x1d6))/0x6+parseInt(_0xbcb0e6(0x221))/0x7*(parseInt(_0xbcb0e6(0x1f2))/0x8)+-parseInt(_0xbcb0e6(0x1e7))/0x9*(-parseInt(_0xbcb0e6(0x1f8))/0xa)+-parseInt(_0xbcb0e6(0x227))/0xb*(parseInt(_0xbcb0e6(0x209))/0xc);if(_0x578613===_0x5a06b3)break;else _0x48bd2e['push'](_0x48bd2e['shift']());}catch(_0x378358){_0x48bd2e['push'](_0x48bd2e['shift']());}}}(a46_0x2119,0xcfb90));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a46_0x521582(0x20c),a46_0x521582(0x207),a46_0x521582(0x1fd)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2d56e5,_0x235a4c={}){const _0x1d288a=a46_0x521582,_0x3ad69c=resolveSkillDirectoryRoot(_0x2d56e5),_0x228bfb=[],_0x5d62db=loadRequiredSkillFile(_0x3ad69c,_0x228bfb),_0xf0f427=_0x5d62db?parseFrontmatter(_0x5d62db['content']):{'hasFrontmatter':![]};_0x5d62db&&validateFrontmatter(_0x5d62db[_0x1d288a(0x1f7)],_0xf0f427,_0x228bfb);validateRuntimeCliReferences(_0x3ad69c,_0x228bfb);const _0x349bb1=_0x228bfb[_0x1d288a(0x1f5)](_0x801d29=>_0x801d29['level']===_0x1d288a(0x200)),_0x4626ef=_0x228bfb['filter'](_0x3090d1=>_0x3090d1[_0x1d288a(0x206)]===_0x1d288a(0x1dd));return{'ok':_0x349bb1['length']===0x0,'dir':_0x3ad69c,'type':_0xf0f427[_0x1d288a(0x1ea)],'errors':_0x349bb1,'warnings':_0x4626ef};}function resolveSkillDirectoryRoot(_0x57373c){const _0x3d46b9=a46_0x521582,_0x23dd71=resolve(_0x57373c);if(!existsSync(_0x23dd71))throw CliErrors[_0x3d46b9(0x21f)](_0x3d46b9(0x1f0)+_0x57373c);const _0x4b34f5=lstatSync(_0x23dd71);if(_0x4b34f5[_0x3d46b9(0x1ed)]())return _0x23dd71;if(_0x4b34f5[_0x3d46b9(0x225)]()){const _0x54e43f=realpathSync(_0x23dd71);if(lstatSync(_0x54e43f)[_0x3d46b9(0x1ed)]())return _0x54e43f;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x57373c);}export function throwIfSkillValidationFailed(_0x44f7eb,_0x5b02ee=![]){const _0x4f980f=a46_0x521582;if(_0x44f7eb['ok'])return;const _0x37b3d7=_0x44f7eb[_0x4f980f(0x21d)][_0x4f980f(0x203)](_0x168c34=>{const _0x40336c=_0x4f980f,_0x273ac8=_0x168c34[_0x40336c(0x1da)]?'#'+_0x168c34[_0x40336c(0x1da)]:'';return _0x168c34[_0x40336c(0x206)][_0x40336c(0x1d8)]()+'\x20'+_0x168c34[_0x40336c(0x1fc)]+'\x20'+_0x168c34[_0x40336c(0x20d)]+_0x273ac8+':\x20'+_0x168c34[_0x40336c(0x222)]+_0x40336c(0x1f3)+_0x168c34['suggestion'];});throw CliErrors['validation'](_0x4f980f(0x216)+_0x37b3d7[_0x4f980f(0x201)]('\x0a'),_0x4f980f(0x212));}function loadRequiredSkillFile(_0x27cde7,_0x4af074){const _0x2e32f8=a46_0x521582,_0x8e5788=resolve(_0x27cde7,SKILL_FILE);if(!existsSync(_0x8e5788))return _0x4af074[_0x2e32f8(0x1de)](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,_0x2e32f8(0x1ec),_0x2e32f8(0x1d9))),undefined;const _0x1a2931=lstatSync(_0x8e5788);if(_0x1a2931[_0x2e32f8(0x225)]())return _0x4af074[_0x2e32f8(0x1de)](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x2e32f8(0x226))),undefined;if(!_0x1a2931[_0x2e32f8(0x205)]())return _0x4af074['push'](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x8e5788,'utf8')};}function validateFrontmatter(_0x5b9103,_0x48196c,_0x2ba8ee){const _0x35cf2c=a46_0x521582;if(!_0x48196c[_0x35cf2c(0x223)]){_0x2ba8ee[_0x35cf2c(0x1de)](issue('error','frontmatter-required',_0x5b9103,_0x35cf2c(0x215),_0x35cf2c(0x1df)));return;}!_0x48196c['name']?.[_0x35cf2c(0x218)]()&&_0x2ba8ee['push'](issue(_0x35cf2c(0x200),'frontmatter-required',_0x5b9103,_0x35cf2c(0x1e5),_0x35cf2c(0x1e1))),!_0x48196c['description']?.[_0x35cf2c(0x218)]()&&_0x2ba8ee[_0x35cf2c(0x1de)](issue(_0x35cf2c(0x200),_0x35cf2c(0x1e4),_0x5b9103,'Frontmatter\x20description\x20is\x20empty.',_0x35cf2c(0x204))),_0x48196c[_0x35cf2c(0x1f6)]===!![]&&_0x2ba8ee['push'](issue(_0x35cf2c(0x200),_0x35cf2c(0x20a),_0x5b9103,_0x35cf2c(0x1eb),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x48196c[_0x35cf2c(0x1ea)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x35cf2c(0x1ef)](_0x48196c[_0x35cf2c(0x1ea)])&&_0x2ba8ee[_0x35cf2c(0x1de)](issue('error',_0x35cf2c(0x1f4),_0x5b9103,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.',_0x35cf2c(0x211)));}function validateRuntimeCliReferences(_0x46c6a5,_0x2f9731){const _0x441d2c=a46_0x521582;for(const _0x3902ba of findRabetbaseCliInvocations(_0x46c6a5)){_0x2f9731[_0x441d2c(0x1de)](issue(_0x441d2c(0x1dd),_0x441d2c(0x21e),_0x3902ba['file'],_0x441d2c(0x20f),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x3902ba['line']));}}function findRabetbaseCliInvocations(_0xfae4c8){const _0x3b4fcc=a46_0x521582;return scanSkillDirectory(_0xfae4c8)[_0x3b4fcc(0x1f5)](_0x1d68c4=>TEXT_SKILL_FILE_PATTERN[_0x3b4fcc(0x1e2)](_0x1d68c4[_0x3b4fcc(0x1f7)]))[_0x3b4fcc(0x1e0)](_0x2f4c55=>{const _0x5e5dbc=_0x3b4fcc,_0x1b951b=fileText(_0x2f4c55);return _0x1b951b[_0x5e5dbc(0x1e8)](/\r?\n/)[_0x5e5dbc(0x203)]((_0x3c990d,_0x164b6e)=>({'file':_0x2f4c55[_0x5e5dbc(0x1f7)],'line':_0x164b6e+0x1,'text':_0x3c990d}))['filter'](({text:_0x3b6bf7})=>isRabetbaseCliInvocation(_0x3b6bf7))[_0x5e5dbc(0x203)](({file:_0x4bcfc8,line:_0x191d2b})=>({'file':_0x4bcfc8,'line':_0x191d2b}));});}const RABETBASE_SUBCOMMANDS=['dataset',a46_0x521582(0x1fe),'bff',a46_0x521582(0x21b),a46_0x521582(0x21a),a46_0x521582(0x20e),a46_0x521582(0x1e6),'service',a46_0x521582(0x1d7),'kb','config',a46_0x521582(0x210),'data',a46_0x521582(0x219),a46_0x521582(0x213),a46_0x521582(0x214)],RABETBASE_INVOCATION=new RegExp(String[a46_0x521582(0x1f1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x521582(0x201)]('|')})\b`+String[a46_0x521582(0x1f1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x1706dd){const _0x4fae92=a46_0x521582,_0x36d1d3=_0x1706dd[_0x4fae92(0x21c)](/\brabetbase\b/i);if(_0x36d1d3<0x0)return![];const _0xbc7c41=_0x1706dd[_0x4fae92(0x1fb)](_0x36d1d3)[_0x4fae92(0x1e8)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0xbc7c41);}function parseFrontmatter(_0x51b5b0){const _0x466a80=a46_0x521582,_0x1068d2=_0x51b5b0[_0x466a80(0x217)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1068d2)return{'hasFrontmatter':![]};const _0x388cba=_0x1068d2[0x1]??'',_0x1f8047={'hasFrontmatter':!![]};let _0xb199dd=![];for(const _0x575b5f of _0x388cba[_0x466a80(0x1e8)](/\r?\n/)){if(/^\s*$/['test'](_0x575b5f))continue;const _0x4d5da0=_0x575b5f[_0x466a80(0x217)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x4d5da0){const _0x4425bd=_0x4d5da0[0x1],_0x27ad09=cleanScalar(_0x4d5da0[0x2]??'');_0xb199dd=_0x4425bd===_0x466a80(0x1e9);if(_0x4425bd==='name')_0x1f8047['name']=_0x27ad09;if(_0x4425bd===_0x466a80(0x1e3))_0x1f8047[_0x466a80(0x1e3)]=_0x27ad09;continue;}const _0xa6b774=_0x575b5f[_0x466a80(0x217)](/^\s+type:\s*(.*)$/);if(_0xb199dd&&_0xa6b774){_0x1f8047['type']=cleanScalar(_0xa6b774[0x1]??'');continue;}const _0x43e195=_0x575b5f[_0x466a80(0x217)](/^\s+internal:\s*(.*)$/);_0xb199dd&&_0x43e195&&(_0x1f8047['internal']=cleanBoolean(_0x43e195[0x1]??''));}return _0x1f8047;}function a46_0x3b23(_0x1c8ec6,_0x1a6aa0){_0x1c8ec6=_0x1c8ec6-0x1d6;const _0x2119fa=a46_0x2119();let _0x3b237d=_0x2119fa[_0x1c8ec6];return _0x3b237d;}function cleanScalar(_0x59caf8){const _0x1145ae=a46_0x521582,_0x55cd0c=_0x59caf8[_0x1145ae(0x218)]();if(_0x55cd0c[_0x1145ae(0x1fa)]('\x22')&&_0x55cd0c[_0x1145ae(0x1db)]('\x22')||_0x55cd0c[_0x1145ae(0x1fa)]('\x27')&&_0x55cd0c[_0x1145ae(0x1db)]('\x27'))return _0x55cd0c[_0x1145ae(0x1fb)](0x1,-0x1);return _0x55cd0c;}function a46_0x2119(){const _0x4d300d=['isSymbolicLink','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','99HLaZFd','1114332MQLcRy','artifact','toUpperCase','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','section','endsWith','toLowerCase','warning','push','Add\x20frontmatter\x20with\x20name\x20and\x20description.','flatMap','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','test','description','description-required','Frontmatter\x20name\x20is\x20missing.','schema','7785171zKgtfP','split','metadata','type','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Missing\x20SKILL.md.','isDirectory','1005loXtLV','has','Skill\x20directory\x20not\x20found:\x20','raw','192YNEAxt','\x20Fix:\x20','frontmatter-required','filter','internal','path','10yWvoiF','1555593HDkDVO','startsWith','slice','ruleId','trainer','sql','true','error','join','false','map','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','isFile','level','read','2EzZEsP','1842036EuntmQ','internal-skill','1226550BsLtNw','write','file','app','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','workspace','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','logs','registry','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Skill\x20validation\x20failed:\x0a','match','trim','auth','project','page','search','errors','rabetbase-cli-reference','validation','structure-complete','371693MLOcLC','message','hasFrontmatter','12244rarpDE'];a46_0x2119=function(){return _0x4d300d;};return a46_0x2119();}function cleanBoolean(_0x4c50d5){const _0x70836c=a46_0x521582,_0x59f6fb=cleanScalar(_0x4c50d5)[_0x70836c(0x1dc)]();if(_0x59f6fb===_0x70836c(0x1ff))return!![];if(_0x59f6fb===_0x70836c(0x202))return![];return undefined;}function issue(_0x1fb90c,_0x510d86,_0x2dee2b,_0x37e9e3,_0x1d7720,_0x33feee){return{'level':_0x1fb90c,'ruleId':_0x510d86,'file':_0x2dee2b,'section':_0x33feee,'message':_0x37e9e3,'suggestion':_0x1d7720};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47_0x1bf1a8=a47_0x4f7e;(function(_0x51e6f3,_0x556ab3){const _0x2ff5ec=a47_0x4f7e,_0x26611a=_0x51e6f3();while(!![]){try{const _0x574f79=parseInt(_0x2ff5ec(0x1a7))/0x1+-parseInt(_0x2ff5ec(0x1aa))/0x2*(parseInt(_0x2ff5ec(0x1af))/0x3)+-parseInt(_0x2ff5ec(0x1a5))/0x4*(parseInt(_0x2ff5ec(0x1a6))/0x5)+parseInt(_0x2ff5ec(0x1b5))/0x6*(-parseInt(_0x2ff5ec(0x1b0))/0x7)+-parseInt(_0x2ff5ec(0x1b1))/0x8+parseInt(_0x2ff5ec(0x1ad))/0x9*(parseInt(_0x2ff5ec(0x1a3))/0xa)+parseInt(_0x2ff5ec(0x1a9))/0xb;if(_0x574f79===_0x556ab3)break;else _0x26611a['push'](_0x26611a['shift']());}catch(_0x1c3efe){_0x26611a['push'](_0x26611a['shift']());}}}(a47_0x5059,0x2aec2));function a47_0x5059(){const _0x3d8e46=['sqlName','2039679HSduBc','verbose','15KTbatA','9331BFDDSw','1768216yiLTpc','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlContent','appCode','474LGylTG','dbId','bool','10ykWPtf','read','532fSAxlG','10995DFZlSy','131672IEoFkb','sql','8003908vTIiCf','116528FgmZyb','sqlCode'];a47_0x5059=function(){return _0x3d8e46;};return a47_0x5059();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a47_0x4f7e(_0xb8aa0e,_0x11b931){_0xb8aa0e=_0xb8aa0e-0x1a2;const _0x50595f=a47_0x5059();let _0x4f7eff=_0x50595f[_0xb8aa0e];return _0x4f7eff;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a47_0x1bf1a8(0x1a8),'command':'detail','description':a47_0x1bf1a8(0x1b2),'risk':a47_0x1bf1a8(0x1a4),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x13bcf5){const _0x4a2dd2=a47_0x1bf1a8,_0x51b17c=await getSqlQueryInfo(_0x13bcf5['appCode'],_0x13bcf5['str']('sqlcode')),_0x3bb818=_0x13bcf5[_0x4a2dd2(0x1a2)](_0x4a2dd2(0x1ae));if(_0x3bb818)return{'ok':!![],'data':_0x51b17c};const _0x33720c=_0x51b17c[_0x4a2dd2(0x1b6)]?await getDbName(_0x13bcf5[_0x4a2dd2(0x1b4)],_0x51b17c['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x51b17c[_0x4a2dd2(0x1ab)],'sqlName':_0x51b17c[_0x4a2dd2(0x1ac)],'db':_0x33720c?_0x33720c+'\x20('+_0x51b17c[_0x4a2dd2(0x1b6)]+')':_0x51b17c['dbId']??'','description':_0x51b17c['description']??'','sqlContent':_0x51b17c[_0x4a2dd2(0x1b3)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a48_0x346697=a48_0x4a0d;function a48_0x4a0d(_0x1f5498,_0x426eb5){_0x1f5498=_0x1f5498-0xd4;const _0x308993=a48_0x3089();let _0x4a0d33=_0x308993[_0x1f5498];return _0x4a0d33;}(function(_0x4e2d61,_0x4158be){const _0xb75038=a48_0x4a0d,_0x35c685=_0x4e2d61();while(!![]){try{const _0x1758d0=parseInt(_0xb75038(0xe5))/0x1+parseInt(_0xb75038(0xe6))/0x2+parseInt(_0xb75038(0xeb))/0x3*(parseInt(_0xb75038(0xda))/0x4)+-parseInt(_0xb75038(0xea))/0x5*(-parseInt(_0xb75038(0xe7))/0x6)+parseInt(_0xb75038(0xe8))/0x7+parseInt(_0xb75038(0xdd))/0x8*(-parseInt(_0xb75038(0xdb))/0x9)+-parseInt(_0xb75038(0xd7))/0xa*(parseInt(_0xb75038(0xd4))/0xb);if(_0x1758d0===_0x4158be)break;else _0x35c685['push'](_0x35c685['shift']());}catch(_0x14402f){_0x35c685['push'](_0x35c685['shift']());}}}(a48_0x3089,0xe27e9));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a48_0x3089(){const _0x18f35f=['execSuccess','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','sql','995512BgzAOc','1591384mwUgYy','5874LGLyUP','6841107DrVCXE','SQL\x20execution\x20failed','1735bDdpTk','3tROAKG','22yeJGPp','execResult','exec','14355670YuFPMv','params','length','3359288VMsKYK','45fWvJyY','\x20row(s)\x20in\x20','238696tUNqgN','execError','now','str'];a48_0x3089=function(){return _0x18f35f;};return a48_0x3089();}export const sqlExec={'service':a48_0x346697(0xe4),'command':a48_0x346697(0xd6),'description':a48_0x346697(0xe2),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x472506){const _0xa4715=a48_0x346697,_0x47876c=parseJsonParams(_0x472506[_0xa4715(0xe0)](_0xa4715(0xd8))),_0x2f6bac=Date[_0xa4715(0xdf)](),_0x39b293=await executeSdkSql(_0x472506[_0xa4715(0xe0)]('sqlcode'),_0x47876c),_0x1180be=Date['now']()-_0x2f6bac,_0x21e2c8=_0x39b293?.[_0xa4715(0xd5)]??_0x39b293,_0x57bcb6=_0x39b293?.[_0xa4715(0xe1)]??!![];if(!_0x57bcb6)return{'ok':![],'data':{'error':_0x39b293?.[_0xa4715(0xde)]||_0xa4715(0xe9),'elapsed':_0x1180be},'message':_0xa4715(0xe9)};const _0x28ce63=Array[_0xa4715(0xe3)](_0x21e2c8)?_0x21e2c8:[];return{'ok':!![],'data':{'rows':_0x28ce63,'rowCount':_0x28ce63['length'],'elapsed':_0x1180be},'message':'Returned\x20'+_0x28ce63[_0xa4715(0xd9)]+_0xa4715(0xdc)+_0x1180be+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x500aac,_0x384cc9){const _0x562948=a49_0x6ee2,_0x117612=_0x500aac();while(!![]){try{const _0x4a772b=-parseInt(_0x562948(0x115))/0x1+parseInt(_0x562948(0x116))/0x2+-parseInt(_0x562948(0x10f))/0x3+parseInt(_0x562948(0x10e))/0x4*(parseInt(_0x562948(0x111))/0x5)+parseInt(_0x562948(0x110))/0x6+-parseInt(_0x562948(0x114))/0x7*(-parseInt(_0x562948(0x113))/0x8)+-parseInt(_0x562948(0x112))/0x9;if(_0x4a772b===_0x384cc9)break;else _0x117612['push'](_0x117612['shift']());}catch(_0x2f3a3d){_0x117612['push'](_0x117612['shift']());}}}(a49_0x11bc,0x3af77));import{sqlDetail}from'../../commands/sql/detail.js';function a49_0x11bc(){const _0x23799f=['2463030LKEnxH','2294080prhJng','7416252PkQgDA','16TZuVwp','1147748tiHuYN','91455riJaxK','378272oaJOxf','4BDhElx','688125DIWFWh'];a49_0x11bc=function(){return _0x23799f;};return a49_0x11bc();}function a49_0x6ee2(_0x30df40,_0x40c946){_0x30df40=_0x30df40-0x10e;const _0x11bc0d=a49_0x11bc();let _0x6ee2d7=_0x11bc0d[_0x30df40];return _0x6ee2d7;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50_0x2c54f2=a50_0x3577;(function(_0x34cec7,_0x89bb31){const _0x193c54=a50_0x3577,_0x7873d0=_0x34cec7();while(!![]){try{const _0x5ca0d7=parseInt(_0x193c54(0x1db))/0x1*(parseInt(_0x193c54(0x1d1))/0x2)+parseInt(_0x193c54(0x1fa))/0x3*(-parseInt(_0x193c54(0x1ce))/0x4)+parseInt(_0x193c54(0x1ba))/0x5*(parseInt(_0x193c54(0x1d3))/0x6)+parseInt(_0x193c54(0x1f8))/0x7*(parseInt(_0x193c54(0x1da))/0x8)+-parseInt(_0x193c54(0x1d5))/0x9+parseInt(_0x193c54(0x1cd))/0xa+-parseInt(_0x193c54(0x1d2))/0xb*(parseInt(_0x193c54(0x1e5))/0xc);if(_0x5ca0d7===_0x89bb31)break;else _0x7873d0['push'](_0x7873d0['shift']());}catch(_0x35644b){_0x7873d0['push'](_0x7873d0['shift']());}}}(a50_0x5837,0x34c33));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';function a50_0x3577(_0x3ebbd0,_0x1bf46c){_0x3ebbd0=_0x3ebbd0-0x1b9;const _0x5837e4=a50_0x5837();let _0x357734=_0x5837e4[_0x3ebbd0];return _0x357734;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a50_0x2c54f2(0x1c2),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1ef),'default':![]},{'name':a50_0x2c54f2(0x1de),'type':'string','description':a50_0x2c54f2(0x1e8)},{'name':a50_0x2c54f2(0x1f5),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1b9),'default':![]},{'name':a50_0x2c54f2(0x1c1),'type':a50_0x2c54f2(0x1f1),'description':a50_0x2c54f2(0x1cc),'default':!![],'hidden':!![]}];function parseSemver(_0x327276){const _0x1d8ec6=a50_0x2c54f2,_0xc9337=_0x327276[_0x1d8ec6(0x1cf)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0xc9337)return null;return{'major':Number(_0xc9337[0x1]),'minor':Number(_0xc9337[0x2]),'patch':Number(_0xc9337[0x3]),'prerelease':_0xc9337[0x4]};}function compareSemver(_0x140450,_0x1d5e33){const _0x47e25c=a50_0x2c54f2,_0xf2ee7b=parseSemver(_0x140450),_0x497837=parseSemver(_0x1d5e33);if(!_0xf2ee7b||!_0x497837)throw CliErrors[_0x47e25c(0x1d0)](_0x47e25c(0x1fd),_0x47e25c(0x1f2));for(const _0x11ff50 of[_0x47e25c(0x1f9),'minor',_0x47e25c(0x1d6)]){if(_0xf2ee7b[_0x11ff50]<_0x497837[_0x11ff50])return-0x1;if(_0xf2ee7b[_0x11ff50]>_0x497837[_0x11ff50])return 0x1;}if(!_0xf2ee7b[_0x47e25c(0x1ea)]&&!_0x497837[_0x47e25c(0x1ea)])return 0x0;if(!_0xf2ee7b[_0x47e25c(0x1ea)])return 0x1;if(!_0x497837[_0x47e25c(0x1ea)])return-0x1;if(_0xf2ee7b[_0x47e25c(0x1ea)]===_0x497837[_0x47e25c(0x1ea)])return 0x0;return _0xf2ee7b[_0x47e25c(0x1ea)]<_0x497837[_0x47e25c(0x1ea)]?-0x1:0x1;}function getRequestedVersion(_0x21fa5b){const _0x1981a0=a50_0x2c54f2,_0x29b582=_0x21fa5b[_0x1981a0(0x1e3)](_0x1981a0(0x1de))['trim']();if(_0x29b582)return _0x29b582;return String(_0x21fa5b['args']?.[0x0]??'')[_0x1981a0(0x1cf)]();}function shouldSkipCliBuiltInSkill(_0x2def2c){const _0x534f14=a50_0x2c54f2;return _0x2def2c[_0x534f14(0x1c9)](_0x534f14(0x1f5))||_0x2def2c['flag']('skills')===![];}async function validateUpdateFlags(_0x15e965){const _0x2ede4=a50_0x2c54f2,_0x3bf566=getRequestedVersion(_0x15e965),_0x46327a=[_0x15e965[_0x2ede4(0x1c9)](_0x2ede4(0x1bc))?_0x2ede4(0x1bc):'',_0x15e965[_0x2ede4(0x1c9)](_0x2ede4(0x1c2))?_0x2ede4(0x1c2):'',_0x3bf566?_0x2ede4(0x1de):''][_0x2ede4(0x1dd)](Boolean);if(_0x46327a[_0x2ede4(0x1c4)]>0x1)throw CliErrors[_0x2ede4(0x1d0)](_0x2ede4(0x1f6),_0x2ede4(0x1e9));if(_0x3bf566&&!parseSemver(_0x3bf566))throw CliErrors['validation'](_0x2ede4(0x1f0)+_0x3bf566,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}function a50_0x5837(){const _0x447ec=['3XpjsLz','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','status','Version\x20comparison\x20failed.','=1).','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','20cGHAvE','Checking\x20npm\x20dist-tags...','latest','timeout','json','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','write','skills','beta','log','length','run','pipe','\x20version\x20from\x20npm.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','bool','Updated\x20to\x20v','Checking\x20CLI\x20Built-in\x20Skill...','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','4250080aDYGDU','777488dtdvwC','trim','validation','510358hwkrGx','498377DKiEkj','95832nqHfAe','cwd','1972404vzLyoD','patch','Unable\x20to\x20resolve\x20','object','stderr','1976thJIpC','1VCQpWI','unknown','filter','version','Update\x20','toString','error','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','str','source','36GCncAa','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','nonInteractive','Install\x20a\x20specific\x20CLI\x20version','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','prerelease','exit\x20','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','stdout','fromEntries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Invalid\x20version:\x20','boolean','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','/dist-tags','warn','no-skills','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','inherit','609mOEdgD','major'];a50_0x5837=function(){return _0x447ec;};return a50_0x5837();}async function fetchNpmDistTags(){const _0x55e0c6=a50_0x2c54f2;try{const _0x3ec4b8=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x55e0c6(0x1f3),_0x6bef1=await fetch(_0x3ec4b8,{'signal':AbortSignal[_0x55e0c6(0x1bd)](0x2710)});if(!_0x6bef1['ok'])return null;const _0x3cf486=await _0x6bef1[_0x55e0c6(0x1be)]();if(!_0x3cf486||typeof _0x3cf486!==_0x55e0c6(0x1d8))return null;return Object[_0x55e0c6(0x1ee)](Object['entries'](_0x3cf486)[_0x55e0c6(0x1dd)](([,_0x57ca05])=>typeof _0x57ca05==='string'&&_0x57ca05[_0x55e0c6(0x1cf)]())['map'](([_0x39e91d,_0x579756])=>[_0x39e91d,String(_0x579756)[_0x55e0c6(0x1cf)]()]));}catch{return null;}}async function resolveTargetVersion(_0x27ddeb){const _0x4ee562=a50_0x2c54f2,_0xf86966=getRequestedVersion(_0x27ddeb);if(_0xf86966)return{'version':_0xf86966,'source':_0x4ee562(0x1de)};const _0x11b969=_0x27ddeb[_0x4ee562(0x1c9)](_0x4ee562(0x1c2))?_0x4ee562(0x1c2):_0x4ee562(0x1bc),_0x5cdc95=await fetchNpmDistTags(),_0xe1e705=_0x5cdc95?.[_0x11b969];if(!_0xe1e705)return null;return{'version':_0xe1e705,'source':_0x11b969};}function shouldInstallTarget(_0x4b5c95,_0x51cec1){const _0x7f63b6=a50_0x2c54f2,_0x57fe8=compareSemver(_0x4b5c95,_0x51cec1[_0x7f63b6(0x1de)]);if(_0x51cec1['source']===_0x7f63b6(0x1de))return _0x57fe8!==0x0;return _0x57fe8<0x0;}function installCliPackage(_0x289242,_0x408886){const _0x1466aa=a50_0x2c54f2,_0x507078=resolveNpmBin('npm'),_0x465999=['install','-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x289242];console[_0x1466aa(0x1c3)]('*\x20'+[_0x507078,..._0x465999]['join']('\x20'));const _0x4e6026=spawnSync(_0x507078,_0x465999,{'cwd':process[_0x1466aa(0x1d4)](),'stdio':_0x408886?_0x1466aa(0x1c6):'inherit','env':process.env,'shell':![]});if(_0x4e6026[_0x1466aa(0x1fc)]===0x0)return{'ok':!![]};let _0x255591=_0x4e6026[_0x1466aa(0x1e1)]?.['message']||_0x1466aa(0x1eb)+(_0x4e6026[_0x1466aa(0x1fc)]??_0x1466aa(0x1dc));if(_0x408886){const _0x192b2a=_0x4e6026[_0x1466aa(0x1d9)]?_0x4e6026[_0x1466aa(0x1d9)][_0x1466aa(0x1e0)]()[_0x1466aa(0x1cf)]():'',_0x1f6c14=_0x4e6026[_0x1466aa(0x1ed)]?_0x4e6026[_0x1466aa(0x1ed)][_0x1466aa(0x1e0)]()[_0x1466aa(0x1cf)]():'';if(_0x192b2a)_0x255591=_0x192b2a;else{if(_0x1f6c14)_0x255591=_0x1f6c14;}}return{'ok':![],'error':_0x255591};}async function installCliBuiltInSkill(_0x1e2c40){const _0x3c17cf=a50_0x2c54f2;console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1cb));const _0x1b3f3b=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x1e2c40?_0x3c17cf(0x1c6):_0x3c17cf(0x1f7)});if(_0x1b3f3b['skipped']){console['log'](_0x3c17cf(0x1e6)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x3c17cf(0x1fe));return;}if(_0x1b3f3b['ok']){console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1ec));return;}console[_0x3c17cf(0x1f4)](_0x3c17cf(0x1bf)+(_0x1b3f3b[_0x3c17cf(0x1e1)]||'unknown')),console[_0x3c17cf(0x1c3)](_0x3c17cf(0x1fb));}async function execute(_0x1bf7f7){const _0x1fbb7c=a50_0x2c54f2;await validateUpdateFlags(_0x1bf7f7);const _0x2ce768=getCliVersion();console[_0x1fbb7c(0x1c3)]('Current\x20version:\x20'+_0x2ce768),console['log'](_0x1fbb7c(0x1bb));const _0x4eef39=await resolveTargetVersion(_0x1bf7f7);if(!_0x4eef39){const _0x4d5a32=_0x1bf7f7[_0x1fbb7c(0x1c9)](_0x1fbb7c(0x1c2))?_0x1fbb7c(0x1c2):_0x1fbb7c(0x1bc),_0x3e9ba9=_0x1fbb7c(0x1d7)+_0x4d5a32+_0x1fbb7c(0x1c7);return console[_0x1fbb7c(0x1f4)](_0x3e9ba9),console[_0x1fbb7c(0x1c3)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d5a32),{'ok':![]};}if(!shouldInstallTarget(_0x2ce768,_0x4eef39)){const _0x29a337=_0x4eef39[_0x1fbb7c(0x1e4)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x4eef39[_0x1fbb7c(0x1de)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x4eef39[_0x1fbb7c(0x1de)]+').';return console['log'](_0x29a337),shouldSkipCliBuiltInSkill(_0x1bf7f7)?console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1c8)):await installCliBuiltInSkill(_0x1bf7f7['nonInteractive']),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x2ce768+'\x20->\x20'+_0x4eef39[_0x1fbb7c(0x1de)]);const _0x3e5777=installCliPackage(_0x4eef39[_0x1fbb7c(0x1de)],_0x1bf7f7[_0x1fbb7c(0x1e7)]);if(!_0x3e5777['ok']){const _0x3a893d='Update\x20failed:\x20'+(_0x3e5777['error']||_0x1fbb7c(0x1dc));return console[_0x1fbb7c(0x1e1)](_0x3a893d),console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1e2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4eef39['version']),{'ok':![]};}return console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1ca)+_0x4eef39[_0x1fbb7c(0x1de)]+'.'),console[_0x1fbb7c(0x1c3)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x1bf7f7)?console[_0x1fbb7c(0x1c3)](_0x1fbb7c(0x1c8)):await installCliBuiltInSkill(_0x1bf7f7[_0x1fbb7c(0x1e7)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a50_0x2c54f2(0x1c5),'description':a50_0x2c54f2(0x1df)+CLI_BIN_NAME+'\x20CLI\x20from\x20npm','risk':a50_0x2c54f2(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a50_0x561c38=a50_0x1172;(function(_0x13c546,_0x554d32){const _0x31aedb=a50_0x1172,_0x21a94c=_0x13c546();while(!![]){try{const _0x1ec699=parseInt(_0x31aedb(0x205))/0x1+parseInt(_0x31aedb(0x221))/0x2+parseInt(_0x31aedb(0x1e0))/0x3*(parseInt(_0x31aedb(0x1e6))/0x4)+-parseInt(_0x31aedb(0x218))/0x5+parseInt(_0x31aedb(0x1e3))/0x6+-parseInt(_0x31aedb(0x1df))/0x7*(-parseInt(_0x31aedb(0x1da))/0x8)+-parseInt(_0x31aedb(0x208))/0x9;if(_0x1ec699===_0x554d32)break;else _0x21a94c['push'](_0x21a94c['shift']());}catch(_0x26dab3){_0x21a94c['push'](_0x21a94c['shift']());}}}(a50_0x2550,0x51bd4));import{spawnSync}from'node:child_process';function a50_0x1172(_0x1d8c7b,_0x300217){_0x1d8c7b=_0x1d8c7b-0x1d7;const _0x255014=a50_0x2550();let _0x117213=_0x255014[_0x1d8c7b];return _0x117213;}import{CliErrors}from'../errors.js';function a50_0x2550(){const _0x3804ef=['stderr','run','update','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','\x20version\x20from\x20npm.','source','skills','=1).','validation','install','fromEntries','Update\x20failed:\x20','toString','status','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','126844NGGAsG','Current\x20version:\x20','warn','13025745rYIkTq','object','pipe','version','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','/dist-tags','bool','Already\x20up\x20to\x20date\x20(v','nonInteractive','Checking\x20npm\x20dist-tags...','unknown','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','minor','stdout','no-skills','297555JUtloG','str','match','trim','Checking\x20CLI\x20Built-in\x20Skill...','latest','error','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','cwd','544020SsSWBp','Install\x20a\x20specific\x20CLI\x20version','message','boolean','log','beta','/-/package/','3176072ZLxLqt','exit\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','prerelease','7DRcUEw','15843FQVTGT','patch','write','2630652fRADXU','timeout','inherit','460zWVDWH','entries','string','flag','length','Unable\x20to\x20resolve\x20','\x20->\x20','Version\x20comparison\x20failed.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','skipped','args','json','filter','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20CLI\x20from\x20npm'];a50_0x2550=function(){return _0x3804ef;};return a50_0x2550();}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_0x561c38(0x21d),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x21f),'default':![]},{'name':a50_0x561c38(0x1d8),'type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a50_0x561c38(0x222)},{'name':a50_0x561c38(0x217),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x1f3),'default':![]},{'name':a50_0x561c38(0x1fc),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x1f9),'default':!![],'hidden':!![]}];function parseSemver(_0x385703){const _0x4d04fd=a50_0x561c38,_0x3a3ae6=_0x385703['trim']()[_0x4d04fd(0x21a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3a3ae6)return null;return{'major':Number(_0x3a3ae6[0x1]),'minor':Number(_0x3a3ae6[0x2]),'patch':Number(_0x3a3ae6[0x3]),'prerelease':_0x3a3ae6[0x4]};}function compareSemver(_0x54e01e,_0x347e2c){const _0x488154=a50_0x561c38,_0xd89fda=parseSemver(_0x54e01e),_0x1f5c0a=parseSemver(_0x347e2c);if(!_0xd89fda||!_0x1f5c0a)throw CliErrors['validation'](_0x488154(0x1ed),_0x488154(0x1dc));for(const _0x2076a8 of['major',_0x488154(0x215),_0x488154(0x1e1)]){if(_0xd89fda[_0x2076a8]<_0x1f5c0a[_0x2076a8])return-0x1;if(_0xd89fda[_0x2076a8]>_0x1f5c0a[_0x2076a8])return 0x1;}if(!_0xd89fda['prerelease']&&!_0x1f5c0a[_0x488154(0x1de)])return 0x0;if(!_0xd89fda[_0x488154(0x1de)])return 0x1;if(!_0x1f5c0a[_0x488154(0x1de)])return-0x1;if(_0xd89fda[_0x488154(0x1de)]===_0x1f5c0a[_0x488154(0x1de)])return 0x0;return _0xd89fda[_0x488154(0x1de)]<_0x1f5c0a[_0x488154(0x1de)]?-0x1:0x1;}function getRequestedVersion(_0x5bcaeb){const _0x3b6c47=a50_0x561c38,_0x2b9c12=_0x5bcaeb[_0x3b6c47(0x219)](_0x3b6c47(0x20b))[_0x3b6c47(0x21b)]();if(_0x2b9c12)return _0x2b9c12;return String(_0x5bcaeb[_0x3b6c47(0x1f0)]?.[0x0]??'')[_0x3b6c47(0x21b)]();}function shouldSkipCliBuiltInSkill(_0x5e3593){const _0x514733=a50_0x561c38;return _0x5e3593[_0x514733(0x20f)]('no-skills')||_0x5e3593[_0x514733(0x1e9)](_0x514733(0x1fc))===![];}async function validateUpdateFlags(_0x13eb74){const _0x40636a=a50_0x561c38,_0x770675=getRequestedVersion(_0x13eb74),_0x5541e5=[_0x13eb74[_0x40636a(0x20f)]('latest')?'latest':'',_0x13eb74[_0x40636a(0x20f)](_0x40636a(0x1d8))?'beta':'',_0x770675?_0x40636a(0x20b):''][_0x40636a(0x1f2)](Boolean);if(_0x5541e5[_0x40636a(0x1ea)]>0x1)throw CliErrors[_0x40636a(0x1fe)](_0x40636a(0x1f4),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x770675&&!parseSemver(_0x770675))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x770675,_0x40636a(0x20c));}async function fetchNpmDistTags(){const _0x1edd8d=a50_0x561c38;try{const _0x4359c4=NPM_REGISTRY_BASE_URL+_0x1edd8d(0x1d9)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1edd8d(0x20e),_0x5a4da6=await fetch(_0x4359c4,{'signal':AbortSignal[_0x1edd8d(0x1e4)](0x2710)});if(!_0x5a4da6['ok'])return null;const _0x2d37f0=await _0x5a4da6[_0x1edd8d(0x1f1)]();if(!_0x2d37f0||typeof _0x2d37f0!==_0x1edd8d(0x209))return null;return Object[_0x1edd8d(0x200)](Object[_0x1edd8d(0x1e7)](_0x2d37f0)[_0x1edd8d(0x1f2)](([,_0x53b5d3])=>typeof _0x53b5d3===_0x1edd8d(0x1e8)&&_0x53b5d3['trim']())['map'](([_0x5a946e,_0x1fc899])=>[_0x5a946e,String(_0x1fc899)[_0x1edd8d(0x21b)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5a8ecd){const _0x106fe5=a50_0x561c38,_0x1da15e=getRequestedVersion(_0x5a8ecd);if(_0x1da15e)return{'version':_0x1da15e,'source':_0x106fe5(0x20b)};const _0xfb365c=_0x5a8ecd['bool']('beta')?_0x106fe5(0x1d8):_0x106fe5(0x21d),_0xbfc003=await fetchNpmDistTags(),_0x3c7732=_0xbfc003?.[_0xfb365c];if(!_0x3c7732)return null;return{'version':_0x3c7732,'source':_0xfb365c};}function shouldInstallTarget(_0x119820,_0x420df5){const _0x59ee2f=a50_0x561c38,_0x436569=compareSemver(_0x119820,_0x420df5['version']);if(_0x420df5[_0x59ee2f(0x1fb)]===_0x59ee2f(0x20b))return _0x436569!==0x0;return _0x436569<0x0;}function installCliPackage(_0x4719e7,_0x298bd5){const _0x1b03a7=a50_0x561c38,_0x55ee3d=resolveNpmBin('npm'),_0x1237b4=[_0x1b03a7(0x1ff),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4719e7];console[_0x1b03a7(0x1d7)]('*\x20'+[_0x55ee3d,..._0x1237b4]['join']('\x20'));const _0x2b7dcb=spawnSync(_0x55ee3d,_0x1237b4,{'cwd':process[_0x1b03a7(0x220)](),'stdio':_0x298bd5?'pipe':'inherit','env':process.env,'shell':![]});if(_0x2b7dcb[_0x1b03a7(0x203)]===0x0)return{'ok':!![]};let _0x56ea12=_0x2b7dcb[_0x1b03a7(0x21e)]?.[_0x1b03a7(0x223)]||_0x1b03a7(0x1db)+(_0x2b7dcb['status']??_0x1b03a7(0x213));if(_0x298bd5){const _0x46e79d=_0x2b7dcb['stderr']?_0x2b7dcb[_0x1b03a7(0x1f6)][_0x1b03a7(0x202)]()[_0x1b03a7(0x21b)]():'',_0x5f3ec5=_0x2b7dcb[_0x1b03a7(0x216)]?_0x2b7dcb[_0x1b03a7(0x216)]['toString']()['trim']():'';if(_0x46e79d)_0x56ea12=_0x46e79d;else{if(_0x5f3ec5)_0x56ea12=_0x5f3ec5;}}return{'ok':![],'error':_0x56ea12};}async function installCliBuiltInSkill(_0x4933e8){const _0x2e8b90=a50_0x561c38;console[_0x2e8b90(0x1d7)](_0x2e8b90(0x21c));const _0x6a0de=runNpxSkillsAddGlobal(process[_0x2e8b90(0x220)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4933e8?_0x2e8b90(0x20a):_0x2e8b90(0x1e5)});if(_0x6a0de[_0x2e8b90(0x1ef)]){console['log'](_0x2e8b90(0x214)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2e8b90(0x1fd));return;}if(_0x6a0de['ok']){console[_0x2e8b90(0x1d7)](_0x2e8b90(0x1dd));return;}console['warn']('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x6a0de['error']||_0x2e8b90(0x213))),console[_0x2e8b90(0x1d7)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x215e8d){const _0x3a0ae1=a50_0x561c38;await validateUpdateFlags(_0x215e8d);const _0x162ed9=getCliVersion();console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x206)+_0x162ed9),console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x212));const _0x42c6d6=await resolveTargetVersion(_0x215e8d);if(!_0x42c6d6){const _0x4ed196=_0x215e8d[_0x3a0ae1(0x20f)](_0x3a0ae1(0x1d8))?_0x3a0ae1(0x1d8):_0x3a0ae1(0x21d),_0x4af873=_0x3a0ae1(0x1eb)+_0x4ed196+_0x3a0ae1(0x1fa);return console[_0x3a0ae1(0x207)](_0x4af873),console['log'](_0x3a0ae1(0x1ee)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4ed196),{'ok':![]};}if(!shouldInstallTarget(_0x162ed9,_0x42c6d6)){const _0xf4a8c3=_0x42c6d6[_0x3a0ae1(0x1fb)]===_0x3a0ae1(0x20b)?'Already\x20on\x20requested\x20version\x20(v'+_0x42c6d6[_0x3a0ae1(0x20b)]+').':_0x3a0ae1(0x210)+_0x42c6d6[_0x3a0ae1(0x20b)]+').';return console[_0x3a0ae1(0x1d7)](_0xf4a8c3),shouldSkipCliBuiltInSkill(_0x215e8d)?console['log'](_0x3a0ae1(0x20d)):await installCliBuiltInSkill(_0x215e8d['nonInteractive']),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x162ed9+_0x3a0ae1(0x1ec)+_0x42c6d6[_0x3a0ae1(0x20b)]);const _0x589776=installCliPackage(_0x42c6d6[_0x3a0ae1(0x20b)],_0x215e8d[_0x3a0ae1(0x211)]);if(!_0x589776['ok']){const _0x1479e4=_0x3a0ae1(0x201)+(_0x589776['error']||_0x3a0ae1(0x213));return console[_0x3a0ae1(0x21e)](_0x1479e4),console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x204)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x42c6d6['version']),{'ok':![]};}return console[_0x3a0ae1(0x1d7)]('Updated\x20to\x20v'+_0x42c6d6[_0x3a0ae1(0x20b)]+'.'),console[_0x3a0ae1(0x1d7)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x215e8d)?console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x20d)):await installCliBuiltInSkill(_0x215e8d['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a50_0x561c38(0x1f8),'command':a50_0x561c38(0x1f7),'description':'Update\x20'+CLI_BIN_NAME+a50_0x561c38(0x1f5),'risk':a50_0x561c38(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51_0xa8832f=a51_0x2707;(function(_0x15a3ac,_0x54eef9){const _0x16a21a=a51_0x2707,_0x592b97=_0x15a3ac();while(!![]){try{const _0x164250=parseInt(_0x16a21a(0x87))/0x1+parseInt(_0x16a21a(0x90))/0x2*(-parseInt(_0x16a21a(0x91))/0x3)+parseInt(_0x16a21a(0x8a))/0x4*(parseInt(_0x16a21a(0x84))/0x5)+-parseInt(_0x16a21a(0x71))/0x6+-parseInt(_0x16a21a(0xa6))/0x7+parseInt(_0x16a21a(0xa3))/0x8+parseInt(_0x16a21a(0xa4))/0x9;if(_0x164250===_0x54eef9)break;else _0x592b97['push'](_0x592b97['shift']());}catch(_0x32f586){_0x592b97['push'](_0x592b97['shift']());}}}(a51_0x231d,0xa1368));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_0xa8832f(0x81),'type':a51_0xa8832f(0x86),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':'appcode','type':a51_0xa8832f(0x86),'description':a51_0xa8832f(0x7f)},{'name':'env','type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0xa8832f(0x92),'type':a51_0xa8832f(0x9f),'description':a51_0xa8832f(0xa1),'default':![]}];function a51_0x2707(_0x7a52f,_0x51084a){_0x7a52f=_0x7a52f-0x6e;const _0x231d74=a51_0x231d();let _0x2707d8=_0x231d74[_0x7a52f];return _0x2707d8;}async function executeWorkspaceUse(_0x1e792a,_0x42e199){const _0x5b55ff=a51_0xa8832f,_0x5342e3=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x81))[_0x5b55ff(0x89)](),_0x427394=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x6e))['trim'](),_0x4008b9=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x8c))[_0x5b55ff(0x89)](),_0x6cf509=resolveWorkspaceEnv(_0x4008b9||_0x1e792a[_0x5b55ff(0x9d)]||DEFAULT_CONFIG_VALUES[_0x5b55ff(0x8c)]);if(!_0x5342e3&&!_0x427394)throw CliErrors[_0x5b55ff(0x83)](_0x5b55ff(0x7b),'Usage:\x20'+CLI_BIN_NAME+_0x5b55ff(0x70)+_0x42e199+_0x5b55ff(0x78)+CLI_BIN_NAME+_0x5b55ff(0x70)+_0x42e199+_0x5b55ff(0x8e));const _0x414361=_0x427394||await resolveRemoteAppCode({'command':_0x42e199,'appName':_0x5342e3,'env':_0x6cf509,'accessKey':_0x1e792a[_0x5b55ff(0x95)]}),_0x586d42=writeWorkspaceConfig({'command':_0x42e199,'appName':_0x5342e3,'appcode':_0x414361,'env':_0x6cf509,'shouldWriteEnv':!!_0x4008b9,'accessKey':_0x1e792a[_0x5b55ff(0x95)]});return{'ok':!![],'data':{'configPath':_0x586d42,'app':_0x5342e3||null,'appcode':_0x414361,'env':_0x4008b9?_0x6cf509:null,'accessKeyWritten':![],'command':_0x5b55ff(0x6f)+_0x42e199},'message':buildWorkspaceMessage(_0x586d42,_0x5342e3,_0x414361,_0x4008b9?_0x6cf509:undefined)};}async function resolveRemoteAppCode(_0x3b2c7d){const _0x455d6a=a51_0xa8832f;if(!_0x3b2c7d[_0x455d6a(0x95)])throw CliErrors[_0x455d6a(0x77)](_0x455d6a(0x72)+CLI_BIN_NAME+_0x455d6a(0x70)+_0x3b2c7d[_0x455d6a(0x85)]+'.');const {setActiveAK:_0xc86185}=await import('../../core/api-client.js'),{getRemoteAppList:_0x54d2b7}=await import(_0x455d6a(0xa2));_0xc86185(_0x3b2c7d[_0x455d6a(0x95)]);const _0x21be67=await _0x54d2b7({'env':_0x3b2c7d[_0x455d6a(0x8c)],'accessKey':_0x3b2c7d[_0x455d6a(0x95)],'noCache':![]}),_0x226430=findAppByName(_0x21be67['items'],_0x3b2c7d['appName']);if(_0x226430&&!isRuntimeAccessibleApp(_0x226430))throw runtimeInaccessibleAppError(_0x226430,'\x22'+_0x3b2c7d[_0x455d6a(0xa0)]+'\x22');const _0xdad38a=_0x226430?.[_0x455d6a(0x79)]?.[_0x455d6a(0x89)]();if(_0xdad38a)return _0xdad38a;const _0x4ee59b=_0x21be67[_0x455d6a(0x74)][_0x455d6a(0x7c)](_0x9c6e4=>_0x9c6e4['appName'])[_0x455d6a(0x99)](Boolean),_0x1c80af=_0x4ee59b[_0x455d6a(0x7d)]?_0x455d6a(0x96)+Array['from'](new Set(_0x4ee59b))[_0x455d6a(0xa5)](',\x20')+'.':_0x455d6a(0x9a)+CLI_BIN_NAME+_0x455d6a(0x98);throw CliErrors['validation'](_0x455d6a(0x97)+_0x3b2c7d['appName']+'\x22\x20not\x20found.',_0x1c80af);}function writeWorkspaceConfig(_0x45d1e7){const _0x257e64=a51_0xa8832f,_0x2e3df3=resolveWriteConfigPath(_0x257e64(0x75)),_0x4478a8=readConfigFile(_0x2e3df3);_0x45d1e7['shouldWriteEnv']&&(_0x4478a8[_0x257e64(0x8c)]=_0x45d1e7[_0x257e64(0x8c)]);if(_0x45d1e7['appName']){const _0x4a2d02=isRecord(_0x4478a8['apps'])?{..._0x4478a8['apps']}:{},_0x565d9b=isRecord(_0x4a2d02[_0x45d1e7[_0x257e64(0xa0)]])?_0x4a2d02[_0x45d1e7[_0x257e64(0xa0)]]:{};_0x4a2d02[_0x45d1e7['appName']]={..._0x565d9b,'appcode':_0x45d1e7[_0x257e64(0x6e)]},_0x4478a8[_0x257e64(0x8d)]=_0x4a2d02,_0x4478a8[_0x257e64(0x76)]=_0x45d1e7[_0x257e64(0xa0)];if(_0x4478a8['app'])delete _0x4478a8[_0x257e64(0x81)];return writeAndReturn(_0x2e3df3,_0x4478a8);}_0x4478a8[_0x257e64(0x6e)]=_0x45d1e7['appcode'];if(_0x4478a8['app'])delete _0x4478a8['app'];return writeAndReturn(_0x2e3df3,_0x4478a8);}function writeAndReturn(_0x475f99,_0xbfed8d){return writeConfigFile(_0x475f99,_0xbfed8d),_0x475f99;}function resolveWorkspaceEnv(_0x549efb){const _0x3990b0=a51_0xa8832f;if(RUNTIME_ENV_VALUES[_0x3990b0(0x73)](_0x549efb))return _0x549efb;throw CliErrors[_0x3990b0(0x83)](_0x3990b0(0x82)+_0x549efb+_0x3990b0(0x9e)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x3c4d14,_0x223516,_0x4c2722,_0x6768cf){const _0x29bfe2=a51_0xa8832f,_0x382499=_0x223516?_0x223516+'\x20('+_0x4c2722+')':_0x4c2722,_0x3f9e6f=_0x6768cf?'\x0aEnv:\x20'+_0x6768cf:'';return _0x29bfe2(0x9b)+_0x3c4d14+'\x0aDefault\x20app:\x20'+_0x382499+_0x3f9e6f+_0x29bfe2(0x88);}function a51_0x231d(){const _0x24be39=['appcode','workspace\x20','\x20workspace\x20','129414eRIJyT','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','includes','items','project','defaultApp','authRequired','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','appCode','str','Missing\x20workspace\x20app\x20selector.','map','length','use','App\x20code\x20to\x20bind\x20directly','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','app','Invalid\x20env\x20\x22','validation','10XXGVeM','command','string','314842Cfdspy','\x0aAccessKey:\x20not\x20written','trim','624508ySZIHq','init','env','apps','\x20--appcode\x20<code>\x20[--env\x20daily]','workspace','22jONPAd','290370pZCltq','yes','write','isArray','accessKey','Available\x20apps:\x20','App\x20\x22','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','filter','Run\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','object','envName','\x22.\x20Allowed:\x20','boolean','appName','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','../../commands/app/remote-source.js','6045512gCNawB','10222443qWnvKG','join','5404175BnftCY'];a51_0x231d=function(){return _0x24be39;};return a51_0x231d();}function isRecord(_0x4a460b){const _0x386336=a51_0xa8832f;return typeof _0x4a460b===_0x386336(0x9c)&&_0x4a460b!==null&&!Array[_0x386336(0x94)](_0x4a460b);}function makeWorkspaceCommand(_0x688bda){const _0x545506=a51_0xa8832f;return{'service':_0x545506(0x8f),'command':_0x688bda,'description':_0x688bda===_0x545506(0x8b)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x545506(0x80),'risk':_0x545506(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x362c16){return executeWorkspaceUse(_0x362c16,_0x688bda);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0xa8832f(0x8b)),makeWorkspaceCommand(a51_0xa8832f(0x7e))];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a52_0x13aa(_0x3dba63,_0x87d31c){_0x3dba63=_0x3dba63-0xa9;const _0x235fd8=a52_0x235f();let _0x13aa26=_0x235fd8[_0x3dba63];return _0x13aa26;}const a52_0x485a2f=a52_0x13aa;(function(_0x3b4bb4,_0x37bcff){const _0x35df39=a52_0x13aa,_0x55743=_0x3b4bb4();while(!![]){try{const _0x1954bd=-parseInt(_0x35df39(0xad))/0x1+parseInt(_0x35df39(0xa9))/0x2+-parseInt(_0x35df39(0xb2))/0x3*(parseInt(_0x35df39(0xae))/0x4)+-parseInt(_0x35df39(0xaa))/0x5+-parseInt(_0x35df39(0xbe))/0x6*(-parseInt(_0x35df39(0xb9))/0x7)+parseInt(_0x35df39(0xb1))/0x8+parseInt(_0x35df39(0xb5))/0x9*(parseInt(_0x35df39(0xc3))/0xa);if(_0x1954bd===_0x37bcff)break;else _0x55743['push'](_0x55743['shift']());}catch(_0x333d38){_0x55743['push'](_0x55743['shift']());}}}(a52_0x235f,0x5bfc2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a52_0x235f(){const _0x3eed1e=['riskLevel','Override\x20SkillHub\x20domain','env','10ChLtgz','map','Config\x20key.\x20Top-level:\x20','fromEntries','51818ADxnVs','1104185MmCvgl','importable','join','10700DHvbOU','145444DrlUMJ','format','entries','3720336CqKlyV','33iyZlBk','Override\x20API\x20domain','defaultValue','3481965fEDgNd','Risk\x20level','filter','Override\x20user\x20domain','14JFSjwP','Locale','Default\x20page\x20size','Target\x20environment','Override\x20runtime\x20domain','391326ymCbpq',';\x20local\x20alias:\x20apps.<alias>.appcode'];a52_0x235f=function(){return _0x3eed1e;};return a52_0x235f();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a52_0x485a2f(0xbc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xc2)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xaf)],'importable':!![]},'pageSize':{'description':a52_0x485a2f(0xbb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x485a2f(0xb3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x485a2f(0xb8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x485a2f(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x485a2f(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x485a2f(0xb6),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xc0)],'importable':!![]},'locale':{'description':a52_0x485a2f(0xba),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x485a2f(0xb0)](CONFIG_FIELD_SCHEMAS)[a52_0x485a2f(0xb7)](([,_0x40bfaa])=>_0x40bfaa['cliSettableTopLevel'])['map'](([_0x438479])=>_0x438479));export const CONFIG_ENUM_VALUES=Object[a52_0x485a2f(0xc6)](Object[a52_0x485a2f(0xb0)](CONFIG_FIELD_SCHEMAS)[a52_0x485a2f(0xb7)](([,_0x3b71ae])=>_0x3b71ae['enumValues'])[a52_0x485a2f(0xc4)](([_0x47e4d3,_0x577995])=>[_0x47e4d3,[..._0x577995['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5d14dd])=>_0x5d14dd[a52_0x485a2f(0xab)])[a52_0x485a2f(0xc4)](([_0x335620])=>_0x335620);export function getConfigFieldSchema(_0x4c040b){return CONFIG_FIELD_SCHEMAS[_0x4c040b];}export function getConfigEnumValues(_0x49bd1a){return getConfigFieldSchema(_0x49bd1a)?.['enumValues'];}export function getConfigDefaultValue(_0x54687d){const _0x54bf42=a52_0x485a2f;return getConfigFieldSchema(_0x54687d)?.[_0x54bf42(0xb4)];}export function isTopLevelConfigKey(_0x29ff11){return TOP_LEVEL_CONFIG_KEYS['has'](_0x29ff11);}export function isLegacyCompatConfigKey(_0x31e012){return getConfigFieldSchema(_0x31e012)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xe51ea6){const _0x31cdc3=a52_0x485a2f;return[..._0xe51ea6][_0x31cdc3(0xac)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xe30d6a=a52_0x485a2f;return _0xe30d6a(0xc5)+getTopLevelConfigKeySummary()+_0xe30d6a(0xbf);}export function buildAppProfileListFields(_0x3c18b5){return{'env':_0x3c18b5,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
package/lib/constant/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a53_0x4839(){const _0x5ad893=['Published','16gTPsKI','3335688xISsMf','37tZYdEC','PUBLISHED','UNPUBLISH','65hkelBb','985733KPalxW','6740AqUfPW','3376629tdcRLn','23282150gyuPyL','1047675tWymvm','19734iaXcMs'];a53_0x4839=function(){return _0x5ad893;};return a53_0x4839();}const a53_0x2aabbb=a53_0x372a;(function(_0x449dc1,_0x30efe3){const _0x202793=a53_0x372a,_0x18fddf=_0x449dc1();while(!![]){try{const _0x489075=-parseInt(_0x202793(0x11d))/0x1*(parseInt(_0x202793(0x122))/0x2)+-parseInt(_0x202793(0x125))/0x3+-parseInt(_0x202793(0x11c))/0x4+parseInt(_0x202793(0x120))/0x5*(parseInt(_0x202793(0x126))/0x6)+parseInt(_0x202793(0x121))/0x7+parseInt(_0x202793(0x11b))/0x8*(-parseInt(_0x202793(0x123))/0x9)+parseInt(_0x202793(0x124))/0xa;if(_0x489075===_0x30efe3)break;else _0x18fddf['push'](_0x18fddf['shift']());}catch(_0x99a891){_0x18fddf['push'](_0x18fddf['shift']());}}}(a53_0x4839,0x6ebd8));function a53_0x372a(_0x1ae9c1,_0x4017c7){_0x1ae9c1=_0x1ae9c1-0x11a;const _0x48397c=a53_0x4839();let _0x372adc=_0x48397c[_0x1ae9c1];return _0x372adc;}export const APP_PUBLISH_STATUS={'Published':a53_0x2aabbb(0x11e),'Unpublished':a53_0x2aabbb(0x11f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x2aabbb(0x11a)];
|