@lovrabet/lovrabet-cli 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.d.ts +15 -0
- package/lib/commands/approval/index.js +1 -0
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +83 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.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/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/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.d.ts +5 -0
- package/lib/utils/positive-safe-integer.js +1 -0
- package/lib/utils/redaction.d.ts +17 -0
- package/lib/utils/redaction.js +1 -0
- 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 +3 -2
- package/skills/lovrabet/references/lovrabet-approval-workflow.md +73 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66_0x25f3(){const _0xde6b96=['350vHQQHD','appCode','skillCode','isInteger','1885905WpoxXR','diagram-show','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','skill','Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version',';\x20next\x20write\x20expects\x20revision\x20','scope','str','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','\x20Skill\x20diagram\x20for\x20','2gygMOZ','action','created','expected-diagram-revision','version','unchanged','20QaLhov','write','trim','1776252ANPnOA','539493JSlniB','diagram-push','diagram-validate','read','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','Skill\x20diagram\x20for\x20','personal','442090UZFAtq','num','expectedDiagramRevision','9wSzjIr','Found\x20Skill\x20diagram\x20for\x20','Created','company','1187430QiozKw','diagram-file','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','25242avIhAo','Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','1855472PupNOj'];a66_0x25f3=function(){return _0xde6b96;};return a66_0x25f3();}const a66_0x479108=a66_0x2c2b;(function(_0xf78968,_0x525180){const _0x369c95=a66_0x2c2b,_0x554685=_0xf78968();while(!![]){try{const _0x7928aa=parseInt(_0x369c95(0x1dd))/0x1*(-parseInt(_0x369c95(0x1ff))/0x2)+parseInt(_0x369c95(0x1eb))/0x3+-parseInt(_0x369c95(0x1dc))/0x4+-parseInt(_0x369c95(0x1d9))/0x5*(-parseInt(_0x369c95(0x1ee))/0x6)+-parseInt(_0x369c95(0x1f5))/0x7+parseInt(_0x369c95(0x1f0))/0x8*(-parseInt(_0x369c95(0x1e7))/0x9)+-parseInt(_0x369c95(0x1f1))/0xa*(-parseInt(_0x369c95(0x1e4))/0xb);if(_0x7928aa===_0x525180)break;else _0x554685['push'](_0x554685['shift']());}catch(_0x552a75){_0x554685['push'](_0x554685['shift']());}}}(a66_0x25f3,0x51a2f));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';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 a66_0x2c2b(_0xc1bd9f,_0x2e52ce){_0xc1bd9f=_0xc1bd9f-0x1d6;const _0x25f37f=a66_0x25f3();let _0x2c2b87=_0x25f37f[_0xc1bd9f];return _0x2c2b87;}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(_0x41ef53){const _0x2c0b68=a66_0x2c2b,_0x334ed5=_0x41ef53[_0x2c0b68(0x1fc)]('skill-code')[_0x2c0b68(0x1db)](),_0x52ccb4=_0x41ef53[_0x2c0b68(0x1fc)]('version')[_0x2c0b68(0x1db)](),_0x3f6a12=_0x41ef53[_0x2c0b68(0x1fc)]('scope');if(!_0x334ed5||!_0x52ccb4||_0x3f6a12!==_0x2c0b68(0x1e3)&&_0x3f6a12!==_0x2c0b68(0x1ea))throw CliErrors['validation'](_0x2c0b68(0x1f7));return{'skillCode':_0x334ed5,'version':_0x52ccb4,'scope':_0x3f6a12};}async function readDiagramWriteInput(_0x511f73){const _0x3db3a6=a66_0x2c2b,_0x1477e4=_0x511f73[_0x3db3a6(0x1e5)](_0x3db3a6(0x1d6)),_0xa42a69=_0x511f73[_0x3db3a6(0x1fc)]('source-fingerprint')[_0x3db3a6(0x1db)]();if(!Number[_0x3db3a6(0x1f4)](_0x1477e4)||_0x1477e4<0x0)throw CliErrors['validation'](_0x3db3a6(0x1fd));if(!/^sha256:[0-9a-f]{64}$/['test'](_0xa42a69))throw CliErrors['validation'](_0x3db3a6(0x1e1));return{'expectedDiagramRevision':_0x1477e4,'sourceFingerprint':_0xa42a69,'diagram':await readRequiredSkillDiagram(_0x511f73[_0x3db3a6(0x1fc)](_0x3db3a6(0x1ec)))};}export const diagramValidateCommand={'service':a66_0x479108(0x1f8),'command':a66_0x479108(0x1df),'description':a66_0x479108(0x1f9),'risk':a66_0x479108(0x1e0),'flags':WRITE_FLAGS,async 'execute'(_0x409bb7){const _0x54b260=a66_0x479108,_0xa7b462=readDiagramTarget(_0x409bb7),_0x1365e7=await validateRuntimeSkillVersionDiagram(_0x409bb7[_0x54b260(0x1f2)],_0xa7b462[_0x54b260(0x1f3)],_0xa7b462[_0x54b260(0x1d7)],_0xa7b462[_0x54b260(0x1fb)],await readDiagramWriteInput(_0x409bb7));return{'ok':!![],'data':_0x1365e7,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0xa7b462[_0x54b260(0x1f3)]+'@'+_0xa7b462[_0x54b260(0x1d7)]+'.'};}};export const diagramPushCommand={'service':'skill','command':a66_0x479108(0x1de),'description':a66_0x479108(0x1ef),'risk':a66_0x479108(0x1da),'confirmationDescription':'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.','flags':WRITE_FLAGS,async 'execute'(_0x22dba2){const _0x3eb159=a66_0x479108,_0x429150=readDiagramTarget(_0x22dba2),_0x25e491=await putRuntimeSkillVersionDiagram(_0x22dba2[_0x3eb159(0x1f2)],_0x429150[_0x3eb159(0x1f3)],_0x429150[_0x3eb159(0x1d7)],_0x429150['scope'],await readDiagramWriteInput(_0x22dba2));return{'ok':!![],'data':_0x25e491,'message':_0x25e491[_0x3eb159(0x200)]===_0x3eb159(0x1d8)?_0x3eb159(0x1e2)+_0x429150['skillCode']+'@'+_0x429150[_0x3eb159(0x1d7)]+'\x20is\x20unchanged.':(_0x25e491['action']===_0x3eb159(0x201)?_0x3eb159(0x1e9):'Updated')+_0x3eb159(0x1fe)+_0x429150['skillCode']+'@'+_0x429150[_0x3eb159(0x1d7)]+'.'};}};export const diagramShowCommand={'service':'skill','command':a66_0x479108(0x1f6),'description':a66_0x479108(0x1ed),'risk':a66_0x479108(0x1e0),'flags':TARGET_FLAGS,async 'execute'(_0x1eb491){const _0x3b374b=a66_0x479108,_0x2ff5be=readDiagramTarget(_0x1eb491),_0x539209=await getRuntimeSkillVersionDiagram(_0x1eb491[_0x3b374b(0x1f2)],_0x2ff5be[_0x3b374b(0x1f3)],_0x2ff5be[_0x3b374b(0x1d7)],_0x2ff5be[_0x3b374b(0x1fb)]);return{'ok':!![],'data':_0x539209,'message':_0x539209['found']?_0x3b374b(0x1e8)+_0x2ff5be['skillCode']+'@'+_0x2ff5be[_0x3b374b(0x1d7)]+_0x3b374b(0x1fa)+_0x539209['expectedDiagramRevision']+'.':'No\x20Skill\x20diagram\x20is\x20stored\x20for\x20'+_0x2ff5be[_0x3b374b(0x1f3)]+'@'+_0x2ff5be['version']+';\x20first\x20write\x20expects\x20revision\x20'+_0x539209[_0x3b374b(0x1e6)]+'.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x386642=a67_0x10dc;(function(_0x5d5074,_0x41383a){const _0x3fa243=a67_0x10dc,_0x202eee=_0x5d5074();while(!![]){try{const _0x2fd716=parseInt(_0x3fa243(0xd7))/0x1*(parseInt(_0x3fa243(0xff))/0x2)+parseInt(_0x3fa243(0xdd))/0x3+parseInt(_0x3fa243(0xde))/0x4*(parseInt(_0x3fa243(0xe9))/0x5)+-parseInt(_0x3fa243(0xd5))/0x6+-parseInt(_0x3fa243(0xdf))/0x7*(parseInt(_0x3fa243(0xf0))/0x8)+-parseInt(_0x3fa243(0xf4))/0x9*(-parseInt(_0x3fa243(0xfc))/0xa)+-parseInt(_0x3fa243(0xe0))/0xb;if(_0x2fd716===_0x41383a)break;else _0x202eee['push'](_0x202eee['shift']());}catch(_0x2e138e){_0x202eee['push'](_0x202eee['shift']());}}}(a67_0x3831,0x3a37e));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a67_0x3831(){const _0x5e7e04=['7416FFHgXl','install','trim','code','updated','\x20personal\x20and\x20','personal','removed','4740WWTroj','created','version','839722TiwMXo','2824920rblpTR','skillRoots','1Lgsnln','action','all','appCode','project','from','88458eVjcOT','861256rvqjKu','14987iSAqAz','2887016IlDSdd','includes','global','company','skipped','skillCode','filter','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','length','5siEGUb','accessKey','map','production','str','reduce','bool','312cWoOzC','scope','skill','force'];a67_0x3831=function(){return _0x5e7e04;};return a67_0x3831();}function a67_0x10dc(_0x5ebc5f,_0x13bdf8){_0x5ebc5f=_0x5ebc5f-0xd5;const _0x383186=a67_0x3831();let _0x10dc7e=_0x383186[_0x5ebc5f];return _0x10dc7e;}import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a67_0x386642(0xf2),'command':a67_0x386642(0xf5),'description':'Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x3f2ed5){return syncRuntimeSkills(_0x3f2ed5);}};async function syncRuntimeSkills(_0x15fc1d){const _0x44a6e5=a67_0x386642,{downloadRuntimeSkillPackage:_0x4b39d5,listRuntimeSkills:_0x1b1bd2}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x3a21e4,materializeRuntimeSkill:_0x38f70a,pruneStaleRuntimeSkillCache:_0xcd0877,pruneStaleRuntimeSkillLinks:_0x453f62,resolveRuntimeSkillInstallTarget:_0x177b28,reuseMaterializedRuntimeSkill:_0x409954}=await import('../../../skills/runtime-skill-sync.js'),_0x3e4223=_0x15fc1d['str'](_0x44a6e5(0xf7)),_0x29f1d7=normalizeSyncScopes(_0x15fc1d[_0x44a6e5(0xed)](_0x44a6e5(0xf1))),_0x129493=_0x15fc1d['envName']??_0x44a6e5(0xec),_0x556ce4=_0x15fc1d[_0x44a6e5(0xea)],_0x1221a2=_0x15fc1d[_0x44a6e5(0xef)](_0x44a6e5(0xf3));if(!_0x556ce4)throw CliErrors['authRequired'](_0x44a6e5(0xe7));const _0x1cff14=_0x177b28(_0x15fc1d[_0x44a6e5(0xda)],_0x15fc1d[_0x44a6e5(0xef)](_0x44a6e5(0xdb))?_0x44a6e5(0xdb):_0x44a6e5(0xe2)),_0x473005=_0x177b28(_0x15fc1d[_0x44a6e5(0xda)],_0x1cff14[_0x44a6e5(0xf1)]===_0x44a6e5(0xdb)?'global':'project'),_0x599f77=await _0x1b1bd2({'appCode':_0x15fc1d[_0x44a6e5(0xda)],'scope':_0x29f1d7['length']===0x1?_0x29f1d7[0x0]:_0x44a6e5(0xd9),'code':_0x3e4223['trim']()||undefined}),_0x5be9b3=_0x29f1d7[_0x44a6e5(0xe1)](_0x44a6e5(0xfa))?_0x599f77[_0x44a6e5(0xfa)]:[],_0x4b508e=_0x29f1d7[_0x44a6e5(0xe1)]('company')?_0x599f77['company']:[],_0x4ca2fb=new Set([..._0x5be9b3[_0x44a6e5(0xeb)](_0xebeaaa=>_0xebeaaa['skillCode']?.[_0x44a6e5(0xf6)]())[_0x44a6e5(0xe6)](_0x1ed19e=>Boolean(_0x1ed19e)),..._0x4b508e['map'](_0x4f05d3=>_0x4f05d3[_0x44a6e5(0xe5)]?.['trim']())[_0x44a6e5(0xe6)](_0x2a6ba9=>Boolean(_0x2a6ba9))]),_0x5519a2=_0x3e4223[_0x44a6e5(0xf6)]()?[_0x3e4223[_0x44a6e5(0xf6)]()]:undefined,_0x2978b3=_0x29f1d7[_0x44a6e5(0xe8)]===0x2&&_0x29f1d7[_0x44a6e5(0xe1)]('personal')&&_0x29f1d7['includes'](_0x44a6e5(0xe3)),_0x58868d=_0x2978b3?_0x453f62(_0x1cff14,_0x4ca2fb,_0x5519a2):[],_0x5842c1=_0xcd0877({'env':_0x129493,'accessKey':_0x556ce4,'appCode':_0x15fc1d[_0x44a6e5(0xda)],'activeSkillCodes':_0x4ca2fb,'pruneSkillCodes':_0x5519a2,'scopes':_0x29f1d7,'protectedLinkRoots':_0x473005[_0x44a6e5(0xd6)]}),_0x3ab63d=[..._0x5be9b3['map'](_0x3b9042=>({'skill':_0x3b9042,'scope':_0x44a6e5(0xfa)})),..._0x4b508e[_0x44a6e5(0xeb)](_0x2b7d7c=>({'skill':_0x2b7d7c,'scope':_0x44a6e5(0xe3)}))],_0xea4088=await mapConcurrent(_0x3ab63d,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x51fd2a,scope:_0x51685d})=>{const _0x27fe04=_0x44a6e5,_0x2bc1aa=_0x409954(_0x51fd2a,_0x51685d,{'env':_0x129493,'accessKey':_0x556ce4,'appCode':_0x15fc1d['appCode']});if(_0x2bc1aa)return _0x2bc1aa;return _0x38f70a(_0x51fd2a,_0x51685d,{'env':_0x129493,'accessKey':_0x556ce4,'appCode':_0x15fc1d[_0x27fe04(0xda)],'force':_0x1221a2,'packageBytes':await downloadSkillPackage(_0x51fd2a,_0x51685d,_0x15fc1d[_0x27fe04(0xda)],_0x4b39d5)});}),_0x5c4157=_0x3a21e4(_0xea4088,_0x1cff14),_0x57f1fd=countLinkActions(_0x5c4157);return{'ok':!![],'data':{'appCode':_0x15fc1d['appCode'],..._0x1cff14[_0x44a6e5(0xf1)]==='project'?{'installTarget':{'scope':_0x1cff14[_0x44a6e5(0xf1)],'skillRoots':[..._0x1cff14[_0x44a6e5(0xd6)]]}}:{},'personal':_0x5be9b3[_0x44a6e5(0xe8)],'company':_0x4b508e[_0x44a6e5(0xe8)],'materialized':_0xea4088['length'],'links':{'total':_0x5c4157[_0x44a6e5(0xe8)],'created':_0x57f1fd[_0x44a6e5(0xfd)]??0x0,'updated':_0x57f1fd[_0x44a6e5(0xf8)]??0x0,'unchanged':_0x57f1fd['unchanged']??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x58868d[_0x44a6e5(0xe6)](_0xca588a=>_0xca588a[_0x44a6e5(0xd8)]===_0x44a6e5(0xfb))[_0x44a6e5(0xe8)],'cacheDirs':_0x5842c1[_0x44a6e5(0xe6)](_0x260e11=>_0x260e11[_0x44a6e5(0xd8)]===_0x44a6e5(0xfb))[_0x44a6e5(0xe8)],'skipped':[..._0x58868d,..._0x5842c1][_0x44a6e5(0xe6)](_0x5886af=>_0x5886af[_0x44a6e5(0xd8)]===_0x44a6e5(0xe4))[_0x44a6e5(0xe8)]},'skills':{'personal':_0x5be9b3[_0x44a6e5(0xeb)](summarizeRuntimeSkill),'company':_0x4b508e['map'](summarizeRuntimeSkill)}},'message':'Installed\x20'+_0x5be9b3[_0x44a6e5(0xe8)]+_0x44a6e5(0xf9)+_0x4b508e[_0x44a6e5(0xe8)]+'\x20company\x20Skill(s).'};}async function mapConcurrent(_0x8cbc0c,_0x135cd8,_0x2d42f1){const _0xa65859=a67_0x386642,_0x365084=new Array(_0x8cbc0c[_0xa65859(0xe8)]);let _0x2e1b8a=0x0;const _0x176c2d=Array[_0xa65859(0xdc)]({'length':Math['min'](_0x135cd8,_0x8cbc0c['length'])},async()=>{const _0x3a548d=_0xa65859;while(_0x2e1b8a<_0x8cbc0c[_0x3a548d(0xe8)]){const _0x38cf89=_0x2e1b8a;_0x2e1b8a+=0x1,_0x365084[_0x38cf89]=await _0x2d42f1(_0x8cbc0c[_0x38cf89]);}});return await Promise[_0xa65859(0xd9)](_0x176c2d),_0x365084;}async function downloadSkillPackage(_0xe36fbb,_0x5220f5,_0x270e40,_0x5b4c16){const _0x26946f=a67_0x386642,_0x3a982f=_0xe36fbb[_0x26946f(0xfe)]?.['trim']();return _0x3a982f?_0x5b4c16(_0x5220f5,_0xe36fbb[_0x26946f(0xe5)],_0x270e40,_0x3a982f):_0x5b4c16(_0x5220f5,_0xe36fbb['skillCode'],_0x270e40);}function countLinkActions(_0x58cf7f){const _0x5a03b4=a67_0x386642;return _0x58cf7f[_0x5a03b4(0xee)]((_0xf276a0,_0x27a545)=>{const _0x179131=_0x5a03b4;return _0xf276a0[_0x27a545['action']]=(_0xf276a0[_0x27a545[_0x179131(0xd8)]]??0x0)+0x1,_0xf276a0;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4602e8=a68_0x3cc7;(function(_0x104504,_0x257952){const _0x3b0fde=a68_0x3cc7,_0x4336d0=_0x104504();while(!![]){try{const _0x501727=-parseInt(_0x3b0fde(0x1e3))/0x1+-parseInt(_0x3b0fde(0x1e0))/0x2*(-parseInt(_0x3b0fde(0x1fe))/0x3)+-parseInt(_0x3b0fde(0x1ea))/0x4+-parseInt(_0x3b0fde(0x1e1))/0x5*(parseInt(_0x3b0fde(0x1e6))/0x6)+parseInt(_0x3b0fde(0x1eb))/0x7+parseInt(_0x3b0fde(0x1df))/0x8*(parseInt(_0x3b0fde(0x1fb))/0x9)+-parseInt(_0x3b0fde(0x1ff))/0xa*(parseInt(_0x3b0fde(0x1ec))/0xb);if(_0x501727===_0x257952)break;else _0x4336d0['push'](_0x4336d0['shift']());}catch(_0x58979c){_0x4336d0['push'](_0x4336d0['shift']());}}}(a68_0x2b30,0x93f12));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';function a68_0x2b30(){const _0x4e7b6c=['authRequired','map','production','global','\x20remote\x20Skill(s).','\x20local\x20Skill(s).','project','company','9wGuVuH','../../../skills/runtime-skill-sync.js','read','54255wCFaMG','370mJKmOt','Listed\x20','personal','remote','scope','3262408lnaGzB','98rKGMIZ','295EEtTWb','../../../core/api-client.js','175604sGeBNq','code','length','83766ZaRObL','bool','trim','list','410476oIlsZJ','7922859kWYswY','213433uciUAK','str','filter','local','skill','appCode','builtin'];a68_0x2b30=function(){return _0x4e7b6c;};return a68_0x2b30();}import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';function a68_0x3cc7(_0x5bf097,_0x1c2958){_0x5bf097=_0x5bf097-0x1de;const _0x2b30d3=a68_0x2b30();let _0x3cc7f8=_0x2b30d3[_0x5bf097];return _0x3cc7f8;}export const listCommand={'service':a68_0x4602e8(0x1f0),'command':a68_0x4602e8(0x1e9),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a68_0x4602e8(0x1fd),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x559bdb){const _0x2d6097=a68_0x4602e8,_0x252b45=_0x559bdb[_0x2d6097(0x1ed)](_0x2d6097(0x1e4)),_0x178225=normalizeListScope(_0x559bdb[_0x2d6097(0x1ed)](_0x2d6097(0x1de)));if(_0x559bdb[_0x2d6097(0x1e7)](_0x2d6097(0x1ef))){const _0x14cc91=_0x559bdb['accessKey'];if(!_0x14cc91)throw CliErrors[_0x2d6097(0x1f3)]();const {listLocalRuntimeSkills:_0x1525c0,resolveRuntimeSkillInstallTarget:_0x4163a7}=await import(_0x2d6097(0x1fc)),_0x8c9008=_0x4163a7(_0x559bdb[_0x2d6097(0x1f1)],_0x559bdb[_0x2d6097(0x1e7)](_0x2d6097(0x1f9))?'project':_0x2d6097(0x1f6)),_0x55def2=_0x1525c0({'env':_0x559bdb['envName']??_0x2d6097(0x1f5),'accessKey':_0x14cc91,'appCode':_0x559bdb[_0x2d6097(0x1f1)],'scopes':listScopeToRuntimeScopes(_0x178225),'code':_0x252b45[_0x2d6097(0x1e8)]()||undefined},_0x8c9008),_0x3a5e00=groupLocalRuntimeSkills(_0x55def2);return{'ok':!![],'data':{'appCode':_0x559bdb[_0x2d6097(0x1f1)],'source':_0x2d6097(0x1ef),..._0x8c9008[_0x2d6097(0x1de)]===_0x2d6097(0x1f9)?{'installScope':_0x8c9008[_0x2d6097(0x1de)]}:{},'scope':_0x178225,'total':_0x55def2[_0x2d6097(0x1e5)],'personal':_0x3a5e00[_0x2d6097(0x201)][_0x2d6097(0x1e5)],'company':_0x3a5e00[_0x2d6097(0x1fa)]['length'],'items':_0x55def2[_0x2d6097(0x1f4)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3a5e00['personal']['map'](summarizeLocalRuntimeSkill),'company':_0x3a5e00['company'][_0x2d6097(0x1f4)](summarizeLocalRuntimeSkill)}},'message':_0x2d6097(0x200)+_0x55def2['length']+_0x2d6097(0x1f8)};}const {listRuntimeSkills:_0x210256}=await import(_0x2d6097(0x1e2)),_0x424e4e=await _0x210256({'appCode':_0x559bdb['appCode'],'scope':listScopeToRemoteScope(_0x178225),'code':_0x252b45['trim']()||undefined}),_0xe465ba=shouldListScope(_0x178225,'personal')?_0x424e4e['personal']??[]:[],_0x3991aa=shouldListScope(_0x178225,_0x2d6097(0x1fa))?_0x424e4e[_0x2d6097(0x1fa)]??[]:[],_0x5b9e05=[..._0xe465ba,..._0x3991aa];return{'ok':!![],'data':{'appCode':_0x559bdb[_0x2d6097(0x1f1)],'source':_0x2d6097(0x202),'scope':_0x178225,'total':_0x5b9e05[_0x2d6097(0x1e5)],'personal':_0xe465ba[_0x2d6097(0x1e5)],'company':_0x3991aa[_0x2d6097(0x1e5)],'items':_0x5b9e05[_0x2d6097(0x1f4)](summarizeRuntimeSkill),'skills':{'personal':_0xe465ba['map'](summarizeRuntimeSkill),'company':_0x3991aa[_0x2d6097(0x1f4)](summarizeRuntimeSkill)}},'message':_0x2d6097(0x200)+_0x5b9e05[_0x2d6097(0x1e5)]+_0x2d6097(0x1f7)};}};function groupLocalRuntimeSkills(_0xfe98fd){const _0x315917=a68_0x4602e8;return{'personal':_0xfe98fd[_0x315917(0x1ee)](_0x27a49b=>_0x27a49b['scope']===_0x315917(0x201)),'company':_0xfe98fd[_0x315917(0x1ee)](_0xaf7144=>_0xaf7144['scope']===_0x315917(0x1fa)),'builtin':_0xfe98fd[_0x315917(0x1ee)](_0x3940cf=>_0x3940cf[_0x315917(0x1de)]===_0x315917(0x1f2))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a69_0xd798(_0x168725,_0xd7b599){_0x168725=_0x168725-0x89;const _0x52715c=a69_0x5271();let _0xd79845=_0x52715c[_0x168725];return _0xd79845;}const a69_0x6dd8cf=a69_0xd798;(function(_0x34bf99,_0x237c0f){const _0x303990=a69_0xd798,_0x3a4ef2=_0x34bf99();while(!![]){try{const _0xdc91ad=-parseInt(_0x303990(0x91))/0x1+parseInt(_0x303990(0x90))/0x2*(-parseInt(_0x303990(0x95))/0x3)+-parseInt(_0x303990(0x92))/0x4+-parseInt(_0x303990(0x8e))/0x5*(parseInt(_0x303990(0x93))/0x6)+parseInt(_0x303990(0x89))/0x7*(-parseInt(_0x303990(0x8f))/0x8)+parseInt(_0x303990(0x8c))/0x9+parseInt(_0x303990(0x8b))/0xa;if(_0xdc91ad===_0x237c0f)break;else _0x3a4ef2['push'](_0x3a4ef2['shift']());}catch(_0x5d91a7){_0x3a4ef2['push'](_0x3a4ef2['shift']());}}}(a69_0x5271,0x1c134));function a69_0x5271(){const _0x51119f=['1429938AuJGVQ','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','19460rHokbI','64PDFQOY','2244QfpRdv','127594RrnCtj','724312ASPHaP','354AUFVBB','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.','597ReDXdV','16338VeArbS','skill','7363640LyWWRv'];a69_0x5271=function(){return _0x51119f;};return a69_0x5271();}import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a69_0x6dd8cf(0x8a),'command':'push','description':a69_0x6dd8cf(0x8d),'risk':'write','confirmationDescription':a69_0x6dd8cf(0x94),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x4f4596=a70_0x40ac;(function(_0x4123e7,_0x38944d){const _0x5ac249=a70_0x40ac,_0xa879c=_0x4123e7();while(!![]){try{const _0x4ee84f=-parseInt(_0x5ac249(0x8f))/0x1+-parseInt(_0x5ac249(0x8e))/0x2*(-parseInt(_0x5ac249(0x90))/0x3)+parseInt(_0x5ac249(0x9b))/0x4*(parseInt(_0x5ac249(0x97))/0x5)+parseInt(_0x5ac249(0x8b))/0x6+-parseInt(_0x5ac249(0x91))/0x7+-parseInt(_0x5ac249(0x93))/0x8*(-parseInt(_0x5ac249(0x8c))/0x9)+-parseInt(_0x5ac249(0x92))/0xa*(parseInt(_0x5ac249(0x9f))/0xb);if(_0x4ee84f===_0x38944d)break;else _0xa879c['push'](_0xa879c['shift']());}catch(_0x476d3c){_0xa879c['push'](_0xa879c['shift']());}}}(a70_0x18e5,0xc22d9));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';function a70_0x18e5(){const _0x54c1ce=['347640BAfHia','skill','errors','type','70TJtYks','read','validate','bool','360596OSqhMl','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','Skill\x20validation\x20passed.','dir','11jEbRNm','1437900NkJYmL','288PcFoLF','strict','446tdeyfi','739577WUnvZf','15546ojJVPo','9538858IfsMxz','11502580rcDVXI'];a70_0x18e5=function(){return _0x54c1ce;};return a70_0x18e5();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a70_0x40ac(_0x17e7f5,_0x323c50){_0x17e7f5=_0x17e7f5-0x8b;const _0x18e58e=a70_0x18e5();let _0x40ac2b=_0x18e58e[_0x17e7f5];return _0x40ac2b;}export const validateCommand={'service':a70_0x4f4596(0x94),'command':a70_0x4f4596(0x99),'description':a70_0x4f4596(0x9c),'risk':a70_0x4f4596(0x98),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x19cc60){const _0x58a1d2=a70_0x4f4596,_0x45c87e=_0x19cc60[_0x58a1d2(0x9a)](_0x58a1d2(0x8d)),_0x1de054=validateSkillDirectory(_0x19cc60['str']('dir'),{'strict':_0x45c87e});return throwIfSkillValidationFailed(_0x1de054,_0x45c87e),{'ok':!![],'data':{'dir':_0x1de054[_0x58a1d2(0x9e)],'type':_0x1de054[_0x58a1d2(0x96)],'errors':_0x1de054[_0x58a1d2(0x95)],'warnings':_0x1de054['warnings']},'message':_0x58a1d2(0x9d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d9b6d,_0x17150b){const _0x5a455b=a71_0x2536,_0x292b25=_0x1d9b6d();while(!![]){try{const _0x240074=parseInt(_0x5a455b(0x16d))/0x1+parseInt(_0x5a455b(0x160))/0x2*(parseInt(_0x5a455b(0x174))/0x3)+parseInt(_0x5a455b(0x164))/0x4+-parseInt(_0x5a455b(0x173))/0x5+-parseInt(_0x5a455b(0x166))/0x6*(-parseInt(_0x5a455b(0x16f))/0x7)+parseInt(_0x5a455b(0x170))/0x8+parseInt(_0x5a455b(0x16e))/0x9*(-parseInt(_0x5a455b(0x16c))/0xa);if(_0x240074===_0x17150b)break;else _0x292b25['push'](_0x292b25['shift']());}catch(_0x49e1fb){_0x292b25['push'](_0x292b25['shift']());}}}(a71_0x2f15,0xab753));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';function a71_0x2536(_0x28be75,_0x19095e){_0x28be75=_0x28be75-0x15f;const _0x2f1579=a71_0x2f15();let _0x253656=_0x2f1579[_0x28be75];return _0x253656;}import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x122a40){const _0x31c14f=a71_0x2536;return(await readRequiredSkillDiagramInput(_0x122a40))[_0x31c14f(0x165)];}export async function readRequiredSkillDiagramInput(_0x4f5afb){const _0x12f5b7=a71_0x2536,_0x1a9024=_0x4f5afb[_0x12f5b7(0x16a)]();if(!_0x1a9024)throw CliErrors[_0x12f5b7(0x162)]('--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.',_0x12f5b7(0x15f));let _0x1b65fe,_0x78fbe6;if(_0x1a9024==='-')try{_0x1b65fe=readFileSync(0x0,_0x12f5b7(0x168));}catch{throw CliErrors['validation'](_0x12f5b7(0x16b));}else{const _0x4d9386=resolve(_0x1a9024);if(!existsSync(_0x4d9386))throw CliErrors[_0x12f5b7(0x162)]('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x4d9386);if(!statSync(_0x4d9386)[_0x12f5b7(0x161)]())throw CliErrors[_0x12f5b7(0x162)]('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x4d9386);_0x78fbe6=realpathSync(_0x4d9386),_0x1b65fe=readFileSync(_0x78fbe6,_0x12f5b7(0x168));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x1b65fe)},'sourceFilePath':_0x78fbe6};}export async function validateAndCanonicalizeMermaid(_0x32d54f){const _0x2804bb=a71_0x2536,_0x4f8892=_0x32d54f[_0x2804bb(0x176)](/\r\n/g,'\x0a')[_0x2804bb(0x176)](/\r/g,'\x0a')[_0x2804bb(0x176)](/\n+$/,'')+'\x0a';try{const _0xe8cff0=await loadMermaidApi();await _0xe8cff0['parse'](_0x4f8892);}catch{throw diagramValidationError();}return _0x4f8892;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x1a2fe8=a71_0x2536;if(!(_0x1a2fe8(0x172)in globalThis)||!(_0x1a2fe8(0x163)in globalThis)){const _0x47bcf2=new JSDOM('');Object[_0x1a2fe8(0x169)](globalThis,{'window':{'configurable':!![],'value':_0x47bcf2[_0x1a2fe8(0x172)]},'document':{'configurable':!![],'value':_0x47bcf2[_0x1a2fe8(0x172)][_0x1a2fe8(0x163)]}});}return(await import(_0x1a2fe8(0x175)))[_0x1a2fe8(0x167)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x4fea16=a71_0x2536;return CliErrors['validation'](_0x4fea16(0x171),'Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.');}function a71_0x2f15(){const _0x5c2e69=['trim','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','10QOOlqs','986521eaLREb','13360563cJJQKY','7rbRajy','2676552Sxgozw','Mermaid\x20syntax\x20validation\x20failed.','window','1359000ubAVSg','105DbUexB','mermaid','replace','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','45498jOVTSB','isFile','validation','document','1077648ucHRsi','diagram','431286YzfkeA','default','utf8','defineProperties'];a71_0x2f15=function(){return _0x5c2e69;};return a71_0x2f15();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x3ac7a4=a72_0x333c;(function(_0x4e024f,_0x356685){const _0x28fe06=a72_0x333c,_0x168226=_0x4e024f();while(!![]){try{const _0x153f2a=-parseInt(_0x28fe06(0xb1))/0x1*(parseInt(_0x28fe06(0xbe))/0x2)+parseInt(_0x28fe06(0xbd))/0x3+parseInt(_0x28fe06(0xac))/0x4*(parseInt(_0x28fe06(0xa9))/0x5)+-parseInt(_0x28fe06(0xb6))/0x6*(parseInt(_0x28fe06(0xaf))/0x7)+parseInt(_0x28fe06(0xc2))/0x8*(-parseInt(_0x28fe06(0xa7))/0x9)+parseInt(_0x28fe06(0xae))/0xa+parseInt(_0x28fe06(0xb8))/0xb*(parseInt(_0x28fe06(0xc4))/0xc);if(_0x153f2a===_0x356685)break;else _0x168226['push'](_0x168226['shift']());}catch(_0x2032e5){_0x168226['push'](_0x168226['shift']());}}}(a72_0x271e,0x19fdd));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':'string','description':a72_0x3ac7a4(0xb3)};export const SCOPE_FLAG={'name':a72_0x3ac7a4(0xca),'type':a72_0x3ac7a4(0xbb),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a72_0x3ac7a4(0xcd),a72_0x3ac7a4(0xc5),a72_0x3ac7a4(0xa6)]};export const PUSH_SCOPE_FLAG={'name':'scope','type':a72_0x3ac7a4(0xbb),'description':a72_0x3ac7a4(0xc8),'default':a72_0x3ac7a4(0xc5),'enum':[a72_0x3ac7a4(0xc5),a72_0x3ac7a4(0xa6)]};export const LIST_SCOPE_FLAG={'name':a72_0x3ac7a4(0xca),'type':a72_0x3ac7a4(0xbb),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':[a72_0x3ac7a4(0xcd),a72_0x3ac7a4(0xc5),a72_0x3ac7a4(0xa6)]};export const LOCAL_FLAG={'name':'local','type':a72_0x3ac7a4(0xc6),'description':a72_0x3ac7a4(0xb4)};export const DIR_FLAG={'name':a72_0x3ac7a4(0xc3),'type':a72_0x3ac7a4(0xbb),'required':!![],'description':a72_0x3ac7a4(0xad)};export const DIAGRAM_FILE_FLAG={'name':a72_0x3ac7a4(0xb7),'type':a72_0x3ac7a4(0xbb),'required':!![],'description':'UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin'};function a72_0x333c(_0x29a17b,_0xa9b538){_0x29a17b=_0x29a17b-0xa4;const _0x271e4e=a72_0x271e();let _0x333c6b=_0x271e4e[_0x29a17b];return _0x333c6b;}export const DIAGRAM_SKILL_CODE_FLAG={'name':a72_0x3ac7a4(0xba),'type':a72_0x3ac7a4(0xbb),'required':!![],'description':a72_0x3ac7a4(0xb0)};export const DIAGRAM_VERSION_FLAG={'name':'version','type':'string','required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a72_0x3ac7a4(0xca),'type':'string','required':!![],'enum':[a72_0x3ac7a4(0xc5),a72_0x3ac7a4(0xa6)],'description':a72_0x3ac7a4(0xab)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a72_0x3ac7a4(0xbb),'required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a72_0x3ac7a4(0xcc)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a72_0x3ac7a4(0xc9),'type':a72_0x3ac7a4(0xc1),'required':!![],'description':a72_0x3ac7a4(0xa4)};export const CREATE_NAME_FLAG={'name':a72_0x3ac7a4(0xaa),'type':a72_0x3ac7a4(0xbb),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a72_0x3ac7a4(0xb9)}};export const TYPE_FLAG={'name':a72_0x3ac7a4(0xce),'type':'string','description':a72_0x3ac7a4(0xc7),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a72_0x3ac7a4(0xbb),'description':a72_0x3ac7a4(0xbc),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a72_0x3ac7a4(0xcb),'type':a72_0x3ac7a4(0xc6),'description':a72_0x3ac7a4(0xa8)};function a72_0x271e(){const _0x1b5502=['1434DnBLRS','diagram-file','151118vCZwIS','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','skill-code','string','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','213339rltXjk','3062DYQnIj','strict','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','number','3704DpxBgF','dir','156Vvpgmw','personal','boolean','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','expected-diagram-revision','scope','force','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','all','type','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','confirm-warnings','company','1521UkiqNQ','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','5SOOhEO','name','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','591148fQiXII','Local\x20Skill\x20directory\x20containing\x20SKILL.md','115350buGVhF','5180RRtAtj','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','31WDAXjQ','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','project'];a72_0x271e=function(){return _0x1b5502;};return a72_0x271e();}export const PROJECT_TARGET_FLAG={'name':a72_0x3ac7a4(0xb5),'type':a72_0x3ac7a4(0xc6),'description':a72_0x3ac7a4(0xb2)};export const CONFIRM_WARNINGS_FLAG={'name':a72_0x3ac7a4(0xa5),'type':a72_0x3ac7a4(0xc6),'description':a72_0x3ac7a4(0xc0)};export const STRICT_FLAG={'name':a72_0x3ac7a4(0xbf),'type':a72_0x3ac7a4(0xc6),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x150287,_0x2df02a){const _0x5525d3=a73_0x3cee,_0x52a22e=_0x150287();while(!![]){try{const _0x21a303=-parseInt(_0x5525d3(0xe4))/0x1+-parseInt(_0x5525d3(0xe2))/0x2*(parseInt(_0x5525d3(0xdd))/0x3)+-parseInt(_0x5525d3(0xdc))/0x4+-parseInt(_0x5525d3(0xe3))/0x5+parseInt(_0x5525d3(0xdf))/0x6*(parseInt(_0x5525d3(0xde))/0x7)+parseInt(_0x5525d3(0xe1))/0x8+parseInt(_0x5525d3(0xe0))/0x9;if(_0x21a303===_0x2df02a)break;else _0x52a22e['push'](_0x52a22e['shift']());}catch(_0x14139f){_0x52a22e['push'](_0x52a22e['shift']());}}}(a73_0x2c62,0x45168));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a73_0x2c62(){const _0x5236ba=['19470pVhXgO','6630498WXKgRD','4012056WgnuRK','61378QuNJOv','795230fPiupS','489079BMBNQu','964052DhMRHY','9SFBfET','56grXfNT'];a73_0x2c62=function(){return _0x5236ba;};return a73_0x2c62();}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';function a73_0x3cee(_0x4bc642,_0x803ac0){_0x4bc642=_0x4bc642-0xdc;const _0x2c62e2=a73_0x2c62();let _0x3ceee5=_0x2c62e2[_0x4bc642];return _0x3ceee5;}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a74_0x4a4c(_0x496bfd,_0x20d1c5){_0x496bfd=_0x496bfd-0x11a;var _0x590464=a74_0x5904();var _0x4a4c1f=_0x590464[_0x496bfd];return _0x4a4c1f;}(function(_0x11ebca,_0x2a2150){var _0xe9e61a=a74_0x4a4c,_0x5a2a8b=_0x11ebca();while(!![]){try{var _0x4459d4=-parseInt(_0xe9e61a(0x11d))/0x1*(parseInt(_0xe9e61a(0x11b))/0x2)+parseInt(_0xe9e61a(0x120))/0x3*(parseInt(_0xe9e61a(0x121))/0x4)+parseInt(_0xe9e61a(0x11e))/0x5+-parseInt(_0xe9e61a(0x11f))/0x6*(-parseInt(_0xe9e61a(0x122))/0x7)+parseInt(_0xe9e61a(0x129))/0x8*(-parseInt(_0xe9e61a(0x128))/0x9)+parseInt(_0xe9e61a(0x11a))/0xa+-parseInt(_0xe9e61a(0x127))/0xb*(parseInt(_0xe9e61a(0x126))/0xc);if(_0x4459d4===_0x2a2150)break;else _0x5a2a8b['push'](_0x5a2a8b['shift']());}catch(_0x155647){_0x5a2a8b['push'](_0x5a2a8b['shift']());}}}(a74_0x5904,0xc0fe0));export function isPackageBackedManifest(_0x4f8727){var _0x38fa36=a74_0x4a4c;return!!_0x4f8727&&typeof _0x4f8727==='object'&&!Array['isArray'](_0x4f8727)&&typeof _0x4f8727[_0x38fa36(0x12b)]===_0x38fa36(0x123)&&_0x4f8727[_0x38fa36(0x12b)][_0x38fa36(0x12a)]>0x0&&Array[_0x38fa36(0x124)](_0x4f8727[_0x38fa36(0x125)]);}function a74_0x5904(){var _0x40584b=['49cZnaXh','string','isArray','files','1392MeeQJt','15323TQAQLl','5986170neRMgE','16JUBGGt','length','ossPath','2484250aVFCxP','26accKOU','some','68268NoPSnp','4678140VXeQqD','1271274EoLqEc','44349PBTffL','136CYlnvQ'];a74_0x5904=function(){return _0x40584b;};return a74_0x5904();}export function isMultiFileManifest(_0x44f3b5){var _0x58cec7=a74_0x4a4c;return!!_0x44f3b5&&typeof _0x44f3b5==='object'&&!Array[_0x58cec7(0x124)](_0x44f3b5)&&Array[_0x58cec7(0x124)](_0x44f3b5[_0x58cec7(0x125)])&&_0x44f3b5[_0x58cec7(0x125)][_0x58cec7(0x11c)](_0x4a6423=>_0x4a6423['path']!=='SKILL.md');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a74_0x19da(_0x5cc784,_0xb27deb){_0x5cc784=_0x5cc784-0xbe;const _0x8cc4b9=a74_0x8cc4();let _0x19da02=_0x8cc4b9[_0x5cc784];return _0x19da02;}(function(_0x327a06,_0x3f300d){const _0xb10c14=a74_0x19da,_0x3c2210=_0x327a06();while(!![]){try{const _0xa65480=-parseInt(_0xb10c14(0xef))/0x1+parseInt(_0xb10c14(0xdf))/0x2*(-parseInt(_0xb10c14(0xf9))/0x3)+parseInt(_0xb10c14(0xf8))/0x4*(parseInt(_0xb10c14(0xed))/0x5)+-parseInt(_0xb10c14(0xe1))/0x6*(-parseInt(_0xb10c14(0xd0))/0x7)+parseInt(_0xb10c14(0xe4))/0x8+parseInt(_0xb10c14(0xd8))/0x9*(parseInt(_0xb10c14(0xc0))/0xa)+-parseInt(_0xb10c14(0xe6))/0xb;if(_0xa65480===_0x3f300d)break;else _0x3c2210['push'](_0x3c2210['shift']());}catch(_0x956f1a){_0x3c2210['push'](_0x3c2210['shift']());}}}(a74_0x8cc4,0x2f94f));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(_0x5e3b26){const _0x32afac=a74_0x19da,{getRuntimeSkillByCode:_0x3d442a,validateRuntimeSkillPublish:_0x2bf2e1}=await import(_0x32afac(0xc4)),{readPushDirectory:_0x3ed8d5,resolvePushDirectoryIdentity:_0x4cec6f}=await import(_0x32afac(0xe2));if(!_0x5e3b26[_0x32afac(0xd1)])throw CliErrors[_0x32afac(0xe8)]();const _0x5b756b=resolvePushScope(_0x5e3b26),_0x3b5af7=validateSkillDirectory(_0x5e3b26[_0x32afac(0xcc)](_0x32afac(0xca)));throwIfSkillValidationFailed(_0x3b5af7);const {diagram:_0xeb4cb9,sourceFilePath:_0x50214d}=await readRequiredSkillDiagramInput(_0x5e3b26[_0x32afac(0xcc)](_0x32afac(0xe9))),_0x21ec9e=diagramPackageExclusion(_0x50214d),_0x5d6221=_0x4cec6f(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26[_0x32afac(0xc8)],remoteFirstMetadataOptions()),_0x45dcd8=await _0x3d442a(_0x5e3b26[_0x32afac(0xc8)],_0x5d6221[_0x32afac(0xc7)]);throwIfBuiltinPushTarget(_0x45dcd8);if(_0x5b756b===_0x32afac(0xd5)){const _0x45a27b=_0x3ed8d5(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26[_0x32afac(0xc8)],{...remoteMissingCompanyReadOptions(),..._0x21ec9e}),_0x58b95b=await _0x2bf2e1(_0x5e3b26['appCode'],withDiagram(_0x45a27b[_0x32afac(0xf5)],_0xeb4cb9),{'visibility':_0x32afac(0xd6)});return{'method':_0x32afac(0xdd),'url':_0x32afac(0xd4)+_0x5e3b26[_0x32afac(0xc8)]+_0x32afac(0xdc),'body':{'skillCode':_0x45a27b[_0x32afac(0xc7)],'visibility':_0x32afac(0xd6),'valid':_0x58b95b[_0x32afac(0xcf)],'errors':_0x58b95b[_0x32afac(0xd3)],'warnings':_0x58b95b['warnings'],'resolvedSlug':_0x58b95b[_0x32afac(0xe5)],'resolvedVersion':_0x58b95b[_0x32afac(0xe7)],'diagramValidated':_0x58b95b[_0x32afac(0xc3)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x45dcd8&&_0x45dcd8[_0x32afac(0xec)]!==_0x32afac(0xe3))throw CliErrors[_0x32afac(0xde)](_0x32afac(0xf0)+_0x5d6221[_0x32afac(0xc7)]+_0x32afac(0xdb)+(_0x45dcd8[_0x32afac(0xec)]??_0x32afac(0xf3))+'\x22.');const _0x1c343a=_0x3ed8d5(_0x3b5af7[_0x32afac(0xca)],_0x5e3b26['appCode'],{..._0x45dcd8?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x21ec9e}),_0x4a914d=await _0x2bf2e1(_0x5e3b26['appCode'],withDiagram(_0x1c343a[_0x32afac(0xf5)],_0xeb4cb9),{'visibility':_0x32afac(0xf1)});return{'method':_0x32afac(0xdd),'url':_0x32afac(0xd4)+_0x5e3b26[_0x32afac(0xc8)]+_0x32afac(0xdc),'body':{'skillCode':_0x1c343a[_0x32afac(0xc7)],'visibility':'PRIVATE','valid':_0x4a914d[_0x32afac(0xcf)],'errors':_0x4a914d[_0x32afac(0xd3)],'warnings':_0x4a914d[_0x32afac(0xd9)],'resolvedSlug':_0x4a914d['resolvedSlug'],'resolvedVersion':_0x4a914d[_0x32afac(0xe7)],'diagramValidated':_0x4a914d[_0x32afac(0xc3)]},'description':_0x32afac(0xc6)};}function a74_0x8cc4(){const _0x2736eb=['errors','/api/cli/v1/skills/','company','NAMESPACE_ONLY','bool','13383ZSzzol','warnings','metadata','\x20has\x20scope=\x22','/publish/validate','POST','validation','148794AViNIi','confirm-warnings','6BzxCOa','../../skills/runtime-skill-sync.js','personal','2605768djJTfD','resolvedSlug','3760141XNxlMu','resolvedVersion','authRequired','diagram-file','trim','appcode','scope','5ziAHFL','version','231761lBDRzr','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','PRIVATE','Company','unknown','Created\x20personal\x20Skill\x20','input','submitted','publishInput','574568bMAfSS','9StUWBl','(unknown)','savedSkill','payload','2270nrZnFw','Submitted\x20company\x20Skill\x20','\x20Skill\x20','diagramValidated','../../core/api-client.js','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','skillCode','appCode','\x20version\x20','dir','files','str','identical','status','valid','1293362IUScVk','accessKey','existing'];a74_0x8cc4=function(){return _0x2736eb;};return a74_0x8cc4();}export async function skillPushExecute(_0x1a2721){const _0x41e811=a74_0x19da,{createPersonalRuntimeSkill:_0x3a4162,downloadRuntimeSkillPackage:_0x422241,getRuntimeSkillByCode:_0x1f295f,publishCompanyRuntimeSkill:_0x2c190b,updatePersonalRuntimeSkill:_0xcdf024,validateRuntimeSkillPublish:_0x4dfb18}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x18b657,verifyRuntimeSkillBundle:_0x416b9f,readPushDirectory:_0xd73d79,refreshPushDirectoryMetadataFromRemote:_0x169812,recordPushedRuntimeSkill:_0x185e2e,resolvePushDirectoryIdentity:_0x316393}=await import(_0x41e811(0xe2));if(!_0x1a2721[_0x41e811(0xd1)])throw CliErrors[_0x41e811(0xe8)]();const _0x218e5a=resolvePushScope(_0x1a2721),_0x43b270=_0x1a2721[_0x41e811(0xd7)](_0x41e811(0xe0))||_0x1a2721['bool']('confirmWarnings'),_0x250263=validateSkillDirectory(_0x1a2721['str'](_0x41e811(0xca)));throwIfSkillValidationFailed(_0x250263);const {diagram:_0x456ce7,sourceFilePath:_0x881f8a}=await readRequiredSkillDiagramInput(_0x1a2721[_0x41e811(0xcc)](_0x41e811(0xe9))),_0x19d4f7=diagramPackageExclusion(_0x881f8a),_0x42ba32=_0x250263[_0x41e811(0xca)];let _0x591b30;if(_0x218e5a==='company'){const _0x30b0ba=_0x316393(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],remoteFirstMetadataOptions()),_0xec467f=await _0x1f295f(_0x1a2721[_0x41e811(0xc8)],_0x30b0ba['skillCode']);throwIfBuiltinPushTarget(_0xec467f);if(_0xec467f)_0x169812(_0x42ba32,_0xec467f,_0x1a2721[_0x41e811(0xc8)]);const _0x1a0f35=_0xd73d79(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{..._0xec467f?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x19d4f7});_0x591b30={'scope':'company','payload':_0x1a0f35,'publishInput':withDiagram(_0x1a0f35['input'],_0x456ce7),'remoteForPreflight':_0xec467f,'warnings':[]};}else{const _0x48782c=_0x1a2721[_0x41e811(0xcc)](_0x41e811(0xeb))[_0x41e811(0xea)](),_0x89ae48=Boolean(_0x48782c),_0x3cfc98=allowRetargetArgs(_0x89ae48),_0x56806c=_0x316393(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{...remoteFirstMetadataOptions(),..._0x3cfc98[0x0]}),_0x335e0d=await _0x1f295f(_0x1a2721['appCode'],_0x56806c[_0x41e811(0xc7)]);throwIfBuiltinPushTarget(_0x335e0d);if(_0x335e0d){if(_0x335e0d[_0x41e811(0xec)]!==_0x41e811(0xe3)){if(_0x89ae48)throw CliErrors[_0x41e811(0xde)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x56806c[_0x41e811(0xc7)]+'\x20has\x20scope=\x22'+(_0x335e0d[_0x41e811(0xec)]??_0x41e811(0xf3))+'\x22.');_0x169812(_0x42ba32,_0x335e0d,_0x1a2721[_0x41e811(0xc8)]);}else!_0x89ae48&&_0x169812(_0x42ba32,_0x335e0d,_0x1a2721[_0x41e811(0xc8)]);}const _0x48941e=_0xd73d79(_0x42ba32,_0x1a2721[_0x41e811(0xc8)],{..._0x335e0d?remotePersonalReadOptions(_0x89ae48,_0x3cfc98[0x0]):remoteMissingPersonalReadOptions(_0x3cfc98[0x0]),..._0x19d4f7}),_0x820fdd=_0x335e0d?.[_0x41e811(0xec)]===_0x41e811(0xe3)&&_0x335e0d['skillCode']===_0x48941e[_0x41e811(0xc7)]?_0x335e0d:undefined,_0x2f8296=_0x89ae48&&_0x820fdd?withRetargetExistingMetadata(_0x48941e[_0x41e811(0xf5)],_0x820fdd,{'preferInputSkillName':Boolean(_0x48941e['frontmatterDisplayName'])}):_0x48941e[_0x41e811(0xf5)],_0x2c31af=_0x89ae48?buildRetargetWarning(_0x56806c[_0x41e811(0xda)],_0x1a2721[_0x41e811(0xc8)]):[];_0x591b30={'scope':_0x41e811(0xe3),'payload':_0x48941e,'publishInput':withDiagram(_0x2f8296,_0x456ce7),'remoteForPreflight':_0x820fdd,'existing':_0x820fdd,'warnings':[..._0x250263['warnings'],..._0x2c31af]};}const _0x5145cf=await runRemoteContentPreflight({'scope':_0x591b30['scope'],'remote':_0x591b30['remoteForPreflight'],'publishInput':_0x591b30[_0x41e811(0xf7)],'skillCode':_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],'appCode':_0x1a2721[_0x41e811(0xc8)],'downloadRuntimeSkillPackage':_0x422241,'verifyRuntimeSkillBundle':_0x416b9f});if(_0x5145cf[_0x41e811(0xce)]===_0x41e811(0xcd))return _0x591b30['scope']===_0x41e811(0xd5)?_0x185e2e(_0x42ba32,_0x5145cf[_0x41e811(0xbe)],_0x1a2721[_0x41e811(0xc8)],{'scope':_0x41e811(0xd5)}):_0x185e2e(_0x42ba32,_0x5145cf['savedSkill'],_0x1a2721[_0x41e811(0xc8)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5145cf[_0x41e811(0xbe)]),'scope':_0x591b30[_0x41e811(0xec)],..._0x591b30[_0x41e811(0xec)]===_0x41e811(0xe3)?{'warnings':_0x591b30['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x591b30[_0x41e811(0xec)])+_0x41e811(0xc2)+_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)]+_0x41e811(0xc5)};if(_0x591b30[_0x41e811(0xec)]==='company'){const _0x2a0fe4=await _0x4dfb18(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'visibility':_0x41e811(0xd6)});throwIfPublishValidationFailed(_0x41e811(0xd5),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x2a0fe4),throwIfUnconfirmedPublishWarnings('company',_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x2a0fe4[_0x41e811(0xd9)],_0x43b270);const _0xd79475=await _0x2c190b(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'confirmWarnings':_0x43b270});return _0x185e2e(_0x42ba32,{..._0xd79475,'files':_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)]},_0x1a2721[_0x41e811(0xc8)],{'scope':_0x41e811(0xd5)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xd79475),'scope':_0x41e811(0xd5),'reviewState':_0x41e811(0xf6),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x2a0fe4['warnings']}},'message':_0x41e811(0xc1)+_0x591b30['payload']['skillCode']+_0x41e811(0xc9)+(_0xd79475[_0x41e811(0xee)]??_0x41e811(0xfa))+'\x20for\x20review'};}const _0x174863=await _0x4dfb18(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x41e811(0xe3),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x174863),throwIfUnconfirmedPublishWarnings(_0x41e811(0xe3),_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x174863[_0x41e811(0xd9)],_0x43b270);const _0x36070c={'confirmWarnings':_0x43b270},_0x399b23=_0x591b30[_0x41e811(0xd2)]?await _0xcdf024(_0x591b30['payload'][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],_0x36070c):await _0x3a4162(_0x1a2721[_0x41e811(0xc8)],_0x591b30[_0x41e811(0xf7)],_0x36070c);let _0x3ded77=_0x399b23;if(isMultiFileManifest(_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)])){const _0x35a997=await _0x422241(_0x41e811(0xe3),_0x399b23[_0x41e811(0xc7)]||_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)]);_0x416b9f(_0x591b30[_0x41e811(0xf7)]['files'],_0x35a997),_0x3ded77={..._0x399b23,'files':_0x591b30[_0x41e811(0xf7)][_0x41e811(0xcb)]};}else{if(isPackageBackedManifest(_0x399b23['files'])){const _0x1b1ece=await _0x422241(_0x41e811(0xe3),_0x399b23[_0x41e811(0xc7)]||_0x591b30['payload'][_0x41e811(0xc7)],_0x1a2721[_0x41e811(0xc8)]);_0x18b657(_0x399b23[_0x41e811(0xcb)],_0x1b1ece);}}return _0x185e2e(_0x42ba32,_0x3ded77,_0x1a2721[_0x41e811(0xc8)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x399b23),'warnings':_0x591b30['warnings'],'validation':{'warnings':_0x174863[_0x41e811(0xd9)]},'diagramBound':!![]},'message':_0x591b30[_0x41e811(0xd2)]?'Updated\x20personal\x20Skill\x20'+_0x591b30[_0x41e811(0xbf)]['skillCode']:_0x41e811(0xf4)+_0x591b30[_0x41e811(0xbf)][_0x41e811(0xc7)]};}function scopeLabel(_0x87a8b3){const _0x24954d=a74_0x19da;return _0x87a8b3===_0x24954d(0xd5)?_0x24954d(0xf2):'Personal';}function withDiagram(_0x3cd43c,_0x3495a8){return{..._0x3cd43c,'diagram':_0x3495a8};}function diagramPackageExclusion(_0x54c54a){return _0x54c54a?{'excludedFilePaths':[_0x54c54a]}:{};}
|
|
1
|
+
(function(_0x204c28,_0x124ea4){const _0x17658c=a75_0x4c11,_0x55941d=_0x204c28();while(!![]){try{const _0x27ec6d=parseInt(_0x17658c(0x210))/0x1*(parseInt(_0x17658c(0x1e8))/0x2)+parseInt(_0x17658c(0x205))/0x3*(-parseInt(_0x17658c(0x216))/0x4)+-parseInt(_0x17658c(0x1f5))/0x5*(parseInt(_0x17658c(0x1fa))/0x6)+-parseInt(_0x17658c(0x204))/0x7*(-parseInt(_0x17658c(0x1e2))/0x8)+parseInt(_0x17658c(0x218))/0x9*(-parseInt(_0x17658c(0x1ed))/0xa)+parseInt(_0x17658c(0x1f9))/0xb+parseInt(_0x17658c(0x20a))/0xc;if(_0x27ec6d===_0x124ea4)break;else _0x55941d['push'](_0x55941d['shift']());}catch(_0x11ddd0){_0x55941d['push'](_0x55941d['shift']());}}}(a75_0x5f03,0x37933));function a75_0x5f03(){const _0x1d8bd7=['warnings','Created\x20personal\x20Skill\x20','company','142613ECsrBW','unknown','personal','(unknown)','POST','NAMESPACE_ONLY','4HYNRjX','payload','27kdOlqE','files','resolvedVersion','accessKey','input','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Updated\x20personal\x20Skill\x20','diagram-file','16YIstlv','/publish/validate','version','Submitted\x20company\x20Skill\x20','confirm-warnings','identical','4TwlpVs','remoteForPreflight','skillCode','appCode','publishInput','884750alFSCl','resolvedSlug','\x20Skill\x20','frontmatterDisplayName','Personal','../../core/api-client.js','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','authRequired','190835pQJHVx','existing','dir','validation','3009237fxkccJ','30QpliDF','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','scope','bool','/api/cli/v1/skills/','submitted','str','confirmWarnings','\x20for\x20review','PRIVATE','489153bzcqSu','1312431vwuiSn','savedSkill','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','diagramValidated','../../skills/runtime-skill-sync.js','5073852vVHSFN','valid','\x20has\x20scope=\x22'];a75_0x5f03=function(){return _0x1d8bd7;};return a75_0x5f03();}import{CliErrors}from'../../errors.js';function a75_0x4c11(_0x3a7058,_0x13f2ef){_0x3a7058=_0x3a7058-0x1df;const _0x5f035d=a75_0x5f03();let _0x4c11f0=_0x5f035d[_0x3a7058];return _0x4c11f0;}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(_0x167fca){const _0x32680e=a75_0x4c11,{getRuntimeSkillByCode:_0x2e164e,validateRuntimeSkillPublish:_0x3ee8f8}=await import(_0x32680e(0x1f2)),{readPushDirectory:_0x69a2ed,resolvePushDirectoryIdentity:_0x59dfe6}=await import(_0x32680e(0x209));if(!_0x167fca[_0x32680e(0x21b)])throw CliErrors[_0x32680e(0x1f4)]();const _0x28e6c0=resolvePushScope(_0x167fca),_0x150832=validateSkillDirectory(_0x167fca['str'](_0x32680e(0x1f7)));throwIfSkillValidationFailed(_0x150832);const {diagram:_0x1b72d2,sourceFilePath:_0x7748a6}=await readRequiredSkillDiagramInput(_0x167fca['str'](_0x32680e(0x1e1))),_0xd02af1=diagramPackageExclusion(_0x7748a6),_0x4d018c=_0x59dfe6(_0x150832[_0x32680e(0x1f7)],_0x167fca['appCode'],remoteFirstMetadataOptions()),_0x4c9648=await _0x2e164e(_0x167fca[_0x32680e(0x1eb)],_0x4d018c[_0x32680e(0x1ea)]);throwIfBuiltinPushTarget(_0x4c9648);if(_0x28e6c0==='company'){const _0xb33b5d=_0x69a2ed(_0x150832[_0x32680e(0x1f7)],_0x167fca['appCode'],{...remoteMissingCompanyReadOptions(),..._0xd02af1}),_0x38e3d2=await _0x3ee8f8(_0x167fca[_0x32680e(0x1eb)],withDiagram(_0xb33b5d['input'],_0x1b72d2),{'visibility':_0x32680e(0x215)});return{'method':_0x32680e(0x214),'url':_0x32680e(0x1fe)+_0x167fca[_0x32680e(0x1eb)]+'/publish/validate','body':{'skillCode':_0xb33b5d['skillCode'],'visibility':_0x32680e(0x215),'valid':_0x38e3d2[_0x32680e(0x20b)],'errors':_0x38e3d2['errors'],'warnings':_0x38e3d2[_0x32680e(0x20d)],'resolvedSlug':_0x38e3d2[_0x32680e(0x1ee)],'resolvedVersion':_0x38e3d2['resolvedVersion'],'diagramValidated':_0x38e3d2[_0x32680e(0x208)]},'description':_0x32680e(0x1df)};}if(_0x4c9648&&_0x4c9648[_0x32680e(0x1fc)]!==_0x32680e(0x212))throw CliErrors[_0x32680e(0x1f8)](_0x32680e(0x207)+_0x4d018c[_0x32680e(0x1ea)]+_0x32680e(0x20c)+(_0x4c9648[_0x32680e(0x1fc)]??_0x32680e(0x211))+'\x22.');const _0x510fbc=_0x69a2ed(_0x150832['dir'],_0x167fca[_0x32680e(0x1eb)],{..._0x4c9648?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0xd02af1}),_0x2a2be8=await _0x3ee8f8(_0x167fca['appCode'],withDiagram(_0x510fbc[_0x32680e(0x21c)],_0x1b72d2),{'visibility':_0x32680e(0x203)});return{'method':_0x32680e(0x214),'url':_0x32680e(0x1fe)+_0x167fca['appCode']+_0x32680e(0x1e3),'body':{'skillCode':_0x510fbc[_0x32680e(0x1ea)],'visibility':_0x32680e(0x203),'valid':_0x2a2be8['valid'],'errors':_0x2a2be8['errors'],'warnings':_0x2a2be8['warnings'],'resolvedSlug':_0x2a2be8[_0x32680e(0x1ee)],'resolvedVersion':_0x2a2be8[_0x32680e(0x21a)],'diagramValidated':_0x2a2be8[_0x32680e(0x208)]},'description':_0x32680e(0x1fb)};}export async function skillPushExecute(_0x3b16c6){const _0x606b08=a75_0x4c11,{createPersonalRuntimeSkill:_0x16cdba,downloadRuntimeSkillPackage:_0x528014,getRuntimeSkillByCode:_0x24df53,publishCompanyRuntimeSkill:_0x2fc3f6,updatePersonalRuntimeSkill:_0xeb9e82,validateRuntimeSkillPublish:_0x4ab621}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x4235a5,verifyRuntimeSkillBundle:_0x2e5720,readPushDirectory:_0x33f197,refreshPushDirectoryMetadataFromRemote:_0x223e4c,recordPushedRuntimeSkill:_0x200ec0,resolvePushDirectoryIdentity:_0x22f543}=await import('../../skills/runtime-skill-sync.js');if(!_0x3b16c6[_0x606b08(0x21b)])throw CliErrors[_0x606b08(0x1f4)]();const _0x167c8e=resolvePushScope(_0x3b16c6),_0x5e0a01=_0x3b16c6[_0x606b08(0x1fd)](_0x606b08(0x1e6))||_0x3b16c6[_0x606b08(0x1fd)](_0x606b08(0x201)),_0x385fdb=validateSkillDirectory(_0x3b16c6[_0x606b08(0x200)](_0x606b08(0x1f7)));throwIfSkillValidationFailed(_0x385fdb);const {diagram:_0x1b0cb4,sourceFilePath:_0x40fd79}=await readRequiredSkillDiagramInput(_0x3b16c6[_0x606b08(0x200)](_0x606b08(0x1e1))),_0x1227e5=diagramPackageExclusion(_0x40fd79),_0x139aed=_0x385fdb[_0x606b08(0x1f7)];let _0x18181c;if(_0x167c8e===_0x606b08(0x20f)){const _0x56bac5=_0x22f543(_0x139aed,_0x3b16c6['appCode'],remoteFirstMetadataOptions()),_0x192942=await _0x24df53(_0x3b16c6[_0x606b08(0x1eb)],_0x56bac5['skillCode']);throwIfBuiltinPushTarget(_0x192942);if(_0x192942)_0x223e4c(_0x139aed,_0x192942,_0x3b16c6[_0x606b08(0x1eb)]);const _0x147497=_0x33f197(_0x139aed,_0x3b16c6['appCode'],{..._0x192942?{'targetScope':_0x606b08(0x20f),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1227e5});_0x18181c={'scope':'company','payload':_0x147497,'publishInput':withDiagram(_0x147497['input'],_0x1b0cb4),'remoteForPreflight':_0x192942,'warnings':[]};}else{const _0x551357=_0x3b16c6['str']('appcode')['trim'](),_0x18e510=Boolean(_0x551357),_0x493aeb=allowRetargetArgs(_0x18e510),_0x207b32=_0x22f543(_0x139aed,_0x3b16c6['appCode'],{...remoteFirstMetadataOptions(),..._0x493aeb[0x0]}),_0x32b2bf=await _0x24df53(_0x3b16c6[_0x606b08(0x1eb)],_0x207b32['skillCode']);throwIfBuiltinPushTarget(_0x32b2bf);if(_0x32b2bf){if(_0x32b2bf['scope']!==_0x606b08(0x212)){if(_0x18e510)throw CliErrors[_0x606b08(0x1f8)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x207b32[_0x606b08(0x1ea)]+'\x20has\x20scope=\x22'+(_0x32b2bf['scope']??'unknown')+'\x22.');_0x223e4c(_0x139aed,_0x32b2bf,_0x3b16c6[_0x606b08(0x1eb)]);}else!_0x18e510&&_0x223e4c(_0x139aed,_0x32b2bf,_0x3b16c6[_0x606b08(0x1eb)]);}const _0x73cce4=_0x33f197(_0x139aed,_0x3b16c6[_0x606b08(0x1eb)],{..._0x32b2bf?remotePersonalReadOptions(_0x18e510,_0x493aeb[0x0]):remoteMissingPersonalReadOptions(_0x493aeb[0x0]),..._0x1227e5}),_0x26f42a=_0x32b2bf?.[_0x606b08(0x1fc)]===_0x606b08(0x212)&&_0x32b2bf['skillCode']===_0x73cce4[_0x606b08(0x1ea)]?_0x32b2bf:undefined,_0x40c736=_0x18e510&&_0x26f42a?withRetargetExistingMetadata(_0x73cce4[_0x606b08(0x21c)],_0x26f42a,{'preferInputSkillName':Boolean(_0x73cce4[_0x606b08(0x1f0)])}):_0x73cce4['input'],_0x581d94=_0x18e510?buildRetargetWarning(_0x207b32['metadata'],_0x3b16c6['appCode']):[];_0x18181c={'scope':_0x606b08(0x212),'payload':_0x73cce4,'publishInput':withDiagram(_0x40c736,_0x1b0cb4),'remoteForPreflight':_0x26f42a,'existing':_0x26f42a,'warnings':[..._0x385fdb['warnings'],..._0x581d94]};}const _0x55a6a9=await runRemoteContentPreflight({'scope':_0x18181c[_0x606b08(0x1fc)],'remote':_0x18181c[_0x606b08(0x1e9)],'publishInput':_0x18181c[_0x606b08(0x1ec)],'skillCode':_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],'appCode':_0x3b16c6[_0x606b08(0x1eb)],'downloadRuntimeSkillPackage':_0x528014,'verifyRuntimeSkillBundle':_0x2e5720});if(_0x55a6a9['status']===_0x606b08(0x1e7))return _0x18181c['scope']===_0x606b08(0x20f)?_0x200ec0(_0x139aed,_0x55a6a9['savedSkill'],_0x3b16c6['appCode'],{'scope':'company'}):_0x200ec0(_0x139aed,_0x55a6a9['savedSkill'],_0x3b16c6['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x55a6a9[_0x606b08(0x206)]),'scope':_0x18181c['scope'],..._0x18181c[_0x606b08(0x1fc)]==='personal'?{'warnings':_0x18181c[_0x606b08(0x20d)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x18181c['scope'])+_0x606b08(0x1ef)+_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)]+_0x606b08(0x1f3)};if(_0x18181c[_0x606b08(0x1fc)]===_0x606b08(0x20f)){const _0x3cc2c3=await _0x4ab621(_0x3b16c6[_0x606b08(0x1eb)],_0x18181c['publishInput'],{'visibility':_0x606b08(0x215)});throwIfPublishValidationFailed(_0x606b08(0x20f),_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],_0x3cc2c3),throwIfUnconfirmedPublishWarnings('company',_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],_0x3cc2c3[_0x606b08(0x20d)],_0x5e0a01);const _0x48b005=await _0x2fc3f6(_0x3b16c6[_0x606b08(0x1eb)],_0x18181c[_0x606b08(0x1ec)],{'confirmWarnings':_0x5e0a01});return _0x200ec0(_0x139aed,{..._0x48b005,'files':_0x18181c['publishInput'][_0x606b08(0x219)]},_0x3b16c6[_0x606b08(0x1eb)],{'scope':_0x606b08(0x20f)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x48b005),'scope':_0x606b08(0x20f),'reviewState':_0x606b08(0x1ff),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x3cc2c3[_0x606b08(0x20d)]}},'message':_0x606b08(0x1e5)+_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)]+'\x20version\x20'+(_0x48b005[_0x606b08(0x1e4)]??_0x606b08(0x213))+_0x606b08(0x202)};}const _0x1d0ecb=await _0x4ab621(_0x3b16c6[_0x606b08(0x1eb)],_0x18181c[_0x606b08(0x1ec)],{'visibility':_0x606b08(0x203)});throwIfPublishValidationFailed(_0x606b08(0x212),_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],_0x1d0ecb),throwIfUnconfirmedPublishWarnings(_0x606b08(0x212),_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],_0x1d0ecb[_0x606b08(0x20d)],_0x5e0a01);const _0x1fa482={'confirmWarnings':_0x5e0a01},_0xcada4=_0x18181c['existing']?await _0xeb9e82(_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)],_0x3b16c6[_0x606b08(0x1eb)],_0x18181c[_0x606b08(0x1ec)],_0x1fa482):await _0x16cdba(_0x3b16c6['appCode'],_0x18181c['publishInput'],_0x1fa482);let _0x36c04a=_0xcada4;if(isMultiFileManifest(_0x18181c[_0x606b08(0x1ec)]['files'])){const _0x5aea0c=await _0x528014(_0x606b08(0x212),_0xcada4[_0x606b08(0x1ea)]||_0x18181c['payload']['skillCode'],_0x3b16c6['appCode']);_0x2e5720(_0x18181c['publishInput'][_0x606b08(0x219)],_0x5aea0c),_0x36c04a={..._0xcada4,'files':_0x18181c[_0x606b08(0x1ec)][_0x606b08(0x219)]};}else{if(isPackageBackedManifest(_0xcada4['files'])){const _0x3041e3=await _0x528014('personal',_0xcada4['skillCode']||_0x18181c['payload']['skillCode'],_0x3b16c6['appCode']);_0x4235a5(_0xcada4['files'],_0x3041e3);}}return _0x200ec0(_0x139aed,_0x36c04a,_0x3b16c6[_0x606b08(0x1eb)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xcada4),'warnings':_0x18181c[_0x606b08(0x20d)],'validation':{'warnings':_0x1d0ecb['warnings']},'diagramBound':!![]},'message':_0x18181c[_0x606b08(0x1f6)]?_0x606b08(0x1e0)+_0x18181c[_0x606b08(0x217)][_0x606b08(0x1ea)]:_0x606b08(0x20e)+_0x18181c['payload'][_0x606b08(0x1ea)]};}function scopeLabel(_0x2ea85b){const _0x54a1a9=a75_0x4c11;return _0x2ea85b===_0x54a1a9(0x20f)?'Company':_0x54a1a9(0x1f1);}function withDiagram(_0x3f6c72,_0x5ac2b8){return{..._0x3f6c72,'diagram':_0x5ac2b8};}function diagramPackageExclusion(_0x11091d){return _0x11091d?{'excludedFilePaths':[_0x11091d]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b91ba,_0x59176d){const _0xc2a1db=a76_0x5c85,_0x48ef72=_0x4b91ba();while(!![]){try{const _0x3d141e=parseInt(_0xc2a1db(0x20b))/0x1*(-parseInt(_0xc2a1db(0x217))/0x2)+-parseInt(_0xc2a1db(0x210))/0x3*(parseInt(_0xc2a1db(0x200))/0x4)+parseInt(_0xc2a1db(0x1e8))/0x5*(-parseInt(_0xc2a1db(0x1f7))/0x6)+parseInt(_0xc2a1db(0x1f6))/0x7*(parseInt(_0xc2a1db(0x1ec))/0x8)+-parseInt(_0xc2a1db(0x1ff))/0x9*(-parseInt(_0xc2a1db(0x1fc))/0xa)+parseInt(_0xc2a1db(0x206))/0xb+parseInt(_0xc2a1db(0x1f3))/0xc;if(_0x3d141e===_0x59176d)break;else _0x48ef72['push'](_0x48ef72['shift']());}catch(_0x5a20cd){_0x48ef72['push'](_0x48ef72['shift']());}}}(a76_0x6e79,0xd4e23));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x161a31){const _0x205076=a76_0x5c85,_0x2a64df=_0x161a31[_0x205076(0x1f8)](_0x205076(0x1ea))||'personal';if(_0x2a64df==='personal'||_0x2a64df===_0x205076(0x20a))return _0x2a64df;throw CliErrors[_0x205076(0x204)](_0x205076(0x1f5)+_0x2a64df+'\x22.');}export function allowRetargetArgs(_0x31b25f){return _0x31b25f?[{'allowAppCodeRetarget':!![]}]:[];}function a76_0x6e79(){const _0x456f30=['identical','16039464xVMlsP','content','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','154GyefJS','391266PxmMSF','str','appCode','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','\x20after\x20successful\x20push.','20OIjoMC','Warnings:\x20','skillCode','3923055qECPEL','120548xGQQHT','Local\x20Skill\x20metadata\x20appCode\x20','downloadRuntimeSkillPackage','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','validation','Personal','9493286qzKkQP','warning','not-applicable','Company','company','2858sDuJNX','length','publishInput','lovrabet.skill.json','remote','165jCZolL','files','Builtin\x20Skill\x20','version','skill-metadata-appcode-retargeted','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','(unknown)','566YKWSDa','join','110wowWet','\x20cannot\x20be\x20pushed.','scope','builtin','618736BSpOuA','different','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','SkillHub\x20validation\x20returned\x20invalid.','errors'];a76_0x6e79=function(){return _0x456f30;};return a76_0x6e79();}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x6d3621={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x6d3621};}export function remotePersonalReadOptions(_0x9f9d97,_0x55add1={}){return{'ignoreInvalidMetadata':!![],..._0x9f9d97?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x55add1};}function a76_0x5c85(_0xb05719,_0x83b58a){_0xb05719=_0xb05719-0x1e8;const _0x6e7936=a76_0x6e79();let _0x5c85b2=_0x6e7936[_0xb05719];return _0x5c85b2;}export function throwIfBuiltinPushTarget(_0x283b31){const _0x5396ed=a76_0x5c85;if(_0x283b31?.[_0x5396ed(0x1ea)]!==_0x5396ed(0x1eb))return;throw CliErrors[_0x5396ed(0x204)](_0x5396ed(0x212)+(_0x283b31[_0x5396ed(0x1fe)]??_0x5396ed(0x216))+_0x5396ed(0x1e9),_0x5396ed(0x203));}export function throwIfPublishValidationFailed(_0x463995,_0x1cc4f6,_0x28cf23){const _0x2b2c43=a76_0x5c85;if(_0x28cf23[_0x2b2c43(0x1f1)]['length']===0x0&&(_0x28cf23['valid']||_0x28cf23['warnings'][_0x2b2c43(0x20c)]>0x0))return;const _0x1460a4=_0x28cf23[_0x2b2c43(0x1f1)][_0x2b2c43(0x20c)]>0x0?_0x28cf23[_0x2b2c43(0x1f1)][_0x2b2c43(0x218)](';\x20'):_0x2b2c43(0x1f0),_0x446d5a=_0x463995===_0x2b2c43(0x20a)?_0x2b2c43(0x209):_0x2b2c43(0x205);throw CliErrors[_0x2b2c43(0x204)](_0x446d5a+'\x20Skill\x20push\x20validation\x20failed\x20for\x20'+_0x1cc4f6+'.',_0x1460a4);}export function throwIfUnconfirmedPublishWarnings(_0x11be38,_0x459289,_0x262f63,_0x3ddc4a){const _0x24dd5b=a76_0x5c85;if(_0x262f63[_0x24dd5b(0x20c)]===0x0||_0x3ddc4a)return;const _0x43ecee=_0x11be38===_0x24dd5b(0x20a)?_0x24dd5b(0x209):'Personal';throw CliErrors['validation'](_0x43ecee+_0x24dd5b(0x215)+_0x459289+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0x24dd5b(0x1fa),_0x24dd5b(0x1ee),_0x24dd5b(0x1fd)+_0x262f63['join'](';\x20')][_0x24dd5b(0x218)]('\x20'));}export function buildRetargetWarning(_0x58d66d,_0x1c8ed1){const _0x5d191a=a76_0x5c85;if(!_0x58d66d?.['appCode']||_0x58d66d[_0x5d191a(0x1f9)]===_0x1c8ed1)return[];return[{'level':_0x5d191a(0x207),'ruleId':_0x5d191a(0x214),'file':_0x5d191a(0x20e),'message':_0x5d191a(0x201)+_0x58d66d[_0x5d191a(0x1f9)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x1c8ed1+_0x5d191a(0x1fb),'suggestion':_0x5d191a(0x1ef)}];}export async function runRemoteContentPreflight(_0x40e071){const _0x675276=a76_0x5c85;if(!_0x40e071[_0x675276(0x20f)]||_0x40e071[_0x675276(0x20f)]['scope']!==_0x40e071['scope']||!_0x40e071[_0x675276(0x20d)]['files'])return{'status':_0x675276(0x208)};const _0x3716c2=_0x40e071[_0x675276(0x20f)][_0x675276(0x1fe)]||_0x40e071[_0x675276(0x1fe)];if(!_0x3716c2)return{'status':_0x675276(0x208)};const _0x4027bd=await _0x40e071[_0x675276(0x202)](_0x40e071[_0x675276(0x1ea)],_0x3716c2,_0x40e071[_0x675276(0x1f9)],_0x40e071[_0x675276(0x20f)][_0x675276(0x213)]);try{_0x40e071['verifyRuntimeSkillBundle'](_0x40e071[_0x675276(0x20d)][_0x675276(0x211)],_0x4027bd);}catch{return{'status':_0x675276(0x1ed)};}return{'status':_0x675276(0x1f2),'savedSkill':{..._0x40e071['remote'],'content':_0x40e071[_0x675276(0x20d)][_0x675276(0x1f4)],'files':_0x40e071['publishInput']['files']}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x66f3c0,_0x453306){const _0x1b1697=a77_0x32a8,_0xae7c46=_0x66f3c0();while(!![]){try{const _0x2495b1=parseInt(_0x1b1697(0xf2))/0x1*(parseInt(_0x1b1697(0xf8))/0x2)+-parseInt(_0x1b1697(0xf3))/0x3+-parseInt(_0x1b1697(0x107))/0x4*(parseInt(_0x1b1697(0x109))/0x5)+parseInt(_0x1b1697(0xfc))/0x6*(parseInt(_0x1b1697(0xfd))/0x7)+parseInt(_0x1b1697(0x103))/0x8*(-parseInt(_0x1b1697(0xf6))/0x9)+parseInt(_0x1b1697(0xfb))/0xa*(parseInt(_0x1b1697(0xff))/0xb)+parseInt(_0x1b1697(0xf4))/0xc;if(_0x2495b1===_0x453306)break;else _0xae7c46['push'](_0xae7c46['shift']());}catch(_0x469b7a){_0xae7c46['push'](_0xae7c46['shift']());}}}(a77_0xf39e,0xba3db));export function withRetargetExistingMetadata(_0x201527,_0x39162b,_0x2561b2={}){const _0x5e8fb5=a77_0x32a8,_0x191615=_0x2561b2[_0x5e8fb5(0x101)]?_0x201527[_0x5e8fb5(0xf1)]??_0x39162b[_0x5e8fb5(0xf1)]:_0x39162b[_0x5e8fb5(0xf1)]??_0x201527['skillName'];return{..._0x201527,'skillName':_0x191615,'description':_0x39162b[_0x5e8fb5(0x104)]??_0x201527[_0x5e8fb5(0x104)],'tags':Array['isArray'](_0x39162b[_0x5e8fb5(0xfe)])?_0x39162b['tags']:_0x201527[_0x5e8fb5(0xfe)],'version':_0x39162b[_0x5e8fb5(0xfa)]??_0x201527[_0x5e8fb5(0xfa)],'sourceSessionId':_0x39162b['sourceSessionId']??_0x201527[_0x5e8fb5(0x106)]};}function a77_0x32a8(_0x235d61,_0x563676){_0x235d61=_0x235d61-0xf1;const _0xf39ed1=a77_0xf39e();let _0x32a8dc=_0xf39ed1[_0x235d61];return _0x32a8dc;}function a77_0xf39e(){const _0x536a7e=['8JHiurv','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','14795DJbwaX','skillName','2963dlHTRf','3078372YgAqvn','2096844PRLzJN','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','11800998DWPExA','appCode','162TxwYOh','Local\x20Skill\x20metadata\x20appCode\x20','version','127150cjQGlE','870288aolkDi','63ZDqbAq','tags','1199MYYeQF','lovrabet.skill.json','preferInputSkillName','\x20after\x20successful\x20push.','8yOdSNm','description','skill-metadata-appcode-retargeted','sourceSessionId'];a77_0xf39e=function(){return _0x536a7e;};return a77_0xf39e();}export function buildRetargetWarning(_0x1130d2,_0x418932){const _0x442beb=a77_0x32a8;if(!_0x1130d2?.[_0x442beb(0xf7)]||_0x1130d2[_0x442beb(0xf7)]===_0x418932)return[];return[{'level':'warning','ruleId':_0x442beb(0x105),'file':_0x442beb(0x100),'message':_0x442beb(0xf9)+_0x1130d2['appCode']+_0x442beb(0xf5)+_0x418932+_0x442beb(0x102),'suggestion':_0x442beb(0x108)}];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28dbdf,_0xb3f164){const _0x2c6955=a78_0x2cbd,_0x1235f5=_0x28dbdf();while(!![]){try{const _0x33bf16=-parseInt(_0x2c6955(0x11f))/0x1+-parseInt(_0x2c6955(0x126))/0x2+parseInt(_0x2c6955(0x11c))/0x3+parseInt(_0x2c6955(0x11a))/0x4*(-parseInt(_0x2c6955(0x120))/0x5)+-parseInt(_0x2c6955(0x124))/0x6*(-parseInt(_0x2c6955(0x125))/0x7)+-parseInt(_0x2c6955(0x11b))/0x8*(-parseInt(_0x2c6955(0x129))/0x9)+parseInt(_0x2c6955(0x121))/0xa;if(_0x33bf16===_0xb3f164)break;else _0x1235f5['push'](_0x1235f5['shift']());}catch(_0x2fc228){_0x1235f5['push'](_0x1235f5['shift']());}}}(a78_0x4a68,0x991fe));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x78ef7b){const _0x31c559=a78_0x2cbd,_0x53e10a=_0x78ef7b['trim']();if(!_0x53e10a||_0x53e10a===_0x31c559(0x128))return['personal','company'];if(_0x53e10a===_0x31c559(0x11d)||_0x53e10a==='company')return[_0x53e10a];throw CliErrors[_0x31c559(0x11e)](_0x31c559(0x123)+_0x78ef7b);}function a78_0x2cbd(_0x178ff0,_0x57445d){_0x178ff0=_0x178ff0-0x11a;const _0x4a68de=a78_0x4a68();let _0x2cbd5e=_0x4a68de[_0x178ff0];return _0x2cbd5e;}export function normalizeListScope(_0x5f515f){const _0x5e10f6=a78_0x2cbd,_0x265751=_0x5f515f[_0x5e10f6(0x127)]();if(!_0x265751)return'all';if(_0x265751===_0x5e10f6(0x11d)||_0x265751===_0x5e10f6(0x122)||_0x265751===_0x5e10f6(0x128))return _0x265751;throw CliErrors[_0x5e10f6(0x11e)](_0x5e10f6(0x12a)+_0x5f515f);}export function shouldListScope(_0x574bae,_0x719643){if(_0x574bae==='all')return!![];return _0x574bae===_0x719643;}export function listScopeToRuntimeScopes(_0x4bd307){const _0x5baf26=a78_0x2cbd;if(_0x4bd307==='all')return['personal',_0x5baf26(0x122)];return[_0x4bd307===_0x5baf26(0x122)?_0x5baf26(0x122):_0x4bd307];}export function listScopeToRemoteScope(_0x201813){return _0x201813;}function a78_0x4a68(){const _0x3945a7=['1287544uULiUY','1431987qhTWcF','personal','validation','183440DdZytJ','15SewtrS','4298440HyPSkl','company','Unsupported\x20Skill\x20sync\x20scope:\x20','66DxVVuX','661346GBPIVU','1820340nnDlLx','trim','all','18ckCDoX','Unsupported\x20Skill\x20list\x20scope:\x20','730012IwunBk'];a78_0x4a68=function(){return _0x3945a7;};return a78_0x4a68();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23694b,_0x157bf5){var _0xd3f486=a79_0x5059,_0x4eabb8=_0x23694b();while(!![]){try{var _0x2f1f51=parseInt(_0xd3f486(0x1de))/0x1+-parseInt(_0xd3f486(0x1d6))/0x2+parseInt(_0xd3f486(0x1ce))/0x3+-parseInt(_0xd3f486(0x1d9))/0x4+parseInt(_0xd3f486(0x1d7))/0x5*(parseInt(_0xd3f486(0x1ca))/0x6)+parseInt(_0xd3f486(0x1cd))/0x7*(-parseInt(_0xd3f486(0x1cf))/0x8)+parseInt(_0xd3f486(0x1d3))/0x9;if(_0x2f1f51===_0x157bf5)break;else _0x4eabb8['push'](_0x4eabb8['shift']());}catch(_0x379dc6){_0x4eabb8['push'](_0x4eabb8['shift']());}}}(a79_0x9421,0x1cf63));function a79_0x5059(_0x49257f,_0xd934d){_0x49257f=_0x49257f-0x1ca;var _0x9421db=a79_0x9421();var _0x5059b7=_0x9421db[_0x49257f];return _0x5059b7;}function a79_0x9421(){var _0x2b7067=['skillMdPath','294706aobbiY','9095wCveLK','contentHash','757536arTrGb','status','pulledAt','skillName','metadataPath','122209kFlyZT','tags','222tvvgvn','linkedPaths','cacheDir','14RGGSsS','537279uiFNSN','91576yZamZs','version','skillCode','treeHash','986877YSciiD','readonly'];a79_0x9421=function(){return _0x2b7067;};return a79_0x9421();}export function summarizeRuntimeSkill(_0x2433a5){var _0x25dec6=a79_0x5059;return{'id':_0x2433a5['id'],'skillCode':_0x2433a5['skillCode'],'skillName':_0x2433a5[_0x25dec6(0x1dc)],'scope':_0x2433a5['scope'],'version':_0x2433a5[_0x25dec6(0x1d0)],'readonly':_0x2433a5['readonly']};}export function summarizeLocalRuntimeSkill(_0x2e578d){var _0x51383a=a79_0x5059;return{'id':_0x2e578d['id'],'skillCode':_0x2e578d[_0x51383a(0x1d1)],'skillName':_0x2e578d['skillName'],'scope':_0x2e578d['scope'],'appCode':_0x2e578d['appCode'],'version':_0x2e578d['version'],'status':_0x2e578d[_0x51383a(0x1da)],'readonly':_0x2e578d[_0x51383a(0x1d4)],'tags':_0x2e578d[_0x51383a(0x1df)],'dir':_0x2e578d['dir'],'cacheDir':_0x2e578d[_0x51383a(0x1cc)],'skillMdPath':_0x2e578d[_0x51383a(0x1d5)],'metadataPath':_0x2e578d[_0x51383a(0x1dd)],'linkedPaths':_0x2e578d[_0x51383a(0x1cb)],'contentHash':_0x2e578d[_0x51383a(0x1d8)],'treeHash':_0x2e578d[_0x51383a(0x1d2)],'pulledAt':_0x2e578d[_0x51383a(0x1db)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x5a5f7a=a80_0x14bf;(function(_0x123d82,_0x5c1543){const _0x134432=a80_0x14bf,_0x164de1=_0x123d82();while(!![]){try{const _0x5ce402=parseInt(_0x134432(0x101))/0x1+-parseInt(_0x134432(0x10c))/0x2*(-parseInt(_0x134432(0xfb))/0x3)+-parseInt(_0x134432(0xf9))/0x4+parseInt(_0x134432(0x104))/0x5+-parseInt(_0x134432(0xff))/0x6*(parseInt(_0x134432(0xef))/0x7)+parseInt(_0x134432(0x109))/0x8+parseInt(_0x134432(0xf3))/0x9*(parseInt(_0x134432(0x10b))/0xa);if(_0x5ce402===_0x5c1543)break;else _0x164de1['push'](_0x164de1['shift']());}catch(_0x343515){_0x164de1['push'](_0x164de1['shift']());}}}(a80_0x3db0,0x7e824));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read'];export const DEFAULT_SKILL_TARGET=a80_0x5a5f7a(0x106);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a80_0x3db0(){const _0x9686e0=['\x20的所有必读规则必须位于\x20SKILL.md\x20或\x20references/\x20内。\x0a\x0a##\x20必读文档\x0a\x0a-\x20[SKILL.md](../SKILL.md)\x0a-\x20[runtime-contract.md](runtime-contract.md)\x0a-\x20[output-contract.md](output-contract.md)\x0a\x0a##\x20主边界\x0a\x0a-\x20不得依赖\x20Skill\x20目录外的仓库文件、绝对路径、file\x20URL\x20或本机专属配置。\x0a-\x20文档中的缓存路径、安装路径、示例路径或排障路径不等于运行时包外依赖;只有明确要求读取、链接或执行包外内容时才属于自包含风险。\x0a-\x20如需承接仓库规范,必须把必要规则内化到本\x20Skill\x20包内的\x20references/\x20文件中。\x0a-\x20type=','Use\x20one\x20of:\x20','timestamp','2233756CKUGhG','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','10377cIyRBw','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','---\x0aname:\x20','read','6kRikLM','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','355883ogYzic','Unsupported\x20Skill\x20type:\x20','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','123460NvTrHZ','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','.agents/skills','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','6826944teLPhu','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','70jlEJiU','244MqTnQa','validation','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','trim','join','write','references/runtime-contract.md','skillName','\x0a\x20\x20created:\x20\x22','test','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20Backend\x20Function\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','#\x20Output\x20Contract\x0a\x0a','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','5582437YTatpX','Invalid\x20Skill\x20name:\x20','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','includes','280503zbRlbc','SKILL.md','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a'];a80_0x3db0=function(){return _0x9686e0;};return a80_0x3db0();}export const RUNTIME_CONTRACT_FILE=a80_0x5a5f7a(0xe6);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x55ea60){const _0x192d61=a80_0x5a5f7a,_0x37d856=_0x55ea60['trim']();if(!SKILL_NAME_PATTERN[_0x192d61(0xe9)](_0x37d856))throw CliErrors[_0x192d61(0x10d)](_0x192d61(0xf0)+_0x55ea60+_0x192d61(0xfa),_0x192d61(0xea));return _0x37d856;}export function normalizeSkillTemplateType(_0x1e0af2){const _0x1f00fd=a80_0x5a5f7a,_0x24eb58=(_0x1e0af2||'write')[_0x1f00fd(0xe3)]()||_0x1f00fd(0xe5);if(SKILL_TYPES[_0x1f00fd(0xf2)](_0x24eb58))return _0x24eb58;throw CliErrors[_0x1f00fd(0x10d)](_0x1f00fd(0x102)+_0x1e0af2,_0x1f00fd(0xf7)+SKILL_TYPES[_0x1f00fd(0xe4)](',\x20')+'.');}export function renderSkillTemplate(_0xa7dc6c){const _0x398e68=a80_0x5a5f7a,_0x5c72a1=validateSkillName(_0xa7dc6c[_0x398e68(0xe7)]),_0xbcf393=normalizeSkillTemplateType(_0xa7dc6c['type']),_0x2b3b17=_0xa7dc6c[_0x398e68(0xf8)]??new Date()['toISOString']();return{'skillName':_0x5c72a1,'type':_0xbcf393,'files':[{'path':_0x398e68(0xf4),'content':renderSkillMd(_0x5c72a1,_0xbcf393,_0x2b3b17)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x5c72a1,_0xbcf393)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x5c72a1,_0xbcf393)}]};}function renderSkillMd(_0x2d2c41,_0x110883,_0x27bd94){const _0x34fdce=a80_0x5a5f7a,_0x3e8674=typeWorkflow(_0x110883);return _0x34fdce(0xfd)+_0x2d2c41+_0x34fdce(0xfc)+_0x110883+_0x34fdce(0xe8)+_0x27bd94+_0x34fdce(0x100)+_0x2d2c41+'\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、Backend\x20Function\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a'+_0x3e8674+'\x0a\x0a'+businessStateSection(_0x110883)+_0x34fdce(0xf5);}function renderRuntimeContract(_0x5154f6,_0x45919f){const _0x33f3fa=a80_0x5a5f7a,_0x472cf5=_0x45919f==='write'?_0x33f3fa(0x107):'';return _0x33f3fa(0xee)+_0x5154f6+_0x33f3fa(0xf6)+_0x45919f+_0x33f3fa(0xeb)+_0x472cf5+_0x33f3fa(0xed);}function renderOutputContract(_0x4e0074,_0x2e04d5){const _0x15b0c4=a80_0x5a5f7a,_0x3028a0=_0x2e04d5==='write'?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x2e04d5+_0x15b0c4(0x108);return _0x15b0c4(0xec)+_0x4e0074+_0x15b0c4(0xe2)+_0x3028a0+_0x15b0c4(0xf1);}function typeWorkflow(_0x56130c){const _0x53a269=a80_0x5a5f7a;if(_0x56130c===_0x53a269(0xfe))return _0x53a269(0x105);return _0x53a269(0x103);}function a80_0x14bf(_0x242161,_0x2e6b96){_0x242161=_0x242161-0xe2;const _0x3db089=a80_0x3db0();let _0x14bf7d=_0x3db089[_0x242161];return _0x14bf7d;}function businessStateSection(_0x38a22f){const _0x1727ca=a80_0x5a5f7a;if(_0x38a22f!==_0x1727ca(0xe5))return'';return _0x1727ca(0x10a);}
|