@lovrabet/lovrabet-cli 2.1.20-beta.1 → 2.1.20

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.
Files changed (128) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -1
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/raw-flags.js +1 -1
  90. package/lib/framework/response.js +1 -1
  91. package/lib/framework/runner-confirmation.js +1 -1
  92. package/lib/framework/runner-error.js +1 -1
  93. package/lib/framework/runner.js +1 -1
  94. package/lib/framework/schema-export.js +1 -1
  95. package/lib/framework/service-order.js +1 -1
  96. package/lib/framework/types.js +1 -1
  97. package/lib/generated/build-info.d.ts +4 -4
  98. package/lib/generated/build-info.js +1 -1
  99. package/lib/help.js +1 -1
  100. package/lib/runtime/event.js +1 -1
  101. package/lib/runtime/index.js +1 -1
  102. package/lib/runtime/queue.js +1 -1
  103. package/lib/runtime/resolve.js +1 -1
  104. package/lib/skills/npx-skills-add.js +1 -1
  105. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  106. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  107. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  108. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  109. package/lib/skills/runtime-skill-sync/links.js +1 -1
  110. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  111. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  112. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  113. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  114. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  115. package/lib/skills/runtime-skill-sync/push.js +1 -1
  116. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  117. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  118. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  119. package/lib/skills/runtime-skill-sync.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -1
  121. package/lib/utils/logger.js +1 -1
  122. package/lib/utils/lossless-json.js +1 -1
  123. package/lib/utils/params.js +1 -1
  124. package/lib/utils/platform.js +1 -1
  125. package/lib/utils/update-notice.js +1 -1
  126. package/lib/utils/version.js +1 -1
  127. package/lib/utils/write-cli-side-channel.js +1 -1
  128. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5c555a,_0x29a213){const _0x3fbddc=a51_0x1e49,_0x1dcfa6=_0x5c555a();while(!![]){try{const _0x5e89be=-parseInt(_0x3fbddc(0x10f))/0x1+-parseInt(_0x3fbddc(0x105))/0x2+-parseInt(_0x3fbddc(0x120))/0x3+-parseInt(_0x3fbddc(0x119))/0x4+-parseInt(_0x3fbddc(0xff))/0x5+-parseInt(_0x3fbddc(0x127))/0x6+-parseInt(_0x3fbddc(0xf9))/0x7*(-parseInt(_0x3fbddc(0x102))/0x8);if(_0x5e89be===_0x29a213)break;else _0x1dcfa6['push'](_0x1dcfa6['shift']());}catch(_0x20a0a2){_0x1dcfa6['push'](_0x1dcfa6['shift']());}}}(a51_0x173f,0x508af));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';import{remotePersonalReadOptions,remoteMissingCompanyReadOptions,remoteMissingPersonalReadOptions}from'./push-flow-helpers.js';function a51_0x173f(){const _0x4392a4=['frontmatterDisplayName','appcode','Personal','personal','496446bgCwFo','PRIVATE','POST','/api/cli/v1/skills/','Created\x20personal\x20Skill\x20','accessKey','unknown','1369530GPhNdB','submitted','Updated\x20personal\x20Skill\x20','publishInput','\x20Skill\x20','valid','authRequired','savedSkill','version','confirmWarnings','resolvedVersion','NAMESPACE_ONLY','scope','confirm-warnings','errors','7pCHjDq','\x20has\x20scope=\x22','dir','identical','Company','payload','2326575LtRFsj','remoteForPreflight','bool','19505912ARsrTP','company','metadata','1202948ZlCAlj','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','existing','appCode','Submitted\x20company\x20Skill\x20','../../core/api-client.js','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','warnings','input','str','9477EozPBQ','skillCode','(unknown)','validation','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','trim','files','\x20for\x20review','../../skills/runtime-skill-sync.js','2553332EZbpaQ','/publish/validate','resolvedSlug'];a51_0x173f=function(){return _0x4392a4;};return a51_0x173f();}import{allowRetargetArgs,buildRetargetWarning,remoteFirstMetadataOptions,resolvePushScope,runRemoteContentPreflight,throwIfBuiltinPushTarget,throwIfUnconfirmedPublishWarnings,throwIfPublishValidationFailed}from'./push-flow-helpers.js';function a51_0x1e49(_0x3fc3c2,_0x34d7c9){_0x3fc3c2=_0x3fc3c2-0xf7;const _0x173f4c=a51_0x173f();let _0x1e4952=_0x173f4c[_0x3fc3c2];return _0x1e4952;}import{withRetargetExistingMetadata}from'./push-retarget.js';import{summarizeRuntimeSkill}from'./summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0xb878b9){const _0x232a6c=a51_0x1e49,{getRuntimeSkillByCode:_0x407382,validateRuntimeSkillPublish:_0x3d0d65}=await import(_0x232a6c(0x10a)),{readPushDirectory:_0x24f172,resolvePushDirectoryIdentity:_0x22cd1c}=await import(_0x232a6c(0x118));if(!_0xb878b9[_0x232a6c(0x125)])throw CliErrors[_0x232a6c(0x12d)]();const _0x2c8654=resolvePushScope(_0xb878b9),_0x43fb5f=validateSkillDirectory(_0xb878b9[_0x232a6c(0x10e)]('dir'));throwIfSkillValidationFailed(_0x43fb5f);const _0x430a72=_0x22cd1c(_0x43fb5f[_0x232a6c(0xfb)],_0xb878b9[_0x232a6c(0x108)],remoteFirstMetadataOptions()),_0x5a2531=await _0x407382(_0xb878b9['appCode'],_0x430a72[_0x232a6c(0x110)]);throwIfBuiltinPushTarget(_0x5a2531);if(_0x2c8654===_0x232a6c(0x103)){const _0x37c586=_0x24f172(_0x43fb5f['dir'],_0xb878b9[_0x232a6c(0x108)],remoteMissingCompanyReadOptions()),_0x101d7f=await _0x3d0d65(_0xb878b9[_0x232a6c(0x108)],_0x37c586[_0x232a6c(0x10d)],{'visibility':_0x232a6c(0x132)});return{'method':_0x232a6c(0x122),'url':'/api/cli/v1/skills/'+_0xb878b9[_0x232a6c(0x108)]+_0x232a6c(0x11a),'body':{'skillCode':_0x37c586[_0x232a6c(0x110)],'visibility':_0x232a6c(0x132),'valid':_0x101d7f[_0x232a6c(0x12c)],'errors':_0x101d7f[_0x232a6c(0xf8)],'warnings':_0x101d7f[_0x232a6c(0x10c)],'resolvedSlug':_0x101d7f[_0x232a6c(0x11b)],'resolvedVersion':_0x101d7f[_0x232a6c(0x131)]},'description':_0x232a6c(0x113)};}if(_0x5a2531&&_0x5a2531[_0x232a6c(0x133)]!==_0x232a6c(0x11f))throw CliErrors[_0x232a6c(0x112)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x430a72[_0x232a6c(0x110)]+_0x232a6c(0xfa)+(_0x5a2531['scope']??'unknown')+'\x22.');const _0x125f1c=_0x24f172(_0x43fb5f[_0x232a6c(0xfb)],_0xb878b9[_0x232a6c(0x108)],_0x5a2531?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x3bc887=await _0x3d0d65(_0xb878b9[_0x232a6c(0x108)],_0x125f1c[_0x232a6c(0x10d)],{'visibility':_0x232a6c(0x121)});return{'method':_0x232a6c(0x122),'url':_0x232a6c(0x123)+_0xb878b9[_0x232a6c(0x108)]+_0x232a6c(0x11a),'body':{'skillCode':_0x125f1c[_0x232a6c(0x110)],'visibility':_0x232a6c(0x121),'valid':_0x3bc887[_0x232a6c(0x12c)],'errors':_0x3bc887[_0x232a6c(0xf8)],'warnings':_0x3bc887['warnings'],'resolvedSlug':_0x3bc887[_0x232a6c(0x11b)],'resolvedVersion':_0x3bc887[_0x232a6c(0x131)]},'description':_0x232a6c(0x106)};}export async function skillPushExecute(_0x4835d5){const _0x5ee7c5=a51_0x1e49,{createPersonalRuntimeSkill:_0x16376e,downloadRuntimeSkillPackage:_0x11937f,getRuntimeSkillByCode:_0x557843,publishCompanyRuntimeSkill:_0x1c7cf8,updatePersonalRuntimeSkill:_0x5ea7ba,validateRuntimeSkillPublish:_0x4a10b0}=await import(_0x5ee7c5(0x10a)),{verifyRuntimeSkillPackage:_0x2d1c6,verifyRuntimeSkillBundle:_0x6529ed,readPushDirectory:_0xbee19b,refreshPushDirectoryMetadataFromRemote:_0x297314,recordPushedRuntimeSkill:_0x46ce46,resolvePushDirectoryIdentity:_0x459920}=await import('../../skills/runtime-skill-sync.js');if(!_0x4835d5[_0x5ee7c5(0x125)])throw CliErrors[_0x5ee7c5(0x12d)]();const _0x2f914f=resolvePushScope(_0x4835d5),_0x2135f0=_0x4835d5[_0x5ee7c5(0x101)](_0x5ee7c5(0xf7))||_0x4835d5['bool'](_0x5ee7c5(0x130)),_0x3aaba2=validateSkillDirectory(_0x4835d5[_0x5ee7c5(0x10e)](_0x5ee7c5(0xfb)));throwIfSkillValidationFailed(_0x3aaba2);const _0x13e349=_0x3aaba2['dir'];let _0x3eeeec;if(_0x2f914f==='company'){const _0x366939=_0x459920(_0x13e349,_0x4835d5[_0x5ee7c5(0x108)],remoteFirstMetadataOptions()),_0x2c0a24=await _0x557843(_0x4835d5[_0x5ee7c5(0x108)],_0x366939[_0x5ee7c5(0x110)]);throwIfBuiltinPushTarget(_0x2c0a24);if(_0x2c0a24)_0x297314(_0x13e349,_0x2c0a24,_0x4835d5[_0x5ee7c5(0x108)]);const _0x1a39f6=_0xbee19b(_0x13e349,_0x4835d5[_0x5ee7c5(0x108)],_0x2c0a24?{'targetScope':'company','ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x3eeeec={'scope':_0x5ee7c5(0x103),'payload':_0x1a39f6,'publishInput':_0x1a39f6[_0x5ee7c5(0x10d)],'remoteForPreflight':_0x2c0a24,'warnings':[]};}else{const _0x4c15f5=_0x4835d5[_0x5ee7c5(0x10e)](_0x5ee7c5(0x11d))[_0x5ee7c5(0x115)](),_0xfa2a07=Boolean(_0x4c15f5),_0x3c226b=allowRetargetArgs(_0xfa2a07),_0x5ba3c6=_0x459920(_0x13e349,_0x4835d5['appCode'],{...remoteFirstMetadataOptions(),..._0x3c226b[0x0]}),_0x53e979=await _0x557843(_0x4835d5[_0x5ee7c5(0x108)],_0x5ba3c6[_0x5ee7c5(0x110)]);throwIfBuiltinPushTarget(_0x53e979);if(_0x53e979){if(_0x53e979[_0x5ee7c5(0x133)]!==_0x5ee7c5(0x11f)){if(_0xfa2a07)throw CliErrors[_0x5ee7c5(0x112)](_0x5ee7c5(0x114)+_0x5ba3c6[_0x5ee7c5(0x110)]+_0x5ee7c5(0xfa)+(_0x53e979[_0x5ee7c5(0x133)]??_0x5ee7c5(0x126))+'\x22.');_0x297314(_0x13e349,_0x53e979,_0x4835d5['appCode']);}else!_0xfa2a07&&_0x297314(_0x13e349,_0x53e979,_0x4835d5[_0x5ee7c5(0x108)]);}const _0x35100c=_0xbee19b(_0x13e349,_0x4835d5[_0x5ee7c5(0x108)],_0x53e979?remotePersonalReadOptions(_0xfa2a07,_0x3c226b[0x0]):remoteMissingPersonalReadOptions(_0x3c226b[0x0])),_0x2d3977=_0x53e979?.[_0x5ee7c5(0x133)]===_0x5ee7c5(0x11f)&&_0x53e979['skillCode']===_0x35100c[_0x5ee7c5(0x110)]?_0x53e979:undefined,_0x247793=_0xfa2a07&&_0x2d3977?withRetargetExistingMetadata(_0x35100c[_0x5ee7c5(0x10d)],_0x2d3977,{'preferInputSkillName':Boolean(_0x35100c[_0x5ee7c5(0x11c)])}):_0x35100c['input'],_0x19407f=_0xfa2a07?buildRetargetWarning(_0x5ba3c6[_0x5ee7c5(0x104)],_0x4835d5[_0x5ee7c5(0x108)]):[];_0x3eeeec={'scope':_0x5ee7c5(0x11f),'payload':_0x35100c,'publishInput':_0x247793,'remoteForPreflight':_0x2d3977,'existing':_0x2d3977,'warnings':[..._0x3aaba2[_0x5ee7c5(0x10c)],..._0x19407f]};}const _0x1aab55=await runRemoteContentPreflight({'scope':_0x3eeeec[_0x5ee7c5(0x133)],'remote':_0x3eeeec[_0x5ee7c5(0x100)],'publishInput':_0x3eeeec[_0x5ee7c5(0x12a)],'skillCode':_0x3eeeec['payload'][_0x5ee7c5(0x110)],'appCode':_0x4835d5[_0x5ee7c5(0x108)],'downloadRuntimeSkillPackage':_0x11937f,'verifyRuntimeSkillBundle':_0x6529ed});if(_0x1aab55['status']===_0x5ee7c5(0xfc))return _0x3eeeec[_0x5ee7c5(0x133)]===_0x5ee7c5(0x103)?_0x46ce46(_0x13e349,_0x1aab55[_0x5ee7c5(0x12e)],_0x4835d5[_0x5ee7c5(0x108)],{'scope':'company'}):_0x46ce46(_0x13e349,_0x1aab55[_0x5ee7c5(0x12e)],_0x4835d5[_0x5ee7c5(0x108)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1aab55[_0x5ee7c5(0x12e)]),'scope':_0x3eeeec['scope'],..._0x3eeeec[_0x5ee7c5(0x133)]===_0x5ee7c5(0x11f)?{'warnings':_0x3eeeec['warnings']}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x3eeeec[_0x5ee7c5(0x133)])+_0x5ee7c5(0x12b)+_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)]+_0x5ee7c5(0x10b)};if(_0x3eeeec[_0x5ee7c5(0x133)]===_0x5ee7c5(0x103)){const _0x31fdee=await _0x4a10b0(_0x4835d5[_0x5ee7c5(0x108)],_0x3eeeec['publishInput'],{'visibility':_0x5ee7c5(0x132)});throwIfPublishValidationFailed(_0x5ee7c5(0x103),_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)],_0x31fdee),throwIfUnconfirmedPublishWarnings(_0x5ee7c5(0x103),_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)],_0x31fdee[_0x5ee7c5(0x10c)],_0x2135f0);const _0x51805a=await _0x1c7cf8(_0x4835d5[_0x5ee7c5(0x108)],_0x3eeeec[_0x5ee7c5(0x12a)],{'confirmWarnings':_0x2135f0});return _0x46ce46(_0x13e349,{..._0x51805a,'files':_0x3eeeec[_0x5ee7c5(0x12a)][_0x5ee7c5(0x116)]},_0x4835d5[_0x5ee7c5(0x108)],{'scope':_0x5ee7c5(0x103)}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x51805a),'scope':_0x5ee7c5(0x103),'reviewState':_0x5ee7c5(0x128),'submittedForReview':!![],'validation':{'warnings':_0x31fdee[_0x5ee7c5(0x10c)]}},'message':_0x5ee7c5(0x109)+_0x3eeeec['payload'][_0x5ee7c5(0x110)]+'\x20version\x20'+(_0x51805a[_0x5ee7c5(0x12f)]??_0x5ee7c5(0x111))+_0x5ee7c5(0x117)};}const _0x359975=await _0x4a10b0(_0x4835d5[_0x5ee7c5(0x108)],_0x3eeeec[_0x5ee7c5(0x12a)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed(_0x5ee7c5(0x11f),_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)],_0x359975),throwIfUnconfirmedPublishWarnings(_0x5ee7c5(0x11f),_0x3eeeec['payload']['skillCode'],_0x359975[_0x5ee7c5(0x10c)],_0x2135f0);const _0xdffd10={'confirmWarnings':_0x2135f0},_0x1d85db=_0x3eeeec['existing']?await _0x5ea7ba(_0x3eeeec['payload'][_0x5ee7c5(0x110)],_0x4835d5['appCode'],_0x3eeeec[_0x5ee7c5(0x12a)],_0xdffd10):await _0x16376e(_0x4835d5['appCode'],_0x3eeeec['publishInput'],_0xdffd10);let _0x2c29ac=_0x1d85db;if(isMultiFileManifest(_0x3eeeec['publishInput'][_0x5ee7c5(0x116)])){const _0x4b462f=await _0x11937f(_0x5ee7c5(0x11f),_0x1d85db[_0x5ee7c5(0x110)]||_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)],_0x4835d5[_0x5ee7c5(0x108)]);_0x6529ed(_0x3eeeec[_0x5ee7c5(0x12a)][_0x5ee7c5(0x116)],_0x4b462f),_0x2c29ac={..._0x1d85db,'files':_0x3eeeec[_0x5ee7c5(0x12a)][_0x5ee7c5(0x116)]};}else{if(isPackageBackedManifest(_0x1d85db[_0x5ee7c5(0x116)])){const _0x58c05a=await _0x11937f('personal',_0x1d85db[_0x5ee7c5(0x110)]||_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)],_0x4835d5[_0x5ee7c5(0x108)]);_0x2d1c6(_0x1d85db[_0x5ee7c5(0x116)],_0x58c05a);}}return _0x46ce46(_0x13e349,_0x2c29ac,_0x4835d5['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1d85db),'warnings':_0x3eeeec[_0x5ee7c5(0x10c)],'validation':{'warnings':_0x359975[_0x5ee7c5(0x10c)]}},'message':_0x3eeeec[_0x5ee7c5(0x107)]?_0x5ee7c5(0x129)+_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)]:_0x5ee7c5(0x124)+_0x3eeeec[_0x5ee7c5(0xfe)][_0x5ee7c5(0x110)]};}function scopeLabel(_0x17aad9){const _0x4ba8d5=a51_0x1e49;return _0x17aad9===_0x4ba8d5(0x103)?_0x4ba8d5(0xfd):_0x4ba8d5(0x11e);}
