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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- const a35_0x5a43f2=a35_0x2be2;(function(_0x2905b7,_0x48e2b1){const _0x5935f9=a35_0x2be2,_0x4ac372=_0x2905b7();while(!![]){try{const _0x1da74b=parseInt(_0x5935f9(0xdb))/0x1*(parseInt(_0x5935f9(0xe9))/0x2)+parseInt(_0x5935f9(0xf0))/0x3+-parseInt(_0x5935f9(0xa8))/0x4*(parseInt(_0x5935f9(0xd6))/0x5)+parseInt(_0x5935f9(0x93))/0x6*(-parseInt(_0x5935f9(0xcc))/0x7)+parseInt(_0x5935f9(0xde))/0x8+-parseInt(_0x5935f9(0x98))/0x9*(parseInt(_0x5935f9(0xb7))/0xa)+parseInt(_0x5935f9(0xd1))/0xb*(-parseInt(_0x5935f9(0x9c))/0xc);if(_0x1da74b===_0x48e2b1)break;else _0x4ac372['push'](_0x4ac372['shift']());}catch(_0x219476){_0x4ac372['push'](_0x4ac372['shift']());}}}(a35_0x3351,0xe9c86));import{CliErrors}from'../../errors.js';import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{DEFAULT_SKILL_TARGET,renderSkillTemplate,SKILL_NAME_PATTERN,SKILL_TYPES}from'../../commands/skill/templates.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../../commands/skill/validate.js';const CODE_FLAG={'name':a35_0x5a43f2(0xe4),'type':'string','description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'},SCOPE_FLAG={'name':'scope','type':'string','description':a35_0x5a43f2(0xd3),'enum':[a35_0x5a43f2(0xd9),a35_0x5a43f2(0xd8),'company']},LIST_SCOPE_FLAG={'name':a35_0x5a43f2(0xd4),'type':a35_0x5a43f2(0x8e),'description':a35_0x5a43f2(0xa5),'enum':['all',a35_0x5a43f2(0xd8),'company']},LOCAL_FLAG={'name':a35_0x5a43f2(0xcb),'type':a35_0x5a43f2(0x8f),'description':a35_0x5a43f2(0xe2)},DIR_FLAG={'name':a35_0x5a43f2(0xa7),'type':a35_0x5a43f2(0x8e),'required':!![],'description':a35_0x5a43f2(0xc6)},CREATE_NAME_FLAG={'name':a35_0x5a43f2(0xbf),'type':'string','required':!![],'description':a35_0x5a43f2(0xb6),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a35_0x5a43f2(0x9a)}},TYPE_FLAG={'name':a35_0x5a43f2(0xae),'type':a35_0x5a43f2(0x8e),'description':a35_0x5a43f2(0xc8),'default':a35_0x5a43f2(0xa3),'enum':[...SKILL_TYPES]},TARGET_FLAG={'name':'target','type':a35_0x5a43f2(0x8e),'description':a35_0x5a43f2(0x8d),'default':DEFAULT_SKILL_TARGET},FORCE_FLAG={'name':'force','type':a35_0x5a43f2(0x8f),'description':a35_0x5a43f2(0xe3)},STRICT_FLAG={'name':a35_0x5a43f2(0xe8),'type':a35_0x5a43f2(0x8f),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};function summarizeRuntimeSkill(_0x12f290){const _0x59feb2=a35_0x5a43f2;return{'id':_0x12f290['id'],'skillCode':_0x12f290['skillCode'],'skillName':_0x12f290[_0x59feb2(0xbc)],'scope':_0x12f290[_0x59feb2(0xd4)],'version':_0x12f290[_0x59feb2(0xf1)],'readonly':_0x12f290['readonly']};}function summarizeLocalRuntimeSkill(_0x396107){const _0x3c19c5=a35_0x5a43f2;return{'id':_0x396107['id'],'skillCode':_0x396107[_0x3c19c5(0x9e)],'skillName':_0x396107[_0x3c19c5(0xbc)],'scope':_0x396107[_0x3c19c5(0xd4)],'appCode':_0x396107['appCode'],'version':_0x396107[_0x3c19c5(0xf1)],'status':_0x396107[_0x3c19c5(0xf8)],'readonly':_0x396107[_0x3c19c5(0x8c)],'tags':_0x396107[_0x3c19c5(0x92)],'dir':_0x396107[_0x3c19c5(0xa7)],'cacheDir':_0x396107['cacheDir'],'skillMdPath':_0x396107[_0x3c19c5(0x8b)],'metadataPath':_0x396107[_0x3c19c5(0x90)],'linkedPaths':_0x396107['linkedPaths'],'contentHash':_0x396107[_0x3c19c5(0xee)],'treeHash':_0x396107['treeHash'],'pulledAt':_0x396107[_0x3c19c5(0xb1)]};}export const skillDefinitions=[{'service':a35_0x5a43f2(0xaa),'command':a35_0x5a43f2(0xc0),'description':a35_0x5a43f2(0xc2),'risk':a35_0x5a43f2(0xa3),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG],async 'execute'(_0x2e426b){return syncRuntimeSkills(_0x2e426b);}},{'service':a35_0x5a43f2(0xaa),'command':a35_0x5a43f2(0xf7),'description':a35_0x5a43f2(0xc9),'risk':a35_0x5a43f2(0xa3),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x1cccc5){const _0x360194=a35_0x5a43f2,_0x2dcc83=buildSkillCreatePlan(_0x1cccc5[_0x360194(0xf5)]('name'),_0x1cccc5[_0x360194(0xf5)](_0x360194(0xae)),_0x1cccc5[_0x360194(0xf5)](_0x360194(0xf4)));return{'method':_0x360194(0xd2),'url':_0x2dcc83[_0x360194(0xac)],'body':{'skillName':_0x2dcc83[_0x360194(0x9d)]['skillName'],'type':_0x2dcc83['rendered'][_0x360194(0xae)],'selfContained':!![],'files':_0x2dcc83[_0x360194(0x9d)][_0x360194(0xcf)][_0x360194(0xdd)](_0x2463ff=>_0x2463ff[_0x360194(0xaf)])},'description':_0x360194(0xba)};},async 'execute'(_0xbeb776){const _0xc0ba03=a35_0x5a43f2,_0x432e7a=buildSkillCreatePlan(_0xbeb776[_0xc0ba03(0xf5)](_0xc0ba03(0xbf)),_0xbeb776[_0xc0ba03(0xf5)](_0xc0ba03(0xae)),_0xbeb776[_0xc0ba03(0xf5)](_0xc0ba03(0xf4)));return writeSkillDraft(_0x432e7a,_0xbeb776[_0xc0ba03(0x9b)](_0xc0ba03(0xcd))),{'ok':!![],'data':{'skillName':_0x432e7a[_0xc0ba03(0x9d)][_0xc0ba03(0xbc)],'type':_0x432e7a['rendered']['type'],'dir':_0x432e7a['skillDir'],'files':_0x432e7a[_0xc0ba03(0x9d)][_0xc0ba03(0xcf)][_0xc0ba03(0xdd)](_0xd36b89=>_0xd36b89['path'])},'message':'Created\x20local\x20Skill\x20draft\x20'+_0x432e7a[_0xc0ba03(0x9d)][_0xc0ba03(0xbc)]};}},{'service':a35_0x5a43f2(0xaa),'command':a35_0x5a43f2(0x97),'description':a35_0x5a43f2(0x95),'risk':a35_0x5a43f2(0xd5),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x5d4b4c){const _0x4abff4=a35_0x5a43f2,_0x43b4b3=_0x5d4b4c['bool'](_0x4abff4(0xe8)),_0x4106f0=validateSkillDirectory(_0x5d4b4c[_0x4abff4(0xf5)](_0x4abff4(0xa7)),{'strict':_0x43b4b3});return throwIfSkillValidationFailed(_0x4106f0,_0x43b4b3),{'ok':!![],'data':{'dir':_0x4106f0[_0x4abff4(0xa7)],'type':_0x4106f0[_0x4abff4(0xae)],'errors':_0x4106f0[_0x4abff4(0x91)],'warnings':_0x4106f0[_0x4abff4(0xa6)]},'message':_0x4abff4(0xe0)};}},{'service':a35_0x5a43f2(0xaa),'command':'list','description':a35_0x5a43f2(0xeb),'risk':a35_0x5a43f2(0xd5),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x79232a){const _0x3711b4=a35_0x5a43f2,_0x214ec8=_0x79232a['str'](_0x3711b4(0xe4)),_0x22f60c=normalizeListScope(_0x79232a[_0x3711b4(0xf5)]('scope'));if(_0x79232a[_0x3711b4(0x9b)](_0x3711b4(0xcb))){const _0x3f2810=_0x79232a[_0x3711b4(0xb0)];if(!_0x3f2810)throw CliErrors[_0x3711b4(0xb9)]();const {listLocalRuntimeSkills:_0x45c984}=await import(_0x3711b4(0x9f)),_0x16596c=_0x45c984({'env':_0x79232a[_0x3711b4(0xe7)]??_0x3711b4(0xb5),'accessKey':_0x3f2810,'appCode':_0x79232a['appCode'],'scopes':listScopeToRuntimeScopes(_0x22f60c),'code':_0x214ec8[_0x3711b4(0xb3)]()||undefined}),_0x3d6e4a=groupLocalRuntimeSkills(_0x16596c);return{'ok':!![],'data':{'appCode':_0x79232a[_0x3711b4(0x94)],'source':_0x3711b4(0xcb),'scope':_0x22f60c,'total':_0x16596c[_0x3711b4(0xdf)],'personal':_0x3d6e4a[_0x3711b4(0xd8)][_0x3711b4(0xdf)],'company':_0x3d6e4a[_0x3711b4(0xf3)][_0x3711b4(0xdf)],'items':_0x16596c['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3d6e4a['personal']['map'](summarizeLocalRuntimeSkill),'company':_0x3d6e4a[_0x3711b4(0xf3)][_0x3711b4(0xdd)](summarizeLocalRuntimeSkill)}},'message':_0x3711b4(0xf2)+_0x16596c[_0x3711b4(0xdf)]+_0x3711b4(0xab)};}const {listRuntimeSkills:_0x579b80}=await import(_0x3711b4(0xbb)),_0x2eda95=await _0x579b80({'appCode':_0x79232a['appCode'],'scope':listScopeToRemoteScope(_0x22f60c),'code':_0x214ec8['trim']()||undefined}),_0xfe8d66=shouldListScope(_0x22f60c,_0x3711b4(0xd8))?_0x2eda95['personal']??[]:[],_0x3fc010=shouldListScope(_0x22f60c,_0x3711b4(0xf3))?_0x2eda95[_0x3711b4(0xf3)]??[]:[],_0x3e3792=[..._0xfe8d66,..._0x3fc010];return{'ok':!![],'data':{'appCode':_0x79232a[_0x3711b4(0x94)],'source':'remote','scope':_0x22f60c,'total':_0x3e3792['length'],'personal':_0xfe8d66['length'],'company':_0x3fc010[_0x3711b4(0xdf)],'items':_0x3e3792[_0x3711b4(0xdd)](summarizeRuntimeSkill),'skills':{'personal':_0xfe8d66[_0x3711b4(0xdd)](summarizeRuntimeSkill),'company':_0x3fc010[_0x3711b4(0xdd)](summarizeRuntimeSkill)}},'message':_0x3711b4(0xf2)+_0x3e3792[_0x3711b4(0xdf)]+'\x20remote\x20Skill(s).'};}},{'service':a35_0x5a43f2(0xaa),'command':a35_0x5a43f2(0xce),'description':a35_0x5a43f2(0xdc),'risk':a35_0x5a43f2(0xa3),'flags':[DIR_FLAG],async 'execute'(_0x5732a0){const _0x5b65bf=a35_0x5a43f2,{createPersonalRuntimeSkill:_0x4bdb5a,downloadRuntimeSkillPackage:_0x34f981,listRuntimeSkills:_0x3f4cb9,updatePersonalRuntimeSkill:_0x17cb69}=await import(_0x5b65bf(0xbb)),{verifyRuntimeSkillPackage:_0x2850f8,verifyRuntimeSkillBundle:_0x1d5119,readPushDirectory:_0x3b4eef,recordPushedRuntimeSkill:_0x26ebac}=await import('../../skills/runtime-skill-sync.js');if(!_0x5732a0[_0x5b65bf(0xb0)])throw CliErrors[_0x5b65bf(0xb9)]();const _0x1084c9=_0x5732a0[_0x5b65bf(0xf5)](_0x5b65bf(0xa7)),_0x57ba7e=validateSkillDirectory(_0x1084c9);throwIfSkillValidationFailed(_0x57ba7e);const _0x17626b=_0x57ba7e['dir'],_0xf67799=_0x3b4eef(_0x17626b,_0x5732a0['appCode']),_0x4c8a13=(await _0x3f4cb9({'appCode':_0x5732a0[_0x5b65bf(0x94)],'scope':_0x5b65bf(0xd8)}))[_0x5b65bf(0xd8)][_0x5b65bf(0xa1)](_0xfd8eed=>_0xfd8eed[_0x5b65bf(0x9e)]===_0xf67799['skillCode']),_0x3c629c=_0x4c8a13?await _0x17cb69(_0xf67799[_0x5b65bf(0x9e)],_0x5732a0[_0x5b65bf(0x94)],_0xf67799['input']):await _0x4bdb5a(_0x5732a0[_0x5b65bf(0x94)],_0xf67799[_0x5b65bf(0xe6)]);let _0x2b5030=_0x3c629c;if(isMultiFileManifest(_0xf67799['input']['files'])){const _0x52fd48=await _0x34f981(_0x5b65bf(0xd8),_0x3c629c[_0x5b65bf(0x9e)]||_0xf67799[_0x5b65bf(0x9e)],_0x5732a0[_0x5b65bf(0x94)]);_0x1d5119(_0xf67799[_0x5b65bf(0xe6)][_0x5b65bf(0xcf)],_0x52fd48),_0x2b5030={..._0x3c629c,'files':_0xf67799[_0x5b65bf(0xe6)]['files']};}else{if(isPackageBackedManifest(_0x3c629c[_0x5b65bf(0xcf)])){const _0x496515=await _0x34f981(_0x5b65bf(0xd8),_0x3c629c[_0x5b65bf(0x9e)]||_0xf67799[_0x5b65bf(0x9e)],_0x5732a0[_0x5b65bf(0x94)]);_0x2850f8(_0x3c629c['files'],_0x496515);}}return _0x26ebac(_0x17626b,_0x2b5030,_0x5732a0[_0x5b65bf(0x94)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x3c629c),'message':_0x4c8a13?_0x5b65bf(0xc1)+_0xf67799['skillCode']:_0x5b65bf(0xf6)+_0xf67799[_0x5b65bf(0x9e)]};}}];async function syncRuntimeSkills(_0x407bf9){const _0x135cbd=a35_0x5a43f2,{downloadRuntimeSkillPackage:_0x2166a2,listRuntimeSkills:_0x1d3802}=await import(_0x135cbd(0xbb)),{linkEffectiveRuntimeSkills:_0x103f7c,materializeRuntimeSkill:_0x1b12ee,pruneStaleRuntimeSkillCache:_0x184141,pruneStaleRuntimeSkillLinks:_0x13bc41}=await import(_0x135cbd(0x9f)),_0x2310d0=_0x407bf9[_0x135cbd(0xf5)](_0x135cbd(0xe4)),_0x5ce48f=normalizeSyncScopes(_0x407bf9[_0x135cbd(0xf5)](_0x135cbd(0xd4))),_0x43ee0a=_0x407bf9['envName']??_0x135cbd(0xb5),_0x3dad4d=_0x407bf9['accessKey'];if(!_0x3dad4d)throw CliErrors[_0x135cbd(0xb9)](_0x135cbd(0xed));const _0x5b6888=await Promise[_0x135cbd(0xd9)](_0x5ce48f['map'](_0x3fd9ca=>_0x1d3802({'appCode':_0x407bf9[_0x135cbd(0x94)],'scope':_0x3fd9ca,'code':_0x2310d0[_0x135cbd(0xb3)]()||undefined}))),_0x350e38=_0x5ce48f['includes']('personal')?_0x5b6888[_0x135cbd(0xc4)]((_0x235845,_0x2e0e08)=>_0x5ce48f[_0x2e0e08]===_0x135cbd(0xd8)?_0x235845['personal']:[]):[],_0x2d822a=_0x5ce48f[_0x135cbd(0xb8)](_0x135cbd(0xf3))?_0x5b6888[_0x135cbd(0xc4)]((_0x296941,_0x3edb4b)=>_0x5ce48f[_0x3edb4b]===_0x135cbd(0xf3)?_0x296941['company']:[]):[],_0x21dbff=new Set([..._0x350e38[_0x135cbd(0xdd)](_0x2bc402=>_0x2bc402['skillCode']?.['trim']())[_0x135cbd(0xb4)](_0x2d7247=>Boolean(_0x2d7247)),..._0x2d822a[_0x135cbd(0xdd)](_0x1cc792=>_0x1cc792[_0x135cbd(0x9e)]?.[_0x135cbd(0xb3)]())[_0x135cbd(0xb4)](_0x20da2e=>Boolean(_0x20da2e))]),_0x5a9738=_0x2310d0[_0x135cbd(0xb3)]()?[_0x2310d0[_0x135cbd(0xb3)]()]:undefined,_0x53690e=_0x5ce48f[_0x135cbd(0xdf)]===0x2&&_0x5ce48f[_0x135cbd(0xb8)](_0x135cbd(0xd8))&&_0x5ce48f[_0x135cbd(0xb8)]('company'),_0xa3b7da=_0x53690e?_0x13bc41(_0x407bf9['appCode'],_0x21dbff,{},_0x5a9738):[],_0x2fbca8=_0x184141({'env':_0x43ee0a,'accessKey':_0x3dad4d,'appCode':_0x407bf9[_0x135cbd(0x94)],'activeSkillCodes':_0x21dbff,'pruneSkillCodes':_0x5a9738,'scopes':_0x5ce48f}),_0x59175b=[];for(const _0x3f3070 of _0x350e38){_0x59175b[_0x135cbd(0xce)](_0x1b12ee(_0x3f3070,_0x135cbd(0xd8),{'env':_0x43ee0a,'accessKey':_0x3dad4d,'appCode':_0x407bf9['appCode'],'packageBytes':await downloadPackageIfNeeded(_0x3f3070,_0x135cbd(0xd8),_0x407bf9[_0x135cbd(0x94)],_0x2166a2)}));}for(const _0x217296 of _0x2d822a){_0x59175b[_0x135cbd(0xce)](_0x1b12ee(_0x217296,_0x135cbd(0xf3),{'env':_0x43ee0a,'accessKey':_0x3dad4d,'appCode':_0x407bf9[_0x135cbd(0x94)],'packageBytes':await downloadPackageIfNeeded(_0x217296,'company',_0x407bf9[_0x135cbd(0x94)],_0x2166a2)}));}const _0x50f119=_0x103f7c(_0x59175b,_0x407bf9[_0x135cbd(0x94)]),_0x1319b5=countLinkActions(_0x50f119);return{'ok':!![],'data':{'appCode':_0x407bf9['appCode'],'personal':_0x350e38[_0x135cbd(0xdf)],'company':_0x2d822a[_0x135cbd(0xdf)],'materialized':_0x59175b[_0x135cbd(0xdf)],'links':{'total':_0x50f119[_0x135cbd(0xdf)],'created':_0x1319b5[_0x135cbd(0xa0)]??0x0,'updated':_0x1319b5[_0x135cbd(0xd0)]??0x0,'unchanged':_0x1319b5[_0x135cbd(0xe1)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0xa3b7da[_0x135cbd(0xb4)](_0x220360=>_0x220360['action']===_0x135cbd(0x99))[_0x135cbd(0xdf)],'cacheDirs':_0x2fbca8[_0x135cbd(0xb4)](_0xb5e943=>_0xb5e943[_0x135cbd(0xa9)]===_0x135cbd(0x99))[_0x135cbd(0xdf)],'skipped':[..._0xa3b7da,..._0x2fbca8][_0x135cbd(0xb4)](_0x58e834=>_0x58e834[_0x135cbd(0xa9)]===_0x135cbd(0xe5))[_0x135cbd(0xdf)]},'skills':{'personal':_0x350e38[_0x135cbd(0xdd)](summarizeRuntimeSkill),'company':_0x2d822a['map'](summarizeRuntimeSkill)}},'message':_0x135cbd(0xc3)+_0x350e38[_0x135cbd(0xdf)]+_0x135cbd(0xd7)+_0x2d822a[_0x135cbd(0xdf)]+_0x135cbd(0xc7)};}function a35_0x2be2(_0x268a56,_0x5b6d9a){_0x268a56=_0x268a56-0x8a;const _0x3351b3=a35_0x3351();let _0x2be2fa=_0x3351b3[_0x268a56];return _0x2be2fa;}function buildSkillCreatePlan(_0x3b76b7,_0x2c9d16,_0x37cbf0){const _0x3b39d5=a35_0x5a43f2,_0x58862c=renderSkillTemplate({'skillName':_0x3b76b7,'type':_0x2c9d16}),_0x3182e7=resolve(normalizeSkillTarget(_0x37cbf0));return{'rendered':_0x58862c,'targetRoot':_0x3182e7,'skillDir':resolve(_0x3182e7,_0x58862c[_0x3b39d5(0xbc)])};}function normalizeSkillTarget(_0x449ffc){const _0x54ab14=a35_0x5a43f2;return(_0x449ffc||DEFAULT_SKILL_TARGET)[_0x54ab14(0xb3)]()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x48e809,_0x5009d1){const _0x29caee=a35_0x5a43f2;if(existsSync(_0x48e809['skillDir'])){const _0x50041a=lstatSync(_0x48e809[_0x29caee(0xac)]);if(!_0x50041a['isDirectory']()||_0x50041a[_0x29caee(0xad)]())throw CliErrors[_0x29caee(0xca)](_0x29caee(0xa4)+_0x48e809[_0x29caee(0xac)]);if(!_0x5009d1)throw CliErrors[_0x29caee(0xca)](_0x29caee(0xda)+_0x48e809[_0x29caee(0xac)],_0x29caee(0xb2));}for(const _0x208421 of _0x48e809['rendered']['files']){const _0x4a7ddf=resolve(_0x48e809[_0x29caee(0xac)],_0x208421['path']),_0x460732=dirname(_0x4a7ddf);mkdirSync(_0x460732,{'recursive':!![]});if(existsSync(_0x4a7ddf)&&lstatSync(_0x4a7ddf)[_0x29caee(0xad)]())throw CliErrors[_0x29caee(0xca)](_0x29caee(0xbe)+_0x4a7ddf);writeFileSync(_0x4a7ddf,_0x208421['content'],_0x29caee(0xc5));}}async function downloadPackageIfNeeded(_0x1ece74,_0x3806d5,_0x137a10,_0xcf422d){const _0x33230f=a35_0x5a43f2;if(!isPackageBackedManifest(_0x1ece74[_0x33230f(0xcf)]))return undefined;return _0xcf422d(_0x3806d5,_0x1ece74[_0x33230f(0x9e)],_0x137a10);}function a35_0x3351(){const _0x5710c0=['Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','Installed\x20','flatMap','utf8','Local\x20Skill\x20directory\x20containing\x20SKILL.md','\x20company\x20Skill(s).','Skill\x20template\x20type','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','validation','local','7LUpcTC','force','push','files','updated','1628APPeUN','WRITE','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','scope','read','1740LstNIR','\x20personal\x20and\x20','personal','all','Skill\x20directory\x20already\x20exists:\x20','3581xbIqiF','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','map','11376432rELqLQ','length','Skill\x20validation\x20passed.','unchanged','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','code','skipped','input','envName','strict','908WtEWkU','some','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','Unsupported\x20Skill\x20list\x20scope:\x20','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','contentHash','ossPath','204522VGbWBv','version','Listed\x20','company','target','str','Created\x20personal\x20Skill\x20','create','status','object','skillMdPath','readonly','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','string','boolean','metadataPath','errors','tags','1661634wjDQyl','appCode','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','SKILL.md','validate','9GunmWJ','removed','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','bool','29616UiUkyt','rendered','skillCode','../../skills/runtime-skill-sync.js','created','find','builtin','write','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','warnings','dir','13228RxnxuP','action','skill','\x20local\x20Skill(s).','skillDir','isSymbolicLink','type','path','accessKey','pulledAt','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','trim','filter','production','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','3653890XRlwdE','includes','authRequired','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','../../core/api-client.js','skillName','isArray','Refusing\x20to\x20overwrite\x20symlink:\x20','name','install','Updated\x20personal\x20Skill\x20'];a35_0x3351=function(){return _0x5710c0;};return a35_0x3351();}function normalizeSyncScopes(_0x4d4ac8){const _0x36452f=a35_0x5a43f2,_0x337103=_0x4d4ac8[_0x36452f(0xb3)]();if(!_0x337103||_0x337103===_0x36452f(0xd9))return[_0x36452f(0xd8),_0x36452f(0xf3)];if(_0x337103===_0x36452f(0xd8)||_0x337103===_0x36452f(0xf3))return[_0x337103];throw CliErrors[_0x36452f(0xca)]('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x4d4ac8);}function normalizeListScope(_0x1e24ab){const _0x2fb3f8=a35_0x5a43f2,_0x4d85d2=_0x1e24ab[_0x2fb3f8(0xb3)]();if(!_0x4d85d2)return _0x2fb3f8(0xd9);if(_0x4d85d2==='personal'||_0x4d85d2===_0x2fb3f8(0xf3)||_0x4d85d2==='all')return _0x4d85d2;throw CliErrors['validation'](_0x2fb3f8(0xec)+_0x1e24ab);}function shouldListScope(_0x4066c6,_0x595a1d){const _0x4b7fa3=a35_0x5a43f2;if(_0x4066c6===_0x4b7fa3(0xd9))return!![];return _0x4066c6===_0x595a1d;}function listScopeToRuntimeScopes(_0x137405){const _0x484d02=a35_0x5a43f2;if(_0x137405===_0x484d02(0xd9))return[_0x484d02(0xd8),_0x484d02(0xf3)];return[_0x137405==='company'?_0x484d02(0xf3):_0x137405];}function listScopeToRemoteScope(_0x3b1650){return _0x3b1650;}function groupLocalRuntimeSkills(_0x214288){const _0x9b88f9=a35_0x5a43f2;return{'personal':_0x214288[_0x9b88f9(0xb4)](_0x11805f=>_0x11805f[_0x9b88f9(0xd4)]===_0x9b88f9(0xd8)),'company':_0x214288[_0x9b88f9(0xb4)](_0x544640=>_0x544640['scope']===_0x9b88f9(0xf3)),'builtin':_0x214288[_0x9b88f9(0xb4)](_0x920e7c=>_0x920e7c['scope']===_0x9b88f9(0xa2))};}function countLinkActions(_0x523d4a){return _0x523d4a['reduce']((_0x4f4187,_0x3f2727)=>{const _0x51bf3b=a35_0x2be2;return _0x4f4187[_0x3f2727[_0x51bf3b(0xa9)]]=(_0x4f4187[_0x3f2727['action']]??0x0)+0x1,_0x4f4187;},{});}function isPackageBackedManifest(_0x3fe93e){const _0x28d69a=a35_0x5a43f2;return!!_0x3fe93e&&typeof _0x3fe93e===_0x28d69a(0x8a)&&!Array[_0x28d69a(0xbd)](_0x3fe93e)&&typeof _0x3fe93e[_0x28d69a(0xef)]==='string'&&_0x3fe93e[_0x28d69a(0xef)][_0x28d69a(0xdf)]>0x0&&Array[_0x28d69a(0xbd)](_0x3fe93e[_0x28d69a(0xcf)]);}function isMultiFileManifest(_0x255afd){const _0x2d45ff=a35_0x5a43f2;return!!_0x255afd&&typeof _0x255afd==='object'&&!Array[_0x2d45ff(0xbd)](_0x255afd)&&Array['isArray'](_0x255afd[_0x2d45ff(0xcf)])&&_0x255afd[_0x2d45ff(0xcf)][_0x2d45ff(0xea)](_0x28748f=>_0x28748f[_0x2d45ff(0xaf)]!==_0x2d45ff(0x96));}
1
+ const a35_0x59df79=a35_0x587b;(function(_0x37bbd8,_0xc5e956){const _0xcb759c=a35_0x587b,_0x3f595d=_0x37bbd8();while(!![]){try{const _0x5b7e7d=parseInt(_0xcb759c(0x209))/0x1+-parseInt(_0xcb759c(0x21d))/0x2*(parseInt(_0xcb759c(0x1d6))/0x3)+-parseInt(_0xcb759c(0x20b))/0x4+-parseInt(_0xcb759c(0x1ef))/0x5+parseInt(_0xcb759c(0x1e3))/0x6*(-parseInt(_0xcb759c(0x1d2))/0x7)+-parseInt(_0xcb759c(0x20e))/0x8+parseInt(_0xcb759c(0x1cb))/0x9*(parseInt(_0xcb759c(0x227))/0xa);if(_0x5b7e7d===_0xc5e956)break;else _0x3f595d['push'](_0x3f595d['shift']());}catch(_0x3b27a3){_0x3f595d['push'](_0x3f595d['shift']());}}}(a35_0x2b3b,0xdd3f3));import{CliErrors}from'../../errors.js';function a35_0x587b(_0x326c75,_0x5d5778){_0x326c75=_0x326c75-0x1c9;const _0x2b3b47=a35_0x2b3b();let _0x587b02=_0x2b3b47[_0x326c75];return _0x587b02;}import{existsSync,lstatSync,mkdirSync,writeFileSync}from'node:fs';import{dirname,resolve}from'node:path';import{DEFAULT_SKILL_TARGET,renderSkillTemplate,SKILL_NAME_PATTERN,SKILL_TYPES}from'../../commands/skill/templates.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../../commands/skill/validate.js';const CODE_FLAG={'name':a35_0x59df79(0x1e4),'type':a35_0x59df79(0x1ce),'description':a35_0x59df79(0x21e)},SCOPE_FLAG={'name':'scope','type':'string','description':a35_0x59df79(0x20a),'enum':[a35_0x59df79(0x228),a35_0x59df79(0x232),a35_0x59df79(0x1d7)]},LIST_SCOPE_FLAG={'name':a35_0x59df79(0x1d8),'type':'string','description':a35_0x59df79(0x233),'enum':[a35_0x59df79(0x228),a35_0x59df79(0x232),a35_0x59df79(0x1d7)]},LOCAL_FLAG={'name':a35_0x59df79(0x1f4),'type':'boolean','description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'},DIR_FLAG={'name':a35_0x59df79(0x208),'type':a35_0x59df79(0x1ce),'required':!![],'description':a35_0x59df79(0x221)},CREATE_NAME_FLAG={'name':a35_0x59df79(0x216),'type':a35_0x59df79(0x1ce),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a35_0x59df79(0x1d0)}},TYPE_FLAG={'name':a35_0x59df79(0x21a),'type':'string','description':a35_0x59df79(0x220),'default':a35_0x59df79(0x1d3),'enum':[...SKILL_TYPES]},TARGET_FLAG={'name':'target','type':a35_0x59df79(0x1ce),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET},FORCE_FLAG={'name':a35_0x59df79(0x1ca),'type':a35_0x59df79(0x22b),'description':a35_0x59df79(0x1e0)},STRICT_FLAG={'name':a35_0x59df79(0x1f7),'type':a35_0x59df79(0x22b),'description':a35_0x59df79(0x212)};function summarizeRuntimeSkill(_0x17e0c9){const _0x111ff3=a35_0x59df79;return{'id':_0x17e0c9['id'],'skillCode':_0x17e0c9[_0x111ff3(0x1f8)],'skillName':_0x17e0c9[_0x111ff3(0x201)],'scope':_0x17e0c9[_0x111ff3(0x1d8)],'version':_0x17e0c9[_0x111ff3(0x200)],'readonly':_0x17e0c9[_0x111ff3(0x203)]};}function summarizeLocalRuntimeSkill(_0x3d666e){const _0x1cc8d5=a35_0x59df79;return{'id':_0x3d666e['id'],'skillCode':_0x3d666e[_0x1cc8d5(0x1f8)],'skillName':_0x3d666e[_0x1cc8d5(0x201)],'scope':_0x3d666e[_0x1cc8d5(0x1d8)],'appCode':_0x3d666e[_0x1cc8d5(0x204)],'version':_0x3d666e[_0x1cc8d5(0x200)],'status':_0x3d666e[_0x1cc8d5(0x1d1)],'readonly':_0x3d666e[_0x1cc8d5(0x203)],'tags':_0x3d666e['tags'],'dir':_0x3d666e[_0x1cc8d5(0x208)],'cacheDir':_0x3d666e[_0x1cc8d5(0x22e)],'skillMdPath':_0x3d666e[_0x1cc8d5(0x1de)],'metadataPath':_0x3d666e[_0x1cc8d5(0x219)],'linkedPaths':_0x3d666e[_0x1cc8d5(0x21b)],'contentHash':_0x3d666e['contentHash'],'treeHash':_0x3d666e[_0x1cc8d5(0x1e2)],'pulledAt':_0x3d666e[_0x1cc8d5(0x20d)]};}export const skillDefinitions=[{'service':a35_0x59df79(0x22d),'command':a35_0x59df79(0x1fa),'description':a35_0x59df79(0x234),'risk':a35_0x59df79(0x1d3),'requiresAuth':!![],'requiresAppCode':!![],'hasFormat':![],'flags':[CODE_FLAG,SCOPE_FLAG],async 'execute'(_0x4042e4){return syncRuntimeSkills(_0x4042e4);}},{'service':a35_0x59df79(0x22d),'command':a35_0x59df79(0x207),'description':a35_0x59df79(0x1fd),'risk':a35_0x59df79(0x1d3),'requiresAuth':![],'requiresAppCode':![],'flags':[CREATE_NAME_FLAG,TYPE_FLAG,TARGET_FLAG,FORCE_FLAG],async 'dryRun'(_0x82038e){const _0x16b3b5=a35_0x59df79,_0x1ddda3=buildSkillCreatePlan(_0x82038e[_0x16b3b5(0x215)]('name'),_0x82038e['str'](_0x16b3b5(0x21a)),_0x82038e[_0x16b3b5(0x215)](_0x16b3b5(0x230)));return{'method':_0x16b3b5(0x210),'url':_0x1ddda3[_0x16b3b5(0x229)],'body':{'skillName':_0x1ddda3[_0x16b3b5(0x1c9)][_0x16b3b5(0x201)],'type':_0x1ddda3[_0x16b3b5(0x1c9)][_0x16b3b5(0x21a)],'selfContained':!![],'files':_0x1ddda3[_0x16b3b5(0x1c9)][_0x16b3b5(0x217)][_0x16b3b5(0x1da)](_0x571afa=>_0x571afa[_0x16b3b5(0x20c)])},'description':_0x16b3b5(0x1db)};},async 'execute'(_0x36c1bc){const _0x4997dd=a35_0x59df79,_0x52f308=buildSkillCreatePlan(_0x36c1bc[_0x4997dd(0x215)](_0x4997dd(0x216)),_0x36c1bc[_0x4997dd(0x215)](_0x4997dd(0x21a)),_0x36c1bc[_0x4997dd(0x215)](_0x4997dd(0x230)));return writeSkillDraft(_0x52f308,_0x36c1bc[_0x4997dd(0x1df)](_0x4997dd(0x1ca))),{'ok':!![],'data':{'skillName':_0x52f308[_0x4997dd(0x1c9)][_0x4997dd(0x201)],'type':_0x52f308['rendered'][_0x4997dd(0x21a)],'dir':_0x52f308['skillDir'],'files':_0x52f308['rendered'][_0x4997dd(0x217)][_0x4997dd(0x1da)](_0x4fb952=>_0x4fb952['path'])},'message':_0x4997dd(0x1ec)+_0x52f308[_0x4997dd(0x1c9)][_0x4997dd(0x201)]};}},{'service':a35_0x59df79(0x22d),'command':a35_0x59df79(0x1f9),'description':a35_0x59df79(0x236),'risk':a35_0x59df79(0x1fb),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x304384){const _0x4d61be=a35_0x59df79,_0x37a01e=_0x304384[_0x4d61be(0x1df)](_0x4d61be(0x1f7)),_0x137e1c=validateSkillDirectory(_0x304384[_0x4d61be(0x215)](_0x4d61be(0x208)),{'strict':_0x37a01e});return throwIfSkillValidationFailed(_0x137e1c,_0x37a01e),{'ok':!![],'data':{'dir':_0x137e1c[_0x4d61be(0x208)],'type':_0x137e1c[_0x4d61be(0x21a)],'errors':_0x137e1c[_0x4d61be(0x22a)],'warnings':_0x137e1c[_0x4d61be(0x1ee)]},'message':'Skill\x20validation\x20passed.'};}},{'service':a35_0x59df79(0x22d),'command':a35_0x59df79(0x205),'description':a35_0x59df79(0x237),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x20dadc){const _0xee19ec=a35_0x59df79,_0x24c43f=_0x20dadc['str'](_0xee19ec(0x1e4)),_0x2429fa=normalizeListScope(_0x20dadc[_0xee19ec(0x215)]('scope'));if(_0x20dadc['bool'](_0xee19ec(0x1f4))){const _0x3bc4b5=_0x20dadc[_0xee19ec(0x1f3)];if(!_0x3bc4b5)throw CliErrors[_0xee19ec(0x1e1)]();const {listLocalRuntimeSkills:_0x7156fb}=await import(_0xee19ec(0x223)),_0x277793=_0x7156fb({'env':_0x20dadc[_0xee19ec(0x1f2)]??_0xee19ec(0x1fe),'accessKey':_0x3bc4b5,'appCode':_0x20dadc[_0xee19ec(0x204)],'scopes':listScopeToRuntimeScopes(_0x2429fa),'code':_0x24c43f[_0xee19ec(0x1dc)]()||undefined}),_0x3ac23a=groupLocalRuntimeSkills(_0x277793);return{'ok':!![],'data':{'appCode':_0x20dadc[_0xee19ec(0x204)],'source':_0xee19ec(0x1f4),'scope':_0x2429fa,'total':_0x277793[_0xee19ec(0x1eb)],'personal':_0x3ac23a[_0xee19ec(0x232)][_0xee19ec(0x1eb)],'company':_0x3ac23a[_0xee19ec(0x1d7)][_0xee19ec(0x1eb)],'items':_0x277793[_0xee19ec(0x1da)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x3ac23a['personal'][_0xee19ec(0x1da)](summarizeLocalRuntimeSkill),'company':_0x3ac23a[_0xee19ec(0x1d7)][_0xee19ec(0x1da)](summarizeLocalRuntimeSkill)}},'message':_0xee19ec(0x22c)+_0x277793[_0xee19ec(0x1eb)]+_0xee19ec(0x1ed)};}const {listRuntimeSkills:_0x2e7020}=await import('../../core/api-client.js'),_0x534f16=await _0x2e7020({'appCode':_0x20dadc['appCode'],'scope':listScopeToRemoteScope(_0x2429fa),'code':_0x24c43f[_0xee19ec(0x1dc)]()||undefined}),_0x563e85=shouldListScope(_0x2429fa,'personal')?_0x534f16['personal']??[]:[],_0x133e62=shouldListScope(_0x2429fa,_0xee19ec(0x1d7))?_0x534f16[_0xee19ec(0x1d7)]??[]:[],_0x576953=[..._0x563e85,..._0x133e62];return{'ok':!![],'data':{'appCode':_0x20dadc[_0xee19ec(0x204)],'source':_0xee19ec(0x1e7),'scope':_0x2429fa,'total':_0x576953[_0xee19ec(0x1eb)],'personal':_0x563e85[_0xee19ec(0x1eb)],'company':_0x133e62[_0xee19ec(0x1eb)],'items':_0x576953[_0xee19ec(0x1da)](summarizeRuntimeSkill),'skills':{'personal':_0x563e85['map'](summarizeRuntimeSkill),'company':_0x133e62['map'](summarizeRuntimeSkill)}},'message':_0xee19ec(0x22c)+_0x576953['length']+_0xee19ec(0x21c)};}},{'service':a35_0x59df79(0x22d),'command':'push','description':a35_0x59df79(0x235),'risk':a35_0x59df79(0x1d3),'flags':[DIR_FLAG],async 'execute'(_0x3d46db){const _0x3b35fb=a35_0x59df79,{createPersonalRuntimeSkill:_0x3e209a,downloadRuntimeSkillPackage:_0x2631a5,listRuntimeSkills:_0x2bbb96,updatePersonalRuntimeSkill:_0x4a3ff7}=await import(_0x3b35fb(0x22f)),{verifyRuntimeSkillPackage:_0xa3285c,verifyRuntimeSkillBundle:_0x78d67c,readPushDirectory:_0x4057e0,recordPushedRuntimeSkill:_0x159d5f}=await import('../../skills/runtime-skill-sync.js');if(!_0x3d46db[_0x3b35fb(0x1f3)])throw CliErrors[_0x3b35fb(0x1e1)]();const _0x50be8c=_0x3d46db[_0x3b35fb(0x215)](_0x3b35fb(0x208)),_0x393a9c=validateSkillDirectory(_0x50be8c);throwIfSkillValidationFailed(_0x393a9c);const _0x338255=_0x393a9c[_0x3b35fb(0x208)],_0x16dd6c=_0x4057e0(_0x338255,_0x3d46db[_0x3b35fb(0x204)]),_0x4a812d=(await _0x2bbb96({'appCode':_0x3d46db['appCode'],'scope':_0x3b35fb(0x232)}))[_0x3b35fb(0x232)][_0x3b35fb(0x1f6)](_0x420d1c=>_0x420d1c[_0x3b35fb(0x1f8)]===_0x16dd6c[_0x3b35fb(0x1f8)]),_0x2d9df8=_0x4a812d?await _0x4a3ff7(_0x16dd6c[_0x3b35fb(0x1f8)],_0x3d46db[_0x3b35fb(0x204)],_0x16dd6c[_0x3b35fb(0x213)]):await _0x3e209a(_0x3d46db['appCode'],_0x16dd6c['input']);let _0x3554c8=_0x2d9df8;if(isMultiFileManifest(_0x16dd6c['input'][_0x3b35fb(0x217)])){const _0x56b7a0=await _0x2631a5('personal',_0x2d9df8['skillCode']||_0x16dd6c[_0x3b35fb(0x1f8)],_0x3d46db['appCode']);_0x78d67c(_0x16dd6c[_0x3b35fb(0x213)][_0x3b35fb(0x217)],_0x56b7a0),_0x3554c8={..._0x2d9df8,'files':_0x16dd6c[_0x3b35fb(0x213)][_0x3b35fb(0x217)]};}else{if(isPackageBackedManifest(_0x2d9df8[_0x3b35fb(0x217)])){const _0x4a6cd8=await _0x2631a5(_0x3b35fb(0x232),_0x2d9df8[_0x3b35fb(0x1f8)]||_0x16dd6c[_0x3b35fb(0x1f8)],_0x3d46db[_0x3b35fb(0x204)]);_0xa3285c(_0x2d9df8[_0x3b35fb(0x217)],_0x4a6cd8);}}return _0x159d5f(_0x338255,_0x3554c8,_0x3d46db[_0x3b35fb(0x204)]),{'ok':!![],'data':summarizeRuntimeSkill(_0x2d9df8),'message':_0x4a812d?_0x3b35fb(0x211)+_0x16dd6c[_0x3b35fb(0x1f8)]:_0x3b35fb(0x231)+_0x16dd6c[_0x3b35fb(0x1f8)]};}}];async function syncRuntimeSkills(_0x8cec97){const _0x307d2f=a35_0x59df79,{downloadRuntimeSkillPackage:_0x4a3661,listRuntimeSkills:_0x150186}=await import(_0x307d2f(0x22f)),{linkEffectiveRuntimeSkills:_0x41c199,materializeRuntimeSkill:_0x4a97cf,pruneStaleRuntimeSkillCache:_0xb0cbad,pruneStaleRuntimeSkillLinks:_0x56490a}=await import(_0x307d2f(0x223)),_0x15645d=_0x8cec97[_0x307d2f(0x215)](_0x307d2f(0x1e4)),_0x112b15=normalizeSyncScopes(_0x8cec97['str'](_0x307d2f(0x1d8))),_0x31a69d=_0x8cec97[_0x307d2f(0x1f2)]??_0x307d2f(0x1fe),_0x20f57a=_0x8cec97[_0x307d2f(0x1f3)];if(!_0x20f57a)throw CliErrors[_0x307d2f(0x1e1)](_0x307d2f(0x21f));const _0x584b13=await Promise[_0x307d2f(0x228)](_0x112b15[_0x307d2f(0x1da)](_0x1adb81=>_0x150186({'appCode':_0x8cec97[_0x307d2f(0x204)],'scope':_0x1adb81,'code':_0x15645d['trim']()||undefined}))),_0x9f0cb=_0x112b15['includes'](_0x307d2f(0x232))?_0x584b13[_0x307d2f(0x1cc)]((_0x5a8fa5,_0x281a98)=>_0x112b15[_0x281a98]===_0x307d2f(0x232)?_0x5a8fa5['personal']:[]):[],_0x1b145d=_0x112b15[_0x307d2f(0x214)]('company')?_0x584b13[_0x307d2f(0x1cc)]((_0xa01a9,_0x1461c2)=>_0x112b15[_0x1461c2]===_0x307d2f(0x1d7)?_0xa01a9['company']:[]):[],_0x17bfbf=new Set([..._0x9f0cb['map'](_0x53cdb4=>_0x53cdb4[_0x307d2f(0x1f8)]?.['trim']())[_0x307d2f(0x1ea)](_0x29fdcb=>Boolean(_0x29fdcb)),..._0x1b145d[_0x307d2f(0x1da)](_0x5afc54=>_0x5afc54[_0x307d2f(0x1f8)]?.['trim']())[_0x307d2f(0x1ea)](_0x52a880=>Boolean(_0x52a880))]),_0x3f30c7=_0x15645d[_0x307d2f(0x1dc)]()?[_0x15645d[_0x307d2f(0x1dc)]()]:undefined,_0xefef52=_0x112b15[_0x307d2f(0x1eb)]===0x2&&_0x112b15[_0x307d2f(0x214)]('personal')&&_0x112b15[_0x307d2f(0x214)]('company'),_0x39aef0=_0xefef52?_0x56490a(_0x8cec97[_0x307d2f(0x204)],_0x17bfbf,{},_0x3f30c7):[],_0x1e2440=_0xb0cbad({'env':_0x31a69d,'accessKey':_0x20f57a,'appCode':_0x8cec97['appCode'],'activeSkillCodes':_0x17bfbf,'pruneSkillCodes':_0x3f30c7,'scopes':_0x112b15}),_0x587b64=[];for(const _0x271e0b of _0x9f0cb){_0x587b64[_0x307d2f(0x1e5)](_0x4a97cf(_0x271e0b,_0x307d2f(0x232),{'env':_0x31a69d,'accessKey':_0x20f57a,'appCode':_0x8cec97['appCode'],'packageBytes':await downloadPackageIfNeeded(_0x271e0b,_0x307d2f(0x232),_0x8cec97[_0x307d2f(0x204)],_0x4a3661)}));}for(const _0x1b6506 of _0x1b145d){_0x587b64[_0x307d2f(0x1e5)](_0x4a97cf(_0x1b6506,_0x307d2f(0x1d7),{'env':_0x31a69d,'accessKey':_0x20f57a,'appCode':_0x8cec97[_0x307d2f(0x204)],'packageBytes':await downloadPackageIfNeeded(_0x1b6506,_0x307d2f(0x1d7),_0x8cec97[_0x307d2f(0x204)],_0x4a3661)}));}const _0x281526=_0x41c199(_0x587b64,_0x8cec97[_0x307d2f(0x204)]),_0xc025f4=countLinkActions(_0x281526);return{'ok':!![],'data':{'appCode':_0x8cec97[_0x307d2f(0x204)],'personal':_0x9f0cb[_0x307d2f(0x1eb)],'company':_0x1b145d[_0x307d2f(0x1eb)],'materialized':_0x587b64['length'],'links':{'total':_0x281526[_0x307d2f(0x1eb)],'created':_0xc025f4[_0x307d2f(0x1f0)]??0x0,'updated':_0xc025f4[_0x307d2f(0x1fc)]??0x0,'unchanged':_0xc025f4[_0x307d2f(0x1e9)]??0x0,'skipped':0x0,'conflicted':0x0},'pruned':{'links':_0x39aef0[_0x307d2f(0x1ea)](_0x5e0e43=>_0x5e0e43[_0x307d2f(0x1e6)]===_0x307d2f(0x1cd))['length'],'cacheDirs':_0x1e2440[_0x307d2f(0x1ea)](_0x541dcc=>_0x541dcc[_0x307d2f(0x1e6)]==='removed')[_0x307d2f(0x1eb)],'skipped':[..._0x39aef0,..._0x1e2440]['filter'](_0x4676ac=>_0x4676ac[_0x307d2f(0x1e6)]===_0x307d2f(0x218))[_0x307d2f(0x1eb)]},'skills':{'personal':_0x9f0cb[_0x307d2f(0x1da)](summarizeRuntimeSkill),'company':_0x1b145d['map'](summarizeRuntimeSkill)}},'message':_0x307d2f(0x1dd)+_0x9f0cb['length']+'\x20personal\x20and\x20'+_0x1b145d[_0x307d2f(0x1eb)]+_0x307d2f(0x1d4)};}function buildSkillCreatePlan(_0x22cf3d,_0x28a77b,_0x2c8259){const _0xb063ee=a35_0x59df79,_0x499247=renderSkillTemplate({'skillName':_0x22cf3d,'type':_0x28a77b}),_0x39f45a=resolve(normalizeSkillTarget(_0x2c8259));return{'rendered':_0x499247,'targetRoot':_0x39f45a,'skillDir':resolve(_0x39f45a,_0x499247[_0xb063ee(0x201)])};}function normalizeSkillTarget(_0x13cd24){return(_0x13cd24||DEFAULT_SKILL_TARGET)['trim']()||DEFAULT_SKILL_TARGET;}function writeSkillDraft(_0x4e6d18,_0x91a0b3){const _0x322c5f=a35_0x59df79;if(existsSync(_0x4e6d18['skillDir'])){const _0x2073b8=lstatSync(_0x4e6d18['skillDir']);if(!_0x2073b8[_0x322c5f(0x1f1)]()||_0x2073b8[_0x322c5f(0x1cf)]())throw CliErrors[_0x322c5f(0x1e8)](_0x322c5f(0x226)+_0x4e6d18['skillDir']);if(!_0x91a0b3)throw CliErrors['validation']('Skill\x20directory\x20already\x20exists:\x20'+_0x4e6d18[_0x322c5f(0x229)],_0x322c5f(0x20f));}for(const _0x13b580 of _0x4e6d18['rendered'][_0x322c5f(0x217)]){const _0x4d71ca=resolve(_0x4e6d18['skillDir'],_0x13b580[_0x322c5f(0x20c)]),_0x52a77f=dirname(_0x4d71ca);mkdirSync(_0x52a77f,{'recursive':!![]});if(existsSync(_0x4d71ca)&&lstatSync(_0x4d71ca)[_0x322c5f(0x1cf)]())throw CliErrors['validation'](_0x322c5f(0x1d5)+_0x4d71ca);writeFileSync(_0x4d71ca,_0x13b580['content'],'utf8');}}function a35_0x2b3b(){const _0x32639a=['object','create','dir','340674WGIIXz','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','4652892VUKNQp','path','pulledAt','709704Cmexct','Pass\x20--force\x20to\x20overwrite\x20generated\x20template\x20files.','WRITE','Updated\x20personal\x20Skill\x20','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','input','includes','str','name','files','skipped','metadataPath','type','linkedPaths','\x20remote\x20Skill(s).','26zuyzNq','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','Business\x20Skill\x20installation\x20requires\x20authentication.\x20Run\x20`lovrabet\x20auth\x20login`,\x20or\x20use\x20`lovrabet\x20cli-skill\x20install`\x20for\x20CLI\x20Built-in\x20Skill\x20setup.','Skill\x20template\x20type','Local\x20Skill\x20directory\x20containing\x20SKILL.md','some','../../skills/runtime-skill-sync.js','isArray','reduce','Skill\x20path\x20already\x20exists\x20and\x20is\x20not\x20a\x20writable\x20directory:\x20','41009230pBHMdI','all','skillDir','errors','boolean','Listed\x20','skill','cacheDir','../../core/api-client.js','target','Created\x20personal\x20Skill\x20','personal','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Install\x20current-app\x20business\x20Skills\x20into\x20user-level\x20Agent\x20skill\x20directories','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','rendered','force','9fFKarx','flatMap','removed','string','isSymbolicLink','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','status','63pMLLzl','write','\x20company\x20Skill(s).','Refusing\x20to\x20overwrite\x20symlink:\x20','153345bxxHOD','company','scope','Unsupported\x20Skill\x20sync\x20scope:\x20','map','Create\x20a\x20local\x20runtime\x20Skill\x20draft\x20without\x20uploading\x20or\x20publishing\x20it.','trim','Installed\x20','skillMdPath','bool','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','authRequired','treeHash','840564vZkCnJ','code','push','action','remote','validation','unchanged','filter','length','Created\x20local\x20Skill\x20draft\x20','\x20local\x20Skill(s).','warnings','1790465kZuvPO','created','isDirectory','envName','accessKey','local','Unsupported\x20Skill\x20list\x20scope:\x20','find','strict','skillCode','validate','install','read','updated','Create\x20a\x20local\x20self-contained\x20runtime\x20Skill\x20draft','production','ossPath','version','skillName','SKILL.md','readonly','appCode','list'];a35_0x2b3b=function(){return _0x32639a;};return a35_0x2b3b();}async function downloadPackageIfNeeded(_0x2d0f6d,_0x28a23a,_0x737980,_0x89e19d){const _0x110e84=a35_0x59df79;if(!isPackageBackedManifest(_0x2d0f6d[_0x110e84(0x217)]))return undefined;return _0x89e19d(_0x28a23a,_0x2d0f6d[_0x110e84(0x1f8)],_0x737980);}function normalizeSyncScopes(_0x43fb75){const _0x3f4e3a=a35_0x59df79,_0x30983f=_0x43fb75[_0x3f4e3a(0x1dc)]();if(!_0x30983f||_0x30983f===_0x3f4e3a(0x228))return[_0x3f4e3a(0x232),_0x3f4e3a(0x1d7)];if(_0x30983f===_0x3f4e3a(0x232)||_0x30983f==='company')return[_0x30983f];throw CliErrors[_0x3f4e3a(0x1e8)](_0x3f4e3a(0x1d9)+_0x43fb75);}function normalizeListScope(_0x2097fe){const _0x22b406=a35_0x59df79,_0x4874fb=_0x2097fe[_0x22b406(0x1dc)]();if(!_0x4874fb)return _0x22b406(0x228);if(_0x4874fb===_0x22b406(0x232)||_0x4874fb===_0x22b406(0x1d7)||_0x4874fb===_0x22b406(0x228))return _0x4874fb;throw CliErrors[_0x22b406(0x1e8)](_0x22b406(0x1f5)+_0x2097fe);}function shouldListScope(_0x52dbd0,_0x571773){const _0x25a124=a35_0x59df79;if(_0x52dbd0===_0x25a124(0x228))return!![];return _0x52dbd0===_0x571773;}function listScopeToRuntimeScopes(_0x2e54b6){const _0x19de12=a35_0x59df79;if(_0x2e54b6==='all')return['personal',_0x19de12(0x1d7)];return[_0x2e54b6===_0x19de12(0x1d7)?_0x19de12(0x1d7):_0x2e54b6];}function listScopeToRemoteScope(_0x440972){return _0x440972;}function groupLocalRuntimeSkills(_0x9307a7){const _0x255eb8=a35_0x59df79;return{'personal':_0x9307a7['filter'](_0x52fc16=>_0x52fc16[_0x255eb8(0x1d8)]==='personal'),'company':_0x9307a7['filter'](_0x8d91f7=>_0x8d91f7['scope']===_0x255eb8(0x1d7)),'builtin':_0x9307a7['filter'](_0x36e983=>_0x36e983['scope']==='builtin')};}function countLinkActions(_0xec783e){const _0x2b2836=a35_0x59df79;return _0xec783e[_0x2b2836(0x225)]((_0x2e44a1,_0x3acbd7)=>{return _0x2e44a1[_0x3acbd7['action']]=(_0x2e44a1[_0x3acbd7['action']]??0x0)+0x1,_0x2e44a1;},{});}function isPackageBackedManifest(_0x3fe02a){const _0x2b0f13=a35_0x59df79;return!!_0x3fe02a&&typeof _0x3fe02a===_0x2b0f13(0x206)&&!Array[_0x2b0f13(0x224)](_0x3fe02a)&&typeof _0x3fe02a['ossPath']===_0x2b0f13(0x1ce)&&_0x3fe02a[_0x2b0f13(0x1ff)]['length']>0x0&&Array[_0x2b0f13(0x224)](_0x3fe02a[_0x2b0f13(0x217)]);}function isMultiFileManifest(_0x285a61){const _0x19672e=a35_0x59df79;return!!_0x285a61&&typeof _0x285a61===_0x19672e(0x206)&&!Array['isArray'](_0x285a61)&&Array['isArray'](_0x285a61[_0x19672e(0x217)])&&_0x285a61[_0x19672e(0x217)][_0x19672e(0x222)](_0x417823=>_0x417823['path']!==_0x19672e(0x202));}
@@ -1 +1 @@
1
- const a36_0x14269b=a36_0x18e0;(function(_0x54fb09,_0x461074){const _0x2f58ef=a36_0x18e0,_0x28bc27=_0x54fb09();while(!![]){try{const _0x2d96e6=-parseInt(_0x2f58ef(0xd4))/0x1+parseInt(_0x2f58ef(0xe2))/0x2*(-parseInt(_0x2f58ef(0xf5))/0x3)+parseInt(_0x2f58ef(0xe0))/0x4*(parseInt(_0x2f58ef(0xe7))/0x5)+-parseInt(_0x2f58ef(0xd1))/0x6+-parseInt(_0x2f58ef(0xe9))/0x7*(-parseInt(_0x2f58ef(0xdc))/0x8)+-parseInt(_0x2f58ef(0xf4))/0x9*(parseInt(_0x2f58ef(0xd0))/0xa)+parseInt(_0x2f58ef(0xe3))/0xb;if(_0x2d96e6===_0x461074)break;else _0x28bc27['push'](_0x28bc27['shift']());}catch(_0x5b6820){_0x28bc27['push'](_0x28bc27['shift']());}}}(a36_0x5de2,0xd2273));function a36_0x5de2(){const _0x3ae454=['5aNtmfc','Invalid\x20Skill\x20name:\x20','554113vHdFCL','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','\x0a\x20\x20created:\x20\x22','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','#\x20Output\x20Contract\x0a\x0a','read','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','trainer','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','9PaYoik','2462901ZBmjOK','trim','SKILL.md','---\x0aname:\x20','9697150RkMeRj','4033260NrAqQb','Use\x20one\x20of:\x20','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','1565086pYZnXX','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','references/output-contract.md','validation','type','\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','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','.agents/skills','88TWAZJk','join','test','write','6594004clgzaf','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','2illKpC','26064665mKUyBD','\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','\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','includes'];a36_0x5de2=function(){return _0x3ae454;};return a36_0x5de2();}import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a36_0x14269b(0xdf),a36_0x14269b(0xef),a36_0x14269b(0xf1)];export const DEFAULT_SKILL_TARGET=a36_0x14269b(0xdb);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a36_0x14269b(0xd6);function a36_0x18e0(_0x88fed6,_0x1aa50f){_0x88fed6=_0x88fed6-0xd0;const _0x5de21d=a36_0x5de2();let _0x18e074=_0x5de21d[_0x88fed6];return _0x18e074;}export function validateSkillName(_0x3ffab0){const _0x4dba5c=a36_0x14269b,_0x4db006=_0x3ffab0[_0x4dba5c(0xf6)]();if(!SKILL_NAME_PATTERN[_0x4dba5c(0xde)](_0x4db006))throw CliErrors['validation'](_0x4dba5c(0xe8)+_0x3ffab0+_0x4dba5c(0xec),_0x4dba5c(0xf3));return _0x4db006;}export function normalizeSkillTemplateType(_0x277f16){const _0x1d0ccb=a36_0x14269b,_0x5f15aa=(_0x277f16||_0x1d0ccb(0xdf))['trim']()||'write';if(SKILL_TYPES[_0x1d0ccb(0xe6)](_0x5f15aa))return _0x5f15aa;throw CliErrors[_0x1d0ccb(0xd7)]('Unsupported\x20Skill\x20type:\x20'+_0x277f16,_0x1d0ccb(0xd2)+SKILL_TYPES[_0x1d0ccb(0xdd)](',\x20')+'.');}export function renderSkillTemplate(_0x420695){const _0x11c7b3=a36_0x14269b,_0x2de624=validateSkillName(_0x420695['skillName']),_0xedd7ea=normalizeSkillTemplateType(_0x420695[_0x11c7b3(0xd8)]),_0x142838=_0x420695['timestamp']??new Date()['toISOString']();return{'skillName':_0x2de624,'type':_0xedd7ea,'files':[{'path':_0x11c7b3(0xf7),'content':renderSkillMd(_0x2de624,_0xedd7ea,_0x142838)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x2de624,_0xedd7ea)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x2de624,_0xedd7ea)}]};}function renderSkillMd(_0x47cdbe,_0x46f871,_0x56fe07){const _0x4188f6=a36_0x14269b,_0x673bba=typeWorkflow(_0x46f871);return _0x4188f6(0xf8)+_0x47cdbe+_0x4188f6(0xea)+_0x46f871+_0x4188f6(0xeb)+_0x56fe07+_0x4188f6(0xed)+_0x47cdbe+'\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'+_0x673bba+'\x0a\x0a'+businessStateSection(_0x46f871)+_0x4188f6(0xd9);}function renderRuntimeContract(_0xbf56c6,_0x1f44db){const _0x5c4b35=a36_0x14269b,_0x2735fa=_0x1f44db===_0x5c4b35(0xdf)?_0x5c4b35(0xda):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0xbf56c6+'\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='+_0x1f44db+'\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'+_0x2735fa+_0x5c4b35(0xe5);}function renderOutputContract(_0x348a9b,_0x4dafd0){const _0x1d5af1=a36_0x14269b,_0x389624=_0x4dafd0===_0x1d5af1(0xdf)?_0x1d5af1(0xd3):_0x4dafd0+'\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。';return _0x1d5af1(0xee)+_0x348a9b+_0x1d5af1(0xe4)+_0x389624+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x204303){const _0x5dbd02=a36_0x14269b;if(_0x204303==='read')return _0x5dbd02(0xf2);if(_0x204303===_0x5dbd02(0xf1))return _0x5dbd02(0xd5);return _0x5dbd02(0xe1);}function businessStateSection(_0x30a696){const _0x17068e=a36_0x14269b;if(_0x30a696!==_0x17068e(0xdf))return'';return _0x17068e(0xf0);}
1
+ const a36_0x255d53=a36_0x58ef;(function(_0x1f7d33,_0x1ce5e1){const _0x3cfe8d=a36_0x58ef,_0xa3fdb8=_0x1f7d33();while(!![]){try{const _0x3c2ddc=parseInt(_0x3cfe8d(0x208))/0x1*(parseInt(_0x3cfe8d(0x210))/0x2)+-parseInt(_0x3cfe8d(0x1f1))/0x3+parseInt(_0x3cfe8d(0x1fb))/0x4+-parseInt(_0x3cfe8d(0x1ef))/0x5*(-parseInt(_0x3cfe8d(0x1fe))/0x6)+parseInt(_0x3cfe8d(0x20a))/0x7*(-parseInt(_0x3cfe8d(0x1f9))/0x8)+parseInt(_0x3cfe8d(0x1ee))/0x9+parseInt(_0x3cfe8d(0x1f3))/0xa;if(_0x3c2ddc===_0x1ce5e1)break;else _0xa3fdb8['push'](_0xa3fdb8['shift']());}catch(_0x107a11){_0xa3fdb8['push'](_0xa3fdb8['shift']());}}}(a36_0x37d3,0x7b1b8));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a36_0x255d53(0x1f5),a36_0x255d53(0x202),a36_0x255d53(0x212)];export const DEFAULT_SKILL_TARGET=a36_0x255d53(0x1fc);export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a36_0x255d53(0x206);export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x49a5c6){const _0x247382=a36_0x255d53,_0x18eddf=_0x49a5c6[_0x247382(0x20b)]();if(!SKILL_NAME_PATTERN['test'](_0x18eddf))throw CliErrors[_0x247382(0x1fd)](_0x247382(0x1f0)+_0x49a5c6+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x247382(0x213));return _0x18eddf;}export function normalizeSkillTemplateType(_0x425f5f){const _0x291885=a36_0x255d53,_0x134831=(_0x425f5f||_0x291885(0x1f5))[_0x291885(0x20b)]()||_0x291885(0x1f5);if(SKILL_TYPES[_0x291885(0x20e)](_0x134831))return _0x134831;throw CliErrors[_0x291885(0x1fd)](_0x291885(0x201)+_0x425f5f,_0x291885(0x20f)+SKILL_TYPES['join'](',\x20')+'.');}export function renderSkillTemplate(_0x526ed1){const _0x39590f=a36_0x255d53,_0x13bce3=validateSkillName(_0x526ed1[_0x39590f(0x204)]),_0x215080=normalizeSkillTemplateType(_0x526ed1[_0x39590f(0x1f6)]),_0x5bf4d3=_0x526ed1['timestamp']??new Date()[_0x39590f(0x200)]();return{'skillName':_0x13bce3,'type':_0x215080,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x13bce3,_0x215080,_0x5bf4d3)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x13bce3,_0x215080)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x13bce3,_0x215080)}]};}function renderSkillMd(_0x582d03,_0x960612,_0x44727a){const _0x21d3e9=a36_0x255d53,_0x24afc6=typeWorkflow(_0x960612);return _0x21d3e9(0x203)+_0x582d03+_0x21d3e9(0x1fa)+_0x960612+_0x21d3e9(0x20d)+_0x44727a+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x582d03+_0x21d3e9(0x1ff)+_0x24afc6+'\x0a\x0a'+businessStateSection(_0x960612)+_0x21d3e9(0x211);}function a36_0x58ef(_0x5bd0cb,_0x345843){_0x5bd0cb=_0x5bd0cb-0x1ee;const _0x37d302=a36_0x37d3();let _0x58ef0e=_0x37d302[_0x5bd0cb];return _0x58ef0e;}function renderRuntimeContract(_0x1f4068,_0x208a90){const _0x53b986=a36_0x255d53,_0x2a6300=_0x208a90===_0x53b986(0x1f5)?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0x53b986(0x207)+_0x1f4068+'\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='+_0x208a90+_0x53b986(0x214)+_0x2a6300+_0x53b986(0x1f7);}function a36_0x37d3(){const _0x26ffcc=['skillName','\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','references/runtime-contract.md','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','3647xDQFqH','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','8113nHHoCT','trim','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x0a\x20\x20created:\x20\x22','includes','Use\x20one\x20of:\x20','348yKwvgN','\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','trainer','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','2596203aKQSkG','411805odyQkI','Invalid\x20Skill\x20name:\x20','1843815Xkifwb','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','2297340dyYpir','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','write','type','\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','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','4312bmiaGG','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','1704212GrtSRc','.agents/skills','validation','12uCiaBE','\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','toISOString','Unsupported\x20Skill\x20type:\x20','read','---\x0aname:\x20'];a36_0x37d3=function(){return _0x26ffcc;};return a36_0x37d3();}function renderOutputContract(_0x325e7c,_0x1c3754){const _0x5c7957=a36_0x255d53,_0x51325f=_0x1c3754===_0x5c7957(0x1f5)?_0x5c7957(0x1f8):_0x1c3754+_0x5c7957(0x209);return'#\x20Output\x20Contract\x0a\x0a'+_0x325e7c+_0x5c7957(0x205)+_0x51325f+_0x5c7957(0x20c);}function typeWorkflow(_0x43720d){const _0x28592d=a36_0x255d53;if(_0x43720d===_0x28592d(0x202))return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';if(_0x43720d===_0x28592d(0x212))return _0x28592d(0x1f2);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0xcc1479){const _0x47e243=a36_0x255d53;if(_0xcc1479!==_0x47e243(0x1f5))return'';return _0x47e243(0x1f4);}
@@ -1 +1 @@
1
- const a37_0x14b7a5=a37_0x4509;(function(_0x53c0da,_0x859d05){const _0x13d7c5=a37_0x4509,_0x2f238c=_0x53c0da();while(!![]){try{const _0x3ddd37=parseInt(_0x13d7c5(0x112))/0x1+parseInt(_0x13d7c5(0xfc))/0x2+parseInt(_0x13d7c5(0xee))/0x3+parseInt(_0x13d7c5(0xe0))/0x4+parseInt(_0x13d7c5(0xe3))/0x5*(-parseInt(_0x13d7c5(0xe7))/0x6)+-parseInt(_0x13d7c5(0xf7))/0x7*(-parseInt(_0x13d7c5(0x117))/0x8)+-parseInt(_0x13d7c5(0x106))/0x9;if(_0x3ddd37===_0x859d05)break;else _0x2f238c['push'](_0x2f238c['shift']());}catch(_0x3694f6){_0x2f238c['push'](_0x2f238c['shift']());}}}(a37_0x1cc5,0x7aed8));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';function a37_0x1cc5(){const _0x160341=['trim','match','\x20Fix:\x20','join','validation','60263iHJqtJ','SKILL.md','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','Skill\x20validation\x20failed:\x0a','split','1521376tlPnnH','SKILL.md\x20is\x20not\x20a\x20file.','length','map','isSymbolicLink','internal','name','utf8','Frontmatter\x20name\x20is\x20missing.','trainer','14330475NGUnNK','type','section','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','push','file','level','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','slice','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','SKILL.md\x20must\x20start\x20with\x20frontmatter.','843489kwxJrO','toLowerCase','description','Add\x20frontmatter\x20with\x20name\x20and\x20description.','content','88GTaGpq','Frontmatter\x20description\x20is\x20empty.','internal-skill','structure-complete','isFile','error','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','endsWith','1659448czvACc','description-required','frontmatter-required','21190aqElcG','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','true','Skill\x20directory\x20not\x20found:\x20','900RYmqng','toUpperCase','startsWith','ruleId','hasFrontmatter','write','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','1853247dqgNsJ','errors','filter','isDirectory'];a37_0x1cc5=function(){return _0x160341;};return a37_0x1cc5();}import{resolve}from'node:path';function a37_0x4509(_0x3255ca,_0x67dd13){_0x3255ca=_0x3255ca-0xda;const _0x1cc5a8=a37_0x1cc5();let _0x45098a=_0x1cc5a8[_0x3255ca];return _0x45098a;}import{CliErrors}from'../../errors.js';const SKILL_FILE=a37_0x14b7a5(0xf8),SUPPORTED_SKILL_TYPES=new Set([a37_0x14b7a5(0xec),'read',a37_0x14b7a5(0x105)]);export function validateSkillDirectory(_0x314a9c,_0x522a13={}){const _0x427770=a37_0x14b7a5,_0x398605=resolveSkillDirectoryRoot(_0x314a9c),_0x1224fc=[],_0x467ba1=loadRequiredSkillFile(_0x398605,_0x1224fc),_0x10c156=_0x467ba1?parseFrontmatter(_0x467ba1[_0x427770(0x116)]):{'hasFrontmatter':![]};_0x467ba1&&validateFrontmatter(_0x467ba1['path'],_0x10c156,_0x1224fc);const _0x5f1579=_0x1224fc[_0x427770(0xf0)](_0x29beb4=>_0x29beb4[_0x427770(0x10d)]===_0x427770(0xdd));return{'ok':_0x5f1579[_0x427770(0xfe)]===0x0,'dir':_0x398605,'type':_0x10c156['type'],'errors':_0x5f1579,'warnings':[]};}function resolveSkillDirectoryRoot(_0x314054){const _0x4cdeb1=a37_0x14b7a5,_0x563d49=resolve(_0x314054);if(!existsSync(_0x563d49))throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x314054);const _0x36ddf8=lstatSync(_0x563d49);if(_0x36ddf8[_0x4cdeb1(0xf1)]())return _0x563d49;if(_0x36ddf8[_0x4cdeb1(0x100)]()){const _0x41d4f4=realpathSync(_0x563d49);if(lstatSync(_0x41d4f4)[_0x4cdeb1(0xf1)]())return _0x41d4f4;}throw CliErrors[_0x4cdeb1(0xf6)](_0x4cdeb1(0xe6)+_0x314054);}export function throwIfSkillValidationFailed(_0x5d1bad,_0x31ec0a=![]){const _0x58f236=a37_0x14b7a5;if(_0x5d1bad['ok'])return;const _0x25ddfe=_0x5d1bad[_0x58f236(0xef)][_0x58f236(0xff)](_0x371eaa=>{const _0x21eb22=_0x58f236,_0x47ba4e=_0x371eaa['section']?'#'+_0x371eaa[_0x21eb22(0x108)]:'';return _0x371eaa['level'][_0x21eb22(0xe8)]()+'\x20'+_0x371eaa[_0x21eb22(0xea)]+'\x20'+_0x371eaa[_0x21eb22(0x10c)]+_0x47ba4e+':\x20'+_0x371eaa['message']+_0x21eb22(0xf4)+_0x371eaa['suggestion'];});throw CliErrors[_0x58f236(0xf6)](_0x58f236(0xfa)+_0x25ddfe[_0x58f236(0xf5)]('\x0a'),_0x58f236(0xe4));}function loadRequiredSkillFile(_0x402ff2,_0x271e08){const _0x5bac68=a37_0x14b7a5,_0x1a8785=resolve(_0x402ff2,SKILL_FILE);if(!existsSync(_0x1a8785))return _0x271e08[_0x5bac68(0x10b)](issue('error',_0x5bac68(0xdb),SKILL_FILE,'Missing\x20SKILL.md.',_0x5bac68(0x109))),undefined;const _0x4d33fb=lstatSync(_0x1a8785);if(_0x4d33fb[_0x5bac68(0x100)]())return _0x271e08['push'](issue(_0x5bac68(0xdd),_0x5bac68(0xdb),SKILL_FILE,_0x5bac68(0x10a),_0x5bac68(0xf9))),undefined;if(!_0x4d33fb[_0x5bac68(0xdc)]())return _0x271e08[_0x5bac68(0x10b)](issue(_0x5bac68(0xdd),'structure-complete',SKILL_FILE,_0x5bac68(0xfd),_0x5bac68(0x10e))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x1a8785,_0x5bac68(0x103))};}function validateFrontmatter(_0x26a5d3,_0x1e8152,_0x397ef2){const _0x13e4c7=a37_0x14b7a5;if(!_0x1e8152[_0x13e4c7(0xeb)]){_0x397ef2[_0x13e4c7(0x10b)](issue(_0x13e4c7(0xdd),_0x13e4c7(0xe2),_0x26a5d3,_0x13e4c7(0x111),_0x13e4c7(0x115)));return;}!_0x1e8152[_0x13e4c7(0x102)]?.[_0x13e4c7(0xf2)]()&&_0x397ef2[_0x13e4c7(0x10b)](issue(_0x13e4c7(0xdd),_0x13e4c7(0xe2),_0x26a5d3,_0x13e4c7(0x104),'Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.')),!_0x1e8152[_0x13e4c7(0x114)]?.[_0x13e4c7(0xf2)]()&&_0x397ef2[_0x13e4c7(0x10b)](issue(_0x13e4c7(0xdd),_0x13e4c7(0xe1),_0x26a5d3,_0x13e4c7(0x118),_0x13e4c7(0xde))),_0x1e8152[_0x13e4c7(0x101)]===!![]&&_0x397ef2[_0x13e4c7(0x10b)](issue('error',_0x13e4c7(0xda),_0x26a5d3,_0x13e4c7(0x110),_0x13e4c7(0xed))),_0x1e8152[_0x13e4c7(0x107)]?.[_0x13e4c7(0xf2)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x1e8152[_0x13e4c7(0x107)])&&_0x397ef2[_0x13e4c7(0x10b)](issue(_0x13e4c7(0xdd),_0x13e4c7(0xe2),_0x26a5d3,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.'));}function parseFrontmatter(_0x286866){const _0x9716e8=a37_0x14b7a5,_0xf2a402=_0x286866[_0x9716e8(0xf3)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xf2a402)return{'hasFrontmatter':![]};const _0x1c84c3=_0xf2a402[0x1]??'',_0x30f4ae={'hasFrontmatter':!![]};let _0x5e0936=![];for(const _0x4e5eaa of _0x1c84c3[_0x9716e8(0xfb)](/\r?\n/)){if(/^\s*$/['test'](_0x4e5eaa))continue;const _0x101b51=_0x4e5eaa[_0x9716e8(0xf3)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x101b51){const _0x574783=_0x101b51[0x1],_0x290d20=cleanScalar(_0x101b51[0x2]??'');_0x5e0936=_0x574783==='metadata';if(_0x574783==='name')_0x30f4ae[_0x9716e8(0x102)]=_0x290d20;if(_0x574783===_0x9716e8(0x114))_0x30f4ae[_0x9716e8(0x114)]=_0x290d20;continue;}const _0x5938c9=_0x4e5eaa[_0x9716e8(0xf3)](/^\s+type:\s*(.*)$/);if(_0x5e0936&&_0x5938c9){_0x30f4ae['type']=cleanScalar(_0x5938c9[0x1]??'');continue;}const _0xa008b4=_0x4e5eaa[_0x9716e8(0xf3)](/^\s+internal:\s*(.*)$/);_0x5e0936&&_0xa008b4&&(_0x30f4ae[_0x9716e8(0x101)]=cleanBoolean(_0xa008b4[0x1]??''));}return _0x30f4ae;}function cleanScalar(_0x2bebaf){const _0x401114=a37_0x14b7a5,_0x587916=_0x2bebaf[_0x401114(0xf2)]();if(_0x587916['startsWith']('\x22')&&_0x587916[_0x401114(0xdf)]('\x22')||_0x587916[_0x401114(0xe9)]('\x27')&&_0x587916['endsWith']('\x27'))return _0x587916[_0x401114(0x10f)](0x1,-0x1);return _0x587916;}function cleanBoolean(_0x16a087){const _0x44426d=a37_0x14b7a5,_0x31b380=cleanScalar(_0x16a087)[_0x44426d(0x113)]();if(_0x31b380===_0x44426d(0xe5))return!![];if(_0x31b380==='false')return![];return undefined;}function issue(_0x593b8c,_0x1a4caf,_0x401048,_0x3ecc85,_0x579997,_0x351f1e){return{'level':_0x593b8c,'ruleId':_0x1a4caf,'file':_0x401048,'section':_0x351f1e,'message':_0x3ecc85,'suggestion':_0x579997};}
1
+ const a37_0x564aea=a37_0x19af;(function(_0x2cbb64,_0x49b76e){const _0x158ce2=a37_0x19af,_0x41ef20=_0x2cbb64();while(!![]){try{const _0x4bdd88=parseInt(_0x158ce2(0xe4))/0x1+-parseInt(_0x158ce2(0xd5))/0x2+-parseInt(_0x158ce2(0xfb))/0x3+parseInt(_0x158ce2(0x110))/0x4+-parseInt(_0x158ce2(0xf7))/0x5+-parseInt(_0x158ce2(0xf3))/0x6*(parseInt(_0x158ce2(0xfc))/0x7)+parseInt(_0x158ce2(0xe2))/0x8;if(_0x4bdd88===_0x49b76e)break;else _0x41ef20['push'](_0x41ef20['shift']());}catch(_0x31fee3){_0x41ef20['push'](_0x41ef20['shift']());}}}(a37_0x2806,0x285b5));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a37_0x2806(){const _0xf8bc38=['metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','SKILL.md','trim','name','error','write','Frontmatter\x20description\x20is\x20empty.','map','description-required','file','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','trainer','push','isDirectory','has','507488QoMlIq','metadata','startsWith','filter','18746sKQeqb','utf8','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','slice','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','description','ruleId','section','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','message','type','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','2598160ASYYSL','hasFrontmatter','315452FagjBG','internal','level','\x20Fix:\x20','match','content','Missing\x20SKILL.md.','length','frontmatter-required','structure-complete','path','Frontmatter\x20name\x20is\x20missing.','endsWith','isFile','test','6030TvrNhB','SKILL.md\x20must\x20start\x20with\x20frontmatter.','errors','Skill\x20directory\x20not\x20found:\x20','1064270KcRRZF','isSymbolicLink','validation','Skill\x20validation\x20failed:\x0a','599013DUQzcB','1253wRPmHl','internal-skill','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','suggestion','Add\x20frontmatter\x20with\x20name\x20and\x20description.'];a37_0x2806=function(){return _0xf8bc38;};return a37_0x2806();}const SKILL_FILE=a37_0x564aea(0x102),SUPPORTED_SKILL_TYPES=new Set([a37_0x564aea(0x106),'read',a37_0x564aea(0x10c)]);function a37_0x19af(_0x40c46f,_0x21aa22){_0x40c46f=_0x40c46f-0xd2;const _0x280694=a37_0x2806();let _0x19af30=_0x280694[_0x40c46f];return _0x19af30;}export function validateSkillDirectory(_0x3f97c8,_0x1aa963={}){const _0x30e516=a37_0x564aea,_0xfe5f68=resolveSkillDirectoryRoot(_0x3f97c8),_0x29a786=[],_0xaa48fe=loadRequiredSkillFile(_0xfe5f68,_0x29a786),_0x1a3679=_0xaa48fe?parseFrontmatter(_0xaa48fe[_0x30e516(0xe9)]):{'hasFrontmatter':![]};_0xaa48fe&&validateFrontmatter(_0xaa48fe[_0x30e516(0xee)],_0x1a3679,_0x29a786);const _0x388c9c=_0x29a786[_0x30e516(0xd4)](_0x46933c=>_0x46933c[_0x30e516(0xe6)]==='error');return{'ok':_0x388c9c[_0x30e516(0xeb)]===0x0,'dir':_0xfe5f68,'type':_0x1a3679[_0x30e516(0xe0)],'errors':_0x388c9c,'warnings':[]};}function resolveSkillDirectoryRoot(_0x9df7d0){const _0x2e55df=a37_0x564aea,_0x2cd306=resolve(_0x9df7d0);if(!existsSync(_0x2cd306))throw CliErrors[_0x2e55df(0xf9)]('Skill\x20directory\x20not\x20found:\x20'+_0x9df7d0);const _0x597347=lstatSync(_0x2cd306);if(_0x597347[_0x2e55df(0x10e)]())return _0x2cd306;if(_0x597347['isSymbolicLink']()){const _0x52cf8c=realpathSync(_0x2cd306);if(lstatSync(_0x52cf8c)[_0x2e55df(0x10e)]())return _0x52cf8c;}throw CliErrors[_0x2e55df(0xf9)](_0x2e55df(0xf6)+_0x9df7d0);}export function throwIfSkillValidationFailed(_0x39c311,_0x402bcc=![]){const _0x287075=a37_0x564aea;if(_0x39c311['ok'])return;const _0x24bafa=_0x39c311[_0x287075(0xf5)][_0x287075(0x108)](_0x1a93db=>{const _0x568030=_0x287075,_0x19b288=_0x1a93db[_0x568030(0xdc)]?'#'+_0x1a93db['section']:'';return _0x1a93db[_0x568030(0xe6)]['toUpperCase']()+'\x20'+_0x1a93db[_0x568030(0xdb)]+'\x20'+_0x1a93db[_0x568030(0x10a)]+_0x19b288+':\x20'+_0x1a93db[_0x568030(0xdf)]+_0x568030(0xe7)+_0x1a93db[_0x568030(0xff)];});throw CliErrors[_0x287075(0xf9)](_0x287075(0xfa)+_0x24bafa['join']('\x0a'),_0x287075(0xdd));}function loadRequiredSkillFile(_0xc9f7a7,_0x5a61e9){const _0x50b312=a37_0x564aea,_0x548b87=resolve(_0xc9f7a7,SKILL_FILE);if(!existsSync(_0x548b87))return _0x5a61e9[_0x50b312(0x10d)](issue('error',_0x50b312(0xed),SKILL_FILE,_0x50b312(0xea),_0x50b312(0xd9))),undefined;const _0x38e92d=lstatSync(_0x548b87);if(_0x38e92d[_0x50b312(0xf8)]())return _0x5a61e9[_0x50b312(0x10d)](issue(_0x50b312(0x105),'structure-complete',SKILL_FILE,_0x50b312(0xde),'Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.')),undefined;if(!_0x38e92d[_0x50b312(0xf1)]())return _0x5a61e9[_0x50b312(0x10d)](issue(_0x50b312(0x105),_0x50b312(0xed),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.',_0x50b312(0xe1))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x548b87,_0x50b312(0xd6))};}function validateFrontmatter(_0x1de38d,_0x420243,_0x6d05f){const _0x198054=a37_0x564aea;if(!_0x420243[_0x198054(0xe3)]){_0x6d05f[_0x198054(0x10d)](issue('error',_0x198054(0xec),_0x1de38d,_0x198054(0xf4),_0x198054(0x100)));return;}!_0x420243['name']?.[_0x198054(0x103)]()&&_0x6d05f[_0x198054(0x10d)](issue('error',_0x198054(0xec),_0x1de38d,_0x198054(0xef),_0x198054(0x10b))),!_0x420243['description']?.[_0x198054(0x103)]()&&_0x6d05f[_0x198054(0x10d)](issue(_0x198054(0x105),_0x198054(0x109),_0x1de38d,_0x198054(0x107),'填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。')),_0x420243[_0x198054(0xe5)]===!![]&&_0x6d05f[_0x198054(0x10d)](issue(_0x198054(0x105),_0x198054(0xfd),_0x1de38d,_0x198054(0xd7),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x420243['type']?.[_0x198054(0x103)]()&&!SUPPORTED_SKILL_TYPES[_0x198054(0x10f)](_0x420243[_0x198054(0xe0)])&&_0x6d05f[_0x198054(0x10d)](issue(_0x198054(0x105),'frontmatter-required',_0x1de38d,_0x198054(0x101),_0x198054(0xfe)));}function parseFrontmatter(_0x204500){const _0x3920cc=a37_0x564aea,_0xeb77ee=_0x204500[_0x3920cc(0xe8)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xeb77ee)return{'hasFrontmatter':![]};const _0x3a1e97=_0xeb77ee[0x1]??'',_0x5b7106={'hasFrontmatter':!![]};let _0x102d24=![];for(const _0x5cab35 of _0x3a1e97['split'](/\r?\n/)){if(/^\s*$/[_0x3920cc(0xf2)](_0x5cab35))continue;const _0x9f056=_0x5cab35[_0x3920cc(0xe8)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x9f056){const _0x113a08=_0x9f056[0x1],_0x3939e3=cleanScalar(_0x9f056[0x2]??'');_0x102d24=_0x113a08===_0x3920cc(0xd2);if(_0x113a08===_0x3920cc(0x104))_0x5b7106[_0x3920cc(0x104)]=_0x3939e3;if(_0x113a08===_0x3920cc(0xda))_0x5b7106[_0x3920cc(0xda)]=_0x3939e3;continue;}const _0x1f647c=_0x5cab35['match'](/^\s+type:\s*(.*)$/);if(_0x102d24&&_0x1f647c){_0x5b7106[_0x3920cc(0xe0)]=cleanScalar(_0x1f647c[0x1]??'');continue;}const _0x391aa2=_0x5cab35['match'](/^\s+internal:\s*(.*)$/);_0x102d24&&_0x391aa2&&(_0x5b7106[_0x3920cc(0xe5)]=cleanBoolean(_0x391aa2[0x1]??''));}return _0x5b7106;}function cleanScalar(_0x19079f){const _0x373270=a37_0x564aea,_0x9cedba=_0x19079f[_0x373270(0x103)]();if(_0x9cedba['startsWith']('\x22')&&_0x9cedba[_0x373270(0xf0)]('\x22')||_0x9cedba[_0x373270(0xd3)]('\x27')&&_0x9cedba[_0x373270(0xf0)]('\x27'))return _0x9cedba[_0x373270(0xd8)](0x1,-0x1);return _0x9cedba;}function cleanBoolean(_0x17c48a){const _0x4a9bbd=cleanScalar(_0x17c48a)['toLowerCase']();if(_0x4a9bbd==='true')return!![];if(_0x4a9bbd==='false')return![];return undefined;}function issue(_0x509858,_0x4e39d6,_0x1be9a2,_0x9bd29,_0x29d31a,_0xd33804){return{'level':_0x509858,'ruleId':_0x4e39d6,'file':_0x1be9a2,'section':_0xd33804,'message':_0x9bd29,'suggestion':_0x29d31a};}
@@ -1 +1 @@
1
- const a38_0x3b2611=a38_0x2e19;function a38_0x2e19(_0x348010,_0x252e4b){_0x348010=_0x348010-0x1a2;const _0x281497=a38_0x2814();let _0x2e196c=_0x281497[_0x348010];return _0x2e196c;}(function(_0x399724,_0x1074f8){const _0x28e6ac=a38_0x2e19,_0x21723a=_0x399724();while(!![]){try{const _0x41e015=parseInt(_0x28e6ac(0x1ad))/0x1+parseInt(_0x28e6ac(0x1a5))/0x2*(-parseInt(_0x28e6ac(0x1ab))/0x3)+-parseInt(_0x28e6ac(0x1aa))/0x4+parseInt(_0x28e6ac(0x1a9))/0x5*(-parseInt(_0x28e6ac(0x1a8))/0x6)+parseInt(_0x28e6ac(0x1a6))/0x7+parseInt(_0x28e6ac(0x1b3))/0x8*(-parseInt(_0x28e6ac(0x1a3))/0x9)+-parseInt(_0x28e6ac(0x1ae))/0xa*(-parseInt(_0x28e6ac(0x1b2))/0xb);if(_0x41e015===_0x1074f8)break;else _0x21723a['push'](_0x21723a['shift']());}catch(_0x4db4ab){_0x21723a['push'](_0x21723a['shift']());}}}(a38_0x2814,0xe3b2c));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a38_0x2814(){const _0x5e89c2=['10eozkAM','appCode','sqlName','dbId','38014779gRycns','73176yGlYlD','description','str','sql','72xTwDVZ','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','2YNbqJd','5345676GlJeIM','read','20478pVlhWA','2105KhChun','7119652ElSdzI','4953987dVDBKg','sqlCode','1654386CZIWZy'];a38_0x2814=function(){return _0x5e89c2;};return a38_0x2814();}export const sqlDetail={'service':a38_0x3b2611(0x1a2),'command':'detail','description':a38_0x3b2611(0x1a4),'risk':a38_0x3b2611(0x1a7),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x1acfba){const _0x4a2f62=a38_0x3b2611,_0x2d2156=await getSqlQueryInfo(_0x1acfba[_0x4a2f62(0x1af)],_0x1acfba[_0x4a2f62(0x1b5)]('sqlcode')),_0x143158=_0x1acfba['bool']('verbose');if(_0x143158)return{'ok':!![],'data':_0x2d2156};const _0x2b8591=_0x2d2156['dbId']?await getDbName(_0x1acfba[_0x4a2f62(0x1af)],_0x2d2156[_0x4a2f62(0x1b1)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x2d2156[_0x4a2f62(0x1ac)],'sqlName':_0x2d2156[_0x4a2f62(0x1b0)],'db':_0x2b8591?_0x2b8591+'\x20('+_0x2d2156['dbId']+')':_0x2d2156[_0x4a2f62(0x1b1)]??'','description':_0x2d2156[_0x4a2f62(0x1b4)]??'','sqlContent':_0x2d2156['sqlContent']??''}};}};
1
+ const a38_0x569bca=a38_0xbe33;(function(_0x44e559,_0x313d55){const _0x11ed03=a38_0xbe33,_0x17b823=_0x44e559();while(!![]){try{const _0x248f1b=-parseInt(_0x11ed03(0xce))/0x1*(parseInt(_0x11ed03(0xcd))/0x2)+parseInt(_0x11ed03(0xd6))/0x3*(-parseInt(_0x11ed03(0xca))/0x4)+-parseInt(_0x11ed03(0xc9))/0x5*(-parseInt(_0x11ed03(0xd9))/0x6)+parseInt(_0x11ed03(0xcc))/0x7+parseInt(_0x11ed03(0xd2))/0x8*(-parseInt(_0x11ed03(0xd1))/0x9)+-parseInt(_0x11ed03(0xd8))/0xa*(-parseInt(_0x11ed03(0xda))/0xb)+-parseInt(_0x11ed03(0xd5))/0xc*(-parseInt(_0x11ed03(0xdd))/0xd);if(_0x248f1b===_0x313d55)break;else _0x17b823['push'](_0x17b823['shift']());}catch(_0x91a0d4){_0x17b823['push'](_0x17b823['shift']());}}}(a38_0x5764,0xa3ed5));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':'sql','command':a38_0x569bca(0xdc),'description':a38_0x569bca(0xd3),'risk':a38_0x569bca(0xd7),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4b9766){const _0x17cbcf=a38_0x569bca,_0x4f7f94=await getSqlQueryInfo(_0x4b9766['appCode'],_0x4b9766['str']('sqlcode')),_0x2d4b29=_0x4b9766[_0x17cbcf(0xd0)](_0x17cbcf(0xde));if(_0x2d4b29)return{'ok':!![],'data':_0x4f7f94};const _0x474a1a=_0x4f7f94[_0x17cbcf(0xd4)]?await getDbName(_0x4b9766[_0x17cbcf(0xcf)],_0x4f7f94[_0x17cbcf(0xd4)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x4f7f94['sqlCode'],'sqlName':_0x4f7f94['sqlName'],'db':_0x474a1a?_0x474a1a+'\x20('+_0x4f7f94[_0x17cbcf(0xd4)]+')':_0x4f7f94[_0x17cbcf(0xd4)]??'','description':_0x4f7f94[_0x17cbcf(0xcb)]??'','sqlContent':_0x4f7f94[_0x17cbcf(0xdb)]??''}};}};function a38_0xbe33(_0x14a61e,_0x44f5cc){_0x14a61e=_0x14a61e-0xc9;const _0x576497=a38_0x5764();let _0xbe33a1=_0x576497[_0x14a61e];return _0xbe33a1;}function a38_0x5764(){const _0x49e093=['description','2130716Twdnwr','2758mmJLCo','659NTJegS','appCode','bool','605187lCbpFL','152JdgmId','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','dbId','12ggDuGP','6chFPxy','read','10248130WwKTMz','5560302MFhryw','11YgYpxM','sqlContent','detail','8653177QZtXVU','verbose','5yMGMHk','127448BKVXiq'];a38_0x5764=function(){return _0x49e093;};return a38_0x5764();}
@@ -1 +1 @@
1
- const a39_0x3d8d13=a39_0x5f1d;(function(_0x47cd88,_0x5168d8){const _0x5ccb87=a39_0x5f1d,_0x1257f7=_0x47cd88();while(!![]){try{const _0x41347a=parseInt(_0x5ccb87(0x1b8))/0x1+parseInt(_0x5ccb87(0x1c6))/0x2*(-parseInt(_0x5ccb87(0x1cc))/0x3)+-parseInt(_0x5ccb87(0x1c2))/0x4*(parseInt(_0x5ccb87(0x1ca))/0x5)+-parseInt(_0x5ccb87(0x1cb))/0x6*(-parseInt(_0x5ccb87(0x1c7))/0x7)+parseInt(_0x5ccb87(0x1c0))/0x8*(-parseInt(_0x5ccb87(0x1ba))/0x9)+parseInt(_0x5ccb87(0x1c9))/0xa*(parseInt(_0x5ccb87(0x1c8))/0xb)+-parseInt(_0x5ccb87(0x1b9))/0xc;if(_0x41347a===_0x5168d8)break;else _0x1257f7['push'](_0x1257f7['shift']());}catch(_0x14fffb){_0x1257f7['push'](_0x1257f7['shift']());}}}(a39_0x4008,0xa0cf9));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a39_0x5f1d(_0x111681,_0x8d3107){_0x111681=_0x111681-0x1b8;const _0x400854=a39_0x4008();let _0x5f1d7d=_0x400854[_0x111681];return _0x5f1d7d;}function a39_0x4008(){const _0xa5a0f0=['50gYLemz','8210gFGUSs','6054UpruLc','615243PGxzyU','isArray','execResult','632696tHvrrz','1235748LkfryZ','5168934KpEHYY','sql','execSuccess','length','sqlcode','str','8GttazT','Returned\x20','2980PkYpHT','SQL\x20execution\x20failed','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','now','4wIskMh','7091dsudGW','2892175QgzieO'];a39_0x4008=function(){return _0xa5a0f0;};return a39_0x4008();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a39_0x3d8d13(0x1bb),'command':'exec','description':a39_0x3d8d13(0x1c4),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4b0c68){const _0x66aefc=a39_0x3d8d13,_0x4fd26a=parseJsonParams(_0x4b0c68[_0x66aefc(0x1bf)]('params')),_0x317d2c=Date[_0x66aefc(0x1c5)](),_0x3de9e8=await executeSdkSql(_0x4b0c68['str'](_0x66aefc(0x1be)),_0x4fd26a),_0x50b4ab=Date[_0x66aefc(0x1c5)]()-_0x317d2c,_0x15dc6c=_0x3de9e8?.[_0x66aefc(0x1ce)]??_0x3de9e8,_0x46683b=_0x3de9e8?.[_0x66aefc(0x1bc)]??!![];if(!_0x46683b)return{'ok':![],'data':{'error':_0x3de9e8?.['execError']||_0x66aefc(0x1c3),'elapsed':_0x50b4ab},'message':_0x66aefc(0x1c3)};const _0x5134ef=Array[_0x66aefc(0x1cd)](_0x15dc6c)?_0x15dc6c:[];return{'ok':!![],'data':{'rows':_0x5134ef,'rowCount':_0x5134ef[_0x66aefc(0x1bd)],'elapsed':_0x50b4ab},'message':_0x66aefc(0x1c1)+_0x5134ef[_0x66aefc(0x1bd)]+'\x20row(s)\x20in\x20'+_0x50b4ab+'ms'};}};
1
+ const a39_0x28f6c4=a39_0x4196;(function(_0x3a70f5,_0x537e5b){const _0x99a7a3=a39_0x4196,_0xd10b8=_0x3a70f5();while(!![]){try{const _0x535d56=-parseInt(_0x99a7a3(0x1bf))/0x1+-parseInt(_0x99a7a3(0x1be))/0x2+-parseInt(_0x99a7a3(0x1ac))/0x3*(-parseInt(_0x99a7a3(0x1b1))/0x4)+-parseInt(_0x99a7a3(0x1b4))/0x5*(-parseInt(_0x99a7a3(0x1ae))/0x6)+-parseInt(_0x99a7a3(0x1b5))/0x7*(parseInt(_0x99a7a3(0x1b9))/0x8)+parseInt(_0x99a7a3(0x1b7))/0x9*(parseInt(_0x99a7a3(0x1ad))/0xa)+-parseInt(_0x99a7a3(0x1bd))/0xb;if(_0x535d56===_0x537e5b)break;else _0xd10b8['push'](_0xd10b8['shift']());}catch(_0x38cec1){_0xd10b8['push'](_0xd10b8['shift']());}}}(a39_0x3fd2,0xaddca));function a39_0x4196(_0x2a8e04,_0x101a63){_0x2a8e04=_0x2a8e04-0x1aa;const _0x3fd2f8=a39_0x3fd2();let _0x419615=_0x3fd2f8[_0x2a8e04];return _0x419615;}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a39_0x3fd2(){const _0x25750e=['5146914FvnIGq','execResult','length','8zDRIKi','params','execSuccess','5TIWhFa','7JOKcOX','SQL\x20execution\x20failed','9hTnyfD','now','1340776AfBXIW','\x20row(s)\x20in\x20','execError','exec','9513427gADgpP','115692mXHNXE','252089vAvhky','str','isArray','Returned\x20','235281FXQpWn','10398540aipYDj'];a39_0x3fd2=function(){return _0x25750e;};return a39_0x3fd2();}export const sqlExec={'service':'sql','command':a39_0x28f6c4(0x1bc),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x51337b){const _0x339b53=a39_0x28f6c4,_0x580656=parseJsonParams(_0x51337b[_0x339b53(0x1c0)](_0x339b53(0x1b2))),_0x5ab21f=Date[_0x339b53(0x1b8)](),_0x35fec2=await executeSdkSql(_0x51337b['str']('sqlcode'),_0x580656),_0x5453ac=Date[_0x339b53(0x1b8)]()-_0x5ab21f,_0x402189=_0x35fec2?.[_0x339b53(0x1af)]??_0x35fec2,_0x3e6342=_0x35fec2?.[_0x339b53(0x1b3)]??!![];if(!_0x3e6342)return{'ok':![],'data':{'error':_0x35fec2?.[_0x339b53(0x1bb)]||_0x339b53(0x1b6),'elapsed':_0x5453ac},'message':_0x339b53(0x1b6)};const _0x137053=Array[_0x339b53(0x1aa)](_0x402189)?_0x402189:[];return{'ok':!![],'data':{'rows':_0x137053,'rowCount':_0x137053[_0x339b53(0x1b0)],'elapsed':_0x5453ac},'message':_0x339b53(0x1ab)+_0x137053[_0x339b53(0x1b0)]+_0x339b53(0x1ba)+_0x5453ac+'ms'};}};
@@ -1 +1 @@
1
- function a40_0x4e2e(_0x49842c,_0x27858a){_0x49842c=_0x49842c-0xf9;const _0x555583=a40_0x5555();let _0x4e2eba=_0x555583[_0x49842c];return _0x4e2eba;}function a40_0x5555(){const _0x544867=['3920768AdRLSl','13164507XXNLAT','64frSmGd','556592DZfQkw','125529hYtXeg','1609106VSioRz','35PiuWUV','512310gnGKmo','10PkadtJ','4323333eUSnNf'];a40_0x5555=function(){return _0x544867;};return a40_0x5555();}(function(_0x3d5d5f,_0x9dbe29){const _0x579e80=a40_0x4e2e,_0x250097=_0x3d5d5f();while(!![]){try{const _0x5a25f2=parseInt(_0x579e80(0x100))/0x1+parseInt(_0x579e80(0x102))/0x2+-parseInt(_0x579e80(0x101))/0x3*(parseInt(_0x579e80(0xff))/0x4)+-parseInt(_0x579e80(0xf9))/0x5*(parseInt(_0x579e80(0xfa))/0x6)+-parseInt(_0x579e80(0xfc))/0x7+-parseInt(_0x579e80(0xfd))/0x8+parseInt(_0x579e80(0xfe))/0x9*(parseInt(_0x579e80(0xfb))/0xa);if(_0x5a25f2===_0x9dbe29)break;else _0x250097['push'](_0x250097['shift']());}catch(_0x13f7ba){_0x250097['push'](_0x250097['shift']());}}}(a40_0x5555,0x6d9ca));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x36cf94,_0x128b2d){const _0x3a6f33=a40_0x30c7,_0x51ba2f=_0x36cf94();while(!![]){try{const _0x46e5c4=-parseInt(_0x3a6f33(0x10c))/0x1*(parseInt(_0x3a6f33(0x111))/0x2)+-parseInt(_0x3a6f33(0x110))/0x3+-parseInt(_0x3a6f33(0x114))/0x4*(parseInt(_0x3a6f33(0x10d))/0x5)+-parseInt(_0x3a6f33(0x113))/0x6+-parseInt(_0x3a6f33(0x115))/0x7*(parseInt(_0x3a6f33(0x10f))/0x8)+parseInt(_0x3a6f33(0x112))/0x9+parseInt(_0x3a6f33(0x10e))/0xa;if(_0x46e5c4===_0x128b2d)break;else _0x51ba2f['push'](_0x51ba2f['shift']());}catch(_0x2f38ea){_0x51ba2f['push'](_0x51ba2f['shift']());}}}(a40_0x27f1,0x43f5b));import{sqlDetail}from'../../commands/sql/detail.js';function a40_0x30c7(_0x4c393a,_0x4c3182){_0x4c393a=_0x4c393a-0x10c;const _0x27f1f7=a40_0x27f1();let _0x30c729=_0x27f1f7[_0x4c393a];return _0x30c729;}import{sqlExec}from'../../commands/sql/exec.js';function a40_0x27f1(){const _0x5d8c8d=['2036OIrqhw','182tBUWtO','17868bVizZz','4285WvPMPt','14844910HbSBAw','122224apgShA','666159slLMcn','4TYbRax','41220TMuSzj','716868xIbwqf'];a40_0x27f1=function(){return _0x5d8c8d;};return a40_0x27f1();}export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a41_0x54bd1b=a41_0x2097;function a41_0x2097(_0x23993c,_0x131eed){_0x23993c=_0x23993c-0xa7;const _0x575099=a41_0x5750();let _0x2097ec=_0x575099[_0x23993c];return _0x2097ec;}(function(_0x355358,_0x5e96f2){const _0x316acb=a41_0x2097,_0x22eaf3=_0x355358();while(!![]){try{const _0xabcf2d=parseInt(_0x316acb(0xbe))/0x1+-parseInt(_0x316acb(0xeb))/0x2*(parseInt(_0x316acb(0xa9))/0x3)+parseInt(_0x316acb(0xdb))/0x4*(parseInt(_0x316acb(0xc7))/0x5)+-parseInt(_0x316acb(0xdd))/0x6*(-parseInt(_0x316acb(0xba))/0x7)+parseInt(_0x316acb(0xe0))/0x8*(-parseInt(_0x316acb(0xd6))/0x9)+parseInt(_0x316acb(0xaf))/0xa*(-parseInt(_0x316acb(0xc2))/0xb)+parseInt(_0x316acb(0xcd))/0xc*(-parseInt(_0x316acb(0xec))/0xd);if(_0xabcf2d===_0x5e96f2)break;else _0x22eaf3['push'](_0x22eaf3['shift']());}catch(_0x58fd8f){_0x22eaf3['push'](_0x22eaf3['shift']());}}}(a41_0x5750,0x8550f));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';function a41_0x5750(){const _0x1a7a9d=['install','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','1079452jShojP','source','Current\x20version:\x20','cwd','status','3029890AXcecD','match','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','filter','Unable\x20to\x20resolve\x20','48QqXUFy','Invalid\x20version:\x20','Updating\x20','Update\x20failed:\x20','major','unknown','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','beta','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','18HkeymA','trim','exit\x20','string','patch','4AqaBfp','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','8682JbYhsS','stderr','nonInteractive','840232aoFpsV','error','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','prerelease','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','pipe','log','version','latest','Checking\x20npm\x20dist-tags...','write','38366hJEtCK','1491217PUecXZ','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','\x20CLI\x20from\x20npm','Update\x20','npm','Version\x20comparison\x20failed.','json','fromEntries','skills','stdout','object','93dwvxiv','Already\x20on\x20requested\x20version\x20(v','/dist-tags','boolean','bool','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','40wZadOB','\x20->\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','no-skills','length','=1).','inherit','validation','toString','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','join','5131NxetAg','minor','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','535529VOjMzQ','warn'];a41_0x5750=function(){return _0x1a7a9d;};return a41_0x5750();}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';const updateFlags=[{'name':a41_0x54bd1b(0xe8),'type':a41_0x54bd1b(0xac),'description':a41_0x54bd1b(0xdc),'default':![]},{'name':a41_0x54bd1b(0xd4),'type':a41_0x54bd1b(0xac),'description':a41_0x54bd1b(0xb1),'default':![]},{'name':a41_0x54bd1b(0xe7),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a41_0x54bd1b(0xb2),'type':'boolean','description':a41_0x54bd1b(0xc1),'default':![]},{'name':a41_0x54bd1b(0xf4),'type':a41_0x54bd1b(0xac),'description':a41_0x54bd1b(0xed),'default':!![],'hidden':!![]}];function parseSemver(_0x32f5ee){const _0x59d3de=a41_0x54bd1b,_0x406ca2=_0x32f5ee['trim']()[_0x59d3de(0xc8)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x406ca2)return null;return{'major':Number(_0x406ca2[0x1]),'minor':Number(_0x406ca2[0x2]),'patch':Number(_0x406ca2[0x3]),'prerelease':_0x406ca2[0x4]};}function compareSemver(_0x1b0189,_0x4ec590){const _0x9f6a58=a41_0x54bd1b,_0x1d4f84=parseSemver(_0x1b0189),_0x5af0ad=parseSemver(_0x4ec590);if(!_0x1d4f84||!_0x5af0ad)throw CliErrors[_0x9f6a58(0xb6)](_0x9f6a58(0xf1),_0x9f6a58(0xc9));for(const _0x5018eb of[_0x9f6a58(0xd1),_0x9f6a58(0xbb),_0x9f6a58(0xda)]){if(_0x1d4f84[_0x5018eb]<_0x5af0ad[_0x5018eb])return-0x1;if(_0x1d4f84[_0x5018eb]>_0x5af0ad[_0x5018eb])return 0x1;}if(!_0x1d4f84[_0x9f6a58(0xe3)]&&!_0x5af0ad[_0x9f6a58(0xe3)])return 0x0;if(!_0x1d4f84['prerelease'])return 0x1;if(!_0x5af0ad['prerelease'])return-0x1;if(_0x1d4f84[_0x9f6a58(0xe3)]===_0x5af0ad[_0x9f6a58(0xe3)])return 0x0;return _0x1d4f84[_0x9f6a58(0xe3)]<_0x5af0ad[_0x9f6a58(0xe3)]?-0x1:0x1;}function getRequestedVersion(_0x288be4){const _0x3608f7=a41_0x54bd1b,_0x1f765e=_0x288be4['str']('version')[_0x3608f7(0xd7)]();if(_0x1f765e)return _0x1f765e;return String(_0x288be4['args']?.[0x0]??'')[_0x3608f7(0xd7)]();}function shouldSkipCliBuiltInSkill(_0x36edfc){const _0x2842ce=a41_0x54bd1b;return _0x36edfc[_0x2842ce(0xad)]('no-skills')||_0x36edfc['flag'](_0x2842ce(0xf4))===![];}async function validateUpdateFlags(_0x3d82bc){const _0x3047fb=a41_0x54bd1b,_0x1a6f1a=getRequestedVersion(_0x3d82bc),_0x577fa2=[_0x3d82bc[_0x3047fb(0xad)](_0x3047fb(0xe8))?_0x3047fb(0xe8):'',_0x3d82bc[_0x3047fb(0xad)]('beta')?_0x3047fb(0xd4):'',_0x1a6f1a?_0x3047fb(0xe7):''][_0x3047fb(0xcb)](Boolean);if(_0x577fa2[_0x3047fb(0xb3)]>0x1)throw CliErrors[_0x3047fb(0xb6)](_0x3047fb(0xe4),_0x3047fb(0xbc));if(_0x1a6f1a&&!parseSemver(_0x1a6f1a))throw CliErrors['validation'](_0x3047fb(0xce)+_0x1a6f1a,_0x3047fb(0xd5));}async function fetchNpmDistTags(){const _0x3a9a2f=a41_0x54bd1b;try{const _0x40bce4=NPM_REGISTRY_BASE_URL+'/-/package/'+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x3a9a2f(0xab),_0x3d6a8b=await fetch(_0x40bce4,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x3d6a8b['ok'])return null;const _0x56fdcc=await _0x3d6a8b[_0x3a9a2f(0xf2)]();if(!_0x56fdcc||typeof _0x56fdcc!==_0x3a9a2f(0xa8))return null;return Object[_0x3a9a2f(0xf3)](Object['entries'](_0x56fdcc)[_0x3a9a2f(0xcb)](([,_0x14469e])=>typeof _0x14469e===_0x3a9a2f(0xd9)&&_0x14469e[_0x3a9a2f(0xd7)]())['map'](([_0x157f42,_0x3fb531])=>[_0x157f42,String(_0x3fb531)[_0x3a9a2f(0xd7)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5ce6d3){const _0xf8ec48=a41_0x54bd1b,_0x579d4f=getRequestedVersion(_0x5ce6d3);if(_0x579d4f)return{'version':_0x579d4f,'source':_0xf8ec48(0xe7)};const _0x12cc12=_0x5ce6d3[_0xf8ec48(0xad)]('beta')?_0xf8ec48(0xd4):_0xf8ec48(0xe8),_0x19cd69=await fetchNpmDistTags(),_0x39934e=_0x19cd69?.[_0x12cc12];if(!_0x39934e)return null;return{'version':_0x39934e,'source':_0x12cc12};}function shouldInstallTarget(_0xefbb5c,_0x55f81b){const _0x23d44e=a41_0x54bd1b,_0x317b53=compareSemver(_0xefbb5c,_0x55f81b[_0x23d44e(0xe7)]);if(_0x55f81b[_0x23d44e(0xc3)]==='version')return _0x317b53!==0x0;return _0x317b53<0x0;}function installCliPackage(_0x50cf7b,_0x3fe20c){const _0x427ffa=a41_0x54bd1b,_0x41bb04=resolveNpmBin(_0x427ffa(0xf0)),_0x4d20da=[_0x427ffa(0xc0),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x50cf7b];console[_0x427ffa(0xe6)]('*\x20'+[_0x41bb04,..._0x4d20da][_0x427ffa(0xb9)]('\x20'));const _0x407a1d=spawnSync(_0x41bb04,_0x4d20da,{'cwd':process[_0x427ffa(0xc5)](),'stdio':_0x3fe20c?_0x427ffa(0xe5):'inherit','env':process.env,'shell':![]});if(_0x407a1d[_0x427ffa(0xc6)]===0x0)return{'ok':!![]};let _0x37e094=_0x407a1d[_0x427ffa(0xe1)]?.['message']||_0x427ffa(0xd8)+(_0x407a1d[_0x427ffa(0xc6)]??_0x427ffa(0xd2));if(_0x3fe20c){const _0x5c5667=_0x407a1d[_0x427ffa(0xde)]?_0x407a1d['stderr']['toString']()[_0x427ffa(0xd7)]():'',_0x431090=_0x407a1d['stdout']?_0x407a1d[_0x427ffa(0xa7)][_0x427ffa(0xb7)]()[_0x427ffa(0xd7)]():'';if(_0x5c5667)_0x37e094=_0x5c5667;else{if(_0x431090)_0x37e094=_0x431090;}}return{'ok':![],'error':_0x37e094};}async function installCliBuiltInSkill(_0x289bff){const _0x5764c2=a41_0x54bd1b;console['log']('Checking\x20CLI\x20Built-in\x20Skill...');const _0x208bc2=runNpxSkillsAddGlobal(process[_0x5764c2(0xc5)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x289bff?_0x5764c2(0xe5):_0x5764c2(0xb5)});if(_0x208bc2['skipped']){console[_0x5764c2(0xe6)](_0x5764c2(0xbd)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x5764c2(0xb4));return;}if(_0x208bc2['ok']){console[_0x5764c2(0xe6)](_0x5764c2(0xd3));return;}console[_0x5764c2(0xbf)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x208bc2[_0x5764c2(0xe1)]||_0x5764c2(0xd2))),console['log']('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x2b1d65){const _0xb3f97b=a41_0x54bd1b;await validateUpdateFlags(_0x2b1d65);const _0x5bc6f4=getCliVersion();console['log'](_0xb3f97b(0xc4)+_0x5bc6f4),console[_0xb3f97b(0xe6)](_0xb3f97b(0xe9));const _0x3c87f3=await resolveTargetVersion(_0x2b1d65);if(!_0x3c87f3){const _0x310505=_0x2b1d65['bool']('beta')?_0xb3f97b(0xd4):_0xb3f97b(0xe8),_0x4031af=_0xb3f97b(0xcc)+_0x310505+'\x20version\x20from\x20npm.';return console[_0xb3f97b(0xbf)](_0x4031af),console['log'](_0xb3f97b(0xe2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x310505),{'ok':![]};}if(!shouldInstallTarget(_0x5bc6f4,_0x3c87f3)){const _0x1906fc=_0x3c87f3[_0xb3f97b(0xc3)]===_0xb3f97b(0xe7)?_0xb3f97b(0xaa)+_0x3c87f3[_0xb3f97b(0xe7)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x3c87f3['version']+').';return console[_0xb3f97b(0xe6)](_0x1906fc),shouldSkipCliBuiltInSkill(_0x2b1d65)?console[_0xb3f97b(0xe6)](_0xb3f97b(0xca)):await installCliBuiltInSkill(_0x2b1d65[_0xb3f97b(0xdf)]),{'ok':!![]};}console['log'](_0xb3f97b(0xcf)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x5bc6f4+_0xb3f97b(0xb0)+_0x3c87f3[_0xb3f97b(0xe7)]);const _0x467af1=installCliPackage(_0x3c87f3[_0xb3f97b(0xe7)],_0x2b1d65[_0xb3f97b(0xdf)]);if(!_0x467af1['ok']){const _0x2a527a=_0xb3f97b(0xd0)+(_0x467af1[_0xb3f97b(0xe1)]||_0xb3f97b(0xd2));return console[_0xb3f97b(0xe1)](_0x2a527a),console[_0xb3f97b(0xe6)](_0xb3f97b(0xb8)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3c87f3[_0xb3f97b(0xe7)]),{'ok':![]};}return console[_0xb3f97b(0xe6)]('Updated\x20to\x20v'+_0x3c87f3[_0xb3f97b(0xe7)]+'.'),console[_0xb3f97b(0xe6)](_0xb3f97b(0xae)),shouldSkipCliBuiltInSkill(_0x2b1d65)?console[_0xb3f97b(0xe6)](_0xb3f97b(0xca)):await installCliBuiltInSkill(_0x2b1d65['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':a41_0x54bd1b(0xef)+CLI_BIN_NAME+a41_0x54bd1b(0xee),'risk':a41_0x54bd1b(0xea),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a41_0x57aa80=a41_0x39a0;function a41_0x3c7d(){const _0x3fd97c=['Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','update','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','145828YohhiW','971922XzlbYq','no-skills','str','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','string','run','toString','Install\x20a\x20specific\x20CLI\x20version','skills','minor','bool','npm','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','join','Update\x20','3585322mdUqet','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','log','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20CLI\x20from\x20npm','1999790ssEkLz','args','\x20version\x20from\x20npm.','18eiFbxC','timeout','length','1200272xIwiKN','pipe','filter','657872zVztgZ','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','fromEntries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','validation','=1).','entries','object','trim','install','beta','prerelease','error','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','cwd','version','patch','message','stderr','json','map','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','1689665QuWVCh','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','Checking\x20npm\x20dist-tags...','Current\x20version:\x20','Checking\x20CLI\x20Built-in\x20Skill...','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Version\x20comparison\x20failed.','Unable\x20to\x20resolve\x20','Invalid\x20version:\x20','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','warn','Already\x20on\x20requested\x20version\x20(v','57fJczVY','source','unknown','stdout','major','18MgXYtM','inherit','nonInteractive','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','/-/package/','status','skipped','boolean','\x20->\x20','latest'];a41_0x3c7d=function(){return _0x3fd97c;};return a41_0x3c7d();}(function(_0x2020e0,_0x2a68cd){const _0x250042=a41_0x39a0,_0x481a4d=_0x2020e0();while(!![]){try{const _0x13823c=parseInt(_0x250042(0x7d))/0x1+-parseInt(_0x250042(0xc2))/0x2+parseInt(_0x250042(0xa0))/0x3*(parseInt(_0x250042(0xb2))/0x4)+parseInt(_0x250042(0x93))/0x5*(parseInt(_0x250042(0x77))/0x6)+parseInt(_0x250042(0xb3))/0x7+-parseInt(_0x250042(0x7a))/0x8+-parseInt(_0x250042(0xa5))/0x9*(-parseInt(_0x250042(0x74))/0xa);if(_0x13823c===_0x2a68cd)break;else _0x481a4d['push'](_0x481a4d['shift']());}catch(_0x5caa7d){_0x481a4d['push'](_0x481a4d['shift']());}}}(a41_0x3c7d,0xea7cf));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';const updateFlags=[{'name':'latest','type':a41_0x57aa80(0xac),'description':a41_0x57aa80(0x99),'default':![]},{'name':a41_0x57aa80(0x87),'type':a41_0x57aa80(0xac),'description':a41_0x57aa80(0x80),'default':![]},{'name':a41_0x57aa80(0x8c),'type':'string','description':a41_0x57aa80(0xba)},{'name':a41_0x57aa80(0xb4),'type':a41_0x57aa80(0xac),'description':a41_0x57aa80(0xb6),'default':![]},{'name':a41_0x57aa80(0xbb),'type':'boolean','description':a41_0x57aa80(0xaf),'default':!![],'hidden':!![]}];function parseSemver(_0x4ee452){const _0x3f2d2d=a41_0x57aa80,_0x4079c7=_0x4ee452[_0x3f2d2d(0x85)]()['match'](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x4079c7)return null;return{'major':Number(_0x4079c7[0x1]),'minor':Number(_0x4079c7[0x2]),'patch':Number(_0x4079c7[0x3]),'prerelease':_0x4079c7[0x4]};}function compareSemver(_0x1a955b,_0x462057){const _0x12d014=a41_0x57aa80,_0x381c08=parseSemver(_0x1a955b),_0x5ca5e6=parseSemver(_0x462057);if(!_0x381c08||!_0x5ca5e6)throw CliErrors[_0x12d014(0x81)](_0x12d014(0x9a),_0x12d014(0xbf));for(const _0x36d778 of[_0x12d014(0xa4),_0x12d014(0xbc),_0x12d014(0x8d)]){if(_0x381c08[_0x36d778]<_0x5ca5e6[_0x36d778])return-0x1;if(_0x381c08[_0x36d778]>_0x5ca5e6[_0x36d778])return 0x1;}if(!_0x381c08[_0x12d014(0x88)]&&!_0x5ca5e6[_0x12d014(0x88)])return 0x0;if(!_0x381c08[_0x12d014(0x88)])return 0x1;if(!_0x5ca5e6['prerelease'])return-0x1;if(_0x381c08['prerelease']===_0x5ca5e6[_0x12d014(0x88)])return 0x0;return _0x381c08[_0x12d014(0x88)]<_0x5ca5e6[_0x12d014(0x88)]?-0x1:0x1;}function getRequestedVersion(_0x163bbe){const _0x1dfd99=a41_0x57aa80,_0x56f176=_0x163bbe[_0x1dfd99(0xb5)]('version')[_0x1dfd99(0x85)]();if(_0x56f176)return _0x56f176;return String(_0x163bbe[_0x1dfd99(0x75)]?.[0x0]??'')[_0x1dfd99(0x85)]();}function shouldSkipCliBuiltInSkill(_0x42486e){const _0x155ecc=a41_0x57aa80;return _0x42486e['bool'](_0x155ecc(0xb4))||_0x42486e['flag']('skills')===![];}async function validateUpdateFlags(_0x4ba41f){const _0x191c66=a41_0x57aa80,_0x232268=getRequestedVersion(_0x4ba41f),_0x346cf5=[_0x4ba41f[_0x191c66(0xbd)](_0x191c66(0xae))?_0x191c66(0xae):'',_0x4ba41f[_0x191c66(0xbd)](_0x191c66(0x87))?'beta':'',_0x232268?_0x191c66(0x8c):''][_0x191c66(0x7c)](Boolean);if(_0x346cf5[_0x191c66(0x79)]>0x1)throw CliErrors['validation'](_0x191c66(0x94),_0x191c66(0xa8));if(_0x232268&&!parseSemver(_0x232268))throw CliErrors[_0x191c66(0x81)](_0x191c66(0x9c)+_0x232268,_0x191c66(0x8a));}async function fetchNpmDistTags(){const _0x438556=a41_0x57aa80;try{const _0x3428ac=NPM_REGISTRY_BASE_URL+_0x438556(0xa9)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x23687d=await fetch(_0x3428ac,{'signal':AbortSignal[_0x438556(0x78)](0x2710)});if(!_0x23687d['ok'])return null;const _0x581cc1=await _0x23687d[_0x438556(0x90)]();if(!_0x581cc1||typeof _0x581cc1!==_0x438556(0x84))return null;return Object[_0x438556(0x7f)](Object[_0x438556(0x83)](_0x581cc1)[_0x438556(0x7c)](([,_0x22d2ee])=>typeof _0x22d2ee===_0x438556(0xb7)&&_0x22d2ee[_0x438556(0x85)]())[_0x438556(0x91)](([_0xfda2a6,_0x506898])=>[_0xfda2a6,String(_0x506898)['trim']()]));}catch{return null;}}async function resolveTargetVersion(_0x239b97){const _0x4645bc=a41_0x57aa80,_0x50e5e8=getRequestedVersion(_0x239b97);if(_0x50e5e8)return{'version':_0x50e5e8,'source':'version'};const _0xfb0336=_0x239b97[_0x4645bc(0xbd)](_0x4645bc(0x87))?_0x4645bc(0x87):'latest',_0x13f570=await fetchNpmDistTags(),_0x1b3dcc=_0x13f570?.[_0xfb0336];if(!_0x1b3dcc)return null;return{'version':_0x1b3dcc,'source':_0xfb0336};}function shouldInstallTarget(_0x3f6d8f,_0x358638){const _0x1390b7=a41_0x57aa80,_0x4fe8b8=compareSemver(_0x3f6d8f,_0x358638[_0x1390b7(0x8c)]);if(_0x358638[_0x1390b7(0xa1)]===_0x1390b7(0x8c))return _0x4fe8b8!==0x0;return _0x4fe8b8<0x0;}function installCliPackage(_0x1a6628,_0x5eca0b){const _0x3d9bb2=a41_0x57aa80,_0x4666f4=resolveNpmBin(_0x3d9bb2(0xbe)),_0x115df9=[_0x3d9bb2(0x86),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1a6628];console['log']('*\x20'+[_0x4666f4,..._0x115df9][_0x3d9bb2(0xc0)]('\x20'));const _0x32454e=spawnSync(_0x4666f4,_0x115df9,{'cwd':process[_0x3d9bb2(0x8b)](),'stdio':_0x5eca0b?_0x3d9bb2(0x7b):_0x3d9bb2(0xa6),'env':process.env,'shell':![]});if(_0x32454e[_0x3d9bb2(0xaa)]===0x0)return{'ok':!![]};let _0x586b3a=_0x32454e[_0x3d9bb2(0x89)]?.[_0x3d9bb2(0x8e)]||'exit\x20'+(_0x32454e['status']??_0x3d9bb2(0xa2));if(_0x5eca0b){const _0x3cc926=_0x32454e[_0x3d9bb2(0x8f)]?_0x32454e['stderr'][_0x3d9bb2(0xb9)]()['trim']():'',_0x4d8ee2=_0x32454e[_0x3d9bb2(0xa3)]?_0x32454e[_0x3d9bb2(0xa3)]['toString']()['trim']():'';if(_0x3cc926)_0x586b3a=_0x3cc926;else{if(_0x4d8ee2)_0x586b3a=_0x4d8ee2;}}return{'ok':![],'error':_0x586b3a};}function a41_0x39a0(_0x2cd775,_0xcacde8){_0x2cd775=_0x2cd775-0x73;const _0x3c7d39=a41_0x3c7d();let _0x39a0bb=_0x3c7d39[_0x2cd775];return _0x39a0bb;}async function installCliBuiltInSkill(_0x11ba9c){const _0x219d83=a41_0x57aa80;console[_0x219d83(0xc4)](_0x219d83(0x97));const _0x35a133=runNpxSkillsAddGlobal(process['cwd'](),LOVRABET_SKILL_SOURCE,{'stdio':_0x11ba9c?_0x219d83(0x7b):_0x219d83(0xa6)});if(_0x35a133[_0x219d83(0xab)]){console[_0x219d83(0xc4)](_0x219d83(0xc3)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x219d83(0x82));return;}if(_0x35a133['ok']){console[_0x219d83(0xc4)](_0x219d83(0x92));return;}console['warn'](_0x219d83(0x98)+(_0x35a133[_0x219d83(0x89)]||_0x219d83(0xa2))),console[_0x219d83(0xc4)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x3ec9f0){const _0x1d0670=a41_0x57aa80;await validateUpdateFlags(_0x3ec9f0);const _0x50d881=getCliVersion();console['log'](_0x1d0670(0x96)+_0x50d881),console[_0x1d0670(0xc4)](_0x1d0670(0x95));const _0x208a25=await resolveTargetVersion(_0x3ec9f0);if(!_0x208a25){const _0x3d388a=_0x3ec9f0[_0x1d0670(0xbd)](_0x1d0670(0x87))?'beta':_0x1d0670(0xae),_0x22a25a=_0x1d0670(0x9b)+_0x3d388a+_0x1d0670(0x76);return console[_0x1d0670(0x9e)](_0x22a25a),console[_0x1d0670(0xc4)](_0x1d0670(0x7e)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x3d388a),{'ok':![]};}if(!shouldInstallTarget(_0x50d881,_0x208a25)){const _0x2752f1=_0x208a25[_0x1d0670(0xa1)]==='version'?_0x1d0670(0x9f)+_0x208a25[_0x1d0670(0x8c)]+').':'Already\x20up\x20to\x20date\x20(v'+_0x208a25[_0x1d0670(0x8c)]+').';return console[_0x1d0670(0xc4)](_0x2752f1),shouldSkipCliBuiltInSkill(_0x3ec9f0)?console[_0x1d0670(0xc4)](_0x1d0670(0x9d)):await installCliBuiltInSkill(_0x3ec9f0[_0x1d0670(0xa7)]),{'ok':!![]};}console[_0x1d0670(0xc4)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x50d881+_0x1d0670(0xad)+_0x208a25[_0x1d0670(0x8c)]);const _0xd4ec5b=installCliPackage(_0x208a25[_0x1d0670(0x8c)],_0x3ec9f0['nonInteractive']);if(!_0xd4ec5b['ok']){const _0x243b1c='Update\x20failed:\x20'+(_0xd4ec5b[_0x1d0670(0x89)]||_0x1d0670(0xa2));return console['error'](_0x243b1c),console[_0x1d0670(0xc4)](_0x1d0670(0xb1)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x208a25['version']),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x208a25[_0x1d0670(0x8c)]+'.'),console[_0x1d0670(0xc4)](_0x1d0670(0xc5)),shouldSkipCliBuiltInSkill(_0x3ec9f0)?console[_0x1d0670(0xc4)](_0x1d0670(0x9d)):await installCliBuiltInSkill(_0x3ec9f0['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a41_0x57aa80(0xb0),'command':a41_0x57aa80(0xb8),'description':a41_0x57aa80(0xc1)+CLI_BIN_NAME+a41_0x57aa80(0x73),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a42_0x235d70=a42_0x3638;(function(_0x5ea9f8,_0x519a34){const _0x1dd379=a42_0x3638,_0x539f0d=_0x5ea9f8();while(!![]){try{const _0xe14e41=-parseInt(_0x1dd379(0xf6))/0x1+-parseInt(_0x1dd379(0x102))/0x2+parseInt(_0x1dd379(0xe6))/0x3*(parseInt(_0x1dd379(0x106))/0x4)+parseInt(_0x1dd379(0xed))/0x5*(parseInt(_0x1dd379(0xdd))/0x6)+-parseInt(_0x1dd379(0xe8))/0x7+-parseInt(_0x1dd379(0x10c))/0x8+parseInt(_0x1dd379(0x101))/0x9*(parseInt(_0x1dd379(0x105))/0xa);if(_0xe14e41===_0x519a34)break;else _0x539f0d['push'](_0x539f0d['shift']());}catch(_0x5668b2){_0x539f0d['push'](_0x539f0d['shift']());}}}(a42_0x2dcc,0x5d2d1));function a42_0x3638(_0x1dfed7,_0x28ec90){_0x1dfed7=_0x1dfed7-0xd9;const _0x2dcca7=a42_0x2dcc();let _0x3638fb=_0x2dcca7[_0x1dfed7];return _0x3638fb;}function a42_0x2dcc(){const _0x5c11aa=['\x0aEnv:\x20','validation','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','Available\x20apps:\x20','init','App\x20code\x20to\x20bind\x20directly','18xKkziF','string','858088HXKTwk','App\x20\x22','\x20workspace\x20','from','filter','515KgEQXQ','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','env','\x0aDefault\x20app:\x20','boolean','app','isArray','yes','\x22.\x20Allowed:\x20','246742rCGByP','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','project','command','Workspace\x20configured.\x0aConfig\x20file:\x20','apps','appcode','items','authRequired','str','join','2354148lTFjiX','151552xcGUzH','Missing\x20workspace\x20app\x20selector.','accessKey','40LHXWYm','272968nNEFhV','appName','envName','trim','workspace\x20','shouldWriteEnv','5646616ppFzrx','write','../../core/api-client.js','object','includes','4476aELOXU','\x20--appcode\x20<code>\x20[--env\x20daily]'];a42_0x2dcc=function(){return _0x5c11aa;};return a42_0x2dcc();}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';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a42_0x235d70(0xf2),'type':a42_0x235d70(0xe7),'description':a42_0x235d70(0xf7)},{'name':a42_0x235d70(0xfc),'type':a42_0x235d70(0xe7),'description':a42_0x235d70(0xe5)},{'name':a42_0x235d70(0xef),'type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a42_0x235d70(0xf4),'type':a42_0x235d70(0xf1),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0x3daa4b,_0x5910f3){const _0x40003e=a42_0x235d70,_0x3760bc=_0x3daa4b[_0x40003e(0xff)](_0x40003e(0xf2))['trim'](),_0x4472a3=_0x3daa4b[_0x40003e(0xff)](_0x40003e(0xfc))[_0x40003e(0x109)](),_0x4db680=_0x3daa4b[_0x40003e(0xff)]('env')['trim'](),_0x395ad9=resolveWorkspaceEnv(_0x4db680||_0x3daa4b[_0x40003e(0x108)]||DEFAULT_CONFIG_VALUES[_0x40003e(0xef)]);if(!_0x3760bc&&!_0x4472a3)throw CliErrors[_0x40003e(0xe0)](_0x40003e(0x103),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x5910f3+_0x40003e(0xe1)+CLI_BIN_NAME+_0x40003e(0xea)+_0x5910f3+_0x40003e(0xde));const _0x277000=_0x4472a3||await resolveRemoteAppCode({'command':_0x5910f3,'appName':_0x3760bc,'env':_0x395ad9,'accessKey':_0x3daa4b[_0x40003e(0x104)]}),_0x412297=writeWorkspaceConfig({'command':_0x5910f3,'appName':_0x3760bc,'appcode':_0x277000,'env':_0x395ad9,'shouldWriteEnv':!!_0x4db680,'accessKey':_0x3daa4b[_0x40003e(0x104)]});return{'ok':!![],'data':{'configPath':_0x412297,'app':_0x3760bc||null,'appcode':_0x277000,'env':_0x4db680?_0x395ad9:null,'accessKeyWritten':![],'command':_0x40003e(0x10a)+_0x5910f3},'message':buildWorkspaceMessage(_0x412297,_0x3760bc,_0x277000,_0x4db680?_0x395ad9:undefined)};}async function resolveRemoteAppCode(_0x5cabe3){const _0x5055ac=a42_0x235d70;if(!_0x5cabe3[_0x5055ac(0x104)])throw CliErrors[_0x5055ac(0xfe)]('Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x5cabe3[_0x5055ac(0xf9)]+'.');const {setActiveAK:_0x4bcfc0}=await import(_0x5055ac(0xda)),{getRemoteAppList:_0x521c34}=await import('../../commands/app/remote-source.js');_0x4bcfc0(_0x5cabe3[_0x5055ac(0x104)]);const _0x67792a=await _0x521c34({'env':_0x5cabe3[_0x5055ac(0xef)],'accessKey':_0x5cabe3['accessKey'],'noCache':![]}),_0x4211e0=findAppByName(_0x67792a['items'],_0x5cabe3[_0x5055ac(0x107)]);if(_0x4211e0&&!isRuntimeAccessibleApp(_0x4211e0))throw runtimeInaccessibleAppError(_0x4211e0,'\x22'+_0x5cabe3[_0x5055ac(0x107)]+'\x22');const _0x50ab4c=_0x4211e0?.['appCode']?.['trim']();if(_0x50ab4c)return _0x50ab4c;const _0x2eceb4=_0x67792a[_0x5055ac(0xfd)]['map'](_0x555674=>_0x555674['appName'])[_0x5055ac(0xec)](Boolean),_0x464968=_0x2eceb4['length']?_0x5055ac(0xe3)+Array[_0x5055ac(0xeb)](new Set(_0x2eceb4))[_0x5055ac(0x100)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x5055ac(0xe2);throw CliErrors[_0x5055ac(0xe0)](_0x5055ac(0xe9)+_0x5cabe3[_0x5055ac(0x107)]+'\x22\x20not\x20found.',_0x464968);}function writeWorkspaceConfig(_0x2d793a){const _0x5e03bf=a42_0x235d70,_0x5c6b8e=resolveWriteConfigPath(_0x5e03bf(0xf8)),_0xc9ffbc=readConfigFile(_0x5c6b8e);_0x2d793a[_0x5e03bf(0x10b)]&&(_0xc9ffbc[_0x5e03bf(0xef)]=_0x2d793a[_0x5e03bf(0xef)]);if(_0x2d793a[_0x5e03bf(0x107)]){const _0x83eef5=isRecord(_0xc9ffbc[_0x5e03bf(0xfb)])?{..._0xc9ffbc['apps']}:{},_0x5ef714=isRecord(_0x83eef5[_0x2d793a[_0x5e03bf(0x107)]])?_0x83eef5[_0x2d793a['appName']]:{};_0x83eef5[_0x2d793a[_0x5e03bf(0x107)]]={..._0x5ef714,'appcode':_0x2d793a[_0x5e03bf(0xfc)]},_0xc9ffbc[_0x5e03bf(0xfb)]=_0x83eef5,_0xc9ffbc['defaultApp']=_0x2d793a['appName'];if(_0xc9ffbc[_0x5e03bf(0xf2)])delete _0xc9ffbc[_0x5e03bf(0xf2)];return writeAndReturn(_0x5c6b8e,_0xc9ffbc);}_0xc9ffbc['appcode']=_0x2d793a[_0x5e03bf(0xfc)];if(_0xc9ffbc[_0x5e03bf(0xf2)])delete _0xc9ffbc['app'];return writeAndReturn(_0x5c6b8e,_0xc9ffbc);}function writeAndReturn(_0x85431a,_0x51f809){return writeConfigFile(_0x85431a,_0x51f809),_0x85431a;}function resolveWorkspaceEnv(_0xd98336){const _0x5a1e63=a42_0x235d70;if(RUNTIME_ENV_VALUES[_0x5a1e63(0xdc)](_0xd98336))return _0xd98336;throw CliErrors[_0x5a1e63(0xe0)]('Invalid\x20env\x20\x22'+_0xd98336+_0x5a1e63(0xf5)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x51c343,_0x5a1439,_0x2a89c7,_0x10d4b8){const _0x3ffce2=a42_0x235d70,_0x141fa4=_0x5a1439?_0x5a1439+'\x20('+_0x2a89c7+')':_0x2a89c7,_0x49be04=_0x10d4b8?_0x3ffce2(0xdf)+_0x10d4b8:'';return _0x3ffce2(0xfa)+_0x51c343+_0x3ffce2(0xf0)+_0x141fa4+_0x49be04+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x385a5c){const _0x2534c7=a42_0x235d70;return typeof _0x385a5c===_0x2534c7(0xdb)&&_0x385a5c!==null&&!Array[_0x2534c7(0xf3)](_0x385a5c);}function makeWorkspaceCommand(_0x29e890){const _0x459727=a42_0x235d70;return{'service':'workspace','command':_0x29e890,'description':_0x29e890===_0x459727(0xe4)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x459727(0xee),'risk':_0x459727(0xd9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x233a44){return executeWorkspaceUse(_0x233a44,_0x29e890);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a42_0x235d70(0xe4)),makeWorkspaceCommand('use')];
1
+ const a42_0x373900=a42_0x3083;(function(_0x428aa0,_0x5e3aa4){const _0x43840a=a42_0x3083,_0x2a513c=_0x428aa0();while(!![]){try{const _0x311aa9=-parseInt(_0x43840a(0x218))/0x1*(-parseInt(_0x43840a(0x223))/0x2)+-parseInt(_0x43840a(0x1eb))/0x3+parseInt(_0x43840a(0x1ed))/0x4+parseInt(_0x43840a(0x219))/0x5*(parseInt(_0x43840a(0x21f))/0x6)+parseInt(_0x43840a(0x1f0))/0x7*(parseInt(_0x43840a(0x200))/0x8)+parseInt(_0x43840a(0x1f1))/0x9*(-parseInt(_0x43840a(0x1fe))/0xa)+parseInt(_0x43840a(0x20d))/0xb*(-parseInt(_0x43840a(0x1ee))/0xc);if(_0x311aa9===_0x5e3aa4)break;else _0x2a513c['push'](_0x2a513c['shift']());}catch(_0x3ea120){_0x2a513c['push'](_0x2a513c['shift']());}}}(a42_0x4fe1,0x557ef));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';import{findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const WORKSPACE_USE_FLAGS=[{'name':a42_0x373900(0x203),'type':a42_0x373900(0x201),'description':a42_0x373900(0x211)},{'name':'appcode','type':'string','description':a42_0x373900(0x214)},{'name':a42_0x373900(0x206),'type':a42_0x373900(0x201),'description':a42_0x373900(0x1f3),'enum':[...RUNTIME_ENV_VALUES]},{'name':'yes','type':a42_0x373900(0x207),'description':'Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','default':![]}];async function executeWorkspaceUse(_0xeb65b2,_0x27544b){const _0x430b1e=a42_0x373900,_0x6da095=_0xeb65b2[_0x430b1e(0x21c)]('app')[_0x430b1e(0x215)](),_0x813e4b=_0xeb65b2[_0x430b1e(0x21c)](_0x430b1e(0x222))[_0x430b1e(0x215)](),_0x414bfb=_0xeb65b2[_0x430b1e(0x21c)]('env')[_0x430b1e(0x215)](),_0x565c24=resolveWorkspaceEnv(_0x414bfb||_0xeb65b2['envName']||DEFAULT_CONFIG_VALUES[_0x430b1e(0x206)]);if(!_0x6da095&&!_0x813e4b)throw CliErrors[_0x430b1e(0x217)](_0x430b1e(0x21b),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x27544b+_0x430b1e(0x204)+CLI_BIN_NAME+_0x430b1e(0x1f6)+_0x27544b+'\x20--appcode\x20<code>\x20[--env\x20daily]');const _0x5d3dab=_0x813e4b||await resolveRemoteAppCode({'command':_0x27544b,'appName':_0x6da095,'env':_0x565c24,'accessKey':_0xeb65b2['accessKey']}),_0x322653=writeWorkspaceConfig({'command':_0x27544b,'appName':_0x6da095,'appcode':_0x5d3dab,'env':_0x565c24,'shouldWriteEnv':!!_0x414bfb,'accessKey':_0xeb65b2[_0x430b1e(0x1ec)]});return{'ok':!![],'data':{'configPath':_0x322653,'app':_0x6da095||null,'appcode':_0x5d3dab,'env':_0x414bfb?_0x565c24:null,'accessKeyWritten':![],'command':_0x430b1e(0x1fb)+_0x27544b},'message':buildWorkspaceMessage(_0x322653,_0x6da095,_0x5d3dab,_0x414bfb?_0x565c24:undefined)};}async function resolveRemoteAppCode(_0x2a5efe){const _0x16f7a6=a42_0x373900;if(!_0x2a5efe[_0x16f7a6(0x1ec)])throw CliErrors[_0x16f7a6(0x209)](_0x16f7a6(0x1f8)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2a5efe[_0x16f7a6(0x21a)]+'.');const {setActiveAK:_0x5da637}=await import(_0x16f7a6(0x213)),{getRemoteAppList:_0x430f24}=await import(_0x16f7a6(0x1ef));_0x5da637(_0x2a5efe['accessKey']);const _0x591fdd=await _0x430f24({'env':_0x2a5efe['env'],'accessKey':_0x2a5efe[_0x16f7a6(0x1ec)],'noCache':![]}),_0x522850=findAppByName(_0x591fdd[_0x16f7a6(0x21e)],_0x2a5efe[_0x16f7a6(0x226)]);if(_0x522850&&!isRuntimeAccessibleApp(_0x522850))throw runtimeInaccessibleAppError(_0x522850,'\x22'+_0x2a5efe[_0x16f7a6(0x226)]+'\x22');const _0x2bd25e=_0x522850?.[_0x16f7a6(0x20b)]?.[_0x16f7a6(0x215)]();if(_0x2bd25e)return _0x2bd25e;const _0x40a5a3=_0x591fdd[_0x16f7a6(0x21e)][_0x16f7a6(0x202)](_0x40aa35=>_0x40aa35[_0x16f7a6(0x226)])[_0x16f7a6(0x1ff)](Boolean),_0x3c1319=_0x40a5a3[_0x16f7a6(0x216)]?_0x16f7a6(0x220)+Array[_0x16f7a6(0x20e)](new Set(_0x40a5a3))[_0x16f7a6(0x1fc)](',\x20')+'.':_0x16f7a6(0x20f)+CLI_BIN_NAME+_0x16f7a6(0x225);throw CliErrors[_0x16f7a6(0x217)]('App\x20\x22'+_0x2a5efe[_0x16f7a6(0x226)]+_0x16f7a6(0x1f4),_0x3c1319);}function writeWorkspaceConfig(_0x408e1a){const _0x306400=a42_0x373900,_0x40436d=resolveWriteConfigPath(_0x306400(0x210)),_0x5d78c7=readConfigFile(_0x40436d);_0x408e1a[_0x306400(0x224)]&&(_0x5d78c7[_0x306400(0x206)]=_0x408e1a[_0x306400(0x206)]);if(_0x408e1a[_0x306400(0x226)]){const _0x5f52a9=isRecord(_0x5d78c7[_0x306400(0x212)])?{..._0x5d78c7[_0x306400(0x212)]}:{},_0x525c5d=isRecord(_0x5f52a9[_0x408e1a[_0x306400(0x226)]])?_0x5f52a9[_0x408e1a[_0x306400(0x226)]]:{};_0x5f52a9[_0x408e1a['appName']]={..._0x525c5d,'appcode':_0x408e1a[_0x306400(0x222)]},_0x5d78c7[_0x306400(0x212)]=_0x5f52a9,_0x5d78c7['defaultApp']=_0x408e1a[_0x306400(0x226)];if(_0x5d78c7[_0x306400(0x203)])delete _0x5d78c7[_0x306400(0x203)];return writeAndReturn(_0x40436d,_0x5d78c7);}_0x5d78c7[_0x306400(0x222)]=_0x408e1a['appcode'];if(_0x5d78c7[_0x306400(0x203)])delete _0x5d78c7[_0x306400(0x203)];return writeAndReturn(_0x40436d,_0x5d78c7);}function a42_0x3083(_0x441e5d,_0x3d5de0){_0x441e5d=_0x441e5d-0x1eb;const _0x4fe140=a42_0x4fe1();let _0x3083b3=_0x4fe140[_0x441e5d];return _0x3083b3;}function writeAndReturn(_0x3c4460,_0x3a28ac){return writeConfigFile(_0x3c4460,_0x3a28ac),_0x3c4460;}function resolveWorkspaceEnv(_0x324e5b){const _0x5707b9=a42_0x373900;if(RUNTIME_ENV_VALUES[_0x5707b9(0x205)](_0x324e5b))return _0x324e5b;throw CliErrors['validation'](_0x5707b9(0x20c)+_0x324e5b+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x5707b9(0x1fc)](',\x20'));}function a42_0x4fe1(){const _0x530533=['command','Missing\x20workspace\x20app\x20selector.','str','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','items','1140540xzWGMU','Available\x20apps:\x20','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','appcode','16heQshn','shouldWriteEnv','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','appName','157539FvzRow','accessKey','1539684ISecsS','6113916WkPAIr','../../commands/app/remote-source.js','525oTXLnp','261IwcdbE','workspace','Target\x20environment','\x22\x20not\x20found.','init','\x20workspace\x20','isArray','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Workspace\x20configured.\x0aConfig\x20file:\x20','use','workspace\x20','join','write','161050kwmPNz','filter','41512xeZdkE','string','map','app','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','includes','env','boolean','\x0aEnv:\x20','authRequired','\x0aAccessKey:\x20not\x20written','appCode','Invalid\x20env\x20\x22','11tbFShk','from','Run\x20`','project','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','apps','../../core/api-client.js','App\x20code\x20to\x20bind\x20directly','trim','length','validation','51882DmCRRK','5PAbOnc'];a42_0x4fe1=function(){return _0x530533;};return a42_0x4fe1();}function buildWorkspaceMessage(_0x3712a3,_0x49e0ad,_0x4b2797,_0x57c0a5){const _0x476f0b=a42_0x373900,_0x7f7095=_0x49e0ad?_0x49e0ad+'\x20('+_0x4b2797+')':_0x4b2797,_0x2214e6=_0x57c0a5?_0x476f0b(0x208)+_0x57c0a5:'';return _0x476f0b(0x1f9)+_0x3712a3+'\x0aDefault\x20app:\x20'+_0x7f7095+_0x2214e6+_0x476f0b(0x20a);}function isRecord(_0x121deb){const _0x2219f6=a42_0x373900;return typeof _0x121deb==='object'&&_0x121deb!==null&&!Array[_0x2219f6(0x1f7)](_0x121deb);}function makeWorkspaceCommand(_0x1b4d4e){const _0x336dfd=a42_0x373900;return{'service':_0x336dfd(0x1f2),'command':_0x1b4d4e,'description':_0x1b4d4e===_0x336dfd(0x1f5)?_0x336dfd(0x221):_0x336dfd(0x21d),'risk':_0x336dfd(0x1fd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x477354){return executeWorkspaceUse(_0x477354,_0x1b4d4e);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand(a42_0x373900(0x1fa))];
@@ -1 +1 @@
1
- const a43_0xc0330a=a43_0x15a8;function a43_0x5d60(){const _0x561d92=['format','Locale','importable','Risk\x20level','riskLevel','Override\x20SkillHub\x20domain','fromEntries','9FTkhSv','Override\x20runtime\x20domain','Default\x20output\x20format','Override\x20API\x20domain','5199170vsBiyF',';\x20local\x20alias:\x20apps.<alias>.appcode','cliSettableTopLevel','3LdMuQS','11363312TiPsAK','env','join','entries','Target\x20environment','88468hlEwrR','filter','Override\x20user\x20domain','3518274DiCuId','25aKJiMO','locale','1126196dcHwcM','Access\x20key\x20(client-ak\x20auth)','enumValues','3265590CHBRzG','Default\x20page\x20size','map','6896659IJJZLg'];a43_0x5d60=function(){return _0x561d92;};return a43_0x5d60();}(function(_0x4840a9,_0x4b0606){const _0x4e6287=a43_0x15a8,_0x30e3c8=_0x4840a9();while(!![]){try{const _0x145105=-parseInt(_0x4e6287(0x1dc))/0x1*(-parseInt(_0x4e6287(0x1c1))/0x2)+-parseInt(_0x4e6287(0x1c4))/0x3+-parseInt(_0x4e6287(0x1c7))/0x4*(-parseInt(_0x4e6287(0x1c5))/0x5)+parseInt(_0x4e6287(0x1ca))/0x6+-parseInt(_0x4e6287(0x1cd))/0x7+parseInt(_0x4e6287(0x1bc))/0x8+parseInt(_0x4e6287(0x1d5))/0x9*(-parseInt(_0x4e6287(0x1d9))/0xa);if(_0x145105===_0x4b0606)break;else _0x30e3c8['push'](_0x30e3c8['shift']());}catch(_0x3f8f14){_0x30e3c8['push'](_0x30e3c8['shift']());}}}(a43_0x5d60,0xc9f4e));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':a43_0xc0330a(0x1c0),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a43_0xc0330a(0x1bd)],'importable':!![]},'format':{'description':a43_0xc0330a(0x1d7),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a43_0xc0330a(0x1ce)],'importable':!![]},'pageSize':{'description':a43_0xc0330a(0x1cb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a43_0xc0330a(0x1d8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a43_0xc0330a(0x1c3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a43_0xc0330a(0x1d6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a43_0xc0330a(0x1d3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a43_0xc0330a(0x1c8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a43_0xc0330a(0x1d1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a43_0xc0330a(0x1d2)],'importable':!![]},'locale':{'description':a43_0xc0330a(0x1cf),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a43_0xc0330a(0x1c6)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a43_0xc0330a(0x1bf)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x16a50d])=>_0x16a50d[a43_0xc0330a(0x1db)])[a43_0xc0330a(0x1cc)](([_0x381a95])=>_0x381a95));export const CONFIG_ENUM_VALUES=Object[a43_0xc0330a(0x1d4)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a43_0xc0330a(0x1c2)](([,_0x3cd2c9])=>_0x3cd2c9[a43_0xc0330a(0x1c9)])[a43_0xc0330a(0x1cc)](([_0x43caaa,_0x163035])=>[_0x43caaa,[..._0x163035['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a43_0xc0330a(0x1bf)](CONFIG_FIELD_SCHEMAS)[a43_0xc0330a(0x1c2)](([,_0x3eb2f9])=>_0x3eb2f9[a43_0xc0330a(0x1d0)])[a43_0xc0330a(0x1cc)](([_0x298d33])=>_0x298d33);export function getConfigFieldSchema(_0x1d4e30){return CONFIG_FIELD_SCHEMAS[_0x1d4e30];}function a43_0x15a8(_0x40818e,_0x402835){_0x40818e=_0x40818e-0x1bc;const _0x5d609f=a43_0x5d60();let _0x15a87f=_0x5d609f[_0x40818e];return _0x15a87f;}export function getConfigEnumValues(_0x5e92e6){return getConfigFieldSchema(_0x5e92e6)?.['enumValues'];}export function getConfigDefaultValue(_0x5652c7){return getConfigFieldSchema(_0x5652c7)?.['defaultValue'];}export function isTopLevelConfigKey(_0x2005e7){return TOP_LEVEL_CONFIG_KEYS['has'](_0x2005e7);}export function isLegacyCompatConfigKey(_0x6fc264){return getConfigFieldSchema(_0x6fc264)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x52c424){const _0x219e3e=a43_0xc0330a;return[..._0x52c424][_0x219e3e(0x1be)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x48d1c9=a43_0xc0330a;return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+_0x48d1c9(0x1da);}export function buildAppProfileListFields(_0x2c7b5a){return{'env':_0x2c7b5a,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a43_0x37bb4e=a43_0x3bf5;(function(_0x4e0574,_0x5e6517){const _0x46c2e7=a43_0x3bf5,_0x21f5cd=_0x4e0574();while(!![]){try{const _0x2fe752=-parseInt(_0x46c2e7(0xec))/0x1*(parseInt(_0x46c2e7(0xf5))/0x2)+-parseInt(_0x46c2e7(0x103))/0x3+parseInt(_0x46c2e7(0xff))/0x4*(-parseInt(_0x46c2e7(0xf2))/0x5)+-parseInt(_0x46c2e7(0xfe))/0x6*(-parseInt(_0x46c2e7(0xfc))/0x7)+-parseInt(_0x46c2e7(0x100))/0x8*(parseInt(_0x46c2e7(0xe7))/0x9)+parseInt(_0x46c2e7(0xf0))/0xa+parseInt(_0x46c2e7(0xee))/0xb;if(_0x2fe752===_0x5e6517)break;else _0x21f5cd['push'](_0x21f5cd['shift']());}catch(_0x22c9ef){_0x21f5cd['push'](_0x21f5cd['shift']());}}}(a43_0x1d59,0xadda4));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':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a43_0x37bb4e(0xef)],'importable':!![]},'format':{'description':a43_0x37bb4e(0xe8),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a43_0x37bb4e(0xf4)],'importable':!![]},'pageSize':{'description':a43_0x37bb4e(0xea),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a43_0x37bb4e(0xfd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a43_0x37bb4e(0xeb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a43_0x37bb4e(0xed),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a43_0x37bb4e(0xf3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a43_0x37bb4e(0xf1),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a43_0x37bb4e(0xf8)],'importable':!![]},'locale':{'description':a43_0x37bb4e(0xf6),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a43_0x37bb4e(0xfb)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x51d2e6])=>_0x51d2e6[a43_0x37bb4e(0x102)])[a43_0x37bb4e(0x101)](([_0x2a2e56])=>_0x2a2e56));function a43_0x3bf5(_0x4393f4,_0x4546a5){_0x4393f4=_0x4393f4-0xe5;const _0x1d59c2=a43_0x1d59();let _0x3bf58b=_0x1d59c2[_0x4393f4];return _0x3bf58b;}export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)[a43_0x37bb4e(0xfa)](([,_0x4d0e9a])=>_0x4d0e9a['enumValues'])[a43_0x37bb4e(0x101)](([_0x943adc,_0x430940])=>[_0x943adc,[..._0x430940[a43_0x37bb4e(0xe6)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a43_0x37bb4e(0xe9)](CONFIG_FIELD_SCHEMAS)[a43_0x37bb4e(0xfa)](([,_0x456c52])=>_0x456c52[a43_0x37bb4e(0xf9)])[a43_0x37bb4e(0x101)](([_0xad9d9d])=>_0xad9d9d);export function getConfigFieldSchema(_0x53dcb6){return CONFIG_FIELD_SCHEMAS[_0x53dcb6];}export function getConfigEnumValues(_0x2e6994){const _0x1aa1c8=a43_0x37bb4e;return getConfigFieldSchema(_0x2e6994)?.[_0x1aa1c8(0xe6)];}export function getConfigDefaultValue(_0x3b1d14){return getConfigFieldSchema(_0x3b1d14)?.['defaultValue'];}export function isTopLevelConfigKey(_0x541e42){return TOP_LEVEL_CONFIG_KEYS['has'](_0x541e42);}export function isLegacyCompatConfigKey(_0x1ac9cb){const _0x411085=a43_0x37bb4e;return getConfigFieldSchema(_0x1ac9cb)?.[_0x411085(0xf7)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a43_0x1d59(){const _0x11a0c2=['filter','locale','21ncToeC','Override\x20API\x20domain','2086446tCuLsf','4699820EVAfqv','343192ILYjyF','map','cliSettableTopLevel','2407425OYLYej','join','enumValues','153jEjDzf','Default\x20output\x20format','entries','Default\x20page\x20size','Override\x20user\x20domain','58853jFnDsW','Override\x20runtime\x20domain','23311310jGhpjV','env','11391750DNQHJp','Risk\x20level','5hCbqGo','Override\x20SkillHub\x20domain','format','30meeEwj','Locale','legacyCompatOnly','riskLevel','importable'];a43_0x1d59=function(){return _0x11a0c2;};return a43_0x1d59();}export function formatConfigKeyList(_0xdde34f){const _0x5489a8=a43_0x37bb4e;return[..._0xdde34f][_0x5489a8(0xe5)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key.\x20Top-level:\x20'+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x475305){return{'env':_0x475305,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- const a44_0x2a2dfc=a44_0x3691;(function(_0xe121ac,_0x23941a){const _0x5e6d67=a44_0x3691,_0x4443c0=_0xe121ac();while(!![]){try{const _0x115360=-parseInt(_0x5e6d67(0x14b))/0x1*(-parseInt(_0x5e6d67(0x14e))/0x2)+parseInt(_0x5e6d67(0x147))/0x3*(-parseInt(_0x5e6d67(0x14d))/0x4)+parseInt(_0x5e6d67(0x146))/0x5+-parseInt(_0x5e6d67(0x148))/0x6*(-parseInt(_0x5e6d67(0x149))/0x7)+parseInt(_0x5e6d67(0x150))/0x8+-parseInt(_0x5e6d67(0x14c))/0x9+parseInt(_0x5e6d67(0x145))/0xa*(-parseInt(_0x5e6d67(0x144))/0xb);if(_0x115360===_0x23941a)break;else _0x4443c0['push'](_0x4443c0['shift']());}catch(_0xeba7b1){_0x4443c0['push'](_0x4443c0['shift']());}}}(a44_0x3e0f,0x563b0));export const APP_PUBLISH_STATUS={'Published':a44_0x2a2dfc(0x151),'Unpublished':a44_0x2a2dfc(0x14f)};function a44_0x3e0f(){const _0x28c56f=['39732jEbZgf','2270zlxgrN','2001380GnJLfs','16062svayrH','498VBuKzP','8953Mpcrqq','Published','23cLvfOZ','2180052cixiSR','4LQHeRm','40666qCJsEc','UNPUBLISH','3572912zKoDOZ','PUBLISHED'];a44_0x3e0f=function(){return _0x28c56f;};return a44_0x3e0f();}function a44_0x3691(_0x2d61ad,_0x24af86){_0x2d61ad=_0x2d61ad-0x144;const _0x3e0fe7=a44_0x3e0f();let _0x3691da=_0x3e0fe7[_0x2d61ad];return _0x3691da;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a44_0x2a2dfc(0x14a)];
1
+ function a44_0x2307(_0x585168,_0x568878){_0x585168=_0x585168-0x166;const _0xa0f7fc=a44_0xa0f7();let _0x2307e4=_0xa0f7fc[_0x585168];return _0x2307e4;}(function(_0x19d4bf,_0x160a5e){const _0x5528f9=a44_0x2307,_0x32967a=_0x19d4bf();while(!![]){try{const _0x11e961=parseInt(_0x5528f9(0x16e))/0x1+parseInt(_0x5528f9(0x166))/0x2*(-parseInt(_0x5528f9(0x16d))/0x3)+-parseInt(_0x5528f9(0x168))/0x4*(-parseInt(_0x5528f9(0x167))/0x5)+-parseInt(_0x5528f9(0x16a))/0x6+parseInt(_0x5528f9(0x16f))/0x7*(parseInt(_0x5528f9(0x16b))/0x8)+parseInt(_0x5528f9(0x16c))/0x9+-parseInt(_0x5528f9(0x169))/0xa*(parseInt(_0x5528f9(0x170))/0xb);if(_0x11e961===_0x160a5e)break;else _0x32967a['push'](_0x32967a['shift']());}catch(_0x42fe30){_0x32967a['push'](_0x32967a['shift']());}}}(a44_0xa0f7,0xa1e53));export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':'UNPUBLISH'};function a44_0xa0f7(){const _0x36cca3=['1948518RNyJtZ','24nddvES','6180471rqNjJr','906WTXNaf','749570uMJhQv','1384649PNekhI','10967FIEQvj','4262FBVJyE','4895RWSqWd','1212FDDGeq','6970vzzrey'];a44_0xa0f7=function(){return _0x36cca3;};return a44_0xa0f7();}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
@@ -1 +1 @@
1
- function a45_0x28c3(_0x157b43,_0x502a01){_0x157b43=_0x157b43-0x85;const _0x428f32=a45_0x428f();let _0x28c3e7=_0x428f32[_0x157b43];return _0x28c3e7;}const a45_0xb5f9dd=a45_0x28c3;(function(_0x1adef3,_0x4d88c4){const _0x4b5ce1=a45_0x28c3,_0x37f21f=_0x1adef3();while(!![]){try{const _0x591937=-parseInt(_0x4b5ce1(0x85))/0x1+-parseInt(_0x4b5ce1(0x8d))/0x2+parseInt(_0x4b5ce1(0x8c))/0x3+-parseInt(_0x4b5ce1(0x89))/0x4+parseInt(_0x4b5ce1(0x88))/0x5+-parseInt(_0x4b5ce1(0x8a))/0x6+parseInt(_0x4b5ce1(0x86))/0x7*(parseInt(_0x4b5ce1(0x87))/0x8);if(_0x591937===_0x4d88c4)break;else _0x37f21f['push'](_0x37f21f['shift']());}catch(_0x3f910c){_0x37f21f['push'](_0x37f21f['shift']());}}}(a45_0x428f,0xa0ffb));function a45_0x428f(){const _0x39af98=['293730rETAwb','1125644zRcZBM','7kevqpx','21219752kOIeeV','3354910BoTvaP','4281880dSSdcP','3140178brRZjJ','client-ak','607026ilyFfp'];a45_0x428f=function(){return _0x39af98;};return a45_0x428f();}export const AUTH_MODE={'ClientAk':a45_0xb5f9dd(0x8b)};export function isAuthMode(_0x41b65e){return _0x41b65e===AUTH_MODE['ClientAk'];}
1
+ const a45_0x58c8b9=a45_0x5e0d;function a45_0xf1b9(){const _0x24f37b=['54qruPiA','ClientAk','660084wGpXPO','6138783OMvMZM','4333455jOKeLI','958655QZTUGS','2gSJoJB','client-ak','1003235JrmiSV','795640TiXAQj','24YAtkMU','6xHoYcv','22100UkLZLL','66urvuQZ','8124cvIfKr'];a45_0xf1b9=function(){return _0x24f37b;};return a45_0xf1b9();}function a45_0x5e0d(_0x773389,_0x52c535){_0x773389=_0x773389-0x1cd;const _0xf1b9b=a45_0xf1b9();let _0x5e0d90=_0xf1b9b[_0x773389];return _0x5e0d90;}(function(_0x49b325,_0x15f36e){const _0x29a5da=a45_0x5e0d,_0x4864e6=_0x49b325();while(!![]){try{const _0x33c5d9=parseInt(_0x29a5da(0x1da))/0x1*(parseInt(_0x29a5da(0x1d8))/0x2)+parseInt(_0x29a5da(0x1ce))/0x3*(parseInt(_0x29a5da(0x1d4))/0x4)+-parseInt(_0x29a5da(0x1d7))/0x5*(-parseInt(_0x29a5da(0x1d2))/0x6)+parseInt(_0x29a5da(0x1d5))/0x7+parseInt(_0x29a5da(0x1cd))/0x8*(-parseInt(_0x29a5da(0x1d6))/0x9)+-parseInt(_0x29a5da(0x1db))/0xa*(parseInt(_0x29a5da(0x1d0))/0xb)+-parseInt(_0x29a5da(0x1d1))/0xc*(parseInt(_0x29a5da(0x1cf))/0xd);if(_0x33c5d9===_0x15f36e)break;else _0x4864e6['push'](_0x4864e6['shift']());}catch(_0x417fde){_0x4864e6['push'](_0x4864e6['shift']());}}}(a45_0xf1b9,0xd2b50));export const AUTH_MODE={'ClientAk':a45_0x58c8b9(0x1d9)};export function isAuthMode(_0x2101a7){const _0x42058c=a45_0x58c8b9;return _0x2101a7===AUTH_MODE[_0x42058c(0x1d3)];}
@@ -1 +1 @@
1
- const a46_0x2ef314=a46_0x26c4;(function(_0x16188f,_0x1c2842){const _0x2eb481=a46_0x26c4,_0x243fba=_0x16188f();while(!![]){try{const _0x250336=-parseInt(_0x2eb481(0x14d))/0x1+parseInt(_0x2eb481(0x136))/0x2*(parseInt(_0x2eb481(0x138))/0x3)+parseInt(_0x2eb481(0x13d))/0x4*(-parseInt(_0x2eb481(0x129))/0x5)+-parseInt(_0x2eb481(0x148))/0x6*(parseInt(_0x2eb481(0x147))/0x7)+-parseInt(_0x2eb481(0x132))/0x8+-parseInt(_0x2eb481(0x12a))/0x9+parseInt(_0x2eb481(0x14e))/0xa;if(_0x250336===_0x1c2842)break;else _0x243fba['push'](_0x243fba['shift']());}catch(_0xd6cb23){_0x243fba['push'](_0x243fba['shift']());}}}(a46_0x1707,0xe53de));function a46_0x26c4(_0x31df2b,_0x36df3d){_0x31df2b=_0x31df2b-0x126;const _0x1707c5=a46_0x1707();let _0x26c43a=_0x1707c5[_0x31df2b];return _0x26c43a;}import{PRODUCT_CONFIG}from'../constant/product.js';function a46_0x1707(){const _0x4f4c49=['app','Name\x20filter','693298GyTAMd','fromEntries','6jaYJdE','help','<name>','dryRun','dry-run','1874912WClLZY','global','Environment','string','params','cliDisplayName','Verbose\x20output','verbose','boolean','Force\x20non-interactive\x20mode\x20(CI)','7SDlWQs','5762982ZGUDUd','yes','env','appcode','Output\x20format','628185mnruMw','53198800fLiHkx','map','json\x20|\x20pretty\x20|\x20compress','cliBinName','<expr>','name','Use\x20global\x20config\x20scope','nonInteractive','format','20pCupQp','2877435EuVbSB','meowKey','sqlcode','SQL\x20query\x20code','non-interactive','<code>','clear','Clear\x20output','10327160yyGQtj','Override\x20appcode'];a46_0x1707=function(){return _0x4f4c49;};return a46_0x1707();}import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a46_0x2ef314(0x151)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a46_0x2ef314(0x142)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a46_0x2ef314(0x14b),'meowKey':a46_0x2ef314(0x14b),'type':'string','description':a46_0x2ef314(0x133),'hint':a46_0x2ef314(0x12f)},{'name':a46_0x2ef314(0x134),'meowKey':a46_0x2ef314(0x134),'type':a46_0x2ef314(0x140),'description':'Select\x20app\x20profile\x20by\x20name','hint':a46_0x2ef314(0x13a)},{'name':a46_0x2ef314(0x14a),'meowKey':a46_0x2ef314(0x14a),'type':'string','description':a46_0x2ef314(0x13f),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':'format','meowKey':a46_0x2ef314(0x128),'type':a46_0x2ef314(0x140),'description':a46_0x2ef314(0x14c),'hint':a46_0x2ef314(0x150)},{'name':'jq','meowKey':'jq','type':a46_0x2ef314(0x140),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':a46_0x2ef314(0x152)},{'name':a46_0x2ef314(0x13c),'meowKey':a46_0x2ef314(0x13b),'type':a46_0x2ef314(0x145),'description':'Preview\x20operation\x20without\x20executing'},{'name':a46_0x2ef314(0x149),'meowKey':'yes','type':a46_0x2ef314(0x145),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a46_0x2ef314(0x12e),'meowKey':a46_0x2ef314(0x127),'type':a46_0x2ef314(0x145),'description':a46_0x2ef314(0x146)},{'name':a46_0x2ef314(0x13e),'meowKey':a46_0x2ef314(0x13e),'type':'boolean','description':a46_0x2ef314(0x126)},{'name':'ci','meowKey':'ci','type':a46_0x2ef314(0x145),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a46_0x2ef314(0x139),'meowKey':'help','type':a46_0x2ef314(0x145),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a46_0x2ef314(0x153),'meowKey':a46_0x2ef314(0x153),'type':a46_0x2ef314(0x140),'description':a46_0x2ef314(0x135),'hidden':!![]},{'name':a46_0x2ef314(0x12c),'meowKey':a46_0x2ef314(0x12c),'type':a46_0x2ef314(0x140),'description':a46_0x2ef314(0x12d),'hidden':!![]},{'name':a46_0x2ef314(0x141),'meowKey':a46_0x2ef314(0x141),'type':a46_0x2ef314(0x140),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a46_0x2ef314(0x144),'meowKey':a46_0x2ef314(0x144),'type':'boolean','description':a46_0x2ef314(0x143),'hidden':!![]},{'name':a46_0x2ef314(0x130),'meowKey':'clear','type':'boolean','description':a46_0x2ef314(0x131),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a46_0x2ef314(0x14b),'app','env',a46_0x2ef314(0x128),'jq',a46_0x2ef314(0x13c),a46_0x2ef314(0x149),a46_0x2ef314(0x12e),'ci']);export function buildMeowFlags(){const _0x118f13=a46_0x2ef314;return Object[_0x118f13(0x137)](GLOBAL_FLAGS[_0x118f13(0x14f)](_0x56ee08=>[_0x56ee08[_0x118f13(0x12b)],{'type':_0x56ee08['type']}]));}
1
+ const a46_0x263aa7=a46_0x1296;(function(_0x464616,_0x47ee3e){const _0x5a8f91=a46_0x1296,_0x16f7c3=_0x464616();while(!![]){try{const _0x12c184=parseInt(_0x5a8f91(0x19e))/0x1*(parseInt(_0x5a8f91(0x1a3))/0x2)+parseInt(_0x5a8f91(0x1ba))/0x3+parseInt(_0x5a8f91(0x18f))/0x4*(-parseInt(_0x5a8f91(0x199))/0x5)+parseInt(_0x5a8f91(0x194))/0x6*(parseInt(_0x5a8f91(0x19f))/0x7)+-parseInt(_0x5a8f91(0x1ac))/0x8+parseInt(_0x5a8f91(0x1a6))/0x9+-parseInt(_0x5a8f91(0x1a5))/0xa*(parseInt(_0x5a8f91(0x196))/0xb);if(_0x12c184===_0x47ee3e)break;else _0x16f7c3['push'](_0x16f7c3['shift']());}catch(_0x128b4e){_0x16f7c3['push'](_0x16f7c3['shift']());}}}(a46_0x4e2d,0xe6bcd));function a46_0x4e2d(){const _0x2fc69d=['1928406rpOpuk','name','Environment','dry-run','Select\x20app\x20profile\x20by\x20name','556HXBmnR','global','type','Verbose\x20output','sqlcode','2424996EpNwNd','dryRun','44649OEGutd','map','Override\x20appcode','18325blApdd','Skip\x20confirmation\x20for\x20high-risk\x20writes','Name\x20filter','Show\x20help','Record\x20ID','13847sDSeNt','14uzIcmS','env','string','nonInteractive','226PfdijF','cliDisplayName','1970sUfEpL','9619578ztcWLM','json\x20|\x20pretty\x20|\x20compress','params','appcode','Preview\x20operation\x20without\x20executing','help','14644224UgWkxB','clear','verbose','yes','<code>','app','fromEntries','format','Use\x20global\x20config\x20scope','non-interactive','boolean','cliBinName','production\x20|\x20development\x20|\x20daily','<name>'];a46_0x4e2d=function(){return _0x2fc69d;};return a46_0x4e2d();}import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a46_0x263aa7(0x1b7)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a46_0x263aa7(0x1a4)];function a46_0x1296(_0x342766,_0x370e01){_0x342766=_0x342766-0x18e;const _0x4e2d37=a46_0x4e2d();let _0x1296bf=_0x4e2d37[_0x342766];return _0x1296bf;}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':a46_0x263aa7(0x1a9),'meowKey':a46_0x263aa7(0x1a9),'type':'string','description':a46_0x263aa7(0x198),'hint':a46_0x263aa7(0x1b0)},{'name':'app','meowKey':a46_0x263aa7(0x1b1),'type':a46_0x263aa7(0x1a1),'description':a46_0x263aa7(0x18e),'hint':a46_0x263aa7(0x1b9)},{'name':a46_0x263aa7(0x1a0),'meowKey':a46_0x263aa7(0x1a0),'type':a46_0x263aa7(0x1a1),'description':a46_0x263aa7(0x1bc),'hint':a46_0x263aa7(0x1b8)},{'name':'format','meowKey':a46_0x263aa7(0x1b3),'type':a46_0x263aa7(0x1a1),'description':'Output\x20format','hint':a46_0x263aa7(0x1a7)},{'name':'jq','meowKey':'jq','type':a46_0x263aa7(0x1a1),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','hint':'<expr>'},{'name':a46_0x263aa7(0x1bd),'meowKey':a46_0x263aa7(0x195),'type':'boolean','description':a46_0x263aa7(0x1aa)},{'name':a46_0x263aa7(0x1af),'meowKey':a46_0x263aa7(0x1af),'type':a46_0x263aa7(0x1b6),'description':a46_0x263aa7(0x19a)},{'name':'non-interactive','meowKey':a46_0x263aa7(0x1a2),'type':a46_0x263aa7(0x1b6),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a46_0x263aa7(0x190),'meowKey':'global','type':a46_0x263aa7(0x1b6),'description':a46_0x263aa7(0x1b4)},{'name':'ci','meowKey':'ci','type':a46_0x263aa7(0x1b6),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a46_0x263aa7(0x1ab),'meowKey':a46_0x263aa7(0x1ab),'type':a46_0x263aa7(0x1b6),'description':a46_0x263aa7(0x19c)},{'name':'id','meowKey':'id','type':a46_0x263aa7(0x1a1),'description':a46_0x263aa7(0x19d),'hidden':!![]},{'name':a46_0x263aa7(0x1bb),'meowKey':a46_0x263aa7(0x1bb),'type':a46_0x263aa7(0x1a1),'description':a46_0x263aa7(0x19b),'hidden':!![]},{'name':a46_0x263aa7(0x193),'meowKey':a46_0x263aa7(0x193),'type':a46_0x263aa7(0x1a1),'description':'SQL\x20query\x20code','hidden':!![]},{'name':a46_0x263aa7(0x1a8),'meowKey':a46_0x263aa7(0x1a8),'type':a46_0x263aa7(0x1a1),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a46_0x263aa7(0x1ae),'meowKey':a46_0x263aa7(0x1ae),'type':'boolean','description':a46_0x263aa7(0x192),'hidden':!![]},{'name':a46_0x263aa7(0x1ad),'meowKey':'clear','type':a46_0x263aa7(0x1b6),'description':'Clear\x20output','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a46_0x263aa7(0x1a9),a46_0x263aa7(0x1b1),a46_0x263aa7(0x1a0),a46_0x263aa7(0x1b3),'jq','dry-run','yes',a46_0x263aa7(0x1b5),'ci']);export function buildMeowFlags(){const _0x263d00=a46_0x263aa7;return Object[_0x263d00(0x1b2)](GLOBAL_FLAGS[_0x263d00(0x197)](_0x16d198=>[_0x16d198['meowKey'],{'type':_0x16d198[_0x263d00(0x191)]}]));}
@@ -1 +1 @@
1
- const a47_0x155fad=a47_0x559a;function a47_0x3734(){const _0x4a76de=['14012LMIcWg','1833906mavIoi','compress','write','1553885mWVCbU','en-US','1017hCGDAY','9039424fSTqir','7468950vxwfnv','main','1040tVdRWq','5sMNzAy','6139518APkQJf','production','327105KawWQf'];a47_0x3734=function(){return _0x4a76de;};return a47_0x3734();}(function(_0x3e5749,_0x5818b8){const _0x322701=a47_0x559a,_0x430f15=_0x3e5749();while(!![]){try{const _0x1f78bf=-parseInt(_0x322701(0x119))/0x1+-parseInt(_0x322701(0x116))/0x2+-parseInt(_0x322701(0x11b))/0x3*(parseInt(_0x322701(0x115))/0x4)+parseInt(_0x322701(0x111))/0x5*(-parseInt(_0x322701(0x11d))/0x6)+parseInt(_0x322701(0x112))/0x7+parseInt(_0x322701(0x11c))/0x8+parseInt(_0x322701(0x114))/0x9*(parseInt(_0x322701(0x110))/0xa);if(_0x1f78bf===_0x5818b8)break;else _0x430f15['push'](_0x430f15['shift']());}catch(_0x342eb8){_0x430f15['push'](_0x430f15['shift']());}}}(a47_0x3734,0xd7bf6));function a47_0x559a(_0x765161,_0x22a1c6){_0x765161=_0x765161-0x10f;const _0x373494=a47_0x3734();let _0x559ad2=_0x373494[_0x765161];return _0x559ad2;}export const DEFAULT_APP_PROFILE_NAME=a47_0x155fad(0x10f);export const DEFAULT_CONFIG_VALUES={'env':a47_0x155fad(0x113),'format':a47_0x155fad(0x117),'locale':a47_0x155fad(0x11a),'riskLevel':a47_0x155fad(0x118)};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a47_0x4839e1=a47_0x2f82;(function(_0x38566d,_0x11e173){const _0x5a3c7c=a47_0x2f82,_0x29e8c6=_0x38566d();while(!![]){try{const _0x1872f3=-parseInt(_0x5a3c7c(0x124))/0x1*(-parseInt(_0x5a3c7c(0x122))/0x2)+parseInt(_0x5a3c7c(0x12b))/0x3+parseInt(_0x5a3c7c(0x127))/0x4+parseInt(_0x5a3c7c(0x121))/0x5+-parseInt(_0x5a3c7c(0x120))/0x6+-parseInt(_0x5a3c7c(0x12c))/0x7+-parseInt(_0x5a3c7c(0x128))/0x8*(-parseInt(_0x5a3c7c(0x126))/0x9);if(_0x1872f3===_0x11e173)break;else _0x29e8c6['push'](_0x29e8c6['shift']());}catch(_0x4fab00){_0x29e8c6['push'](_0x29e8c6['shift']());}}}(a47_0x316d,0xa2001));function a47_0x2f82(_0x4508f1,_0x1a8435){_0x4508f1=_0x4508f1-0x11f;const _0x316dfe=a47_0x316d();let _0x2f823a=_0x316dfe[_0x4508f1];return _0x2f823a;}export const DEFAULT_APP_PROFILE_NAME=a47_0x4839e1(0x123);function a47_0x316d(){const _0x22ad97=['5318369SSodYr','en-US','7346346wEVmHS','919170LzRbII','356210LUaHEI','main','5oZLVNO','write','27gccBLa','5002524axslkU','512952gpDNdE','compress','production','391092Wdgrev'];a47_0x316d=function(){return _0x22ad97;};return a47_0x316d();}export const DEFAULT_CONFIG_VALUES={'env':a47_0x4839e1(0x12a),'format':a47_0x4839e1(0x129),'locale':a47_0x4839e1(0x11f),'riskLevel':a47_0x4839e1(0x125)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a47_0x4839e1(0x129);
@@ -1 +1 @@
1
- const a48_0x512850=a48_0x3ce2;(function(_0x2dd22b,_0x57c33b){const _0x3d0c02=a48_0x3ce2,_0x3a46e7=_0x2dd22b();while(!![]){try{const _0x5ad6bd=-parseInt(_0x3d0c02(0x84))/0x1+-parseInt(_0x3d0c02(0x7c))/0x2+-parseInt(_0x3d0c02(0x80))/0x3*(parseInt(_0x3d0c02(0x7b))/0x4)+parseInt(_0x3d0c02(0x7e))/0x5+-parseInt(_0x3d0c02(0x7d))/0x6+-parseInt(_0x3d0c02(0x7a))/0x7+parseInt(_0x3d0c02(0x7f))/0x8;if(_0x5ad6bd===_0x57c33b)break;else _0x3a46e7['push'](_0x3a46e7['shift']());}catch(_0x3b1d5b){_0x3a46e7['push'](_0x3a46e7['shift']());}}}(a48_0x437e,0xec694));import{PRODUCT_CONFIG}from'../constant/product.js';function a48_0x437e(){const _0xa0d3bf=['6595025ASVWiV','55714056xUcHlV','2709WMzAop','npmRegistryBaseUrl','npmPackageName','skillSource','1545823txAdmg','11393081SeiuUo','2324WenLUF','3828118rxmbaY','10216884akrWMM'];a48_0x437e=function(){return _0xa0d3bf;};return a48_0x437e();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a48_0x512850(0x82)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a48_0x512850(0x83)];function a48_0x3ce2(_0x2099b9,_0x164bf1){_0x2099b9=_0x2099b9-0x7a;const _0x437e1c=a48_0x437e();let _0x3ce2df=_0x437e1c[_0x2099b9];return _0x3ce2df;}export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a48_0x512850(0x81)];
1
+ const a48_0x596aa1=a48_0x53bc;(function(_0xb7d1d2,_0x3007de){const _0x214ee7=a48_0x53bc,_0x3081db=_0xb7d1d2();while(!![]){try{const _0x459fde=parseInt(_0x214ee7(0xe4))/0x1*(-parseInt(_0x214ee7(0xe5))/0x2)+parseInt(_0x214ee7(0xe6))/0x3*(parseInt(_0x214ee7(0xdd))/0x4)+-parseInt(_0x214ee7(0xe1))/0x5*(parseInt(_0x214ee7(0xda))/0x6)+-parseInt(_0x214ee7(0xe3))/0x7+parseInt(_0x214ee7(0xe2))/0x8+-parseInt(_0x214ee7(0xde))/0x9*(parseInt(_0x214ee7(0xe0))/0xa)+parseInt(_0x214ee7(0xdb))/0xb*(parseInt(_0x214ee7(0xdf))/0xc);if(_0x459fde===_0x3007de)break;else _0x3081db['push'](_0x3081db['shift']());}catch(_0x1639aa){_0x3081db['push'](_0x3081db['shift']());}}}(a48_0x450e,0x4ebfd));function a48_0x450e(){const _0x3aebdd=['66940zSuzlG','2866040Xkixlj','1005249dFHQtm','70289pzmrWz','4xGpRUW','315YuMdtd','132JTlxpZ','858MAhXeM','npmPackageName','19828pHTWnk','18NTpNfw','15468YNbLpO','390020dMOPWO'];a48_0x450e=function(){return _0x3aebdd;};return a48_0x450e();}import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a48_0x596aa1(0xdc)];function a48_0x53bc(_0x29bc55,_0x5881f5){_0x29bc55=_0x29bc55-0xda;const _0x450ecd=a48_0x450e();let _0x53bceb=_0x450ecd[_0x29bc55];return _0x53bceb;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG['skillSource'];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];