@lovrabet/lovrabet-cli 2.1.6-beta.3 → 2.1.6-beta.5

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 (107) 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/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- const a37_0x2168c2=a37_0x1ece;function a37_0x1ece(_0xbd7dad,_0x3e6be3){_0xbd7dad=_0xbd7dad-0x12e;const _0x4772aa=a37_0x4772();let _0x1ece2f=_0x4772aa[_0xbd7dad];return _0x1ece2f;}(function(_0x3b82d5,_0x12f9f8){const _0xf8b00d=a37_0x1ece,_0x407a60=_0x3b82d5();while(!![]){try{const _0xdb2c69=parseInt(_0xf8b00d(0x150))/0x1*(parseInt(_0xf8b00d(0x151))/0x2)+-parseInt(_0xf8b00d(0x148))/0x3*(parseInt(_0xf8b00d(0x14d))/0x4)+parseInt(_0xf8b00d(0x139))/0x5*(-parseInt(_0xf8b00d(0x13b))/0x6)+-parseInt(_0xf8b00d(0x133))/0x7*(parseInt(_0xf8b00d(0x140))/0x8)+-parseInt(_0xf8b00d(0x14a))/0x9*(-parseInt(_0xf8b00d(0x13a))/0xa)+-parseInt(_0xf8b00d(0x144))/0xb*(-parseInt(_0xf8b00d(0x152))/0xc)+parseInt(_0xf8b00d(0x145))/0xd*(parseInt(_0xf8b00d(0x132))/0xe);if(_0xdb2c69===_0x12f9f8)break;else _0x407a60['push'](_0x407a60['shift']());}catch(_0x29003c){_0x407a60['push'](_0x407a60['shift']());}}}(a37_0x4772,0x3b1a1));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a37_0x2168c2(0x134),'command':a37_0x2168c2(0x147),'description':a37_0x2168c2(0x13e),'risk':'read','flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x1be93a){const _0x1e2789=a37_0x2168c2,_0x1ddfd0=_0x1be93a[_0x1e2789(0x13d)](_0x1e2789(0x135)),_0x45f51c=normalizeListScope(_0x1be93a[_0x1e2789(0x13d)](_0x1e2789(0x149)));if(_0x1be93a[_0x1e2789(0x141)](_0x1e2789(0x12e))){const _0x6cf346=_0x1be93a[_0x1e2789(0x12f)];if(!_0x6cf346)throw CliErrors[_0x1e2789(0x14c)]();const {listLocalRuntimeSkills:_0x4a7a7e}=await import(_0x1e2789(0x138)),_0x111bc0=_0x4a7a7e({'env':_0x1be93a['envName']??_0x1e2789(0x13f),'accessKey':_0x6cf346,'appCode':_0x1be93a[_0x1e2789(0x14b)],'scopes':listScopeToRuntimeScopes(_0x45f51c),'code':_0x1ddfd0[_0x1e2789(0x153)]()||undefined}),_0x829863=groupLocalRuntimeSkills(_0x111bc0);return{'ok':!![],'data':{'appCode':_0x1be93a['appCode'],'source':_0x1e2789(0x12e),'scope':_0x45f51c,'total':_0x111bc0[_0x1e2789(0x14f)],'personal':_0x829863[_0x1e2789(0x142)][_0x1e2789(0x14f)],'company':_0x829863['company'][_0x1e2789(0x14f)],'items':_0x111bc0[_0x1e2789(0x136)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x829863[_0x1e2789(0x142)]['map'](summarizeLocalRuntimeSkill),'company':_0x829863[_0x1e2789(0x146)]['map'](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x111bc0[_0x1e2789(0x14f)]+_0x1e2789(0x131)};}const {listRuntimeSkills:_0x462041}=await import(_0x1e2789(0x154)),_0xbd5d23=await _0x462041({'appCode':_0x1be93a[_0x1e2789(0x14b)],'scope':listScopeToRemoteScope(_0x45f51c),'code':_0x1ddfd0[_0x1e2789(0x153)]()||undefined}),_0x3f2b68=shouldListScope(_0x45f51c,'personal')?_0xbd5d23['personal']??[]:[],_0x5b96f3=shouldListScope(_0x45f51c,_0x1e2789(0x146))?_0xbd5d23['company']??[]:[],_0x47ab8b=[..._0x3f2b68,..._0x5b96f3];return{'ok':!![],'data':{'appCode':_0x1be93a['appCode'],'source':_0x1e2789(0x137),'scope':_0x45f51c,'total':_0x47ab8b[_0x1e2789(0x14f)],'personal':_0x3f2b68[_0x1e2789(0x14f)],'company':_0x5b96f3[_0x1e2789(0x14f)],'items':_0x47ab8b[_0x1e2789(0x136)](summarizeRuntimeSkill),'skills':{'personal':_0x3f2b68[_0x1e2789(0x136)](summarizeRuntimeSkill),'company':_0x5b96f3[_0x1e2789(0x136)](summarizeRuntimeSkill)}},'message':_0x1e2789(0x130)+_0x47ab8b[_0x1e2789(0x14f)]+_0x1e2789(0x13c)};}};function groupLocalRuntimeSkills(_0x577e42){const _0x3d1b90=a37_0x2168c2;return{'personal':_0x577e42[_0x3d1b90(0x143)](_0x509b4e=>_0x509b4e[_0x3d1b90(0x149)]===_0x3d1b90(0x142)),'company':_0x577e42[_0x3d1b90(0x143)](_0x1ca6a6=>_0x1ca6a6[_0x3d1b90(0x149)]==='company'),'builtin':_0x577e42[_0x3d1b90(0x143)](_0x400e1e=>_0x400e1e['scope']===_0x3d1b90(0x14e))};}function a37_0x4772(){const _0x7707f3=['10cOmaLQ','12YbGMgX','\x20remote\x20Skill(s).','str','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','production','13744saTnvh','bool','personal','filter','2329217izKVom','3764501zXEyeS','company','list','3wbthMt','scope','1045782wklQOM','appCode','authRequired','1257784fligoX','builtin','length','4871tCxFAa','196QHvODv','12gFTnwq','trim','../../../core/api-client.js','local','accessKey','Listed\x20','\x20local\x20Skill(s).','28RZIbNl','1764mXjxiw','skill','code','map','remote','../../../skills/runtime-skill-sync.js','987485sfiwtV'];a37_0x4772=function(){return _0x7707f3;};return a37_0x4772();}
1
+ const a37_0x2183e2=a37_0x4a5a;function a37_0x4a5a(_0x540e54,_0x4f10d2){_0x540e54=_0x540e54-0x112;const _0x10e4a3=a37_0x10e4();let _0x4a5a6d=_0x10e4a3[_0x540e54];return _0x4a5a6d;}(function(_0x5382eb,_0x59d8c5){const _0x314ba2=a37_0x4a5a,_0x3345dc=_0x5382eb();while(!![]){try{const _0x2ff188=parseInt(_0x314ba2(0x11a))/0x1*(parseInt(_0x314ba2(0x117))/0x2)+-parseInt(_0x314ba2(0x120))/0x3+-parseInt(_0x314ba2(0x113))/0x4*(parseInt(_0x314ba2(0x123))/0x5)+-parseInt(_0x314ba2(0x122))/0x6+parseInt(_0x314ba2(0x128))/0x7+-parseInt(_0x314ba2(0x12f))/0x8+parseInt(_0x314ba2(0x126))/0x9*(parseInt(_0x314ba2(0x12e))/0xa);if(_0x2ff188===_0x59d8c5)break;else _0x3345dc['push'](_0x3345dc['shift']());}catch(_0x2509b6){_0x3345dc['push'](_0x3345dc['shift']());}}}(a37_0x10e4,0x4a1fd));import{CliErrors}from'../../../errors.js';import{CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG}from'../flags.js';function a37_0x10e4(){const _0x401369=['scope','local','filter','list','327916YKkQZM','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','trim','../../../skills/runtime-skill-sync.js','2GsWGyj','company','\x20local\x20Skill(s).','208192VLNzPY','\x20remote\x20Skill(s).','builtin','bool','skill','map','758838XHoRBq','remote','3599304MQUUNe','35DYQpLV','appCode','code','13990518efChfM','Listed\x20','1449392VrGWEB','str','personal','length','accessKey','read','10MsprpD','1915632xPXXay'];a37_0x10e4=function(){return _0x401369;};return a37_0x10e4();}import{listScopeToRemoteScope,listScopeToRuntimeScopes,normalizeListScope,shouldListScope}from'../scopes.js';import{summarizeLocalRuntimeSkill,summarizeRuntimeSkill}from'../summary.js';export const listCommand={'service':a37_0x2183e2(0x11e),'command':a37_0x2183e2(0x112),'description':a37_0x2183e2(0x114),'risk':a37_0x2183e2(0x12d),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x9e7913){const _0x4fc016=a37_0x2183e2,_0x2b2d0e=_0x9e7913[_0x4fc016(0x129)](_0x4fc016(0x125)),_0x555c9c=normalizeListScope(_0x9e7913[_0x4fc016(0x129)](_0x4fc016(0x130)));if(_0x9e7913[_0x4fc016(0x11d)](_0x4fc016(0x131))){const _0x4699a5=_0x9e7913[_0x4fc016(0x12c)];if(!_0x4699a5)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x3149ae}=await import(_0x4fc016(0x116)),_0x1b603b=_0x3149ae({'env':_0x9e7913['envName']??'production','accessKey':_0x4699a5,'appCode':_0x9e7913[_0x4fc016(0x124)],'scopes':listScopeToRuntimeScopes(_0x555c9c),'code':_0x2b2d0e[_0x4fc016(0x115)]()||undefined}),_0x38bd24=groupLocalRuntimeSkills(_0x1b603b);return{'ok':!![],'data':{'appCode':_0x9e7913[_0x4fc016(0x124)],'source':_0x4fc016(0x131),'scope':_0x555c9c,'total':_0x1b603b[_0x4fc016(0x12b)],'personal':_0x38bd24[_0x4fc016(0x12a)][_0x4fc016(0x12b)],'company':_0x38bd24[_0x4fc016(0x118)]['length'],'items':_0x1b603b[_0x4fc016(0x11f)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x38bd24['personal'][_0x4fc016(0x11f)](summarizeLocalRuntimeSkill),'company':_0x38bd24['company']['map'](summarizeLocalRuntimeSkill)}},'message':_0x4fc016(0x127)+_0x1b603b['length']+_0x4fc016(0x119)};}const {listRuntimeSkills:_0x230c61}=await import('../../../core/api-client.js'),_0x23515a=await _0x230c61({'appCode':_0x9e7913[_0x4fc016(0x124)],'scope':listScopeToRemoteScope(_0x555c9c),'code':_0x2b2d0e[_0x4fc016(0x115)]()||undefined}),_0xeb69af=shouldListScope(_0x555c9c,'personal')?_0x23515a[_0x4fc016(0x12a)]??[]:[],_0x480a68=shouldListScope(_0x555c9c,_0x4fc016(0x118))?_0x23515a['company']??[]:[],_0x1795fd=[..._0xeb69af,..._0x480a68];return{'ok':!![],'data':{'appCode':_0x9e7913[_0x4fc016(0x124)],'source':_0x4fc016(0x121),'scope':_0x555c9c,'total':_0x1795fd[_0x4fc016(0x12b)],'personal':_0xeb69af[_0x4fc016(0x12b)],'company':_0x480a68[_0x4fc016(0x12b)],'items':_0x1795fd[_0x4fc016(0x11f)](summarizeRuntimeSkill),'skills':{'personal':_0xeb69af[_0x4fc016(0x11f)](summarizeRuntimeSkill),'company':_0x480a68[_0x4fc016(0x11f)](summarizeRuntimeSkill)}},'message':_0x4fc016(0x127)+_0x1795fd['length']+_0x4fc016(0x11b)};}};function groupLocalRuntimeSkills(_0x5a9566){const _0x14037b=a37_0x2183e2;return{'personal':_0x5a9566[_0x14037b(0x132)](_0x3a4b6c=>_0x3a4b6c['scope']===_0x14037b(0x12a)),'company':_0x5a9566[_0x14037b(0x132)](_0x238b51=>_0x238b51['scope']===_0x14037b(0x118)),'builtin':_0x5a9566[_0x14037b(0x132)](_0x193ad4=>_0x193ad4['scope']===_0x14037b(0x11c))};}
@@ -1 +1 @@
1
- const a38_0x11a0c8=a38_0x1332;function a38_0x5356(){const _0x122c77=['14112576yIVzIQ','../../../skills/runtime-skill-sync.js','push','accessKey','str','appCode','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','dir','find','190lDypzv','../../../core/api-client.js','40blgKsJ','skillCode','personal','authRequired','warnings','2070558JspvlG','2415798EDeyRz','36096ceyYlH','Created\x20personal\x20Skill\x20','skill','4249875kcnTOp','input','26MBJnEA','files','9061116DswVsm','510OjvVvH','101162mksKdb','Updated\x20personal\x20Skill\x20'];a38_0x5356=function(){return _0x122c77;};return a38_0x5356();}(function(_0x50efab,_0x4e10ea){const _0x3f855a=a38_0x1332,_0x5cddc1=_0x50efab();while(!![]){try{const _0x6812a0=-parseInt(_0x3f855a(0xcb))/0x1*(parseInt(_0x3f855a(0xcf))/0x2)+-parseInt(_0x3f855a(0xc9))/0x3+parseInt(_0x3f855a(0xc6))/0x4*(parseInt(_0x3f855a(0xce))/0x5)+parseInt(_0x3f855a(0xcd))/0x6+-parseInt(_0x3f855a(0xc4))/0x7*(parseInt(_0x3f855a(0xbf))/0x8)+-parseInt(_0x3f855a(0xd1))/0x9+parseInt(_0x3f855a(0xbd))/0xa*(parseInt(_0x3f855a(0xc5))/0xb);if(_0x6812a0===_0x4e10ea)break;else _0x5cddc1['push'](_0x5cddc1['shift']());}catch(_0x1b91b){_0x5cddc1['push'](_0x5cddc1['shift']());}}}(a38_0x5356,0xc9523));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';function a38_0x1332(_0x59a683,_0x52b066){_0x59a683=_0x59a683-0xb9;const _0x5356f7=a38_0x5356();let _0x133288=_0x5356f7[_0x59a683];return _0x133288;}export const pushCommand={'service':a38_0x11a0c8(0xc8),'command':a38_0x11a0c8(0xd3),'description':a38_0x11a0c8(0xba),'risk':'write','flags':[DIR_FLAG],async 'execute'(_0x4fdb86){const _0x4cea8a=a38_0x11a0c8,{createPersonalRuntimeSkill:_0x2fd7e6,downloadRuntimeSkillPackage:_0x547b05,listRuntimeSkills:_0x569ddf,updatePersonalRuntimeSkill:_0x5b3b30}=await import(_0x4cea8a(0xbe)),{verifyRuntimeSkillPackage:_0x38d4b2,verifyRuntimeSkillBundle:_0x53ce8e,readPushDirectory:_0x5d777f,recordPushedRuntimeSkill:_0x404043}=await import(_0x4cea8a(0xd2));if(!_0x4fdb86[_0x4cea8a(0xd4)])throw CliErrors[_0x4cea8a(0xc2)]();const _0x127501=_0x4fdb86[_0x4cea8a(0xd5)](_0x4cea8a(0xbb)),_0x5485d5=validateSkillDirectory(_0x127501);throwIfSkillValidationFailed(_0x5485d5);const _0x45345f=_0x5485d5[_0x4cea8a(0xbb)],_0x5d5cfe=_0x5d777f(_0x45345f,_0x4fdb86[_0x4cea8a(0xb9)]),_0x128f63=(await _0x569ddf({'appCode':_0x4fdb86[_0x4cea8a(0xb9)],'scope':_0x4cea8a(0xc1)}))['personal'][_0x4cea8a(0xbc)](_0xb2b41=>_0xb2b41[_0x4cea8a(0xc0)]===_0x5d5cfe['skillCode']),_0x374049=_0x128f63?await _0x5b3b30(_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86['appCode'],_0x5d5cfe[_0x4cea8a(0xca)]):await _0x2fd7e6(_0x4fdb86[_0x4cea8a(0xb9)],_0x5d5cfe[_0x4cea8a(0xca)]);let _0x5dda6d=_0x374049;if(isMultiFileManifest(_0x5d5cfe[_0x4cea8a(0xca)]['files'])){const _0x26a3ee=await _0x547b05('personal',_0x374049[_0x4cea8a(0xc0)]||_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86['appCode']);_0x53ce8e(_0x5d5cfe[_0x4cea8a(0xca)][_0x4cea8a(0xcc)],_0x26a3ee),_0x5dda6d={..._0x374049,'files':_0x5d5cfe[_0x4cea8a(0xca)][_0x4cea8a(0xcc)]};}else{if(isPackageBackedManifest(_0x374049[_0x4cea8a(0xcc)])){const _0x7eb15f=await _0x547b05(_0x4cea8a(0xc1),_0x374049[_0x4cea8a(0xc0)]||_0x5d5cfe[_0x4cea8a(0xc0)],_0x4fdb86[_0x4cea8a(0xb9)]);_0x38d4b2(_0x374049[_0x4cea8a(0xcc)],_0x7eb15f);}}return _0x404043(_0x45345f,_0x5dda6d,_0x4fdb86[_0x4cea8a(0xb9)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x374049),'warnings':_0x5485d5[_0x4cea8a(0xc3)]},'message':_0x128f63?_0x4cea8a(0xd0)+_0x5d5cfe[_0x4cea8a(0xc0)]:_0x4cea8a(0xc7)+_0x5d5cfe['skillCode']};}};
1
+ const a38_0x444862=a38_0x3505;function a38_0xce0f(){const _0x21fa0b=['1196559cwZNkH','1266617mHVPph','push','2076406kNTejP','write','personal','7747424kEgZVH','files','110aMlAOU','77AMivld','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','appCode','479840mlvcTK','skillCode','../../../core/api-client.js','587046dLtqXt','scope','input','skill','Updated\x20personal\x20Skill\x20','accessKey','3MuwWte','warnings','9vpSnGT','../../../skills/runtime-skill-sync.js','dir','4860465BDqeMJ','authRequired'];a38_0xce0f=function(){return _0x21fa0b;};return a38_0xce0f();}(function(_0x592ce9,_0x3db344){const _0x5b87f3=a38_0x3505,_0x2cf207=_0x592ce9();while(!![]){try{const _0x2629d6=parseInt(_0x5b87f3(0x191))/0x1+parseInt(_0x5b87f3(0x194))/0x2*(-parseInt(_0x5b87f3(0x18a))/0x3)+parseInt(_0x5b87f3(0x19d))/0x4+-parseInt(_0x5b87f3(0x18f))/0x5+parseInt(_0x5b87f3(0x184))/0x6*(parseInt(_0x5b87f3(0x19a))/0x7)+parseInt(_0x5b87f3(0x197))/0x8*(-parseInt(_0x5b87f3(0x18c))/0x9)+parseInt(_0x5b87f3(0x199))/0xa*(parseInt(_0x5b87f3(0x192))/0xb);if(_0x2629d6===_0x3db344)break;else _0x2cf207['push'](_0x2cf207['shift']());}catch(_0x4fb770){_0x2cf207['push'](_0x2cf207['shift']());}}}(a38_0xce0f,0xa62d7));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';function a38_0x3505(_0x5655f4,_0x36858a){_0x5655f4=_0x5655f4-0x184;const _0xce0f5a=a38_0xce0f();let _0x3505fb=_0xce0f5a[_0x5655f4];return _0x3505fb;}import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x444862(0x187),'command':a38_0x444862(0x193),'description':a38_0x444862(0x19b),'risk':a38_0x444862(0x195),'flags':[DIR_FLAG],async 'execute'(_0x599e8b){const _0x4e2de1=a38_0x444862,{createPersonalRuntimeSkill:_0x40bbb4,downloadRuntimeSkillPackage:_0x5ceac0,getRuntimeSkillByCode:_0x1b5c78,updatePersonalRuntimeSkill:_0x27c5ba}=await import(_0x4e2de1(0x19f)),{verifyRuntimeSkillPackage:_0x51db46,verifyRuntimeSkillBundle:_0x53ebc4,readPushDirectory:_0x483d1f,refreshPushDirectoryMetadataFromRemote:_0x23fcce,recordPushedRuntimeSkill:_0x4218d2,resolvePushDirectoryIdentity:_0x41a1e4}=await import(_0x4e2de1(0x18d));if(!_0x599e8b[_0x4e2de1(0x189)])throw CliErrors[_0x4e2de1(0x190)]();const _0x298034=_0x599e8b['str'](_0x4e2de1(0x18e)),_0x410a56=validateSkillDirectory(_0x298034);throwIfSkillValidationFailed(_0x410a56);const _0x181119=_0x410a56[_0x4e2de1(0x18e)],_0x4b135a=_0x41a1e4(_0x181119,_0x599e8b[_0x4e2de1(0x19c)]),_0x2cbbdc=await _0x1b5c78(_0x599e8b[_0x4e2de1(0x19c)],_0x4b135a[_0x4e2de1(0x19e)]);_0x2cbbdc&&_0x23fcce(_0x181119,_0x2cbbdc,_0x599e8b[_0x4e2de1(0x19c)]);const _0x5b2645=_0x483d1f(_0x181119,_0x599e8b[_0x4e2de1(0x19c)]),_0x2812e0=_0x2cbbdc?.[_0x4e2de1(0x185)]==='personal'&&_0x2cbbdc['skillCode']===_0x5b2645['skillCode']?_0x2cbbdc:undefined,_0x1df6df=_0x2812e0?await _0x27c5ba(_0x5b2645['skillCode'],_0x599e8b[_0x4e2de1(0x19c)],_0x5b2645['input']):await _0x40bbb4(_0x599e8b[_0x4e2de1(0x19c)],_0x5b2645['input']);let _0x601a6a=_0x1df6df;if(isMultiFileManifest(_0x5b2645[_0x4e2de1(0x186)]['files'])){const _0x27ee44=await _0x5ceac0('personal',_0x1df6df[_0x4e2de1(0x19e)]||_0x5b2645['skillCode'],_0x599e8b[_0x4e2de1(0x19c)]);_0x53ebc4(_0x5b2645['input'][_0x4e2de1(0x198)],_0x27ee44),_0x601a6a={..._0x1df6df,'files':_0x5b2645['input'][_0x4e2de1(0x198)]};}else{if(isPackageBackedManifest(_0x1df6df['files'])){const _0x494d46=await _0x5ceac0(_0x4e2de1(0x196),_0x1df6df['skillCode']||_0x5b2645['skillCode'],_0x599e8b[_0x4e2de1(0x19c)]);_0x51db46(_0x1df6df['files'],_0x494d46);}}return _0x4218d2(_0x181119,_0x601a6a,_0x599e8b['appCode']),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x1df6df),'warnings':_0x410a56[_0x4e2de1(0x18b)]},'message':_0x2812e0?_0x4e2de1(0x188)+_0x5b2645['skillCode']:'Created\x20personal\x20Skill\x20'+_0x5b2645[_0x4e2de1(0x19e)]};}};
@@ -1 +1 @@
1
- const a39_0xb2df9=a39_0x525d;(function(_0x5887d7,_0x42300c){const _0x191ec1=a39_0x525d,_0x1f7273=_0x5887d7();while(!![]){try{const _0x18a72e=parseInt(_0x191ec1(0x105))/0x1*(-parseInt(_0x191ec1(0x109))/0x2)+parseInt(_0x191ec1(0x10b))/0x3+parseInt(_0x191ec1(0x104))/0x4+parseInt(_0x191ec1(0x10f))/0x5*(parseInt(_0x191ec1(0x112))/0x6)+parseInt(_0x191ec1(0x10d))/0x7+-parseInt(_0x191ec1(0x10e))/0x8+-parseInt(_0x191ec1(0x113))/0x9*(-parseInt(_0x191ec1(0x111))/0xa);if(_0x18a72e===_0x42300c)break;else _0x1f7273['push'](_0x1f7273['shift']());}catch(_0x5984ae){_0x1f7273['push'](_0x1f7273['shift']());}}}(a39_0x474a,0x91035));function a39_0x525d(_0x1ebe83,_0x129af4){_0x1ebe83=_0x1ebe83-0x104;const _0x474ab3=a39_0x474a();let _0x525d5f=_0x474ab3[_0x1ebe83];return _0x525d5f;}function a39_0x474a(){const _0x15ab4e=['58tQafaT','skill','1345194fVmrMR','str','3986430UYFbdq','2863320PFpWcq','358255yjJKPF','warnings','127780hJBLPe','6rgpcFp','18uhgBZx','dir','1054344kmctED','14717WBcBoT','type','errors','read'];a39_0x474a=function(){return _0x15ab4e;};return a39_0x474a();}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0xb2df9(0x10a),'command':'validate','description':'Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','risk':a39_0xb2df9(0x108),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x3ac907){const _0x246824=a39_0xb2df9,_0x47bd90=_0x3ac907['bool']('strict'),_0x5e110f=validateSkillDirectory(_0x3ac907[_0x246824(0x10c)]('dir'),{'strict':_0x47bd90});return throwIfSkillValidationFailed(_0x5e110f,_0x47bd90),{'ok':!![],'data':{'dir':_0x5e110f[_0x246824(0x114)],'type':_0x5e110f[_0x246824(0x106)],'errors':_0x5e110f[_0x246824(0x107)],'warnings':_0x5e110f[_0x246824(0x110)]},'message':'Skill\x20validation\x20passed.'};}};
1
+ function a39_0x35ed(){const _0x302054=['skill','4238884qktybj','246kevDyF','4472fYWIRk','dir','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','errors','18234KzOCHR','26471950waDezv','6861645lXjKAy','Skill\x20validation\x20passed.','2469085ybSwfE','12BYWcRl','validate','type','5030OtofXt','warnings','172335nYIhSM','strict','str'];a39_0x35ed=function(){return _0x302054;};return a39_0x35ed();}const a39_0x4a1541=a39_0x25da;function a39_0x25da(_0x51d775,_0x57bb16){_0x51d775=_0x51d775-0xa9;const _0x35ed5c=a39_0x35ed();let _0x25daa6=_0x35ed5c[_0x51d775];return _0x25daa6;}(function(_0x3621a7,_0x128668){const _0x4ee833=a39_0x25da,_0x92623=_0x3621a7();while(!![]){try{const _0x39040f=parseInt(_0x4ee833(0xb4))/0x1+parseInt(_0x4ee833(0xb2))/0x2*(-parseInt(_0x4ee833(0xb9))/0x3)+parseInt(_0x4ee833(0xb8))/0x4+-parseInt(_0x4ee833(0xae))/0x5*(parseInt(_0x4ee833(0xaf))/0x6)+-parseInt(_0x4ee833(0xac))/0x7+-parseInt(_0x4ee833(0xba))/0x8*(parseInt(_0x4ee833(0xaa))/0x9)+parseInt(_0x4ee833(0xab))/0xa;if(_0x39040f===_0x128668)break;else _0x92623['push'](_0x92623['shift']());}catch(_0x3daf70){_0x92623['push'](_0x92623['shift']());}}}(a39_0x35ed,0x8bcca));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0x4a1541(0xb7),'command':a39_0x4a1541(0xb0),'description':a39_0x4a1541(0xbc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x2fee53){const _0x35ee83=a39_0x4a1541,_0x18cf14=_0x2fee53['bool'](_0x35ee83(0xb5)),_0x344f63=validateSkillDirectory(_0x2fee53[_0x35ee83(0xb6)](_0x35ee83(0xbb)),{'strict':_0x18cf14});return throwIfSkillValidationFailed(_0x344f63,_0x18cf14),{'ok':!![],'data':{'dir':_0x344f63['dir'],'type':_0x344f63[_0x35ee83(0xb1)],'errors':_0x344f63[_0x35ee83(0xa9)],'warnings':_0x344f63[_0x35ee83(0xb3)]},'message':_0x35ee83(0xad)};}};
@@ -1 +1 @@
1
- const a40_0x590bb2=a40_0x330c;(function(_0x5d4a0d,_0x3e0260){const _0x496c9f=a40_0x330c,_0x448656=_0x5d4a0d();while(!![]){try{const _0x36bd47=parseInt(_0x496c9f(0x72))/0x1+parseInt(_0x496c9f(0x7f))/0x2*(parseInt(_0x496c9f(0x83))/0x3)+-parseInt(_0x496c9f(0x86))/0x4*(-parseInt(_0x496c9f(0x74))/0x5)+-parseInt(_0x496c9f(0x89))/0x6*(parseInt(_0x496c9f(0x82))/0x7)+parseInt(_0x496c9f(0x7c))/0x8*(-parseInt(_0x496c9f(0x79))/0x9)+parseInt(_0x496c9f(0x7d))/0xa*(parseInt(_0x496c9f(0x8d))/0xb)+-parseInt(_0x496c9f(0x71))/0xc;if(_0x36bd47===_0x3e0260)break;else _0x448656['push'](_0x448656['shift']());}catch(_0x114d2f){_0x448656['push'](_0x448656['shift']());}}}(a40_0x4629,0xe5c7f));function a40_0x330c(_0x5081ea,_0x11119b){_0x5081ea=_0x5081ea-0x71;const _0x46292a=a40_0x4629();let _0x330c4f=_0x46292a[_0x5081ea];return _0x330c4f;}import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x590bb2(0x7b),'type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x75)};export const SCOPE_FLAG={'name':'scope','type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x88),'enum':['all',a40_0x590bb2(0x77),a40_0x590bb2(0x8a)]};export const LIST_SCOPE_FLAG={'name':a40_0x590bb2(0x8e),'type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x7a),'enum':[a40_0x590bb2(0x7e),a40_0x590bb2(0x77),a40_0x590bb2(0x8a)]};export const LOCAL_FLAG={'name':a40_0x590bb2(0x81),'type':a40_0x590bb2(0x84),'description':a40_0x590bb2(0x8b)};export const DIR_FLAG={'name':'dir','type':'string','required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const CREATE_NAME_FLAG={'name':'name','type':'string','required':!![],'description':a40_0x590bb2(0x8c),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x590bb2(0x85)}};function a40_0x4629(){const _0x43595f=['string','local','287xdMJMV','102387anhbVq','boolean','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','6720580ANYAkd','strict','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','127554rBNyRR','company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','43087gQSzXP','scope','18069864jXoXhz','901021ZXfJGU','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','5KQPYrY','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','type','personal','write','45FHwJAQ','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','code','611560YyCqnj','2510XnYqGt','all','8OfVlNM'];a40_0x4629=function(){return _0x43595f;};return a40_0x4629();}export const TYPE_FLAG={'name':a40_0x590bb2(0x76),'type':a40_0x590bb2(0x80),'description':'Skill\x20template\x20type','default':a40_0x590bb2(0x78),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':a40_0x590bb2(0x80),'description':a40_0x590bb2(0x73),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':'boolean','description':'Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists'};export const STRICT_FLAG={'name':a40_0x590bb2(0x87),'type':'boolean','description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ const a40_0x3071c3=a40_0x225f;function a40_0x225f(_0xc33cc4,_0x4219ce){_0xc33cc4=_0xc33cc4-0x1dd;const _0x5a6c5a=a40_0x5a6c();let _0x225fa5=_0x5a6c5a[_0xc33cc4];return _0x225fa5;}function a40_0x5a6c(){const _0x65b271=['60nmlTwV','16iMEgyC','1026JKPVcC','1837269rnbejy','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','11lzSobW','34635ZDzeZs','scope','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','personal','7941320vIlfjq','strict','company','target','all','local','type','918421PNOIjT','dir','4198572vwKMbB','184JMjJNL','Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','321025zNHaiQ','1599nwPVeU','boolean','Local\x20Skill\x20directory\x20containing\x20SKILL.md','Skill\x20template\x20type','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','code','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','write','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','string'];a40_0x5a6c=function(){return _0x65b271;};return a40_0x5a6c();}(function(_0x59d3bb,_0x310eea){const _0x485655=a40_0x225f,_0x466bf4=_0x59d3bb();while(!![]){try{const _0xdac7ed=parseInt(_0x485655(0x1e3))/0x1*(parseInt(_0x485655(0x1f0))/0x2)+parseInt(_0x485655(0x1f4))/0x3*(-parseInt(_0x485655(0x1df))/0x4)+parseInt(_0x485655(0x1e2))/0x5*(parseInt(_0x485655(0x1ee))/0x6)+-parseInt(_0x485655(0x1ff))/0x7*(parseInt(_0x485655(0x1ef))/0x8)+parseInt(_0x485655(0x1f1))/0x9+parseInt(_0x485655(0x1f8))/0xa*(-parseInt(_0x485655(0x1f3))/0xb)+parseInt(_0x485655(0x1de))/0xc;if(_0xdac7ed===_0x310eea)break;else _0x466bf4['push'](_0x466bf4['shift']());}catch(_0x7136d1){_0x466bf4['push'](_0x466bf4['shift']());}}}(a40_0x5a6c,0x68acf));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x3071c3(0x1e8),'type':a40_0x3071c3(0x1ed),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a40_0x3071c3(0x1f5),'type':'string','description':a40_0x3071c3(0x1e1),'enum':[a40_0x3071c3(0x1fc),a40_0x3071c3(0x1f7),'company']};export const LIST_SCOPE_FLAG={'name':'scope','type':'string','description':a40_0x3071c3(0x1e7),'enum':[a40_0x3071c3(0x1fc),a40_0x3071c3(0x1f7),a40_0x3071c3(0x1fa)]};export const LOCAL_FLAG={'name':a40_0x3071c3(0x1fd),'type':'boolean','description':a40_0x3071c3(0x1f2)};export const DIR_FLAG={'name':a40_0x3071c3(0x1dd),'type':a40_0x3071c3(0x1ed),'required':!![],'description':a40_0x3071c3(0x1e5)};export const CREATE_NAME_FLAG={'name':'name','type':a40_0x3071c3(0x1ed),'required':!![],'description':a40_0x3071c3(0x1ea),'pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x3071c3(0x1ec)}};export const TYPE_FLAG={'name':a40_0x3071c3(0x1fe),'type':a40_0x3071c3(0x1ed),'description':a40_0x3071c3(0x1e6),'default':a40_0x3071c3(0x1eb),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0x3071c3(0x1fb),'type':a40_0x3071c3(0x1ed),'description':a40_0x3071c3(0x1f6),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a40_0x3071c3(0x1e4),'description':a40_0x3071c3(0x1e9)};export const STRICT_FLAG={'name':a40_0x3071c3(0x1f9),'type':'boolean','description':a40_0x3071c3(0x1e0)};
@@ -1 +1 @@
1
- (function(_0x7ec8ea,_0x3de70b){const _0x5e5d10=a41_0x16cb,_0x10a5ff=_0x7ec8ea();while(!![]){try{const _0x5aa21c=-parseInt(_0x5e5d10(0x1c3))/0x1*(parseInt(_0x5e5d10(0x1bc))/0x2)+-parseInt(_0x5e5d10(0x1ba))/0x3+-parseInt(_0x5e5d10(0x1c0))/0x4+parseInt(_0x5e5d10(0x1c1))/0x5+parseInt(_0x5e5d10(0x1be))/0x6*(-parseInt(_0x5e5d10(0x1c2))/0x7)+-parseInt(_0x5e5d10(0x1c4))/0x8*(parseInt(_0x5e5d10(0x1bd))/0x9)+parseInt(_0x5e5d10(0x1bb))/0xa*(parseInt(_0x5e5d10(0x1bf))/0xb);if(_0x5aa21c===_0x3de70b)break;else _0x10a5ff['push'](_0x10a5ff['shift']());}catch(_0x56ffe0){_0x10a5ff['push'](_0x10a5ff['shift']());}}}(a41_0x1c64,0x9e0c6));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';function a41_0x1c64(){const _0x53cf5f=['1634104zFSBTn','60885zvdTRs','9186TMZawy','33JLiWtS','1817356wDXdjv','920470YHLZOs','5138XLuZjS','1STDAQx','1344rzUMns','3260532DiUXnl','16939270mRqhfs'];a41_0x1c64=function(){return _0x53cf5f;};return a41_0x1c64();}function a41_0x16cb(_0x19e561,_0x317bba){_0x19e561=_0x19e561-0x1ba;const _0x1c6431=a41_0x1c64();let _0x16cbbf=_0x1c6431[_0x19e561];return _0x16cbbf;}import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];
1
+ (function(_0x2595ce,_0x35a358){const _0x313841=a41_0x2d81,_0xa5d184=_0x2595ce();while(!![]){try{const _0x3fa64c=-parseInt(_0x313841(0xd6))/0x1+parseInt(_0x313841(0xd9))/0x2+-parseInt(_0x313841(0xd1))/0x3+-parseInt(_0x313841(0xd5))/0x4+-parseInt(_0x313841(0xd8))/0x5*(parseInt(_0x313841(0xd2))/0x6)+parseInt(_0x313841(0xd3))/0x7+-parseInt(_0x313841(0xd7))/0x8*(-parseInt(_0x313841(0xd4))/0x9);if(_0x3fa64c===_0x35a358)break;else _0xa5d184['push'](_0xa5d184['shift']());}catch(_0x375986){_0xa5d184['push'](_0xa5d184['shift']());}}}(a41_0x5bb1,0xabcc3));import{createCommand}from'./commands/create.js';import{installCommand}from'./commands/install.js';import{listCommand}from'./commands/list.js';import{pushCommand}from'./commands/push.js';import{validateCommand}from'./commands/validate.js';export const skillDefinitions=[installCommand,createCommand,validateCommand,listCommand,pushCommand];function a41_0x2d81(_0x3aa8da,_0x8f99e2){_0x3aa8da=_0x3aa8da-0xd1;const _0x5bb127=a41_0x5bb1();let _0x2d8110=_0x5bb127[_0x3aa8da];return _0x2d8110;}function a41_0x5bb1(){const _0x204d70=['825304vWYvAO','2716902XypbcX','294702XnvXHh','4062548XsIIYX','450mULBXk','182388uIhEIH','268301DBoPxV','172408TDqcXS','15AIKMco'];a41_0x5bb1=function(){return _0x204d70;};return a41_0x5bb1();}
@@ -1 +1 @@
1
- (function(_0xb36d1,_0x4af411){var _0x418d9b=a42_0x2c0b,_0xa357b0=_0xb36d1();while(!![]){try{var _0x585472=parseInt(_0x418d9b(0x1b3))/0x1*(parseInt(_0x418d9b(0x1bc))/0x2)+parseInt(_0x418d9b(0x1b4))/0x3*(-parseInt(_0x418d9b(0x1be))/0x4)+-parseInt(_0x418d9b(0x1b1))/0x5+parseInt(_0x418d9b(0x1b7))/0x6+-parseInt(_0x418d9b(0x1b0))/0x7*(parseInt(_0x418d9b(0x1c0))/0x8)+-parseInt(_0x418d9b(0x1b8))/0x9+parseInt(_0x418d9b(0x1bb))/0xa;if(_0x585472===_0x4af411)break;else _0xa357b0['push'](_0xa357b0['shift']());}catch(_0x414348){_0xa357b0['push'](_0xa357b0['shift']());}}}(a42_0x573c,0x4a7b8));function a42_0x2c0b(_0x4930c6,_0x54a766){_0x4930c6=_0x4930c6-0x1af;var _0x573cf4=a42_0x573c();var _0x2c0b40=_0x573cf4[_0x4930c6];return _0x2c0b40;}export function isPackageBackedManifest(_0x40114b){var _0x13a0e1=a42_0x2c0b;return!!_0x40114b&&typeof _0x40114b===_0x13a0e1(0x1b6)&&!Array['isArray'](_0x40114b)&&typeof _0x40114b[_0x13a0e1(0x1af)]==='string'&&_0x40114b[_0x13a0e1(0x1af)][_0x13a0e1(0x1b9)]>0x0&&Array['isArray'](_0x40114b['files']);}function a42_0x573c(){var _0x1655a0=['SKILL.md','178EuIILR','327000kObHzf','some','object','2374320eQxVVm','2658816Hdssgn','length','files','5183030JSfWde','6602hTDyMb','path','8UbZPKI','isArray','35560oIUzIE','ossPath','889zkNYEh','592910BbiObQ'];a42_0x573c=function(){return _0x1655a0;};return a42_0x573c();}export function isMultiFileManifest(_0x3c145a){var _0x3f60d6=a42_0x2c0b;return!!_0x3c145a&&typeof _0x3c145a===_0x3f60d6(0x1b6)&&!Array[_0x3f60d6(0x1bf)](_0x3c145a)&&Array[_0x3f60d6(0x1bf)](_0x3c145a[_0x3f60d6(0x1ba)])&&_0x3c145a[_0x3f60d6(0x1ba)][_0x3f60d6(0x1b5)](_0x25a7b8=>_0x25a7b8[_0x3f60d6(0x1bd)]!==_0x3f60d6(0x1b2));}
1
+ (function(_0x2f2798,_0xdf198c){var _0x5ef6a1=a42_0x45a0,_0x41767b=_0x2f2798();while(!![]){try{var _0x3ad98f=-parseInt(_0x5ef6a1(0x1e9))/0x1*(parseInt(_0x5ef6a1(0x1e6))/0x2)+-parseInt(_0x5ef6a1(0x1db))/0x3*(-parseInt(_0x5ef6a1(0x1e2))/0x4)+-parseInt(_0x5ef6a1(0x1e0))/0x5*(parseInt(_0x5ef6a1(0x1ea))/0x6)+parseInt(_0x5ef6a1(0x1dc))/0x7+-parseInt(_0x5ef6a1(0x1ec))/0x8+-parseInt(_0x5ef6a1(0x1e4))/0x9*(-parseInt(_0x5ef6a1(0x1e5))/0xa)+-parseInt(_0x5ef6a1(0x1e8))/0xb;if(_0x3ad98f===_0xdf198c)break;else _0x41767b['push'](_0x41767b['shift']());}catch(_0x43c5ef){_0x41767b['push'](_0x41767b['shift']());}}}(a42_0x12e3,0xe3402));export function isPackageBackedManifest(_0x520329){var _0x28bec8=a42_0x45a0;return!!_0x520329&&typeof _0x520329===_0x28bec8(0x1de)&&!Array['isArray'](_0x520329)&&typeof _0x520329[_0x28bec8(0x1dd)]===_0x28bec8(0x1e3)&&_0x520329[_0x28bec8(0x1dd)]['length']>0x0&&Array[_0x28bec8(0x1df)](_0x520329['files']);}function a42_0x12e3(){var _0x1136d7=['4VGOjGl','string','531oVyyQK','44210PUiWmd','131114GTDKbE','path','3013956hareLn','7aUsDxt','2427198ugzibc','some','3155944JyOcFB','SKILL.md','2433087SFMPfX','9736097wARLnu','ossPath','object','isArray','5WzzkiH','files'];a42_0x12e3=function(){return _0x1136d7;};return a42_0x12e3();}function a42_0x45a0(_0x272b2a,_0x5919d9){_0x272b2a=_0x272b2a-0x1da;var _0x12e38b=a42_0x12e3();var _0x45a078=_0x12e38b[_0x272b2a];return _0x45a078;}export function isMultiFileManifest(_0x41928b){var _0x4ced83=a42_0x45a0;return!!_0x41928b&&typeof _0x41928b==='object'&&!Array[_0x4ced83(0x1df)](_0x41928b)&&Array[_0x4ced83(0x1df)](_0x41928b[_0x4ced83(0x1e1)])&&_0x41928b[_0x4ced83(0x1e1)][_0x4ced83(0x1eb)](_0x6631ee=>_0x6631ee[_0x4ced83(0x1e7)]!==_0x4ced83(0x1da));}
@@ -1 +1 @@
1
- function a43_0x4e4e(){const _0x1f9259=['788HuTcPQ','3582snROhS','5346675xDchEJ','personal','2134262OsHNhe','validation','413794OgKZuz','trim','Unsupported\x20Skill\x20sync\x20scope:\x20','800274yXJHHG','company','30441350Eevptn','Unsupported\x20Skill\x20list\x20scope:\x20','5560XEmqwp','7pGgcZQ','3558BRWkfS','all'];a43_0x4e4e=function(){return _0x1f9259;};return a43_0x4e4e();}(function(_0x458c95,_0x58657b){const _0x3b8d05=a43_0xf27c,_0x1a1dc9=_0x458c95();while(!![]){try{const _0x4ca0e2=parseInt(_0x3b8d05(0x1c6))/0x1+-parseInt(_0x3b8d05(0x1c4))/0x2+parseInt(_0x3b8d05(0x1cf))/0x3*(-parseInt(_0x3b8d05(0x1d1))/0x4)+-parseInt(_0x3b8d05(0x1c2))/0x5+-parseInt(_0x3b8d05(0x1c9))/0x6*(-parseInt(_0x3b8d05(0x1ce))/0x7)+-parseInt(_0x3b8d05(0x1cd))/0x8*(parseInt(_0x3b8d05(0x1d2))/0x9)+parseInt(_0x3b8d05(0x1cb))/0xa;if(_0x4ca0e2===_0x58657b)break;else _0x1a1dc9['push'](_0x1a1dc9['shift']());}catch(_0x2e890c){_0x1a1dc9['push'](_0x1a1dc9['shift']());}}}(a43_0x4e4e,0xe69ce));function a43_0xf27c(_0x2200c1,_0xb97f84){_0x2200c1=_0x2200c1-0x1c2;const _0x4e4ef6=a43_0x4e4e();let _0xf27c18=_0x4e4ef6[_0x2200c1];return _0xf27c18;}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x1b3bde){const _0x5e169d=a43_0xf27c,_0x467ab0=_0x1b3bde[_0x5e169d(0x1c7)]();if(!_0x467ab0||_0x467ab0==='all')return[_0x5e169d(0x1c3),'company'];if(_0x467ab0===_0x5e169d(0x1c3)||_0x467ab0===_0x5e169d(0x1ca))return[_0x467ab0];throw CliErrors[_0x5e169d(0x1c5)](_0x5e169d(0x1c8)+_0x1b3bde);}export function normalizeListScope(_0x2e3733){const _0x541251=a43_0xf27c,_0x2546d1=_0x2e3733[_0x541251(0x1c7)]();if(!_0x2546d1)return _0x541251(0x1d0);if(_0x2546d1===_0x541251(0x1c3)||_0x2546d1==='company'||_0x2546d1===_0x541251(0x1d0))return _0x2546d1;throw CliErrors[_0x541251(0x1c5)](_0x541251(0x1cc)+_0x2e3733);}export function shouldListScope(_0xd6dff,_0x31cedd){if(_0xd6dff==='all')return!![];return _0xd6dff===_0x31cedd;}export function listScopeToRuntimeScopes(_0x1a99d1){const _0x4c6588=a43_0xf27c;if(_0x1a99d1==='all')return[_0x4c6588(0x1c3),_0x4c6588(0x1ca)];return[_0x1a99d1==='company'?_0x4c6588(0x1ca):_0x1a99d1];}export function listScopeToRemoteScope(_0xa611f3){return _0xa611f3;}
1
+ function a43_0x3500(_0x28c0c0,_0x53dd1e){_0x28c0c0=_0x28c0c0-0x143;const _0x5d725b=a43_0x5d72();let _0x350049=_0x5d725b[_0x28c0c0];return _0x350049;}(function(_0x57486b,_0x187b75){const _0x7388ff=a43_0x3500,_0x2a88af=_0x57486b();while(!![]){try{const _0x4c6f34=parseInt(_0x7388ff(0x14f))/0x1*(-parseInt(_0x7388ff(0x148))/0x2)+parseInt(_0x7388ff(0x14b))/0x3+-parseInt(_0x7388ff(0x14d))/0x4+parseInt(_0x7388ff(0x143))/0x5+parseInt(_0x7388ff(0x14e))/0x6+parseInt(_0x7388ff(0x14c))/0x7+parseInt(_0x7388ff(0x147))/0x8*(parseInt(_0x7388ff(0x145))/0x9);if(_0x4c6f34===_0x187b75)break;else _0x2a88af['push'](_0x2a88af['shift']());}catch(_0x5c4417){_0x2a88af['push'](_0x2a88af['shift']());}}}(a43_0x5d72,0x9bb6e));function a43_0x5d72(){const _0x2f9cf5=['validation','804951ypnaTO','4132233RWNMdp','2825268ZyncwN','934020YzRfHf','129RLVLdO','trim','5707250RZwgBB','company','9NFkpkF','personal','2517328vnbyJk','17462XPSaJp','all'];a43_0x5d72=function(){return _0x2f9cf5;};return a43_0x5d72();}import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x5f07c8){const _0x5db6f1=a43_0x3500,_0x8f9b07=_0x5f07c8[_0x5db6f1(0x150)]();if(!_0x8f9b07||_0x8f9b07==='all')return['personal',_0x5db6f1(0x144)];if(_0x8f9b07==='personal'||_0x8f9b07===_0x5db6f1(0x144))return[_0x8f9b07];throw CliErrors['validation']('Unsupported\x20Skill\x20sync\x20scope:\x20'+_0x5f07c8);}export function normalizeListScope(_0x14e8bb){const _0x41690f=a43_0x3500,_0x14abe6=_0x14e8bb['trim']();if(!_0x14abe6)return _0x41690f(0x149);if(_0x14abe6===_0x41690f(0x146)||_0x14abe6===_0x41690f(0x144)||_0x14abe6===_0x41690f(0x149))return _0x14abe6;throw CliErrors[_0x41690f(0x14a)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x14e8bb);}export function shouldListScope(_0x2bd4d4,_0x394541){const _0x515ff9=a43_0x3500;if(_0x2bd4d4===_0x515ff9(0x149))return!![];return _0x2bd4d4===_0x394541;}export function listScopeToRuntimeScopes(_0xff5455){const _0x5b9315=a43_0x3500;if(_0xff5455===_0x5b9315(0x149))return['personal',_0x5b9315(0x144)];return[_0xff5455===_0x5b9315(0x144)?_0x5b9315(0x144):_0xff5455];}export function listScopeToRemoteScope(_0x43e19c){return _0x43e19c;}
@@ -1 +1 @@
1
- (function(_0x3f3ad4,_0x9f467b){var _0x213e19=a44_0x2f99,_0xf5a545=_0x3f3ad4();while(!![]){try{var _0x3735b1=parseInt(_0x213e19(0x162))/0x1+parseInt(_0x213e19(0x15f))/0x2*(-parseInt(_0x213e19(0x164))/0x3)+-parseInt(_0x213e19(0x165))/0x4+parseInt(_0x213e19(0x166))/0x5+parseInt(_0x213e19(0x167))/0x6+parseInt(_0x213e19(0x15c))/0x7*(-parseInt(_0x213e19(0x160))/0x8)+parseInt(_0x213e19(0x163))/0x9;if(_0x3735b1===_0x9f467b)break;else _0xf5a545['push'](_0xf5a545['shift']());}catch(_0x3d139a){_0xf5a545['push'](_0xf5a545['shift']());}}}(a44_0x1e9e,0xc7b7b));export function summarizeRuntimeSkill(_0x2d4a37){var _0x5973e9=a44_0x2f99;return{'id':_0x2d4a37['id'],'skillCode':_0x2d4a37[_0x5973e9(0x15b)],'skillName':_0x2d4a37['skillName'],'scope':_0x2d4a37[_0x5973e9(0x168)],'version':_0x2d4a37[_0x5973e9(0x159)],'readonly':_0x2d4a37[_0x5973e9(0x157)]};}export function summarizeLocalRuntimeSkill(_0x34c73b){var _0x169c0b=a44_0x2f99;return{'id':_0x34c73b['id'],'skillCode':_0x34c73b[_0x169c0b(0x15b)],'skillName':_0x34c73b['skillName'],'scope':_0x34c73b[_0x169c0b(0x168)],'appCode':_0x34c73b['appCode'],'version':_0x34c73b[_0x169c0b(0x159)],'status':_0x34c73b[_0x169c0b(0x15d)],'readonly':_0x34c73b[_0x169c0b(0x157)],'tags':_0x34c73b[_0x169c0b(0x15a)],'dir':_0x34c73b[_0x169c0b(0x15e)],'cacheDir':_0x34c73b[_0x169c0b(0x169)],'skillMdPath':_0x34c73b['skillMdPath'],'metadataPath':_0x34c73b['metadataPath'],'linkedPaths':_0x34c73b[_0x169c0b(0x161)],'contentHash':_0x34c73b['contentHash'],'treeHash':_0x34c73b[_0x169c0b(0x156)],'pulledAt':_0x34c73b[_0x169c0b(0x158)]};}function a44_0x2f99(_0x73e641,_0x4282a3){_0x73e641=_0x73e641-0x156;var _0x1e9ecf=a44_0x1e9e();var _0x2f9926=_0x1e9ecf[_0x73e641];return _0x2f9926;}function a44_0x1e9e(){var _0x37eb38=['6045042afWDPZ','scope','cacheDir','treeHash','readonly','pulledAt','version','tags','skillCode','2499378lWsnmA','status','dir','185764YYeZAf','16YuhdAn','linkedPaths','1066061gorskr','9697149moAFst','15kZaqqK','5869716NLrjXT','1564805zLYwoS'];a44_0x1e9e=function(){return _0x37eb38;};return a44_0x1e9e();}
1
+ function a44_0x321e(){var _0x1d6b74=['contentHash','154bROrrT','appCode','7393904JRYvYH','dir','2873576HoBvkL','1214090rOHKex','11664198AUoWcb','treeHash','linkedPaths','skillCode','readonly','metadataPath','status','4783340SkaKNi','215148nyoDsd','tags','12cLxoIw','858044malJQC','skillMdPath','pulledAt'];a44_0x321e=function(){return _0x1d6b74;};return a44_0x321e();}(function(_0x235e38,_0x14dbe9){var _0xb30f3c=a44_0x647c,_0xafa932=_0x235e38();while(!![]){try{var _0x2b1039=parseInt(_0xb30f3c(0x132))/0x1+-parseInt(_0xb30f3c(0x131))/0x2+-parseInt(_0xb30f3c(0x128))/0x3*(-parseInt(_0xb30f3c(0x129))/0x4)+-parseInt(_0xb30f3c(0x125))/0x5+-parseInt(_0xb30f3c(0x126))/0x6*(-parseInt(_0xb30f3c(0x12d))/0x7)+-parseInt(_0xb30f3c(0x12f))/0x8+parseInt(_0xb30f3c(0x133))/0x9;if(_0x2b1039===_0x14dbe9)break;else _0xafa932['push'](_0xafa932['shift']());}catch(_0x1b4a32){_0xafa932['push'](_0xafa932['shift']());}}}(a44_0x321e,0xcceaa));export function summarizeRuntimeSkill(_0x43b4b4){return{'id':_0x43b4b4['id'],'skillCode':_0x43b4b4['skillCode'],'skillName':_0x43b4b4['skillName'],'scope':_0x43b4b4['scope'],'version':_0x43b4b4['version'],'readonly':_0x43b4b4['readonly']};}function a44_0x647c(_0xefac6b,_0x1c6449){_0xefac6b=_0xefac6b-0x121;var _0x321ec7=a44_0x321e();var _0x647c6b=_0x321ec7[_0xefac6b];return _0x647c6b;}export function summarizeLocalRuntimeSkill(_0x12737d){var _0x51a10d=a44_0x647c;return{'id':_0x12737d['id'],'skillCode':_0x12737d[_0x51a10d(0x121)],'skillName':_0x12737d['skillName'],'scope':_0x12737d['scope'],'appCode':_0x12737d[_0x51a10d(0x12e)],'version':_0x12737d['version'],'status':_0x12737d[_0x51a10d(0x124)],'readonly':_0x12737d[_0x51a10d(0x122)],'tags':_0x12737d[_0x51a10d(0x127)],'dir':_0x12737d[_0x51a10d(0x130)],'cacheDir':_0x12737d['cacheDir'],'skillMdPath':_0x12737d[_0x51a10d(0x12a)],'metadataPath':_0x12737d[_0x51a10d(0x123)],'linkedPaths':_0x12737d[_0x51a10d(0x135)],'contentHash':_0x12737d[_0x51a10d(0x12c)],'treeHash':_0x12737d[_0x51a10d(0x134)],'pulledAt':_0x12737d[_0x51a10d(0x12b)]};}
@@ -1 +1 @@
1
- const a45_0x3a644=a45_0x1451;(function(_0x49b019,_0x212053){const _0x142efa=a45_0x1451,_0x3bebef=_0x49b019();while(!![]){try{const _0x26b95e=-parseInt(_0x142efa(0x1e9))/0x1*(parseInt(_0x142efa(0x1c8))/0x2)+-parseInt(_0x142efa(0x1cb))/0x3*(-parseInt(_0x142efa(0x1ca))/0x4)+-parseInt(_0x142efa(0x1e0))/0x5*(-parseInt(_0x142efa(0x1d8))/0x6)+-parseInt(_0x142efa(0x1c6))/0x7+-parseInt(_0x142efa(0x1d7))/0x8*(-parseInt(_0x142efa(0x1d0))/0x9)+-parseInt(_0x142efa(0x1e3))/0xa*(parseInt(_0x142efa(0x1cc))/0xb)+parseInt(_0x142efa(0x1da))/0xc;if(_0x26b95e===_0x212053)break;else _0x3bebef['push'](_0x3bebef['shift']());}catch(_0x3a38d6){_0x3bebef['push'](_0x3bebef['shift']());}}}(a45_0x1b18,0xeee3b));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read',a45_0x3a644(0x1de)];export const DEFAULT_SKILL_TARGET='.agents/skills';function a45_0x1451(_0x35bf51,_0x11e999){_0x35bf51=_0x35bf51-0x1c5;const _0x1b18c0=a45_0x1b18();let _0x1451c1=_0x1b18c0[_0x35bf51];return _0x1451c1;}export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a45_0x3a644(0x1db);export const OUTPUT_CONTRACT_FILE=a45_0x3a644(0x1d6);export function validateSkillName(_0x1f7997){const _0x12ce89=a45_0x3a644,_0x39b5d5=_0x1f7997[_0x12ce89(0x1e7)]();if(!SKILL_NAME_PATTERN[_0x12ce89(0x1ce)](_0x39b5d5))throw CliErrors[_0x12ce89(0x1e4)](_0x12ce89(0x1eb)+_0x1f7997+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.');return _0x39b5d5;}export function normalizeSkillTemplateType(_0x23569d){const _0x25ad4e=a45_0x3a644,_0x22fe89=(_0x23569d||_0x25ad4e(0x1c7))['trim']()||_0x25ad4e(0x1c7);if(SKILL_TYPES['includes'](_0x22fe89))return _0x22fe89;throw CliErrors[_0x25ad4e(0x1e4)](_0x25ad4e(0x1ec)+_0x23569d,_0x25ad4e(0x1dc)+SKILL_TYPES[_0x25ad4e(0x1c9)](',\x20')+'.');}export function renderSkillTemplate(_0xdf6297){const _0x106600=a45_0x3a644,_0x11045a=validateSkillName(_0xdf6297[_0x106600(0x1e8)]),_0x16d812=normalizeSkillTemplateType(_0xdf6297['type']),_0x122212=_0xdf6297[_0x106600(0x1cf)]??new Date()['toISOString']();return{'skillName':_0x11045a,'type':_0x16d812,'files':[{'path':_0x106600(0x1d9),'content':renderSkillMd(_0x11045a,_0x16d812,_0x122212)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x11045a,_0x16d812)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x11045a,_0x16d812)}]};}function a45_0x1b18(){const _0x272f03=['#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','trainer','\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','4797955STRSdn','read','\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','7837910HXEIyi','validation','---\x0aname:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','trim','skillName','101767RrIHpU','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','Invalid\x20Skill\x20name:\x20','Unsupported\x20Skill\x20type:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFFLovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\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=','4894820aiPdpZ','write','34oEJrwE','join','8FBkOnf','1165716irYHQm','11xjVgEc','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','test','timestamp','376227cJfCuX','\x0a\x20\x20created:\x20\x22','#\x20Output\x20Contract\x0a\x0a','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','\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','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','references/output-contract.md','200hsHkwX','6dynhvP','SKILL.md','16917252sejOrm','references/runtime-contract.md','Use\x20one\x20of:\x20'];a45_0x1b18=function(){return _0x272f03;};return a45_0x1b18();}function renderSkillMd(_0x2f12c0,_0x11eedb,_0x4b3968){const _0x3f60f9=a45_0x3a644,_0x424203=typeWorkflow(_0x11eedb);return _0x3f60f9(0x1e5)+_0x2f12c0+_0x3f60f9(0x1ea)+_0x11eedb+_0x3f60f9(0x1d1)+_0x4b3968+_0x3f60f9(0x1cd)+_0x2f12c0+_0x3f60f9(0x1df)+_0x424203+'\x0a\x0a'+businessStateSection(_0x11eedb)+'\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a';}function renderRuntimeContract(_0xcbb738,_0x5b7260){const _0xf24ed=a45_0x3a644,_0x595333=_0x5b7260===_0xf24ed(0x1c7)?'##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a':'';return _0xf24ed(0x1dd)+_0xcbb738+_0xf24ed(0x1c5)+_0x5b7260+_0xf24ed(0x1e2)+_0x595333+_0xf24ed(0x1d4);}function renderOutputContract(_0xdf67ab,_0x45152f){const _0x23e695=a45_0x3a644,_0x5ef309=_0x45152f===_0x23e695(0x1c7)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x45152f+_0x23e695(0x1e6);return _0x23e695(0x1d2)+_0xdf67ab+'\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'+_0x5ef309+_0x23e695(0x1d5);}function typeWorkflow(_0x31c7f2){const _0x8ef048=a45_0x3a644;if(_0x31c7f2===_0x8ef048(0x1e1))return _0x8ef048(0x1ed);if(_0x31c7f2===_0x8ef048(0x1de))return _0x8ef048(0x1d3);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0xf1d31){const _0xad3dda=a45_0x3a644;if(_0xf1d31!==_0xad3dda(0x1c7))return'';return _0xad3dda(0x1ee);}
1
+ const a45_0x4691a1=a45_0x1663;(function(_0x44239c,_0x3bc78b){const _0x27a79c=a45_0x1663,_0x230d2e=_0x44239c();while(!![]){try{const _0x16f1f8=parseInt(_0x27a79c(0x11e))/0x1+-parseInt(_0x27a79c(0x129))/0x2+parseInt(_0x27a79c(0x12a))/0x3*(-parseInt(_0x27a79c(0x144))/0x4)+parseInt(_0x27a79c(0x142))/0x5*(parseInt(_0x27a79c(0x131))/0x6)+parseInt(_0x27a79c(0x122))/0x7+-parseInt(_0x27a79c(0x125))/0x8+-parseInt(_0x27a79c(0x12b))/0x9*(parseInt(_0x27a79c(0x13a))/0xa);if(_0x16f1f8===_0x3bc78b)break;else _0x230d2e['push'](_0x230d2e['shift']());}catch(_0x5436dc){_0x230d2e['push'](_0x230d2e['shift']());}}}(a45_0x2295,0x1e6ec));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=['write','read',a45_0x4691a1(0x139)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE=a45_0x4691a1(0x145);export const OUTPUT_CONTRACT_FILE=a45_0x4691a1(0x143);export function validateSkillName(_0x389115){const _0x3b1c14=a45_0x4691a1,_0x116994=_0x389115[_0x3b1c14(0x135)]();if(!SKILL_NAME_PATTERN[_0x3b1c14(0x13e)](_0x116994))throw CliErrors[_0x3b1c14(0x12e)](_0x3b1c14(0x124)+_0x389115+'.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.',_0x3b1c14(0x123));return _0x116994;}export function normalizeSkillTemplateType(_0x3af22f){const _0x482fcb=a45_0x4691a1,_0x4564cd=(_0x3af22f||_0x482fcb(0x121))[_0x482fcb(0x135)]()||_0x482fcb(0x121);if(SKILL_TYPES[_0x482fcb(0x128)](_0x4564cd))return _0x4564cd;throw CliErrors[_0x482fcb(0x12e)]('Unsupported\x20Skill\x20type:\x20'+_0x3af22f,_0x482fcb(0x12f)+SKILL_TYPES[_0x482fcb(0x137)](',\x20')+'.');}function a45_0x1663(_0x3a53c5,_0x3cb0d1){_0x3a53c5=_0x3a53c5-0x11d;const _0x22950e=a45_0x2295();let _0x1663bd=_0x22950e[_0x3a53c5];return _0x1663bd;}export function renderSkillTemplate(_0x5f4094){const _0x468620=a45_0x4691a1,_0x46f284=validateSkillName(_0x5f4094[_0x468620(0x126)]),_0x5cf654=normalizeSkillTemplateType(_0x5f4094['type']),_0x2be7e8=_0x5f4094['timestamp']??new Date()[_0x468620(0x12d)]();return{'skillName':_0x46f284,'type':_0x5cf654,'files':[{'path':_0x468620(0x138),'content':renderSkillMd(_0x46f284,_0x5cf654,_0x2be7e8)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x46f284,_0x5cf654)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x46f284,_0x5cf654)}]};}function renderSkillMd(_0xc4a28,_0x4a301b,_0x484394){const _0x134952=a45_0x4691a1,_0x5ccbc8=typeWorkflow(_0x4a301b);return _0x134952(0x141)+_0xc4a28+_0x134952(0x13f)+_0x4a301b+_0x134952(0x12c)+_0x484394+_0x134952(0x136)+_0xc4a28+_0x134952(0x120)+_0x5ccbc8+'\x0a\x0a'+businessStateSection(_0x4a301b)+_0x134952(0x132);}function a45_0x2295(){const _0x275341=['##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','9094MpTLtO','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','write','1359743eUsYTg','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','Invalid\x20Skill\x20name:\x20','260672KAewdx','skillName','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','includes','23674lfkTbO','403707BBPepH','27VthogT','\x0a\x20\x20created:\x20\x22','toISOString','validation','Use\x20one\x20of:\x20','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','1512kHhfxj','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknownpartial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。','\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=','trim','\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20','join','SKILL.md','trainer','29390xXBaKq','\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','\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','#\x20Output\x20Contract\x0a\x0a','test','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','---\x0aname:\x20','2165GKItHi','references/output-contract.md','4ZvyXWh','references/runtime-contract.md'];a45_0x2295=function(){return _0x275341;};return a45_0x2295();}function renderRuntimeContract(_0xb72eea,_0x46ba93){const _0x2fd8b3=a45_0x4691a1,_0x4e03af=_0x46ba93==='write'?_0x2fd8b3(0x127):'';return _0x2fd8b3(0x133)+_0xb72eea+_0x2fd8b3(0x134)+_0x46ba93+_0x2fd8b3(0x13b)+_0x4e03af+'\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a';}function renderOutputContract(_0x1fc57c,_0x49842f){const _0x46d2da=a45_0x4691a1,_0x3afaaa=_0x49842f===_0x46d2da(0x121)?'write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。':_0x49842f+_0x46d2da(0x130);return _0x46d2da(0x13d)+_0x1fc57c+_0x46d2da(0x13c)+_0x3afaaa+_0x46d2da(0x11f);}function typeWorkflow(_0x5a5419){const _0x1ee203=a45_0x4691a1;if(_0x5a5419==='read')return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';if(_0x5a5419==='trainer')return _0x1ee203(0x140);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x3e59a4){const _0x116825=a45_0x4691a1;if(_0x3e59a4!==_0x116825(0x121))return'';return _0x116825(0x11d);}
@@ -1 +1 @@
1
- const a46_0x521582=a46_0x3b23;(function(_0x4f4172,_0x5a06b3){const _0xbcb0e6=a46_0x3b23,_0x48bd2e=_0x4f4172();while(!![]){try{const _0x578613=-parseInt(_0xbcb0e6(0x20b))/0x1+parseInt(_0xbcb0e6(0x208))/0x2*(parseInt(_0xbcb0e6(0x1f9))/0x3)+parseInt(_0xbcb0e6(0x224))/0x4*(parseInt(_0xbcb0e6(0x1ee))/0x5)+parseInt(_0xbcb0e6(0x1d6))/0x6+parseInt(_0xbcb0e6(0x221))/0x7*(parseInt(_0xbcb0e6(0x1f2))/0x8)+-parseInt(_0xbcb0e6(0x1e7))/0x9*(-parseInt(_0xbcb0e6(0x1f8))/0xa)+-parseInt(_0xbcb0e6(0x227))/0xb*(parseInt(_0xbcb0e6(0x209))/0xc);if(_0x578613===_0x5a06b3)break;else _0x48bd2e['push'](_0x48bd2e['shift']());}catch(_0x378358){_0x48bd2e['push'](_0x48bd2e['shift']());}}}(a46_0x2119,0xcfb90));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a46_0x521582(0x20c),a46_0x521582(0x207),a46_0x521582(0x1fd)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x2d56e5,_0x235a4c={}){const _0x1d288a=a46_0x521582,_0x3ad69c=resolveSkillDirectoryRoot(_0x2d56e5),_0x228bfb=[],_0x5d62db=loadRequiredSkillFile(_0x3ad69c,_0x228bfb),_0xf0f427=_0x5d62db?parseFrontmatter(_0x5d62db['content']):{'hasFrontmatter':![]};_0x5d62db&&validateFrontmatter(_0x5d62db[_0x1d288a(0x1f7)],_0xf0f427,_0x228bfb);validateRuntimeCliReferences(_0x3ad69c,_0x228bfb);const _0x349bb1=_0x228bfb[_0x1d288a(0x1f5)](_0x801d29=>_0x801d29['level']===_0x1d288a(0x200)),_0x4626ef=_0x228bfb['filter'](_0x3090d1=>_0x3090d1[_0x1d288a(0x206)]===_0x1d288a(0x1dd));return{'ok':_0x349bb1['length']===0x0,'dir':_0x3ad69c,'type':_0xf0f427[_0x1d288a(0x1ea)],'errors':_0x349bb1,'warnings':_0x4626ef};}function resolveSkillDirectoryRoot(_0x57373c){const _0x3d46b9=a46_0x521582,_0x23dd71=resolve(_0x57373c);if(!existsSync(_0x23dd71))throw CliErrors[_0x3d46b9(0x21f)](_0x3d46b9(0x1f0)+_0x57373c);const _0x4b34f5=lstatSync(_0x23dd71);if(_0x4b34f5[_0x3d46b9(0x1ed)]())return _0x23dd71;if(_0x4b34f5[_0x3d46b9(0x225)]()){const _0x54e43f=realpathSync(_0x23dd71);if(lstatSync(_0x54e43f)[_0x3d46b9(0x1ed)]())return _0x54e43f;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x57373c);}export function throwIfSkillValidationFailed(_0x44f7eb,_0x5b02ee=![]){const _0x4f980f=a46_0x521582;if(_0x44f7eb['ok'])return;const _0x37b3d7=_0x44f7eb[_0x4f980f(0x21d)][_0x4f980f(0x203)](_0x168c34=>{const _0x40336c=_0x4f980f,_0x273ac8=_0x168c34[_0x40336c(0x1da)]?'#'+_0x168c34[_0x40336c(0x1da)]:'';return _0x168c34[_0x40336c(0x206)][_0x40336c(0x1d8)]()+'\x20'+_0x168c34[_0x40336c(0x1fc)]+'\x20'+_0x168c34[_0x40336c(0x20d)]+_0x273ac8+':\x20'+_0x168c34[_0x40336c(0x222)]+_0x40336c(0x1f3)+_0x168c34['suggestion'];});throw CliErrors['validation'](_0x4f980f(0x216)+_0x37b3d7[_0x4f980f(0x201)]('\x0a'),_0x4f980f(0x212));}function loadRequiredSkillFile(_0x27cde7,_0x4af074){const _0x2e32f8=a46_0x521582,_0x8e5788=resolve(_0x27cde7,SKILL_FILE);if(!existsSync(_0x8e5788))return _0x4af074[_0x2e32f8(0x1de)](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,_0x2e32f8(0x1ec),_0x2e32f8(0x1d9))),undefined;const _0x1a2931=lstatSync(_0x8e5788);if(_0x1a2931[_0x2e32f8(0x225)]())return _0x4af074[_0x2e32f8(0x1de)](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,'SKILL.md\x20must\x20be\x20a\x20regular\x20file.',_0x2e32f8(0x226))),undefined;if(!_0x1a2931[_0x2e32f8(0x205)]())return _0x4af074['push'](issue(_0x2e32f8(0x200),_0x2e32f8(0x220),SKILL_FILE,'SKILL.md\x20is\x20not\x20a\x20file.','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x8e5788,'utf8')};}function validateFrontmatter(_0x5b9103,_0x48196c,_0x2ba8ee){const _0x35cf2c=a46_0x521582;if(!_0x48196c[_0x35cf2c(0x223)]){_0x2ba8ee[_0x35cf2c(0x1de)](issue('error','frontmatter-required',_0x5b9103,_0x35cf2c(0x215),_0x35cf2c(0x1df)));return;}!_0x48196c['name']?.[_0x35cf2c(0x218)]()&&_0x2ba8ee['push'](issue(_0x35cf2c(0x200),'frontmatter-required',_0x5b9103,_0x35cf2c(0x1e5),_0x35cf2c(0x1e1))),!_0x48196c['description']?.[_0x35cf2c(0x218)]()&&_0x2ba8ee[_0x35cf2c(0x1de)](issue(_0x35cf2c(0x200),_0x35cf2c(0x1e4),_0x5b9103,'Frontmatter\x20description\x20is\x20empty.',_0x35cf2c(0x204))),_0x48196c[_0x35cf2c(0x1f6)]===!![]&&_0x2ba8ee['push'](issue(_0x35cf2c(0x200),_0x35cf2c(0x20a),_0x5b9103,_0x35cf2c(0x1eb),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x48196c[_0x35cf2c(0x1ea)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0x35cf2c(0x1ef)](_0x48196c[_0x35cf2c(0x1ea)])&&_0x2ba8ee[_0x35cf2c(0x1de)](issue('error',_0x35cf2c(0x1f4),_0x5b9103,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.',_0x35cf2c(0x211)));}function validateRuntimeCliReferences(_0x46c6a5,_0x2f9731){const _0x441d2c=a46_0x521582;for(const _0x3902ba of findRabetbaseCliInvocations(_0x46c6a5)){_0x2f9731[_0x441d2c(0x1de)](issue(_0x441d2c(0x1dd),_0x441d2c(0x21e),_0x3902ba['file'],_0x441d2c(0x20f),'If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','L'+_0x3902ba['line']));}}function findRabetbaseCliInvocations(_0xfae4c8){const _0x3b4fcc=a46_0x521582;return scanSkillDirectory(_0xfae4c8)[_0x3b4fcc(0x1f5)](_0x1d68c4=>TEXT_SKILL_FILE_PATTERN[_0x3b4fcc(0x1e2)](_0x1d68c4[_0x3b4fcc(0x1f7)]))[_0x3b4fcc(0x1e0)](_0x2f4c55=>{const _0x5e5dbc=_0x3b4fcc,_0x1b951b=fileText(_0x2f4c55);return _0x1b951b[_0x5e5dbc(0x1e8)](/\r?\n/)[_0x5e5dbc(0x203)]((_0x3c990d,_0x164b6e)=>({'file':_0x2f4c55[_0x5e5dbc(0x1f7)],'line':_0x164b6e+0x1,'text':_0x3c990d}))['filter'](({text:_0x3b6bf7})=>isRabetbaseCliInvocation(_0x3b6bf7))[_0x5e5dbc(0x203)](({file:_0x4bcfc8,line:_0x191d2b})=>({'file':_0x4bcfc8,'line':_0x191d2b}));});}const RABETBASE_SUBCOMMANDS=['dataset',a46_0x521582(0x1fe),'bff',a46_0x521582(0x21b),a46_0x521582(0x21a),a46_0x521582(0x20e),a46_0x521582(0x1e6),'service',a46_0x521582(0x1d7),'kb','config',a46_0x521582(0x210),'data',a46_0x521582(0x219),a46_0x521582(0x213),a46_0x521582(0x214)],RABETBASE_INVOCATION=new RegExp(String[a46_0x521582(0x1f1)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0x521582(0x201)]('|')})\b`+String[a46_0x521582(0x1f1)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x1706dd){const _0x4fae92=a46_0x521582,_0x36d1d3=_0x1706dd[_0x4fae92(0x21c)](/\brabetbase\b/i);if(_0x36d1d3<0x0)return![];const _0xbc7c41=_0x1706dd[_0x4fae92(0x1fb)](_0x36d1d3)[_0x4fae92(0x1e8)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION['test'](_0xbc7c41);}function parseFrontmatter(_0x51b5b0){const _0x466a80=a46_0x521582,_0x1068d2=_0x51b5b0[_0x466a80(0x217)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1068d2)return{'hasFrontmatter':![]};const _0x388cba=_0x1068d2[0x1]??'',_0x1f8047={'hasFrontmatter':!![]};let _0xb199dd=![];for(const _0x575b5f of _0x388cba[_0x466a80(0x1e8)](/\r?\n/)){if(/^\s*$/['test'](_0x575b5f))continue;const _0x4d5da0=_0x575b5f[_0x466a80(0x217)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x4d5da0){const _0x4425bd=_0x4d5da0[0x1],_0x27ad09=cleanScalar(_0x4d5da0[0x2]??'');_0xb199dd=_0x4425bd===_0x466a80(0x1e9);if(_0x4425bd==='name')_0x1f8047['name']=_0x27ad09;if(_0x4425bd===_0x466a80(0x1e3))_0x1f8047[_0x466a80(0x1e3)]=_0x27ad09;continue;}const _0xa6b774=_0x575b5f[_0x466a80(0x217)](/^\s+type:\s*(.*)$/);if(_0xb199dd&&_0xa6b774){_0x1f8047['type']=cleanScalar(_0xa6b774[0x1]??'');continue;}const _0x43e195=_0x575b5f[_0x466a80(0x217)](/^\s+internal:\s*(.*)$/);_0xb199dd&&_0x43e195&&(_0x1f8047['internal']=cleanBoolean(_0x43e195[0x1]??''));}return _0x1f8047;}function a46_0x3b23(_0x1c8ec6,_0x1a6aa0){_0x1c8ec6=_0x1c8ec6-0x1d6;const _0x2119fa=a46_0x2119();let _0x3b237d=_0x2119fa[_0x1c8ec6];return _0x3b237d;}function cleanScalar(_0x59caf8){const _0x1145ae=a46_0x521582,_0x55cd0c=_0x59caf8[_0x1145ae(0x218)]();if(_0x55cd0c[_0x1145ae(0x1fa)]('\x22')&&_0x55cd0c[_0x1145ae(0x1db)]('\x22')||_0x55cd0c[_0x1145ae(0x1fa)]('\x27')&&_0x55cd0c[_0x1145ae(0x1db)]('\x27'))return _0x55cd0c[_0x1145ae(0x1fb)](0x1,-0x1);return _0x55cd0c;}function a46_0x2119(){const _0x4d300d=['isSymbolicLink','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','99HLaZFd','1114332MQLcRy','artifact','toUpperCase','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','section','endsWith','toLowerCase','warning','push','Add\x20frontmatter\x20with\x20name\x20and\x20description.','flatMap','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','test','description','description-required','Frontmatter\x20name\x20is\x20missing.','schema','7785171zKgtfP','split','metadata','type','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Missing\x20SKILL.md.','isDirectory','1005loXtLV','has','Skill\x20directory\x20not\x20found:\x20','raw','192YNEAxt','\x20Fix:\x20','frontmatter-required','filter','internal','path','10yWvoiF','1555593HDkDVO','startsWith','slice','ruleId','trainer','sql','true','error','join','false','map','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','isFile','level','read','2EzZEsP','1842036EuntmQ','internal-skill','1226550BsLtNw','write','file','app','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','workspace','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','logs','registry','SKILL.md\x20must\x20start\x20with\x20frontmatter.','Skill\x20validation\x20failed:\x0a','match','trim','auth','project','page','search','errors','rabetbase-cli-reference','validation','structure-complete','371693MLOcLC','message','hasFrontmatter','12244rarpDE'];a46_0x2119=function(){return _0x4d300d;};return a46_0x2119();}function cleanBoolean(_0x4c50d5){const _0x70836c=a46_0x521582,_0x59f6fb=cleanScalar(_0x4c50d5)[_0x70836c(0x1dc)]();if(_0x59f6fb===_0x70836c(0x1ff))return!![];if(_0x59f6fb===_0x70836c(0x202))return![];return undefined;}function issue(_0x1fb90c,_0x510d86,_0x2dee2b,_0x37e9e3,_0x1d7720,_0x33feee){return{'level':_0x1fb90c,'ruleId':_0x510d86,'file':_0x2dee2b,'section':_0x33feee,'message':_0x37e9e3,'suggestion':_0x1d7720};}
1
+ const a46_0xa354a=a46_0x5a0e;(function(_0x5644d5,_0x2d1b3f){const _0x273fca=a46_0x5a0e,_0xdf12ff=_0x5644d5();while(!![]){try{const _0x132681=-parseInt(_0x273fca(0xc9))/0x1+-parseInt(_0x273fca(0xdb))/0x2*(-parseInt(_0x273fca(0xa9))/0x3)+-parseInt(_0x273fca(0xce))/0x4+-parseInt(_0x273fca(0xd4))/0x5*(-parseInt(_0x273fca(0xa3))/0x6)+-parseInt(_0x273fca(0xd1))/0x7*(-parseInt(_0x273fca(0xe4))/0x8)+-parseInt(_0x273fca(0xd9))/0x9*(parseInt(_0x273fca(0xc0))/0xa)+parseInt(_0x273fca(0xea))/0xb;if(_0x132681===_0x2d1b3f)break;else _0xdf12ff['push'](_0xdf12ff['shift']());}catch(_0x1495e2){_0xdf12ff['push'](_0xdf12ff['shift']());}}}(a46_0x4299,0xe4184));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{fileText,scanSkillDirectory}from'../../skills/runtime-skill-sync/local-files.js';const SKILL_FILE=a46_0xa354a(0xe0),SUPPORTED_SKILL_TYPES=new Set(['write',a46_0xa354a(0x9c),a46_0xa354a(0xa4)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;function a46_0x4299(){const _0x49a301=['true','match','isDirectory','project','SKILL.md','bff','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','map','1160cVCFkT','error','metadata','internal','toUpperCase','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','29145919JhrtaU','message','isFile','internal-skill','SKILL.md\x20is\x20not\x20a\x20file.','ruleId','read','trim','push','level','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','test','filter','63090SRKdUL','trainer','app','toLowerCase','endsWith','path','172512LCDOJc','frontmatter-required','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','flatMap','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','slice','data','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','line','file','logs','section','rabetbase-cli-reference','workspace','false','startsWith','errors','description','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','suggestion','length','30PswSES','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','split','structure-complete','dataset','sql','type','SKILL.md\x20must\x20start\x20with\x20frontmatter.','description-required','1542897kSKBTN','Skill\x20directory\x20not\x20found:\x20','page','name','join','6420728nlcFRi','Add\x20frontmatter\x20with\x20name\x20and\x20description.','Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.','8491YHLwJk','registry','isSymbolicLink','680tdRVWR','config','artifact','utf8','warning','1554669eSFPfk','validation','12wVyudT'];a46_0x4299=function(){return _0x49a301;};return a46_0x4299();}export function validateSkillDirectory(_0x3e2e5f,_0x1ebb9a={}){const _0x5b362b=a46_0xa354a,_0x51d12b=resolveSkillDirectoryRoot(_0x3e2e5f),_0x1a5f7b=[],_0x5916fe=loadRequiredSkillFile(_0x51d12b,_0x1a5f7b),_0x26d273=_0x5916fe?parseFrontmatter(_0x5916fe['content']):{'hasFrontmatter':![]};_0x5916fe&&validateFrontmatter(_0x5916fe[_0x5b362b(0xa8)],_0x26d273,_0x1a5f7b);validateRuntimeCliReferences(_0x51d12b,_0x1a5f7b);const _0x1ce11f=_0x1a5f7b[_0x5b362b(0xa2)](_0x32e116=>_0x32e116[_0x5b362b(0x9f)]===_0x5b362b(0xe5)),_0x13df59=_0x1a5f7b[_0x5b362b(0xa2)](_0x3d57b5=>_0x3d57b5[_0x5b362b(0x9f)]===_0x5b362b(0xd8));return{'ok':_0x1ce11f[_0x5b362b(0xbf)]===0x0,'dir':_0x51d12b,'type':_0x26d273[_0x5b362b(0xc6)],'errors':_0x1ce11f,'warnings':_0x13df59};}function resolveSkillDirectoryRoot(_0x1da5ca){const _0x1dd003=a46_0xa354a,_0x2e01a5=resolve(_0x1da5ca);if(!existsSync(_0x2e01a5))throw CliErrors[_0x1dd003(0xda)]('Skill\x20directory\x20not\x20found:\x20'+_0x1da5ca);const _0x2219b9=lstatSync(_0x2e01a5);if(_0x2219b9[_0x1dd003(0xde)]())return _0x2e01a5;if(_0x2219b9['isSymbolicLink']()){const _0x2d5fc3=realpathSync(_0x2e01a5);if(lstatSync(_0x2d5fc3)['isDirectory']())return _0x2d5fc3;}throw CliErrors[_0x1dd003(0xda)](_0x1dd003(0xca)+_0x1da5ca);}export function throwIfSkillValidationFailed(_0x5c3c44,_0x2bec68=![]){const _0x4547=a46_0xa354a;if(_0x5c3c44['ok'])return;const _0x30c03a=_0x5c3c44[_0x4547(0xbb)][_0x4547(0xe3)](_0x322649=>{const _0x29cc45=_0x4547,_0x8ec8d6=_0x322649['section']?'#'+_0x322649[_0x29cc45(0xb6)]:'';return _0x322649[_0x29cc45(0x9f)][_0x29cc45(0xe8)]()+'\x20'+_0x322649[_0x29cc45(0x9b)]+'\x20'+_0x322649['file']+_0x8ec8d6+':\x20'+_0x322649[_0x29cc45(0xeb)]+'\x20Fix:\x20'+_0x322649[_0x29cc45(0xbe)];});throw CliErrors[_0x4547(0xda)]('Skill\x20validation\x20failed:\x0a'+_0x30c03a[_0x4547(0xcd)]('\x0a'),_0x4547(0xd0));}function loadRequiredSkillFile(_0x143722,_0xd29e5){const _0x4bbf13=a46_0xa354a,_0x509fdc=resolve(_0x143722,SKILL_FILE);if(!existsSync(_0x509fdc))return _0xd29e5['push'](issue(_0x4bbf13(0xe5),_0x4bbf13(0xc3),SKILL_FILE,'Missing\x20SKILL.md.',_0x4bbf13(0xae))),undefined;const _0x7158aa=lstatSync(_0x509fdc);if(_0x7158aa[_0x4bbf13(0xd3)]())return _0xd29e5[_0x4bbf13(0x9e)](issue('error',_0x4bbf13(0xc3),SKILL_FILE,_0x4bbf13(0xb2),_0x4bbf13(0xe2))),undefined;if(!_0x7158aa[_0x4bbf13(0xec)]())return _0xd29e5[_0x4bbf13(0x9e)](issue(_0x4bbf13(0xe5),_0x4bbf13(0xc3),SKILL_FILE,_0x4bbf13(0xee),_0x4bbf13(0xe9))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x509fdc,_0x4bbf13(0xd7))};}function validateFrontmatter(_0x5269a8,_0x521b96,_0x37eb98){const _0x57f39b=a46_0xa354a;if(!_0x521b96['hasFrontmatter']){_0x37eb98[_0x57f39b(0x9e)](issue('error','frontmatter-required',_0x5269a8,_0x57f39b(0xc7),_0x57f39b(0xcf)));return;}!_0x521b96['name']?.[_0x57f39b(0x9d)]()&&_0x37eb98[_0x57f39b(0x9e)](issue(_0x57f39b(0xe5),_0x57f39b(0xaa),_0x5269a8,'Frontmatter\x20name\x20is\x20missing.',_0x57f39b(0xbd))),!_0x521b96[_0x57f39b(0xbc)]?.['trim']()&&_0x37eb98[_0x57f39b(0x9e)](issue(_0x57f39b(0xe5),_0x57f39b(0xc8),_0x5269a8,'Frontmatter\x20description\x20is\x20empty.',_0x57f39b(0xa0))),_0x521b96['internal']===!![]&&_0x37eb98[_0x57f39b(0x9e)](issue(_0x57f39b(0xe5),_0x57f39b(0xed),_0x5269a8,_0x57f39b(0xab),'Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.')),_0x521b96[_0x57f39b(0xc6)]?.[_0x57f39b(0x9d)]()&&!SUPPORTED_SKILL_TYPES['has'](_0x521b96[_0x57f39b(0xc6)])&&_0x37eb98[_0x57f39b(0x9e)](issue('error',_0x57f39b(0xaa),_0x5269a8,_0x57f39b(0xc1),_0x57f39b(0xac)));}function validateRuntimeCliReferences(_0x21278b,_0x274164){const _0x5ad9a0=a46_0xa354a;for(const _0x153057 of findRabetbaseCliInvocations(_0x21278b)){_0x274164[_0x5ad9a0(0x9e)](issue(_0x5ad9a0(0xd8),_0x5ad9a0(0xb7),_0x153057[_0x5ad9a0(0xb4)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x5ad9a0(0xb1),'L'+_0x153057[_0x5ad9a0(0xb3)]));}}function findRabetbaseCliInvocations(_0x5f9d0f){const _0x508f16=a46_0xa354a;return scanSkillDirectory(_0x5f9d0f)[_0x508f16(0xa2)](_0xaccbfe=>TEXT_SKILL_FILE_PATTERN[_0x508f16(0xa1)](_0xaccbfe['path']))[_0x508f16(0xad)](_0x237e45=>{const _0x22c859=_0x508f16,_0x5678ad=fileText(_0x237e45);return _0x5678ad[_0x22c859(0xc2)](/\r?\n/)[_0x22c859(0xe3)]((_0x1c277d,_0x5cb6ce)=>({'file':_0x237e45[_0x22c859(0xa8)],'line':_0x5cb6ce+0x1,'text':_0x1c277d}))[_0x22c859(0xa2)](({text:_0x12c54f})=>isRabetbaseCliInvocation(_0x12c54f))['map'](({file:_0x25fa7e,line:_0x125684})=>({'file':_0x25fa7e,'line':_0x125684}));});}const RABETBASE_SUBCOMMANDS=[a46_0xa354a(0xc4),a46_0xa354a(0xc5),a46_0xa354a(0xe1),a46_0xa354a(0xcb),a46_0xa354a(0xdf),a46_0xa354a(0xa5),'schema','service',a46_0xa354a(0xd6),'kb',a46_0xa354a(0xd5),a46_0xa354a(0xb8),a46_0xa354a(0xb0),'auth',a46_0xa354a(0xb5),a46_0xa354a(0xd2)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS[a46_0xa354a(0xcd)]('|')})\b`+String['raw']`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x823ce){const _0x4b6851=a46_0xa354a,_0x312b11=_0x823ce['search'](/\brabetbase\b/i);if(_0x312b11<0x0)return![];const _0x4f3acf=_0x823ce[_0x4b6851(0xaf)](_0x312b11)[_0x4b6851(0xc2)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x4b6851(0xa1)](_0x4f3acf);}function parseFrontmatter(_0x2f56fc){const _0x190365=a46_0xa354a,_0x598dbf=_0x2f56fc[_0x190365(0xdd)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x598dbf)return{'hasFrontmatter':![]};const _0xb06cb8=_0x598dbf[0x1]??'',_0x1f061d={'hasFrontmatter':!![]};let _0x2ce373=![];for(const _0x3b44d0 of _0xb06cb8[_0x190365(0xc2)](/\r?\n/)){if(/^\s*$/[_0x190365(0xa1)](_0x3b44d0))continue;const _0x521f80=_0x3b44d0[_0x190365(0xdd)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x521f80){const _0x101ecb=_0x521f80[0x1],_0x23eed4=cleanScalar(_0x521f80[0x2]??'');_0x2ce373=_0x101ecb===_0x190365(0xe6);if(_0x101ecb===_0x190365(0xcc))_0x1f061d[_0x190365(0xcc)]=_0x23eed4;if(_0x101ecb==='description')_0x1f061d['description']=_0x23eed4;continue;}const _0x338650=_0x3b44d0[_0x190365(0xdd)](/^\s+type:\s*(.*)$/);if(_0x2ce373&&_0x338650){_0x1f061d[_0x190365(0xc6)]=cleanScalar(_0x338650[0x1]??'');continue;}const _0x293d28=_0x3b44d0[_0x190365(0xdd)](/^\s+internal:\s*(.*)$/);_0x2ce373&&_0x293d28&&(_0x1f061d[_0x190365(0xe7)]=cleanBoolean(_0x293d28[0x1]??''));}return _0x1f061d;}function cleanScalar(_0x18fe73){const _0x5d91db=a46_0xa354a,_0x55764f=_0x18fe73[_0x5d91db(0x9d)]();if(_0x55764f['startsWith']('\x22')&&_0x55764f['endsWith']('\x22')||_0x55764f[_0x5d91db(0xba)]('\x27')&&_0x55764f[_0x5d91db(0xa7)]('\x27'))return _0x55764f[_0x5d91db(0xaf)](0x1,-0x1);return _0x55764f;}function a46_0x5a0e(_0x5123b4,_0x107c35){_0x5123b4=_0x5123b4-0x9b;const _0x4299fa=a46_0x4299();let _0x5a0e1c=_0x4299fa[_0x5123b4];return _0x5a0e1c;}function cleanBoolean(_0x5d5fb6){const _0x52e390=a46_0xa354a,_0x172d5b=cleanScalar(_0x5d5fb6)[_0x52e390(0xa6)]();if(_0x172d5b===_0x52e390(0xdc))return!![];if(_0x172d5b===_0x52e390(0xb9))return![];return undefined;}function issue(_0x3e32ef,_0x28d33a,_0x10c6b7,_0x5b9afa,_0xebe4ca,_0x11a087){return{'level':_0x3e32ef,'ruleId':_0x28d33a,'file':_0x10c6b7,'section':_0x11a087,'message':_0x5b9afa,'suggestion':_0xebe4ca};}
@@ -1 +1 @@
1
- const a47_0x1bf1a8=a47_0x4f7e;(function(_0x51e6f3,_0x556ab3){const _0x2ff5ec=a47_0x4f7e,_0x26611a=_0x51e6f3();while(!![]){try{const _0x574f79=parseInt(_0x2ff5ec(0x1a7))/0x1+-parseInt(_0x2ff5ec(0x1aa))/0x2*(parseInt(_0x2ff5ec(0x1af))/0x3)+-parseInt(_0x2ff5ec(0x1a5))/0x4*(parseInt(_0x2ff5ec(0x1a6))/0x5)+parseInt(_0x2ff5ec(0x1b5))/0x6*(-parseInt(_0x2ff5ec(0x1b0))/0x7)+-parseInt(_0x2ff5ec(0x1b1))/0x8+parseInt(_0x2ff5ec(0x1ad))/0x9*(parseInt(_0x2ff5ec(0x1a3))/0xa)+parseInt(_0x2ff5ec(0x1a9))/0xb;if(_0x574f79===_0x556ab3)break;else _0x26611a['push'](_0x26611a['shift']());}catch(_0x1c3efe){_0x26611a['push'](_0x26611a['shift']());}}}(a47_0x5059,0x2aec2));function a47_0x5059(){const _0x3d8e46=['sqlName','2039679HSduBc','verbose','15KTbatA','9331BFDDSw','1768216yiLTpc','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlContent','appCode','474LGylTG','dbId','bool','10ykWPtf','read','532fSAxlG','10995DFZlSy','131672IEoFkb','sql','8003908vTIiCf','116528FgmZyb','sqlCode'];a47_0x5059=function(){return _0x3d8e46;};return a47_0x5059();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a47_0x4f7e(_0xb8aa0e,_0x11b931){_0xb8aa0e=_0xb8aa0e-0x1a2;const _0x50595f=a47_0x5059();let _0x4f7eff=_0x50595f[_0xb8aa0e];return _0x4f7eff;}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a47_0x1bf1a8(0x1a8),'command':'detail','description':a47_0x1bf1a8(0x1b2),'risk':a47_0x1bf1a8(0x1a4),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x13bcf5){const _0x4a2dd2=a47_0x1bf1a8,_0x51b17c=await getSqlQueryInfo(_0x13bcf5['appCode'],_0x13bcf5['str']('sqlcode')),_0x3bb818=_0x13bcf5[_0x4a2dd2(0x1a2)](_0x4a2dd2(0x1ae));if(_0x3bb818)return{'ok':!![],'data':_0x51b17c};const _0x33720c=_0x51b17c[_0x4a2dd2(0x1b6)]?await getDbName(_0x13bcf5[_0x4a2dd2(0x1b4)],_0x51b17c['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x51b17c[_0x4a2dd2(0x1ab)],'sqlName':_0x51b17c[_0x4a2dd2(0x1ac)],'db':_0x33720c?_0x33720c+'\x20('+_0x51b17c[_0x4a2dd2(0x1b6)]+')':_0x51b17c['dbId']??'','description':_0x51b17c['description']??'','sqlContent':_0x51b17c[_0x4a2dd2(0x1b3)]??''}};}};
1
+ const a47_0x499cab=a47_0x3d3b;(function(_0x5be9c0,_0x3dfacd){const _0xa22ba7=a47_0x3d3b,_0x39c208=_0x5be9c0();while(!![]){try{const _0x3f6e21=-parseInt(_0xa22ba7(0x142))/0x1+-parseInt(_0xa22ba7(0x141))/0x2+-parseInt(_0xa22ba7(0x145))/0x3*(parseInt(_0xa22ba7(0x14d))/0x4)+-parseInt(_0xa22ba7(0x13f))/0x5*(parseInt(_0xa22ba7(0x14c))/0x6)+-parseInt(_0xa22ba7(0x148))/0x7+parseInt(_0xa22ba7(0x14e))/0x8*(-parseInt(_0xa22ba7(0x146))/0x9)+parseInt(_0xa22ba7(0x14a))/0xa;if(_0x3f6e21===_0x3dfacd)break;else _0x39c208['push'](_0x39c208['shift']());}catch(_0x108673){_0x39c208['push'](_0x39c208['shift']());}}}(a47_0x37b1,0xe7d1f));function a47_0x3d3b(_0x365c70,_0x280260){_0x365c70=_0x365c70-0x13f;const _0x37b109=a47_0x37b1();let _0x3d3b2d=_0x37b109[_0x365c70];return _0x3d3b2d;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a47_0x37b1(){const _0x1103f5=['16687386nShTWs','dbId','3392158XTzQls','verbose','53507320FBDJKa','appCode','21108caxsXP','94992oghZIR','8kgtsrl','read','sqlCode','sqlContent','sqlName','680NNDkJA','description','1897686TitVIy','207694nPlKzk','sql','bool','54veAIEy'];a47_0x37b1=function(){return _0x1103f5;};return a47_0x37b1();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a47_0x499cab(0x143),'command':'detail','description':'Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','risk':a47_0x499cab(0x14f),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4962c6){const _0x541026=a47_0x499cab,_0x38d383=await getSqlQueryInfo(_0x4962c6[_0x541026(0x14b)],_0x4962c6['str']('sqlcode')),_0x3ad2de=_0x4962c6[_0x541026(0x144)](_0x541026(0x149));if(_0x3ad2de)return{'ok':!![],'data':_0x38d383};const _0x310636=_0x38d383[_0x541026(0x147)]?await getDbName(_0x4962c6['appCode'],_0x38d383[_0x541026(0x147)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x38d383[_0x541026(0x150)],'sqlName':_0x38d383[_0x541026(0x152)],'db':_0x310636?_0x310636+'\x20('+_0x38d383[_0x541026(0x147)]+')':_0x38d383[_0x541026(0x147)]??'','description':_0x38d383[_0x541026(0x140)]??'','sqlContent':_0x38d383[_0x541026(0x151)]??''}};}};
@@ -1 +1 @@
1
- const a48_0x346697=a48_0x4a0d;function a48_0x4a0d(_0x1f5498,_0x426eb5){_0x1f5498=_0x1f5498-0xd4;const _0x308993=a48_0x3089();let _0x4a0d33=_0x308993[_0x1f5498];return _0x4a0d33;}(function(_0x4e2d61,_0x4158be){const _0xb75038=a48_0x4a0d,_0x35c685=_0x4e2d61();while(!![]){try{const _0x1758d0=parseInt(_0xb75038(0xe5))/0x1+parseInt(_0xb75038(0xe6))/0x2+parseInt(_0xb75038(0xeb))/0x3*(parseInt(_0xb75038(0xda))/0x4)+-parseInt(_0xb75038(0xea))/0x5*(-parseInt(_0xb75038(0xe7))/0x6)+parseInt(_0xb75038(0xe8))/0x7+parseInt(_0xb75038(0xdd))/0x8*(-parseInt(_0xb75038(0xdb))/0x9)+-parseInt(_0xb75038(0xd7))/0xa*(parseInt(_0xb75038(0xd4))/0xb);if(_0x1758d0===_0x4158be)break;else _0x35c685['push'](_0x35c685['shift']());}catch(_0x14402f){_0x35c685['push'](_0x35c685['shift']());}}}(a48_0x3089,0xe27e9));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a48_0x3089(){const _0x18f35f=['execSuccess','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','isArray','sql','995512BgzAOc','1591384mwUgYy','5874LGLyUP','6841107DrVCXE','SQL\x20execution\x20failed','1735bDdpTk','3tROAKG','22yeJGPp','execResult','exec','14355670YuFPMv','params','length','3359288VMsKYK','45fWvJyY','\x20row(s)\x20in\x20','238696tUNqgN','execError','now','str'];a48_0x3089=function(){return _0x18f35f;};return a48_0x3089();}export const sqlExec={'service':a48_0x346697(0xe4),'command':a48_0x346697(0xd6),'description':a48_0x346697(0xe2),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x472506){const _0xa4715=a48_0x346697,_0x47876c=parseJsonParams(_0x472506[_0xa4715(0xe0)](_0xa4715(0xd8))),_0x2f6bac=Date[_0xa4715(0xdf)](),_0x39b293=await executeSdkSql(_0x472506[_0xa4715(0xe0)]('sqlcode'),_0x47876c),_0x1180be=Date['now']()-_0x2f6bac,_0x21e2c8=_0x39b293?.[_0xa4715(0xd5)]??_0x39b293,_0x57bcb6=_0x39b293?.[_0xa4715(0xe1)]??!![];if(!_0x57bcb6)return{'ok':![],'data':{'error':_0x39b293?.[_0xa4715(0xde)]||_0xa4715(0xe9),'elapsed':_0x1180be},'message':_0xa4715(0xe9)};const _0x28ce63=Array[_0xa4715(0xe3)](_0x21e2c8)?_0x21e2c8:[];return{'ok':!![],'data':{'rows':_0x28ce63,'rowCount':_0x28ce63['length'],'elapsed':_0x1180be},'message':'Returned\x20'+_0x28ce63[_0xa4715(0xd9)]+_0xa4715(0xdc)+_0x1180be+'ms'};}};
1
+ function a48_0x34a2(){const _0x404da3=['str','\x20row(s)\x20in\x20','SQL\x20execution\x20failed','sql','7020666KOhGOx','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','958223lzYmpm','702qzEsXQ','299889HTwdow','read','3657104wrKacw','execError','18LgxiUt','length','execSuccess','137896EyIlju','isArray','1877ICUlAD','110NcVEgm','19180000hvdKiX','sqlcode','execResult'];a48_0x34a2=function(){return _0x404da3;};return a48_0x34a2();}const a48_0x2f4f56=a48_0x1429;(function(_0x15f10f,_0x4d6f10){const _0x6cd9d0=a48_0x1429,_0x1da26a=_0x15f10f();while(!![]){try{const _0xdf1173=parseInt(_0x6cd9d0(0x173))/0x1*(-parseInt(_0x6cd9d0(0x169))/0x2)+-parseInt(_0x6cd9d0(0x16a))/0x3+parseInt(_0x6cd9d0(0x171))/0x4*(-parseInt(_0x6cd9d0(0x174))/0x5)+parseInt(_0x6cd9d0(0x16e))/0x6*(parseInt(_0x6cd9d0(0x168))/0x7)+parseInt(_0x6cd9d0(0x16c))/0x8+-parseInt(_0x6cd9d0(0x166))/0x9+parseInt(_0x6cd9d0(0x175))/0xa;if(_0xdf1173===_0x4d6f10)break;else _0x1da26a['push'](_0x1da26a['shift']());}catch(_0x5f20cf){_0x1da26a['push'](_0x1da26a['shift']());}}}(a48_0x34a2,0x77441));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';function a48_0x1429(_0x447712,_0x303b5a){_0x447712=_0x447712-0x163;const _0x34a2b8=a48_0x34a2();let _0x1429ed=_0x34a2b8[_0x447712];return _0x1429ed;}export const sqlExec={'service':a48_0x2f4f56(0x165),'command':'exec','description':a48_0x2f4f56(0x167),'risk':a48_0x2f4f56(0x16b),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x121af7){const _0x49743f=a48_0x2f4f56,_0x182bfa=parseJsonParams(_0x121af7[_0x49743f(0x178)]('params')),_0x1a1e87=Date['now'](),_0x33f538=await executeSdkSql(_0x121af7[_0x49743f(0x178)](_0x49743f(0x176)),_0x182bfa),_0x12f88e=Date['now']()-_0x1a1e87,_0x26f752=_0x33f538?.[_0x49743f(0x177)]??_0x33f538,_0x64b398=_0x33f538?.[_0x49743f(0x170)]??!![];if(!_0x64b398)return{'ok':![],'data':{'error':_0x33f538?.[_0x49743f(0x16d)]||_0x49743f(0x164),'elapsed':_0x12f88e},'message':'SQL\x20execution\x20failed'};const _0x2e36f7=Array[_0x49743f(0x172)](_0x26f752)?_0x26f752:[];return{'ok':!![],'data':{'rows':_0x2e36f7,'rowCount':_0x2e36f7[_0x49743f(0x16f)],'elapsed':_0x12f88e},'message':'Returned\x20'+_0x2e36f7[_0x49743f(0x16f)]+_0x49743f(0x163)+_0x12f88e+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x500aac,_0x384cc9){const _0x562948=a49_0x6ee2,_0x117612=_0x500aac();while(!![]){try{const _0x4a772b=-parseInt(_0x562948(0x115))/0x1+parseInt(_0x562948(0x116))/0x2+-parseInt(_0x562948(0x10f))/0x3+parseInt(_0x562948(0x10e))/0x4*(parseInt(_0x562948(0x111))/0x5)+parseInt(_0x562948(0x110))/0x6+-parseInt(_0x562948(0x114))/0x7*(-parseInt(_0x562948(0x113))/0x8)+-parseInt(_0x562948(0x112))/0x9;if(_0x4a772b===_0x384cc9)break;else _0x117612['push'](_0x117612['shift']());}catch(_0x2f3a3d){_0x117612['push'](_0x117612['shift']());}}}(a49_0x11bc,0x3af77));import{sqlDetail}from'../../commands/sql/detail.js';function a49_0x11bc(){const _0x23799f=['2463030LKEnxH','2294080prhJng','7416252PkQgDA','16TZuVwp','1147748tiHuYN','91455riJaxK','378272oaJOxf','4BDhElx','688125DIWFWh'];a49_0x11bc=function(){return _0x23799f;};return a49_0x11bc();}function a49_0x6ee2(_0x30df40,_0x40c946){_0x30df40=_0x30df40-0x10e;const _0x11bc0d=a49_0x11bc();let _0x6ee2d7=_0x11bc0d[_0x30df40];return _0x6ee2d7;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ (function(_0x40f39c,_0x390c06){const _0x5ae975=a49_0x9516,_0x37b0ac=_0x40f39c();while(!![]){try{const _0x3900b1=parseInt(_0x5ae975(0x1bb))/0x1*(-parseInt(_0x5ae975(0x1b5))/0x2)+parseInt(_0x5ae975(0x1b9))/0x3+parseInt(_0x5ae975(0x1bd))/0x4+-parseInt(_0x5ae975(0x1bc))/0x5+parseInt(_0x5ae975(0x1ba))/0x6*(-parseInt(_0x5ae975(0x1b3))/0x7)+-parseInt(_0x5ae975(0x1b6))/0x8*(parseInt(_0x5ae975(0x1b7))/0x9)+parseInt(_0x5ae975(0x1b8))/0xa*(parseInt(_0x5ae975(0x1b4))/0xb);if(_0x3900b1===_0x390c06)break;else _0x37b0ac['push'](_0x37b0ac['shift']());}catch(_0x44797d){_0x37b0ac['push'](_0x37b0ac['shift']());}}}(a49_0x4c0e,0x7636b));import{sqlDetail}from'../../commands/sql/detail.js';function a49_0x9516(_0x10db2e,_0xdaeb91){_0x10db2e=_0x10db2e-0x1b3;const _0x4c0e50=a49_0x4c0e();let _0x951660=_0x4c0e50[_0x10db2e];return _0x951660;}import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];function a49_0x4c0e(){const _0x12c310=['203526xSzqAK','25471dgtucJ','4499225SOvGiH','406020PPmtiQ','91bUYvif','11hWxyBC','28vFEliW','2007912hSRAnv','18fPeZFC','23594290dXIBZR','667977QZegUm'];a49_0x4c0e=function(){return _0x12c310;};return a49_0x4c0e();}
@@ -1 +1 @@
1
- const a50_0x561c38=a50_0x1172;(function(_0x13c546,_0x554d32){const _0x31aedb=a50_0x1172,_0x21a94c=_0x13c546();while(!![]){try{const _0x1ec699=parseInt(_0x31aedb(0x205))/0x1+parseInt(_0x31aedb(0x221))/0x2+parseInt(_0x31aedb(0x1e0))/0x3*(parseInt(_0x31aedb(0x1e6))/0x4)+-parseInt(_0x31aedb(0x218))/0x5+parseInt(_0x31aedb(0x1e3))/0x6+-parseInt(_0x31aedb(0x1df))/0x7*(-parseInt(_0x31aedb(0x1da))/0x8)+-parseInt(_0x31aedb(0x208))/0x9;if(_0x1ec699===_0x554d32)break;else _0x21a94c['push'](_0x21a94c['shift']());}catch(_0x26dab3){_0x21a94c['push'](_0x21a94c['shift']());}}}(a50_0x2550,0x51bd4));import{spawnSync}from'node:child_process';function a50_0x1172(_0x1d8c7b,_0x300217){_0x1d8c7b=_0x1d8c7b-0x1d7;const _0x255014=a50_0x2550();let _0x117213=_0x255014[_0x1d8c7b];return _0x117213;}import{CliErrors}from'../errors.js';function a50_0x2550(){const _0x3804ef=['stderr','run','update','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','\x20version\x20from\x20npm.','source','skills','=1).','validation','install','fromEntries','Update\x20failed:\x20','toString','status','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','126844NGGAsG','Current\x20version:\x20','warn','13025745rYIkTq','object','pipe','version','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','/dist-tags','bool','Already\x20up\x20to\x20date\x20(v','nonInteractive','Checking\x20npm\x20dist-tags...','unknown','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','minor','stdout','no-skills','297555JUtloG','str','match','trim','Checking\x20CLI\x20Built-in\x20Skill...','latest','error','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','cwd','544020SsSWBp','Install\x20a\x20specific\x20CLI\x20version','message','boolean','log','beta','/-/package/','3176072ZLxLqt','exit\x20','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','prerelease','7DRcUEw','15843FQVTGT','patch','write','2630652fRADXU','timeout','inherit','460zWVDWH','entries','string','flag','length','Unable\x20to\x20resolve\x20','\x20->\x20','Version\x20comparison\x20failed.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','skipped','args','json','filter','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','\x20CLI\x20from\x20npm'];a50_0x2550=function(){return _0x3804ef;};return a50_0x2550();}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':a50_0x561c38(0x21d),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x21f),'default':![]},{'name':a50_0x561c38(0x1d8),'type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a50_0x561c38(0x222)},{'name':a50_0x561c38(0x217),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x1f3),'default':![]},{'name':a50_0x561c38(0x1fc),'type':a50_0x561c38(0x224),'description':a50_0x561c38(0x1f9),'default':!![],'hidden':!![]}];function parseSemver(_0x385703){const _0x4d04fd=a50_0x561c38,_0x3a3ae6=_0x385703['trim']()[_0x4d04fd(0x21a)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x3a3ae6)return null;return{'major':Number(_0x3a3ae6[0x1]),'minor':Number(_0x3a3ae6[0x2]),'patch':Number(_0x3a3ae6[0x3]),'prerelease':_0x3a3ae6[0x4]};}function compareSemver(_0x54e01e,_0x347e2c){const _0x488154=a50_0x561c38,_0xd89fda=parseSemver(_0x54e01e),_0x1f5c0a=parseSemver(_0x347e2c);if(!_0xd89fda||!_0x1f5c0a)throw CliErrors['validation'](_0x488154(0x1ed),_0x488154(0x1dc));for(const _0x2076a8 of['major',_0x488154(0x215),_0x488154(0x1e1)]){if(_0xd89fda[_0x2076a8]<_0x1f5c0a[_0x2076a8])return-0x1;if(_0xd89fda[_0x2076a8]>_0x1f5c0a[_0x2076a8])return 0x1;}if(!_0xd89fda['prerelease']&&!_0x1f5c0a[_0x488154(0x1de)])return 0x0;if(!_0xd89fda[_0x488154(0x1de)])return 0x1;if(!_0x1f5c0a[_0x488154(0x1de)])return-0x1;if(_0xd89fda[_0x488154(0x1de)]===_0x1f5c0a[_0x488154(0x1de)])return 0x0;return _0xd89fda[_0x488154(0x1de)]<_0x1f5c0a[_0x488154(0x1de)]?-0x1:0x1;}function getRequestedVersion(_0x5bcaeb){const _0x3b6c47=a50_0x561c38,_0x2b9c12=_0x5bcaeb[_0x3b6c47(0x219)](_0x3b6c47(0x20b))[_0x3b6c47(0x21b)]();if(_0x2b9c12)return _0x2b9c12;return String(_0x5bcaeb[_0x3b6c47(0x1f0)]?.[0x0]??'')[_0x3b6c47(0x21b)]();}function shouldSkipCliBuiltInSkill(_0x5e3593){const _0x514733=a50_0x561c38;return _0x5e3593[_0x514733(0x20f)]('no-skills')||_0x5e3593[_0x514733(0x1e9)](_0x514733(0x1fc))===![];}async function validateUpdateFlags(_0x13eb74){const _0x40636a=a50_0x561c38,_0x770675=getRequestedVersion(_0x13eb74),_0x5541e5=[_0x13eb74[_0x40636a(0x20f)]('latest')?'latest':'',_0x13eb74[_0x40636a(0x20f)](_0x40636a(0x1d8))?'beta':'',_0x770675?_0x40636a(0x20b):''][_0x40636a(0x1f2)](Boolean);if(_0x5541e5[_0x40636a(0x1ea)]>0x1)throw CliErrors[_0x40636a(0x1fe)](_0x40636a(0x1f4),'Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.');if(_0x770675&&!parseSemver(_0x770675))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x770675,_0x40636a(0x20c));}async function fetchNpmDistTags(){const _0x1edd8d=a50_0x561c38;try{const _0x4359c4=NPM_REGISTRY_BASE_URL+_0x1edd8d(0x1d9)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x1edd8d(0x20e),_0x5a4da6=await fetch(_0x4359c4,{'signal':AbortSignal[_0x1edd8d(0x1e4)](0x2710)});if(!_0x5a4da6['ok'])return null;const _0x2d37f0=await _0x5a4da6[_0x1edd8d(0x1f1)]();if(!_0x2d37f0||typeof _0x2d37f0!==_0x1edd8d(0x209))return null;return Object[_0x1edd8d(0x200)](Object[_0x1edd8d(0x1e7)](_0x2d37f0)[_0x1edd8d(0x1f2)](([,_0x53b5d3])=>typeof _0x53b5d3===_0x1edd8d(0x1e8)&&_0x53b5d3['trim']())['map'](([_0x5a946e,_0x1fc899])=>[_0x5a946e,String(_0x1fc899)[_0x1edd8d(0x21b)]()]));}catch{return null;}}async function resolveTargetVersion(_0x5a8ecd){const _0x106fe5=a50_0x561c38,_0x1da15e=getRequestedVersion(_0x5a8ecd);if(_0x1da15e)return{'version':_0x1da15e,'source':_0x106fe5(0x20b)};const _0xfb365c=_0x5a8ecd['bool']('beta')?_0x106fe5(0x1d8):_0x106fe5(0x21d),_0xbfc003=await fetchNpmDistTags(),_0x3c7732=_0xbfc003?.[_0xfb365c];if(!_0x3c7732)return null;return{'version':_0x3c7732,'source':_0xfb365c};}function shouldInstallTarget(_0x119820,_0x420df5){const _0x59ee2f=a50_0x561c38,_0x436569=compareSemver(_0x119820,_0x420df5['version']);if(_0x420df5[_0x59ee2f(0x1fb)]===_0x59ee2f(0x20b))return _0x436569!==0x0;return _0x436569<0x0;}function installCliPackage(_0x4719e7,_0x298bd5){const _0x1b03a7=a50_0x561c38,_0x55ee3d=resolveNpmBin('npm'),_0x1237b4=[_0x1b03a7(0x1ff),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4719e7];console[_0x1b03a7(0x1d7)]('*\x20'+[_0x55ee3d,..._0x1237b4]['join']('\x20'));const _0x2b7dcb=spawnSync(_0x55ee3d,_0x1237b4,{'cwd':process[_0x1b03a7(0x220)](),'stdio':_0x298bd5?'pipe':'inherit','env':process.env,'shell':![]});if(_0x2b7dcb[_0x1b03a7(0x203)]===0x0)return{'ok':!![]};let _0x56ea12=_0x2b7dcb[_0x1b03a7(0x21e)]?.[_0x1b03a7(0x223)]||_0x1b03a7(0x1db)+(_0x2b7dcb['status']??_0x1b03a7(0x213));if(_0x298bd5){const _0x46e79d=_0x2b7dcb['stderr']?_0x2b7dcb[_0x1b03a7(0x1f6)][_0x1b03a7(0x202)]()[_0x1b03a7(0x21b)]():'',_0x5f3ec5=_0x2b7dcb[_0x1b03a7(0x216)]?_0x2b7dcb[_0x1b03a7(0x216)]['toString']()['trim']():'';if(_0x46e79d)_0x56ea12=_0x46e79d;else{if(_0x5f3ec5)_0x56ea12=_0x5f3ec5;}}return{'ok':![],'error':_0x56ea12};}async function installCliBuiltInSkill(_0x4933e8){const _0x2e8b90=a50_0x561c38;console[_0x2e8b90(0x1d7)](_0x2e8b90(0x21c));const _0x6a0de=runNpxSkillsAddGlobal(process[_0x2e8b90(0x220)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x4933e8?_0x2e8b90(0x20a):_0x2e8b90(0x1e5)});if(_0x6a0de[_0x2e8b90(0x1ef)]){console['log'](_0x2e8b90(0x214)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x2e8b90(0x1fd));return;}if(_0x6a0de['ok']){console[_0x2e8b90(0x1d7)](_0x2e8b90(0x1dd));return;}console['warn']('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x6a0de['error']||_0x2e8b90(0x213))),console[_0x2e8b90(0x1d7)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x215e8d){const _0x3a0ae1=a50_0x561c38;await validateUpdateFlags(_0x215e8d);const _0x162ed9=getCliVersion();console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x206)+_0x162ed9),console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x212));const _0x42c6d6=await resolveTargetVersion(_0x215e8d);if(!_0x42c6d6){const _0x4ed196=_0x215e8d[_0x3a0ae1(0x20f)](_0x3a0ae1(0x1d8))?_0x3a0ae1(0x1d8):_0x3a0ae1(0x21d),_0x4af873=_0x3a0ae1(0x1eb)+_0x4ed196+_0x3a0ae1(0x1fa);return console[_0x3a0ae1(0x207)](_0x4af873),console['log'](_0x3a0ae1(0x1ee)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4ed196),{'ok':![]};}if(!shouldInstallTarget(_0x162ed9,_0x42c6d6)){const _0xf4a8c3=_0x42c6d6[_0x3a0ae1(0x1fb)]===_0x3a0ae1(0x20b)?'Already\x20on\x20requested\x20version\x20(v'+_0x42c6d6[_0x3a0ae1(0x20b)]+').':_0x3a0ae1(0x210)+_0x42c6d6[_0x3a0ae1(0x20b)]+').';return console[_0x3a0ae1(0x1d7)](_0xf4a8c3),shouldSkipCliBuiltInSkill(_0x215e8d)?console['log'](_0x3a0ae1(0x20d)):await installCliBuiltInSkill(_0x215e8d['nonInteractive']),{'ok':!![]};}console['log']('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x162ed9+_0x3a0ae1(0x1ec)+_0x42c6d6[_0x3a0ae1(0x20b)]);const _0x589776=installCliPackage(_0x42c6d6[_0x3a0ae1(0x20b)],_0x215e8d[_0x3a0ae1(0x211)]);if(!_0x589776['ok']){const _0x1479e4=_0x3a0ae1(0x201)+(_0x589776['error']||_0x3a0ae1(0x213));return console[_0x3a0ae1(0x21e)](_0x1479e4),console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x204)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x42c6d6['version']),{'ok':![]};}return console[_0x3a0ae1(0x1d7)]('Updated\x20to\x20v'+_0x42c6d6[_0x3a0ae1(0x20b)]+'.'),console[_0x3a0ae1(0x1d7)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'),shouldSkipCliBuiltInSkill(_0x215e8d)?console[_0x3a0ae1(0x1d7)](_0x3a0ae1(0x20d)):await installCliBuiltInSkill(_0x215e8d['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a50_0x561c38(0x1f8),'command':a50_0x561c38(0x1f7),'description':'Update\x20'+CLI_BIN_NAME+a50_0x561c38(0x1f5),'risk':a50_0x561c38(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ function a50_0x36fc(){const _0x2d251a=['18090qVdKnm','Version\x20comparison\x20failed.','stdout','339AyDawP','bool','Install\x20a\x20specific\x20CLI\x20version','minor','latest','toString','error','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','pipe','update','boolean','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','trim','3179750hOWEXT','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','install','Already\x20on\x20requested\x20version\x20(v','Already\x20up\x20to\x20date\x20(v','=1).','flag','skipped','/dist-tags','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','args','patch','fromEntries','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','source','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','exit\x20','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','message','stderr','Checking\x20CLI\x20Built-in\x20Skill...','string','version','cwd','\x20->\x20','362057Nlvkaw','inherit','3738354BjHFyI','539jlYyya','major','status','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','timeout','skills','filter','no-skills','str','113856BfywRM','prerelease','5880972LvmFVk','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','match','9098982QIhadm','\x20version\x20from\x20npm.','write','run','map','validation','warn','/-/package/','beta','Current\x20version:\x20','log','nonInteractive','\x20CLI\x20from\x20npm','unknown'];a50_0x36fc=function(){return _0x2d251a;};return a50_0x36fc();}const a50_0x536600=a50_0x4004;(function(_0x295269,_0xa2457b){const _0x14b12b=a50_0x4004,_0x241986=_0x295269();while(!![]){try{const _0x38c5a5=parseInt(_0x14b12b(0xca))/0x1+-parseInt(_0x14b12b(0xa1))/0x2*(-parseInt(_0x14b12b(0xa4))/0x3)+parseInt(_0x14b12b(0xd9))/0x4+parseInt(_0x14b12b(0xb1))/0x5+-parseInt(_0x14b12b(0xcc))/0x6+parseInt(_0x14b12b(0xcd))/0x7*(-parseInt(_0x14b12b(0xd7))/0x8)+-parseInt(_0x14b12b(0xdc))/0x9;if(_0x38c5a5===_0xa2457b)break;else _0x241986['push'](_0x241986['shift']());}catch(_0x11e44a){_0x241986['push'](_0x241986['shift']());}}}(a50_0x36fc,0xb9a5e));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';function a50_0x4004(_0x20c1fb,_0x3a52ab){_0x20c1fb=_0x20c1fb-0x99;const _0x36fc7e=a50_0x36fc();let _0x400444=_0x36fc7e[_0x20c1fb];return _0x400444;}import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':'latest','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','default':![]},{'name':a50_0x536600(0x9b),'type':'boolean','description':a50_0x536600(0xc0),'default':![]},{'name':a50_0x536600(0xc7),'type':a50_0x536600(0xc6),'description':a50_0x536600(0xa6)},{'name':a50_0x536600(0xd5),'type':a50_0x536600(0xae),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a50_0x536600(0xd3),'type':a50_0x536600(0xae),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x12cd19){const _0x50428a=a50_0x536600,_0x906fb8=_0x12cd19[_0x50428a(0xb0)]()[_0x50428a(0xdb)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x906fb8)return null;return{'major':Number(_0x906fb8[0x1]),'minor':Number(_0x906fb8[0x2]),'patch':Number(_0x906fb8[0x3]),'prerelease':_0x906fb8[0x4]};}function compareSemver(_0x869494,_0x298ad8){const _0x5b0544=a50_0x536600,_0x4cea92=parseSemver(_0x869494),_0x4b01b9=parseSemver(_0x298ad8);if(!_0x4cea92||!_0x4b01b9)throw CliErrors[_0x5b0544(0xe1)](_0x5b0544(0xa2),_0x5b0544(0xd1));for(const _0xc2d11e of[_0x5b0544(0xce),_0x5b0544(0xa7),_0x5b0544(0xbc)]){if(_0x4cea92[_0xc2d11e]<_0x4b01b9[_0xc2d11e])return-0x1;if(_0x4cea92[_0xc2d11e]>_0x4b01b9[_0xc2d11e])return 0x1;}if(!_0x4cea92[_0x5b0544(0xd8)]&&!_0x4b01b9[_0x5b0544(0xd8)])return 0x0;if(!_0x4cea92[_0x5b0544(0xd8)])return 0x1;if(!_0x4b01b9[_0x5b0544(0xd8)])return-0x1;if(_0x4cea92['prerelease']===_0x4b01b9[_0x5b0544(0xd8)])return 0x0;return _0x4cea92[_0x5b0544(0xd8)]<_0x4b01b9[_0x5b0544(0xd8)]?-0x1:0x1;}function getRequestedVersion(_0x3e9fe3){const _0x1cf3b0=a50_0x536600,_0x5b3c43=_0x3e9fe3[_0x1cf3b0(0xd6)](_0x1cf3b0(0xc7))[_0x1cf3b0(0xb0)]();if(_0x5b3c43)return _0x5b3c43;return String(_0x3e9fe3[_0x1cf3b0(0xbb)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x43da0b){const _0x32224d=a50_0x536600;return _0x43da0b[_0x32224d(0xa5)](_0x32224d(0xd5))||_0x43da0b[_0x32224d(0xb7)](_0x32224d(0xd3))===![];}async function validateUpdateFlags(_0x42fa93){const _0x519991=a50_0x536600,_0x4ce621=getRequestedVersion(_0x42fa93),_0x599ab5=[_0x42fa93[_0x519991(0xa5)](_0x519991(0xa8))?'latest':'',_0x42fa93['bool'](_0x519991(0x9b))?_0x519991(0x9b):'',_0x4ce621?_0x519991(0xc7):''][_0x519991(0xd4)](Boolean);if(_0x599ab5['length']>0x1)throw CliErrors[_0x519991(0xe1)](_0x519991(0xda),_0x519991(0xab));if(_0x4ce621&&!parseSemver(_0x4ce621))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x4ce621,_0x519991(0xbe));}async function fetchNpmDistTags(){const _0x2af662=a50_0x536600;try{const _0x4b6872=NPM_REGISTRY_BASE_URL+_0x2af662(0x9a)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x2af662(0xb9),_0x58e2de=await fetch(_0x4b6872,{'signal':AbortSignal[_0x2af662(0xd2)](0x2710)});if(!_0x58e2de['ok'])return null;const _0x24ff1e=await _0x58e2de['json']();if(!_0x24ff1e||typeof _0x24ff1e!=='object')return null;return Object[_0x2af662(0xbd)](Object['entries'](_0x24ff1e)[_0x2af662(0xd4)](([,_0x446aeb])=>typeof _0x446aeb===_0x2af662(0xc6)&&_0x446aeb[_0x2af662(0xb0)]())[_0x2af662(0xe0)](([_0x3d627a,_0x4d9615])=>[_0x3d627a,String(_0x4d9615)[_0x2af662(0xb0)]()]));}catch{return null;}}async function resolveTargetVersion(_0x473c50){const _0x463b55=a50_0x536600,_0x15b838=getRequestedVersion(_0x473c50);if(_0x15b838)return{'version':_0x15b838,'source':_0x463b55(0xc7)};const _0x13ef7e=_0x473c50[_0x463b55(0xa5)](_0x463b55(0x9b))?_0x463b55(0x9b):'latest',_0x3de457=await fetchNpmDistTags(),_0x9c6031=_0x3de457?.[_0x13ef7e];if(!_0x9c6031)return null;return{'version':_0x9c6031,'source':_0x13ef7e};}function shouldInstallTarget(_0x2c9d03,_0x74a8ff){const _0x51d61e=a50_0x536600,_0x4abfcf=compareSemver(_0x2c9d03,_0x74a8ff[_0x51d61e(0xc7)]);if(_0x74a8ff['source']===_0x51d61e(0xc7))return _0x4abfcf!==0x0;return _0x4abfcf<0x0;}function installCliPackage(_0x229070,_0x52d610){const _0x47d938=a50_0x536600,_0x175227=resolveNpmBin('npm'),_0x8a5df0=[_0x47d938(0xb3),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x229070];console['log']('*\x20'+[_0x175227,..._0x8a5df0]['join']('\x20'));const _0x5d56dd=spawnSync(_0x175227,_0x8a5df0,{'cwd':process[_0x47d938(0xc8)](),'stdio':_0x52d610?_0x47d938(0xac):_0x47d938(0xcb),'env':process.env,'shell':![]});if(_0x5d56dd['status']===0x0)return{'ok':!![]};let _0x42c1c7=_0x5d56dd[_0x47d938(0xaa)]?.[_0x47d938(0xc3)]||_0x47d938(0xc1)+(_0x5d56dd[_0x47d938(0xcf)]??'unknown');if(_0x52d610){const _0x172f90=_0x5d56dd[_0x47d938(0xc4)]?_0x5d56dd[_0x47d938(0xc4)]['toString']()[_0x47d938(0xb0)]():'',_0x12e1a0=_0x5d56dd[_0x47d938(0xa3)]?_0x5d56dd[_0x47d938(0xa3)][_0x47d938(0xa9)]()[_0x47d938(0xb0)]():'';if(_0x172f90)_0x42c1c7=_0x172f90;else{if(_0x12e1a0)_0x42c1c7=_0x12e1a0;}}return{'ok':![],'error':_0x42c1c7};}async function installCliBuiltInSkill(_0x27df00){const _0x1fcdd6=a50_0x536600;console[_0x1fcdd6(0x9d)](_0x1fcdd6(0xc5));const _0x4d6f86=runNpxSkillsAddGlobal(process[_0x1fcdd6(0xc8)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x27df00?'pipe':_0x1fcdd6(0xcb)});if(_0x4d6f86[_0x1fcdd6(0xb8)]){console[_0x1fcdd6(0x9d)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x1fcdd6(0xb6));return;}if(_0x4d6f86['ok']){console[_0x1fcdd6(0x9d)](_0x1fcdd6(0xba));return;}console[_0x1fcdd6(0x99)](_0x1fcdd6(0xb2)+(_0x4d6f86[_0x1fcdd6(0xaa)]||_0x1fcdd6(0xa0))),console[_0x1fcdd6(0x9d)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x2f39a9){const _0xfa4792=a50_0x536600;await validateUpdateFlags(_0x2f39a9);const _0x222080=getCliVersion();console[_0xfa4792(0x9d)](_0xfa4792(0x9c)+_0x222080),console[_0xfa4792(0x9d)]('Checking\x20npm\x20dist-tags...');const _0x263d30=await resolveTargetVersion(_0x2f39a9);if(!_0x263d30){const _0x5eb9cb=_0x2f39a9[_0xfa4792(0xa5)](_0xfa4792(0x9b))?_0xfa4792(0x9b):_0xfa4792(0xa8),_0x1631b6='Unable\x20to\x20resolve\x20'+_0x5eb9cb+_0xfa4792(0xdd);return console[_0xfa4792(0x99)](_0x1631b6),console[_0xfa4792(0x9d)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5eb9cb),{'ok':![]};}if(!shouldInstallTarget(_0x222080,_0x263d30)){const _0x1f01b6=_0x263d30[_0xfa4792(0xbf)]===_0xfa4792(0xc7)?_0xfa4792(0xb4)+_0x263d30[_0xfa4792(0xc7)]+').':_0xfa4792(0xb5)+_0x263d30['version']+').';return console['log'](_0x1f01b6),shouldSkipCliBuiltInSkill(_0x2f39a9)?console[_0xfa4792(0x9d)](_0xfa4792(0xaf)):await installCliBuiltInSkill(_0x2f39a9[_0xfa4792(0x9e)]),{'ok':!![]};}console[_0xfa4792(0x9d)]('Updating\x20'+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x222080+_0xfa4792(0xc9)+_0x263d30[_0xfa4792(0xc7)]);const _0x3ae91f=installCliPackage(_0x263d30['version'],_0x2f39a9['nonInteractive']);if(!_0x3ae91f['ok']){const _0xc6e321='Update\x20failed:\x20'+(_0x3ae91f[_0xfa4792(0xaa)]||_0xfa4792(0xa0));return console[_0xfa4792(0xaa)](_0xc6e321),console['log'](_0xfa4792(0xc2)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x263d30['version']),{'ok':![]};}return console[_0xfa4792(0x9d)]('Updated\x20to\x20v'+_0x263d30['version']+'.'),console[_0xfa4792(0x9d)](_0xfa4792(0xd0)),shouldSkipCliBuiltInSkill(_0x2f39a9)?console[_0xfa4792(0x9d)](_0xfa4792(0xaf)):await installCliBuiltInSkill(_0x2f39a9['nonInteractive']),{'ok':!![]};}export const updateDefinition={'service':a50_0x536600(0xad),'command':a50_0x536600(0xdf),'description':'Update\x20'+CLI_BIN_NAME+a50_0x536600(0x9f),'risk':a50_0x536600(0xde),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a51_0xa8832f=a51_0x2707;(function(_0x15a3ac,_0x54eef9){const _0x16a21a=a51_0x2707,_0x592b97=_0x15a3ac();while(!![]){try{const _0x164250=parseInt(_0x16a21a(0x87))/0x1+parseInt(_0x16a21a(0x90))/0x2*(-parseInt(_0x16a21a(0x91))/0x3)+parseInt(_0x16a21a(0x8a))/0x4*(parseInt(_0x16a21a(0x84))/0x5)+-parseInt(_0x16a21a(0x71))/0x6+-parseInt(_0x16a21a(0xa6))/0x7+parseInt(_0x16a21a(0xa3))/0x8+parseInt(_0x16a21a(0xa4))/0x9;if(_0x164250===_0x54eef9)break;else _0x592b97['push'](_0x592b97['shift']());}catch(_0x32f586){_0x592b97['push'](_0x592b97['shift']());}}}(a51_0x231d,0xa1368));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':a51_0xa8832f(0x81),'type':a51_0xa8832f(0x86),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':'appcode','type':a51_0xa8832f(0x86),'description':a51_0xa8832f(0x7f)},{'name':'env','type':'string','description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0xa8832f(0x92),'type':a51_0xa8832f(0x9f),'description':a51_0xa8832f(0xa1),'default':![]}];function a51_0x2707(_0x7a52f,_0x51084a){_0x7a52f=_0x7a52f-0x6e;const _0x231d74=a51_0x231d();let _0x2707d8=_0x231d74[_0x7a52f];return _0x2707d8;}async function executeWorkspaceUse(_0x1e792a,_0x42e199){const _0x5b55ff=a51_0xa8832f,_0x5342e3=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x81))[_0x5b55ff(0x89)](),_0x427394=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x6e))['trim'](),_0x4008b9=_0x1e792a[_0x5b55ff(0x7a)](_0x5b55ff(0x8c))[_0x5b55ff(0x89)](),_0x6cf509=resolveWorkspaceEnv(_0x4008b9||_0x1e792a[_0x5b55ff(0x9d)]||DEFAULT_CONFIG_VALUES[_0x5b55ff(0x8c)]);if(!_0x5342e3&&!_0x427394)throw CliErrors[_0x5b55ff(0x83)](_0x5b55ff(0x7b),'Usage:\x20'+CLI_BIN_NAME+_0x5b55ff(0x70)+_0x42e199+_0x5b55ff(0x78)+CLI_BIN_NAME+_0x5b55ff(0x70)+_0x42e199+_0x5b55ff(0x8e));const _0x414361=_0x427394||await resolveRemoteAppCode({'command':_0x42e199,'appName':_0x5342e3,'env':_0x6cf509,'accessKey':_0x1e792a[_0x5b55ff(0x95)]}),_0x586d42=writeWorkspaceConfig({'command':_0x42e199,'appName':_0x5342e3,'appcode':_0x414361,'env':_0x6cf509,'shouldWriteEnv':!!_0x4008b9,'accessKey':_0x1e792a[_0x5b55ff(0x95)]});return{'ok':!![],'data':{'configPath':_0x586d42,'app':_0x5342e3||null,'appcode':_0x414361,'env':_0x4008b9?_0x6cf509:null,'accessKeyWritten':![],'command':_0x5b55ff(0x6f)+_0x42e199},'message':buildWorkspaceMessage(_0x586d42,_0x5342e3,_0x414361,_0x4008b9?_0x6cf509:undefined)};}async function resolveRemoteAppCode(_0x3b2c7d){const _0x455d6a=a51_0xa8832f;if(!_0x3b2c7d[_0x455d6a(0x95)])throw CliErrors[_0x455d6a(0x77)](_0x455d6a(0x72)+CLI_BIN_NAME+_0x455d6a(0x70)+_0x3b2c7d[_0x455d6a(0x85)]+'.');const {setActiveAK:_0xc86185}=await import('../../core/api-client.js'),{getRemoteAppList:_0x54d2b7}=await import(_0x455d6a(0xa2));_0xc86185(_0x3b2c7d[_0x455d6a(0x95)]);const _0x21be67=await _0x54d2b7({'env':_0x3b2c7d[_0x455d6a(0x8c)],'accessKey':_0x3b2c7d[_0x455d6a(0x95)],'noCache':![]}),_0x226430=findAppByName(_0x21be67['items'],_0x3b2c7d['appName']);if(_0x226430&&!isRuntimeAccessibleApp(_0x226430))throw runtimeInaccessibleAppError(_0x226430,'\x22'+_0x3b2c7d[_0x455d6a(0xa0)]+'\x22');const _0xdad38a=_0x226430?.[_0x455d6a(0x79)]?.[_0x455d6a(0x89)]();if(_0xdad38a)return _0xdad38a;const _0x4ee59b=_0x21be67[_0x455d6a(0x74)][_0x455d6a(0x7c)](_0x9c6e4=>_0x9c6e4['appName'])[_0x455d6a(0x99)](Boolean),_0x1c80af=_0x4ee59b[_0x455d6a(0x7d)]?_0x455d6a(0x96)+Array['from'](new Set(_0x4ee59b))[_0x455d6a(0xa5)](',\x20')+'.':_0x455d6a(0x9a)+CLI_BIN_NAME+_0x455d6a(0x98);throw CliErrors['validation'](_0x455d6a(0x97)+_0x3b2c7d['appName']+'\x22\x20not\x20found.',_0x1c80af);}function writeWorkspaceConfig(_0x45d1e7){const _0x257e64=a51_0xa8832f,_0x2e3df3=resolveWriteConfigPath(_0x257e64(0x75)),_0x4478a8=readConfigFile(_0x2e3df3);_0x45d1e7['shouldWriteEnv']&&(_0x4478a8[_0x257e64(0x8c)]=_0x45d1e7[_0x257e64(0x8c)]);if(_0x45d1e7['appName']){const _0x4a2d02=isRecord(_0x4478a8['apps'])?{..._0x4478a8['apps']}:{},_0x565d9b=isRecord(_0x4a2d02[_0x45d1e7[_0x257e64(0xa0)]])?_0x4a2d02[_0x45d1e7[_0x257e64(0xa0)]]:{};_0x4a2d02[_0x45d1e7['appName']]={..._0x565d9b,'appcode':_0x45d1e7[_0x257e64(0x6e)]},_0x4478a8[_0x257e64(0x8d)]=_0x4a2d02,_0x4478a8[_0x257e64(0x76)]=_0x45d1e7[_0x257e64(0xa0)];if(_0x4478a8['app'])delete _0x4478a8[_0x257e64(0x81)];return writeAndReturn(_0x2e3df3,_0x4478a8);}_0x4478a8[_0x257e64(0x6e)]=_0x45d1e7['appcode'];if(_0x4478a8['app'])delete _0x4478a8['app'];return writeAndReturn(_0x2e3df3,_0x4478a8);}function writeAndReturn(_0x475f99,_0xbfed8d){return writeConfigFile(_0x475f99,_0xbfed8d),_0x475f99;}function resolveWorkspaceEnv(_0x549efb){const _0x3990b0=a51_0xa8832f;if(RUNTIME_ENV_VALUES[_0x3990b0(0x73)](_0x549efb))return _0x549efb;throw CliErrors[_0x3990b0(0x83)](_0x3990b0(0x82)+_0x549efb+_0x3990b0(0x9e)+RUNTIME_ENV_VALUES['join'](',\x20'));}function buildWorkspaceMessage(_0x3c4d14,_0x223516,_0x4c2722,_0x6768cf){const _0x29bfe2=a51_0xa8832f,_0x382499=_0x223516?_0x223516+'\x20('+_0x4c2722+')':_0x4c2722,_0x3f9e6f=_0x6768cf?'\x0aEnv:\x20'+_0x6768cf:'';return _0x29bfe2(0x9b)+_0x3c4d14+'\x0aDefault\x20app:\x20'+_0x382499+_0x3f9e6f+_0x29bfe2(0x88);}function a51_0x231d(){const _0x24be39=['appcode','workspace\x20','\x20workspace\x20','129414eRIJyT','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','includes','items','project','defaultApp','authRequired','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','appCode','str','Missing\x20workspace\x20app\x20selector.','map','length','use','App\x20code\x20to\x20bind\x20directly','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','app','Invalid\x20env\x20\x22','validation','10XXGVeM','command','string','314842Cfdspy','\x0aAccessKey:\x20not\x20written','trim','624508ySZIHq','init','env','apps','\x20--appcode\x20<code>\x20[--env\x20daily]','workspace','22jONPAd','290370pZCltq','yes','write','isArray','accessKey','Available\x20apps:\x20','App\x20\x22','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','filter','Run\x20`','Workspace\x20configured.\x0aConfig\x20file:\x20','object','envName','\x22.\x20Allowed:\x20','boolean','appName','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','../../commands/app/remote-source.js','6045512gCNawB','10222443qWnvKG','join','5404175BnftCY'];a51_0x231d=function(){return _0x24be39;};return a51_0x231d();}function isRecord(_0x4a460b){const _0x386336=a51_0xa8832f;return typeof _0x4a460b===_0x386336(0x9c)&&_0x4a460b!==null&&!Array[_0x386336(0x94)](_0x4a460b);}function makeWorkspaceCommand(_0x688bda){const _0x545506=a51_0xa8832f;return{'service':_0x545506(0x8f),'command':_0x688bda,'description':_0x688bda===_0x545506(0x8b)?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x545506(0x80),'risk':_0x545506(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x362c16){return executeWorkspaceUse(_0x362c16,_0x688bda);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0xa8832f(0x8b)),makeWorkspaceCommand(a51_0xa8832f(0x7e))];
1
+ const a51_0xb7b94f=a51_0x3c66;(function(_0x403680,_0x42feb9){const _0x1970f8=a51_0x3c66,_0x5bbcc5=_0x403680();while(!![]){try{const _0xee76ff=parseInt(_0x1970f8(0x8d))/0x1*(-parseInt(_0x1970f8(0x83))/0x2)+-parseInt(_0x1970f8(0x7c))/0x3+-parseInt(_0x1970f8(0x8a))/0x4+parseInt(_0x1970f8(0xa3))/0x5*(-parseInt(_0x1970f8(0x6f))/0x6)+-parseInt(_0x1970f8(0x84))/0x7*(-parseInt(_0x1970f8(0x85))/0x8)+parseInt(_0x1970f8(0x74))/0x9*(parseInt(_0x1970f8(0x71))/0xa)+-parseInt(_0x1970f8(0x7f))/0xb*(-parseInt(_0x1970f8(0x70))/0xc);if(_0xee76ff===_0x42feb9)break;else _0x5bbcc5['push'](_0x5bbcc5['shift']());}catch(_0x3d81f0){_0x5bbcc5['push'](_0x5bbcc5['shift']());}}}(a51_0x433d,0xccbb7));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a51_0x433d(){const _0x1535d4=['4312740dNGVVe','filter','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','18IRycJE','apps','env','app','Invalid\x20env\x20\x22','shouldWriteEnv','../../commands/app/remote-source.js','\x22\x20not\x20found.','1564557ReDfob','\x0aDefault\x20app:\x20','boolean','2310IzYpCg','\x20workspace\x20','appName','command','8GkvUYY','14TNAMrs','5365544PTMUhs','appCode','init','authRequired','validation','527896JocauZ','join','object','100342zLAZal','App\x20code\x20to\x20bind\x20directly','write','Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','from','accessKey','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','\x22.\x20Allowed:\x20','appcode','items','\x0aEnv:\x20','string','length','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','str','trim','project','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.','workspace','../../core/api-client.js','yes','22100mOjsYK','\x20--appcode\x20<code>\x20[--env\x20daily]','1578TzELty','48684NTXSLC'];a51_0x433d=function(){return _0x1535d4;};return a51_0x433d();}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':a51_0xb7b94f(0x77),'type':a51_0xb7b94f(0x98),'description':a51_0xb7b94f(0x73)},{'name':a51_0xb7b94f(0x95),'type':a51_0xb7b94f(0x98),'description':a51_0xb7b94f(0x8e)},{'name':a51_0xb7b94f(0x76),'type':a51_0xb7b94f(0x98),'description':'Target\x20environment','enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0xb7b94f(0xa2),'type':a51_0xb7b94f(0x7e),'description':a51_0xb7b94f(0x9b),'default':![]}];async function executeWorkspaceUse(_0x4c02de,_0x5c12b1){const _0x36241d=a51_0xb7b94f,_0x5efc0e=_0x4c02de[_0x36241d(0x9c)](_0x36241d(0x77))['trim'](),_0x2e84da=_0x4c02de[_0x36241d(0x9c)]('appcode')[_0x36241d(0x9d)](),_0x747075=_0x4c02de[_0x36241d(0x9c)](_0x36241d(0x76))[_0x36241d(0x9d)](),_0x5968ce=resolveWorkspaceEnv(_0x747075||_0x4c02de['envName']||DEFAULT_CONFIG_VALUES[_0x36241d(0x76)]);if(!_0x5efc0e&&!_0x2e84da)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.','Usage:\x20'+CLI_BIN_NAME+_0x36241d(0x80)+_0x5c12b1+_0x36241d(0x93)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5c12b1+_0x36241d(0xa4));const _0x582478=_0x2e84da||await resolveRemoteAppCode({'command':_0x5c12b1,'appName':_0x5efc0e,'env':_0x5968ce,'accessKey':_0x4c02de[_0x36241d(0x92)]}),_0x527943=writeWorkspaceConfig({'command':_0x5c12b1,'appName':_0x5efc0e,'appcode':_0x582478,'env':_0x5968ce,'shouldWriteEnv':!!_0x747075,'accessKey':_0x4c02de['accessKey']});return{'ok':!![],'data':{'configPath':_0x527943,'app':_0x5efc0e||null,'appcode':_0x582478,'env':_0x747075?_0x5968ce:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x5c12b1},'message':buildWorkspaceMessage(_0x527943,_0x5efc0e,_0x582478,_0x747075?_0x5968ce:undefined)};}async function resolveRemoteAppCode(_0x2ad283){const _0x38a3d0=a51_0xb7b94f;if(!_0x2ad283[_0x38a3d0(0x92)])throw CliErrors[_0x38a3d0(0x88)](_0x38a3d0(0x9a)+CLI_BIN_NAME+'\x20workspace\x20'+_0x2ad283[_0x38a3d0(0x82)]+'.');const {setActiveAK:_0x87d2f}=await import(_0x38a3d0(0xa1)),{getRemoteAppList:_0x3ef33f}=await import(_0x38a3d0(0x7a));_0x87d2f(_0x2ad283['accessKey']);const _0x444f1e=await _0x3ef33f({'env':_0x2ad283[_0x38a3d0(0x76)],'accessKey':_0x2ad283['accessKey'],'noCache':![]}),_0x15ac85=findAppByName(_0x444f1e[_0x38a3d0(0x96)],_0x2ad283['appName']);if(_0x15ac85&&!isRuntimeAccessibleApp(_0x15ac85))throw runtimeInaccessibleAppError(_0x15ac85,'\x22'+_0x2ad283[_0x38a3d0(0x81)]+'\x22');const _0x5ca134=_0x15ac85?.[_0x38a3d0(0x86)]?.[_0x38a3d0(0x9d)]();if(_0x5ca134)return _0x5ca134;const _0x316a96=_0x444f1e[_0x38a3d0(0x96)]['map'](_0x61b795=>_0x61b795[_0x38a3d0(0x81)])[_0x38a3d0(0x72)](Boolean),_0x5218e8=_0x316a96[_0x38a3d0(0x99)]?'Available\x20apps:\x20'+Array[_0x38a3d0(0x91)](new Set(_0x316a96))[_0x38a3d0(0x8b)](',\x20')+'.':'Run\x20`'+CLI_BIN_NAME+_0x38a3d0(0x9f);throw CliErrors[_0x38a3d0(0x89)]('App\x20\x22'+_0x2ad283[_0x38a3d0(0x81)]+_0x38a3d0(0x7b),_0x5218e8);}function writeWorkspaceConfig(_0x405355){const _0x35f665=a51_0xb7b94f,_0x393fc1=resolveWriteConfigPath(_0x35f665(0x9e)),_0xbbb40=readConfigFile(_0x393fc1);_0x405355[_0x35f665(0x79)]&&(_0xbbb40[_0x35f665(0x76)]=_0x405355[_0x35f665(0x76)]);if(_0x405355['appName']){const _0x4cbe15=isRecord(_0xbbb40[_0x35f665(0x75)])?{..._0xbbb40['apps']}:{},_0x2e9c45=isRecord(_0x4cbe15[_0x405355['appName']])?_0x4cbe15[_0x405355[_0x35f665(0x81)]]:{};_0x4cbe15[_0x405355[_0x35f665(0x81)]]={..._0x2e9c45,'appcode':_0x405355[_0x35f665(0x95)]},_0xbbb40['apps']=_0x4cbe15,_0xbbb40['defaultApp']=_0x405355['appName'];if(_0xbbb40['app'])delete _0xbbb40[_0x35f665(0x77)];return writeAndReturn(_0x393fc1,_0xbbb40);}_0xbbb40[_0x35f665(0x95)]=_0x405355['appcode'];if(_0xbbb40[_0x35f665(0x77)])delete _0xbbb40['app'];return writeAndReturn(_0x393fc1,_0xbbb40);}function writeAndReturn(_0x5a02c8,_0x1c901c){return writeConfigFile(_0x5a02c8,_0x1c901c),_0x5a02c8;}function a51_0x3c66(_0x720caa,_0x3597b3){_0x720caa=_0x720caa-0x6f;const _0x433d95=a51_0x433d();let _0x3c6648=_0x433d95[_0x720caa];return _0x3c6648;}function resolveWorkspaceEnv(_0x5f1fd9){const _0x8b17ca=a51_0xb7b94f;if(RUNTIME_ENV_VALUES['includes'](_0x5f1fd9))return _0x5f1fd9;throw CliErrors[_0x8b17ca(0x89)](_0x8b17ca(0x78)+_0x5f1fd9+_0x8b17ca(0x94)+RUNTIME_ENV_VALUES[_0x8b17ca(0x8b)](',\x20'));}function buildWorkspaceMessage(_0x3ac2a3,_0x50dd68,_0x332868,_0x9c64ce){const _0x34d7d5=a51_0xb7b94f,_0x11dee3=_0x50dd68?_0x50dd68+'\x20('+_0x332868+')':_0x332868,_0x3c3008=_0x9c64ce?_0x34d7d5(0x97)+_0x9c64ce:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0x3ac2a3+_0x34d7d5(0x7d)+_0x11dee3+_0x3c3008+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x3411d0){const _0x70f00f=a51_0xb7b94f;return typeof _0x3411d0===_0x70f00f(0x8c)&&_0x3411d0!==null&&!Array['isArray'](_0x3411d0);}function makeWorkspaceCommand(_0x290d5a){const _0x6215d6=a51_0xb7b94f;return{'service':_0x6215d6(0xa0),'command':_0x290d5a,'description':_0x290d5a==='init'?_0x6215d6(0x90):'Set\x20app\x20context\x20for\x20the\x20current\x20workspace','risk':_0x6215d6(0x8f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x5c3541){return executeWorkspaceUse(_0x5c3541,_0x290d5a);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0xb7b94f(0x87)),makeWorkspaceCommand('use')];
@@ -1 +1 @@
1
- function a52_0x13aa(_0x3dba63,_0x87d31c){_0x3dba63=_0x3dba63-0xa9;const _0x235fd8=a52_0x235f();let _0x13aa26=_0x235fd8[_0x3dba63];return _0x13aa26;}const a52_0x485a2f=a52_0x13aa;(function(_0x3b4bb4,_0x37bcff){const _0x35df39=a52_0x13aa,_0x55743=_0x3b4bb4();while(!![]){try{const _0x1954bd=-parseInt(_0x35df39(0xad))/0x1+parseInt(_0x35df39(0xa9))/0x2+-parseInt(_0x35df39(0xb2))/0x3*(parseInt(_0x35df39(0xae))/0x4)+-parseInt(_0x35df39(0xaa))/0x5+-parseInt(_0x35df39(0xbe))/0x6*(-parseInt(_0x35df39(0xb9))/0x7)+parseInt(_0x35df39(0xb1))/0x8+parseInt(_0x35df39(0xb5))/0x9*(parseInt(_0x35df39(0xc3))/0xa);if(_0x1954bd===_0x37bcff)break;else _0x55743['push'](_0x55743['shift']());}catch(_0x333d38){_0x55743['push'](_0x55743['shift']());}}}(a52_0x235f,0x5bfc2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';function a52_0x235f(){const _0x3eed1e=['riskLevel','Override\x20SkillHub\x20domain','env','10ChLtgz','map','Config\x20key.\x20Top-level:\x20','fromEntries','51818ADxnVs','1104185MmCvgl','importable','join','10700DHvbOU','145444DrlUMJ','format','entries','3720336CqKlyV','33iyZlBk','Override\x20API\x20domain','defaultValue','3481965fEDgNd','Risk\x20level','filter','Override\x20user\x20domain','14JFSjwP','Locale','Default\x20page\x20size','Target\x20environment','Override\x20runtime\x20domain','391326ymCbpq',';\x20local\x20alias:\x20apps.<alias>.appcode'];a52_0x235f=function(){return _0x3eed1e;};return a52_0x235f();}import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':a52_0x485a2f(0xbc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xc2)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xaf)],'importable':!![]},'pageSize':{'description':a52_0x485a2f(0xbb),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x485a2f(0xb3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x485a2f(0xb8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x485a2f(0xbd),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x485a2f(0xc1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x485a2f(0xb6),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x485a2f(0xc0)],'importable':!![]},'locale':{'description':a52_0x485a2f(0xba),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x485a2f(0xb0)](CONFIG_FIELD_SCHEMAS)[a52_0x485a2f(0xb7)](([,_0x40bfaa])=>_0x40bfaa['cliSettableTopLevel'])['map'](([_0x438479])=>_0x438479));export const CONFIG_ENUM_VALUES=Object[a52_0x485a2f(0xc6)](Object[a52_0x485a2f(0xb0)](CONFIG_FIELD_SCHEMAS)[a52_0x485a2f(0xb7)](([,_0x3b71ae])=>_0x3b71ae['enumValues'])[a52_0x485a2f(0xc4)](([_0x47e4d3,_0x577995])=>[_0x47e4d3,[..._0x577995['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x5d14dd])=>_0x5d14dd[a52_0x485a2f(0xab)])[a52_0x485a2f(0xc4)](([_0x335620])=>_0x335620);export function getConfigFieldSchema(_0x4c040b){return CONFIG_FIELD_SCHEMAS[_0x4c040b];}export function getConfigEnumValues(_0x49bd1a){return getConfigFieldSchema(_0x49bd1a)?.['enumValues'];}export function getConfigDefaultValue(_0x54687d){const _0x54bf42=a52_0x485a2f;return getConfigFieldSchema(_0x54687d)?.[_0x54bf42(0xb4)];}export function isTopLevelConfigKey(_0x29ff11){return TOP_LEVEL_CONFIG_KEYS['has'](_0x29ff11);}export function isLegacyCompatConfigKey(_0x31e012){return getConfigFieldSchema(_0x31e012)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xe51ea6){const _0x31cdc3=a52_0x485a2f;return[..._0xe51ea6][_0x31cdc3(0xac)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xe30d6a=a52_0x485a2f;return _0xe30d6a(0xc5)+getTopLevelConfigKeySummary()+_0xe30d6a(0xbf);}export function buildAppProfileListFields(_0x3c18b5){return{'env':_0x3c18b5,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a52_0x23c891=a52_0x5680;(function(_0x531a25,_0x2b4fa6){const _0x26af60=a52_0x5680,_0x36d9d0=_0x531a25();while(!![]){try{const _0x13e96d=parseInt(_0x26af60(0xd6))/0x1*(-parseInt(_0x26af60(0xd9))/0x2)+parseInt(_0x26af60(0xf4))/0x3+-parseInt(_0x26af60(0xd7))/0x4*(-parseInt(_0x26af60(0xf3))/0x5)+-parseInt(_0x26af60(0xe9))/0x6+parseInt(_0x26af60(0xde))/0x7+-parseInt(_0x26af60(0xe4))/0x8*(-parseInt(_0x26af60(0xeb))/0x9)+parseInt(_0x26af60(0xea))/0xa*(-parseInt(_0x26af60(0xe8))/0xb);if(_0x13e96d===_0x2b4fa6)break;else _0x36d9d0['push'](_0x36d9d0['shift']());}catch(_0x3623fc){_0x36d9d0['push'](_0x36d9d0['shift']());}}}(a52_0x5835,0x2418e));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':a52_0x23c891(0xdc),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x23c891(0xdf)],'importable':!![]},'format':{'description':a52_0x23c891(0xe1),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x23c891(0xf1)],'importable':!![]},'pageSize':{'description':a52_0x23c891(0xd5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x23c891(0xec),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x23c891(0xed),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x23c891(0xd8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a52_0x23c891(0xef),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x23c891(0xe5)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x23c891(0xf0)](CONFIG_FIELD_SCHEMAS)[a52_0x23c891(0xee)](([,_0x48bf0c])=>_0x48bf0c[a52_0x23c891(0xe0)])[a52_0x23c891(0xe7)](([_0x54bfa8])=>_0x54bfa8));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a52_0x23c891(0xf0)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x36631b])=>_0x36631b[a52_0x23c891(0xdb)])['map'](([_0x24921d,_0x5a79a2])=>[_0x24921d,[..._0x5a79a2['enumValues']||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x23c891(0xf0)](CONFIG_FIELD_SCHEMAS)[a52_0x23c891(0xee)](([,_0x2d1403])=>_0x2d1403[a52_0x23c891(0xe2)])[a52_0x23c891(0xe7)](([_0x3dc21d])=>_0x3dc21d);export function getConfigFieldSchema(_0x2d1bfc){return CONFIG_FIELD_SCHEMAS[_0x2d1bfc];}export function getConfigEnumValues(_0xa667b6){const _0x5957d7=a52_0x23c891;return getConfigFieldSchema(_0xa667b6)?.[_0x5957d7(0xdb)];}function a52_0x5835(){const _0x5f3f48=['legacyCompatOnly','enumValues','Target\x20environment','join','1599346hjZJGX','env','cliSettableTopLevel','Default\x20output\x20format','importable','defaultValue','8xutoWy','locale','has','map','209uzfTTP','998502qCaYUo','207590kWoVZQ','1561293IzkdQE','Override\x20user\x20domain','Override\x20runtime\x20domain','filter','Locale','entries','format','Config\x20key.\x20Top-level:\x20','15PYwNuH','878685WmygRR',';\x20local\x20alias:\x20apps.<alias>.appcode','Default\x20page\x20size','261xyDofX','123204cNkSlK','Override\x20SkillHub\x20domain','602poinXh'];a52_0x5835=function(){return _0x5f3f48;};return a52_0x5835();}function a52_0x5680(_0x36051f,_0x5e22e2){_0x36051f=_0x36051f-0xd5;const _0x583580=a52_0x5835();let _0x56808c=_0x583580[_0x36051f];return _0x56808c;}export function getConfigDefaultValue(_0x290e44){const _0x508a88=a52_0x23c891;return getConfigFieldSchema(_0x290e44)?.[_0x508a88(0xe3)];}export function isTopLevelConfigKey(_0x51fc8f){const _0x354d21=a52_0x23c891;return TOP_LEVEL_CONFIG_KEYS[_0x354d21(0xe6)](_0x51fc8f);}export function isLegacyCompatConfigKey(_0x392f83){const _0x74eed8=a52_0x23c891;return getConfigFieldSchema(_0x392f83)?.[_0x74eed8(0xda)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0xf85bcf){const _0x4bc394=a52_0x23c891;return[..._0xf85bcf][_0x4bc394(0xdd)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x10c5be=a52_0x23c891;return _0x10c5be(0xf2)+getTopLevelConfigKeySummary()+_0x10c5be(0xf5);}export function buildAppProfileListFields(_0x5a0e46){return{'env':_0x5a0e46,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a53_0x4839(){const _0x5ad893=['Published','16gTPsKI','3335688xISsMf','37tZYdEC','PUBLISHED','UNPUBLISH','65hkelBb','985733KPalxW','6740AqUfPW','3376629tdcRLn','23282150gyuPyL','1047675tWymvm','19734iaXcMs'];a53_0x4839=function(){return _0x5ad893;};return a53_0x4839();}const a53_0x2aabbb=a53_0x372a;(function(_0x449dc1,_0x30efe3){const _0x202793=a53_0x372a,_0x18fddf=_0x449dc1();while(!![]){try{const _0x489075=-parseInt(_0x202793(0x11d))/0x1*(parseInt(_0x202793(0x122))/0x2)+-parseInt(_0x202793(0x125))/0x3+-parseInt(_0x202793(0x11c))/0x4+parseInt(_0x202793(0x120))/0x5*(parseInt(_0x202793(0x126))/0x6)+parseInt(_0x202793(0x121))/0x7+parseInt(_0x202793(0x11b))/0x8*(-parseInt(_0x202793(0x123))/0x9)+parseInt(_0x202793(0x124))/0xa;if(_0x489075===_0x30efe3)break;else _0x18fddf['push'](_0x18fddf['shift']());}catch(_0x99a891){_0x18fddf['push'](_0x18fddf['shift']());}}}(a53_0x4839,0x6ebd8));function a53_0x372a(_0x1ae9c1,_0x4017c7){_0x1ae9c1=_0x1ae9c1-0x11a;const _0x48397c=a53_0x4839();let _0x372adc=_0x48397c[_0x1ae9c1];return _0x372adc;}export const APP_PUBLISH_STATUS={'Published':a53_0x2aabbb(0x11e),'Unpublished':a53_0x2aabbb(0x11f)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x2aabbb(0x11a)];
1
+ function a53_0x55c6(){const _0x2d4ae4=['2640864qJqHGd','463866emhQrs','208PpMNzz','594065leGQMB','355104gHjXOm','43052lcJzmD','6TgKamb','10822vEctTp','3177YMdBmn','24140Dpajlc','UNPUBLISH'];a53_0x55c6=function(){return _0x2d4ae4;};return a53_0x55c6();}const a53_0x58665c=a53_0x295e;(function(_0x54cdbc,_0x27609a){const _0x5a0e54=a53_0x295e,_0x20ec5b=_0x54cdbc();while(!![]){try{const _0x42d958=parseInt(_0x5a0e54(0xfc))/0x1+parseInt(_0x5a0e54(0x104))/0x2+-parseInt(_0x5a0e54(0xfe))/0x3*(parseInt(_0x5a0e54(0xfd))/0x4)+parseInt(_0x5a0e54(0x106))/0x5+parseInt(_0x5a0e54(0x103))/0x6+parseInt(_0x5a0e54(0xff))/0x7*(-parseInt(_0x5a0e54(0x105))/0x8)+parseInt(_0x5a0e54(0x100))/0x9*(-parseInt(_0x5a0e54(0x101))/0xa);if(_0x42d958===_0x27609a)break;else _0x20ec5b['push'](_0x20ec5b['shift']());}catch(_0x2d1aa7){_0x20ec5b['push'](_0x20ec5b['shift']());}}}(a53_0x55c6,0x38ac2));function a53_0x295e(_0x122a09,_0x314781){_0x122a09=_0x122a09-0xfc;const _0x55c618=a53_0x55c6();let _0x295e5e=_0x55c618[_0x122a09];return _0x295e5e;}export const APP_PUBLISH_STATUS={'Published':'PUBLISHED','Unpublished':a53_0x58665c(0x102)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];