@lovrabet/lovrabet-cli 2.3.4 → 2.3.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.d.ts +2 -0
- package/lib/commands/data/import-excel.js +1 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +19 -5
- 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.d.ts +1 -0
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.d.ts +5 -0
- package/lib/framework/access-error.js +1 -0
- 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.d.ts +2 -17
- 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.d.ts +25 -0
- package/lib/services/dataset-import/auto-id-runner.js +1 -0
- package/lib/services/dataset-import/excel-reader.d.ts +3 -0
- package/lib/services/dataset-import/excel-reader.js +1 -0
- package/lib/services/dataset-import/metadata.d.ts +2 -0
- package/lib/services/dataset-import/metadata.js +1 -0
- package/lib/services/dataset-import/preview.d.ts +4 -0
- package/lib/services/dataset-import/preview.js +1 -0
- package/lib/services/dataset-import/runner.d.ts +63 -0
- package/lib/services/dataset-import/runner.js +1 -0
- package/lib/services/dataset-import/types.d.ts +33 -0
- package/lib/services/dataset-import/types.js +1 -0
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +8 -3
- package/skills/lovrabet/SKILL.md +10 -5
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
- package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
- package/skills/lovrabet/guides/troubleshooting.md +7 -1
- package/skills/lovrabet/references/instant-api-workflow.md +6 -2
- package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
- package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
- package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
- package/skills/lovrabet.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a67_0x45eaf1=a67_0x182b;(function(_0x4f4dda,_0x422431){const _0x3a54cb=a67_0x182b,_0x40fce4=_0x4f4dda();while(!![]){try{const _0x109385=parseInt(_0x3a54cb(0xa5))/0x1*(parseInt(_0x3a54cb(0xac))/0x2)+parseInt(_0x3a54cb(0x9d))/0x3*(-parseInt(_0x3a54cb(0xa9))/0x4)+parseInt(_0x3a54cb(0xb8))/0x5*(parseInt(_0x3a54cb(0xb4))/0x6)+parseInt(_0x3a54cb(0x97))/0x7*(-parseInt(_0x3a54cb(0xa1))/0x8)+-parseInt(_0x3a54cb(0xae))/0x9+parseInt(_0x3a54cb(0xa2))/0xa*(-parseInt(_0x3a54cb(0xa7))/0xb)+parseInt(_0x3a54cb(0x96))/0xc;if(_0x109385===_0x422431)break;else _0x40fce4['push'](_0x40fce4['shift']());}catch(_0xc916d2){_0x40fce4['push'](_0x40fce4['shift']());}}}(a67_0xe9c8,0xb65f0));import{getRuntimeSkillVersionDiagram,putRuntimeSkillVersionDiagram,validateRuntimeSkillVersionDiagram}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{readRequiredSkillDiagram}from'../diagram.js';import{DIAGRAM_FILE_FLAG,DIAGRAM_SCOPE_FLAG,DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,SOURCE_FINGERPRINT_FLAG}from'../flags.js';const TARGET_FLAGS=[DIAGRAM_SKILL_CODE_FLAG,DIAGRAM_VERSION_FLAG,DIAGRAM_SCOPE_FLAG],WRITE_FLAGS=[...TARGET_FLAGS,SOURCE_FINGERPRINT_FLAG,EXPECTED_DIAGRAM_REVISION_FLAG,DIAGRAM_FILE_FLAG];function readDiagramTarget(_0x15cb9a){const _0x5b2968=a67_0x182b,_0xf4e9eb=_0x15cb9a[_0x5b2968(0xa8)](_0x5b2968(0xa0))[_0x5b2968(0x94)](),_0x244c35=_0x15cb9a[_0x5b2968(0xa8)](_0x5b2968(0x95))[_0x5b2968(0x94)](),_0x111076=_0x15cb9a['str'](_0x5b2968(0x9e));if(!_0xf4e9eb||!_0x244c35||_0x111076!==_0x5b2968(0x91)&&_0x111076!==_0x5b2968(0xbc))throw CliErrors[_0x5b2968(0x98)](_0x5b2968(0x99));return{'skillCode':_0xf4e9eb,'version':_0x244c35,'scope':_0x111076};}function a67_0xe9c8(){const _0x59d9f5=['Validate\x20a\x20Mermaid\x20diagram\x20replacement\x20for\x20one\x20exact\x20Skill\x20version','trim','version','32597268AnCwot','138922ZbAEjF','validation','--skill-code,\x20--version,\x20and\x20--scope\x20personal|company\x20are\x20required.','expectedDiagramRevision','source-fingerprint','unchanged','15RlTvIb','scope','Skill\x20diagram\x20for\x20','skill-code','544tyHJQm','20PYRkay','expected-diagram-revision','--expected-diagram-revision\x20must\x20be\x20a\x20non-negative\x20integer.','235149qsNuhC','diagram-show','5175995euSnNh','str','665404MRiUMZ','skillCode','\x20is\x20unchanged.','6RRqDft','\x20Skill\x20diagram\x20for\x20','4484295WegupJ','No\x20Skill\x20diagram\x20is\x20stored\x20for\x20','write','--source-fingerprint\x20must\x20be\x20lowercase\x20sha256:<64\x20hex\x20characters>.','test','skill','6HhJDtk','read','Created','Show\x20the\x20current\x20Mermaid\x20diagram\x20for\x20one\x20exact\x20Skill\x20version','4728670pCQmjx','Creates\x20or\x20replaces\x20a\x20Mermaid\x20diagram\x20for\x20an\x20exact\x20Skill\x20version.\x20The\x20write\x20is\x20rejected\x20if\x20the\x20server\x20version\x20has\x20changed.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20diagram\x20body.','found',';\x20first\x20write\x20expects\x20revision\x20','company','action','created','diagram-validate','appCode','diagram-push','personal','num'];a67_0xe9c8=function(){return _0x59d9f5;};return a67_0xe9c8();}function a67_0x182b(_0x21fe1c,_0x3dc7c9){_0x21fe1c=_0x21fe1c-0x8d;const _0xe9c882=a67_0xe9c8();let _0x182bb4=_0xe9c882[_0x21fe1c];return _0x182bb4;}async function readDiagramWriteInput(_0x370499){const _0x3292cf=a67_0x182b,_0x575bdb=_0x370499[_0x3292cf(0x92)](_0x3292cf(0xa3)),_0x130ab6=_0x370499[_0x3292cf(0xa8)](_0x3292cf(0x9b))['trim']();if(!Number['isInteger'](_0x575bdb)||_0x575bdb<0x0)throw CliErrors[_0x3292cf(0x98)](_0x3292cf(0xa4));if(!/^sha256:[0-9a-f]{64}$/[_0x3292cf(0xb2)](_0x130ab6))throw CliErrors[_0x3292cf(0x98)](_0x3292cf(0xb1));return{'expectedDiagramRevision':_0x575bdb,'sourceFingerprint':_0x130ab6,'diagram':await readRequiredSkillDiagram(_0x370499[_0x3292cf(0xa8)]('diagram-file'))};}export const diagramValidateCommand={'service':'skill','command':a67_0x45eaf1(0x8e),'description':a67_0x45eaf1(0x93),'risk':a67_0x45eaf1(0xb5),'flags':WRITE_FLAGS,async 'execute'(_0x482fb7){const _0x449131=a67_0x45eaf1,_0x4e4996=readDiagramTarget(_0x482fb7),_0x70fad8=await validateRuntimeSkillVersionDiagram(_0x482fb7[_0x449131(0x8f)],_0x4e4996['skillCode'],_0x4e4996[_0x449131(0x95)],_0x4e4996[_0x449131(0x9e)],await readDiagramWriteInput(_0x482fb7));return{'ok':!![],'data':_0x70fad8,'message':'Skill\x20diagram\x20validation\x20passed\x20for\x20'+_0x4e4996[_0x449131(0xaa)]+'@'+_0x4e4996[_0x449131(0x95)]+'.'};}};export const diagramPushCommand={'service':a67_0x45eaf1(0xb3),'command':a67_0x45eaf1(0x90),'description':'Create\x20or\x20replace\x20a\x20Mermaid\x20diagram\x20for\x20a\x20specific\x20Skill\x20version','risk':a67_0x45eaf1(0xb0),'confirmationDescription':a67_0x45eaf1(0xb9),'flags':WRITE_FLAGS,async 'execute'(_0x1b27b4){const _0x132324=a67_0x45eaf1,_0x2f5c63=readDiagramTarget(_0x1b27b4),_0x203b8d=await putRuntimeSkillVersionDiagram(_0x1b27b4[_0x132324(0x8f)],_0x2f5c63[_0x132324(0xaa)],_0x2f5c63[_0x132324(0x95)],_0x2f5c63[_0x132324(0x9e)],await readDiagramWriteInput(_0x1b27b4));return{'ok':!![],'data':_0x203b8d,'message':_0x203b8d[_0x132324(0xbd)]===_0x132324(0x9c)?_0x132324(0x9f)+_0x2f5c63[_0x132324(0xaa)]+'@'+_0x2f5c63[_0x132324(0x95)]+_0x132324(0xab):(_0x203b8d[_0x132324(0xbd)]===_0x132324(0x8d)?_0x132324(0xb6):'Updated')+_0x132324(0xad)+_0x2f5c63[_0x132324(0xaa)]+'@'+_0x2f5c63[_0x132324(0x95)]+'.'};}};export const diagramShowCommand={'service':'skill','command':a67_0x45eaf1(0xa6),'description':a67_0x45eaf1(0xb7),'risk':a67_0x45eaf1(0xb5),'flags':TARGET_FLAGS,async 'execute'(_0x433449){const _0x4126a1=a67_0x45eaf1,_0x770b7e=readDiagramTarget(_0x433449),_0x24cc08=await getRuntimeSkillVersionDiagram(_0x433449['appCode'],_0x770b7e[_0x4126a1(0xaa)],_0x770b7e[_0x4126a1(0x95)],_0x770b7e[_0x4126a1(0x9e)]);return{'ok':!![],'data':_0x24cc08,'message':_0x24cc08[_0x4126a1(0xba)]?'Found\x20Skill\x20diagram\x20for\x20'+_0x770b7e['skillCode']+'@'+_0x770b7e[_0x4126a1(0x95)]+';\x20next\x20write\x20expects\x20revision\x20'+_0x24cc08[_0x4126a1(0x9a)]+'.':_0x4126a1(0xaf)+_0x770b7e[_0x4126a1(0xaa)]+'@'+_0x770b7e[_0x4126a1(0x95)]+_0x4126a1(0xbb)+_0x24cc08[_0x4126a1(0x9a)]+'.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4c7eff=a68_0x5b8d;function a68_0x5b8d(_0x498053,_0xf92bc8){_0x498053=_0x498053-0x6d;const _0xed2d29=a68_0xed2d();let _0x5b8d4b=_0xed2d29[_0x498053];return _0x5b8d4b;}(function(_0x3d9d3e,_0x11caf4){const _0x2d8c31=a68_0x5b8d,_0x232aa9=_0x3d9d3e();while(!![]){try{const _0x4ab863=-parseInt(_0x2d8c31(0x70))/0x1*(parseInt(_0x2d8c31(0x83))/0x2)+parseInt(_0x2d8c31(0x8d))/0x3+-parseInt(_0x2d8c31(0x84))/0x4*(parseInt(_0x2d8c31(0x71))/0x5)+-parseInt(_0x2d8c31(0x77))/0x6*(parseInt(_0x2d8c31(0x6d))/0x7)+-parseInt(_0x2d8c31(0x6e))/0x8*(-parseInt(_0x2d8c31(0x7b))/0x9)+-parseInt(_0x2d8c31(0x99))/0xa*(-parseInt(_0x2d8c31(0x8a))/0xb)+-parseInt(_0x2d8c31(0x91))/0xc*(-parseInt(_0x2d8c31(0x9b))/0xd);if(_0x4ab863===_0x11caf4)break;else _0x232aa9['push'](_0x232aa9['shift']());}catch(_0x54fbd4){_0x232aa9['push'](_0x232aa9['shift']());}}}(a68_0xed2d,0x3381e));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG,SCOPE_FLAG}from'../flags.js';import{normalizeSyncScopes}from'../scopes.js';function a68_0xed2d(){const _0x2ea3f5=['removed','skillRoots','skill','11wqBkmv','authRequired','accessKey','877182jyEoyN','force','reduce','scope','734100LsmxqE','all','trim','../../../core/api-client.js','min','install','includes','production','570730rxxgja','global','117vMlSKK','1025066SMHdvs','3072eMaaoL','company','8860HRNrRm','1630jYszDv','str','filter','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','skillCode','length','12fYMczO','unchanged','map','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','1737KPsaYq','personal','Installed\x20','appCode','version','project','bool','action','86oRXXcv','1096ZPHAqA','\x20company\x20Skill(s).','read'];a68_0xed2d=function(){return _0x2ea3f5;};return a68_0xed2d();}import{summarizeRuntimeSkill}from'../summary.js';const PACKAGE_DOWNLOAD_CONCURRENCY=0x4;export const installCommand={'service':a68_0x4c7eff(0x89),'command':a68_0x4c7eff(0x96),'description':a68_0x4c7eff(0x74),'risk':a68_0x4c7eff(0x86),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG,FORCE_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x31cd9c){return syncRuntimeSkills(_0x31cd9c);}};async function syncRuntimeSkills(_0x1aaf72){const _0x576fb1=a68_0x4c7eff,{downloadRuntimeSkillPackage:_0x415da7,listRuntimeSkills:_0x44921d}=await import(_0x576fb1(0x94)),{linkEffectiveRuntimeSkills:_0x8c9a96,materializeRuntimeSkill:_0x253798,pruneStaleRuntimeSkillCache:_0x99b40f,pruneStaleRuntimeSkillLinks:_0x3389c5,resolveRuntimeSkillInstallTarget:_0x5c0940,reuseMaterializedRuntimeSkill:_0x4cd3a2}=await import('../../../skills/runtime-skill-sync.js'),_0xe04188=_0x1aaf72[_0x576fb1(0x72)]('code'),_0x3e010f=normalizeSyncScopes(_0x1aaf72[_0x576fb1(0x72)](_0x576fb1(0x90))),_0x21c545=_0x1aaf72['envName']??_0x576fb1(0x98),_0x1c8c45=_0x1aaf72[_0x576fb1(0x8c)],_0x481fe6=_0x1aaf72['bool'](_0x576fb1(0x8e));if(!_0x1c8c45)throw CliErrors[_0x576fb1(0x8b)](_0x576fb1(0x7a));const _0x3ea721=_0x5c0940(_0x1aaf72[_0x576fb1(0x7e)],_0x1aaf72[_0x576fb1(0x81)]('project')?_0x576fb1(0x80):_0x576fb1(0x9a)),_0x178dc5=_0x5c0940(_0x1aaf72[_0x576fb1(0x7e)],_0x3ea721[_0x576fb1(0x90)]==='project'?_0x576fb1(0x9a):_0x576fb1(0x80)),_0x5a117f=await _0x44921d({'appCode':_0x1aaf72[_0x576fb1(0x7e)],'scope':_0x3e010f['length']===0x1?_0x3e010f[0x0]:_0x576fb1(0x92),'code':_0xe04188[_0x576fb1(0x93)]()||undefined}),_0x3aaadf=_0x3e010f[_0x576fb1(0x97)]('personal')?_0x5a117f[_0x576fb1(0x7c)]:[],_0x21208a=_0x3e010f[_0x576fb1(0x97)](_0x576fb1(0x6f))?_0x5a117f[_0x576fb1(0x6f)]:[],_0x25bb4d=new Set([..._0x3aaadf[_0x576fb1(0x79)](_0xe45b91=>_0xe45b91[_0x576fb1(0x75)]?.[_0x576fb1(0x93)]())[_0x576fb1(0x73)](_0x15c9bb=>Boolean(_0x15c9bb)),..._0x21208a[_0x576fb1(0x79)](_0x155c5c=>_0x155c5c[_0x576fb1(0x75)]?.['trim']())[_0x576fb1(0x73)](_0x36dde1=>Boolean(_0x36dde1))]),_0x270e02=_0xe04188[_0x576fb1(0x93)]()?[_0xe04188[_0x576fb1(0x93)]()]:undefined,_0xc8034b=_0x3e010f[_0x576fb1(0x76)]===0x2&&_0x3e010f[_0x576fb1(0x97)](_0x576fb1(0x7c))&&_0x3e010f['includes'](_0x576fb1(0x6f)),_0x3aa0d5=_0xc8034b?_0x3389c5(_0x3ea721,_0x25bb4d,_0x270e02):[],_0x19c2bf=_0x99b40f({'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x576fb1(0x7e)],'activeSkillCodes':_0x25bb4d,'pruneSkillCodes':_0x270e02,'scopes':_0x3e010f,'protectedLinkRoots':_0x178dc5[_0x576fb1(0x88)]}),_0x5abeb0=[..._0x3aaadf['map'](_0x4534cc=>({'skill':_0x4534cc,'scope':_0x576fb1(0x7c)})),..._0x21208a['map'](_0x42b5eb=>({'skill':_0x42b5eb,'scope':_0x576fb1(0x6f)}))],_0x3508f2=await mapConcurrent(_0x5abeb0,PACKAGE_DOWNLOAD_CONCURRENCY,async({skill:_0x4bc274,scope:_0x41c899})=>{const _0x4b248d=_0x576fb1,_0xc340dc=_0x4cd3a2(_0x4bc274,_0x41c899,{'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x4b248d(0x7e)]});if(_0xc340dc)return _0xc340dc;return _0x253798(_0x4bc274,_0x41c899,{'env':_0x21c545,'accessKey':_0x1c8c45,'appCode':_0x1aaf72[_0x4b248d(0x7e)],'force':_0x481fe6,'packageBytes':await downloadSkillPackage(_0x4bc274,_0x41c899,_0x1aaf72[_0x4b248d(0x7e)],_0x415da7)});}),_0x27f6c8=_0x8c9a96(_0x3508f2,_0x3ea721),_0x5a1477=countLinkActions(_0x27f6c8);return{'ok':!![],'data':{'appCode':_0x1aaf72[_0x576fb1(0x7e)],..._0x3ea721['scope']===_0x576fb1(0x80)?{'installTarget':{'scope':_0x3ea721[_0x576fb1(0x90)],'skillRoots':[..._0x3ea721['skillRoots']]}}:{},'personal':_0x3aaadf[_0x576fb1(0x76)],'company':_0x21208a['length'],'materialized':_0x3508f2['length'],'links':{'total':_0x27f6c8[_0x576fb1(0x76)],'created':_0x5a1477['created']??0x0,'updated':_0x5a1477['updated']??0x0,'unchanged':_0x5a1477[_0x576fb1(0x78)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x3aa0d5[_0x576fb1(0x73)](_0x5be469=>_0x5be469[_0x576fb1(0x82)]==='removed')[_0x576fb1(0x76)],'cacheDirs':_0x19c2bf[_0x576fb1(0x73)](_0x4ded36=>_0x4ded36['action']===_0x576fb1(0x87))[_0x576fb1(0x76)],'skipped':[..._0x3aa0d5,..._0x19c2bf][_0x576fb1(0x73)](_0xb984f0=>_0xb984f0[_0x576fb1(0x82)]==='skipped')[_0x576fb1(0x76)]},'skills':{'personal':_0x3aaadf[_0x576fb1(0x79)](summarizeRuntimeSkill),'company':_0x21208a[_0x576fb1(0x79)](summarizeRuntimeSkill)}},'message':_0x576fb1(0x7d)+_0x3aaadf[_0x576fb1(0x76)]+'\x20personal\x20and\x20'+_0x21208a[_0x576fb1(0x76)]+_0x576fb1(0x85)};}async function mapConcurrent(_0x455daf,_0xd6142b,_0x2554a){const _0x15ce37=a68_0x4c7eff,_0x4a14e7=new Array(_0x455daf[_0x15ce37(0x76)]);let _0x2de4ab=0x0;const _0x39282b=Array['from']({'length':Math[_0x15ce37(0x95)](_0xd6142b,_0x455daf[_0x15ce37(0x76)])},async()=>{while(_0x2de4ab<_0x455daf['length']){const _0x5541bd=_0x2de4ab;_0x2de4ab+=0x1,_0x4a14e7[_0x5541bd]=await _0x2554a(_0x455daf[_0x5541bd]);}});return await Promise[_0x15ce37(0x92)](_0x39282b),_0x4a14e7;}async function downloadSkillPackage(_0x4f58d2,_0x17b2ae,_0x356fca,_0x47784b){const _0x27fa22=a68_0x4c7eff,_0x396aad=_0x4f58d2[_0x27fa22(0x7f)]?.[_0x27fa22(0x93)]();return _0x396aad?_0x47784b(_0x17b2ae,_0x4f58d2[_0x27fa22(0x75)],_0x356fca,_0x396aad):_0x47784b(_0x17b2ae,_0x4f58d2['skillCode'],_0x356fca);}function countLinkActions(_0x2046fa){const _0x1448f8=a68_0x4c7eff;return _0x2046fa[_0x1448f8(0x8f)]((_0xa531a3,_0x5d7881)=>{const _0x4a99b1=_0x1448f8;return _0xa531a3[_0x5d7881['action']]=(_0xa531a3[_0x5d7881[_0x4a99b1(0x82)]]??0x0)+0x1,_0xa531a3;},{});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a69_0x865bd8=a69_0x3224;(function(_0x13f9f6,_0x464f8a){const _0x1d7c9c=a69_0x3224,_0x16979f=_0x13f9f6();while(!![]){try{const _0x5ea0bc=parseInt(_0x1d7c9c(0x8f))/0x1+parseInt(_0x1d7c9c(0x90))/0x2*(-parseInt(_0x1d7c9c(0x8a))/0x3)+-parseInt(_0x1d7c9c(0x97))/0x4+parseInt(_0x1d7c9c(0x86))/0x5+-parseInt(_0x1d7c9c(0x98))/0x6*(parseInt(_0x1d7c9c(0xa1))/0x7)+parseInt(_0x1d7c9c(0xa6))/0x8*(parseInt(_0x1d7c9c(0x8e))/0x9)+-parseInt(_0x1d7c9c(0xa4))/0xa*(-parseInt(_0x1d7c9c(0xa7))/0xb);if(_0x5ea0bc===_0x464f8a)break;else _0x16979f['push'](_0x16979f['shift']());}catch(_0x4081f3){_0x16979f['push'](_0x16979f['shift']());}}}(a69_0x2507,0x82b5b));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG}from'../flags.js';function a69_0x3224(_0x481d5c,_0x44030e){_0x481d5c=_0x481d5c-0x86;const _0x2507b2=a69_0x2507();let _0x322418=_0x2507b2[_0x481d5c];return _0x322418;}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a69_0x865bd8(0x99),'command':'list','description':a69_0x865bd8(0x92),'risk':a69_0x865bd8(0x9f),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG,PROJECT_TARGET_FLAG],async 'execute'(_0x454920){const _0x34966e=a69_0x865bd8,_0x3c9f94=_0x454920[_0x34966e(0x91)]('code'),_0x4d63dd=normalizeListScope(_0x454920[_0x34966e(0x91)](_0x34966e(0x9a)));if(_0x454920['bool'](_0x34966e(0x8d))){const _0x25b504=_0x454920['accessKey'];if(!_0x25b504)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0xe7978f,resolveRuntimeSkillInstallTarget:_0x2f2cf8}=await import(_0x34966e(0x89)),_0x1c8f8d=_0x2f2cf8(_0x454920[_0x34966e(0xa2)],_0x454920[_0x34966e(0x9d)](_0x34966e(0x93))?'project':_0x34966e(0x95)),_0x50367a=_0xe7978f({'env':_0x454920[_0x34966e(0x9b)]??'production','accessKey':_0x25b504,'appCode':_0x454920[_0x34966e(0xa2)],'scopes':listScopeToRuntimeScopes(_0x4d63dd),'code':_0x3c9f94[_0x34966e(0xa0)]()||undefined},_0x1c8f8d),_0x59e3e0=groupLocalRuntimeSkills(_0x50367a);return{'ok':!![],'data':{'appCode':_0x454920[_0x34966e(0xa2)],'source':_0x34966e(0x8d),..._0x1c8f8d[_0x34966e(0x9a)]==='project'?{'installScope':_0x1c8f8d['scope']}:{},'scope':_0x4d63dd,'total':_0x50367a[_0x34966e(0x9e)],'personal':_0x59e3e0[_0x34966e(0x96)][_0x34966e(0x9e)],'company':_0x59e3e0[_0x34966e(0x94)]['length'],'items':_0x50367a[_0x34966e(0x9c)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x59e3e0['personal']['map'](summarizeLocalRuntimeSkill),'company':_0x59e3e0[_0x34966e(0x94)][_0x34966e(0x9c)](summarizeLocalRuntimeSkill)}},'message':_0x34966e(0xa5)+_0x50367a['length']+_0x34966e(0x87)};}const {listRuntimeSkills:_0x5a6c85}=await import(_0x34966e(0xa8)),_0x351ee1=await _0x5a6c85({'appCode':_0x454920[_0x34966e(0xa2)],'scope':listScopeToRemoteScope(_0x4d63dd),'code':_0x3c9f94['trim']()||undefined}),_0xcf2faa=shouldListScope(_0x4d63dd,_0x34966e(0x96))?_0x351ee1['personal']??[]:[],_0x5413da=shouldListScope(_0x4d63dd,_0x34966e(0x94))?_0x351ee1[_0x34966e(0x94)]??[]:[],_0x335ea4=[..._0xcf2faa,..._0x5413da];return{'ok':!![],'data':{'appCode':_0x454920['appCode'],'source':_0x34966e(0x8c),'scope':_0x4d63dd,'total':_0x335ea4['length'],'personal':_0xcf2faa[_0x34966e(0x9e)],'company':_0x5413da[_0x34966e(0x9e)],'items':_0x335ea4['map'](summarizeRuntimeSkill),'skills':{'personal':_0xcf2faa[_0x34966e(0x9c)](summarizeRuntimeSkill),'company':_0x5413da[_0x34966e(0x9c)](summarizeRuntimeSkill)}},'message':_0x34966e(0xa5)+_0x335ea4[_0x34966e(0x9e)]+_0x34966e(0xa3)};}};function groupLocalRuntimeSkills(_0x1bc773){const _0xbf4692=a69_0x865bd8;return{'personal':_0x1bc773[_0xbf4692(0x88)](_0xccbc43=>_0xccbc43[_0xbf4692(0x9a)]==='personal'),'company':_0x1bc773[_0xbf4692(0x88)](_0x30a804=>_0x30a804[_0xbf4692(0x9a)]===_0xbf4692(0x94)),'builtin':_0x1bc773['filter'](_0x474853=>_0x474853[_0xbf4692(0x9a)]===_0xbf4692(0x8b))};}function a69_0x2507(){const _0x261588=['7hmINwa','appCode','\x20remote\x20Skill(s).','851870TJOuQO','Listed\x20','80OodMOe','110UyrWYs','../../../core/api-client.js','614880cWlRUg','\x20local\x20Skill(s).','filter','../../../skills/runtime-skill-sync.js','717jsYSpP','builtin','remote','local','520119oHbkYH','228356UgqYdh','2264DfiKUA','str','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','project','company','global','personal','3101024PNdRtn','1199526VkfINF','skill','scope','envName','map','bool','length','read','trim'];a69_0x2507=function(){return _0x261588;};return a69_0x2507();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x422ac7=a70_0x1ac6;(function(_0x1246f5,_0x103f7f){const _0x1b5ba8=a70_0x1ac6,_0x1f99fa=_0x1246f5();while(!![]){try{const _0x5791f8=-parseInt(_0x1b5ba8(0x179))/0x1+-parseInt(_0x1b5ba8(0x174))/0x2+parseInt(_0x1b5ba8(0x172))/0x3*(-parseInt(_0x1b5ba8(0x177))/0x4)+parseInt(_0x1b5ba8(0x17b))/0x5+parseInt(_0x1b5ba8(0x175))/0x6+-parseInt(_0x1b5ba8(0x178))/0x7*(-parseInt(_0x1b5ba8(0x173))/0x8)+parseInt(_0x1b5ba8(0x17c))/0x9*(parseInt(_0x1b5ba8(0x17a))/0xa);if(_0x5791f8===_0x103f7f)break;else _0x1f99fa['push'](_0x1f99fa['shift']());}catch(_0x53f91e){_0x1f99fa['push'](_0x1f99fa['shift']());}}}(a70_0x70fd,0x74acb));function a70_0x1ac6(_0x1620d8,_0x3ad845){_0x1620d8=_0x1620d8-0x170;const _0x70fd06=a70_0x70fd();let _0x1ac6d6=_0x70fd06[_0x1620d8];return _0x1ac6d6;}import{CONFIRM_WARNINGS_FLAG,DIAGRAM_FILE_FLAG,DIR_FLAG,PUSH_SCOPE_FLAG}from'../flags.js';import{skillPushDryRun,skillPushExecute}from'../push-execute.js';function a70_0x70fd(){const _0x588996=['3222815CoqgAg','1413moyHCV','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20scope,\x20or\x20submit\x20a\x20company-scope\x20version\x20for\x20review','write','150CSLorK','101856ExPauc','1408072wnNjJj','1518774uPzKkN','skill','22364RrQUVG','63pBWkZK','133422uQvLhr','37110PZlqrz'];a70_0x70fd=function(){return _0x588996;};return a70_0x70fd();}export const pushCommand={'service':a70_0x422ac7(0x176),'command':'push','description':a70_0x422ac7(0x170),'risk':a70_0x422ac7(0x171),'confirmationDescription':'Reads\x20local\x20Skill\x20content:\x20personal\x20scope\x20is\x20saved\x20immediately;\x20company\x20scope\x20submits\x20a\x20new\x20version\x20for\x20review.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20directory\x20path\x20or\x20Skill\x20body.','flags':[DIR_FLAG,DIAGRAM_FILE_FLAG,PUSH_SCOPE_FLAG,CONFIRM_WARNINGS_FLAG],'dryRun':skillPushDryRun,'execute':skillPushExecute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a71_0x25ee(){const _0x57095f=['strict','4352848bjFeEy','604613YCshrf','errors','1127493PVcGht','98YSHYDC','Skill\x20validation\x20passed.','1630275MqdVUP','warnings','read','267360glexAA','dir','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','899642KRmIuz','5361813ViSAYQ','skill','4aKaeRw','type'];a71_0x25ee=function(){return _0x57095f;};return a71_0x25ee();}function a71_0x4336(_0x17c839,_0x16bc6c){_0x17c839=_0x17c839-0x160;const _0x25ee95=a71_0x25ee();let _0x4336c3=_0x25ee95[_0x17c839];return _0x4336c3;}const a71_0x41bcbe=a71_0x4336;(function(_0x5f46e3,_0x534649){const _0x2ade78=a71_0x4336,_0x309c7c=_0x5f46e3();while(!![]){try{const _0x11dd47=parseInt(_0x2ade78(0x164))/0x1+-parseInt(_0x2ade78(0x16f))/0x2+parseInt(_0x2ade78(0x166))/0x3+parseInt(_0x2ade78(0x160))/0x4*(parseInt(_0x2ade78(0x169))/0x5)+-parseInt(_0x2ade78(0x16c))/0x6*(-parseInt(_0x2ade78(0x167))/0x7)+-parseInt(_0x2ade78(0x163))/0x8+-parseInt(_0x2ade78(0x170))/0x9;if(_0x11dd47===_0x534649)break;else _0x309c7c['push'](_0x309c7c['shift']());}catch(_0x32abbc){_0x309c7c['push'](_0x309c7c['shift']());}}}(a71_0x25ee,0x532af));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a71_0x41bcbe(0x171),'command':'validate','description':a71_0x41bcbe(0x16e),'risk':a71_0x41bcbe(0x16b),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x32cf73){const _0x509153=a71_0x41bcbe,_0x4d6b1c=_0x32cf73['bool'](_0x509153(0x162)),_0xdd6090=validateSkillDirectory(_0x32cf73['str']('dir'),{'strict':_0x4d6b1c});return throwIfSkillValidationFailed(_0xdd6090,_0x4d6b1c),{'ok':!![],'data':{'dir':_0xdd6090[_0x509153(0x16d)],'type':_0xdd6090[_0x509153(0x161)],'errors':_0xdd6090[_0x509153(0x165)],'warnings':_0xdd6090[_0x509153(0x16a)]},'message':_0x509153(0x168)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18223d,_0x18e9fa){const _0x2491b2=a72_0x14f1,_0x1bd1fa=_0x18223d();while(!![]){try{const _0xd0bd48=-parseInt(_0x2491b2(0x8b))/0x1*(-parseInt(_0x2491b2(0x7d))/0x2)+parseInt(_0x2491b2(0x82))/0x3*(parseInt(_0x2491b2(0x86))/0x4)+parseInt(_0x2491b2(0x77))/0x5+-parseInt(_0x2491b2(0x84))/0x6+-parseInt(_0x2491b2(0x8c))/0x7*(-parseInt(_0x2491b2(0x7b))/0x8)+-parseInt(_0x2491b2(0x8e))/0x9*(parseInt(_0x2491b2(0x87))/0xa)+-parseInt(_0x2491b2(0x8f))/0xb;if(_0xd0bd48===_0x18e9fa)break;else _0x1bd1fa['push'](_0x1bd1fa['shift']());}catch(_0x33b40a){_0x1bd1fa['push'](_0x1bd1fa['shift']());}}}(a72_0x8d2d,0x9dece));function a72_0x14f1(_0x924209,_0x55130a){_0x924209=_0x924209-0x77;const _0x8d2d59=a72_0x8d2d();let _0x14f172=_0x8d2d59[_0x924209];return _0x14f172;}function a72_0x8d2d(){const _0x4fd4ea=['--diagram-file\x20is\x20required\x20when\x20publishing\x20a\x20Skill\x20version.','734718LyexTF','mermaid','6418218RYeFAi','Generate\x20a\x20Mermaid\x20flowchart\x20and\x20pass\x20--diagram-file\x20<path>,\x20or\x20use\x20--diagram-file\x20-\x20for\x20standard\x20input.','16hJQchb','190vxHMNJ','isFile','defineProperties','utf8','1076017eAtfXv','914347oaiPmu','validation','294633vhgFWI','4295610xYlwwz','Unable\x20to\x20read\x20Mermaid\x20flowchart\x20from\x20standard\x20input.','2714080NotCUU','Fix\x20the\x20Mermaid\x20syntax\x20reported\x20by\x20your\x20editor\x20or\x20preview\x20tool,\x20then\x20retry\x20with\x20the\x20same\x20file.','Mermaid\x20flowchart\x20file\x20not\x20found:\x20','diagram','8YJVNub','Mermaid\x20syntax\x20validation\x20failed.','2AEbKwP','window','default','document'];a72_0x8d2d=function(){return _0x4fd4ea;};return a72_0x8d2d();}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(_0x4def05){const _0x15126f=a72_0x14f1;return(await readRequiredSkillDiagramInput(_0x4def05))[_0x15126f(0x7a)];}export async function readRequiredSkillDiagramInput(_0x31b869){const _0x2330b0=a72_0x14f1,_0x58514f=_0x31b869['trim']();if(!_0x58514f)throw CliErrors[_0x2330b0(0x8d)](_0x2330b0(0x81),_0x2330b0(0x85));let _0x22573f,_0x476e06;if(_0x58514f==='-')try{_0x22573f=readFileSync(0x0,_0x2330b0(0x8a));}catch{throw CliErrors['validation'](_0x2330b0(0x90));}else{const _0x1c73a0=resolve(_0x58514f);if(!existsSync(_0x1c73a0))throw CliErrors[_0x2330b0(0x8d)](_0x2330b0(0x79)+_0x1c73a0);if(!statSync(_0x1c73a0)[_0x2330b0(0x88)]())throw CliErrors[_0x2330b0(0x8d)]('Mermaid\x20flowchart\x20path\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x1c73a0);_0x476e06=realpathSync(_0x1c73a0),_0x22573f=readFileSync(_0x476e06,_0x2330b0(0x8a));}return{'diagram':{'schemaVersion':0x1,'mermaid':await validateAndCanonicalizeMermaid(_0x22573f)},'sourceFilePath':_0x476e06};}export async function validateAndCanonicalizeMermaid(_0x4d912d){const _0x54e6b0=_0x4d912d['replace'](/\r\n/g,'\x0a')['replace'](/\r/g,'\x0a')['replace'](/\n+$/,'')+'\x0a';try{const _0x400342=await loadMermaidApi();await _0x400342['parse'](_0x54e6b0);}catch{throw diagramValidationError();}return _0x54e6b0;}function loadMermaidApi(){return mermaidApiPromise??=((async()=>{const _0x57f515=a72_0x14f1;if(!(_0x57f515(0x7e)in globalThis)||!(_0x57f515(0x80)in globalThis)){const _0x359f19=new JSDOM('');Object[_0x57f515(0x89)](globalThis,{'window':{'configurable':!![],'value':_0x359f19[_0x57f515(0x7e)]},'document':{'configurable':!![],'value':_0x359f19[_0x57f515(0x7e)][_0x57f515(0x80)]}});}return(await import(_0x57f515(0x83)))[_0x57f515(0x7f)];})()),mermaidApiPromise;}function diagramValidationError(){const _0x2522e8=a72_0x14f1;return CliErrors[_0x2522e8(0x8d)](_0x2522e8(0x7c),_0x2522e8(0x78));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x1a6639=a73_0x5da8;(function(_0x1245d5,_0x19f352){const _0x4ac37e=a73_0x5da8,_0x2d3a87=_0x1245d5();while(!![]){try{const _0x4303df=parseInt(_0x4ac37e(0xdd))/0x1*(parseInt(_0x4ac37e(0xe3))/0x2)+-parseInt(_0x4ac37e(0xde))/0x3*(-parseInt(_0x4ac37e(0xd1))/0x4)+-parseInt(_0x4ac37e(0xc6))/0x5+parseInt(_0x4ac37e(0xca))/0x6*(parseInt(_0x4ac37e(0xd9))/0x7)+-parseInt(_0x4ac37e(0xce))/0x8*(parseInt(_0x4ac37e(0xdf))/0x9)+-parseInt(_0x4ac37e(0xe0))/0xa*(-parseInt(_0x4ac37e(0xe5))/0xb)+-parseInt(_0x4ac37e(0xed))/0xc;if(_0x4303df===_0x19f352)break;else _0x2d3a87['push'](_0x2d3a87['shift']());}catch(_0x54b7be){_0x2d3a87['push'](_0x2d3a87['shift']());}}}(a73_0x320d,0xf047b));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a73_0x1a6639(0xc8),'type':'string','description':a73_0x1a6639(0xd0)};export const SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':[a73_0x1a6639(0xd8),a73_0x1a6639(0xd2),a73_0x1a6639(0xc9)]};export const PUSH_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xeb),'default':a73_0x1a6639(0xd2),'enum':[a73_0x1a6639(0xd2),'company']};export const LIST_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xda),'enum':[a73_0x1a6639(0xd8),a73_0x1a6639(0xd2),a73_0x1a6639(0xc9)]};export const LOCAL_FLAG={'name':a73_0x1a6639(0xc7),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xe9)};export const DIR_FLAG={'name':a73_0x1a6639(0xe7),'type':a73_0x1a6639(0xdc),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const DIAGRAM_FILE_FLAG={'name':a73_0x1a6639(0xe4),'type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xcd)};export const DIAGRAM_SKILL_CODE_FLAG={'name':a73_0x1a6639(0xd4),'type':a73_0x1a6639(0xdc),'required':!![],'description':'Exact\x20Skill\x20code\x20whose\x20version\x20diagram\x20is\x20being\x20managed'};export const DIAGRAM_VERSION_FLAG={'name':a73_0x1a6639(0xd6),'type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xcf)};export const DIAGRAM_SCOPE_FLAG={'name':a73_0x1a6639(0xef),'type':'string','required':!![],'enum':[a73_0x1a6639(0xd2),'company'],'description':a73_0x1a6639(0xe8)};export const SOURCE_FINGERPRINT_FLAG={'name':'source-fingerprint','type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xec),'pattern':{'regex':/^sha256:[0-9a-f]{64}$/,'description':a73_0x1a6639(0xd7)}};export const EXPECTED_DIAGRAM_REVISION_FLAG={'name':'expected-diagram-revision','type':a73_0x1a6639(0xdb),'required':!![],'description':'Expected\x20current\x20diagram\x20revision;\x20use\x200\x20for\x20the\x20first\x20diagram'};function a73_0x320d(){const _0x22c27e=['number','string','81762NnfMuE','583077ZADemZ','5338566FhkMcd','10eDcVxa','Overwrite\x20generated\x20or\x20CLI-managed\x20Skill\x20files\x20when\x20the\x20target\x20already\x20exists','Skill\x20template\x20type:\x20pass\x20read\x20or\x20write\x20explicitly\x20(omission\x20is\x20deprecated)','18DijFVX','diagram-file','1778161iFGccJ','boolean','dir','Exact\x20Skill\x20scope:\x20personal\x20or\x20company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','strict','Skill\x20push\x20target\x20scope:\x20personal\x20saves\x20immediately,\x20company\x20submits\x20a\x20new\x20version\x20for\x20review','Server-reported\x20SkillVersion\x20source\x20fingerprint','21525336WOJRIu','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','scope','Use\x20the\x20current\x20project\x27s\x20.agents/skills\x20instead\x20of\x20user-level\x20Agent\x20Skill\x20directories','772165SZHiOU','local','code','company','15150ckYxor','force','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','8RVwTfd','Exact\x20Skill\x20version\x20whose\x20diagram\x20is\x20being\x20managed','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','28TgvWdU','personal','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','skill-code','target','version','a\x20lowercase\x20sha256:<64\x20hex\x20characters>\x20fingerprint','all','3514dFKIaB','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company'];a73_0x320d=function(){return _0x22c27e;};return a73_0x320d();}export const CREATE_NAME_FLAG={'name':'name','type':a73_0x1a6639(0xdc),'required':!![],'description':a73_0x1a6639(0xee),'pattern':{'regex':SKILL_NAME_PATTERN,'description':'lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens'}};export const TYPE_FLAG={'name':'type','type':a73_0x1a6639(0xdc),'description':a73_0x1a6639(0xe2),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a73_0x1a6639(0xd5),'type':'string','description':a73_0x1a6639(0xcc),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a73_0x1a6639(0xcb),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xe1)};export const PROJECT_TARGET_FLAG={'name':'project','type':'boolean','description':a73_0x1a6639(0xc5)};export const CONFIRM_WARNINGS_FLAG={'name':'confirm-warnings','type':a73_0x1a6639(0xe6),'description':'Confirm\x20reviewed\x20personal\x20or\x20company\x20Skill\x20publish\x20warnings'};function a73_0x5da8(_0x3e65e0,_0x30daba){_0x3e65e0=_0x3e65e0-0xc5;const _0x320d6f=a73_0x320d();let _0x5da8ef=_0x320d6f[_0x3e65e0];return _0x5da8ef;}export const STRICT_FLAG={'name':a73_0x1a6639(0xea),'type':a73_0x1a6639(0xe6),'description':a73_0x1a6639(0xd3)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f60b8,_0x4a8e99){const _0x493a20=a74_0x5ef3,_0x2c310a=_0x4f60b8();while(!![]){try{const _0x383f63=parseInt(_0x493a20(0xbe))/0x1+-parseInt(_0x493a20(0xbd))/0x2*(parseInt(_0x493a20(0xbf))/0x3)+parseInt(_0x493a20(0xba))/0x4*(parseInt(_0x493a20(0xbc))/0x5)+parseInt(_0x493a20(0xb7))/0x6+parseInt(_0x493a20(0xb8))/0x7*(-parseInt(_0x493a20(0xb9))/0x8)+parseInt(_0x493a20(0xb6))/0x9+-parseInt(_0x493a20(0xbb))/0xa;if(_0x383f63===_0x4a8e99)break;else _0x2c310a['push'](_0x2c310a['shift']());}catch(_0x3b1d3f){_0x2c310a['push'](_0x2c310a['shift']());}}}(a74_0x2838,0x92dcc));function a74_0x5ef3(_0x14c779,_0x32c352){_0x14c779=_0x14c779-0xb6;const _0x283872=a74_0x2838();let _0x5ef3d3=_0x283872[_0x14c779];return _0x5ef3d3;}import{createCommand}from'./commands/create.js';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';function a74_0x2838(){const _0x53391b=['1193922gXFtnP','53809NLalBX','616CRSrmQ','417860aENpJN','2395020GrIsNd','35BrltRV','128218QCPJJO','764310WLprbs','33JMSGcr','3992364CClkXA'];a74_0x2838=function(){return _0x53391b;};return a74_0x2838();}export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand,diagramValidateCommand,diagramPushCommand,diagramShowCommand];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a75_0x1566(_0xbe1ead,_0x3111db){_0xbe1ead=_0xbe1ead-0x12f;var _0x4e8863=a75_0x4e88();var _0x1566fe=_0x4e8863[_0xbe1ead];return _0x1566fe;}(function(_0x995082,_0x4d5ecc){var _0xe9c102=a75_0x1566,_0x1c7da7=_0x995082();while(!![]){try{var _0x323727=parseInt(_0xe9c102(0x13b))/0x1+parseInt(_0xe9c102(0x140))/0x2*(-parseInt(_0xe9c102(0x13c))/0x3)+parseInt(_0xe9c102(0x132))/0x4*(parseInt(_0xe9c102(0x135))/0x5)+parseInt(_0xe9c102(0x131))/0x6+-parseInt(_0xe9c102(0x13a))/0x7+-parseInt(_0xe9c102(0x134))/0x8*(-parseInt(_0xe9c102(0x13f))/0x9)+-parseInt(_0xe9c102(0x138))/0xa;if(_0x323727===_0x4d5ecc)break;else _0x1c7da7['push'](_0x1c7da7['shift']());}catch(_0x174094){_0x1c7da7['push'](_0x1c7da7['shift']());}}}(a75_0x4e88,0xa6ea0));export function isPackageBackedManifest(_0x27a987){var _0x1f74fa=a75_0x1566;return!!_0x27a987&&typeof _0x27a987===_0x1f74fa(0x137)&&!Array[_0x1f74fa(0x13d)](_0x27a987)&&typeof _0x27a987['ossPath']===_0x1f74fa(0x139)&&_0x27a987[_0x1f74fa(0x130)][_0x1f74fa(0x133)]>0x0&&Array[_0x1f74fa(0x13d)](_0x27a987[_0x1f74fa(0x13e)]);}export function isMultiFileManifest(_0x42b6e7){var _0x5e8d42=a75_0x1566;return!!_0x42b6e7&&typeof _0x42b6e7==='object'&&!Array[_0x5e8d42(0x13d)](_0x42b6e7)&&Array['isArray'](_0x42b6e7[_0x5e8d42(0x13e)])&&_0x42b6e7[_0x5e8d42(0x13e)][_0x5e8d42(0x12f)](_0x426608=>_0x426608[_0x5e8d42(0x136)]!=='SKILL.md');}function a75_0x4e88(){var _0x40053d=['340414INvLib','115563mEqiTc','isArray','files','9xhFoie','12ouHyWq','some','ossPath','5577126poCgiv','472bTBpMD','length','502184WjQdcA','44535ctazWv','path','object','1764200VCojRK','string','9047556CLXNRN'];a75_0x4e88=function(){return _0x40053d;};return a75_0x4e88();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5ec581,_0x501945){const _0xb50e38=a75_0x1414,_0x4250fe=_0x5ec581();while(!![]){try{const _0x1d5ffd=-parseInt(_0xb50e38(0xd1))/0x1+parseInt(_0xb50e38(0xc7))/0x2*(-parseInt(_0xb50e38(0xc0))/0x3)+-parseInt(_0xb50e38(0xdd))/0x4+parseInt(_0xb50e38(0xae))/0x5+parseInt(_0xb50e38(0xb2))/0x6+-parseInt(_0xb50e38(0xd4))/0x7*(-parseInt(_0xb50e38(0xce))/0x8)+parseInt(_0xb50e38(0xac))/0x9*(-parseInt(_0xb50e38(0xde))/0xa);if(_0x1d5ffd===_0x501945)break;else _0x4250fe['push'](_0x4250fe['shift']());}catch(_0x25e5ca){_0x4250fe['push'](_0x4250fe['shift']());}}}(a75_0x490a,0x3dfed));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 a75_0x490a(){const _0x55b052=['warnings','confirm-warnings','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','(unknown)','Created\x20personal\x20Skill\x20','Personal','submitted','company','valid','str','publishInput','Submitted\x20company\x20Skill\x20','1782XzwEFB','\x20has\x20scope=\x22','\x20Skill\x20','diagramValidated','resolvedVersion','files','trim','370RwPFPP','savedSkill','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','personal','identical','appcode','existing','35080VnmYaL','appCode','POST','391636WRZnbX','skillCode','remoteForPreflight','553FjCRhy','PRIVATE','/api/cli/v1/skills/','bool','../../core/api-client.js','resolvedSlug','status','diagram-file','input','1033852JsYWmZ','50GJktUd','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Company','scope','authRequired','accessKey','confirmWarnings','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','../../skills/runtime-skill-sync.js','frontmatterDisplayName','131301DySLpN','payload','2191015qQYSvR','NAMESPACE_ONLY','dir','/publish/validate','1813494TLDtfz','version'];a75_0x490a=function(){return _0x55b052;};return a75_0x490a();}import{summarizeRuntimeSkill}from'./summary.js';import{readRequiredSkillDiagramInput}from'./diagram.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0xe76ca0){const _0x2d732a=a75_0x1414,{getRuntimeSkillByCode:_0x336bc0,validateRuntimeSkillPublish:_0x33f136}=await import(_0x2d732a(0xd8)),{readPushDirectory:_0x552c92,resolvePushDirectoryIdentity:_0xb5a5dd}=await import(_0x2d732a(0xe6));if(!_0xe76ca0[_0x2d732a(0xe3)])throw CliErrors['authRequired']();const _0x2a28a7=resolvePushScope(_0xe76ca0),_0x1fb5c3=validateSkillDirectory(_0xe76ca0[_0x2d732a(0xbd)](_0x2d732a(0xb0)));throwIfSkillValidationFailed(_0x1fb5c3);const {diagram:_0x13a117,sourceFilePath:_0x56233c}=await readRequiredSkillDiagramInput(_0xe76ca0[_0x2d732a(0xbd)]('diagram-file')),_0x16e2ac=diagramPackageExclusion(_0x56233c),_0x384f0d=_0xb5a5dd(_0x1fb5c3[_0x2d732a(0xb0)],_0xe76ca0['appCode'],remoteFirstMetadataOptions()),_0x3d59dd=await _0x336bc0(_0xe76ca0[_0x2d732a(0xcf)],_0x384f0d['skillCode']);throwIfBuiltinPushTarget(_0x3d59dd);if(_0x2a28a7===_0x2d732a(0xbb)){const _0x250f0a=_0x552c92(_0x1fb5c3['dir'],_0xe76ca0[_0x2d732a(0xcf)],{...remoteMissingCompanyReadOptions(),..._0x16e2ac}),_0x474e25=await _0x33f136(_0xe76ca0[_0x2d732a(0xcf)],withDiagram(_0x250f0a[_0x2d732a(0xdc)],_0x13a117),{'visibility':_0x2d732a(0xaf)});return{'method':'POST','url':_0x2d732a(0xd6)+_0xe76ca0['appCode']+_0x2d732a(0xb1),'body':{'skillCode':_0x250f0a['skillCode'],'visibility':_0x2d732a(0xaf),'valid':_0x474e25[_0x2d732a(0xbc)],'errors':_0x474e25['errors'],'warnings':_0x474e25['warnings'],'resolvedSlug':_0x474e25[_0x2d732a(0xd9)],'resolvedVersion':_0x474e25[_0x2d732a(0xc4)],'diagramValidated':_0x474e25[_0x2d732a(0xc3)]},'description':_0x2d732a(0xc9)};}if(_0x3d59dd&&_0x3d59dd['scope']!=='personal')throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x384f0d[_0x2d732a(0xd2)]+_0x2d732a(0xc1)+(_0x3d59dd[_0x2d732a(0xe1)]??'unknown')+'\x22.');const _0x549dcb=_0x552c92(_0x1fb5c3[_0x2d732a(0xb0)],_0xe76ca0[_0x2d732a(0xcf)],{..._0x3d59dd?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x16e2ac}),_0x57b042=await _0x33f136(_0xe76ca0[_0x2d732a(0xcf)],withDiagram(_0x549dcb[_0x2d732a(0xdc)],_0x13a117),{'visibility':_0x2d732a(0xd5)});return{'method':_0x2d732a(0xd0),'url':_0x2d732a(0xd6)+_0xe76ca0[_0x2d732a(0xcf)]+_0x2d732a(0xb1),'body':{'skillCode':_0x549dcb[_0x2d732a(0xd2)],'visibility':_0x2d732a(0xd5),'valid':_0x57b042[_0x2d732a(0xbc)],'errors':_0x57b042['errors'],'warnings':_0x57b042[_0x2d732a(0xb4)],'resolvedSlug':_0x57b042['resolvedSlug'],'resolvedVersion':_0x57b042[_0x2d732a(0xc4)],'diagramValidated':_0x57b042[_0x2d732a(0xc3)]},'description':_0x2d732a(0xe5)};}export async function skillPushExecute(_0x557d57){const _0x58b577=a75_0x1414,{createPersonalRuntimeSkill:_0x88ba68,downloadRuntimeSkillPackage:_0x2cbc60,getRuntimeSkillByCode:_0x49010c,publishCompanyRuntimeSkill:_0x315542,updatePersonalRuntimeSkill:_0x2c3560,validateRuntimeSkillPublish:_0x29f920}=await import(_0x58b577(0xd8)),{verifyRuntimeSkillPackage:_0x30e340,verifyRuntimeSkillBundle:_0xb3e9a2,readPushDirectory:_0x3d38ea,refreshPushDirectoryMetadataFromRemote:_0x3475f8,recordPushedRuntimeSkill:_0x3b9b86,resolvePushDirectoryIdentity:_0x1a786b}=await import('../../skills/runtime-skill-sync.js');if(!_0x557d57[_0x58b577(0xe3)])throw CliErrors[_0x58b577(0xe2)]();const _0x3b91c9=resolvePushScope(_0x557d57),_0x20e6c3=_0x557d57[_0x58b577(0xd7)](_0x58b577(0xb5))||_0x557d57[_0x58b577(0xd7)](_0x58b577(0xe4)),_0x3b90aa=validateSkillDirectory(_0x557d57[_0x58b577(0xbd)]('dir'));throwIfSkillValidationFailed(_0x3b90aa);const {diagram:_0x2064ba,sourceFilePath:_0x426a1b}=await readRequiredSkillDiagramInput(_0x557d57[_0x58b577(0xbd)](_0x58b577(0xdb))),_0xa1dcad=diagramPackageExclusion(_0x426a1b),_0x11c739=_0x3b90aa[_0x58b577(0xb0)];let _0x176cec;if(_0x3b91c9===_0x58b577(0xbb)){const _0x40ed80=_0x1a786b(_0x11c739,_0x557d57[_0x58b577(0xcf)],remoteFirstMetadataOptions()),_0x126210=await _0x49010c(_0x557d57[_0x58b577(0xcf)],_0x40ed80[_0x58b577(0xd2)]);throwIfBuiltinPushTarget(_0x126210);if(_0x126210)_0x3475f8(_0x11c739,_0x126210,_0x557d57[_0x58b577(0xcf)]);const _0x41a5b4=_0x3d38ea(_0x11c739,_0x557d57[_0x58b577(0xcf)],{..._0x126210?{'targetScope':_0x58b577(0xbb),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0xa1dcad});_0x176cec={'scope':_0x58b577(0xbb),'payload':_0x41a5b4,'publishInput':withDiagram(_0x41a5b4[_0x58b577(0xdc)],_0x2064ba),'remoteForPreflight':_0x126210,'warnings':[]};}else{const _0x3ab88e=_0x557d57[_0x58b577(0xbd)](_0x58b577(0xcc))[_0x58b577(0xc6)](),_0x3524a8=Boolean(_0x3ab88e),_0x322863=allowRetargetArgs(_0x3524a8),_0x42d8e5=_0x1a786b(_0x11c739,_0x557d57['appCode'],{...remoteFirstMetadataOptions(),..._0x322863[0x0]}),_0x5b9090=await _0x49010c(_0x557d57['appCode'],_0x42d8e5[_0x58b577(0xd2)]);throwIfBuiltinPushTarget(_0x5b9090);if(_0x5b9090){if(_0x5b9090['scope']!=='personal'){if(_0x3524a8)throw CliErrors['validation'](_0x58b577(0xb6)+_0x42d8e5[_0x58b577(0xd2)]+_0x58b577(0xc1)+(_0x5b9090[_0x58b577(0xe1)]??'unknown')+'\x22.');_0x3475f8(_0x11c739,_0x5b9090,_0x557d57[_0x58b577(0xcf)]);}else!_0x3524a8&&_0x3475f8(_0x11c739,_0x5b9090,_0x557d57[_0x58b577(0xcf)]);}const _0x1fd4c2=_0x3d38ea(_0x11c739,_0x557d57['appCode'],{..._0x5b9090?remotePersonalReadOptions(_0x3524a8,_0x322863[0x0]):remoteMissingPersonalReadOptions(_0x322863[0x0]),..._0xa1dcad}),_0x18300a=_0x5b9090?.[_0x58b577(0xe1)]===_0x58b577(0xca)&&_0x5b9090[_0x58b577(0xd2)]===_0x1fd4c2['skillCode']?_0x5b9090:undefined,_0x4962de=_0x3524a8&&_0x18300a?withRetargetExistingMetadata(_0x1fd4c2[_0x58b577(0xdc)],_0x18300a,{'preferInputSkillName':Boolean(_0x1fd4c2[_0x58b577(0xab)])}):_0x1fd4c2['input'],_0x2e384d=_0x3524a8?buildRetargetWarning(_0x42d8e5['metadata'],_0x557d57['appCode']):[];_0x176cec={'scope':_0x58b577(0xca),'payload':_0x1fd4c2,'publishInput':withDiagram(_0x4962de,_0x2064ba),'remoteForPreflight':_0x18300a,'existing':_0x18300a,'warnings':[..._0x3b90aa['warnings'],..._0x2e384d]};}const _0x845ee6=await runRemoteContentPreflight({'scope':_0x176cec[_0x58b577(0xe1)],'remote':_0x176cec[_0x58b577(0xd3)],'publishInput':_0x176cec['publishInput'],'skillCode':_0x176cec[_0x58b577(0xad)]['skillCode'],'appCode':_0x557d57['appCode'],'downloadRuntimeSkillPackage':_0x2cbc60,'verifyRuntimeSkillBundle':_0xb3e9a2});if(_0x845ee6[_0x58b577(0xda)]===_0x58b577(0xcb))return _0x176cec[_0x58b577(0xe1)]===_0x58b577(0xbb)?_0x3b9b86(_0x11c739,_0x845ee6['savedSkill'],_0x557d57[_0x58b577(0xcf)],{'scope':_0x58b577(0xbb)}):_0x3b9b86(_0x11c739,_0x845ee6[_0x58b577(0xc8)],_0x557d57[_0x58b577(0xcf)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x845ee6[_0x58b577(0xc8)]),'scope':_0x176cec[_0x58b577(0xe1)],..._0x176cec['scope']===_0x58b577(0xca)?{'warnings':_0x176cec[_0x58b577(0xb4)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x176cec[_0x58b577(0xe1)])+_0x58b577(0xc2)+_0x176cec['payload'][_0x58b577(0xd2)]+_0x58b577(0xdf)};if(_0x176cec[_0x58b577(0xe1)]===_0x58b577(0xbb)){const _0x41300a=await _0x29f920(_0x557d57['appCode'],_0x176cec[_0x58b577(0xbe)],{'visibility':_0x58b577(0xaf)});throwIfPublishValidationFailed(_0x58b577(0xbb),_0x176cec[_0x58b577(0xad)]['skillCode'],_0x41300a),throwIfUnconfirmedPublishWarnings(_0x58b577(0xbb),_0x176cec[_0x58b577(0xad)]['skillCode'],_0x41300a[_0x58b577(0xb4)],_0x20e6c3);const _0x1f3823=await _0x315542(_0x557d57['appCode'],_0x176cec['publishInput'],{'confirmWarnings':_0x20e6c3});return _0x3b9b86(_0x11c739,{..._0x1f3823,'files':_0x176cec[_0x58b577(0xbe)][_0x58b577(0xc5)]},_0x557d57[_0x58b577(0xcf)],{'scope':_0x58b577(0xbb)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1f3823),'scope':_0x58b577(0xbb),'reviewState':_0x58b577(0xba),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x41300a['warnings']}},'message':_0x58b577(0xbf)+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]+'\x20version\x20'+(_0x1f3823[_0x58b577(0xb3)]??_0x58b577(0xb7))+'\x20for\x20review'};}const _0x25eb3b=await _0x29f920(_0x557d57['appCode'],_0x176cec[_0x58b577(0xbe)],{'visibility':_0x58b577(0xd5)});throwIfPublishValidationFailed(_0x58b577(0xca),_0x176cec['payload']['skillCode'],_0x25eb3b),throwIfUnconfirmedPublishWarnings('personal',_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x25eb3b[_0x58b577(0xb4)],_0x20e6c3);const _0x248c45={'confirmWarnings':_0x20e6c3},_0x3eefef=_0x176cec[_0x58b577(0xcd)]?await _0x2c3560(_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x557d57['appCode'],_0x176cec['publishInput'],_0x248c45):await _0x88ba68(_0x557d57[_0x58b577(0xcf)],_0x176cec[_0x58b577(0xbe)],_0x248c45);let _0x5682ec=_0x3eefef;if(isMultiFileManifest(_0x176cec[_0x58b577(0xbe)]['files'])){const _0x464ecf=await _0x2cbc60(_0x58b577(0xca),_0x3eefef[_0x58b577(0xd2)]||_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)],_0x557d57[_0x58b577(0xcf)]);_0xb3e9a2(_0x176cec['publishInput'][_0x58b577(0xc5)],_0x464ecf),_0x5682ec={..._0x3eefef,'files':_0x176cec[_0x58b577(0xbe)]['files']};}else{if(isPackageBackedManifest(_0x3eefef['files'])){const _0x433787=await _0x2cbc60(_0x58b577(0xca),_0x3eefef[_0x58b577(0xd2)]||_0x176cec['payload'][_0x58b577(0xd2)],_0x557d57[_0x58b577(0xcf)]);_0x30e340(_0x3eefef[_0x58b577(0xc5)],_0x433787);}}return _0x3b9b86(_0x11c739,_0x5682ec,_0x557d57['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x3eefef),'warnings':_0x176cec['warnings'],'validation':{'warnings':_0x25eb3b['warnings']},'diagramBound':!![]},'message':_0x176cec[_0x58b577(0xcd)]?'Updated\x20personal\x20Skill\x20'+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]:_0x58b577(0xb8)+_0x176cec[_0x58b577(0xad)][_0x58b577(0xd2)]};}function scopeLabel(_0x32d6c8){const _0x231325=a75_0x1414;return _0x32d6c8===_0x231325(0xbb)?_0x231325(0xe0):_0x231325(0xb9);}function withDiagram(_0x43b9dc,_0x43cda8){return{..._0x43b9dc,'diagram':_0x43cda8};}function a75_0x1414(_0x174d1e,_0x5e57cc){_0x174d1e=_0x174d1e-0xab;const _0x490a8d=a75_0x490a();let _0x14143e=_0x490a8d[_0x174d1e];return _0x14143e;}function diagramPackageExclusion(_0x5e415b){return _0x5e415b?{'excludedFilePaths':[_0x5e415b]}:{};}
|
|
1
|
+
(function(_0x56c382,_0x14d9f4){const _0x31fcd5=a76_0x2506,_0x467c86=_0x56c382();while(!![]){try{const _0x2edbfd=parseInt(_0x31fcd5(0xbe))/0x1+parseInt(_0x31fcd5(0xd2))/0x2+parseInt(_0x31fcd5(0xd4))/0x3+-parseInt(_0x31fcd5(0xd1))/0x4+parseInt(_0x31fcd5(0xbc))/0x5+-parseInt(_0x31fcd5(0xba))/0x6*(parseInt(_0x31fcd5(0xe0))/0x7)+parseInt(_0x31fcd5(0xdf))/0x8;if(_0x2edbfd===_0x14d9f4)break;else _0x467c86['push'](_0x467c86['shift']());}catch(_0x321e6f){_0x467c86['push'](_0x467c86['shift']());}}}(a76_0x5e64,0x590d2));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a76_0x2506(_0x38eff2,_0x40295e){_0x38eff2=_0x38eff2-0xb1;const _0x5e64ad=a76_0x5e64();let _0x250653=_0x5e64ad[_0x38eff2];return _0x250653;}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';function a76_0x5e64(){const _0x1a5ead=['savedSkill','bool','status','input','remoteForPreflight','payload','existing','confirm-warnings','resolvedVersion','dir','(unknown)','authRequired','company','POST','2657308vBpyug','332898ACycmr','identical','713721ACRDaY','diagramValidated','\x20for\x20review','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Created\x20personal\x20Skill\x20','publishInput','unknown','version','PRIVATE','\x20has\x20scope=\x22','/api/cli/v1/skills/','5457328zJnlEd','1120MPmMQZ','personal','/publish/validate','\x20Skill\x20','accessKey','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','metadata','appCode','Submitted\x20company\x20Skill\x20','../../skills/runtime-skill-sync.js','validation','str','skillCode','files','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','scope','diagram-file','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','trim','appcode','frontmatterDisplayName','\x20version\x20','submitted','Personal','25956eRWUeU','NAMESPACE_ONLY','1982790XHTtVC','warnings','238161lRFnTj','resolvedSlug','valid','errors','confirmWarnings'];a76_0x5e64=function(){return _0x1a5ead;};return a76_0x5e64();}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(_0x25f450){const _0x3cd7fe=a76_0x2506,{getRuntimeSkillByCode:_0x2fe1fe,validateRuntimeSkillPublish:_0xa1c411}=await import('../../core/api-client.js'),{readPushDirectory:_0x1a86bb,resolvePushDirectoryIdentity:_0xb4e51a}=await import('../../skills/runtime-skill-sync.js');if(!_0x25f450[_0x3cd7fe(0xe4)])throw CliErrors[_0x3cd7fe(0xce)]();const _0xcb37f4=resolvePushScope(_0x25f450),_0x595582=validateSkillDirectory(_0x25f450[_0x3cd7fe(0xeb)]('dir'));throwIfSkillValidationFailed(_0x595582);const {diagram:_0x264e8b,sourceFilePath:_0x5e90f2}=await readRequiredSkillDiagramInput(_0x25f450[_0x3cd7fe(0xeb)](_0x3cd7fe(0xb2))),_0x5a3a04=diagramPackageExclusion(_0x5e90f2),_0x2321c1=_0xb4e51a(_0x595582['dir'],_0x25f450['appCode'],remoteFirstMetadataOptions()),_0x303832=await _0x2fe1fe(_0x25f450[_0x3cd7fe(0xe7)],_0x2321c1[_0x3cd7fe(0xec)]);throwIfBuiltinPushTarget(_0x303832);if(_0xcb37f4==='company'){const _0x559024=_0x1a86bb(_0x595582[_0x3cd7fe(0xcc)],_0x25f450[_0x3cd7fe(0xe7)],{...remoteMissingCompanyReadOptions(),..._0x5a3a04}),_0x37801e=await _0xa1c411(_0x25f450[_0x3cd7fe(0xe7)],withDiagram(_0x559024[_0x3cd7fe(0xc6)],_0x264e8b),{'visibility':'NAMESPACE_ONLY'});return{'method':_0x3cd7fe(0xd0),'url':_0x3cd7fe(0xde)+_0x25f450[_0x3cd7fe(0xe7)]+_0x3cd7fe(0xe2),'body':{'skillCode':_0x559024[_0x3cd7fe(0xec)],'visibility':_0x3cd7fe(0xbb),'valid':_0x37801e[_0x3cd7fe(0xc0)],'errors':_0x37801e[_0x3cd7fe(0xc1)],'warnings':_0x37801e[_0x3cd7fe(0xbd)],'resolvedSlug':_0x37801e[_0x3cd7fe(0xbf)],'resolvedVersion':_0x37801e['resolvedVersion'],'diagramValidated':_0x37801e[_0x3cd7fe(0xd5)]},'description':_0x3cd7fe(0xd7)};}if(_0x303832&&_0x303832['scope']!==_0x3cd7fe(0xe1))throw CliErrors[_0x3cd7fe(0xea)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x2321c1[_0x3cd7fe(0xec)]+_0x3cd7fe(0xdd)+(_0x303832[_0x3cd7fe(0xb1)]??_0x3cd7fe(0xda))+'\x22.');const _0x46b261=_0x1a86bb(_0x595582[_0x3cd7fe(0xcc)],_0x25f450[_0x3cd7fe(0xe7)],{..._0x303832?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions(),..._0x5a3a04}),_0x2fc20f=await _0xa1c411(_0x25f450[_0x3cd7fe(0xe7)],withDiagram(_0x46b261[_0x3cd7fe(0xc6)],_0x264e8b),{'visibility':_0x3cd7fe(0xdc)});return{'method':_0x3cd7fe(0xd0),'url':'/api/cli/v1/skills/'+_0x25f450[_0x3cd7fe(0xe7)]+_0x3cd7fe(0xe2),'body':{'skillCode':_0x46b261[_0x3cd7fe(0xec)],'visibility':'PRIVATE','valid':_0x2fc20f['valid'],'errors':_0x2fc20f[_0x3cd7fe(0xc1)],'warnings':_0x2fc20f[_0x3cd7fe(0xbd)],'resolvedSlug':_0x2fc20f[_0x3cd7fe(0xbf)],'resolvedVersion':_0x2fc20f[_0x3cd7fe(0xcb)],'diagramValidated':_0x2fc20f[_0x3cd7fe(0xd5)]},'description':_0x3cd7fe(0xee)};}export async function skillPushExecute(_0x191f32){const _0xe99397=a76_0x2506,{createPersonalRuntimeSkill:_0x378a18,downloadRuntimeSkillPackage:_0x213f49,getRuntimeSkillByCode:_0x588482,publishCompanyRuntimeSkill:_0x94f1f,updatePersonalRuntimeSkill:_0x128998,validateRuntimeSkillPublish:_0x306c07}=await import('../../core/api-client.js'),{verifyRuntimeSkillPackage:_0x14b14c,verifyRuntimeSkillBundle:_0x2dfbf8,readPushDirectory:_0x2ce7f4,refreshPushDirectoryMetadataFromRemote:_0x54d0ea,recordPushedRuntimeSkill:_0x1e804b,resolvePushDirectoryIdentity:_0xaedb60}=await import(_0xe99397(0xe9));if(!_0x191f32['accessKey'])throw CliErrors[_0xe99397(0xce)]();const _0x2be498=resolvePushScope(_0x191f32),_0x3d9d53=_0x191f32['bool'](_0xe99397(0xca))||_0x191f32[_0xe99397(0xc4)](_0xe99397(0xc2)),_0x59ca78=validateSkillDirectory(_0x191f32[_0xe99397(0xeb)](_0xe99397(0xcc)));throwIfSkillValidationFailed(_0x59ca78);const {diagram:_0x20292a,sourceFilePath:_0x461a83}=await readRequiredSkillDiagramInput(_0x191f32[_0xe99397(0xeb)](_0xe99397(0xb2))),_0x1c4ed9=diagramPackageExclusion(_0x461a83),_0x5f5da8=_0x59ca78['dir'];let _0x36ebe7;if(_0x2be498===_0xe99397(0xcf)){const _0x3b8320=_0xaedb60(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],remoteFirstMetadataOptions()),_0x554390=await _0x588482(_0x191f32[_0xe99397(0xe7)],_0x3b8320['skillCode']);throwIfBuiltinPushTarget(_0x554390);if(_0x554390)_0x54d0ea(_0x5f5da8,_0x554390,_0x191f32[_0xe99397(0xe7)]);const _0x75c12b=_0x2ce7f4(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],{..._0x554390?{'targetScope':_0xe99397(0xcf),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions(),..._0x1c4ed9});_0x36ebe7={'scope':_0xe99397(0xcf),'payload':_0x75c12b,'publishInput':withDiagram(_0x75c12b[_0xe99397(0xc6)],_0x20292a),'remoteForPreflight':_0x554390,'warnings':[]};}else{const _0x568e3a=_0x191f32[_0xe99397(0xeb)](_0xe99397(0xb5))[_0xe99397(0xb4)](),_0x4eeb6c=Boolean(_0x568e3a),_0x133ff6=allowRetargetArgs(_0x4eeb6c),_0x3a735d=_0xaedb60(_0x5f5da8,_0x191f32[_0xe99397(0xe7)],{...remoteFirstMetadataOptions(),..._0x133ff6[0x0]}),_0x314d21=await _0x588482(_0x191f32[_0xe99397(0xe7)],_0x3a735d['skillCode']);throwIfBuiltinPushTarget(_0x314d21);if(_0x314d21){if(_0x314d21['scope']!==_0xe99397(0xe1)){if(_0x4eeb6c)throw CliErrors[_0xe99397(0xea)](_0xe99397(0xb3)+_0x3a735d['skillCode']+_0xe99397(0xdd)+(_0x314d21['scope']??_0xe99397(0xda))+'\x22.');_0x54d0ea(_0x5f5da8,_0x314d21,_0x191f32[_0xe99397(0xe7)]);}else!_0x4eeb6c&&_0x54d0ea(_0x5f5da8,_0x314d21,_0x191f32[_0xe99397(0xe7)]);}const _0xa2e14e=_0x2ce7f4(_0x5f5da8,_0x191f32['appCode'],{..._0x314d21?remotePersonalReadOptions(_0x4eeb6c,_0x133ff6[0x0]):remoteMissingPersonalReadOptions(_0x133ff6[0x0]),..._0x1c4ed9}),_0x2c49c5=_0x314d21?.['scope']==='personal'&&_0x314d21[_0xe99397(0xec)]===_0xa2e14e[_0xe99397(0xec)]?_0x314d21:undefined,_0x3159ca=_0x4eeb6c&&_0x2c49c5?withRetargetExistingMetadata(_0xa2e14e['input'],_0x2c49c5,{'preferInputSkillName':Boolean(_0xa2e14e[_0xe99397(0xb6)])}):_0xa2e14e[_0xe99397(0xc6)],_0x325267=_0x4eeb6c?buildRetargetWarning(_0x3a735d[_0xe99397(0xe6)],_0x191f32['appCode']):[];_0x36ebe7={'scope':_0xe99397(0xe1),'payload':_0xa2e14e,'publishInput':withDiagram(_0x3159ca,_0x20292a),'remoteForPreflight':_0x2c49c5,'existing':_0x2c49c5,'warnings':[..._0x59ca78[_0xe99397(0xbd)],..._0x325267]};}const _0x25a7da=await runRemoteContentPreflight({'scope':_0x36ebe7[_0xe99397(0xb1)],'remote':_0x36ebe7[_0xe99397(0xc7)],'publishInput':_0x36ebe7[_0xe99397(0xd9)],'skillCode':_0x36ebe7[_0xe99397(0xc8)]['skillCode'],'appCode':_0x191f32['appCode'],'downloadRuntimeSkillPackage':_0x213f49,'verifyRuntimeSkillBundle':_0x2dfbf8});if(_0x25a7da[_0xe99397(0xc5)]===_0xe99397(0xd3))return _0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xcf)?_0x1e804b(_0x5f5da8,_0x25a7da[_0xe99397(0xc3)],_0x191f32[_0xe99397(0xe7)],{'scope':_0xe99397(0xcf)}):_0x1e804b(_0x5f5da8,_0x25a7da['savedSkill'],_0x191f32[_0xe99397(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x25a7da[_0xe99397(0xc3)]),'scope':_0x36ebe7[_0xe99397(0xb1)],..._0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xe1)?{'warnings':_0x36ebe7[_0xe99397(0xbd)]}:{},'alreadyPublished':!![],'contentIdentical':!![],'diagramSubmitted':![]},'message':scopeLabel(_0x36ebe7[_0xe99397(0xb1)])+_0xe99397(0xe3)+_0x36ebe7['payload'][_0xe99397(0xec)]+_0xe99397(0xe5)};if(_0x36ebe7[_0xe99397(0xb1)]===_0xe99397(0xcf)){const _0x12c593=await _0x306c07(_0x191f32[_0xe99397(0xe7)],_0x36ebe7['publishInput'],{'visibility':'NAMESPACE_ONLY'});throwIfPublishValidationFailed(_0xe99397(0xcf),_0x36ebe7['payload'][_0xe99397(0xec)],_0x12c593),throwIfUnconfirmedPublishWarnings(_0xe99397(0xcf),_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x12c593[_0xe99397(0xbd)],_0x3d9d53);const _0x59857c=await _0x94f1f(_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],{'confirmWarnings':_0x3d9d53});return _0x1e804b(_0x5f5da8,{..._0x59857c,'files':_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)]},_0x191f32['appCode'],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x59857c),'scope':_0xe99397(0xcf),'reviewState':_0xe99397(0xb8),'submittedForReview':!![],'diagramBound':!![],'validation':{'warnings':_0x12c593[_0xe99397(0xbd)]}},'message':_0xe99397(0xe8)+_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)]+_0xe99397(0xb7)+(_0x59857c[_0xe99397(0xdb)]??_0xe99397(0xcd))+_0xe99397(0xd6)};}const _0x44b36b=await _0x306c07(_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0xe99397(0xe1),_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)],_0x44b36b),throwIfUnconfirmedPublishWarnings(_0xe99397(0xe1),_0x36ebe7[_0xe99397(0xc8)][_0xe99397(0xec)],_0x44b36b[_0xe99397(0xbd)],_0x3d9d53);const _0x5208b2={'confirmWarnings':_0x3d9d53},_0x44d88e=_0x36ebe7['existing']?await _0x128998(_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x191f32[_0xe99397(0xe7)],_0x36ebe7[_0xe99397(0xd9)],_0x5208b2):await _0x378a18(_0x191f32['appCode'],_0x36ebe7[_0xe99397(0xd9)],_0x5208b2);let _0x4c66ad=_0x44d88e;if(isMultiFileManifest(_0x36ebe7[_0xe99397(0xd9)]['files'])){const _0x32c627=await _0x213f49('personal',_0x44d88e[_0xe99397(0xec)]||_0x36ebe7[_0xe99397(0xc8)]['skillCode'],_0x191f32['appCode']);_0x2dfbf8(_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)],_0x32c627),_0x4c66ad={..._0x44d88e,'files':_0x36ebe7[_0xe99397(0xd9)][_0xe99397(0xed)]};}else{if(isPackageBackedManifest(_0x44d88e[_0xe99397(0xed)])){const _0x412fa1=await _0x213f49(_0xe99397(0xe1),_0x44d88e[_0xe99397(0xec)]||_0x36ebe7['payload'][_0xe99397(0xec)],_0x191f32['appCode']);_0x14b14c(_0x44d88e[_0xe99397(0xed)],_0x412fa1);}}return _0x1e804b(_0x5f5da8,_0x4c66ad,_0x191f32[_0xe99397(0xe7)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x44d88e),'warnings':_0x36ebe7[_0xe99397(0xbd)],'validation':{'warnings':_0x44b36b['warnings']},'diagramBound':!![]},'message':_0x36ebe7[_0xe99397(0xc9)]?'Updated\x20personal\x20Skill\x20'+_0x36ebe7['payload']['skillCode']:_0xe99397(0xd8)+_0x36ebe7[_0xe99397(0xc8)]['skillCode']};}function scopeLabel(_0x28280b){const _0x4d5d4b=a76_0x2506;return _0x28280b===_0x4d5d4b(0xcf)?'Company':_0x4d5d4b(0xb9);}function withDiagram(_0x531bd6,_0x5334d5){return{..._0x531bd6,'diagram':_0x5334d5};}function diagramPackageExclusion(_0x371498){return _0x371498?{'excludedFilePaths':[_0x371498]}:{};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13962d,_0x46f508){const _0xf2accd=a77_0x235b,_0xdce7dd=_0x13962d();while(!![]){try{const _0x58e317=-parseInt(_0xf2accd(0x163))/0x1*(parseInt(_0xf2accd(0x158))/0x2)+-parseInt(_0xf2accd(0x167))/0x3+-parseInt(_0xf2accd(0x14b))/0x4+parseInt(_0xf2accd(0x171))/0x5*(parseInt(_0xf2accd(0x162))/0x6)+-parseInt(_0xf2accd(0x156))/0x7*(parseInt(_0xf2accd(0x15a))/0x8)+-parseInt(_0xf2accd(0x165))/0x9+parseInt(_0xf2accd(0x150))/0xa;if(_0x58e317===_0x46f508)break;else _0xdce7dd['push'](_0xdce7dd['shift']());}catch(_0x5aa416){_0xdce7dd['push'](_0xdce7dd['shift']());}}}(a77_0x263d,0x68802));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x38ca9a){const _0x12a07a=a77_0x235b,_0x34b670=_0x38ca9a[_0x12a07a(0x16d)](_0x12a07a(0x147))||_0x12a07a(0x161);if(_0x34b670===_0x12a07a(0x161)||_0x34b670==='company')return _0x34b670;throw CliErrors[_0x12a07a(0x143)](_0x12a07a(0x15d)+_0x34b670+'\x22.');}export function allowRetargetArgs(_0x548e29){return _0x548e29?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a77_0x235b(_0x51b22b,_0x5d1e41){_0x51b22b=_0x51b22b-0x143;const _0x263d7d=a77_0x263d();let _0x235b7b=_0x263d7d[_0x51b22b];return _0x235b7b;}export function remoteMissingCompanyReadOptions(){return{'targetScope':'company',...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x351833={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x351833};}export function remotePersonalReadOptions(_0x9991db,_0x3480de={}){return{'ignoreInvalidMetadata':!![],..._0x9991db?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x3480de};}function a77_0x263d(){const _0x115e88=['Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','downloadRuntimeSkillPackage','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','join','\x20Skill\x20push\x20validation\x20failed\x20for\x20','str','not-applicable','different','Review\x20each\x20warning\x20before\x20continuing.','183660KOiMnO','validation','skill-metadata-appcode-retargeted','\x20cannot\x20be\x20pushed.','company','scope','Builtin\x20Skill\x20','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','files','3257316FnDkpL','skillCode','errors','Company','appCode','33895270GXcDzI','length','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','publishInput','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','builtin','152243qfXWQw','remote','2LBTMOi','content','232tRPafR','Warnings:\x20','version','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','valid','\x20after\x20successful\x20push.','Personal','personal','54QxdIEk','666450CBldQj','SkillHub\x20validation\x20returned\x20invalid.','7100640WPkjXv','(unknown)','1174863jiBceG'];a77_0x263d=function(){return _0x115e88;};return a77_0x263d();}export function throwIfBuiltinPushTarget(_0x1b8294){const _0x1e4202=a77_0x235b;if(_0x1b8294?.['scope']!==_0x1e4202(0x155))return;throw CliErrors[_0x1e4202(0x143)](_0x1e4202(0x148)+(_0x1b8294['skillCode']??_0x1e4202(0x166))+_0x1e4202(0x145),_0x1e4202(0x154));}export function throwIfPublishValidationFailed(_0x4c2d1f,_0x148e47,_0x4033de){const _0x45007c=a77_0x235b;if(_0x4033de['errors'][_0x45007c(0x151)]===0x0&&(_0x4033de[_0x45007c(0x15e)]||_0x4033de['warnings']['length']>0x0))return;const _0x4bf2c3=_0x4033de[_0x45007c(0x14d)][_0x45007c(0x151)]>0x0?_0x4033de[_0x45007c(0x14d)][_0x45007c(0x16b)](';\x20'):_0x45007c(0x164),_0x535c75=_0x4c2d1f==='company'?_0x45007c(0x14e):_0x45007c(0x160);throw CliErrors[_0x45007c(0x143)](_0x535c75+_0x45007c(0x16c)+_0x148e47+'.',_0x4bf2c3);}export function throwIfUnconfirmedPublishWarnings(_0x37714f,_0x457d64,_0xaa0183,_0x37a3e9){const _0xa9d2ae=a77_0x235b;if(_0xaa0183[_0xa9d2ae(0x151)]===0x0||_0x37a3e9)return;const _0x1458ca=_0x37714f===_0xa9d2ae(0x146)?_0xa9d2ae(0x14e):'Personal';throw CliErrors['validation'](_0x1458ca+_0xa9d2ae(0x152)+_0x457d64+'.',[_0xa9d2ae(0x170),_0xa9d2ae(0x168),_0xa9d2ae(0x149),_0xa9d2ae(0x15b)+_0xaa0183[_0xa9d2ae(0x16b)](';\x20')][_0xa9d2ae(0x16b)]('\x20'));}export function buildRetargetWarning(_0x35d0b0,_0x19b8c6){const _0x72196f=a77_0x235b;if(!_0x35d0b0?.['appCode']||_0x35d0b0[_0x72196f(0x14f)]===_0x19b8c6)return[];return[{'level':'warning','ruleId':_0x72196f(0x144),'file':'lovrabet.skill.json','message':'Local\x20Skill\x20metadata\x20appCode\x20'+_0x35d0b0['appCode']+_0x72196f(0x16a)+_0x19b8c6+_0x72196f(0x15f),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0xe37dd8){const _0x2af4a2=a77_0x235b;if(!_0xe37dd8['remote']||_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x147)]!==_0xe37dd8[_0x2af4a2(0x147)]||!_0xe37dd8[_0x2af4a2(0x153)]['files'])return{'status':_0x2af4a2(0x16e)};const _0x29505a=_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x14c)]||_0xe37dd8[_0x2af4a2(0x14c)];if(!_0x29505a)return{'status':_0x2af4a2(0x16e)};const _0x1c304f=await _0xe37dd8[_0x2af4a2(0x169)](_0xe37dd8['scope'],_0x29505a,_0xe37dd8['appCode'],_0xe37dd8[_0x2af4a2(0x157)][_0x2af4a2(0x15c)]);try{_0xe37dd8['verifyRuntimeSkillBundle'](_0xe37dd8['publishInput'][_0x2af4a2(0x14a)],_0x1c304f);}catch{return{'status':_0x2af4a2(0x16f)};}return{'status':'identical','savedSkill':{..._0xe37dd8[_0x2af4a2(0x157)],'content':_0xe37dd8['publishInput'][_0x2af4a2(0x159)],'files':_0xe37dd8['publishInput'][_0x2af4a2(0x14a)]}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x539174,_0x1152d4){const _0x52bfd8=a78_0x471d,_0xb2fc57=_0x539174();while(!![]){try{const _0x3f27d7=-parseInt(_0x52bfd8(0x100))/0x1+parseInt(_0x52bfd8(0xfc))/0x2*(parseInt(_0x52bfd8(0xf8))/0x3)+parseInt(_0x52bfd8(0xf9))/0x4+-parseInt(_0x52bfd8(0xfb))/0x5+parseInt(_0x52bfd8(0xfa))/0x6*(parseInt(_0x52bfd8(0x107))/0x7)+parseInt(_0x52bfd8(0xfd))/0x8+parseInt(_0x52bfd8(0x103))/0x9*(-parseInt(_0x52bfd8(0xf4))/0xa);if(_0x3f27d7===_0x1152d4)break;else _0xb2fc57['push'](_0xb2fc57['shift']());}catch(_0x5046d6){_0xb2fc57['push'](_0xb2fc57['shift']());}}}(a78_0x4aa9,0x3b715));function a78_0x471d(_0x4f0cbd,_0x62a9f3){_0x4f0cbd=_0x4f0cbd-0xf4;const _0x4aa908=a78_0x4aa9();let _0x471de2=_0x4aa908[_0x4f0cbd];return _0x471de2;}export function withRetargetExistingMetadata(_0x530227,_0x349441,_0x5359c1={}){const _0x1007f9=a78_0x471d,_0x1452e8=_0x5359c1[_0x1007f9(0xfe)]?_0x530227[_0x1007f9(0xf7)]??_0x349441[_0x1007f9(0xf7)]:_0x349441[_0x1007f9(0xf7)]??_0x530227['skillName'];return{..._0x530227,'skillName':_0x1452e8,'description':_0x349441['description']??_0x530227['description'],'tags':Array[_0x1007f9(0xf6)](_0x349441[_0x1007f9(0x105)])?_0x349441[_0x1007f9(0x105)]:_0x530227['tags'],'version':_0x349441['version']??_0x530227[_0x1007f9(0x104)],'sourceSessionId':_0x349441['sourceSessionId']??_0x530227['sourceSessionId']};}export function buildRetargetWarning(_0x1520c5,_0x83a2b){const _0x37132f=a78_0x471d;if(!_0x1520c5?.[_0x37132f(0x106)]||_0x1520c5[_0x37132f(0x106)]===_0x83a2b)return[];return[{'level':'warning','ruleId':_0x37132f(0xff),'file':_0x37132f(0x102),'message':_0x37132f(0xf5)+_0x1520c5[_0x37132f(0x106)]+_0x37132f(0x101)+_0x83a2b+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}function a78_0x4aa9(){const _0x597ace=['6483258pYHkfK','version','tags','appCode','35HTcCqw','10PFpLJK','Local\x20Skill\x20metadata\x20appCode\x20','isArray','skillName','818115VMixCl','1690116lKXeQs','226542ANNjdb','338995imgoAm','2gxLidF','1887120pSHeoU','preferInputSkillName','skill-metadata-appcode-retargeted','88271RRaTNv','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','lovrabet.skill.json'];a78_0x4aa9=function(){return _0x597ace;};return a78_0x4aa9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a13d7,_0x28cea8){const _0x56856e=a79_0x4f7e,_0x175feb=_0x2a13d7();while(!![]){try{const _0x4fdb0d=-parseInt(_0x56856e(0x155))/0x1*(parseInt(_0x56856e(0x153))/0x2)+-parseInt(_0x56856e(0x14f))/0x3*(-parseInt(_0x56856e(0x151))/0x4)+parseInt(_0x56856e(0x154))/0x5*(parseInt(_0x56856e(0x156))/0x6)+-parseInt(_0x56856e(0x15a))/0x7+parseInt(_0x56856e(0x15d))/0x8*(-parseInt(_0x56856e(0x15b))/0x9)+parseInt(_0x56856e(0x158))/0xa*(-parseInt(_0x56856e(0x15c))/0xb)+-parseInt(_0x56856e(0x14d))/0xc*(-parseInt(_0x56856e(0x14e))/0xd);if(_0x4fdb0d===_0x28cea8)break;else _0x175feb['push'](_0x175feb['shift']());}catch(_0x3fec6f){_0x175feb['push'](_0x175feb['shift']());}}}(a79_0x4eeb,0x262df));function a79_0x4f7e(_0x215913,_0x50809a){_0x215913=_0x215913-0x14c;const _0x4eebca=a79_0x4eeb();let _0x4f7ede=_0x4eebca[_0x215913];return _0x4f7ede;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x5d9364){const _0x38cdf9=a79_0x4f7e,_0x2d79e3=_0x5d9364[_0x38cdf9(0x152)]();if(!_0x2d79e3||_0x2d79e3===_0x38cdf9(0x157))return[_0x38cdf9(0x15e),_0x38cdf9(0x150)];if(_0x2d79e3===_0x38cdf9(0x15e)||_0x2d79e3===_0x38cdf9(0x150))return[_0x2d79e3];throw CliErrors[_0x38cdf9(0x14c)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x5d9364);}export function normalizeListScope(_0x225ea0){const _0x31c17b=a79_0x4f7e,_0x5c9bc1=_0x225ea0[_0x31c17b(0x152)]();if(!_0x5c9bc1)return _0x31c17b(0x157);if(_0x5c9bc1==='personal'||_0x5c9bc1===_0x31c17b(0x150)||_0x5c9bc1===_0x31c17b(0x157))return _0x5c9bc1;throw CliErrors[_0x31c17b(0x14c)](_0x31c17b(0x159)+_0x225ea0);}export function shouldListScope(_0x158d90,_0x147407){const _0x54276f=a79_0x4f7e;if(_0x158d90===_0x54276f(0x157))return!![];return _0x158d90===_0x147407;}function a79_0x4eeb(){const _0x2be7d2=['895797VSsDhY','596691jmgidw','239393VxgFIi','8sDswCM','personal','validation','12JPJDQx','2485093Flnhhe','6813nSeNhf','company','412FzyKSP','trim','16eYQUdj','2540XKMgYz','3087DIukaY','1212BwwDYY','all','70aLdVsp','Unsupported\x20Skill\x20list\x20scope:\x20'];a79_0x4eeb=function(){return _0x2be7d2;};return a79_0x4eeb();}export function listScopeToRuntimeScopes(_0x510ba7){const _0x3a14d5=a79_0x4f7e;if(_0x510ba7==='all')return['personal',_0x3a14d5(0x150)];return[_0x510ba7==='company'?_0x3a14d5(0x150):_0x510ba7];}export function listScopeToRemoteScope(_0x407eee){return _0x407eee;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4767d0,_0x26a97c){var _0x47d174=a80_0x256c,_0x828525=_0x4767d0();while(!![]){try{var _0x480932=parseInt(_0x47d174(0x93))/0x1+-parseInt(_0x47d174(0x9c))/0x2*(-parseInt(_0x47d174(0xa1))/0x3)+parseInt(_0x47d174(0x99))/0x4+parseInt(_0x47d174(0xa2))/0x5*(-parseInt(_0x47d174(0xa4))/0x6)+-parseInt(_0x47d174(0x92))/0x7+parseInt(_0x47d174(0x98))/0x8+parseInt(_0x47d174(0x9a))/0x9*(-parseInt(_0x47d174(0x9d))/0xa);if(_0x480932===_0x26a97c)break;else _0x828525['push'](_0x828525['shift']());}catch(_0x1f5965){_0x828525['push'](_0x828525['shift']());}}}(a80_0x424d,0x28f1c));function a80_0x424d(){var _0x2ebdac=['skillCode','dir','3qpveri','19235OhQNyJ','pulledAt','24SHdKkV','skillMdPath','scope','tags','treeHash','213787lkEGmu','258042BWRyWf','metadataPath','version','cacheDir','linkedPaths','1719216yPCLBo','908052vzfzdo','27hvmxCb','skillName','177794jdbRyB','1917390DTEPLB','appCode'];a80_0x424d=function(){return _0x2ebdac;};return a80_0x424d();}function a80_0x256c(_0x507ea8,_0x12fd81){_0x507ea8=_0x507ea8-0x90;var _0x424dce=a80_0x424d();var _0x256c0d=_0x424dce[_0x507ea8];return _0x256c0d;}export function summarizeRuntimeSkill(_0x2dd743){var _0x3d2364=a80_0x256c;return{'id':_0x2dd743['id'],'skillCode':_0x2dd743['skillCode'],'skillName':_0x2dd743[_0x3d2364(0x9b)],'scope':_0x2dd743[_0x3d2364(0xa6)],'version':_0x2dd743['version'],'readonly':_0x2dd743['readonly']};}export function summarizeLocalRuntimeSkill(_0x19d4fe){var _0x16dd99=a80_0x256c;return{'id':_0x19d4fe['id'],'skillCode':_0x19d4fe[_0x16dd99(0x9f)],'skillName':_0x19d4fe[_0x16dd99(0x9b)],'scope':_0x19d4fe[_0x16dd99(0xa6)],'appCode':_0x19d4fe[_0x16dd99(0x9e)],'version':_0x19d4fe[_0x16dd99(0x95)],'status':_0x19d4fe['status'],'readonly':_0x19d4fe['readonly'],'tags':_0x19d4fe[_0x16dd99(0x90)],'dir':_0x19d4fe[_0x16dd99(0xa0)],'cacheDir':_0x19d4fe[_0x16dd99(0x96)],'skillMdPath':_0x19d4fe[_0x16dd99(0xa5)],'metadataPath':_0x19d4fe[_0x16dd99(0x94)],'linkedPaths':_0x19d4fe[_0x16dd99(0x97)],'contentHash':_0x19d4fe['contentHash'],'treeHash':_0x19d4fe[_0x16dd99(0x91)],'pulledAt':_0x19d4fe[_0x16dd99(0xa3)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x58762d=a81_0x50da;(function(_0x4d8909,_0x1dd08e){const _0x36df4e=a81_0x50da,_0x2a65dd=_0x4d8909();while(!![]){try{const _0x2a5532=-parseInt(_0x36df4e(0x111))/0x1+-parseInt(_0x36df4e(0x120))/0x2+-parseInt(_0x36df4e(0x11c))/0x3+parseInt(_0x36df4e(0x10f))/0x4*(parseInt(_0x36df4e(0x12b))/0x5)+-parseInt(_0x36df4e(0x123))/0x6*(-parseInt(_0x36df4e(0x137))/0x7)+parseInt(_0x36df4e(0x121))/0x8+parseInt(_0x36df4e(0x138))/0x9;if(_0x2a5532===_0x1dd08e)break;else _0x2a65dd['push'](_0x2a65dd['shift']());}catch(_0x39ebcb){_0x2a65dd['push'](_0x2a65dd['shift']());}}}(a81_0x160f,0x6b26d));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a81_0x58762d(0x131),a81_0x58762d(0x134)];export const DEFAULT_SKILL_TARGET=a81_0x58762d(0x119);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a81_0x58762d(0x125);function a81_0x50da(_0x23550f,_0x18f058){_0x23550f=_0x23550f-0x10f;const _0x160fe1=a81_0x160f();let _0x50da32=_0x160fe1[_0x23550f];return _0x50da32;}export const OUTPUT_CONTRACT_FILE=a81_0x58762d(0x115);export function validateSkillName(_0x1adb0a){const _0x39a99e=a81_0x58762d,_0x3449dd=_0x1adb0a['trim']();if(!SKILL_NAME_PATTERN[_0x39a99e(0x11f)](_0x3449dd))throw CliErrors[_0x39a99e(0x118)](_0x39a99e(0x132)+_0x1adb0a+_0x39a99e(0x11b),'Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x3449dd;}export function normalizeSkillTemplateType(_0x2b25a8){const _0x49fb1f=a81_0x58762d,_0x275515=(_0x2b25a8||'write')[_0x49fb1f(0x133)]()||_0x49fb1f(0x131);if(SKILL_TYPES['includes'](_0x275515))return _0x275515;throw CliErrors[_0x49fb1f(0x118)](_0x49fb1f(0x113)+_0x2b25a8,_0x49fb1f(0x12f)+SKILL_TYPES[_0x49fb1f(0x110)](',\x20')+'.');}export function renderSkillTemplate(_0x5104df){const _0x6a422e=a81_0x58762d,_0x7ad9e3=validateSkillName(_0x5104df['skillName']),_0x166ccb=normalizeSkillTemplateType(_0x5104df[_0x6a422e(0x12a)]),_0x37210d=_0x5104df['timestamp']??new Date()[_0x6a422e(0x12c)]();return{'skillName':_0x7ad9e3,'type':_0x166ccb,'files':[{'path':_0x6a422e(0x135),'content':renderSkillMd(_0x7ad9e3,_0x166ccb,_0x37210d)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x7ad9e3,_0x166ccb)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x7ad9e3,_0x166ccb)}]};}function a81_0x160f(){const _0x19eb1a=['toISOString','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\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','Use\x20one\x20of:\x20','\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','write','Invalid\x20Skill\x20name:\x20','trim','read','SKILL.md','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','21gPrgWK','3950550llCIyM','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','1808VRzRIs','join','109975uewpEi','---\x0aname:\x20','Unsupported\x20Skill\x20type:\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','references/output-contract.md','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','validation','.agents/skills','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20Backend\x20Function、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','1839069wFdpzx','\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=','\x0a\x20\x20created:\x20\x22','test','680816ZoLfFj','3471808AlSLxH','\x0a#\x20displayName:\x20\x22<填写符合用户实际诉求的人类可读展示名>\x22\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','111570kVrLDq','#\x20Output\x20Contract\x0a\x0a','references/runtime-contract.md','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\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','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','type','6345pYHBmq'];a81_0x160f=function(){return _0x19eb1a;};return a81_0x160f();}function renderSkillMd(_0x506695,_0x3700ee,_0x110a0f){const _0x58722c=a81_0x58762d,_0xd3478a=typeWorkflow(_0x3700ee);return _0x58722c(0x112)+_0x506695+_0x58722c(0x122)+_0x3700ee+_0x58722c(0x11e)+_0x110a0f+_0x58722c(0x116)+_0x506695+_0x58722c(0x12e)+_0xd3478a+'\x0a\x0a'+businessStateSection(_0x3700ee)+_0x58722c(0x114);}function renderRuntimeContract(_0x2503af,_0x32e42e){const _0x351729=a81_0x58762d,_0x2cd4a3=_0x32e42e===_0x351729(0x131)?_0x351729(0x117):'';return _0x351729(0x128)+_0x2503af+_0x351729(0x11d)+_0x32e42e+_0x351729(0x130)+_0x2cd4a3+'\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(_0x1d2ab4,_0x57e5fd){const _0xf0d1a=a81_0x58762d,_0x853b3e=_0x57e5fd===_0xf0d1a(0x131)?_0xf0d1a(0x126):_0x57e5fd+_0xf0d1a(0x12d);return _0xf0d1a(0x124)+_0x1d2ab4+_0xf0d1a(0x127)+_0x853b3e+_0xf0d1a(0x139);}function typeWorkflow(_0x5a752a){const _0x184abc=a81_0x58762d;if(_0x5a752a===_0x184abc(0x134))return _0x184abc(0x136);return _0x184abc(0x129);}function businessStateSection(_0x22f818){const _0x1389fd=a81_0x58762d;if(_0x22f818!==_0x1389fd(0x131))return'';return _0x1389fd(0x11a);}
|