@lovrabet/lovrabet-cli 2.3.1-beta.1 → 2.3.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.d.ts +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.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +0 -3
- 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-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/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet/references/lovrabet-config-commands.md +5 -6
- package/skills/lovrabet/references/lovrabet-config.md +8 -9
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x274bab=a66_0x1272;function a66_0xe61a(){const _0x27aa40=['Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','accessKey','skillRoots','removed','appCode','all','925611Ywlnpw','100bmHLDm','62960jdMRGk','skillCode','../../../skills/runtime-skill-sync.js','force','global','company','1894UzHBKl','\x20personal\x20and\x20','str','updated','length','map','1202299mSGsZL','min','envName','from','2615391vwHxKv','created','590604slgZpP','bool','filter','unchanged','version','201381IDPNDW','project','action','\x20company\x20Skill(s).','trim','production','code','scope','includes','Installed\x20','10eUkFUe','8VqStfh','personal','skipped'];a66_0xe61a=function(){return _0x27aa40;};return a66_0xe61a();}(function(_0x1d25cb,_0x55745d){const _0x1acf05=a66_0x1272,_0x4c3194=_0x1d25cb();while(!![]){try{const _0x4e38d5=parseInt(_0x1acf05(0x1d3))/0x1+-parseInt(_0x1acf05(0x1c2))/0x2+parseInt(_0x1acf05(0x1ba))/0x3+parseInt(_0x1acf05(0x1bb))/0x4*(-parseInt(_0x1acf05(0x1bc))/0x5)+parseInt(_0x1acf05(0x1ce))/0x6+parseInt(_0x1acf05(0x1c8))/0x7*(parseInt(_0x1acf05(0x1b1))/0x8)+-parseInt(_0x1acf05(0x1cc))/0x9*(parseInt(_0x1acf05(0x1b0))/0xa);if(_0x4e38d5===_0x55745d)break;else _0x4c3194['push'](_0x4c3194['shift']());}catch(_0x3b96b6){_0x4c3194['push'](_0x4c3194['shift']());}}}(a66_0xe61a,0x2a6c3));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';function a66_0x1272(_0x2e0377,_0x24b54b){_0x2e0377=_0x2e0377-0x1ad;const _0xe61acf=a66_0xe61a();let _0x127285=_0xe61acf[_0x2e0377];return _0x127285;}const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':'skill','command':'install','description':a66_0x274bab(0x1b4),'risk':'read','requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x5ae193){return syncRuntimeSkills(_0x5ae193);}};async function syncRuntimeSkills(_0x24738b){const _0x42bff2=a66_0x274bab,{downloadRuntimeSkillPackage:_0x588192,listRuntimeSkills:_0x37c06e}=await import('../../../core/api-client.js'),{linkEffectiveRuntimeSkills:_0x3e0ecf,materializeRuntimeSkill:_0x104bbd,pruneStaleRuntimeSkillCache:_0x41ee87,pruneStaleRuntimeSkillLinks:_0x337f9b,resolveRuntimeSkillInstallTarget:_0x36c089,reuseMaterializedRuntimeSkill:_0xfe391f}=await import(_0x42bff2(0x1be)),_0x641314=_0x24738b[_0x42bff2(0x1c4)](_0x42bff2(0x1d9)),_0x1ce851=normalizeSyncScopes(_0x24738b[_0x42bff2(0x1c4)](_0x42bff2(0x1ad))),_0x2cb706=_0x24738b[_0x42bff2(0x1ca)]??_0x42bff2(0x1d8),_0x52ebbf=_0x24738b[_0x42bff2(0x1b5)],_0x419b7b=_0x24738b[_0x42bff2(0x1cf)](_0x42bff2(0x1bf));if(!_0x52ebbf)throw CliErrors['authRequired']('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x5acdd3=_0x36c089(_0x24738b[_0x42bff2(0x1b8)],_0x24738b['bool']('project')?_0x42bff2(0x1d4):_0x42bff2(0x1c0)),_0x52c87a=_0x36c089(_0x24738b[_0x42bff2(0x1b8)],_0x5acdd3['scope']===_0x42bff2(0x1d4)?_0x42bff2(0x1c0):_0x42bff2(0x1d4)),_0x53db09=await _0x37c06e({'appCode':_0x24738b[_0x42bff2(0x1b8)],'scope':_0x1ce851[_0x42bff2(0x1c6)]===0x1?_0x1ce851[0x0]:_0x42bff2(0x1b9),'code':_0x641314['trim']()||undefined}),_0x240566=_0x1ce851[_0x42bff2(0x1ae)](_0x42bff2(0x1b2))?_0x53db09[_0x42bff2(0x1b2)]:[],_0x3cbae2=_0x1ce851[_0x42bff2(0x1ae)]('company')?_0x53db09[_0x42bff2(0x1c1)]:[],_0xf132f9=new Set([..._0x240566[_0x42bff2(0x1c7)](_0x56fb67=>_0x56fb67[_0x42bff2(0x1bd)]?.[_0x42bff2(0x1d7)]())[_0x42bff2(0x1d0)](_0xbe16c2=>Boolean(_0xbe16c2)),..._0x3cbae2[_0x42bff2(0x1c7)](_0x2d457a=>_0x2d457a[_0x42bff2(0x1bd)]?.['trim']())[_0x42bff2(0x1d0)](_0x4ef5fb=>Boolean(_0x4ef5fb))]),_0x44006a=_0x641314[_0x42bff2(0x1d7)]()?[_0x641314[_0x42bff2(0x1d7)]()]:undefined,_0x3704fa=_0x1ce851['length']===0x2&&_0x1ce851[_0x42bff2(0x1ae)]('personal')&&_0x1ce851[_0x42bff2(0x1ae)](_0x42bff2(0x1c1)),_0x5d9fbb=_0x3704fa?_0x337f9b(_0x5acdd3,_0xf132f9,_0x44006a):[],_0x122ac2=_0x41ee87({'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x42bff2(0x1b8)],'activeSkillCodes':_0xf132f9,'pruneSkillCodes':_0x44006a,'scopes':_0x1ce851,'protectedLinkRoots':_0x52c87a[_0x42bff2(0x1b6)]}),_0x95136d=[..._0x240566[_0x42bff2(0x1c7)](_0xe87bb1=>({'skill':_0xe87bb1,'scope':_0x42bff2(0x1b2)})),..._0x3cbae2[_0x42bff2(0x1c7)](_0x1c2aad=>({'skill':_0x1c2aad,'scope':_0x42bff2(0x1c1)}))],_0x17914d=await mapConcurrent(_0x95136d,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x1d7980,scope:_0x2e5731})=>{const _0x171e14=_0x42bff2,_0x634a5d=_0xfe391f(_0x1d7980,_0x2e5731,{'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x171e14(0x1b8)]});if(_0x634a5d)return _0x634a5d;return _0x104bbd(_0x1d7980,_0x2e5731,{'env':_0x2cb706,'accessKey':_0x52ebbf,'appCode':_0x24738b[_0x171e14(0x1b8)],'force':_0x419b7b,'packageBytes':await downloadSkillPackage(_0x1d7980,_0x2e5731,_0x24738b[_0x171e14(0x1b8)],_0x588192)});}),_0x1b3014=_0x3e0ecf(_0x17914d,_0x5acdd3),_0x4d18ac=countLinkActions(_0x1b3014);return{'ok':!![],'data':{'appCode':_0x24738b[_0x42bff2(0x1b8)],..._0x5acdd3[_0x42bff2(0x1ad)]===_0x42bff2(0x1d4)?{'installTarget':{'scope':_0x5acdd3[_0x42bff2(0x1ad)],'skillRoots':[..._0x5acdd3[_0x42bff2(0x1b6)]]}}:{},'personal':_0x240566[_0x42bff2(0x1c6)],'company':_0x3cbae2[_0x42bff2(0x1c6)],'materialized':_0x17914d[_0x42bff2(0x1c6)],'links':{'total':_0x1b3014[_0x42bff2(0x1c6)],'created':_0x4d18ac[_0x42bff2(0x1cd)]??0x0,'updated':_0x4d18ac[_0x42bff2(0x1c5)]??0x0,'unchanged':_0x4d18ac[_0x42bff2(0x1d1)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x5d9fbb['filter'](_0x2211a5=>_0x2211a5[_0x42bff2(0x1d5)]==='removed')[_0x42bff2(0x1c6)],'cacheDirs':_0x122ac2[_0x42bff2(0x1d0)](_0x582e68=>_0x582e68[_0x42bff2(0x1d5)]===_0x42bff2(0x1b7))[_0x42bff2(0x1c6)],'skipped':[..._0x5d9fbb,..._0x122ac2][_0x42bff2(0x1d0)](_0x3758e8=>_0x3758e8[_0x42bff2(0x1d5)]===_0x42bff2(0x1b3))['length']},'skills':{'personal':_0x240566[_0x42bff2(0x1c7)](summarizeRuntimeSkill),'company':_0x3cbae2[_0x42bff2(0x1c7)](summarizeRuntimeSkill)}},'message':_0x42bff2(0x1af)+_0x240566[_0x42bff2(0x1c6)]+_0x42bff2(0x1c3)+_0x3cbae2[_0x42bff2(0x1c6)]+_0x42bff2(0x1d6)};}async function mapConcurrent(_0x5778dc,_0xa81213,_0x416bec){const _0x5a7b12=a66_0x274bab,_0x1bc5da=new Array(_0x5778dc[_0x5a7b12(0x1c6)]);let _0x4b345f=0x0;const _0x113d81=Array[_0x5a7b12(0x1cb)]({'length':Math[_0x5a7b12(0x1c9)](_0xa81213,_0x5778dc[_0x5a7b12(0x1c6)])},async()=>{const _0x12f190=_0x5a7b12;while(_0x4b345f<_0x5778dc[_0x12f190(0x1c6)]){const _0x3a8154=_0x4b345f;_0x4b345f+=0x1,_0x1bc5da[_0x3a8154]=await _0x416bec(_0x5778dc[_0x3a8154]);}});return await Promise[_0x5a7b12(0x1b9)](_0x113d81),_0x1bc5da;}async function downloadSkillPackage(_0x607dbf,_0x356f2b,_0x106b91,_0x17deb3){const _0x4f6712=a66_0x274bab,_0x59d512=_0x607dbf[_0x4f6712(0x1d2)]?.[_0x4f6712(0x1d7)]();return _0x59d512?_0x17deb3(_0x356f2b,_0x607dbf['skillCode'],_0x106b91,_0x59d512):_0x17deb3(_0x356f2b,_0x607dbf[_0x4f6712(0x1bd)],_0x106b91);}function countLinkActions(_0x380c96){return _0x380c96['reduce']((_0x327e10,_0x47ec49)=>{const _0x1dc6eb=a66_0x1272;return _0x327e10[_0x47ec49[_0x1dc6eb(0x1d5)]]=(_0x327e10[_0x47ec49[_0x1dc6eb(0x1d5)]]??0x0)+0x1,_0x327e10;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x4acc47=a67_0x2929;(function(_0x49942f,_0x3b3ba2){const _0x55a539=a67_0x2929,_0x50241e=_0x49942f();while(!![]){try{const _0x33108b=parseInt(_0x55a539(0x1f0))/0x1*(parseInt(_0x55a539(0x1fd))/0x2)+parseInt(_0x55a539(0x1f2))/0x3+parseInt(_0x55a539(0x1fa))/0x4*(-parseInt(_0x55a539(0x1fb))/0x5)+-parseInt(_0x55a539(0x1e7))/0x6*(parseInt(_0x55a539(0x1ea))/0x7)+parseInt(_0x55a539(0x1f8))/0x8+parseInt(_0x55a539(0x1e3))/0x9+-parseInt(_0x55a539(0x1f6))/0xa;if(_0x33108b===_0x3b3ba2)break;else _0x50241e['push'](_0x50241e['shift']());}catch(_0x4ebb9f){_0x50241e['push'](_0x50241e['shift']());}}}(a67_0x4f50,0xcb889));function a67_0x4f50(){const _0x13276=['List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','Listed\x20','31296dZEnHJ','filter','envName','1036fDXbma','scope','list','\x20local\x20Skill(s).','length','project','987dxxIlt','map','250980XmtkbB','company','local','personal','2897750PuguWv','global','5503328DJnwIc','appCode','116IgMyYm','122435kpiCnL','builtin','2388FEjgGF','str','../../../core/api-client.js','read','code','skill','bool','\x20remote\x20Skill(s).','5899365qTnEXs','authRequired'];a67_0x4f50=function(){return _0x13276;};return a67_0x4f50();}import{CliErrors}from'../../../errors.js';function a67_0x2929(_0x43c24b,_0x3be704){_0x43c24b=_0x43c24b-0x1dd;const _0x4f5006=a67_0x4f50();let _0x292943=_0x4f5006[_0x43c24b];return _0x292943;}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':a67_0x4acc47(0x1e0),'command':a67_0x4acc47(0x1ec),'description':a67_0x4acc47(0x1e5),'risk':a67_0x4acc47(0x1de),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x1097c1){const _0xe65f93=a67_0x4acc47,_0x3d739a=_0x1097c1[_0xe65f93(0x1fe)](_0xe65f93(0x1df)),_0x247bd6=normalizeListScope(_0x1097c1[_0xe65f93(0x1fe)]('scope'));if(_0x1097c1[_0xe65f93(0x1e1)](_0xe65f93(0x1f4))){const _0x144ec8=_0x1097c1['accessKey'];if(!_0x144ec8)throw CliErrors[_0xe65f93(0x1e4)]();const {listLocalRuntimeSkills:_0x113bb0,resolveRuntimeSkillInstallTarget:_0x5e99d1}=await import('../../../skills/runtime-skill-sync.js'),_0x50d363=_0x5e99d1(_0x1097c1[_0xe65f93(0x1f9)],_0x1097c1['bool'](_0xe65f93(0x1ef))?_0xe65f93(0x1ef):_0xe65f93(0x1f7)),_0xea222d=_0x113bb0({'env':_0x1097c1[_0xe65f93(0x1e9)]??'production','accessKey':_0x144ec8,'appCode':_0x1097c1['appCode'],'scopes':listScopeToRuntimeScopes(_0x247bd6),'code':_0x3d739a['trim']()||undefined},_0x50d363),_0x2e0091=groupLocalRuntimeSkills(_0xea222d);return{'ok':!![],'data':{'appCode':_0x1097c1['appCode'],'source':_0xe65f93(0x1f4),..._0x50d363[_0xe65f93(0x1eb)]===_0xe65f93(0x1ef)?{'installScope':_0x50d363['scope']}:{},'scope':_0x247bd6,'total':_0xea222d[_0xe65f93(0x1ee)],'personal':_0x2e0091[_0xe65f93(0x1f5)]['length'],'company':_0x2e0091[_0xe65f93(0x1f3)][_0xe65f93(0x1ee)],'items':_0xea222d[_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x2e0091[_0xe65f93(0x1f5)][_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill),'company':_0x2e0091[_0xe65f93(0x1f3)][_0xe65f93(0x1f1)](summarizeLocalRuntimeSkill)}},'message':_0xe65f93(0x1e6)+_0xea222d[_0xe65f93(0x1ee)]+_0xe65f93(0x1ed)};}const {listRuntimeSkills:_0x59dc1c}=await import(_0xe65f93(0x1dd)),_0x31bc03=await _0x59dc1c({'appCode':_0x1097c1[_0xe65f93(0x1f9)],'scope':listScopeToRemoteScope(_0x247bd6),'code':_0x3d739a['trim']()||undefined}),_0x27f711=shouldListScope(_0x247bd6,_0xe65f93(0x1f5))?_0x31bc03[_0xe65f93(0x1f5)]??[]:[],_0xe1abf0=shouldListScope(_0x247bd6,_0xe65f93(0x1f3))?_0x31bc03[_0xe65f93(0x1f3)]??[]:[],_0x45caeb=[..._0x27f711,..._0xe1abf0];return{'ok':!![],'data':{'appCode':_0x1097c1[_0xe65f93(0x1f9)],'source':'remote','scope':_0x247bd6,'total':_0x45caeb[_0xe65f93(0x1ee)],'personal':_0x27f711[_0xe65f93(0x1ee)],'company':_0xe1abf0['length'],'items':_0x45caeb[_0xe65f93(0x1f1)](summarizeRuntimeSkill),'skills':{'personal':_0x27f711[_0xe65f93(0x1f1)](summarizeRuntimeSkill),'company':_0xe1abf0[_0xe65f93(0x1f1)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x45caeb['length']+_0xe65f93(0x1e2)};}};function groupLocalRuntimeSkills(_0x2bf4c4){const _0x7c2ff8=a67_0x4acc47;return{'personal':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x5bb223=>_0x5bb223[_0x7c2ff8(0x1eb)]===_0x7c2ff8(0x1f5)),'company':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x350411=>_0x350411[_0x7c2ff8(0x1eb)]===_0x7c2ff8(0x1f3)),'builtin':_0x2bf4c4[_0x7c2ff8(0x1e8)](_0x26b777=>_0x26b777['scope']===_0x7c2ff8(0x1fc))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x4e2b92=a68_0x41dd;function a68_0x41dd(_0x1cf97f,_0x3c938f){_0x1cf97f=_0x1cf97f-0x143;const _0x5ef8c=a68_0x5ef8();let _0x41ddac=_0x5ef8c[_0x1cf97f];return _0x41ddac;}(function(_0x43eaaf,_0x4a21d0){const _0x587187=a68_0x41dd,_0x8cf875=_0x43eaaf();while(!![]){try{const _0x4b5d46=parseInt(_0x587187(0x152))/0x1*(-parseInt(_0x587187(0x153))/0x2)+parseInt(_0x587187(0x14e))/0x3*(parseInt(_0x587187(0x14a))/0x4)+-parseInt(_0x587187(0x151))/0x5*(parseInt(_0x587187(0x146))/0x6)+parseInt(_0x587187(0x145))/0x7*(parseInt(_0x587187(0x154))/0x8)+parseInt(_0x587187(0x14c))/0x9+parseInt(_0x587187(0x14d))/0xa*(-parseInt(_0x587187(0x14f))/0xb)+-parseInt(_0x587187(0x150))/0xc*(-parseInt(_0x587187(0x144))/0xd);if(_0x4b5d46===_0x4a21d0)break;else _0x8cf875['push'](_0x8cf875['shift']());}catch(_0x316d36){_0x8cf875['push'](_0x8cf875['shift']());}}}(a68_0x5ef8,0x6e9fe));import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';function a68_0x5ef8(){const _0x256bfd=['push','118274trtjvL','3227TYkEpz','1536834sJezGh','write','skill','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.','2540cBbpiM','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','6662448COSnVl','156010QdXicK','2343HWuvrw','154pOyOXj','1272zIYkUD','15wTKjKW','1aboIRg','1768388BfmYWa','2144DggXpZ'];a68_0x5ef8=function(){return _0x256bfd;};return a68_0x5ef8();}import{skillPushDryRun,skillPushExecute}from'../push-execute.js';export const pushCommand={'service':a68_0x4e2b92(0x148),'command':a68_0x4e2b92(0x143),'description':a68_0x4e2b92(0x14b),'risk':a68_0x4e2b92(0x147),'confirmationDescription':a68_0x4e2b92(0x149),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a69_0x2cc151=a69_0x5a67;(function(_0x1d538d,_0x2a8419){const _0x253f0d=a69_0x5a67,_0x3cb124=_0x1d538d();while(!![]){try{const _0x1adc9c=-parseInt(_0x253f0d(0x1df))/0x1*(-parseInt(_0x253f0d(0x1ea))/0x2)+-parseInt(_0x253f0d(0x1ec))/0x3*(-parseInt(_0x253f0d(0x1ee))/0x4)+-parseInt(_0x253f0d(0x1e7))/0x5+parseInt(_0x253f0d(0x1de))/0x6*(parseInt(_0x253f0d(0x1dc))/0x7)+parseInt(_0x253f0d(0x1e3))/0x8+-parseInt(_0x253f0d(0x1dd))/0x9*(-parseInt(_0x253f0d(0x1e2))/0xa)+-parseInt(_0x253f0d(0x1ed))/0xb;if(_0x1adc9c===_0x2a8419)break;else _0x3cb124['push'](_0x3cb124['shift']());}catch(_0x24688e){_0x3cb124['push'](_0x3cb124['shift']());}}}(a69_0x2482,0x69d79));function a69_0x5a67(_0x4a8db6,_0x9cae8f){_0x4a8db6=_0x4a8db6-0x1dc;const _0x2482fb=a69_0x2482();let _0x5a6732=_0x2482fb[_0x4a8db6];return _0x5a6732;}function a69_0x2482(){const _0x38ce54=['dir','bool','3322245avmnnD','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','strict','867988NEbKql','Skill\x20validation\x20passed.','327009gAdnXK','8790122vnrJuf','28jmzKal','7pwwVbd','45aFMfSd','2649930FmgZdP','1nMeLey','skill','validate','503380rUTYKI','53760mzNpld','read'];a69_0x2482=function(){return _0x38ce54;};return a69_0x2482();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a69_0x2cc151(0x1e0),'command':a69_0x2cc151(0x1e1),'description':a69_0x2cc151(0x1e8),'risk':a69_0x2cc151(0x1e4),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x25a5d9){const _0x2b9c61=a69_0x2cc151,_0x4e60de=_0x25a5d9[_0x2b9c61(0x1e6)](_0x2b9c61(0x1e9)),_0x47464c=validateSkillDirectory(_0x25a5d9['str'](_0x2b9c61(0x1e5)),{'strict':_0x4e60de});return throwIfSkillValidationFailed(_0x47464c,_0x4e60de),{'ok':!![],'data':{'dir':_0x47464c[_0x2b9c61(0x1e5)],'type':_0x47464c['type'],'errors':_0x47464c['errors'],'warnings':_0x47464c['warnings']},'message':_0x2b9c61(0x1eb)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48829b,_0x3a478c){const _0x52b06f=a70_0x2f46,_0x5dce3a=_0x48829b();while(!![]){try{const _0x2ca42f=parseInt(_0x52b06f(0x14b))/0x1*(-parseInt(_0x52b06f(0x143))/0x2)+-parseInt(_0x52b06f(0x137))/0x3+parseInt(_0x52b06f(0x141))/0x4*(-parseInt(_0x52b06f(0x144))/0x5)+-parseInt(_0x52b06f(0x139))/0x6*(parseInt(_0x52b06f(0x140))/0x7)+-parseInt(_0x52b06f(0x133))/0x8*(parseInt(_0x52b06f(0x14a))/0x9)+parseInt(_0x52b06f(0x134))/0xa*(-parseInt(_0x52b06f(0x146))/0xb)+parseInt(_0x52b06f(0x148))/0xc;if(_0x2ca42f===_0x3a478c)break;else _0x5dce3a['push'](_0x5dce3a['shift']());}catch(_0xfbe365){_0x5dce3a['push'](_0x5dce3a['shift']());}}}(a70_0x21cc,0x9150e));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';function a70_0x21cc(){const _0x29debd=['3607255bYJKrR','diagram','11VuUDDm','default','54451296zoYTlq','window','126bItSQp','2297oqNDwg','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','parse','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','181736xXoths','1158730uoamdL','validation','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','3555132BGJrsw','document','6BaZtXe','Mermaid\x20syntax\x20validation\x20failed.','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','trim','replace','isFile','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','3142258LHpYwk','4jYZjWZ','utf8','1004TwvRxw'];a70_0x21cc=function(){return _0x29debd;};return a70_0x21cc();}let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x4b789e){const _0x590c6c=a70_0x2f46;return(await readRequiredSkillDiagramInput(_0x4b789e))[_0x590c6c(0x145)];}export async function readRequiredSkillDiagramInput(_0x35fc74){const _0x5222e7=a70_0x2f46,_0x366085=_0x35fc74[_0x5222e7(0x13c)]();if(!_0x366085)throw CliErrors[_0x5222e7(0x135)](_0x5222e7(0x136),_0x5222e7(0x13b));let _0x52f896,_0x12f077;if(_0x366085==='-')try{_0x52f896=readFileSync(0x0,_0x5222e7(0x142));}catch{throw CliErrors[_0x5222e7(0x135)](_0x5222e7(0x14c));}else{const _0x584b3f=resolve(_0x366085);if(!existsSync(_0x584b3f))throw CliErrors['validation']('Mermaid\x20flowchart\x20file\x20not\x20found:\x20'+_0x584b3f);if(!statSync(_0x584b3f)[_0x5222e7(0x13e)]())throw CliErrors['validation'](_0x5222e7(0x13f)+_0x584b3f);_0x12f077=realpathSync(_0x584b3f),_0x52f896=readFileSync(_0x12f077,_0x5222e7(0x142));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x52f896)},'sourceFilePath':_0x12f077};}export async function validateAndCanonicalizeMermaid(_0x13d4ca){const _0x793dc6=a70_0x2f46,_0x343070=_0x13d4ca['replace'](/\r\n/g,'\x0a')[_0x793dc6(0x13d)](/\r/g,'\x0a')[_0x793dc6(0x13d)](/\n+$/,'')+'\x0a';try{const _0x1e0822=await loadMermaidApi();await _0x1e0822[_0x793dc6(0x14d)](_0x343070);}catch{throw diagramValidationError();}return _0x343070;}function a70_0x2f46(_0x35e193,_0x45e665){_0x35e193=_0x35e193-0x132;const _0x21cc0a=a70_0x21cc();let _0x2f462f=_0x21cc0a[_0x35e193];return _0x2f462f;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x46744c=a70_0x2f46;if(!(_0x46744c(0x149)in globalThis)||!(_0x46744c(0x138)in globalThis)){const _0x4b1c3c=new JSDOM('');Object['defineProperties'](globalThis,{'window':{'configurable':!![],'value':_0x4b1c3c[_0x46744c(0x149)]},'document':{'configurable':!![],'value':_0x4b1c3c[_0x46744c(0x149)]['document']}});}return(await import('mermaid'))[_0x46744c(0x147)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x3c806d=a70_0x2f46;return CliErrors['validation'](_0x3c806d(0x13a),_0x3c806d(0x132));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x1604d8=a71_0xbdd7;(function(_0x2d9f91,_0xf2da0c){const _0x9491d5=a71_0xbdd7,_0x90e0e8=_0x2d9f91();while(!![]){try{const _0x57364a=parseInt(_0x9491d5(0x11b))/0x1+parseInt(_0x9491d5(0x103))/0x2+-parseInt(_0x9491d5(0x118))/0x3*(-parseInt(_0x9491d5(0x10a))/0x4)+-parseInt(_0x9491d5(0xfa))/0x5+-parseInt(_0x9491d5(0x10c))/0x6*(parseInt(_0x9491d5(0xfb))/0x7)+-parseInt(_0x9491d5(0x102))/0x8*(parseInt(_0x9491d5(0x100))/0x9)+-parseInt(_0x9491d5(0x119))/0xa*(-parseInt(_0x9491d5(0xfe))/0xb);if(_0x57364a===_0xf2da0c)break;else _0x90e0e8['push'](_0x90e0e8['shift']());}catch(_0x23c7c2){_0x90e0e8['push'](_0x90e0e8['shift']());}}}(a71_0x1ccb,0x8d345));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a71_0x1604d8(0x11f),'description':a71_0x1604d8(0x117)};export const SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':'string','description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a71_0x1604d8(0x105),a71_0x1604d8(0x104),'company']};export const PUSH_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':'string','description':a71_0x1604d8(0x112),'default':a71_0x1604d8(0x104),'enum':[a71_0x1604d8(0x104),'company']};export const LIST_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':a71_0x1604d8(0x11f),'description':'Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','enum':['all',a71_0x1604d8(0x104),'company']};export const LOCAL_FLAG={'name':a71_0x1604d8(0x11c),'type':'boolean','description':a71_0x1604d8(0x109)};export const DIR_FLAG={'name':a71_0x1604d8(0x108),'type':a71_0x1604d8(0x11f),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};function a71_0xbdd7(_0x4dd35d,_0x579772){_0x4dd35d=_0x4dd35d-0xf7;const _0x1ccbea=a71_0x1ccb();let _0xbdd714=_0x1ccbea[_0x4dd35d];return _0xbdd714;}function a71_0x1ccb(){const _0x241342=['417794Teoezy','personal','all','name','source-fingerprint','dir','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','4OxDNJa','type','245010ZxpqLD','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','strict','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','skill-code','force','expected-diagram-revision','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','1494906nzgUQE','10CXIXZp','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','226617IxgYPb','local','Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram','version','string','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','diagram-file','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','boolean','3305070uqBVef','147YmGMuO','confirm-warnings','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','23319461FHDEun','target','1722321HZnLOj','scope','40hjsJJC'];a71_0x1ccb=function(){return _0x241342;};return a71_0x1ccb();}export const DIAGRAM_FILE_FLAG={'name':a71_0x1604d8(0x121),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0xf7)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a71_0x1604d8(0x113),'type':'string','required':!![],'description':a71_0x1604d8(0x116)};export const DIAGRAM_VERSION_FLAG={'name':a71_0x1604d8(0x11e),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0x111)};export const DIAGRAM_SCOPE_FLAG={'name':a71_0x1604d8(0x101),'type':a71_0x1604d8(0x11f),'required':!![],'enum':[a71_0x1604d8(0x104),'company'],'description':a71_0x1604d8(0x11a)};export const SOURCE_FINGERPRINT_FLAG={'name':a71_0x1604d8(0x107),'type':a71_0x1604d8(0x11f),'required':!![],'description':'Server-reported\x20SkillVersion\x20source\x20fingerprint','pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a71_0x1604d8(0x110)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a71_0x1604d8(0x115),'type':'number','required':!![],'description':a71_0x1604d8(0x11d)};export const CREATE_NAME_FLAG={'name':a71_0x1604d8(0x106),'type':a71_0x1604d8(0x11f),'required':!![],'description':a71_0x1604d8(0x120),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a71_0x1604d8(0x10e)}};export const TYPE_FLAG={'name':a71_0x1604d8(0x10b),'type':a71_0x1604d8(0x11f),'description':a71_0x1604d8(0xf8),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a71_0x1604d8(0xff),'type':a71_0x1604d8(0x11f),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a71_0x1604d8(0x114),'type':a71_0x1604d8(0xf9),'description':'Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists'};export const PROJECT_TARGET_FLAG={'name':'project','type':a71_0x1604d8(0xf9),'description':'Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories'};export const CONFIRM_WARNINGS_FLAG={'name':a71_0x1604d8(0xfc),'type':a71_0x1604d8(0xf9),'description':a71_0x1604d8(0xfd)};export const STRICT_FLAG={'name':a71_0x1604d8(0x10f),'type':'boolean','description':a71_0x1604d8(0x10d)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5556a8,_0x655d96){const _0x1a7690=a72_0x34e0,_0x4f2a3a=_0x5556a8();while(!![]){try{const _0x2f2376=-parseInt(_0x1a7690(0xd3))/0x1*(-parseInt(_0x1a7690(0xd2))/0x2)+parseInt(_0x1a7690(0xcf))/0x3+-parseInt(_0x1a7690(0xcd))/0x4+-parseInt(_0x1a7690(0xcc))/0x5+-parseInt(_0x1a7690(0xca))/0x6*(parseInt(_0x1a7690(0xd0))/0x7)+parseInt(_0x1a7690(0xcb))/0x8*(parseInt(_0x1a7690(0xce))/0x9)+parseInt(_0x1a7690(0xd1))/0xa;if(_0x2f2376===_0x655d96)break;else _0x4f2a3a['push'](_0x4f2a3a['shift']());}catch(_0x309a2f){_0x4f2a3a['push'](_0x4f2a3a['shift']());}}}(a72_0x2731,0x21d78));function a72_0x2731(){const _0xe66cc8=['7MRiXkJ','84BHqhFC','8XhzsNw','734060SBftLL','472620voizsK','1440999CVmMNY','95967QgFWsD','105553ypQhyM','2138560wUbBlf','59638lNZKEG'];a72_0x2731=function(){return _0xe66cc8;};return a72_0x2731();}import{createCommand}from'./commands/create.js';function a72_0x34e0(_0x43804f,_0x2adf57){_0x43804f=_0x43804f-0xca;const _0x2731e3=a72_0x2731();let _0x34e053=_0x2731e3[_0x43804f];return _0x34e053;}import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cb97b,_0x2dd1d1){var _0x1dbbe7=a73_0x34f9,_0x54ed6d=_0x2cb97b();while(!![]){try{var _0x502e4b=parseInt(_0x1dbbe7(0x193))/0x1+parseInt(_0x1dbbe7(0x18a))/0x2+parseInt(_0x1dbbe7(0x18c))/0x3+-parseInt(_0x1dbbe7(0x195))/0x4+-parseInt(_0x1dbbe7(0x191))/0x5+-parseInt(_0x1dbbe7(0x196))/0x6*(-parseInt(_0x1dbbe7(0x190))/0x7)+-parseInt(_0x1dbbe7(0x18d))/0x8;if(_0x502e4b===_0x2dd1d1)break;else _0x54ed6d['push'](_0x54ed6d['shift']());}catch(_0x33596d){_0x54ed6d['push'](_0x54ed6d['shift']());}}}(a73_0x20e6,0x85601));function a73_0x34f9(_0x1fa6b3,_0x54f356){_0x1fa6b3=_0x1fa6b3-0x189;var _0x20e6db=a73_0x20e6();var _0x34f900=_0x20e6db[_0x1fa6b3];return _0x34f900;}export function isPackageBackedManifest(_0x816a81){var _0x5df929=a73_0x34f9;return!!_0x816a81&&typeof _0x816a81===_0x5df929(0x189)&&!Array['isArray'](_0x816a81)&&typeof _0x816a81[_0x5df929(0x18e)]===_0x5df929(0x194)&&_0x816a81[_0x5df929(0x18e)][_0x5df929(0x198)]>0x0&&Array[_0x5df929(0x18b)](_0x816a81[_0x5df929(0x192)]);}function a73_0x20e6(){var _0x50ee8b=['7854600DqahrC','ossPath','path','4342478zeRSHT','5117860znkxii','files','800569HtwUgN','string','2703088GhcVyr','6vQhHVA','SKILL.md','length','object','1942134ysGVLy','isArray','2506452zgUpAs'];a73_0x20e6=function(){return _0x50ee8b;};return a73_0x20e6();}export function isMultiFileManifest(_0x374cdc){var _0x28c8c0=a73_0x34f9;return!!_0x374cdc&&typeof _0x374cdc==='object'&&!Array[_0x28c8c0(0x18b)](_0x374cdc)&&Array[_0x28c8c0(0x18b)](_0x374cdc[_0x28c8c0(0x192)])&&_0x374cdc[_0x28c8c0(0x192)]['some'](_0x491c5d=>_0x491c5d[_0x28c8c0(0x18f)]!==_0x28c8c0(0x197));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4b05a9,_0x3e22c7){const _0x599658=a74_0x4afb,_0x20b62e=_0x4b05a9();while(!![]){try{const _0x1628be=-parseInt(_0x599658(0x114))/0x1+-parseInt(_0x599658(0x12e))/0x2+parseInt(_0x599658(0xfc))/0x3*(-parseInt(_0x599658(0x121))/0x4)+-parseInt(_0x599658(0x125))/0x5*(parseInt(_0x599658(0x10e))/0x6)+parseInt(_0x599658(0x123))/0x7+-parseInt(_0x599658(0xfd))/0x8*(-parseInt(_0x599658(0x10f))/0x9)+parseInt(_0x599658(0x107))/0xa*(parseInt(_0x599658(0x110))/0xb);if(_0x1628be===_0x3e22c7)break;else _0x20b62e['push'](_0x20b62e['shift']());}catch(_0x36ec4f){_0x20b62e['push'](_0x20b62e['shift']());}}}(a74_0x18de,0xc7ac0));function a74_0x4afb(_0x32c8ef,_0x42acb8){_0x32c8ef=_0x32c8ef-0xf7;const _0x18def7=a74_0x18de();let _0x4afb04=_0x18def7[_0x32c8ef];return _0x4afb04;}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';function a74_0x18de(){const _0x22216c=['personal','8342425daJaJD','appcode','3290ABpgKq','input','diagram-file','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','\x20has\x20scope=\x22','identical','NAMESPACE_ONLY','appCode','2634398BsmMlD','savedSkill','confirm-warnings','\x20for\x20review','frontmatterDisplayName','unknown','validation','metadata','valid','resolvedSlug','submitted','56082RfwdhE','1843768cRSjAn','POST','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','../../skills/runtime-skill-sync.js','skillCode','resolvedVersion','remoteForPreflight','Personal','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','dir','39674170hEDebt','accessKey','/publish/validate','files','str','bool','PRIVATE','10722ucKxTF','9xorRwB','11imyETs','existing','scope','publishInput','1031898cJHuxI','company','confirmWarnings','authRequired','../../core/api-client.js','errors','\x20Skill\x20','payload','(unknown)','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','diagramValidated','Submitted\x20company\x20Skill\x20','warnings','224isfhTE'];a74_0x18de=function(){return _0x22216c;};return a74_0x18de();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4933a6){const _0x2e63af=a74_0x4afb,{getRuntimeSkillByCode:_0x276511,validateRuntimeSkillPublish:_0x2ae58b}=await import(_0x2e63af(0x118)),{readPushDirectory:_0x4400e3,resolvePushDirectoryIdentity:_0x228c35}=await import(_0x2e63af(0x100));if(!_0x4933a6[_0x2e63af(0x108)])throw CliErrors[_0x2e63af(0x117)]();const _0x19ca4e=resolvePushScope(_0x4933a6),_0x5356e9=validateSkillDirectory(_0x4933a6[_0x2e63af(0x10b)](_0x2e63af(0x106)));throwIfSkillValidationFailed(_0x5356e9);const {diagram:_0xf6cf08,sourceFilePath:_0x2a2371}=await readRequiredSkillDiagramInput(_0x4933a6[_0x2e63af(0x10b)](_0x2e63af(0x127))),_0x5786de=diagramPackageExclusion(_0x2a2371),_0x22c968=_0x228c35(_0x5356e9[_0x2e63af(0x106)],_0x4933a6[_0x2e63af(0x12d)],remoteFirstMetadataOptions()),_0x2e1f20=await _0x276511(_0x4933a6[_0x2e63af(0x12d)],_0x22c968['skillCode']);throwIfBuiltinPushTarget(_0x2e1f20);if(_0x19ca4e===_0x2e63af(0x115)){const _0x1abe5a=_0x4400e3(_0x5356e9['dir'],_0x4933a6['appCode'],{...remoteMissingCompanyReadOptions(),..._0x5786de}),_0x3dacf3=await _0x2ae58b(_0x4933a6['appCode'],withDiagram(_0x1abe5a[_0x2e63af(0x126)],_0xf6cf08),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x2e63af(0xfe),'url':_0x2e63af(0x129)+_0x4933a6[_0x2e63af(0x12d)]+_0x2e63af(0x109),'body':{'skillCode':_0x1abe5a[_0x2e63af(0x101)],'visibility':_0x2e63af(0x12c),'valid':_0x3dacf3[_0x2e63af(0xf9)],'errors':_0x3dacf3['errors'],'warnings':_0x3dacf3[_0x2e63af(0x120)],'resolvedSlug':_0x3dacf3['resolvedSlug'],'resolvedVersion':_0x3dacf3[_0x2e63af(0x102)],'diagramValidated':_0x3dacf3[_0x2e63af(0x11e)]},'description':_0x2e63af(0xff)};}if(_0x2e1f20&&_0x2e1f20[_0x2e63af(0x112)]!==_0x2e63af(0x122))throw CliErrors[_0x2e63af(0xf7)](_0x2e63af(0x11d)+_0x22c968[_0x2e63af(0x101)]+'\x20has\x20scope=\x22'+(_0x2e1f20[_0x2e63af(0x112)]??_0x2e63af(0x133))+'\x22.');const _0xea0d72=_0x4400e3(_0x5356e9[_0x2e63af(0x106)],_0x4933a6[_0x2e63af(0x12d)],{..._0x2e1f20?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5786de}),_0x4a5406=await _0x2ae58b(_0x4933a6[_0x2e63af(0x12d)],withDiagram(_0xea0d72[_0x2e63af(0x126)],_0xf6cf08),{'visibility':'PRIVATE'});return{'method':_0x2e63af(0xfe),'url':'/api/cli/v1/skills/'+_0x4933a6[_0x2e63af(0x12d)]+_0x2e63af(0x109),'body':{'skillCode':_0xea0d72[_0x2e63af(0x101)],'visibility':_0x2e63af(0x10d),'valid':_0x4a5406[_0x2e63af(0xf9)],'errors':_0x4a5406[_0x2e63af(0x119)],'warnings':_0x4a5406['warnings'],'resolvedSlug':_0x4a5406[_0x2e63af(0xfa)],'resolvedVersion':_0x4a5406[_0x2e63af(0x102)],'diagramValidated':_0x4a5406[_0x2e63af(0x11e)]},'description':_0x2e63af(0x105)};}export async function skillPushExecute(_0x29289a){const _0x882a02=a74_0x4afb,{createPersonalRuntimeSkill:_0x53aefb,downloadRuntimeSkillPackage:_0xb574c0,getRuntimeSkillByCode:_0x46d25a,publishCompanyRuntimeSkill:_0x478585,updatePersonalRuntimeSkill:_0x2d9c5b,validateRuntimeSkillPublish:_0x3fa8cc}=await import(_0x882a02(0x118)),{verifyRuntimeSkillPackage:_0x2e7b49,verifyRuntimeSkillBundle:_0x21ef6e,readPushDirectory:_0xfbab97,refreshPushDirectoryMetadataFromRemote:_0x30410f,recordPushedRuntimeSkill:_0x12d6b5,resolvePushDirectoryIdentity:_0x11f482}=await import(_0x882a02(0x100));if(!_0x29289a[_0x882a02(0x108)])throw CliErrors[_0x882a02(0x117)]();const _0x10ddae=resolvePushScope(_0x29289a),_0x3ec934=_0x29289a[_0x882a02(0x10c)](_0x882a02(0x130))||_0x29289a[_0x882a02(0x10c)](_0x882a02(0x116)),_0x1f1c85=validateSkillDirectory(_0x29289a[_0x882a02(0x10b)](_0x882a02(0x106)));throwIfSkillValidationFailed(_0x1f1c85);const {diagram:_0x451851,sourceFilePath:_0x3f1649}=await readRequiredSkillDiagramInput(_0x29289a[_0x882a02(0x10b)](_0x882a02(0x127))),_0x4a6749=diagramPackageExclusion(_0x3f1649),_0x4dec83=_0x1f1c85[_0x882a02(0x106)];let _0x53a06d;if(_0x10ddae===_0x882a02(0x115)){const _0x1eb25f=_0x11f482(_0x4dec83,_0x29289a[_0x882a02(0x12d)],remoteFirstMetadataOptions()),_0x1e23af=await _0x46d25a(_0x29289a[_0x882a02(0x12d)],_0x1eb25f[_0x882a02(0x101)]);throwIfBuiltinPushTarget(_0x1e23af);if(_0x1e23af)_0x30410f(_0x4dec83,_0x1e23af,_0x29289a[_0x882a02(0x12d)]);const _0x3ab3fe=_0xfbab97(_0x4dec83,_0x29289a[_0x882a02(0x12d)],{..._0x1e23af?{'targetScope':_0x882a02(0x115),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x4a6749});_0x53a06d={'scope':_0x882a02(0x115),'payload':_0x3ab3fe,'publishInput':withDiagram(_0x3ab3fe['input'],_0x451851),'remoteForPreflight':_0x1e23af,'warnings':[]};}else{const _0x2bea34=_0x29289a[_0x882a02(0x10b)](_0x882a02(0x124))['trim'](),_0x5b9541=Boolean(_0x2bea34),_0x369849=allowRetargetArgs(_0x5b9541),_0x5a38a7=_0x11f482(_0x4dec83,_0x29289a[_0x882a02(0x12d)],{...remoteFirstMetadataOptions(),..._0x369849[0x0]}),_0x4669b2=await _0x46d25a(_0x29289a[_0x882a02(0x12d)],_0x5a38a7['skillCode']);throwIfBuiltinPushTarget(_0x4669b2);if(_0x4669b2){if(_0x4669b2[_0x882a02(0x112)]!==_0x882a02(0x122)){if(_0x5b9541)throw CliErrors['validation'](_0x882a02(0x11d)+_0x5a38a7[_0x882a02(0x101)]+_0x882a02(0x12a)+(_0x4669b2['scope']??_0x882a02(0x133))+'\x22.');_0x30410f(_0x4dec83,_0x4669b2,_0x29289a[_0x882a02(0x12d)]);}else!_0x5b9541&&_0x30410f(_0x4dec83,_0x4669b2,_0x29289a[_0x882a02(0x12d)]);}const _0x25a550=_0xfbab97(_0x4dec83,_0x29289a['appCode'],{..._0x4669b2?remotePersonalReadOptions(_0x5b9541,_0x369849[0x0]):remoteMissingPersonalReadOptions(_0x369849[0x0]),..._0x4a6749}),_0x3e8df8=_0x4669b2?.[_0x882a02(0x112)]==='personal'&&_0x4669b2['skillCode']===_0x25a550[_0x882a02(0x101)]?_0x4669b2:undefined,_0x130217=_0x5b9541&&_0x3e8df8?withRetargetExistingMetadata(_0x25a550['input'],_0x3e8df8,{'preferInputSkillName':Boolean(_0x25a550[_0x882a02(0x132)])}):_0x25a550[_0x882a02(0x126)],_0x2d208b=_0x5b9541?buildRetargetWarning(_0x5a38a7[_0x882a02(0xf8)],_0x29289a['appCode']):[];_0x53a06d={'scope':'personal','payload':_0x25a550,'publishInput':withDiagram(_0x130217,_0x451851),'remoteForPreflight':_0x3e8df8,'existing':_0x3e8df8,'warnings':[..._0x1f1c85[_0x882a02(0x120)],..._0x2d208b]};}const _0x438f38=await runRemoteContentPreflight({'scope':_0x53a06d[_0x882a02(0x112)],'remote':_0x53a06d[_0x882a02(0x103)],'publishInput':_0x53a06d[_0x882a02(0x113)],'skillCode':_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],'appCode':_0x29289a['appCode'],'downloadRuntimeSkillPackage':_0xb574c0,'verifyRuntimeSkillBundle':_0x21ef6e});if(_0x438f38['status']===_0x882a02(0x12b))return _0x53a06d[_0x882a02(0x112)]===_0x882a02(0x115)?_0x12d6b5(_0x4dec83,_0x438f38[_0x882a02(0x12f)],_0x29289a[_0x882a02(0x12d)],{'scope':'company'}):_0x12d6b5(_0x4dec83,_0x438f38[_0x882a02(0x12f)],_0x29289a[_0x882a02(0x12d)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x438f38['savedSkill']),'scope':_0x53a06d[_0x882a02(0x112)],..._0x53a06d[_0x882a02(0x112)]===_0x882a02(0x122)?{'warnings':_0x53a06d[_0x882a02(0x120)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x53a06d[_0x882a02(0x112)])+_0x882a02(0x11a)+_0x53a06d['payload'][_0x882a02(0x101)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x53a06d[_0x882a02(0x112)]===_0x882a02(0x115)){const _0x49b68b=await _0x3fa8cc(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'visibility':_0x882a02(0x12c)});throwIfPublishValidationFailed(_0x882a02(0x115),_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x49b68b),throwIfUnconfirmedPublishWarnings(_0x882a02(0x115),_0x53a06d['payload'][_0x882a02(0x101)],_0x49b68b[_0x882a02(0x120)],_0x3ec934);const _0x39f7dc=await _0x478585(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'confirmWarnings':_0x3ec934});return _0x12d6b5(_0x4dec83,{..._0x39f7dc,'files':_0x53a06d[_0x882a02(0x113)][_0x882a02(0x10a)]},_0x29289a[_0x882a02(0x12d)],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x39f7dc),'scope':_0x882a02(0x115),'reviewState':_0x882a02(0xfb),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x49b68b['warnings']}},'message':_0x882a02(0x11f)+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]+'\x20version\x20'+(_0x39f7dc['version']??_0x882a02(0x11c))+_0x882a02(0x131)};}const _0x5c4c26=await _0x3fa8cc(_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],{'visibility':_0x882a02(0x10d)});throwIfPublishValidationFailed(_0x882a02(0x122),_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x5c4c26),throwIfUnconfirmedPublishWarnings('personal',_0x53a06d['payload'][_0x882a02(0x101)],_0x5c4c26['warnings'],_0x3ec934);const _0x2ba874={'confirmWarnings':_0x3ec934},_0x45029d=_0x53a06d[_0x882a02(0x111)]?await _0x2d9c5b(_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)],_0x29289a[_0x882a02(0x12d)],_0x53a06d[_0x882a02(0x113)],_0x2ba874):await _0x53aefb(_0x29289a[_0x882a02(0x12d)],_0x53a06d['publishInput'],_0x2ba874);let _0x50cc16=_0x45029d;if(isMultiFileManifest(_0x53a06d[_0x882a02(0x113)]['files'])){const _0xee1d4f=await _0xb574c0('personal',_0x45029d[_0x882a02(0x101)]||_0x53a06d[_0x882a02(0x11b)]['skillCode'],_0x29289a['appCode']);_0x21ef6e(_0x53a06d[_0x882a02(0x113)]['files'],_0xee1d4f),_0x50cc16={..._0x45029d,'files':_0x53a06d[_0x882a02(0x113)]['files']};}else{if(isPackageBackedManifest(_0x45029d['files'])){const _0x27d576=await _0xb574c0(_0x882a02(0x122),_0x45029d[_0x882a02(0x101)]||_0x53a06d[_0x882a02(0x11b)]['skillCode'],_0x29289a[_0x882a02(0x12d)]);_0x2e7b49(_0x45029d[_0x882a02(0x10a)],_0x27d576);}}return _0x12d6b5(_0x4dec83,_0x50cc16,_0x29289a[_0x882a02(0x12d)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x45029d),'warnings':_0x53a06d[_0x882a02(0x120)],'validation':{'warnings':_0x5c4c26['warnings']},'diagramBound':!![]},'message':_0x53a06d['existing']?_0x882a02(0x128)+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]:'Created\x20personal\x20Skill\x20'+_0x53a06d[_0x882a02(0x11b)][_0x882a02(0x101)]};}function scopeLabel(_0x5512b6){const _0x203bca=a74_0x4afb;return _0x5512b6==='company'?'Company':_0x203bca(0x104);}function withDiagram(_0x40cb07,_0x235302){return{..._0x40cb07,'diagram':_0x235302};}function diagramPackageExclusion(_0x305dff){return _0x305dff?{'excludedFilePaths':[_0x305dff]}:{};}
|
|
1
|
+
(function(_0x30aa36,_0x4281b6){const _0x552629=a74_0x2610,_0x21dd3a=_0x30aa36();while(!![]){try{const _0x5bebc7=-parseInt(_0x552629(0x1a9))/0x1+-parseInt(_0x552629(0x179))/0x2+parseInt(_0x552629(0x1af))/0x3+parseInt(_0x552629(0x18b))/0x4*(-parseInt(_0x552629(0x1a8))/0x5)+parseInt(_0x552629(0x198))/0x6*(-parseInt(_0x552629(0x17e))/0x7)+parseInt(_0x552629(0x1ad))/0x8*(-parseInt(_0x552629(0x17c))/0x9)+parseInt(_0x552629(0x181))/0xa;if(_0x5bebc7===_0x4281b6)break;else _0x21dd3a['push'](_0x21dd3a['shift']());}catch(_0x3d2383){_0x21dd3a['push'](_0x21dd3a['shift']());}}}(a74_0x36a6,0xc0ed0));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';function a74_0x36a6(){const _0x41b3bd=['appCode','Company','6724gabPBL','identical','dir','warnings','status','\x20Skill\x20','\x20has\x20scope=\x22','resolvedSlug','PRIVATE','personal','POST','bool','payload','132366QNVXZp','\x20version\x20','metadata','diagramValidated','/publish/validate','valid','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','unknown','input','confirmWarnings','accessKey','scope','savedSkill','resolvedVersion','Submitted\x20company\x20Skill\x20','Personal','1810tbSeJF','451515wvGwFq','str','existing','authRequired','176EfBHyI','remoteForPreflight','1070040NHDhxs','diagram-file','\x20for\x20review','publishInput','errors','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','NAMESPACE_ONLY','2870438LGEtif','confirm-warnings','version','170622uiNKAD','../../core/api-client.js','231prySRa','skillCode','submitted','40738890MaKQiS','Updated\x20personal\x20Skill\x20','/api/cli/v1/skills/','files','validation','company','appcode','../../skills/runtime-skill-sync.js'];a74_0x36a6=function(){return _0x41b3bd;};return a74_0x36a6();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x3f7448){const _0x218d85=a74_0x2610,{getRuntimeSkillByCode:_0x4d0a1b,validateRuntimeSkillPublish:_0x5b19aa}=await import('../../core/api-client.js'),{readPushDirectory:_0xc2a235,resolvePushDirectoryIdentity:_0x3546db}=await import(_0x218d85(0x188));if(!_0x3f7448[_0x218d85(0x1a2)])throw CliErrors[_0x218d85(0x1ac)]();const _0x564672=resolvePushScope(_0x3f7448),_0x320d0d=validateSkillDirectory(_0x3f7448['str']('dir'));throwIfSkillValidationFailed(_0x320d0d);const {diagram:_0xf9b580,sourceFilePath:_0x54134b}=await readRequiredSkillDiagramInput(_0x3f7448[_0x218d85(0x1aa)](_0x218d85(0x1b0))),_0x39fe17=diagramPackageExclusion(_0x54134b),_0x5379eb=_0x3546db(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],remoteFirstMetadataOptions()),_0x1a5284=await _0x4d0a1b(_0x3f7448[_0x218d85(0x189)],_0x5379eb[_0x218d85(0x17f)]);throwIfBuiltinPushTarget(_0x1a5284);if(_0x564672==='company'){const _0x449e96=_0xc2a235(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],{...remoteMissingCompanyReadOptions(),..._0x39fe17}),_0x1964c7=await _0x5b19aa(_0x3f7448[_0x218d85(0x189)],withDiagram(_0x449e96[_0x218d85(0x1a0)],_0xf9b580),{'visibility':_0x218d85(0x178)});return{'method':'POST','url':_0x218d85(0x183)+_0x3f7448[_0x218d85(0x189)]+_0x218d85(0x19c),'body':{'skillCode':_0x449e96[_0x218d85(0x17f)],'visibility':_0x218d85(0x178),'valid':_0x1964c7[_0x218d85(0x19d)],'errors':_0x1964c7[_0x218d85(0x176)],'warnings':_0x1964c7[_0x218d85(0x18e)],'resolvedSlug':_0x1964c7['resolvedSlug'],'resolvedVersion':_0x1964c7[_0x218d85(0x1a5)],'diagramValidated':_0x1964c7[_0x218d85(0x19b)]},'description':'Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.'};}if(_0x1a5284&&_0x1a5284[_0x218d85(0x1a3)]!==_0x218d85(0x194))throw CliErrors[_0x218d85(0x185)](_0x218d85(0x177)+_0x5379eb[_0x218d85(0x17f)]+_0x218d85(0x191)+(_0x1a5284[_0x218d85(0x1a3)]??_0x218d85(0x19f))+'\x22.');const _0x1b83a2=_0xc2a235(_0x320d0d[_0x218d85(0x18d)],_0x3f7448[_0x218d85(0x189)],{..._0x1a5284?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x39fe17}),_0x88304e=await _0x5b19aa(_0x3f7448['appCode'],withDiagram(_0x1b83a2[_0x218d85(0x1a0)],_0xf9b580),{'visibility':'PRIVATE'});return{'method':_0x218d85(0x195),'url':_0x218d85(0x183)+_0x3f7448[_0x218d85(0x189)]+'/publish/validate','body':{'skillCode':_0x1b83a2[_0x218d85(0x17f)],'visibility':_0x218d85(0x193),'valid':_0x88304e[_0x218d85(0x19d)],'errors':_0x88304e[_0x218d85(0x176)],'warnings':_0x88304e[_0x218d85(0x18e)],'resolvedSlug':_0x88304e[_0x218d85(0x192)],'resolvedVersion':_0x88304e[_0x218d85(0x1a5)],'diagramValidated':_0x88304e[_0x218d85(0x19b)]},'description':_0x218d85(0x19e)};}export async function skillPushExecute(_0x4dcd7f){const _0x513378=a74_0x2610,{createPersonalRuntimeSkill:_0x4b23ae,downloadRuntimeSkillPackage:_0xfbaf22,getRuntimeSkillByCode:_0xf8e14b,publishCompanyRuntimeSkill:_0x15a7cc,updatePersonalRuntimeSkill:_0xd933cb,validateRuntimeSkillPublish:_0x511b3b}=await import(_0x513378(0x17d)),{verifyRuntimeSkillPackage:_0x60bf99,verifyRuntimeSkillBundle:_0x3a48da,readPushDirectory:_0x50c748,refreshPushDirectoryMetadataFromRemote:_0x6a418c,recordPushedRuntimeSkill:_0x5df334,resolvePushDirectoryIdentity:_0x3f14a9}=await import(_0x513378(0x188));if(!_0x4dcd7f[_0x513378(0x1a2)])throw CliErrors['authRequired']();const _0x1c306b=resolvePushScope(_0x4dcd7f),_0x283bf7=_0x4dcd7f[_0x513378(0x196)](_0x513378(0x17a))||_0x4dcd7f[_0x513378(0x196)](_0x513378(0x1a1)),_0x1ed100=validateSkillDirectory(_0x4dcd7f[_0x513378(0x1aa)](_0x513378(0x18d)));throwIfSkillValidationFailed(_0x1ed100);const {diagram:_0x2f0b3f,sourceFilePath:_0x2e9044}=await readRequiredSkillDiagramInput(_0x4dcd7f[_0x513378(0x1aa)]('diagram-file')),_0x4a32ca=diagramPackageExclusion(_0x2e9044),_0x208454=_0x1ed100[_0x513378(0x18d)];let _0x5db88d;if(_0x1c306b==='company'){const _0x3a68be=_0x3f14a9(_0x208454,_0x4dcd7f['appCode'],remoteFirstMetadataOptions()),_0x2b694f=await _0xf8e14b(_0x4dcd7f[_0x513378(0x189)],_0x3a68be[_0x513378(0x17f)]);throwIfBuiltinPushTarget(_0x2b694f);if(_0x2b694f)_0x6a418c(_0x208454,_0x2b694f,_0x4dcd7f['appCode']);const _0x5251da=_0x50c748(_0x208454,_0x4dcd7f[_0x513378(0x189)],{..._0x2b694f?{'targetScope':_0x513378(0x186),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x4a32ca});_0x5db88d={'scope':'company','payload':_0x5251da,'publishInput':withDiagram(_0x5251da['input'],_0x2f0b3f),'remoteForPreflight':_0x2b694f,'warnings':[]};}else{const _0x709949=_0x4dcd7f['str'](_0x513378(0x187))['trim'](),_0x5f0c84=Boolean(_0x709949),_0x3f9459=allowRetargetArgs(_0x5f0c84),_0x2dfa54=_0x3f14a9(_0x208454,_0x4dcd7f[_0x513378(0x189)],{...remoteFirstMetadataOptions(),..._0x3f9459[0x0]}),_0x4285a6=await _0xf8e14b(_0x4dcd7f[_0x513378(0x189)],_0x2dfa54[_0x513378(0x17f)]);throwIfBuiltinPushTarget(_0x4285a6);if(_0x4285a6){if(_0x4285a6[_0x513378(0x1a3)]!==_0x513378(0x194)){if(_0x5f0c84)throw CliErrors[_0x513378(0x185)](_0x513378(0x177)+_0x2dfa54[_0x513378(0x17f)]+_0x513378(0x191)+(_0x4285a6['scope']??_0x513378(0x19f))+'\x22.');_0x6a418c(_0x208454,_0x4285a6,_0x4dcd7f[_0x513378(0x189)]);}else!_0x5f0c84&&_0x6a418c(_0x208454,_0x4285a6,_0x4dcd7f[_0x513378(0x189)]);}const _0xa94608=_0x50c748(_0x208454,_0x4dcd7f['appCode'],{..._0x4285a6?remotePersonalReadOptions(_0x5f0c84,_0x3f9459[0x0]):remoteMissingPersonalReadOptions(_0x3f9459[0x0]),..._0x4a32ca}),_0x4bd2a8=_0x4285a6?.[_0x513378(0x1a3)]===_0x513378(0x194)&&_0x4285a6[_0x513378(0x17f)]===_0xa94608[_0x513378(0x17f)]?_0x4285a6:undefined,_0x2c574a=_0x5f0c84&&_0x4bd2a8?withRetargetExistingMetadata(_0xa94608[_0x513378(0x1a0)],_0x4bd2a8,{'preferInputSkillName':Boolean(_0xa94608['frontmatterDisplayName'])}):_0xa94608['input'],_0x5cb1ee=_0x5f0c84?buildRetargetWarning(_0x2dfa54[_0x513378(0x19a)],_0x4dcd7f[_0x513378(0x189)]):[];_0x5db88d={'scope':'personal','payload':_0xa94608,'publishInput':withDiagram(_0x2c574a,_0x2f0b3f),'remoteForPreflight':_0x4bd2a8,'existing':_0x4bd2a8,'warnings':[..._0x1ed100[_0x513378(0x18e)],..._0x5cb1ee]};}const _0x109753=await runRemoteContentPreflight({'scope':_0x5db88d[_0x513378(0x1a3)],'remote':_0x5db88d[_0x513378(0x1ae)],'publishInput':_0x5db88d[_0x513378(0x1b2)],'skillCode':_0x5db88d['payload'][_0x513378(0x17f)],'appCode':_0x4dcd7f['appCode'],'downloadRuntimeSkillPackage':_0xfbaf22,'verifyRuntimeSkillBundle':_0x3a48da});if(_0x109753[_0x513378(0x18f)]===_0x513378(0x18c))return _0x5db88d[_0x513378(0x1a3)]==='company'?_0x5df334(_0x208454,_0x109753[_0x513378(0x1a4)],_0x4dcd7f[_0x513378(0x189)],{'scope':_0x513378(0x186)}):_0x5df334(_0x208454,_0x109753[_0x513378(0x1a4)],_0x4dcd7f[_0x513378(0x189)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x109753[_0x513378(0x1a4)]),'scope':_0x5db88d[_0x513378(0x1a3)],..._0x5db88d[_0x513378(0x1a3)]===_0x513378(0x194)?{'warnings':_0x5db88d[_0x513378(0x18e)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x5db88d[_0x513378(0x1a3)])+_0x513378(0x190)+_0x5db88d['payload'][_0x513378(0x17f)]+'\x20is\x20already\x20published\x20and\x20content\x20is\x20identical'};if(_0x5db88d[_0x513378(0x1a3)]==='company'){const _0x3ebaa1=await _0x511b3b(_0x4dcd7f['appCode'],_0x5db88d['publishInput'],{'visibility':_0x513378(0x178)});throwIfPublishValidationFailed('company',_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x3ebaa1),throwIfUnconfirmedPublishWarnings('company',_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x3ebaa1[_0x513378(0x18e)],_0x283bf7);const _0x858105=await _0x15a7cc(_0x4dcd7f[_0x513378(0x189)],_0x5db88d[_0x513378(0x1b2)],{'confirmWarnings':_0x283bf7});return _0x5df334(_0x208454,{..._0x858105,'files':_0x5db88d[_0x513378(0x1b2)][_0x513378(0x184)]},_0x4dcd7f[_0x513378(0x189)],{'scope':_0x513378(0x186)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x858105),'scope':_0x513378(0x186),'reviewState':_0x513378(0x180),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x3ebaa1[_0x513378(0x18e)]}},'message':_0x513378(0x1a6)+_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)]+_0x513378(0x199)+(_0x858105[_0x513378(0x17b)]??'(unknown)')+_0x513378(0x1b1)};}const _0x47ca15=await _0x511b3b(_0x4dcd7f['appCode'],_0x5db88d['publishInput'],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x513378(0x194),_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x47ca15),throwIfUnconfirmedPublishWarnings(_0x513378(0x194),_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x47ca15['warnings'],_0x283bf7);const _0x5a0d12={'confirmWarnings':_0x283bf7},_0x4968f2=_0x5db88d[_0x513378(0x1ab)]?await _0xd933cb(_0x5db88d[_0x513378(0x197)]['skillCode'],_0x4dcd7f[_0x513378(0x189)],_0x5db88d[_0x513378(0x1b2)],_0x5a0d12):await _0x4b23ae(_0x4dcd7f['appCode'],_0x5db88d[_0x513378(0x1b2)],_0x5a0d12);let _0x33f50e=_0x4968f2;if(isMultiFileManifest(_0x5db88d['publishInput'][_0x513378(0x184)])){const _0x2cb74b=await _0xfbaf22(_0x513378(0x194),_0x4968f2['skillCode']||_0x5db88d['payload'][_0x513378(0x17f)],_0x4dcd7f['appCode']);_0x3a48da(_0x5db88d[_0x513378(0x1b2)][_0x513378(0x184)],_0x2cb74b),_0x33f50e={..._0x4968f2,'files':_0x5db88d['publishInput']['files']};}else{if(isPackageBackedManifest(_0x4968f2[_0x513378(0x184)])){const _0x5dedfd=await _0xfbaf22(_0x513378(0x194),_0x4968f2[_0x513378(0x17f)]||_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)],_0x4dcd7f[_0x513378(0x189)]);_0x60bf99(_0x4968f2[_0x513378(0x184)],_0x5dedfd);}}return _0x5df334(_0x208454,_0x33f50e,_0x4dcd7f['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4968f2),'warnings':_0x5db88d['warnings'],'validation':{'warnings':_0x47ca15[_0x513378(0x18e)]},'diagramBound':!![]},'message':_0x5db88d[_0x513378(0x1ab)]?_0x513378(0x182)+_0x5db88d[_0x513378(0x197)][_0x513378(0x17f)]:'Created\x20personal\x20Skill\x20'+_0x5db88d['payload'][_0x513378(0x17f)]};}function scopeLabel(_0x3ca80e){const _0x1d9eb0=a74_0x2610;return _0x3ca80e==='company'?_0x1d9eb0(0x18a):_0x1d9eb0(0x1a7);}function withDiagram(_0x32344f,_0x5da45e){return{..._0x32344f,'diagram':_0x5da45e};}function a74_0x2610(_0x3cf005,_0x4f3bee){_0x3cf005=_0x3cf005-0x176;const _0x36a692=a74_0x36a6();let _0x2610c8=_0x36a692[_0x3cf005];return _0x2610c8;}function diagramPackageExclusion(_0x3dc8c7){return _0x3dc8c7?{'excludedFilePaths':[_0x3dc8c7]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57bedd,_0xd44099){const _0x4e5206=a75_0x5a91,_0x9bc5db=_0x57bedd();while(!![]){try{const _0x3bd9a7=parseInt(_0x4e5206(0xf7))/0x1+parseInt(_0x4e5206(0xf1))/0x2*(parseInt(_0x4e5206(0xea))/0x3)+-parseInt(_0x4e5206(0xfb))/0x4+-parseInt(_0x4e5206(0xf2))/0x5+parseInt(_0x4e5206(0xe5))/0x6+parseInt(_0x4e5206(0xed))/0x7+parseInt(_0x4e5206(0xf8))/0x8*(-parseInt(_0x4e5206(0xe8))/0x9);if(_0x3bd9a7===_0xd44099)break;else _0x9bc5db['push'](_0x9bc5db['shift']());}catch(_0x2fb8b9){_0x9bc5db['push'](_0x9bc5db['shift']());}}}(a75_0x1d98,0x83c29));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x44e096){const _0xc04611=a75_0x5a91,_0x39ef93=_0x44e096['str'](_0xc04611(0xe9))||_0xc04611(0x100);if(_0x39ef93===_0xc04611(0x100)||_0x39ef93==='company')return _0x39ef93;throw CliErrors[_0xc04611(0xec)](_0xc04611(0x102)+_0x39ef93+'\x22.');}export function allowRetargetArgs(_0x3b5fa7){return _0x3b5fa7?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a75_0x5a91(_0x36b38d,_0xb7efce){_0x36b38d=_0x36b38d-0xdd;const _0x1d982f=a75_0x1d98();let _0x5a91a4=_0x1d982f[_0x36b38d];return _0x5a91a4;}export function remoteMissingCompanyReadOptions(){const _0x4e7d48=a75_0x5a91;return{'targetScope':_0x4e7d48(0xe6),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x369a1b={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x369a1b};}export function remotePersonalReadOptions(_0x4a59f0,_0x5e4273={}){return{'ignoreInvalidMetadata':!![],..._0x4a59f0?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x5e4273};}export function throwIfBuiltinPushTarget(_0x393748){const _0x2c5808=a75_0x5a91;if(_0x393748?.[_0x2c5808(0xe9)]!==_0x2c5808(0xef))return;throw CliErrors['validation']('Builtin\x20Skill\x20'+(_0x393748[_0x2c5808(0xe0)]??_0x2c5808(0xf4))+_0x2c5808(0xeb),_0x2c5808(0xf9));}export function throwIfPublishValidationFailed(_0x23768d,_0x5e3fac,_0x243eee){const _0x323e3e=a75_0x5a91;if(_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xee)]===0x0&&(_0x243eee['valid']||_0x243eee['warnings'][_0x323e3e(0xee)]>0x0))return;const _0x223fff=_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xee)]>0x0?_0x243eee[_0x323e3e(0xf6)][_0x323e3e(0xde)](';\x20'):_0x323e3e(0xe7),_0x3f6839=_0x23768d===_0x323e3e(0xe6)?_0x323e3e(0xf3):_0x323e3e(0x106);throw CliErrors[_0x323e3e(0xec)](_0x3f6839+_0x323e3e(0x103)+_0x5e3fac+'.',_0x223fff);}function a75_0x1d98(){const _0x500cff=['personal','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','\x20Skill\x20push\x20validation\x20failed\x20for\x20','version','not-applicable','Personal','lovrabet.skill.json','join','appCode','skillCode','verifyRuntimeSkillBundle','\x20after\x20successful\x20push.','warning','Warnings:\x20','4799766vJYpLF','company','SkillHub\x20validation\x20returned\x20invalid.','9oSqHpA','scope','580278efukIr','\x20cannot\x20be\x20pushed.','validation','3306562aNDfHw','length','builtin','publishInput','4LcCcbE','369880JHYwXU','Company','(unknown)','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','errors','285160FGtxPo','7967584JeLMCL','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','content','1338904KszJvU','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','remote','Review\x20each\x20warning\x20before\x20continuing.','files'];a75_0x1d98=function(){return _0x500cff;};return a75_0x1d98();}export function throwIfUnconfirmedPublishWarnings(_0xdfbc2a,_0xcbc641,_0x1f7688,_0x10673f){const _0x3c7691=a75_0x5a91;if(_0x1f7688[_0x3c7691(0xee)]===0x0||_0x10673f)return;const _0x27e79b=_0xdfbc2a==='company'?_0x3c7691(0xf3):_0x3c7691(0x106);throw CliErrors['validation'](_0x27e79b+_0x3c7691(0xf5)+_0xcbc641+'.',[_0x3c7691(0xfe),'Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.',_0x3c7691(0xfc),_0x3c7691(0xe4)+_0x1f7688[_0x3c7691(0xde)](';\x20')][_0x3c7691(0xde)]('\x20'));}export function buildRetargetWarning(_0x3dee15,_0x47023c){const _0x172f53=a75_0x5a91;if(!_0x3dee15?.[_0x172f53(0xdf)]||_0x3dee15['appCode']===_0x47023c)return[];return[{'level':_0x172f53(0xe3),'ruleId':'skill-metadata-appcode-retargeted','file':_0x172f53(0xdd),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x3dee15[_0x172f53(0xdf)]+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x47023c+_0x172f53(0xe2),'suggestion':_0x172f53(0x101)}];}export async function runRemoteContentPreflight(_0xe961e1){const _0x39f6ee=a75_0x5a91;if(!_0xe961e1[_0x39f6ee(0xfd)]||_0xe961e1['remote']['scope']!==_0xe961e1[_0x39f6ee(0xe9)]||!_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)])return{'status':_0x39f6ee(0x105)};const _0x57d0f6=_0xe961e1['remote'][_0x39f6ee(0xe0)]||_0xe961e1[_0x39f6ee(0xe0)];if(!_0x57d0f6)return{'status':_0x39f6ee(0x105)};const _0x4d0cb5=await _0xe961e1['downloadRuntimeSkillPackage'](_0xe961e1[_0x39f6ee(0xe9)],_0x57d0f6,_0xe961e1['appCode'],_0xe961e1['remote'][_0x39f6ee(0x104)]);try{_0xe961e1[_0x39f6ee(0xe1)](_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)],_0x4d0cb5);}catch{return{'status':'different'};}return{'status':'identical','savedSkill':{..._0xe961e1['remote'],'content':_0xe961e1['publishInput'][_0x39f6ee(0xfa)],'files':_0xe961e1[_0x39f6ee(0xf0)][_0x39f6ee(0xff)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x389a07,_0x55fbb2){const _0x523994=a76_0x3b1a,_0x114c69=_0x389a07();while(!![]){try{const _0xe48aec=parseInt(_0x523994(0x116))/0x1*(parseInt(_0x523994(0x120))/0x2)+parseInt(_0x523994(0x126))/0x3+parseInt(_0x523994(0x125))/0x4*(-parseInt(_0x523994(0x123))/0x5)+-parseInt(_0x523994(0x128))/0x6+-parseInt(_0x523994(0x11f))/0x7*(-parseInt(_0x523994(0x114))/0x8)+parseInt(_0x523994(0x124))/0x9+-parseInt(_0x523994(0x119))/0xa;if(_0xe48aec===_0x55fbb2)break;else _0x114c69['push'](_0x114c69['shift']());}catch(_0x4930b8){_0x114c69['push'](_0x114c69['shift']());}}}(a76_0x5c2b,0x5ff03));export function withRetargetExistingMetadata(_0xf8d3dc,_0x38db19,_0x19ba12={}){const _0x23252f=a76_0x3b1a,_0x29e2fc=_0x19ba12[_0x23252f(0x118)]?_0xf8d3dc[_0x23252f(0x11b)]??_0x38db19[_0x23252f(0x11b)]:_0x38db19[_0x23252f(0x11b)]??_0xf8d3dc[_0x23252f(0x11b)];return{..._0xf8d3dc,'skillName':_0x29e2fc,'description':_0x38db19[_0x23252f(0x121)]??_0xf8d3dc[_0x23252f(0x121)],'tags':Array[_0x23252f(0x11c)](_0x38db19[_0x23252f(0x122)])?_0x38db19[_0x23252f(0x122)]:_0xf8d3dc[_0x23252f(0x122)],'version':_0x38db19[_0x23252f(0x115)]??_0xf8d3dc[_0x23252f(0x115)],'sourceSessionId':_0x38db19[_0x23252f(0x129)]??_0xf8d3dc[_0x23252f(0x129)]};}function a76_0x3b1a(_0xdfaf6c,_0x2eb84a){_0xdfaf6c=_0xdfaf6c-0x114;const _0x5c2bec=a76_0x5c2b();let _0x3b1a45=_0x5c2bec[_0xdfaf6c];return _0x3b1a45;}export function buildRetargetWarning(_0x232bfb,_0x4a4f0d){const _0xd65a81=a76_0x3b1a;if(!_0x232bfb?.[_0xd65a81(0x11e)]||_0x232bfb[_0xd65a81(0x11e)]===_0x4a4f0d)return[];return[{'level':_0xd65a81(0x11a),'ruleId':_0xd65a81(0x117),'file':_0xd65a81(0x11d),'message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x232bfb['appCode']+'\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20'+_0x4a4f0d+'\x20after\x20successful\x20push.','suggestion':_0xd65a81(0x127)}];}function a76_0x5c2b(){const _0x5bf874=['isArray','lovrabet.skill.json','appCode','108493DQzjZC','214NnpKKz','description','tags','97430jddbXk','3368898xaCSNU','100pBFnnY','2108556zAIkjV','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','2591520kLIvdi','sourceSessionId','224dlxsga','version','3847yIOyUG','skill-metadata-appcode-retargeted','preferInputSkillName','6107420txvxoe','warning','skillName'];a76_0x5c2b=function(){return _0x5bf874;};return a76_0x5c2b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0xb564(_0x2c846b,_0xedaaf5){_0x2c846b=_0x2c846b-0x123;const _0x297eca=a77_0x297e();let _0xb5641f=_0x297eca[_0x2c846b];return _0xb5641f;}(function(_0x19449c,_0x541b6f){const _0x4b4dc1=a77_0xb564,_0x25b216=_0x19449c();while(!![]){try{const _0x2974b8=parseInt(_0x4b4dc1(0x12f))/0x1+-parseInt(_0x4b4dc1(0x133))/0x2*(-parseInt(_0x4b4dc1(0x12a))/0x3)+-parseInt(_0x4b4dc1(0x127))/0x4+-parseInt(_0x4b4dc1(0x12b))/0x5*(-parseInt(_0x4b4dc1(0x126))/0x6)+parseInt(_0x4b4dc1(0x132))/0x7*(parseInt(_0x4b4dc1(0x12d))/0x8)+parseInt(_0x4b4dc1(0x12c))/0x9+-parseInt(_0x4b4dc1(0x129))/0xa;if(_0x2974b8===_0x541b6f)break;else _0x25b216['push'](_0x25b216['shift']());}catch(_0xe07522){_0x25b216['push'](_0x25b216['shift']());}}}(a77_0x297e,0x99e1a));function a77_0x297e(){const _0x5eba0c=['315PWewyd','223445OuLDhN','6026571BSRRgy','40GeTqmT','validation','602421pPxbij','Unsupported\x20Skill\x20sync\x20scope:\x20','trim','1580264PbfALg','23834VPerVj','all','company','personal','66sLjBCi','2733076VZpqrD','Unsupported\x20Skill\x20list\x20scope:\x20','28300970BDzPpF'];a77_0x297e=function(){return _0x5eba0c;};return a77_0x297e();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1b54b9){const _0x57aa3a=a77_0xb564,_0x4b69cb=_0x1b54b9['trim']();if(!_0x4b69cb||_0x4b69cb===_0x57aa3a(0x123))return[_0x57aa3a(0x125),_0x57aa3a(0x124)];if(_0x4b69cb===_0x57aa3a(0x125)||_0x4b69cb===_0x57aa3a(0x124))return[_0x4b69cb];throw CliErrors[_0x57aa3a(0x12e)](_0x57aa3a(0x130)+_0x1b54b9);}export function normalizeListScope(_0x1f93f1){const _0x129273=a77_0xb564,_0x275978=_0x1f93f1[_0x129273(0x131)]();if(!_0x275978)return'all';if(_0x275978===_0x129273(0x125)||_0x275978===_0x129273(0x124)||_0x275978===_0x129273(0x123))return _0x275978;throw CliErrors[_0x129273(0x12e)](_0x129273(0x128)+_0x1f93f1);}export function shouldListScope(_0x3d9736,_0x2ab015){const _0x4510c8=a77_0xb564;if(_0x3d9736===_0x4510c8(0x123))return!![];return _0x3d9736===_0x2ab015;}export function listScopeToRuntimeScopes(_0x3982df){const _0x22ed2c=a77_0xb564;if(_0x3982df===_0x22ed2c(0x123))return[_0x22ed2c(0x125),_0x22ed2c(0x124)];return[_0x3982df===_0x22ed2c(0x124)?'company':_0x3982df];}export function listScopeToRemoteScope(_0x100694){return _0x100694;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0x2034(_0xcb19dc,_0x2f40eb){_0xcb19dc=_0xcb19dc-0x140;var _0x15feb3=a78_0x15fe();var _0x20345e=_0x15feb3[_0xcb19dc];return _0x20345e;}function a78_0x15fe(){var _0x4a3b7f=['5588220LEySFW','27wNQaXL','104095yvyPmd','1927557cytykc','157927HajvvV','skillMdPath','version','tags','pulledAt','skillName','skillCode','cacheDir','treeHash','1052128VeEzae','readonly','linkedPaths','4ZleXlv','10tNiWYX','metadataPath','5418483NhkSLJ','2260CZLpjY','contentHash','scope'];a78_0x15fe=function(){return _0x4a3b7f;};return a78_0x15fe();}(function(_0x13c2eb,_0x500d92){var _0xe4c652=a78_0x2034,_0x27ae86=_0x13c2eb();while(!![]){try{var _0x30b570=-parseInt(_0xe4c652(0x14e))/0x1*(-parseInt(_0xe4c652(0x143))/0x2)+-parseInt(_0xe4c652(0x14b))/0x3*(-parseInt(_0xe4c652(0x147))/0x4)+parseInt(_0xe4c652(0x14c))/0x5+parseInt(_0xe4c652(0x14a))/0x6+-parseInt(_0xe4c652(0x146))/0x7+-parseInt(_0xe4c652(0x140))/0x8+parseInt(_0xe4c652(0x14d))/0x9*(parseInt(_0xe4c652(0x144))/0xa);if(_0x30b570===_0x500d92)break;else _0x27ae86['push'](_0x27ae86['shift']());}catch(_0x59430c){_0x27ae86['push'](_0x27ae86['shift']());}}}(a78_0x15fe,0x8e054));export function summarizeRuntimeSkill(_0x3b05de){var _0x1c0ca5=a78_0x2034;return{'id':_0x3b05de['id'],'skillCode':_0x3b05de[_0x1c0ca5(0x154)],'skillName':_0x3b05de['skillName'],'scope':_0x3b05de[_0x1c0ca5(0x149)],'version':_0x3b05de[_0x1c0ca5(0x150)],'readonly':_0x3b05de[_0x1c0ca5(0x141)]};}export function summarizeLocalRuntimeSkill(_0x221668){var _0x5d3aa4=a78_0x2034;return{'id':_0x221668['id'],'skillCode':_0x221668[_0x5d3aa4(0x154)],'skillName':_0x221668[_0x5d3aa4(0x153)],'scope':_0x221668[_0x5d3aa4(0x149)],'appCode':_0x221668['appCode'],'version':_0x221668[_0x5d3aa4(0x150)],'status':_0x221668['status'],'readonly':_0x221668[_0x5d3aa4(0x141)],'tags':_0x221668[_0x5d3aa4(0x151)],'dir':_0x221668['dir'],'cacheDir':_0x221668[_0x5d3aa4(0x155)],'skillMdPath':_0x221668[_0x5d3aa4(0x14f)],'metadataPath':_0x221668[_0x5d3aa4(0x145)],'linkedPaths':_0x221668[_0x5d3aa4(0x142)],'contentHash':_0x221668[_0x5d3aa4(0x148)],'treeHash':_0x221668[_0x5d3aa4(0x156)],'pulledAt':_0x221668[_0x5d3aa4(0x152)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x186a19=a79_0x568c;(function(_0x12295e,_0x5ce3aa){const _0x58be4a=a79_0x568c,_0x92d6f8=_0x12295e();while(!![]){try{const _0x12ac37=parseInt(_0x58be4a(0x1bf))/0x1*(parseInt(_0x58be4a(0x1dc))/0x2)+parseInt(_0x58be4a(0x1c1))/0x3*(parseInt(_0x58be4a(0x1b1))/0x4)+-parseInt(_0x58be4a(0x1d5))/0x5*(parseInt(_0x58be4a(0x1cf))/0x6)+parseInt(_0x58be4a(0x1d4))/0x7*(-parseInt(_0x58be4a(0x1b6))/0x8)+parseInt(_0x58be4a(0x1ce))/0x9*(parseInt(_0x58be4a(0x1d9))/0xa)+-parseInt(_0x58be4a(0x1c8))/0xb+parseInt(_0x58be4a(0x1b5))/0xc;if(_0x12ac37===_0x5ce3aa)break;else _0x92d6f8['push'](_0x92d6f8['shift']());}catch(_0x2cf907){_0x92d6f8['push'](_0x92d6f8['shift']());}}}(a79_0x4d60,0x3f72c));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a79_0x186a19(0x1b3),a79_0x186a19(0x1b8)];export const DEFAULT_SKILL_TARGET=a79_0x186a19(0x1d8);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a79_0x186a19(0x1c6);export const OUTPUT_CONTRACT_FILE=a79_0x186a19(0x1c5);export function validateSkillName(_0x345de2){const _0x2b807d=a79_0x186a19,_0x190c3a=_0x345de2[_0x2b807d(0x1ba)]();if(!SKILL_NAME_PATTERN[_0x2b807d(0x1d1)](_0x190c3a))throw CliErrors[_0x2b807d(0x1db)](_0x2b807d(0x1d0)+_0x345de2+_0x2b807d(0x1c9),_0x2b807d(0x1cd));return _0x190c3a;}export function normalizeSkillTemplateType(_0xda6d36){const _0x5d26a4=a79_0x186a19,_0x2c38d8=(_0xda6d36||_0x5d26a4(0x1b3))[_0x5d26a4(0x1ba)]()||_0x5d26a4(0x1b3);if(SKILL_TYPES[_0x5d26a4(0x1da)](_0x2c38d8))return _0x2c38d8;throw CliErrors[_0x5d26a4(0x1db)]('Unsupported\x20Skill\x20type:\x20'+_0xda6d36,_0x5d26a4(0x1b2)+SKILL_TYPES[_0x5d26a4(0x1c0)](',\x20')+'.');}function a79_0x568c(_0x446eb1,_0x586a11){_0x446eb1=_0x446eb1-0x1b1;const _0x4d6033=a79_0x4d60();let _0x568c95=_0x4d6033[_0x446eb1];return _0x568c95;}function a79_0x4d60(){const _0x19e67a=['toISOString','4795wtyQEc','1839855oLwPgh','\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','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','.agents/skills','57830HYHIet','includes','validation','324hvcfuy','1421932fCcQDa','Use\x20one\x20of:\x20','write','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','5247792GOLQlL','3224PGEnUZ','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','read','\x0a\x20\x20created:\x20\x22','trim','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\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','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','787gzkASG','join','3oPMJMG','---\x0aname:\x20','skillName','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','references/output-contract.md','references/runtime-contract.md','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','3170024JujCgi','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','SKILL.md','\x20的最终回复必须让运营人员能判断:是否执行、影响了什么、如何复核、失败后下一步做什么。\x0a\x0a##\x20状态枚举\x0a\x0astatus:\x20success\x20|\x20no_op\x20|\x20partial_success\x20|\x20blocked\x20|\x20failed\x20|\x20needs_manual_check\x0a\x0a-\x20success:动作已完成,且关键结果已核对。\x0a-\x20no_op:没有符合条件的对象或无需变更。\x0a-\x20partial_success:部分对象完成,未完成对象必须进入\x20errors\x20和\x20nextActions。\x0a-\x20blocked:缺少输入、权限、确认或平台能力,无法继续。\x0a-\x20failed:执行失败,必须说明失败阶段、错误和恢复方式。\x0a-\x20needs_manual_check:读回异常、状态未知或人工判断缺失。\x0a\x0aunknown、partial_success、failed、needs_manual_check\x20不能包装为\x20success。\x0a\x0a##\x20输出模式\x0a\x0amode:\x20dry_run\x20|\x20confirmed\x20|\x20read_only\x0a\x0a-\x20dry_run:只展示预览、影响范围和差异,不写入业务数据。\x0a-\x20confirmed:用户明确确认后的执行模式;写入后必须读回核对。\x0a-\x20read_only:只查询、汇总或核对,不触发写入。\x0a\x0a##\x20必填字段\x0a\x0a-\x20status\x0a-\x20mode\x0a-\x20summary\x0a-\x20scope\x0a-\x20changes\x0a-\x20verification\x0a-\x20warnings\x0a-\x20errors\x0a-\x20nextActions\x0a\x0a##\x20写入结果\x0a\x0a','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','423dWsOlS','6ITefpx','Invalid\x20Skill\x20name:\x20','test','timestamp'];a79_0x4d60=function(){return _0x19e67a;};return a79_0x4d60();}export function renderSkillTemplate(_0x2e362e){const _0x507199=a79_0x186a19,_0x2f4fd5=validateSkillName(_0x2e362e[_0x507199(0x1c3)]),_0x32f061=normalizeSkillTemplateType(_0x2e362e['type']),_0x27b42d=_0x2e362e[_0x507199(0x1d2)]??new Date()[_0x507199(0x1d3)]();return{'skillName':_0x2f4fd5,'type':_0x32f061,'files':[{'path':_0x507199(0x1ca),'content':renderSkillMd(_0x2f4fd5,_0x32f061,_0x27b42d)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x2f4fd5,_0x32f061)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x2f4fd5,_0x32f061)}]};}function renderSkillMd(_0x39da30,_0x37f33b,_0x62aa4b){const _0x18636b=a79_0x186a19,_0x28cb45=typeWorkflow(_0x37f33b);return _0x18636b(0x1c2)+_0x39da30+_0x18636b(0x1b7)+_0x37f33b+_0x18636b(0x1b9)+_0x62aa4b+_0x18636b(0x1d7)+_0x39da30+_0x18636b(0x1bc)+_0x28cb45+'\x0a\x0a'+businessStateSection(_0x37f33b)+_0x18636b(0x1d6);}function renderRuntimeContract(_0xc74c00,_0x1fa605){const _0x55b9de=a79_0x186a19,_0x505210=_0x1fa605===_0x55b9de(0x1b3)?_0x55b9de(0x1bb):'';return _0x55b9de(0x1c7)+_0xc74c00+'\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='+_0x1fa605+'\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'+_0x505210+'\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';}function renderOutputContract(_0x4bd1fc,_0x5392a1){const _0x5e512b=a79_0x186a19,_0x35e7f0=_0x5392a1==='write'?_0x5e512b(0x1c4):_0x5392a1+_0x5e512b(0x1cc);return'#\x20Output\x20Contract\x0a\x0a'+_0x4bd1fc+_0x5e512b(0x1cb)+_0x35e7f0+_0x5e512b(0x1be);}function typeWorkflow(_0x5a5647){const _0x55a19e=a79_0x186a19;if(_0x5a5647===_0x55a19e(0x1b8))return _0x55a19e(0x1bd);return _0x55a19e(0x1b4);}function businessStateSection(_0x4639f6){const _0x3c16db=a79_0x186a19;if(_0x4639f6!==_0x3c16db(0x1b3))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
|