@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.d.ts +3 -0
- package/lib/core/kb-sdk-errors.js +1 -0
- package/lib/core/kb-search-client.d.ts +3 -21
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4653ba=a68_0x6426;function a68_0x462a(){const _0x105370=['5ycyhLJ','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','personal','11435083lfOxVR','appCode','envName','version','50pphEJu','28QuPnwG','map','320481IVWFLZ','skillRoots','1685694ZJFvHQ','authRequired','skipped','includes','../../../core/api-client.js','company','action','str','\x20personal\x20and\x20','Installed\x20','project','\x20company\x20Skill(s).','read','40820WhQPcE','install','2410131cVZDHI','28xKKeUO','trim','removed','all','1126376YRVeIH','length','skillCode','scope','../../../skills/runtime-skill-sync.js','force','filter','unchanged','718860SWSoNa','created'];a68_0x462a=function(){return _0x105370;};return a68_0x462a();}function a68_0x6426(_0x3bff69,_0x3009d8){_0x3bff69=_0x3bff69-0x15e;const _0x462ae9=a68_0x462a();let _0x642634=_0x462ae9[_0x3bff69];return _0x642634;}(function(_0x202a86,_0x588cb7){const _0x47e777=a68_0x6426,_0x49c4ad=_0x202a86();while(!![]){try{const _0x5361d4=parseInt(_0x47e777(0x185))/0x1*(-parseInt(_0x47e777(0x182))/0x2)+parseInt(_0x47e777(0x184))/0x3+-parseInt(_0x47e777(0x167))/0x4+parseInt(_0x47e777(0x169))/0x5*(-parseInt(_0x47e777(0x175))/0x6)+-parseInt(_0x47e777(0x171))/0x7*(parseInt(_0x47e777(0x15f))/0x8)+-parseInt(_0x47e777(0x173))/0x9*(-parseInt(_0x47e777(0x170))/0xa)+parseInt(_0x47e777(0x16c))/0xb;if(_0x5361d4===_0x588cb7)break;else _0x49c4ad['push'](_0x49c4ad['shift']());}catch(_0x6cfad3){_0x49c4ad['push'](_0x49c4ad['shift']());}}}(a68_0x462a,0x67eab));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':'skill','command':a68_0x4653ba(0x183),'description':a68_0x4653ba(0x16a),'risk':a68_0x4653ba(0x181),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x24d745){return syncRuntimeSkills(_0x24d745);}};async function syncRuntimeSkills(_0xafc948){const _0x3ca77a=a68_0x4653ba,{downloadRuntimeSkillPackage:_0xea69ad,listRuntimeSkills:_0x2b2f21}=await import(_0x3ca77a(0x179)),{linkEffectiveRuntimeSkills:_0x556fe0,materializeRuntimeSkill:_0x58bea4,pruneStaleRuntimeSkillCache:_0x4adb34,pruneStaleRuntimeSkillLinks:_0x5b1792,resolveRuntimeSkillInstallTarget:_0x22c339,reuseMaterializedRuntimeSkill:_0x159ea7}=await import(_0x3ca77a(0x163)),_0x3bfd7e=_0xafc948[_0x3ca77a(0x17c)]('code'),_0x2209a4=normalizeSyncScopes(_0xafc948['str']('scope')),_0x47f28b=_0xafc948[_0x3ca77a(0x16e)]??'production',_0x373dee=_0xafc948['accessKey'],_0x1df9bf=_0xafc948['bool'](_0x3ca77a(0x164));if(!_0x373dee)throw CliErrors[_0x3ca77a(0x176)]('Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.');const _0x3d4ad4=_0x22c339(_0xafc948[_0x3ca77a(0x16d)],_0xafc948['bool'](_0x3ca77a(0x17f))?'project':'global'),_0x1c5f1a=_0x22c339(_0xafc948[_0x3ca77a(0x16d)],_0x3d4ad4[_0x3ca77a(0x162)]===_0x3ca77a(0x17f)?'global':_0x3ca77a(0x17f)),_0x4d0384=await _0x2b2f21({'appCode':_0xafc948[_0x3ca77a(0x16d)],'scope':_0x2209a4[_0x3ca77a(0x160)]===0x1?_0x2209a4[0x0]:_0x3ca77a(0x15e),'code':_0x3bfd7e[_0x3ca77a(0x186)]()||undefined,'installableOnly':!![]}),_0x4602c7=_0x2209a4[_0x3ca77a(0x178)]('personal')?_0x4d0384['personal']:[],_0x32eaa7=_0x2209a4[_0x3ca77a(0x178)]('company')?_0x4d0384['company']:[],_0x2b2fe3=new Set([..._0x4602c7[_0x3ca77a(0x172)](_0x2e6db5=>_0x2e6db5[_0x3ca77a(0x161)]?.['trim']())[_0x3ca77a(0x165)](_0x4aaf59=>Boolean(_0x4aaf59)),..._0x32eaa7[_0x3ca77a(0x172)](_0x1ae944=>_0x1ae944[_0x3ca77a(0x161)]?.[_0x3ca77a(0x186)]())[_0x3ca77a(0x165)](_0xcd243d=>Boolean(_0xcd243d))]),_0x288149=_0x3bfd7e['trim']()?[_0x3bfd7e[_0x3ca77a(0x186)]()]:undefined,_0x246987=_0x2209a4['length']===0x2&&_0x2209a4[_0x3ca77a(0x178)](_0x3ca77a(0x16b))&&_0x2209a4['includes'](_0x3ca77a(0x17a)),_0x202c44=_0x246987?_0x5b1792(_0x3d4ad4,_0x2b2fe3,_0x288149):[],_0x169a8c=_0x4adb34({'env':_0x47f28b,'accessKey':_0x373dee,'appCode':_0xafc948[_0x3ca77a(0x16d)],'activeSkillCodes':_0x2b2fe3,'pruneSkillCodes':_0x288149,'scopes':_0x2209a4,'protectedLinkRoots':_0x1c5f1a['skillRoots']}),_0x4e23ef=[..._0x4602c7[_0x3ca77a(0x172)](_0x577340=>({'skill':_0x577340,'scope':_0x3ca77a(0x16b)})),..._0x32eaa7[_0x3ca77a(0x172)](_0x53f950=>({'skill':_0x53f950,'scope':_0x3ca77a(0x17a)}))],_0x18cb17=await mapConcurrent(_0x4e23ef,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x5e76a2,scope:_0x2f0fb4})=>{const _0x59cbec=_0x3ca77a,_0x5253d0=_0x159ea7(_0x5e76a2,_0x2f0fb4,{'env':_0x47f28b,'accessKey':_0x373dee,'appCode':_0xafc948['appCode']});if(_0x5253d0)return _0x5253d0;return _0x58bea4(_0x5e76a2,_0x2f0fb4,{'env':_0x47f28b,'accessKey':_0x373dee,'appCode':_0xafc948[_0x59cbec(0x16d)],'force':_0x1df9bf,'packageBytes':await downloadSkillPackage(_0x5e76a2,_0x2f0fb4,_0xafc948[_0x59cbec(0x16d)],_0xea69ad)});}),_0x4992fd=_0x556fe0(_0x18cb17,_0x3d4ad4),_0x2b551f=countLinkActions(_0x4992fd);return{'ok':!![],'data':{'appCode':_0xafc948[_0x3ca77a(0x16d)],..._0x3d4ad4[_0x3ca77a(0x162)]==='project'?{'installTarget':{'scope':_0x3d4ad4[_0x3ca77a(0x162)],'skillRoots':[..._0x3d4ad4[_0x3ca77a(0x174)]]}}:{},'personal':_0x4602c7[_0x3ca77a(0x160)],'company':_0x32eaa7['length'],'materialized':_0x18cb17['length'],'links':{'total':_0x4992fd[_0x3ca77a(0x160)],'created':_0x2b551f[_0x3ca77a(0x168)]??0x0,'updated':_0x2b551f['updated']??0x0,'unchanged':_0x2b551f[_0x3ca77a(0x166)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x202c44['filter'](_0x27094d=>_0x27094d[_0x3ca77a(0x17b)]===_0x3ca77a(0x187))[_0x3ca77a(0x160)],'cacheDirs':_0x169a8c[_0x3ca77a(0x165)](_0x28b712=>_0x28b712[_0x3ca77a(0x17b)]==='removed')[_0x3ca77a(0x160)],'skipped':[..._0x202c44,..._0x169a8c]['filter'](_0x6ae1e4=>_0x6ae1e4[_0x3ca77a(0x17b)]===_0x3ca77a(0x177))[_0x3ca77a(0x160)]},'skills':{'personal':_0x4602c7[_0x3ca77a(0x172)](summarizeRuntimeSkill),'company':_0x32eaa7[_0x3ca77a(0x172)](summarizeRuntimeSkill)}},'message':_0x3ca77a(0x17e)+_0x4602c7['length']+_0x3ca77a(0x17d)+_0x32eaa7[_0x3ca77a(0x160)]+_0x3ca77a(0x180)};}async function mapConcurrent(_0x27376d,_0x48607b,_0x4ac887){const _0x23ef32=a68_0x4653ba,_0x980c00=new Array(_0x27376d['length']);let _0x1b9301=0x0;const _0x1b0c1c=Array['from']({'length':Math['min'](_0x48607b,_0x27376d[_0x23ef32(0x160)])},async()=>{const _0x5c4479=_0x23ef32;while(_0x1b9301<_0x27376d[_0x5c4479(0x160)]){const _0x11575f=_0x1b9301;_0x1b9301+=0x1,_0x980c00[_0x11575f]=await _0x4ac887(_0x27376d[_0x11575f]);}});return await Promise[_0x23ef32(0x15e)](_0x1b0c1c),_0x980c00;}async function downloadSkillPackage(_0x3acada,_0x10e06e,_0x1c2530,_0x3f8c93){const _0xc66445=a68_0x4653ba,_0x4a4684=_0x3acada[_0xc66445(0x16f)]?.['trim']();return _0x4a4684?_0x3f8c93(_0x10e06e,_0x3acada[_0xc66445(0x161)],_0x1c2530,_0x4a4684):_0x3f8c93(_0x10e06e,_0x3acada[_0xc66445(0x161)],_0x1c2530);}function countLinkActions(_0xc0da5d){return _0xc0da5d['reduce']((_0x5ed10a,_0x10f701)=>{const _0x128dd5=a68_0x6426;return _0x5ed10a[_0x10f701['action']]=(_0x5ed10a[_0x10f701[_0x128dd5(0x17b)]]??0x0)+0x1,_0x5ed10a;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x43a700=a69_0x3e55;(function(_0x9b7be6,_0x3ab262){const _0x289403=a69_0x3e55,_0x4e82b6=_0x9b7be6();while(!![]){try{const _0x2513e9=-parseInt(_0x289403(0xa5))/0x1*(parseInt(_0x289403(0xa0))/0x2)+parseInt(_0x289403(0x9c))/0x3+-parseInt(_0x289403(0xaf))/0x4*(-parseInt(_0x289403(0x9f))/0x5)+-parseInt(_0x289403(0xa7))/0x6*(parseInt(_0x289403(0x9d))/0x7)+parseInt(_0x289403(0xb3))/0x8*(-parseInt(_0x289403(0xb2))/0x9)+-parseInt(_0x289403(0x9b))/0xa*(-parseInt(_0x289403(0xa8))/0xb)+-parseInt(_0x289403(0x98))/0xc*(-parseInt(_0x289403(0x94))/0xd);if(_0x2513e9===_0x3ab262)break;else _0x4e82b6['push'](_0x4e82b6['shift']());}catch(_0x502559){_0x4e82b6['push'](_0x4e82b6['shift']());}}}(a69_0x63ef,0xca9c9));function a69_0x3e55(_0x62f40b,_0x1de0d3){_0x62f40b=_0x62f40b-0x93;const _0x63ef22=a69_0x63ef();let _0x3e55f3=_0x63ef22[_0x62f40b];return _0x3e55f3;}function a69_0x63ef(){const _0x23bc3a=['filter','3977466ksYuPv','1480061xZDaOy','builtin','Listed\x20','personal','scope','length','../../../core/api-client.js','92lwChlH','str','map','8433gSctXb','10136tzsERI','authRequired','company','remote','appCode','production','39aGTyiT','project','bool','envName','5340252HkRQRv','code','accessKey','70tqfHwS','3170865xVsZaE','14LpkeFg','local','209325hmgjYv','32iHGATD','../../../skills/runtime-skill-sync.js','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','\x20remote\x20Skill(s).','trim','59617qWRLTI'];a69_0x63ef=function(){return _0x23bc3a;};return a69_0x63ef();}import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':'skill','command':'list','description':a69_0x43a700(0xa2),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x424046){const _0x42434f=a69_0x43a700,_0x2126c1=_0x424046[_0x42434f(0xb0)](_0x42434f(0x99)),_0x331a0a=normalizeListScope(_0x424046['str'](_0x42434f(0xac)));if(_0x424046[_0x42434f(0x96)](_0x42434f(0x9e))){const _0x4db3ce=_0x424046[_0x42434f(0x9a)];if(!_0x4db3ce)throw CliErrors[_0x42434f(0xb4)]();const {listLocalRuntimeSkills:_0x4a6f86,resolveRuntimeSkillInstallTarget:_0x455c8d}=await import(_0x42434f(0xa1)),_0x30cce4=_0x455c8d(_0x424046['appCode'],_0x424046[_0x42434f(0x96)](_0x42434f(0x95))?_0x42434f(0x95):'global'),_0x161001=_0x4a6f86({'env':_0x424046[_0x42434f(0x97)]??_0x42434f(0x93),'accessKey':_0x4db3ce,'appCode':_0x424046['appCode'],'scopes':listScopeToRuntimeScopes(_0x331a0a),'code':_0x2126c1[_0x42434f(0xa4)]()||undefined},_0x30cce4),_0x3cc527=groupLocalRuntimeSkills(_0x161001);return{'ok':!![],'data':{'appCode':_0x424046[_0x42434f(0xb7)],'source':_0x42434f(0x9e),..._0x30cce4[_0x42434f(0xac)]===_0x42434f(0x95)?{'installScope':_0x30cce4[_0x42434f(0xac)]}:{},'scope':_0x331a0a,'total':_0x161001[_0x42434f(0xad)],'personal':_0x3cc527['personal']['length'],'company':_0x3cc527[_0x42434f(0xb5)][_0x42434f(0xad)],'items':_0x161001['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3cc527[_0x42434f(0xab)]['map'](summarizeLocalRuntimeSkill),'company':_0x3cc527[_0x42434f(0xb5)][_0x42434f(0xb1)](summarizeLocalRuntimeSkill)}},'message':_0x42434f(0xaa)+_0x161001[_0x42434f(0xad)]+'\x20local\x20Skill(s).'};}const {listRuntimeSkills:_0x3dbcf4}=await import(_0x42434f(0xae)),_0x1d4ab6=await _0x3dbcf4({'appCode':_0x424046[_0x42434f(0xb7)],'scope':listScopeToRemoteScope(_0x331a0a),'code':_0x2126c1['trim']()||undefined}),_0x2f3e45=shouldListScope(_0x331a0a,'personal')?_0x1d4ab6[_0x42434f(0xab)]??[]:[],_0x3ada0f=shouldListScope(_0x331a0a,_0x42434f(0xb5))?_0x1d4ab6[_0x42434f(0xb5)]??[]:[],_0x4409e0=[..._0x2f3e45,..._0x3ada0f];return{'ok':!![],'data':{'appCode':_0x424046['appCode'],'source':_0x42434f(0xb6),'scope':_0x331a0a,'total':_0x4409e0[_0x42434f(0xad)],'personal':_0x2f3e45[_0x42434f(0xad)],'company':_0x3ada0f[_0x42434f(0xad)],'items':_0x4409e0[_0x42434f(0xb1)](summarizeRuntimeSkill),'skills':{'personal':_0x2f3e45[_0x42434f(0xb1)](summarizeRuntimeSkill),'company':_0x3ada0f[_0x42434f(0xb1)](summarizeRuntimeSkill)}},'message':_0x42434f(0xaa)+_0x4409e0[_0x42434f(0xad)]+_0x42434f(0xa3)};}};function groupLocalRuntimeSkills(_0x37ae52){const _0x23827f=a69_0x43a700;return{'personal':_0x37ae52[_0x23827f(0xa6)](_0x2c72ed=>_0x2c72ed['scope']===_0x23827f(0xab)),'company':_0x37ae52['filter'](_0x1175c7=>_0x1175c7['scope']===_0x23827f(0xb5)),'builtin':_0x37ae52[_0x23827f(0xa6)](_0x5830ac=>_0x5830ac[_0x23827f(0xac)]===_0x23827f(0xa9))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x3f1298=a70_0x1acf;(function(_0x3ba576,_0x18ec4b){const _0x262d8d=a70_0x1acf,_0x3770cb=_0x3ba576();while(!![]){try{const _0x91f4ea=parseInt(_0x262d8d(0xc4))/0x1+parseInt(_0x262d8d(0xc5))/0x2*(-parseInt(_0x262d8d(0xc8))/0x3)+-parseInt(_0x262d8d(0xd1))/0x4+parseInt(_0x262d8d(0xcf))/0x5*(parseInt(_0x262d8d(0xca))/0x6)+-parseInt(_0x262d8d(0xc9))/0x7*(-parseInt(_0x262d8d(0xc3))/0x8)+parseInt(_0x262d8d(0xc6))/0x9+-parseInt(_0x262d8d(0xd0))/0xa;if(_0x91f4ea===_0x18ec4b)break;else _0x3770cb['push'](_0x3770cb['shift']());}catch(_0x5bb5b4){_0x3770cb['push'](_0x3770cb['shift']());}}}(a70_0x542c,0x24d00));function a70_0x542c(){const _0x1fdaaa=['push','skill','write','850YPCrJK','2442490HpxOBs','129388iKOfNJ','524248LFDwJn','218940LaoSlp','23278oMVTcn','1040562CUCmBv','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','3WTsaCA','7ChNdUu','1374PnKpHZ','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.'];a70_0x542c=function(){return _0x1fdaaa;};return a70_0x542c();}function a70_0x1acf(_0xf6a83c,_0x4c735f){_0xf6a83c=_0xf6a83c-0xc3;const _0x542c29=a70_0x542c();let _0x1acf14=_0x542c29[_0xf6a83c];return _0x1acf14;}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':a70_0x3f1298(0xcd),'command':a70_0x3f1298(0xcc),'description':a70_0x3f1298(0xc7),'risk':a70_0x3f1298(0xce),'confirmationDescription':a70_0x3f1298(0xcb),'flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x38f524=a71_0xd781;function a71_0x2026(){const _0x12f10e=['11bcasEk','5652112umKiqJ','92706zbwEsN','7836535BcTGVk','739651LUkPvM','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','8OUOhRa','warnings','17232310QGtlqe','380eXaHKc','3492279gKVPUg','165798AzuWfd','str','dir','type','2CfZYQm','errors','skill'];a71_0x2026=function(){return _0x12f10e;};return a71_0x2026();}function a71_0xd781(_0x3a3497,_0x5ca270){_0x3a3497=_0x3a3497-0x1c0;const _0x2026b5=a71_0x2026();let _0xd781a1=_0x2026b5[_0x3a3497];return _0xd781a1;}(function(_0x685e1f,_0x437800){const _0x4aa9c5=a71_0xd781,_0x3a00d3=_0x685e1f();while(!![]){try{const _0x41033f=parseInt(_0x4aa9c5(0x1cf))/0x1+parseInt(_0x4aa9c5(0x1c8))/0x2*(parseInt(_0x4aa9c5(0x1c4))/0x3)+parseInt(_0x4aa9c5(0x1cc))/0x4+parseInt(_0x4aa9c5(0x1c2))/0x5*(parseInt(_0x4aa9c5(0x1cd))/0x6)+parseInt(_0x4aa9c5(0x1ce))/0x7*(-parseInt(_0x4aa9c5(0x1d1))/0x8)+parseInt(_0x4aa9c5(0x1c3))/0x9+parseInt(_0x4aa9c5(0x1c1))/0xa*(-parseInt(_0x4aa9c5(0x1cb))/0xb);if(_0x41033f===_0x437800)break;else _0x3a00d3['push'](_0x3a00d3['shift']());}catch(_0x359673){_0x3a00d3['push'](_0x3a00d3['shift']());}}}(a71_0x2026,0xe271c));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a71_0x38f524(0x1ca),'command':'validate','description':a71_0x38f524(0x1d0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x2a5ac9){const _0x3cebba=a71_0x38f524,_0x37443d=_0x2a5ac9['bool']('strict'),_0x1f41b2=validateSkillDirectory(_0x2a5ac9[_0x3cebba(0x1c5)](_0x3cebba(0x1c6)),{'strict':_0x37443d});return throwIfSkillValidationFailed(_0x1f41b2,_0x37443d),{'ok':!![],'data':{'dir':_0x1f41b2[_0x3cebba(0x1c6)],'type':_0x1f41b2[_0x3cebba(0x1c7)],'errors':_0x1f41b2[_0x3cebba(0x1c9)],'warnings':_0x1f41b2[_0x3cebba(0x1c0)]},'message':'Skill\x20validation\x20passed.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x123b6a,_0x5de39e){const _0x355e21=a72_0x3d10,_0x231e73=_0x123b6a();while(!![]){try{const _0x299faf=-parseInt(_0x355e21(0xe9))/0x1*(-parseInt(_0x355e21(0xec))/0x2)+parseInt(_0x355e21(0xe3))/0x3*(-parseInt(_0x355e21(0xde))/0x4)+-parseInt(_0x355e21(0xe1))/0x5*(-parseInt(_0x355e21(0xe4))/0x6)+-parseInt(_0x355e21(0xf0))/0x7*(parseInt(_0x355e21(0xdf))/0x8)+-parseInt(_0x355e21(0xf9))/0x9+parseInt(_0x355e21(0xe8))/0xa+-parseInt(_0x355e21(0xf2))/0xb*(-parseInt(_0x355e21(0xdd))/0xc);if(_0x299faf===_0x5de39e)break;else _0x231e73['push'](_0x231e73['shift']());}catch(_0x4c41b4){_0x231e73['push'](_0x231e73['shift']());}}}(a72_0x5ef5,0xdfc3f));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{resolve}from'node:path';import{JSDOM}from'jsdom';import{CliErrors}from'../../errors.js';let mermaidApiPromise;export async function readRequiredSkillDiagram(_0x5bb99c){const _0x529272=a72_0x3d10;return(await readRequiredSkillDiagramInput(_0x5bb99c))[_0x529272(0xf6)];}export async function readRequiredSkillDiagramInput(_0x2df07d){const _0x16f9bb=a72_0x3d10,_0x4c04f0=_0x2df07d[_0x16f9bb(0xe0)]();if(!_0x4c04f0)throw CliErrors[_0x16f9bb(0xee)](_0x16f9bb(0xf3),_0x16f9bb(0xeb));let _0x3e2719,_0x2f6af3;if(_0x4c04f0==='-')try{_0x3e2719=readFileSync(0x0,'utf8');}catch{throw CliErrors[_0x16f9bb(0xee)]('Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.');}else{const _0x30af98=resolve(_0x4c04f0);if(!existsSync(_0x30af98))throw CliErrors[_0x16f9bb(0xee)](_0x16f9bb(0xea)+_0x30af98);if(!statSync(_0x30af98)['isFile']())throw CliErrors[_0x16f9bb(0xee)](_0x16f9bb(0xf7)+_0x30af98);_0x2f6af3=realpathSync(_0x30af98),_0x3e2719=readFileSync(_0x2f6af3,_0x16f9bb(0xf8));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x3e2719)},'sourceFilePath':_0x2f6af3};}export async function validateAndCanonicalizeMermaid(_0x24701c){const _0x43612d=a72_0x3d10,_0x279fcb=_0x24701c[_0x43612d(0xe7)](/\r\n/g,'\x0a')[_0x43612d(0xe7)](/\r/g,'\x0a')[_0x43612d(0xe7)](/\n+$/,'')+'\x0a';try{const _0x2217b2=await loadMermaidApi();await _0x2217b2[_0x43612d(0xe5)](_0x279fcb);}catch{throw diagramValidationError();}return _0x279fcb;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x5b4670=a72_0x3d10;if(!(_0x5b4670(0xf4)in globalThis)||!(_0x5b4670(0xf1)in globalThis)){const _0x3dfc6e=new JSDOM('');Object[_0x5b4670(0xef)](globalThis,{'window':{'configurable':!![],'value':_0x3dfc6e[_0x5b4670(0xf4)]},'document':{'configurable':!![],'value':_0x3dfc6e[_0x5b4670(0xf4)][_0x5b4670(0xf1)]}});}return(await import(_0x5b4670(0xe2)))[_0x5b4670(0xe6)];})()),mermaidApiPromise;}function a72_0x3d10(_0x3bc07d,_0x3fdab0){_0x3bc07d=_0x3bc07d-0xdd;const _0x5ef530=a72_0x5ef5();let _0x3d10a1=_0x5ef530[_0x3bc07d];return _0x3d10a1;}function a72_0x5ef5(){const _0x338040=['24YncmXp','4pfOYvJ','112IpXDJQ','trim','10qlTDhG','mermaid','5243253cbKIMM','765474JqPvzu','parse','default','replace','16490540dDlsMY','9EfRapK','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','294110uaBoOJ','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','validation','defineProperties','192941YXMtGR','document','1782506WSuvIi','--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','window','Mermaid\x20syntax\x20validation\x20failed.','diagram','Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20','utf8','4514607ZZRGFH'];a72_0x5ef5=function(){return _0x338040;};return a72_0x5ef5();}function diagramValidationError(){const _0x22e227=a72_0x3d10;return CliErrors[_0x22e227(0xee)](_0x22e227(0xf5),_0x22e227(0xed));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x5d8736=a73_0x1e99;(function(_0x1cb374,_0x32e3ee){const _0x2c4598=a73_0x1e99,_0x1d3476=_0x1cb374();while(!![]){try{const _0x54bd43=parseInt(_0x2c4598(0xb1))/0x1*(parseInt(_0x2c4598(0xbc))/0x2)+parseInt(_0x2c4598(0xc4))/0x3*(parseInt(_0x2c4598(0xaa))/0x4)+-parseInt(_0x2c4598(0xb0))/0x5+-parseInt(_0x2c4598(0xc1))/0x6+-parseInt(_0x2c4598(0x9d))/0x7+-parseInt(_0x2c4598(0xc3))/0x8+-parseInt(_0x2c4598(0xa1))/0x9*(-parseInt(_0x2c4598(0xa5))/0xa);if(_0x54bd43===_0x32e3ee)break;else _0x1d3476['push'](_0x1d3476['shift']());}catch(_0x30d3fa){_0x1d3476['push'](_0x1d3476['shift']());}}}(a73_0x4b75,0x2f905));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':'code','type':a73_0x5d8736(0xb7),'description':a73_0x5d8736(0xa7)};export const SCOPE_FLAG={'name':a73_0x5d8736(0xa3),'type':a73_0x5d8736(0xb7),'description':a73_0x5d8736(0xad),'enum':['all',a73_0x5d8736(0xaf),a73_0x5d8736(0x9f)]};function a73_0x4b75(){const _0x1f39fd=['personal','314495lhjocN','184627iusFcX','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','UTF-8\x20Mermaid\x20flowchart\x20file;\x20the\x20selected\x20file\x20is\x20excluded\x20from\x20the\x20Skill\x20package;\x20use\x20-\x20for\x20stdin','dir','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','boolean','string','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','version','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','2rNyByU','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','local','strict','confirm-warnings','1277280MEFRfV','Server-reported\x20SkillVersion\x20source\x20fingerprint','1563616kjgYhw','3Pkqvpf','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed','2322866FhgdZR','expected-diagram-revision','company','Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings','54JVejFW','project','scope','diagram-file','1078370orARhF','source-fingerprint','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Local\x20Skill\x20directory\x20containing\x20SKILL.md','type','664964vXksjR','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','number','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x4b75=function(){return _0x1f39fd;};return a73_0x4b75();}export const PUSH_SCOPE_FLAG={'name':'scope','type':a73_0x5d8736(0xb7),'description':'Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','default':a73_0x5d8736(0xaf),'enum':[a73_0x5d8736(0xaf),'company']};export const LIST_SCOPE_FLAG={'name':a73_0x5d8736(0xa3),'type':'string','description':a73_0x5d8736(0xae),'enum':['all',a73_0x5d8736(0xaf),'company']};export const LOCAL_FLAG={'name':a73_0x5d8736(0xbe),'type':a73_0x5d8736(0xb6),'description':a73_0x5d8736(0xbd)};export const DIR_FLAG={'name':a73_0x5d8736(0xb4),'type':a73_0x5d8736(0xb7),'required':!![],'description':a73_0x5d8736(0xa8)};export const DIAGRAM_FILE_FLAG={'name':a73_0x5d8736(0xa4),'type':a73_0x5d8736(0xb7),'required':!![],'description':a73_0x5d8736(0xb3)};export const DIAGRAM_SKILL_CODE_FLAG={'name':'skill-code','type':a73_0x5d8736(0xb7),'required':!![],'description':a73_0x5d8736(0xc6)};function a73_0x1e99(_0xfca3f9,_0x46646c){_0xfca3f9=_0xfca3f9-0x9d;const _0x4b7517=a73_0x4b75();let _0x1e99d9=_0x4b7517[_0xfca3f9];return _0x1e99d9;}export const DIAGRAM_VERSION_FLAG={'name':a73_0x5d8736(0xba),'type':'string','required':!![],'description':'Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x5d8736(0xa3),'type':a73_0x5d8736(0xb7),'required':!![],'enum':[a73_0x5d8736(0xaf),'company'],'description':'Exact\x20Skill\x20scope:\x20personal\x20or\x20company'};export const SOURCE_FINGERPRINT_FLAG={'name':a73_0x5d8736(0xa6),'type':a73_0x5d8736(0xb7),'required':!![],'description':a73_0x5d8736(0xc2),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x5d8736(0xc5)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':a73_0x5d8736(0x9e),'type':a73_0x5d8736(0xac),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};export const CREATE_NAME_FLAG={'name':'name','type':a73_0x5d8736(0xb7),'required':!![],'description':a73_0x5d8736(0xb5),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a73_0x5d8736(0xbb)}};export const TYPE_FLAG={'name':a73_0x5d8736(0xa9),'type':a73_0x5d8736(0xb7),'description':a73_0x5d8736(0xab),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':'string','description':a73_0x5d8736(0xb2),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a73_0x5d8736(0xb6),'description':a73_0x5d8736(0xb9)};export const PROJECT_TARGET_FLAG={'name':a73_0x5d8736(0xa2),'type':a73_0x5d8736(0xb6),'description':a73_0x5d8736(0xb8)};export const CONFIRM_WARNINGS_FLAG={'name':a73_0x5d8736(0xc0),'type':'boolean','description':a73_0x5d8736(0xa0)};export const STRICT_FLAG={'name':a73_0x5d8736(0xbf),'type':a73_0x5d8736(0xb6),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a74_0x2e0e(_0x106502,_0x5b754d){_0x106502=_0x106502-0x1ad;const _0x47adc7=a74_0x47ad();let _0x2e0e9d=_0x47adc7[_0x106502];return _0x2e0e9d;}(function(_0x150168,_0x2ddc25){const _0x13ac7b=a74_0x2e0e,_0x2412ed=_0x150168();while(!![]){try{const _0x111680=-parseInt(_0x13ac7b(0x1b7))/0x1*(parseInt(_0x13ac7b(0x1b0))/0x2)+-parseInt(_0x13ac7b(0x1b6))/0x3+parseInt(_0x13ac7b(0x1b4))/0x4*(parseInt(_0x13ac7b(0x1b1))/0x5)+parseInt(_0x13ac7b(0x1ae))/0x6+-parseInt(_0x13ac7b(0x1ad))/0x7*(-parseInt(_0x13ac7b(0x1af))/0x8)+-parseInt(_0x13ac7b(0x1b3))/0x9*(parseInt(_0x13ac7b(0x1b2))/0xa)+parseInt(_0x13ac7b(0x1b5))/0xb;if(_0x111680===_0x2ddc25)break;else _0x2412ed['push'](_0x2412ed['shift']());}catch(_0x36f1d1){_0x2412ed['push'](_0x2412ed['shift']());}}}(a74_0x47ad,0x28d2c));import{createCommand}from'./commands/create.js';import{diagramPushCommand,diagramShowCommand,diagramValidateCommand}from'./commands/diagram.js';function a74_0x47ad(){const _0x5043dd=['27ySBzyQ','1324OpaXkA','2187251gdaZON','981699eGADEL','51124BNDpml','119khnfJe','1721514MELFQr','19192eKJOmz','6UaRCOQ','2335NrXiNR','111010qLFGFb'];a74_0x47ad=function(){return _0x5043dd;};return a74_0x47ad();}import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a75_0x196b(){var _0xac506f=['isArray','SKILL.md','439048VRfsPP','3536724YrrbDH','1275742RPBEne','8637448NICuBv','11XgcydY','length','ossPath','10990YydSLJ','7461aXkHEZ','6byQyMy','string','29187348lzAxVz','files','45WFlLVm','object','1300063eYuxNs','7lXczOg'];a75_0x196b=function(){return _0xac506f;};return a75_0x196b();}(function(_0x681520,_0x5904aa){var _0x3417f2=a75_0x1ad3,_0x22f7ce=_0x681520();while(!![]){try{var _0x13bafd=parseInt(_0x3417f2(0x1c5))/0x1+parseInt(_0x3417f2(0x1b8))/0x2*(-parseInt(_0x3417f2(0x1bf))/0x3)+-parseInt(_0x3417f2(0x1b6))/0x4*(parseInt(_0x3417f2(0x1c3))/0x5)+-parseInt(_0x3417f2(0x1b7))/0x6+-parseInt(_0x3417f2(0x1b3))/0x7*(parseInt(_0x3417f2(0x1b9))/0x8)+parseInt(_0x3417f2(0x1be))/0x9*(parseInt(_0x3417f2(0x1bd))/0xa)+parseInt(_0x3417f2(0x1ba))/0xb*(parseInt(_0x3417f2(0x1c1))/0xc);if(_0x13bafd===_0x5904aa)break;else _0x22f7ce['push'](_0x22f7ce['shift']());}catch(_0x767f6c){_0x22f7ce['push'](_0x22f7ce['shift']());}}}(a75_0x196b,0xad816));function a75_0x1ad3(_0x50937f,_0x5c366c){_0x50937f=_0x50937f-0x1b3;var _0x196b7f=a75_0x196b();var _0x1ad372=_0x196b7f[_0x50937f];return _0x1ad372;}export function isPackageBackedManifest(_0x59dbba){var _0x43e18f=a75_0x1ad3;return!!_0x59dbba&&typeof _0x59dbba===_0x43e18f(0x1c4)&&!Array[_0x43e18f(0x1b4)](_0x59dbba)&&typeof _0x59dbba[_0x43e18f(0x1bc)]===_0x43e18f(0x1c0)&&_0x59dbba[_0x43e18f(0x1bc)][_0x43e18f(0x1bb)]>0x0&&Array['isArray'](_0x59dbba[_0x43e18f(0x1c2)]);}export function isMultiFileManifest(_0x4c211c){var _0x3cd2c0=a75_0x1ad3;return!!_0x4c211c&&typeof _0x4c211c===_0x3cd2c0(0x1c4)&&!Array[_0x3cd2c0(0x1b4)](_0x4c211c)&&Array['isArray'](_0x4c211c[_0x3cd2c0(0x1c2)])&&_0x4c211c[_0x3cd2c0(0x1c2)]['some'](_0x530cb7=>_0x530cb7['path']!==_0x3cd2c0(0x1b5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x38ab90,_0x47aedb){const _0x31c603=a76_0x11e3,_0x15e5af=_0x38ab90();while(!![]){try{const _0x5af616=-parseInt(_0x31c603(0x18b))/0x1*(parseInt(_0x31c603(0x17c))/0x2)+-parseInt(_0x31c603(0x18c))/0x3+-parseInt(_0x31c603(0x15c))/0x4+-parseInt(_0x31c603(0x17b))/0x5*(-parseInt(_0x31c603(0x15f))/0x6)+parseInt(_0x31c603(0x187))/0x7*(parseInt(_0x31c603(0x165))/0x8)+parseInt(_0x31c603(0x18a))/0x9*(parseInt(_0x31c603(0x191))/0xa)+parseInt(_0x31c603(0x196))/0xb;if(_0x5af616===_0x47aedb)break;else _0x15e5af['push'](_0x15e5af['shift']());}catch(_0x48ca55){_0x15e5af['push'](_0x15e5af['shift']());}}}(a76_0x3b53,0x2880a));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a76_0x3b53(){const _0x1d2903=['skillCode','company','diagramValidated','Updated\x20personal\x20Skill\x20','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','../../skills/runtime-skill-sync.js','dir','/api/cli/v1/skills/','accessKey','14DLIvWK','frontmatterDisplayName','confirmWarnings','150669tltIJp','7sYsloO','820254rghoQr','remoteForPreflight','\x20version\x20','Personal','unknown','180EbsJWF','warnings','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','input','307098WqJUrD','personal','status','Company','201880jqcGqG','diagram-file','resolvedVersion','6fCvtzk','trim','existing','../../core/api-client.js','bool','authRequired','608152iVnPpv','NAMESPACE_ONLY','valid','\x20Skill\x20','appCode','resolvedSlug','savedSkill','payload','confirm-warnings','files','submitted','scope','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','PRIVATE','errors','publishInput','(unknown)','identical','str','validation','metadata','/publish/validate','1101315pFKRYM','60506SgNnyt','\x20has\x20scope=\x22'];a76_0x3b53=function(){return _0x1d2903;};return a76_0x3b53();}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(_0x5a5745){const _0x5a44b2=a76_0x11e3,{getRuntimeSkillByCode:_0x6e28b5,validateRuntimeSkillPublish:_0x5c96c4}=await import(_0x5a44b2(0x162)),{readPushDirectory:_0x21be5a,resolvePushDirectoryIdentity:_0x521bb6}=await import(_0x5a44b2(0x183));if(!_0x5a5745[_0x5a44b2(0x186)])throw CliErrors[_0x5a44b2(0x164)]();const _0x3dfdbf=resolvePushScope(_0x5a5745),_0x2160ef=validateSkillDirectory(_0x5a5745[_0x5a44b2(0x177)](_0x5a44b2(0x184)));throwIfSkillValidationFailed(_0x2160ef);const {diagram:_0x3a964c,sourceFilePath:_0x4d8531}=await readRequiredSkillDiagramInput(_0x5a5745[_0x5a44b2(0x177)](_0x5a44b2(0x15d))),_0x543073=diagramPackageExclusion(_0x4d8531),_0x553cd2=_0x521bb6(_0x2160ef[_0x5a44b2(0x184)],_0x5a5745[_0x5a44b2(0x169)],remoteFirstMetadataOptions()),_0x1efde6=await _0x6e28b5(_0x5a5745['appCode'],_0x553cd2['skillCode']);throwIfBuiltinPushTarget(_0x1efde6);if(_0x3dfdbf===_0x5a44b2(0x17f)){const _0x16f425=_0x21be5a(_0x2160ef[_0x5a44b2(0x184)],_0x5a5745[_0x5a44b2(0x169)],{...remoteMissingCompanyReadOptions(),..._0x543073}),_0x8589e7=await _0x5c96c4(_0x5a5745[_0x5a44b2(0x169)],withDiagram(_0x16f425[_0x5a44b2(0x195)],_0x3a964c),{'visibility':_0x5a44b2(0x166)});return{'method':'POST','url':_0x5a44b2(0x185)+_0x5a5745[_0x5a44b2(0x169)]+_0x5a44b2(0x17a),'body':{'skillCode':_0x16f425[_0x5a44b2(0x17e)],'visibility':_0x5a44b2(0x166),'valid':_0x8589e7[_0x5a44b2(0x167)],'errors':_0x8589e7['errors'],'warnings':_0x8589e7[_0x5a44b2(0x192)],'resolvedSlug':_0x8589e7[_0x5a44b2(0x16a)],'resolvedVersion':_0x8589e7[_0x5a44b2(0x15e)],'diagramValidated':_0x8589e7[_0x5a44b2(0x180)]},'description':_0x5a44b2(0x194)};}if(_0x1efde6&&_0x1efde6[_0x5a44b2(0x170)]!==_0x5a44b2(0x197))throw CliErrors[_0x5a44b2(0x178)](_0x5a44b2(0x193)+_0x553cd2['skillCode']+'\x20has\x20scope=\x22'+(_0x1efde6[_0x5a44b2(0x170)]??_0x5a44b2(0x190))+'\x22.');const _0x578ccd=_0x21be5a(_0x2160ef['dir'],_0x5a5745[_0x5a44b2(0x169)],{..._0x1efde6?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x543073}),_0x2d6787=await _0x5c96c4(_0x5a5745[_0x5a44b2(0x169)],withDiagram(_0x578ccd['input'],_0x3a964c),{'visibility':'PRIVATE'});return{'method':'POST','url':_0x5a44b2(0x185)+_0x5a5745['appCode']+'/publish/validate','body':{'skillCode':_0x578ccd[_0x5a44b2(0x17e)],'visibility':_0x5a44b2(0x172),'valid':_0x2d6787['valid'],'errors':_0x2d6787[_0x5a44b2(0x173)],'warnings':_0x2d6787[_0x5a44b2(0x192)],'resolvedSlug':_0x2d6787[_0x5a44b2(0x16a)],'resolvedVersion':_0x2d6787[_0x5a44b2(0x15e)],'diagramValidated':_0x2d6787[_0x5a44b2(0x180)]},'description':_0x5a44b2(0x182)};}export async function skillPushExecute(_0x2f6e6f){const _0x1c97c0=a76_0x11e3,{createPersonalRuntimeSkill:_0x21594b,downloadRuntimeSkillPackage:_0x1dd8d4,getRuntimeSkillByCode:_0x1fd398,publishCompanyRuntimeSkill:_0x574ce5,updatePersonalRuntimeSkill:_0x3a88ac,validateRuntimeSkillPublish:_0x36d46c}=await import(_0x1c97c0(0x162)),{verifyRuntimeSkillPackage:_0x4a8e93,verifyRuntimeSkillBundle:_0x498ef6,readPushDirectory:_0x5e4cf2,refreshPushDirectoryMetadataFromRemote:_0x5b6e0f,recordPushedRuntimeSkill:_0x11b97c,resolvePushDirectoryIdentity:_0x3ee6cf}=await import(_0x1c97c0(0x183));if(!_0x2f6e6f[_0x1c97c0(0x186)])throw CliErrors[_0x1c97c0(0x164)]();const _0x5f042c=resolvePushScope(_0x2f6e6f),_0x49fe16=_0x2f6e6f['bool'](_0x1c97c0(0x16d))||_0x2f6e6f[_0x1c97c0(0x163)](_0x1c97c0(0x189)),_0x234e7e=validateSkillDirectory(_0x2f6e6f[_0x1c97c0(0x177)](_0x1c97c0(0x184)));throwIfSkillValidationFailed(_0x234e7e);const {diagram:_0x35ccca,sourceFilePath:_0xce2a23}=await readRequiredSkillDiagramInput(_0x2f6e6f['str'](_0x1c97c0(0x15d))),_0x1de12e=diagramPackageExclusion(_0xce2a23),_0x4cde64=_0x234e7e[_0x1c97c0(0x184)];let _0x3784c4;if(_0x5f042c===_0x1c97c0(0x17f)){const _0x326f50=_0x3ee6cf(_0x4cde64,_0x2f6e6f['appCode'],remoteFirstMetadataOptions()),_0x16895f=await _0x1fd398(_0x2f6e6f[_0x1c97c0(0x169)],_0x326f50[_0x1c97c0(0x17e)]);throwIfBuiltinPushTarget(_0x16895f);if(_0x16895f)_0x5b6e0f(_0x4cde64,_0x16895f,_0x2f6e6f[_0x1c97c0(0x169)]);const _0x19402f=_0x5e4cf2(_0x4cde64,_0x2f6e6f[_0x1c97c0(0x169)],{..._0x16895f?{'targetScope':_0x1c97c0(0x17f),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1de12e});_0x3784c4={'scope':_0x1c97c0(0x17f),'payload':_0x19402f,'publishInput':withDiagram(_0x19402f[_0x1c97c0(0x195)],_0x35ccca),'remoteForPreflight':_0x16895f,'warnings':[]};}else{const _0x15a71e=_0x2f6e6f[_0x1c97c0(0x177)]('appcode')[_0x1c97c0(0x160)](),_0x750d40=Boolean(_0x15a71e),_0x134b76=allowRetargetArgs(_0x750d40),_0x11302d=_0x3ee6cf(_0x4cde64,_0x2f6e6f['appCode'],{...remoteFirstMetadataOptions(),..._0x134b76[0x0]}),_0x1b82bb=await _0x1fd398(_0x2f6e6f[_0x1c97c0(0x169)],_0x11302d[_0x1c97c0(0x17e)]);throwIfBuiltinPushTarget(_0x1b82bb);if(_0x1b82bb){if(_0x1b82bb[_0x1c97c0(0x170)]!==_0x1c97c0(0x197)){if(_0x750d40)throw CliErrors['validation'](_0x1c97c0(0x193)+_0x11302d['skillCode']+_0x1c97c0(0x17d)+(_0x1b82bb[_0x1c97c0(0x170)]??_0x1c97c0(0x190))+'\x22.');_0x5b6e0f(_0x4cde64,_0x1b82bb,_0x2f6e6f[_0x1c97c0(0x169)]);}else!_0x750d40&&_0x5b6e0f(_0x4cde64,_0x1b82bb,_0x2f6e6f[_0x1c97c0(0x169)]);}const _0x23f847=_0x5e4cf2(_0x4cde64,_0x2f6e6f['appCode'],{..._0x1b82bb?remotePersonalReadOptions(_0x750d40,_0x134b76[0x0]):remoteMissingPersonalReadOptions(_0x134b76[0x0]),..._0x1de12e}),_0x532e3d=_0x1b82bb?.['scope']===_0x1c97c0(0x197)&&_0x1b82bb['skillCode']===_0x23f847[_0x1c97c0(0x17e)]?_0x1b82bb:undefined,_0x5b88b7=_0x750d40&&_0x532e3d?withRetargetExistingMetadata(_0x23f847[_0x1c97c0(0x195)],_0x532e3d,{'preferInputSkillName':Boolean(_0x23f847[_0x1c97c0(0x188)])}):_0x23f847[_0x1c97c0(0x195)],_0xd7fd23=_0x750d40?buildRetargetWarning(_0x11302d[_0x1c97c0(0x179)],_0x2f6e6f[_0x1c97c0(0x169)]):[];_0x3784c4={'scope':'personal','payload':_0x23f847,'publishInput':withDiagram(_0x5b88b7,_0x35ccca),'remoteForPreflight':_0x532e3d,'existing':_0x532e3d,'warnings':[..._0x234e7e[_0x1c97c0(0x192)],..._0xd7fd23]};}const _0xf9ff84=await runRemoteContentPreflight({'scope':_0x3784c4[_0x1c97c0(0x170)],'remote':_0x3784c4[_0x1c97c0(0x18d)],'publishInput':_0x3784c4[_0x1c97c0(0x174)],'skillCode':_0x3784c4[_0x1c97c0(0x16c)]['skillCode'],'appCode':_0x2f6e6f[_0x1c97c0(0x169)],'downloadRuntimeSkillPackage':_0x1dd8d4,'verifyRuntimeSkillBundle':_0x498ef6});if(_0xf9ff84[_0x1c97c0(0x15a)]===_0x1c97c0(0x176))return _0x3784c4['scope']==='company'?_0x11b97c(_0x4cde64,_0xf9ff84[_0x1c97c0(0x16b)],_0x2f6e6f['appCode'],{'scope':'company'}):_0x11b97c(_0x4cde64,_0xf9ff84['savedSkill'],_0x2f6e6f[_0x1c97c0(0x169)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0xf9ff84[_0x1c97c0(0x16b)]),'scope':_0x3784c4[_0x1c97c0(0x170)],..._0x3784c4['scope']===_0x1c97c0(0x197)?{'warnings':_0x3784c4[_0x1c97c0(0x192)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x3784c4['scope'])+_0x1c97c0(0x168)+_0x3784c4[_0x1c97c0(0x16c)][_0x1c97c0(0x17e)]+_0x1c97c0(0x171)};if(_0x3784c4[_0x1c97c0(0x170)]===_0x1c97c0(0x17f)){const _0x594da0=await _0x36d46c(_0x2f6e6f[_0x1c97c0(0x169)],_0x3784c4[_0x1c97c0(0x174)],{'visibility':_0x1c97c0(0x166)});throwIfPublishValidationFailed('company',_0x3784c4[_0x1c97c0(0x16c)]['skillCode'],_0x594da0),throwIfUnconfirmedPublishWarnings(_0x1c97c0(0x17f),_0x3784c4['payload']['skillCode'],_0x594da0[_0x1c97c0(0x192)],_0x49fe16);const _0x300078=await _0x574ce5(_0x2f6e6f['appCode'],_0x3784c4[_0x1c97c0(0x174)],{'confirmWarnings':_0x49fe16});return _0x11b97c(_0x4cde64,{..._0x300078,'files':_0x3784c4['publishInput']['files']},_0x2f6e6f['appCode'],{'scope':_0x1c97c0(0x17f)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x300078),'scope':_0x1c97c0(0x17f),'reviewState':_0x1c97c0(0x16f),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x594da0[_0x1c97c0(0x192)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x3784c4[_0x1c97c0(0x16c)]['skillCode']+_0x1c97c0(0x18e)+(_0x300078['version']??_0x1c97c0(0x175))+'\x20for\x20review'};}const _0x363917=await _0x36d46c(_0x2f6e6f[_0x1c97c0(0x169)],_0x3784c4[_0x1c97c0(0x174)],{'visibility':_0x1c97c0(0x172)});throwIfPublishValidationFailed(_0x1c97c0(0x197),_0x3784c4[_0x1c97c0(0x16c)]['skillCode'],_0x363917),throwIfUnconfirmedPublishWarnings(_0x1c97c0(0x197),_0x3784c4['payload'][_0x1c97c0(0x17e)],_0x363917[_0x1c97c0(0x192)],_0x49fe16);const _0x1ec487={'confirmWarnings':_0x49fe16},_0x1e2672=_0x3784c4[_0x1c97c0(0x161)]?await _0x3a88ac(_0x3784c4[_0x1c97c0(0x16c)][_0x1c97c0(0x17e)],_0x2f6e6f[_0x1c97c0(0x169)],_0x3784c4[_0x1c97c0(0x174)],_0x1ec487):await _0x21594b(_0x2f6e6f[_0x1c97c0(0x169)],_0x3784c4['publishInput'],_0x1ec487);let _0x48a59c=_0x1e2672;if(isMultiFileManifest(_0x3784c4[_0x1c97c0(0x174)][_0x1c97c0(0x16e)])){const _0x3f203b=await _0x1dd8d4(_0x1c97c0(0x197),_0x1e2672[_0x1c97c0(0x17e)]||_0x3784c4['payload'][_0x1c97c0(0x17e)],_0x2f6e6f[_0x1c97c0(0x169)]);_0x498ef6(_0x3784c4['publishInput'][_0x1c97c0(0x16e)],_0x3f203b),_0x48a59c={..._0x1e2672,'files':_0x3784c4[_0x1c97c0(0x174)][_0x1c97c0(0x16e)]};}else{if(isPackageBackedManifest(_0x1e2672[_0x1c97c0(0x16e)])){const _0x1d3208=await _0x1dd8d4(_0x1c97c0(0x197),_0x1e2672[_0x1c97c0(0x17e)]||_0x3784c4['payload'][_0x1c97c0(0x17e)],_0x2f6e6f[_0x1c97c0(0x169)]);_0x4a8e93(_0x1e2672[_0x1c97c0(0x16e)],_0x1d3208);}}return _0x11b97c(_0x4cde64,_0x48a59c,_0x2f6e6f[_0x1c97c0(0x169)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1e2672),'warnings':_0x3784c4['warnings'],'validation':{'warnings':_0x363917[_0x1c97c0(0x192)]},'diagramBound':!![]},'message':_0x3784c4[_0x1c97c0(0x161)]?_0x1c97c0(0x181)+_0x3784c4[_0x1c97c0(0x16c)][_0x1c97c0(0x17e)]:'Created\x20personal\x20Skill\x20'+_0x3784c4['payload']['skillCode']};}function a76_0x11e3(_0x1f8787,_0x394857){_0x1f8787=_0x1f8787-0x15a;const _0x3b5345=a76_0x3b53();let _0x11e381=_0x3b5345[_0x1f8787];return _0x11e381;}function scopeLabel(_0x5c0ff1){const _0x530b93=a76_0x11e3;return _0x5c0ff1==='company'?_0x530b93(0x15b):_0x530b93(0x18f);}function withDiagram(_0x559a3d,_0x41635f){return{..._0x559a3d,'diagram':_0x41635f};}function diagramPackageExclusion(_0x558807){return _0x558807?{'excludedFilePaths':[_0x558807]}:{};}
|
|
1
|
+
(function(_0x22fc37,_0x1d397a){const _0x71b380=a76_0xa481,_0x515b05=_0x22fc37();while(!![]){try{const _0x5d65e8=parseInt(_0x71b380(0xb1))/0x1+parseInt(_0x71b380(0x8c))/0x2*(-parseInt(_0x71b380(0xac))/0x3)+-parseInt(_0x71b380(0x9b))/0x4+-parseInt(_0x71b380(0x9e))/0x5+parseInt(_0x71b380(0x8d))/0x6+parseInt(_0x71b380(0x82))/0x7+-parseInt(_0x71b380(0x94))/0x8*(-parseInt(_0x71b380(0xaa))/0x9);if(_0x5d65e8===_0x1d397a)break;else _0x515b05['push'](_0x515b05['shift']());}catch(_0x387690){_0x515b05['push'](_0x515b05['shift']());}}}(a76_0x43ca,0x9059e));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(_0x572f49){const _0x3709a3=a76_0xa481,{getRuntimeSkillByCode:_0x21d971,validateRuntimeSkillPublish:_0x2551ed}=await import(_0x3709a3(0x98)),{readPushDirectory:_0x4719d0,resolvePushDirectoryIdentity:_0x170531}=await import(_0x3709a3(0xb6));if(!_0x572f49['accessKey'])throw CliErrors['authRequired']();const _0x211ec4=resolvePushScope(_0x572f49),_0x4f1841=validateSkillDirectory(_0x572f49['str'](_0x3709a3(0x93)));throwIfSkillValidationFailed(_0x4f1841);const {diagram:_0x10d9b2,sourceFilePath:_0x12df66}=await readRequiredSkillDiagramInput(_0x572f49[_0x3709a3(0x86)]('diagram-file')),_0x287b8b=diagramPackageExclusion(_0x12df66),_0x5a3fd7=_0x170531(_0x4f1841[_0x3709a3(0x93)],_0x572f49[_0x3709a3(0x8e)],remoteFirstMetadataOptions()),_0x3b0548=await _0x21d971(_0x572f49[_0x3709a3(0x8e)],_0x5a3fd7[_0x3709a3(0x97)]);throwIfBuiltinPushTarget(_0x3b0548);if(_0x211ec4===_0x3709a3(0xb8)){const _0x541d6f=_0x4719d0(_0x4f1841[_0x3709a3(0x93)],_0x572f49[_0x3709a3(0x8e)],{...remoteMissingCompanyReadOptions(),..._0x287b8b}),_0x2edbf4=await _0x2551ed(_0x572f49[_0x3709a3(0x8e)],withDiagram(_0x541d6f['input'],_0x10d9b2),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3709a3(0x9a),'url':_0x3709a3(0xa6)+_0x572f49['appCode']+_0x3709a3(0xa4),'body':{'skillCode':_0x541d6f['skillCode'],'visibility':_0x3709a3(0xb2),'valid':_0x2edbf4['valid'],'errors':_0x2edbf4[_0x3709a3(0xa7)],'warnings':_0x2edbf4[_0x3709a3(0xb3)],'resolvedSlug':_0x2edbf4[_0x3709a3(0xab)],'resolvedVersion':_0x2edbf4['resolvedVersion'],'diagramValidated':_0x2edbf4[_0x3709a3(0x8a)]},'description':_0x3709a3(0x85)};}if(_0x3b0548&&_0x3b0548[_0x3709a3(0xb7)]!==_0x3709a3(0xb9))throw CliErrors[_0x3709a3(0x95)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x5a3fd7[_0x3709a3(0x97)]+_0x3709a3(0x81)+(_0x3b0548[_0x3709a3(0xb7)]??_0x3709a3(0x91))+'\x22.');const _0x17b682=_0x4719d0(_0x4f1841[_0x3709a3(0x93)],_0x572f49[_0x3709a3(0x8e)],{..._0x3b0548?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x287b8b}),_0x12a839=await _0x2551ed(_0x572f49[_0x3709a3(0x8e)],withDiagram(_0x17b682[_0x3709a3(0x87)],_0x10d9b2),{'visibility':_0x3709a3(0x8b)});return{'method':_0x3709a3(0x9a),'url':_0x3709a3(0xa6)+_0x572f49[_0x3709a3(0x8e)]+_0x3709a3(0xa4),'body':{'skillCode':_0x17b682[_0x3709a3(0x97)],'visibility':_0x3709a3(0x8b),'valid':_0x12a839[_0x3709a3(0x96)],'errors':_0x12a839[_0x3709a3(0xa7)],'warnings':_0x12a839[_0x3709a3(0xb3)],'resolvedSlug':_0x12a839[_0x3709a3(0xab)],'resolvedVersion':_0x12a839[_0x3709a3(0x84)],'diagramValidated':_0x12a839[_0x3709a3(0x8a)]},'description':'Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.'};}export async function skillPushExecute(_0x44c875){const _0x52aa1c=a76_0xa481,{createPersonalRuntimeSkill:_0x5c8b69,downloadRuntimeSkillPackage:_0x174114,getRuntimeSkillByCode:_0x342e7e,publishCompanyRuntimeSkill:_0x1fe31d,updatePersonalRuntimeSkill:_0x1ef88b,validateRuntimeSkillPublish:_0x828780}=await import(_0x52aa1c(0x98)),{verifyRuntimeSkillPackage:_0x424895,verifyRuntimeSkillBundle:_0x5f2401,readPushDirectory:_0x571874,refreshPushDirectoryMetadataFromRemote:_0x4abeec,recordPushedRuntimeSkill:_0x128870,resolvePushDirectoryIdentity:_0x1f314c}=await import('../../skills/runtime-skill-sync.js');if(!_0x44c875[_0x52aa1c(0x9d)])throw CliErrors[_0x52aa1c(0x9f)]();const _0x2ce3c4=resolvePushScope(_0x44c875),_0x566da0=_0x44c875[_0x52aa1c(0xb0)](_0x52aa1c(0x89))||_0x44c875['bool']('confirmWarnings'),_0x2d6580=validateSkillDirectory(_0x44c875[_0x52aa1c(0x86)](_0x52aa1c(0x93)));throwIfSkillValidationFailed(_0x2d6580);const {diagram:_0x1fe987,sourceFilePath:_0x384239}=await readRequiredSkillDiagramInput(_0x44c875['str'](_0x52aa1c(0xa5))),_0x355178=diagramPackageExclusion(_0x384239),_0x199955=_0x2d6580[_0x52aa1c(0x93)];let _0x36dbd0;if(_0x2ce3c4===_0x52aa1c(0xb8)){const _0x301a34=_0x1f314c(_0x199955,_0x44c875[_0x52aa1c(0x8e)],remoteFirstMetadataOptions()),_0x83d0c7=await _0x342e7e(_0x44c875[_0x52aa1c(0x8e)],_0x301a34['skillCode']);throwIfBuiltinPushTarget(_0x83d0c7);if(_0x83d0c7)_0x4abeec(_0x199955,_0x83d0c7,_0x44c875[_0x52aa1c(0x8e)]);const _0x301500=_0x571874(_0x199955,_0x44c875['appCode'],{..._0x83d0c7?{'targetScope':_0x52aa1c(0xb8),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x355178});_0x36dbd0={'scope':_0x52aa1c(0xb8),'payload':_0x301500,'publishInput':withDiagram(_0x301500[_0x52aa1c(0x87)],_0x1fe987),'remoteForPreflight':_0x83d0c7,'warnings':[]};}else{const _0x5d77cc=_0x44c875[_0x52aa1c(0x86)](_0x52aa1c(0x90))['trim'](),_0x5d848f=Boolean(_0x5d77cc),_0x304716=allowRetargetArgs(_0x5d848f),_0x3f4d50=_0x1f314c(_0x199955,_0x44c875[_0x52aa1c(0x8e)],{...remoteFirstMetadataOptions(),..._0x304716[0x0]}),_0x203893=await _0x342e7e(_0x44c875['appCode'],_0x3f4d50[_0x52aa1c(0x97)]);throwIfBuiltinPushTarget(_0x203893);if(_0x203893){if(_0x203893[_0x52aa1c(0xb7)]!==_0x52aa1c(0xb9)){if(_0x5d848f)throw CliErrors[_0x52aa1c(0x95)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x3f4d50[_0x52aa1c(0x97)]+_0x52aa1c(0x81)+(_0x203893['scope']??_0x52aa1c(0x91))+'\x22.');_0x4abeec(_0x199955,_0x203893,_0x44c875[_0x52aa1c(0x8e)]);}else!_0x5d848f&&_0x4abeec(_0x199955,_0x203893,_0x44c875[_0x52aa1c(0x8e)]);}const _0x44ca7a=_0x571874(_0x199955,_0x44c875[_0x52aa1c(0x8e)],{..._0x203893?remotePersonalReadOptions(_0x5d848f,_0x304716[0x0]):remoteMissingPersonalReadOptions(_0x304716[0x0]),..._0x355178}),_0xc9979=_0x203893?.[_0x52aa1c(0xb7)]===_0x52aa1c(0xb9)&&_0x203893['skillCode']===_0x44ca7a['skillCode']?_0x203893:undefined,_0x11d6ad=_0x5d848f&&_0xc9979?withRetargetExistingMetadata(_0x44ca7a[_0x52aa1c(0x87)],_0xc9979,{'preferInputSkillName':Boolean(_0x44ca7a[_0x52aa1c(0x80)])}):_0x44ca7a[_0x52aa1c(0x87)],_0x13be13=_0x5d848f?buildRetargetWarning(_0x3f4d50['metadata'],_0x44c875[_0x52aa1c(0x8e)]):[];_0x36dbd0={'scope':_0x52aa1c(0xb9),'payload':_0x44ca7a,'publishInput':withDiagram(_0x11d6ad,_0x1fe987),'remoteForPreflight':_0xc9979,'existing':_0xc9979,'warnings':[..._0x2d6580['warnings'],..._0x13be13]};}const _0x69d5d0=await runRemoteContentPreflight({'scope':_0x36dbd0['scope'],'remote':_0x36dbd0[_0x52aa1c(0xb4)],'publishInput':_0x36dbd0['publishInput'],'skillCode':_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)],'appCode':_0x44c875[_0x52aa1c(0x8e)],'downloadRuntimeSkillPackage':_0x174114,'verifyRuntimeSkillBundle':_0x5f2401});if(_0x69d5d0[_0x52aa1c(0xa1)]==='identical')return _0x36dbd0[_0x52aa1c(0xb7)]===_0x52aa1c(0xb8)?_0x128870(_0x199955,_0x69d5d0[_0x52aa1c(0x92)],_0x44c875['appCode'],{'scope':_0x52aa1c(0xb8)}):_0x128870(_0x199955,_0x69d5d0['savedSkill'],_0x44c875[_0x52aa1c(0x8e)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x69d5d0[_0x52aa1c(0x92)]),'scope':_0x36dbd0[_0x52aa1c(0xb7)],..._0x36dbd0[_0x52aa1c(0xb7)]===_0x52aa1c(0xb9)?{'warnings':_0x36dbd0['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x36dbd0[_0x52aa1c(0xb7)])+_0x52aa1c(0x99)+_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)]+_0x52aa1c(0x8f)};if(_0x36dbd0['scope']===_0x52aa1c(0xb8)){const _0x299d26=await _0x828780(_0x44c875[_0x52aa1c(0x8e)],_0x36dbd0['publishInput'],{'visibility':_0x52aa1c(0xb2)});throwIfPublishValidationFailed(_0x52aa1c(0xb8),_0x36dbd0[_0x52aa1c(0xa0)]['skillCode'],_0x299d26),throwIfUnconfirmedPublishWarnings(_0x52aa1c(0xb8),_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)],_0x299d26[_0x52aa1c(0xb3)],_0x566da0);const _0x4ee4a9=await _0x1fe31d(_0x44c875[_0x52aa1c(0x8e)],_0x36dbd0[_0x52aa1c(0x88)],{'confirmWarnings':_0x566da0});return _0x128870(_0x199955,{..._0x4ee4a9,'files':_0x36dbd0[_0x52aa1c(0x88)][_0x52aa1c(0xaf)]},_0x44c875['appCode'],{'scope':_0x52aa1c(0xb8)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x4ee4a9),'scope':_0x52aa1c(0xb8),'reviewState':_0x52aa1c(0x9c),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x299d26[_0x52aa1c(0xb3)]}},'message':_0x52aa1c(0xad)+_0x36dbd0['payload'][_0x52aa1c(0x97)]+_0x52aa1c(0xb5)+(_0x4ee4a9[_0x52aa1c(0xa2)]??'(unknown)')+_0x52aa1c(0xa9)};}const _0x337320=await _0x828780(_0x44c875[_0x52aa1c(0x8e)],_0x36dbd0[_0x52aa1c(0x88)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x52aa1c(0xb9),_0x36dbd0[_0x52aa1c(0xa0)]['skillCode'],_0x337320),throwIfUnconfirmedPublishWarnings(_0x52aa1c(0xb9),_0x36dbd0['payload'][_0x52aa1c(0x97)],_0x337320[_0x52aa1c(0xb3)],_0x566da0);const _0x1d97ac={'confirmWarnings':_0x566da0},_0x32fe62=_0x36dbd0[_0x52aa1c(0x83)]?await _0x1ef88b(_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)],_0x44c875[_0x52aa1c(0x8e)],_0x36dbd0[_0x52aa1c(0x88)],_0x1d97ac):await _0x5c8b69(_0x44c875[_0x52aa1c(0x8e)],_0x36dbd0[_0x52aa1c(0x88)],_0x1d97ac);let _0x5dc755=_0x32fe62;if(isMultiFileManifest(_0x36dbd0[_0x52aa1c(0x88)][_0x52aa1c(0xaf)])){const _0x445dc6=await _0x174114(_0x52aa1c(0xb9),_0x32fe62[_0x52aa1c(0x97)]||_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)],_0x44c875[_0x52aa1c(0x8e)]);_0x5f2401(_0x36dbd0['publishInput'][_0x52aa1c(0xaf)],_0x445dc6),_0x5dc755={..._0x32fe62,'files':_0x36dbd0[_0x52aa1c(0x88)]['files']};}else{if(isPackageBackedManifest(_0x32fe62[_0x52aa1c(0xaf)])){const _0x1c266b=await _0x174114(_0x52aa1c(0xb9),_0x32fe62[_0x52aa1c(0x97)]||_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)],_0x44c875[_0x52aa1c(0x8e)]);_0x424895(_0x32fe62[_0x52aa1c(0xaf)],_0x1c266b);}}return _0x128870(_0x199955,_0x5dc755,_0x44c875[_0x52aa1c(0x8e)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x32fe62),'warnings':_0x36dbd0[_0x52aa1c(0xb3)],'validation':{'warnings':_0x337320[_0x52aa1c(0xb3)]},'diagramBound':!![]},'message':_0x36dbd0[_0x52aa1c(0x83)]?_0x52aa1c(0xa3)+_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)]:'Created\x20personal\x20Skill\x20'+_0x36dbd0[_0x52aa1c(0xa0)][_0x52aa1c(0x97)]};}function scopeLabel(_0x24c5bb){const _0x5a98ea=a76_0xa481;return _0x24c5bb===_0x5a98ea(0xb8)?_0x5a98ea(0xae):_0x5a98ea(0xa8);}function a76_0xa481(_0x2d4265,_0x5f4daf){_0x2d4265=_0x2d4265-0x80;const _0x43ca69=a76_0x43ca();let _0xa48158=_0x43ca69[_0x2d4265];return _0xa48158;}function withDiagram(_0x57380e,_0x3fb774){return{..._0x57380e,'diagram':_0x3fb774};}function diagramPackageExclusion(_0x10f8bc){return _0x10f8bc?{'excludedFilePaths':[_0x10f8bc]}:{};}function a76_0x43ca(){const _0x174825=['resolvedVersion','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','str','input','publishInput','confirm-warnings','diagramValidated','PRIVATE','4bAHFgz','6383772oNAyOA','appCode','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','appcode','unknown','savedSkill','dir','416XMGqMi','validation','valid','skillCode','../../core/api-client.js','\x20Skill\x20','POST','3188952IXHJwa','submitted','accessKey','241010yCoCpc','authRequired','payload','status','version','Updated\x20personal\x20Skill\x20','/publish/validate','diagram-file','/api/cli/v1/skills/','errors','Personal','\x20for\x20review','120150YeqDUD','resolvedSlug','1200471aDUKYW','Submitted\x20company\x20Skill\x20','Company','files','bool','37426zZecMp','NAMESPACE_ONLY','warnings','remoteForPreflight','\x20version\x20','../../skills/runtime-skill-sync.js','scope','company','personal','frontmatterDisplayName','\x20has\x20scope=\x22','3089996ZYDFry','existing'];a76_0x43ca=function(){return _0x174825;};return a76_0x43ca();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a7a75,_0x46b759){const _0x3acb22=a77_0x3409,_0x3008f5=_0x5a7a75();while(!![]){try{const _0x7e221a=-parseInt(_0x3acb22(0x153))/0x1*(-parseInt(_0x3acb22(0x15d))/0x2)+-parseInt(_0x3acb22(0x165))/0x3+-parseInt(_0x3acb22(0x179))/0x4+-parseInt(_0x3acb22(0x162))/0x5+-parseInt(_0x3acb22(0x173))/0x6*(parseInt(_0x3acb22(0x178))/0x7)+parseInt(_0x3acb22(0x175))/0x8*(-parseInt(_0x3acb22(0x15e))/0x9)+-parseInt(_0x3acb22(0x176))/0xa*(-parseInt(_0x3acb22(0x161))/0xb);if(_0x7e221a===_0x46b759)break;else _0x3008f5['push'](_0x3008f5['shift']());}catch(_0x45c33f){_0x3008f5['push'](_0x3008f5['shift']());}}}(a77_0x5df9,0x2cc3c));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x22836d){const _0x34381a=a77_0x3409,_0x1c3080=_0x22836d[_0x34381a(0x163)](_0x34381a(0x177))||_0x34381a(0x167);if(_0x1c3080===_0x34381a(0x167)||_0x1c3080===_0x34381a(0x155))return _0x1c3080;throw CliErrors['validation']('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x1c3080+'\x22.');}export function allowRetargetArgs(_0x2c3e5a){return _0x2c3e5a?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x2a6114=a77_0x3409;return{'targetScope':_0x2a6114(0x155),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x4b2f88={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x4b2f88};}export function remotePersonalReadOptions(_0x457729,_0x4cc121={}){return{'ignoreInvalidMetadata':!![],..._0x457729?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x4cc121};}function a77_0x3409(_0x18c0d1,_0x3c57fd){_0x18c0d1=_0x18c0d1-0x14c;const _0x5df9c1=a77_0x5df9();let _0x340957=_0x5df9c1[_0x18c0d1];return _0x340957;}function a77_0x5df9(){const _0x3d9d2f=['version','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','errors','length','676406AUyqOy','3099150bhWXUA','valid','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','742082GnxPGB','834310gmbfjZ','str','skillCode','398172MkwgMk','remote','personal','downloadRuntimeSkillPackage','SkillHub\x20validation\x20returned\x20invalid.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','files','content','Local\x20Skill\x20metadata\x20appCode\x20','\x20after\x20successful\x20push.','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','verifyRuntimeSkillBundle','(unknown)','join','54ihmfGd','skill-metadata-appcode-retargeted','8uywenx','90BfaXxq','scope','50085itqDQW','214696RhdGMf','appCode','not-applicable','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','warning','identical','Review\x20each\x20warning\x20before\x20continuing.','Builtin\x20Skill\x20','Company','publishInput','1gumsom','validation','company','different','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','Personal'];a77_0x5df9=function(){return _0x3d9d2f;};return a77_0x5df9();}export function throwIfBuiltinPushTarget(_0x29441a){const _0x3ffcde=a77_0x3409;if(_0x29441a?.[_0x3ffcde(0x177)]!=='builtin')return;throw CliErrors[_0x3ffcde(0x154)](_0x3ffcde(0x150)+(_0x29441a[_0x3ffcde(0x164)]??_0x3ffcde(0x171))+'\x20cannot\x20be\x20pushed.',_0x3ffcde(0x14c));}export function throwIfPublishValidationFailed(_0x50856f,_0xfc1216,_0x99483d){const _0x35a964=a77_0x3409;if(_0x99483d[_0x35a964(0x15b)][_0x35a964(0x15c)]===0x0&&(_0x99483d[_0x35a964(0x15f)]||_0x99483d['warnings'][_0x35a964(0x15c)]>0x0))return;const _0x42bb04=_0x99483d['errors'][_0x35a964(0x15c)]>0x0?_0x99483d[_0x35a964(0x15b)][_0x35a964(0x172)](';\x20'):_0x35a964(0x169),_0x3dd555=_0x50856f===_0x35a964(0x155)?_0x35a964(0x151):_0x35a964(0x158);throw CliErrors['validation'](_0x3dd555+_0x35a964(0x16a)+_0xfc1216+'.',_0x42bb04);}export function throwIfUnconfirmedPublishWarnings(_0x3fc0ad,_0x32f967,_0x58484d,_0x15a670){const _0x5d1b5a=a77_0x3409;if(_0x58484d[_0x5d1b5a(0x15c)]===0x0||_0x15a670)return;const _0x55c448=_0x3fc0ad==='company'?_0x5d1b5a(0x151):_0x5d1b5a(0x158);throw CliErrors[_0x5d1b5a(0x154)](_0x55c448+_0x5d1b5a(0x15a)+_0x32f967+'.',[_0x5d1b5a(0x14f),_0x5d1b5a(0x160),_0x5d1b5a(0x157),'Warnings:\x20'+_0x58484d[_0x5d1b5a(0x172)](';\x20')][_0x5d1b5a(0x172)]('\x20'));}export function buildRetargetWarning(_0x118abf,_0xa42b33){const _0x57832b=a77_0x3409;if(!_0x118abf?.[_0x57832b(0x17a)]||_0x118abf[_0x57832b(0x17a)]===_0xa42b33)return[];return[{'level':_0x57832b(0x14d),'ruleId':_0x57832b(0x174),'file':'lovrabet.skill.json','message':_0x57832b(0x16d)+_0x118abf[_0x57832b(0x17a)]+_0x57832b(0x16f)+_0xa42b33+_0x57832b(0x16e),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x5f191b){const _0x3eec88=a77_0x3409;if(!_0x5f191b[_0x3eec88(0x166)]||_0x5f191b[_0x3eec88(0x166)][_0x3eec88(0x177)]!==_0x5f191b[_0x3eec88(0x177)]||!_0x5f191b['publishInput'][_0x3eec88(0x16b)])return{'status':_0x3eec88(0x17b)};const _0x5c0617=_0x5f191b['remote']['skillCode']||_0x5f191b[_0x3eec88(0x164)];if(!_0x5c0617)return{'status':_0x3eec88(0x17b)};const _0x2bebf5=await _0x5f191b[_0x3eec88(0x168)](_0x5f191b[_0x3eec88(0x177)],_0x5c0617,_0x5f191b['appCode'],_0x5f191b[_0x3eec88(0x166)][_0x3eec88(0x159)]);try{_0x5f191b[_0x3eec88(0x170)](_0x5f191b[_0x3eec88(0x152)]['files'],_0x2bebf5);}catch{return{'status':_0x3eec88(0x156)};}return{'status':_0x3eec88(0x14e),'savedSkill':{..._0x5f191b[_0x3eec88(0x166)],'content':_0x5f191b[_0x3eec88(0x152)][_0x3eec88(0x16c)],'files':_0x5f191b[_0x3eec88(0x152)][_0x3eec88(0x16b)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fcf06,_0x15f129){const _0x5f499e=a78_0x22f3,_0x2b35b1=_0x4fcf06();while(!![]){try{const _0x5d4172=parseInt(_0x5f499e(0xae))/0x1+parseInt(_0x5f499e(0xb4))/0x2*(-parseInt(_0x5f499e(0xbd))/0x3)+-parseInt(_0x5f499e(0xbf))/0x4+parseInt(_0x5f499e(0xbc))/0x5*(parseInt(_0x5f499e(0xad))/0x6)+-parseInt(_0x5f499e(0xb2))/0x7*(-parseInt(_0x5f499e(0xb6))/0x8)+parseInt(_0x5f499e(0xb5))/0x9*(parseInt(_0x5f499e(0xbe))/0xa)+-parseInt(_0x5f499e(0xaa))/0xb*(-parseInt(_0x5f499e(0xc1))/0xc);if(_0x5d4172===_0x15f129)break;else _0x2b35b1['push'](_0x2b35b1['shift']());}catch(_0x342817){_0x2b35b1['push'](_0x2b35b1['shift']());}}}(a78_0x1719,0x6731b));function a78_0x22f3(_0x1b68cd,_0x2bb621){_0x1b68cd=_0x1b68cd-0xaa;const _0x1719e3=a78_0x1719();let _0x22f3d8=_0x1719e3[_0x1b68cd];return _0x22f3d8;}export function withRetargetExistingMetadata(_0x4f48b8,_0x35cbf7,_0x5329c3={}){const _0x52c571=a78_0x22f3,_0x5a1183=_0x5329c3[_0x52c571(0xaf)]?_0x4f48b8[_0x52c571(0xc2)]??_0x35cbf7[_0x52c571(0xc2)]:_0x35cbf7[_0x52c571(0xc2)]??_0x4f48b8[_0x52c571(0xc2)];return{..._0x4f48b8,'skillName':_0x5a1183,'description':_0x35cbf7[_0x52c571(0xab)]??_0x4f48b8[_0x52c571(0xab)],'tags':Array[_0x52c571(0xb7)](_0x35cbf7[_0x52c571(0xbb)])?_0x35cbf7[_0x52c571(0xbb)]:_0x4f48b8['tags'],'version':_0x35cbf7[_0x52c571(0xba)]??_0x4f48b8[_0x52c571(0xba)],'sourceSessionId':_0x35cbf7['sourceSessionId']??_0x4f48b8['sourceSessionId']};}export function buildRetargetWarning(_0x119e5c,_0x467118){const _0x42089d=a78_0x22f3;if(!_0x119e5c?.['appCode']||_0x119e5c[_0x42089d(0xc0)]===_0x467118)return[];return[{'level':_0x42089d(0xb0),'ruleId':_0x42089d(0xac),'file':'lovrabet.skill.json','message':_0x42089d(0xb1)+_0x119e5c[_0x42089d(0xc0)]+_0x42089d(0xb8)+_0x467118+_0x42089d(0xb3),'suggestion':_0x42089d(0xb9)}];}function a78_0x1719(){const _0x6d29d2=['description','skill-metadata-appcode-retargeted','6ZyKfUM','442941DISgGw','preferInputSkillName','warning','Local\x20Skill\x20metadata\x20appCode\x20','445438QOTmTT','\x20after\x20successful\x20push.','18vldjxS','928404kLdnOm','80VSimWp','isArray','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','version','tags','782345SgoQUs','255093WvmWeK','50xqGLXQ','2830120sBmXIB','appCode','132888HfqpDd','skillName','143qdQEMA'];a78_0x1719=function(){return _0x6d29d2;};return a78_0x1719();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x228e09,_0x219fff){const _0x1f7c7d=a79_0x515f,_0x49da1b=_0x228e09();while(!![]){try{const _0x47f8f9=parseInt(_0x1f7c7d(0x1b2))/0x1*(-parseInt(_0x1f7c7d(0x1ae))/0x2)+parseInt(_0x1f7c7d(0x1af))/0x3*(-parseInt(_0x1f7c7d(0x1a6))/0x4)+-parseInt(_0x1f7c7d(0x1ab))/0x5+parseInt(_0x1f7c7d(0x1aa))/0x6*(parseInt(_0x1f7c7d(0x1b0))/0x7)+-parseInt(_0x1f7c7d(0x1a7))/0x8+parseInt(_0x1f7c7d(0x1a8))/0x9+parseInt(_0x1f7c7d(0x1ad))/0xa*(parseInt(_0x1f7c7d(0x1a4))/0xb);if(_0x47f8f9===_0x219fff)break;else _0x49da1b['push'](_0x49da1b['shift']());}catch(_0x14e6fb){_0x49da1b['push'](_0x49da1b['shift']());}}}(a79_0x3e8b,0x60a5f));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x4e985b){const _0x19e998=a79_0x515f,_0x5b3843=_0x4e985b[_0x19e998(0x1ac)]();if(!_0x5b3843||_0x5b3843===_0x19e998(0x1b1))return[_0x19e998(0x1b4),_0x19e998(0x1a5)];if(_0x5b3843===_0x19e998(0x1b4)||_0x5b3843===_0x19e998(0x1a5))return[_0x5b3843];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x4e985b);}export function normalizeListScope(_0x5d0f48){const _0x52c7eb=a79_0x515f,_0x4c11a8=_0x5d0f48['trim']();if(!_0x4c11a8)return _0x52c7eb(0x1b1);if(_0x4c11a8===_0x52c7eb(0x1b4)||_0x4c11a8===_0x52c7eb(0x1a5)||_0x4c11a8===_0x52c7eb(0x1b1))return _0x4c11a8;throw CliErrors[_0x52c7eb(0x1a9)](_0x52c7eb(0x1b3)+_0x5d0f48);}export function shouldListScope(_0x445173,_0x17354d){const _0x26d988=a79_0x515f;if(_0x445173===_0x26d988(0x1b1))return!![];return _0x445173===_0x17354d;}export function listScopeToRuntimeScopes(_0x2ef14e){const _0x2668bb=a79_0x515f;if(_0x2ef14e===_0x2668bb(0x1b1))return['personal',_0x2668bb(0x1a5)];return[_0x2ef14e===_0x2668bb(0x1a5)?_0x2668bb(0x1a5):_0x2ef14e];}export function listScopeToRemoteScope(_0x24a141){return _0x24a141;}function a79_0x515f(_0x707164,_0x31d5cb){_0x707164=_0x707164-0x1a4;const _0x3e8bb0=a79_0x3e8b();let _0x515ffe=_0x3e8bb0[_0x707164];return _0x515ffe;}function a79_0x3e8b(){const _0x5ec6c7=['trim','20110130ESLkYH','525716eQEEHq','448986rIPHWM','392dMFsRk','all','3yOXLDH','Unsupported\x20Skill\x20list\x20scope:\x20','personal','11PcCeGV','company','20sDUBJR','3461864GabBnU','2530053RQjgjr','validation','59958BGXnCK','2431250pQvywx'];a79_0x3e8b=function(){return _0x5ec6c7;};return a79_0x3e8b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c82ac,_0x3cffd1){var _0x38f09d=a80_0x2ad8,_0x14a8a0=_0x1c82ac();while(!![]){try{var _0x5dc674=-parseInt(_0x38f09d(0xc3))/0x1+parseInt(_0x38f09d(0xd6))/0x2*(parseInt(_0x38f09d(0xd9))/0x3)+-parseInt(_0x38f09d(0xd8))/0x4+-parseInt(_0x38f09d(0xd4))/0x5*(parseInt(_0x38f09d(0xd2))/0x6)+-parseInt(_0x38f09d(0xc9))/0x7*(-parseInt(_0x38f09d(0xc5))/0x8)+-parseInt(_0x38f09d(0xd3))/0x9+parseInt(_0x38f09d(0xcf))/0xa;if(_0x5dc674===_0x3cffd1)break;else _0x14a8a0['push'](_0x14a8a0['shift']());}catch(_0xf653b5){_0x14a8a0['push'](_0x14a8a0['shift']());}}}(a80_0x4b98,0xb2a98));export function summarizeRuntimeSkill(_0xec00f8){var _0x5a2a0d=a80_0x2ad8;return{'id':_0xec00f8['id'],'skillCode':_0xec00f8['skillCode'],'skillName':_0xec00f8[_0x5a2a0d(0xcc)],'scope':_0xec00f8[_0x5a2a0d(0xcb)],'version':_0xec00f8['version'],'readonly':_0xec00f8[_0x5a2a0d(0xc4)]};}function a80_0x4b98(){var _0x3eb0e4=['tags','4606945LWANvU','status','scope','skillName','metadataPath','appCode','9893100eAKBvV','pulledAt','version','678rtdqBO','9558306NjVdCT','6065ZjdtZG','linkedPaths','274322lbhvFK','skillMdPath','308612vRoJUy','21gOnNtQ','599516klfpYM','readonly','8FJYzHT','treeHash','skillCode'];a80_0x4b98=function(){return _0x3eb0e4;};return a80_0x4b98();}function a80_0x2ad8(_0x19df6c,_0x20190e){_0x19df6c=_0x19df6c-0xc3;var _0x4b9812=a80_0x4b98();var _0x2ad896=_0x4b9812[_0x19df6c];return _0x2ad896;}export function summarizeLocalRuntimeSkill(_0x5a6682){var _0x41856d=a80_0x2ad8;return{'id':_0x5a6682['id'],'skillCode':_0x5a6682[_0x41856d(0xc7)],'skillName':_0x5a6682[_0x41856d(0xcc)],'scope':_0x5a6682['scope'],'appCode':_0x5a6682[_0x41856d(0xce)],'version':_0x5a6682[_0x41856d(0xd1)],'status':_0x5a6682[_0x41856d(0xca)],'readonly':_0x5a6682['readonly'],'tags':_0x5a6682[_0x41856d(0xc8)],'dir':_0x5a6682['dir'],'cacheDir':_0x5a6682['cacheDir'],'skillMdPath':_0x5a6682[_0x41856d(0xd7)],'metadataPath':_0x5a6682[_0x41856d(0xcd)],'linkedPaths':_0x5a6682[_0x41856d(0xd5)],'contentHash':_0x5a6682['contentHash'],'treeHash':_0x5a6682[_0x41856d(0xc6)],'pulledAt':_0x5a6682[_0x41856d(0xd0)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x3bb6b8=a81_0x2a42;(function(_0x1e02af,_0x55754a){const _0x3d0564=a81_0x2a42,_0x5dc20c=_0x1e02af();while(!![]){try{const _0x1a6590=parseInt(_0x3d0564(0x1ee))/0x1+parseInt(_0x3d0564(0x1ea))/0x2*(parseInt(_0x3d0564(0x1fa))/0x3)+parseInt(_0x3d0564(0x1f5))/0x4*(-parseInt(_0x3d0564(0x1f3))/0x5)+-parseInt(_0x3d0564(0x1d3))/0x6+parseInt(_0x3d0564(0x1db))/0x7+-parseInt(_0x3d0564(0x1e4))/0x8*(-parseInt(_0x3d0564(0x1d5))/0x9)+parseInt(_0x3d0564(0x1fc))/0xa;if(_0x1a6590===_0x55754a)break;else _0x5dc20c['push'](_0x5dc20c['shift']());}catch(_0x45dab0){_0x5dc20c['push'](_0x5dc20c['shift']());}}}(a81_0x2926,0x5620b));function a81_0x2926(){const _0x21acf7=['\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=','\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','join','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','2555434ZTihzr','\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.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','Invalid\x20Skill\x20name:\x20','#\x20Output\x20Contract\x0a\x0a','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\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','\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包就是完整交付产物。','16zICMgJ','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\x0a\x20\x20created:\x20\x22','read','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','SKILL.md','2kLwixU','references/runtime-contract.md','.agents/skills','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','291029trkJZB','type','skillName','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','toISOString','5MSRzxB','trim','1771636HAXFVV','Unsupported\x20Skill\x20type:\x20','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\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','validation','1901667WiDHqq','timestamp','715610NVGkzn','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','3899850GVtYFk','references/output-contract.md','378549oIbbIr','write'];a81_0x2926=function(){return _0x21acf7;};return a81_0x2926();}import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a81_0x3bb6b8(0x1d6),'read'];export const DEFAULT_SKILL_TARGET=a81_0x3bb6b8(0x1ec);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a81_0x3bb6b8(0x1eb);export const OUTPUT_CONTRACT_FILE=a81_0x3bb6b8(0x1d4);export function validateSkillName(_0x3fa781){const _0x28b9bd=a81_0x3bb6b8,_0x3aeb2b=_0x3fa781[_0x28b9bd(0x1f4)]();if(!SKILL_NAME_PATTERN['test'](_0x3aeb2b))throw CliErrors[_0x28b9bd(0x1f9)](_0x28b9bd(0x1de)+_0x3fa781+_0x28b9bd(0x1e8),_0x28b9bd(0x1fd));return _0x3aeb2b;}export function normalizeSkillTemplateType(_0x29e0e6){const _0x3fced8=a81_0x3bb6b8,_0x1f2653=(_0x29e0e6||_0x3fced8(0x1d6))[_0x3fced8(0x1f4)]()||'write';if(SKILL_TYPES['includes'](_0x1f2653))return _0x1f2653;throw CliErrors[_0x3fced8(0x1f9)](_0x3fced8(0x1f6)+_0x29e0e6,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x3fced8(0x1d9)](',\x20')+'.');}function a81_0x2a42(_0x48b861,_0x3f2846){_0x48b861=_0x48b861-0x1d3;const _0x29264f=a81_0x2926();let _0x2a42af=_0x29264f[_0x48b861];return _0x2a42af;}export function renderSkillTemplate(_0x585df4){const _0x37b64c=a81_0x3bb6b8,_0x3849f9=validateSkillName(_0x585df4[_0x37b64c(0x1f0)]),_0x2b4100=normalizeSkillTemplateType(_0x585df4[_0x37b64c(0x1ef)]),_0x473465=_0x585df4[_0x37b64c(0x1fb)]??new Date()[_0x37b64c(0x1f2)]();return{'skillName':_0x3849f9,'type':_0x2b4100,'files':[{'path':_0x37b64c(0x1e9),'content':renderSkillMd(_0x3849f9,_0x2b4100,_0x473465)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x3849f9,_0x2b4100)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x3849f9,_0x2b4100)}]};}function renderSkillMd(_0x2dd882,_0x11456d,_0x3870a9){const _0x349f81=a81_0x3bb6b8,_0x4e951b=typeWorkflow(_0x11456d);return'---\x0aname:\x20'+_0x2dd882+'\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x11456d+_0x349f81(0x1e6)+_0x3870a9+_0x349f81(0x1da)+_0x2dd882+_0x349f81(0x1dc)+_0x4e951b+'\x0a\x0a'+businessStateSection(_0x11456d)+_0x349f81(0x1e1);}function renderRuntimeContract(_0x13f411,_0x2824e0){const _0x10b1e8=a81_0x3bb6b8,_0x597eb0=_0x2824e0===_0x10b1e8(0x1d6)?_0x10b1e8(0x1f7):'';return _0x10b1e8(0x1e3)+_0x13f411+_0x10b1e8(0x1d7)+_0x2824e0+_0x10b1e8(0x1d8)+_0x597eb0+_0x10b1e8(0x1e2);}function renderOutputContract(_0x3d6cca,_0x1add6d){const _0x1c4fd6=a81_0x3bb6b8,_0x569ad2=_0x1add6d===_0x1c4fd6(0x1d6)?_0x1c4fd6(0x1ed):_0x1add6d+_0x1c4fd6(0x1f1);return _0x1c4fd6(0x1df)+_0x3d6cca+_0x1c4fd6(0x1f8)+_0x569ad2+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x23d5a0){const _0x1eaa3f=a81_0x3bb6b8;if(_0x23d5a0===_0x1eaa3f(0x1e7))return _0x1eaa3f(0x1e0);return _0x1eaa3f(0x1dd);}function businessStateSection(_0x361876){const _0x3849c8=a81_0x3bb6b8;if(_0x361876!==_0x3849c8(0x1d6))return'';return _0x3849c8(0x1e5);}
|