@lovrabet/lovrabet-cli 2.2.1-beta.1 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x342fd3=a50_0x5df8;(function(_0xdfddf5,_0x2b0d21){const _0x183d4f=a50_0x5df8,_0x3399f0=_0xdfddf5();while(!![]){try{const _0x447303=parseInt(_0x183d4f(0x120))/0x1+parseInt(_0x183d4f(0x133))/0x2+parseInt(_0x183d4f(0x11f))/0x3+-parseInt(_0x183d4f(0x121))/0x4+parseInt(_0x183d4f(0x132))/0x5+-parseInt(_0x183d4f(0x13a))/0x6+parseInt(_0x183d4f(0x117))/0x7*(-parseInt(_0x183d4f(0x12e))/0x8);if(_0x447303===_0x2b0d21)break;else _0x3399f0['push'](_0x3399f0['shift']());}catch(_0x1613c9){_0x3399f0['push'](_0x3399f0['shift']());}}}(a50_0x27c9,0xd0fec));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a50_0x27c9(){const _0x159ecc=['Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','all','string','target','project','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','expected-diagram-revision','4176277MmXNwN','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','diagram-file','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','company','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','4200483GqnDPb','1068482zVHKIZ','6040404hfMYrI','local','strict','type','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','dir','number','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','version','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Server-reported\x20SkillVersion\x20source\x20fingerprint','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','24QoCTNx','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','skill-code','6907745hGGSAW','1607736sXRRyp','boolean','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','scope','name','personal','confirm-warnings','2988492sBaOBI','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'];a50_0x27c9=function(){return _0x159ecc;};return a50_0x27c9();}export const CODE_FLAG={'name':'code','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x11a)};export const SCOPE_FLAG={'name':'scope','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x118),'enum':[a50_0x342fd3(0x111),a50_0x342fd3(0x138),a50_0x342fd3(0x11d)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x12d),'default':'personal','enum':['personal','company']};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a50_0x342fd3(0x12b),'enum':[a50_0x342fd3(0x111),a50_0x342fd3(0x138),a50_0x342fd3(0x11d)]};export const LOCAL_FLAG={'name':a50_0x342fd3(0x122),'type':a50_0x342fd3(0x134),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a50_0x342fd3(0x127),'type':a50_0x342fd3(0x112),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a50_0x342fd3(0x11b),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x129)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a50_0x342fd3(0x131),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x11c)};function a50_0x5df8(_0x2d423a,_0x41b049){_0x2d423a=_0x2d423a-0x10f;const _0x27c981=a50_0x27c9();let _0x5df834=_0x27c981[_0x2d423a];return _0x5df834;}export const DIAGRAM_VERSION_FLAG={'name':a50_0x342fd3(0x12a),'type':'string','required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a50_0x342fd3(0x136),'type':a50_0x342fd3(0x112),'required':!![],'enum':[a50_0x342fd3(0x138),a50_0x342fd3(0x11d)],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':'string','required':!![],'description':a50_0x342fd3(0x12c),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a50_0x342fd3(0x11e)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a50_0x342fd3(0x116),'type':a50_0x342fd3(0x128),'required':!![],'description':a50_0x342fd3(0x12f)};export const CREATE_NAME_FLAG={'name':a50_0x342fd3(0x137),'type':a50_0x342fd3(0x112),'required':!![],'description':a50_0x342fd3(0x130),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a50_0x342fd3(0x119)}};export const TYPE_FLAG={'name':a50_0x342fd3(0x124),'type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x110),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a50_0x342fd3(0x113),'type':a50_0x342fd3(0x112),'description':a50_0x342fd3(0x125),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':a50_0x342fd3(0x10f)};export const PROJECT_TARGET_FLAG={'name':a50_0x342fd3(0x114),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x135)};export const CONFIRM_WARNINGS_FLAG={'name':a50_0x342fd3(0x139),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x115)};export const STRICT_FLAG={'name':a50_0x342fd3(0x123),'type':a50_0x342fd3(0x134),'description':a50_0x342fd3(0x126)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x182aec,_0x1fc1bb){const _0x1bc115=a51_0x2194,_0x41b004=_0x182aec();while(!![]){try{const _0x2a5e5c=parseInt(_0x1bc115(0xd5))/0x1+parseInt(_0x1bc115(0xcf))/0x2*(-parseInt(_0x1bc115(0xd4))/0x3)+parseInt(_0x1bc115(0xce))/0x4+-parseInt(_0x1bc115(0xcd))/0x5+parseInt(_0x1bc115(0xd0))/0x6*(parseInt(_0x1bc115(0xd6))/0x7)+parseInt(_0x1bc115(0xd3))/0x8*(-parseInt(_0x1bc115(0xd2))/0x9)+parseInt(_0x1bc115(0xcc))/0xa*(parseInt(_0x1bc115(0xd1))/0xb);if(_0x2a5e5c===_0x1fc1bb)break;else _0x41b004['push'](_0x41b004['shift']());}catch(_0xc812b2){_0x41b004['push'](_0x41b004['shift']());}}}(a51_0x2592,0xb0197));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a51_0x2194(_0x16e224,_0x3879d4){_0x16e224=_0x16e224-0xcc;const _0x259265=a51_0x2592();let _0x2194f2=_0x259265[_0x16e224];return _0x2194f2;}import{pushCommand}from'./commands/push.js';function a51_0x2592(){const _0x351020=['302324IgSigJ','476976lwofWd','847svjfgM','153WYgPuM','50840BbaypK','9wlwcKL','1257177TvYMBi','56dsLaXQ','2810WLfIJN','5821975vjxxwT','2129748SnxcmF'];a51_0x2592=function(){return _0x351020;};return a51_0x2592();}import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a52_0x16a4(){var _0x3f316a=['2579717wYMcNi','2337231rmiTpC','3125442aKajMI','isArray','length','some','1225238sroZac','2MFiULv','object','5359224UOMtld','4203235xaAgOO','8tGDRCC','ossPath','path','30552705HFkKMQ','SKILL.md','10UFUuvr'];a52_0x16a4=function(){return _0x3f316a;};return a52_0x16a4();}function a52_0x3967(_0x2c0cdc,_0x248b09){_0x2c0cdc=_0x2c0cdc-0x120;var _0x16a487=a52_0x16a4();var _0x3967a9=_0x16a487[_0x2c0cdc];return _0x3967a9;}(function(_0x3449b6,_0x23e2a2){var _0x429f33=a52_0x3967,_0x36aa74=_0x3449b6();while(!![]){try{var _0x365f4b=parseInt(_0x429f33(0x128))/0x1+parseInt(_0x429f33(0x129))/0x2*(parseInt(_0x429f33(0x123))/0x3)+parseInt(_0x429f33(0x12b))/0x4+parseInt(_0x429f33(0x12c))/0x5+parseInt(_0x429f33(0x124))/0x6+-parseInt(_0x429f33(0x122))/0x7*(parseInt(_0x429f33(0x12d))/0x8)+parseInt(_0x429f33(0x130))/0x9*(-parseInt(_0x429f33(0x121))/0xa);if(_0x365f4b===_0x23e2a2)break;else _0x36aa74['push'](_0x36aa74['shift']());}catch(_0x59a778){_0x36aa74['push'](_0x36aa74['shift']());}}}(a52_0x16a4,0xe613f));export function isPackageBackedManifest(_0x551d6e){var _0x301d85=a52_0x3967;return!!_0x551d6e&&typeof _0x551d6e===_0x301d85(0x12a)&&!Array[_0x301d85(0x125)](_0x551d6e)&&typeof _0x551d6e[_0x301d85(0x12e)]==='string'&&_0x551d6e[_0x301d85(0x12e)][_0x301d85(0x126)]>0x0&&Array[_0x301d85(0x125)](_0x551d6e['files']);}export function isMultiFileManifest(_0x3ae843){var _0x3450c9=a52_0x3967;return!!_0x3ae843&&typeof _0x3ae843===_0x3450c9(0x12a)&&!Array['isArray'](_0x3ae843)&&Array['isArray'](_0x3ae843['files'])&&_0x3ae843['files'][_0x3450c9(0x127)](_0x6ceea2=>_0x6ceea2[_0x3450c9(0x12f)]!==_0x3450c9(0x120));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2509f2,_0x5c3a00){const _0x129c43=a53_0x1a50,_0x424d74=_0x2509f2();while(!![]){try{const _0x1385ce=parseInt(_0x129c43(0x183))/0x1+parseInt(_0x129c43(0x18d))/0x2+-parseInt(_0x129c43(0x189))/0x3*(parseInt(_0x129c43(0x185))/0x4)+parseInt(_0x129c43(0x16d))/0x5*(-parseInt(_0x129c43(0x166))/0x6)+parseInt(_0x129c43(0x16a))/0x7+parseInt(_0x129c43(0x19a))/0x8*(parseInt(_0x129c43(0x17b))/0x9)+parseInt(_0x129c43(0x18f))/0xa*(-parseInt(_0x129c43(0x184))/0xb);if(_0x1385ce===_0x5c3a00)break;else _0x424d74['push'](_0x424d74['shift']());}catch(_0x4a5aa1){_0x424d74['push'](_0x424d74['shift']());}}}(a53_0x1dd7,0x244c0));function a53_0x1dd7(){const _0x476536=['trim','company','appcode','320784uogzJT','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','100ofKKkL','errors','frontmatterDisplayName','appCode','resolvedSlug','\x20version\x20','warnings','submitted','valid','existing','dir','23424CjObxd','scope','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','NAMESPACE_ONLY','diagram-file','files','publishInput','51396sedUTS','skillCode','confirm-warnings','POST','639891WVfltU','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Submitted\x20company\x20Skill\x20','5pvuBLo','/publish/validate','str','/api/cli/v1/skills/','Personal','unknown','../../core/api-client.js','bool','accessKey','\x20Skill\x20','../../skills/runtime-skill-sync.js','resolvedVersion','savedSkill','payload','333vjeClz','input','PRIVATE','authRequired','status','personal','Updated\x20personal\x20Skill\x20','remoteForPreflight','26103VsCOcg','248875PegPdB','4xXaMzm','Created\x20personal\x20Skill\x20','Company','version','8268ZpPVRp'];a53_0x1dd7=function(){return _0x476536;};return a53_0x1dd7();}import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a53_0x1a50(_0x19d392,_0x389d38){_0x19d392=_0x19d392-0x163;const _0x1dd738=a53_0x1dd7();let _0x1a5019=_0x1dd738[_0x19d392];return _0x1a5019;}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4166c9){const _0x3a179c=a53_0x1a50,{getRuntimeSkillByCode:_0x4d61bc,validateRuntimeSkillPublish:_0x25fa7e}=await import(_0x3a179c(0x173)),{readPushDirectory:_0x2b1933,resolvePushDirectoryIdentity:_0x2eefd4}=await import('../../skills/runtime-skill-sync.js');if(!_0x4166c9[_0x3a179c(0x175)])throw CliErrors[_0x3a179c(0x17e)]();const _0x415acf=resolvePushScope(_0x4166c9),_0x439884=validateSkillDirectory(_0x4166c9[_0x3a179c(0x16f)](_0x3a179c(0x199)));throwIfSkillValidationFailed(_0x439884);const {diagram:_0x53ff4b,sourceFilePath:_0x17fb38}=await readRequiredSkillDiagramInput(_0x4166c9[_0x3a179c(0x16f)](_0x3a179c(0x163))),_0x4ce4f1=diagramPackageExclusion(_0x17fb38),_0x420e4f=_0x2eefd4(_0x439884[_0x3a179c(0x199)],_0x4166c9[_0x3a179c(0x192)],remoteFirstMetadataOptions()),_0x65ec87=await _0x4d61bc(_0x4166c9[_0x3a179c(0x192)],_0x420e4f['skillCode']);throwIfBuiltinPushTarget(_0x65ec87);if(_0x415acf===_0x3a179c(0x18b)){const _0x194a97=_0x2b1933(_0x439884[_0x3a179c(0x199)],_0x4166c9['appCode'],{...remoteMissingCompanyReadOptions(),..._0x4ce4f1}),_0x4cfe45=await _0x25fa7e(_0x4166c9['appCode'],withDiagram(_0x194a97[_0x3a179c(0x17c)],_0x53ff4b),{'visibility':_0x3a179c(0x19d)});return{'method':_0x3a179c(0x169),'url':_0x3a179c(0x170)+_0x4166c9[_0x3a179c(0x192)]+'/publish/validate','body':{'skillCode':_0x194a97[_0x3a179c(0x167)],'visibility':'NAMESPACE_ONLY','valid':_0x4cfe45[_0x3a179c(0x197)],'errors':_0x4cfe45[_0x3a179c(0x190)],'warnings':_0x4cfe45[_0x3a179c(0x195)],'resolvedSlug':_0x4cfe45[_0x3a179c(0x193)],'resolvedVersion':_0x4cfe45[_0x3a179c(0x178)],'diagramValidated':_0x4cfe45['diagramValidated']},'description':_0x3a179c(0x18e)};}if(_0x65ec87&&_0x65ec87[_0x3a179c(0x19b)]!==_0x3a179c(0x180))throw CliErrors['validation'](_0x3a179c(0x19c)+_0x420e4f[_0x3a179c(0x167)]+'\x20has\x20scope=\x22'+(_0x65ec87[_0x3a179c(0x19b)]??_0x3a179c(0x172))+'\x22.');const _0x5f0000=_0x2b1933(_0x439884[_0x3a179c(0x199)],_0x4166c9['appCode'],{..._0x65ec87?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x4ce4f1}),_0x5cb916=await _0x25fa7e(_0x4166c9[_0x3a179c(0x192)],withDiagram(_0x5f0000[_0x3a179c(0x17c)],_0x53ff4b),{'visibility':_0x3a179c(0x17d)});return{'method':_0x3a179c(0x169),'url':_0x3a179c(0x170)+_0x4166c9[_0x3a179c(0x192)]+_0x3a179c(0x16e),'body':{'skillCode':_0x5f0000[_0x3a179c(0x167)],'visibility':_0x3a179c(0x17d),'valid':_0x5cb916['valid'],'errors':_0x5cb916[_0x3a179c(0x190)],'warnings':_0x5cb916[_0x3a179c(0x195)],'resolvedSlug':_0x5cb916[_0x3a179c(0x193)],'resolvedVersion':_0x5cb916['resolvedVersion'],'diagramValidated':_0x5cb916['diagramValidated']},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x3c0e3d){const _0x8f2ec5=a53_0x1a50,{createPersonalRuntimeSkill:_0x21018a,downloadRuntimeSkillPackage:_0x58f2df,getRuntimeSkillByCode:_0x1ae210,publishCompanyRuntimeSkill:_0x41d7a9,updatePersonalRuntimeSkill:_0x43f44e,validateRuntimeSkillPublish:_0x51a58f}=await import(_0x8f2ec5(0x173)),{verifyRuntimeSkillPackage:_0x553b1d,verifyRuntimeSkillBundle:_0x246494,readPushDirectory:_0x5bddd0,refreshPushDirectoryMetadataFromRemote:_0x7244c2,recordPushedRuntimeSkill:_0x13939c,resolvePushDirectoryIdentity:_0x2c8e98}=await import(_0x8f2ec5(0x177));if(!_0x3c0e3d[_0x8f2ec5(0x175)])throw CliErrors[_0x8f2ec5(0x17e)]();const _0x445abf=resolvePushScope(_0x3c0e3d),_0x51c189=_0x3c0e3d[_0x8f2ec5(0x174)](_0x8f2ec5(0x168))||_0x3c0e3d[_0x8f2ec5(0x174)]('confirmWarnings'),_0x9950c5=validateSkillDirectory(_0x3c0e3d['str']('dir'));throwIfSkillValidationFailed(_0x9950c5);const {diagram:_0x408dfc,sourceFilePath:_0x4b69be}=await readRequiredSkillDiagramInput(_0x3c0e3d[_0x8f2ec5(0x16f)]('diagram-file')),_0x581ff4=diagramPackageExclusion(_0x4b69be),_0x4537cb=_0x9950c5[_0x8f2ec5(0x199)];let _0x46b016;if(_0x445abf===_0x8f2ec5(0x18b)){const _0x437d04=_0x2c8e98(_0x4537cb,_0x3c0e3d[_0x8f2ec5(0x192)],remoteFirstMetadataOptions()),_0x36cccc=await _0x1ae210(_0x3c0e3d[_0x8f2ec5(0x192)],_0x437d04[_0x8f2ec5(0x167)]);throwIfBuiltinPushTarget(_0x36cccc);if(_0x36cccc)_0x7244c2(_0x4537cb,_0x36cccc,_0x3c0e3d['appCode']);const _0x191757=_0x5bddd0(_0x4537cb,_0x3c0e3d[_0x8f2ec5(0x192)],{..._0x36cccc?{'targetScope':_0x8f2ec5(0x18b),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x581ff4});_0x46b016={'scope':_0x8f2ec5(0x18b),'payload':_0x191757,'publishInput':withDiagram(_0x191757['input'],_0x408dfc),'remoteForPreflight':_0x36cccc,'warnings':[]};}else{const _0x13d096=_0x3c0e3d['str'](_0x8f2ec5(0x18c))[_0x8f2ec5(0x18a)](),_0x1170ef=Boolean(_0x13d096),_0x52c4fa=allowRetargetArgs(_0x1170ef),_0x19d68e=_0x2c8e98(_0x4537cb,_0x3c0e3d['appCode'],{...remoteFirstMetadataOptions(),..._0x52c4fa[0x0]}),_0xac008f=await _0x1ae210(_0x3c0e3d[_0x8f2ec5(0x192)],_0x19d68e[_0x8f2ec5(0x167)]);throwIfBuiltinPushTarget(_0xac008f);if(_0xac008f){if(_0xac008f[_0x8f2ec5(0x19b)]!=='personal'){if(_0x1170ef)throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x19d68e[_0x8f2ec5(0x167)]+'\x20has\x20scope=\x22'+(_0xac008f[_0x8f2ec5(0x19b)]??'unknown')+'\x22.');_0x7244c2(_0x4537cb,_0xac008f,_0x3c0e3d['appCode']);}else!_0x1170ef&&_0x7244c2(_0x4537cb,_0xac008f,_0x3c0e3d[_0x8f2ec5(0x192)]);}const _0x5a7d87=_0x5bddd0(_0x4537cb,_0x3c0e3d[_0x8f2ec5(0x192)],{..._0xac008f?remotePersonalReadOptions(_0x1170ef,_0x52c4fa[0x0]):remoteMissingPersonalReadOptions(_0x52c4fa[0x0]),..._0x581ff4}),_0x25896d=_0xac008f?.[_0x8f2ec5(0x19b)]==='personal'&&_0xac008f[_0x8f2ec5(0x167)]===_0x5a7d87[_0x8f2ec5(0x167)]?_0xac008f:undefined,_0x204a67=_0x1170ef&&_0x25896d?withRetargetExistingMetadata(_0x5a7d87[_0x8f2ec5(0x17c)],_0x25896d,{'preferInputSkillName':Boolean(_0x5a7d87[_0x8f2ec5(0x191)])}):_0x5a7d87[_0x8f2ec5(0x17c)],_0xb2a578=_0x1170ef?buildRetargetWarning(_0x19d68e['metadata'],_0x3c0e3d[_0x8f2ec5(0x192)]):[];_0x46b016={'scope':_0x8f2ec5(0x180),'payload':_0x5a7d87,'publishInput':withDiagram(_0x204a67,_0x408dfc),'remoteForPreflight':_0x25896d,'existing':_0x25896d,'warnings':[..._0x9950c5['warnings'],..._0xb2a578]};}const _0x2d9294=await runRemoteContentPreflight({'scope':_0x46b016[_0x8f2ec5(0x19b)],'remote':_0x46b016[_0x8f2ec5(0x182)],'publishInput':_0x46b016['publishInput'],'skillCode':_0x46b016[_0x8f2ec5(0x17a)][_0x8f2ec5(0x167)],'appCode':_0x3c0e3d[_0x8f2ec5(0x192)],'downloadRuntimeSkillPackage':_0x58f2df,'verifyRuntimeSkillBundle':_0x246494});if(_0x2d9294[_0x8f2ec5(0x17f)]==='identical')return _0x46b016['scope']===_0x8f2ec5(0x18b)?_0x13939c(_0x4537cb,_0x2d9294[_0x8f2ec5(0x179)],_0x3c0e3d[_0x8f2ec5(0x192)],{'scope':_0x8f2ec5(0x18b)}):_0x13939c(_0x4537cb,_0x2d9294[_0x8f2ec5(0x179)],_0x3c0e3d['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2d9294['savedSkill']),'scope':_0x46b016[_0x8f2ec5(0x19b)],..._0x46b016[_0x8f2ec5(0x19b)]==='personal'?{'warnings':_0x46b016[_0x8f2ec5(0x195)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x46b016[_0x8f2ec5(0x19b)])+_0x8f2ec5(0x176)+_0x46b016[_0x8f2ec5(0x17a)][_0x8f2ec5(0x167)]+_0x8f2ec5(0x16b)};if(_0x46b016[_0x8f2ec5(0x19b)]==='company'){const _0x50eee3=await _0x51a58f(_0x3c0e3d['appCode'],_0x46b016[_0x8f2ec5(0x165)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x8f2ec5(0x18b),_0x46b016[_0x8f2ec5(0x17a)][_0x8f2ec5(0x167)],_0x50eee3),throwIfUnconfirmedPublishWarnings(_0x8f2ec5(0x18b),_0x46b016[_0x8f2ec5(0x17a)][_0x8f2ec5(0x167)],_0x50eee3[_0x8f2ec5(0x195)],_0x51c189);const _0x3d35a7=await _0x41d7a9(_0x3c0e3d[_0x8f2ec5(0x192)],_0x46b016['publishInput'],{'confirmWarnings':_0x51c189});return _0x13939c(_0x4537cb,{..._0x3d35a7,'files':_0x46b016[_0x8f2ec5(0x165)]['files']},_0x3c0e3d[_0x8f2ec5(0x192)],{'scope':_0x8f2ec5(0x18b)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3d35a7),'scope':_0x8f2ec5(0x18b),'reviewState':_0x8f2ec5(0x196),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x50eee3['warnings']}},'message':_0x8f2ec5(0x16c)+_0x46b016['payload'][_0x8f2ec5(0x167)]+_0x8f2ec5(0x194)+(_0x3d35a7[_0x8f2ec5(0x188)]??'(unknown)')+'\x20for\x20review'};}const _0x4077b1=await _0x51a58f(_0x3c0e3d[_0x8f2ec5(0x192)],_0x46b016[_0x8f2ec5(0x165)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x8f2ec5(0x180),_0x46b016[_0x8f2ec5(0x17a)]['skillCode'],_0x4077b1),throwIfUnconfirmedPublishWarnings('personal',_0x46b016['payload']['skillCode'],_0x4077b1['warnings'],_0x51c189);const _0x44894d={'confirmWarnings':_0x51c189},_0x5c7beb=_0x46b016[_0x8f2ec5(0x198)]?await _0x43f44e(_0x46b016[_0x8f2ec5(0x17a)]['skillCode'],_0x3c0e3d[_0x8f2ec5(0x192)],_0x46b016[_0x8f2ec5(0x165)],_0x44894d):await _0x21018a(_0x3c0e3d[_0x8f2ec5(0x192)],_0x46b016[_0x8f2ec5(0x165)],_0x44894d);let _0xee6c95=_0x5c7beb;if(isMultiFileManifest(_0x46b016[_0x8f2ec5(0x165)]['files'])){const _0x4132ae=await _0x58f2df(_0x8f2ec5(0x180),_0x5c7beb[_0x8f2ec5(0x167)]||_0x46b016[_0x8f2ec5(0x17a)]['skillCode'],_0x3c0e3d[_0x8f2ec5(0x192)]);_0x246494(_0x46b016[_0x8f2ec5(0x165)][_0x8f2ec5(0x164)],_0x4132ae),_0xee6c95={..._0x5c7beb,'files':_0x46b016['publishInput'][_0x8f2ec5(0x164)]};}else{if(isPackageBackedManifest(_0x5c7beb[_0x8f2ec5(0x164)])){const _0x2388e1=await _0x58f2df('personal',_0x5c7beb[_0x8f2ec5(0x167)]||_0x46b016[_0x8f2ec5(0x17a)][_0x8f2ec5(0x167)],_0x3c0e3d[_0x8f2ec5(0x192)]);_0x553b1d(_0x5c7beb[_0x8f2ec5(0x164)],_0x2388e1);}}return _0x13939c(_0x4537cb,_0xee6c95,_0x3c0e3d[_0x8f2ec5(0x192)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5c7beb),'warnings':_0x46b016['warnings'],'validation':{'warnings':_0x4077b1['warnings']},'diagramBound':!![]},'message':_0x46b016[_0x8f2ec5(0x198)]?_0x8f2ec5(0x181)+_0x46b016[_0x8f2ec5(0x17a)]['skillCode']:_0x8f2ec5(0x186)+_0x46b016['payload'][_0x8f2ec5(0x167)]};}function scopeLabel(_0x1768a2){const _0x153246=a53_0x1a50;return _0x1768a2==='company'?_0x153246(0x187):_0x153246(0x171);}function withDiagram(_0x4722f1,_0x365075){return{..._0x4722f1,'diagram':_0x365075};}function diagramPackageExclusion(_0x4f29c8){return _0x4f29c8?{'excludedFilePaths':[_0x4f29c8]}:{};}
|
|
1
|
+
(function(_0x35bea8,_0x44b72a){const _0x19c568=a53_0xe1f2,_0x566172=_0x35bea8();while(!![]){try{const _0x57ddd3=parseInt(_0x19c568(0x1d5))/0x1+parseInt(_0x19c568(0x1c9))/0x2*(parseInt(_0x19c568(0x1f5))/0x3)+parseInt(_0x19c568(0x1cf))/0x4+-parseInt(_0x19c568(0x1e4))/0x5*(-parseInt(_0x19c568(0x1d9))/0x6)+parseInt(_0x19c568(0x1f6))/0x7*(-parseInt(_0x19c568(0x1ed))/0x8)+parseInt(_0x19c568(0x1db))/0x9+-parseInt(_0x19c568(0x1f2))/0xa*(parseInt(_0x19c568(0x1f9))/0xb);if(_0x57ddd3===_0x44b72a)break;else _0x566172['push'](_0x566172['shift']());}catch(_0x32fd39){_0x566172['push'](_0x566172['shift']());}}}(a53_0x3cc6,0x68b71));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x41d878){const _0x34fa19=a53_0xe1f2,{getRuntimeSkillByCode:_0x5591e4,validateRuntimeSkillPublish:_0x123766}=await import(_0x34fa19(0x1d0)),{readPushDirectory:_0x4d5e7a,resolvePushDirectoryIdentity:_0x339485}=await import(_0x34fa19(0x1e1));if(!_0x41d878[_0x34fa19(0x1c6)])throw CliErrors[_0x34fa19(0x1e7)]();const _0x5f0df4=resolvePushScope(_0x41d878),_0x2a5687=validateSkillDirectory(_0x41d878[_0x34fa19(0x1ee)](_0x34fa19(0x1df)));throwIfSkillValidationFailed(_0x2a5687);const {diagram:_0x4b5a5d,sourceFilePath:_0x1e0437}=await readRequiredSkillDiagramInput(_0x41d878[_0x34fa19(0x1ee)](_0x34fa19(0x1ec))),_0x57ce73=diagramPackageExclusion(_0x1e0437),_0x3b6ebc=_0x339485(_0x2a5687[_0x34fa19(0x1df)],_0x41d878['appCode'],remoteFirstMetadataOptions()),_0x5f086f=await _0x5591e4(_0x41d878[_0x34fa19(0x1e3)],_0x3b6ebc[_0x34fa19(0x1f3)]);throwIfBuiltinPushTarget(_0x5f086f);if(_0x5f0df4===_0x34fa19(0x1d2)){const _0x38e374=_0x4d5e7a(_0x2a5687['dir'],_0x41d878[_0x34fa19(0x1e3)],{...remoteMissingCompanyReadOptions(),..._0x57ce73}),_0x4902da=await _0x123766(_0x41d878['appCode'],withDiagram(_0x38e374[_0x34fa19(0x1ef)],_0x4b5a5d),{'visibility':_0x34fa19(0x1c8)});return{'method':'POST','url':_0x34fa19(0x1e5)+_0x41d878[_0x34fa19(0x1e3)]+_0x34fa19(0x1f8),'body':{'skillCode':_0x38e374[_0x34fa19(0x1f3)],'visibility':_0x34fa19(0x1c8),'valid':_0x4902da[_0x34fa19(0x1d4)],'errors':_0x4902da[_0x34fa19(0x1fc)],'warnings':_0x4902da[_0x34fa19(0x1bd)],'resolvedSlug':_0x4902da[_0x34fa19(0x1de)],'resolvedVersion':_0x4902da[_0x34fa19(0x1fb)],'diagramValidated':_0x4902da[_0x34fa19(0x1c4)]},'description':_0x34fa19(0x1bc)};}if(_0x5f086f&&_0x5f086f[_0x34fa19(0x1dc)]!==_0x34fa19(0x1ce))throw CliErrors[_0x34fa19(0x1cb)](_0x34fa19(0x1c1)+_0x3b6ebc[_0x34fa19(0x1f3)]+'\x20has\x20scope=\x22'+(_0x5f086f[_0x34fa19(0x1dc)]??_0x34fa19(0x1e9))+'\x22.');const _0x11e179=_0x4d5e7a(_0x2a5687['dir'],_0x41d878[_0x34fa19(0x1e3)],{..._0x5f086f?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x57ce73}),_0x1f0241=await _0x123766(_0x41d878[_0x34fa19(0x1e3)],withDiagram(_0x11e179[_0x34fa19(0x1ef)],_0x4b5a5d),{'visibility':_0x34fa19(0x1cc)});return{'method':_0x34fa19(0x1f4),'url':_0x34fa19(0x1e5)+_0x41d878['appCode']+_0x34fa19(0x1f8),'body':{'skillCode':_0x11e179[_0x34fa19(0x1f3)],'visibility':'PRIVATE','valid':_0x1f0241[_0x34fa19(0x1d4)],'errors':_0x1f0241['errors'],'warnings':_0x1f0241[_0x34fa19(0x1bd)],'resolvedSlug':_0x1f0241[_0x34fa19(0x1de)],'resolvedVersion':_0x1f0241[_0x34fa19(0x1fb)],'diagramValidated':_0x1f0241['diagramValidated']},'description':_0x34fa19(0x1c3)};}function a53_0xe1f2(_0x1c8f1a,_0x43081c){_0x1c8f1a=_0x1c8f1a-0x1bc;const _0x3cc65d=a53_0x3cc6();let _0xe1f26e=_0x3cc65d[_0x1c8f1a];return _0xe1f26e;}export async function skillPushExecute(_0x154780){const _0x146213=a53_0xe1f2,{createPersonalRuntimeSkill:_0x5bf894,downloadRuntimeSkillPackage:_0xf4c357,getRuntimeSkillByCode:_0x573e24,publishCompanyRuntimeSkill:_0x511121,updatePersonalRuntimeSkill:_0x5243f1,validateRuntimeSkillPublish:_0xb0b612}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x33996e,verifyRuntimeSkillBundle:_0xe83082,readPushDirectory:_0x3f0246,refreshPushDirectoryMetadataFromRemote:_0x43d9ab,recordPushedRuntimeSkill:_0x324bc6,resolvePushDirectoryIdentity:_0x1fe456}=await import('../../skills/runtime-skill-sync.js');if(!_0x154780[_0x146213(0x1c6)])throw CliErrors[_0x146213(0x1e7)]();const _0x45018e=resolvePushScope(_0x154780),_0x3883b6=_0x154780['bool'](_0x146213(0x1eb))||_0x154780[_0x146213(0x1d6)](_0x146213(0x1dd)),_0x181dfc=validateSkillDirectory(_0x154780[_0x146213(0x1ee)](_0x146213(0x1df)));throwIfSkillValidationFailed(_0x181dfc);const {diagram:_0x19e98d,sourceFilePath:_0x2c32e5}=await readRequiredSkillDiagramInput(_0x154780[_0x146213(0x1ee)]('diagram-file')),_0x22d93c=diagramPackageExclusion(_0x2c32e5),_0x31d15c=_0x181dfc[_0x146213(0x1df)];let _0x1516c7;if(_0x45018e==='company'){const _0x4c193c=_0x1fe456(_0x31d15c,_0x154780[_0x146213(0x1e3)],remoteFirstMetadataOptions()),_0x26753e=await _0x573e24(_0x154780['appCode'],_0x4c193c['skillCode']);throwIfBuiltinPushTarget(_0x26753e);if(_0x26753e)_0x43d9ab(_0x31d15c,_0x26753e,_0x154780[_0x146213(0x1e3)]);const _0x52d7e8=_0x3f0246(_0x31d15c,_0x154780[_0x146213(0x1e3)],{..._0x26753e?{'targetScope':_0x146213(0x1d2),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x22d93c});_0x1516c7={'scope':_0x146213(0x1d2),'payload':_0x52d7e8,'publishInput':withDiagram(_0x52d7e8[_0x146213(0x1ef)],_0x19e98d),'remoteForPreflight':_0x26753e,'warnings':[]};}else{const _0x54e04e=_0x154780[_0x146213(0x1ee)](_0x146213(0x1d3))[_0x146213(0x1e8)](),_0x48b788=Boolean(_0x54e04e),_0x33ff7c=allowRetargetArgs(_0x48b788),_0x49c572=_0x1fe456(_0x31d15c,_0x154780[_0x146213(0x1e3)],{...remoteFirstMetadataOptions(),..._0x33ff7c[0x0]}),_0x459488=await _0x573e24(_0x154780[_0x146213(0x1e3)],_0x49c572['skillCode']);throwIfBuiltinPushTarget(_0x459488);if(_0x459488){if(_0x459488[_0x146213(0x1dc)]!==_0x146213(0x1ce)){if(_0x48b788)throw CliErrors[_0x146213(0x1cb)](_0x146213(0x1c1)+_0x49c572[_0x146213(0x1f3)]+_0x146213(0x1cd)+(_0x459488[_0x146213(0x1dc)]??_0x146213(0x1e9))+'\x22.');_0x43d9ab(_0x31d15c,_0x459488,_0x154780[_0x146213(0x1e3)]);}else!_0x48b788&&_0x43d9ab(_0x31d15c,_0x459488,_0x154780[_0x146213(0x1e3)]);}const _0x47bf0c=_0x3f0246(_0x31d15c,_0x154780[_0x146213(0x1e3)],{..._0x459488?remotePersonalReadOptions(_0x48b788,_0x33ff7c[0x0]):remoteMissingPersonalReadOptions(_0x33ff7c[0x0]),..._0x22d93c}),_0x3d25ac=_0x459488?.['scope']===_0x146213(0x1ce)&&_0x459488[_0x146213(0x1f3)]===_0x47bf0c[_0x146213(0x1f3)]?_0x459488:undefined,_0x59e65d=_0x48b788&&_0x3d25ac?withRetargetExistingMetadata(_0x47bf0c[_0x146213(0x1ef)],_0x3d25ac,{'preferInputSkillName':Boolean(_0x47bf0c[_0x146213(0x1c2)])}):_0x47bf0c[_0x146213(0x1ef)],_0x2fbd34=_0x48b788?buildRetargetWarning(_0x49c572['metadata'],_0x154780[_0x146213(0x1e3)]):[];_0x1516c7={'scope':_0x146213(0x1ce),'payload':_0x47bf0c,'publishInput':withDiagram(_0x59e65d,_0x19e98d),'remoteForPreflight':_0x3d25ac,'existing':_0x3d25ac,'warnings':[..._0x181dfc[_0x146213(0x1bd)],..._0x2fbd34]};}const _0xb3426c=await runRemoteContentPreflight({'scope':_0x1516c7[_0x146213(0x1dc)],'remote':_0x1516c7[_0x146213(0x1c7)],'publishInput':_0x1516c7[_0x146213(0x1bf)],'skillCode':_0x1516c7['payload'][_0x146213(0x1f3)],'appCode':_0x154780[_0x146213(0x1e3)],'downloadRuntimeSkillPackage':_0xf4c357,'verifyRuntimeSkillBundle':_0xe83082});if(_0xb3426c[_0x146213(0x1fa)]===_0x146213(0x1d1))return _0x1516c7[_0x146213(0x1dc)]===_0x146213(0x1d2)?_0x324bc6(_0x31d15c,_0xb3426c[_0x146213(0x1f0)],_0x154780['appCode'],{'scope':_0x146213(0x1d2)}):_0x324bc6(_0x31d15c,_0xb3426c['savedSkill'],_0x154780[_0x146213(0x1e3)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xb3426c[_0x146213(0x1f0)]),'scope':_0x1516c7[_0x146213(0x1dc)],..._0x1516c7['scope']===_0x146213(0x1ce)?{'warnings':_0x1516c7[_0x146213(0x1bd)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x1516c7[_0x146213(0x1dc)])+_0x146213(0x1f1)+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]+_0x146213(0x1c0)};if(_0x1516c7[_0x146213(0x1dc)]===_0x146213(0x1d2)){const _0x25c391=await _0xb0b612(_0x154780['appCode'],_0x1516c7[_0x146213(0x1bf)],{'visibility':_0x146213(0x1c8)});throwIfPublishValidationFailed(_0x146213(0x1d2),_0x1516c7['payload']['skillCode'],_0x25c391),throwIfUnconfirmedPublishWarnings(_0x146213(0x1d2),_0x1516c7['payload']['skillCode'],_0x25c391[_0x146213(0x1bd)],_0x3883b6);const _0x34861a=await _0x511121(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],{'confirmWarnings':_0x3883b6});return _0x324bc6(_0x31d15c,{..._0x34861a,'files':_0x1516c7['publishInput'][_0x146213(0x1ea)]},_0x154780['appCode'],{'scope':_0x146213(0x1d2)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x34861a),'scope':'company','reviewState':_0x146213(0x1c5),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x25c391[_0x146213(0x1bd)]}},'message':_0x146213(0x1da)+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]+_0x146213(0x1d8)+(_0x34861a[_0x146213(0x1d7)]??_0x146213(0x1be))+_0x146213(0x1e0)};}const _0x264aba=await _0xb0b612(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],{'visibility':_0x146213(0x1cc)});throwIfPublishValidationFailed(_0x146213(0x1ce),_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x264aba),throwIfUnconfirmedPublishWarnings('personal',_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x264aba[_0x146213(0x1bd)],_0x3883b6);const _0x47ce34={'confirmWarnings':_0x3883b6},_0xb0cf1f=_0x1516c7['existing']?await _0x5243f1(_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],_0x47ce34):await _0x5bf894(_0x154780[_0x146213(0x1e3)],_0x1516c7[_0x146213(0x1bf)],_0x47ce34);let _0xb4130a=_0xb0cf1f;if(isMultiFileManifest(_0x1516c7[_0x146213(0x1bf)][_0x146213(0x1ea)])){const _0x525348=await _0xf4c357(_0x146213(0x1ce),_0xb0cf1f['skillCode']||_0x1516c7[_0x146213(0x1e2)]['skillCode'],_0x154780[_0x146213(0x1e3)]);_0xe83082(_0x1516c7[_0x146213(0x1bf)][_0x146213(0x1ea)],_0x525348),_0xb4130a={..._0xb0cf1f,'files':_0x1516c7[_0x146213(0x1bf)]['files']};}else{if(isPackageBackedManifest(_0xb0cf1f['files'])){const _0x17efe3=await _0xf4c357(_0x146213(0x1ce),_0xb0cf1f[_0x146213(0x1f3)]||_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)],_0x154780[_0x146213(0x1e3)]);_0x33996e(_0xb0cf1f['files'],_0x17efe3);}}return _0x324bc6(_0x31d15c,_0xb4130a,_0x154780['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xb0cf1f),'warnings':_0x1516c7[_0x146213(0x1bd)],'validation':{'warnings':_0x264aba[_0x146213(0x1bd)]},'diagramBound':!![]},'message':_0x1516c7[_0x146213(0x1e6)]?_0x146213(0x1ca)+_0x1516c7['payload'][_0x146213(0x1f3)]:'Created\x20personal\x20Skill\x20'+_0x1516c7[_0x146213(0x1e2)][_0x146213(0x1f3)]};}function a53_0x3cc6(){const _0x51ae5f=['Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','warnings','(unknown)','publishInput','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','frontmatterDisplayName','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','diagramValidated','submitted','accessKey','remoteForPreflight','NAMESPACE_ONLY','2gFTmvF','Updated\x20personal\x20Skill\x20','validation','PRIVATE','\x20has\x20scope=\x22','personal','3303236esbvjG','../../core/api-client.js','identical','company','appcode','valid','382600jyLDxO','bool','version','\x20version\x20','41178BudoVU','Submitted\x20company\x20Skill\x20','5639670HWUVsl','scope','confirmWarnings','resolvedSlug','dir','\x20for\x20review','../../skills/runtime-skill-sync.js','payload','appCode','395ACaClt','/api/cli/v1/skills/','existing','authRequired','trim','unknown','files','confirm-warnings','diagram-file','16LEbiAi','str','input','savedSkill','\x20Skill\x20','417070AWkAwx','skillCode','POST','804255KIzLYM','2502276DtsqPd','Company','/publish/validate','396oqFAJT','status','resolvedVersion','errors'];a53_0x3cc6=function(){return _0x51ae5f;};return a53_0x3cc6();}function scopeLabel(_0x1f9de7){const _0x229866=a53_0xe1f2;return _0x1f9de7===_0x229866(0x1d2)?_0x229866(0x1f7):'Personal';}function withDiagram(_0x59e152,_0x4b5140){return{..._0x59e152,'diagram':_0x4b5140};}function diagramPackageExclusion(_0x5b5633){return _0x5b5633?{'excludedFilePaths':[_0x5b5633]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a54_0x5e10(){const _0x1bda89=['704041DJxMWH','downloadRuntimeSkillPackage','version','2312585YCYfcR','53615ISLnSh','builtin','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Warnings:\x20','230787EUfWoY','\x20after\x20successful\x20push.','172tVXwKp','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','personal','(unknown)','company','validation','remote','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','88rMjtPx','Local\x20Skill\x20metadata\x20appCode\x20','lovrabet.skill.json','length','SkillHub\x20validation\x20returned\x20invalid.','appCode','publishInput','2wzsqTg','5152FrCguZ','verifyRuntimeSkillBundle','\x20cannot\x20be\x20pushed.','identical','skillCode','files','Company','\x20Skill\x20push\x20validation\x20failed\x20for\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Builtin\x20Skill\x20','join','warnings','errors','Personal','1215351hgLEpd','scope','10ZnIebJ','not-applicable','6354kbdjDQ','22463856SRNoBG'];a54_0x5e10=function(){return _0x1bda89;};return a54_0x5e10();}(function(_0x58d38b,_0x439ece){const _0x3d1044=a54_0x3ca1,_0x5e1ca5=_0x58d38b();while(!![]){try{const _0x200c14=-parseInt(_0x3d1044(0x130))/0x1*(-parseInt(_0x3d1044(0x11a))/0x2)+parseInt(_0x3d1044(0x12a))/0x3+parseInt(_0x3d1044(0x10b))/0x4*(parseInt(_0x3d1044(0x105))/0x5)+-parseInt(_0x3d1044(0x12e))/0x6*(-parseInt(_0x3d1044(0x11b))/0x7)+parseInt(_0x3d1044(0x113))/0x8*(-parseInt(_0x3d1044(0x109))/0x9)+parseInt(_0x3d1044(0x12c))/0xa*(parseInt(_0x3d1044(0x104))/0xb)+-parseInt(_0x3d1044(0x12f))/0xc;if(_0x200c14===_0x439ece)break;else _0x5e1ca5['push'](_0x5e1ca5['shift']());}catch(_0x5afbd9){_0x5e1ca5['push'](_0x5e1ca5['shift']());}}}(a54_0x5e10,0x63155));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x240f4e){const _0x546c4b=a54_0x3ca1,_0x1cf26a=_0x240f4e['str'](_0x546c4b(0x12b))||_0x546c4b(0x10d);if(_0x1cf26a===_0x546c4b(0x10d)||_0x1cf26a===_0x546c4b(0x10f))return _0x1cf26a;throw CliErrors[_0x546c4b(0x110)]('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x1cf26a+'\x22.');}export function allowRetargetArgs(_0x395224){return _0x395224?[{'allowAppCodeRetarget':!![]}]:[];}function a54_0x3ca1(_0x44b30e,_0x2ba336){_0x44b30e=_0x44b30e-0x102;const _0x5e109e=a54_0x5e10();let _0x3ca14d=_0x5e109e[_0x44b30e];return _0x3ca14d;}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0xec2974=a54_0x3ca1;return{'targetScope':_0xec2974(0x10f),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4db3c3={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4db3c3};}export function remotePersonalReadOptions(_0x2cffd0,_0x56b607={}){return{'ignoreInvalidMetadata':!![],..._0x2cffd0?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x56b607};}export function throwIfBuiltinPushTarget(_0x352a85){const _0x180969=a54_0x3ca1;if(_0x352a85?.[_0x180969(0x12b)]!==_0x180969(0x106))return;throw CliErrors['validation'](_0x180969(0x125)+(_0x352a85[_0x180969(0x11f)]??_0x180969(0x10e))+_0x180969(0x11d),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x2fc503,_0x589710,_0x1c7825){const _0x4416fc=a54_0x3ca1;if(_0x1c7825[_0x4416fc(0x128)][_0x4416fc(0x116)]===0x0&&(_0x1c7825['valid']||_0x1c7825[_0x4416fc(0x127)][_0x4416fc(0x116)]>0x0))return;const _0x18ea29=_0x1c7825['errors'][_0x4416fc(0x116)]>0x0?_0x1c7825[_0x4416fc(0x128)][_0x4416fc(0x126)](';\x20'):_0x4416fc(0x117),_0x26e8ac=_0x2fc503==='company'?_0x4416fc(0x121):_0x4416fc(0x129);throw CliErrors[_0x4416fc(0x110)](_0x26e8ac+_0x4416fc(0x122)+_0x589710+'.',_0x18ea29);}export function throwIfUnconfirmedPublishWarnings(_0x5d851b,_0x1e41e2,_0x44919d,_0xfe3510){const _0xf59514=a54_0x3ca1;if(_0x44919d[_0xf59514(0x116)]===0x0||_0xfe3510)return;const _0x59068d=_0x5d851b==='company'?_0xf59514(0x121):'Personal';throw CliErrors[_0xf59514(0x110)](_0x59068d+_0xf59514(0x112)+_0x1e41e2+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0xf59514(0x10c),_0xf59514(0x107),_0xf59514(0x108)+_0x44919d[_0xf59514(0x126)](';\x20')][_0xf59514(0x126)]('\x20'));}export function buildRetargetWarning(_0x251972,_0x118c7d){const _0x4d5092=a54_0x3ca1;if(!_0x251972?.[_0x4d5092(0x118)]||_0x251972[_0x4d5092(0x118)]===_0x118c7d)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':_0x4d5092(0x115),'message':_0x4d5092(0x114)+_0x251972[_0x4d5092(0x118)]+_0x4d5092(0x124)+_0x118c7d+_0x4d5092(0x10a),'suggestion':_0x4d5092(0x123)}];}export async function runRemoteContentPreflight(_0x1b7f9e){const _0x3619a3=a54_0x3ca1;if(!_0x1b7f9e['remote']||_0x1b7f9e[_0x3619a3(0x111)][_0x3619a3(0x12b)]!==_0x1b7f9e[_0x3619a3(0x12b)]||!_0x1b7f9e[_0x3619a3(0x119)][_0x3619a3(0x120)])return{'status':'not-applicable'};const _0xd796ad=_0x1b7f9e['remote']['skillCode']||_0x1b7f9e[_0x3619a3(0x11f)];if(!_0xd796ad)return{'status':_0x3619a3(0x12d)};const _0x4d44a0=await _0x1b7f9e[_0x3619a3(0x102)](_0x1b7f9e[_0x3619a3(0x12b)],_0xd796ad,_0x1b7f9e[_0x3619a3(0x118)],_0x1b7f9e[_0x3619a3(0x111)][_0x3619a3(0x103)]);try{_0x1b7f9e[_0x3619a3(0x11c)](_0x1b7f9e['publishInput'][_0x3619a3(0x120)],_0x4d44a0);}catch{return{'status':'different'};}return{'status':_0x3619a3(0x11e),'savedSkill':{..._0x1b7f9e[_0x3619a3(0x111)],'content':_0x1b7f9e['publishInput']['content'],'files':_0x1b7f9e[_0x3619a3(0x119)][_0x3619a3(0x120)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xce6757,_0xc455b1){const _0xcfe97e=a55_0x1e3b,_0x1c97a2=_0xce6757();while(!![]){try{const _0x1e404a=parseInt(_0xcfe97e(0xd7))/0x1+parseInt(_0xcfe97e(0xd3))/0x2*(parseInt(_0xcfe97e(0xe2))/0x3)+parseInt(_0xcfe97e(0xd1))/0x4*(parseInt(_0xcfe97e(0xe4))/0x5)+parseInt(_0xcfe97e(0xcf))/0x6*(-parseInt(_0xcfe97e(0xd0))/0x7)+-parseInt(_0xcfe97e(0xd8))/0x8+-parseInt(_0xcfe97e(0xd2))/0x9*(-parseInt(_0xcfe97e(0xdb))/0xa)+-parseInt(_0xcfe97e(0xe0))/0xb;if(_0x1e404a===_0xc455b1)break;else _0x1c97a2['push'](_0x1c97a2['shift']());}catch(_0x8724ec){_0x1c97a2['push'](_0x1c97a2['shift']());}}}(a55_0x6d6f,0xe2723));function a55_0x1e3b(_0x33e773,_0x7d22f3){_0x33e773=_0x33e773-0xcd;const _0x6d6fb7=a55_0x6d6f();let _0x1e3bbf=_0x6d6fb7[_0x33e773];return _0x1e3bbf;}export function withRetargetExistingMetadata(_0x49599c,_0xc09e58,_0x488179={}){const _0x4a077b=a55_0x1e3b,_0x21fd1a=_0x488179[_0x4a077b(0xdd)]?_0x49599c['skillName']??_0xc09e58[_0x4a077b(0xd4)]:_0xc09e58[_0x4a077b(0xd4)]??_0x49599c[_0x4a077b(0xd4)];return{..._0x49599c,'skillName':_0x21fd1a,'description':_0xc09e58[_0x4a077b(0xd6)]??_0x49599c['description'],'tags':Array[_0x4a077b(0xde)](_0xc09e58[_0x4a077b(0xd9)])?_0xc09e58[_0x4a077b(0xd9)]:_0x49599c[_0x4a077b(0xd9)],'version':_0xc09e58[_0x4a077b(0xdf)]??_0x49599c[_0x4a077b(0xdf)],'sourceSessionId':_0xc09e58[_0x4a077b(0xe1)]??_0x49599c[_0x4a077b(0xe1)]};}export function buildRetargetWarning(_0x25dca2,_0x3b8988){const _0x1886ef=a55_0x1e3b;if(!_0x25dca2?.['appCode']||_0x25dca2[_0x1886ef(0xdc)]===_0x3b8988)return[];return[{'level':_0x1886ef(0xda),'ruleId':_0x1886ef(0xe3),'file':'lovrabet.skill.json','message':_0x1886ef(0xd5)+_0x25dca2['appCode']+_0x1886ef(0xcd)+_0x3b8988+_0x1886ef(0xce),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a55_0x6d6f(){const _0xcf28d7=['26277009gODMQs','sourceSessionId','3abyDui','skill-metadata-appcode-retargeted','187415HmGsrF','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','\x20after\x20successful\x20push.','594nAyhxe','13223dHsJaL','148WXYFFS','297NbVvNv','2675298skGaDe','skillName','Local\x20Skill\x20metadata\x20appCode\x20','description','248527NpZBkL','4394840etmutQ','tags','warning','327170FYadwr','appCode','preferInputSkillName','isArray','version'];a55_0x6d6f=function(){return _0xcf28d7;};return a55_0x6d6f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b78fa,_0x2646a5){const _0x813eca=a56_0x5bac,_0x4f76bd=_0x1b78fa();while(!![]){try{const _0x478deb=-parseInt(_0x813eca(0xa9))/0x1*(parseInt(_0x813eca(0xa2))/0x2)+parseInt(_0x813eca(0xb1))/0x3+-parseInt(_0x813eca(0xa3))/0x4+parseInt(_0x813eca(0xb0))/0x5*(-parseInt(_0x813eca(0xab))/0x6)+-parseInt(_0x813eca(0xa8))/0x7*(parseInt(_0x813eca(0xa7))/0x8)+parseInt(_0x813eca(0xac))/0x9+parseInt(_0x813eca(0xaa))/0xa;if(_0x478deb===_0x2646a5)break;else _0x4f76bd['push'](_0x4f76bd['shift']());}catch(_0x30c083){_0x4f76bd['push'](_0x4f76bd['shift']());}}}(a56_0x5ab1,0x2f31b));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1055b0){const _0x1ab001=a56_0x5bac,_0x2c4c7b=_0x1055b0[_0x1ab001(0xa5)]();if(!_0x2c4c7b||_0x2c4c7b==='all')return['personal','company'];if(_0x2c4c7b===_0x1ab001(0xa6)||_0x2c4c7b===_0x1ab001(0xb2))return[_0x2c4c7b];throw CliErrors[_0x1ab001(0xa4)](_0x1ab001(0xad)+_0x1055b0);}export function normalizeListScope(_0x3596e3){const _0x53d4b1=a56_0x5bac,_0x54c811=_0x3596e3[_0x53d4b1(0xa5)]();if(!_0x54c811)return _0x53d4b1(0xae);if(_0x54c811==='personal'||_0x54c811==='company'||_0x54c811===_0x53d4b1(0xae))return _0x54c811;throw CliErrors[_0x53d4b1(0xa4)](_0x53d4b1(0xaf)+_0x3596e3);}export function shouldListScope(_0x184738,_0x599a2f){const _0x103f10=a56_0x5bac;if(_0x184738===_0x103f10(0xae))return!![];return _0x184738===_0x599a2f;}function a56_0x5ab1(){const _0x52115b=['Unsupported\x20Skill\x20list\x20scope:\x20','69845UZnRum','981672kvlEZh','company','2smuMcY','1427932mjYqcE','validation','trim','personal','1285672zXadPW','7dAABuA','137887YejyGi','4002430ddjneV','102ZslOUL','3230028JnnjKd','Unsupported\x20Skill\x20sync\x20scope:\x20','all'];a56_0x5ab1=function(){return _0x52115b;};return a56_0x5ab1();}export function listScopeToRuntimeScopes(_0x5d59fa){const _0x440105=a56_0x5bac;if(_0x5d59fa===_0x440105(0xae))return[_0x440105(0xa6),_0x440105(0xb2)];return[_0x5d59fa===_0x440105(0xb2)?_0x440105(0xb2):_0x5d59fa];}function a56_0x5bac(_0x4fa2a8,_0xc44195){_0x4fa2a8=_0x4fa2a8-0xa2;const _0x5ab1d5=a56_0x5ab1();let _0x5bacd3=_0x5ab1d5[_0x4fa2a8];return _0x5bacd3;}export function listScopeToRemoteScope(_0x26f1f7){return _0x26f1f7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a57_0x5722(_0x544a54,_0x49e076){_0x544a54=_0x544a54-0xbd;var _0x1bfb54=a57_0x1bfb();var _0x5722f5=_0x1bfb54[_0x544a54];return _0x5722f5;}function a57_0x1bfb(){var _0x747413=['linkedPaths','treeHash','13cWvuxk','777ovAcrp','510HpeQGN','31862bZcvqu','11719896EaNsVJ','metadataPath','scope','42xfwGFU','2336220CmTvul','readonly','version','contentHash','pulledAt','140CXzoEF','121144kVehVd','skillMdPath','13JTDRvX','skillCode','cacheDir','117498aaaLiT','507845SlItgB','122210nCVmFv','skillName','dir'];a57_0x1bfb=function(){return _0x747413;};return a57_0x1bfb();}(function(_0x283b54,_0x57104b){var _0x5b2d7b=a57_0x5722,_0x38a098=_0x283b54();while(!![]){try{var _0x47fbb6=parseInt(_0x5b2d7b(0xbf))/0x1*(-parseInt(_0x5b2d7b(0xcc))/0x2)+parseInt(_0x5b2d7b(0xc2))/0x3*(parseInt(_0x5b2d7b(0xd6))/0x4)+-parseInt(_0x5b2d7b(0xc3))/0x5*(-parseInt(_0x5b2d7b(0xd0))/0x6)+-parseInt(_0x5b2d7b(0xca))/0x7*(parseInt(_0x5b2d7b(0xbd))/0x8)+parseInt(_0x5b2d7b(0xd1))/0x9+-parseInt(_0x5b2d7b(0xcb))/0xa*(parseInt(_0x5b2d7b(0xc4))/0xb)+-parseInt(_0x5b2d7b(0xcd))/0xc*(-parseInt(_0x5b2d7b(0xc9))/0xd);if(_0x47fbb6===_0x57104b)break;else _0x38a098['push'](_0x38a098['shift']());}catch(_0x26ea03){_0x38a098['push'](_0x38a098['shift']());}}}(a57_0x1bfb,0xd2cd5));export function summarizeRuntimeSkill(_0x37b5b1){var _0x107c1f=a57_0x5722;return{'id':_0x37b5b1['id'],'skillCode':_0x37b5b1[_0x107c1f(0xc0)],'skillName':_0x37b5b1[_0x107c1f(0xc5)],'scope':_0x37b5b1[_0x107c1f(0xcf)],'version':_0x37b5b1[_0x107c1f(0xd3)],'readonly':_0x37b5b1[_0x107c1f(0xd2)]};}export function summarizeLocalRuntimeSkill(_0x51081e){var _0x42685f=a57_0x5722;return{'id':_0x51081e['id'],'skillCode':_0x51081e[_0x42685f(0xc0)],'skillName':_0x51081e[_0x42685f(0xc5)],'scope':_0x51081e[_0x42685f(0xcf)],'appCode':_0x51081e['appCode'],'version':_0x51081e[_0x42685f(0xd3)],'status':_0x51081e['status'],'readonly':_0x51081e[_0x42685f(0xd2)],'tags':_0x51081e['tags'],'dir':_0x51081e[_0x42685f(0xc6)],'cacheDir':_0x51081e[_0x42685f(0xc1)],'skillMdPath':_0x51081e[_0x42685f(0xbe)],'metadataPath':_0x51081e[_0x42685f(0xce)],'linkedPaths':_0x51081e[_0x42685f(0xc7)],'contentHash':_0x51081e[_0x42685f(0xd4)],'treeHash':_0x51081e[_0x42685f(0xc8)],'pulledAt':_0x51081e[_0x42685f(0xd5)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a58_0x25bbef=a58_0x2c5b;(function(_0x75c01f,_0x2ee637){const _0x568f73=a58_0x2c5b,_0x59cf3c=_0x75c01f();while(!![]){try{const _0x3704f4=parseInt(_0x568f73(0x1c6))/0x1*(-parseInt(_0x568f73(0x1a9))/0x2)+parseInt(_0x568f73(0x1b3))/0x3+-parseInt(_0x568f73(0x1ab))/0x4+parseInt(_0x568f73(0x1d0))/0x5+-parseInt(_0x568f73(0x1c3))/0x6*(parseInt(_0x568f73(0x1c8))/0x7)+parseInt(_0x568f73(0x1c9))/0x8+parseInt(_0x568f73(0x1cf))/0x9*(-parseInt(_0x568f73(0x1c2))/0xa);if(_0x3704f4===_0x2ee637)break;else _0x59cf3c['push'](_0x59cf3c['shift']());}catch(_0x371cc3){_0x59cf3c['push'](_0x59cf3c['shift']());}}}(a58_0x1f8f,0x25748));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read'];export const DEFAULT_SKILL_TARGET=a58_0x25bbef(0x1a8);function a58_0x2c5b(_0x285bb2,_0x2fb34c){_0x285bb2=_0x285bb2-0x1a7;const _0x1f8fab=a58_0x1f8f();let _0x2c5b04=_0x1f8fab[_0x285bb2];return _0x2c5b04;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a58_0x25bbef(0x1af);export function validateSkillName(_0x236a02){const _0x187a8b=a58_0x25bbef,_0x21c9d1=_0x236a02[_0x187a8b(0x1ad)]();if(!SKILL_NAME_PATTERN[_0x187a8b(0x1bb)](_0x21c9d1))throw CliErrors[_0x187a8b(0x1ce)](_0x187a8b(0x1b0)+_0x236a02+_0x187a8b(0x1bd),_0x187a8b(0x1cd));return _0x21c9d1;}export function normalizeSkillTemplateType(_0x32ae5e){const _0x88360e=a58_0x25bbef,_0x3542c9=(_0x32ae5e||_0x88360e(0x1c1))[_0x88360e(0x1ad)]()||_0x88360e(0x1c1);if(SKILL_TYPES[_0x88360e(0x1be)](_0x3542c9))return _0x3542c9;throw CliErrors[_0x88360e(0x1ce)](_0x88360e(0x1b5)+_0x32ae5e,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x88360e(0x1b8)](',\x20')+'.');}export function renderSkillTemplate(_0x212d29){const _0x478d9a=a58_0x25bbef,_0x97b10e=validateSkillName(_0x212d29[_0x478d9a(0x1b1)]),_0xa8a5a2=normalizeSkillTemplateType(_0x212d29[_0x478d9a(0x1c4)]),_0x1b7fd8=_0x212d29[_0x478d9a(0x1c7)]??new Date()[_0x478d9a(0x1b4)]();return{'skillName':_0x97b10e,'type':_0xa8a5a2,'files':[{'path':_0x478d9a(0x1ae),'content':renderSkillMd(_0x97b10e,_0xa8a5a2,_0x1b7fd8)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x97b10e,_0xa8a5a2)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x97b10e,_0xa8a5a2)}]};}function renderSkillMd(_0x1d2fd0,_0x1f7db9,_0x5177d8){const _0x45fbaa=a58_0x25bbef,_0x450868=typeWorkflow(_0x1f7db9);return'---\x0aname:\x20'+_0x1d2fd0+_0x45fbaa(0x1b9)+_0x1f7db9+_0x45fbaa(0x1b2)+_0x5177d8+_0x45fbaa(0x1ac)+_0x1d2fd0+_0x45fbaa(0x1bc)+_0x450868+'\x0a\x0a'+businessStateSection(_0x1f7db9)+'\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(_0x2b643c,_0x318564){const _0x50aed6=a58_0x25bbef,_0xfa5a5e=_0x318564===_0x50aed6(0x1c1)?_0x50aed6(0x1c5):'';return _0x50aed6(0x1cb)+_0x2b643c+_0x50aed6(0x1c0)+_0x318564+_0x50aed6(0x1cc)+_0xfa5a5e+_0x50aed6(0x1ba);}function a58_0x1f8f(){const _0x820d99=['\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','\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=','write','74030QuaDQa','24WrTcNa','type','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','162yprTab','timestamp','34517emNWsU','1049312stuUWS','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\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','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','validation','63ubPfJA','1410860DCvhlh','read','#\x20Output\x20Contract\x0a\x0a','.agents/skills','3434QMncIv','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','255564AWUSzL','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','trim','SKILL.md','references/output-contract.md','Invalid\x20Skill\x20name:\x20','skillName','\x0a\x20\x20created:\x20\x22','461010BBPbkd','toISOString','Unsupported\x20Skill\x20type:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','join','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\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','test','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','includes'];a58_0x1f8f=function(){return _0x820d99;};return a58_0x1f8f();}function renderOutputContract(_0x3def2a,_0x4cd356){const _0x4d4c6b=a58_0x25bbef,_0x4e8346=_0x4cd356===_0x4d4c6b(0x1c1)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x4cd356+_0x4d4c6b(0x1b6);return _0x4d4c6b(0x1a7)+_0x3def2a+_0x4d4c6b(0x1bf)+_0x4e8346+_0x4d4c6b(0x1ca);}function typeWorkflow(_0xd2937a){const _0x43191e=a58_0x25bbef;if(_0xd2937a===_0x43191e(0x1d1))return _0x43191e(0x1b7);return _0x43191e(0x1aa);}function businessStateSection(_0x57bd32){const _0x556927=a58_0x25bbef;if(_0x57bd32!==_0x556927(0x1c1))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a59_0x4cbc22=a59_0x2c78;(function(_0x4035ca,_0x3f1a84){const _0x270123=a59_0x2c78,_0x3258ba=_0x4035ca();while(!![]){try{const _0x381728=parseInt(_0x270123(0x1bc))/0x1+-parseInt(_0x270123(0x1a7))/0x2+-parseInt(_0x270123(0x1c3))/0x3+-parseInt(_0x270123(0x198))/0x4+parseInt(_0x270123(0x1d3))/0x5*(parseInt(_0x270123(0x19a))/0x6)+-parseInt(_0x270123(0x1ba))/0x7*(parseInt(_0x270123(0x19e))/0x8)+-parseInt(_0x270123(0x1f1))/0x9*(-parseInt(_0x270123(0x197))/0xa);if(_0x381728===_0x3f1a84)break;else _0x3258ba['push'](_0x3258ba['shift']());}catch(_0x3097f6){_0x3258ba['push'](_0x3258ba['shift']());}}}(a59_0x3c5d,0x2f586));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x428154}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';function a59_0x3c5d(){const _0x2c5077=['file','boolean','Set\x20metadata.type\x20to\x20write\x20or\x20read.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','map','has','structure-complete','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','content','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','length','app','2565DWCjeE','data','trim','14150tadbJh','135496UAcGuQ','warning','71820rDBmFn','metadata','page','description','8vhKkUw','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','config','join','isDirectory','Add\x20frontmatter\x20with\x20name\x20and\x20description.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','search','internal-skill','441750kYjGmU','schema','Frontmatter\x20example\x20is\x20missing.','display-name-recommended','isArray','string','rabetbase-cli-reference','toUpperCase','isSymbolicLink','push','ruleId','slice','read','true','artifact','sql','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','message','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','925673IRcfkq','service','250284OjEDJG','internal','error','suggestion','false','line','displayName','864315wtRgDa','name','write','Skill\x20validation\x20failed:\x0a','match','toLowerCase','raw','\x20Fix:\x20','auth','Missing\x20SKILL.md.','split','level','test','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','registry','number','90xkYNNZ','filter','Frontmatter\x20name\x20is\x20missing.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','Frontmatter\x20description\x20is\x20empty.','type','validation','isFile','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','example-recommended','example','description-required','project','utf8','Skill\x20directory\x20not\x20found:\x20','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','frontmatter-required'];a59_0x3c5d=function(){return _0x2c5077;};return a59_0x3c5d();}const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a59_0x4cbc22(0x1c5),a59_0x4cbc22(0x1b3)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x359e87,_0x31633d={}){const _0x357361=a59_0x4cbc22,_0x31542a=resolveSkillDirectoryRoot(_0x359e87),_0x51f776=[],_0x1f464f=loadRequiredSkillFile(_0x31542a,_0x51f776),_0x444745=_0x1f464f?parseFrontmatter(_0x1f464f[_0x357361(0x1ed)]):{'hasFrontmatter':![]};_0x1f464f&&validateFrontmatter(_0x1f464f['path'],_0x444745,_0x51f776);validateRuntimeCliReferences(_0x31542a,_0x51f776);const _0x4516f2=_0x51f776['filter'](_0x49b83e=>_0x49b83e[_0x357361(0x1ce)]===_0x357361(0x1be)),_0x31bb12=_0x51f776[_0x357361(0x1d4)](_0x3b4c2f=>_0x3b4c2f['level']===_0x357361(0x199));return{'ok':_0x4516f2[_0x357361(0x1ef)]===0x0,'dir':_0x31542a,'type':_0x444745[_0x357361(0x1d8)],'errors':_0x4516f2,'warnings':_0x31bb12};}function resolveSkillDirectoryRoot(_0xc847a8){const _0x141359=a59_0x4cbc22,_0x1942f3=resolve(_0xc847a8);if(!existsSync(_0x1942f3))throw CliErrors[_0x141359(0x1d9)](_0x141359(0x1e1)+_0xc847a8);const _0x367ec5=lstatSync(_0x1942f3);if(_0x367ec5[_0x141359(0x1a2)]())return _0x1942f3;if(_0x367ec5[_0x141359(0x1af)]()){const _0xa43a0b=realpathSync(_0x1942f3);if(lstatSync(_0xa43a0b)[_0x141359(0x1a2)]())return _0xa43a0b;}throw CliErrors[_0x141359(0x1d9)]('Skill\x20directory\x20not\x20found:\x20'+_0xc847a8);}export function throwIfSkillValidationFailed(_0x190b3d,_0x3aa162=![]){const _0x5e918d=a59_0x4cbc22;if(_0x190b3d['ok'])return;const _0x4713d2=_0x190b3d['errors'][_0x5e918d(0x1e9)](_0x109205=>{const _0x1997f5=_0x5e918d,_0x47fd5c=_0x109205['section']?'#'+_0x109205['section']:'';return _0x109205[_0x1997f5(0x1ce)][_0x1997f5(0x1ae)]()+'\x20'+_0x109205[_0x1997f5(0x1b1)]+'\x20'+_0x109205['file']+_0x47fd5c+':\x20'+_0x109205[_0x1997f5(0x1b8)]+_0x1997f5(0x1ca)+_0x109205[_0x1997f5(0x1bf)];});throw CliErrors[_0x5e918d(0x1d9)](_0x5e918d(0x1c6)+_0x4713d2[_0x5e918d(0x1a1)]('\x0a'),_0x5e918d(0x1e8));}function loadRequiredSkillFile(_0x2c52a2,_0xeecdea){const _0x2ef4d5=a59_0x4cbc22,_0x493ad5=resolve(_0x2c52a2,SKILL_FILE);if(!existsSync(_0x493ad5))return _0xeecdea['push'](issue(_0x2ef4d5(0x1be),_0x2ef4d5(0x1eb),SKILL_FILE,_0x2ef4d5(0x1cc),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x3f91ea=lstatSync(_0x493ad5);if(_0x3f91ea['isSymbolicLink']())return _0xeecdea[_0x2ef4d5(0x1b0)](issue('error','structure-complete',SKILL_FILE,_0x2ef4d5(0x1a4),_0x2ef4d5(0x1ec))),undefined;if(!_0x3f91ea[_0x2ef4d5(0x1da)]())return _0xeecdea['push'](issue('error','structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x2ef4d5(0x1b7))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x493ad5,_0x2ef4d5(0x1e0))};}function validateFrontmatter(_0x44f82a,_0xa2cd33,_0x228a29){const _0x5bd71d=a59_0x4cbc22;if(!_0xa2cd33['hasFrontmatter']){_0x228a29[_0x5bd71d(0x1b0)](issue('error',_0x5bd71d(0x1e4),_0x44f82a,_0x5bd71d(0x1e3),_0x5bd71d(0x1a3)));return;}!_0xa2cd33[_0x5bd71d(0x1c4)]?.['trim']()&&_0x228a29['push'](issue(_0x5bd71d(0x1be),_0x5bd71d(0x1e4),_0x44f82a,_0x5bd71d(0x1d5),_0x5bd71d(0x1d6))),!_0xa2cd33[_0x5bd71d(0x1c2)]?.[_0x5bd71d(0x196)]()&&_0x228a29[_0x5bd71d(0x1b0)](issue(_0x5bd71d(0x199),_0x5bd71d(0x1aa),_0x44f82a,'Frontmatter\x20displayName\x20is\x20missing.',_0x5bd71d(0x1b9))),!_0xa2cd33[_0x5bd71d(0x1dd)]?.[_0x5bd71d(0x196)]()&&_0x228a29[_0x5bd71d(0x1b0)](issue('warning',_0x5bd71d(0x1dc),_0x44f82a,_0x5bd71d(0x1a9),_0x5bd71d(0x1e2))),!_0xa2cd33['description']?.[_0x5bd71d(0x196)]()&&_0x228a29[_0x5bd71d(0x1b0)](issue(_0x5bd71d(0x1be),_0x5bd71d(0x1de),_0x44f82a,_0x5bd71d(0x1d7),_0x5bd71d(0x1ee))),_0xa2cd33[_0x5bd71d(0x1bd)]===!![]&&_0x228a29['push'](issue('error',_0x5bd71d(0x1a6),_0x44f82a,'metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.',_0x5bd71d(0x1db))),_0xa2cd33[_0x5bd71d(0x1d8)]?.[_0x5bd71d(0x196)]()&&!SUPPORTED_SKILL_TYPES[_0x5bd71d(0x1ea)](_0xa2cd33[_0x5bd71d(0x1d8)])&&_0x228a29[_0x5bd71d(0x1b0)](issue(_0x5bd71d(0x1be),_0x5bd71d(0x1e4),_0x44f82a,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x5bd71d(0x1e7)));}function a59_0x2c78(_0x50a19b,_0x2a5cfc){_0x50a19b=_0x50a19b-0x195;const _0x3c5db0=a59_0x3c5d();let _0x2c784d=_0x3c5db0[_0x50a19b];return _0x2c784d;}function validateRuntimeCliReferences(_0xc9dbe6,_0x1d12c0){const _0x35d2bd=a59_0x4cbc22;for(const _0x9e3221 of findRabetbaseCliInvocations(_0xc9dbe6)){_0x1d12c0[_0x35d2bd(0x1b0)](issue(_0x35d2bd(0x199),_0x35d2bd(0x1ad),_0x9e3221[_0x35d2bd(0x1e5)],_0x35d2bd(0x19f),_0x35d2bd(0x1d0),'L'+_0x9e3221[_0x35d2bd(0x1c1)]));}}function findRabetbaseCliInvocations(_0x5c0d17){const _0x583a6f=a59_0x4cbc22;return scanSkillDirectory(_0x5c0d17)[_0x583a6f(0x1d4)](_0x217b25=>TEXT_SKILL_FILE_PATTERN['test'](_0x217b25['path']))['flatMap'](_0x1f3c11=>{const _0x5d8975=_0x583a6f,_0x27e694=fileText(_0x1f3c11);return _0x27e694[_0x5d8975(0x1cd)](/\r?\n/)[_0x5d8975(0x1e9)]((_0x1d3aef,_0x500bf8)=>({'file':_0x1f3c11['path'],'line':_0x500bf8+0x1,'text':_0x1d3aef}))[_0x5d8975(0x1d4)](({text:_0x59884d})=>isRabetbaseCliInvocation(_0x59884d))['map'](({file:_0x4001f7,line:_0x356229})=>({'file':_0x4001f7,'line':_0x356229}));});}const RABETBASE_SUBCOMMANDS=['dataset',a59_0x4cbc22(0x1b6),'bff',a59_0x4cbc22(0x19c),a59_0x4cbc22(0x1df),a59_0x4cbc22(0x1f0),a59_0x4cbc22(0x1a8),a59_0x4cbc22(0x1bb),a59_0x4cbc22(0x1b5),'kb',a59_0x4cbc22(0x1a0),'workspace',a59_0x4cbc22(0x195),a59_0x4cbc22(0x1cb),'logs',a59_0x4cbc22(0x1d1)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a59_0x4cbc22(0x1c9)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x32c7d7){const _0x213971=a59_0x4cbc22,_0x5b3b72=_0x32c7d7[_0x213971(0x1a5)](/\brabetbase\b/i);if(_0x5b3b72<0x0)return![];const _0x34e47c=_0x32c7d7[_0x213971(0x1b2)](_0x5b3b72)[_0x213971(0x1cd)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x213971(0x1cf)](_0x34e47c);}function parseFrontmatter(_0x489be8){const _0x27c180=a59_0x4cbc22,_0x3b01f1=_0x489be8[_0x27c180(0x1c7)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3b01f1)return{'hasFrontmatter':![]};const _0x1c0643=_0x3b01f1[0x1]??'',_0x1e39ab={'hasFrontmatter':!![]};let _0xab2a0e;try{_0xab2a0e=a59_0x428154(_0x1c0643);}catch{return _0x1e39ab;}const _0x4068c9=asRecord(_0xab2a0e);if(!_0x4068c9)return _0x1e39ab;_0x1e39ab[_0x27c180(0x1c4)]=scalarToString(_0x4068c9['name']),_0x1e39ab[_0x27c180(0x1c2)]=scalarToString(_0x4068c9[_0x27c180(0x1c2)]),_0x1e39ab[_0x27c180(0x19d)]=scalarToString(_0x4068c9[_0x27c180(0x19d)]),_0x1e39ab[_0x27c180(0x1dd)]=scalarToString(_0x4068c9[_0x27c180(0x1dd)]);const _0x428f6c=asRecord(_0x4068c9[_0x27c180(0x19b)]);return _0x428f6c&&(_0x1e39ab[_0x27c180(0x1d8)]=scalarToString(_0x428f6c[_0x27c180(0x1d8)]),_0x1e39ab[_0x27c180(0x1bd)]=scalarToBoolean(_0x428f6c['internal'])),_0x1e39ab;}function asRecord(_0xcceca2){const _0x15064c=a59_0x4cbc22;if(_0xcceca2&&typeof _0xcceca2==='object'&&!Array[_0x15064c(0x1ab)](_0xcceca2))return _0xcceca2;return undefined;}function scalarToString(_0x5b57ee){const _0x4a1164=a59_0x4cbc22;if(typeof _0x5b57ee===_0x4a1164(0x1ac))return _0x5b57ee[_0x4a1164(0x196)]();if(typeof _0x5b57ee===_0x4a1164(0x1d2)||typeof _0x5b57ee===_0x4a1164(0x1e6))return String(_0x5b57ee);return undefined;}function scalarToBoolean(_0x270c3a){const _0x4e3622=a59_0x4cbc22;if(typeof _0x270c3a===_0x4e3622(0x1e6))return _0x270c3a;if(typeof _0x270c3a==='string')return cleanBoolean(_0x270c3a);return undefined;}function cleanBoolean(_0x43fe55){const _0x16e031=a59_0x4cbc22,_0x3cf085=_0x43fe55['trim']()[_0x16e031(0x1c8)]();if(_0x3cf085===_0x16e031(0x1b4))return!![];if(_0x3cf085===_0x16e031(0x1c0))return![];return undefined;}function issue(_0x1d10cd,_0x35ae91,_0x43e5e2,_0x34bcd1,_0x315611,_0x4daa70){return{'level':_0x1d10cd,'ruleId':_0x35ae91,'file':_0x43e5e2,'section':_0x4daa70,'message':_0x34bcd1,'suggestion':_0x315611};}
|
|
1
|
+
const a59_0x5acecc=a59_0x5bd4;(function(_0x106ae4,_0x4a6891){const _0x36af55=a59_0x5bd4,_0x4374c3=_0x106ae4();while(!![]){try{const _0x40a33e=-parseInt(_0x36af55(0x12b))/0x1*(parseInt(_0x36af55(0x135))/0x2)+parseInt(_0x36af55(0x112))/0x3*(parseInt(_0x36af55(0x129))/0x4)+parseInt(_0x36af55(0x103))/0x5+-parseInt(_0x36af55(0x102))/0x6+-parseInt(_0x36af55(0x11d))/0x7*(-parseInt(_0x36af55(0x117))/0x8)+-parseInt(_0x36af55(0xf2))/0x9*(-parseInt(_0x36af55(0x119))/0xa)+parseInt(_0x36af55(0x133))/0xb*(-parseInt(_0x36af55(0x142))/0xc);if(_0x40a33e===_0x4a6891)break;else _0x4374c3['push'](_0x4374c3['shift']());}catch(_0x5c78c1){_0x4374c3['push'](_0x4374c3['shift']());}}}(a59_0x5d7e,0x6686b));function a59_0x5d7e(){const _0xf6636f=['hasFrontmatter','filter','artifact','length','Frontmatter\x20description\x20is\x20empty.','write','search','Frontmatter\x20displayName\x20is\x20missing.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','false','isDirectory','408WgnVjb','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','path','section','slice','logs','boolean','SKILL.md\x20must\x20start\x20with\x20frontmatter.','app','Skill\x20validation\x20failed:\x0a','content','sql','9MIhwJq','errors','frontmatter-required','push','Set\x20metadata.type\x20to\x20write\x20or\x20read.','bff','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','level','project','SKILL.md','test','Frontmatter\x20name\x20is\x20missing.','type','name','isArray','2677464RUutgj','3052710OUuKvp','utf8','flatMap','Add\x20frontmatter\x20with\x20name\x20and\x20description.','structure-complete','object','line','string','example-recommended','workspace','validation','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','description-required','toLowerCase','suggestion','943932ePtslO','isSymbolicLink','warning','displayName','map','926416FFplcd','example','2350750yqcyOU','error','service','Skill\x20directory\x20not\x20found:\x20','42HtMVNG','number','raw','file','data','metadata','config','split','read','rabetbase-cli-reference','Missing\x20SKILL.md.','internal-skill','8PdBtsy','internal','39658zJoNTN','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','dataset','description','join','SKILL.md\x20is\x20not\x20a\x20file.','display-name-recommended','203610pXRfzT','message','34EgTxmu','trim'];a59_0x5d7e=function(){return _0xf6636f;};return a59_0x5d7e();}import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a59_0x29462b}from'yaml';function a59_0x5bd4(_0x565d39,_0x54273b){_0x565d39=_0x565d39-0xed;const _0x5d7e7c=a59_0x5d7e();let _0x5bd477=_0x5d7e7c[_0x565d39];return _0x5bd477;}import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a59_0x5acecc(0xfc),SUPPORTED_SKILL_TYPES=new Set([a59_0x5acecc(0x13c),a59_0x5acecc(0x125)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2f0374,_0x5b91a6={}){const _0x82dad0=a59_0x5acecc,_0x44b72a=resolveSkillDirectoryRoot(_0x2f0374),_0x220120=[],_0x170ea9=loadRequiredSkillFile(_0x44b72a,_0x220120),_0x22b52e=_0x170ea9?parseFrontmatter(_0x170ea9[_0x82dad0(0xf0)]):{'hasFrontmatter':![]};_0x170ea9&&validateFrontmatter(_0x170ea9[_0x82dad0(0x144)],_0x22b52e,_0x220120);validateRuntimeCliReferences(_0x44b72a,_0x220120);const _0x57d1c9=_0x220120['filter'](_0x41578d=>_0x41578d[_0x82dad0(0xfa)]===_0x82dad0(0x11a)),_0x439bea=_0x220120[_0x82dad0(0x138)](_0xfd0736=>_0xfd0736[_0x82dad0(0xfa)]==='warning');return{'ok':_0x57d1c9[_0x82dad0(0x13a)]===0x0,'dir':_0x44b72a,'type':_0x22b52e[_0x82dad0(0xff)],'errors':_0x57d1c9,'warnings':_0x439bea};}function resolveSkillDirectoryRoot(_0xe6ed02){const _0x396fa7=a59_0x5acecc,_0x585ab4=resolve(_0xe6ed02);if(!existsSync(_0x585ab4))throw CliErrors[_0x396fa7(0x10d)](_0x396fa7(0x11c)+_0xe6ed02);const _0x64042b=lstatSync(_0x585ab4);if(_0x64042b[_0x396fa7(0x141)]())return _0x585ab4;if(_0x64042b[_0x396fa7(0x113)]()){const _0x4594d6=realpathSync(_0x585ab4);if(lstatSync(_0x4594d6)[_0x396fa7(0x141)]())return _0x4594d6;}throw CliErrors[_0x396fa7(0x10d)](_0x396fa7(0x11c)+_0xe6ed02);}export function throwIfSkillValidationFailed(_0x1b68eb,_0x1f55a4=![]){const _0x3738f4=a59_0x5acecc;if(_0x1b68eb['ok'])return;const _0x4306c8=_0x1b68eb[_0x3738f4(0xf3)][_0x3738f4(0x116)](_0x54db58=>{const _0x12e055=_0x3738f4,_0x525cf4=_0x54db58[_0x12e055(0x145)]?'#'+_0x54db58[_0x12e055(0x145)]:'';return _0x54db58[_0x12e055(0xfa)]['toUpperCase']()+'\x20'+_0x54db58['ruleId']+'\x20'+_0x54db58[_0x12e055(0x120)]+_0x525cf4+':\x20'+_0x54db58[_0x12e055(0x134)]+'\x20Fix:\x20'+_0x54db58[_0x12e055(0x111)];});throw CliErrors['validation'](_0x3738f4(0xef)+_0x4306c8[_0x3738f4(0x130)]('\x0a'),_0x3738f4(0xf8));}function loadRequiredSkillFile(_0x3992c7,_0x5ecfea){const _0x1af1c2=a59_0x5acecc,_0xb25d14=resolve(_0x3992c7,SKILL_FILE);if(!existsSync(_0xb25d14))return _0x5ecfea[_0x1af1c2(0xf5)](issue(_0x1af1c2(0x11a),_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x127),_0x1af1c2(0xf9))),undefined;const _0x4b8ca4=lstatSync(_0xb25d14);if(_0x4b8ca4['isSymbolicLink']())return _0x5ecfea[_0x1af1c2(0xf5)](issue(_0x1af1c2(0x11a),_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x13f),_0x1af1c2(0x143))),undefined;if(!_0x4b8ca4['isFile']())return _0x5ecfea['push'](issue('error',_0x1af1c2(0x107),SKILL_FILE,_0x1af1c2(0x131),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xb25d14,_0x1af1c2(0x104))};}function validateFrontmatter(_0x3f25e6,_0x148054,_0x86501){const _0x3befe7=a59_0x5acecc;if(!_0x148054[_0x3befe7(0x137)]){_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,_0x3befe7(0xed),_0x3befe7(0x106)));return;}!_0x148054[_0x3befe7(0x100)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,_0x3befe7(0xfe),_0x3befe7(0x12c))),!_0x148054['displayName']?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue('warning',_0x3befe7(0x132),_0x3f25e6,_0x3befe7(0x13e),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x148054[_0x3befe7(0x118)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x114),_0x3befe7(0x10b),_0x3f25e6,'Frontmatter\x20example\x20is\x20missing.','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x148054[_0x3befe7(0x12f)]?.[_0x3befe7(0x136)]()&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0x10f),_0x3f25e6,_0x3befe7(0x13b),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x148054[_0x3befe7(0x12a)]===!![]&&_0x86501['push'](issue('error',_0x3befe7(0x128),_0x3f25e6,_0x3befe7(0x12d),_0x3befe7(0x10e))),_0x148054[_0x3befe7(0xff)]?.[_0x3befe7(0x136)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x148054['type'])&&_0x86501[_0x3befe7(0xf5)](issue(_0x3befe7(0x11a),_0x3befe7(0xf4),_0x3f25e6,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x3befe7(0xf6)));}function validateRuntimeCliReferences(_0x12c69d,_0xe0b2a7){const _0x392d03=a59_0x5acecc;for(const _0x4dba81 of findRabetbaseCliInvocations(_0x12c69d)){_0xe0b2a7[_0x392d03(0xf5)](issue(_0x392d03(0x114),_0x392d03(0x126),_0x4dba81[_0x392d03(0x120)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x4dba81[_0x392d03(0x109)]));}}function findRabetbaseCliInvocations(_0x3b8a71){const _0x3e1871=a59_0x5acecc;return scanSkillDirectory(_0x3b8a71)[_0x3e1871(0x138)](_0x3a01a8=>TEXT_SKILL_FILE_PATTERN['test'](_0x3a01a8[_0x3e1871(0x144)]))[_0x3e1871(0x105)](_0x23b7b1=>{const _0x1d944c=_0x3e1871,_0x114ae7=fileText(_0x23b7b1);return _0x114ae7[_0x1d944c(0x124)](/\r?\n/)[_0x1d944c(0x116)]((_0x417e7f,_0x53a464)=>({'file':_0x23b7b1[_0x1d944c(0x144)],'line':_0x53a464+0x1,'text':_0x417e7f}))[_0x1d944c(0x138)](({text:_0x26bf9b})=>isRabetbaseCliInvocation(_0x26bf9b))[_0x1d944c(0x116)](({file:_0x48f2f2,line:_0x51eb08})=>({'file':_0x48f2f2,'line':_0x51eb08}));});}const RABETBASE_SUBCOMMANDS=[a59_0x5acecc(0x12e),a59_0x5acecc(0xf1),a59_0x5acecc(0xf7),'page',a59_0x5acecc(0xfb),a59_0x5acecc(0xee),'schema',a59_0x5acecc(0x11b),a59_0x5acecc(0x139),'kb',a59_0x5acecc(0x123),a59_0x5acecc(0x10c),a59_0x5acecc(0x121),'auth',a59_0x5acecc(0x147),'registry'],RABETBASE_INVOCATION=new RegExp(String[a59_0x5acecc(0x11f)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a59_0x5acecc(0x130)]('|')})\b`+String[a59_0x5acecc(0x11f)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x46a73f){const _0x28ff13=a59_0x5acecc,_0xe9d1d6=_0x46a73f[_0x28ff13(0x13d)](/\brabetbase\b/i);if(_0xe9d1d6<0x0)return![];const _0x281efa=_0x46a73f[_0x28ff13(0x146)](_0xe9d1d6)[_0x28ff13(0x124)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x28ff13(0xfd)](_0x281efa);}function parseFrontmatter(_0x504ec0){const _0x75f783=a59_0x5acecc,_0x5677ad=_0x504ec0['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5677ad)return{'hasFrontmatter':![]};const _0x4e4ad2=_0x5677ad[0x1]??'',_0x47d1be={'hasFrontmatter':!![]};let _0x10bb42;try{_0x10bb42=a59_0x29462b(_0x4e4ad2);}catch{return _0x47d1be;}const _0x2553a1=asRecord(_0x10bb42);if(!_0x2553a1)return _0x47d1be;_0x47d1be[_0x75f783(0x100)]=scalarToString(_0x2553a1[_0x75f783(0x100)]),_0x47d1be[_0x75f783(0x115)]=scalarToString(_0x2553a1[_0x75f783(0x115)]),_0x47d1be[_0x75f783(0x12f)]=scalarToString(_0x2553a1[_0x75f783(0x12f)]),_0x47d1be[_0x75f783(0x118)]=scalarToString(_0x2553a1[_0x75f783(0x118)]);const _0x27ed65=asRecord(_0x2553a1[_0x75f783(0x122)]);return _0x27ed65&&(_0x47d1be[_0x75f783(0xff)]=scalarToString(_0x27ed65[_0x75f783(0xff)]),_0x47d1be['internal']=scalarToBoolean(_0x27ed65[_0x75f783(0x12a)])),_0x47d1be;}function asRecord(_0x304fad){const _0x2841de=a59_0x5acecc;if(_0x304fad&&typeof _0x304fad===_0x2841de(0x108)&&!Array[_0x2841de(0x101)](_0x304fad))return _0x304fad;return undefined;}function scalarToString(_0x2c3d99){const _0x253df4=a59_0x5acecc;if(typeof _0x2c3d99===_0x253df4(0x10a))return _0x2c3d99[_0x253df4(0x136)]();if(typeof _0x2c3d99===_0x253df4(0x11e)||typeof _0x2c3d99===_0x253df4(0x148))return String(_0x2c3d99);return undefined;}function scalarToBoolean(_0x2de5c9){const _0x54a4db=a59_0x5acecc;if(typeof _0x2de5c9===_0x54a4db(0x148))return _0x2de5c9;if(typeof _0x2de5c9===_0x54a4db(0x10a))return cleanBoolean(_0x2de5c9);return undefined;}function cleanBoolean(_0x1ca29e){const _0x3325c8=a59_0x5acecc,_0x370925=_0x1ca29e[_0x3325c8(0x136)]()[_0x3325c8(0x110)]();if(_0x370925==='true')return!![];if(_0x370925===_0x3325c8(0x140))return![];return undefined;}function issue(_0xa152db,_0x46316e,_0xb7fe20,_0x37218f,_0x251c2a,_0x3d7933){return{'level':_0xa152db,'ruleId':_0x46316e,'file':_0xb7fe20,'section':_0x3d7933,'message':_0x37218f,'suggestion':_0x251c2a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a60_0x3c3f0b=a60_0x4188;(function(_0x457fcd,_0x1e4213){const _0x3e7289=a60_0x4188,_0x197b83=_0x457fcd();while(!![]){try{const _0x1be7f9=-parseInt(_0x3e7289(0x7d))/0x1+parseInt(_0x3e7289(0x7c))/0x2*(parseInt(_0x3e7289(0x7b))/0x3)+-parseInt(_0x3e7289(0x82))/0x4+parseInt(_0x3e7289(0x76))/0x5+parseInt(_0x3e7289(0x75))/0x6*(parseInt(_0x3e7289(0x85))/0x7)+parseInt(_0x3e7289(0x79))/0x8*(-parseInt(_0x3e7289(0x83))/0x9)+parseInt(_0x3e7289(0x7e))/0xa;if(_0x1be7f9===_0x1e4213)break;else _0x197b83['push'](_0x197b83['shift']());}catch(_0x206062){_0x197b83['push'](_0x197b83['shift']());}}}(a60_0x2585,0xaf3da));function a60_0x2585(){const _0x5091d4=['170ZKLiXs','86731bjoeHH','6095970DDjCdH','sql','read','verbose','5734920IYwyGa','9063NYScpa','dbId','21WuOkre','detail','sqlContent','sqlcode','sqlName','649668TuLuAI','6023100cebkRv','appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','5336zmPkGv','bool','27207Dthpuk'];a60_0x2585=function(){return _0x5091d4;};return a60_0x2585();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a60_0x4188(_0x8d565d,_0x5d9124){_0x8d565d=_0x8d565d-0x75;const _0x258573=a60_0x2585();let _0x41880b=_0x258573[_0x8d565d];return _0x41880b;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a60_0x3c3f0b(0x7f),'command':a60_0x3c3f0b(0x86),'description':a60_0x3c3f0b(0x78),'risk':a60_0x3c3f0b(0x80),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x12e5e6){const _0x17a8d5=a60_0x3c3f0b,_0x4a42db=await getSqlQueryInfo(_0x12e5e6[_0x17a8d5(0x77)],_0x12e5e6['str'](_0x17a8d5(0x88))),_0x54ca52=_0x12e5e6[_0x17a8d5(0x7a)](_0x17a8d5(0x81));if(_0x54ca52)return{'ok':!![],'data':_0x4a42db};const _0x482de4=_0x4a42db['dbId']?await getDbName(_0x12e5e6[_0x17a8d5(0x77)],_0x4a42db['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x4a42db['sqlCode'],'sqlName':_0x4a42db[_0x17a8d5(0x89)],'db':_0x482de4?_0x482de4+'\x20('+_0x4a42db['dbId']+')':_0x4a42db[_0x17a8d5(0x84)]??'','sqlContent':_0x4a42db[_0x17a8d5(0x87)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a61_0x1f0c12=a61_0x191a;(function(_0x27150b,_0x9c52d8){const _0x2a6348=a61_0x191a,_0x3f412e=_0x27150b();while(!![]){try{const _0x5b8576=-parseInt(_0x2a6348(0x130))/0x1*(-parseInt(_0x2a6348(0x12a))/0x2)+parseInt(_0x2a6348(0x12e))/0x3*(-parseInt(_0x2a6348(0x11a))/0x4)+-parseInt(_0x2a6348(0x121))/0x5*(parseInt(_0x2a6348(0x11b))/0x6)+-parseInt(_0x2a6348(0x131))/0x7*(-parseInt(_0x2a6348(0x11c))/0x8)+parseInt(_0x2a6348(0x125))/0x9*(parseInt(_0x2a6348(0x12f))/0xa)+parseInt(_0x2a6348(0x12c))/0xb+parseInt(_0x2a6348(0x11d))/0xc*(-parseInt(_0x2a6348(0x12d))/0xd);if(_0x5b8576===_0x9c52d8)break;else _0x3f412e['push'](_0x3f412e['shift']());}catch(_0x5a8d76){_0x3f412e['push'](_0x3f412e['shift']());}}}(a61_0x3409,0x2d2ee));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a61_0x191a(_0x2b574c,_0x1c1724){_0x2b574c=_0x2b574c-0x11a;const _0x3409ae=a61_0x3409();let _0x191a6e=_0x3409ae[_0x2b574c];return _0x191a6e;}import{parseJsonParams}from'../../utils/params.js';function a61_0x3409(){const _0x2fab92=['22978gMpmSu','7623XiTGNT','Returned\x20','686084wtwiXz','18mgMXue','2584PsBKfO','9552osbQlq','exec','execSuccess','read','140845axMdHu','length','\x20row(s)\x20in\x20','now','63gjGJRf','execError','SQL\x20execution\x20failed','execResult','sqlcode','26PjMCqr','str','1701062anrDgW','10751MFErVc','3WuUrkh','420410aJLYcU'];a61_0x3409=function(){return _0x2fab92;};return a61_0x3409();}export const sqlExec={'service':'sql','command':a61_0x1f0c12(0x11e),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a61_0x1f0c12(0x120),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x21d7a7){const _0x2242c9=a61_0x1f0c12,_0x1d0e0d=parseJsonParams(_0x21d7a7[_0x2242c9(0x12b)]('params')),_0x3f64c8=Date[_0x2242c9(0x124)](),_0xa9dd20=await executeSdkSql(_0x21d7a7['str'](_0x2242c9(0x129)),_0x1d0e0d),_0xc9e0df=Date['now']()-_0x3f64c8,_0x2499a5=_0xa9dd20?.[_0x2242c9(0x128)]??_0xa9dd20,_0x328014=_0xa9dd20?.[_0x2242c9(0x11f)]??!![];if(!_0x328014)return{'ok':![],'data':{'error':_0xa9dd20?.[_0x2242c9(0x126)]||_0x2242c9(0x127),'elapsed':_0xc9e0df},'message':_0x2242c9(0x127)};const _0x10bb12=Array['isArray'](_0x2499a5)?_0x2499a5:[];return{'ok':!![],'data':{'rows':_0x10bb12,'rowCount':_0x10bb12[_0x2242c9(0x122)],'elapsed':_0xc9e0df},'message':_0x2242c9(0x132)+_0x10bb12[_0x2242c9(0x122)]+_0x2242c9(0x123)+_0xc9e0df+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a62_0x5376(_0x439ae8,_0x8d75b3){_0x439ae8=_0x439ae8-0x1ca;const _0x4efc74=a62_0x4efc();let _0x53766c=_0x4efc74[_0x439ae8];return _0x53766c;}(function(_0xa67393,_0x5df5c8){const _0x367ea1=a62_0x5376,_0x29dbd5=_0xa67393();while(!![]){try{const _0x1ce5cc=parseInt(_0x367ea1(0x1ca))/0x1+-parseInt(_0x367ea1(0x1cf))/0x2+-parseInt(_0x367ea1(0x1d0))/0x3*(-parseInt(_0x367ea1(0x1d4))/0x4)+parseInt(_0x367ea1(0x1ce))/0x5*(parseInt(_0x367ea1(0x1cd))/0x6)+-parseInt(_0x367ea1(0x1d1))/0x7*(-parseInt(_0x367ea1(0x1d3))/0x8)+-parseInt(_0x367ea1(0x1cb))/0x9*(parseInt(_0x367ea1(0x1d2))/0xa)+-parseInt(_0x367ea1(0x1cc))/0xb;if(_0x1ce5cc===_0x5df5c8)break;else _0x29dbd5['push'](_0x29dbd5['shift']());}catch(_0x5a7eb0){_0x29dbd5['push'](_0x29dbd5['shift']());}}}(a62_0x4efc,0x825ce));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a62_0x4efc(){const _0x1c04eb=['5856aFwXUF','660kaqKcp','231014qYrdZm','15fdMqpF','3680467CBbrxc','890YVjUdD','16FCOFEs','435548zBaksH','104680pRKizL','18783rnlFvW','10937223nRnzmy'];a62_0x4efc=function(){return _0x1c04eb;};return a62_0x4efc();}
|
package/lib/commands/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63_0x31ec48=a63_0x5220;function a63_0x5220(_0x457590,_0x20ed13){_0x457590=_0x457590-0x1ea;const _0x597fe1=a63_0x597f();let _0x52203e=_0x597fe1[_0x457590];return _0x52203e;}(function(_0x1da829,_0x5dfd81){const _0x519e8b=a63_0x5220,_0x2282e1=_0x1da829();while(!![]){try{const _0x2d06f9=parseInt(_0x519e8b(0x217))/0x1*(-parseInt(_0x519e8b(0x218))/0x2)+-parseInt(_0x519e8b(0x21a))/0x3+parseInt(_0x519e8b(0x1fe))/0x4+-parseInt(_0x519e8b(0x200))/0x5+-parseInt(_0x519e8b(0x215))/0x6+parseInt(_0x519e8b(0x1f0))/0x7*(-parseInt(_0x519e8b(0x1ee))/0x8)+parseInt(_0x519e8b(0x209))/0x9;if(_0x2d06f9===_0x5dfd81)break;else _0x2282e1['push'](_0x2282e1['shift']());}catch(_0x37ca53){_0x2282e1['push'](_0x2282e1['shift']());}}}(a63_0x597f,0x61850));import{spawnSync}from'node:child_process';import a63_0x151c12 from'semver';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';function a63_0x597f(){const _0x3a73a=['Current\x20version:\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','source','Install\x20a\x20specific\x20CLI\x20version','1950492PjYHGY','toString','1PEiHqK','783878VXaLhz','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','694182VBykPB','bool','reason','从\x20npm\x20更新\x20','version','Update\x20failed:\x20','npm','INSTALL_FAILED','state','Version\x20comparison\x20failed:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','Updating\x20','error','\x20version\x20from\x20npm.','read','valid','Already\x20up\x20to\x20date\x20(v','nonInteractive','object','args','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','message','\x20\x20Run\x20manually:\x20','exit\x20','Unable\x20to\x20resolve\x20','216AMbmDB','install','14567uuWPEU','Checking\x20CLI\x20Built-in\x20Skill...','beta','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','current','\x20is\x20current.','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','skillVersion','\x20->\x20','warn','validation','trim','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','stdout','3122484vWBHLv','inherit','1772915pDWjLK','code','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','json','unknown','latest','boolean','str','pipe','8802036UyzyHo','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','log','join','find','run','Invalid\x20version:\x20','\x20CLI'];a63_0x597f=function(){return _0x3a73a;};return a63_0x597f();}import{getCliVersion}from'../utils/version.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';const updateFlags=[{'name':a63_0x31ec48(0x205),'type':a63_0x31ec48(0x206),'description':a63_0x31ec48(0x22e),'default':![]},{'name':a63_0x31ec48(0x1f2),'type':'boolean','description':a63_0x31ec48(0x1fc),'default':![]},{'name':a63_0x31ec48(0x21e),'type':'string','description':a63_0x31ec48(0x214)}];function getRequestedVersion(_0x1da4a8){const _0x1d5507=a63_0x31ec48,_0x321c42=_0x1da4a8[_0x1d5507(0x207)]('version')[_0x1d5507(0x1fb)]();if(_0x321c42)return _0x321c42;return String(_0x1da4a8[_0x1d5507(0x22d)]?.[0x0]??'')[_0x1d5507(0x1fb)]();}async function validateUpdateFlags(_0x94b76d){const _0xad2691=a63_0x31ec48,_0x1ef473=getRequestedVersion(_0x94b76d),_0x2134fe=[_0x94b76d[_0xad2691(0x21b)](_0xad2691(0x205))?_0xad2691(0x205):'',_0x94b76d[_0xad2691(0x21b)](_0xad2691(0x1f2))?'beta':'',_0x1ef473?_0xad2691(0x21e):'']['filter'](Boolean);if(_0x2134fe['length']>0x1)throw CliErrors[_0xad2691(0x1fa)](_0xad2691(0x1f3),_0xad2691(0x212));if(_0x1ef473&&!a63_0x151c12[_0xad2691(0x229)](_0x1ef473))throw CliErrors['validation'](_0xad2691(0x20f)+_0x1ef473,_0xad2691(0x20a));}async function fetchNpmDistTags(){const _0x1a7c58=a63_0x31ec48;try{const _0x3fc001=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x5c980b=await fetch(_0x3fc001,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x5c980b['ok'])return null;const _0x3bfce7=await _0x5c980b[_0x1a7c58(0x203)]();if(!_0x3bfce7||typeof _0x3bfce7!==_0x1a7c58(0x22c))return null;return Object['fromEntries'](Object['entries'](_0x3bfce7)['filter'](([,_0x3d69d9])=>typeof _0x3d69d9==='string'&&_0x3d69d9['trim']())['map'](([_0x5430ad,_0x552b3f])=>[_0x5430ad,String(_0x552b3f)[_0x1a7c58(0x1fb)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3c77dc){const _0x565e65=a63_0x31ec48,_0x42cc61=getRequestedVersion(_0x3c77dc);if(_0x42cc61)return{'version':_0x42cc61,'source':_0x565e65(0x21e)};const _0x273e5e=_0x3c77dc['bool'](_0x565e65(0x1f2))?_0x565e65(0x1f2):_0x565e65(0x205),_0x3c4b21=await fetchNpmDistTags(),_0x4c8109=_0x3c4b21?.[_0x273e5e];if(!_0x4c8109)return null;return{'version':_0x4c8109,'source':_0x273e5e};}function shouldInstallTarget(_0x92e75a,_0x4c604f){const _0x4a2952=a63_0x31ec48;if(_0x4c604f[_0x4a2952(0x213)]===_0x4a2952(0x21e)||_0x4c604f['source']===_0x4a2952(0x1f2))return!a63_0x151c12['eq'](_0x92e75a,_0x4c604f[_0x4a2952(0x21e)]);return a63_0x151c12['lt'](_0x92e75a,_0x4c604f[_0x4a2952(0x21e)]);}function installCliPackage(_0x42f1ec,_0x31541e){const _0x42606e=a63_0x31ec48,_0x52172c=resolveNpmBin(_0x42606e(0x220)),_0x17f20a=[_0x42606e(0x1ef),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x42f1ec];console[_0x42606e(0x20b)]('*\x20'+[_0x52172c,..._0x17f20a][_0x42606e(0x20c)]('\x20'));const _0x136d46=spawnSync(_0x52172c,_0x17f20a,{'cwd':process['cwd'](),'stdio':_0x31541e?_0x42606e(0x208):_0x42606e(0x1ff),'env':process.env,'shell':![]});if(_0x136d46['status']===0x0)return{'ok':!![]};let _0x3bd770=_0x136d46[_0x42606e(0x226)]?.[_0x42606e(0x1ea)]||_0x42606e(0x1ec)+(_0x136d46['status']??_0x42606e(0x204));if(_0x31541e){const _0x442b7b=_0x136d46['stderr']?_0x136d46['stderr'][_0x42606e(0x216)]()[_0x42606e(0x1fb)]():'',_0x39c891=_0x136d46['stdout']?_0x136d46[_0x42606e(0x1fd)][_0x42606e(0x216)]()['trim']():'';if(_0x442b7b)_0x3bd770=_0x442b7b;else{if(_0x39c891)_0x3bd770=_0x39c891;}}return{'ok':![],'error':_0x3bd770};}function repairCurrentBuiltinSkill(_0x413135){const _0x10f2d2=a63_0x31ec48;console[_0x10f2d2(0x20b)](_0x10f2d2(0x1f1));const _0x2ddf93=installBuiltinSkill({'stdio':_0x413135?'pipe':'inherit'});if(_0x2ddf93['ok'])return console['log']('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2ddf93[_0x10f2d2(0x1f7)]+_0x10f2d2(0x1f5)),!![];return console[_0x10f2d2(0x1f9)]('\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+(_0x2ddf93[_0x10f2d2(0x201)]||_0x10f2d2(0x221))+']:\x20'+(_0x2ddf93['error']||_0x10f2d2(0x204))),console['log'](_0x10f2d2(0x1eb)+_0x2ddf93['repairCommand']),![];}function verifyUpdatedBuiltinSkill(_0x2f65c2){const _0x1467fc=a63_0x31ec48;console[_0x1467fc(0x20b)](_0x1467fc(0x1f1));const _0x3588f7=inspectInstalledBuiltinSkillVersion(_0x2f65c2);if(_0x3588f7[_0x1467fc(0x222)]===_0x1467fc(0x1f4))return console[_0x1467fc(0x20b)](_0x1467fc(0x224)+_0x2f65c2+'\x20is\x20current.'),!![];console[_0x1467fc(0x1f9)](_0x1467fc(0x219)+_0x3588f7[_0x1467fc(0x222)]+'.');if(_0x3588f7[_0x1467fc(0x21c)])console[_0x1467fc(0x1f9)]('\x20\x20'+_0x3588f7['reason']);return console['log'](_0x1467fc(0x1eb)+_0x3588f7['repairCommand']),![];}async function execute(_0x51970d){const _0x30f1fc=a63_0x31ec48;await validateUpdateFlags(_0x51970d);const _0x3fc159=getCliVersion();console[_0x30f1fc(0x20b)](_0x30f1fc(0x211)+_0x3fc159),console[_0x30f1fc(0x20b)]('Checking\x20npm\x20dist-tags...');const _0x4e191c=await resolveTargetVersion(_0x51970d);if(!_0x4e191c){const _0x4d63c2=_0x51970d[_0x30f1fc(0x21b)]('beta')?_0x30f1fc(0x1f2):_0x30f1fc(0x205),_0x3808d0=_0x30f1fc(0x1ed)+_0x4d63c2+_0x30f1fc(0x227);return console[_0x30f1fc(0x1f9)](_0x3808d0),console[_0x30f1fc(0x20b)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d63c2),{'ok':![]};}const _0x5591a6=[_0x3fc159,_0x4e191c[_0x30f1fc(0x21e)]][_0x30f1fc(0x20d)](_0x487f01=>!a63_0x151c12['valid'](_0x487f01));if(_0x5591a6)return console[_0x30f1fc(0x1f9)](_0x30f1fc(0x223)+_0x5591a6+'.'),{'ok':![]};if(!shouldInstallTarget(_0x3fc159,_0x4e191c)){const _0x3eca32=_0x4e191c[_0x30f1fc(0x213)]===_0x30f1fc(0x21e)?'Already\x20on\x20requested\x20version\x20(v'+_0x4e191c[_0x30f1fc(0x21e)]+').':_0x30f1fc(0x22a)+_0x4e191c[_0x30f1fc(0x21e)]+').';return console[_0x30f1fc(0x20b)](_0x3eca32),{'ok':repairCurrentBuiltinSkill(_0x51970d[_0x30f1fc(0x22b)])};}console[_0x30f1fc(0x20b)](_0x30f1fc(0x225)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x3fc159+_0x30f1fc(0x1f8)+_0x4e191c[_0x30f1fc(0x21e)]);const _0x17f598=installCliPackage(_0x4e191c[_0x30f1fc(0x21e)],_0x51970d[_0x30f1fc(0x22b)]);if(!_0x17f598['ok']){const _0x2a38cb=_0x30f1fc(0x21f)+(_0x17f598['error']||'unknown');return console[_0x30f1fc(0x226)](_0x2a38cb),console[_0x30f1fc(0x20b)](_0x30f1fc(0x202)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4e191c[_0x30f1fc(0x21e)]),{'ok':![]};}return console[_0x30f1fc(0x20b)]('Updated\x20to\x20v'+_0x4e191c[_0x30f1fc(0x21e)]+'.'),console['log'](_0x30f1fc(0x1f6)),{'ok':verifyUpdatedBuiltinSkill(_0x4e191c['version'])};}export const updateDefinition={'service':'update','command':a63_0x31ec48(0x20e),'description':a63_0x31ec48(0x21d)+CLI_BIN_NAME+a63_0x31ec48(0x210),'risk':a63_0x31ec48(0x228),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|