@lovrabet/lovrabet-cli 2.3.7 → 2.3.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x50a29e=a66_0x2fe6;function a66_0x2fe6(_0x5c8a87,_0x5b663a){_0x5c8a87=_0x5c8a87-0x152;const _0x2b1435=a66_0x2b14();let _0x2fe608=_0x2b1435[_0x5c8a87];return _0x2fe608;}(function(_0x48d6a8,_0x332b8e){const _0x53b4cb=a66_0x2fe6,_0xaffedb=_0x48d6a8();while(!![]){try{const _0x303c28=-parseInt(_0x53b4cb(0x15b))/0x1*(-parseInt(_0x53b4cb(0x161))/0x2)+-parseInt(_0x53b4cb(0x15f))/0x3+parseInt(_0x53b4cb(0x15a))/0x4+-parseInt(_0x53b4cb(0x16b))/0x5+parseInt(_0x53b4cb(0x163))/0x6+-parseInt(_0x53b4cb(0x173))/0x7+parseInt(_0x53b4cb(0x157))/0x8;if(_0x303c28===_0x332b8e)break;else _0xaffedb['push'](_0xaffedb['shift']());}catch(_0x2b839c){_0xaffedb['push'](_0xaffedb['shift']());}}}(a66_0x2b14,0xb2d7f));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_0x50a29e(0x170),'command':a66_0x50a29e(0x164),'description':a66_0x50a29e(0x16c),'risk':a66_0x50a29e(0x15d),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x3ab136){const _0x89199e=a66_0x50a29e,_0x36cdea=buildSkillCreatePlan(_0x3ab136[_0x89199e(0x169)](_0x89199e(0x165)),_0x3ab136[_0x89199e(0x169)](_0x89199e(0x152)),_0x3ab136[_0x89199e(0x169)]('target'));return{'method':'WRITE','url':_0x36cdea['skillDir'],'body':{'skillName':_0x36cdea[_0x89199e(0x160)][_0x89199e(0x16d)],'type':_0x36cdea[_0x89199e(0x160)][_0x89199e(0x152)],'selfContained':!![],'files':_0x36cdea[_0x89199e(0x160)][_0x89199e(0x162)][_0x89199e(0x15c)](_0x5e9b86=>_0x5e9b86[_0x89199e(0x159)])},'description':_0x89199e(0x167)};},async 'execute'(_0x49aba1){const _0x2b80f8=a66_0x50a29e,_0xe63e79=buildSkillCreatePlan(_0x49aba1[_0x2b80f8(0x169)](_0x2b80f8(0x165)),_0x49aba1[_0x2b80f8(0x169)]('type'),_0x49aba1[_0x2b80f8(0x169)]('target'));return writeSkillDraft(_0xe63e79,_0x49aba1[_0x2b80f8(0x16e)](_0x2b80f8(0x15e))),{'ok':!![],'data':{'skillName':_0xe63e79[_0x2b80f8(0x160)]['skillName'],'type':_0xe63e79[_0x2b80f8(0x160)]['type'],'dir':_0xe63e79[_0x2b80f8(0x16a)],'files':_0xe63e79['rendered'][_0x2b80f8(0x162)]['map'](_0x5bf10e=>_0x5bf10e[_0x2b80f8(0x159)])},'message':_0x2b80f8(0x153)+_0xe63e79['rendered'][_0x2b80f8(0x16d)]};}};function buildSkillCreatePlan(_0x40f57b,_0xd2dcb9,_0x22ed90){const _0x1a649c=a66_0x50a29e,_0x1bdd0f=_0xd2dcb9[_0x1a649c(0x166)](),_0xd2e8e0=renderSkillTemplate({'skillName':_0x40f57b,'type':_0x1bdd0f});!_0x1bdd0f&&writeCliSideChannelLine(_0x1a649c(0x158));const _0x4885f8=resolve(normalizeSkillTarget(_0x22ed90));return{'rendered':_0xd2e8e0,'targetRoot':_0x4885f8,'skillDir':resolve(_0x4885f8,_0xd2e8e0[_0x1a649c(0x16d)])};}function normalizeSkillTarget(_0x51793b){const _0x51bf55=a66_0x50a29e;return(_0x51793b||DEFAULT_SKILL_TARGET)[_0x51bf55(0x166)]()||DEFAULT_SKILL_TARGET;}function a66_0x2b14(){const _0x52fc9c=['force','4164510ylSRyG','rendered','1777770utCAIU','files','8663430djRfrk','create','name','trim','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','Skill\x20directory\x20already\x20exists:\x20','str','skillDir','4854130IsSiBV','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','skillName','bool','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','skill','utf8','isSymbolicLink','6726741ncLpqL','validation','type','Created\x20local\x20Skill\x20draft\x20','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','content','Refusing\x20to\x20overwrite\x20symlink:\x20','11710600UIfRRP','Omitting\x20--type\x20is\x20deprecated;\x20defaulting\x20to\x20write\x20for\x20compatibility.\x20Pass\x20--type\x20read\x20or\x20--type\x20write\x20explicitly.','path','1023548EuQKip','1MqZTWp','map','read'];a66_0x2b14=function(){return _0x52fc9c;};return a66_0x2b14();}function writeSkillDraft(_0x60bdea,_0xb7fc47){const _0x23e5b1=a66_0x50a29e;if(existsSync(_0x60bdea[_0x23e5b1(0x16a)])){const _0x2202a1=lstatSync(_0x60bdea[_0x23e5b1(0x16a)]);if(!_0x2202a1['isDirectory']()||_0x2202a1['isSymbolicLink']())throw CliErrors['validation'](_0x23e5b1(0x154)+_0x60bdea[_0x23e5b1(0x16a)]);if(!_0xb7fc47)throw CliErrors[_0x23e5b1(0x174)](_0x23e5b1(0x168)+_0x60bdea[_0x23e5b1(0x16a)],_0x23e5b1(0x16f));}for(const _0x1438c8 of _0x60bdea[_0x23e5b1(0x160)][_0x23e5b1(0x162)]){const _0x2ddf44=resolve(_0x60bdea[_0x23e5b1(0x16a)],_0x1438c8[_0x23e5b1(0x159)]),_0x1af0f3=dirname(_0x2ddf44);mkdirSync(_0x1af0f3,{'recursive':!![]});if(existsSync(_0x2ddf44)&&lstatSync(_0x2ddf44)[_0x23e5b1(0x172)]())throw CliErrors['validation'](_0x23e5b1(0x156)+_0x2ddf44);writeFileSync(_0x2ddf44,_0x1438c8[_0x23e5b1(0x155)],_0x23e5b1(0x171));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x306167=a67_0x5182;(function(_0x55dbcf,_0x221a84){const _0x25d10d=a67_0x5182,_0x29d9be=_0x55dbcf();while(!![]){try{const _0x29c900=parseInt(_0x25d10d(0xe0))/0x1+-parseInt(_0x25d10d(0xd9))/0x2+-parseInt(_0x25d10d(0xe5))/0x3*(-parseInt(_0x25d10d(0xee))/0x4)+-parseInt(_0x25d10d(0xeb))/0x5*(-parseInt(_0x25d10d(0xf9))/0x6)+parseInt(_0x25d10d(0xfa))/0x7*(-parseInt(_0x25d10d(0xd2))/0x8)+-parseInt(_0x25d10d(0xf3))/0x9+-parseInt(_0x25d10d(0xe9))/0xa*(-parseInt(_0x25d10d(0xe1))/0xb);if(_0x29c900===_0x221a84)break;else _0x29d9be['push'](_0x29d9be['shift']());}catch(_0x348746){_0x29d9be['push'](_0x29d9be['shift']());}}}(a67_0x387b,0x2fe8d));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';function a67_0x5182(_0x474dc1,_0x40fe46){_0x474dc1=_0x474dc1-0xcd;const _0x387beb=a67_0x387b();let _0x518278=_0x387beb[_0x474dc1];return _0x518278;}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';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(_0x2d28d1){const _0x1895d6=a67_0x5182,_0x368608=_0x2d28d1[_0x1895d6(0xd3)](_0x1895d6(0xed))[_0x1895d6(0xce)](),_0x12a7f4=_0x2d28d1['str']('version')[_0x1895d6(0xce)](),_0xc1f278=_0x2d28d1['str'](_0x1895d6(0xf2));if(!_0x368608||!_0x12a7f4||_0xc1f278!=='personal'&&_0xc1f278!=='company')throw CliErrors[_0x1895d6(0xfb)](_0x1895d6(0xd5));return{'skillCode':_0x368608,'version':_0x12a7f4,'scope':_0xc1f278};}async function readDiagramWriteInput(_0x5074c9){const _0x46d401=a67_0x5182,_0x38c1fd=_0x5074c9[_0x46d401(0xdc)](_0x46d401(0xef)),_0x3851bf=_0x5074c9[_0x46d401(0xd3)](_0x46d401(0xf8))[_0x46d401(0xce)]();if(!Number['isInteger'](_0x38c1fd)||_0x38c1fd<0x0)throw CliErrors[_0x46d401(0xfb)](_0x46d401(0xd4));if(!/^sha256:[0-9a-f]{64}$/[_0x46d401(0xea)](_0x3851bf))throw CliErrors['validation'](_0x46d401(0xe7));return{'expectedDiagramRevision':_0x38c1fd,'sourceFingerprint':_0x3851bf,'diagram':await readRequiredSkillDiagram(_0x5074c9['str'](_0x46d401(0xdf)))};}export const diagramValidateCommand={'service':'skill','command':'diagram-validate','description':a67_0x306167(0xe6),'risk':a67_0x306167(0xe4),'flags':WRITE_FLAGS,async 'execute'(_0x398868){const _0x588e5a=a67_0x306167,_0x2420ed=readDiagramTarget(_0x398868),_0x4519cd=await validateRuntimeSkillVersionDiagram(_0x398868[_0x588e5a(0xda)],_0x2420ed[_0x588e5a(0xfc)],_0x2420ed['version'],_0x2420ed[_0x588e5a(0xf2)],await readDiagramWriteInput(_0x398868));return{'ok':!![],'data':_0x4519cd,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0x2420ed['skillCode']+'@'+_0x2420ed[_0x588e5a(0xe3)]+'.'};}};export const diagramPushCommand={'service':'skill','command':a67_0x306167(0xd1),'description':a67_0x306167(0xdd),'risk':a67_0x306167(0xd0),'confirmationDescription':a67_0x306167(0xcd),'flags':WRITE_FLAGS,async 'execute'(_0x1ac1dc){const _0x71087f=a67_0x306167,_0x33858a=readDiagramTarget(_0x1ac1dc),_0x1ff9e1=await putRuntimeSkillVersionDiagram(_0x1ac1dc['appCode'],_0x33858a[_0x71087f(0xfc)],_0x33858a[_0x71087f(0xe3)],_0x33858a[_0x71087f(0xf2)],await readDiagramWriteInput(_0x1ac1dc));return{'ok':!![],'data':_0x1ff9e1,'message':_0x1ff9e1[_0x71087f(0xf7)]==='unchanged'?_0x71087f(0xd6)+_0x33858a[_0x71087f(0xfc)]+'@'+_0x33858a[_0x71087f(0xe3)]+_0x71087f(0xf5):(_0x1ff9e1['action']===_0x71087f(0xf6)?'Created':_0x71087f(0xf1))+_0x71087f(0xf0)+_0x33858a[_0x71087f(0xfc)]+'@'+_0x33858a[_0x71087f(0xe3)]+'.'};}};export const diagramShowCommand={'service':a67_0x306167(0xcf),'command':a67_0x306167(0xd8),'description':a67_0x306167(0xe2),'risk':a67_0x306167(0xe4),'flags':TARGET_FLAGS,async 'execute'(_0x4bdfc5){const _0xbbc0d=a67_0x306167,_0x1cdb05=readDiagramTarget(_0x4bdfc5),_0x1c80cc=await getRuntimeSkillVersionDiagram(_0x4bdfc5[_0xbbc0d(0xda)],_0x1cdb05[_0xbbc0d(0xfc)],_0x1cdb05[_0xbbc0d(0xe3)],_0x1cdb05[_0xbbc0d(0xf2)]);return{'ok':!![],'data':_0x1c80cc,'message':_0x1c80cc[_0xbbc0d(0xd7)]?_0xbbc0d(0xde)+_0x1cdb05[_0xbbc0d(0xfc)]+'@'+_0x1cdb05[_0xbbc0d(0xe3)]+_0xbbc0d(0xe8)+_0x1c80cc[_0xbbc0d(0xf4)]+'.':_0xbbc0d(0xec)+_0x1cdb05['skillCode']+'@'+_0x1cdb05['version']+_0xbbc0d(0xdb)+_0x1c80cc[_0xbbc0d(0xf4)]+'.'};}};function a67_0x387b(){const _0x4d49db=['expected-diagram-revision','\x20Skill\x20diagram\x20for\x20','Updated','scope','3180573tCOAIY','expectedDiagramRevision','\x20is\x20unchanged.','created','action','source-fingerprint','54348heTiPs','7IWSTwi','validation','skillCode','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.','trim','skill','write','diagram-push','2091608sqafbt','str','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','Skill\x20diagram\x20for\x20','found','diagram-show','353050DcjFiA','appCode',';\x20first\x20write\x20expects\x20revision\x20','num','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','Found\x20Skill\x20diagram\x20for\x20','diagram-file','168123wJcyaT','418dzLCrd','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','version','read','981207VZUpco','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.',';\x20next\x20write\x20expects\x20revision\x20','36620MVpsle','test','195zjsAkN','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','skill-code','4ODRqYk'];a67_0x387b=function(){return _0x4d49db;};return a67_0x387b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x241a00=a68_0x272f;(function(_0x554afe,_0x5a8c2f){const _0x46e6dc=a68_0x272f,_0x57f2d3=_0x554afe();while(!![]){try{const _0x5a3921=-parseInt(_0x46e6dc(0xe1))/0x1*(parseInt(_0x46e6dc(0xb8))/0x2)+parseInt(_0x46e6dc(0xc1))/0x3+parseInt(_0x46e6dc(0xcb))/0x4*(parseInt(_0x46e6dc(0xb7))/0x5)+parseInt(_0x46e6dc(0xd1))/0x6+-parseInt(_0x46e6dc(0xdf))/0x7*(parseInt(_0x46e6dc(0xd3))/0x8)+-parseInt(_0x46e6dc(0xe0))/0x9+parseInt(_0x46e6dc(0xd0))/0xa;if(_0x5a3921===_0x5a8c2f)break;else _0x57f2d3['push'](_0x57f2d3['shift']());}catch(_0x3ce665){_0x57f2d3['push'](_0x57f2d3['shift']());}}}(a68_0x32a0,0xa4c32));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;export const installCommand={'service':a68_0x241a00(0xcd),'command':a68_0x241a00(0xc0),'description':a68_0x241a00(0xba),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0xeeb4de){return syncRuntimeSkills(_0xeeb4de);}};async function syncRuntimeSkills(_0x205665){const _0x2272c8=a68_0x241a00,{downloadRuntimeSkillPackage:_0x742c7b,listRuntimeSkills:_0x40b69e}=await import(_0x2272c8(0xce)),{linkEffectiveRuntimeSkills:_0x53ee2f,materializeRuntimeSkill:_0x4ec911,pruneStaleRuntimeSkillCache:_0x1fec2a,pruneStaleRuntimeSkillLinks:_0x35ba3e,resolveRuntimeSkillInstallTarget:_0x302d3f,reuseMaterializedRuntimeSkill:_0x379ef6}=await import(_0x2272c8(0xca)),_0x3ed16d=_0x205665['str'](_0x2272c8(0xcc)),_0x2be0bd=normalizeSyncScopes(_0x205665[_0x2272c8(0xbd)]('scope')),_0x189ba0=_0x205665['envName']??'production',_0x5803e3=_0x205665[_0x2272c8(0xc6)],_0x2ed105=_0x205665[_0x2272c8(0xd8)]('force');if(!_0x5803e3)throw CliErrors[_0x2272c8(0xc5)](_0x2272c8(0xcf));const _0x2574e9=_0x302d3f(_0x205665[_0x2272c8(0xbe)],_0x205665[_0x2272c8(0xd8)](_0x2272c8(0xd7))?_0x2272c8(0xd7):'global'),_0x2a3d68=_0x302d3f(_0x205665[_0x2272c8(0xbe)],_0x2574e9['scope']===_0x2272c8(0xd7)?_0x2272c8(0xc9):_0x2272c8(0xd7)),_0xf48e0d=await _0x40b69e({'appCode':_0x205665[_0x2272c8(0xbe)],'scope':_0x2be0bd[_0x2272c8(0xc2)]===0x1?_0x2be0bd[0x0]:_0x2272c8(0xdc),'code':_0x3ed16d[_0x2272c8(0xc3)]()||undefined,'installableOnly':!![]}),_0xb86a94=_0x2be0bd[_0x2272c8(0xd6)](_0x2272c8(0xdb))?_0xf48e0d[_0x2272c8(0xdb)]:[],_0x507162=_0x2be0bd[_0x2272c8(0xd6)]('company')?_0xf48e0d[_0x2272c8(0xc4)]:[],_0x5445bc=new Set([..._0xb86a94['map'](_0x3546d7=>_0x3546d7[_0x2272c8(0xde)]?.[_0x2272c8(0xc3)]())[_0x2272c8(0xda)](_0x48ca56=>Boolean(_0x48ca56)),..._0x507162[_0x2272c8(0xc7)](_0x194d79=>_0x194d79['skillCode']?.[_0x2272c8(0xc3)]())[_0x2272c8(0xda)](_0x565430=>Boolean(_0x565430))]),_0x3cfe7d=_0x3ed16d[_0x2272c8(0xc3)]()?[_0x3ed16d[_0x2272c8(0xc3)]()]:undefined,_0x315317=_0x2be0bd['length']===0x2&&_0x2be0bd[_0x2272c8(0xd6)]('personal')&&_0x2be0bd[_0x2272c8(0xd6)](_0x2272c8(0xc4)),_0x2f782c=_0x315317?_0x35ba3e(_0x2574e9,_0x5445bc,_0x3cfe7d):[],_0x4a65e1=_0x1fec2a({'env':_0x189ba0,'accessKey':_0x5803e3,'appCode':_0x205665[_0x2272c8(0xbe)],'activeSkillCodes':_0x5445bc,'pruneSkillCodes':_0x3cfe7d,'scopes':_0x2be0bd,'protectedLinkRoots':_0x2a3d68[_0x2272c8(0xbb)]}),_0x1b202f=[..._0xb86a94[_0x2272c8(0xc7)](_0x52469d=>({'skill':_0x52469d,'scope':'personal'})),..._0x507162[_0x2272c8(0xc7)](_0x16c167=>({'skill':_0x16c167,'scope':_0x2272c8(0xc4)}))],_0x26961b=await mapConcurrent(_0x1b202f,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x1cec2c,scope:_0x5ce01e})=>{const _0x476b16=_0x2272c8,_0x1364c5=_0x379ef6(_0x1cec2c,_0x5ce01e,{'env':_0x189ba0,'accessKey':_0x5803e3,'appCode':_0x205665[_0x476b16(0xbe)]});if(_0x1364c5)return _0x1364c5;return _0x4ec911(_0x1cec2c,_0x5ce01e,{'env':_0x189ba0,'accessKey':_0x5803e3,'appCode':_0x205665[_0x476b16(0xbe)],'force':_0x2ed105,'packageBytes':await downloadSkillPackage(_0x1cec2c,_0x5ce01e,_0x205665[_0x476b16(0xbe)],_0x742c7b)});}),_0x377441=_0x53ee2f(_0x26961b,_0x2574e9),_0x1c744c=countLinkActions(_0x377441);return{'ok':!![],'data':{'appCode':_0x205665['appCode'],..._0x2574e9[_0x2272c8(0xbc)]===_0x2272c8(0xd7)?{'installTarget':{'scope':_0x2574e9[_0x2272c8(0xbc)],'skillRoots':[..._0x2574e9[_0x2272c8(0xbb)]]}}:{},'personal':_0xb86a94['length'],'company':_0x507162[_0x2272c8(0xc2)],'materialized':_0x26961b[_0x2272c8(0xc2)],'links':{'total':_0x377441[_0x2272c8(0xc2)],'created':_0x1c744c[_0x2272c8(0xb9)]??0x0,'updated':_0x1c744c['updated']??0x0,'unchanged':_0x1c744c['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x2f782c[_0x2272c8(0xda)](_0x234b54=>_0x234b54[_0x2272c8(0xdd)]===_0x2272c8(0xd4))[_0x2272c8(0xc2)],'cacheDirs':_0x4a65e1[_0x2272c8(0xda)](_0x298fbc=>_0x298fbc[_0x2272c8(0xdd)]===_0x2272c8(0xd4))[_0x2272c8(0xc2)],'skipped':[..._0x2f782c,..._0x4a65e1]['filter'](_0x56eac4=>_0x56eac4[_0x2272c8(0xdd)]==='skipped')[_0x2272c8(0xc2)]},'skills':{'personal':_0xb86a94['map'](summarizeRuntimeSkill),'company':_0x507162[_0x2272c8(0xc7)](summarizeRuntimeSkill)}},'message':_0x2272c8(0xc8)+_0xb86a94['length']+_0x2272c8(0xd2)+_0x507162[_0x2272c8(0xc2)]+_0x2272c8(0xd9)};}function a68_0x272f(_0x855206,_0x16098a){_0x855206=_0x855206-0xb7;const _0x32a0dd=a68_0x32a0();let _0x272f8=_0x32a0dd[_0x855206];return _0x272f8;}async function mapConcurrent(_0x464220,_0x337472,_0x44db32){const _0x47cb4a=a68_0x241a00,_0x54ead4=new Array(_0x464220['length']);let _0x210d3a=0x0;const _0x12c29a=Array['from']({'length':Math[_0x47cb4a(0xd5)](_0x337472,_0x464220[_0x47cb4a(0xc2)])},async()=>{const _0x361d89=_0x47cb4a;while(_0x210d3a<_0x464220[_0x361d89(0xc2)]){const _0x23b10e=_0x210d3a;_0x210d3a+=0x1,_0x54ead4[_0x23b10e]=await _0x44db32(_0x464220[_0x23b10e]);}});return await Promise[_0x47cb4a(0xdc)](_0x12c29a),_0x54ead4;}async function downloadSkillPackage(_0x510b1a,_0x41cf86,_0x2dbe11,_0x49887b){const _0x2f6563=a68_0x241a00,_0x3cd09d=_0x510b1a[_0x2f6563(0xbf)]?.[_0x2f6563(0xc3)]();return _0x3cd09d?_0x49887b(_0x41cf86,_0x510b1a['skillCode'],_0x2dbe11,_0x3cd09d):_0x49887b(_0x41cf86,_0x510b1a['skillCode'],_0x2dbe11);}function a68_0x32a0(){const _0x4fdc07=['283013dJwVMO','2195UZqWVa','6gGTSko','created','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','skillRoots','scope','str','appCode','version','install','63684RZCnNZ','length','trim','company','authRequired','accessKey','map','Installed\x20','global','../../../skills/runtime-skill-sync.js','3788QpxRnV','code','skill','../../../core/api-client.js','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','18757260WnEAQk','7470936MKikLI','\x20personal\x20and\x20','21944WjOdMq','removed','min','includes','project','bool','\x20company\x20Skill(s).','filter','personal','all','action','skillCode','3129impgMo','7270353ghuTWg'];a68_0x32a0=function(){return _0x4fdc07;};return a68_0x32a0();}function countLinkActions(_0x384d8d){return _0x384d8d['reduce']((_0x530472,_0x1ded14)=>{const _0x3060a0=a68_0x272f;return _0x530472[_0x1ded14[_0x3060a0(0xdd)]]=(_0x530472[_0x1ded14[_0x3060a0(0xdd)]]??0x0)+0x1,_0x530472;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a69_0x5afa99=a69_0x41b0;(function(_0x1d6a9e,_0x56a33b){const _0x30799a=a69_0x41b0,_0x3363c6=_0x1d6a9e();while(!![]){try{const _0x159494=parseInt(_0x30799a(0x1bb))/0x1*(-parseInt(_0x30799a(0x1ab))/0x2)+-parseInt(_0x30799a(0x1a4))/0x3*(-parseInt(_0x30799a(0x1a6))/0x4)+parseInt(_0x30799a(0x19f))/0x5+parseInt(_0x30799a(0x1b7))/0x6*(-parseInt(_0x30799a(0x1c0))/0x7)+-parseInt(_0x30799a(0x1a1))/0x8*(parseInt(_0x30799a(0x1a0))/0x9)+-parseInt(_0x30799a(0x1a9))/0xa*(parseInt(_0x30799a(0x1bc))/0xb)+parseInt(_0x30799a(0x1ac))/0xc*(parseInt(_0x30799a(0x1bf))/0xd);if(_0x159494===_0x56a33b)break;else _0x3363c6['push'](_0x3363c6['shift']());}catch(_0x2540f2){_0x3363c6['push'](_0x3363c6['shift']());}}}(a69_0x2314,0x1d177));import{CliErrors}from'../../../errors.js';function a69_0x41b0(_0x3b27b5,_0x5c989d){_0x3b27b5=_0x3b27b5-0x19d;const _0x23140a=a69_0x2314();let _0x41b001=_0x23140a[_0x3b27b5];return _0x41b001;}function a69_0x2314(){const _0x179811=['skill','company','1266jqQUrW','length','accessKey','str','971aXhKWH','55ruQDBX','read','appCode','234pFjvpB','7651upvEcg','scope','\x20remote\x20Skill(s).','personal','bool','956305mvnvZd','72NzSxKp','19192WMPBIA','envName','local','4098XieziO','code','676efnion','map','../../../skills/runtime-skill-sync.js','120770uoCdQd','global','268nXLosj','91572kUXNxE','filter','Listed\x20','project','trim','authRequired','remote','\x20local\x20Skill(s).','../../../core/api-client.js'];a69_0x2314=function(){return _0x179811;};return a69_0x2314();}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':a69_0x5afa99(0x1b5),'command':'list','description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a69_0x5afa99(0x1bd),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1f425c){const _0x111104=a69_0x5afa99,_0x37b10a=_0x1f425c['str'](_0x111104(0x1a5)),_0x59a60f=normalizeListScope(_0x1f425c[_0x111104(0x1ba)](_0x111104(0x1c1)));if(_0x1f425c[_0x111104(0x19e)](_0x111104(0x1a3))){const _0x53784e=_0x1f425c[_0x111104(0x1b9)];if(!_0x53784e)throw CliErrors[_0x111104(0x1b1)]();const {listLocalRuntimeSkills:_0x5d52cc,resolveRuntimeSkillInstallTarget:_0x34873}=await import(_0x111104(0x1a8)),_0x5bc7fc=_0x34873(_0x1f425c['appCode'],_0x1f425c[_0x111104(0x19e)]('project')?_0x111104(0x1af):_0x111104(0x1aa)),_0x5b16b2=_0x5d52cc({'env':_0x1f425c[_0x111104(0x1a2)]??'production','accessKey':_0x53784e,'appCode':_0x1f425c[_0x111104(0x1be)],'scopes':listScopeToRuntimeScopes(_0x59a60f),'code':_0x37b10a['trim']()||undefined},_0x5bc7fc),_0x1d43eb=groupLocalRuntimeSkills(_0x5b16b2);return{'ok':!![],'data':{'appCode':_0x1f425c['appCode'],'source':'local',..._0x5bc7fc['scope']===_0x111104(0x1af)?{'installScope':_0x5bc7fc['scope']}:{},'scope':_0x59a60f,'total':_0x5b16b2['length'],'personal':_0x1d43eb[_0x111104(0x19d)][_0x111104(0x1b8)],'company':_0x1d43eb[_0x111104(0x1b6)][_0x111104(0x1b8)],'items':_0x5b16b2[_0x111104(0x1a7)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x1d43eb['personal'][_0x111104(0x1a7)](summarizeLocalRuntimeSkill),'company':_0x1d43eb['company'][_0x111104(0x1a7)](summarizeLocalRuntimeSkill)}},'message':_0x111104(0x1ae)+_0x5b16b2[_0x111104(0x1b8)]+_0x111104(0x1b3)};}const {listRuntimeSkills:_0x207c1a}=await import(_0x111104(0x1b4)),_0x4b9179=await _0x207c1a({'appCode':_0x1f425c[_0x111104(0x1be)],'scope':listScopeToRemoteScope(_0x59a60f),'code':_0x37b10a[_0x111104(0x1b0)]()||undefined}),_0x3a4706=shouldListScope(_0x59a60f,_0x111104(0x19d))?_0x4b9179[_0x111104(0x19d)]??[]:[],_0x135a96=shouldListScope(_0x59a60f,_0x111104(0x1b6))?_0x4b9179['company']??[]:[],_0x14f185=[..._0x3a4706,..._0x135a96];return{'ok':!![],'data':{'appCode':_0x1f425c['appCode'],'source':_0x111104(0x1b2),'scope':_0x59a60f,'total':_0x14f185[_0x111104(0x1b8)],'personal':_0x3a4706[_0x111104(0x1b8)],'company':_0x135a96[_0x111104(0x1b8)],'items':_0x14f185[_0x111104(0x1a7)](summarizeRuntimeSkill),'skills':{'personal':_0x3a4706[_0x111104(0x1a7)](summarizeRuntimeSkill),'company':_0x135a96['map'](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x14f185['length']+_0x111104(0x1c2)};}};function groupLocalRuntimeSkills(_0x1b37c1){const _0x208474=a69_0x5afa99;return{'personal':_0x1b37c1[_0x208474(0x1ad)](_0x50367d=>_0x50367d[_0x208474(0x1c1)]===_0x208474(0x19d)),'company':_0x1b37c1[_0x208474(0x1ad)](_0x520d04=>_0x520d04['scope']==='company'),'builtin':_0x1b37c1['filter'](_0x3292b7=>_0x3292b7[_0x208474(0x1c1)]==='builtin')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x3a5d0a=a70_0xa8cb;function a70_0xa8cb(_0x51deea,_0x3b5950){_0x51deea=_0x51deea-0x156;const _0x21019f=a70_0x2101();let _0xa8cbe8=_0x21019f[_0x51deea];return _0xa8cbe8;}(function(_0xe949f4,_0x827b4f){const _0x59eb2f=a70_0xa8cb,_0x3bf007=_0xe949f4();while(!![]){try{const _0xa27aec=parseInt(_0x59eb2f(0x162))/0x1*(-parseInt(_0x59eb2f(0x15f))/0x2)+parseInt(_0x59eb2f(0x159))/0x3+parseInt(_0x59eb2f(0x156))/0x4+parseInt(_0x59eb2f(0x160))/0x5*(-parseInt(_0x59eb2f(0x157))/0x6)+parseInt(_0x59eb2f(0x15d))/0x7+-parseInt(_0x59eb2f(0x15a))/0x8*(parseInt(_0x59eb2f(0x163))/0x9)+parseInt(_0x59eb2f(0x161))/0xa;if(_0xa27aec===_0x827b4f)break;else _0x3bf007['push'](_0x3bf007['shift']());}catch(_0x237a1d){_0x3bf007['push'](_0x3bf007['shift']());}}}(a70_0x2101,0x2dcd1));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a70_0x2101(){const _0x49fe4b=['8GRhkpH','write','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','262724XDdLnB','skill','2SbEqFY','208315QGubrw','2342780YBVgEp','68140phqmXx','1078587eVxgvP','14348AugZvA','36EUoWYu','push','1050495cCkqci'];a70_0x2101=function(){return _0x49fe4b;};return a70_0x2101();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a70_0x3a5d0a(0x15e),'command':a70_0x3a5d0a(0x158),'description':a70_0x3a5d0a(0x15c),'risk':a70_0x3a5d0a(0x15b),'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
|
-
const
|
|
1
|
+
const a71_0x5b64fb=a71_0x63f4;(function(_0x19f1d7,_0x297024){const _0x5b9686=a71_0x63f4,_0x30a515=_0x19f1d7();while(!![]){try{const _0xd75f98=parseInt(_0x5b9686(0xed))/0x1+-parseInt(_0x5b9686(0xf0))/0x2*(-parseInt(_0x5b9686(0xf5))/0x3)+parseInt(_0x5b9686(0xe6))/0x4*(-parseInt(_0x5b9686(0xe8))/0x5)+-parseInt(_0x5b9686(0xe7))/0x6*(parseInt(_0x5b9686(0xeb))/0x7)+-parseInt(_0x5b9686(0xea))/0x8*(-parseInt(_0x5b9686(0xe9))/0x9)+-parseInt(_0x5b9686(0xfa))/0xa+parseInt(_0x5b9686(0xf2))/0xb*(parseInt(_0x5b9686(0xf3))/0xc);if(_0xd75f98===_0x297024)break;else _0x30a515['push'](_0x30a515['shift']());}catch(_0x3d041c){_0x30a515['push'](_0x30a515['shift']());}}}(a71_0x42da,0x890f2));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a71_0x63f4(_0x5cf663,_0x5d9023){_0x5cf663=_0x5cf663-0xe4;const _0x42da11=a71_0x42da();let _0x63f4bc=_0x42da11[_0x5cf663];return _0x63f4bc;}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a71_0x42da(){const _0x345e21=['Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','bool','Skill\x20validation\x20passed.','dir','8559680CoSuEY','str','strict','2228RaMoos','60FeGVJF','4315tvRcVz','27YNVRFy','197968WYVWlo','34118jpFCCZ','warnings','203251clbfxM','errors','type','1496946kuDRLC','read','2827jFQzJo','42996iPoKSc','skill','3bbYDDM'];a71_0x42da=function(){return _0x345e21;};return a71_0x42da();}export const validateCommand={'service':a71_0x5b64fb(0xf4),'command':'validate','description':a71_0x5b64fb(0xf6),'risk':a71_0x5b64fb(0xf1),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x5e2cf9){const _0x10ead9=a71_0x5b64fb,_0xd1c14b=_0x5e2cf9[_0x10ead9(0xf7)](_0x10ead9(0xe5)),_0xfe2ebe=validateSkillDirectory(_0x5e2cf9[_0x10ead9(0xe4)](_0x10ead9(0xf9)),{'strict':_0xd1c14b});return throwIfSkillValidationFailed(_0xfe2ebe,_0xd1c14b),{'ok':!![],'data':{'dir':_0xfe2ebe[_0x10ead9(0xf9)],'type':_0xfe2ebe[_0x10ead9(0xef)],'errors':_0xfe2ebe[_0x10ead9(0xee)],'warnings':_0xfe2ebe[_0x10ead9(0xec)]},'message':_0x10ead9(0xf8)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52f94b,_0x3e2863){const _0x1cad23=a72_0x3977,_0x29bc5c=_0x52f94b();while(!![]){try{const _0x270223=-parseInt(_0x1cad23(0x150))/0x1*(parseInt(_0x1cad23(0x138))/0x2)+parseInt(_0x1cad23(0x14e))/0x3+-parseInt(_0x1cad23(0x142))/0x4*(parseInt(_0x1cad23(0x14d))/0x5)+parseInt(_0x1cad23(0x14b))/0x6+-parseInt(_0x1cad23(0x13f))/0x7*(-parseInt(_0x1cad23(0x151))/0x8)+-parseInt(_0x1cad23(0x147))/0x9+-parseInt(_0x1cad23(0x145))/0xa*(parseInt(_0x1cad23(0x146))/0xb);if(_0x270223===_0x3e2863)break;else _0x29bc5c['push'](_0x29bc5c['shift']());}catch(_0x465d35){_0x29bc5c['push'](_0x29bc5c['shift']());}}}(a72_0x4a3f,0xcc957));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 a72_0x3977(_0x25d854,_0x460c81){_0x25d854=_0x25d854-0x138;const _0x4a3f25=a72_0x4a3f();let _0x3977d1=_0x4a3f25[_0x25d854];return _0x3977d1;}export async function readRequiredSkillDiagram(_0x16294e){return(await readRequiredSkillDiagramInput(_0x16294e))['diagram'];}export async function readRequiredSkillDiagramInput(_0x101694){const _0x19bcd0=a72_0x3977,_0x7b64f6=_0x101694[_0x19bcd0(0x13a)]();if(!_0x7b64f6)throw CliErrors[_0x19bcd0(0x148)]('--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.',_0x19bcd0(0x13c));let _0x1c4b8b,_0xcd9889;if(_0x7b64f6==='-')try{_0x1c4b8b=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x19bcd0(0x148)](_0x19bcd0(0x13d));}else{const _0x2da506=resolve(_0x7b64f6);if(!existsSync(_0x2da506))throw CliErrors[_0x19bcd0(0x148)](_0x19bcd0(0x14f)+_0x2da506);if(!statSync(_0x2da506)['isFile']())throw CliErrors['validation']('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x2da506);_0xcd9889=realpathSync(_0x2da506),_0x1c4b8b=readFileSync(_0xcd9889,_0x19bcd0(0x14a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x1c4b8b)},'sourceFilePath':_0xcd9889};}export async function validateAndCanonicalizeMermaid(_0x3b4168){const _0x4ec1c5=a72_0x3977,_0x3e0cf8=_0x3b4168[_0x4ec1c5(0x13b)](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')[_0x4ec1c5(0x13b)](/\n+$/,'')+'\x0a';try{const _0x30dbc1=await loadMermaidApi();await _0x30dbc1[_0x4ec1c5(0x140)](_0x3e0cf8);}catch{throw diagramValidationError();}return _0x3e0cf8;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x270504=a72_0x3977;if(!(_0x270504(0x141)in globalThis)||!(_0x270504(0x139)in globalThis)){const _0x5761a0=new JSDOM('');Object[_0x270504(0x14c)](globalThis,{'window':{'configurable':!![],'value':_0x5761a0[_0x270504(0x141)]},'document':{'configurable':!![],'value':_0x5761a0[_0x270504(0x141)][_0x270504(0x139)]}});}return(await import(_0x270504(0x144)))[_0x270504(0x143)];})()),mermaidApiPromise;}function a72_0x4a3f(){const _0x59e9ec=['2326355ZYAzqO','4877904abtDpB','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','151jrminU','243856FRrztS','8682KsUDeZ','document','trim','replace','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','203NegOKE','parse','window','4MFAJIL','default','mermaid','130TjvXqf','678007CSxPZg','4326597KYbWik','validation','Mermaid\x20syntax\x20validation\x20failed.','utf8','4384830TNcWJw','defineProperties'];a72_0x4a3f=function(){return _0x59e9ec;};return a72_0x4a3f();}function diagramValidationError(){const _0x13de58=a72_0x3977;return CliErrors[_0x13de58(0x148)](_0x13de58(0x149),_0x13de58(0x13e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x217e96=a73_0x412b;(function(_0x3739a4,_0x15b9fd){const _0x513a20=a73_0x412b,_0x27b4f7=_0x3739a4();while(!![]){try{const _0xc0d647=-parseInt(_0x513a20(0x190))/0x1+-parseInt(_0x513a20(0x1a6))/0x2+parseInt(_0x513a20(0x18f))/0x3+-parseInt(_0x513a20(0x189))/0x4*(parseInt(_0x513a20(0x197))/0x5)+parseInt(_0x513a20(0x1ae))/0x6*(parseInt(_0x513a20(0x19d))/0x7)+-parseInt(_0x513a20(0x18d))/0x8+parseInt(_0x513a20(0x1b2))/0x9*(parseInt(_0x513a20(0x19f))/0xa);if(_0xc0d647===_0x15b9fd)break;else _0x27b4f7['push'](_0x27b4f7['shift']());}catch(_0xeb8731){_0x27b4f7['push'](_0x27b4f7['shift']());}}}(a73_0x368c,0xd38ae));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a73_0x217e96(0x192),'type':a73_0x217e96(0x186),'description':a73_0x217e96(0x18a)};export const SCOPE_FLAG={'name':a73_0x217e96(0x18b),'type':a73_0x217e96(0x186),'description':a73_0x217e96(0x195),'enum':[a73_0x217e96(0x185),a73_0x217e96(0x1ad),a73_0x217e96(0x183)]};export const PUSH_SCOPE_FLAG={'name':a73_0x217e96(0x18b),'type':'string','description':a73_0x217e96(0x1a1),'default':a73_0x217e96(0x1ad),'enum':[a73_0x217e96(0x1ad),'company']};export const LIST_SCOPE_FLAG={'name':a73_0x217e96(0x18b),'type':'string','description':a73_0x217e96(0x1a0),'enum':[a73_0x217e96(0x185),a73_0x217e96(0x1ad),a73_0x217e96(0x183)]};export const LOCAL_FLAG={'name':a73_0x217e96(0x19b),'type':a73_0x217e96(0x1b1),'description':a73_0x217e96(0x1ab)};export const DIR_FLAG={'name':a73_0x217e96(0x18c),'type':a73_0x217e96(0x186),'required':!![],'description':a73_0x217e96(0x1a9)};export const DIAGRAM_FILE_FLAG={'name':a73_0x217e96(0x1a5),'type':a73_0x217e96(0x186),'required':!![],'description':'UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin'};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':'string','required':!![],'description':a73_0x217e96(0x1af)};export const DIAGRAM_VERSION_FLAG={'name':a73_0x217e96(0x1ac),'type':a73_0x217e96(0x186),'required':!![],'description':a73_0x217e96(0x19c)};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x217e96(0x18b),'type':a73_0x217e96(0x186),'required':!![],'enum':['personal',a73_0x217e96(0x183)],'description':a73_0x217e96(0x184)};function a73_0x412b(_0x4cd207,_0x3e098d){_0x4cd207=_0x4cd207-0x183;const _0x368c31=a73_0x368c();let _0x412b05=_0x368c31[_0x4cd207];return _0x412b05;}export const SOURCE_FINGERPRINT_FLAG={'name':a73_0x217e96(0x19e),'type':a73_0x217e96(0x186),'required':!![],'description':a73_0x217e96(0x188),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x217e96(0x1aa)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a73_0x217e96(0x196),'type':a73_0x217e96(0x1a8),'required':!![],'description':a73_0x217e96(0x1b0)};export const CREATE_NAME_FLAG={'name':a73_0x217e96(0x198),'type':a73_0x217e96(0x186),'required':!![],'description':a73_0x217e96(0x1a2),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a73_0x217e96(0x19a)}};export const TYPE_FLAG={'name':a73_0x217e96(0x191),'type':a73_0x217e96(0x186),'description':a73_0x217e96(0x187),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a73_0x217e96(0x186),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0x217e96(0x1a3),'type':'boolean','description':a73_0x217e96(0x199)};export const PROJECT_TARGET_FLAG={'name':a73_0x217e96(0x193),'type':a73_0x217e96(0x1b1),'description':a73_0x217e96(0x18e)};export const CONFIRM_WARNINGS_FLAG={'name':a73_0x217e96(0x194),'type':a73_0x217e96(0x1b1),'description':a73_0x217e96(0x1a7)};export const STRICT_FLAG={'name':'strict','type':a73_0x217e96(0x1b1),'description':a73_0x217e96(0x1a4)};function a73_0x368c(){const _0x44010e=['local','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','4978141UOrGNb','source-fingerprint','320xyDzgw','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','force','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','diagram-file','1808226ijtasx','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','number','Local\x20Skill\x20directory\x20containing\x20SKILL.md','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','version','personal','6rUyBcV','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','boolean','809388jZOGEZ','company','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','all','string','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Server-reported\x20SkillVersion\x20source\x20fingerprint','784qbVqJZ','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','scope','dir','13204840unReja','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','4852998XeZrUM','1014197PmklXk','type','code','project','confirm-warnings','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','expected-diagram-revision','19675GxVCXE','name','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'];a73_0x368c=function(){return _0x44010e;};return a73_0x368c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3dc6ef,_0x50956c){const _0x177658=a74_0x3741,_0x101384=_0x3dc6ef();while(!![]){try{const _0x3ca11a=-parseInt(_0x177658(0x17b))/0x1+-parseInt(_0x177658(0x179))/0x2+parseInt(_0x177658(0x17f))/0x3+-parseInt(_0x177658(0x17e))/0x4+-parseInt(_0x177658(0x177))/0x5*(-parseInt(_0x177658(0x17d))/0x6)+-parseInt(_0x177658(0x178))/0x7*(-parseInt(_0x177658(0x17c))/0x8)+parseInt(_0x177658(0x17a))/0x9;if(_0x3ca11a===_0x50956c)break;else _0x101384['push'](_0x101384['shift']());}catch(_0x536113){_0x101384['push'](_0x101384['shift']());}}}(a74_0x927a,0x2e320));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';function a74_0x3741(_0x2b1335,_0x2e1df1){_0x2b1335=_0x2b1335-0x177;const _0x927ae2=a74_0x927a();let _0x374194=_0x927ae2[_0x2b1335];return _0x374194;}import{listCommand}from'./commands/list.js';function a74_0x927a(){const _0x483f4a=['259857OSYgUk','15103QLfQwH','150544HabMGV','6zPBfvE','426304mDEnzP','396621pfZtNR','704835OUbttf','35Hpschm','170484EehXfU'];a74_0x927a=function(){return _0x483f4a;};return a74_0x927a();}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 a75_0x4179(_0x4a20fb,_0x59a2ab){_0x4a20fb=_0x4a20fb-0x19c;var _0x735a77=a75_0x735a();var _0x417981=_0x735a77[_0x4a20fb];return _0x417981;}function a75_0x735a(){var _0xbf87e2=['2907dBufAS','20viyblJ','path','string','SKILL.md','1576GGjMtJ','object','41489gjHyzU','files','length','114693hFgUeU','some','isArray','371356eUiKpS','2370290FnCHaG','ossPath','88523nLctgJ','200CsiFlR','44274rfngqV'];a75_0x735a=function(){return _0xbf87e2;};return a75_0x735a();}(function(_0x2ff271,_0x2d8326){var _0x4a31b7=a75_0x4179,_0x4d2d52=_0x2ff271();while(!![]){try{var _0x42efd8=-parseInt(_0x4a31b7(0x1ae))/0x1+parseInt(_0x4a31b7(0x1ab))/0x2+-parseInt(_0x4a31b7(0x1a8))/0x3*(-parseInt(_0x4a31b7(0x19f))/0x4)+parseInt(_0x4a31b7(0x19c))/0x5*(-parseInt(_0x4a31b7(0x19d))/0x6)+-parseInt(_0x4a31b7(0x1a5))/0x7+-parseInt(_0x4a31b7(0x1a3))/0x8*(parseInt(_0x4a31b7(0x19e))/0x9)+parseInt(_0x4a31b7(0x1ac))/0xa;if(_0x42efd8===_0x2d8326)break;else _0x4d2d52['push'](_0x4d2d52['shift']());}catch(_0x4e929b){_0x4d2d52['push'](_0x4d2d52['shift']());}}}(a75_0x735a,0x2736d));export function isPackageBackedManifest(_0x4c53f2){var _0x1543cb=a75_0x4179;return!!_0x4c53f2&&typeof _0x4c53f2===_0x1543cb(0x1a4)&&!Array[_0x1543cb(0x1aa)](_0x4c53f2)&&typeof _0x4c53f2[_0x1543cb(0x1ad)]===_0x1543cb(0x1a1)&&_0x4c53f2['ossPath'][_0x1543cb(0x1a7)]>0x0&&Array[_0x1543cb(0x1aa)](_0x4c53f2[_0x1543cb(0x1a6)]);}export function isMultiFileManifest(_0xff57af){var _0x3d68dd=a75_0x4179;return!!_0xff57af&&typeof _0xff57af===_0x3d68dd(0x1a4)&&!Array[_0x3d68dd(0x1aa)](_0xff57af)&&Array[_0x3d68dd(0x1aa)](_0xff57af[_0x3d68dd(0x1a6)])&&_0xff57af[_0x3d68dd(0x1a6)][_0x3d68dd(0x1a9)](_0x1cd07a=>_0x1cd07a[_0x3d68dd(0x1a0)]!==_0x3d68dd(0x1a2));}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x329b3e,_0x10e688){const _0x10337d=a76_0x3a2f,_0x1c3d6b=_0x329b3e();while(!![]){try{const _0x566453=-parseInt(_0x10337d(0x1f5))/0x1+-parseInt(_0x10337d(0x214))/0x2*(parseInt(_0x10337d(0x200))/0x3)+parseInt(_0x10337d(0x1f7))/0x4+parseInt(_0x10337d(0x20d))/0x5+-parseInt(_0x10337d(0x1f6))/0x6*(parseInt(_0x10337d(0x208))/0x7)+-parseInt(_0x10337d(0x1fe))/0x8*(-parseInt(_0x10337d(0x21c))/0x9)+-parseInt(_0x10337d(0x21d))/0xa*(-parseInt(_0x10337d(0x1f8))/0xb);if(_0x566453===_0x10e688)break;else _0x1c3d6b['push'](_0x1c3d6b['shift']());}catch(_0x46f8b3){_0x1c3d6b['push'](_0x1c3d6b['shift']());}}}(a76_0x3cf5,0xda80a));import{CliErrors}from'../../errors.js';function a76_0x3cf5(){const _0x26777a=['scope','Submitted\x20company\x20Skill\x20','frontmatterDisplayName','\x20has\x20scope=\x22','../../skills/runtime-skill-sync.js','285435UGjaVa','8759690QntoGe','/api/cli/v1/skills/','Company','Updated\x20personal\x20Skill\x20','../../core/api-client.js','bool','resolvedSlug','Personal','unknown','trim','str','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','skillCode','appCode','publishInput','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','version','input','appcode','\x20Skill\x20','remoteForPreflight','(unknown)','1576498BrIWvK','318xovEiA','6872444AmfNYP','22cVLuLA','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','diagramValidated','POST','validation','diagram-file','176FFPFdM','warnings','3kbBnGa','status','errors','valid','NAMESPACE_ONLY','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','personal','savedSkill','185297gbjvRj','authRequired','payload','identical','submitted','5528450hsgQvk','accessKey','resolvedVersion','files','company','/publish/validate','PRIVATE','2798044lupKAW','\x20version\x20','dir'];a76_0x3cf5=function(){return _0x26777a;};return a76_0x3cf5();}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 a76_0x3a2f(_0xfdb315,_0x30a361){_0xfdb315=_0xfdb315-0x1eb;const _0x3cf5a0=a76_0x3cf5();let _0x3a2f38=_0x3cf5a0[_0xfdb315];return _0x3a2f38;}import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x38f6ee){const _0x24cb02=a76_0x3a2f,{getRuntimeSkillByCode:_0x86e3f,validateRuntimeSkillPublish:_0x599467}=await import(_0x24cb02(0x221)),{readPushDirectory:_0x233909,resolvePushDirectoryIdentity:_0x586f8c}=await import(_0x24cb02(0x21b));if(!_0x38f6ee[_0x24cb02(0x20e)])throw CliErrors[_0x24cb02(0x209)]();const _0x2dd31a=resolvePushScope(_0x38f6ee),_0x43318b=validateSkillDirectory(_0x38f6ee[_0x24cb02(0x227)](_0x24cb02(0x216)));throwIfSkillValidationFailed(_0x43318b);const {diagram:_0x54b796,sourceFilePath:_0x319864}=await readRequiredSkillDiagramInput(_0x38f6ee[_0x24cb02(0x227)](_0x24cb02(0x1fd))),_0x385aa0=diagramPackageExclusion(_0x319864),_0x43195f=_0x586f8c(_0x43318b[_0x24cb02(0x216)],_0x38f6ee['appCode'],remoteFirstMetadataOptions()),_0x4d73e6=await _0x86e3f(_0x38f6ee['appCode'],_0x43195f[_0x24cb02(0x1eb)]);throwIfBuiltinPushTarget(_0x4d73e6);if(_0x2dd31a==='company'){const _0x51a237=_0x233909(_0x43318b[_0x24cb02(0x216)],_0x38f6ee[_0x24cb02(0x1ec)],{...remoteMissingCompanyReadOptions(),..._0x385aa0}),_0x1177ab=await _0x599467(_0x38f6ee['appCode'],withDiagram(_0x51a237[_0x24cb02(0x1f0)],_0x54b796),{'visibility':_0x24cb02(0x204)});return{'method':'POST','url':_0x24cb02(0x21e)+_0x38f6ee['appCode']+'/publish/validate','body':{'skillCode':_0x51a237['skillCode'],'visibility':_0x24cb02(0x204),'valid':_0x1177ab[_0x24cb02(0x203)],'errors':_0x1177ab[_0x24cb02(0x202)],'warnings':_0x1177ab[_0x24cb02(0x1ff)],'resolvedSlug':_0x1177ab[_0x24cb02(0x223)],'resolvedVersion':_0x1177ab[_0x24cb02(0x20f)],'diagramValidated':_0x1177ab[_0x24cb02(0x1fa)]},'description':_0x24cb02(0x1ee)};}if(_0x4d73e6&&_0x4d73e6[_0x24cb02(0x217)]!==_0x24cb02(0x206))throw CliErrors[_0x24cb02(0x1fc)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x43195f[_0x24cb02(0x1eb)]+_0x24cb02(0x21a)+(_0x4d73e6[_0x24cb02(0x217)]??_0x24cb02(0x225))+'\x22.');const _0x2cf121=_0x233909(_0x43318b[_0x24cb02(0x216)],_0x38f6ee[_0x24cb02(0x1ec)],{..._0x4d73e6?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x385aa0}),_0x4461b9=await _0x599467(_0x38f6ee[_0x24cb02(0x1ec)],withDiagram(_0x2cf121[_0x24cb02(0x1f0)],_0x54b796),{'visibility':_0x24cb02(0x213)});return{'method':_0x24cb02(0x1fb),'url':_0x24cb02(0x21e)+_0x38f6ee[_0x24cb02(0x1ec)]+_0x24cb02(0x212),'body':{'skillCode':_0x2cf121['skillCode'],'visibility':'PRIVATE','valid':_0x4461b9['valid'],'errors':_0x4461b9[_0x24cb02(0x202)],'warnings':_0x4461b9['warnings'],'resolvedSlug':_0x4461b9['resolvedSlug'],'resolvedVersion':_0x4461b9[_0x24cb02(0x20f)],'diagramValidated':_0x4461b9[_0x24cb02(0x1fa)]},'description':_0x24cb02(0x205)};}export async function skillPushExecute(_0x5cd9e9){const _0x52c90c=a76_0x3a2f,{createPersonalRuntimeSkill:_0x164036,downloadRuntimeSkillPackage:_0x11b081,getRuntimeSkillByCode:_0x117214,publishCompanyRuntimeSkill:_0x2c2e63,updatePersonalRuntimeSkill:_0x4eb242,validateRuntimeSkillPublish:_0x3c2ba5}=await import(_0x52c90c(0x221)),{verifyRuntimeSkillPackage:_0x50566f,verifyRuntimeSkillBundle:_0x1110ab,readPushDirectory:_0x24a345,refreshPushDirectoryMetadataFromRemote:_0x3bb070,recordPushedRuntimeSkill:_0xcd858b,resolvePushDirectoryIdentity:_0x19f283}=await import(_0x52c90c(0x21b));if(!_0x5cd9e9['accessKey'])throw CliErrors[_0x52c90c(0x209)]();const _0x46afdb=resolvePushScope(_0x5cd9e9),_0x28d583=_0x5cd9e9[_0x52c90c(0x222)]('confirm-warnings')||_0x5cd9e9[_0x52c90c(0x222)]('confirmWarnings'),_0x564f27=validateSkillDirectory(_0x5cd9e9[_0x52c90c(0x227)]('dir'));throwIfSkillValidationFailed(_0x564f27);const {diagram:_0x8c1c0a,sourceFilePath:_0x14a569}=await readRequiredSkillDiagramInput(_0x5cd9e9[_0x52c90c(0x227)](_0x52c90c(0x1fd))),_0x116649=diagramPackageExclusion(_0x14a569),_0xfb2672=_0x564f27[_0x52c90c(0x216)];let _0x59bae4;if(_0x46afdb===_0x52c90c(0x211)){const _0x2ce089=_0x19f283(_0xfb2672,_0x5cd9e9['appCode'],remoteFirstMetadataOptions()),_0x21234c=await _0x117214(_0x5cd9e9['appCode'],_0x2ce089['skillCode']);throwIfBuiltinPushTarget(_0x21234c);if(_0x21234c)_0x3bb070(_0xfb2672,_0x21234c,_0x5cd9e9[_0x52c90c(0x1ec)]);const _0x4e993b=_0x24a345(_0xfb2672,_0x5cd9e9[_0x52c90c(0x1ec)],{..._0x21234c?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x116649});_0x59bae4={'scope':_0x52c90c(0x211),'payload':_0x4e993b,'publishInput':withDiagram(_0x4e993b[_0x52c90c(0x1f0)],_0x8c1c0a),'remoteForPreflight':_0x21234c,'warnings':[]};}else{const _0x5784aa=_0x5cd9e9['str'](_0x52c90c(0x1f1))[_0x52c90c(0x226)](),_0x4a0040=Boolean(_0x5784aa),_0x3b2459=allowRetargetArgs(_0x4a0040),_0x24f960=_0x19f283(_0xfb2672,_0x5cd9e9[_0x52c90c(0x1ec)],{...remoteFirstMetadataOptions(),..._0x3b2459[0x0]}),_0x1139a1=await _0x117214(_0x5cd9e9['appCode'],_0x24f960[_0x52c90c(0x1eb)]);throwIfBuiltinPushTarget(_0x1139a1);if(_0x1139a1){if(_0x1139a1[_0x52c90c(0x217)]!==_0x52c90c(0x206)){if(_0x4a0040)throw CliErrors[_0x52c90c(0x1fc)](_0x52c90c(0x1f9)+_0x24f960['skillCode']+_0x52c90c(0x21a)+(_0x1139a1[_0x52c90c(0x217)]??_0x52c90c(0x225))+'\x22.');_0x3bb070(_0xfb2672,_0x1139a1,_0x5cd9e9[_0x52c90c(0x1ec)]);}else!_0x4a0040&&_0x3bb070(_0xfb2672,_0x1139a1,_0x5cd9e9['appCode']);}const _0x44150a=_0x24a345(_0xfb2672,_0x5cd9e9[_0x52c90c(0x1ec)],{..._0x1139a1?remotePersonalReadOptions(_0x4a0040,_0x3b2459[0x0]):remoteMissingPersonalReadOptions(_0x3b2459[0x0]),..._0x116649}),_0x23ec37=_0x1139a1?.['scope']==='personal'&&_0x1139a1['skillCode']===_0x44150a[_0x52c90c(0x1eb)]?_0x1139a1:undefined,_0x3a4adb=_0x4a0040&&_0x23ec37?withRetargetExistingMetadata(_0x44150a[_0x52c90c(0x1f0)],_0x23ec37,{'preferInputSkillName':Boolean(_0x44150a[_0x52c90c(0x219)])}):_0x44150a[_0x52c90c(0x1f0)],_0x1b4d03=_0x4a0040?buildRetargetWarning(_0x24f960['metadata'],_0x5cd9e9['appCode']):[];_0x59bae4={'scope':_0x52c90c(0x206),'payload':_0x44150a,'publishInput':withDiagram(_0x3a4adb,_0x8c1c0a),'remoteForPreflight':_0x23ec37,'existing':_0x23ec37,'warnings':[..._0x564f27[_0x52c90c(0x1ff)],..._0x1b4d03]};}const _0x25ae59=await runRemoteContentPreflight({'scope':_0x59bae4[_0x52c90c(0x217)],'remote':_0x59bae4[_0x52c90c(0x1f3)],'publishInput':_0x59bae4[_0x52c90c(0x1ed)],'skillCode':_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)],'appCode':_0x5cd9e9['appCode'],'downloadRuntimeSkillPackage':_0x11b081,'verifyRuntimeSkillBundle':_0x1110ab});if(_0x25ae59[_0x52c90c(0x201)]===_0x52c90c(0x20b))return _0x59bae4[_0x52c90c(0x217)]===_0x52c90c(0x211)?_0xcd858b(_0xfb2672,_0x25ae59['savedSkill'],_0x5cd9e9[_0x52c90c(0x1ec)],{'scope':_0x52c90c(0x211)}):_0xcd858b(_0xfb2672,_0x25ae59[_0x52c90c(0x207)],_0x5cd9e9[_0x52c90c(0x1ec)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25ae59[_0x52c90c(0x207)]),'scope':_0x59bae4[_0x52c90c(0x217)],..._0x59bae4[_0x52c90c(0x217)]===_0x52c90c(0x206)?{'warnings':_0x59bae4[_0x52c90c(0x1ff)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x59bae4[_0x52c90c(0x217)])+_0x52c90c(0x1f2)+_0x59bae4['payload'][_0x52c90c(0x1eb)]+_0x52c90c(0x228)};if(_0x59bae4[_0x52c90c(0x217)]===_0x52c90c(0x211)){const _0x184e90=await _0x3c2ba5(_0x5cd9e9[_0x52c90c(0x1ec)],_0x59bae4['publishInput'],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0x52c90c(0x211),_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)],_0x184e90),throwIfUnconfirmedPublishWarnings('company',_0x59bae4[_0x52c90c(0x20a)]['skillCode'],_0x184e90[_0x52c90c(0x1ff)],_0x28d583);const _0x2f9e2a=await _0x2c2e63(_0x5cd9e9[_0x52c90c(0x1ec)],_0x59bae4[_0x52c90c(0x1ed)],{'confirmWarnings':_0x28d583});return _0xcd858b(_0xfb2672,{..._0x2f9e2a,'files':_0x59bae4[_0x52c90c(0x1ed)][_0x52c90c(0x210)]},_0x5cd9e9['appCode'],{'scope':_0x52c90c(0x211)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2f9e2a),'scope':_0x52c90c(0x211),'reviewState':_0x52c90c(0x20c),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x184e90[_0x52c90c(0x1ff)]}},'message':_0x52c90c(0x218)+_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)]+_0x52c90c(0x215)+(_0x2f9e2a[_0x52c90c(0x1ef)]??_0x52c90c(0x1f4))+'\x20for\x20review'};}const _0x8709bb=await _0x3c2ba5(_0x5cd9e9[_0x52c90c(0x1ec)],_0x59bae4['publishInput'],{'visibility':_0x52c90c(0x213)});throwIfPublishValidationFailed('personal',_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)],_0x8709bb),throwIfUnconfirmedPublishWarnings(_0x52c90c(0x206),_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)],_0x8709bb[_0x52c90c(0x1ff)],_0x28d583);const _0x2725d4={'confirmWarnings':_0x28d583},_0x47242d=_0x59bae4['existing']?await _0x4eb242(_0x59bae4[_0x52c90c(0x20a)]['skillCode'],_0x5cd9e9['appCode'],_0x59bae4['publishInput'],_0x2725d4):await _0x164036(_0x5cd9e9['appCode'],_0x59bae4[_0x52c90c(0x1ed)],_0x2725d4);let _0xe4e3=_0x47242d;if(isMultiFileManifest(_0x59bae4[_0x52c90c(0x1ed)]['files'])){const _0x1d0305=await _0x11b081(_0x52c90c(0x206),_0x47242d[_0x52c90c(0x1eb)]||_0x59bae4['payload']['skillCode'],_0x5cd9e9[_0x52c90c(0x1ec)]);_0x1110ab(_0x59bae4[_0x52c90c(0x1ed)][_0x52c90c(0x210)],_0x1d0305),_0xe4e3={..._0x47242d,'files':_0x59bae4[_0x52c90c(0x1ed)][_0x52c90c(0x210)]};}else{if(isPackageBackedManifest(_0x47242d[_0x52c90c(0x210)])){const _0x4b0e2b=await _0x11b081('personal',_0x47242d[_0x52c90c(0x1eb)]||_0x59bae4[_0x52c90c(0x20a)]['skillCode'],_0x5cd9e9[_0x52c90c(0x1ec)]);_0x50566f(_0x47242d[_0x52c90c(0x210)],_0x4b0e2b);}}return _0xcd858b(_0xfb2672,_0xe4e3,_0x5cd9e9['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x47242d),'warnings':_0x59bae4['warnings'],'validation':{'warnings':_0x8709bb['warnings']},'diagramBound':!![]},'message':_0x59bae4['existing']?_0x52c90c(0x220)+_0x59bae4[_0x52c90c(0x20a)][_0x52c90c(0x1eb)]:'Created\x20personal\x20Skill\x20'+_0x59bae4[_0x52c90c(0x20a)]['skillCode']};}function scopeLabel(_0x16714e){const _0x170507=a76_0x3a2f;return _0x16714e===_0x170507(0x211)?_0x170507(0x21f):_0x170507(0x224);}function withDiagram(_0x54cd90,_0x8cd73f){return{..._0x54cd90,'diagram':_0x8cd73f};}function diagramPackageExclusion(_0x4609dc){return _0x4609dc?{'excludedFilePaths':[_0x4609dc]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cd884,_0x1a7615){const _0x5043c7=a77_0x2796,_0x185942=_0x3cd884();while(!![]){try{const _0x1a6caa=parseInt(_0x5043c7(0x114))/0x1*(parseInt(_0x5043c7(0x135))/0x2)+parseInt(_0x5043c7(0x12c))/0x3*(-parseInt(_0x5043c7(0x138))/0x4)+-parseInt(_0x5043c7(0x122))/0x5*(-parseInt(_0x5043c7(0x125))/0x6)+parseInt(_0x5043c7(0x141))/0x7*(parseInt(_0x5043c7(0x124))/0x8)+parseInt(_0x5043c7(0x119))/0x9*(parseInt(_0x5043c7(0x120))/0xa)+parseInt(_0x5043c7(0x121))/0xb+-parseInt(_0x5043c7(0x140))/0xc;if(_0x1a6caa===_0x1a7615)break;else _0x185942['push'](_0x185942['shift']());}catch(_0x59731b){_0x185942['push'](_0x185942['shift']());}}}(a77_0x38d5,0x7c3cd));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x4831cc){const _0x38bcbd=a77_0x2796,_0xc87cbc=_0x4831cc[_0x38bcbd(0x11e)](_0x38bcbd(0x127))||_0x38bcbd(0x12f);if(_0xc87cbc===_0x38bcbd(0x12f)||_0xc87cbc===_0x38bcbd(0x133))return _0xc87cbc;throw CliErrors[_0x38bcbd(0x13a)](_0x38bcbd(0x128)+_0xc87cbc+'\x22.');}export function allowRetargetArgs(_0x23035d){return _0x23035d?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x5806b0=a77_0x2796;return{'targetScope':_0x5806b0(0x133),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x194d18={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x194d18};}function a77_0x2796(_0x14fa01,_0x4ca18b){_0x14fa01=_0x14fa01-0x112;const _0x38d5af=a77_0x38d5();let _0x2796e6=_0x38d5af[_0x14fa01];return _0x2796e6;}export function remotePersonalReadOptions(_0x552d59,_0x225a3c={}){return{'ignoreInvalidMetadata':!![],..._0x552d59?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x225a3c};}export function throwIfBuiltinPushTarget(_0x189d23){const _0x39edf3=a77_0x2796;if(_0x189d23?.[_0x39edf3(0x127)]!==_0x39edf3(0x11c))return;throw CliErrors[_0x39edf3(0x13a)](_0x39edf3(0x12a)+(_0x189d23[_0x39edf3(0x12e)]??_0x39edf3(0x13f))+_0x39edf3(0x137),_0x39edf3(0x12d));}export function throwIfPublishValidationFailed(_0x45482d,_0x33e264,_0x5221a8){const _0x473a28=a77_0x2796;if(_0x5221a8[_0x473a28(0x13c)][_0x473a28(0x117)]===0x0&&(_0x5221a8['valid']||_0x5221a8[_0x473a28(0x139)][_0x473a28(0x117)]>0x0))return;const _0x3ad56b=_0x5221a8[_0x473a28(0x13c)]['length']>0x0?_0x5221a8['errors']['join'](';\x20'):_0x473a28(0x132),_0x338327=_0x45482d===_0x473a28(0x133)?_0x473a28(0x134):_0x473a28(0x131);throw CliErrors[_0x473a28(0x13a)](_0x338327+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x33e264+'.',_0x3ad56b);}export function throwIfUnconfirmedPublishWarnings(_0x47aaa4,_0x3f497e,_0x42ffc9,_0x1c5bff){const _0x2c1e40=a77_0x2796;if(_0x42ffc9[_0x2c1e40(0x117)]===0x0||_0x1c5bff)return;const _0x15b59f=_0x47aaa4===_0x2c1e40(0x133)?'Company':_0x2c1e40(0x131);throw CliErrors[_0x2c1e40(0x13a)](_0x15b59f+_0x2c1e40(0x12b)+_0x3f497e+'.',[_0x2c1e40(0x115),_0x2c1e40(0x136),_0x2c1e40(0x11a),_0x2c1e40(0x130)+_0x42ffc9[_0x2c1e40(0x144)](';\x20')][_0x2c1e40(0x144)]('\x20'));}export function buildRetargetWarning(_0x322c89,_0x39c85c){const _0x524cea=a77_0x2796;if(!_0x322c89?.[_0x524cea(0x116)]||_0x322c89['appCode']===_0x39c85c)return[];return[{'level':_0x524cea(0x143),'ruleId':'skill-metadata-appcode-retargeted','file':_0x524cea(0x129),'message':_0x524cea(0x118)+_0x322c89[_0x524cea(0x116)]+_0x524cea(0x11b)+_0x39c85c+_0x524cea(0x126),'suggestion':_0x524cea(0x13e)}];}export async function runRemoteContentPreflight(_0xd8b671){const _0x7e8983=a77_0x2796;if(!_0xd8b671[_0x7e8983(0x13d)]||_0xd8b671[_0x7e8983(0x13d)][_0x7e8983(0x127)]!==_0xd8b671['scope']||!_0xd8b671[_0x7e8983(0x11d)][_0x7e8983(0x113)])return{'status':'not-applicable'};const _0x45d36b=_0xd8b671[_0x7e8983(0x13d)][_0x7e8983(0x12e)]||_0xd8b671[_0x7e8983(0x12e)];if(!_0x45d36b)return{'status':_0x7e8983(0x13b)};const _0xfd49c4=await _0xd8b671[_0x7e8983(0x11f)](_0xd8b671[_0x7e8983(0x127)],_0x45d36b,_0xd8b671[_0x7e8983(0x116)],_0xd8b671[_0x7e8983(0x13d)][_0x7e8983(0x112)]);try{_0xd8b671['verifyRuntimeSkillBundle'](_0xd8b671['publishInput']['files'],_0xfd49c4);}catch{return{'status':_0x7e8983(0x123)};}return{'status':'identical','savedSkill':{..._0xd8b671[_0x7e8983(0x13d)],'content':_0xd8b671['publishInput'][_0x7e8983(0x142)],'files':_0xd8b671[_0x7e8983(0x11d)][_0x7e8983(0x113)]}};}function a77_0x38d5(){const _0x39e578=['join','version','files','79eMZmRV','Review\x20each\x20warning\x20before\x20continuing.','appCode','length','Local\x20Skill\x20metadata\x20appCode\x20','45MPPIbM','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','builtin','publishInput','str','downloadRuntimeSkillPackage','740320lcsDQz','755667GnTJcu','30BGKqaV','different','3311032rNOMxB','639930NMKnsa','\x20after\x20successful\x20push.','scope','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','lovrabet.skill.json','Builtin\x20Skill\x20','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','12XiPpaB','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','skillCode','personal','Warnings:\x20','Personal','SkillHub\x20validation\x20returned\x20invalid.','company','Company','15838kiCZuh','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','\x20cannot\x20be\x20pushed.','698044ykOqDO','warnings','validation','not-applicable','errors','remote','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','(unknown)','10936152nugsyQ','7noiHXB','content','warning'];a77_0x38d5=function(){return _0x39e578;};return a77_0x38d5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a78_0x508c(_0x4efd2d,_0x23138d){_0x4efd2d=_0x4efd2d-0x161;const _0xcb37cb=a78_0xcb37();let _0x508cc5=_0xcb37cb[_0x4efd2d];return _0x508cc5;}(function(_0xa460e,_0x219870){const _0x28b6b2=a78_0x508c,_0x37582c=_0xa460e();while(!![]){try{const _0x4878a4=parseInt(_0x28b6b2(0x176))/0x1+-parseInt(_0x28b6b2(0x16f))/0x2*(parseInt(_0x28b6b2(0x167))/0x3)+parseInt(_0x28b6b2(0x173))/0x4*(parseInt(_0x28b6b2(0x16b))/0x5)+parseInt(_0x28b6b2(0x16a))/0x6*(parseInt(_0x28b6b2(0x161))/0x7)+parseInt(_0x28b6b2(0x179))/0x8*(parseInt(_0x28b6b2(0x168))/0x9)+parseInt(_0x28b6b2(0x169))/0xa*(parseInt(_0x28b6b2(0x16c))/0xb)+-parseInt(_0x28b6b2(0x175))/0xc;if(_0x4878a4===_0x219870)break;else _0x37582c['push'](_0x37582c['shift']());}catch(_0x2379ba){_0x37582c['push'](_0x37582c['shift']());}}}(a78_0xcb37,0xa427d));function a78_0xcb37(){const _0x337b91=['\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','skillName','16dTNBtb','warning','\x20after\x20successful\x20push.','7shigks','isArray','description','version','skill-metadata-appcode-retargeted','Local\x20Skill\x20metadata\x20appCode\x20','1242609ZUatUb','1858023ZohzXs','1621970jyXLsq','3839442HyIBfv','185JBHfXR','88yKxVey','appCode','preferInputSkillName','6MgcHZc','tags','sourceSessionId','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','66916OnlCoL','lovrabet.skill.json','24486768vCncYG','986204MPYGNu'];a78_0xcb37=function(){return _0x337b91;};return a78_0xcb37();}export function withRetargetExistingMetadata(_0x35efb9,_0x518689,_0x58fdfc={}){const _0x26f1e8=a78_0x508c,_0x295e35=_0x58fdfc[_0x26f1e8(0x16e)]?_0x35efb9['skillName']??_0x518689['skillName']:_0x518689[_0x26f1e8(0x178)]??_0x35efb9[_0x26f1e8(0x178)];return{..._0x35efb9,'skillName':_0x295e35,'description':_0x518689[_0x26f1e8(0x163)]??_0x35efb9[_0x26f1e8(0x163)],'tags':Array[_0x26f1e8(0x162)](_0x518689['tags'])?_0x518689[_0x26f1e8(0x170)]:_0x35efb9[_0x26f1e8(0x170)],'version':_0x518689[_0x26f1e8(0x164)]??_0x35efb9['version'],'sourceSessionId':_0x518689[_0x26f1e8(0x171)]??_0x35efb9[_0x26f1e8(0x171)]};}export function buildRetargetWarning(_0x3a047f,_0x498df0){const _0x40297a=a78_0x508c;if(!_0x3a047f?.[_0x40297a(0x16d)]||_0x3a047f['appCode']===_0x498df0)return[];return[{'level':_0x40297a(0x17a),'ruleId':_0x40297a(0x165),'file':_0x40297a(0x174),'message':_0x40297a(0x166)+_0x3a047f[_0x40297a(0x16d)]+_0x40297a(0x177)+_0x498df0+_0x40297a(0x17b),'suggestion':_0x40297a(0x172)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa3b1da,_0x16f89d){const _0x55ae35=a79_0x127b,_0x2883a0=_0xa3b1da();while(!![]){try{const _0x331fd0=-parseInt(_0x55ae35(0x1f1))/0x1+parseInt(_0x55ae35(0x1f8))/0x2+-parseInt(_0x55ae35(0x1f4))/0x3*(parseInt(_0x55ae35(0x1ef))/0x4)+-parseInt(_0x55ae35(0x1f0))/0x5*(-parseInt(_0x55ae35(0x1f5))/0x6)+parseInt(_0x55ae35(0x1ed))/0x7+-parseInt(_0x55ae35(0x1f6))/0x8*(parseInt(_0x55ae35(0x1eb))/0x9)+-parseInt(_0x55ae35(0x1f9))/0xa*(-parseInt(_0x55ae35(0x1f2))/0xb);if(_0x331fd0===_0x16f89d)break;else _0x2883a0['push'](_0x2883a0['shift']());}catch(_0x2f15ba){_0x2883a0['push'](_0x2883a0['shift']());}}}(a79_0x5643,0x39f6a));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x223f25){const _0x240b46=a79_0x127b,_0xb60ae8=_0x223f25[_0x240b46(0x1f3)]();if(!_0xb60ae8||_0xb60ae8===_0x240b46(0x1ec))return['personal',_0x240b46(0x1ee)];if(_0xb60ae8===_0x240b46(0x1f7)||_0xb60ae8===_0x240b46(0x1ee))return[_0xb60ae8];throw CliErrors[_0x240b46(0x1ea)](_0x240b46(0x1fa)+_0x223f25);}export function normalizeListScope(_0x3ae6ff){const _0x44f4ec=a79_0x127b,_0x14823c=_0x3ae6ff[_0x44f4ec(0x1f3)]();if(!_0x14823c)return'all';if(_0x14823c===_0x44f4ec(0x1f7)||_0x14823c===_0x44f4ec(0x1ee)||_0x14823c===_0x44f4ec(0x1ec))return _0x14823c;throw CliErrors[_0x44f4ec(0x1ea)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x3ae6ff);}export function shouldListScope(_0x3fbef9,_0x20d757){const _0x4e9adf=a79_0x127b;if(_0x3fbef9===_0x4e9adf(0x1ec))return!![];return _0x3fbef9===_0x20d757;}export function listScopeToRuntimeScopes(_0x12100f){const _0x32f33c=a79_0x127b;if(_0x12100f===_0x32f33c(0x1ec))return['personal',_0x32f33c(0x1ee)];return[_0x12100f===_0x32f33c(0x1ee)?'company':_0x12100f];}export function listScopeToRemoteScope(_0x547bbb){return _0x547bbb;}function a79_0x127b(_0x36f226,_0x51fcef){_0x36f226=_0x36f226-0x1ea;const _0x56432a=a79_0x5643();let _0x127b85=_0x56432a[_0x36f226];return _0x127b85;}function a79_0x5643(){const _0x26ae69=['1891218xSBRCJ','company','4GmPrGg','5210KKBhgn','195235zJOBpx','231uhJlij','trim','1373898IQLUBk','2208tnQZyo','8UuoTYQ','personal','210998sNhDwW','182870tiqyAF','Unsupported\x20Skill\x20sync\x20scope:\x20','validation','2272833aeeMCn','all'];a79_0x5643=function(){return _0x26ae69;};return a79_0x5643();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x191611,_0x54bf5e){var _0x4d9318=a80_0x4942,_0x1683e8=_0x191611();while(!![]){try{var _0x39d1de=parseInt(_0x4d9318(0x15a))/0x1+parseInt(_0x4d9318(0x156))/0x2*(parseInt(_0x4d9318(0x152))/0x3)+-parseInt(_0x4d9318(0x155))/0x4+parseInt(_0x4d9318(0x150))/0x5+-parseInt(_0x4d9318(0x159))/0x6+-parseInt(_0x4d9318(0x163))/0x7*(-parseInt(_0x4d9318(0x153))/0x8)+-parseInt(_0x4d9318(0x161))/0x9;if(_0x39d1de===_0x54bf5e)break;else _0x1683e8['push'](_0x1683e8['shift']());}catch(_0x35bf58){_0x1683e8['push'](_0x1683e8['shift']());}}}(a80_0xb156,0x29c8c));function a80_0x4942(_0x1a1f6f,_0x58d19a){_0x1a1f6f=_0x1a1f6f-0x150;var _0xb15672=a80_0xb156();var _0x49422a=_0xb15672[_0x1a1f6f];return _0x49422a;}export function summarizeRuntimeSkill(_0x4f6b71){var _0x5a3f22=a80_0x4942;return{'id':_0x4f6b71['id'],'skillCode':_0x4f6b71[_0x5a3f22(0x15d)],'skillName':_0x4f6b71['skillName'],'scope':_0x4f6b71[_0x5a3f22(0x15b)],'version':_0x4f6b71[_0x5a3f22(0x151)],'readonly':_0x4f6b71[_0x5a3f22(0x15f)]};}export function summarizeLocalRuntimeSkill(_0xd1e6f7){var _0x2709de=a80_0x4942;return{'id':_0xd1e6f7['id'],'skillCode':_0xd1e6f7[_0x2709de(0x15d)],'skillName':_0xd1e6f7['skillName'],'scope':_0xd1e6f7[_0x2709de(0x15b)],'appCode':_0xd1e6f7['appCode'],'version':_0xd1e6f7[_0x2709de(0x151)],'status':_0xd1e6f7[_0x2709de(0x157)],'readonly':_0xd1e6f7['readonly'],'tags':_0xd1e6f7[_0x2709de(0x154)],'dir':_0xd1e6f7[_0x2709de(0x160)],'cacheDir':_0xd1e6f7[_0x2709de(0x15c)],'skillMdPath':_0xd1e6f7['skillMdPath'],'metadataPath':_0xd1e6f7[_0x2709de(0x15e)],'linkedPaths':_0xd1e6f7[_0x2709de(0x158)],'contentHash':_0xd1e6f7[_0x2709de(0x162)],'treeHash':_0xd1e6f7['treeHash'],'pulledAt':_0xd1e6f7['pulledAt']};}function a80_0xb156(){var _0x23d630=['status','linkedPaths','1979850Qurcjy','300858KFzueC','scope','cacheDir','skillCode','metadataPath','readonly','dir','1394082DqutzO','contentHash','207865Ojazyf','272780rMnbcB','version','9NFxoOw','80VARDkW','tags','198864GorCAY','35582pzogly'];a80_0xb156=function(){return _0x23d630;};return a80_0xb156();}
|