1
+ function a51_0x30e3(){const _0x5b6a2a=['unknown','scope','NAMESPACE_ONLY','appCode','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20','4579530AGLBEm','payload','bool','/publish/validate','Validate\x20a\x20personal\x20Skill\x20push\x20package\x20without\x20creating\x20or\x20updating\x20a\x20remote\x20Skill.','resolvedVersion','company','metadata','Updated\x20personal\x20Skill\x20','resolvedSlug','warnings','errors','../../core/api-client.js','version','\x20for\x20review','identical','/api/cli/v1/skills/','344430BDySCf','dir','(unknown)','personal','371986LOeRym','Created\x20personal\x20Skill\x20','865984sONDNc','1222578rbTmtw','accessKey','trim','../../skills/runtime-skill-sync.js','authRequired','existing','appcode','77SSOzpe','\x20is\x20already\x20published\x20and\x20content\x20is\x20identical','Personal','input','str','publishInput','validation','PRIVATE','Validate\x20a\x20company\x20Skill\x20push\x20package\x20without\x20creating\x20a\x20version\x20or\x20review\x20task.','files','\x20has\x20scope=\x22','valid','status','838188eLoQqv','1625408EKqGbq','savedSkill','Company','skillCode'];a51_0x30e3=function(){return _0x5b6a2a;};return a51_0x30e3();}(function(_0x50c698,_0x13723d){const _0x4dcd75=a51_0x15f2,_0x2bf28a=_0x50c698();while(!![]){try{const _0x2e032c=parseInt(_0x4dcd75(0x7a))/0x1+-parseInt(_0x4dcd75(0x99))/0x2+-parseInt(_0x4dcd75(0x9c))/0x3+-parseInt(_0x4dcd75(0x9b))/0x4+parseInt(_0x4dcd75(0x84))/0x5+parseInt(_0x4dcd75(0x95))/0x6*(-parseInt(_0x4dcd75(0xa3))/0x7)+parseInt(_0x4dcd75(0x7b))/0x8;if(_0x2e032c===_0x13723d)break;else _0x2bf28a['push'](_0x2bf28a['shift']());}catch(_0x2f613b){_0x2bf28a['push'](_0x2bf28a['shift']());}}}(a51_0x30e3,0x7ded8));import{CliErrors}from'../../errors.js';import{isMultiFileManifest,isPackageBackedManifest}from'./manifest-helpers.js';function a51_0x15f2(_0x4ea21e,_0x148c69){_0x4ea21e=_0x4ea21e-0x74;const _0x30e339=a51_0x30e3();let _0x15f202=_0x30e339[_0x4ea21e];return _0x15f202;}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{throwIfSkillValidationFailed,validateSkillDirectory}from'./validate.js';export async function skillPushDryRun(_0x4a3df3){const _0x6284f8=a51_0x15f2,{getRuntimeSkillByCode:_0x31abb8,validateRuntimeSkillPublish:_0x54b6fc}=await import('../../core/api-client.js'),{readPushDirectory:_0x2c9ea1,resolvePushDirectoryIdentity:_0x337b67}=await import(_0x6284f8(0x9f));if(!_0x4a3df3['accessKey'])throw CliErrors[_0x6284f8(0xa0)]();const _0x4a73b1=resolvePushScope(_0x4a3df3),_0x178895=validateSkillDirectory(_0x4a3df3[_0x6284f8(0xa7)](_0x6284f8(0x96)));throwIfSkillValidationFailed(_0x178895);const _0x87fb9f=_0x337b67(_0x178895[_0x6284f8(0x96)],_0x4a3df3[_0x6284f8(0x82)],remoteFirstMetadataOptions()),_0x488ee0=await _0x31abb8(_0x4a3df3['appCode'],_0x87fb9f['skillCode']);throwIfBuiltinPushTarget(_0x488ee0);if(_0x4a73b1===_0x6284f8(0x8a)){const _0x2de002=_0x2c9ea1(_0x178895[_0x6284f8(0x96)],_0x4a3df3[_0x6284f8(0x82)],remoteMissingCompanyReadOptions()),_0x400989=await _0x54b6fc(_0x4a3df3[_0x6284f8(0x82)],_0x2de002[_0x6284f8(0xa6)],{'visibility':_0x6284f8(0x81)});return{'method':'POST','url':_0x6284f8(0x94)+_0x4a3df3[_0x6284f8(0x82)]+'/publish/validate','body':{'skillCode':_0x2de002[_0x6284f8(0x7e)],'visibility':'NAMESPACE_ONLY','valid':_0x400989['valid'],'errors':_0x400989[_0x6284f8(0x8f)],'warnings':_0x400989['warnings'],'resolvedSlug':_0x400989[_0x6284f8(0x8d)],'resolvedVersion':_0x400989[_0x6284f8(0x89)]},'description':_0x6284f8(0x75)};}if(_0x488ee0&&_0x488ee0[_0x6284f8(0x80)]!==_0x6284f8(0x98))throw CliErrors[_0x6284f8(0xa9)]('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20remote\x20Skill\x20'+_0x87fb9f['skillCode']+_0x6284f8(0x77)+(_0x488ee0[_0x6284f8(0x80)]??_0x6284f8(0x7f))+'\x22.');const _0x5ba02e=_0x2c9ea1(_0x178895[_0x6284f8(0x96)],_0x4a3df3[_0x6284f8(0x82)],_0x488ee0?remotePersonalReadOptions(!![]):remoteMissingPersonalReadOptions()),_0x168d9e=await _0x54b6fc(_0x4a3df3[_0x6284f8(0x82)],_0x5ba02e[_0x6284f8(0xa6)],{'visibility':_0x6284f8(0x74)});return{'method':'POST','url':_0x6284f8(0x94)+_0x4a3df3[_0x6284f8(0x82)]+_0x6284f8(0x87),'body':{'skillCode':_0x5ba02e[_0x6284f8(0x7e)],'visibility':_0x6284f8(0x74),'valid':_0x168d9e[_0x6284f8(0x78)],'errors':_0x168d9e[_0x6284f8(0x8f)],'warnings':_0x168d9e[_0x6284f8(0x8e)],'resolvedSlug':_0x168d9e[_0x6284f8(0x8d)],'resolvedVersion':_0x168d9e['resolvedVersion']},'description':_0x6284f8(0x88)};}export async function skillPushExecute(_0x20981c){const _0x499172=a51_0x15f2,{createPersonalRuntimeSkill:_0x53de8c,downloadRuntimeSkillPackage:_0x30cdff,getRuntimeSkillByCode:_0x27145b,publishCompanyRuntimeSkill:_0x3e6b36,updatePersonalRuntimeSkill:_0x149a1a,validateRuntimeSkillPublish:_0x41317f}=await import(_0x499172(0x90)),{verifyRuntimeSkillPackage:_0x2a9fdb,verifyRuntimeSkillBundle:_0x1470f2,readPushDirectory:_0x141ca3,refreshPushDirectoryMetadataFromRemote:_0x1c68db,recordPushedRuntimeSkill:_0x510df8,resolvePushDirectoryIdentity:_0x2307c3}=await import(_0x499172(0x9f));if(!_0x20981c[_0x499172(0x9d)])throw CliErrors['authRequired']();const _0x1bbe20=resolvePushScope(_0x20981c),_0x5732f6=_0x20981c[_0x499172(0x86)]('confirm-warnings')||_0x20981c['bool']('confirmWarnings'),_0x2ced0a=validateSkillDirectory(_0x20981c['str'](_0x499172(0x96)));throwIfSkillValidationFailed(_0x2ced0a);const _0x242135=_0x2ced0a[_0x499172(0x96)];let _0x19e03b;if(_0x1bbe20==='company'){const _0x46920a=_0x2307c3(_0x242135,_0x20981c[_0x499172(0x82)],remoteFirstMetadataOptions()),_0x4567fa=await _0x27145b(_0x20981c[_0x499172(0x82)],_0x46920a[_0x499172(0x7e)]);throwIfBuiltinPushTarget(_0x4567fa);if(_0x4567fa)_0x1c68db(_0x242135,_0x4567fa,_0x20981c[_0x499172(0x82)]);const _0x1b64df=_0x141ca3(_0x242135,_0x20981c[_0x499172(0x82)],_0x4567fa?{'targetScope':_0x499172(0x8a),'ignoreInvalidMetadata':!![]}:remoteMissingCompanyReadOptions());_0x19e03b={'scope':_0x499172(0x8a),'payload':_0x1b64df,'publishInput':_0x1b64df[_0x499172(0xa6)],'remoteForPreflight':_0x4567fa,'warnings':[]};}else{const _0x1c3f67=_0x20981c['str'](_0x499172(0xa2))[_0x499172(0x9e)](),_0x2fbc34=Boolean(_0x1c3f67),_0x40df43=allowRetargetArgs(_0x2fbc34),_0x16219d=_0x2307c3(_0x242135,_0x20981c[_0x499172(0x82)],{...remoteFirstMetadataOptions(),..._0x40df43[0x0]}),_0x3d19f8=await _0x27145b(_0x20981c[_0x499172(0x82)],_0x16219d[_0x499172(0x7e)]);throwIfBuiltinPushTarget(_0x3d19f8);if(_0x3d19f8){if(_0x3d19f8[_0x499172(0x80)]!==_0x499172(0x98)){if(_0x2fbc34)throw CliErrors[_0x499172(0xa9)](_0x499172(0x83)+_0x16219d[_0x499172(0x7e)]+_0x499172(0x77)+(_0x3d19f8[_0x499172(0x80)]??'unknown')+'\x22.');_0x1c68db(_0x242135,_0x3d19f8,_0x20981c[_0x499172(0x82)]);}else!_0x2fbc34&&_0x1c68db(_0x242135,_0x3d19f8,_0x20981c[_0x499172(0x82)]);}const _0x362091=_0x141ca3(_0x242135,_0x20981c[_0x499172(0x82)],_0x3d19f8?remotePersonalReadOptions(_0x2fbc34,_0x40df43[0x0]):remoteMissingPersonalReadOptions(_0x40df43[0x0])),_0x1a2e55=_0x3d19f8?.[_0x499172(0x80)]===_0x499172(0x98)&&_0x3d19f8[_0x499172(0x7e)]===_0x362091[_0x499172(0x7e)]?_0x3d19f8:undefined,_0x21db19=_0x2fbc34&&_0x1a2e55?withRetargetExistingMetadata(_0x362091[_0x499172(0xa6)],_0x1a2e55,{'preferInputSkillName':Boolean(_0x362091['frontmatterDisplayName'])}):_0x362091[_0x499172(0xa6)],_0x14a29e=_0x2fbc34?buildRetargetWarning(_0x16219d[_0x499172(0x8b)],_0x20981c['appCode']):[];_0x19e03b={'scope':_0x499172(0x98),'payload':_0x362091,'publishInput':_0x21db19,'remoteForPreflight':_0x1a2e55,'existing':_0x1a2e55,'warnings':[..._0x2ced0a[_0x499172(0x8e)],..._0x14a29e]};}const _0x5537a9=await runRemoteContentPreflight({'scope':_0x19e03b['scope'],'remote':_0x19e03b['remoteForPreflight'],'publishInput':_0x19e03b[_0x499172(0xa8)],'skillCode':_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)],'appCode':_0x20981c['appCode'],'downloadRuntimeSkillPackage':_0x30cdff,'verifyRuntimeSkillBundle':_0x1470f2});if(_0x5537a9[_0x499172(0x79)]===_0x499172(0x93))return _0x19e03b[_0x499172(0x80)]==='company'?_0x510df8(_0x242135,_0x5537a9[_0x499172(0x7c)],_0x20981c[_0x499172(0x82)],{'scope':_0x499172(0x8a)}):_0x510df8(_0x242135,_0x5537a9[_0x499172(0x7c)],_0x20981c[_0x499172(0x82)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x5537a9[_0x499172(0x7c)]),'scope':_0x19e03b['scope'],..._0x19e03b[_0x499172(0x80)]===_0x499172(0x98)?{'warnings':_0x19e03b[_0x499172(0x8e)]}:{},'alreadyPublished':!![],'contentIdentical':!![]},'message':scopeLabel(_0x19e03b[_0x499172(0x80)])+'\x20Skill\x20'+_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)]+_0x499172(0xa4)};if(_0x19e03b['scope']==='company'){const _0x67b2d3=await _0x41317f(_0x20981c[_0x499172(0x82)],_0x19e03b[_0x499172(0xa8)],{'visibility':_0x499172(0x81)});throwIfPublishValidationFailed('company',_0x19e03b[_0x499172(0x85)]['skillCode'],_0x67b2d3),throwIfUnconfirmedPublishWarnings('company',_0x19e03b[_0x499172(0x85)]['skillCode'],_0x67b2d3[_0x499172(0x8e)],_0x5732f6);const _0x102244=await _0x3e6b36(_0x20981c['appCode'],_0x19e03b['publishInput'],{'confirmWarnings':_0x5732f6});return _0x510df8(_0x242135,{..._0x102244,'files':_0x19e03b[_0x499172(0xa8)][_0x499172(0x76)]},_0x20981c['appCode'],{'scope':'company'}),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x102244),'scope':_0x499172(0x8a),'reviewState':'submitted','submittedForReview':!![],'validation':{'warnings':_0x67b2d3[_0x499172(0x8e)]}},'message':'Submitted\x20company\x20Skill\x20'+_0x19e03b[_0x499172(0x85)]['skillCode']+'\x20version\x20'+(_0x102244[_0x499172(0x91)]??_0x499172(0x97))+_0x499172(0x92)};}const _0x344ea0=await _0x41317f(_0x20981c['appCode'],_0x19e03b[_0x499172(0xa8)],{'visibility':'PRIVATE'});throwIfPublishValidationFailed('personal',_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)],_0x344ea0),throwIfUnconfirmedPublishWarnings(_0x499172(0x98),_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)],_0x344ea0['warnings'],_0x5732f6);const _0x3d16ec={'confirmWarnings':_0x5732f6},_0x2e47ba=_0x19e03b[_0x499172(0xa1)]?await _0x149a1a(_0x19e03b[_0x499172(0x85)]['skillCode'],_0x20981c['appCode'],_0x19e03b['publishInput'],_0x3d16ec):await _0x53de8c(_0x20981c[_0x499172(0x82)],_0x19e03b[_0x499172(0xa8)],_0x3d16ec);let _0x5acc7c=_0x2e47ba;if(isMultiFileManifest(_0x19e03b['publishInput'][_0x499172(0x76)])){const _0x2d81ad=await _0x30cdff(_0x499172(0x98),_0x2e47ba[_0x499172(0x7e)]||_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)],_0x20981c['appCode']);_0x1470f2(_0x19e03b[_0x499172(0xa8)][_0x499172(0x76)],_0x2d81ad),_0x5acc7c={..._0x2e47ba,'files':_0x19e03b[_0x499172(0xa8)][_0x499172(0x76)]};}else{if(isPackageBackedManifest(_0x2e47ba[_0x499172(0x76)])){const _0x556afd=await _0x30cdff(_0x499172(0x98),_0x2e47ba[_0x499172(0x7e)]||_0x19e03b[_0x499172(0x85)][_0x499172(0x7e)],_0x20981c['appCode']);_0x2a9fdb(_0x2e47ba[_0x499172(0x76)],_0x556afd);}}return _0x510df8(_0x242135,_0x5acc7c,_0x20981c[_0x499172(0x82)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x2e47ba),'warnings':_0x19e03b['warnings'],'validation':{'warnings':_0x344ea0[_0x499172(0x8e)]}},'message':_0x19e03b[_0x499172(0xa1)]?_0x499172(0x8c)+_0x19e03b[_0x499172(0x85)]['skillCode']:_0x499172(0x9a)+_0x19e03b['payload'][_0x499172(0x7e)]};}function scopeLabel(_0x40250a){const _0x411301=a51_0x15f2;return _0x40250a==='company'?_0x411301(0x7d):_0x411301(0xa5);}
@@ -1 +1 @@
1
- function a52_0x51a4(_0xf26cf,_0x37b912){_0xf26cf=_0xf26cf-0x10f;const _0x27ef7a=a52_0x27ef();let _0x51a43f=_0x27ef7a[_0xf26cf];return _0x51a43f;}(function(_0x2d6aac,_0x9a9b02){const _0xdc5251=a52_0x51a4,_0xf0678=_0x2d6aac();while(!![]){try{const _0x42233b=parseInt(_0xdc5251(0x11e))/0x1*(parseInt(_0xdc5251(0x11b))/0x2)+-parseInt(_0xdc5251(0x124))/0x3*(-parseInt(_0xdc5251(0x114))/0x4)+-parseInt(_0xdc5251(0x11a))/0x5*(-parseInt(_0xdc5251(0x128))/0x6)+parseInt(_0xdc5251(0x117))/0x7+-parseInt(_0xdc5251(0x116))/0x8*(parseInt(_0xdc5251(0x12c))/0x9)+parseInt(_0xdc5251(0x13b))/0xa+-parseInt(_0xdc5251(0x13a))/0xb;if(_0x42233b===_0x9a9b02)break;else _0xf0678['push'](_0xf0678['shift']());}catch(_0x40acec){_0xf0678['push'](_0xf0678['shift']());}}}(a52_0x27ef,0xcac03));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x3f2637){const _0x9616ce=a52_0x51a4,_0x499e06=_0x3f2637[_0x9616ce(0x121)](_0x9616ce(0x111))||_0x9616ce(0x129);if(_0x499e06===_0x9616ce(0x129)||_0x499e06===_0x9616ce(0x13e))return _0x499e06;throw CliErrors[_0x9616ce(0x133)](_0x9616ce(0x118)+_0x499e06+'\x22.');}export function allowRetargetArgs(_0x549418){return _0x549418?[{'allowAppCodeRetarget':!![]}]:[];}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingCompanyReadOptions(){const _0x5e4950=a52_0x51a4;return{'targetScope':_0x5e4950(0x13e),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x2889fd={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x2889fd};}export function remotePersonalReadOptions(_0x5d6272,_0x46e3e7={}){return{'ignoreInvalidMetadata':!![],..._0x5d6272?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0x46e3e7};}export function throwIfBuiltinPushTarget(_0xf1085){const _0x419908=a52_0x51a4;if(_0xf1085?.[_0x419908(0x111)]!==_0x419908(0x138))return;throw CliErrors['validation'](_0x419908(0x126)+(_0xf1085[_0x419908(0x112)]??_0x419908(0x120))+_0x419908(0x125),_0x419908(0x12f));}function a52_0x27ef(){const _0x5b65f8=['validation','different','verifyRuntimeSkillBundle','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','join','builtin','errors','31907447ohVjTd','6935050WmyFMq','warning','Local\x20Skill\x20metadata\x20appCode\x20','company','Company','SkillHub\x20validation\x20returned\x20invalid.','not-applicable','scope','skillCode','Warnings:\x20','164ZeSySR','Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.','1919288KliATI','9052610CQyWOG','skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22','version','5290SoGwGt','1026EZhpVV','appCode','remote','797sOLgnb','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','(unknown)','str','Review\x20each\x20warning\x20before\x20continuing.','publishInput','105291oYyThQ','\x20cannot\x20be\x20pushed.','Builtin\x20Skill\x20','skill-metadata-appcode-retargeted','774rSiJtT','personal','\x20Skill\x20push\x20validation\x20failed\x20for\x20','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','9fMsCCK','length','Personal','Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.','valid','\x20after\x20successful\x20push.','files'];a52_0x27ef=function(){return _0x5b65f8;};return a52_0x27ef();}export function throwIfPublishValidationFailed(_0x2d0baf,_0x4f275c,_0x4da282){const _0x59e004=a52_0x51a4;if(_0x4da282[_0x59e004(0x139)][_0x59e004(0x12d)]===0x0&&(_0x4da282[_0x59e004(0x130)]||_0x4da282['warnings'][_0x59e004(0x12d)]>0x0))return;const _0x2d7edf=_0x4da282['errors'][_0x59e004(0x12d)]>0x0?_0x4da282['errors']['join'](';\x20'):_0x59e004(0x10f),_0x471968=_0x2d0baf===_0x59e004(0x13e)?_0x59e004(0x13f):_0x59e004(0x12e);throw CliErrors['validation'](_0x471968+_0x59e004(0x12a)+_0x4f275c+'.',_0x2d7edf);}export function throwIfUnconfirmedPublishWarnings(_0x58124e,_0xa88f18,_0x4889b1,_0xc46baf){const _0x52e539=a52_0x51a4;if(_0x4889b1['length']===0x0||_0xc46baf)return;const _0x59a779=_0x58124e==='company'?_0x52e539(0x13f):'Personal';throw CliErrors[_0x52e539(0x133)](_0x59a779+_0x52e539(0x136)+_0xa88f18+'.',[_0x52e539(0x122),_0x52e539(0x11f),_0x52e539(0x115),_0x52e539(0x113)+_0x4889b1[_0x52e539(0x137)](';\x20')][_0x52e539(0x137)]('\x20'));}export function buildRetargetWarning(_0x59b009,_0x43912d){const _0xc6945c=a52_0x51a4;if(!_0x59b009?.[_0xc6945c(0x11c)]||_0x59b009[_0xc6945c(0x11c)]===_0x43912d)return[];return[{'level':_0xc6945c(0x13c),'ruleId':_0xc6945c(0x127),'file':'lovrabet.skill.json','message':_0xc6945c(0x13d)+_0x59b009['appCode']+_0xc6945c(0x12b)+_0x43912d+_0xc6945c(0x131),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}export async function runRemoteContentPreflight(_0x4053b4){const _0x479f8b=a52_0x51a4;if(!_0x4053b4[_0x479f8b(0x11d)]||_0x4053b4[_0x479f8b(0x11d)][_0x479f8b(0x111)]!==_0x4053b4[_0x479f8b(0x111)]||!_0x4053b4[_0x479f8b(0x123)][_0x479f8b(0x132)])return{'status':'not-applicable'};const _0x222fd3=_0x4053b4['remote'][_0x479f8b(0x112)]||_0x4053b4[_0x479f8b(0x112)];if(!_0x222fd3)return{'status':_0x479f8b(0x110)};const _0xaa4b32=await _0x4053b4['downloadRuntimeSkillPackage'](_0x4053b4[_0x479f8b(0x111)],_0x222fd3,_0x4053b4[_0x479f8b(0x11c)],_0x4053b4['remote'][_0x479f8b(0x119)]);try{_0x4053b4[_0x479f8b(0x135)](_0x4053b4[_0x479f8b(0x123)][_0x479f8b(0x132)],_0xaa4b32);}catch{return{'status':_0x479f8b(0x134)};}return{'status':'identical','savedSkill':{..._0x4053b4[_0x479f8b(0x11d)],'content':_0x4053b4[_0x479f8b(0x123)]['content'],'files':_0x4053b4['publishInput'][_0x479f8b(0x132)]}};}
1
+ (function(_0xf48b4b,_0x1700df){const _0x3758b8=a52_0x4b27,_0x26e1a2=_0xf48b4b();while(!![]){try{const _0x269d89=-parseInt(_0x3758b8(0xa1))/0x1*(-parseInt(_0x3758b8(0x8b))/0x2)+parseInt(_0x3758b8(0xa8))/0x3+parseInt(_0x3758b8(0xad))/0x4+-parseInt(_0x3758b8(0x8f))/0x5+parseInt(_0x3758b8(0xa7))/0x6*(-parseInt(_0x3758b8(0xaa))/0x7)+parseInt(_0x3758b8(0x99))/0x8*(-parseInt(_0x3758b8(0x8e))/0x9)+parseInt(_0x3758b8(0xa5))/0xa*(parseInt(_0x3758b8(0xa2))/0xb);if(_0x269d89===_0x1700df)break;else _0x26e1a2['push'](_0x26e1a2['shift']());}catch(_0x3a1b61){_0x26e1a2['push'](_0x26e1a2['shift']());}}}(a52_0x1df9,0xd726d));import{CliErrors}from'../../errors.js';export function resolvePushScope(_0x44fc59){const _0x176cae=a52_0x4b27,_0x3a522d=_0x44fc59[_0x176cae(0x96)](_0x176cae(0xab))||_0x176cae(0xa6);if(_0x3a522d==='personal'||_0x3a522d==='company')return _0x3a522d;throw CliErrors['validation']('skill\x20push\x20supports\x20--scope\x20personal\x20or\x20--scope\x20company;\x20received\x20\x22'+_0x3a522d+'\x22.');}export function allowRetargetArgs(_0x5ec116){return _0x5ec116?[{'allowAppCodeRetarget':!![]}]:[];}function a52_0x1df9(){const _0x5d60fb=['valid','Builtin\x20Skill\x20','Local\x20Skill\x20metadata\x20appCode\x20','verifyRuntimeSkillBundle','join','1439iZCWdF','711590oGIhQh','validation','length','270UojwBt','personal','1479522YUavcf','3849150MzHyFX','content','35yOcjik','scope','errors','1715152AZxWKa','\x20cannot\x20be\x20pushed.','\x20Skill\x20push\x20validation\x20failed\x20for\x20','\x20Skill\x20push\x20validation\x20reported\x20warning(s)\x20for\x20','builtin','company','Warnings:\x20','skill-metadata-appcode-retargeted','version','appCode','warnings','2098jxRlhg','warning','skillCode','45fBpHxO','7736265BAKBbj','remote','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.','identical','Do\x20not\x20modify\x20the\x20source\x20Skill\x20merely\x20to\x20satisfy\x20publishing.','different','str','publishInput','files','2090448csJhFK','downloadRuntimeSkillPackage','Personal'];a52_0x1df9=function(){return _0x5d60fb;};return a52_0x1df9();}export function remoteFirstMetadataOptions(){return{'ignoreInvalidMetadata':!![],'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataSkillCode':!![]};}export function remoteMissingPayloadOptions(){return{'ignoreMetadataForPayload':!![],'ignoreMetadataScope':!![],'ignoreMetadataSkillCode':!![]};}function a52_0x4b27(_0x46d12f,_0x13de72){_0x46d12f=_0x46d12f-0x86;const _0x1df98f=a52_0x1df9();let _0x4b277=_0x1df98f[_0x46d12f];return _0x4b277;}export function remoteMissingCompanyReadOptions(){const _0x513684=a52_0x4b27;return{'targetScope':_0x513684(0xb2),...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions()};}export function remoteMissingPersonalReadOptions(_0x45def0={}){return{...remoteFirstMetadataOptions(),...remoteMissingPayloadOptions(),..._0x45def0};}export function remotePersonalReadOptions(_0x1c2672,_0xf69780={}){return{'ignoreInvalidMetadata':!![],..._0x1c2672?{'ignoreMetadataAppCodeMismatch':!![],'ignoreMetadataScope':!![]}:{},..._0xf69780};}export function throwIfBuiltinPushTarget(_0x34c306){const _0x10244b=a52_0x4b27;if(_0x34c306?.[_0x10244b(0xab)]!==_0x10244b(0xb1))return;throw CliErrors[_0x10244b(0xa3)](_0x10244b(0x9d)+(_0x34c306[_0x10244b(0x8d)]??'(unknown)')+_0x10244b(0xae),'Use\x20a\x20different\x20skillCode\x20when\x20submitting\x20a\x20personal\x20or\x20company\x20Skill.');}export function throwIfPublishValidationFailed(_0x3286ba,_0x2970ab,_0x2c2644){const _0x1d5fca=a52_0x4b27;if(_0x2c2644[_0x1d5fca(0xac)][_0x1d5fca(0xa4)]===0x0&&(_0x2c2644[_0x1d5fca(0x9c)]||_0x2c2644[_0x1d5fca(0x8a)][_0x1d5fca(0xa4)]>0x0))return;const _0x4da148=_0x2c2644[_0x1d5fca(0xac)][_0x1d5fca(0xa4)]>0x0?_0x2c2644[_0x1d5fca(0xac)][_0x1d5fca(0xa0)](';\x20'):'SkillHub\x20validation\x20returned\x20invalid.',_0x5cf708=_0x3286ba===_0x1d5fca(0xb2)?'Company':'Personal';throw CliErrors[_0x1d5fca(0xa3)](_0x5cf708+_0x1d5fca(0xaf)+_0x2970ab+'.',_0x4da148);}export function throwIfUnconfirmedPublishWarnings(_0x156f06,_0x5ed9e4,_0x1723a1,_0xa8df13){const _0xc812b4=a52_0x4b27;if(_0x1723a1[_0xc812b4(0xa4)]===0x0||_0xa8df13)return;const _0x563dba=_0x156f06===_0xc812b4(0xb2)?'Company':_0xc812b4(0x9b);throw CliErrors[_0xc812b4(0xa3)](_0x563dba+_0xc812b4(0xb0)+_0x5ed9e4+'.',['Review\x20each\x20warning\x20before\x20continuing.',_0xc812b4(0x94),'Fix\x20real\x20issues.\x20If\x20the\x20remaining\x20warnings\x20are\x20reviewed\x20false\x20positives,\x20rerun\x20with\x20--confirm-warnings\x20to\x20submit\x20the\x20unchanged\x20package.',_0xc812b4(0x86)+_0x1723a1[_0xc812b4(0xa0)](';\x20')]['join']('\x20'));}export function buildRetargetWarning(_0x1e76ad,_0x1577e6){const _0x135fc8=a52_0x4b27;if(!_0x1e76ad?.[_0x135fc8(0x89)]||_0x1e76ad[_0x135fc8(0x89)]===_0x1577e6)return[];return[{'level':_0x135fc8(0x8c),'ruleId':_0x135fc8(0x87),'file':'lovrabet.skill.json','message':_0x135fc8(0x9e)+_0x1e76ad[_0x135fc8(0x89)]+_0x135fc8(0x91)+_0x1577e6+'\x20after\x20successful\x20push.','suggestion':_0x135fc8(0x92)}];}export async function runRemoteContentPreflight(_0x19a0b2){const _0x589cf4=a52_0x4b27;if(!_0x19a0b2[_0x589cf4(0x90)]||_0x19a0b2[_0x589cf4(0x90)]['scope']!==_0x19a0b2['scope']||!_0x19a0b2['publishInput'][_0x589cf4(0x98)])return{'status':'not-applicable'};const _0x3cd1db=_0x19a0b2[_0x589cf4(0x90)]['skillCode']||_0x19a0b2['skillCode'];if(!_0x3cd1db)return{'status':'not-applicable'};const _0x115621=await _0x19a0b2[_0x589cf4(0x9a)](_0x19a0b2['scope'],_0x3cd1db,_0x19a0b2[_0x589cf4(0x89)],_0x19a0b2[_0x589cf4(0x90)][_0x589cf4(0x88)]);try{_0x19a0b2[_0x589cf4(0x9f)](_0x19a0b2[_0x589cf4(0x97)][_0x589cf4(0x98)],_0x115621);}catch{return{'status':_0x589cf4(0x95)};}return{'status':_0x589cf4(0x93),'savedSkill':{..._0x19a0b2[_0x589cf4(0x90)],'content':_0x19a0b2[_0x589cf4(0x97)][_0x589cf4(0xa9)],'files':_0x19a0b2[_0x589cf4(0x97)][_0x589cf4(0x98)]}};}
@@ -1 +1 @@
1
- (function(_0x547f83,_0x190299){const _0x40253e=a53_0x37c1,_0x4d36b0=_0x547f83();while(!![]){try{const _0xba4f54=parseInt(_0x40253e(0xc3))/0x1*(parseInt(_0x40253e(0xbd))/0x2)+-parseInt(_0x40253e(0xbb))/0x3*(-parseInt(_0x40253e(0xc5))/0x4)+-parseInt(_0x40253e(0xc7))/0x5*(-parseInt(_0x40253e(0xc9))/0x6)+parseInt(_0x40253e(0xc2))/0x7*(parseInt(_0x40253e(0xb6))/0x8)+-parseInt(_0x40253e(0xc0))/0x9+-parseInt(_0x40253e(0xb9))/0xa*(-parseInt(_0x40253e(0xb4))/0xb)+-parseInt(_0x40253e(0xc4))/0xc;if(_0xba4f54===_0x190299)break;else _0x4d36b0['push'](_0x4d36b0['shift']());}catch(_0x24b660){_0x4d36b0['push'](_0x4d36b0['shift']());}}}(a53_0x5ad5,0xd9331));export function withRetargetExistingMetadata(_0x8d0780,_0x18a1da,_0x3d8633={}){const _0x497307=a53_0x37c1,_0x3fb372=_0x3d8633['preferInputSkillName']?_0x8d0780[_0x497307(0xba)]??_0x18a1da[_0x497307(0xba)]:_0x18a1da[_0x497307(0xba)]??_0x8d0780[_0x497307(0xba)];return{..._0x8d0780,'skillName':_0x3fb372,'description':_0x18a1da[_0x497307(0xb5)]??_0x8d0780[_0x497307(0xb5)],'tags':Array[_0x497307(0xb7)](_0x18a1da[_0x497307(0xcb)])?_0x18a1da[_0x497307(0xcb)]:_0x8d0780[_0x497307(0xcb)],'version':_0x18a1da[_0x497307(0xc6)]??_0x8d0780[_0x497307(0xc6)],'sourceSessionId':_0x18a1da[_0x497307(0xbe)]??_0x8d0780[_0x497307(0xbe)]};}function a53_0x5ad5(){const _0x39d9c5=['sourceSessionId','skill-metadata-appcode-retargeted','3045123OjUHON','warning','5452097jiISmC','31DZTtAZ','57791700LzVwwI','284EwYOpO','version','1485yOcNyG','Local\x20Skill\x20metadata\x20appCode\x20','25248hhiFhy','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','tags','2024wuZcHC','description','16ZXqCLn','isArray','appCode','82300RIOnuF','skillName','38757xitTKF','\x20after\x20successful\x20push.','51928EnTPGU'];a53_0x5ad5=function(){return _0x39d9c5;};return a53_0x5ad5();}function a53_0x37c1(_0x543b70,_0x176780){_0x543b70=_0x543b70-0xb4;const _0x5ad567=a53_0x5ad5();let _0x37c105=_0x5ad567[_0x543b70];return _0x37c105;}export function buildRetargetWarning(_0x5f03dc,_0x250dfb){const _0x26da37=a53_0x37c1;if(!_0x5f03dc?.[_0x26da37(0xb8)]||_0x5f03dc['appCode']===_0x250dfb)return[];return[{'level':_0x26da37(0xc1),'ruleId':_0x26da37(0xbf),'file':'lovrabet.skill.json','message':_0x26da37(0xc8)+_0x5f03dc[_0x26da37(0xb8)]+_0x26da37(0xca)+_0x250dfb+_0x26da37(0xbc),'suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
1
+ (function(_0x58dd8f,_0x4848bc){const _0x656a99=a53_0x34c4,_0x52838c=_0x58dd8f();while(!![]){try{const _0x5577a0=-parseInt(_0x656a99(0x13e))/0x1*(parseInt(_0x656a99(0x142))/0x2)+-parseInt(_0x656a99(0x13f))/0x3+parseInt(_0x656a99(0x149))/0x4+parseInt(_0x656a99(0x140))/0x5*(parseInt(_0x656a99(0x13c))/0x6)+parseInt(_0x656a99(0x148))/0x7*(parseInt(_0x656a99(0x14b))/0x8)+parseInt(_0x656a99(0x144))/0x9+-parseInt(_0x656a99(0x143))/0xa;if(_0x5577a0===_0x4848bc)break;else _0x52838c['push'](_0x52838c['shift']());}catch(_0x5728d5){_0x52838c['push'](_0x52838c['shift']());}}}(a53_0x137d,0x90164));function a53_0x137d(){const _0x18e04b=['tags','warning','lovrabet.skill.json','description','skill-metadata-appcode-retargeted','preferInputSkillName','48126xPeXrA','skillName','9SSprvM','2942988noetoK','610aSFVrl','Local\x20Skill\x20metadata\x20appCode\x20','2012HyyXdE','6652410AbsDQB','8306865APbvrE','appCode','\x20was\x20retargeted\x20to\x20explicit\x20appCode\x20','version','19117uvVIyk','32044OajvVZ','sourceSessionId','984lOsTnG'];a53_0x137d=function(){return _0x18e04b;};return a53_0x137d();}export function withRetargetExistingMetadata(_0x50c6ea,_0x17f302,_0x15882f={}){const _0x54a985=a53_0x34c4,_0x10aa7a=_0x15882f[_0x54a985(0x13b)]?_0x50c6ea[_0x54a985(0x13d)]??_0x17f302['skillName']:_0x17f302['skillName']??_0x50c6ea[_0x54a985(0x13d)];return{..._0x50c6ea,'skillName':_0x10aa7a,'description':_0x17f302[_0x54a985(0x14f)]??_0x50c6ea[_0x54a985(0x14f)],'tags':Array['isArray'](_0x17f302[_0x54a985(0x14c)])?_0x17f302[_0x54a985(0x14c)]:_0x50c6ea[_0x54a985(0x14c)],'version':_0x17f302[_0x54a985(0x147)]??_0x50c6ea['version'],'sourceSessionId':_0x17f302['sourceSessionId']??_0x50c6ea[_0x54a985(0x14a)]};}function a53_0x34c4(_0x25c175,_0x3dfb92){_0x25c175=_0x25c175-0x13a;const _0x137d96=a53_0x137d();let _0x34c43d=_0x137d96[_0x25c175];return _0x34c43d;}export function buildRetargetWarning(_0x5050de,_0x4026fd){const _0x36bbe7=a53_0x34c4;if(!_0x5050de?.['appCode']||_0x5050de[_0x36bbe7(0x145)]===_0x4026fd)return[];return[{'level':_0x36bbe7(0x14d),'ruleId':_0x36bbe7(0x13a),'file':_0x36bbe7(0x14e),'message':_0x36bbe7(0x141)+_0x5050de[_0x36bbe7(0x145)]+_0x36bbe7(0x146)+_0x4026fd+'\x20after\x20successful\x20push.','suggestion':'Review\x20the\x20updated\x20local\x20Skill\x20metadata\x20before\x20the\x20next\x20push.'}];}
@@ -1 +1 @@
1
- function a54_0x174b(_0x29cc8c,_0x4155af){_0x29cc8c=_0x29cc8c-0xe1;const _0x114f57=a54_0x114f();let _0x174bcb=_0x114f57[_0x29cc8c];return _0x174bcb;}(function(_0x3555e5,_0x44bdd9){const _0x504c13=a54_0x174b,_0x1c8736=_0x3555e5();while(!![]){try{const _0x4a5124=parseInt(_0x504c13(0xeb))/0x1*(-parseInt(_0x504c13(0xea))/0x2)+parseInt(_0x504c13(0xec))/0x3+parseInt(_0x504c13(0xe9))/0x4+-parseInt(_0x504c13(0xef))/0x5+parseInt(_0x504c13(0xe1))/0x6+-parseInt(_0x504c13(0xe7))/0x7*(-parseInt(_0x504c13(0xed))/0x8)+-parseInt(_0x504c13(0xe6))/0x9*(-parseInt(_0x504c13(0xe8))/0xa);if(_0x4a5124===_0x44bdd9)break;else _0x1c8736['push'](_0x1c8736['shift']());}catch(_0x20d082){_0x1c8736['push'](_0x1c8736['shift']());}}}(a54_0x114f,0xd37fa));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x12cea7){const _0x295772=a54_0x174b,_0x44e14a=_0x12cea7[_0x295772(0xe3)]();if(!_0x44e14a||_0x44e14a===_0x295772(0xee))return[_0x295772(0xe5),_0x295772(0xf0)];if(_0x44e14a===_0x295772(0xe5)||_0x44e14a===_0x295772(0xf0))return[_0x44e14a];throw CliErrors[_0x295772(0xe2)](_0x295772(0xe4)+_0x12cea7);}export function normalizeListScope(_0x30cf6d){const _0x590c74=a54_0x174b,_0x392573=_0x30cf6d[_0x590c74(0xe3)]();if(!_0x392573)return'all';if(_0x392573===_0x590c74(0xe5)||_0x392573===_0x590c74(0xf0)||_0x392573==='all')return _0x392573;throw CliErrors[_0x590c74(0xe2)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x30cf6d);}export function shouldListScope(_0x113893,_0x554f33){const _0xf2578e=a54_0x174b;if(_0x113893===_0xf2578e(0xee))return!![];return _0x113893===_0x554f33;}export function listScopeToRuntimeScopes(_0x2cbe77){const _0x1680dd=a54_0x174b;if(_0x2cbe77==='all')return[_0x1680dd(0xe5),_0x1680dd(0xf0)];return[_0x2cbe77===_0x1680dd(0xf0)?_0x1680dd(0xf0):_0x2cbe77];}export function listScopeToRemoteScope(_0x3b3867){return _0x3b3867;}function a54_0x114f(){const _0x40b110=['2299413qouqLa','30992hXGFwZ','all','5375215XMIlxa','company','711264RnKpjU','validation','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','personal','279MFSEpP','1526DfuOqc','72110pbyucY','2417956CABRLP','616236YAhdaV','2OiRsVM'];a54_0x114f=function(){return _0x40b110;};return a54_0x114f();}
1
+ function a54_0x2a13(_0x18871a,_0x860837){_0x18871a=_0x18871a-0x75;const _0x3bff56=a54_0x3bff();let _0x2a13ac=_0x3bff56[_0x18871a];return _0x2a13ac;}(function(_0x2bb911,_0x2ada86){const _0x20132d=a54_0x2a13,_0x193417=_0x2bb911();while(!![]){try{const _0x42b105=parseInt(_0x20132d(0x80))/0x1*(-parseInt(_0x20132d(0x7a))/0x2)+-parseInt(_0x20132d(0x84))/0x3+parseInt(_0x20132d(0x76))/0x4+-parseInt(_0x20132d(0x78))/0x5*(parseInt(_0x20132d(0x79))/0x6)+-parseInt(_0x20132d(0x85))/0x7*(-parseInt(_0x20132d(0x7b))/0x8)+parseInt(_0x20132d(0x82))/0x9+parseInt(_0x20132d(0x77))/0xa*(parseInt(_0x20132d(0x83))/0xb);if(_0x42b105===_0x2ada86)break;else _0x193417['push'](_0x193417['shift']());}catch(_0x5b8cce){_0x193417['push'](_0x193417['shift']());}}}(a54_0x3bff,0x566c7));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1ddbb7){const _0x21b941=a54_0x2a13,_0x33b81a=_0x1ddbb7[_0x21b941(0x75)]();if(!_0x33b81a||_0x33b81a===_0x21b941(0x86))return[_0x21b941(0x7d),_0x21b941(0x7e)];if(_0x33b81a===_0x21b941(0x7d)||_0x33b81a===_0x21b941(0x7e))return[_0x33b81a];throw CliErrors[_0x21b941(0x7f)](_0x21b941(0x7c)+_0x1ddbb7);}export function normalizeListScope(_0x519947){const _0x10751a=a54_0x2a13,_0xbccd7c=_0x519947[_0x10751a(0x75)]();if(!_0xbccd7c)return'all';if(_0xbccd7c===_0x10751a(0x7d)||_0xbccd7c==='company'||_0xbccd7c==='all')return _0xbccd7c;throw CliErrors[_0x10751a(0x7f)](_0x10751a(0x81)+_0x519947);}export function shouldListScope(_0x596ecb,_0x5cd692){const _0x46bd2d=a54_0x2a13;if(_0x596ecb===_0x46bd2d(0x86))return!![];return _0x596ecb===_0x5cd692;}export function listScopeToRuntimeScopes(_0x2b7a26){const _0xc8aa45=a54_0x2a13;if(_0x2b7a26===_0xc8aa45(0x86))return[_0xc8aa45(0x7d),_0xc8aa45(0x7e)];return[_0x2b7a26==='company'?_0xc8aa45(0x7e):_0x2b7a26];}function a54_0x3bff(){const _0x208d54=['21tEPnyC','all','trim','1379352wbIilf','6910iAbBvi','10IEXWwY','827976JLfyqV','35730HgDiqs','1102408NVrTdp','Unsupported\x20Skill\x20sync\x20scope:\x20','personal','company','validation','7GZBYqg','Unsupported\x20Skill\x20list\x20scope:\x20','3028518PlQhAM','3091KaOJBM','1601628XqVppT'];a54_0x3bff=function(){return _0x208d54;};return a54_0x3bff();}export function listScopeToRemoteScope(_0x1d419e){return _0x1d419e;}
@@ -1 +1 @@
1
- function a55_0x418c(_0x2c9e63,_0x25c53c){_0x2c9e63=_0x2c9e63-0x1c2;var _0x579dc3=a55_0x579d();var _0x418c95=_0x579dc3[_0x2c9e63];return _0x418c95;}(function(_0x49024d,_0x5b035a){var _0x19e8d0=a55_0x418c,_0x3dddf5=_0x49024d();while(!![]){try{var _0x2afba6=-parseInt(_0x19e8d0(0x1cf))/0x1+-parseInt(_0x19e8d0(0x1c7))/0x2+parseInt(_0x19e8d0(0x1d2))/0x3*(-parseInt(_0x19e8d0(0x1c4))/0x4)+-parseInt(_0x19e8d0(0x1ca))/0x5*(parseInt(_0x19e8d0(0x1c5))/0x6)+-parseInt(_0x19e8d0(0x1d4))/0x7*(-parseInt(_0x19e8d0(0x1ce))/0x8)+-parseInt(_0x19e8d0(0x1d5))/0x9*(parseInt(_0x19e8d0(0x1cd))/0xa)+-parseInt(_0x19e8d0(0x1c3))/0xb*(-parseInt(_0x19e8d0(0x1c2))/0xc);if(_0x2afba6===_0x5b035a)break;else _0x3dddf5['push'](_0x3dddf5['shift']());}catch(_0x4177b3){_0x3dddf5['push'](_0x3dddf5['shift']());}}}(a55_0x579d,0x9ff9e));function a55_0x579d(){var _0x251b30=['18unbHio','cacheDir','scope','readonly','304104qjeUAD','1661iOGeTU','28SFWSMR','193530rjvnXW','dir','430746qtKDqG','metadataPath','skillCode','155bAZvDe','version','status','4851260LqkbrD','3464dsbxko','703199uZtUpJ','treeHash','appCode','122064XbJcNO','skillName','35CnxjdJ'];a55_0x579d=function(){return _0x251b30;};return a55_0x579d();}export function summarizeRuntimeSkill(_0x1a1294){var _0x45479e=a55_0x418c;return{'id':_0x1a1294['id'],'skillCode':_0x1a1294[_0x45479e(0x1c9)],'skillName':_0x1a1294['skillName'],'scope':_0x1a1294[_0x45479e(0x1d7)],'version':_0x1a1294[_0x45479e(0x1cb)],'readonly':_0x1a1294['readonly']};}export function summarizeLocalRuntimeSkill(_0x450da0){var _0x262b3e=a55_0x418c;return{'id':_0x450da0['id'],'skillCode':_0x450da0[_0x262b3e(0x1c9)],'skillName':_0x450da0[_0x262b3e(0x1d3)],'scope':_0x450da0[_0x262b3e(0x1d7)],'appCode':_0x450da0[_0x262b3e(0x1d1)],'version':_0x450da0['version'],'status':_0x450da0[_0x262b3e(0x1cc)],'readonly':_0x450da0[_0x262b3e(0x1d8)],'tags':_0x450da0['tags'],'dir':_0x450da0[_0x262b3e(0x1c6)],'cacheDir':_0x450da0[_0x262b3e(0x1d6)],'skillMdPath':_0x450da0['skillMdPath'],'metadataPath':_0x450da0[_0x262b3e(0x1c8)],'linkedPaths':_0x450da0['linkedPaths'],'contentHash':_0x450da0['contentHash'],'treeHash':_0x450da0[_0x262b3e(0x1d0)],'pulledAt':_0x450da0['pulledAt']};}
1
+ (function(_0x49812e,_0x5384e6){var _0x201b5c=a55_0x2d65,_0x4cd2bd=_0x49812e();while(!![]){try{var _0x28c515=parseInt(_0x201b5c(0x145))/0x1+parseInt(_0x201b5c(0x141))/0x2+parseInt(_0x201b5c(0x13f))/0x3*(-parseInt(_0x201b5c(0x146))/0x4)+-parseInt(_0x201b5c(0x13a))/0x5*(-parseInt(_0x201b5c(0x149))/0x6)+-parseInt(_0x201b5c(0x140))/0x7+parseInt(_0x201b5c(0x13e))/0x8+parseInt(_0x201b5c(0x143))/0x9*(-parseInt(_0x201b5c(0x144))/0xa);if(_0x28c515===_0x5384e6)break;else _0x4cd2bd['push'](_0x4cd2bd['shift']());}catch(_0x1201b5){_0x4cd2bd['push'](_0x4cd2bd['shift']());}}}(a55_0x3ca3,0x9be5c));function a55_0x3ca3(){var _0x42fca0=['149106lhgjBo','version','skillName','skillCode','20fWgSdT','skillMdPath','readonly','appCode','7916384nTEYFp','309TOSSaX','2841538qgzezB','890128PDszev','contentHash','14031muTMWl','5850jGhXiS','1208997dtrDwp','30544OtwTKi','metadataPath','linkedPaths'];a55_0x3ca3=function(){return _0x42fca0;};return a55_0x3ca3();}export function summarizeRuntimeSkill(_0x4c09e0){var _0x3f7e37=a55_0x2d65;return{'id':_0x4c09e0['id'],'skillCode':_0x4c09e0[_0x3f7e37(0x14c)],'skillName':_0x4c09e0['skillName'],'scope':_0x4c09e0['scope'],'version':_0x4c09e0[_0x3f7e37(0x14a)],'readonly':_0x4c09e0[_0x3f7e37(0x13c)]};}function a55_0x2d65(_0x14c494,_0x2f39a){_0x14c494=_0x14c494-0x13a;var _0x3ca329=a55_0x3ca3();var _0x2d65b0=_0x3ca329[_0x14c494];return _0x2d65b0;}export function summarizeLocalRuntimeSkill(_0x1f683f){var _0x13d918=a55_0x2d65;return{'id':_0x1f683f['id'],'skillCode':_0x1f683f[_0x13d918(0x14c)],'skillName':_0x1f683f[_0x13d918(0x14b)],'scope':_0x1f683f['scope'],'appCode':_0x1f683f[_0x13d918(0x13d)],'version':_0x1f683f[_0x13d918(0x14a)],'status':_0x1f683f['status'],'readonly':_0x1f683f['readonly'],'tags':_0x1f683f['tags'],'dir':_0x1f683f['dir'],'cacheDir':_0x1f683f['cacheDir'],'skillMdPath':_0x1f683f[_0x13d918(0x13b)],'metadataPath':_0x1f683f[_0x13d918(0x147)],'linkedPaths':_0x1f683f[_0x13d918(0x148)],'contentHash':_0x1f683f[_0x13d918(0x142)],'treeHash':_0x1f683f['treeHash'],'pulledAt':_0x1f683f['pulledAt']};}
@@ -1 +1 @@
1
- const a56_0x5048c2=a56_0x2ad0;(function(_0x3a3da0,_0x23ea55){const _0x1d09bd=a56_0x2ad0,_0x449afe=_0x3a3da0();while(!![]){try{const _0x6178a4=parseInt(_0x1d09bd(0x1b2))/0x1+parseInt(_0x1d09bd(0x1a7))/0x2*(parseInt(_0x1d09bd(0x1a1))/0x3)+parseInt(_0x1d09bd(0x1c2))/0x4*(parseInt(_0x1d09bd(0x1ac))/0x5)+-parseInt(_0x1d09bd(0x1a5))/0x6+-parseInt(_0x1d09bd(0x1c7))/0x7*(-parseInt(_0x1d09bd(0x1b0))/0x8)+-parseInt(_0x1d09bd(0x1c5))/0x9*(parseInt(_0x1d09bd(0x1b8))/0xa)+-parseInt(_0x1d09bd(0x1a9))/0xb*(parseInt(_0x1d09bd(0x1b9))/0xc);if(_0x6178a4===_0x23ea55)break;else _0x449afe['push'](_0x449afe['shift']());}catch(_0x3bb621){_0x449afe['push'](_0x449afe['shift']());}}}(a56_0x2881,0xd29ae));import{CliErrors}from'../../errors.js';function a56_0x2ad0(_0x3108ad,_0x9589be){_0x3108ad=_0x3108ad-0x1a1;const _0x28811a=a56_0x2881();let _0x2ad0db=_0x28811a[_0x3108ad];return _0x2ad0db;}export const SKILL_TYPES=[a56_0x5048c2(0x1bc),'read'];export const DEFAULT_SKILL_TARGET=a56_0x5048c2(0x1ae);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a56_0x5048c2(0x1bd);export const OUTPUT_CONTRACT_FILE=a56_0x5048c2(0x1c4);export function validateSkillName(_0x23b937){const _0x3e7873=a56_0x5048c2,_0x3f8551=_0x23b937['trim']();if(!SKILL_NAME_PATTERN[_0x3e7873(0x1b7)](_0x3f8551))throw CliErrors[_0x3e7873(0x1be)](_0x3e7873(0x1ad)+_0x23b937+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x3e7873(0x1af));return _0x3f8551;}export function normalizeSkillTemplateType(_0x387269){const _0x300912=a56_0x5048c2,_0x5c3c9d=(_0x387269||_0x300912(0x1bc))[_0x300912(0x1a3)]()||_0x300912(0x1bc);if(SKILL_TYPES[_0x300912(0x1bb)](_0x5c3c9d))return _0x5c3c9d;throw CliErrors[_0x300912(0x1be)]('Unsupported\x20Skill\x20type:\x20'+_0x387269,'Use\x20one\x20of:\x20'+SKILL_TYPES[_0x300912(0x1ba)](',\x20')+'.');}export function renderSkillTemplate(_0x587ee6){const _0x5b22c4=a56_0x5048c2,_0x418419=validateSkillName(_0x587ee6['skillName']),_0x39e12f=normalizeSkillTemplateType(_0x587ee6[_0x5b22c4(0x1b1)]),_0x14c5b2=_0x587ee6[_0x5b22c4(0x1b6)]??new Date()[_0x5b22c4(0x1c8)]();return{'skillName':_0x418419,'type':_0x39e12f,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x418419,_0x39e12f,_0x14c5b2)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x418419,_0x39e12f)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x418419,_0x39e12f)}]};}function renderSkillMd(_0x2f5cc4,_0x5783c1,_0x4cf8ae){const _0x140019=a56_0x5048c2,_0x50af5b=typeWorkflow(_0x5783c1);return _0x140019(0x1aa)+_0x2f5cc4+_0x140019(0x1c0)+_0x5783c1+'\x0a\x20\x20created:\x20\x22'+_0x4cf8ae+_0x140019(0x1b4)+_0x2f5cc4+_0x140019(0x1bf)+_0x50af5b+'\x0a\x0a'+businessStateSection(_0x5783c1)+_0x140019(0x1a6);}function renderRuntimeContract(_0x52ed8d,_0x44d225){const _0x7feed2=a56_0x5048c2,_0x33ec6b=_0x44d225===_0x7feed2(0x1bc)?_0x7feed2(0x1b3):'';return _0x7feed2(0x1ab)+_0x52ed8d+'\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='+_0x44d225+_0x7feed2(0x1c3)+_0x33ec6b+_0x7feed2(0x1a2);}function renderOutputContract(_0x46accb,_0x5ceb9b){const _0x4d5c2c=a56_0x5048c2,_0x1c25f7=_0x5ceb9b===_0x4d5c2c(0x1bc)?_0x4d5c2c(0x1c1):_0x5ceb9b+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return'#\x20Output\x20Contract\x0a\x0a'+_0x46accb+_0x4d5c2c(0x1a4)+_0x1c25f7+_0x4d5c2c(0x1a8);}function a56_0x2881(){const _0xef6bf7=['\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','references/output-contract.md','9fGlRlv','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','983458KjoQeQ','toISOString','1173imIHqQ','\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','trim','\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','5617494pyreKv','\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','7332sUdxAG','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','55mbxmDv','---\x0aname:\x20','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','5TUYVpi','Invalid\x20Skill\x20name:\x20','.agents/skills','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','24OKxRqX','type','1699087dDsSrv','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','read','timestamp','test','13386460GQlIEz','4155780OuQEMB','join','includes','write','references/runtime-contract.md','validation','\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应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','5260532MYTsdn'];a56_0x2881=function(){return _0xef6bf7;};return a56_0x2881();}function typeWorkflow(_0x4fdc99){const _0x3341f9=a56_0x5048c2;if(_0x4fdc99===_0x3341f9(0x1b5))return _0x3341f9(0x1c6);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x3de3f4){const _0x34bf74=a56_0x5048c2;if(_0x3de3f4!==_0x34bf74(0x1bc))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
1
+ const a56_0x449314=a56_0x2940;(function(_0x25f375,_0x4d8270){const _0x17ba68=a56_0x2940,_0x3d5379=_0x25f375();while(!![]){try{const _0x4c63d5=-parseInt(_0x17ba68(0x1a4))/0x1*(parseInt(_0x17ba68(0x18f))/0x2)+parseInt(_0x17ba68(0x19e))/0x3*(-parseInt(_0x17ba68(0x184))/0x4)+parseInt(_0x17ba68(0x17d))/0x5*(parseInt(_0x17ba68(0x189))/0x6)+-parseInt(_0x17ba68(0x186))/0x7*(parseInt(_0x17ba68(0x1a1))/0x8)+parseInt(_0x17ba68(0x1a0))/0x9+-parseInt(_0x17ba68(0x18b))/0xa+parseInt(_0x17ba68(0x183))/0xb*(parseInt(_0x17ba68(0x198))/0xc);if(_0x4c63d5===_0x4d8270)break;else _0x3d5379['push'](_0x3d5379['shift']());}catch(_0x3ba398){_0x3d5379['push'](_0x3d5379['shift']());}}}(a56_0x5a7d,0x1f863));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a56_0x449314(0x18c),a56_0x449314(0x193)];export const DEFAULT_SKILL_TARGET=a56_0x449314(0x195);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a56_0x2940(_0xcd296,_0x8d6486){_0xcd296=_0xcd296-0x17c;const _0x5a7d8f=a56_0x5a7d();let _0x294028=_0x5a7d8f[_0xcd296];return _0x294028;}export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a56_0x449314(0x181);function a56_0x5a7d(){const _0xbc4032=['1837233RJfxJN','10000wWdCSn','timestamp','includes','813qlWMUS','trim','join','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','\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','512895XBCHSg','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','toISOString','references/output-contract.md','validation','1879768CwPtCa','16wURnYk','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','378vldsNl','\x0a\x20\x20created:\x20\x22','skillName','6QbQQIN','SKILL.md','99940VpHEKm','write','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','type','126HIOuOv','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','read','\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=','.agents/skills','Unsupported\x20Skill\x20type:\x20','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','12SMcCwJ','---\x0aname:\x20','Invalid\x20Skill\x20name:\x20','Use\x20one\x20of:\x20','#\x20Output\x20Contract\x0a\x0a','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','164826oRErhA','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.'];a56_0x5a7d=function(){return _0xbc4032;};return a56_0x5a7d();}export function validateSkillName(_0x4a5e8d){const _0x556b58=a56_0x449314,_0x1ef930=_0x4a5e8d[_0x556b58(0x1a5)]();if(!SKILL_NAME_PATTERN['test'](_0x1ef930))throw CliErrors[_0x556b58(0x182)](_0x556b58(0x19a)+_0x4a5e8d+_0x556b58(0x19f),_0x556b58(0x18d));return _0x1ef930;}export function normalizeSkillTemplateType(_0x2f03a3){const _0x11e75e=a56_0x449314,_0x2b7ecf=(_0x2f03a3||_0x11e75e(0x18c))[_0x11e75e(0x1a5)]()||_0x11e75e(0x18c);if(SKILL_TYPES[_0x11e75e(0x1a3)](_0x2b7ecf))return _0x2b7ecf;throw CliErrors[_0x11e75e(0x182)](_0x11e75e(0x196)+_0x2f03a3,_0x11e75e(0x19b)+SKILL_TYPES[_0x11e75e(0x1a6)](',\x20')+'.');}export function renderSkillTemplate(_0xddb392){const _0x4a2063=a56_0x449314,_0x31201e=validateSkillName(_0xddb392[_0x4a2063(0x188)]),_0x197799=normalizeSkillTemplateType(_0xddb392[_0x4a2063(0x18e)]),_0x14b2ce=_0xddb392[_0x4a2063(0x1a2)]??new Date()[_0x4a2063(0x180)]();return{'skillName':_0x31201e,'type':_0x197799,'files':[{'path':_0x4a2063(0x18a),'content':renderSkillMd(_0x31201e,_0x197799,_0x14b2ce)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x31201e,_0x197799)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x31201e,_0x197799)}]};}function renderSkillMd(_0x17515f,_0x37f060,_0x59ea45){const _0x12a770=a56_0x449314,_0x588ef1=typeWorkflow(_0x37f060);return _0x12a770(0x199)+_0x17515f+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0a#\x20example:\x20\x22<填写一句用户可以直接说出的最简触发话术>\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x37f060+_0x12a770(0x187)+_0x59ea45+_0x12a770(0x17e)+_0x17515f+_0x12a770(0x192)+_0x588ef1+'\x0a\x0a'+businessStateSection(_0x37f060)+'\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';}function renderRuntimeContract(_0x32a75d,_0x169df7){const _0x3ba081=a56_0x449314,_0x2a23bf=_0x169df7===_0x3ba081(0x18c)?_0x3ba081(0x185):'';return _0x3ba081(0x17f)+_0x32a75d+_0x3ba081(0x194)+_0x169df7+_0x3ba081(0x191)+_0x2a23bf+_0x3ba081(0x19d);}function renderOutputContract(_0x3b0680,_0x267f4a){const _0x4304fb=a56_0x449314,_0x4104ea=_0x267f4a===_0x4304fb(0x18c)?_0x4304fb(0x197):_0x267f4a+_0x4304fb(0x190);return _0x4304fb(0x19c)+_0x3b0680+_0x4304fb(0x17c)+_0x4104ea+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x20f1b4){const _0x2faa3d=a56_0x449314;if(_0x20f1b4==='read')return _0x2faa3d(0x1a7);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x3ba4a9){const _0x135e17=a56_0x449314;if(_0x3ba4a9!==_0x135e17(0x18c))return'';return'##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】';}
@@ -1 +1 @@
1
- const a57_0x370d83=a57_0xd4dd;(function(_0x730a46,_0xd32133){const _0x588535=a57_0xd4dd,_0x24ba63=_0x730a46();while(!![]){try{const _0x1d55de=parseInt(_0x588535(0x198))/0x1*(parseInt(_0x588535(0x1c6))/0x2)+-parseInt(_0x588535(0x1c1))/0x3*(-parseInt(_0x588535(0x182))/0x4)+-parseInt(_0x588535(0x1c8))/0x5*(-parseInt(_0x588535(0x17f))/0x6)+-parseInt(_0x588535(0x18b))/0x7*(-parseInt(_0x588535(0x1cf))/0x8)+parseInt(_0x588535(0x1a7))/0x9*(parseInt(_0x588535(0x18d))/0xa)+parseInt(_0x588535(0x1c5))/0xb*(parseInt(_0x588535(0x1bd))/0xc)+-parseInt(_0x588535(0x1ba))/0xd;if(_0x1d55de===_0xd32133)break;else _0x24ba63['push'](_0x24ba63['shift']());}catch(_0x369e09){_0x24ba63['push'](_0x24ba63['shift']());}}}(a57_0x47c5,0xac2c5));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0xcdf607}from'yaml';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0x370d83(0x197),SUPPORTED_SKILL_TYPES=new Set(['write',a57_0x370d83(0x176)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x3a0816,_0x2fc231={}){const _0x230193=a57_0x370d83,_0x17082a=resolveSkillDirectoryRoot(_0x3a0816),_0x54b9f7=[],_0x5eb308=loadRequiredSkillFile(_0x17082a,_0x54b9f7),_0x48bc23=_0x5eb308?parseFrontmatter(_0x5eb308[_0x230193(0x1c4)]):{'hasFrontmatter':![]};_0x5eb308&&validateFrontmatter(_0x5eb308[_0x230193(0x19b)],_0x48bc23,_0x54b9f7);validateRuntimeCliReferences(_0x17082a,_0x54b9f7);const _0x1af8bd=_0x54b9f7[_0x230193(0x183)](_0x589385=>_0x589385[_0x230193(0x1ca)]==='error'),_0x3f71a7=_0x54b9f7['filter'](_0x571cb0=>_0x571cb0[_0x230193(0x1ca)]==='warning');return{'ok':_0x1af8bd[_0x230193(0x18e)]===0x0,'dir':_0x17082a,'type':_0x48bc23[_0x230193(0x1b7)],'errors':_0x1af8bd,'warnings':_0x3f71a7};}function resolveSkillDirectoryRoot(_0xf306c1){const _0x185430=a57_0x370d83,_0x11be4e=resolve(_0xf306c1);if(!existsSync(_0x11be4e))throw CliErrors[_0x185430(0x194)](_0x185430(0x1a8)+_0xf306c1);const _0x2e7b49=lstatSync(_0x11be4e);if(_0x2e7b49[_0x185430(0x1ac)]())return _0x11be4e;if(_0x2e7b49[_0x185430(0x17a)]()){const _0x3966ca=realpathSync(_0x11be4e);if(lstatSync(_0x3966ca)[_0x185430(0x1ac)]())return _0x3966ca;}throw CliErrors[_0x185430(0x194)](_0x185430(0x1a8)+_0xf306c1);}export function throwIfSkillValidationFailed(_0x2d792c,_0x4a39a1=![]){const _0x1dc445=a57_0x370d83;if(_0x2d792c['ok'])return;const _0x3cdf25=_0x2d792c['errors'][_0x1dc445(0x1aa)](_0x981cc7=>{const _0x1a2872=_0x1dc445,_0xae8ffc=_0x981cc7[_0x1a2872(0x19d)]?'#'+_0x981cc7[_0x1a2872(0x19d)]:'';return _0x981cc7[_0x1a2872(0x1ca)][_0x1a2872(0x185)]()+'\x20'+_0x981cc7[_0x1a2872(0x1b0)]+'\x20'+_0x981cc7['file']+_0xae8ffc+':\x20'+_0x981cc7['message']+_0x1a2872(0x1c2)+_0x981cc7[_0x1a2872(0x1ad)];});throw CliErrors[_0x1dc445(0x194)](_0x1dc445(0x186)+_0x3cdf25['join']('\x0a'),_0x1dc445(0x1d1));}function loadRequiredSkillFile(_0x5a9986,_0x470342){const _0x3906e8=a57_0x370d83,_0x284f09=resolve(_0x5a9986,SKILL_FILE);if(!existsSync(_0x284f09))return _0x470342['push'](issue(_0x3906e8(0x1b8),_0x3906e8(0x1b2),SKILL_FILE,'Missing\x20SKILL.md.',_0x3906e8(0x1a3))),undefined;const _0x119385=lstatSync(_0x284f09);if(_0x119385['isSymbolicLink']())return _0x470342[_0x3906e8(0x1a1)](issue('error',_0x3906e8(0x1b2),SKILL_FILE,_0x3906e8(0x19e),_0x3906e8(0x196))),undefined;if(!_0x119385['isFile']())return _0x470342[_0x3906e8(0x1a1)](issue(_0x3906e8(0x1b8),_0x3906e8(0x1b2),SKILL_FILE,_0x3906e8(0x19f),_0x3906e8(0x180))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x284f09,_0x3906e8(0x1a6))};}function validateFrontmatter(_0xc49c98,_0x571eff,_0x55c312){const _0xd185e5=a57_0x370d83;if(!_0x571eff[_0xd185e5(0x18f)]){_0x55c312[_0xd185e5(0x1a1)](issue(_0xd185e5(0x1b8),_0xd185e5(0x178),_0xc49c98,_0xd185e5(0x188),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x571eff['name']?.['trim']()&&_0x55c312[_0xd185e5(0x1a1)](issue(_0xd185e5(0x1b8),_0xd185e5(0x178),_0xc49c98,_0xd185e5(0x1ae),_0xd185e5(0x1a2))),!_0x571eff[_0xd185e5(0x19a)]?.[_0xd185e5(0x177)]()&&_0x55c312[_0xd185e5(0x1a1)](issue(_0xd185e5(0x1c3),_0xd185e5(0x1a4),_0xc49c98,_0xd185e5(0x1c7),_0xd185e5(0x193))),!_0x571eff[_0xd185e5(0x1a9)]?.[_0xd185e5(0x177)]()&&_0x55c312[_0xd185e5(0x1a1)](issue('warning',_0xd185e5(0x1d2),_0xc49c98,'Frontmatter\x20example\x20is\x20missing.',_0xd185e5(0x1bb))),!_0x571eff[_0xd185e5(0x1d0)]?.['trim']()&&_0x55c312[_0xd185e5(0x1a1)](issue(_0xd185e5(0x1b8),_0xd185e5(0x1a0),_0xc49c98,'Frontmatter\x20description\x20is\x20empty.',_0xd185e5(0x19c))),_0x571eff['internal']===!![]&&_0x55c312['push'](issue('error','internal-skill',_0xc49c98,_0xd185e5(0x1b3),_0xd185e5(0x17e))),_0x571eff[_0xd185e5(0x1b7)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0xd185e5(0x195)](_0x571eff[_0xd185e5(0x1b7)])&&_0x55c312[_0xd185e5(0x1a1)](issue(_0xd185e5(0x1b8),_0xd185e5(0x178),_0xc49c98,_0xd185e5(0x181),_0xd185e5(0x1bc)));}function validateRuntimeCliReferences(_0x27e3eb,_0x4d7290){const _0x43dea7=a57_0x370d83;for(const _0x5dcd38 of findRabetbaseCliInvocations(_0x27e3eb)){_0x4d7290[_0x43dea7(0x1a1)](issue(_0x43dea7(0x1c3),_0x43dea7(0x1b5),_0x5dcd38['file'],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x5dcd38['line']));}}function a57_0x47c5(){const _0x28bb77=['isSymbolicLink','isArray','app','string','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','833388bCuMOs','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.','8cFrVNQ','filter','name','toUpperCase','Skill\x20validation\x20failed:\x0a','search','SKILL.md\x20must\x20start\x20with\x20frontmatter.','object','match','1799bykUQO','join','40KdFMiq','length','hasFrontmatter','project','split','raw','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.','validation','has','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','SKILL.md','547yigCej','test','displayName','path','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','section','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','SKILL.md\x20is\x20not\x20a\x20file.','description-required','push','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','display-name-recommended','boolean','utf8','94851irKwpN','Skill\x20directory\x20not\x20found:\x20','example','map','page','isDirectory','suggestion','Frontmatter\x20name\x20is\x20missing.','metadata','ruleId','logs','structure-complete','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','workspace','rabetbase-cli-reference','config','type','error','false','17164524CwQEmV','Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.','Set\x20metadata.type\x20to\x20write\x20or\x20read.','10716NXQfXP','auth','service','slice','962691PdeLKD','\x20Fix:\x20','warning','content','4983UOUIEL','2186cNLXkq','Frontmatter\x20displayName\x20is\x20missing.','10aPZBnW','sql','level','internal','true','flatMap','number','1912wUSvKn','description','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','example-recommended','bff','read','trim','frontmatter-required','toLowerCase'];a57_0x47c5=function(){return _0x28bb77;};return a57_0x47c5();}function findRabetbaseCliInvocations(_0x4c090c){const _0x36ac68=a57_0x370d83;return scanSkillDirectory(_0x4c090c)[_0x36ac68(0x183)](_0x29176b=>TEXT_SKILL_FILE_PATTERN[_0x36ac68(0x199)](_0x29176b['path']))[_0x36ac68(0x1cd)](_0x1872b4=>{const _0x4eb560=_0x36ac68,_0x5897fe=fileText(_0x1872b4);return _0x5897fe[_0x4eb560(0x191)](/\r?\n/)[_0x4eb560(0x1aa)]((_0x55d689,_0xafe2cd)=>({'file':_0x1872b4[_0x4eb560(0x19b)],'line':_0xafe2cd+0x1,'text':_0x55d689}))[_0x4eb560(0x183)](({text:_0x55f694})=>isRabetbaseCliInvocation(_0x55f694))['map'](({file:_0x4b3d07,line:_0x8a0c1a})=>({'file':_0x4b3d07,'line':_0x8a0c1a}));});}function a57_0xd4dd(_0x445793,_0x106608){_0x445793=_0x445793-0x175;const _0x47c57a=a57_0x47c5();let _0xd4dd78=_0x47c57a[_0x445793];return _0xd4dd78;}const RABETBASE_SUBCOMMANDS=['dataset',a57_0x370d83(0x1c9),a57_0x370d83(0x175),a57_0x370d83(0x1ab),a57_0x370d83(0x190),a57_0x370d83(0x17c),'schema',a57_0x370d83(0x1bf),'artifact','kb',a57_0x370d83(0x1b6),a57_0x370d83(0x1b4),'data',a57_0x370d83(0x1be),a57_0x370d83(0x1b1),'registry'],RABETBASE_INVOCATION=new RegExp(String[a57_0x370d83(0x192)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a57_0x370d83(0x18c)]('|')})\b`+String[a57_0x370d83(0x192)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x25e8e4){const _0x44cd5d=a57_0x370d83,_0x2de8da=_0x25e8e4[_0x44cd5d(0x187)](/\brabetbase\b/i);if(_0x2de8da<0x0)return![];const _0x54d346=_0x25e8e4[_0x44cd5d(0x1c0)](_0x2de8da)[_0x44cd5d(0x191)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x44cd5d(0x199)](_0x54d346);}function parseFrontmatter(_0x3d4995){const _0x485cf7=a57_0x370d83,_0x539753=_0x3d4995[_0x485cf7(0x18a)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x539753)return{'hasFrontmatter':![]};const _0x4d5836=_0x539753[0x1]??'',_0x42a117={'hasFrontmatter':!![]};let _0x34cd6f;try{_0x34cd6f=a57_0xcdf607(_0x4d5836);}catch{return _0x42a117;}const _0x45452f=asRecord(_0x34cd6f);if(!_0x45452f)return _0x42a117;_0x42a117[_0x485cf7(0x184)]=scalarToString(_0x45452f[_0x485cf7(0x184)]),_0x42a117[_0x485cf7(0x19a)]=scalarToString(_0x45452f['displayName']),_0x42a117['description']=scalarToString(_0x45452f[_0x485cf7(0x1d0)]),_0x42a117[_0x485cf7(0x1a9)]=scalarToString(_0x45452f['example']);const _0x57cb0d=asRecord(_0x45452f[_0x485cf7(0x1af)]);return _0x57cb0d&&(_0x42a117['type']=scalarToString(_0x57cb0d['type']),_0x42a117['internal']=scalarToBoolean(_0x57cb0d[_0x485cf7(0x1cb)])),_0x42a117;}function asRecord(_0x243f81){const _0x3643b2=a57_0x370d83;if(_0x243f81&&typeof _0x243f81===_0x3643b2(0x189)&&!Array[_0x3643b2(0x17b)](_0x243f81))return _0x243f81;return undefined;}function scalarToString(_0x51e77e){const _0x4a1a24=a57_0x370d83;if(typeof _0x51e77e===_0x4a1a24(0x17d))return _0x51e77e['trim']();if(typeof _0x51e77e===_0x4a1a24(0x1ce)||typeof _0x51e77e==='boolean')return String(_0x51e77e);return undefined;}function scalarToBoolean(_0x1d2b7b){const _0x309af3=a57_0x370d83;if(typeof _0x1d2b7b===_0x309af3(0x1a5))return _0x1d2b7b;if(typeof _0x1d2b7b==='string')return cleanBoolean(_0x1d2b7b);return undefined;}function cleanBoolean(_0x328745){const _0x18c4af=a57_0x370d83,_0x3890a6=_0x328745[_0x18c4af(0x177)]()[_0x18c4af(0x179)]();if(_0x3890a6===_0x18c4af(0x1cc))return!![];if(_0x3890a6===_0x18c4af(0x1b9))return![];return undefined;}function issue(_0x2d43a5,_0x611eb5,_0x373832,_0xd6c63a,_0x5d7499,_0x471646){return{'level':_0x2d43a5,'ruleId':_0x611eb5,'file':_0x373832,'section':_0x471646,'message':_0xd6c63a,'suggestion':_0x5d7499};}
1
+ const a57_0xd6665f=a57_0x23c3;(function(_0x934207,_0x47f4f1){const _0xa59020=a57_0x23c3,_0xe93ada=_0x934207();while(!![]){try{const _0x13ba1a=parseInt(_0xa59020(0xa9))/0x1*(-parseInt(_0xa59020(0xaf))/0x2)+parseInt(_0xa59020(0xac))/0x3+-parseInt(_0xa59020(0xb4))/0x4*(parseInt(_0xa59020(0xb8))/0x5)+-parseInt(_0xa59020(0x100))/0x6*(parseInt(_0xa59020(0xbc))/0x7)+parseInt(_0xa59020(0xc2))/0x8+parseInt(_0xa59020(0xea))/0x9*(-parseInt(_0xa59020(0xe6))/0xa)+-parseInt(_0xa59020(0xb7))/0xb*(-parseInt(_0xa59020(0xc4))/0xc);if(_0x13ba1a===_0x47f4f1)break;else _0xe93ada['push'](_0xe93ada['shift']());}catch(_0x1ab799){_0xe93ada['push'](_0xe93ada['shift']());}}}(a57_0x29a3,0xce3d2));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{parse as a57_0x5245ba}from'yaml';function a57_0x23c3(_0x58e5e2,_0x14587d){_0x58e5e2=_0x58e5e2-0xa9;const _0x29a3f0=a57_0x29a3();let _0x23c3fa=_0x29a3f0[_0x58e5e2];return _0x23c3fa;}import{CliErrors}from'../../errors.js';function a57_0x29a3(){const _0x44c76b=['path','ruleId','push','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','artifact','display-name-recommended','data','9078uDtHfP','529HWdjsW','validation','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','1929087wfaMsW','description','logs','422nGkRid','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','split','description-required','page','4iJXwFl','suggestion','auth','27610242IJVGxz','6816770EQnSKd','has','boolean','internal-skill','2163LfSRPy','SKILL.md','Set\x20metadata.type\x20to\x20write\x20or\x20read.','error','registry','sql','2172648hmQFVJ','level','12aSoEJd','section','displayName','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','false','file','isArray','errors','length','filter','Missing\x20SKILL.md.','true','type','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','content','example-recommended','trim','bff','dataset','name','Frontmatter\x20description\x20is\x20empty.','flatMap','raw','warning','app','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','search','string','internal','Skill\x20validation\x20failed:\x0a','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Frontmatter\x20example\x20is\x20missing.','40yKzzWq','structure-complete','object','isSymbolicLink','1434123NwdIZI','\x20Fix:\x20','schema','read','toLowerCase','Skill\x20directory\x20not\x20found:\x20','test','isFile','config','example','frontmatter-required','line','message','isDirectory','map'];a57_0x29a3=function(){return _0x44c76b;};return a57_0x29a3();}import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a57_0xd6665f(0xbd),SUPPORTED_SKILL_TYPES=new Set(['write',a57_0xd6665f(0xed)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x3536fb,_0xefdf48={}){const _0x448149=a57_0xd6665f,_0x321a05=resolveSkillDirectoryRoot(_0x3536fb),_0x884491=[],_0x51835e=loadRequiredSkillFile(_0x321a05,_0x884491),_0x578706=_0x51835e?parseFrontmatter(_0x51835e[_0x448149(0xd4)]):{'hasFrontmatter':![]};_0x51835e&&validateFrontmatter(_0x51835e['path'],_0x578706,_0x884491);validateRuntimeCliReferences(_0x321a05,_0x884491);const _0x163c96=_0x884491[_0x448149(0xcd)](_0x12233f=>_0x12233f['level']==='error'),_0x5a7c60=_0x884491[_0x448149(0xcd)](_0x2245ac=>_0x2245ac['level']===_0x448149(0xdd));return{'ok':_0x163c96[_0x448149(0xcc)]===0x0,'dir':_0x321a05,'type':_0x578706[_0x448149(0xd0)],'errors':_0x163c96,'warnings':_0x5a7c60};}function resolveSkillDirectoryRoot(_0x58a604){const _0x2a39e0=a57_0xd6665f,_0x5d4bee=resolve(_0x58a604);if(!existsSync(_0x5d4bee))throw CliErrors[_0x2a39e0(0xaa)](_0x2a39e0(0xef)+_0x58a604);const _0x499c36=lstatSync(_0x5d4bee);if(_0x499c36[_0x2a39e0(0xf7)]())return _0x5d4bee;if(_0x499c36['isSymbolicLink']()){const _0x4f8f0b=realpathSync(_0x5d4bee);if(lstatSync(_0x4f8f0b)['isDirectory']())return _0x4f8f0b;}throw CliErrors[_0x2a39e0(0xaa)](_0x2a39e0(0xef)+_0x58a604);}export function throwIfSkillValidationFailed(_0x59610c,_0x3b3d6f=![]){const _0x4214b1=a57_0xd6665f;if(_0x59610c['ok'])return;const _0x339dc8=_0x59610c[_0x4214b1(0xcb)][_0x4214b1(0xf8)](_0x40d753=>{const _0x3d1e69=_0x4214b1,_0x3b4f97=_0x40d753[_0x3d1e69(0xc5)]?'#'+_0x40d753['section']:'';return _0x40d753[_0x3d1e69(0xc3)]['toUpperCase']()+'\x20'+_0x40d753[_0x3d1e69(0xfa)]+'\x20'+_0x40d753[_0x3d1e69(0xc9)]+_0x3b4f97+':\x20'+_0x40d753[_0x3d1e69(0xf6)]+_0x3d1e69(0xeb)+_0x40d753[_0x3d1e69(0xb5)];});throw CliErrors['validation'](_0x4214b1(0xe3)+_0x339dc8['join']('\x0a'),_0x4214b1(0xb0));}function loadRequiredSkillFile(_0x483475,_0xbf71a9){const _0x1057c7=a57_0xd6665f,_0x54f3b3=resolve(_0x483475,SKILL_FILE);if(!existsSync(_0x54f3b3))return _0xbf71a9[_0x1057c7(0xfb)](issue('error',_0x1057c7(0xe7),SKILL_FILE,_0x1057c7(0xce),'Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;const _0x1edaa0=lstatSync(_0x54f3b3);if(_0x1edaa0[_0x1057c7(0xe9)]())return _0xbf71a9['push'](issue(_0x1057c7(0xbf),_0x1057c7(0xe7),SKILL_FILE,_0x1057c7(0xc7),_0x1057c7(0xdf))),undefined;if(!_0x1edaa0[_0x1057c7(0xf1)]())return _0xbf71a9[_0x1057c7(0xfb)](issue(_0x1057c7(0xbf),'structure-complete',SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x1057c7(0xd1))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x54f3b3,'utf8')};}function validateFrontmatter(_0x27e91b,_0x383f5e,_0x4024f4){const _0x58d933=a57_0xd6665f;if(!_0x383f5e['hasFrontmatter']){_0x4024f4[_0x58d933(0xfb)](issue(_0x58d933(0xbf),_0x58d933(0xf4),_0x27e91b,_0x58d933(0xe4),'Add\x20frontmatter\x20with\x20name\x20and\x20description.'));return;}!_0x383f5e[_0x58d933(0xd9)]?.[_0x58d933(0xd6)]()&&_0x4024f4[_0x58d933(0xfb)](issue(_0x58d933(0xbf),_0x58d933(0xf4),_0x27e91b,'Frontmatter\x20name\x20is\x20missing.','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x383f5e['displayName']?.[_0x58d933(0xd6)]()&&_0x4024f4['push'](issue(_0x58d933(0xdd),_0x58d933(0xfe),_0x27e91b,'Frontmatter\x20displayName\x20is\x20missing.','Set\x20displayName\x20to\x20the\x20human-readable\x20Skill\x20name\x20shown\x20in\x20SkillHub.')),!_0x383f5e[_0x58d933(0xf3)]?.['trim']()&&_0x4024f4['push'](issue('warning',_0x58d933(0xd5),_0x27e91b,_0x58d933(0xe5),'Set\x20example\x20to\x20one\x20short\x20user\x20message\x20that\x20can\x20directly\x20trigger\x20this\x20Skill.')),!_0x383f5e[_0x58d933(0xad)]?.[_0x58d933(0xd6)]()&&_0x4024f4[_0x58d933(0xfb)](issue(_0x58d933(0xbf),_0x58d933(0xb2),_0x27e91b,_0x58d933(0xda),_0x58d933(0xab))),_0x383f5e['internal']===!![]&&_0x4024f4[_0x58d933(0xfb)](issue('error',_0x58d933(0xbb),_0x27e91b,_0x58d933(0xfc),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x383f5e[_0x58d933(0xd0)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x58d933(0xb9)](_0x383f5e['type'])&&_0x4024f4[_0x58d933(0xfb)](issue(_0x58d933(0xbf),_0x58d933(0xf4),_0x27e91b,'metadata.type\x20must\x20be\x20one\x20of\x20write\x20or\x20read.',_0x58d933(0xbe)));}function validateRuntimeCliReferences(_0x1ed432,_0xc4cd23){const _0x3d4650=a57_0xd6665f;for(const _0xe7aab of findRabetbaseCliInvocations(_0x1ed432)){_0xc4cd23['push'](issue('warning','rabetbase-cli-reference',_0xe7aab[_0x3d4650(0xc9)],_0x3d4650(0xd2),_0x3d4650(0xd3),'L'+_0xe7aab[_0x3d4650(0xf5)]));}}function findRabetbaseCliInvocations(_0x114552){const _0xa02341=a57_0xd6665f;return scanSkillDirectory(_0x114552)[_0xa02341(0xcd)](_0x988179=>TEXT_SKILL_FILE_PATTERN['test'](_0x988179[_0xa02341(0xf9)]))[_0xa02341(0xdb)](_0x3f2d88=>{const _0x244d66=_0xa02341,_0x8999a0=fileText(_0x3f2d88);return _0x8999a0[_0x244d66(0xb1)](/\r?\n/)[_0x244d66(0xf8)]((_0x4adc1d,_0x4015a0)=>({'file':_0x3f2d88[_0x244d66(0xf9)],'line':_0x4015a0+0x1,'text':_0x4adc1d}))[_0x244d66(0xcd)](({text:_0x40ea55})=>isRabetbaseCliInvocation(_0x40ea55))[_0x244d66(0xf8)](({file:_0x38a13e,line:_0x368616})=>({'file':_0x38a13e,'line':_0x368616}));});}const RABETBASE_SUBCOMMANDS=[a57_0xd6665f(0xd8),a57_0xd6665f(0xc1),a57_0xd6665f(0xd7),a57_0xd6665f(0xb3),'project',a57_0xd6665f(0xde),a57_0xd6665f(0xec),'service',a57_0xd6665f(0xfd),'kb',a57_0xd6665f(0xf2),'workspace',a57_0xd6665f(0xff),a57_0xd6665f(0xb6),a57_0xd6665f(0xae),a57_0xd6665f(0xc0)],RABETBASE_INVOCATION=new RegExp(String[a57_0xd6665f(0xdc)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a57_0xd6665f(0xdc)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x6c4b38){const _0x17f938=a57_0xd6665f,_0x208431=_0x6c4b38[_0x17f938(0xe0)](/\brabetbase\b/i);if(_0x208431<0x0)return![];const _0x121d97=_0x6c4b38['slice'](_0x208431)[_0x17f938(0xb1)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x17f938(0xf0)](_0x121d97);}function parseFrontmatter(_0x249da4){const _0x299ab3=a57_0xd6665f,_0x2ce00f=_0x249da4['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x2ce00f)return{'hasFrontmatter':![]};const _0x3d7418=_0x2ce00f[0x1]??'',_0x18c22c={'hasFrontmatter':!![]};let _0x28ea26;try{_0x28ea26=a57_0x5245ba(_0x3d7418);}catch{return _0x18c22c;}const _0x12fc9a=asRecord(_0x28ea26);if(!_0x12fc9a)return _0x18c22c;_0x18c22c[_0x299ab3(0xd9)]=scalarToString(_0x12fc9a[_0x299ab3(0xd9)]),_0x18c22c['displayName']=scalarToString(_0x12fc9a[_0x299ab3(0xc6)]),_0x18c22c[_0x299ab3(0xad)]=scalarToString(_0x12fc9a[_0x299ab3(0xad)]),_0x18c22c[_0x299ab3(0xf3)]=scalarToString(_0x12fc9a[_0x299ab3(0xf3)]);const _0x15ac27=asRecord(_0x12fc9a['metadata']);return _0x15ac27&&(_0x18c22c[_0x299ab3(0xd0)]=scalarToString(_0x15ac27['type']),_0x18c22c[_0x299ab3(0xe2)]=scalarToBoolean(_0x15ac27[_0x299ab3(0xe2)])),_0x18c22c;}function asRecord(_0x13cb18){const _0xdd7515=a57_0xd6665f;if(_0x13cb18&&typeof _0x13cb18===_0xdd7515(0xe8)&&!Array[_0xdd7515(0xca)](_0x13cb18))return _0x13cb18;return undefined;}function scalarToString(_0xd24590){const _0x12e771=a57_0xd6665f;if(typeof _0xd24590==='string')return _0xd24590[_0x12e771(0xd6)]();if(typeof _0xd24590==='number'||typeof _0xd24590===_0x12e771(0xba))return String(_0xd24590);return undefined;}function scalarToBoolean(_0x4ab471){const _0x4e8cf8=a57_0xd6665f;if(typeof _0x4ab471==='boolean')return _0x4ab471;if(typeof _0x4ab471===_0x4e8cf8(0xe1))return cleanBoolean(_0x4ab471);return undefined;}function cleanBoolean(_0x2fbc97){const _0x5cd210=a57_0xd6665f,_0xc3b1b9=_0x2fbc97[_0x5cd210(0xd6)]()[_0x5cd210(0xee)]();if(_0xc3b1b9===_0x5cd210(0xcf))return!![];if(_0xc3b1b9===_0x5cd210(0xc8))return![];return undefined;}function issue(_0x4b0316,_0xf90eb8,_0xd5940d,_0x464ec3,_0x30c4e5,_0x27cc68){return{'level':_0x4b0316,'ruleId':_0xf90eb8,'file':_0xd5940d,'section':_0x27cc68,'message':_0x464ec3,'suggestion':_0x30c4e5};}
@@ -1 +1 @@
1
- const a58_0x5ebe64=a58_0x30fe;(function(_0x402509,_0x8118ee){const _0x2e1cfe=a58_0x30fe,_0x18186e=_0x402509();while(!![]){try{const _0x159698=parseInt(_0x2e1cfe(0xf3))/0x1+parseInt(_0x2e1cfe(0xfc))/0x2+parseInt(_0x2e1cfe(0xfb))/0x3*(-parseInt(_0x2e1cfe(0xff))/0x4)+-parseInt(_0x2e1cfe(0x104))/0x5+parseInt(_0x2e1cfe(0xfe))/0x6+-parseInt(_0x2e1cfe(0xf5))/0x7*(-parseInt(_0x2e1cfe(0x105))/0x8)+-parseInt(_0x2e1cfe(0x106))/0x9;if(_0x159698===_0x8118ee)break;else _0x18186e['push'](_0x18186e['shift']());}catch(_0x21795b){_0x18186e['push'](_0x18186e['shift']());}}}(a58_0x2a15,0xe6703));function a58_0x30fe(_0x4c066f,_0x331f0a){_0x4c066f=_0x4c066f-0xf3;const _0x2a15af=a58_0x2a15();let _0x30fef8=_0x2a15af[_0x4c066f];return _0x30fef8;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a58_0x2a15(){const _0x55245f=['bool','verbose','sqlContent','dbId','8020640wniMvZ','6204776XapqCz','23541093kwolRR','1100586HIoajL','appCode','14IoRnlK','sqlcode','str','sqlName','sqlCode','detail','9tLCVMl','3642424zAYJcK','sql','6753750djawLe','579916bHpOWz'];a58_0x2a15=function(){return _0x55245f;};return a58_0x2a15();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a58_0x5ebe64(0xfd),'command':a58_0x5ebe64(0xfa),'description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x3112bc){const _0x56b517=a58_0x5ebe64,_0x25d654=await getSqlQueryInfo(_0x3112bc[_0x56b517(0xf4)],_0x3112bc[_0x56b517(0xf7)](_0x56b517(0xf6))),_0x8e8338=_0x3112bc[_0x56b517(0x100)](_0x56b517(0x101));if(_0x8e8338)return{'ok':!![],'data':_0x25d654};const _0x528d86=_0x25d654[_0x56b517(0x103)]?await getDbName(_0x3112bc['appCode'],_0x25d654['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x25d654[_0x56b517(0xf9)],'sqlName':_0x25d654[_0x56b517(0xf8)],'db':_0x528d86?_0x528d86+'\x20('+_0x25d654[_0x56b517(0x103)]+')':_0x25d654[_0x56b517(0x103)]??'','sqlContent':_0x25d654[_0x56b517(0x102)]??''}};}};
1
+ const a58_0x1e3917=a58_0x4bbe;(function(_0x451b48,_0x3538e5){const _0x2435c7=a58_0x4bbe,_0x34d183=_0x451b48();while(!![]){try{const _0x4065f0=parseInt(_0x2435c7(0x1e8))/0x1+parseInt(_0x2435c7(0x1e7))/0x2+parseInt(_0x2435c7(0x1f7))/0x3+-parseInt(_0x2435c7(0x1f6))/0x4*(-parseInt(_0x2435c7(0x1f0))/0x5)+parseInt(_0x2435c7(0x1ee))/0x6*(-parseInt(_0x2435c7(0x1f2))/0x7)+-parseInt(_0x2435c7(0x1ef))/0x8+-parseInt(_0x2435c7(0x1ed))/0x9*(-parseInt(_0x2435c7(0x1f4))/0xa);if(_0x4065f0===_0x3538e5)break;else _0x34d183['push'](_0x34d183['shift']());}catch(_0x4778d5){_0x34d183['push'](_0x34d183['shift']());}}}(a58_0x2c41,0xa7246));function a58_0x4bbe(_0x131e69,_0x432667){_0x131e69=_0x131e69-0x1e7;const _0x2c4120=a58_0x2c41();let _0x4bbe98=_0x2c4120[_0x131e69];return _0x4bbe98;}function a58_0x2c41(){const _0x16d60c=['verbose','4QhsIYL','1248402YfHsmm','854942RdxHQr','535469nmHSDx','detail','sqlCode','sql','bool','18kTTZYv','211290IJXxZZ','9315864LlTWLY','1183095GWheLw','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','210UNAohM','str','6449270cySmzX'];a58_0x2c41=function(){return _0x16d60c;};return a58_0x2c41();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a58_0x1e3917(0x1eb),'command':a58_0x1e3917(0x1e9),'description':a58_0x1e3917(0x1f1),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x42995c){const _0x2e6189=a58_0x1e3917,_0x53d3ca=await getSqlQueryInfo(_0x42995c['appCode'],_0x42995c[_0x2e6189(0x1f3)]('sqlcode')),_0x16262c=_0x42995c[_0x2e6189(0x1ec)](_0x2e6189(0x1f5));if(_0x16262c)return{'ok':!![],'data':_0x53d3ca};const _0x1b90ca=_0x53d3ca['dbId']?await getDbName(_0x42995c['appCode'],_0x53d3ca['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x53d3ca[_0x2e6189(0x1ea)],'sqlName':_0x53d3ca['sqlName'],'db':_0x1b90ca?_0x1b90ca+'\x20('+_0x53d3ca['dbId']+')':_0x53d3ca['dbId']??'','sqlContent':_0x53d3ca['sqlContent']??''}};}};
@@ -1 +1 @@
1
- const a59_0x5d89a7=a59_0x2b36;(function(_0x123bcb,_0x4e387d){const _0x1528c1=a59_0x2b36,_0x51e348=_0x123bcb();while(!![]){try{const _0x487d88=parseInt(_0x1528c1(0x96))/0x1*(parseInt(_0x1528c1(0x8c))/0x2)+parseInt(_0x1528c1(0x91))/0x3+-parseInt(_0x1528c1(0x8a))/0x4*(-parseInt(_0x1528c1(0x8e))/0x5)+parseInt(_0x1528c1(0x9b))/0x6+-parseInt(_0x1528c1(0x9d))/0x7*(-parseInt(_0x1528c1(0x92))/0x8)+parseInt(_0x1528c1(0x8b))/0x9*(-parseInt(_0x1528c1(0x90))/0xa)+parseInt(_0x1528c1(0x95))/0xb*(-parseInt(_0x1528c1(0x97))/0xc);if(_0x487d88===_0x4e387d)break;else _0x51e348['push'](_0x51e348['shift']());}catch(_0x4a2433){_0x51e348['push'](_0x51e348['shift']());}}}(a59_0x3b80,0x5d89c));function a59_0x2b36(_0x389915,_0xde9b8e){_0x389915=_0x389915-0x86;const _0x3b8074=a59_0x3b80();let _0x2b36e0=_0x3b8074[_0x389915];return _0x2b36e0;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a59_0x5d89a7(0x87),'command':'exec','description':a59_0x5d89a7(0x9e),'risk':a59_0x5d89a7(0x93),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x48376d){const _0x4f63c6=a59_0x5d89a7,_0x654523=parseJsonParams(_0x48376d[_0x4f63c6(0x9c)](_0x4f63c6(0x89))),_0x7a7ded=Date[_0x4f63c6(0x99)](),_0xc23437=await executeSdkSql(_0x48376d[_0x4f63c6(0x9c)]('sqlcode'),_0x654523),_0x2e4eec=Date[_0x4f63c6(0x99)]()-_0x7a7ded,_0x468dc8=_0xc23437?.[_0x4f63c6(0x8f)]??_0xc23437,_0x2a37d1=_0xc23437?.[_0x4f63c6(0x98)]??!![];if(!_0x2a37d1)return{'ok':![],'data':{'error':_0xc23437?.['execError']||_0x4f63c6(0x9a),'elapsed':_0x2e4eec},'message':'SQL\x20execution\x20failed'};const _0x33b4ff=Array[_0x4f63c6(0x86)](_0x468dc8)?_0x468dc8:[];return{'ok':!![],'data':{'rows':_0x33b4ff,'rowCount':_0x33b4ff['length'],'elapsed':_0x2e4eec},'message':_0x4f63c6(0x88)+_0x33b4ff[_0x4f63c6(0x8d)]+_0x4f63c6(0x94)+_0x2e4eec+'ms'};}};function a59_0x3b80(){const _0x5d0db9=['8060pTxQNW','44991coPQoK','27304RpXFSk','read','\x20row(s)\x20in\x20','6519953podgmT','1lqRJUb','12PKWSqi','execSuccess','now','SQL\x20execution\x20failed','1666338dSiQqF','str','329vtvund','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','sql','Returned\x20','params','4aruklO','6984aINPhl','1227938weNoXS','length','2671055oFXCtb','execResult'];a59_0x3b80=function(){return _0x5d0db9;};return a59_0x3b80();}
1
+ const a59_0x2ebfd2=a59_0x102b;(function(_0x47f6c8,_0x4524e2){const _0xb34307=a59_0x102b,_0x38241d=_0x47f6c8();while(!![]){try{const _0x437c5b=-parseInt(_0xb34307(0x95))/0x1*(parseInt(_0xb34307(0x90))/0x2)+parseInt(_0xb34307(0x9a))/0x3*(-parseInt(_0xb34307(0x8e))/0x4)+-parseInt(_0xb34307(0x94))/0x5+parseInt(_0xb34307(0x98))/0x6+parseInt(_0xb34307(0xa0))/0x7*(parseInt(_0xb34307(0x97))/0x8)+parseInt(_0xb34307(0x8a))/0x9+parseInt(_0xb34307(0x9c))/0xa;if(_0x437c5b===_0x4524e2)break;else _0x38241d['push'](_0x38241d['shift']());}catch(_0x5b6213){_0x38241d['push'](_0x38241d['shift']());}}}(a59_0x1138,0x56519));import{executeSdkSql}from'../../core/sdk-client.js';function a59_0x1138(){const _0x34bfd9=['sql','exec','4gzRIEj','now','958988NaXSKr','Returned\x20','read','params','2928915kVRWrw','1MJZXzX','str','152oVQCTV','4085748mQJQEr','SQL\x20execution\x20failed','1371273ynnwUn','execResult','3609510ALbvWy','\x20row(s)\x20in\x20','length','isArray','156800rKiCDk','3675780xwvyty','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode'];a59_0x1138=function(){return _0x34bfd9;};return a59_0x1138();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a59_0x102b(_0x495d84,_0x4fa473){_0x495d84=_0x495d84-0x8a;const _0x1138ed=a59_0x1138();let _0x102bf8=_0x1138ed[_0x495d84];return _0x102bf8;}export const sqlExec={'service':a59_0x2ebfd2(0x8c),'command':a59_0x2ebfd2(0x8d),'description':a59_0x2ebfd2(0x8b),'risk':a59_0x2ebfd2(0x92),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x42e93b){const _0x4df22c=a59_0x2ebfd2,_0x1db799=parseJsonParams(_0x42e93b[_0x4df22c(0x96)](_0x4df22c(0x93))),_0x185972=Date[_0x4df22c(0x8f)](),_0x132399=await executeSdkSql(_0x42e93b['str']('sqlcode'),_0x1db799),_0xd1ca12=Date['now']()-_0x185972,_0x345b4a=_0x132399?.[_0x4df22c(0x9b)]??_0x132399,_0x54475c=_0x132399?.['execSuccess']??!![];if(!_0x54475c)return{'ok':![],'data':{'error':_0x132399?.['execError']||_0x4df22c(0x99),'elapsed':_0xd1ca12},'message':'SQL\x20execution\x20failed'};const _0x3e932f=Array[_0x4df22c(0x9f)](_0x345b4a)?_0x345b4a:[];return{'ok':!![],'data':{'rows':_0x3e932f,'rowCount':_0x3e932f['length'],'elapsed':_0xd1ca12},'message':_0x4df22c(0x91)+_0x3e932f[_0x4df22c(0x9e)]+_0x4df22c(0x9d)+_0xd1ca12+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3dfe60,_0xf234d){const _0x31d23c=a60_0x440b,_0x5087db=_0x3dfe60();while(!![]){try{const _0x482a36=-parseInt(_0x31d23c(0xb4))/0x1*(-parseInt(_0x31d23c(0xb3))/0x2)+-parseInt(_0x31d23c(0xb1))/0x3+parseInt(_0x31d23c(0xac))/0x4+-parseInt(_0x31d23c(0xaf))/0x5*(-parseInt(_0x31d23c(0xb2))/0x6)+parseInt(_0x31d23c(0xae))/0x7*(parseInt(_0x31d23c(0xb0))/0x8)+parseInt(_0x31d23c(0xad))/0x9+-parseInt(_0x31d23c(0xab))/0xa;if(_0x482a36===_0xf234d)break;else _0x5087db['push'](_0x5087db['shift']());}catch(_0x502c72){_0x5087db['push'](_0x5087db['shift']());}}}(a60_0x540c,0x4334e));import{sqlDetail}from'../../commands/sql/detail.js';function a60_0x540c(){const _0x1483aa=['1038609ccxwAj','1279158giDEMA','18APseXm','10019QUnDOt','2949220KYeLlr','387284OOMuYK','2429910DfqLrX','46249oKgydG','10lAzOrg','40zfREmB'];a60_0x540c=function(){return _0x1483aa;};return a60_0x540c();}function a60_0x440b(_0x4d7407,_0x228fa4){_0x4d7407=_0x4d7407-0xab;const _0x540ce9=a60_0x540c();let _0x440ba3=_0x540ce9[_0x4d7407];return _0x440ba3;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0xc822a,_0x237fb9){const _0x273b62=a60_0x4462,_0x38ed7b=_0xc822a();while(!![]){try{const _0x594b2c=parseInt(_0x273b62(0x149))/0x1+-parseInt(_0x273b62(0x14a))/0x2*(parseInt(_0x273b62(0x146))/0x3)+-parseInt(_0x273b62(0x145))/0x4*(-parseInt(_0x273b62(0x14b))/0x5)+parseInt(_0x273b62(0x14e))/0x6*(-parseInt(_0x273b62(0x147))/0x7)+-parseInt(_0x273b62(0x148))/0x8+parseInt(_0x273b62(0x144))/0x9+parseInt(_0x273b62(0x14d))/0xa*(parseInt(_0x273b62(0x14c))/0xb);if(_0x594b2c===_0x237fb9)break;else _0x38ed7b['push'](_0x38ed7b['shift']());}catch(_0x2e08fd){_0x38ed7b['push'](_0x38ed7b['shift']());}}}(a60_0x1bf6,0x41228));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a60_0x4462(_0x3b92b4,_0x1e5e96){_0x3b92b4=_0x3b92b4-0x144;const _0x1bf601=a60_0x1bf6();let _0x44629c=_0x1bf601[_0x3b92b4];return _0x44629c;}function a60_0x1bf6(){const _0x377693=['8IyFzDR','6ghsvEc','21CcuqFB','1297024nokFZl','24798ybqZWi','213740KaQswT','380830XkmGye','506WnRBpu','116420nSEimA','822786CtZtbs','3072519XRuNMg'];a60_0x1bf6=function(){return _0x377693;};return a60_0x1bf6();}
@@ -1 +1 @@
1
- const a61_0x1bee1c=a61_0x34c8;(function(_0x2723b0,_0x28e202){const _0x23f586=a61_0x34c8,_0x1759b1=_0x2723b0();while(!![]){try{const _0x33c1a8=-parseInt(_0x23f586(0x21e))/0x1+-parseInt(_0x23f586(0x1ee))/0x2+-parseInt(_0x23f586(0x1f3))/0x3*(-parseInt(_0x23f586(0x220))/0x4)+parseInt(_0x23f586(0x1ec))/0x5+-parseInt(_0x23f586(0x20d))/0x6+parseInt(_0x23f586(0x20c))/0x7+parseInt(_0x23f586(0x1f6))/0x8*(parseInt(_0x23f586(0x22f))/0x9);if(_0x33c1a8===_0x28e202)break;else _0x1759b1['push'](_0x1759b1['shift']());}catch(_0x246c76){_0x1759b1['push'](_0x1759b1['shift']());}}}(a61_0x987e,0x6f4a8));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a61_0x34c8(_0x5e40c5,_0x3eeeb4){_0x5e40c5=_0x5e40c5-0x1df;const _0x987e8e=a61_0x987e();let _0x34c81c=_0x987e8e[_0x5e40c5];return _0x34c81c;}const updateFlags=[{'name':a61_0x1bee1c(0x21a),'type':a61_0x1bee1c(0x22b),'description':a61_0x1bee1c(0x1fa),'default':![]},{'name':a61_0x1bee1c(0x1f7),'type':a61_0x1bee1c(0x22b),'description':a61_0x1bee1c(0x219),'default':![]},{'name':a61_0x1bee1c(0x1e2),'type':a61_0x1bee1c(0x212),'description':a61_0x1bee1c(0x1ed)},{'name':a61_0x1bee1c(0x21c),'type':a61_0x1bee1c(0x22b),'description':a61_0x1bee1c(0x216),'default':![]},{'name':a61_0x1bee1c(0x1eb),'type':'boolean','description':a61_0x1bee1c(0x223),'default':!![],'hidden':!![]}];function parseSemver(_0x27469d){const _0x34ba5b=a61_0x1bee1c,_0x3711b2=_0x27469d['trim']()[_0x34ba5b(0x1ff)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3711b2)return null;return{'major':Number(_0x3711b2[0x1]),'minor':Number(_0x3711b2[0x2]),'patch':Number(_0x3711b2[0x3]),'prerelease':_0x3711b2[0x4]};}function compareSemver(_0x4cecf8,_0x17920e){const _0x1a5084=a61_0x1bee1c,_0xb7a893=parseSemver(_0x4cecf8),_0x317a48=parseSemver(_0x17920e);if(!_0xb7a893||!_0x317a48)throw CliErrors['validation'](_0x1a5084(0x203),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x285f47 of[_0x1a5084(0x229),'minor',_0x1a5084(0x207)]){if(_0xb7a893[_0x285f47]<_0x317a48[_0x285f47])return-0x1;if(_0xb7a893[_0x285f47]>_0x317a48[_0x285f47])return 0x1;}if(!_0xb7a893[_0x1a5084(0x201)]&&!_0x317a48[_0x1a5084(0x201)])return 0x0;if(!_0xb7a893[_0x1a5084(0x201)])return 0x1;if(!_0x317a48['prerelease'])return-0x1;if(_0xb7a893[_0x1a5084(0x201)]===_0x317a48[_0x1a5084(0x201)])return 0x0;return _0xb7a893[_0x1a5084(0x201)]<_0x317a48[_0x1a5084(0x201)]?-0x1:0x1;}function getRequestedVersion(_0x266a1c){const _0x55a590=a61_0x1bee1c,_0x30c4eb=_0x266a1c[_0x55a590(0x200)](_0x55a590(0x1e2))['trim']();if(_0x30c4eb)return _0x30c4eb;return String(_0x266a1c[_0x55a590(0x218)]?.[0x0]??'')[_0x55a590(0x1fe)]();}function shouldSkipCliBuiltInSkill(_0xc92d4a){const _0x5cd0d7=a61_0x1bee1c;return _0xc92d4a[_0x5cd0d7(0x21b)](_0x5cd0d7(0x21c))||_0xc92d4a[_0x5cd0d7(0x224)]('skills')===![];}async function validateUpdateFlags(_0x47582f){const _0x2811f3=a61_0x1bee1c,_0x49367a=getRequestedVersion(_0x47582f),_0x3eb67a=[_0x47582f[_0x2811f3(0x21b)](_0x2811f3(0x21a))?_0x2811f3(0x21a):'',_0x47582f['bool'](_0x2811f3(0x1f7))?_0x2811f3(0x1f7):'',_0x49367a?_0x2811f3(0x1e2):''][_0x2811f3(0x1f0)](Boolean);if(_0x3eb67a['length']>0x1)throw CliErrors[_0x2811f3(0x210)](_0x2811f3(0x202),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x49367a&&!parseSemver(_0x49367a))throw CliErrors[_0x2811f3(0x210)](_0x2811f3(0x1f1)+_0x49367a,_0x2811f3(0x1e9));}function a61_0x987e(){const _0x1b1e4a=['\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','boolean','Checking\x20npm\x20dist-tags...','error','status','297WdnLAD','unknown','Updated\x20to\x20v','nonInteractive','Update\x20failed:\x20','version','log','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Checking\x20CLI\x20Built-in\x20Skill...','=1).','Updating\x20','update','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','inherit','skills','2587695rnRkog','Install\x20a\x20specific\x20CLI\x20version','1444584HKqAia','map','filter','Invalid\x20version:\x20','warn','675585DJbSKl','pipe','install','222744Ocypww','beta','\x20CLI\x20from\x20npm','Already\x20on\x20requested\x20version\x20(v','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','write','trim','match','str','prerelease','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Version\x20comparison\x20failed.','/-/package/','npm','join','patch','cwd','fromEntries','timeout','/dist-tags','2614801MEvKef','2508708DlchRn','run','stdout','validation','json','string','Current\x20version:\x20','\x20version\x20from\x20npm.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','args','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','latest','bool','no-skills','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','664033DWmEok','toString','8nBdWej','Already\x20up\x20to\x20date\x20(v','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','flag','Update\x20','skipped','object','source','major'];a61_0x987e=function(){return _0x1b1e4a;};return a61_0x987e();}async function fetchNpmDistTags(){const _0x30144c=a61_0x1bee1c;try{const _0x1a649f=NPM_REGISTRY_BASE_URL+_0x30144c(0x204)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x30144c(0x20b),_0x251b08=await fetch(_0x1a649f,{'signal':AbortSignal[_0x30144c(0x20a)](0x2710)});if(!_0x251b08['ok'])return null;const _0x34b6ec=await _0x251b08[_0x30144c(0x211)]();if(!_0x34b6ec||typeof _0x34b6ec!==_0x30144c(0x227))return null;return Object[_0x30144c(0x209)](Object['entries'](_0x34b6ec)[_0x30144c(0x1f0)](([,_0x1d4edf])=>typeof _0x1d4edf===_0x30144c(0x212)&&_0x1d4edf[_0x30144c(0x1fe)]())[_0x30144c(0x1ef)](([_0x19cf17,_0x3a49cd])=>[_0x19cf17,String(_0x3a49cd)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x1b793c){const _0x5d23b5=a61_0x1bee1c,_0x4e7aea=getRequestedVersion(_0x1b793c);if(_0x4e7aea)return{'version':_0x4e7aea,'source':_0x5d23b5(0x1e2)};const _0x450626=_0x1b793c[_0x5d23b5(0x21b)](_0x5d23b5(0x1f7))?'beta':_0x5d23b5(0x21a),_0x3d30ed=await fetchNpmDistTags(),_0x43e779=_0x3d30ed?.[_0x450626];if(!_0x43e779)return null;return{'version':_0x43e779,'source':_0x450626};}function shouldInstallTarget(_0x1ec925,_0xca47eb){const _0x38a8db=a61_0x1bee1c,_0x61637=compareSemver(_0x1ec925,_0xca47eb[_0x38a8db(0x1e2)]);if(_0xca47eb[_0x38a8db(0x228)]===_0x38a8db(0x1e2))return _0x61637!==0x0;return _0x61637<0x0;}function installCliPackage(_0x1b4ddf,_0x3a748e){const _0x25adee=a61_0x1bee1c,_0x383a95=resolveNpmBin(_0x25adee(0x205)),_0x29124f=[_0x25adee(0x1f5),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1b4ddf];console[_0x25adee(0x1e3)]('*\x20'+[_0x383a95,..._0x29124f][_0x25adee(0x206)]('\x20'));const _0x40b9d2=spawnSync(_0x383a95,_0x29124f,{'cwd':process[_0x25adee(0x208)](),'stdio':_0x3a748e?'pipe':_0x25adee(0x1ea),'env':process.env,'shell':![]});if(_0x40b9d2[_0x25adee(0x22e)]===0x0)return{'ok':!![]};let _0xf681d1=_0x40b9d2[_0x25adee(0x22d)]?.['message']||'exit\x20'+(_0x40b9d2['status']??_0x25adee(0x230));if(_0x3a748e){const _0x3ab937=_0x40b9d2['stderr']?_0x40b9d2['stderr'][_0x25adee(0x21f)]()['trim']():'',_0x2e4139=_0x40b9d2[_0x25adee(0x20f)]?_0x40b9d2[_0x25adee(0x20f)][_0x25adee(0x21f)]()['trim']():'';if(_0x3ab937)_0xf681d1=_0x3ab937;else{if(_0x2e4139)_0xf681d1=_0x2e4139;}}return{'ok':![],'error':_0xf681d1};}async function installCliBuiltInSkill(_0x3a1090){const _0x9ae0f3=a61_0x1bee1c;console['log'](_0x9ae0f3(0x1e5));const _0x4d989d=runNpxSkillsAddGlobal(process[_0x9ae0f3(0x208)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x3a1090?_0x9ae0f3(0x1f4):_0x9ae0f3(0x1ea)});if(_0x4d989d[_0x9ae0f3(0x226)]){console[_0x9ae0f3(0x1e3)](_0x9ae0f3(0x217)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x9ae0f3(0x1e6));return;}if(_0x4d989d['ok']){console[_0x9ae0f3(0x1e3)](_0x9ae0f3(0x215));return;}console[_0x9ae0f3(0x1f2)](_0x9ae0f3(0x22a)+(_0x4d989d['error']||_0x9ae0f3(0x230))),console[_0x9ae0f3(0x1e3)](_0x9ae0f3(0x21d));}async function execute(_0x1194c5){const _0x16c4d4=a61_0x1bee1c;await validateUpdateFlags(_0x1194c5);const _0x11bcd8=getCliVersion();console[_0x16c4d4(0x1e3)](_0x16c4d4(0x213)+_0x11bcd8),console['log'](_0x16c4d4(0x22c));const _0x76adb1=await resolveTargetVersion(_0x1194c5);if(!_0x76adb1){const _0x308eeb=_0x1194c5[_0x16c4d4(0x21b)](_0x16c4d4(0x1f7))?_0x16c4d4(0x1f7):_0x16c4d4(0x21a),_0x4c6f49='Unable\x20to\x20resolve\x20'+_0x308eeb+_0x16c4d4(0x214);return console[_0x16c4d4(0x1f2)](_0x4c6f49),console[_0x16c4d4(0x1e3)](_0x16c4d4(0x1fb)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x308eeb),{'ok':![]};}if(!shouldInstallTarget(_0x11bcd8,_0x76adb1)){const _0x316a08=_0x76adb1[_0x16c4d4(0x228)]===_0x16c4d4(0x1e2)?_0x16c4d4(0x1f9)+_0x76adb1[_0x16c4d4(0x1e2)]+').':_0x16c4d4(0x221)+_0x76adb1[_0x16c4d4(0x1e2)]+').';return console[_0x16c4d4(0x1e3)](_0x316a08),shouldSkipCliBuiltInSkill(_0x1194c5)?console['log']('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).'):await installCliBuiltInSkill(_0x1194c5[_0x16c4d4(0x1e0)]),{'ok':!![]};}console[_0x16c4d4(0x1e3)](_0x16c4d4(0x1e7)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x11bcd8+'\x20->\x20'+_0x76adb1[_0x16c4d4(0x1e2)]);const _0x3c45d0=installCliPackage(_0x76adb1[_0x16c4d4(0x1e2)],_0x1194c5[_0x16c4d4(0x1e0)]);if(!_0x3c45d0['ok']){const _0x1f1f38=_0x16c4d4(0x1e1)+(_0x3c45d0[_0x16c4d4(0x22d)]||_0x16c4d4(0x230));return console[_0x16c4d4(0x22d)](_0x1f1f38),console['log'](_0x16c4d4(0x1e4)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x76adb1[_0x16c4d4(0x1e2)]),{'ok':![]};}return console[_0x16c4d4(0x1e3)](_0x16c4d4(0x1df)+_0x76adb1[_0x16c4d4(0x1e2)]+'.'),console[_0x16c4d4(0x1e3)](_0x16c4d4(0x1fc)),shouldSkipCliBuiltInSkill(_0x1194c5)?console[_0x16c4d4(0x1e3)](_0x16c4d4(0x222)):await installCliBuiltInSkill(_0x1194c5[_0x16c4d4(0x1e0)]),{'ok':!![]};}export const updateDefinition={'service':a61_0x1bee1c(0x1e8),'command':a61_0x1bee1c(0x20e),'description':a61_0x1bee1c(0x225)+CLI_BIN_NAME+a61_0x1bee1c(0x1f8),'risk':a61_0x1bee1c(0x1fd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a61_0x369e73=a61_0x1dd2;(function(_0x2d73b4,_0x567048){const _0x6407af=a61_0x1dd2,_0x4df20b=_0x2d73b4();while(!![]){try{const _0x599ba6=-parseInt(_0x6407af(0x105))/0x1*(-parseInt(_0x6407af(0x10d))/0x2)+parseInt(_0x6407af(0x113))/0x3+parseInt(_0x6407af(0xed))/0x4*(parseInt(_0x6407af(0x108))/0x5)+parseInt(_0x6407af(0x11d))/0x6+-parseInt(_0x6407af(0x112))/0x7+-parseInt(_0x6407af(0x100))/0x8+-parseInt(_0x6407af(0xe5))/0x9;if(_0x599ba6===_0x567048)break;else _0x4df20b['push'](_0x4df20b['shift']());}catch(_0x4fdb97){_0x4df20b['push'](_0x4df20b['shift']());}}}(a61_0x5434,0xd744b));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a61_0x5434(){const _0x9a8fab=['Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','52jwAVkL','Unable\x20to\x20resolve\x20','json','Checking\x20npm\x20dist-tags...','trim','bool','Version\x20comparison\x20failed.','boolean','skills','stdout','pipe','string','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','version','flag','Updating\x20','/dist-tags','validation','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','6913944kPXTwY','Updated\x20to\x20v','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','source','map','76577fUZyDE','nonInteractive','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','435795hxdTMX','error','timeout','\x20->\x20','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','28WBesCd','str','warn','Update\x20failed:\x20','Install\x20a\x20specific\x20CLI\x20version','5247753xEBszX','2602209PQGSXU','object','match','update','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','write','no-skills','exit\x20','npm','join','303600DBPRbt','args','run','cwd','status','=1).','\x20CLI\x20from\x20npm','latest','Checking\x20CLI\x20Built-in\x20Skill...','inherit','log','prerelease','major','Update\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Already\x20up\x20to\x20date\x20(v','toString','beta','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Invalid\x20version:\x20','install','stderr','5647383bqMGnd','minor','Already\x20on\x20requested\x20version\x20(v','entries','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20version\x20from\x20npm.'];a61_0x5434=function(){return _0x9a8fab;};return a61_0x5434();}import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':a61_0x369e73(0xf4),'description':a61_0x369e73(0x12f),'default':![]},{'name':a61_0x369e73(0x12e),'type':'boolean','description':a61_0x369e73(0xeb),'default':![]},{'name':a61_0x369e73(0xfa),'type':a61_0x369e73(0xf8),'description':a61_0x369e73(0x111)},{'name':a61_0x369e73(0x119),'type':'boolean','description':a61_0x369e73(0x117),'default':![]},{'name':a61_0x369e73(0xf5),'type':a61_0x369e73(0xf4),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x3dac00){const _0x36dc54=a61_0x369e73,_0x4f8dd4=_0x3dac00['trim']()[_0x36dc54(0x115)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4f8dd4)return null;return{'major':Number(_0x4f8dd4[0x1]),'minor':Number(_0x4f8dd4[0x2]),'patch':Number(_0x4f8dd4[0x3]),'prerelease':_0x4f8dd4[0x4]};}function compareSemver(_0x101c11,_0x5bb173){const _0x383280=a61_0x369e73,_0x2b2792=parseSemver(_0x101c11),_0x2118d7=parseSemver(_0x5bb173);if(!_0x2b2792||!_0x2118d7)throw CliErrors['validation'](_0x383280(0xf3),_0x383280(0x12b));for(const _0x24c0d of[_0x383280(0x129),_0x383280(0xe6),'patch']){if(_0x2b2792[_0x24c0d]<_0x2118d7[_0x24c0d])return-0x1;if(_0x2b2792[_0x24c0d]>_0x2118d7[_0x24c0d])return 0x1;}if(!_0x2b2792[_0x383280(0x128)]&&!_0x2118d7[_0x383280(0x128)])return 0x0;if(!_0x2b2792[_0x383280(0x128)])return 0x1;if(!_0x2118d7[_0x383280(0x128)])return-0x1;if(_0x2b2792['prerelease']===_0x2118d7[_0x383280(0x128)])return 0x0;return _0x2b2792[_0x383280(0x128)]<_0x2118d7['prerelease']?-0x1:0x1;}function a61_0x1dd2(_0x524e6b,_0x34e9fc){_0x524e6b=_0x524e6b-0xe3;const _0x54347c=a61_0x5434();let _0x1dd276=_0x54347c[_0x524e6b];return _0x1dd276;}function getRequestedVersion(_0x4cf0d4){const _0x2d59a2=a61_0x369e73,_0x158f8c=_0x4cf0d4[_0x2d59a2(0x10e)](_0x2d59a2(0xfa))[_0x2d59a2(0xf1)]();if(_0x158f8c)return _0x158f8c;return String(_0x4cf0d4[_0x2d59a2(0x11e)]?.[0x0]??'')[_0x2d59a2(0xf1)]();}function shouldSkipCliBuiltInSkill(_0x271757){const _0x2cdd79=a61_0x369e73;return _0x271757[_0x2cdd79(0xf2)](_0x2cdd79(0x119))||_0x271757[_0x2cdd79(0xfb)](_0x2cdd79(0xf5))===![];}async function validateUpdateFlags(_0x5e3a98){const _0x160085=a61_0x369e73,_0x3d42e9=getRequestedVersion(_0x5e3a98),_0x3b3e96=[_0x5e3a98[_0x160085(0xf2)](_0x160085(0x124))?'latest':'',_0x5e3a98[_0x160085(0xf2)]('beta')?_0x160085(0x12e):'',_0x3d42e9?_0x160085(0xfa):'']['filter'](Boolean);if(_0x3b3e96['length']>0x1)throw CliErrors[_0x160085(0xfe)](_0x160085(0xec),_0x160085(0x10c));if(_0x3d42e9&&!parseSemver(_0x3d42e9))throw CliErrors[_0x160085(0xfe)](_0x160085(0x131)+_0x3d42e9,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x3241ed=a61_0x369e73;try{const _0xb8e82d=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3241ed(0xfd),_0x330739=await fetch(_0xb8e82d,{'signal':AbortSignal[_0x3241ed(0x10a)](0x2710)});if(!_0x330739['ok'])return null;const _0xed006e=await _0x330739[_0x3241ed(0xef)]();if(!_0xed006e||typeof _0xed006e!==_0x3241ed(0x114))return null;return Object['fromEntries'](Object[_0x3241ed(0xe8)](_0xed006e)['filter'](([,_0x1e8b6d])=>typeof _0x1e8b6d==='string'&&_0x1e8b6d[_0x3241ed(0xf1)]())[_0x3241ed(0x104)](([_0x5e6eef,_0x42c6ff])=>[_0x5e6eef,String(_0x42c6ff)[_0x3241ed(0xf1)]()]));}catch{return null;}}async function resolveTargetVersion(_0x1f349a){const _0x20609e=a61_0x369e73,_0x5019ca=getRequestedVersion(_0x1f349a);if(_0x5019ca)return{'version':_0x5019ca,'source':_0x20609e(0xfa)};const _0x357dd8=_0x1f349a[_0x20609e(0xf2)](_0x20609e(0x12e))?'beta':'latest',_0x266f45=await fetchNpmDistTags(),_0x5cafb0=_0x266f45?.[_0x357dd8];if(!_0x5cafb0)return null;return{'version':_0x5cafb0,'source':_0x357dd8};}function shouldInstallTarget(_0x346956,_0xb43a8f){const _0x167295=a61_0x369e73,_0x17109=compareSemver(_0x346956,_0xb43a8f[_0x167295(0xfa)]);if(_0xb43a8f['source']===_0x167295(0xfa))return _0x17109!==0x0;return _0x17109<0x0;}function installCliPackage(_0x148bf8,_0x1252f5){const _0x2bfd37=a61_0x369e73,_0x340307=resolveNpmBin(_0x2bfd37(0x11b)),_0xf7a5c4=[_0x2bfd37(0xe3),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x148bf8];console[_0x2bfd37(0x127)]('*\x20'+[_0x340307,..._0xf7a5c4][_0x2bfd37(0x11c)]('\x20'));const _0x4037fe=spawnSync(_0x340307,_0xf7a5c4,{'cwd':process['cwd'](),'stdio':_0x1252f5?_0x2bfd37(0xf7):_0x2bfd37(0x126),'env':process.env,'shell':![]});if(_0x4037fe[_0x2bfd37(0x121)]===0x0)return{'ok':!![]};let _0x55359b=_0x4037fe[_0x2bfd37(0x109)]?.['message']||_0x2bfd37(0x11a)+(_0x4037fe[_0x2bfd37(0x121)]??'unknown');if(_0x1252f5){const _0x324d41=_0x4037fe[_0x2bfd37(0xe4)]?_0x4037fe[_0x2bfd37(0xe4)]['toString']()[_0x2bfd37(0xf1)]():'',_0x343c6c=_0x4037fe[_0x2bfd37(0xf6)]?_0x4037fe[_0x2bfd37(0xf6)][_0x2bfd37(0x12d)]()[_0x2bfd37(0xf1)]():'';if(_0x324d41)_0x55359b=_0x324d41;else{if(_0x343c6c)_0x55359b=_0x343c6c;}}return{'ok':![],'error':_0x55359b};}async function installCliBuiltInSkill(_0x307995){const _0x1e64f4=a61_0x369e73;console['log'](_0x1e64f4(0x125));const _0x4e8ee2=runNpxSkillsAddGlobal(process[_0x1e64f4(0x120)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x307995?_0x1e64f4(0xf7):'inherit'});if(_0x4e8ee2['skipped']){console[_0x1e64f4(0x127)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1e64f4(0x122));return;}if(_0x4e8ee2['ok']){console[_0x1e64f4(0x127)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.');return;}console['warn'](_0x1e64f4(0xff)+(_0x4e8ee2[_0x1e64f4(0x109)]||'unknown')),console[_0x1e64f4(0x127)](_0x1e64f4(0x107));}async function execute(_0x22fa79){const _0x29233a=a61_0x369e73;await validateUpdateFlags(_0x22fa79);const _0x4b6bac=getCliVersion();console[_0x29233a(0x127)]('Current\x20version:\x20'+_0x4b6bac),console[_0x29233a(0x127)](_0x29233a(0xf0));const _0x1163c8=await resolveTargetVersion(_0x22fa79);if(!_0x1163c8){const _0x4d498c=_0x22fa79[_0x29233a(0xf2)]('beta')?_0x29233a(0x12e):'latest',_0x2348e8=_0x29233a(0xee)+_0x4d498c+_0x29233a(0xea);return console[_0x29233a(0x10f)](_0x2348e8),console[_0x29233a(0x127)](_0x29233a(0xe9)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4d498c),{'ok':![]};}if(!shouldInstallTarget(_0x4b6bac,_0x1163c8)){const _0x800f60=_0x1163c8[_0x29233a(0x103)]==='version'?_0x29233a(0xe7)+_0x1163c8['version']+').':_0x29233a(0x12c)+_0x1163c8[_0x29233a(0xfa)]+').';return console[_0x29233a(0x127)](_0x800f60),shouldSkipCliBuiltInSkill(_0x22fa79)?console['log'](_0x29233a(0xf9)):await installCliBuiltInSkill(_0x22fa79[_0x29233a(0x106)]),{'ok':!![]};}console[_0x29233a(0x127)](_0x29233a(0xfc)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x4b6bac+_0x29233a(0x10b)+_0x1163c8[_0x29233a(0xfa)]);const _0x3f410e=installCliPackage(_0x1163c8[_0x29233a(0xfa)],_0x22fa79[_0x29233a(0x106)]);if(!_0x3f410e['ok']){const _0x699104=_0x29233a(0x110)+(_0x3f410e[_0x29233a(0x109)]||'unknown');return console['error'](_0x699104),console['log'](_0x29233a(0x102)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1163c8[_0x29233a(0xfa)]),{'ok':![]};}return console['log'](_0x29233a(0x101)+_0x1163c8['version']+'.'),console[_0x29233a(0x127)](_0x29233a(0x130)),shouldSkipCliBuiltInSkill(_0x22fa79)?console['log'](_0x29233a(0xf9)):await installCliBuiltInSkill(_0x22fa79[_0x29233a(0x106)]),{'ok':!![]};}export const updateDefinition={'service':a61_0x369e73(0x116),'command':a61_0x369e73(0x11f),'description':a61_0x369e73(0x12a)+CLI_BIN_NAME+a61_0x369e73(0x123),'risk':a61_0x369e73(0x118),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a62_0x2f6bd6=a62_0x50dd;(function(_0xb4d588,_0x57631f){const _0x23b27b=a62_0x50dd,_0x13ceeb=_0xb4d588();while(!![]){try{const _0x28ac39=parseInt(_0x23b27b(0x98))/0x1*(parseInt(_0x23b27b(0x7a))/0x2)+parseInt(_0x23b27b(0x76))/0x3*(-parseInt(_0x23b27b(0x79))/0x4)+parseInt(_0x23b27b(0x85))/0x5+-parseInt(_0x23b27b(0x89))/0x6*(parseInt(_0x23b27b(0x86))/0x7)+parseInt(_0x23b27b(0xa5))/0x8*(parseInt(_0x23b27b(0x9e))/0x9)+-parseInt(_0x23b27b(0xa1))/0xa+parseInt(_0x23b27b(0x8b))/0xb;if(_0x28ac39===_0x57631f)break;else _0x13ceeb['push'](_0x13ceeb['shift']());}catch(_0x2c8347){_0x13ceeb['push'](_0x13ceeb['shift']());}}}(a62_0x45fe,0x3f56d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a62_0x45fe(){const _0x460654=['Available\x20apps:\x20','string','isArray','\x0aEnv:\x20','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','Run\x20`','\x22.\x20Allowed:\x20','Target\x20environment','557345capRlO','406izKJiQ','appcode','accessKey','46758SFlFUS','command','7617170VbWwrr','use','apps','includes','items','join','\x20workspace\x20','filter','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','\x0aDefault\x20app:\x20','shouldWriteEnv','Usage:\x20','App\x20\x22','23YxZHjO','trim','../../commands/app/remote-source.js','write','defaultApp','app','94878mmuwyB','yes','appName','5050420QBsbrb','App\x20code\x20to\x20bind\x20directly','Workspace\x20configured.\x0aConfig\x20file:\x20','\x22\x20not\x20found.','48saBAiV','str','workspace\x20','env','from','project','boolean','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','object','115563TQQZcy','authRequired','Missing\x20workspace\x20app\x20selector.','4BufAeB','33722KebwTm','validation'];a62_0x45fe=function(){return _0x460654;};return a62_0x45fe();}import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a62_0x2f6bd6(0x9d),'type':a62_0x2f6bd6(0x7d),'description':a62_0x2f6bd6(0x93)},{'name':a62_0x2f6bd6(0x87),'type':'string','description':a62_0x2f6bd6(0xa2)},{'name':a62_0x2f6bd6(0x70),'type':a62_0x2f6bd6(0x7d),'description':a62_0x2f6bd6(0x84),'enum':[...RUNTIME_ENV_VALUES]},{'name':a62_0x2f6bd6(0x9f),'type':a62_0x2f6bd6(0x73),'description':a62_0x2f6bd6(0x74),'default':![]}];async function executeWorkspaceUse(_0x48885e,_0x3ea869){const _0x4f8c4e=a62_0x2f6bd6,_0x45be9f=_0x48885e[_0x4f8c4e(0xa6)](_0x4f8c4e(0x9d))['trim'](),_0x12c096=_0x48885e[_0x4f8c4e(0xa6)]('appcode')['trim'](),_0x4b621c=_0x48885e['str']('env')[_0x4f8c4e(0x99)](),_0x47c3d8=resolveWorkspaceEnv(_0x4b621c||_0x48885e['envName']||DEFAULT_CONFIG_VALUES[_0x4f8c4e(0x70)]);if(!_0x45be9f&&!_0x12c096)throw CliErrors['validation'](_0x4f8c4e(0x78),_0x4f8c4e(0x96)+CLI_BIN_NAME+_0x4f8c4e(0x91)+_0x3ea869+_0x4f8c4e(0x80)+CLI_BIN_NAME+_0x4f8c4e(0x91)+_0x3ea869+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x14366f=_0x12c096||await resolveRemoteAppCode({'command':_0x3ea869,'appName':_0x45be9f,'env':_0x47c3d8,'accessKey':_0x48885e[_0x4f8c4e(0x88)]}),_0x559231=writeWorkspaceConfig({'command':_0x3ea869,'appName':_0x45be9f,'appcode':_0x14366f,'env':_0x47c3d8,'shouldWriteEnv':!!_0x4b621c,'accessKey':_0x48885e[_0x4f8c4e(0x88)]});return{'ok':!![],'data':{'configPath':_0x559231,'app':_0x45be9f||null,'appcode':_0x14366f,'env':_0x4b621c?_0x47c3d8:null,'accessKeyWritten':![],'command':_0x4f8c4e(0x6f)+_0x3ea869},'message':buildWorkspaceMessage(_0x559231,_0x45be9f,_0x14366f,_0x4b621c?_0x47c3d8:undefined)};}async function resolveRemoteAppCode(_0x1cab54){const _0x21706=a62_0x2f6bd6;if(!_0x1cab54['accessKey'])throw CliErrors[_0x21706(0x77)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+_0x21706(0x91)+_0x1cab54[_0x21706(0x8a)]+'.');const {setActiveAK:_0x3da90f}=await import('../../core/api-client.js'),{getRemoteAppList:_0x3001cb}=await import(_0x21706(0x9a));_0x3da90f(_0x1cab54[_0x21706(0x88)]);const _0x16a444=await _0x3001cb({'env':_0x1cab54[_0x21706(0x70)],'accessKey':_0x1cab54[_0x21706(0x88)],'noCache':![]}),_0x5b8adf=findAppByName(_0x16a444['items'],_0x1cab54['appName']);if(_0x5b8adf&&!isRuntimeAccessibleApp(_0x5b8adf))throw runtimeInaccessibleAppError(_0x5b8adf,'\x22'+_0x1cab54[_0x21706(0xa0)]+'\x22');const _0xeb4285=_0x5b8adf?.['appCode']?.[_0x21706(0x99)]();if(_0xeb4285)return _0xeb4285;const _0x5758bc=_0x16a444[_0x21706(0x8f)]['map'](_0x18ee35=>_0x18ee35[_0x21706(0xa0)])[_0x21706(0x92)](Boolean),_0x9e1c83=_0x5758bc['length']?_0x21706(0x7c)+Array[_0x21706(0x71)](new Set(_0x5758bc))['join'](',\x20')+'.':_0x21706(0x82)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors['validation'](_0x21706(0x97)+_0x1cab54['appName']+_0x21706(0xa4),_0x9e1c83);}function writeWorkspaceConfig(_0x2f80b7){const _0x3aa92c=a62_0x2f6bd6,_0x591f4c=resolveWriteConfigPath(_0x3aa92c(0x72)),_0x357e28=readConfigFile(_0x591f4c);_0x2f80b7[_0x3aa92c(0x95)]&&(_0x357e28[_0x3aa92c(0x70)]=_0x2f80b7['env']);if(_0x2f80b7[_0x3aa92c(0xa0)]){const _0x10e96e=isRecord(_0x357e28[_0x3aa92c(0x8d)])?{..._0x357e28[_0x3aa92c(0x8d)]}:{},_0x2199ce=isRecord(_0x10e96e[_0x2f80b7['appName']])?_0x10e96e[_0x2f80b7[_0x3aa92c(0xa0)]]:{};_0x10e96e[_0x2f80b7['appName']]={..._0x2199ce,'appcode':_0x2f80b7[_0x3aa92c(0x87)]},_0x357e28[_0x3aa92c(0x8d)]=_0x10e96e,_0x357e28[_0x3aa92c(0x9c)]=_0x2f80b7[_0x3aa92c(0xa0)];if(_0x357e28[_0x3aa92c(0x9d)])delete _0x357e28[_0x3aa92c(0x9d)];return writeAndReturn(_0x591f4c,_0x357e28);}_0x357e28[_0x3aa92c(0x87)]=_0x2f80b7[_0x3aa92c(0x87)];if(_0x357e28[_0x3aa92c(0x9d)])delete _0x357e28[_0x3aa92c(0x9d)];return writeAndReturn(_0x591f4c,_0x357e28);}function writeAndReturn(_0x41ef23,_0x239f8d){return writeConfigFile(_0x41ef23,_0x239f8d),_0x41ef23;}function resolveWorkspaceEnv(_0x3b14e5){const _0x32e684=a62_0x2f6bd6;if(RUNTIME_ENV_VALUES[_0x32e684(0x8e)](_0x3b14e5))return _0x3b14e5;throw CliErrors[_0x32e684(0x7b)]('Invalid\x20env\x20\x22'+_0x3b14e5+_0x32e684(0x83)+RUNTIME_ENV_VALUES[_0x32e684(0x90)](',\x20'));}function buildWorkspaceMessage(_0x22c0bd,_0x26120f,_0x29f83c,_0x3c8355){const _0x5d3d7b=a62_0x2f6bd6,_0x5c7c6c=_0x26120f?_0x26120f+'\x20('+_0x29f83c+')':_0x29f83c,_0x238e81=_0x3c8355?_0x5d3d7b(0x7f)+_0x3c8355:'';return _0x5d3d7b(0xa3)+_0x22c0bd+_0x5d3d7b(0x94)+_0x5c7c6c+_0x238e81+'\x0aAccessKey:\x20not\x20written';}function a62_0x50dd(_0x2a3486,_0x3747){_0x2a3486=_0x2a3486-0x6f;const _0x45fe6a=a62_0x45fe();let _0x50dd9f=_0x45fe6a[_0x2a3486];return _0x50dd9f;}function isRecord(_0x3a9bfb){const _0x579437=a62_0x2f6bd6;return typeof _0x3a9bfb===_0x579437(0x75)&&_0x3a9bfb!==null&&!Array[_0x579437(0x7e)](_0x3a9bfb);}function makeWorkspaceCommand(_0x53de8d){const _0x35d6cf=a62_0x2f6bd6;return{'service':'workspace','command':_0x53de8d,'description':_0x53de8d==='init'?_0x35d6cf(0x81):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x35d6cf(0x9b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x541924){return executeWorkspaceUse(_0x541924,_0x53de8d);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a62_0x2f6bd6(0x8c))];
1
+ const a62_0x4a5103=a62_0x3027;(function(_0xfdbc6b,_0x3149bd){const _0x3c293e=a62_0x3027,_0x530e81=_0xfdbc6b();while(!![]){try{const _0x285828=-parseInt(_0x3c293e(0x174))/0x1+parseInt(_0x3c293e(0x191))/0x2*(parseInt(_0x3c293e(0x16a))/0x3)+-parseInt(_0x3c293e(0x16e))/0x4*(parseInt(_0x3c293e(0x172))/0x5)+-parseInt(_0x3c293e(0x158))/0x6*(parseInt(_0x3c293e(0x168))/0x7)+parseInt(_0x3c293e(0x16c))/0x8*(-parseInt(_0x3c293e(0x175))/0x9)+-parseInt(_0x3c293e(0x159))/0xa*(parseInt(_0x3c293e(0x190))/0xb)+-parseInt(_0x3c293e(0x18d))/0xc*(-parseInt(_0x3c293e(0x187))/0xd);if(_0x285828===_0x3149bd)break;else _0x530e81['push'](_0x530e81['shift']());}catch(_0x510076){_0x530e81['push'](_0x530e81['shift']());}}}(a62_0x3907,0xc93ed));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../../constant/env.js';import{CliErrors}from'../../errors.js';function a62_0x3027(_0x5a1c30,_0x4e94bc){_0x5a1c30=_0x5a1c30-0x154;const _0x390759=a62_0x3907();let _0x3027f5=_0x390759[_0x5a1c30];return _0x3027f5;}import{readConfigFile,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':'app','type':a62_0x4a5103(0x154),'description':a62_0x4a5103(0x189)},{'name':a62_0x4a5103(0x15c),'type':a62_0x4a5103(0x154),'description':a62_0x4a5103(0x16b)},{'name':a62_0x4a5103(0x18a),'type':'string','description':a62_0x4a5103(0x15e),'enum':[...RUNTIME_ENV_VALUES]},{'name':'yes','type':'boolean','description':a62_0x4a5103(0x160),'default':![]}];async function executeWorkspaceUse(_0x5a8b18,_0x1b567c){const _0x39d104=a62_0x4a5103,_0x1f4a67=_0x5a8b18[_0x39d104(0x18b)](_0x39d104(0x17c))[_0x39d104(0x188)](),_0x4a96b9=_0x5a8b18[_0x39d104(0x18b)](_0x39d104(0x15c))[_0x39d104(0x188)](),_0x596b3b=_0x5a8b18[_0x39d104(0x18b)](_0x39d104(0x18a))['trim'](),_0x49feac=resolveWorkspaceEnv(_0x596b3b||_0x5a8b18[_0x39d104(0x16f)]||DEFAULT_CONFIG_VALUES['env']);if(!_0x1f4a67&&!_0x4a96b9)throw CliErrors[_0x39d104(0x171)](_0x39d104(0x17a),_0x39d104(0x17b)+CLI_BIN_NAME+_0x39d104(0x162)+_0x1b567c+_0x39d104(0x161)+CLI_BIN_NAME+_0x39d104(0x162)+_0x1b567c+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x1d39ba=_0x4a96b9||await resolveRemoteAppCode({'command':_0x1b567c,'appName':_0x1f4a67,'env':_0x49feac,'accessKey':_0x5a8b18[_0x39d104(0x15b)]}),_0x5738c6=writeWorkspaceConfig({'command':_0x1b567c,'appName':_0x1f4a67,'appcode':_0x1d39ba,'env':_0x49feac,'shouldWriteEnv':!!_0x596b3b,'accessKey':_0x5a8b18['accessKey']});return{'ok':!![],'data':{'configPath':_0x5738c6,'app':_0x1f4a67||null,'appcode':_0x1d39ba,'env':_0x596b3b?_0x49feac:null,'accessKeyWritten':![],'command':_0x39d104(0x165)+_0x1b567c},'message':buildWorkspaceMessage(_0x5738c6,_0x1f4a67,_0x1d39ba,_0x596b3b?_0x49feac:undefined)};}async function resolveRemoteAppCode(_0x1cf8a0){const _0x2b01a3=a62_0x4a5103;if(!_0x1cf8a0[_0x2b01a3(0x15b)])throw CliErrors[_0x2b01a3(0x180)](_0x2b01a3(0x17e)+CLI_BIN_NAME+_0x2b01a3(0x162)+_0x1cf8a0[_0x2b01a3(0x16d)]+'.');const {setActiveAK:_0x7742ed}=await import(_0x2b01a3(0x17d)),{getRemoteAppList:_0x41da70}=await import(_0x2b01a3(0x17f));_0x7742ed(_0x1cf8a0['accessKey']);const _0x3d8d39=await _0x41da70({'env':_0x1cf8a0[_0x2b01a3(0x18a)],'accessKey':_0x1cf8a0[_0x2b01a3(0x15b)],'noCache':![]}),_0x936d05=findAppByName(_0x3d8d39[_0x2b01a3(0x15f)],_0x1cf8a0[_0x2b01a3(0x176)]);if(_0x936d05&&!isRuntimeAccessibleApp(_0x936d05))throw runtimeInaccessibleAppError(_0x936d05,'\x22'+_0x1cf8a0[_0x2b01a3(0x176)]+'\x22');const _0x229618=_0x936d05?.[_0x2b01a3(0x178)]?.[_0x2b01a3(0x188)]();if(_0x229618)return _0x229618;const _0xbf4d51=_0x3d8d39['items'][_0x2b01a3(0x18f)](_0x2ee7ff=>_0x2ee7ff[_0x2b01a3(0x176)])[_0x2b01a3(0x186)](Boolean),_0x319fd9=_0xbf4d51[_0x2b01a3(0x164)]?'Available\x20apps:\x20'+Array[_0x2b01a3(0x185)](new Set(_0xbf4d51))['join'](',\x20')+'.':_0x2b01a3(0x173)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x2b01a3(0x171)]('App\x20\x22'+_0x1cf8a0[_0x2b01a3(0x176)]+'\x22\x20not\x20found.',_0x319fd9);}function writeWorkspaceConfig(_0x2fdaf8){const _0x42356c=a62_0x4a5103,_0x54dcc1=resolveWriteConfigPath(_0x42356c(0x182)),_0x3e348e=readConfigFile(_0x54dcc1);_0x2fdaf8[_0x42356c(0x155)]&&(_0x3e348e[_0x42356c(0x18a)]=_0x2fdaf8[_0x42356c(0x18a)]);if(_0x2fdaf8[_0x42356c(0x176)]){const _0x458e35=isRecord(_0x3e348e[_0x42356c(0x184)])?{..._0x3e348e['apps']}:{},_0x1e3a78=isRecord(_0x458e35[_0x2fdaf8[_0x42356c(0x176)]])?_0x458e35[_0x2fdaf8[_0x42356c(0x176)]]:{};_0x458e35[_0x2fdaf8['appName']]={..._0x1e3a78,'appcode':_0x2fdaf8['appcode']},_0x3e348e[_0x42356c(0x184)]=_0x458e35,_0x3e348e[_0x42356c(0x177)]=_0x2fdaf8[_0x42356c(0x176)];if(_0x3e348e[_0x42356c(0x17c)])delete _0x3e348e[_0x42356c(0x17c)];return writeAndReturn(_0x54dcc1,_0x3e348e);}_0x3e348e[_0x42356c(0x15c)]=_0x2fdaf8[_0x42356c(0x15c)];if(_0x3e348e[_0x42356c(0x17c)])delete _0x3e348e['app'];return writeAndReturn(_0x54dcc1,_0x3e348e);}function writeAndReturn(_0x158947,_0x154668){return writeConfigFile(_0x158947,_0x154668),_0x158947;}function resolveWorkspaceEnv(_0x5583d5){const _0x55b4ce=a62_0x4a5103;if(RUNTIME_ENV_VALUES[_0x55b4ce(0x156)](_0x5583d5))return _0x5583d5;throw CliErrors[_0x55b4ce(0x171)](_0x55b4ce(0x169)+_0x5583d5+_0x55b4ce(0x167)+RUNTIME_ENV_VALUES[_0x55b4ce(0x166)](',\x20'));}function a62_0x3907(){const _0x2cf9b1=['trim','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','env','str','init','12qOQxMJ','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','map','28589TZtjOP','3260378PXZEQg','string','shouldWriteEnv','includes','\x0aEnv:\x20','66DsEkLa','3170xHnZmS','Workspace\x20configured.\x0aConfig\x20file:\x20','accessKey','appcode','write','Target\x20environment','items','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x20workspace\x20','workspace','length','workspace\x20','join','\x22.\x20Allowed:\x20','654451ycjvVV','Invalid\x20env\x20\x22','3kEbhbK','App\x20code\x20to\x20bind\x20directly','7803208IAIWmg','command','2776472NEoOAt','envName','use','validation','5dyUxfo','Run\x20`','1588856IvEqzi','9nFbxkI','appName','defaultApp','appCode','object','Missing\x20workspace\x20app\x20selector.','Usage:\x20','app','../../core/api-client.js','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','../../commands/app/remote-source.js','authRequired','\x0aAccessKey:\x20not\x20written','project','isArray','apps','from','filter','55962309mbsbBW'];a62_0x3907=function(){return _0x2cf9b1;};return a62_0x3907();}function buildWorkspaceMessage(_0x55d88b,_0x43316c,_0x55fe68,_0xff3e7e){const _0x5c8c28=a62_0x4a5103,_0x169600=_0x43316c?_0x43316c+'\x20('+_0x55fe68+')':_0x55fe68,_0x4a05e7=_0xff3e7e?_0x5c8c28(0x157)+_0xff3e7e:'';return _0x5c8c28(0x15a)+_0x55d88b+'\x0aDefault\x20app:\x20'+_0x169600+_0x4a05e7+_0x5c8c28(0x181);}function isRecord(_0x11d7f6){const _0x592c10=a62_0x4a5103;return typeof _0x11d7f6===_0x592c10(0x179)&&_0x11d7f6!==null&&!Array[_0x592c10(0x183)](_0x11d7f6);}function makeWorkspaceCommand(_0x42ff88){const _0x3e4ff5=a62_0x4a5103;return{'service':_0x3e4ff5(0x163),'command':_0x42ff88,'description':_0x42ff88==='init'?_0x3e4ff5(0x18e):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x3e4ff5(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x29866f){return executeWorkspaceUse(_0x29866f,_0x42ff88);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a62_0x4a5103(0x18c)),makeWorkspaceCommand(a62_0x4a5103(0x170))];
@@ -1 +1 @@
1
- const a63_0x135f5d=a63_0x4404;(function(_0x348090,_0x8f3399){const _0x460539=a63_0x4404,_0x368c7f=_0x348090();while(!![]){try{const _0x3e7729=-parseInt(_0x460539(0x94))/0x1+-parseInt(_0x460539(0x83))/0x2*(-parseInt(_0x460539(0x89))/0x3)+-parseInt(_0x460539(0x8e))/0x4*(parseInt(_0x460539(0x79))/0x5)+-parseInt(_0x460539(0x87))/0x6+parseInt(_0x460539(0x90))/0x7*(-parseInt(_0x460539(0x95))/0x8)+-parseInt(_0x460539(0x78))/0x9*(parseInt(_0x460539(0x91))/0xa)+parseInt(_0x460539(0x8b))/0xb;if(_0x3e7729===_0x8f3399)break;else _0x368c7f['push'](_0x368c7f['shift']());}catch(_0x4438fd){_0x368c7f['push'](_0x368c7f['shift']());}}}(a63_0x415c,0x41e29));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a63_0x4404(_0x50e093,_0x175652){_0x50e093=_0x50e093-0x74;const _0x415caf=a63_0x415c();let _0x440474=_0x415caf[_0x50e093];return _0x440474;}function a63_0x415c(){const _0x27a5a2=['map','has','1062603ysNQwn','10285mUAdfl','Locale','Override\x20runtime\x20domain','Override\x20SkillHub\x20domain','Target\x20environment','legacyCompatOnly','entries','Override\x20API\x20domain','format','join','9686adFCSe','riskLevel','importable','Risk\x20level','2110476zUmIJC','cliSettableTopLevel','60xtYkwP',';\x20local\x20alias:\x20apps.<alias>.appcode','17035975IytUhG','Default\x20output\x20format','Default\x20page\x20size','604wPpwxo','fromEntries','7MHNtQR','10JPMTXj','enumValues','filter','226071vvGSYP','2953832UJJJHa','Access\x20key\x20(client-ak\x20auth)','locale'];a63_0x415c=function(){return _0x27a5a2;};return a63_0x415c();}import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a63_0x135f5d(0x7d),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':a63_0x135f5d(0x8c),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x135f5d(0x81)],'importable':!![]},'pageSize':{'description':a63_0x135f5d(0x8d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a63_0x135f5d(0x80),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a63_0x135f5d(0x7b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0x135f5d(0x7c),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a63_0x135f5d(0x74),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0x135f5d(0x86),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x135f5d(0x84)],'importable':!![]},'locale':{'description':a63_0x135f5d(0x7a),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x135f5d(0x75)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x251976])=>_0x251976[a63_0x135f5d(0x88)])['map'](([_0x14f6bd])=>_0x14f6bd));export const CONFIG_ENUM_VALUES=Object[a63_0x135f5d(0x8f)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a63_0x135f5d(0x93)](([,_0x32ca3a])=>_0x32ca3a[a63_0x135f5d(0x92)])['map'](([_0x53fb31,_0x386d03])=>[_0x53fb31,[..._0x386d03[a63_0x135f5d(0x92)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0x135f5d(0x7f)](CONFIG_FIELD_SCHEMAS)[a63_0x135f5d(0x93)](([,_0x1de5b7])=>_0x1de5b7[a63_0x135f5d(0x85)])[a63_0x135f5d(0x76)](([_0x2b4b56])=>_0x2b4b56);export function getConfigFieldSchema(_0x14b99a){return CONFIG_FIELD_SCHEMAS[_0x14b99a];}export function getConfigEnumValues(_0x13cae){const _0x26a20b=a63_0x135f5d;return getConfigFieldSchema(_0x13cae)?.[_0x26a20b(0x92)];}export function getConfigDefaultValue(_0x338842){return getConfigFieldSchema(_0x338842)?.['defaultValue'];}export function isTopLevelConfigKey(_0x464615){const _0x2436e0=a63_0x135f5d;return TOP_LEVEL_CONFIG_KEYS[_0x2436e0(0x77)](_0x464615);}export function isLegacyCompatConfigKey(_0x4a745c){const _0x493b87=a63_0x135f5d;return getConfigFieldSchema(_0x4a745c)?.[_0x493b87(0x7e)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4ccd92){const _0x4265e8=a63_0x135f5d;return[..._0x4ccd92][_0x4265e8(0x82)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x6bfaad=a63_0x135f5d;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x6bfaad(0x8a);}export function buildAppProfileListFields(_0x32a45f){return{'env':_0x32a45f,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a63_0x573b77=a63_0x531b;(function(_0x515023,_0x197f43){const _0x5228fa=a63_0x531b,_0x40daa8=_0x515023();while(!![]){try{const _0x52d5b6=-parseInt(_0x5228fa(0x103))/0x1*(-parseInt(_0x5228fa(0x11d))/0x2)+parseInt(_0x5228fa(0x10d))/0x3*(-parseInt(_0x5228fa(0x111))/0x4)+parseInt(_0x5228fa(0x109))/0x5+-parseInt(_0x5228fa(0x11e))/0x6+parseInt(_0x5228fa(0x104))/0x7+-parseInt(_0x5228fa(0x116))/0x8+-parseInt(_0x5228fa(0x114))/0x9*(-parseInt(_0x5228fa(0x106))/0xa);if(_0x52d5b6===_0x197f43)break;else _0x40daa8['push'](_0x40daa8['shift']());}catch(_0x5ed7ee){_0x40daa8['push'](_0x40daa8['shift']());}}}(a63_0x5ee8,0xc9c4f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a63_0x573b77(0x10f),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573b77(0x107)],'importable':!![]},'format':{'description':a63_0x573b77(0x11a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573b77(0x11c)],'importable':!![]},'pageSize':{'description':a63_0x573b77(0x10e),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a63_0x573b77(0x108),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a63_0x573b77(0x119),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a63_0x573b77(0x11f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a63_0x573b77(0x117),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a63_0x573b77(0x100),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a63_0x573b77(0x105),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573b77(0x11b)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a63_0x573b77(0x102)],'importable':!![],'legacyCompatOnly':!![]}};function a63_0x531b(_0x4b5938,_0x1823ea){_0x4b5938=_0x4b5938-0x100;const _0x5ee8da=a63_0x5ee8();let _0x531b7b=_0x5ee8da[_0x4b5938];return _0x531b7b;}export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a63_0x573b77(0x118)](CONFIG_FIELD_SCHEMAS)[a63_0x573b77(0x10a)](([,_0x54df66])=>_0x54df66[a63_0x573b77(0x101)])[a63_0x573b77(0x10b)](([_0x4d8d07])=>_0x4d8d07));export const CONFIG_ENUM_VALUES=Object[a63_0x573b77(0x110)](Object[a63_0x573b77(0x118)](CONFIG_FIELD_SCHEMAS)[a63_0x573b77(0x10a)](([,_0x4a561e])=>_0x4a561e['enumValues'])['map'](([_0x16699a,_0x55aebe])=>[_0x16699a,[..._0x55aebe['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a63_0x573b77(0x118)](CONFIG_FIELD_SCHEMAS)[a63_0x573b77(0x10a)](([,_0x4cb778])=>_0x4cb778[a63_0x573b77(0x113)])[a63_0x573b77(0x10b)](([_0x2f7fcb])=>_0x2f7fcb);export function getConfigFieldSchema(_0x22f0c){return CONFIG_FIELD_SCHEMAS[_0x22f0c];}export function getConfigEnumValues(_0x472d83){return getConfigFieldSchema(_0x472d83)?.['enumValues'];}export function getConfigDefaultValue(_0xd7d1f){const _0x5dfcd1=a63_0x573b77;return getConfigFieldSchema(_0xd7d1f)?.[_0x5dfcd1(0x10c)];}export function isTopLevelConfigKey(_0x5878f5){const _0x5de0a8=a63_0x573b77;return TOP_LEVEL_CONFIG_KEYS[_0x5de0a8(0x112)](_0x5878f5);}function a63_0x5ee8(){const _0x4f6b84=['515090GeEFRz','env','Override\x20API\x20domain','1471615rFcRex','filter','map','defaultValue','2247yMpQHq','Default\x20page\x20size','Target\x20environment','fromEntries','8028BJPJzC','has','importable','423Rokbcd',';\x20local\x20alias:\x20apps.<alias>.appcode','8078432xaGzhN','Override\x20SkillHub\x20domain','entries','Override\x20user\x20domain','Default\x20output\x20format','riskLevel','format','119208LpgfeT','8626926rmutRA','Override\x20runtime\x20domain','Access\x20key\x20(client-ak\x20auth)','cliSettableTopLevel','locale','19SzlNxA','6507151icQIQB','Risk\x20level'];a63_0x5ee8=function(){return _0x4f6b84;};return a63_0x5ee8();}export function isLegacyCompatConfigKey(_0x5774c9){return getConfigFieldSchema(_0x5774c9)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x296799){return[..._0x296799]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xd93710=a63_0x573b77;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0xd93710(0x115);}export function buildAppProfileListFields(_0x2a1c85){return{'env':_0x2a1c85,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a64_0x154b(_0x5513be,_0x48c354){_0x5513be=_0x5513be-0x93;const _0x56aff8=a64_0x56af();let _0x154bf4=_0x56aff8[_0x5513be];return _0x154bf4;}const a64_0x11abee=a64_0x154b;(function(_0x2dc1f7,_0x371fe5){const _0x4bac7f=a64_0x154b,_0x2056d1=_0x2dc1f7();while(!![]){try{const _0x5f3499=parseInt(_0x4bac7f(0x97))/0x1*(parseInt(_0x4bac7f(0x95))/0x2)+-parseInt(_0x4bac7f(0x9c))/0x3*(-parseInt(_0x4bac7f(0x99))/0x4)+parseInt(_0x4bac7f(0x93))/0x5+-parseInt(_0x4bac7f(0x9b))/0x6*(-parseInt(_0x4bac7f(0x9e))/0x7)+parseInt(_0x4bac7f(0x94))/0x8+-parseInt(_0x4bac7f(0x9a))/0x9*(-parseInt(_0x4bac7f(0x9d))/0xa)+parseInt(_0x4bac7f(0xa1))/0xb*(-parseInt(_0x4bac7f(0xa0))/0xc);if(_0x5f3499===_0x371fe5)break;else _0x2056d1['push'](_0x2056d1['shift']());}catch(_0x579cf2){_0x2056d1['push'](_0x2056d1['shift']());}}}(a64_0x56af,0x7da6d));function a64_0x56af(){const _0x185443=['12230JYUYyw','UNPUBLISH','125SSPdLx','Published','3240140GChgWk','657AShJmG','24WpUSip','3hyAvtC','89290jziAfB','1118404hxFSKh','PUBLISHED','5268TgIeYo','91806ZGrjSC','2963155RXkFow','5764936lcQpPw'];a64_0x56af=function(){return _0x185443;};return a64_0x56af();}export const APP_PUBLISH_STATUS={'Published':a64_0x11abee(0x9f),'Unpublished':a64_0x11abee(0x96)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a64_0x11abee(0x98)];
1
+ const a64_0x2f8e2e=a64_0x2a6c;(function(_0x4a5855,_0x512ae4){const _0x53c31e=a64_0x2a6c,_0x5b0b37=_0x4a5855();while(!![]){try{const _0x32b637=-parseInt(_0x53c31e(0x1ec))/0x1*(-parseInt(_0x53c31e(0x1e7))/0x2)+parseInt(_0x53c31e(0x1f1))/0x3*(parseInt(_0x53c31e(0x1e4))/0x4)+parseInt(_0x53c31e(0x1ed))/0x5+-parseInt(_0x53c31e(0x1e6))/0x6+-parseInt(_0x53c31e(0x1ef))/0x7*(parseInt(_0x53c31e(0x1ea))/0x8)+-parseInt(_0x53c31e(0x1e9))/0x9*(parseInt(_0x53c31e(0x1f2))/0xa)+parseInt(_0x53c31e(0x1ee))/0xb*(parseInt(_0x53c31e(0x1e8))/0xc);if(_0x32b637===_0x512ae4)break;else _0x5b0b37['push'](_0x5b0b37['shift']());}catch(_0x1444ff){_0x5b0b37['push'](_0x5b0b37['shift']());}}}(a64_0x4ab2,0xb300c));export const APP_PUBLISH_STATUS={'Published':a64_0x2f8e2e(0x1f0),'Unpublished':a64_0x2f8e2e(0x1e5)};function a64_0x2a6c(_0x40059f,_0x32a388){_0x40059f=_0x40059f-0x1e4;const _0x4ab295=a64_0x4ab2();let _0x2a6c81=_0x4ab295[_0x40059f];return _0x2a6c81;}function a64_0x4ab2(){const _0x17202e=['4122AAOtZP','32asSsPj','Published','23qjkGbX','620535BttGUV','765633tWuNGP','2458834XKnuqH','PUBLISHED','45ifeSiy','18760KNcvxv','345704gzNjsf','UNPUBLISH','4646376tyLDjb','47102XGdcfW','312XwxexI'];a64_0x4ab2=function(){return _0x17202e;};return a64_0x4ab2();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a64_0x2f8e2e(0x1eb)];
@@ -1 +1 @@
1
- function a65_0x599c(_0x373798,_0x4872f3){_0x373798=_0x373798-0x13d;const _0x29dfb9=a65_0x29df();let _0x599cd9=_0x29dfb9[_0x373798];return _0x599cd9;}const a65_0x21d2f1=a65_0x599c;(function(_0x5461f4,_0x274648){const _0xc1456f=a65_0x599c,_0x4007f3=_0x5461f4();while(!![]){try{const _0x5a1e74=parseInt(_0xc1456f(0x149))/0x1+-parseInt(_0xc1456f(0x14a))/0x2*(-parseInt(_0xc1456f(0x147))/0x3)+-parseInt(_0xc1456f(0x146))/0x4*(parseInt(_0xc1456f(0x13f))/0x5)+parseInt(_0xc1456f(0x141))/0x6*(-parseInt(_0xc1456f(0x143))/0x7)+-parseInt(_0xc1456f(0x140))/0x8*(parseInt(_0xc1456f(0x145))/0x9)+parseInt(_0xc1456f(0x13d))/0xa+-parseInt(_0xc1456f(0x142))/0xb*(-parseInt(_0xc1456f(0x13e))/0xc);if(_0x5a1e74===_0x274648)break;else _0x4007f3['push'](_0x4007f3['shift']());}catch(_0x5eb911){_0x4007f3['push'](_0x4007f3['shift']());}}}(a65_0x29df,0x99586));export const AUTH_MODE={'ClientAk':a65_0x21d2f1(0x148)};function a65_0x29df(){const _0x33be1e=['569096spBTHT','862211qTnMPX','ClientAk','9VBWcZf','4lBSizV','819543SwSzgw','client-ak','530211DzMuCM','6rOROOq','6212460TUfRPY','408cejtXe','4345195KZRmOF','8009224BxKqQD','60FvrRhq'];a65_0x29df=function(){return _0x33be1e;};return a65_0x29df();}export function isAuthMode(_0x57f5d5){const _0x14ea4c=a65_0x21d2f1;return _0x57f5d5===AUTH_MODE[_0x14ea4c(0x144)];}
1
+ (function(_0x5ac4ef,_0x1825d4){const _0x192529=a65_0x189b,_0x3e3cda=_0x5ac4ef();while(!![]){try{const _0x45a5a0=-parseInt(_0x192529(0x17b))/0x1*(-parseInt(_0x192529(0x179))/0x2)+-parseInt(_0x192529(0x17a))/0x3*(parseInt(_0x192529(0x17d))/0x4)+parseInt(_0x192529(0x180))/0x5+-parseInt(_0x192529(0x17f))/0x6*(-parseInt(_0x192529(0x181))/0x7)+parseInt(_0x192529(0x182))/0x8+parseInt(_0x192529(0x17e))/0x9+-parseInt(_0x192529(0x17c))/0xa;if(_0x45a5a0===_0x1825d4)break;else _0x3e3cda['push'](_0x3e3cda['shift']());}catch(_0x1cbd9e){_0x3e3cda['push'](_0x3e3cda['shift']());}}}(a65_0x2283,0x9efe9));export const AUTH_MODE={'ClientAk':'client-ak'};function a65_0x2283(){const _0x2c3680=['4697511obltDE','1121368lmusuB','63188cgdqeN','24dTPuql','8wIgEne','17112630TLWvxC','212024OuebQC','9856539GTeoMD','6wOTgah','3136925GqTwin'];a65_0x2283=function(){return _0x2c3680;};return a65_0x2283();}function a65_0x189b(_0x39a7e0,_0x1585e8){_0x39a7e0=_0x39a7e0-0x179;const _0x228312=a65_0x2283();let _0x189bdf=_0x228312[_0x39a7e0];return _0x189bdf;}export function isAuthMode(_0xa120de){return _0xa120de===AUTH_MODE['ClientAk'];}