@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.7
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/approval/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/import-excel.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/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.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/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.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 a66_0x51cd04=a66_0xcd3a;function a66_0x1a70(){const _0x1b8dd6=['type','create','trim','Skill\x20directory\x20already\x20exists:\x20','content','1680ujMFtH','287517jQmaFc','7280feGMhO','skillDir','99XJyOrv','target','map','144165idXsLV','1931624QEYUWh','2494593hovgjn','files','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','skillName','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','path','7UbYjui','Created\x20local\x20Skill\x20draft\x20','6PXYWZt','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','isSymbolicLink','rendered','WRITE','str','validation','skill','utf8','372gwRmCj','name','isDirectory','1295668AFrdqx'];a66_0x1a70=function(){return _0x1b8dd6;};return a66_0x1a70();}(function(_0x7c98e,_0x23ddbe){const _0x108f8f=a66_0xcd3a,_0x1ce5f4=_0x7c98e();while(!![]){try{const _0x1e5bb6=-parseInt(_0x108f8f(0xd9))/0x1+-parseInt(_0x108f8f(0xd8))/0x2*(-parseInt(_0x108f8f(0xcf))/0x3)+parseInt(_0x108f8f(0xd2))/0x4+parseInt(_0x108f8f(0xdf))/0x5*(parseInt(_0x108f8f(0xe9))/0x6)+-parseInt(_0x108f8f(0xe7))/0x7*(parseInt(_0x108f8f(0xe0))/0x8)+parseInt(_0x108f8f(0xe1))/0x9+parseInt(_0x108f8f(0xda))/0xa*(-parseInt(_0x108f8f(0xdc))/0xb);if(_0x1e5bb6===_0x23ddbe)break;else _0x1ce5f4['push'](_0x1ce5f4['shift']());}catch(_0x411644){_0x1ce5f4['push'](_0x1ce5f4['shift']());}}}(a66_0x1a70,0x307a5));import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{CliErrors}from'../../../errors.js';import{writeCliSideChannelLine}from'../../../utils/write-cli-side-channel.js';import{CREATE_NAME_FLAG,FORCE_FLAG,TARGET_FLAG,TYPE_FLAG}from'../flags.js';import{DEFAULT_SKILL_TARGET,renderSkillTemplate}from'../templates.js';export const createCommand={'service':a66_0x51cd04(0xcd),'command':a66_0x51cd04(0xd4),'description':a66_0x51cd04(0xe3),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0xd3a949){const _0x1ddb51=a66_0x51cd04,_0x593b1f=buildSkillCreatePlan(_0xd3a949[_0x1ddb51(0xcb)]('name'),_0xd3a949[_0x1ddb51(0xcb)]('type'),_0xd3a949[_0x1ddb51(0xcb)](_0x1ddb51(0xdd)));return{'method':_0x1ddb51(0xed),'url':_0x593b1f[_0x1ddb51(0xdb)],'body':{'skillName':_0x593b1f[_0x1ddb51(0xec)][_0x1ddb51(0xe4)],'type':_0x593b1f[_0x1ddb51(0xec)][_0x1ddb51(0xd3)],'selfContained':!![],'files':_0x593b1f['rendered']['files'][_0x1ddb51(0xde)](_0x16775e=>_0x16775e[_0x1ddb51(0xe6)])},'description':_0x1ddb51(0xea)};},async 'execute'(_0x366294){const _0x2b82f4=a66_0x51cd04,_0x3390dd=buildSkillCreatePlan(_0x366294[_0x2b82f4(0xcb)](_0x2b82f4(0xd0)),_0x366294[_0x2b82f4(0xcb)]('type'),_0x366294[_0x2b82f4(0xcb)](_0x2b82f4(0xdd)));return writeSkillDraft(_0x3390dd,_0x366294['bool']('force')),{'ok':!![],'data':{'skillName':_0x3390dd[_0x2b82f4(0xec)][_0x2b82f4(0xe4)],'type':_0x3390dd[_0x2b82f4(0xec)]['type'],'dir':_0x3390dd[_0x2b82f4(0xdb)],'files':_0x3390dd['rendered'][_0x2b82f4(0xe2)]['map'](_0x5efe10=>_0x5efe10[_0x2b82f4(0xe6)])},'message':_0x2b82f4(0xe8)+_0x3390dd['rendered'][_0x2b82f4(0xe4)]};}};function buildSkillCreatePlan(_0xbc2393,_0x23947e,_0x3068cd){const _0x17b4b7=a66_0x51cd04,_0x4f281e=_0x23947e[_0x17b4b7(0xd5)](),_0x37e487=renderSkillTemplate({'skillName':_0xbc2393,'type':_0x4f281e});!_0x4f281e&&writeCliSideChannelLine(_0x17b4b7(0xe5));const _0x1212e0=resolve(normalizeSkillTarget(_0x3068cd));return{'rendered':_0x37e487,'targetRoot':_0x1212e0,'skillDir':resolve(_0x1212e0,_0x37e487[_0x17b4b7(0xe4)])};}function a66_0xcd3a(_0x203220,_0x1ab2a9){_0x203220=_0x203220-0xcb;const _0x1a7005=a66_0x1a70();let _0xcd3adf=_0x1a7005[_0x203220];return _0xcd3adf;}function normalizeSkillTarget(_0x4c17d6){const _0x18ef18=a66_0x51cd04;return(_0x4c17d6||DEFAULT_SKILL_TARGET)[_0x18ef18(0xd5)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x55d2cd,_0x5afc59){const _0x3a41a0=a66_0x51cd04;if(existsSync(_0x55d2cd[_0x3a41a0(0xdb)])){const _0xb8a6c3=lstatSync(_0x55d2cd[_0x3a41a0(0xdb)]);if(!_0xb8a6c3[_0x3a41a0(0xd1)]()||_0xb8a6c3[_0x3a41a0(0xeb)]())throw CliErrors[_0x3a41a0(0xcc)]('Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20'+_0x55d2cd[_0x3a41a0(0xdb)]);if(!_0x5afc59)throw CliErrors[_0x3a41a0(0xcc)](_0x3a41a0(0xd6)+_0x55d2cd[_0x3a41a0(0xdb)],'Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.');}for(const _0x45447c of _0x55d2cd[_0x3a41a0(0xec)][_0x3a41a0(0xe2)]){const _0x5eaf83=resolve(_0x55d2cd[_0x3a41a0(0xdb)],_0x45447c[_0x3a41a0(0xe6)]),_0x958657=dirname(_0x5eaf83);mkdirSync(_0x958657,{'recursive':!![]});if(existsSync(_0x5eaf83)&&lstatSync(_0x5eaf83)[_0x3a41a0(0xeb)]())throw CliErrors[_0x3a41a0(0xcc)]('Refusing\x20to\x20overwrite\x20symlink:\x20'+_0x5eaf83);writeFileSync(_0x5eaf83,_0x45447c[_0x3a41a0(0xd7)],_0x3a41a0(0xce));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x26ca12=a67_0xfa53;(function(_0x45f966,_0x119e46){const _0x2961b1=a67_0xfa53,_0x151685=_0x45f966();while(!![]){try{const _0x16b304=parseInt(_0x2961b1(0x160))/0x1+parseInt(_0x2961b1(0x17c))/0x2*(-parseInt(_0x2961b1(0x162))/0x3)+parseInt(_0x2961b1(0x185))/0x4*(parseInt(_0x2961b1(0x179))/0x5)+parseInt(_0x2961b1(0x15f))/0x6+-parseInt(_0x2961b1(0x17f))/0x7*(parseInt(_0x2961b1(0x178))/0x8)+-parseInt(_0x2961b1(0x181))/0x9*(parseInt(_0x2961b1(0x187))/0xa)+parseInt(_0x2961b1(0x170))/0xb*(-parseInt(_0x2961b1(0x161))/0xc);if(_0x16b304===_0x119e46)break;else _0x151685['push'](_0x151685['shift']());}catch(_0xae0cef){_0x151685['push'](_0x151685['shift']());}}}(a67_0x4f1d,0xdf62c));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';function a67_0x4f1d(){const _0x170285=[';\x20first\x20write\x20expects\x20revision\x20','112023kOowio','skillCode','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','Updated','8108SZxUIo','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','1210hofLpZ','skill','str','9659904tImtog','829276UlJJMl','14333844wsjCbT','873uXurxs','diagram-push','skill-code','scope','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','read','unchanged','diagram-validate','version','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version',';\x20next\x20write\x20expects\x20revision\x20','write','\x20is\x20unchanged.','diagram-file','11qvZiWZ','appCode','trim','expectedDiagramRevision','Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','found','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','validation','105928RGftVK','3740oJTwnS','personal','Skill\x20diagram\x20validation\x20passed\x20for\x20','1244uJOPmE','diagram-show','created','84gGdAtZ'];a67_0x4f1d=function(){return _0x170285;};return a67_0x4f1d();}import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';function a67_0xfa53(_0x60b99e,_0x1e911e){_0x60b99e=_0x60b99e-0x15e;const _0x4f1d1d=a67_0x4f1d();let _0xfa5395=_0x4f1d1d[_0x60b99e];return _0xfa5395;}const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x13db83){const _0x237bb7=a67_0xfa53,_0x40920a=_0x13db83[_0x237bb7(0x15e)](_0x237bb7(0x164))[_0x237bb7(0x172)](),_0x5242fb=_0x13db83[_0x237bb7(0x15e)](_0x237bb7(0x16a))['trim'](),_0x2bef0c=_0x13db83[_0x237bb7(0x15e)](_0x237bb7(0x165));if(!_0x40920a||!_0x5242fb||_0x2bef0c!==_0x237bb7(0x17a)&&_0x2bef0c!=='company')throw CliErrors['validation']('--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.');return{'skillCode':_0x40920a,'version':_0x5242fb,'scope':_0x2bef0c};}async function readDiagramWriteInput(_0x431d51){const _0x241b9a=a67_0xfa53,_0x52847e=_0x431d51['num']('expected-diagram-revision'),_0x218356=_0x431d51[_0x241b9a(0x15e)]('source-fingerprint')[_0x241b9a(0x172)]();if(!Number['isInteger'](_0x52847e)||_0x52847e<0x0)throw CliErrors['validation'](_0x241b9a(0x186));if(!/^sha256:[0-9a-f]{64}$/['test'](_0x218356))throw CliErrors[_0x241b9a(0x177)]('--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.');return{'expectedDiagramRevision':_0x52847e,'sourceFingerprint':_0x218356,'diagram':await readRequiredSkillDiagram(_0x431d51['str'](_0x241b9a(0x16f)))};}export const diagramValidateCommand={'service':a67_0x26ca12(0x188),'command':a67_0x26ca12(0x169),'description':a67_0x26ca12(0x176),'risk':'read','flags':WRITE_FLAGS,async 'execute'(_0x393557){const _0x4c5bb5=a67_0x26ca12,_0x441b6c=readDiagramTarget(_0x393557),_0x5f3d74=await validateRuntimeSkillVersionDiagram(_0x393557[_0x4c5bb5(0x171)],_0x441b6c[_0x4c5bb5(0x182)],_0x441b6c['version'],_0x441b6c[_0x4c5bb5(0x165)],await readDiagramWriteInput(_0x393557));return{'ok':!![],'data':_0x5f3d74,'message':_0x4c5bb5(0x17b)+_0x441b6c[_0x4c5bb5(0x182)]+'@'+_0x441b6c[_0x4c5bb5(0x16a)]+'.'};}};export const diagramPushCommand={'service':a67_0x26ca12(0x188),'command':a67_0x26ca12(0x163),'description':a67_0x26ca12(0x16b),'risk':a67_0x26ca12(0x16d),'confirmationDescription':a67_0x26ca12(0x174),'flags':WRITE_FLAGS,async 'execute'(_0x4ce998){const _0xeefbae=a67_0x26ca12,_0x1ed4a0=readDiagramTarget(_0x4ce998),_0x551e92=await putRuntimeSkillVersionDiagram(_0x4ce998[_0xeefbae(0x171)],_0x1ed4a0[_0xeefbae(0x182)],_0x1ed4a0[_0xeefbae(0x16a)],_0x1ed4a0[_0xeefbae(0x165)],await readDiagramWriteInput(_0x4ce998));return{'ok':!![],'data':_0x551e92,'message':_0x551e92['action']===_0xeefbae(0x168)?'Skill\x20diagram\x20for\x20'+_0x1ed4a0[_0xeefbae(0x182)]+'@'+_0x1ed4a0[_0xeefbae(0x16a)]+_0xeefbae(0x16e):(_0x551e92['action']===_0xeefbae(0x17e)?'Created':_0xeefbae(0x184))+'\x20Skill\x20diagram\x20for\x20'+_0x1ed4a0[_0xeefbae(0x182)]+'@'+_0x1ed4a0[_0xeefbae(0x16a)]+'.'};}};export const diagramShowCommand={'service':a67_0x26ca12(0x188),'command':a67_0x26ca12(0x17d),'description':a67_0x26ca12(0x183),'risk':a67_0x26ca12(0x167),'flags':TARGET_FLAGS,async 'execute'(_0x2e5db1){const _0x31b58a=a67_0x26ca12,_0x4d7f8c=readDiagramTarget(_0x2e5db1),_0x4e619d=await getRuntimeSkillVersionDiagram(_0x2e5db1[_0x31b58a(0x171)],_0x4d7f8c[_0x31b58a(0x182)],_0x4d7f8c[_0x31b58a(0x16a)],_0x4d7f8c[_0x31b58a(0x165)]);return{'ok':!![],'data':_0x4e619d,'message':_0x4e619d[_0x31b58a(0x175)]?'Found\x20Skill\x20diagram\x20for\x20'+_0x4d7f8c[_0x31b58a(0x182)]+'@'+_0x4d7f8c[_0x31b58a(0x16a)]+_0x31b58a(0x16c)+_0x4e619d['expectedDiagramRevision']+'.':_0x31b58a(0x166)+_0x4d7f8c[_0x31b58a(0x182)]+'@'+_0x4d7f8c[_0x31b58a(0x16a)]+_0x31b58a(0x180)+_0x4e619d[_0x31b58a(0x173)]+'.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x342dec=a68_0x29e8;(function(_0x476b6f,_0xf7fcf0){const _0x528942=a68_0x29e8,_0x3a40a7=_0x476b6f();while(!![]){try{const _0x2f06e6=parseInt(_0x528942(0x73))/0x1*(parseInt(_0x528942(0x7c))/0x2)+-parseInt(_0x528942(0x8e))/0x3+parseInt(_0x528942(0x89))/0x4+-parseInt(_0x528942(0x7f))/0x5+parseInt(_0x528942(0x93))/0x6*(-parseInt(_0x528942(0x7b))/0x7)+parseInt(_0x528942(0x6b))/0x8+parseInt(_0x528942(0x74))/0x9;if(_0x2f06e6===_0xf7fcf0)break;else _0x3a40a7['push'](_0x3a40a7['shift']());}catch(_0x75a230){_0x3a40a7['push'](_0x3a40a7['shift']());}}}(a68_0x32f4,0x9a1e6));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;function a68_0x29e8(_0x3b599b,_0x201c0a){_0x3b599b=_0x3b599b-0x6b;const _0x32f40a=a68_0x32f4();let _0x29e853=_0x32f40a[_0x3b599b];return _0x29e853;}function a68_0x32f4(){const _0x52f8fd=['3442880hsYast','company','skillCode','removed','skillRoots','1761885YvFKKZ','map','reduce','code','Installed\x20','72456ieWRqT','str','3639272npERBw','includes','from','unchanged','force','filter','version','skipped','9518ddPpgq','2842452zkvSDb','action','bool','min','appCode','all','authRequired','182gXzgbA','62EWRQLJ','length','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','1969870tbKxDl','created','trim','updated','accessKey','scope','../../../core/api-client.js','read','project','personal'];a68_0x32f4=function(){return _0x52f8fd;};return a68_0x32f4();}export const installCommand={'service':'skill','command':'install','description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':a68_0x342dec(0x86),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x441c5c){return syncRuntimeSkills(_0x441c5c);}};async function syncRuntimeSkills(_0x5eb876){const _0x35c2e9=a68_0x342dec,{downloadRuntimeSkillPackage:_0xc083b7,listRuntimeSkills:_0x58c767}=await import(_0x35c2e9(0x85)),{linkEffectiveRuntimeSkills:_0x16d065,materializeRuntimeSkill:_0x428df4,pruneStaleRuntimeSkillCache:_0x184e9b,pruneStaleRuntimeSkillLinks:_0x163a16,resolveRuntimeSkillInstallTarget:_0x1e6863,reuseMaterializedRuntimeSkill:_0x208d8a}=await import('../../../skills/runtime-skill-sync.js'),_0x513064=_0x5eb876[_0x35c2e9(0x94)](_0x35c2e9(0x91)),_0x11b4a5=normalizeSyncScopes(_0x5eb876[_0x35c2e9(0x94)](_0x35c2e9(0x84))),_0x41b12d=_0x5eb876['envName']??'production',_0x373015=_0x5eb876[_0x35c2e9(0x83)],_0x5021f2=_0x5eb876[_0x35c2e9(0x76)](_0x35c2e9(0x6f));if(!_0x373015)throw CliErrors[_0x35c2e9(0x7a)](_0x35c2e9(0x7e));const _0x242c47=_0x1e6863(_0x5eb876[_0x35c2e9(0x78)],_0x5eb876[_0x35c2e9(0x76)]('project')?_0x35c2e9(0x87):'global'),_0x58c11c=_0x1e6863(_0x5eb876[_0x35c2e9(0x78)],_0x242c47[_0x35c2e9(0x84)]===_0x35c2e9(0x87)?'global':_0x35c2e9(0x87)),_0x192a97=await _0x58c767({'appCode':_0x5eb876[_0x35c2e9(0x78)],'scope':_0x11b4a5[_0x35c2e9(0x7d)]===0x1?_0x11b4a5[0x0]:_0x35c2e9(0x79),'code':_0x513064[_0x35c2e9(0x81)]()||undefined,'installableOnly':!![]}),_0x1382f1=_0x11b4a5[_0x35c2e9(0x6c)](_0x35c2e9(0x88))?_0x192a97[_0x35c2e9(0x88)]:[],_0x3005b5=_0x11b4a5[_0x35c2e9(0x6c)](_0x35c2e9(0x8a))?_0x192a97[_0x35c2e9(0x8a)]:[],_0x35d52b=new Set([..._0x1382f1[_0x35c2e9(0x8f)](_0x1c5be9=>_0x1c5be9[_0x35c2e9(0x8b)]?.[_0x35c2e9(0x81)]())[_0x35c2e9(0x70)](_0x43ab2f=>Boolean(_0x43ab2f)),..._0x3005b5[_0x35c2e9(0x8f)](_0xee7e61=>_0xee7e61[_0x35c2e9(0x8b)]?.['trim']())[_0x35c2e9(0x70)](_0x4438fb=>Boolean(_0x4438fb))]),_0x354eb5=_0x513064[_0x35c2e9(0x81)]()?[_0x513064[_0x35c2e9(0x81)]()]:undefined,_0x1c0f17=_0x11b4a5[_0x35c2e9(0x7d)]===0x2&&_0x11b4a5[_0x35c2e9(0x6c)](_0x35c2e9(0x88))&&_0x11b4a5[_0x35c2e9(0x6c)](_0x35c2e9(0x8a)),_0x12591a=_0x1c0f17?_0x163a16(_0x242c47,_0x35d52b,_0x354eb5):[],_0x1bcb1d=_0x184e9b({'env':_0x41b12d,'accessKey':_0x373015,'appCode':_0x5eb876[_0x35c2e9(0x78)],'activeSkillCodes':_0x35d52b,'pruneSkillCodes':_0x354eb5,'scopes':_0x11b4a5,'protectedLinkRoots':_0x58c11c[_0x35c2e9(0x8d)]}),_0x373412=[..._0x1382f1['map'](_0x2855c6=>({'skill':_0x2855c6,'scope':'personal'})),..._0x3005b5[_0x35c2e9(0x8f)](_0x3b504b=>({'skill':_0x3b504b,'scope':_0x35c2e9(0x8a)}))],_0x1209b1=await mapConcurrent(_0x373412,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0xf81536,scope:_0x56bf9d})=>{const _0x41a21c=_0x35c2e9,_0x333f35=_0x208d8a(_0xf81536,_0x56bf9d,{'env':_0x41b12d,'accessKey':_0x373015,'appCode':_0x5eb876['appCode']});if(_0x333f35)return _0x333f35;return _0x428df4(_0xf81536,_0x56bf9d,{'env':_0x41b12d,'accessKey':_0x373015,'appCode':_0x5eb876[_0x41a21c(0x78)],'force':_0x5021f2,'packageBytes':await downloadSkillPackage(_0xf81536,_0x56bf9d,_0x5eb876[_0x41a21c(0x78)],_0xc083b7)});}),_0x179411=_0x16d065(_0x1209b1,_0x242c47),_0x4ff81f=countLinkActions(_0x179411);return{'ok':!![],'data':{'appCode':_0x5eb876[_0x35c2e9(0x78)],..._0x242c47[_0x35c2e9(0x84)]==='project'?{'installTarget':{'scope':_0x242c47['scope'],'skillRoots':[..._0x242c47[_0x35c2e9(0x8d)]]}}:{},'personal':_0x1382f1[_0x35c2e9(0x7d)],'company':_0x3005b5[_0x35c2e9(0x7d)],'materialized':_0x1209b1['length'],'links':{'total':_0x179411['length'],'created':_0x4ff81f[_0x35c2e9(0x80)]??0x0,'updated':_0x4ff81f[_0x35c2e9(0x82)]??0x0,'unchanged':_0x4ff81f[_0x35c2e9(0x6e)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x12591a[_0x35c2e9(0x70)](_0x2ecf18=>_0x2ecf18['action']===_0x35c2e9(0x8c))[_0x35c2e9(0x7d)],'cacheDirs':_0x1bcb1d[_0x35c2e9(0x70)](_0xf62716=>_0xf62716[_0x35c2e9(0x75)]===_0x35c2e9(0x8c))[_0x35c2e9(0x7d)],'skipped':[..._0x12591a,..._0x1bcb1d][_0x35c2e9(0x70)](_0x3b8339=>_0x3b8339[_0x35c2e9(0x75)]===_0x35c2e9(0x72))[_0x35c2e9(0x7d)]},'skills':{'personal':_0x1382f1[_0x35c2e9(0x8f)](summarizeRuntimeSkill),'company':_0x3005b5[_0x35c2e9(0x8f)](summarizeRuntimeSkill)}},'message':_0x35c2e9(0x92)+_0x1382f1[_0x35c2e9(0x7d)]+'\x20personal\x20and\x20'+_0x3005b5[_0x35c2e9(0x7d)]+'\x20company\x20Skill(s).'};}async function mapConcurrent(_0x285eef,_0x7766c2,_0x3cb2de){const _0x171182=a68_0x342dec,_0x59ea01=new Array(_0x285eef[_0x171182(0x7d)]);let _0x445f99=0x0;const _0x4135ac=Array[_0x171182(0x6d)]({'length':Math[_0x171182(0x77)](_0x7766c2,_0x285eef['length'])},async()=>{const _0xfdbec=_0x171182;while(_0x445f99<_0x285eef[_0xfdbec(0x7d)]){const _0xe1e42=_0x445f99;_0x445f99+=0x1,_0x59ea01[_0xe1e42]=await _0x3cb2de(_0x285eef[_0xe1e42]);}});return await Promise[_0x171182(0x79)](_0x4135ac),_0x59ea01;}async function downloadSkillPackage(_0x217fa4,_0x36dc79,_0x427874,_0x5657c8){const _0x1592ca=a68_0x342dec,_0x1750a1=_0x217fa4[_0x1592ca(0x71)]?.['trim']();return _0x1750a1?_0x5657c8(_0x36dc79,_0x217fa4[_0x1592ca(0x8b)],_0x427874,_0x1750a1):_0x5657c8(_0x36dc79,_0x217fa4[_0x1592ca(0x8b)],_0x427874);}function countLinkActions(_0x3db3fc){const _0x47b440=a68_0x342dec;return _0x3db3fc[_0x47b440(0x90)]((_0x1905b3,_0x23b008)=>{const _0xee6109=_0x47b440;return _0x1905b3[_0x23b008[_0xee6109(0x75)]]=(_0x1905b3[_0x23b008['action']]??0x0)+0x1,_0x1905b3;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x4030(_0x57ff2f,_0x64d29){_0x57ff2f=_0x57ff2f-0x88;const _0x527879=a69_0x5278();let _0x403089=_0x527879[_0x57ff2f];return _0x403089;}const a69_0xd9f9ae=a69_0x4030;(function(_0x58ec07,_0x58c2a1){const _0x4134c8=a69_0x4030,_0x3d11e4=_0x58ec07();while(!![]){try{const _0x55c912=parseInt(_0x4134c8(0xa3))/0x1+-parseInt(_0x4134c8(0xac))/0x2*(-parseInt(_0x4134c8(0x8f))/0x3)+parseInt(_0x4134c8(0x91))/0x4+-parseInt(_0x4134c8(0xa8))/0x5*(parseInt(_0x4134c8(0x8b))/0x6)+parseInt(_0x4134c8(0x9b))/0x7*(parseInt(_0x4134c8(0xa5))/0x8)+-parseInt(_0x4134c8(0xa2))/0x9*(parseInt(_0x4134c8(0x9e))/0xa)+-parseInt(_0x4134c8(0xab))/0xb;if(_0x55c912===_0x58c2a1)break;else _0x3d11e4['push'](_0x3d11e4['shift']());}catch(_0x75f29f){_0x3d11e4['push'](_0x3d11e4['shift']());}}}(a69_0x5278,0x8f8ee));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';function a69_0x5278(){const _0x5c462c=['length','Listed\x20','builtin','\x20local\x20Skill(s).','14zCFDMf','map','scope','3310DjuCGB','remote','read','\x20remote\x20Skill(s).','14841PprVij','844941fiFyvy','../../../skills/runtime-skill-sync.js','2032672MvRmAQ','envName','accessKey','29485EHrnjv','authRequired','trim','569844WVcVoo','41402qQQrKC','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','production','appCode','1182CYDwQW','global','personal','../../../core/api-client.js','57lesfwi','company','2403672SVOoHV','str','local','bool','project','filter'];a69_0x5278=function(){return _0x5c462c;};return a69_0x5278();}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':'list','description':a69_0xd9f9ae(0x88),'risk':a69_0xd9f9ae(0xa0),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x29e607){const _0x465a3c=a69_0xd9f9ae,_0x29c425=_0x29e607[_0x465a3c(0x92)]('code'),_0x27e7e7=normalizeListScope(_0x29e607[_0x465a3c(0x92)](_0x465a3c(0x9d)));if(_0x29e607['bool'](_0x465a3c(0x93))){const _0x32c266=_0x29e607[_0x465a3c(0xa7)];if(!_0x32c266)throw CliErrors[_0x465a3c(0xa9)]();const {listLocalRuntimeSkills:_0x423f9c,resolveRuntimeSkillInstallTarget:_0x3626e4}=await import(_0x465a3c(0xa4)),_0x17e8ad=_0x3626e4(_0x29e607[_0x465a3c(0x8a)],_0x29e607[_0x465a3c(0x94)](_0x465a3c(0x95))?_0x465a3c(0x95):_0x465a3c(0x8c)),_0x1f7a3e=_0x423f9c({'env':_0x29e607[_0x465a3c(0xa6)]??_0x465a3c(0x89),'accessKey':_0x32c266,'appCode':_0x29e607['appCode'],'scopes':listScopeToRuntimeScopes(_0x27e7e7),'code':_0x29c425[_0x465a3c(0xaa)]()||undefined},_0x17e8ad),_0x35040e=groupLocalRuntimeSkills(_0x1f7a3e);return{'ok':!![],'data':{'appCode':_0x29e607[_0x465a3c(0x8a)],'source':_0x465a3c(0x93),..._0x17e8ad[_0x465a3c(0x9d)]===_0x465a3c(0x95)?{'installScope':_0x17e8ad[_0x465a3c(0x9d)]}:{},'scope':_0x27e7e7,'total':_0x1f7a3e[_0x465a3c(0x97)],'personal':_0x35040e[_0x465a3c(0x8d)][_0x465a3c(0x97)],'company':_0x35040e[_0x465a3c(0x90)][_0x465a3c(0x97)],'items':_0x1f7a3e[_0x465a3c(0x9c)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x35040e[_0x465a3c(0x8d)]['map'](summarizeLocalRuntimeSkill),'company':_0x35040e[_0x465a3c(0x90)][_0x465a3c(0x9c)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x1f7a3e[_0x465a3c(0x97)]+_0x465a3c(0x9a)};}const {listRuntimeSkills:_0x22027d}=await import(_0x465a3c(0x8e)),_0x1980e8=await _0x22027d({'appCode':_0x29e607[_0x465a3c(0x8a)],'scope':listScopeToRemoteScope(_0x27e7e7),'code':_0x29c425[_0x465a3c(0xaa)]()||undefined}),_0x25b9d0=shouldListScope(_0x27e7e7,_0x465a3c(0x8d))?_0x1980e8[_0x465a3c(0x8d)]??[]:[],_0x247cc2=shouldListScope(_0x27e7e7,'company')?_0x1980e8[_0x465a3c(0x90)]??[]:[],_0x1c8475=[..._0x25b9d0,..._0x247cc2];return{'ok':!![],'data':{'appCode':_0x29e607[_0x465a3c(0x8a)],'source':_0x465a3c(0x9f),'scope':_0x27e7e7,'total':_0x1c8475[_0x465a3c(0x97)],'personal':_0x25b9d0[_0x465a3c(0x97)],'company':_0x247cc2[_0x465a3c(0x97)],'items':_0x1c8475[_0x465a3c(0x9c)](summarizeRuntimeSkill),'skills':{'personal':_0x25b9d0[_0x465a3c(0x9c)](summarizeRuntimeSkill),'company':_0x247cc2[_0x465a3c(0x9c)](summarizeRuntimeSkill)}},'message':_0x465a3c(0x98)+_0x1c8475[_0x465a3c(0x97)]+_0x465a3c(0xa1)};}};function groupLocalRuntimeSkills(_0x4f3d73){const _0x34e863=a69_0xd9f9ae;return{'personal':_0x4f3d73['filter'](_0x386d28=>_0x386d28[_0x34e863(0x9d)]===_0x34e863(0x8d)),'company':_0x4f3d73[_0x34e863(0x96)](_0x27775a=>_0x27775a[_0x34e863(0x9d)]===_0x34e863(0x90)),'builtin':_0x4f3d73[_0x34e863(0x96)](_0x134834=>_0x134834[_0x34e863(0x9d)]===_0x34e863(0x99))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0xc3cf33=a70_0x5dcd;(function(_0x5f434e,_0x215633){const _0x109280=a70_0x5dcd,_0x438412=_0x5f434e();while(!![]){try{const _0x97872d=-parseInt(_0x109280(0xe5))/0x1+parseInt(_0x109280(0xe0))/0x2*(parseInt(_0x109280(0xda))/0x3)+-parseInt(_0x109280(0xe7))/0x4+parseInt(_0x109280(0xdc))/0x5+parseInt(_0x109280(0xdf))/0x6+-parseInt(_0x109280(0xe1))/0x7*(-parseInt(_0x109280(0xde))/0x8)+parseInt(_0x109280(0xdb))/0x9*(-parseInt(_0x109280(0xdd))/0xa);if(_0x97872d===_0x215633)break;else _0x438412['push'](_0x438412['shift']());}catch(_0x13e421){_0x438412['push'](_0x438412['shift']());}}}(a70_0x3bc1,0xddb50));function a70_0x5dcd(_0x2de6b5,_0x14fc6c){_0x2de6b5=_0x2de6b5-0xda;const _0x3bc1b8=a70_0x3bc1();let _0x5dcd64=_0x3bc1b8[_0x2de6b5];return _0x5dcd64;}import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a70_0x3bc1(){const _0x2b9e5c=['57345YhCecX','9vGFFjy','8084620LRpdmZ','32114110wOjUnG','72UehHtH','8887728NfZnyt','16OZmNgJ','1399951UzgEaP','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.','skill','write','146135YCRpZZ','push','3141644BPaIzv'];a70_0x3bc1=function(){return _0x2b9e5c;};return a70_0x3bc1();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a70_0xc3cf33(0xe3),'command':a70_0xc3cf33(0xe6),'description':'Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','risk':a70_0xc3cf33(0xe4),'confirmationDescription':a70_0xc3cf33(0xe2),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x154426=a71_0x4bb7;function a71_0x4bb7(_0x2cfd28,_0x5afa4c){_0x2cfd28=_0x2cfd28-0x1c2;const _0x57a068=a71_0x57a0();let _0x4bb739=_0x57a068[_0x2cfd28];return _0x4bb739;}function a71_0x57a0(){const _0x4c04e5=['strict','type','3016QTAeiY','5299tTSWtp','362mcewrP','validate','dir','errors','3tKxCEV','41254610PtkGar','11511XQjPUY','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','read','Skill\x20validation\x20passed.','4036935ZRTsFr','warnings','3804870AuudDq','str','3625156eoCwPs','5330778TUSwQY'];a71_0x57a0=function(){return _0x4c04e5;};return a71_0x57a0();}(function(_0x23829d,_0x47609e){const _0x162b3d=a71_0x4bb7,_0x4d7bc5=_0x23829d();while(!![]){try{const _0x490405=parseInt(_0x162b3d(0x1d1))/0x1*(-parseInt(_0x162b3d(0x1d2))/0x2)+-parseInt(_0x162b3d(0x1c2))/0x3*(parseInt(_0x162b3d(0x1cc))/0x4)+-parseInt(_0x162b3d(0x1ca))/0x5+-parseInt(_0x162b3d(0x1cd))/0x6+parseInt(_0x162b3d(0x1c8))/0x7+-parseInt(_0x162b3d(0x1d0))/0x8*(parseInt(_0x162b3d(0x1c4))/0x9)+parseInt(_0x162b3d(0x1c3))/0xa;if(_0x490405===_0x47609e)break;else _0x4d7bc5['push'](_0x4d7bc5['shift']());}catch(_0x26b427){_0x4d7bc5['push'](_0x4d7bc5['shift']());}}}(a71_0x57a0,0xac272));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':'skill','command':a71_0x154426(0x1d3),'description':a71_0x154426(0x1c5),'risk':a71_0x154426(0x1c6),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x110ceb){const _0x1739b4=a71_0x154426,_0x24e641=_0x110ceb['bool'](_0x1739b4(0x1ce)),_0x569eff=validateSkillDirectory(_0x110ceb[_0x1739b4(0x1cb)](_0x1739b4(0x1d4)),{'strict':_0x24e641});return throwIfSkillValidationFailed(_0x569eff,_0x24e641),{'ok':!![],'data':{'dir':_0x569eff[_0x1739b4(0x1d4)],'type':_0x569eff[_0x1739b4(0x1cf)],'errors':_0x569eff[_0x1739b4(0x1d5)],'warnings':_0x569eff[_0x1739b4(0x1c9)]},'message':_0x1739b4(0x1c7)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a72_0x5051(_0x53b89c,_0x55af10){_0x53b89c=_0x53b89c-0x121;const _0x18dda4=a72_0x18dd();let _0x50514c=_0x18dda4[_0x53b89c];return _0x50514c;}(function(_0x33f0d2,_0x1556eb){const _0x5d9dcb=a72_0x5051,_0x31f747=_0x33f0d2();while(!![]){try{const _0x48d3a3=-parseInt(_0x5d9dcb(0x135))/0x1+-parseInt(_0x5d9dcb(0x12f))/0x2*(-parseInt(_0x5d9dcb(0x12b))/0x3)+-parseInt(_0x5d9dcb(0x129))/0x4*(-parseInt(_0x5d9dcb(0x13c))/0x5)+parseInt(_0x5d9dcb(0x125))/0x6*(-parseInt(_0x5d9dcb(0x134))/0x7)+-parseInt(_0x5d9dcb(0x13a))/0x8+-parseInt(_0x5d9dcb(0x13b))/0x9+-parseInt(_0x5d9dcb(0x124))/0xa*(-parseInt(_0x5d9dcb(0x12e))/0xb);if(_0x48d3a3===_0x1556eb)break;else _0x31f747['push'](_0x31f747['shift']());}catch(_0x5cac72){_0x31f747['push'](_0x31f747['shift']());}}}(a72_0x18dd,0xe70d3));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';function a72_0x18dd(){const _0x99f36d=['1103065ZiRFqo','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','document','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','utf8','3532000qneIFV','8316486ZDYuYh','241830UXseYC','parse','mermaid','validation','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','replace','330QxqspP','30uBbIgd','defineProperties','diagram','default','20IOsdbS','isFile','93rcEVle','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','window','737077dxsRuA','62410ghbUQO','Mermaid\x20syntax\x20validation\x20failed.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','trim','7574BfGTFw'];a72_0x18dd=function(){return _0x99f36d;};return a72_0x18dd();}let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x3e855a){const _0x3a25b4=a72_0x5051;return(await readRequiredSkillDiagramInput(_0x3e855a))[_0x3a25b4(0x127)];}export async function readRequiredSkillDiagramInput(_0x5c9a9c){const _0x49410a=a72_0x5051,_0x184f6b=_0x5c9a9c[_0x49410a(0x133)]();if(!_0x184f6b)throw CliErrors[_0x49410a(0x121)](_0x49410a(0x132),_0x49410a(0x136));let _0x354136,_0x1e4a0a;if(_0x184f6b==='-')try{_0x354136=readFileSync(0x0,_0x49410a(0x139));}catch{throw CliErrors[_0x49410a(0x121)](_0x49410a(0x131));}else{const _0x2ee1f7=resolve(_0x184f6b);if(!existsSync(_0x2ee1f7))throw CliErrors['validation'](_0x49410a(0x138)+_0x2ee1f7);if(!statSync(_0x2ee1f7)[_0x49410a(0x12a)]())throw CliErrors[_0x49410a(0x121)](_0x49410a(0x12c)+_0x2ee1f7);_0x1e4a0a=realpathSync(_0x2ee1f7),_0x354136=readFileSync(_0x1e4a0a,_0x49410a(0x139));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x354136)},'sourceFilePath':_0x1e4a0a};}export async function validateAndCanonicalizeMermaid(_0x45731f){const _0x3a2265=a72_0x5051,_0x1877c3=_0x45731f[_0x3a2265(0x123)](/\r\n/g,'\x0a')[_0x3a2265(0x123)](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x53499e=await loadMermaidApi();await _0x53499e[_0x3a2265(0x13d)](_0x1877c3);}catch{throw diagramValidationError();}return _0x1877c3;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x595780=a72_0x5051;if(!('window'in globalThis)||!(_0x595780(0x137)in globalThis)){const _0x37bb4d=new JSDOM('');Object[_0x595780(0x126)](globalThis,{'window':{'configurable':!![],'value':_0x37bb4d[_0x595780(0x12d)]},'document':{'configurable':!![],'value':_0x37bb4d['window']['document']}});}return(await import(_0x595780(0x13e)))[_0x595780(0x128)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x10800d=a72_0x5051;return CliErrors[_0x10800d(0x121)](_0x10800d(0x130),_0x10800d(0x122));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x3aa05b=a73_0x5195;(function(_0x160f7e,_0x166a89){const _0x44ce64=a73_0x5195,_0x35c095=_0x160f7e();while(!![]){try{const _0x1f7706=parseInt(_0x44ce64(0xbb))/0x1*(-parseInt(_0x44ce64(0xa4))/0x2)+-parseInt(_0x44ce64(0xbc))/0x3+parseInt(_0x44ce64(0xbf))/0x4*(-parseInt(_0x44ce64(0xb1))/0x5)+-parseInt(_0x44ce64(0xa2))/0x6+-parseInt(_0x44ce64(0xad))/0x7*(-parseInt(_0x44ce64(0xb7))/0x8)+-parseInt(_0x44ce64(0xb4))/0x9+parseInt(_0x44ce64(0xa5))/0xa*(parseInt(_0x44ce64(0xc1))/0xb);if(_0x1f7706===_0x166a89)break;else _0x35c095['push'](_0x35c095['shift']());}catch(_0x238990){_0x35c095['push'](_0x35c095['shift']());}}}(a73_0x46a7,0xb4388));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a73_0x3aa05b(0xb6),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a73_0x3aa05b(0xcf),'type':a73_0x3aa05b(0xb6),'description':a73_0x3aa05b(0xc5),'enum':[a73_0x3aa05b(0xca),'personal',a73_0x3aa05b(0xaf)]};export const PUSH_SCOPE_FLAG={'name':a73_0x3aa05b(0xcf),'type':'string','description':a73_0x3aa05b(0xa6),'default':a73_0x3aa05b(0xa3),'enum':[a73_0x3aa05b(0xa3),'company']};export const LIST_SCOPE_FLAG={'name':a73_0x3aa05b(0xcf),'type':'string','description':a73_0x3aa05b(0xba),'enum':[a73_0x3aa05b(0xca),a73_0x3aa05b(0xa3),a73_0x3aa05b(0xaf)]};export const LOCAL_FLAG={'name':a73_0x3aa05b(0xa7),'type':a73_0x3aa05b(0xc2),'description':a73_0x3aa05b(0xa0)};export const DIR_FLAG={'name':a73_0x3aa05b(0xd0),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xa8)};export const DIAGRAM_FILE_FLAG={'name':a73_0x3aa05b(0xaa),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xa9)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a73_0x3aa05b(0xae),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xb8)};export const DIAGRAM_VERSION_FLAG={'name':a73_0x3aa05b(0xab),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xb9)};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x3aa05b(0xcf),'type':a73_0x3aa05b(0xb6),'required':!![],'enum':[a73_0x3aa05b(0xa3),a73_0x3aa05b(0xaf)],'description':a73_0x3aa05b(0xac)};export const SOURCE_FINGERPRINT_FLAG={'name':a73_0x3aa05b(0xb3),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xc3),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x3aa05b(0xc6)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a73_0x3aa05b(0xce),'required':!![],'description':a73_0x3aa05b(0xbe)};export const CREATE_NAME_FLAG={'name':a73_0x3aa05b(0xc8),'type':a73_0x3aa05b(0xb6),'required':!![],'description':a73_0x3aa05b(0xb2),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a73_0x3aa05b(0xc4)}};export const TYPE_FLAG={'name':a73_0x3aa05b(0xc7),'type':a73_0x3aa05b(0xb6),'description':a73_0x3aa05b(0xc0),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a73_0x3aa05b(0x9f),'type':a73_0x3aa05b(0xb6),'description':a73_0x3aa05b(0xbd),'default':DEFAULT_SKILL_TARGET};function a73_0x46a7(){const _0xb3420b=['535568YAmFkj','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','6374QaiobM','2352219mDuSHa','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','837596thyvmG','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','11RxYXsk','boolean','Server-reported\x20SkillVersion\x20source\x20fingerprint','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','type','name','confirm-warnings','all','project','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','strict','number','scope','dir','target','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','force','7836462XPMEbB','personal','218EziVTX','29628230gjOGrY','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','local','Local\x20Skill\x20directory\x20containing\x20SKILL.md','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','diagram-file','version','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','91hXEnvC','skill-code','company','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','5tBrsqM','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','source-fingerprint','905598BOduIl','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','string'];a73_0x46a7=function(){return _0xb3420b;};return a73_0x46a7();}function a73_0x5195(_0x2b65cc,_0x17fee0){_0x2b65cc=_0x2b65cc-0x9f;const _0x46a770=a73_0x46a7();let _0x519551=_0x46a770[_0x2b65cc];return _0x519551;}export const FORCE_FLAG={'name':a73_0x3aa05b(0xa1),'type':a73_0x3aa05b(0xc2),'description':a73_0x3aa05b(0xb0)};export const PROJECT_TARGET_FLAG={'name':a73_0x3aa05b(0xcb),'type':a73_0x3aa05b(0xc2),'description':a73_0x3aa05b(0xcc)};export const CONFIRM_WARNINGS_FLAG={'name':a73_0x3aa05b(0xc9),'type':'boolean','description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};export const STRICT_FLAG={'name':a73_0x3aa05b(0xcd),'type':a73_0x3aa05b(0xc2),'description':a73_0x3aa05b(0xb5)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a74_0x2cd5(_0x9d95da,_0x5f2355){_0x9d95da=_0x9d95da-0x16d;const _0x217093=a74_0x2170();let _0x2cd52c=_0x217093[_0x9d95da];return _0x2cd52c;}(function(_0x4e2f5e,_0x37c4ea){const _0x4fcdf5=a74_0x2cd5,_0x37cb32=_0x4e2f5e();while(!![]){try{const _0x3258d7=-parseInt(_0x4fcdf5(0x174))/0x1+-parseInt(_0x4fcdf5(0x171))/0x2*(-parseInt(_0x4fcdf5(0x16e))/0x3)+-parseInt(_0x4fcdf5(0x170))/0x4+parseInt(_0x4fcdf5(0x172))/0x5+-parseInt(_0x4fcdf5(0x16d))/0x6+-parseInt(_0x4fcdf5(0x173))/0x7+-parseInt(_0x4fcdf5(0x175))/0x8*(-parseInt(_0x4fcdf5(0x16f))/0x9);if(_0x3258d7===_0x37c4ea)break;else _0x37cb32['push'](_0x37cb32['shift']());}catch(_0x180e19){_0x37cb32['push'](_0x37cb32['shift']());}}}(a74_0x2170,0x27120));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a74_0x2170(){const _0x4d7150=['402981OfTiPB','4557843sQAavY','488004skNkmX','2VRtCXz','729820mLxovv','896070jRpJSp','114387BmFaAk','8dUznsw','1573728XOJGHE'];a74_0x2170=function(){return _0x4d7150;};return a74_0x2170();}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
|
-
|
|
1
|
+
(function(_0x3872d7,_0xe6e6c7){var _0x39583a=a75_0x239d,_0x33175b=_0x3872d7();while(!![]){try{var _0xba77c=-parseInt(_0x39583a(0x17f))/0x1+-parseInt(_0x39583a(0x183))/0x2*(parseInt(_0x39583a(0x177))/0x3)+parseInt(_0x39583a(0x17c))/0x4+-parseInt(_0x39583a(0x187))/0x5*(-parseInt(_0x39583a(0x186))/0x6)+parseInt(_0x39583a(0x17b))/0x7*(-parseInt(_0x39583a(0x184))/0x8)+parseInt(_0x39583a(0x189))/0x9+parseInt(_0x39583a(0x17e))/0xa*(-parseInt(_0x39583a(0x178))/0xb);if(_0xba77c===_0xe6e6c7)break;else _0x33175b['push'](_0x33175b['shift']());}catch(_0x36e3e9){_0x33175b['push'](_0x33175b['shift']());}}}(a75_0x428c,0x38106));function a75_0x239d(_0x1539c1,_0x568cb6){_0x1539c1=_0x1539c1-0x177;var _0x428cb7=a75_0x428c();var _0x239db9=_0x428cb7[_0x1539c1];return _0x239db9;}function a75_0x428c(){var _0x3a5f47=['84208YCGuJs','object','isArray','ossPath','2UpZABh','8ZoNTub','path','6324wbONdw','655iajSKU','files','3394845LIMSub','279228yqhywj','338239eDWDhY','string','SKILL.md','2721173UZpCub','1244524AliMos','some','10CZRwdq'];a75_0x428c=function(){return _0x3a5f47;};return a75_0x428c();}export function isPackageBackedManifest(_0xdba034){var _0x249859=a75_0x239d;return!!_0xdba034&&typeof _0xdba034===_0x249859(0x180)&&!Array[_0x249859(0x181)](_0xdba034)&&typeof _0xdba034[_0x249859(0x182)]===_0x249859(0x179)&&_0xdba034[_0x249859(0x182)]['length']>0x0&&Array[_0x249859(0x181)](_0xdba034[_0x249859(0x188)]);}export function isMultiFileManifest(_0x1bb454){var _0x379034=a75_0x239d;return!!_0x1bb454&&typeof _0x1bb454==='object'&&!Array[_0x379034(0x181)](_0x1bb454)&&Array[_0x379034(0x181)](_0x1bb454['files'])&&_0x1bb454['files'][_0x379034(0x17d)](_0x33e0e9=>_0x33e0e9[_0x379034(0x185)]!==_0x379034(0x17a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x24b86a,_0x301171){const _0x311422=a76_0x4b4a,_0x53df59=_0x24b86a();while(!![]){try{const _0xf78d7f=-parseInt(_0x311422(0x142))/0x1*(-parseInt(_0x311422(0x15c))/0x2)+parseInt(_0x311422(0x156))/0x3+-parseInt(_0x311422(0x141))/0x4+parseInt(_0x311422(0x135))/0x5*(parseInt(_0x311422(0x12a))/0x6)+parseInt(_0x311422(0x13b))/0x7*(-parseInt(_0x311422(0x158))/0x8)+parseInt(_0x311422(0x13d))/0x9*(parseInt(_0x311422(0x134))/0xa)+parseInt(_0x311422(0x128))/0xb*(parseInt(_0x311422(0x129))/0xc);if(_0xf78d7f===_0x301171)break;else _0x53df59['push'](_0x53df59['shift']());}catch(_0x4d830b){_0x53df59['push'](_0x53df59['shift']());}}}(a76_0x38eb,0x310af));import{CliErrors}from'../../errors.js';function a76_0x4b4a(_0x1a825e,_0x53626a){_0x1a825e=_0x1a825e-0x125;const _0x38eb71=a76_0x38eb();let _0x4b4a68=_0x38eb71[_0x1a825e];return _0x4b4a68;}import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x1d054e){const _0x3aaa81=a76_0x4b4a,{getRuntimeSkillByCode:_0x147a29,validateRuntimeSkillPublish:_0x1bb33d}=await import(_0x3aaa81(0x133)),{readPushDirectory:_0x9958b1,resolvePushDirectoryIdentity:_0x31977b}=await import(_0x3aaa81(0x145));if(!_0x1d054e[_0x3aaa81(0x149)])throw CliErrors[_0x3aaa81(0x153)]();const _0x212b1c=resolvePushScope(_0x1d054e),_0x32c2e7=validateSkillDirectory(_0x1d054e[_0x3aaa81(0x146)](_0x3aaa81(0x159)));throwIfSkillValidationFailed(_0x32c2e7);const {diagram:_0x35efba,sourceFilePath:_0x45bd79}=await readRequiredSkillDiagramInput(_0x1d054e[_0x3aaa81(0x146)]('diagram-file')),_0x53a13b=diagramPackageExclusion(_0x45bd79),_0x277c26=_0x31977b(_0x32c2e7[_0x3aaa81(0x159)],_0x1d054e[_0x3aaa81(0x152)],remoteFirstMetadataOptions()),_0x480e48=await _0x147a29(_0x1d054e[_0x3aaa81(0x152)],_0x277c26[_0x3aaa81(0x132)]);throwIfBuiltinPushTarget(_0x480e48);if(_0x212b1c===_0x3aaa81(0x14c)){const _0x84197f=_0x9958b1(_0x32c2e7[_0x3aaa81(0x159)],_0x1d054e[_0x3aaa81(0x152)],{...remoteMissingCompanyReadOptions(),..._0x53a13b}),_0x2347de=await _0x1bb33d(_0x1d054e[_0x3aaa81(0x152)],withDiagram(_0x84197f[_0x3aaa81(0x154)],_0x35efba),{'visibility':'NAMESPACE_ONLY'});return{'method':'POST','url':_0x3aaa81(0x13e)+_0x1d054e[_0x3aaa81(0x152)]+_0x3aaa81(0x13c),'body':{'skillCode':_0x84197f['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x2347de[_0x3aaa81(0x138)],'errors':_0x2347de[_0x3aaa81(0x14f)],'warnings':_0x2347de['warnings'],'resolvedSlug':_0x2347de['resolvedSlug'],'resolvedVersion':_0x2347de['resolvedVersion'],'diagramValidated':_0x2347de[_0x3aaa81(0x130)]},'description':_0x3aaa81(0x139)};}if(_0x480e48&&_0x480e48[_0x3aaa81(0x15b)]!==_0x3aaa81(0x150))throw CliErrors[_0x3aaa81(0x14a)](_0x3aaa81(0x127)+_0x277c26[_0x3aaa81(0x132)]+_0x3aaa81(0x14d)+(_0x480e48[_0x3aaa81(0x15b)]??'unknown')+'\x22.');const _0x3eda43=_0x9958b1(_0x32c2e7[_0x3aaa81(0x159)],_0x1d054e['appCode'],{..._0x480e48?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x53a13b}),_0x1528e3=await _0x1bb33d(_0x1d054e[_0x3aaa81(0x152)],withDiagram(_0x3eda43[_0x3aaa81(0x154)],_0x35efba),{'visibility':_0x3aaa81(0x13f)});return{'method':_0x3aaa81(0x126),'url':_0x3aaa81(0x13e)+_0x1d054e[_0x3aaa81(0x152)]+_0x3aaa81(0x13c),'body':{'skillCode':_0x3eda43[_0x3aaa81(0x132)],'visibility':'PRIVATE','valid':_0x1528e3[_0x3aaa81(0x138)],'errors':_0x1528e3[_0x3aaa81(0x14f)],'warnings':_0x1528e3['warnings'],'resolvedSlug':_0x1528e3[_0x3aaa81(0x136)],'resolvedVersion':_0x1528e3['resolvedVersion'],'diagramValidated':_0x1528e3[_0x3aaa81(0x130)]},'description':_0x3aaa81(0x147)};}export async function skillPushExecute(_0x39dbab){const _0xd7ec62=a76_0x4b4a,{createPersonalRuntimeSkill:_0x740fb,downloadRuntimeSkillPackage:_0x21d904,getRuntimeSkillByCode:_0x5b7e15,publishCompanyRuntimeSkill:_0x1e3c17,updatePersonalRuntimeSkill:_0x404f65,validateRuntimeSkillPublish:_0x36e601}=await import(_0xd7ec62(0x133)),{verifyRuntimeSkillPackage:_0x1b9691,verifyRuntimeSkillBundle:_0xe9394c,readPushDirectory:_0x285998,refreshPushDirectoryMetadataFromRemote:_0x20317b,recordPushedRuntimeSkill:_0x350e96,resolvePushDirectoryIdentity:_0x3b68cd}=await import(_0xd7ec62(0x145));if(!_0x39dbab[_0xd7ec62(0x149)])throw CliErrors['authRequired']();const _0x5c4e84=resolvePushScope(_0x39dbab),_0x285e94=_0x39dbab[_0xd7ec62(0x144)]('confirm-warnings')||_0x39dbab[_0xd7ec62(0x144)]('confirmWarnings'),_0x26921d=validateSkillDirectory(_0x39dbab[_0xd7ec62(0x146)](_0xd7ec62(0x159)));throwIfSkillValidationFailed(_0x26921d);const {diagram:_0x42c985,sourceFilePath:_0x5e9b53}=await readRequiredSkillDiagramInput(_0x39dbab[_0xd7ec62(0x146)](_0xd7ec62(0x12e))),_0x7f6ca9=diagramPackageExclusion(_0x5e9b53),_0x3c2918=_0x26921d['dir'];let _0x1e2fcb;if(_0x5c4e84===_0xd7ec62(0x14c)){const _0x5ae7ac=_0x3b68cd(_0x3c2918,_0x39dbab[_0xd7ec62(0x152)],remoteFirstMetadataOptions()),_0x228995=await _0x5b7e15(_0x39dbab['appCode'],_0x5ae7ac[_0xd7ec62(0x132)]);throwIfBuiltinPushTarget(_0x228995);if(_0x228995)_0x20317b(_0x3c2918,_0x228995,_0x39dbab['appCode']);const _0x6d427e=_0x285998(_0x3c2918,_0x39dbab[_0xd7ec62(0x152)],{..._0x228995?{'targetScope':_0xd7ec62(0x14c),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x7f6ca9});_0x1e2fcb={'scope':_0xd7ec62(0x14c),'payload':_0x6d427e,'publishInput':withDiagram(_0x6d427e[_0xd7ec62(0x154)],_0x42c985),'remoteForPreflight':_0x228995,'warnings':[]};}else{const _0x2fd5ff=_0x39dbab[_0xd7ec62(0x146)]('appcode')[_0xd7ec62(0x151)](),_0x2e8d09=Boolean(_0x2fd5ff),_0x364382=allowRetargetArgs(_0x2e8d09),_0x243541=_0x3b68cd(_0x3c2918,_0x39dbab[_0xd7ec62(0x152)],{...remoteFirstMetadataOptions(),..._0x364382[0x0]}),_0x57d958=await _0x5b7e15(_0x39dbab[_0xd7ec62(0x152)],_0x243541[_0xd7ec62(0x132)]);throwIfBuiltinPushTarget(_0x57d958);if(_0x57d958){if(_0x57d958[_0xd7ec62(0x15b)]!=='personal'){if(_0x2e8d09)throw CliErrors[_0xd7ec62(0x14a)](_0xd7ec62(0x127)+_0x243541['skillCode']+_0xd7ec62(0x14d)+(_0x57d958[_0xd7ec62(0x15b)]??'unknown')+'\x22.');_0x20317b(_0x3c2918,_0x57d958,_0x39dbab[_0xd7ec62(0x152)]);}else!_0x2e8d09&&_0x20317b(_0x3c2918,_0x57d958,_0x39dbab[_0xd7ec62(0x152)]);}const _0x4d54c1=_0x285998(_0x3c2918,_0x39dbab['appCode'],{..._0x57d958?remotePersonalReadOptions(_0x2e8d09,_0x364382[0x0]):remoteMissingPersonalReadOptions(_0x364382[0x0]),..._0x7f6ca9}),_0x26245b=_0x57d958?.['scope']===_0xd7ec62(0x150)&&_0x57d958['skillCode']===_0x4d54c1[_0xd7ec62(0x132)]?_0x57d958:undefined,_0x52c44d=_0x2e8d09&&_0x26245b?withRetargetExistingMetadata(_0x4d54c1['input'],_0x26245b,{'preferInputSkillName':Boolean(_0x4d54c1['frontmatterDisplayName'])}):_0x4d54c1[_0xd7ec62(0x154)],_0x5f1287=_0x2e8d09?buildRetargetWarning(_0x243541[_0xd7ec62(0x15a)],_0x39dbab[_0xd7ec62(0x152)]):[];_0x1e2fcb={'scope':'personal','payload':_0x4d54c1,'publishInput':withDiagram(_0x52c44d,_0x42c985),'remoteForPreflight':_0x26245b,'existing':_0x26245b,'warnings':[..._0x26921d[_0xd7ec62(0x137)],..._0x5f1287]};}const _0x4a412=await runRemoteContentPreflight({'scope':_0x1e2fcb[_0xd7ec62(0x15b)],'remote':_0x1e2fcb['remoteForPreflight'],'publishInput':_0x1e2fcb[_0xd7ec62(0x155)],'skillCode':_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)],'appCode':_0x39dbab['appCode'],'downloadRuntimeSkillPackage':_0x21d904,'verifyRuntimeSkillBundle':_0xe9394c});if(_0x4a412[_0xd7ec62(0x148)]===_0xd7ec62(0x12c))return _0x1e2fcb[_0xd7ec62(0x15b)]===_0xd7ec62(0x14c)?_0x350e96(_0x3c2918,_0x4a412['savedSkill'],_0x39dbab[_0xd7ec62(0x152)],{'scope':_0xd7ec62(0x14c)}):_0x350e96(_0x3c2918,_0x4a412['savedSkill'],_0x39dbab[_0xd7ec62(0x152)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4a412[_0xd7ec62(0x143)]),'scope':_0x1e2fcb[_0xd7ec62(0x15b)],..._0x1e2fcb[_0xd7ec62(0x15b)]===_0xd7ec62(0x150)?{'warnings':_0x1e2fcb[_0xd7ec62(0x137)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x1e2fcb[_0xd7ec62(0x15b)])+_0xd7ec62(0x140)+_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)]+_0xd7ec62(0x13a)};if(_0x1e2fcb[_0xd7ec62(0x15b)]===_0xd7ec62(0x14c)){const _0x1b52aa=await _0x36e601(_0x39dbab[_0xd7ec62(0x152)],_0x1e2fcb[_0xd7ec62(0x155)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed('company',_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)],_0x1b52aa),throwIfUnconfirmedPublishWarnings(_0xd7ec62(0x14c),_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)],_0x1b52aa[_0xd7ec62(0x137)],_0x285e94);const _0x24d5a8=await _0x1e3c17(_0x39dbab[_0xd7ec62(0x152)],_0x1e2fcb[_0xd7ec62(0x155)],{'confirmWarnings':_0x285e94});return _0x350e96(_0x3c2918,{..._0x24d5a8,'files':_0x1e2fcb[_0xd7ec62(0x155)]['files']},_0x39dbab[_0xd7ec62(0x152)],{'scope':_0xd7ec62(0x14c)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x24d5a8),'scope':_0xd7ec62(0x14c),'reviewState':'submitted','submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x1b52aa[_0xd7ec62(0x137)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)]+'\x20version\x20'+(_0x24d5a8['version']??_0xd7ec62(0x12d))+_0xd7ec62(0x14b)};}const _0x319c41=await _0x36e601(_0x39dbab[_0xd7ec62(0x152)],_0x1e2fcb[_0xd7ec62(0x155)],{'visibility':_0xd7ec62(0x13f)});throwIfPublishValidationFailed(_0xd7ec62(0x150),_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)],_0x319c41),throwIfUnconfirmedPublishWarnings(_0xd7ec62(0x150),_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)],_0x319c41['warnings'],_0x285e94);const _0x57679b={'confirmWarnings':_0x285e94},_0x40c39a=_0x1e2fcb['existing']?await _0x404f65(_0x1e2fcb['payload']['skillCode'],_0x39dbab[_0xd7ec62(0x152)],_0x1e2fcb[_0xd7ec62(0x155)],_0x57679b):await _0x740fb(_0x39dbab[_0xd7ec62(0x152)],_0x1e2fcb['publishInput'],_0x57679b);let _0x31bed3=_0x40c39a;if(isMultiFileManifest(_0x1e2fcb[_0xd7ec62(0x155)]['files'])){const _0x220888=await _0x21d904(_0xd7ec62(0x150),_0x40c39a[_0xd7ec62(0x132)]||_0x1e2fcb['payload'][_0xd7ec62(0x132)],_0x39dbab[_0xd7ec62(0x152)]);_0xe9394c(_0x1e2fcb[_0xd7ec62(0x155)][_0xd7ec62(0x157)],_0x220888),_0x31bed3={..._0x40c39a,'files':_0x1e2fcb[_0xd7ec62(0x155)]['files']};}else{if(isPackageBackedManifest(_0x40c39a[_0xd7ec62(0x157)])){const _0x500ba6=await _0x21d904(_0xd7ec62(0x150),_0x40c39a[_0xd7ec62(0x132)]||_0x1e2fcb[_0xd7ec62(0x131)]['skillCode'],_0x39dbab[_0xd7ec62(0x152)]);_0x1b9691(_0x40c39a['files'],_0x500ba6);}}return _0x350e96(_0x3c2918,_0x31bed3,_0x39dbab['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x40c39a),'warnings':_0x1e2fcb['warnings'],'validation':{'warnings':_0x319c41[_0xd7ec62(0x137)]},'diagramBound':!![]},'message':_0x1e2fcb['existing']?_0xd7ec62(0x125)+_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)]:_0xd7ec62(0x12f)+_0x1e2fcb[_0xd7ec62(0x131)][_0xd7ec62(0x132)]};}function a76_0x38eb(){const _0x2941f8=['97159nWeiVi','savedSkill','bool','../../skills/runtime-skill-sync.js','str','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','status','accessKey','validation','\x20for\x20review','company','\x20has\x20scope=\x22','Personal','errors','personal','trim','appCode','authRequired','input','publishInput','458058MWREtr','files','185672dCSwZG','dir','metadata','scope','2IGoSrb','Updated\x20personal\x20Skill\x20','POST','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','395131XyjvjW','24mLNOJJ','6mzKfOi','Company','identical','(unknown)','diagram-file','Created\x20personal\x20Skill\x20','diagramValidated','payload','skillCode','../../core/api-client.js','983160QUqkYV','282435wvlNPi','resolvedSlug','warnings','valid','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','7ZxQZSs','/publish/validate','18PlLEpI','/api/cli/v1/skills/','PRIVATE','\x20Skill\x20','1402872aYEnSn'];a76_0x38eb=function(){return _0x2941f8;};return a76_0x38eb();}function scopeLabel(_0x512790){const _0xd0a383=a76_0x4b4a;return _0x512790===_0xd0a383(0x14c)?_0xd0a383(0x12b):_0xd0a383(0x14e);}function withDiagram(_0x4656b6,_0x46f7f9){return{..._0x4656b6,'diagram':_0x46f7f9};}function diagramPackageExclusion(_0x4d0708){return _0x4d0708?{'excludedFilePaths':[_0x4d0708]}:{};}
|
|
1
|
+
function a76_0x3aef(){const _0x3b2b1b=['\x20for\x20review','3SVQcff','warnings','18431523cZJQjg','16419030SNbFax','6289460yMuVHD','accessKey','errors','payload','confirm-warnings','Created\x20personal\x20Skill\x20','confirmWarnings','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','files','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','168GgVwej','input','skillCode','resolvedVersion','submitted','publishInput','Submitted\x20company\x20Skill\x20','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','dir','4wZZKob','validation','valid','str','diagramValidated','11288SjpuTn','authRequired','../../skills/runtime-skill-sync.js','resolvedSlug','scope','../../core/api-client.js','company','remoteForPreflight','\x20Skill\x20','241524GAFsaS','\x20version\x20','696968Ipbrgb','7121228UXPGPO','\x20has\x20scope=\x22','appCode','PRIVATE','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','369BRsdjh','bool','existing','frontmatterDisplayName','personal','POST','Company','(unknown)','/publish/validate','/api/cli/v1/skills/','savedSkill','unknown','appcode'];a76_0x3aef=function(){return _0x3b2b1b;};return a76_0x3aef();}function a76_0x21a9(_0x261632,_0x472039){_0x261632=_0x261632-0x86;const _0x3aefbf=a76_0x3aef();let _0x21a9ee=_0x3aefbf[_0x261632];return _0x21a9ee;}(function(_0x26e33b,_0x474283){const _0x44a94b=a76_0x21a9,_0xb5b286=_0x26e33b();while(!![]){try{const _0x2ba7b6=-parseInt(_0x44a94b(0x94))/0x1*(-parseInt(_0x44a94b(0xbf))/0x2)+parseInt(_0x44a94b(0xa8))/0x3*(parseInt(_0x44a94b(0x95))/0x4)+-parseInt(_0x44a94b(0xac))/0x5+-parseInt(_0x44a94b(0x92))/0x6*(parseInt(_0x44a94b(0xb6))/0x7)+parseInt(_0x44a94b(0x89))/0x8*(parseInt(_0x44a94b(0x9a))/0x9)+parseInt(_0x44a94b(0xab))/0xa+-parseInt(_0x44a94b(0xaa))/0xb;if(_0x2ba7b6===_0x474283)break;else _0xb5b286['push'](_0xb5b286['shift']());}catch(_0x37fd2d){_0xb5b286['push'](_0xb5b286['shift']());}}}(a76_0x3aef,0xede50));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x285a1f){const _0x5ded8e=a76_0x21a9,{getRuntimeSkillByCode:_0x5114ae,validateRuntimeSkillPublish:_0x2a324f}=await import(_0x5ded8e(0x8e)),{readPushDirectory:_0x227452,resolvePushDirectoryIdentity:_0x9f7f54}=await import(_0x5ded8e(0x8b));if(!_0x285a1f[_0x5ded8e(0xad)])throw CliErrors[_0x5ded8e(0x8a)]();const _0xd74372=resolvePushScope(_0x285a1f),_0x5b023e=validateSkillDirectory(_0x285a1f[_0x5ded8e(0x87)](_0x5ded8e(0xbe)));throwIfSkillValidationFailed(_0x5b023e);const {diagram:_0x203192,sourceFilePath:_0x4184c4}=await readRequiredSkillDiagramInput(_0x285a1f['str']('diagram-file')),_0x5f319e=diagramPackageExclusion(_0x4184c4),_0x5b22b7=_0x9f7f54(_0x5b023e[_0x5ded8e(0xbe)],_0x285a1f[_0x5ded8e(0x97)],remoteFirstMetadataOptions()),_0x42f450=await _0x5114ae(_0x285a1f[_0x5ded8e(0x97)],_0x5b22b7[_0x5ded8e(0xb8)]);throwIfBuiltinPushTarget(_0x42f450);if(_0xd74372===_0x5ded8e(0x8f)){const _0x5757df=_0x227452(_0x5b023e[_0x5ded8e(0xbe)],_0x285a1f[_0x5ded8e(0x97)],{...remoteMissingCompanyReadOptions(),..._0x5f319e}),_0x270a8c=await _0x2a324f(_0x285a1f['appCode'],withDiagram(_0x5757df[_0x5ded8e(0xb7)],_0x203192),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x5ded8e(0x9f),'url':_0x5ded8e(0xa3)+_0x285a1f[_0x5ded8e(0x97)]+_0x5ded8e(0xa2),'body':{'skillCode':_0x5757df['skillCode'],'visibility':'NAMESPACE_ONLY','valid':_0x270a8c[_0x5ded8e(0x86)],'errors':_0x270a8c[_0x5ded8e(0xae)],'warnings':_0x270a8c[_0x5ded8e(0xa9)],'resolvedSlug':_0x270a8c[_0x5ded8e(0x8c)],'resolvedVersion':_0x270a8c[_0x5ded8e(0xb9)],'diagramValidated':_0x270a8c[_0x5ded8e(0x88)]},'description':_0x5ded8e(0xb3)};}if(_0x42f450&&_0x42f450[_0x5ded8e(0x8d)]!==_0x5ded8e(0x9e))throw CliErrors[_0x5ded8e(0xc0)](_0x5ded8e(0xb5)+_0x5b22b7[_0x5ded8e(0xb8)]+'\x20has\x20scope=\x22'+(_0x42f450[_0x5ded8e(0x8d)]??_0x5ded8e(0xa5))+'\x22.');const _0x46b101=_0x227452(_0x5b023e[_0x5ded8e(0xbe)],_0x285a1f[_0x5ded8e(0x97)],{..._0x42f450?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5f319e}),_0x2b38d5=await _0x2a324f(_0x285a1f[_0x5ded8e(0x97)],withDiagram(_0x46b101[_0x5ded8e(0xb7)],_0x203192),{'visibility':_0x5ded8e(0x98)});return{'method':_0x5ded8e(0x9f),'url':_0x5ded8e(0xa3)+_0x285a1f[_0x5ded8e(0x97)]+'/publish/validate','body':{'skillCode':_0x46b101[_0x5ded8e(0xb8)],'visibility':_0x5ded8e(0x98),'valid':_0x2b38d5[_0x5ded8e(0x86)],'errors':_0x2b38d5[_0x5ded8e(0xae)],'warnings':_0x2b38d5[_0x5ded8e(0xa9)],'resolvedSlug':_0x2b38d5[_0x5ded8e(0x8c)],'resolvedVersion':_0x2b38d5[_0x5ded8e(0xb9)],'diagramValidated':_0x2b38d5['diagramValidated']},'description':_0x5ded8e(0x99)};}export async function skillPushExecute(_0x26060c){const _0x59ab45=a76_0x21a9,{createPersonalRuntimeSkill:_0x1c3f1d,downloadRuntimeSkillPackage:_0x2bb546,getRuntimeSkillByCode:_0x521114,publishCompanyRuntimeSkill:_0x307f87,updatePersonalRuntimeSkill:_0x30e49c,validateRuntimeSkillPublish:_0x515bb1}=await import(_0x59ab45(0x8e)),{verifyRuntimeSkillPackage:_0x19e0ae,verifyRuntimeSkillBundle:_0x446dc3,readPushDirectory:_0x5db9c5,refreshPushDirectoryMetadataFromRemote:_0x468b7d,recordPushedRuntimeSkill:_0x4407b2,resolvePushDirectoryIdentity:_0x69b6da}=await import(_0x59ab45(0x8b));if(!_0x26060c['accessKey'])throw CliErrors[_0x59ab45(0x8a)]();const _0x182e9c=resolvePushScope(_0x26060c),_0x68d4e5=_0x26060c['bool'](_0x59ab45(0xb0))||_0x26060c[_0x59ab45(0x9b)](_0x59ab45(0xb2)),_0x269f39=validateSkillDirectory(_0x26060c[_0x59ab45(0x87)](_0x59ab45(0xbe)));throwIfSkillValidationFailed(_0x269f39);const {diagram:_0x1f5ee6,sourceFilePath:_0x54b167}=await readRequiredSkillDiagramInput(_0x26060c[_0x59ab45(0x87)]('diagram-file')),_0x2aefdc=diagramPackageExclusion(_0x54b167),_0x4d368c=_0x269f39[_0x59ab45(0xbe)];let _0x3d4e94;if(_0x182e9c===_0x59ab45(0x8f)){const _0x2f4d05=_0x69b6da(_0x4d368c,_0x26060c[_0x59ab45(0x97)],remoteFirstMetadataOptions()),_0x456123=await _0x521114(_0x26060c[_0x59ab45(0x97)],_0x2f4d05[_0x59ab45(0xb8)]);throwIfBuiltinPushTarget(_0x456123);if(_0x456123)_0x468b7d(_0x4d368c,_0x456123,_0x26060c[_0x59ab45(0x97)]);const _0x2a1259=_0x5db9c5(_0x4d368c,_0x26060c[_0x59ab45(0x97)],{..._0x456123?{'targetScope':_0x59ab45(0x8f),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x2aefdc});_0x3d4e94={'scope':_0x59ab45(0x8f),'payload':_0x2a1259,'publishInput':withDiagram(_0x2a1259['input'],_0x1f5ee6),'remoteForPreflight':_0x456123,'warnings':[]};}else{const _0x428675=_0x26060c[_0x59ab45(0x87)](_0x59ab45(0xa6))['trim'](),_0x6c299a=Boolean(_0x428675),_0x4f3651=allowRetargetArgs(_0x6c299a),_0x4064e6=_0x69b6da(_0x4d368c,_0x26060c['appCode'],{...remoteFirstMetadataOptions(),..._0x4f3651[0x0]}),_0x55a345=await _0x521114(_0x26060c['appCode'],_0x4064e6[_0x59ab45(0xb8)]);throwIfBuiltinPushTarget(_0x55a345);if(_0x55a345){if(_0x55a345[_0x59ab45(0x8d)]!==_0x59ab45(0x9e)){if(_0x6c299a)throw CliErrors[_0x59ab45(0xc0)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x4064e6[_0x59ab45(0xb8)]+_0x59ab45(0x96)+(_0x55a345[_0x59ab45(0x8d)]??_0x59ab45(0xa5))+'\x22.');_0x468b7d(_0x4d368c,_0x55a345,_0x26060c[_0x59ab45(0x97)]);}else!_0x6c299a&&_0x468b7d(_0x4d368c,_0x55a345,_0x26060c[_0x59ab45(0x97)]);}const _0x2f3d65=_0x5db9c5(_0x4d368c,_0x26060c[_0x59ab45(0x97)],{..._0x55a345?remotePersonalReadOptions(_0x6c299a,_0x4f3651[0x0]):remoteMissingPersonalReadOptions(_0x4f3651[0x0]),..._0x2aefdc}),_0x106511=_0x55a345?.['scope']===_0x59ab45(0x9e)&&_0x55a345[_0x59ab45(0xb8)]===_0x2f3d65[_0x59ab45(0xb8)]?_0x55a345:undefined,_0x3e6b34=_0x6c299a&&_0x106511?withRetargetExistingMetadata(_0x2f3d65[_0x59ab45(0xb7)],_0x106511,{'preferInputSkillName':Boolean(_0x2f3d65[_0x59ab45(0x9d)])}):_0x2f3d65[_0x59ab45(0xb7)],_0x94218=_0x6c299a?buildRetargetWarning(_0x4064e6['metadata'],_0x26060c[_0x59ab45(0x97)]):[];_0x3d4e94={'scope':_0x59ab45(0x9e),'payload':_0x2f3d65,'publishInput':withDiagram(_0x3e6b34,_0x1f5ee6),'remoteForPreflight':_0x106511,'existing':_0x106511,'warnings':[..._0x269f39[_0x59ab45(0xa9)],..._0x94218]};}const _0x219998=await runRemoteContentPreflight({'scope':_0x3d4e94[_0x59ab45(0x8d)],'remote':_0x3d4e94[_0x59ab45(0x90)],'publishInput':_0x3d4e94[_0x59ab45(0xbb)],'skillCode':_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)],'appCode':_0x26060c[_0x59ab45(0x97)],'downloadRuntimeSkillPackage':_0x2bb546,'verifyRuntimeSkillBundle':_0x446dc3});if(_0x219998['status']==='identical')return _0x3d4e94[_0x59ab45(0x8d)]==='company'?_0x4407b2(_0x4d368c,_0x219998[_0x59ab45(0xa4)],_0x26060c[_0x59ab45(0x97)],{'scope':_0x59ab45(0x8f)}):_0x4407b2(_0x4d368c,_0x219998[_0x59ab45(0xa4)],_0x26060c[_0x59ab45(0x97)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x219998[_0x59ab45(0xa4)]),'scope':_0x3d4e94[_0x59ab45(0x8d)],..._0x3d4e94[_0x59ab45(0x8d)]===_0x59ab45(0x9e)?{'warnings':_0x3d4e94[_0x59ab45(0xa9)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x3d4e94[_0x59ab45(0x8d)])+_0x59ab45(0x91)+_0x3d4e94['payload'][_0x59ab45(0xb8)]+_0x59ab45(0xbd)};if(_0x3d4e94[_0x59ab45(0x8d)]===_0x59ab45(0x8f)){const _0x57e545=await _0x515bb1(_0x26060c[_0x59ab45(0x97)],_0x3d4e94[_0x59ab45(0xbb)],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x59ab45(0x8f),_0x3d4e94['payload'][_0x59ab45(0xb8)],_0x57e545),throwIfUnconfirmedPublishWarnings(_0x59ab45(0x8f),_0x3d4e94[_0x59ab45(0xaf)]['skillCode'],_0x57e545['warnings'],_0x68d4e5);const _0x14979b=await _0x307f87(_0x26060c['appCode'],_0x3d4e94['publishInput'],{'confirmWarnings':_0x68d4e5});return _0x4407b2(_0x4d368c,{..._0x14979b,'files':_0x3d4e94['publishInput']['files']},_0x26060c[_0x59ab45(0x97)],{'scope':_0x59ab45(0x8f)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x14979b),'scope':'company','reviewState':_0x59ab45(0xba),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x57e545[_0x59ab45(0xa9)]}},'message':_0x59ab45(0xbc)+_0x3d4e94[_0x59ab45(0xaf)]['skillCode']+_0x59ab45(0x93)+(_0x14979b['version']??_0x59ab45(0xa1))+_0x59ab45(0xa7)};}const _0x504b9d=await _0x515bb1(_0x26060c[_0x59ab45(0x97)],_0x3d4e94[_0x59ab45(0xbb)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x59ab45(0x9e),_0x3d4e94['payload'][_0x59ab45(0xb8)],_0x504b9d),throwIfUnconfirmedPublishWarnings('personal',_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)],_0x504b9d['warnings'],_0x68d4e5);const _0x529aae={'confirmWarnings':_0x68d4e5},_0x1046a7=_0x3d4e94[_0x59ab45(0x9c)]?await _0x30e49c(_0x3d4e94['payload'][_0x59ab45(0xb8)],_0x26060c[_0x59ab45(0x97)],_0x3d4e94[_0x59ab45(0xbb)],_0x529aae):await _0x1c3f1d(_0x26060c[_0x59ab45(0x97)],_0x3d4e94['publishInput'],_0x529aae);let _0x300401=_0x1046a7;if(isMultiFileManifest(_0x3d4e94[_0x59ab45(0xbb)][_0x59ab45(0xb4)])){const _0x157924=await _0x2bb546('personal',_0x1046a7[_0x59ab45(0xb8)]||_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)],_0x26060c[_0x59ab45(0x97)]);_0x446dc3(_0x3d4e94[_0x59ab45(0xbb)][_0x59ab45(0xb4)],_0x157924),_0x300401={..._0x1046a7,'files':_0x3d4e94[_0x59ab45(0xbb)][_0x59ab45(0xb4)]};}else{if(isPackageBackedManifest(_0x1046a7['files'])){const _0x2680eb=await _0x2bb546(_0x59ab45(0x9e),_0x1046a7[_0x59ab45(0xb8)]||_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)],_0x26060c[_0x59ab45(0x97)]);_0x19e0ae(_0x1046a7[_0x59ab45(0xb4)],_0x2680eb);}}return _0x4407b2(_0x4d368c,_0x300401,_0x26060c[_0x59ab45(0x97)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1046a7),'warnings':_0x3d4e94[_0x59ab45(0xa9)],'validation':{'warnings':_0x504b9d[_0x59ab45(0xa9)]},'diagramBound':!![]},'message':_0x3d4e94[_0x59ab45(0x9c)]?'Updated\x20personal\x20Skill\x20'+_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)]:_0x59ab45(0xb1)+_0x3d4e94[_0x59ab45(0xaf)][_0x59ab45(0xb8)]};}function scopeLabel(_0x38e34d){const _0x138484=a76_0x21a9;return _0x38e34d==='company'?_0x138484(0xa0):'Personal';}function withDiagram(_0x5873ef,_0x223671){return{..._0x5873ef,'diagram':_0x223671};}function diagramPackageExclusion(_0x318918){return _0x318918?{'excludedFilePaths':[_0x318918]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45b748,_0x2d3548){const _0x5022da=a77_0x5ed7,_0x10c853=_0x45b748();while(!![]){try{const _0x141dde=-parseInt(_0x5022da(0x1dc))/0x1*(-parseInt(_0x5022da(0x1f4))/0x2)+parseInt(_0x5022da(0x1e6))/0x3+-parseInt(_0x5022da(0x1da))/0x4*(parseInt(_0x5022da(0x1ee))/0x5)+parseInt(_0x5022da(0x1f7))/0x6*(-parseInt(_0x5022da(0x1cc))/0x7)+parseInt(_0x5022da(0x1e7))/0x8*(parseInt(_0x5022da(0x1ce))/0x9)+parseInt(_0x5022da(0x1ed))/0xa*(parseInt(_0x5022da(0x1cb))/0xb)+-parseInt(_0x5022da(0x1d1))/0xc;if(_0x141dde===_0x2d3548)break;else _0x10c853['push'](_0x10c853['shift']());}catch(_0x49b4bf){_0x10c853['push'](_0x10c853['shift']());}}}(a77_0x170a,0x981cc));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x353eec){const _0x373ef1=a77_0x5ed7,_0x2baa1c=_0x353eec['str'](_0x373ef1(0x1f3))||_0x373ef1(0x1df);if(_0x2baa1c===_0x373ef1(0x1df)||_0x2baa1c===_0x373ef1(0x1d3))return _0x2baa1c;throw CliErrors[_0x373ef1(0x1de)](_0x373ef1(0x1f1)+_0x2baa1c+'\x22.');}export function allowRetargetArgs(_0xe6b2cb){return _0xe6b2cb?[{'allowAppCodeRetarget':!![]}]:[];}function a77_0x170a(){const _0xd4ab09=['225324DlDjft','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','company','errors','appCode','identical','publishInput','warnings','builtin','192772TXhTIL','(unknown)','573747MJnjYb','verifyRuntimeSkillBundle','validation','personal','skillCode','Review\x20each\x20warning\x20before\x20continuing.','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','length','Company','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','754428bwlQtS','256RWEgba','downloadRuntimeSkillPackage','skill-metadata-appcode-retargeted','remote','Builtin\x20Skill\x20','SkillHub\x20validation\x20returned\x20invalid.','1711770lAfLOk','105UfRgDe','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','Personal','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','warning','scope','2lAoLci','different','join','6ZOyrXG','files','lovrabet.skill.json','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','77uQbdgL','5806836dEGgQv','Warnings:\x20','129366PSbXHD','\x20after\x20successful\x20push.','not-applicable'];a77_0x170a=function(){return _0xd4ab09;};return a77_0x170a();}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x140637=a77_0x5ed7;return{'targetScope':_0x140637(0x1d3),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x22afca={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x22afca};}function a77_0x5ed7(_0x3e5a02,_0x5abb33){_0x3e5a02=_0x3e5a02-0x1c8;const _0x170acc=a77_0x170a();let _0x5ed780=_0x170acc[_0x3e5a02];return _0x5ed780;}export function remotePersonalReadOptions(_0x46f9ac,_0x2930f6={}){return{'ignoreInvalidMetadata':!![],..._0x46f9ac?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x2930f6};}export function throwIfBuiltinPushTarget(_0x4237ac){const _0xa7c39e=a77_0x5ed7;if(_0x4237ac?.[_0xa7c39e(0x1f3)]!==_0xa7c39e(0x1d9))return;throw CliErrors[_0xa7c39e(0x1de)](_0xa7c39e(0x1eb)+(_0x4237ac[_0xa7c39e(0x1e0)]??_0xa7c39e(0x1db))+'\x20cannot\x20be\x20pushed.',_0xa7c39e(0x1e2));}export function throwIfPublishValidationFailed(_0x6fd457,_0x1a36d9,_0x312575){const _0xe8552f=a77_0x5ed7;if(_0x312575[_0xe8552f(0x1d4)][_0xe8552f(0x1e3)]===0x0&&(_0x312575['valid']||_0x312575[_0xe8552f(0x1d8)][_0xe8552f(0x1e3)]>0x0))return;const _0x16b2bf=_0x312575[_0xe8552f(0x1d4)][_0xe8552f(0x1e3)]>0x0?_0x312575[_0xe8552f(0x1d4)][_0xe8552f(0x1f6)](';\x20'):_0xe8552f(0x1ec),_0x2c6e16=_0x6fd457===_0xe8552f(0x1d3)?_0xe8552f(0x1e4):'Personal';throw CliErrors[_0xe8552f(0x1de)](_0x2c6e16+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x1a36d9+'.',_0x16b2bf);}export function throwIfUnconfirmedPublishWarnings(_0x173da5,_0x2da06d,_0x100c3a,_0x5cac9b){const _0x42a4ca=a77_0x5ed7;if(_0x100c3a[_0x42a4ca(0x1e3)]===0x0||_0x5cac9b)return;const _0x3605da=_0x173da5===_0x42a4ca(0x1d3)?_0x42a4ca(0x1e4):_0x42a4ca(0x1f0);throw CliErrors[_0x42a4ca(0x1de)](_0x3605da+_0x42a4ca(0x1d2)+_0x2da06d+'.',[_0x42a4ca(0x1e1),_0x42a4ca(0x1ca),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0x42a4ca(0x1cd)+_0x100c3a['join'](';\x20')][_0x42a4ca(0x1f6)]('\x20'));}export function buildRetargetWarning(_0x2064c0,_0xcbf300){const _0x38e9ae=a77_0x5ed7;if(!_0x2064c0?.[_0x38e9ae(0x1d5)]||_0x2064c0['appCode']===_0xcbf300)return[];return[{'level':_0x38e9ae(0x1f2),'ruleId':_0x38e9ae(0x1e9),'file':_0x38e9ae(0x1c9),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x2064c0[_0x38e9ae(0x1d5)]+_0x38e9ae(0x1e5)+_0xcbf300+_0x38e9ae(0x1cf),'suggestion':_0x38e9ae(0x1ef)}];}export async function runRemoteContentPreflight(_0x1ccb31){const _0x345261=a77_0x5ed7;if(!_0x1ccb31[_0x345261(0x1ea)]||_0x1ccb31[_0x345261(0x1ea)][_0x345261(0x1f3)]!==_0x1ccb31[_0x345261(0x1f3)]||!_0x1ccb31[_0x345261(0x1d7)][_0x345261(0x1c8)])return{'status':_0x345261(0x1d0)};const _0x2ac3b2=_0x1ccb31['remote']['skillCode']||_0x1ccb31['skillCode'];if(!_0x2ac3b2)return{'status':'not-applicable'};const _0x490803=await _0x1ccb31[_0x345261(0x1e8)](_0x1ccb31[_0x345261(0x1f3)],_0x2ac3b2,_0x1ccb31['appCode'],_0x1ccb31['remote']['version']);try{_0x1ccb31[_0x345261(0x1dd)](_0x1ccb31[_0x345261(0x1d7)][_0x345261(0x1c8)],_0x490803);}catch{return{'status':_0x345261(0x1f5)};}return{'status':_0x345261(0x1d6),'savedSkill':{..._0x1ccb31[_0x345261(0x1ea)],'content':_0x1ccb31['publishInput']['content'],'files':_0x1ccb31[_0x345261(0x1d7)][_0x345261(0x1c8)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x293474,_0x545b11){const _0x1dbc4d=a78_0x56fc,_0x4dd5e6=_0x293474();while(!![]){try{const _0x2f7bf7=-parseInt(_0x1dbc4d(0x81))/0x1+-parseInt(_0x1dbc4d(0x86))/0x2+-parseInt(_0x1dbc4d(0x91))/0x3*(-parseInt(_0x1dbc4d(0x82))/0x4)+parseInt(_0x1dbc4d(0x8a))/0x5+parseInt(_0x1dbc4d(0x8d))/0x6+parseInt(_0x1dbc4d(0x89))/0x7+parseInt(_0x1dbc4d(0x7e))/0x8*(-parseInt(_0x1dbc4d(0x87))/0x9);if(_0x2f7bf7===_0x545b11)break;else _0x4dd5e6['push'](_0x4dd5e6['shift']());}catch(_0x469e05){_0x4dd5e6['push'](_0x4dd5e6['shift']());}}}(a78_0x33df,0x28911));function a78_0x56fc(_0x4d0cc5,_0x2b1d51){_0x4d0cc5=_0x4d0cc5-0x7e;const _0x33df3b=a78_0x33df();let _0x56fc14=_0x33df3b[_0x4d0cc5];return _0x56fc14;}export function withRetargetExistingMetadata(_0x5435a2,_0xb91012,_0x3bbe74={}){const _0x148243=a78_0x56fc,_0x25a052=_0x3bbe74[_0x148243(0x85)]?_0x5435a2[_0x148243(0x92)]??_0xb91012['skillName']:_0xb91012['skillName']??_0x5435a2[_0x148243(0x92)];return{..._0x5435a2,'skillName':_0x25a052,'description':_0xb91012[_0x148243(0x7f)]??_0x5435a2[_0x148243(0x7f)],'tags':Array['isArray'](_0xb91012['tags'])?_0xb91012[_0x148243(0x8b)]:_0x5435a2[_0x148243(0x8b)],'version':_0xb91012[_0x148243(0x8e)]??_0x5435a2[_0x148243(0x8e)],'sourceSessionId':_0xb91012[_0x148243(0x88)]??_0x5435a2[_0x148243(0x88)]};}export function buildRetargetWarning(_0x321b06,_0x4027f2){const _0x121002=a78_0x56fc;if(!_0x321b06?.['appCode']||_0x321b06[_0x121002(0x83)]===_0x4027f2)return[];return[{'level':_0x121002(0x90),'ruleId':_0x121002(0x80),'file':_0x121002(0x84),'message':_0x121002(0x93)+_0x321b06[_0x121002(0x83)]+_0x121002(0x8c)+_0x4027f2+'\x20after\x20successful\x20push.','suggestion':_0x121002(0x8f)}];}function a78_0x33df(){const _0x6988b8=['description','skill-metadata-appcode-retargeted','209250ZiIbPE','52xswzwy','appCode','lovrabet.skill.json','preferInputSkillName','301182YzrMcg','2115EjCOee','sourceSessionId','98126AqQcqV','317745HRSaRi','tags','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','1778418InXKod','version','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','warning','59217iDINOo','skillName','Local\x20Skill\x20metadata\x20appCode\x20','3560SBjDFk'];a78_0x33df=function(){return _0x6988b8;};return a78_0x33df();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24fb17,_0x49bdf4){const _0x4bfe79=a79_0x7387,_0x418664=_0x24fb17();while(!![]){try{const _0x56ae28=parseInt(_0x4bfe79(0x11b))/0x1+-parseInt(_0x4bfe79(0x115))/0x2+parseInt(_0x4bfe79(0x11d))/0x3*(-parseInt(_0x4bfe79(0x119))/0x4)+parseInt(_0x4bfe79(0x118))/0x5*(parseInt(_0x4bfe79(0x113))/0x6)+parseInt(_0x4bfe79(0x117))/0x7+parseInt(_0x4bfe79(0x112))/0x8+parseInt(_0x4bfe79(0x121))/0x9;if(_0x56ae28===_0x49bdf4)break;else _0x418664['push'](_0x418664['shift']());}catch(_0x43efb0){_0x418664['push'](_0x418664['shift']());}}}(a79_0x4628,0x94aa2));function a79_0x4628(){const _0x3dadae=['validation','all','6110433PoTQjJ','3960872UOZYVA','66FYCsuo','Unsupported\x20Skill\x20list\x20scope:\x20','1939050kRxSBl','trim','2281531WgiOqW','138050bHRKGH','4DkXogz','personal','169220pdKmRE','company','1183362odVsCn','Unsupported\x20Skill\x20sync\x20scope:\x20'];a79_0x4628=function(){return _0x3dadae;};return a79_0x4628();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0xb459f){const _0x134193=a79_0x7387,_0x512307=_0xb459f[_0x134193(0x116)]();if(!_0x512307||_0x512307===_0x134193(0x120))return['personal',_0x134193(0x11c)];if(_0x512307===_0x134193(0x11a)||_0x512307===_0x134193(0x11c))return[_0x512307];throw CliErrors['validation'](_0x134193(0x11e)+_0xb459f);}export function normalizeListScope(_0x3922d9){const _0xe1e872=a79_0x7387,_0x5b6f79=_0x3922d9['trim']();if(!_0x5b6f79)return _0xe1e872(0x120);if(_0x5b6f79==='personal'||_0x5b6f79==='company'||_0x5b6f79==='all')return _0x5b6f79;throw CliErrors[_0xe1e872(0x11f)](_0xe1e872(0x114)+_0x3922d9);}export function shouldListScope(_0x20ca0f,_0x2fc9ef){const _0x16fc78=a79_0x7387;if(_0x20ca0f===_0x16fc78(0x120))return!![];return _0x20ca0f===_0x2fc9ef;}function a79_0x7387(_0x543811,_0x3f10c7){_0x543811=_0x543811-0x112;const _0x462897=a79_0x4628();let _0x7387a=_0x462897[_0x543811];return _0x7387a;}export function listScopeToRuntimeScopes(_0x1e6cba){const _0x109ff9=a79_0x7387;if(_0x1e6cba===_0x109ff9(0x120))return[_0x109ff9(0x11a),_0x109ff9(0x11c)];return[_0x1e6cba===_0x109ff9(0x11c)?'company':_0x1e6cba];}export function listScopeToRemoteScope(_0x27e68c){return _0x27e68c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1223fe,_0x2e7a2d){var _0x171b17=a80_0x121c,_0x3937fd=_0x1223fe();while(!![]){try{var _0x51dc67=-parseInt(_0x171b17(0xff))/0x1*(parseInt(_0x171b17(0x10e))/0x2)+parseInt(_0x171b17(0x108))/0x3*(-parseInt(_0x171b17(0x101))/0x4)+parseInt(_0x171b17(0x10b))/0x5*(parseInt(_0x171b17(0x10f))/0x6)+parseInt(_0x171b17(0xfe))/0x7+parseInt(_0x171b17(0x103))/0x8+-parseInt(_0x171b17(0x105))/0x9+parseInt(_0x171b17(0x10c))/0xa*(parseInt(_0x171b17(0xfc))/0xb);if(_0x51dc67===_0x2e7a2d)break;else _0x3937fd['push'](_0x3937fd['shift']());}catch(_0x473665){_0x3937fd['push'](_0x3937fd['shift']());}}}(a80_0x1d5a,0x6b2f6));export function summarizeRuntimeSkill(_0x3b7798){var _0x3aa334=a80_0x121c;return{'id':_0x3b7798['id'],'skillCode':_0x3b7798['skillCode'],'skillName':_0x3b7798[_0x3aa334(0x112)],'scope':_0x3b7798[_0x3aa334(0x10a)],'version':_0x3b7798['version'],'readonly':_0x3b7798[_0x3aa334(0x104)]};}function a80_0x121c(_0x598346,_0x41207a){_0x598346=_0x598346-0xfc;var _0x1d5a8d=a80_0x1d5a();var _0x121cbc=_0x1d5a8d[_0x598346];return _0x121cbc;}function a80_0x1d5a(){var _0x305cc1=['39fBBxyj','cacheDir','scope','50155FOXlRV','350980DnmwpC','tags','4VZhiBO','168NSxznn','metadataPath','dir','skillName','99zrHnPP','linkedPaths','3030734GbgUdI','173102eiLMcH','pulledAt','12668kQKIPi','appCode','1273368JeOpjv','readonly','3262302RVrGgL','skillMdPath','treeHash'];a80_0x1d5a=function(){return _0x305cc1;};return a80_0x1d5a();}export function summarizeLocalRuntimeSkill(_0x3a516){var _0x45f8f6=a80_0x121c;return{'id':_0x3a516['id'],'skillCode':_0x3a516['skillCode'],'skillName':_0x3a516[_0x45f8f6(0x112)],'scope':_0x3a516[_0x45f8f6(0x10a)],'appCode':_0x3a516[_0x45f8f6(0x102)],'version':_0x3a516['version'],'status':_0x3a516['status'],'readonly':_0x3a516[_0x45f8f6(0x104)],'tags':_0x3a516[_0x45f8f6(0x10d)],'dir':_0x3a516[_0x45f8f6(0x111)],'cacheDir':_0x3a516[_0x45f8f6(0x109)],'skillMdPath':_0x3a516[_0x45f8f6(0x106)],'metadataPath':_0x3a516[_0x45f8f6(0x110)],'linkedPaths':_0x3a516[_0x45f8f6(0xfd)],'contentHash':_0x3a516['contentHash'],'treeHash':_0x3a516[_0x45f8f6(0x107)],'pulledAt':_0x3a516[_0x45f8f6(0x100)]};}
|