@lovrabet/lovrabet-cli 2.3.0-beta.1 → 2.3.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/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/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.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/region.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/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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 a67_0xf8869a=a67_0x4973;function a67_0x3c47(){const _0x572423=['list','70pqyDcO','6403789lnmeeX','3613932dLEajP','filter','authRequired','str','3549592SheSIL','project','../../../core/api-client.js','../../../skills/runtime-skill-sync.js','personal','appCode','\x20remote\x20Skill(s).','scope','builtin','remote','\x20local\x20Skill(s).','local','map','company','2910546wGiVAh','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','Listed\x20','3005044sKCZQN','52863uLEPnE','production','read','trim','accessKey','global','bool','length','483492cWuuZx','envName'];a67_0x3c47=function(){return _0x572423;};return a67_0x3c47();}function a67_0x4973(_0x2b2d6c,_0x18d999){_0x2b2d6c=_0x2b2d6c-0x1b9;const _0x3c470b=a67_0x3c47();let _0x49735d=_0x3c470b[_0x2b2d6c];return _0x49735d;}(function(_0x1f82c8,_0x11cf89){const _0x2b36cc=a67_0x4973,_0x5e7ef5=_0x1f82c8();while(!![]){try{const _0x41c63e=parseInt(_0x2b36cc(0x1d5))/0x1+parseInt(_0x2b36cc(0x1d1))/0x2+-parseInt(_0x2b36cc(0x1bf))/0x3+parseInt(_0x2b36cc(0x1d4))/0x4+parseInt(_0x2b36cc(0x1bd))/0x5*(parseInt(_0x2b36cc(0x1ba))/0x6)+-parseInt(_0x2b36cc(0x1be))/0x7+-parseInt(_0x2b36cc(0x1c3))/0x8;if(_0x41c63e===_0x11cf89)break;else _0x5e7ef5['push'](_0x5e7ef5['shift']());}catch(_0x133ed5){_0x5e7ef5['push'](_0x5e7ef5['shift']());}}}(a67_0x3c47,0xc9437));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':a67_0xf8869a(0x1bc),'description':a67_0xf8869a(0x1d2),'risk':a67_0xf8869a(0x1d7),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1d8628){const _0x53cfc9=a67_0xf8869a,_0x4373f5=_0x1d8628[_0x53cfc9(0x1c2)]('code'),_0x3e089f=normalizeListScope(_0x1d8628[_0x53cfc9(0x1c2)](_0x53cfc9(0x1ca)));if(_0x1d8628[_0x53cfc9(0x1db)](_0x53cfc9(0x1ce))){const _0x102771=_0x1d8628[_0x53cfc9(0x1d9)];if(!_0x102771)throw CliErrors[_0x53cfc9(0x1c1)]();const {listLocalRuntimeSkills:_0x2445bc,resolveRuntimeSkillInstallTarget:_0x149b66}=await import(_0x53cfc9(0x1c6)),_0x41fe71=_0x149b66(_0x1d8628[_0x53cfc9(0x1c8)],_0x1d8628[_0x53cfc9(0x1db)]('project')?_0x53cfc9(0x1c4):_0x53cfc9(0x1da)),_0x26ecdd=_0x2445bc({'env':_0x1d8628[_0x53cfc9(0x1bb)]??_0x53cfc9(0x1d6),'accessKey':_0x102771,'appCode':_0x1d8628['appCode'],'scopes':listScopeToRuntimeScopes(_0x3e089f),'code':_0x4373f5[_0x53cfc9(0x1d8)]()||undefined},_0x41fe71),_0x18f478=groupLocalRuntimeSkills(_0x26ecdd);return{'ok':!![],'data':{'appCode':_0x1d8628[_0x53cfc9(0x1c8)],'source':_0x53cfc9(0x1ce),..._0x41fe71[_0x53cfc9(0x1ca)]==='project'?{'installScope':_0x41fe71['scope']}:{},'scope':_0x3e089f,'total':_0x26ecdd[_0x53cfc9(0x1b9)],'personal':_0x18f478[_0x53cfc9(0x1c7)][_0x53cfc9(0x1b9)],'company':_0x18f478[_0x53cfc9(0x1d0)][_0x53cfc9(0x1b9)],'items':_0x26ecdd[_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x18f478[_0x53cfc9(0x1c7)][_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill),'company':_0x18f478[_0x53cfc9(0x1d0)][_0x53cfc9(0x1cf)](summarizeLocalRuntimeSkill)}},'message':_0x53cfc9(0x1d3)+_0x26ecdd[_0x53cfc9(0x1b9)]+_0x53cfc9(0x1cd)};}const {listRuntimeSkills:_0x66dfdd}=await import(_0x53cfc9(0x1c5)),_0x3da5a5=await _0x66dfdd({'appCode':_0x1d8628[_0x53cfc9(0x1c8)],'scope':listScopeToRemoteScope(_0x3e089f),'code':_0x4373f5[_0x53cfc9(0x1d8)]()||undefined}),_0x5f163d=shouldListScope(_0x3e089f,'personal')?_0x3da5a5[_0x53cfc9(0x1c7)]??[]:[],_0x138063=shouldListScope(_0x3e089f,_0x53cfc9(0x1d0))?_0x3da5a5[_0x53cfc9(0x1d0)]??[]:[],_0x3e2cdc=[..._0x5f163d,..._0x138063];return{'ok':!![],'data':{'appCode':_0x1d8628['appCode'],'source':_0x53cfc9(0x1cc),'scope':_0x3e089f,'total':_0x3e2cdc[_0x53cfc9(0x1b9)],'personal':_0x5f163d['length'],'company':_0x138063[_0x53cfc9(0x1b9)],'items':_0x3e2cdc[_0x53cfc9(0x1cf)](summarizeRuntimeSkill),'skills':{'personal':_0x5f163d[_0x53cfc9(0x1cf)](summarizeRuntimeSkill),'company':_0x138063[_0x53cfc9(0x1cf)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x3e2cdc[_0x53cfc9(0x1b9)]+_0x53cfc9(0x1c9)};}};function groupLocalRuntimeSkills(_0x563940){const _0x239f1c=a67_0xf8869a;return{'personal':_0x563940['filter'](_0x4f7e88=>_0x4f7e88[_0x239f1c(0x1ca)]==='personal'),'company':_0x563940['filter'](_0x1a797b=>_0x1a797b[_0x239f1c(0x1ca)]===_0x239f1c(0x1d0)),'builtin':_0x563940[_0x239f1c(0x1c0)](_0x2e61e1=>_0x2e61e1[_0x239f1c(0x1ca)]===_0x239f1c(0x1cb))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a68_0x944e(_0x4cc9cd,_0x1ae141){_0x4cc9cd=_0x4cc9cd-0x16a;const _0x154249=a68_0x1542();let _0x944e67=_0x154249[_0x4cc9cd];return _0x944e67;}const a68_0x380d1d=a68_0x944e;(function(_0x532022,_0x5cc4bc){const _0x326043=a68_0x944e,_0x4bd64c=_0x532022();while(!![]){try{const _0x34ad87=-parseInt(_0x326043(0x176))/0x1*(parseInt(_0x326043(0x178))/0x2)+-parseInt(_0x326043(0x172))/0x3*(-parseInt(_0x326043(0x174))/0x4)+parseInt(_0x326043(0x16a))/0x5+-parseInt(_0x326043(0x170))/0x6*(-parseInt(_0x326043(0x173))/0x7)+-parseInt(_0x326043(0x16f))/0x8*(parseInt(_0x326043(0x177))/0x9)+-parseInt(_0x326043(0x16b))/0xa*(parseInt(_0x326043(0x16e))/0xb)+-parseInt(_0x326043(0x175))/0xc*(-parseInt(_0x326043(0x171))/0xd);if(_0x34ad87===_0x5cc4bc)break;else _0x4bd64c['push'](_0x4bd64c['shift']());}catch(_0x376045){_0x4bd64c['push'](_0x4bd64c['shift']());}}}(a68_0x1542,0x7e8cc));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x1542(){const _0x956ead=['1830470LMYLDO','10aMWbBM','skill','write','1825604bvxdBJ','215456FketOF','1158NmwemM','250198bQDsPq','1098693TJlOqO','7679mIweLz','4neqgMg','336XsUuno','230298bPBAcw','36nZAsts','6jKogxn','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review'];a68_0x1542=function(){return _0x956ead;};return a68_0x1542();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x380d1d(0x16c),'command':'push','description':a68_0x380d1d(0x179),'risk':a68_0x380d1d(0x16d),'confirmationDescription':'Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a69_0x1d8a(){const _0x37d07f=['12eVqXvy','1218264ArdOGi','15970uxGOWB','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','25236XtsOQf','37653wefJXc','read','dir','errors','type','7310050cRDNaE','236KvrrEH','skill','strict','9tuClTp','256IhBgZc','40650JQqdNO','9173WavoNE','bool'];a69_0x1d8a=function(){return _0x37d07f;};return a69_0x1d8a();}function a69_0x312f(_0x3dcd30,_0x260b43){_0x3dcd30=_0x3dcd30-0xec;const _0x1d8a2d=a69_0x1d8a();let _0x312f7a=_0x1d8a2d[_0x3dcd30];return _0x312f7a;}const a69_0x2fa805=a69_0x312f;(function(_0x3ff1c5,_0x47fb5e){const _0x103e7e=a69_0x312f,_0x33ce11=_0x3ff1c5();while(!![]){try{const _0x12c9be=parseInt(_0x103e7e(0xfe))/0x1*(-parseInt(_0x103e7e(0xed))/0x2)+-parseInt(_0x103e7e(0xee))/0x3+parseInt(_0x103e7e(0xf8))/0x4*(parseInt(_0x103e7e(0xef))/0x5)+parseInt(_0x103e7e(0xf1))/0x6+parseInt(_0x103e7e(0xf2))/0x7*(-parseInt(_0x103e7e(0xfc))/0x8)+-parseInt(_0x103e7e(0xfb))/0x9*(parseInt(_0x103e7e(0xfd))/0xa)+parseInt(_0x103e7e(0xf7))/0xb;if(_0x12c9be===_0x47fb5e)break;else _0x33ce11['push'](_0x33ce11['shift']());}catch(_0x200289){_0x33ce11['push'](_0x33ce11['shift']());}}}(a69_0x1d8a,0x35aeb));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x2fa805(0xf9),'command':'validate','description':a69_0x2fa805(0xf0),'risk':a69_0x2fa805(0xf3),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x134305){const _0x27a6b1=a69_0x2fa805,_0x5aad97=_0x134305[_0x27a6b1(0xec)](_0x27a6b1(0xfa)),_0xcbfcbe=validateSkillDirectory(_0x134305['str']('dir'),{'strict':_0x5aad97});return throwIfSkillValidationFailed(_0xcbfcbe,_0x5aad97),{'ok':!![],'data':{'dir':_0xcbfcbe[_0x27a6b1(0xf4)],'type':_0xcbfcbe[_0x27a6b1(0xf6)],'errors':_0xcbfcbe[_0x27a6b1(0xf5)],'warnings':_0xcbfcbe['warnings']},'message':'Skill\x20validation\x20passed.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3670e3,_0xa688cf){const _0x33de47=a70_0x3666,_0xc47e1f=_0x3670e3();while(!![]){try{const _0x4fd6e5=parseInt(_0x33de47(0x118))/0x1*(-parseInt(_0x33de47(0x11a))/0x2)+-parseInt(_0x33de47(0x129))/0x3+-parseInt(_0x33de47(0x12e))/0x4+-parseInt(_0x33de47(0x117))/0x5*(-parseInt(_0x33de47(0x124))/0x6)+parseInt(_0x33de47(0x12b))/0x7+parseInt(_0x33de47(0x120))/0x8+-parseInt(_0x33de47(0x11f))/0x9;if(_0x4fd6e5===_0xa688cf)break;else _0xc47e1f['push'](_0xc47e1f['shift']());}catch(_0x1ba843){_0xc47e1f['push'](_0xc47e1f['shift']());}}}(a70_0x2359,0xb40eb));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;function a70_0x3666(_0x34bcf7,_0x47213d){_0x34bcf7=_0x34bcf7-0x117;const _0x2359c6=a70_0x2359();let _0x366661=_0x2359c6[_0x34bcf7];return _0x366661;}export async function readRequiredSkillDiagram(_0x43c202){const _0x57faf0=a70_0x3666;return(await readRequiredSkillDiagramInput(_0x43c202))[_0x57faf0(0x121)];}export async function readRequiredSkillDiagramInput(_0x118f29){const _0x4c23c6=a70_0x3666,_0x343c4f=_0x118f29[_0x4c23c6(0x127)]();if(!_0x343c4f)throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x11b),'Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.');let _0x368bef,_0x186d63;if(_0x343c4f==='-')try{_0x368bef=readFileSync(0x0,_0x4c23c6(0x119));}catch{throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x122));}else{const _0x8dcd5a=resolve(_0x343c4f);if(!existsSync(_0x8dcd5a))throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x12c)+_0x8dcd5a);if(!statSync(_0x8dcd5a)['isFile']())throw CliErrors[_0x4c23c6(0x12d)](_0x4c23c6(0x11e)+_0x8dcd5a);_0x186d63=realpathSync(_0x8dcd5a),_0x368bef=readFileSync(_0x186d63,_0x4c23c6(0x119));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x368bef)},'sourceFilePath':_0x186d63};}export async function validateAndCanonicalizeMermaid(_0x57176f){const _0x3a9353=a70_0x3666,_0x3eedd7=_0x57176f[_0x3a9353(0x125)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x2ac069=await loadMermaidApi();await _0x2ac069[_0x3a9353(0x12a)](_0x3eedd7);}catch{throw diagramValidationError();}return _0x3eedd7;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x3eafac=a70_0x3666;if(!('window'in globalThis)||!(_0x3eafac(0x126)in globalThis)){const _0x5092a3=new JSDOM('');Object[_0x3eafac(0x11d)](globalThis,{'window':{'configurable':!![],'value':_0x5092a3[_0x3eafac(0x128)]},'document':{'configurable':!![],'value':_0x5092a3[_0x3eafac(0x128)][_0x3eafac(0x126)]}});}return(await import(_0x3eafac(0x123)))['default'];})()),mermaidApiPromise;}function diagramValidationError(){const _0x362fb5=a70_0x3666;return CliErrors[_0x362fb5(0x12d)](_0x362fb5(0x11c),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}function a70_0x2359(){const _0x427c8a=['5860hcHjsA','56029iKwbjt','utf8','20RblxPQ','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','Mermaid\x20syntax\x20validation\x20failed.','defineProperties','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','2630358YfRRIn','6386296KOKzFR','diagram','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','mermaid','4008ThufpK','replace','document','trim','window','3019170IZTsQl','parse','7895951ugAquu','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','validation','450876bIeSlc'];a70_0x2359=function(){return _0x427c8a;};return a70_0x2359();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x2fc7d3=a71_0x3778;(function(_0x3aa50c,_0x53b060){const _0x4aa41c=a71_0x3778,_0x289404=_0x3aa50c();while(!![]){try{const _0x1b1c52=-parseInt(_0x4aa41c(0x77))/0x1*(parseInt(_0x4aa41c(0x92))/0x2)+-parseInt(_0x4aa41c(0x70))/0x3+-parseInt(_0x4aa41c(0x85))/0x4+parseInt(_0x4aa41c(0x74))/0x5*(parseInt(_0x4aa41c(0x8e))/0x6)+parseInt(_0x4aa41c(0x75))/0x7*(parseInt(_0x4aa41c(0x6d))/0x8)+-parseInt(_0x4aa41c(0x6e))/0x9*(-parseInt(_0x4aa41c(0x67))/0xa)+parseInt(_0x4aa41c(0x6f))/0xb*(parseInt(_0x4aa41c(0x7e))/0xc);if(_0x1b1c52===_0x53b060)break;else _0x289404['push'](_0x289404['shift']());}catch(_0xc5a0cb){_0x289404['push'](_0x289404['shift']());}}}(a71_0x5f37,0xcd3ef));function a71_0x3778(_0x1a6d16,_0x387b49){_0x1a6d16=_0x1a6d16-0x67;const _0x5f37f4=a71_0x5f37();let _0x37789e=_0x5f37f4[_0x1a6d16];return _0x37789e;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a71_0x2fc7d3(0x7b),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x7a)};export const SCOPE_FLAG={'name':'scope','type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x8b),'enum':[a71_0x2fc7d3(0x81),a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':'string','description':a71_0x2fc7d3(0x71),'default':'personal','enum':[a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const LIST_SCOPE_FLAG={'name':a71_0x2fc7d3(0x88),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x87),'enum':[a71_0x2fc7d3(0x81),a71_0x2fc7d3(0x7f),a71_0x2fc7d3(0x80)]};export const LOCAL_FLAG={'name':a71_0x2fc7d3(0x83),'type':a71_0x2fc7d3(0x7c),'description':a71_0x2fc7d3(0x69)};export const DIR_FLAG={'name':a71_0x2fc7d3(0x8c),'type':a71_0x2fc7d3(0x73),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a71_0x2fc7d3(0x90),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x84)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x2fc7d3(0x94),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x86)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x2fc7d3(0x76),'type':a71_0x2fc7d3(0x73),'required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x2fc7d3(0x88),'type':a71_0x2fc7d3(0x73),'required':!![],'enum':[a71_0x2fc7d3(0x7f),'company'],'description':a71_0x2fc7d3(0x79)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x2fc7d3(0x6b),'type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x89),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':'a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint'}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x2fc7d3(0x8d),'type':a71_0x2fc7d3(0x78),'required':!![],'description':a71_0x2fc7d3(0x8f)};export const CREATE_NAME_FLAG={'name':'name','type':a71_0x2fc7d3(0x73),'required':!![],'description':a71_0x2fc7d3(0x72),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x2fc7d3(0x68)}};export const TYPE_FLAG={'name':'type','type':a71_0x2fc7d3(0x73),'description':'Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','enum':[...SKILL_TYPES]};function a71_0x5f37(){const _0x250bac=['number','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','code','boolean','project','2317824gDFWWD','personal','company','all','confirm-warnings','local','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','1538332rnYvaC','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','scope','Server-reported\x20SkillVersion\x20source\x20fingerprint','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','dir','expected-diagram-revision','2490znbhya','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','diagram-file','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','2ekjvEA','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','skill-code','130TdMekx','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','target','source-fingerprint','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','5161496lGMFEL','708678ApktKZ','11zTqGeY','4963545rtjFRd','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','string','12775ElLNkH','14fqtIWb','version','687712PFnwBd'];a71_0x5f37=function(){return _0x250bac;};return a71_0x5f37();}export const TARGET_FLAG={'name':a71_0x2fc7d3(0x6a),'type':a71_0x2fc7d3(0x73),'description':a71_0x2fc7d3(0x6c),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':a71_0x2fc7d3(0x91)};export const PROJECT_TARGET_FLAG={'name':a71_0x2fc7d3(0x7d),'type':'boolean','description':a71_0x2fc7d3(0x93)};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x2fc7d3(0x82),'type':a71_0x2fc7d3(0x7c),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':'strict','type':a71_0x2fc7d3(0x7c),'description':a71_0x2fc7d3(0x8a)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2af308,_0x17d0e6){const _0x2dcfb4=a72_0x740e,_0x44fdb0=_0x2af308();while(!![]){try{const _0x6c4a37=parseInt(_0x2dcfb4(0xfc))/0x1*(parseInt(_0x2dcfb4(0xf8))/0x2)+-parseInt(_0x2dcfb4(0xff))/0x3+-parseInt(_0x2dcfb4(0xfa))/0x4*(parseInt(_0x2dcfb4(0xf5))/0x5)+-parseInt(_0x2dcfb4(0xf6))/0x6*(-parseInt(_0x2dcfb4(0xf7))/0x7)+parseInt(_0x2dcfb4(0xfe))/0x8*(parseInt(_0x2dcfb4(0xf9))/0x9)+-parseInt(_0x2dcfb4(0xfb))/0xa+parseInt(_0x2dcfb4(0xfd))/0xb;if(_0x6c4a37===_0x17d0e6)break;else _0x44fdb0['push'](_0x44fdb0['shift']());}catch(_0x1a5896){_0x44fdb0['push'](_0x44fdb0['shift']());}}}(a72_0x4cf9,0x796bd));import{createCommand}from'./commands/create.js';function a72_0x4cf9(){const _0x385bc0=['1296200IcxaYy','597432MvQYGa','1943450ArhPjW','4195758YQTkPl','7UgDGjO','2QtAlQX','18YYlHTP','8lXTtWe','5284060PCIFaf','730826yhtnCV','2729122GgegoP'];a72_0x4cf9=function(){return _0x385bc0;};return a72_0x4cf9();}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a72_0x740e(_0x4ab19b,_0x48b5e7){_0x4ab19b=_0x4ab19b-0xf5;const _0x4cf90a=a72_0x4cf9();let _0x740e76=_0x4cf90a[_0x4ab19b];return _0x740e76;}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x419f9b,_0x2069b9){var _0x583a21=a73_0x1bd0,_0x2db2a1=_0x419f9b();while(!![]){try{var _0x2f5ffe=parseInt(_0x583a21(0xdb))/0x1*(parseInt(_0x583a21(0xd9))/0x2)+parseInt(_0x583a21(0xd3))/0x3+-parseInt(_0x583a21(0xd8))/0x4*(parseInt(_0x583a21(0xdc))/0x5)+-parseInt(_0x583a21(0xd7))/0x6+-parseInt(_0x583a21(0xde))/0x7*(-parseInt(_0x583a21(0xe0))/0x8)+-parseInt(_0x583a21(0xe1))/0x9+-parseInt(_0x583a21(0xd1))/0xa*(-parseInt(_0x583a21(0xd4))/0xb);if(_0x2f5ffe===_0x2069b9)break;else _0x2db2a1['push'](_0x2db2a1['shift']());}catch(_0x2fd495){_0x2db2a1['push'](_0x2db2a1['shift']());}}}(a73_0x44ab,0xb8518));function a73_0x44ab(){var _0x5ae9d2=['files','56jbzWfy','path','1170872TfLGFL','11680434HCwkXD','ossPath','isArray','700znjYAT','SKILL.md','3171195veEyGN','108713ZMIZxt','string','some','7229712dqvfYL','68fDFsVs','2kGpztQ','object','911018oiuBQW','168535CIyfzF'];a73_0x44ab=function(){return _0x5ae9d2;};return a73_0x44ab();}export function isPackageBackedManifest(_0x1b9240){var _0x2edd3f=a73_0x1bd0;return!!_0x1b9240&&typeof _0x1b9240===_0x2edd3f(0xda)&&!Array['isArray'](_0x1b9240)&&typeof _0x1b9240['ossPath']===_0x2edd3f(0xd5)&&_0x1b9240[_0x2edd3f(0xe2)]['length']>0x0&&Array['isArray'](_0x1b9240[_0x2edd3f(0xdd)]);}function a73_0x1bd0(_0x4c9281,_0x36021b){_0x4c9281=_0x4c9281-0xd0;var _0x44ab77=a73_0x44ab();var _0x1bd093=_0x44ab77[_0x4c9281];return _0x1bd093;}export function isMultiFileManifest(_0x36767f){var _0x5581ac=a73_0x1bd0;return!!_0x36767f&&typeof _0x36767f===_0x5581ac(0xda)&&!Array[_0x5581ac(0xd0)](_0x36767f)&&Array[_0x5581ac(0xd0)](_0x36767f[_0x5581ac(0xdd)])&&_0x36767f[_0x5581ac(0xdd)][_0x5581ac(0xd6)](_0x54b5f6=>_0x54b5f6[_0x5581ac(0xdf)]!==_0x5581ac(0xd2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a74_0x3557(_0x186ddc,_0x599a66){_0x186ddc=_0x186ddc-0x185;const _0x402b4b=a74_0x402b();let _0x355788=_0x402b4b[_0x186ddc];return _0x355788;}(function(_0x555e49,_0x19c5b3){const _0x46b30f=a74_0x3557,_0x3124dd=_0x555e49();while(!![]){try{const _0x28c1c1=-parseInt(_0x46b30f(0x188))/0x1+-parseInt(_0x46b30f(0x1bb))/0x2+-parseInt(_0x46b30f(0x187))/0x3+-parseInt(_0x46b30f(0x19c))/0x4*(parseInt(_0x46b30f(0x1a4))/0x5)+-parseInt(_0x46b30f(0x185))/0x6+parseInt(_0x46b30f(0x1b2))/0x7*(-parseInt(_0x46b30f(0x1ad))/0x8)+parseInt(_0x46b30f(0x1a2))/0x9;if(_0x28c1c1===_0x19c5b3)break;else _0x3124dd['push'](_0x3124dd['shift']());}catch(_0x52fcb3){_0x3124dd['push'](_0x3124dd['shift']());}}}(a74_0x402b,0xd162a));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';function a74_0x402b(){const _0x365bb8=['appCode','str','company','version','trim','84iPaTlX','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','POST','publishInput','valid','resolvedSlug','51854643DirWIo','Company','328895oNmyZG','payload','../../skills/runtime-skill-sync.js','authRequired','(unknown)','frontmatterDisplayName','personal','unknown','bool','5879768KTcWRp','identical','scope','../../core/api-client.js','diagramValidated','7CsgwRd','errors','Updated\x20personal\x20Skill\x20','input','metadata','Submitted\x20company\x20Skill\x20','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','/api/cli/v1/skills/','resolvedVersion','487040kmdJQj','\x20version\x20','status','1944264wGaoso','warnings','2309172qoNqGP','1450367MrwYqG','confirmWarnings','savedSkill','files','accessKey','skillCode','dir','existing','diagram-file','appcode','NAMESPACE_ONLY','PRIVATE','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','confirm-warnings','/publish/validate'];a74_0x402b=function(){return _0x365bb8;};return a74_0x402b();}import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x529f74){const _0x9fe3bd=a74_0x3557,{getRuntimeSkillByCode:_0xd79d16,validateRuntimeSkillPublish:_0x225edf}=await import(_0x9fe3bd(0x1b0)),{readPushDirectory:_0x4af0f6,resolvePushDirectoryIdentity:_0x142431}=await import(_0x9fe3bd(0x1a6));if(!_0x529f74[_0x9fe3bd(0x18c)])throw CliErrors[_0x9fe3bd(0x1a7)]();const _0x57e8e1=resolvePushScope(_0x529f74),_0x1a35dd=validateSkillDirectory(_0x529f74[_0x9fe3bd(0x198)]('dir'));throwIfSkillValidationFailed(_0x1a35dd);const {diagram:_0xed1bc3,sourceFilePath:_0x4691b4}=await readRequiredSkillDiagramInput(_0x529f74[_0x9fe3bd(0x198)]('diagram-file')),_0x4453a4=diagramPackageExclusion(_0x4691b4),_0x1c0573=_0x142431(_0x1a35dd['dir'],_0x529f74[_0x9fe3bd(0x197)],remoteFirstMetadataOptions()),_0x1078f0=await _0xd79d16(_0x529f74[_0x9fe3bd(0x197)],_0x1c0573[_0x9fe3bd(0x18d)]);throwIfBuiltinPushTarget(_0x1078f0);if(_0x57e8e1===_0x9fe3bd(0x199)){const _0x4b2ec7=_0x4af0f6(_0x1a35dd[_0x9fe3bd(0x18e)],_0x529f74['appCode'],{...remoteMissingCompanyReadOptions(),..._0x4453a4}),_0x4726b2=await _0x225edf(_0x529f74[_0x9fe3bd(0x197)],withDiagram(_0x4b2ec7['input'],_0xed1bc3),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x9fe3bd(0x19e),'url':_0x9fe3bd(0x1b9)+_0x529f74[_0x9fe3bd(0x197)]+_0x9fe3bd(0x196),'body':{'skillCode':_0x4b2ec7[_0x9fe3bd(0x18d)],'visibility':_0x9fe3bd(0x192),'valid':_0x4726b2[_0x9fe3bd(0x1a0)],'errors':_0x4726b2[_0x9fe3bd(0x1b3)],'warnings':_0x4726b2['warnings'],'resolvedSlug':_0x4726b2[_0x9fe3bd(0x1a1)],'resolvedVersion':_0x4726b2[_0x9fe3bd(0x1ba)],'diagramValidated':_0x4726b2['diagramValidated']},'description':_0x9fe3bd(0x19d)};}if(_0x1078f0&&_0x1078f0[_0x9fe3bd(0x1af)]!=='personal')throw CliErrors['validation'](_0x9fe3bd(0x1b8)+_0x1c0573[_0x9fe3bd(0x18d)]+'\x20has\x20scope=\x22'+(_0x1078f0[_0x9fe3bd(0x1af)]??_0x9fe3bd(0x1ab))+'\x22.');const _0x519f7f=_0x4af0f6(_0x1a35dd[_0x9fe3bd(0x18e)],_0x529f74[_0x9fe3bd(0x197)],{..._0x1078f0?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x4453a4}),_0x4e6261=await _0x225edf(_0x529f74[_0x9fe3bd(0x197)],withDiagram(_0x519f7f[_0x9fe3bd(0x1b5)],_0xed1bc3),{'visibility':_0x9fe3bd(0x193)});return{'method':_0x9fe3bd(0x19e),'url':_0x9fe3bd(0x1b9)+_0x529f74[_0x9fe3bd(0x197)]+'/publish/validate','body':{'skillCode':_0x519f7f[_0x9fe3bd(0x18d)],'visibility':'PRIVATE','valid':_0x4e6261[_0x9fe3bd(0x1a0)],'errors':_0x4e6261['errors'],'warnings':_0x4e6261[_0x9fe3bd(0x186)],'resolvedSlug':_0x4e6261[_0x9fe3bd(0x1a1)],'resolvedVersion':_0x4e6261[_0x9fe3bd(0x1ba)],'diagramValidated':_0x4e6261[_0x9fe3bd(0x1b1)]},'description':_0x9fe3bd(0x194)};}export async function skillPushExecute(_0xe0a0c8){const _0x51772e=a74_0x3557,{createPersonalRuntimeSkill:_0x171dc7,downloadRuntimeSkillPackage:_0x266f40,getRuntimeSkillByCode:_0x17287c,publishCompanyRuntimeSkill:_0x28a8a3,updatePersonalRuntimeSkill:_0x3c5e39,validateRuntimeSkillPublish:_0x2ed349}=await import(_0x51772e(0x1b0)),{verifyRuntimeSkillPackage:_0x47d6a4,verifyRuntimeSkillBundle:_0x712410,readPushDirectory:_0x1a1346,refreshPushDirectoryMetadataFromRemote:_0x346e48,recordPushedRuntimeSkill:_0xa2355d,resolvePushDirectoryIdentity:_0x15ee7e}=await import(_0x51772e(0x1a6));if(!_0xe0a0c8['accessKey'])throw CliErrors[_0x51772e(0x1a7)]();const _0x364c28=resolvePushScope(_0xe0a0c8),_0x1ff08a=_0xe0a0c8[_0x51772e(0x1ac)](_0x51772e(0x195))||_0xe0a0c8[_0x51772e(0x1ac)](_0x51772e(0x189)),_0x4056ac=validateSkillDirectory(_0xe0a0c8[_0x51772e(0x198)]('dir'));throwIfSkillValidationFailed(_0x4056ac);const {diagram:_0xbffadb,sourceFilePath:_0xcb5924}=await readRequiredSkillDiagramInput(_0xe0a0c8[_0x51772e(0x198)](_0x51772e(0x190))),_0x2bd155=diagramPackageExclusion(_0xcb5924),_0x1ae12f=_0x4056ac[_0x51772e(0x18e)];let _0x2503b5;if(_0x364c28===_0x51772e(0x199)){const _0x4d8b49=_0x15ee7e(_0x1ae12f,_0xe0a0c8[_0x51772e(0x197)],remoteFirstMetadataOptions()),_0x345a72=await _0x17287c(_0xe0a0c8[_0x51772e(0x197)],_0x4d8b49['skillCode']);throwIfBuiltinPushTarget(_0x345a72);if(_0x345a72)_0x346e48(_0x1ae12f,_0x345a72,_0xe0a0c8['appCode']);const _0x22eeac=_0x1a1346(_0x1ae12f,_0xe0a0c8['appCode'],{..._0x345a72?{'targetScope':_0x51772e(0x199),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2bd155});_0x2503b5={'scope':_0x51772e(0x199),'payload':_0x22eeac,'publishInput':withDiagram(_0x22eeac[_0x51772e(0x1b5)],_0xbffadb),'remoteForPreflight':_0x345a72,'warnings':[]};}else{const _0x5e48e2=_0xe0a0c8[_0x51772e(0x198)](_0x51772e(0x191))[_0x51772e(0x19b)](),_0x485a3a=Boolean(_0x5e48e2),_0x4a8459=allowRetargetArgs(_0x485a3a),_0xab5e46=_0x15ee7e(_0x1ae12f,_0xe0a0c8[_0x51772e(0x197)],{...remoteFirstMetadataOptions(),..._0x4a8459[0x0]}),_0xf97a15=await _0x17287c(_0xe0a0c8['appCode'],_0xab5e46[_0x51772e(0x18d)]);throwIfBuiltinPushTarget(_0xf97a15);if(_0xf97a15){if(_0xf97a15[_0x51772e(0x1af)]!=='personal'){if(_0x485a3a)throw CliErrors['validation'](_0x51772e(0x1b8)+_0xab5e46[_0x51772e(0x18d)]+'\x20has\x20scope=\x22'+(_0xf97a15['scope']??'unknown')+'\x22.');_0x346e48(_0x1ae12f,_0xf97a15,_0xe0a0c8['appCode']);}else!_0x485a3a&&_0x346e48(_0x1ae12f,_0xf97a15,_0xe0a0c8[_0x51772e(0x197)]);}const _0x503d99=_0x1a1346(_0x1ae12f,_0xe0a0c8['appCode'],{..._0xf97a15?remotePersonalReadOptions(_0x485a3a,_0x4a8459[0x0]):remoteMissingPersonalReadOptions(_0x4a8459[0x0]),..._0x2bd155}),_0x534cfb=_0xf97a15?.['scope']===_0x51772e(0x1aa)&&_0xf97a15['skillCode']===_0x503d99[_0x51772e(0x18d)]?_0xf97a15:undefined,_0x2be64a=_0x485a3a&&_0x534cfb?withRetargetExistingMetadata(_0x503d99[_0x51772e(0x1b5)],_0x534cfb,{'preferInputSkillName':Boolean(_0x503d99[_0x51772e(0x1a9)])}):_0x503d99[_0x51772e(0x1b5)],_0x3b4f39=_0x485a3a?buildRetargetWarning(_0xab5e46[_0x51772e(0x1b6)],_0xe0a0c8[_0x51772e(0x197)]):[];_0x2503b5={'scope':_0x51772e(0x1aa),'payload':_0x503d99,'publishInput':withDiagram(_0x2be64a,_0xbffadb),'remoteForPreflight':_0x534cfb,'existing':_0x534cfb,'warnings':[..._0x4056ac[_0x51772e(0x186)],..._0x3b4f39]};}const _0x2932f5=await runRemoteContentPreflight({'scope':_0x2503b5['scope'],'remote':_0x2503b5['remoteForPreflight'],'publishInput':_0x2503b5[_0x51772e(0x19f)],'skillCode':_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)],'appCode':_0xe0a0c8[_0x51772e(0x197)],'downloadRuntimeSkillPackage':_0x266f40,'verifyRuntimeSkillBundle':_0x712410});if(_0x2932f5[_0x51772e(0x1bd)]===_0x51772e(0x1ae))return _0x2503b5[_0x51772e(0x1af)]===_0x51772e(0x199)?_0xa2355d(_0x1ae12f,_0x2932f5[_0x51772e(0x18a)],_0xe0a0c8[_0x51772e(0x197)],{'scope':_0x51772e(0x199)}):_0xa2355d(_0x1ae12f,_0x2932f5[_0x51772e(0x18a)],_0xe0a0c8['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2932f5[_0x51772e(0x18a)]),'scope':_0x2503b5['scope'],..._0x2503b5['scope']===_0x51772e(0x1aa)?{'warnings':_0x2503b5[_0x51772e(0x186)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x2503b5['scope'])+'\x20Skill\x20'+_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x2503b5[_0x51772e(0x1af)]===_0x51772e(0x199)){const _0x4a2ede=await _0x2ed349(_0xe0a0c8[_0x51772e(0x197)],_0x2503b5[_0x51772e(0x19f)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x51772e(0x199),_0x2503b5[_0x51772e(0x1a5)]['skillCode'],_0x4a2ede),throwIfUnconfirmedPublishWarnings(_0x51772e(0x199),_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)],_0x4a2ede[_0x51772e(0x186)],_0x1ff08a);const _0x3e70a7=await _0x28a8a3(_0xe0a0c8[_0x51772e(0x197)],_0x2503b5[_0x51772e(0x19f)],{'confirmWarnings':_0x1ff08a});return _0xa2355d(_0x1ae12f,{..._0x3e70a7,'files':_0x2503b5[_0x51772e(0x19f)]['files']},_0xe0a0c8['appCode'],{'scope':_0x51772e(0x199)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3e70a7),'scope':_0x51772e(0x199),'reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x4a2ede[_0x51772e(0x186)]}},'message':_0x51772e(0x1b7)+_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)]+_0x51772e(0x1bc)+(_0x3e70a7[_0x51772e(0x19a)]??_0x51772e(0x1a8))+'\x20for\x20review'};}const _0x317f66=await _0x2ed349(_0xe0a0c8[_0x51772e(0x197)],_0x2503b5[_0x51772e(0x19f)],{'visibility':_0x51772e(0x193)});throwIfPublishValidationFailed(_0x51772e(0x1aa),_0x2503b5[_0x51772e(0x1a5)]['skillCode'],_0x317f66),throwIfUnconfirmedPublishWarnings(_0x51772e(0x1aa),_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)],_0x317f66[_0x51772e(0x186)],_0x1ff08a);const _0x221774={'confirmWarnings':_0x1ff08a},_0x3fdd0a=_0x2503b5[_0x51772e(0x18f)]?await _0x3c5e39(_0x2503b5[_0x51772e(0x1a5)]['skillCode'],_0xe0a0c8[_0x51772e(0x197)],_0x2503b5[_0x51772e(0x19f)],_0x221774):await _0x171dc7(_0xe0a0c8['appCode'],_0x2503b5[_0x51772e(0x19f)],_0x221774);let _0x44ea09=_0x3fdd0a;if(isMultiFileManifest(_0x2503b5['publishInput'][_0x51772e(0x18b)])){const _0x53d06c=await _0x266f40('personal',_0x3fdd0a['skillCode']||_0x2503b5[_0x51772e(0x1a5)][_0x51772e(0x18d)],_0xe0a0c8[_0x51772e(0x197)]);_0x712410(_0x2503b5['publishInput'][_0x51772e(0x18b)],_0x53d06c),_0x44ea09={..._0x3fdd0a,'files':_0x2503b5['publishInput'][_0x51772e(0x18b)]};}else{if(isPackageBackedManifest(_0x3fdd0a[_0x51772e(0x18b)])){const _0x4fef40=await _0x266f40('personal',_0x3fdd0a[_0x51772e(0x18d)]||_0x2503b5['payload']['skillCode'],_0xe0a0c8[_0x51772e(0x197)]);_0x47d6a4(_0x3fdd0a['files'],_0x4fef40);}}return _0xa2355d(_0x1ae12f,_0x44ea09,_0xe0a0c8[_0x51772e(0x197)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3fdd0a),'warnings':_0x2503b5[_0x51772e(0x186)],'validation':{'warnings':_0x317f66[_0x51772e(0x186)]},'diagramBound':!![]},'message':_0x2503b5['existing']?_0x51772e(0x1b4)+_0x2503b5['payload'][_0x51772e(0x18d)]:'Created\x20personal\x20Skill\x20'+_0x2503b5['payload']['skillCode']};}function scopeLabel(_0x1a101c){const _0x2d3023=a74_0x3557;return _0x1a101c===_0x2d3023(0x199)?_0x2d3023(0x1a3):'Personal';}function withDiagram(_0x1ebf6c,_0x3bb6f9){return{..._0x1ebf6c,'diagram':_0x3bb6f9};}function diagramPackageExclusion(_0x4c0df1){return _0x4c0df1?{'excludedFilePaths':[_0x4c0df1]}:{};}
|
|
1
|
+
(function(_0x7ea6cc,_0x465f93){const _0x2f5236=a74_0x2c7a,_0xe5e13d=_0x7ea6cc();while(!![]){try{const _0x1ffbb8=-parseInt(_0x2f5236(0x1e0))/0x1*(-parseInt(_0x2f5236(0x1e4))/0x2)+-parseInt(_0x2f5236(0x1dc))/0x3+-parseInt(_0x2f5236(0x1d1))/0x4*(parseInt(_0x2f5236(0x1f0))/0x5)+parseInt(_0x2f5236(0x1d8))/0x6+-parseInt(_0x2f5236(0x1e3))/0x7+-parseInt(_0x2f5236(0x1c1))/0x8*(-parseInt(_0x2f5236(0x1cf))/0x9)+parseInt(_0x2f5236(0x1db))/0xa*(parseInt(_0x2f5236(0x1d5))/0xb);if(_0x1ffbb8===_0x465f93)break;else _0xe5e13d['push'](_0xe5e13d['shift']());}catch(_0x52e0c6){_0xe5e13d['push'](_0xe5e13d['shift']());}}}(a74_0x343b,0xd5843));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';function a74_0x2c7a(_0x49a115,_0x1f77df){_0x49a115=_0x49a115-0x1c1;const _0x343be4=a74_0x343b();let _0x2c7a30=_0x343be4[_0x49a115];return _0x2c7a30;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4d3fb9){const _0xd73f34=a74_0x2c7a,{getRuntimeSkillByCode:_0x33da53,validateRuntimeSkillPublish:_0x43c09c}=await import('../../core/api-client.js'),{readPushDirectory:_0x497ddd,resolvePushDirectoryIdentity:_0x1e6325}=await import(_0xd73f34(0x1ca));if(!_0x4d3fb9[_0xd73f34(0x1ed)])throw CliErrors[_0xd73f34(0x1e5)]();const _0x187d2a=resolvePushScope(_0x4d3fb9),_0x4eb2a2=validateSkillDirectory(_0x4d3fb9[_0xd73f34(0x1ea)](_0xd73f34(0x1d3)));throwIfSkillValidationFailed(_0x4eb2a2);const {diagram:_0x5123cb,sourceFilePath:_0xab1244}=await readRequiredSkillDiagramInput(_0x4d3fb9[_0xd73f34(0x1ea)](_0xd73f34(0x1e8))),_0x3d7718=diagramPackageExclusion(_0xab1244),_0x224bd7=_0x1e6325(_0x4eb2a2['dir'],_0x4d3fb9[_0xd73f34(0x1d7)],remoteFirstMetadataOptions()),_0xb83404=await _0x33da53(_0x4d3fb9[_0xd73f34(0x1d7)],_0x224bd7['skillCode']);throwIfBuiltinPushTarget(_0xb83404);if(_0x187d2a==='company'){const _0x7ab5b=_0x497ddd(_0x4eb2a2[_0xd73f34(0x1d3)],_0x4d3fb9[_0xd73f34(0x1d7)],{...remoteMissingCompanyReadOptions(),..._0x3d7718}),_0x52f2a1=await _0x43c09c(_0x4d3fb9[_0xd73f34(0x1d7)],withDiagram(_0x7ab5b[_0xd73f34(0x1f4)],_0x5123cb),{'visibility':_0xd73f34(0x1f1)});return{'method':_0xd73f34(0x1e7),'url':'/api/cli/v1/skills/'+_0x4d3fb9['appCode']+_0xd73f34(0x1d9),'body':{'skillCode':_0x7ab5b[_0xd73f34(0x1f9)],'visibility':_0xd73f34(0x1f1),'valid':_0x52f2a1[_0xd73f34(0x1c9)],'errors':_0x52f2a1[_0xd73f34(0x1de)],'warnings':_0x52f2a1['warnings'],'resolvedSlug':_0x52f2a1[_0xd73f34(0x1e2)],'resolvedVersion':_0x52f2a1[_0xd73f34(0x1da)],'diagramValidated':_0x52f2a1[_0xd73f34(0x1cd)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0xb83404&&_0xb83404[_0xd73f34(0x1d6)]!==_0xd73f34(0x1c2))throw CliErrors[_0xd73f34(0x1f7)](_0xd73f34(0x1f8)+_0x224bd7[_0xd73f34(0x1f9)]+'\x20has\x20scope=\x22'+(_0xb83404[_0xd73f34(0x1d6)]??_0xd73f34(0x1e9))+'\x22.');const _0x32b4e3=_0x497ddd(_0x4eb2a2[_0xd73f34(0x1d3)],_0x4d3fb9[_0xd73f34(0x1d7)],{..._0xb83404?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x3d7718}),_0x162168=await _0x43c09c(_0x4d3fb9['appCode'],withDiagram(_0x32b4e3[_0xd73f34(0x1f4)],_0x5123cb),{'visibility':_0xd73f34(0x1ee)});return{'method':_0xd73f34(0x1e7),'url':'/api/cli/v1/skills/'+_0x4d3fb9[_0xd73f34(0x1d7)]+_0xd73f34(0x1d9),'body':{'skillCode':_0x32b4e3['skillCode'],'visibility':'PRIVATE','valid':_0x162168['valid'],'errors':_0x162168[_0xd73f34(0x1de)],'warnings':_0x162168[_0xd73f34(0x1c8)],'resolvedSlug':_0x162168[_0xd73f34(0x1e2)],'resolvedVersion':_0x162168[_0xd73f34(0x1da)],'diagramValidated':_0x162168['diagramValidated']},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x553c59){const _0x2ed7a9=a74_0x2c7a,{createPersonalRuntimeSkill:_0x3d57d4,downloadRuntimeSkillPackage:_0x141315,getRuntimeSkillByCode:_0x3c43c9,publishCompanyRuntimeSkill:_0x489dad,updatePersonalRuntimeSkill:_0x13f5e7,validateRuntimeSkillPublish:_0xd0cbe}=await import(_0x2ed7a9(0x1d4)),{verifyRuntimeSkillPackage:_0x3cede6,verifyRuntimeSkillBundle:_0x50b4b5,readPushDirectory:_0x6c73db,refreshPushDirectoryMetadataFromRemote:_0x4937e4,recordPushedRuntimeSkill:_0x42155f,resolvePushDirectoryIdentity:_0x13f65a}=await import(_0x2ed7a9(0x1ca));if(!_0x553c59[_0x2ed7a9(0x1ed)])throw CliErrors[_0x2ed7a9(0x1e5)]();const _0x2df2a5=resolvePushScope(_0x553c59),_0x776277=_0x553c59[_0x2ed7a9(0x1f2)](_0x2ed7a9(0x1ec))||_0x553c59[_0x2ed7a9(0x1f2)](_0x2ed7a9(0x1cb)),_0x113f8e=validateSkillDirectory(_0x553c59[_0x2ed7a9(0x1ea)](_0x2ed7a9(0x1d3)));throwIfSkillValidationFailed(_0x113f8e);const {diagram:_0x26b33a,sourceFilePath:_0x41a42e}=await readRequiredSkillDiagramInput(_0x553c59['str'](_0x2ed7a9(0x1e8))),_0x422824=diagramPackageExclusion(_0x41a42e),_0x12151b=_0x113f8e[_0x2ed7a9(0x1d3)];let _0x501e7c;if(_0x2df2a5===_0x2ed7a9(0x1eb)){const _0x5489e5=_0x13f65a(_0x12151b,_0x553c59['appCode'],remoteFirstMetadataOptions()),_0x2781fa=await _0x3c43c9(_0x553c59[_0x2ed7a9(0x1d7)],_0x5489e5[_0x2ed7a9(0x1f9)]);throwIfBuiltinPushTarget(_0x2781fa);if(_0x2781fa)_0x4937e4(_0x12151b,_0x2781fa,_0x553c59['appCode']);const _0x22c1af=_0x6c73db(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{..._0x2781fa?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x422824});_0x501e7c={'scope':_0x2ed7a9(0x1eb),'payload':_0x22c1af,'publishInput':withDiagram(_0x22c1af['input'],_0x26b33a),'remoteForPreflight':_0x2781fa,'warnings':[]};}else{const _0x402a65=_0x553c59[_0x2ed7a9(0x1ea)](_0x2ed7a9(0x1dd))['trim'](),_0x39c8ed=Boolean(_0x402a65),_0x51e697=allowRetargetArgs(_0x39c8ed),_0x2a66e5=_0x13f65a(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{...remoteFirstMetadataOptions(),..._0x51e697[0x0]}),_0x1fefab=await _0x3c43c9(_0x553c59['appCode'],_0x2a66e5[_0x2ed7a9(0x1f9)]);throwIfBuiltinPushTarget(_0x1fefab);if(_0x1fefab){if(_0x1fefab[_0x2ed7a9(0x1d6)]!=='personal'){if(_0x39c8ed)throw CliErrors[_0x2ed7a9(0x1f7)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2a66e5[_0x2ed7a9(0x1f9)]+_0x2ed7a9(0x1f5)+(_0x1fefab[_0x2ed7a9(0x1d6)]??'unknown')+'\x22.');_0x4937e4(_0x12151b,_0x1fefab,_0x553c59[_0x2ed7a9(0x1d7)]);}else!_0x39c8ed&&_0x4937e4(_0x12151b,_0x1fefab,_0x553c59[_0x2ed7a9(0x1d7)]);}const _0x3902ca=_0x6c73db(_0x12151b,_0x553c59[_0x2ed7a9(0x1d7)],{..._0x1fefab?remotePersonalReadOptions(_0x39c8ed,_0x51e697[0x0]):remoteMissingPersonalReadOptions(_0x51e697[0x0]),..._0x422824}),_0x3579d5=_0x1fefab?.[_0x2ed7a9(0x1d6)]===_0x2ed7a9(0x1c2)&&_0x1fefab[_0x2ed7a9(0x1f9)]===_0x3902ca[_0x2ed7a9(0x1f9)]?_0x1fefab:undefined,_0xeaf92c=_0x39c8ed&&_0x3579d5?withRetargetExistingMetadata(_0x3902ca[_0x2ed7a9(0x1f4)],_0x3579d5,{'preferInputSkillName':Boolean(_0x3902ca[_0x2ed7a9(0x1e6)])}):_0x3902ca[_0x2ed7a9(0x1f4)],_0x52d77c=_0x39c8ed?buildRetargetWarning(_0x2a66e5[_0x2ed7a9(0x1df)],_0x553c59[_0x2ed7a9(0x1d7)]):[];_0x501e7c={'scope':_0x2ed7a9(0x1c2),'payload':_0x3902ca,'publishInput':withDiagram(_0xeaf92c,_0x26b33a),'remoteForPreflight':_0x3579d5,'existing':_0x3579d5,'warnings':[..._0x113f8e[_0x2ed7a9(0x1c8)],..._0x52d77c]};}const _0x10887d=await runRemoteContentPreflight({'scope':_0x501e7c[_0x2ed7a9(0x1d6)],'remote':_0x501e7c[_0x2ed7a9(0x1cc)],'publishInput':_0x501e7c[_0x2ed7a9(0x1c6)],'skillCode':_0x501e7c['payload'][_0x2ed7a9(0x1f9)],'appCode':_0x553c59['appCode'],'downloadRuntimeSkillPackage':_0x141315,'verifyRuntimeSkillBundle':_0x50b4b5});if(_0x10887d['status']==='identical')return _0x501e7c[_0x2ed7a9(0x1d6)]==='company'?_0x42155f(_0x12151b,_0x10887d[_0x2ed7a9(0x1e1)],_0x553c59['appCode'],{'scope':'company'}):_0x42155f(_0x12151b,_0x10887d[_0x2ed7a9(0x1e1)],_0x553c59[_0x2ed7a9(0x1d7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x10887d[_0x2ed7a9(0x1e1)]),'scope':_0x501e7c['scope'],..._0x501e7c[_0x2ed7a9(0x1d6)]===_0x2ed7a9(0x1c2)?{'warnings':_0x501e7c[_0x2ed7a9(0x1c8)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x501e7c[_0x2ed7a9(0x1d6)])+'\x20Skill\x20'+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x501e7c[_0x2ed7a9(0x1d6)]==='company'){const _0x1173ed=await _0xd0cbe(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],{'visibility':_0x2ed7a9(0x1f1)});throwIfPublishValidationFailed(_0x2ed7a9(0x1eb),_0x501e7c['payload']['skillCode'],_0x1173ed),throwIfUnconfirmedPublishWarnings(_0x2ed7a9(0x1eb),_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode'],_0x1173ed['warnings'],_0x776277);const _0x558949=await _0x489dad(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c[_0x2ed7a9(0x1c6)],{'confirmWarnings':_0x776277});return _0x42155f(_0x12151b,{..._0x558949,'files':_0x501e7c[_0x2ed7a9(0x1c6)][_0x2ed7a9(0x1c3)]},_0x553c59[_0x2ed7a9(0x1d7)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x558949),'scope':'company','reviewState':_0x2ed7a9(0x1c7),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x1173ed[_0x2ed7a9(0x1c8)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode']+_0x2ed7a9(0x1f3)+(_0x558949[_0x2ed7a9(0x1ef)]??_0x2ed7a9(0x1ce))+'\x20for\x20review'};}const _0x5d77c=await _0xd0cbe(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x2ed7a9(0x1c2),_0x501e7c['payload'][_0x2ed7a9(0x1f9)],_0x5d77c),throwIfUnconfirmedPublishWarnings(_0x2ed7a9(0x1c2),_0x501e7c[_0x2ed7a9(0x1c4)]['skillCode'],_0x5d77c[_0x2ed7a9(0x1c8)],_0x776277);const _0x37528f={'confirmWarnings':_0x776277},_0x47e5c4=_0x501e7c['existing']?await _0x13f5e7(_0x501e7c['payload'][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c[_0x2ed7a9(0x1c6)],_0x37528f):await _0x3d57d4(_0x553c59[_0x2ed7a9(0x1d7)],_0x501e7c['publishInput'],_0x37528f);let _0x145fbf=_0x47e5c4;if(isMultiFileManifest(_0x501e7c['publishInput'][_0x2ed7a9(0x1c3)])){const _0x477476=await _0x141315(_0x2ed7a9(0x1c2),_0x47e5c4[_0x2ed7a9(0x1f9)]||_0x501e7c[_0x2ed7a9(0x1c4)][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)]);_0x50b4b5(_0x501e7c[_0x2ed7a9(0x1c6)]['files'],_0x477476),_0x145fbf={..._0x47e5c4,'files':_0x501e7c['publishInput'][_0x2ed7a9(0x1c3)]};}else{if(isPackageBackedManifest(_0x47e5c4[_0x2ed7a9(0x1c3)])){const _0x518fe6=await _0x141315(_0x2ed7a9(0x1c2),_0x47e5c4[_0x2ed7a9(0x1f9)]||_0x501e7c[_0x2ed7a9(0x1c4)][_0x2ed7a9(0x1f9)],_0x553c59[_0x2ed7a9(0x1d7)]);_0x3cede6(_0x47e5c4[_0x2ed7a9(0x1c3)],_0x518fe6);}}return _0x42155f(_0x12151b,_0x145fbf,_0x553c59['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x47e5c4),'warnings':_0x501e7c[_0x2ed7a9(0x1c8)],'validation':{'warnings':_0x5d77c[_0x2ed7a9(0x1c8)]},'diagramBound':!![]},'message':_0x501e7c[_0x2ed7a9(0x1d0)]?_0x2ed7a9(0x1f6)+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]:_0x2ed7a9(0x1c5)+_0x501e7c['payload'][_0x2ed7a9(0x1f9)]};}function a74_0x343b(){const _0x3b5954=['unknown','str','company','confirm-warnings','accessKey','PRIVATE','version','515ZwjaxY','NAMESPACE_ONLY','bool','\x20version\x20','input','\x20has\x20scope=\x22','Updated\x20personal\x20Skill\x20','validation','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','skillCode','8984nLdcXp','personal','files','payload','Created\x20personal\x20Skill\x20','publishInput','submitted','warnings','valid','../../skills/runtime-skill-sync.js','confirmWarnings','remoteForPreflight','diagramValidated','(unknown)','2043qeGgrb','existing','52916CnlyOF','Personal','dir','../../core/api-client.js','121mnZwpT','scope','appCode','9602586ZxCBMe','/publish/validate','resolvedVersion','162210RNqxpL','12801osMmQP','appcode','errors','metadata','159UuJsOI','savedSkill','resolvedSlug','5866763tEmIpt','13154vPUxxS','authRequired','frontmatterDisplayName','POST','diagram-file'];a74_0x343b=function(){return _0x3b5954;};return a74_0x343b();}function scopeLabel(_0x1b6a91){const _0x4f7399=a74_0x2c7a;return _0x1b6a91==='company'?'Company':_0x4f7399(0x1d2);}function withDiagram(_0x127bb5,_0x5a3752){return{..._0x127bb5,'diagram':_0x5a3752};}function diagramPackageExclusion(_0x47b76f){return _0x47b76f?{'excludedFilePaths':[_0x47b76f]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa963dd,_0x28f8cf){const _0x1c2446=a75_0x1dd4,_0x227e55=_0xa963dd();while(!![]){try{const _0x21268b=-parseInt(_0x1c2446(0x11f))/0x1*(-parseInt(_0x1c2446(0x127))/0x2)+-parseInt(_0x1c2446(0x13c))/0x3+-parseInt(_0x1c2446(0x123))/0x4+-parseInt(_0x1c2446(0x146))/0x5+parseInt(_0x1c2446(0x12f))/0x6*(parseInt(_0x1c2446(0x136))/0x7)+-parseInt(_0x1c2446(0x138))/0x8+-parseInt(_0x1c2446(0x13e))/0x9*(-parseInt(_0x1c2446(0x142))/0xa);if(_0x21268b===_0x28f8cf)break;else _0x227e55['push'](_0x227e55['shift']());}catch(_0x1a3bf3){_0x227e55['push'](_0x227e55['shift']());}}}(a75_0x5001,0x1e641));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x36226f){const _0xc89e6e=a75_0x1dd4,_0x26d7c6=_0x36226f[_0xc89e6e(0x14b)](_0xc89e6e(0x128))||_0xc89e6e(0x135);if(_0x26d7c6==='personal'||_0x26d7c6===_0xc89e6e(0x13a))return _0x26d7c6;throw CliErrors[_0xc89e6e(0x12c)](_0xc89e6e(0x12b)+_0x26d7c6+'\x22.');}export function allowRetargetArgs(_0x2e6a7c){return _0x2e6a7c?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x3f8a85=a75_0x1dd4;return{'targetScope':_0x3f8a85(0x13a),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}function a75_0x1dd4(_0x16d1af,_0x40f94c){_0x16d1af=_0x16d1af-0x11f;const _0x5001f0=a75_0x5001();let _0x1dd4bb=_0x5001f0[_0x16d1af];return _0x1dd4bb;}export function remoteMissingPersonalReadOptions(_0x595c7d={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x595c7d};}export function remotePersonalReadOptions(_0x1c861b,_0x89f1be={}){return{'ignoreInvalidMetadata':!![],..._0x1c861b?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x89f1be};}function a75_0x5001(){const _0x319747=['4lIgegN','lovrabet.skill.json','appCode','warning','320248EyqFCY','verifyRuntimeSkillBundle','(unknown)','not-applicable','23022ooBipd','scope','join','errors','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','validation','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Review\x20each\x20warning\x20before\x20continuing.','122832NFlSPL','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','remote','skillCode','builtin','\x20after\x20successful\x20push.','personal','28EwSifb','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1013432FWCAYe','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','company','publishInput','63705CgdqJy','Company','63tBjBDf','files','version','different','372490zslcSn','downloadRuntimeSkillPackage','skill-metadata-appcode-retargeted','warnings','181090NevpVr','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','Local\x20Skill\x20metadata\x20appCode\x20','content','length','str'];a75_0x5001=function(){return _0x319747;};return a75_0x5001();}export function throwIfBuiltinPushTarget(_0x414df5){const _0x2cd3d4=a75_0x1dd4;if(_0x414df5?.['scope']!==_0x2cd3d4(0x133))return;throw CliErrors[_0x2cd3d4(0x12c)]('Builtin\x20Skill\x20'+(_0x414df5[_0x2cd3d4(0x132)]??_0x2cd3d4(0x125))+'\x20cannot\x20be\x20pushed.',_0x2cd3d4(0x147));}export function throwIfPublishValidationFailed(_0x4f15b5,_0x1aac9e,_0x1d7c2e){const _0x3a5e45=a75_0x1dd4;if(_0x1d7c2e[_0x3a5e45(0x12a)]['length']===0x0&&(_0x1d7c2e['valid']||_0x1d7c2e[_0x3a5e45(0x145)][_0x3a5e45(0x14a)]>0x0))return;const _0x42579c=_0x1d7c2e[_0x3a5e45(0x12a)][_0x3a5e45(0x14a)]>0x0?_0x1d7c2e[_0x3a5e45(0x12a)][_0x3a5e45(0x129)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x342ec1=_0x4f15b5==='company'?_0x3a5e45(0x13d):'Personal';throw CliErrors[_0x3a5e45(0x12c)](_0x342ec1+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x1aac9e+'.',_0x42579c);}export function throwIfUnconfirmedPublishWarnings(_0x32b7f3,_0x19ca27,_0x3f5903,_0x52bf6a){const _0x1a9f3e=a75_0x1dd4;if(_0x3f5903['length']===0x0||_0x52bf6a)return;const _0x553d39=_0x32b7f3===_0x1a9f3e(0x13a)?_0x1a9f3e(0x13d):'Personal';throw CliErrors[_0x1a9f3e(0x12c)](_0x553d39+'\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20'+_0x19ca27+'.',[_0x1a9f3e(0x12e),_0x1a9f3e(0x139),_0x1a9f3e(0x12d),'Warnings:\x20'+_0x3f5903[_0x1a9f3e(0x129)](';\x20')][_0x1a9f3e(0x129)]('\x20'));}export function buildRetargetWarning(_0x3e5fda,_0x5a632d){const _0x2d1c03=a75_0x1dd4;if(!_0x3e5fda?.[_0x2d1c03(0x121)]||_0x3e5fda[_0x2d1c03(0x121)]===_0x5a632d)return[];return[{'level':_0x2d1c03(0x122),'ruleId':_0x2d1c03(0x144),'file':_0x2d1c03(0x120),'message':_0x2d1c03(0x148)+_0x3e5fda[_0x2d1c03(0x121)]+_0x2d1c03(0x137)+_0x5a632d+_0x2d1c03(0x134),'suggestion':_0x2d1c03(0x130)}];}export async function runRemoteContentPreflight(_0x643915){const _0x426d59=a75_0x1dd4;if(!_0x643915['remote']||_0x643915['remote'][_0x426d59(0x128)]!==_0x643915[_0x426d59(0x128)]||!_0x643915[_0x426d59(0x13b)]['files'])return{'status':_0x426d59(0x126)};const _0x30baba=_0x643915[_0x426d59(0x131)][_0x426d59(0x132)]||_0x643915[_0x426d59(0x132)];if(!_0x30baba)return{'status':_0x426d59(0x126)};const _0x47141e=await _0x643915[_0x426d59(0x143)](_0x643915[_0x426d59(0x128)],_0x30baba,_0x643915[_0x426d59(0x121)],_0x643915[_0x426d59(0x131)][_0x426d59(0x140)]);try{_0x643915[_0x426d59(0x124)](_0x643915[_0x426d59(0x13b)][_0x426d59(0x13f)],_0x47141e);}catch{return{'status':_0x426d59(0x141)};}return{'status':'identical','savedSkill':{..._0x643915['remote'],'content':_0x643915['publishInput'][_0x426d59(0x149)],'files':_0x643915[_0x426d59(0x13b)][_0x426d59(0x13f)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cedf0,_0x5bdc58){const _0x45e483=a76_0x4866,_0x555ab5=_0x4cedf0();while(!![]){try{const _0x1ea614=parseInt(_0x45e483(0x141))/0x1*(-parseInt(_0x45e483(0x143))/0x2)+-parseInt(_0x45e483(0x139))/0x3+-parseInt(_0x45e483(0x136))/0x4+parseInt(_0x45e483(0x140))/0x5*(-parseInt(_0x45e483(0x13a))/0x6)+-parseInt(_0x45e483(0x145))/0x7+parseInt(_0x45e483(0x135))/0x8*(-parseInt(_0x45e483(0x13f))/0x9)+-parseInt(_0x45e483(0x137))/0xa*(-parseInt(_0x45e483(0x13d))/0xb);if(_0x1ea614===_0x5bdc58)break;else _0x555ab5['push'](_0x555ab5['shift']());}catch(_0x3e3557){_0x555ab5['push'](_0x555ab5['shift']());}}}(a76_0x35bb,0xda2e5));function a76_0x35bb(){const _0x271567=['tags','63351MADRoM','75860MPLjlr','4fnVqJh','Local\x20Skill\x20metadata\x20appCode\x20','63170DRlffD','appCode','4187561YPCDRy','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','version','872vqBbZp','4899192vtpidY','2177200MVOQfA','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','227361CblMjE','6mzsjwT','description','sourceSessionId','187igzQtW'];a76_0x35bb=function(){return _0x271567;};return a76_0x35bb();}export function withRetargetExistingMetadata(_0x3dc098,_0x135540,_0x4759d9={}){const _0x16aaff=a76_0x4866,_0x12618b=_0x4759d9['preferInputSkillName']?_0x3dc098[_0x16aaff(0x133)]??_0x135540[_0x16aaff(0x133)]:_0x135540['skillName']??_0x3dc098['skillName'];return{..._0x3dc098,'skillName':_0x12618b,'description':_0x135540[_0x16aaff(0x13b)]??_0x3dc098[_0x16aaff(0x13b)],'tags':Array['isArray'](_0x135540[_0x16aaff(0x13e)])?_0x135540[_0x16aaff(0x13e)]:_0x3dc098[_0x16aaff(0x13e)],'version':_0x135540[_0x16aaff(0x134)]??_0x3dc098[_0x16aaff(0x134)],'sourceSessionId':_0x135540['sourceSessionId']??_0x3dc098[_0x16aaff(0x13c)]};}function a76_0x4866(_0x5ad3ab,_0x364e9c){_0x5ad3ab=_0x5ad3ab-0x132;const _0x35bbdc=a76_0x35bb();let _0x4866f6=_0x35bbdc[_0x5ad3ab];return _0x4866f6;}export function buildRetargetWarning(_0x4691ea,_0x235d01){const _0x488d0e=a76_0x4866;if(!_0x4691ea?.[_0x488d0e(0x144)]||_0x4691ea[_0x488d0e(0x144)]===_0x235d01)return[];return[{'level':'warning','ruleId':'skill-metadata-appcode-retargeted','file':'lovrabet.skill.json','message':_0x488d0e(0x142)+_0x4691ea[_0x488d0e(0x144)]+_0x488d0e(0x132)+_0x235d01+'\x20after\x20successful\x20push.','suggestion':_0x488d0e(0x138)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34ce5f,_0x541b66){const _0x2b8afe=a77_0x9256,_0x545eb4=_0x34ce5f();while(!![]){try{const _0x3f43f6=parseInt(_0x2b8afe(0x132))/0x1+-parseInt(_0x2b8afe(0x135))/0x2+parseInt(_0x2b8afe(0x12b))/0x3*(-parseInt(_0x2b8afe(0x138))/0x4)+parseInt(_0x2b8afe(0x12a))/0x5*(parseInt(_0x2b8afe(0x129))/0x6)+parseInt(_0x2b8afe(0x131))/0x7+-parseInt(_0x2b8afe(0x12e))/0x8+-parseInt(_0x2b8afe(0x137))/0x9;if(_0x3f43f6===_0x541b66)break;else _0x545eb4['push'](_0x545eb4['shift']());}catch(_0x4d609b){_0x545eb4['push'](_0x545eb4['shift']());}}}(a77_0x3a71,0x68cb3));import{CliErrors}from'../../errors.js';function a77_0x9256(_0x5b945e,_0x178f28){_0x5b945e=_0x5b945e-0x129;const _0x3a71cd=a77_0x3a71();let _0x92568b=_0x3a71cd[_0x5b945e];return _0x92568b;}export function normalizeSyncScopes(_0x424fdf){const _0x1a8c00=a77_0x9256,_0x54be50=_0x424fdf['trim']();if(!_0x54be50||_0x54be50==='all')return[_0x1a8c00(0x134),_0x1a8c00(0x130)];if(_0x54be50==='personal'||_0x54be50==='company')return[_0x54be50];throw CliErrors[_0x1a8c00(0x133)](_0x1a8c00(0x12f)+_0x424fdf);}export function normalizeListScope(_0x44bee2){const _0x53fd23=a77_0x9256,_0x4bca9e=_0x44bee2[_0x53fd23(0x136)]();if(!_0x4bca9e)return _0x53fd23(0x12d);if(_0x4bca9e===_0x53fd23(0x134)||_0x4bca9e===_0x53fd23(0x130)||_0x4bca9e===_0x53fd23(0x12d))return _0x4bca9e;throw CliErrors[_0x53fd23(0x133)](_0x53fd23(0x12c)+_0x44bee2);}export function shouldListScope(_0x22515a,_0x21fe76){const _0x5b1da3=a77_0x9256;if(_0x22515a===_0x5b1da3(0x12d))return!![];return _0x22515a===_0x21fe76;}export function listScopeToRuntimeScopes(_0x31884f){const _0x17f543=a77_0x9256;if(_0x31884f===_0x17f543(0x12d))return['personal',_0x17f543(0x130)];return[_0x31884f===_0x17f543(0x130)?_0x17f543(0x130):_0x31884f];}function a77_0x3a71(){const _0x20faa0=['314337gyCevb','Unsupported\x20Skill\x20list\x20scope:\x20','all','4512152nuzlPJ','Unsupported\x20Skill\x20sync\x20scope:\x20','company','4158399WLgfzE','757881iypfaj','validation','personal','765810xBWxWC','trim','631548pGZIdR','16tgCXnp','6StUCqT','2567545ztiofR'];a77_0x3a71=function(){return _0x20faa0;};return a77_0x3a71();}export function listScopeToRemoteScope(_0x5a85aa){return _0x5a85aa;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x4eb5(){var _0x3f30cd=['skillName','skillCode','192wUNggf','contentHash','156824bppQva','8fcKLAr','10iOrgoR','pulledAt','treeHash','123450MAzHjZ','4730341ABtNmS','dir','metadataPath','70SSWeuQ','32733iZYYBR','scope','tags','230766QzNmEa','321850GDfzeO','cacheDir','readonly','status','5223RDKjCw','appCode','version'];a78_0x4eb5=function(){return _0x3f30cd;};return a78_0x4eb5();}(function(_0x531574,_0x1ea61b){var _0x437fba=a78_0x2c2b,_0x2e28b7=_0x531574();while(!![]){try{var _0x2c3cdc=parseInt(_0x437fba(0x1af))/0x1+parseInt(_0x437fba(0x1b9))/0x2*(parseInt(_0x437fba(0x1b4))/0x3)+-parseInt(_0x437fba(0x1bb))/0x4*(parseInt(_0x437fba(0x1bd))/0x5)+parseInt(_0x437fba(0x1a7))/0x6*(parseInt(_0x437fba(0x1ab))/0x7)+parseInt(_0x437fba(0x1bc))/0x8*(-parseInt(_0x437fba(0x1ac))/0x9)+parseInt(_0x437fba(0x1b0))/0xa+-parseInt(_0x437fba(0x1a8))/0xb;if(_0x2c3cdc===_0x1ea61b)break;else _0x2e28b7['push'](_0x2e28b7['shift']());}catch(_0x3c5874){_0x2e28b7['push'](_0x2e28b7['shift']());}}}(a78_0x4eb5,0x1e36d));function a78_0x2c2b(_0x1febc9,_0x36241c){_0x1febc9=_0x1febc9-0x1a6;var _0x4eb519=a78_0x4eb5();var _0x2c2b57=_0x4eb519[_0x1febc9];return _0x2c2b57;}export function summarizeRuntimeSkill(_0x371b2c){var _0x2f6019=a78_0x2c2b;return{'id':_0x371b2c['id'],'skillCode':_0x371b2c['skillCode'],'skillName':_0x371b2c[_0x2f6019(0x1b7)],'scope':_0x371b2c[_0x2f6019(0x1ad)],'version':_0x371b2c[_0x2f6019(0x1b6)],'readonly':_0x371b2c[_0x2f6019(0x1b2)]};}export function summarizeLocalRuntimeSkill(_0x268b6d){var _0x47911a=a78_0x2c2b;return{'id':_0x268b6d['id'],'skillCode':_0x268b6d[_0x47911a(0x1b8)],'skillName':_0x268b6d[_0x47911a(0x1b7)],'scope':_0x268b6d[_0x47911a(0x1ad)],'appCode':_0x268b6d[_0x47911a(0x1b5)],'version':_0x268b6d['version'],'status':_0x268b6d[_0x47911a(0x1b3)],'readonly':_0x268b6d[_0x47911a(0x1b2)],'tags':_0x268b6d[_0x47911a(0x1ae)],'dir':_0x268b6d[_0x47911a(0x1a9)],'cacheDir':_0x268b6d[_0x47911a(0x1b1)],'skillMdPath':_0x268b6d['skillMdPath'],'metadataPath':_0x268b6d[_0x47911a(0x1aa)],'linkedPaths':_0x268b6d['linkedPaths'],'contentHash':_0x268b6d[_0x47911a(0x1ba)],'treeHash':_0x268b6d[_0x47911a(0x1a6)],'pulledAt':_0x268b6d[_0x47911a(0x1be)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x27d82d=a79_0x179b;function a79_0x56d6(){const _0xaa5bb0=['timestamp','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','references/output-contract.md','24QIoBdb','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','6366663LCshil','.agents/skills','Unsupported\x20Skill\x20type:\x20','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','\x0a\x20\x20created:\x20\x22','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','references/runtime-contract.md','validation','includes','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','SKILL.md','\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应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','write','skillName','1698720QxYWai','686252NmOzoD','\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','652410OjbexE','68qWhJrr','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','12024RnDHEz','type','615640AegHNO','trim','\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','toISOString','read','111800jCBikV','#\x20Output\x20Contract\x0a\x0a','join'];a79_0x56d6=function(){return _0xaa5bb0;};return a79_0x56d6();}(function(_0x4eadd7,_0xab9883){const _0x21d639=a79_0x179b,_0x35105f=_0x4eadd7();while(!![]){try{const _0x50940b=-parseInt(_0x21d639(0x100))/0x1*(parseInt(_0x21d639(0xf2))/0x2)+parseInt(_0x21d639(0xee))/0x3+-parseInt(_0x21d639(0xef))/0x4*(-parseInt(_0x21d639(0xf9))/0x5)+parseInt(_0x21d639(0xeb))/0x6+parseInt(_0x21d639(0xec))/0x7+parseInt(_0x21d639(0xf4))/0x8+-parseInt(_0x21d639(0x103))/0x9;if(_0x50940b===_0xab9883)break;else _0x35105f['push'](_0x35105f['shift']());}catch(_0x20c3a9){_0x35105f['push'](_0x35105f['shift']());}}}(a79_0x56d6,0x31ce6));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a79_0x27d82d(0xe9),'read'];export const DEFAULT_SKILL_TARGET=a79_0x27d82d(0x104);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x27d82d(0xe2);export const OUTPUT_CONTRACT_FILE=a79_0x27d82d(0xff);export function validateSkillName(_0x4de3d0){const _0x2fd5fc=a79_0x27d82d,_0x27d16d=_0x4de3d0['trim']();if(!SKILL_NAME_PATTERN['test'](_0x27d16d))throw CliErrors['validation']('Invalid\x20Skill\x20name:\x20'+_0x4de3d0+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x2fd5fc(0xe5));return _0x27d16d;}function a79_0x179b(_0x359f51,_0x58a908){_0x359f51=_0x359f51-0xe1;const _0x56d6a1=a79_0x56d6();let _0x179bc2=_0x56d6a1[_0x359f51];return _0x179bc2;}export function normalizeSkillTemplateType(_0x4c6c51){const _0x1f5b22=a79_0x27d82d,_0x19ca8c=(_0x4c6c51||'write')[_0x1f5b22(0xf5)]()||'write';if(SKILL_TYPES[_0x1f5b22(0xe4)](_0x19ca8c))return _0x19ca8c;throw CliErrors[_0x1f5b22(0xe3)](_0x1f5b22(0x105)+_0x4c6c51,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x1f5b22(0xfb)](',\x20')+'.');}export function renderSkillTemplate(_0x288cca){const _0x567ca0=a79_0x27d82d,_0x3ea992=validateSkillName(_0x288cca[_0x567ca0(0xea)]),_0x3f442e=normalizeSkillTemplateType(_0x288cca[_0x567ca0(0xf3)]),_0x4730d9=_0x288cca[_0x567ca0(0xfc)]??new Date()[_0x567ca0(0xf7)]();return{'skillName':_0x3ea992,'type':_0x3f442e,'files':[{'path':_0x567ca0(0xe6),'content':renderSkillMd(_0x3ea992,_0x3f442e,_0x4730d9)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x3ea992,_0x3f442e)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x3ea992,_0x3f442e)}]};}function renderSkillMd(_0x589b5e,_0xdc16c0,_0x22efc6){const _0x4644cc=a79_0x27d82d,_0x4b5778=typeWorkflow(_0xdc16c0);return'---\x0aname:\x20'+_0x589b5e+_0x4644cc(0xf0)+_0xdc16c0+_0x4644cc(0x107)+_0x22efc6+_0x4644cc(0xfd)+_0x589b5e+_0x4644cc(0xe7)+_0x4b5778+'\x0a\x0a'+businessStateSection(_0xdc16c0)+_0x4644cc(0xed);}function renderRuntimeContract(_0x38b2c2,_0x508885){const _0x3adf68=a79_0x27d82d,_0x53c187=_0x508885===_0x3adf68(0xe9)?_0x3adf68(0x102):'';return _0x3adf68(0x101)+_0x38b2c2+_0x3adf68(0xf1)+_0x508885+'\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a'+_0x53c187+_0x3adf68(0xf6);}function renderOutputContract(_0x54d834,_0x33ed4f){const _0xa4eec=a79_0x27d82d,_0x4c3e4c=_0x33ed4f===_0xa4eec(0xe9)?_0xa4eec(0xfe):_0x33ed4f+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0xa4eec(0xfa)+_0x54d834+_0xa4eec(0x106)+_0x4c3e4c+_0xa4eec(0xe8);}function typeWorkflow(_0x17cac0){const _0x262d11=a79_0x27d82d;if(_0x17cac0===_0x262d11(0xf8))return _0x262d11(0xe1);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x26855d){const _0x38fbc5=a79_0x27d82d;if(_0x26855d!==_0x38fbc5(0xe9))return'';return _0x38fbc5(0x108);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80_0x1bacb4=a80_0x2a92;(function(_0xb62c72,_0x48d2e7){const _0x39a2e1=a80_0x2a92,_0x3afefe=_0xb62c72();while(!![]){try{const _0x46e4a0=-parseInt(_0x39a2e1(0x222))/0x1+-parseInt(_0x39a2e1(0x227))/0x2+parseInt(_0x39a2e1(0x210))/0x3+-parseInt(_0x39a2e1(0x1f7))/0x4+parseInt(_0x39a2e1(0x1f4))/0x5+-parseInt(_0x39a2e1(0x1f3))/0x6+-parseInt(_0x39a2e1(0x201))/0x7*(-parseInt(_0x39a2e1(0x1e3))/0x8);if(_0x46e4a0===_0x48d2e7)break;else _0x3afefe['push'](_0x3afefe['shift']());}catch(_0x5c6947){_0x3afefe['push'](_0x3afefe['shift']());}}}(a80_0x9125,0xb82b0));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x63a847}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a80_0x1bacb4(0x1f8),a80_0x1bacb4(0x1fc)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a80_0x9125(){const _0xc3372b=['message','error','false','Skill\x20validation\x20failed:\x0a','file','number','suggestion','toLowerCase','true','filter','schema','registry','has','2115705igSAip','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','path','raw','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','page','isArray','Frontmatter\x20displayName\x20is\x20missing.','utf8','toUpperCase','description-required','ruleId','auth','boolean','trim','object','slice','409968SiRomZ','bff','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','description','Frontmatter\x20example\x20is\x20missing.','2851580ZEiYLW','map','string','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','test','level','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','push','structure-complete','\x20Fix:\x20','Add\x20frontmatter\x20with\x20name\x20and\x20description.','line','warning','validation','frontmatter-required','section','service','display-name-recommended','Skill\x20directory\x20not\x20found:\x20','SKILL.md\x20is\x20not\x20a\x20file.','artifact','Frontmatter\x20description\x20is\x20empty.','48lMZpJk','flatMap','config','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','isSymbolicLink','type','SKILL.md\x20must\x20start\x20with\x20frontmatter.','length','split','displayName','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','isFile','dataset','content','app','7391148rbzRLI','1439130xRfcgn','isDirectory','match','4115964SLGNya','write','join','internal','logs','read','workspace','name','Frontmatter\x20name\x20is\x20missing.','data','4500881RHQrac','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.'];a80_0x9125=function(){return _0xc3372b;};return a80_0x9125();}export function validateSkillDirectory(_0x3ee89c,_0x4151b7={}){const _0x349c9f=a80_0x1bacb4,_0x87998c=resolveSkillDirectoryRoot(_0x3ee89c),_0x4b0f72=[],_0xc5f862=loadRequiredSkillFile(_0x87998c,_0x4b0f72),_0x31db57=_0xc5f862?parseFrontmatter(_0xc5f862[_0x349c9f(0x1f1)]):{'hasFrontmatter':![]};_0xc5f862&&validateFrontmatter(_0xc5f862['path'],_0x31db57,_0x4b0f72);validateRuntimeCliReferences(_0x87998c,_0x4b0f72);const _0x20277e=_0x4b0f72['filter'](_0x1fc18d=>_0x1fc18d[_0x349c9f(0x22c)]==='error'),_0x1191fc=_0x4b0f72['filter'](_0x1918fc=>_0x1918fc['level']===_0x349c9f(0x1d9));return{'ok':_0x20277e[_0x349c9f(0x1ea)]===0x0,'dir':_0x87998c,'type':_0x31db57[_0x349c9f(0x1e8)],'errors':_0x20277e,'warnings':_0x1191fc};}function a80_0x2a92(_0x19b5f0,_0x43433b){_0x19b5f0=_0x19b5f0-0x1d8;const _0x912592=a80_0x9125();let _0x2a923d=_0x912592[_0x19b5f0];return _0x2a923d;}function resolveSkillDirectoryRoot(_0x1d64a9){const _0x4e2200=a80_0x1bacb4,_0x549d0b=resolve(_0x1d64a9);if(!existsSync(_0x549d0b))throw CliErrors[_0x4e2200(0x1da)](_0x4e2200(0x1df)+_0x1d64a9);const _0x3ac338=lstatSync(_0x549d0b);if(_0x3ac338['isDirectory']())return _0x549d0b;if(_0x3ac338[_0x4e2200(0x1e7)]()){const _0x414ac8=realpathSync(_0x549d0b);if(lstatSync(_0x414ac8)[_0x4e2200(0x1f5)]())return _0x414ac8;}throw CliErrors[_0x4e2200(0x1da)]('Skill\x20directory\x20not\x20found:\x20'+_0x1d64a9);}export function throwIfSkillValidationFailed(_0x2bd4e7,_0x1d6f5b=![]){const _0x4d5e70=a80_0x1bacb4;if(_0x2bd4e7['ok'])return;const _0x9a89ad=_0x2bd4e7['errors'][_0x4d5e70(0x228)](_0x5544fd=>{const _0x3e606e=_0x4d5e70,_0x197957=_0x5544fd[_0x3e606e(0x1dc)]?'#'+_0x5544fd[_0x3e606e(0x1dc)]:'';return _0x5544fd[_0x3e606e(0x22c)][_0x3e606e(0x21a)]()+'\x20'+_0x5544fd[_0x3e606e(0x21c)]+'\x20'+_0x5544fd[_0x3e606e(0x207)]+_0x197957+':\x20'+_0x5544fd[_0x3e606e(0x203)]+_0x3e606e(0x230)+_0x5544fd[_0x3e606e(0x209)];});throw CliErrors[_0x4d5e70(0x1da)](_0x4d5e70(0x206)+_0x9a89ad[_0x4d5e70(0x1f9)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x2cc2e4,_0x3261c5){const _0x2defb0=a80_0x1bacb4,_0xb0719=resolve(_0x2cc2e4,SKILL_FILE);if(!existsSync(_0xb0719))return _0x3261c5['push'](issue(_0x2defb0(0x204),_0x2defb0(0x22f),SKILL_FILE,'Missing\x20SKILL.md.',_0x2defb0(0x215))),undefined;const _0x23748f=lstatSync(_0xb0719);if(_0x23748f['isSymbolicLink']())return _0x3261c5[_0x2defb0(0x22e)](issue(_0x2defb0(0x204),_0x2defb0(0x22f),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x23748f[_0x2defb0(0x1ef)]())return _0x3261c5[_0x2defb0(0x22e)](issue(_0x2defb0(0x204),_0x2defb0(0x22f),SKILL_FILE,_0x2defb0(0x1e0),_0x2defb0(0x1e6))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0xb0719,_0x2defb0(0x219))};}function validateFrontmatter(_0x3dc84d,_0x47c784,_0x36891e){const _0x175950=a80_0x1bacb4;if(!_0x47c784['hasFrontmatter']){_0x36891e[_0x175950(0x22e)](issue(_0x175950(0x204),_0x175950(0x1db),_0x3dc84d,_0x175950(0x1e9),_0x175950(0x231)));return;}!_0x47c784[_0x175950(0x1fe)]?.[_0x175950(0x21f)]()&&_0x36891e[_0x175950(0x22e)](issue(_0x175950(0x204),'frontmatter-required',_0x3dc84d,_0x175950(0x1ff),_0x175950(0x1ee))),!_0x47c784[_0x175950(0x1ec)]?.['trim']()&&_0x36891e['push'](issue('warning',_0x175950(0x1de),_0x3dc84d,_0x175950(0x218),_0x175950(0x202))),!_0x47c784['example']?.[_0x175950(0x21f)]()&&_0x36891e[_0x175950(0x22e)](issue(_0x175950(0x1d9),'example-recommended',_0x3dc84d,_0x175950(0x226),_0x175950(0x1ed))),!_0x47c784[_0x175950(0x225)]?.[_0x175950(0x21f)]()&&_0x36891e['push'](issue(_0x175950(0x204),_0x175950(0x21b),_0x3dc84d,_0x175950(0x1e2),_0x175950(0x214))),_0x47c784[_0x175950(0x1fa)]===!![]&&_0x36891e['push'](issue(_0x175950(0x204),'internal-skill',_0x3dc84d,_0x175950(0x22d),_0x175950(0x22a))),_0x47c784[_0x175950(0x1e8)]?.[_0x175950(0x21f)]()&&!SUPPORTED_SKILL_TYPES[_0x175950(0x20f)](_0x47c784['type'])&&_0x36891e[_0x175950(0x22e)](issue(_0x175950(0x204),'frontmatter-required',_0x3dc84d,_0x175950(0x224),'Set\x20metadata.type\x20to\x20write\x20or\x20read.'));}function validateRuntimeCliReferences(_0x20ad7f,_0x4a91f9){const _0x2ee899=a80_0x1bacb4;for(const _0x552584 of findRabetbaseCliInvocations(_0x20ad7f)){_0x4a91f9[_0x2ee899(0x22e)](issue(_0x2ee899(0x1d9),'rabetbase-cli-reference',_0x552584['file'],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x2ee899(0x211),'L'+_0x552584[_0x2ee899(0x1d8)]));}}function findRabetbaseCliInvocations(_0x16a086){const _0x26c5e1=a80_0x1bacb4;return scanSkillDirectory(_0x16a086)['filter'](_0x33749a=>TEXT_SKILL_FILE_PATTERN[_0x26c5e1(0x22b)](_0x33749a['path']))[_0x26c5e1(0x1e4)](_0x4936cc=>{const _0x5874cb=_0x26c5e1,_0x23458c=fileText(_0x4936cc);return _0x23458c[_0x5874cb(0x1eb)](/\r?\n/)[_0x5874cb(0x228)]((_0x246b99,_0x226c99)=>({'file':_0x4936cc[_0x5874cb(0x212)],'line':_0x226c99+0x1,'text':_0x246b99}))[_0x5874cb(0x20c)](({text:_0x3614f6})=>isRabetbaseCliInvocation(_0x3614f6))[_0x5874cb(0x228)](({file:_0x452d54,line:_0x3ba9db})=>({'file':_0x452d54,'line':_0x3ba9db}));});}const RABETBASE_SUBCOMMANDS=[a80_0x1bacb4(0x1f0),'sql',a80_0x1bacb4(0x223),a80_0x1bacb4(0x216),'project',a80_0x1bacb4(0x1f2),a80_0x1bacb4(0x20d),a80_0x1bacb4(0x1dd),a80_0x1bacb4(0x1e1),'kb',a80_0x1bacb4(0x1e5),a80_0x1bacb4(0x1fd),a80_0x1bacb4(0x200),a80_0x1bacb4(0x21d),a80_0x1bacb4(0x1fb),a80_0x1bacb4(0x20e)],RABETBASE_INVOCATION=new RegExp(String[a80_0x1bacb4(0x213)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x1bacb4(0x1f9)]('|')})\b`+String[a80_0x1bacb4(0x213)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2e222e){const _0x2dcb93=a80_0x1bacb4,_0x27ca8a=_0x2e222e['search'](/\brabetbase\b/i);if(_0x27ca8a<0x0)return![];const _0x246ea8=_0x2e222e[_0x2dcb93(0x221)](_0x27ca8a)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x2dcb93(0x22b)](_0x246ea8);}function parseFrontmatter(_0x4a11aa){const _0x1ea6ab=a80_0x1bacb4,_0x33ca8a=_0x4a11aa[_0x1ea6ab(0x1f6)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x33ca8a)return{'hasFrontmatter':![]};const _0xefb9f8=_0x33ca8a[0x1]??'',_0x57176d={'hasFrontmatter':!![]};let _0x5134a6;try{_0x5134a6=a80_0x63a847(_0xefb9f8);}catch{return _0x57176d;}const _0x59a64b=asRecord(_0x5134a6);if(!_0x59a64b)return _0x57176d;_0x57176d['name']=scalarToString(_0x59a64b[_0x1ea6ab(0x1fe)]),_0x57176d[_0x1ea6ab(0x1ec)]=scalarToString(_0x59a64b[_0x1ea6ab(0x1ec)]),_0x57176d[_0x1ea6ab(0x225)]=scalarToString(_0x59a64b[_0x1ea6ab(0x225)]),_0x57176d['example']=scalarToString(_0x59a64b['example']);const _0x2c88ca=asRecord(_0x59a64b['metadata']);return _0x2c88ca&&(_0x57176d['type']=scalarToString(_0x2c88ca[_0x1ea6ab(0x1e8)]),_0x57176d[_0x1ea6ab(0x1fa)]=scalarToBoolean(_0x2c88ca[_0x1ea6ab(0x1fa)])),_0x57176d;}function asRecord(_0x37bb0e){const _0x2a5a56=a80_0x1bacb4;if(_0x37bb0e&&typeof _0x37bb0e===_0x2a5a56(0x220)&&!Array[_0x2a5a56(0x217)](_0x37bb0e))return _0x37bb0e;return undefined;}function scalarToString(_0x4aa29d){const _0x468add=a80_0x1bacb4;if(typeof _0x4aa29d===_0x468add(0x229))return _0x4aa29d['trim']();if(typeof _0x4aa29d===_0x468add(0x208)||typeof _0x4aa29d==='boolean')return String(_0x4aa29d);return undefined;}function scalarToBoolean(_0x181c89){const _0x2bb8ac=a80_0x1bacb4;if(typeof _0x181c89===_0x2bb8ac(0x21e))return _0x181c89;if(typeof _0x181c89===_0x2bb8ac(0x229))return cleanBoolean(_0x181c89);return undefined;}function cleanBoolean(_0x10c023){const _0x46a159=a80_0x1bacb4,_0x49285a=_0x10c023[_0x46a159(0x21f)]()[_0x46a159(0x20a)]();if(_0x49285a===_0x46a159(0x20b))return!![];if(_0x49285a===_0x46a159(0x205))return![];return undefined;}function issue(_0x1f7cc9,_0xb971ff,_0xd736bb,_0x2944bf,_0x570889,_0x1031ce){return{'level':_0x1f7cc9,'ruleId':_0xb971ff,'file':_0xd736bb,'section':_0x1031ce,'message':_0x2944bf,'suggestion':_0x570889};}
|
|
1
|
+
function a80_0x559c(){const _0x532e4d=['error','description','84060VXelDY','internal','783002okRZpr','line','string','isFile','level','12985173RXFKlY','isSymbolicLink','join','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','schema','validation','filter','push','56825KhDrjC','project','displayName','message','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','example','type','slice','sql','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','boolean','Skill\x20validation\x20failed:\x0a','SKILL.md\x20is\x20not\x20a\x20file.','Frontmatter\x20name\x20is\x20missing.','frontmatter-required','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','SKILL.md','utf8','ruleId','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Frontmatter\x20description\x20is\x20empty.','search','273MOpNoo','\x20Fix:\x20','trim','bff','app','150810hXjPLR','4323828KcVPKy','Describe\x20when\x20the\x20model\x20should\x20trigger\x20this\x20Skill,\x20plus\x20out-of-scope\x20boundaries\x20and\x20keywords.','toUpperCase','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','suggestion','flatMap','82JhqNLp','config','structure-complete','55820eOnbsz','Frontmatter\x20displayName\x20is\x20missing.','logs','description-required','warning','has','section','test','artifact','display-name-recommended','2057nIzcRr','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','read','452xBwzFD','raw','8XAqUhK','path','auth','Frontmatter\x20example\x20is\x20missing.','Skill\x20directory\x20not\x20found:\x20','isDirectory','Missing\x20SKILL.md.','write','isArray','workspace','false','length','errors','map','dataset','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','name'];a80_0x559c=function(){return _0x532e4d;};return a80_0x559c();}const a80_0x6d6e20=a80_0x51a9;(function(_0x496426,_0x438282){const _0x359f10=a80_0x51a9,_0x58f267=_0x496426();while(!![]){try{const _0x40966d=-parseInt(_0x359f10(0xf5))/0x1+-parseInt(_0x359f10(0xce))/0x2*(-parseInt(_0x359f10(0xf3))/0x3)+parseInt(_0x359f10(0xde))/0x4*(-parseInt(_0x359f10(0x102))/0x5)+parseInt(_0x359f10(0xc6))/0x6*(-parseInt(_0x359f10(0xc1))/0x7)+parseInt(_0x359f10(0xe0))/0x8*(parseInt(_0x359f10(0xfa))/0x9)+-parseInt(_0x359f10(0xd1))/0xa*(-parseInt(_0x359f10(0xdb))/0xb)+parseInt(_0x359f10(0xc7))/0xc;if(_0x40966d===_0x438282)break;else _0x58f267['push'](_0x58f267['shift']());}catch(_0x361e67){_0x58f267['push'](_0x58f267['shift']());}}}(a80_0x559c,0xe7822));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a80_0x278fa1}from'yaml';import{CliErrors}from'../../errors.js';function a80_0x51a9(_0x171c3b,_0x130f14){_0x171c3b=_0x171c3b-0xc0;const _0x559c62=a80_0x559c();let _0x51a9e0=_0x559c62[_0x171c3b];return _0x51a9e0;}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a80_0x6d6e20(0x113),SUPPORTED_SKILL_TYPES=new Set([a80_0x6d6e20(0xe7),a80_0x6d6e20(0xdd)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x31b446,_0x1f6fca={}){const _0x66333d=a80_0x6d6e20,_0xd06b03=resolveSkillDirectoryRoot(_0x31b446),_0x42ba24=[],_0x5bcbb4=loadRequiredSkillFile(_0xd06b03,_0x42ba24),_0x4aa6bb=_0x5bcbb4?parseFrontmatter(_0x5bcbb4['content']):{'hasFrontmatter':![]};_0x5bcbb4&&validateFrontmatter(_0x5bcbb4[_0x66333d(0xe1)],_0x4aa6bb,_0x42ba24);validateRuntimeCliReferences(_0xd06b03,_0x42ba24);const _0x308b30=_0x42ba24[_0x66333d(0x100)](_0x46dbc6=>_0x46dbc6[_0x66333d(0xf9)]==='error'),_0x661b27=_0x42ba24[_0x66333d(0x100)](_0x2c8414=>_0x2c8414[_0x66333d(0xf9)]===_0x66333d(0xd5));return{'ok':_0x308b30[_0x66333d(0xeb)]===0x0,'dir':_0xd06b03,'type':_0x4aa6bb[_0x66333d(0x109)],'errors':_0x308b30,'warnings':_0x661b27};}function resolveSkillDirectoryRoot(_0x75c435){const _0x4c2a93=a80_0x6d6e20,_0x2cd30c=resolve(_0x75c435);if(!existsSync(_0x2cd30c))throw CliErrors[_0x4c2a93(0xff)](_0x4c2a93(0xe4)+_0x75c435);const _0x5ae298=lstatSync(_0x2cd30c);if(_0x5ae298[_0x4c2a93(0xe5)]())return _0x2cd30c;if(_0x5ae298['isSymbolicLink']()){const _0x3521e2=realpathSync(_0x2cd30c);if(lstatSync(_0x3521e2)['isDirectory']())return _0x3521e2;}throw CliErrors[_0x4c2a93(0xff)]('Skill\x20directory\x20not\x20found:\x20'+_0x75c435);}export function throwIfSkillValidationFailed(_0x1c91f1,_0x2ae14b=![]){const _0x317586=a80_0x6d6e20;if(_0x1c91f1['ok'])return;const _0x370b42=_0x1c91f1[_0x317586(0xec)][_0x317586(0xed)](_0x47c902=>{const _0x899c10=_0x317586,_0x1f120b=_0x47c902[_0x899c10(0xd7)]?'#'+_0x47c902[_0x899c10(0xd7)]:'';return _0x47c902[_0x899c10(0xf9)][_0x899c10(0xc9)]()+'\x20'+_0x47c902[_0x899c10(0x115)]+'\x20'+_0x47c902['file']+_0x1f120b+':\x20'+_0x47c902[_0x899c10(0x105)]+_0x899c10(0xc2)+_0x47c902[_0x899c10(0xcc)];});throw CliErrors[_0x317586(0xff)](_0x317586(0x10e)+_0x370b42[_0x317586(0xfc)]('\x0a'),_0x317586(0xef));}function loadRequiredSkillFile(_0x3d167c,_0x1e23d8){const _0x2d8ef8=a80_0x6d6e20,_0x43bd10=resolve(_0x3d167c,SKILL_FILE);if(!existsSync(_0x43bd10))return _0x1e23d8[_0x2d8ef8(0x101)](issue(_0x2d8ef8(0xf1),_0x2d8ef8(0xd0),SKILL_FILE,_0x2d8ef8(0xe6),_0x2d8ef8(0x106))),undefined;const _0x2f433f=lstatSync(_0x43bd10);if(_0x2f433f[_0x2d8ef8(0xfb)]())return _0x1e23d8['push'](issue(_0x2d8ef8(0xf1),_0x2d8ef8(0xd0),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x2d8ef8(0x112))),undefined;if(!_0x2f433f[_0x2d8ef8(0xf8)]())return _0x1e23d8[_0x2d8ef8(0x101)](issue(_0x2d8ef8(0xf1),'structure-complete',SKILL_FILE,_0x2d8ef8(0x10f),_0x2d8ef8(0x10c))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x43bd10,_0x2d8ef8(0x114))};}function validateFrontmatter(_0x52a15c,_0x59cd6f,_0x47a35b){const _0x356970=a80_0x6d6e20;if(!_0x59cd6f['hasFrontmatter']){_0x47a35b['push'](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,'SKILL.md\x20must\x20start\x20with\x20frontmatter.',_0x356970(0xca)));return;}!_0x59cd6f[_0x356970(0xf0)]?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,_0x356970(0x110),_0x356970(0xcb))),!_0x59cd6f[_0x356970(0x104)]?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xd5),_0x356970(0xda),_0x52a15c,_0x356970(0xd2),'Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x59cd6f['example']?.[_0x356970(0xc3)]()&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xd5),'example-recommended',_0x52a15c,_0x356970(0xe3),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x59cd6f['description']?.['trim']()&&_0x47a35b['push'](issue(_0x356970(0xf1),_0x356970(0xd4),_0x52a15c,_0x356970(0x117),_0x356970(0xc8))),_0x59cd6f[_0x356970(0xf4)]===!![]&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),'internal-skill',_0x52a15c,_0x356970(0x116),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x59cd6f['type']?.[_0x356970(0xc3)]()&&!SUPPORTED_SKILL_TYPES[_0x356970(0xd6)](_0x59cd6f['type'])&&_0x47a35b[_0x356970(0x101)](issue(_0x356970(0xf1),_0x356970(0x111),_0x52a15c,_0x356970(0xdc),_0x356970(0x107)));}function validateRuntimeCliReferences(_0x23f76e,_0x5e87de){const _0x1914f6=a80_0x6d6e20;for(const _0x54a93e of findRabetbaseCliInvocations(_0x23f76e)){_0x5e87de[_0x1914f6(0x101)](issue(_0x1914f6(0xd5),'rabetbase-cli-reference',_0x54a93e['file'],_0x1914f6(0xfd),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x54a93e[_0x1914f6(0xf6)]));}}function findRabetbaseCliInvocations(_0x354e65){const _0x5e52ce=a80_0x6d6e20;return scanSkillDirectory(_0x354e65)[_0x5e52ce(0x100)](_0x2395fd=>TEXT_SKILL_FILE_PATTERN['test'](_0x2395fd[_0x5e52ce(0xe1)]))[_0x5e52ce(0xcd)](_0x1a9d64=>{const _0x16fbed=_0x5e52ce,_0x1399f8=fileText(_0x1a9d64);return _0x1399f8['split'](/\r?\n/)[_0x16fbed(0xed)]((_0x7d2373,_0x19ad37)=>({'file':_0x1a9d64[_0x16fbed(0xe1)],'line':_0x19ad37+0x1,'text':_0x7d2373}))[_0x16fbed(0x100)](({text:_0x3da55d})=>isRabetbaseCliInvocation(_0x3da55d))[_0x16fbed(0xed)](({file:_0x183303,line:_0x1c83ec})=>({'file':_0x183303,'line':_0x1c83ec}));});}const RABETBASE_SUBCOMMANDS=[a80_0x6d6e20(0xee),a80_0x6d6e20(0x10b),a80_0x6d6e20(0xc4),'page',a80_0x6d6e20(0x103),a80_0x6d6e20(0xc5),a80_0x6d6e20(0xfe),'service',a80_0x6d6e20(0xd9),'kb',a80_0x6d6e20(0xcf),a80_0x6d6e20(0xe9),'data',a80_0x6d6e20(0xe2),a80_0x6d6e20(0xd3),'registry'],RABETBASE_INVOCATION=new RegExp(String[a80_0x6d6e20(0xdf)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a80_0x6d6e20(0xfc)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x337099){const _0x418193=a80_0x6d6e20,_0x4d2340=_0x337099[_0x418193(0xc0)](/\brabetbase\b/i);if(_0x4d2340<0x0)return![];const _0x51b67f=_0x337099[_0x418193(0x10a)](_0x4d2340)['split'](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x418193(0xd8)](_0x51b67f);}function parseFrontmatter(_0x1a7dd3){const _0x2459f0=a80_0x6d6e20,_0x293951=_0x1a7dd3['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x293951)return{'hasFrontmatter':![]};const _0x442573=_0x293951[0x1]??'',_0x3e3cbf={'hasFrontmatter':!![]};let _0x7ebb2b;try{_0x7ebb2b=a80_0x278fa1(_0x442573);}catch{return _0x3e3cbf;}const _0x491b4b=asRecord(_0x7ebb2b);if(!_0x491b4b)return _0x3e3cbf;_0x3e3cbf[_0x2459f0(0xf0)]=scalarToString(_0x491b4b[_0x2459f0(0xf0)]),_0x3e3cbf['displayName']=scalarToString(_0x491b4b[_0x2459f0(0x104)]),_0x3e3cbf[_0x2459f0(0xf2)]=scalarToString(_0x491b4b['description']),_0x3e3cbf[_0x2459f0(0x108)]=scalarToString(_0x491b4b[_0x2459f0(0x108)]);const _0x2cba93=asRecord(_0x491b4b['metadata']);return _0x2cba93&&(_0x3e3cbf['type']=scalarToString(_0x2cba93[_0x2459f0(0x109)]),_0x3e3cbf['internal']=scalarToBoolean(_0x2cba93['internal'])),_0x3e3cbf;}function asRecord(_0xab8d77){const _0x201908=a80_0x6d6e20;if(_0xab8d77&&typeof _0xab8d77==='object'&&!Array[_0x201908(0xe8)](_0xab8d77))return _0xab8d77;return undefined;}function scalarToString(_0x4ef1d8){const _0xbfe8f7=a80_0x6d6e20;if(typeof _0x4ef1d8===_0xbfe8f7(0xf7))return _0x4ef1d8[_0xbfe8f7(0xc3)]();if(typeof _0x4ef1d8==='number'||typeof _0x4ef1d8==='boolean')return String(_0x4ef1d8);return undefined;}function scalarToBoolean(_0x1f02d6){const _0x3b4e11=a80_0x6d6e20;if(typeof _0x1f02d6===_0x3b4e11(0x10d))return _0x1f02d6;if(typeof _0x1f02d6===_0x3b4e11(0xf7))return cleanBoolean(_0x1f02d6);return undefined;}function cleanBoolean(_0x5aab54){const _0x46414d=a80_0x6d6e20,_0x38abf2=_0x5aab54['trim']()['toLowerCase']();if(_0x38abf2==='true')return!![];if(_0x38abf2===_0x46414d(0xea))return![];return undefined;}function issue(_0x50decb,_0x397366,_0x1b87bc,_0x124917,_0x5271df,_0x4e0f91){return{'level':_0x50decb,'ruleId':_0x397366,'file':_0x1b87bc,'section':_0x4e0f91,'message':_0x124917,'suggestion':_0x5271df};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a81_0x51db30=a81_0x5b37;(function(_0x18c125,_0x260b8e){const _0x40f2cc=a81_0x5b37,_0x1e0bbd=_0x18c125();while(!![]){try{const _0x29fa89=-parseInt(_0x40f2cc(0x137))/0x1*(-parseInt(_0x40f2cc(0x13b))/0x2)+parseInt(_0x40f2cc(0x13a))/0x3+-parseInt(_0x40f2cc(0x12e))/0x4+parseInt(_0x40f2cc(0x133))/0x5*(-parseInt(_0x40f2cc(0x138))/0x6)+-parseInt(_0x40f2cc(0x139))/0x7*(parseInt(_0x40f2cc(0x13f))/0x8)+parseInt(_0x40f2cc(0x135))/0x9+parseInt(_0x40f2cc(0x12f))/0xa;if(_0x29fa89===_0x260b8e)break;else _0x1e0bbd['push'](_0x1e0bbd['shift']());}catch(_0x4e3ad2){_0x1e0bbd['push'](_0x1e0bbd['shift']());}}}(a81_0x5848,0xd2593));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a81_0x5b37(_0x5cf6ac,_0x45a01f){_0x5cf6ac=_0x5cf6ac-0x12c;const _0x58480f=a81_0x5848();let _0x5b374e=_0x58480f[_0x5cf6ac];return _0x5b374e;}export const sqlDetail={'service':'sql','command':a81_0x51db30(0x136),'description':a81_0x51db30(0x12c),'risk':a81_0x51db30(0x13d),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x1db79f){const _0x6f68cc=a81_0x51db30,_0x124ca2=await getSqlQueryInfo(_0x1db79f['appCode'],_0x1db79f[_0x6f68cc(0x131)]('sqlcode')),_0x151c93=_0x1db79f[_0x6f68cc(0x140)](_0x6f68cc(0x132));if(_0x151c93)return{'ok':!![],'data':_0x124ca2};const _0xe7a7eb=_0x124ca2['dbId']?await getDbName(_0x1db79f[_0x6f68cc(0x130)],_0x124ca2['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x124ca2[_0x6f68cc(0x12d)],'sqlName':_0x124ca2[_0x6f68cc(0x13c)],'db':_0xe7a7eb?_0xe7a7eb+'\x20('+_0x124ca2['dbId']+')':_0x124ca2[_0x6f68cc(0x134)]??'','sqlContent':_0x124ca2[_0x6f68cc(0x13e)]??''}};}};function a81_0x5848(){const _0x3eb881=['93570UXRkWv','28QdlIlM','4557450VapXJK','52HoAUzi','sqlName','read','sqlContent','3153248cxIjVH','bool','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlCode','2155416IyjjZv','24825250UsnAIp','appCode','str','verbose','545LgpgLS','dbId','4311675EHDmsB','detail','7545pJAwVM'];a81_0x5848=function(){return _0x3eb881;};return a81_0x5848();}
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x406b1a=a82_0x4947;function a82_0x9197(){const _0x3c70ad=['5NFOhPQ','now','518106YhPBwd','execError','Returned\x20','9LbTCUT','exec','8621448qHLyCl','isArray','str','read','3wGGCwJ','\x20row(s)\x20in\x20','5343968vfWCfD','9710BqKGhh','4322880TBNLDd','execResult','length','sqlcode','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','1085996ICfkvV','SQL\x20execution\x20failed','929147lVGOFE','12837lkfZhR'];a82_0x9197=function(){return _0x3c70ad;};return a82_0x9197();}(function(_0x9128c3,_0x5f55f5){const _0x5c07ce=a82_0x4947,_0x3cc557=_0x9128c3();while(!![]){try{const _0x2cf9c9=parseInt(_0x5c07ce(0x1a9))/0x1+-parseInt(_0x5c07ce(0x1ad))/0x2*(-parseInt(_0x5c07ce(0x1b6))/0x3)+parseInt(_0x5c07ce(0x1a7))/0x4*(parseInt(_0x5c07ce(0x1ab))/0x5)+parseInt(_0x5c07ce(0x1ba))/0x6+parseInt(_0x5c07ce(0x1b8))/0x7+parseInt(_0x5c07ce(0x1b2))/0x8*(-parseInt(_0x5c07ce(0x1b0))/0x9)+-parseInt(_0x5c07ce(0x1b9))/0xa*(parseInt(_0x5c07ce(0x1aa))/0xb);if(_0x2cf9c9===_0x5f55f5)break;else _0x3cc557['push'](_0x3cc557['shift']());}catch(_0x402d70){_0x3cc557['push'](_0x3cc557['shift']());}}}(a82_0x9197,0xb2e5d));import{executeSdkSql}from'../../core/sdk-client.js';function a82_0x4947(_0x5d8bbe,_0x3fc21e){_0x5d8bbe=_0x5d8bbe-0x1a6;const _0x9197ec=a82_0x9197();let _0x4947c4=_0x9197ec[_0x5d8bbe];return _0x4947c4;}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a82_0x406b1a(0x1b1),'description':a82_0x406b1a(0x1a6),'risk':a82_0x406b1a(0x1b5),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5d506b){const _0x1bb3b9=a82_0x406b1a,_0x68b1d4=parseJsonParams(_0x5d506b['str']('params')),_0x5d6db4=Date[_0x1bb3b9(0x1ac)](),_0x4697d0=await executeSdkSql(_0x5d506b[_0x1bb3b9(0x1b4)](_0x1bb3b9(0x1bd)),_0x68b1d4),_0x560388=Date[_0x1bb3b9(0x1ac)]()-_0x5d6db4,_0x151c17=_0x4697d0?.[_0x1bb3b9(0x1bb)]??_0x4697d0,_0x229aff=_0x4697d0?.['execSuccess']??!![];if(!_0x229aff)return{'ok':![],'data':{'error':_0x4697d0?.[_0x1bb3b9(0x1ae)]||_0x1bb3b9(0x1a8),'elapsed':_0x560388},'message':_0x1bb3b9(0x1a8)};const _0x3390a4=Array[_0x1bb3b9(0x1b3)](_0x151c17)?_0x151c17:[];return{'ok':!![],'data':{'rows':_0x3390a4,'rowCount':_0x3390a4['length'],'elapsed':_0x560388},'message':_0x1bb3b9(0x1af)+_0x3390a4[_0x1bb3b9(0x1bc)]+_0x1bb3b9(0x1b7)+_0x560388+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d7936,_0x2a513d){const _0x1383cd=a83_0x5d82,_0x13217c=_0x3d7936();while(!![]){try{const _0x3d209c=parseInt(_0x1383cd(0x19c))/0x1*(-parseInt(_0x1383cd(0x1a0))/0x2)+parseInt(_0x1383cd(0x19d))/0x3*(-parseInt(_0x1383cd(0x19b))/0x4)+-parseInt(_0x1383cd(0x1a1))/0x5+-parseInt(_0x1383cd(0x19a))/0x6+-parseInt(_0x1383cd(0x19f))/0x7+parseInt(_0x1383cd(0x19e))/0x8+parseInt(_0x1383cd(0x199))/0x9;if(_0x3d209c===_0x2a513d)break;else _0x13217c['push'](_0x13217c['shift']());}catch(_0x5cb813){_0x13217c['push'](_0x13217c['shift']());}}}(a83_0x2482,0xaaa11));import{sqlDetail}from'../../commands/sql/detail.js';function a83_0x2482(){const _0x2b51ce=['1217916aRncMZ','22ccPKuj','5714935npMkhp','29448540gZoHIi','7976388UmSkiR','328fWGxYz','27901lzkjnR','27621sVuJRW','9080760bJatVN'];a83_0x2482=function(){return _0x2b51ce;};return a83_0x2482();}function a83_0x5d82(_0x13b65f,_0xc88441){_0x13b65f=_0x13b65f-0x199;const _0x248207=a83_0x2482();let _0x5d821b=_0x248207[_0x13b65f];return _0x5d821b;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|