@lovrabet/lovrabet-cli 2.1.6-beta.6 → 2.1.6

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_0x19a0c6=a37_0x4ce8;(function(_0x3e882f,_0x247a86){const _0x236491=a37_0x4ce8,_0x28e9ce=_0x3e882f();while(!![]){try{const _0x937985=parseInt(_0x236491(0x8f))/0x1+parseInt(_0x236491(0x8a))/0x2*(parseInt(_0x236491(0x92))/0x3)+-parseInt(_0x236491(0x7f))/0x4*(-parseInt(_0x236491(0x99))/0x5)+parseInt(_0x236491(0x7e))/0x6+-parseInt(_0x236491(0x90))/0x7+-parseInt(_0x236491(0x7c))/0x8+parseInt(_0x236491(0x87))/0x9;if(_0x937985===_0x247a86)break;else _0x28e9ce['push'](_0x28e9ce['shift']());}catch(_0x479703){_0x28e9ce['push'](_0x28e9ce['shift']());}}}(a37_0x17b9,0xf12f7));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';function a37_0x17b9(){const _0x209849=['code','trim','Listed\x20','read','list','length','map','2598831KDYQgU','production','company','4BJsKtw','builtin','str','authRequired','remote','131321QXzBiX','11362638quptLH','scope','627651CoUgDr','accessKey','personal','../../../core/api-client.js','\x20local\x20Skill(s).','\x20remote\x20Skill(s).','local','693490gdIGZi','filter','13908208vOEJOk','appCode','9416214byRAkS','56SmxlHf'];a37_0x17b9=function(){return _0x209849;};return a37_0x17b9();}function a37_0x4ce8(_0x55bf2c,_0x575b28){_0x55bf2c=_0x55bf2c-0x7c;const _0x17b996=a37_0x17b9();let _0x4ce87c=_0x17b996[_0x55bf2c];return _0x4ce87c;}export const listCommand={'service':'skill','command':a37_0x19a0c6(0x84),'description':'List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','risk':a37_0x19a0c6(0x83),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x3cf541){const _0x2ab5fc=a37_0x19a0c6,_0x59b9f7=_0x3cf541[_0x2ab5fc(0x8c)](_0x2ab5fc(0x80)),_0x16cda7=normalizeListScope(_0x3cf541[_0x2ab5fc(0x8c)](_0x2ab5fc(0x91)));if(_0x3cf541['bool'](_0x2ab5fc(0x98))){const _0x7a2a71=_0x3cf541[_0x2ab5fc(0x93)];if(!_0x7a2a71)throw CliErrors[_0x2ab5fc(0x8d)]();const {listLocalRuntimeSkills:_0x26c7ec}=await import('../../../skills/runtime-skill-sync.js'),_0x52ae66=_0x26c7ec({'env':_0x3cf541['envName']??_0x2ab5fc(0x88),'accessKey':_0x7a2a71,'appCode':_0x3cf541[_0x2ab5fc(0x7d)],'scopes':listScopeToRuntimeScopes(_0x16cda7),'code':_0x59b9f7[_0x2ab5fc(0x81)]()||undefined}),_0x89c0ee=groupLocalRuntimeSkills(_0x52ae66);return{'ok':!![],'data':{'appCode':_0x3cf541[_0x2ab5fc(0x7d)],'source':_0x2ab5fc(0x98),'scope':_0x16cda7,'total':_0x52ae66[_0x2ab5fc(0x85)],'personal':_0x89c0ee[_0x2ab5fc(0x94)][_0x2ab5fc(0x85)],'company':_0x89c0ee[_0x2ab5fc(0x89)]['length'],'items':_0x52ae66[_0x2ab5fc(0x86)](summarizeLocalRuntimeSkill),'skills':{'personal':_0x89c0ee[_0x2ab5fc(0x94)][_0x2ab5fc(0x86)](summarizeLocalRuntimeSkill),'company':_0x89c0ee[_0x2ab5fc(0x89)]['map'](summarizeLocalRuntimeSkill)}},'message':_0x2ab5fc(0x82)+_0x52ae66[_0x2ab5fc(0x85)]+_0x2ab5fc(0x96)};}const {listRuntimeSkills:_0x148723}=await import(_0x2ab5fc(0x95)),_0x398af2=await _0x148723({'appCode':_0x3cf541[_0x2ab5fc(0x7d)],'scope':listScopeToRemoteScope(_0x16cda7),'code':_0x59b9f7['trim']()||undefined}),_0x2c112e=shouldListScope(_0x16cda7,_0x2ab5fc(0x94))?_0x398af2[_0x2ab5fc(0x94)]??[]:[],_0xfc88e5=shouldListScope(_0x16cda7,_0x2ab5fc(0x89))?_0x398af2[_0x2ab5fc(0x89)]??[]:[],_0x5ad7ba=[..._0x2c112e,..._0xfc88e5];return{'ok':!![],'data':{'appCode':_0x3cf541[_0x2ab5fc(0x7d)],'source':_0x2ab5fc(0x8e),'scope':_0x16cda7,'total':_0x5ad7ba[_0x2ab5fc(0x85)],'personal':_0x2c112e[_0x2ab5fc(0x85)],'company':_0xfc88e5[_0x2ab5fc(0x85)],'items':_0x5ad7ba['map'](summarizeRuntimeSkill),'skills':{'personal':_0x2c112e['map'](summarizeRuntimeSkill),'company':_0xfc88e5[_0x2ab5fc(0x86)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x5ad7ba[_0x2ab5fc(0x85)]+_0x2ab5fc(0x97)};}};function groupLocalRuntimeSkills(_0x42f073){const _0x2b9c7a=a37_0x19a0c6;return{'personal':_0x42f073['filter'](_0x92babd=>_0x92babd[_0x2b9c7a(0x91)]==='personal'),'company':_0x42f073[_0x2b9c7a(0x9a)](_0x2b91e3=>_0x2b91e3[_0x2b9c7a(0x91)]===_0x2b9c7a(0x89)),'builtin':_0x42f073[_0x2b9c7a(0x9a)](_0x53f83d=>_0x53f83d[_0x2b9c7a(0x91)]===_0x2b9c7a(0x8b))};}
1
+ const a37_0x133ef0=a37_0x3bb4;function a37_0x3bb4(_0x45b03a,_0x42434c){_0x45b03a=_0x45b03a-0x16a;const _0xfcf19a=a37_0xfcf1();let _0x3bb441=_0xfcf19a[_0x45b03a];return _0x3bb441;}(function(_0x82eec2,_0x571656){const _0x5c71e6=a37_0x3bb4,_0x422d25=_0x82eec2();while(!![]){try{const _0x9e4e9a=parseInt(_0x5c71e6(0x171))/0x1+parseInt(_0x5c71e6(0x176))/0x2*(parseInt(_0x5c71e6(0x17e))/0x3)+parseInt(_0x5c71e6(0x175))/0x4+-parseInt(_0x5c71e6(0x186))/0x5*(parseInt(_0x5c71e6(0x17a))/0x6)+parseInt(_0x5c71e6(0x181))/0x7*(-parseInt(_0x5c71e6(0x16e))/0x8)+parseInt(_0x5c71e6(0x17d))/0x9*(parseInt(_0x5c71e6(0x177))/0xa)+-parseInt(_0x5c71e6(0x183))/0xb;if(_0x9e4e9a===_0x571656)break;else _0x422d25['push'](_0x422d25['shift']());}catch(_0x414bf6){_0x422d25['push'](_0x422d25['shift']());}}}(a37_0xfcf1,0xf2477));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';function a37_0xfcf1(){const _0x2d09f3=['../../../core/api-client.js','remote','local','7880664TyArCT','411172XuhNKw','90QbgIFp','builtin','length','3199548XEWkXe','bool','scope','1508418bmbMsB','3PiCBPe','trim','personal','3017YjGoGs','read','30148030FjbGkm','\x20local\x20Skill(s).','list','5LZmNft','production','List\x20runtime\x20Skills\x20from\x20remote\x20or\x20CLI-managed\x20local\x20cache','company','code','accessKey','appCode','str','25496gBPMXk','envName','map','1955790GMGcfP'];a37_0xfcf1=function(){return _0x2d09f3;};return a37_0xfcf1();}export const listCommand={'service':'skill','command':a37_0x133ef0(0x185),'description':a37_0x133ef0(0x188),'risk':a37_0x133ef0(0x182),'flags':[CODE_FLAG,LIST_SCOPE_FLAG,LOCAL_FLAG],async 'execute'(_0x303bb4){const _0x3b9e4a=a37_0x133ef0,_0x333b5b=_0x303bb4[_0x3b9e4a(0x16d)](_0x3b9e4a(0x16a)),_0x5e1753=normalizeListScope(_0x303bb4[_0x3b9e4a(0x16d)]('scope'));if(_0x303bb4[_0x3b9e4a(0x17b)](_0x3b9e4a(0x174))){const _0x35ec7b=_0x303bb4[_0x3b9e4a(0x16b)];if(!_0x35ec7b)throw CliErrors['authRequired']();const {listLocalRuntimeSkills:_0x36cae}=await import('../../../skills/runtime-skill-sync.js'),_0x49f7a6=_0x36cae({'env':_0x303bb4[_0x3b9e4a(0x16f)]??_0x3b9e4a(0x187),'accessKey':_0x35ec7b,'appCode':_0x303bb4[_0x3b9e4a(0x16c)],'scopes':listScopeToRuntimeScopes(_0x5e1753),'code':_0x333b5b[_0x3b9e4a(0x17f)]()||undefined}),_0x402104=groupLocalRuntimeSkills(_0x49f7a6);return{'ok':!![],'data':{'appCode':_0x303bb4[_0x3b9e4a(0x16c)],'source':_0x3b9e4a(0x174),'scope':_0x5e1753,'total':_0x49f7a6['length'],'personal':_0x402104[_0x3b9e4a(0x180)][_0x3b9e4a(0x179)],'company':_0x402104[_0x3b9e4a(0x189)][_0x3b9e4a(0x179)],'items':_0x49f7a6['map'](summarizeLocalRuntimeSkill),'skills':{'personal':_0x402104['personal']['map'](summarizeLocalRuntimeSkill),'company':_0x402104[_0x3b9e4a(0x189)][_0x3b9e4a(0x170)](summarizeLocalRuntimeSkill)}},'message':'Listed\x20'+_0x49f7a6[_0x3b9e4a(0x179)]+_0x3b9e4a(0x184)};}const {listRuntimeSkills:_0x215601}=await import(_0x3b9e4a(0x172)),_0x32666d=await _0x215601({'appCode':_0x303bb4[_0x3b9e4a(0x16c)],'scope':listScopeToRemoteScope(_0x5e1753),'code':_0x333b5b[_0x3b9e4a(0x17f)]()||undefined}),_0x18e654=shouldListScope(_0x5e1753,_0x3b9e4a(0x180))?_0x32666d[_0x3b9e4a(0x180)]??[]:[],_0x41b858=shouldListScope(_0x5e1753,_0x3b9e4a(0x189))?_0x32666d[_0x3b9e4a(0x189)]??[]:[],_0x405fce=[..._0x18e654,..._0x41b858];return{'ok':!![],'data':{'appCode':_0x303bb4[_0x3b9e4a(0x16c)],'source':_0x3b9e4a(0x173),'scope':_0x5e1753,'total':_0x405fce['length'],'personal':_0x18e654['length'],'company':_0x41b858['length'],'items':_0x405fce[_0x3b9e4a(0x170)](summarizeRuntimeSkill),'skills':{'personal':_0x18e654[_0x3b9e4a(0x170)](summarizeRuntimeSkill),'company':_0x41b858[_0x3b9e4a(0x170)](summarizeRuntimeSkill)}},'message':'Listed\x20'+_0x405fce[_0x3b9e4a(0x179)]+'\x20remote\x20Skill(s).'};}};function groupLocalRuntimeSkills(_0x33c9a0){const _0x62ca78=a37_0x133ef0;return{'personal':_0x33c9a0['filter'](_0x57b6c3=>_0x57b6c3[_0x62ca78(0x17c)]===_0x62ca78(0x180)),'company':_0x33c9a0['filter'](_0x3b79dc=>_0x3b79dc['scope']===_0x62ca78(0x189)),'builtin':_0x33c9a0['filter'](_0x401666=>_0x401666['scope']===_0x62ca78(0x178))};}
@@ -1 +1 @@
1
- const a38_0x4a4579=a38_0x37e5;(function(_0x51ef0b,_0x54ef01){const _0x10bd39=a38_0x37e5,_0x114844=_0x51ef0b();while(!![]){try{const _0x180cc7=parseInt(_0x10bd39(0x70))/0x1+-parseInt(_0x10bd39(0x7a))/0x2+parseInt(_0x10bd39(0x73))/0x3+parseInt(_0x10bd39(0x78))/0x4+parseInt(_0x10bd39(0x76))/0x5*(-parseInt(_0x10bd39(0x7b))/0x6)+parseInt(_0x10bd39(0x71))/0x7*(-parseInt(_0x10bd39(0x7f))/0x8)+parseInt(_0x10bd39(0x72))/0x9;if(_0x180cc7===_0x54ef01)break;else _0x114844['push'](_0x114844['shift']());}catch(_0xb52e){_0x114844['push'](_0x114844['shift']());}}}(a38_0x48da,0xdf3df));function a38_0x48da(){const _0x4ae93d=['str','skill','authRequired','Created\x20personal\x20Skill\x20','accessKey','10176VWAhka','329HRxDfL','12929913teknPZ','2133582lPOWJP','skillCode','dir','390wuXmuQ','files','1817612vAGuRq','personal','793612iCmYdx','90546MiaiET','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','../../../core/api-client.js','input','21128SFZnPo','appCode'];a38_0x48da=function(){return _0x4ae93d;};return a38_0x48da();}import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';function a38_0x37e5(_0x1c3638,_0x3901d4){_0x1c3638=_0x1c3638-0x6d;const _0x48da1c=a38_0x48da();let _0x37e5e3=_0x48da1c[_0x1c3638];return _0x37e5e3;}import{summarizeRuntimeSkill}from'../summary.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x4a4579(0x82),'command':'push','description':a38_0x4a4579(0x7c),'risk':'write','flags':[DIR_FLAG],async 'execute'(_0x261201){const _0x477521=a38_0x4a4579,{createPersonalRuntimeSkill:_0x5e4c57,downloadRuntimeSkillPackage:_0x56fb84,getRuntimeSkillByCode:_0x1fc4a9,updatePersonalRuntimeSkill:_0x12a14a}=await import(_0x477521(0x7d)),{verifyRuntimeSkillPackage:_0x33fc76,verifyRuntimeSkillBundle:_0x5f1055,readPushDirectory:_0x438012,refreshPushDirectoryMetadataFromRemote:_0x55163c,recordPushedRuntimeSkill:_0x12f38b,resolvePushDirectoryIdentity:_0x5a2f32}=await import('../../../skills/runtime-skill-sync.js');if(!_0x261201[_0x477521(0x6f)])throw CliErrors[_0x477521(0x6d)]();const _0x4a3989=_0x261201[_0x477521(0x81)](_0x477521(0x75)),_0x4fbe60=validateSkillDirectory(_0x4a3989);throwIfSkillValidationFailed(_0x4fbe60);const _0x13e657=_0x4fbe60[_0x477521(0x75)],_0x3671ea=_0x5a2f32(_0x13e657,_0x261201[_0x477521(0x80)]),_0x316a56=await _0x1fc4a9(_0x261201['appCode'],_0x3671ea[_0x477521(0x74)]);_0x316a56&&_0x55163c(_0x13e657,_0x316a56,_0x261201['appCode']);const _0x1051b6=_0x438012(_0x13e657,_0x261201[_0x477521(0x80)]),_0x4c9069=_0x316a56?.['scope']===_0x477521(0x79)&&_0x316a56[_0x477521(0x74)]===_0x1051b6[_0x477521(0x74)]?_0x316a56:undefined,_0x37838e=_0x4c9069?await _0x12a14a(_0x1051b6[_0x477521(0x74)],_0x261201[_0x477521(0x80)],_0x1051b6[_0x477521(0x7e)]):await _0x5e4c57(_0x261201['appCode'],_0x1051b6[_0x477521(0x7e)]);let _0x4a9f76=_0x37838e;if(isMultiFileManifest(_0x1051b6[_0x477521(0x7e)][_0x477521(0x77)])){const _0x1cbb27=await _0x56fb84(_0x477521(0x79),_0x37838e[_0x477521(0x74)]||_0x1051b6[_0x477521(0x74)],_0x261201['appCode']);_0x5f1055(_0x1051b6[_0x477521(0x7e)][_0x477521(0x77)],_0x1cbb27),_0x4a9f76={..._0x37838e,'files':_0x1051b6[_0x477521(0x7e)][_0x477521(0x77)]};}else{if(isPackageBackedManifest(_0x37838e[_0x477521(0x77)])){const _0xcc4d77=await _0x56fb84('personal',_0x37838e[_0x477521(0x74)]||_0x1051b6[_0x477521(0x74)],_0x261201[_0x477521(0x80)]);_0x33fc76(_0x37838e['files'],_0xcc4d77);}}return _0x12f38b(_0x13e657,_0x4a9f76,_0x261201[_0x477521(0x80)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x37838e),'warnings':_0x4fbe60['warnings']},'message':_0x4c9069?'Updated\x20personal\x20Skill\x20'+_0x1051b6[_0x477521(0x74)]:_0x477521(0x6e)+_0x1051b6[_0x477521(0x74)]};}};
1
+ const a38_0x3521a2=a38_0x5f30;function a38_0x5f30(_0xf38e36,_0x35916b){_0xf38e36=_0xf38e36-0x1de;const _0x3d9bc9=a38_0x3d9b();let _0x5f3048=_0x3d9bc9[_0xf38e36];return _0x5f3048;}(function(_0x2a24eb,_0x106e2f){const _0x3ea51c=a38_0x5f30,_0x4d8795=_0x2a24eb();while(!![]){try{const _0x418880=-parseInt(_0x3ea51c(0x1e6))/0x1*(parseInt(_0x3ea51c(0x1ef))/0x2)+parseInt(_0x3ea51c(0x1ec))/0x3+-parseInt(_0x3ea51c(0x1f1))/0x4+-parseInt(_0x3ea51c(0x1ed))/0x5*(-parseInt(_0x3ea51c(0x1e0))/0x6)+-parseInt(_0x3ea51c(0x1f0))/0x7*(parseInt(_0x3ea51c(0x1f4))/0x8)+-parseInt(_0x3ea51c(0x1e9))/0x9+parseInt(_0x3ea51c(0x1ea))/0xa;if(_0x418880===_0x106e2f)break;else _0x4d8795['push'](_0x4d8795['shift']());}catch(_0x2edcce){_0x4d8795['push'](_0x4d8795['shift']());}}}(a38_0x3d9b,0xbe8f0));import{CliErrors}from'../../../errors.js';import{DIR_FLAG}from'../flags.js';import{isMultiFileManifest,isPackageBackedManifest}from'../manifest-helpers.js';import{summarizeRuntimeSkill}from'../summary.js';function a38_0x3d9b(){const _0x4965e8=['4IAZNff','770819MGDgCA','1448376wZgVzi','write','skill','40bCUPiM','../../../skills/runtime-skill-sync.js','personal','warnings','dir','../../../core/api-client.js','accessKey','7688724YNChea','str','appCode','Push\x20a\x20local\x20Skill\x20directory\x20to\x20personal\x20runtime\x20Skill\x20scope','Created\x20personal\x20Skill\x20','files','190156jfkeYx','input','skillCode','832932iiqnJV','4761190SVlWFv','Updated\x20personal\x20Skill\x20','1225482bupMzF','5sFLUKd','authRequired'];a38_0x3d9b=function(){return _0x4965e8;};return a38_0x3d9b();}import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const pushCommand={'service':a38_0x3521a2(0x1f3),'command':'push','description':a38_0x3521a2(0x1e3),'risk':a38_0x3521a2(0x1f2),'flags':[DIR_FLAG],async 'execute'(_0x3b1a9b){const _0x520a03=a38_0x3521a2,{createPersonalRuntimeSkill:_0x1194d6,downloadRuntimeSkillPackage:_0x418771,getRuntimeSkillByCode:_0x55304a,updatePersonalRuntimeSkill:_0x59681a}=await import(_0x520a03(0x1de)),{verifyRuntimeSkillPackage:_0x5241b7,verifyRuntimeSkillBundle:_0x46a2b1,readPushDirectory:_0x5156af,refreshPushDirectoryMetadataFromRemote:_0x293b27,recordPushedRuntimeSkill:_0x52bec1,resolvePushDirectoryIdentity:_0x3eef2b}=await import(_0x520a03(0x1f5));if(!_0x3b1a9b[_0x520a03(0x1df)])throw CliErrors[_0x520a03(0x1ee)]();const _0xa885bb=_0x3b1a9b[_0x520a03(0x1e1)]('dir'),_0xc24a19=validateSkillDirectory(_0xa885bb);throwIfSkillValidationFailed(_0xc24a19);const _0x3af89b=_0xc24a19[_0x520a03(0x1f8)],_0x2b0b76=_0x3eef2b(_0x3af89b,_0x3b1a9b[_0x520a03(0x1e2)]),_0x258f6d=await _0x55304a(_0x3b1a9b[_0x520a03(0x1e2)],_0x2b0b76[_0x520a03(0x1e8)]);_0x258f6d&&_0x293b27(_0x3af89b,_0x258f6d,_0x3b1a9b[_0x520a03(0x1e2)]);const _0x3e19ca=_0x5156af(_0x3af89b,_0x3b1a9b['appCode']),_0x4d9aca=_0x258f6d?.['scope']==='personal'&&_0x258f6d[_0x520a03(0x1e8)]===_0x3e19ca['skillCode']?_0x258f6d:undefined,_0x49f087=_0x4d9aca?await _0x59681a(_0x3e19ca[_0x520a03(0x1e8)],_0x3b1a9b[_0x520a03(0x1e2)],_0x3e19ca[_0x520a03(0x1e7)]):await _0x1194d6(_0x3b1a9b['appCode'],_0x3e19ca['input']);let _0x5574fc=_0x49f087;if(isMultiFileManifest(_0x3e19ca[_0x520a03(0x1e7)][_0x520a03(0x1e5)])){const _0x5124ad=await _0x418771(_0x520a03(0x1f6),_0x49f087[_0x520a03(0x1e8)]||_0x3e19ca[_0x520a03(0x1e8)],_0x3b1a9b['appCode']);_0x46a2b1(_0x3e19ca[_0x520a03(0x1e7)]['files'],_0x5124ad),_0x5574fc={..._0x49f087,'files':_0x3e19ca[_0x520a03(0x1e7)][_0x520a03(0x1e5)]};}else{if(isPackageBackedManifest(_0x49f087['files'])){const _0x58596d=await _0x418771(_0x520a03(0x1f6),_0x49f087['skillCode']||_0x3e19ca[_0x520a03(0x1e8)],_0x3b1a9b[_0x520a03(0x1e2)]);_0x5241b7(_0x49f087[_0x520a03(0x1e5)],_0x58596d);}}return _0x52bec1(_0x3af89b,_0x5574fc,_0x3b1a9b[_0x520a03(0x1e2)]),{'ok':!![],'data':{...summarizeRuntimeSkill(_0x49f087),'warnings':_0xc24a19[_0x520a03(0x1f7)]},'message':_0x4d9aca?_0x520a03(0x1eb)+_0x3e19ca[_0x520a03(0x1e8)]:_0x520a03(0x1e4)+_0x3e19ca[_0x520a03(0x1e8)]};}};
@@ -1 +1 @@
1
- function a39_0x1ebb(_0x4757ae,_0x13f0bf){_0x4757ae=_0x4757ae-0x145;const _0x134ea4=a39_0x134e();let _0x1ebb5a=_0x134ea4[_0x4757ae];return _0x1ebb5a;}const a39_0x1aa3b8=a39_0x1ebb;(function(_0x12ee37,_0x2f4ac9){const _0x380a57=a39_0x1ebb,_0x3674ae=_0x12ee37();while(!![]){try{const _0x2514a8=-parseInt(_0x380a57(0x14d))/0x1+-parseInt(_0x380a57(0x14f))/0x2+parseInt(_0x380a57(0x149))/0x3+parseInt(_0x380a57(0x147))/0x4+parseInt(_0x380a57(0x14a))/0x5+parseInt(_0x380a57(0x14e))/0x6*(-parseInt(_0x380a57(0x153))/0x7)+parseInt(_0x380a57(0x14b))/0x8*(parseInt(_0x380a57(0x146))/0x9);if(_0x2514a8===_0x2f4ac9)break;else _0x3674ae['push'](_0x3674ae['shift']());}catch(_0x1a2d88){_0x3674ae['push'](_0x3674ae['shift']());}}}(a39_0x134e,0x3b1ca));import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0x1aa3b8(0x156),'command':a39_0x1aa3b8(0x155),'description':a39_0x1aa3b8(0x151),'risk':a39_0x1aa3b8(0x154),'requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x40c50c){const _0x54cb38=a39_0x1aa3b8,_0x1e9c7c=_0x40c50c[_0x54cb38(0x148)]('strict'),_0x43f318=validateSkillDirectory(_0x40c50c['str'](_0x54cb38(0x14c)),{'strict':_0x1e9c7c});return throwIfSkillValidationFailed(_0x43f318,_0x1e9c7c),{'ok':!![],'data':{'dir':_0x43f318[_0x54cb38(0x14c)],'type':_0x43f318[_0x54cb38(0x157)],'errors':_0x43f318[_0x54cb38(0x150)],'warnings':_0x43f318[_0x54cb38(0x145)]},'message':_0x54cb38(0x152)};}};function a39_0x134e(){const _0x36d235=['28116uHHxoL','bool','1147743wGzUVS','610510vjsYvm','1835496JXvVIf','dir','293656yJqesm','2604SHtIyc','188534dBseYP','errors','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','Skill\x20validation\x20passed.','1792iexiEN','read','validate','skill','type','warnings','9ivLDpM'];a39_0x134e=function(){return _0x36d235;};return a39_0x134e();}
1
+ function a39_0x3e79(){const _0x36c318=['593420ZBmFXP','1980132diMcGO','bool','977389FCvepM','errors','623030qlxHDv','3nivmzV','Skill\x20validation\x20passed.','skill','strict','validate','dir','warnings','1086166MKNQSC','78cldqzw','11yTDcIx','55mOEznz','40IWGgjr','1745824VOzOwh','str','818379QDHcki','Validate\x20a\x20local\x20Skill\x20directory\x20as\x20a\x20self-contained\x20delivery\x20package','type'];a39_0x3e79=function(){return _0x36c318;};return a39_0x3e79();}const a39_0x1e3b65=a39_0x2388;(function(_0x30457b,_0x82fee3){const _0xe7307=a39_0x2388,_0x498c83=_0x30457b();while(!![]){try{const _0x25f434=-parseInt(_0xe7307(0x92))/0x1+parseInt(_0xe7307(0x97))/0x2*(-parseInt(_0xe7307(0x8b))/0x3)+-parseInt(_0xe7307(0x85))/0x4*(-parseInt(_0xe7307(0x95))/0x5)+parseInt(_0xe7307(0x93))/0x6*(parseInt(_0xe7307(0x88))/0x7)+parseInt(_0xe7307(0x96))/0x8*(-parseInt(_0xe7307(0x99))/0x9)+parseInt(_0xe7307(0x8a))/0xa*(parseInt(_0xe7307(0x94))/0xb)+-parseInt(_0xe7307(0x86))/0xc;if(_0x25f434===_0x82fee3)break;else _0x498c83['push'](_0x498c83['shift']());}catch(_0xe8f967){_0x498c83['push'](_0x498c83['shift']());}}}(a39_0x3e79,0xe3337));function a39_0x2388(_0x1b97b5,_0x3a90d3){_0x1b97b5=_0x1b97b5-0x84;const _0x3e79dc=a39_0x3e79();let _0x2388ee=_0x3e79dc[_0x1b97b5];return _0x2388ee;}import{DIR_FLAG,STRICT_FLAG}from'../flags.js';import{throwIfSkillValidationFailed,validateSkillDirectory}from'../validate.js';export const validateCommand={'service':a39_0x1e3b65(0x8d),'command':a39_0x1e3b65(0x8f),'description':a39_0x1e3b65(0x9a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[DIR_FLAG,STRICT_FLAG],async 'execute'(_0x57bd66){const _0x45cebf=a39_0x1e3b65,_0x40d1db=_0x57bd66[_0x45cebf(0x87)](_0x45cebf(0x8e)),_0x25b392=validateSkillDirectory(_0x57bd66[_0x45cebf(0x98)](_0x45cebf(0x90)),{'strict':_0x40d1db});return throwIfSkillValidationFailed(_0x25b392,_0x40d1db),{'ok':!![],'data':{'dir':_0x25b392[_0x45cebf(0x90)],'type':_0x25b392[_0x45cebf(0x84)],'errors':_0x25b392[_0x45cebf(0x89)],'warnings':_0x25b392[_0x45cebf(0x91)]},'message':_0x45cebf(0x8c)};}};
@@ -1 +1 @@
1
- function a40_0x4969(_0x8a41ad,_0x66e155){_0x8a41ad=_0x8a41ad-0x8f;const _0x434cf0=a40_0x434c();let _0x496964=_0x434cf0[_0x8a41ad];return _0x496964;}const a40_0x5955f0=a40_0x4969;(function(_0x467cab,_0x33ca8b){const _0x54d0b7=a40_0x4969,_0x1f041a=_0x467cab();while(!![]){try{const _0x562861=parseInt(_0x54d0b7(0x99))/0x1*(-parseInt(_0x54d0b7(0xa4))/0x2)+parseInt(_0x54d0b7(0x9e))/0x3*(parseInt(_0x54d0b7(0xac))/0x4)+-parseInt(_0x54d0b7(0x94))/0x5+-parseInt(_0x54d0b7(0x9b))/0x6+-parseInt(_0x54d0b7(0xa1))/0x7+parseInt(_0x54d0b7(0xa0))/0x8*(-parseInt(_0x54d0b7(0xa3))/0x9)+parseInt(_0x54d0b7(0x95))/0xa*(parseInt(_0x54d0b7(0xa9))/0xb);if(_0x562861===_0x33ca8b)break;else _0x1f041a['push'](_0x1f041a['shift']());}catch(_0x5a4c36){_0x1f041a['push'](_0x1f041a['shift']());}}}(a40_0x434c,0xf08d8));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';export const CODE_FLAG={'name':a40_0x5955f0(0x9d),'type':a40_0x5955f0(0x9a),'description':'Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code'};export const SCOPE_FLAG={'name':a40_0x5955f0(0x8f),'type':a40_0x5955f0(0x9a),'description':'Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','enum':['all',a40_0x5955f0(0x98),a40_0x5955f0(0x96)]};function a40_0x434c(){const _0x318880=['lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','strict','all','Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','1373115RsbfrG','25345460UyBeVu','company','write','personal','1FEGbmV','string','64434YLqySx','name','code','126405kXReqW','Skill\x20template\x20type','241680PCZeTj','7950992bnsMCV','local','90TiOezo','1168708QoDrDZ','type','boolean','force','Local\x20Skill\x20directory\x20containing\x20SKILL.md','11EPzdaO','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists','72JTgidL','scope'];a40_0x434c=function(){return _0x318880;};return a40_0x434c();}export const LIST_SCOPE_FLAG={'name':a40_0x5955f0(0x8f),'type':'string','description':a40_0x5955f0(0xaa),'enum':[a40_0x5955f0(0x92),a40_0x5955f0(0x98),'company']};export const LOCAL_FLAG={'name':a40_0x5955f0(0xa2),'type':a40_0x5955f0(0xa6),'description':a40_0x5955f0(0xab)};export const DIR_FLAG={'name':'dir','type':a40_0x5955f0(0x9a),'required':!![],'description':a40_0x5955f0(0xa8)};export const CREATE_NAME_FLAG={'name':a40_0x5955f0(0x9c),'type':a40_0x5955f0(0x9a),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x5955f0(0x90)}};export const TYPE_FLAG={'name':a40_0x5955f0(0xa5),'type':'string','description':a40_0x5955f0(0x9f),'default':a40_0x5955f0(0x97),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':'target','type':'string','description':a40_0x5955f0(0x93),'default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':a40_0x5955f0(0xa7),'type':a40_0x5955f0(0xa6),'description':'Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists'};export const STRICT_FLAG={'name':a40_0x5955f0(0x91),'type':a40_0x5955f0(0xa6),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
1
+ const a40_0x4c2609=a40_0x2a94;(function(_0x3a4408,_0x388eb7){const _0x3d9d82=a40_0x2a94,_0x14de9a=_0x3a4408();while(!![]){try{const _0x59ae11=parseInt(_0x3d9d82(0xeb))/0x1+parseInt(_0x3d9d82(0xf7))/0x2+parseInt(_0x3d9d82(0xe4))/0x3+parseInt(_0x3d9d82(0xe8))/0x4*(parseInt(_0x3d9d82(0xf8))/0x5)+parseInt(_0x3d9d82(0xf9))/0x6+-parseInt(_0x3d9d82(0xec))/0x7+parseInt(_0x3d9d82(0xf0))/0x8*(-parseInt(_0x3d9d82(0xfa))/0x9);if(_0x59ae11===_0x388eb7)break;else _0x14de9a['push'](_0x14de9a['shift']());}catch(_0x215dac){_0x14de9a['push'](_0x14de9a['shift']());}}}(a40_0x5840,0x4584b));import{DEFAULT_SKILL_TARGET,SKILL_NAME_PATTERN,SKILL_TYPES}from'./templates.js';function a40_0x2a94(_0x1b7e89,_0x1e6a0b){_0x1b7e89=_0x1b7e89-0xe3;const _0x584077=a40_0x5840();let _0x2a946c=_0x584077[_0x1b7e89];return _0x2a946c;}export const CODE_FLAG={'name':a40_0x4c2609(0xf3),'type':a40_0x4c2609(0xfc),'description':a40_0x4c2609(0xee)};function a40_0x5840(){const _0x4761ca=['35892TCkxRw','dir','string','personal','Skill\x20sync\x20scope:\x20all\x20(personal/company),\x20personal,\x20or\x20company','boolean','1372821RpkgfP','all','target','Skill\x20template\x20type','4LrdCkI','Skill\x20list\x20scope:\x20all,\x20personal,\x20or\x20company','write','102292Ikpnin','1304863OGPzRG','scope','Only\x20target\x20a\x20specific\x20runtime\x20Skill\x20code','company','1608QSHGQy','type','lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens','code','Overwrite\x20generated\x20files\x20when\x20the\x20Skill\x20directory\x20already\x20exists','strict','name','36928MqFjxJ','2470855HxuqLC','1201260CTYWra'];a40_0x5840=function(){return _0x4761ca;};return a40_0x5840();}export const SCOPE_FLAG={'name':'scope','type':a40_0x4c2609(0xfc),'description':a40_0x4c2609(0xfe),'enum':[a40_0x4c2609(0xe5),a40_0x4c2609(0xfd),a40_0x4c2609(0xef)]};export const LIST_SCOPE_FLAG={'name':a40_0x4c2609(0xed),'type':'string','description':a40_0x4c2609(0xe9),'enum':[a40_0x4c2609(0xe5),a40_0x4c2609(0xfd),a40_0x4c2609(0xef)]};export const LOCAL_FLAG={'name':'local','type':a40_0x4c2609(0xe3),'description':'Read\x20CLI-managed\x20local\x20Skill\x20cache\x20and\x20links\x20instead\x20of\x20remote\x20lists'};export const DIR_FLAG={'name':a40_0x4c2609(0xfb),'type':a40_0x4c2609(0xfc),'required':!![],'description':'Local\x20Skill\x20directory\x20containing\x20SKILL.md'};export const CREATE_NAME_FLAG={'name':a40_0x4c2609(0xf6),'type':a40_0x4c2609(0xfc),'required':!![],'description':'Skill\x20name\x20using\x20lowercase\x20letters,\x20numbers,\x20and\x20hyphens','pattern':{'regex':SKILL_NAME_PATTERN,'description':a40_0x4c2609(0xf2)}};export const TYPE_FLAG={'name':a40_0x4c2609(0xf1),'type':'string','description':a40_0x4c2609(0xe7),'default':a40_0x4c2609(0xea),'enum':[...SKILL_TYPES]};export const TARGET_FLAG={'name':a40_0x4c2609(0xe6),'type':a40_0x4c2609(0xfc),'description':'Directory\x20that\x20will\x20contain\x20the\x20generated\x20Skill\x20directory','default':DEFAULT_SKILL_TARGET};export const FORCE_FLAG={'name':'force','type':a40_0x4c2609(0xe3),'description':a40_0x4c2609(0xf4)};export const STRICT_FLAG={'name':a40_0x4c2609(0xf5),'type':a40_0x4c2609(0xe3),'description':'Compatibility\x20flag;\x20no\x20extra\x20checks\x20are\x20enabled'};
@@ -1 +1 @@
1
- function a41_0x183c(_0x3f0823,_0x470a7a){_0x3f0823=_0x3f0823-0x8c;const _0x570374=a41_0x5703();let _0x183c79=_0x570374[_0x3f0823];return _0x183c79;}(function(_0x18e58b,_0x198c8e){const _0x337d6a=a41_0x183c,_0x3ac359=_0x18e58b();while(!![]){try{const _0x4a47bb=parseInt(_0x337d6a(0x8f))/0x1*(-parseInt(_0x337d6a(0x94))/0x2)+parseInt(_0x337d6a(0x93))/0x3*(-parseInt(_0x337d6a(0x8e))/0x4)+-parseInt(_0x337d6a(0x90))/0x5+-parseInt(_0x337d6a(0x8d))/0x6+-parseInt(_0x337d6a(0x95))/0x7*(-parseInt(_0x337d6a(0x92))/0x8)+parseInt(_0x337d6a(0x8c))/0x9*(-parseInt(_0x337d6a(0x91))/0xa)+parseInt(_0x337d6a(0x96))/0xb;if(_0x4a47bb===_0x198c8e)break;else _0x3ac359['push'](_0x3ac359['shift']());}catch(_0x237f83){_0x3ac359['push'](_0x3ac359['shift']());}}}(a41_0x5703,0xcdc21));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_0x5703(){const _0x38a6ea=['1636371HCGDau','2351866jkKMwu','9014257CKKtBS','53669968LQMgmI','72414sUnhiJ','1585482AJUIHz','8ucqamI','1yJnjEC','6803860AXJtfx','1780sKaSjJ','8OEMJnZ'];a41_0x5703=function(){return _0x38a6ea;};return a41_0x5703();}
1
+ function a41_0x12ed(_0x36072f,_0x1695da){_0x36072f=_0x36072f-0xf8;const _0x8ff505=a41_0x8ff5();let _0x12ed0d=_0x8ff505[_0x36072f];return _0x12ed0d;}(function(_0x25ecd7,_0xdb4c59){const _0x4c8fe3=a41_0x12ed,_0x56878b=_0x25ecd7();while(!![]){try{const _0x26fd4e=-parseInt(_0x4c8fe3(0xfc))/0x1+parseInt(_0x4c8fe3(0xfd))/0x2*(-parseInt(_0x4c8fe3(0xf9))/0x3)+-parseInt(_0x4c8fe3(0xfb))/0x4*(-parseInt(_0x4c8fe3(0xf8))/0x5)+-parseInt(_0x4c8fe3(0x102))/0x6+parseInt(_0x4c8fe3(0x100))/0x7*(parseInt(_0x4c8fe3(0xff))/0x8)+-parseInt(_0x4c8fe3(0xfe))/0x9*(parseInt(_0x4c8fe3(0x101))/0xa)+parseInt(_0x4c8fe3(0xfa))/0xb;if(_0x26fd4e===_0xdb4c59)break;else _0x56878b['push'](_0x56878b['shift']());}catch(_0x371c34){_0x56878b['push'](_0x56878b['shift']());}}}(a41_0x8ff5,0x3cfd4));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_0x8ff5(){const _0x5686bf=['56040MaNtHC','433008DwhNTF','256702Lydfbt','73161WwwbOn','3363120cPgzEI','7zvbJun','410xHtbzQ','773100YyqXIL','15snnJQm','9sENnUM','11743512tmUkbt'];a41_0x8ff5=function(){return _0x5686bf;};return a41_0x8ff5();}
@@ -1 +1 @@
1
- function a42_0x5d7d(_0x3df4d4,_0x1b41f1){_0x3df4d4=_0x3df4d4-0x99;var _0x3afc57=a42_0x3afc();var _0x5d7d6b=_0x3afc57[_0x3df4d4];return _0x5d7d6b;}(function(_0x5ab0bd,_0x233bb1){var _0x39d189=a42_0x5d7d,_0x598719=_0x5ab0bd();while(!![]){try{var _0x33241e=-parseInt(_0x39d189(0xa1))/0x1*(parseInt(_0x39d189(0x9e))/0x2)+-parseInt(_0x39d189(0x9f))/0x3+parseInt(_0x39d189(0xa6))/0x4+-parseInt(_0x39d189(0xab))/0x5*(parseInt(_0x39d189(0xa5))/0x6)+-parseInt(_0x39d189(0xa9))/0x7+-parseInt(_0x39d189(0xa2))/0x8*(-parseInt(_0x39d189(0x9a))/0x9)+-parseInt(_0x39d189(0xaa))/0xa*(-parseInt(_0x39d189(0x9d))/0xb);if(_0x33241e===_0x233bb1)break;else _0x598719['push'](_0x598719['shift']());}catch(_0x35f16b){_0x598719['push'](_0x598719['shift']());}}}(a42_0x3afc,0x5eff0));function a42_0x3afc(){var _0x2dfd7a=['1119542nVafYB','737019KmswWa','object','1EmdyxF','4012744EeHJEd','some','SKILL.md','6dISFGt','601428VwrQCy','isArray','string','3674657DLclCY','10730bdvpig','1583105xSUJGH','path','9VIzfLV','files','length','14190PTlUex'];a42_0x3afc=function(){return _0x2dfd7a;};return a42_0x3afc();}export function isPackageBackedManifest(_0x271e2a){var _0x59c46a=a42_0x5d7d;return!!_0x271e2a&&typeof _0x271e2a===_0x59c46a(0xa0)&&!Array[_0x59c46a(0xa7)](_0x271e2a)&&typeof _0x271e2a['ossPath']===_0x59c46a(0xa8)&&_0x271e2a['ossPath'][_0x59c46a(0x9c)]>0x0&&Array['isArray'](_0x271e2a['files']);}export function isMultiFileManifest(_0x4798e6){var _0x1ce483=a42_0x5d7d;return!!_0x4798e6&&typeof _0x4798e6===_0x1ce483(0xa0)&&!Array[_0x1ce483(0xa7)](_0x4798e6)&&Array['isArray'](_0x4798e6[_0x1ce483(0x9b)])&&_0x4798e6[_0x1ce483(0x9b)][_0x1ce483(0xa3)](_0x5dcf82=>_0x5dcf82[_0x1ce483(0x99)]!==_0x1ce483(0xa4));}
1
+ (function(_0x2fc1c4,_0x4d1618){var _0x1edd05=a42_0x2217,_0x357d81=_0x2fc1c4();while(!![]){try{var _0x122f85=parseInt(_0x1edd05(0x108))/0x1+-parseInt(_0x1edd05(0x10f))/0x2+parseInt(_0x1edd05(0x109))/0x3*(-parseInt(_0x1edd05(0x105))/0x4)+-parseInt(_0x1edd05(0x104))/0x5+parseInt(_0x1edd05(0x10c))/0x6+parseInt(_0x1edd05(0x110))/0x7+parseInt(_0x1edd05(0x10a))/0x8;if(_0x122f85===_0x4d1618)break;else _0x357d81['push'](_0x357d81['shift']());}catch(_0x57a98e){_0x357d81['push'](_0x357d81['shift']());}}}(a42_0x1543,0xc9b88));function a42_0x1543(){var _0x37d41f=['object','1806522sAmnIh','7942809bZaFFJ','ossPath','files','7237285MhXkcB','60fPJjYj','path','length','1004593nfsyVi','297135EcLrny','13500608rdpLNB','string','5014710yZKrCN','isArray'];a42_0x1543=function(){return _0x37d41f;};return a42_0x1543();}function a42_0x2217(_0x39eae0,_0xeb3a32){_0x39eae0=_0x39eae0-0x104;var _0x1543fa=a42_0x1543();var _0x221734=_0x1543fa[_0x39eae0];return _0x221734;}export function isPackageBackedManifest(_0x38cca3){var _0xdf7ad2=a42_0x2217;return!!_0x38cca3&&typeof _0x38cca3===_0xdf7ad2(0x10e)&&!Array[_0xdf7ad2(0x10d)](_0x38cca3)&&typeof _0x38cca3[_0xdf7ad2(0x111)]===_0xdf7ad2(0x10b)&&_0x38cca3[_0xdf7ad2(0x111)][_0xdf7ad2(0x107)]>0x0&&Array['isArray'](_0x38cca3[_0xdf7ad2(0x112)]);}export function isMultiFileManifest(_0x2f4363){var _0xa09e7d=a42_0x2217;return!!_0x2f4363&&typeof _0x2f4363===_0xa09e7d(0x10e)&&!Array['isArray'](_0x2f4363)&&Array['isArray'](_0x2f4363[_0xa09e7d(0x112)])&&_0x2f4363[_0xa09e7d(0x112)]['some'](_0x132f5c=>_0x132f5c[_0xa09e7d(0x106)]!=='SKILL.md');}
@@ -1 +1 @@
1
- (function(_0x351f7e,_0x4b32dc){const _0x301f1e=a43_0x2722,_0x1e2775=_0x351f7e();while(!![]){try{const _0xfb8037=-parseInt(_0x301f1e(0x72))/0x1*(parseInt(_0x301f1e(0x79))/0x2)+parseInt(_0x301f1e(0x81))/0x3+-parseInt(_0x301f1e(0x7c))/0x4*(-parseInt(_0x301f1e(0x82))/0x5)+-parseInt(_0x301f1e(0x76))/0x6*(-parseInt(_0x301f1e(0x77))/0x7)+-parseInt(_0x301f1e(0x74))/0x8*(parseInt(_0x301f1e(0x7e))/0x9)+-parseInt(_0x301f1e(0x73))/0xa*(-parseInt(_0x301f1e(0x7f))/0xb)+parseInt(_0x301f1e(0x80))/0xc;if(_0xfb8037===_0x4b32dc)break;else _0x1e2775['push'](_0x1e2775['shift']());}catch(_0x4e03a9){_0x1e2775['push'](_0x1e2775['shift']());}}}(a43_0x5ef3,0x24df7));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0xede8cf){const _0x54f3e7=a43_0x2722,_0x27b8d1=_0xede8cf[_0x54f3e7(0x7d)]();if(!_0x27b8d1||_0x27b8d1===_0x54f3e7(0x7b))return[_0x54f3e7(0x75),_0x54f3e7(0x78)];if(_0x27b8d1===_0x54f3e7(0x75)||_0x27b8d1===_0x54f3e7(0x78))return[_0x27b8d1];throw CliErrors[_0x54f3e7(0x7a)](_0x54f3e7(0x71)+_0xede8cf);}export function normalizeListScope(_0x13665e){const _0x518fc9=a43_0x2722,_0x544486=_0x13665e['trim']();if(!_0x544486)return _0x518fc9(0x7b);if(_0x544486===_0x518fc9(0x75)||_0x544486===_0x518fc9(0x78)||_0x544486==='all')return _0x544486;throw CliErrors[_0x518fc9(0x7a)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x13665e);}export function shouldListScope(_0x1dfdc8,_0x452daf){if(_0x1dfdc8==='all')return!![];return _0x1dfdc8===_0x452daf;}export function listScopeToRuntimeScopes(_0x1a46f7){const _0xc35281=a43_0x2722;if(_0x1a46f7===_0xc35281(0x7b))return[_0xc35281(0x75),_0xc35281(0x78)];return[_0x1a46f7===_0xc35281(0x78)?_0xc35281(0x78):_0x1a46f7];}function a43_0x5ef3(){const _0x2dbd2b=['validation','all','5244ioQZek','trim','135RUnvqH','2929399xceydn','1145076gjEECV','58017wYyVWF','655pYeOEE','Unsupported\x20Skill\x20sync\x20scope:\x20','55821BDTdnZ','10jGUpJU','149360QSQRkG','personal','6YvbbZN','710871XwRWYM','company','8tnSuuk'];a43_0x5ef3=function(){return _0x2dbd2b;};return a43_0x5ef3();}function a43_0x2722(_0x2085e0,_0x33d225){_0x2085e0=_0x2085e0-0x71;const _0x5ef3d5=a43_0x5ef3();let _0x27222e=_0x5ef3d5[_0x2085e0];return _0x27222e;}export function listScopeToRemoteScope(_0x38847e){return _0x38847e;}
1
+ function a43_0x5acc(_0x3ac563,_0x990309){_0x3ac563=_0x3ac563-0x1dd;const _0x7dff8c=a43_0x7dff();let _0x5acc44=_0x7dff8c[_0x3ac563];return _0x5acc44;}function a43_0x7dff(){const _0x173013=['31227372uSFAYs','trim','all','validation','company','181592KGCqdH','Unsupported\x20Skill\x20sync\x20scope:\x20','25305CawBbp','1809ZBUCFg','personal','6590QxCceJ','5554VHaInG','5SInpjW','239lJBJPe','5636392cBIynr','259XgBfsm','3130296jrwcLm'];a43_0x7dff=function(){return _0x173013;};return a43_0x7dff();}(function(_0x29cacc,_0x5d1c4d){const _0x4a02b9=a43_0x5acc,_0x34b165=_0x29cacc();while(!![]){try{const _0x1ef336=-parseInt(_0x4a02b9(0x1ed))/0x1*(parseInt(_0x4a02b9(0x1eb))/0x2)+parseInt(_0x4a02b9(0x1e7))/0x3+-parseInt(_0x4a02b9(0x1dd))/0x4*(parseInt(_0x4a02b9(0x1ec))/0x5)+-parseInt(_0x4a02b9(0x1df))/0x6+-parseInt(_0x4a02b9(0x1de))/0x7*(-parseInt(_0x4a02b9(0x1e5))/0x8)+-parseInt(_0x4a02b9(0x1e8))/0x9*(parseInt(_0x4a02b9(0x1ea))/0xa)+parseInt(_0x4a02b9(0x1e0))/0xb;if(_0x1ef336===_0x5d1c4d)break;else _0x34b165['push'](_0x34b165['shift']());}catch(_0x5def89){_0x34b165['push'](_0x34b165['shift']());}}}(a43_0x7dff,0xea6ae));import{CliErrors}from'../../errors.js';export function normalizeSyncScopes(_0x36ef3f){const _0x434bd5=a43_0x5acc,_0xae6bbb=_0x36ef3f[_0x434bd5(0x1e1)]();if(!_0xae6bbb||_0xae6bbb==='all')return[_0x434bd5(0x1e9),_0x434bd5(0x1e4)];if(_0xae6bbb===_0x434bd5(0x1e9)||_0xae6bbb===_0x434bd5(0x1e4))return[_0xae6bbb];throw CliErrors['validation'](_0x434bd5(0x1e6)+_0x36ef3f);}export function normalizeListScope(_0x319168){const _0x5c2cd3=a43_0x5acc,_0x32cd23=_0x319168['trim']();if(!_0x32cd23)return _0x5c2cd3(0x1e2);if(_0x32cd23===_0x5c2cd3(0x1e9)||_0x32cd23===_0x5c2cd3(0x1e4)||_0x32cd23===_0x5c2cd3(0x1e2))return _0x32cd23;throw CliErrors[_0x5c2cd3(0x1e3)]('Unsupported\x20Skill\x20list\x20scope:\x20'+_0x319168);}export function shouldListScope(_0x2d032a,_0x53834d){const _0x128d63=a43_0x5acc;if(_0x2d032a===_0x128d63(0x1e2))return!![];return _0x2d032a===_0x53834d;}export function listScopeToRuntimeScopes(_0x19feee){const _0x3f9d49=a43_0x5acc;if(_0x19feee===_0x3f9d49(0x1e2))return['personal',_0x3f9d49(0x1e4)];return[_0x19feee===_0x3f9d49(0x1e4)?'company':_0x19feee];}export function listScopeToRemoteScope(_0x19e24e){return _0x19e24e;}
@@ -1 +1 @@
1
- function a44_0x32b1(_0x20f980,_0x5333f4){_0x20f980=_0x20f980-0xbe;var _0x4c5d5c=a44_0x4c5d();var _0x32b13b=_0x4c5d5c[_0x20f980];return _0x32b13b;}(function(_0x4bfd1a,_0x5dabc2){var _0x2b353e=a44_0x32b1,_0x278916=_0x4bfd1a();while(!![]){try{var _0x4a1696=parseInt(_0x2b353e(0xce))/0x1*(-parseInt(_0x2b353e(0xd2))/0x2)+-parseInt(_0x2b353e(0xcf))/0x3+-parseInt(_0x2b353e(0xcc))/0x4*(-parseInt(_0x2b353e(0xca))/0x5)+parseInt(_0x2b353e(0xc5))/0x6+parseInt(_0x2b353e(0xbe))/0x7*(parseInt(_0x2b353e(0xc9))/0x8)+parseInt(_0x2b353e(0xc3))/0x9*(-parseInt(_0x2b353e(0xc1))/0xa)+parseInt(_0x2b353e(0xc0))/0xb*(-parseInt(_0x2b353e(0xd3))/0xc);if(_0x4a1696===_0x5dabc2)break;else _0x278916['push'](_0x278916['shift']());}catch(_0x33d531){_0x278916['push'](_0x278916['shift']());}}}(a44_0x4c5d,0x323ef));export function summarizeRuntimeSkill(_0xcc6571){var _0x22ae19=a44_0x32b1;return{'id':_0xcc6571['id'],'skillCode':_0xcc6571[_0x22ae19(0xd0)],'skillName':_0xcc6571['skillName'],'scope':_0xcc6571[_0x22ae19(0xcb)],'version':_0xcc6571[_0x22ae19(0xc6)],'readonly':_0xcc6571[_0x22ae19(0xc7)]};}export function summarizeLocalRuntimeSkill(_0x12d9f2){var _0x565c48=a44_0x32b1;return{'id':_0x12d9f2['id'],'skillCode':_0x12d9f2[_0x565c48(0xd0)],'skillName':_0x12d9f2['skillName'],'scope':_0x12d9f2['scope'],'appCode':_0x12d9f2[_0x565c48(0xc8)],'version':_0x12d9f2[_0x565c48(0xc6)],'status':_0x12d9f2['status'],'readonly':_0x12d9f2[_0x565c48(0xc7)],'tags':_0x12d9f2['tags'],'dir':_0x12d9f2[_0x565c48(0xc4)],'cacheDir':_0x12d9f2['cacheDir'],'skillMdPath':_0x12d9f2[_0x565c48(0xd1)],'metadataPath':_0x12d9f2[_0x565c48(0xc2)],'linkedPaths':_0x12d9f2['linkedPaths'],'contentHash':_0x12d9f2['contentHash'],'treeHash':_0x12d9f2[_0x565c48(0xbf)],'pulledAt':_0x12d9f2[_0x565c48(0xcd)]};}function a44_0x4c5d(){var _0x4f7c2=['860901GouQJz','skillCode','skillMdPath','72aLDoJM','240xuajpl','3563tBfTMt','treeHash','89705IaRTGS','750OBIEoD','metadataPath','27567gOLsQK','dir','2022606Kczklh','version','readonly','appCode','4824mLmZeZ','5qvvfgq','scope','1027484hUIAdn','pulledAt','425YiPukc'];a44_0x4c5d=function(){return _0x4f7c2;};return a44_0x4c5d();}
1
+ (function(_0x2b5fb3,_0x54315b){var _0x180acd=a44_0x2494,_0x115276=_0x2b5fb3();while(!![]){try{var _0x3386a3=parseInt(_0x180acd(0xf3))/0x1*(parseInt(_0x180acd(0xeb))/0x2)+parseInt(_0x180acd(0xfd))/0x3+parseInt(_0x180acd(0xea))/0x4+-parseInt(_0x180acd(0xf6))/0x5+parseInt(_0x180acd(0xfa))/0x6+-parseInt(_0x180acd(0xf5))/0x7*(-parseInt(_0x180acd(0xe9))/0x8)+-parseInt(_0x180acd(0xef))/0x9;if(_0x3386a3===_0x54315b)break;else _0x115276['push'](_0x115276['shift']());}catch(_0x48aea5){_0x115276['push'](_0x115276['shift']());}}}(a44_0x5d1d,0x4d833));export function summarizeRuntimeSkill(_0x4e1350){var _0x44da1e=a44_0x2494;return{'id':_0x4e1350['id'],'skillCode':_0x4e1350['skillCode'],'skillName':_0x4e1350['skillName'],'scope':_0x4e1350[_0x44da1e(0xe8)],'version':_0x4e1350['version'],'readonly':_0x4e1350[_0x44da1e(0xf4)]};}function a44_0x2494(_0x27f4fe,_0x47d9b7){_0x27f4fe=_0x27f4fe-0xe7;var _0x5d1dda=a44_0x5d1d();var _0x249422=_0x5d1dda[_0x27f4fe];return _0x249422;}function a44_0x5d1d(){var _0x424cea=['tags','1134039GwTtsY','contentHash','pulledAt','skillCode','scope','58736tkfUkO','1668584ZaWhFW','932924BDYQgc','dir','status','skillMdPath','11728827MKAalp','treeHash','version','appCode','1frmFdc','readonly','98gRelzJ','370910RlyhBO','linkedPaths','skillName','cacheDir','1982802LznQeP','metadataPath'];a44_0x5d1d=function(){return _0x424cea;};return a44_0x5d1d();}export function summarizeLocalRuntimeSkill(_0x1148cc){var _0x45f7fe=a44_0x2494;return{'id':_0x1148cc['id'],'skillCode':_0x1148cc[_0x45f7fe(0xe7)],'skillName':_0x1148cc[_0x45f7fe(0xf8)],'scope':_0x1148cc[_0x45f7fe(0xe8)],'appCode':_0x1148cc[_0x45f7fe(0xf2)],'version':_0x1148cc[_0x45f7fe(0xf1)],'status':_0x1148cc[_0x45f7fe(0xed)],'readonly':_0x1148cc['readonly'],'tags':_0x1148cc[_0x45f7fe(0xfc)],'dir':_0x1148cc[_0x45f7fe(0xec)],'cacheDir':_0x1148cc[_0x45f7fe(0xf9)],'skillMdPath':_0x1148cc[_0x45f7fe(0xee)],'metadataPath':_0x1148cc[_0x45f7fe(0xfb)],'linkedPaths':_0x1148cc[_0x45f7fe(0xf7)],'contentHash':_0x1148cc[_0x45f7fe(0xfe)],'treeHash':_0x1148cc[_0x45f7fe(0xf0)],'pulledAt':_0x1148cc[_0x45f7fe(0xff)]};}
@@ -1 +1 @@
1
- const a45_0x3000c3=a45_0x2277;(function(_0x24949d,_0x573a5b){const _0x297bd8=a45_0x2277,_0x6b0b5c=_0x24949d();while(!![]){try{const _0x606004=-parseInt(_0x297bd8(0x1cd))/0x1*(-parseInt(_0x297bd8(0x1d0))/0x2)+-parseInt(_0x297bd8(0x1cf))/0x3+-parseInt(_0x297bd8(0x1db))/0x4+-parseInt(_0x297bd8(0x1c4))/0x5+-parseInt(_0x297bd8(0x1d8))/0x6+parseInt(_0x297bd8(0x1c2))/0x7*(parseInt(_0x297bd8(0x1cb))/0x8)+-parseInt(_0x297bd8(0x1cc))/0x9*(-parseInt(_0x297bd8(0x1ca))/0xa);if(_0x606004===_0x573a5b)break;else _0x6b0b5c['push'](_0x6b0b5c['shift']());}catch(_0x203608){_0x6b0b5c['push'](_0x6b0b5c['shift']());}}}(a45_0xd84b,0x68c2a));function a45_0xd84b(){const _0x2ddccf=['.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\x0a##\x20返回契约\x0a\x0a最终输出必须遵守\x20[output-contract.md](output-contract.md)。本文件只补充运行态安全约束;展示字段、状态枚举、失败暴露和人工处理项以\x20output-contract.md\x20为准。\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败状态识别、checkpoint、重试和人工接管方式】\x0a\x0a##\x20禁止事项\x0a\x0a-\x20禁止链接或读取\x20Skill\x20目录外的\x20AGENTS.md、wiki、docs、脚本或个人路径作为运行时必读依赖。\x0a-\x20禁止把说明性的缓存路径、安装路径、示例路径或排障路径包装成运行时必读依赖。\x0a-\x20禁止在未确认影响范围时执行写入。\x0a-\x20禁止隐藏失败或把未知状态描述为成功。\x0a','type','2452850AdLzAq','488zgBXGz','18AiCIzd','1vaQtiR','includes','786843iFxkIB','1197496vqsbvq','\x0a\x0a##\x20内部要求\x0a\x0a执行前必须读取并遵守\x20[runtime-contract.md](references/runtime-contract.md)\x20和\x20[output-contract.md](references/output-contract.md)。\x0a\x0a##\x20使用边界\x0a\x0a【填写该\x20Skill\x20能做什么、不能做什么、适用业务范围和禁止扩大执行范围】\x0a\x0a##\x20输入门禁\x0a\x0a【填写必须具备的输入;缺失业务对象、执行范围、确认信息或权限上下文时必须停止】\x0a\x0a##\x20与现有能力集成\x0a\x0a【填写本\x20Skill\x20使用的\x20lovrabet\x20data、lovrabet\x20sql、lovrabet\x20bff\x20或\x20lovrabet\x20personal-bff\x20命令,以及包内\x20references/\x20中沉淀的运行态入口、脚本对接方式或人工操作边界。不得依赖\x20Skill\x20目录外文件、绝对路径或本机专属配置。】\x0a\x0a##\x20平台能力优先\x0a\x0a【填写本\x20Skill\x20优先使用的\x20Lovrabet\x20平台命令:lovrabet\x20data\x20/\x20lovrabet\x20sql\x20/\x20lovrabet\x20bff\x20/\x20lovrabet\x20personal-bff。本地脚本仅用于平台明确不覆盖的文件格式转换、静态校验、展示整理或第三方薄适配;不得用本地脚本替代平台命令承载业务写入、权限判断、状态机、审批提交或回滚。】\x0a\x0a##\x20第三方服务边界\x0a\x0a【填写是否调用第三方识别、生成、上传或行业服务;如涉及\x20API\x20Key、OAuth、Cookie、登录态或业务数据上传,必须说明由\x20Lovrabet\x20应用后台、BFF\x20或平台适配器统一配置。目标治理口径是\x20Skill\x20不读取、不分发、不保存明文凭证。详细凭证、额度、审计和审核发布规则写入\x20references/runtime-contract.md。】\x0a\x0a##\x20SOP\x20工作流\x0a\x0a','read','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','join','trainer','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20','2560482ojMrHL','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','835052iveRtF','toISOString','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','trim','Use\x20one\x20of:\x20','references/output-contract.md','skillName','##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','timestamp','\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','test','63532bKtiAd','validation','1580325ygKCnm','write'];a45_0xd84b=function(){return _0x2ddccf;};return a45_0xd84b();}import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x3000c3(0x1c5),a45_0x3000c3(0x1d2),'trainer'];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;export const RUNTIME_CONTRACT_FILE='references/runtime-contract.md';export const OUTPUT_CONTRACT_FILE=a45_0x3000c3(0x1e0);export function validateSkillName(_0x5b5750){const _0x169983=a45_0x3000c3,_0x5db217=_0x5b5750[_0x169983(0x1de)]();if(!SKILL_NAME_PATTERN[_0x169983(0x1e5)](_0x5db217))throw CliErrors['validation']('Invalid\x20Skill\x20name:\x20'+_0x5b5750+_0x169983(0x1c6),_0x169983(0x1dd));return _0x5db217;}export function normalizeSkillTemplateType(_0xdb8e76){const _0x15a496=a45_0x3000c3,_0x38dd54=(_0xdb8e76||_0x15a496(0x1c5))[_0x15a496(0x1de)]()||_0x15a496(0x1c5);if(SKILL_TYPES[_0x15a496(0x1ce)](_0x38dd54))return _0x38dd54;throw CliErrors[_0x15a496(0x1c3)]('Unsupported\x20Skill\x20type:\x20'+_0xdb8e76,_0x15a496(0x1df)+SKILL_TYPES[_0x15a496(0x1d4)](',\x20')+'.');}function a45_0x2277(_0x4abfb6,_0x294f87){_0x4abfb6=_0x4abfb6-0x1c2;const _0xd84b22=a45_0xd84b();let _0x2277ab=_0xd84b22[_0x4abfb6];return _0x2277ab;}export function renderSkillTemplate(_0x245a5f){const _0xf0a0e7=a45_0x3000c3,_0x439cd7=validateSkillName(_0x245a5f[_0xf0a0e7(0x1e1)]),_0x4551fc=normalizeSkillTemplateType(_0x245a5f[_0xf0a0e7(0x1c9)]),_0x6358c8=_0x245a5f[_0xf0a0e7(0x1e3)]??new Date()[_0xf0a0e7(0x1dc)]();return{'skillName':_0x439cd7,'type':_0x4551fc,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x439cd7,_0x4551fc,_0x6358c8)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x439cd7,_0x4551fc)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x439cd7,_0x4551fc)}]};}function renderSkillMd(_0x4ba8a7,_0x5dcff6,_0x22a6f0){const _0x4692d2=a45_0x3000c3,_0x5e73b8=typeWorkflow(_0x5dcff6);return'---\x0aname:\x20'+_0x4ba8a7+_0x4692d2(0x1d7)+_0x5dcff6+'\x0a\x20\x20created:\x20\x22'+_0x22a6f0+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x4ba8a7+_0x4692d2(0x1d1)+_0x5e73b8+'\x0a\x0a'+businessStateSection(_0x5dcff6)+_0x4692d2(0x1c7);}function renderRuntimeContract(_0x45c0f4,_0x123c70){const _0x277dbe=a45_0x3000c3,_0x549d32=_0x123c70===_0x277dbe(0x1c5)?_0x277dbe(0x1d9):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x45c0f4+'\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='+_0x123c70+_0x277dbe(0x1e4)+_0x549d32+_0x277dbe(0x1c8);}function renderOutputContract(_0x1a615a,_0x1255e5){const _0x1e8433=a45_0x3000c3,_0x5cc5e9=_0x1255e5===_0x1e8433(0x1c5)?_0x1e8433(0x1d3):_0x1255e5+_0x1e8433(0x1d6);return'#\x20Output\x20Contract\x0a\x0a'+_0x1a615a+'\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'+_0x5cc5e9+'\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a';}function typeWorkflow(_0x58add0){const _0x56a20d=a45_0x3000c3;if(_0x58add0==='read')return'1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。';if(_0x58add0===_0x56a20d(0x1d5))return _0x56a20d(0x1da);return'1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】';}function businessStateSection(_0x3004ac){const _0x6d7201=a45_0x3000c3;if(_0x3004ac!==_0x6d7201(0x1c5))return'';return _0x6d7201(0x1e2);}
1
+ const a45_0x33b139=a45_0x4a24;(function(_0x1fe238,_0xe85693){const _0x585c99=a45_0x4a24,_0x47cef1=_0x1fe238();while(!![]){try{const _0x5f11d3=parseInt(_0x585c99(0x106))/0x1+-parseInt(_0x585c99(0x117))/0x2+-parseInt(_0x585c99(0x125))/0x3+parseInt(_0x585c99(0x10d))/0x4*(parseInt(_0x585c99(0x122))/0x5)+-parseInt(_0x585c99(0x108))/0x6+-parseInt(_0x585c99(0x11c))/0x7+parseInt(_0x585c99(0x118))/0x8;if(_0x5f11d3===_0xe85693)break;else _0x47cef1['push'](_0x47cef1['shift']());}catch(_0x258108){_0x47cef1['push'](_0x47cef1['shift']());}}}(a45_0x2b8d,0x82666));import{CliErrors}from'../../errors.js';export const SKILL_TYPES=[a45_0x33b139(0x105),'read',a45_0x33b139(0x107)];export const DEFAULT_SKILL_TARGET='.agents/skills';export const SKILL_NAME_PATTERN=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function a45_0x2b8d(){const _0x3034f4=['##\x20业务状态流转\x0a\x0a【填写本\x20Skill\x20的前置业务状态、允许动作、目标业务状态、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对,以及\x20unknown\x20/\x20needs_manual_check\x20处理。状态迁移合法性必须由业务\x20BFF、Lovrabet\x20平台命令或服务端接口判断,Skill\x20不作为状态事实源。】','\x0a\x0a##\x20展示规范\x0a\x0a【填写面向运营人员的展示字段、差异摘要、成功/失败状态和人工处理项;最终输出必须按\x20references/output-contract.md\x20的\x20status\x20/\x20mode\x20/\x20summary\x20/\x20errors\x20/\x20nextActions\x20返回,不能把\x20unknown、partial_success、failed\x20或\x20needs_manual_check\x20包装为\x20success。】\x0a\x0a##\x20失败恢复\x0a\x0a【填写失败后的\x20checkpoint、重试条件、人工接管方式和避免重复写入的核对步骤】\x0a','\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','.\x20Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens.','write','571000ocjAAg','trainer','4916856SWDyTs','Invalid\x20Skill\x20name:\x20','1.\x20只读查询:【填写查询入口、过滤条件和权限边界】\x0a2.\x20业务汇总:【填写统计口径、字段解释和异常提示】\x0a3.\x20查看链接:【填写可供运营人员复核的记录、页面或报告链接】\x0a4.\x20禁止写入:不得创建、更新、删除或触发会改变业务状态的动作。','join','1.\x20受控模板预览:【填写待维护内容、影响范围和预览方式】\x0a2.\x20用户确认:【填写确认信息和不可省略的人工判断点】\x0a3.\x20受控维护:【填写确认后的维护步骤和记录方式】\x0a4.\x20只读核对:【填写维护后的核对入口、差异和回滚/修正方式】','59156NnGHYI','validation','test','trim','\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=','Use\x20lowercase\x20letters,\x20numbers,\x20and\x20single\x20hyphens,\x20for\x20example\x20invoice-export.','includes','1.\x20dry-run:【填写预览入口、影响范围和差异摘要;不得写入业务数据】\x0a2.\x20用户确认:【填写确认语义、目标对象、数量、风险和操作者责任】\x0a3.\x20confirmed\x20写入:【填写确认后的写入入口和幂等/防重复要求】\x0a4.\x20只读核对:【填写写入后的查询核对、差异展示和结果链接】\x0a5.\x20checkpoint:【填写失败恢复、重试条件和人工接管方式】','type','##\x20状态读回与未知状态处理\x0a\x0a【填写业务状态事实源、fromStatus\x20->\x20toStatus\x20预览、写入后读回核对方式,以及\x20unknown\x20/\x20needs_manual_check\x20的处理边界】\x0a\x0a','1580848bxobGv','16393840TAwLKt','write\x20类型在\x20dry_run\x20下只展示预览、影响范围和差异,不写入业务数据。\x0aconfirmed\x20写入后必须执行读回核对,并把核对结果写入\x20verification。\x0a读回异常、业务状态未知或结果不一致时,status\x20必须为\x20partial_success、failed\x20或\x20needs_manual_check。','\x20类型默认不执行业务写入;如流程包含受控维护或人工确认,也必须用\x20mode\x20标明执行阶段并暴露核对结果。','Use\x20one\x20of:\x20','5080922jTLirS','skillName','references/runtime-contract.md','---\x0aname:\x20','\x20只作为模板选择器,不替代业务权限、风险等级和用户确认。\x0a\x0a##\x20运行态入口\x0a\x0a【填写包内说明的运行态入口、可调用脚本或人工执行边界】\x0a\x0a##\x20凭证与登录态\x0a\x0a【填写本\x20Skill\x20依赖的第三方服务凭证和登录态治理方式。强烈建议通过\x20Lovrabet\x20应用后台或平台服务端适配器做平台托管配置;开发先行阶段如存在临时明文凭证,应标注后续治理计划、适用环境和额度边界,并避免进入长期交付内容。】\x0a\x0a##\x20第三方候选资产\x0a\x0a【填写第三方生成类结果的消费边界。生成类结果仅作为候选素材;涉及商品图、客户资料、Excel\x20或业务文件上传时,必须声明授权、额度、审计、失败降级和人工审核/业务\x20BFF\x20校验后的发布边界。】\x0a\x0a##\x20预览\x20/\x20写入\x20/\x20核对差异\x0a\x0a【填写预览、确认、正式执行和只读核对的顺序】\x0a\x0a','\x0a##\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','255svkwVi','\x0a\x0a##\x20错误与人工接管\x0a\x0aerrors\x20必须包含失败阶段、错误原因和可复核对象。\x0anextActions\x20必须给出重试、补充输入、人工接管或停止处理的动作。\x0a','#\x20Output\x20Contract\x0a\x0a','1513815FafuqT'];a45_0x2b8d=function(){return _0x3034f4;};return a45_0x2b8d();}export const RUNTIME_CONTRACT_FILE=a45_0x33b139(0x11e);function a45_0x4a24(_0x21adfa,_0x3bf844){_0x21adfa=_0x21adfa-0x102;const _0x2b8dd3=a45_0x2b8d();let _0x4a24e1=_0x2b8dd3[_0x21adfa];return _0x4a24e1;}export const OUTPUT_CONTRACT_FILE='references/output-contract.md';export function validateSkillName(_0x4d20e2){const _0x2d3ef8=a45_0x33b139,_0x5cd105=_0x4d20e2[_0x2d3ef8(0x110)]();if(!SKILL_NAME_PATTERN[_0x2d3ef8(0x10f)](_0x5cd105))throw CliErrors['validation'](_0x2d3ef8(0x109)+_0x4d20e2+_0x2d3ef8(0x104),_0x2d3ef8(0x112));return _0x5cd105;}export function normalizeSkillTemplateType(_0x5a0f28){const _0x2b18bd=a45_0x33b139,_0x25e7c4=(_0x5a0f28||_0x2b18bd(0x105))[_0x2b18bd(0x110)]()||_0x2b18bd(0x105);if(SKILL_TYPES[_0x2b18bd(0x113)](_0x25e7c4))return _0x25e7c4;throw CliErrors[_0x2b18bd(0x10e)]('Unsupported\x20Skill\x20type:\x20'+_0x5a0f28,_0x2b18bd(0x11b)+SKILL_TYPES[_0x2b18bd(0x10b)](',\x20')+'.');}export function renderSkillTemplate(_0x2a32d0){const _0x1b424a=a45_0x33b139,_0x3d6bd9=validateSkillName(_0x2a32d0[_0x1b424a(0x11d)]),_0x51192f=normalizeSkillTemplateType(_0x2a32d0[_0x1b424a(0x115)]),_0xbd4c36=_0x2a32d0['timestamp']??new Date()['toISOString']();return{'skillName':_0x3d6bd9,'type':_0x51192f,'files':[{'path':'SKILL.md','content':renderSkillMd(_0x3d6bd9,_0x51192f,_0xbd4c36)},{'path':RUNTIME_CONTRACT_FILE,'content':renderRuntimeContract(_0x3d6bd9,_0x51192f)},{'path':OUTPUT_CONTRACT_FILE,'content':renderOutputContract(_0x3d6bd9,_0x51192f)}]};}function renderSkillMd(_0x447088,_0x44d572,_0x4f5f1a){const _0x1066fb=a45_0x33b139,_0x1d9c6e=typeWorkflow(_0x44d572);return _0x1066fb(0x11f)+_0x447088+'\x0adescription:\x20\x22【填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词】\x22\x0ametadata:\x0a\x20\x20type:\x20'+_0x44d572+'\x0a\x20\x20created:\x20\x22'+_0x4f5f1a+'\x22\x0a\x20\x20generator:\x20\x22lovrabet\x20skill\x20create\x22\x0a---\x0a\x0a#\x20'+_0x447088+'\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'+_0x1d9c6e+'\x0a\x0a'+businessStateSection(_0x44d572)+_0x1066fb(0x102);}function renderRuntimeContract(_0x4248f7,_0x3b650d){const _0x2ef034=a45_0x33b139,_0x433e5d=_0x3b650d===_0x2ef034(0x105)?_0x2ef034(0x116):'';return'#\x20Runtime\x20Contract\x0a\x0aSkill\x20push\x20后的\x20zip\x20包就是完整交付产物。'+_0x4248f7+_0x2ef034(0x111)+_0x3b650d+_0x2ef034(0x120)+_0x433e5d+_0x2ef034(0x121);}function renderOutputContract(_0x559eb5,_0x40379c){const _0x17844f=a45_0x33b139,_0x45a527=_0x40379c===_0x17844f(0x105)?_0x17844f(0x119):_0x40379c+_0x17844f(0x11a);return _0x17844f(0x124)+_0x559eb5+_0x17844f(0x103)+_0x45a527+_0x17844f(0x123);}function typeWorkflow(_0x1d8d1c){const _0x476226=a45_0x33b139;if(_0x1d8d1c==='read')return _0x476226(0x10a);if(_0x1d8d1c===_0x476226(0x107))return _0x476226(0x10c);return _0x476226(0x114);}function businessStateSection(_0x11bd29){const _0x1d276e=a45_0x33b139;if(_0x11bd29!=='write')return'';return _0x1d276e(0x126);}
@@ -1 +1 @@
1
- const a46_0x12aae5=a46_0xb41c;(function(_0x4d74ac,_0x486830){const _0x2fbf27=a46_0xb41c,_0x39d2ca=_0x4d74ac();while(!![]){try{const _0x29b415=parseInt(_0x2fbf27(0x14c))/0x1*(-parseInt(_0x2fbf27(0x179))/0x2)+parseInt(_0x2fbf27(0x156))/0x3*(-parseInt(_0x2fbf27(0x180))/0x4)+-parseInt(_0x2fbf27(0x16f))/0x5+parseInt(_0x2fbf27(0x182))/0x6*(-parseInt(_0x2fbf27(0x160))/0x7)+parseInt(_0x2fbf27(0x162))/0x8*(parseInt(_0x2fbf27(0x164))/0x9)+parseInt(_0x2fbf27(0x142))/0xa*(parseInt(_0x2fbf27(0x14d))/0xb)+-parseInt(_0x2fbf27(0x14e))/0xc*(-parseInt(_0x2fbf27(0x17c))/0xd);if(_0x29b415===_0x486830)break;else _0x39d2ca['push'](_0x39d2ca['shift']());}catch(_0x419b29){_0x39d2ca['push'](_0x39d2ca['shift']());}}}(a46_0x2e77,0x3f5a6));function a46_0xb41c(_0x1e6830,_0x428ece){_0x1e6830=_0x1e6830-0x136;const _0x2e7722=a46_0x2e77();let _0xb41c8d=_0x2e7722[_0x1e6830];return _0xb41c8d;}function a46_0x2e77(){const _0x402bc6=['content','utf8','Missing\x20SKILL.md.','service','slice','level','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','20694eNACau','internal','rabetbase-cli-reference','Skill\x20directory\x20not\x20found:\x20','Frontmatter\x20name\x20is\x20missing.','logs','Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.','dataset','has','auth','56TKzpYJ','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','18936JlynIg','join','1584HEVGJM','name','sql','error','warning','description','internal-skill','project','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','isSymbolicLink','startsWith','2363160lqGKlF','isDirectory','match','registry','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','test','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','flatMap','read','raw','998Vrupfc','description-required','SKILL.md\x20is\x20not\x20a\x20file.','13BWuqaW','artifact','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','frontmatter-required','176nqCHYt','push','362688OjAPpf','isFile','This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','map','Frontmatter\x20description\x20is\x20empty.','write','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','file','validation','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','false','suggestion','SKILL.md\x20must\x20start\x20with\x20frontmatter.','path','metadata','filter','10uzHbHc','bff','trim','split','true','section','page','type','Add\x20frontmatter\x20with\x20name\x20and\x20description.','structure-complete','929nWLGLr','4225045DkhLGV','14185272FeAtQx'];a46_0x2e77=function(){return _0x402bc6;};return a46_0x2e77();}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_0x12aae5(0x137),a46_0x12aae5(0x177),'trainer']),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x5b5849,_0x782192={}){const _0x12cb12=a46_0x12aae5,_0x34aa72=resolveSkillDirectoryRoot(_0x5b5849),_0x306cce=[],_0x29cd9a=loadRequiredSkillFile(_0x34aa72,_0x306cce),_0x299040=_0x29cd9a?parseFrontmatter(_0x29cd9a[_0x12cb12(0x14f)]):{'hasFrontmatter':![]};_0x29cd9a&&validateFrontmatter(_0x29cd9a[_0x12cb12(0x13f)],_0x299040,_0x306cce);validateRuntimeCliReferences(_0x34aa72,_0x306cce);const _0x19994f=_0x306cce[_0x12cb12(0x141)](_0x186ceb=>_0x186ceb[_0x12cb12(0x154)]===_0x12cb12(0x167)),_0x477065=_0x306cce[_0x12cb12(0x141)](_0x316bbb=>_0x316bbb[_0x12cb12(0x154)]===_0x12cb12(0x168));return{'ok':_0x19994f['length']===0x0,'dir':_0x34aa72,'type':_0x299040[_0x12cb12(0x149)],'errors':_0x19994f,'warnings':_0x477065};}function resolveSkillDirectoryRoot(_0x149f30){const _0x4c65af=a46_0x12aae5,_0xfcafe6=resolve(_0x149f30);if(!existsSync(_0xfcafe6))throw CliErrors[_0x4c65af(0x13a)](_0x4c65af(0x159)+_0x149f30);const _0x20e317=lstatSync(_0xfcafe6);if(_0x20e317[_0x4c65af(0x170)]())return _0xfcafe6;if(_0x20e317[_0x4c65af(0x16d)]()){const _0x430622=realpathSync(_0xfcafe6);if(lstatSync(_0x430622)[_0x4c65af(0x170)]())return _0x430622;}throw CliErrors[_0x4c65af(0x13a)](_0x4c65af(0x159)+_0x149f30);}export function throwIfSkillValidationFailed(_0x506064,_0x13f9d9=![]){const _0x2c8ee8=a46_0x12aae5;if(_0x506064['ok'])return;const _0x493fe0=_0x506064['errors'][_0x2c8ee8(0x186)](_0x248fc4=>{const _0x49a71b=_0x2c8ee8,_0x3cc2fb=_0x248fc4[_0x49a71b(0x147)]?'#'+_0x248fc4[_0x49a71b(0x147)]:'';return _0x248fc4[_0x49a71b(0x154)]['toUpperCase']()+'\x20'+_0x248fc4['ruleId']+'\x20'+_0x248fc4[_0x49a71b(0x139)]+_0x3cc2fb+':\x20'+_0x248fc4['message']+'\x20Fix:\x20'+_0x248fc4[_0x49a71b(0x13d)];});throw CliErrors[_0x2c8ee8(0x13a)]('Skill\x20validation\x20failed:\x0a'+_0x493fe0[_0x2c8ee8(0x163)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x34837c,_0x28c224){const _0x4566e0=a46_0x12aae5,_0x5e5bd1=resolve(_0x34837c,SKILL_FILE);if(!existsSync(_0x5e5bd1))return _0x28c224['push'](issue(_0x4566e0(0x167),_0x4566e0(0x14b),SKILL_FILE,_0x4566e0(0x151),_0x4566e0(0x17e))),undefined;const _0x2b1f24=lstatSync(_0x5e5bd1);if(_0x2b1f24[_0x4566e0(0x16d)]())return _0x28c224[_0x4566e0(0x181)](issue('error',_0x4566e0(0x14b),SKILL_FILE,_0x4566e0(0x173),_0x4566e0(0x185))),undefined;if(!_0x2b1f24[_0x4566e0(0x183)]())return _0x28c224[_0x4566e0(0x181)](issue(_0x4566e0(0x167),_0x4566e0(0x14b),SKILL_FILE,_0x4566e0(0x17b),_0x4566e0(0x15c))),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x5e5bd1,_0x4566e0(0x150))};}function validateFrontmatter(_0x54a43f,_0x350d88,_0x206218){const _0x1fa828=a46_0x12aae5;if(!_0x350d88['hasFrontmatter']){_0x206218[_0x1fa828(0x181)](issue(_0x1fa828(0x167),_0x1fa828(0x17f),_0x54a43f,_0x1fa828(0x13e),_0x1fa828(0x14a)));return;}!_0x350d88[_0x1fa828(0x165)]?.[_0x1fa828(0x144)]()&&_0x206218[_0x1fa828(0x181)](issue(_0x1fa828(0x167),'frontmatter-required',_0x54a43f,_0x1fa828(0x15a),_0x1fa828(0x155))),!_0x350d88[_0x1fa828(0x169)]?.[_0x1fa828(0x144)]()&&_0x206218[_0x1fa828(0x181)](issue('error',_0x1fa828(0x17a),_0x54a43f,_0x1fa828(0x136),_0x1fa828(0x138))),_0x350d88[_0x1fa828(0x157)]===!![]&&_0x206218['push'](issue(_0x1fa828(0x167),_0x1fa828(0x16a),_0x54a43f,_0x1fa828(0x161),_0x1fa828(0x13b))),_0x350d88[_0x1fa828(0x149)]?.[_0x1fa828(0x144)]()&&!SUPPORTED_SKILL_TYPES[_0x1fa828(0x15e)](_0x350d88[_0x1fa828(0x149)])&&_0x206218[_0x1fa828(0x181)](issue(_0x1fa828(0x167),_0x1fa828(0x17f),_0x54a43f,'metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.',_0x1fa828(0x175)));}function validateRuntimeCliReferences(_0x12884a,_0x48d0bf){const _0xf495f8=a46_0x12aae5;for(const _0x2a806e of findRabetbaseCliInvocations(_0x12884a)){_0x48d0bf['push'](issue('warning',_0xf495f8(0x158),_0x2a806e[_0xf495f8(0x139)],_0xf495f8(0x184),_0xf495f8(0x16c),'L'+_0x2a806e['line']));}}function findRabetbaseCliInvocations(_0x2fc1f4){const _0x56d13a=a46_0x12aae5;return scanSkillDirectory(_0x2fc1f4)['filter'](_0x50a576=>TEXT_SKILL_FILE_PATTERN[_0x56d13a(0x174)](_0x50a576['path']))[_0x56d13a(0x176)](_0x44f249=>{const _0xc1d34=_0x56d13a,_0x30289f=fileText(_0x44f249);return _0x30289f[_0xc1d34(0x145)](/\r?\n/)[_0xc1d34(0x186)]((_0x730cba,_0x35e624)=>({'file':_0x44f249[_0xc1d34(0x13f)],'line':_0x35e624+0x1,'text':_0x730cba}))[_0xc1d34(0x141)](({text:_0x111afa})=>isRabetbaseCliInvocation(_0x111afa))[_0xc1d34(0x186)](({file:_0x3173ef,line:_0x356a18})=>({'file':_0x3173ef,'line':_0x356a18}));});}const RABETBASE_SUBCOMMANDS=[a46_0x12aae5(0x15d),a46_0x12aae5(0x166),a46_0x12aae5(0x143),a46_0x12aae5(0x148),a46_0x12aae5(0x16b),'app','schema',a46_0x12aae5(0x152),a46_0x12aae5(0x17d),'kb','config','workspace','data',a46_0x12aae5(0x15f),a46_0x12aae5(0x15b),a46_0x12aae5(0x172)],RABETBASE_INVOCATION=new RegExp(String['raw']`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a46_0x12aae5(0x178)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x526fc9){const _0x14faf8=a46_0x12aae5,_0x34d058=_0x526fc9['search'](/\brabetbase\b/i);if(_0x34d058<0x0)return![];const _0x3d8ffe=_0x526fc9[_0x14faf8(0x153)](_0x34d058)[_0x14faf8(0x145)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x14faf8(0x174)](_0x3d8ffe);}function parseFrontmatter(_0x4f4c4e){const _0xb1f282=a46_0x12aae5,_0x701cc8=_0x4f4c4e[_0xb1f282(0x171)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x701cc8)return{'hasFrontmatter':![]};const _0x1d679f=_0x701cc8[0x1]??'',_0xbe9b8e={'hasFrontmatter':!![]};let _0x101feb=![];for(const _0x4cd208 of _0x1d679f[_0xb1f282(0x145)](/\r?\n/)){if(/^\s*$/[_0xb1f282(0x174)](_0x4cd208))continue;const _0x279e86=_0x4cd208[_0xb1f282(0x171)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x279e86){const _0x1a030f=_0x279e86[0x1],_0x439dfc=cleanScalar(_0x279e86[0x2]??'');_0x101feb=_0x1a030f===_0xb1f282(0x140);if(_0x1a030f===_0xb1f282(0x165))_0xbe9b8e[_0xb1f282(0x165)]=_0x439dfc;if(_0x1a030f===_0xb1f282(0x169))_0xbe9b8e[_0xb1f282(0x169)]=_0x439dfc;continue;}const _0x635af4=_0x4cd208['match'](/^\s+type:\s*(.*)$/);if(_0x101feb&&_0x635af4){_0xbe9b8e[_0xb1f282(0x149)]=cleanScalar(_0x635af4[0x1]??'');continue;}const _0x48c3f8=_0x4cd208[_0xb1f282(0x171)](/^\s+internal:\s*(.*)$/);_0x101feb&&_0x48c3f8&&(_0xbe9b8e[_0xb1f282(0x157)]=cleanBoolean(_0x48c3f8[0x1]??''));}return _0xbe9b8e;}function cleanScalar(_0x104be4){const _0x339556=a46_0x12aae5,_0x45ff91=_0x104be4[_0x339556(0x144)]();if(_0x45ff91[_0x339556(0x16e)]('\x22')&&_0x45ff91['endsWith']('\x22')||_0x45ff91[_0x339556(0x16e)]('\x27')&&_0x45ff91['endsWith']('\x27'))return _0x45ff91['slice'](0x1,-0x1);return _0x45ff91;}function cleanBoolean(_0x3d397f){const _0x36b52b=a46_0x12aae5,_0x3847c8=cleanScalar(_0x3d397f)['toLowerCase']();if(_0x3847c8===_0x36b52b(0x146))return!![];if(_0x3847c8===_0x36b52b(0x13c))return![];return undefined;}function issue(_0x229f48,_0x2755d3,_0x37425c,_0x243de9,_0x166ae0,_0x46605a){return{'level':_0x229f48,'ruleId':_0x2755d3,'file':_0x37425c,'section':_0x46605a,'message':_0x243de9,'suggestion':_0x166ae0};}
1
+ const a46_0x3551a6=a46_0x1edb;(function(_0x2ef6e0,_0x785ea2){const _0x3c6e4e=a46_0x1edb,_0x4d2fc4=_0x2ef6e0();while(!![]){try{const _0x1f1318=-parseInt(_0x3c6e4e(0x18a))/0x1+parseInt(_0x3c6e4e(0x188))/0x2*(parseInt(_0x3c6e4e(0x1a0))/0x3)+parseInt(_0x3c6e4e(0x197))/0x4+parseInt(_0x3c6e4e(0x1c4))/0x5+-parseInt(_0x3c6e4e(0x1b2))/0x6+-parseInt(_0x3c6e4e(0x18f))/0x7*(parseInt(_0x3c6e4e(0x1aa))/0x8)+parseInt(_0x3c6e4e(0x1a3))/0x9*(-parseInt(_0x3c6e4e(0x19b))/0xa);if(_0x1f1318===_0x785ea2)break;else _0x4d2fc4['push'](_0x4d2fc4['shift']());}catch(_0x17fd10){_0x4d2fc4['push'](_0x4d2fc4['shift']());}}}(a46_0x1d28,0x4f775));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';function a46_0x1edb(_0x14ef7d,_0x330e5f){_0x14ef7d=_0x14ef7d-0x177;const _0x1d2862=a46_0x1d28();let _0x1edb0a=_0x1d2862[_0x14ef7d];return _0x1edb0a;}const SKILL_FILE='SKILL.md',SUPPORTED_SKILL_TYPES=new Set([a46_0x3551a6(0x182),a46_0x3551a6(0x190),a46_0x3551a6(0x178)]),TEXT_SKILL_FILE_PATTERN=/(?:^SKILL\.md$|\.(?:md|mdx|txt|json|ya?ml|js|mjs|cjs|ts|tsx|sh|sql))$/i;export function validateSkillDirectory(_0x39af9f,_0x4f2aee={}){const _0x4ce141=a46_0x3551a6,_0x3f0c85=resolveSkillDirectoryRoot(_0x39af9f),_0x51edbd=[],_0x329dc9=loadRequiredSkillFile(_0x3f0c85,_0x51edbd),_0x30d62e=_0x329dc9?parseFrontmatter(_0x329dc9[_0x4ce141(0x1b5)]):{'hasFrontmatter':![]};_0x329dc9&&validateFrontmatter(_0x329dc9['path'],_0x30d62e,_0x51edbd);validateRuntimeCliReferences(_0x3f0c85,_0x51edbd);const _0x414a08=_0x51edbd[_0x4ce141(0x18d)](_0x55595b=>_0x55595b[_0x4ce141(0x192)]==='error'),_0x12033e=_0x51edbd[_0x4ce141(0x18d)](_0x4e8b50=>_0x4e8b50[_0x4ce141(0x192)]==='warning');return{'ok':_0x414a08[_0x4ce141(0x1c2)]===0x0,'dir':_0x3f0c85,'type':_0x30d62e[_0x4ce141(0x1c7)],'errors':_0x414a08,'warnings':_0x12033e};}function resolveSkillDirectoryRoot(_0x4232f1){const _0x3da439=a46_0x3551a6,_0x7680f1=resolve(_0x4232f1);if(!existsSync(_0x7680f1))throw CliErrors['validation'](_0x3da439(0x17f)+_0x4232f1);const _0x239f85=lstatSync(_0x7680f1);if(_0x239f85[_0x3da439(0x198)]())return _0x7680f1;if(_0x239f85[_0x3da439(0x1af)]()){const _0x3a0a4a=realpathSync(_0x7680f1);if(lstatSync(_0x3a0a4a)[_0x3da439(0x198)]())return _0x3a0a4a;}throw CliErrors['validation']('Skill\x20directory\x20not\x20found:\x20'+_0x4232f1);}export function throwIfSkillValidationFailed(_0x502dc4,_0x330365=![]){const _0xe3051=a46_0x3551a6;if(_0x502dc4['ok'])return;const _0x1c5d5c=_0x502dc4['errors']['map'](_0x2b281c=>{const _0x189f07=a46_0x1edb,_0x257e8a=_0x2b281c['section']?'#'+_0x2b281c[_0x189f07(0x1a5)]:'';return _0x2b281c[_0x189f07(0x192)][_0x189f07(0x1ad)]()+'\x20'+_0x2b281c[_0x189f07(0x1ba)]+'\x20'+_0x2b281c[_0x189f07(0x196)]+_0x257e8a+':\x20'+_0x2b281c[_0x189f07(0x1a7)]+'\x20Fix:\x20'+_0x2b281c[_0x189f07(0x1b9)];});throw CliErrors[_0xe3051(0x1bd)](_0xe3051(0x1b7)+_0x1c5d5c[_0xe3051(0x1bc)]('\x0a'),'Fix\x20the\x20Skill\x20metadata\x20before\x20running\x20skill\x20push.');}function loadRequiredSkillFile(_0x3f5821,_0x197b7c){const _0x5e7965=a46_0x3551a6,_0x4a6b29=resolve(_0x3f5821,SKILL_FILE);if(!existsSync(_0x4a6b29))return _0x197b7c['push'](issue(_0x5e7965(0x18c),_0x5e7965(0x1c1),SKILL_FILE,'Missing\x20SKILL.md.',_0x5e7965(0x19a))),undefined;const _0x18e79f=lstatSync(_0x4a6b29);if(_0x18e79f[_0x5e7965(0x1af)]())return _0x197b7c[_0x5e7965(0x1ab)](issue(_0x5e7965(0x18c),_0x5e7965(0x1c1),SKILL_FILE,_0x5e7965(0x1b4),_0x5e7965(0x187))),undefined;if(!_0x18e79f[_0x5e7965(0x180)]())return _0x197b7c['push'](issue('error',_0x5e7965(0x1c1),SKILL_FILE,_0x5e7965(0x1bb),'Add\x20SKILL.md\x20as\x20a\x20regular\x20file\x20at\x20the\x20Skill\x20directory\x20root.')),undefined;return{'path':SKILL_FILE,'content':readFileSync(_0x4a6b29,_0x5e7965(0x1b6))};}function validateFrontmatter(_0x17704c,_0x455974,_0x3d8296){const _0xc764f3=a46_0x3551a6;if(!_0x455974['hasFrontmatter']){_0x3d8296[_0xc764f3(0x1ab)](issue(_0xc764f3(0x18c),'frontmatter-required',_0x17704c,_0xc764f3(0x1b8),_0xc764f3(0x1a4)));return;}!_0x455974[_0xc764f3(0x1a6)]?.[_0xc764f3(0x1ae)]()&&_0x3d8296[_0xc764f3(0x1ab)](issue(_0xc764f3(0x18c),_0xc764f3(0x17c),_0x17704c,_0xc764f3(0x194),_0xc764f3(0x183))),!_0x455974[_0xc764f3(0x18b)]?.[_0xc764f3(0x1ae)]()&&_0x3d8296[_0xc764f3(0x1ab)](issue(_0xc764f3(0x18c),'description-required',_0x17704c,_0xc764f3(0x191),_0xc764f3(0x186))),_0x455974['internal']===!![]&&_0x3d8296[_0xc764f3(0x1ab)](issue('error','internal-skill',_0x17704c,_0xc764f3(0x1a2),_0xc764f3(0x179))),_0x455974[_0xc764f3(0x1c7)]?.['trim']()&&!SUPPORTED_SKILL_TYPES[_0xc764f3(0x17b)](_0x455974[_0xc764f3(0x1c7)])&&_0x3d8296[_0xc764f3(0x1ab)](issue(_0xc764f3(0x18c),_0xc764f3(0x17c),_0x17704c,_0xc764f3(0x19f),_0xc764f3(0x199)));}function validateRuntimeCliReferences(_0x421bf2,_0x3452a0){const _0x346778=a46_0x3551a6;for(const _0x3dd0bf of findRabetbaseCliInvocations(_0x421bf2)){_0x3452a0['push'](issue(_0x346778(0x1bf),_0x346778(0x1c6),_0x3dd0bf[_0x346778(0x196)],'This\x20line\x20invokes\x20the\x20rabetbase\x20CLI.\x20rabetbase\x20is\x20a\x20dev-time\x20tool;\x20runtime\x20Skills\x20should\x20drive\x20runtime\x20work\x20through\x20lovrabet\x20commands.',_0x346778(0x17a),'L'+_0x3dd0bf[_0x346778(0x19d)]));}}function findRabetbaseCliInvocations(_0x1d75d9){const _0x124e64=a46_0x3551a6;return scanSkillDirectory(_0x1d75d9)[_0x124e64(0x18d)](_0x1a7585=>TEXT_SKILL_FILE_PATTERN[_0x124e64(0x193)](_0x1a7585[_0x124e64(0x1b0)]))['flatMap'](_0x12f3cd=>{const _0x16c8ef=_0x124e64,_0x1de2ce=fileText(_0x12f3cd);return _0x1de2ce[_0x16c8ef(0x1ac)](/\r?\n/)['map']((_0x21c59c,_0x24143b)=>({'file':_0x12f3cd[_0x16c8ef(0x1b0)],'line':_0x24143b+0x1,'text':_0x21c59c}))[_0x16c8ef(0x18d)](({text:_0x141c42})=>isRabetbaseCliInvocation(_0x141c42))[_0x16c8ef(0x177)](({file:_0x246d16,line:_0xe801fe})=>({'file':_0x246d16,'line':_0xe801fe}));});}const RABETBASE_SUBCOMMANDS=['dataset',a46_0x3551a6(0x189),'bff',a46_0x3551a6(0x17e),a46_0x3551a6(0x1c5),a46_0x3551a6(0x17d),a46_0x3551a6(0x195),a46_0x3551a6(0x1a1),a46_0x3551a6(0x1b1),'kb',a46_0x3551a6(0x19e),a46_0x3551a6(0x1a9),a46_0x3551a6(0x1a8),'auth','logs',a46_0x3551a6(0x1be)],RABETBASE_INVOCATION=new RegExp(String[a46_0x3551a6(0x19c)]`\brabetbase\s+(?:${RABETBASE_SUBCOMMANDS['join']('|')})\b`+String[a46_0x3551a6(0x19c)]`(?:\s+[a-z][\w-]*){0,2}\s+(?:--?[a-z]|[\w.-]+=)`,'i');function isRabetbaseCliInvocation(_0x2d3ed8){const _0x418592=a46_0x3551a6,_0x33cdba=_0x2d3ed8[_0x418592(0x1c3)](/\brabetbase\b/i);if(_0x33cdba<0x0)return![];const _0x457cfa=_0x2d3ed8['slice'](_0x33cdba)[_0x418592(0x1ac)](/\blovrabet\b/i)[0x0]??'';return RABETBASE_INVOCATION[_0x418592(0x193)](_0x457cfa);}function a46_0x1d28(){const _0x31803f=['2233362tqoUjc','metadata','SKILL.md\x20must\x20be\x20a\x20regular\x20file.','content','utf8','Skill\x20validation\x20failed:\x0a','SKILL.md\x20must\x20start\x20with\x20frontmatter.','suggestion','ruleId','SKILL.md\x20is\x20not\x20a\x20file.','join','validation','registry','warning','internal','structure-complete','length','search','852690JLoSfu','project','rabetbase-cli-reference','type','map','trainer','Remove\x20metadata.internal\x20or\x20set\x20it\x20to\x20false\x20before\x20running\x20skill\x20push.','If\x20this\x20is\x20a\x20runtime\x20step,\x20replace\x20it\x20with\x20the\x20equivalent\x20lovrabet\x20command.\x20Dev-time\x20discovery\x20or\x20handoff\x20notes\x20can\x20stay.','has','frontmatter-required','app','page','Skill\x20directory\x20not\x20found:\x20','isFile','endsWith','write','Set\x20name\x20to\x20the\x20Skill\x20directory\x20code.','match','slice','填写模型触发语义:用户在什么场景应使用本\x20Skill、不要使用的边界和关键词。','Replace\x20the\x20symlink\x20with\x20a\x20regular\x20SKILL.md\x20file\x20inside\x20the\x20Skill\x20directory.','624366yKkpNJ','sql','165138RDyJjK','description','error','filter','startsWith','149261skXYhy','read','Frontmatter\x20description\x20is\x20empty.','level','test','Frontmatter\x20name\x20is\x20missing.','schema','file','2507820MFDmFp','isDirectory','Set\x20metadata.type\x20to\x20write,\x20read,\x20or\x20trainer.','Add\x20SKILL.md\x20at\x20the\x20Skill\x20directory\x20root.','70ditpBX','raw','line','config','metadata.type\x20must\x20be\x20one\x20of\x20write,\x20read,\x20or\x20trainer.','3CTIpqR','service','metadata.internal=true\x20Skills\x20cannot\x20be\x20uploaded.','180261Gnvxbp','Add\x20frontmatter\x20with\x20name\x20and\x20description.','section','name','message','data','workspace','40QONyeA','push','split','toUpperCase','trim','isSymbolicLink','path','artifact'];a46_0x1d28=function(){return _0x31803f;};return a46_0x1d28();}function parseFrontmatter(_0x46e6c8){const _0x145701=a46_0x3551a6,_0x56c945=_0x46e6c8[_0x145701(0x184)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x56c945)return{'hasFrontmatter':![]};const _0x51ecc7=_0x56c945[0x1]??'',_0x1cfedc={'hasFrontmatter':!![]};let _0x40aa34=![];for(const _0x13837d of _0x51ecc7[_0x145701(0x1ac)](/\r?\n/)){if(/^\s*$/[_0x145701(0x193)](_0x13837d))continue;const _0x1c9c1b=_0x13837d[_0x145701(0x184)](/^([A-Za-z0-9_-]+):\s*(.*)$/);if(_0x1c9c1b){const _0x35a5b0=_0x1c9c1b[0x1],_0x4ae86b=cleanScalar(_0x1c9c1b[0x2]??'');_0x40aa34=_0x35a5b0===_0x145701(0x1b3);if(_0x35a5b0===_0x145701(0x1a6))_0x1cfedc[_0x145701(0x1a6)]=_0x4ae86b;if(_0x35a5b0==='description')_0x1cfedc[_0x145701(0x18b)]=_0x4ae86b;continue;}const _0x5e4c91=_0x13837d['match'](/^\s+type:\s*(.*)$/);if(_0x40aa34&&_0x5e4c91){_0x1cfedc['type']=cleanScalar(_0x5e4c91[0x1]??'');continue;}const _0x240b23=_0x13837d[_0x145701(0x184)](/^\s+internal:\s*(.*)$/);_0x40aa34&&_0x240b23&&(_0x1cfedc[_0x145701(0x1c0)]=cleanBoolean(_0x240b23[0x1]??''));}return _0x1cfedc;}function cleanScalar(_0x13bd66){const _0x20f9d8=a46_0x3551a6,_0x4e70f2=_0x13bd66[_0x20f9d8(0x1ae)]();if(_0x4e70f2[_0x20f9d8(0x18e)]('\x22')&&_0x4e70f2[_0x20f9d8(0x181)]('\x22')||_0x4e70f2[_0x20f9d8(0x18e)]('\x27')&&_0x4e70f2['endsWith']('\x27'))return _0x4e70f2[_0x20f9d8(0x185)](0x1,-0x1);return _0x4e70f2;}function cleanBoolean(_0x48208e){const _0x31fdda=cleanScalar(_0x48208e)['toLowerCase']();if(_0x31fdda==='true')return!![];if(_0x31fdda==='false')return![];return undefined;}function issue(_0x21d02f,_0x2f6da2,_0x3e42d8,_0x217471,_0x218dd5,_0x40aedb){return{'level':_0x21d02f,'ruleId':_0x2f6da2,'file':_0x3e42d8,'section':_0x40aedb,'message':_0x217471,'suggestion':_0x218dd5};}
@@ -1 +1 @@
1
- const a47_0x1eae83=a47_0x12fe;function a47_0x4ec9(){const _0x5cc325=['appCode','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','sqlCode','26CVNMOY','2PvEByC','11220lHYjpc','str','sql','dbId','117JyrrhA','20829nAKgCU','1360092MsloyO','516wFqfeI','4405329IXAYuN','984Riokwk','detail','sqlcode','sqlName','4100leLKHz','9340HmIiik','read','27587pfValP','6645iNjBfw','bool'];a47_0x4ec9=function(){return _0x5cc325;};return a47_0x4ec9();}(function(_0x1354bc,_0x4a5321){const _0x58fbc9=a47_0x12fe,_0x31b35d=_0x1354bc();while(!![]){try{const _0x34c4f8=-parseInt(_0x58fbc9(0x144))/0x1*(parseInt(_0x58fbc9(0x13e))/0x2)+parseInt(_0x58fbc9(0x143))/0x3*(parseInt(_0x58fbc9(0x135))/0x4)+-parseInt(_0x58fbc9(0x138))/0x5*(parseInt(_0x58fbc9(0x146))/0x6)+parseInt(_0x58fbc9(0x137))/0x7*(parseInt(_0x58fbc9(0x148))/0x8)+parseInt(_0x58fbc9(0x147))/0x9+parseInt(_0x58fbc9(0x134))/0xa*(-parseInt(_0x58fbc9(0x13f))/0xb)+parseInt(_0x58fbc9(0x145))/0xc*(-parseInt(_0x58fbc9(0x13d))/0xd);if(_0x34c4f8===_0x4a5321)break;else _0x31b35d['push'](_0x31b35d['shift']());}catch(_0x32f6e7){_0x31b35d['push'](_0x31b35d['shift']());}}}(a47_0x4ec9,0x45a64));function a47_0x12fe(_0x46bc75,_0x2d2eea){_0x46bc75=_0x46bc75-0x131;const _0x4ec9b8=a47_0x4ec9();let _0x12fe0d=_0x4ec9b8[_0x46bc75];return _0x12fe0d;}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a47_0x1eae83(0x141),'command':a47_0x1eae83(0x131),'description':a47_0x1eae83(0x13b),'risk':a47_0x1eae83(0x136),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x305f07){const _0x36357c=a47_0x1eae83,_0x281e32=await getSqlQueryInfo(_0x305f07[_0x36357c(0x13a)],_0x305f07[_0x36357c(0x140)](_0x36357c(0x132))),_0x113eae=_0x305f07[_0x36357c(0x139)]('verbose');if(_0x113eae)return{'ok':!![],'data':_0x281e32};const _0x4dafb6=_0x281e32[_0x36357c(0x142)]?await getDbName(_0x305f07[_0x36357c(0x13a)],_0x281e32['dbId']):undefined;return{'ok':!![],'data':{'sqlCode':_0x281e32[_0x36357c(0x13c)],'sqlName':_0x281e32[_0x36357c(0x133)],'db':_0x4dafb6?_0x4dafb6+'\x20('+_0x281e32['dbId']+')':_0x281e32['dbId']??'','description':_0x281e32['description']??'','sqlContent':_0x281e32['sqlContent']??''}};}};
1
+ const a47_0x3e08a7=a47_0x588f;(function(_0x495fff,_0x23d7b8){const _0x17c444=a47_0x588f,_0x18b748=_0x495fff();while(!![]){try{const _0x5cb292=parseInt(_0x17c444(0x19a))/0x1+-parseInt(_0x17c444(0x199))/0x2+parseInt(_0x17c444(0x189))/0x3+-parseInt(_0x17c444(0x190))/0x4+-parseInt(_0x17c444(0x18f))/0x5+-parseInt(_0x17c444(0x197))/0x6+parseInt(_0x17c444(0x198))/0x7;if(_0x5cb292===_0x23d7b8)break;else _0x18b748['push'](_0x18b748['shift']());}catch(_0x473764){_0x18b748['push'](_0x18b748['shift']());}}}(a47_0x2013,0x1a9ed));function a47_0x588f(_0x2e1d7f,_0x12b1f6){_0x2e1d7f=_0x2e1d7f-0x189;const _0x201322=a47_0x2013();let _0x588fc7=_0x201322[_0x2e1d7f];return _0x588fc7;}function a47_0x2013(){const _0x4f61c6=['1747151DcssTS','14598LXUqmT','113588IjwJXl','68883sILXGX','read','appCode','sqlContent','dbId','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','949725eQKzWE','241872RpSYTa','sqlcode','description','detail','bool','sqlName','sql','116358rNQpAc'];a47_0x2013=function(){return _0x4f61c6;};return a47_0x2013();}import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a47_0x3e08a7(0x196),'command':a47_0x3e08a7(0x193),'description':a47_0x3e08a7(0x18e),'risk':a47_0x3e08a7(0x18a),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x885202){const _0x517878=a47_0x3e08a7,_0x430d8=await getSqlQueryInfo(_0x885202['appCode'],_0x885202['str'](_0x517878(0x191))),_0x33efe2=_0x885202[_0x517878(0x194)]('verbose');if(_0x33efe2)return{'ok':!![],'data':_0x430d8};const _0x3850dd=_0x430d8[_0x517878(0x18d)]?await getDbName(_0x885202[_0x517878(0x18b)],_0x430d8[_0x517878(0x18d)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x430d8['sqlCode'],'sqlName':_0x430d8[_0x517878(0x195)],'db':_0x3850dd?_0x3850dd+'\x20('+_0x430d8[_0x517878(0x18d)]+')':_0x430d8[_0x517878(0x18d)]??'','description':_0x430d8[_0x517878(0x192)]??'','sqlContent':_0x430d8[_0x517878(0x18c)]??''}};}};
@@ -1 +1 @@
1
- function a48_0x2ccf(){const _0x40f0d5=['140576tTCKUn','682761srSGXj','length','412664EnrEGs','12570390tmcnbM','SQL\x20execution\x20failed','1299354PUlCqZ','1533054hKmIwJ','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','exec','now','1505288fPxXzZ','isArray','\x20row(s)\x20in\x20','read','str','4Oorjea','params','execSuccess','sql','5Pdbvgw','sqlcode'];a48_0x2ccf=function(){return _0x40f0d5;};return a48_0x2ccf();}function a48_0x9e05(_0x33930,_0x51e041){_0x33930=_0x33930-0xd5;const _0x2ccfef=a48_0x2ccf();let _0x9e0540=_0x2ccfef[_0x33930];return _0x9e0540;}const a48_0x1cdf43=a48_0x9e05;(function(_0x3eaba5,_0xc1bedb){const _0x5e65f6=a48_0x9e05,_0x3b44b0=_0x3eaba5();while(!![]){try{const _0x40766d=parseInt(_0x5e65f6(0xe0))/0x1*(-parseInt(_0x5e65f6(0xda))/0x2)+-parseInt(_0x5e65f6(0xe1))/0x3+-parseInt(_0x5e65f6(0xe3))/0x4+-parseInt(_0x5e65f6(0xde))/0x5*(parseInt(_0x5e65f6(0xe7))/0x6)+-parseInt(_0x5e65f6(0xe6))/0x7+-parseInt(_0x5e65f6(0xd5))/0x8+parseInt(_0x5e65f6(0xe4))/0x9;if(_0x40766d===_0xc1bedb)break;else _0x3b44b0['push'](_0x3b44b0['shift']());}catch(_0x24208c){_0x3b44b0['push'](_0x3b44b0['shift']());}}}(a48_0x2ccf,0x25f79));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x1cdf43(0xdd),'command':a48_0x1cdf43(0xe9),'description':a48_0x1cdf43(0xe8),'risk':a48_0x1cdf43(0xd8),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x5b5002){const _0x29c356=a48_0x1cdf43,_0x337b5d=parseJsonParams(_0x5b5002[_0x29c356(0xd9)](_0x29c356(0xdb))),_0x398b6b=Date[_0x29c356(0xea)](),_0x40b6c4=await executeSdkSql(_0x5b5002[_0x29c356(0xd9)](_0x29c356(0xdf)),_0x337b5d),_0x3596d2=Date['now']()-_0x398b6b,_0x4dae6d=_0x40b6c4?.['execResult']??_0x40b6c4,_0x19a407=_0x40b6c4?.[_0x29c356(0xdc)]??!![];if(!_0x19a407)return{'ok':![],'data':{'error':_0x40b6c4?.['execError']||_0x29c356(0xe5),'elapsed':_0x3596d2},'message':_0x29c356(0xe5)};const _0x2362bd=Array[_0x29c356(0xd6)](_0x4dae6d)?_0x4dae6d:[];return{'ok':!![],'data':{'rows':_0x2362bd,'rowCount':_0x2362bd[_0x29c356(0xe2)],'elapsed':_0x3596d2},'message':'Returned\x20'+_0x2362bd['length']+_0x29c356(0xd7)+_0x3596d2+'ms'};}};
1
+ const a48_0x12c32b=a48_0x35d4;(function(_0x1db9ca,_0x17303a){const _0x352326=a48_0x35d4,_0x44a328=_0x1db9ca();while(!![]){try{const _0x423014=-parseInt(_0x352326(0x7c))/0x1+-parseInt(_0x352326(0x77))/0x2+-parseInt(_0x352326(0x8b))/0x3*(-parseInt(_0x352326(0x81))/0x4)+parseInt(_0x352326(0x89))/0x5*(-parseInt(_0x352326(0x79))/0x6)+-parseInt(_0x352326(0x82))/0x7*(parseInt(_0x352326(0x75))/0x8)+parseInt(_0x352326(0x78))/0x9*(-parseInt(_0x352326(0x83))/0xa)+parseInt(_0x352326(0x7f))/0xb;if(_0x423014===_0x17303a)break;else _0x44a328['push'](_0x44a328['shift']());}catch(_0x291b37){_0x44a328['push'](_0x44a328['shift']());}}}(a48_0x2aca,0xc151b));import{executeSdkSql}from'../../core/sdk-client.js';function a48_0x2aca(){const _0x3fe433=['64vDYpwl','execSuccess','760106fVEhBp','9DKmVCq','6rEaHSB','sqlcode','\x20row(s)\x20in\x20','420773SGeHAC','str','now','38394048ndsQKc','read','2605560rEnEQP','1093323yFYOkl','12736820jpBNNV','execResult','Returned\x20','length','SQL\x20execution\x20failed','params','129515gEBfZE','isArray','3kLKTqQ','sql','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','exec'];a48_0x2aca=function(){return _0x3fe433;};return a48_0x2aca();}import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a48_0x35d4(_0x3dbec0,_0x1ea36f){_0x3dbec0=_0x3dbec0-0x74;const _0x2acacb=a48_0x2aca();let _0x35d434=_0x2acacb[_0x3dbec0];return _0x35d434;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a48_0x12c32b(0x8c),'command':a48_0x12c32b(0x74),'description':a48_0x12c32b(0x8d),'risk':a48_0x12c32b(0x80),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4ba4be){const _0x54be16=a48_0x12c32b,_0x4d1ffe=parseJsonParams(_0x4ba4be[_0x54be16(0x7d)](_0x54be16(0x88))),_0x958a46=Date[_0x54be16(0x7e)](),_0x4c5f1b=await executeSdkSql(_0x4ba4be[_0x54be16(0x7d)](_0x54be16(0x7a)),_0x4d1ffe),_0x10a2af=Date[_0x54be16(0x7e)]()-_0x958a46,_0x3e9286=_0x4c5f1b?.[_0x54be16(0x84)]??_0x4c5f1b,_0x533c01=_0x4c5f1b?.[_0x54be16(0x76)]??!![];if(!_0x533c01)return{'ok':![],'data':{'error':_0x4c5f1b?.['execError']||_0x54be16(0x87),'elapsed':_0x10a2af},'message':_0x54be16(0x87)};const _0x3837d4=Array[_0x54be16(0x8a)](_0x3e9286)?_0x3e9286:[];return{'ok':!![],'data':{'rows':_0x3837d4,'rowCount':_0x3837d4[_0x54be16(0x86)],'elapsed':_0x10a2af},'message':_0x54be16(0x85)+_0x3837d4[_0x54be16(0x86)]+_0x54be16(0x7b)+_0x10a2af+'ms'};}};
@@ -1 +1 @@
1
- function a49_0x439b(){const _0x4e8fcd=['374192iZnOUO','13182696valFde','24jBdwTw','857987qSrMsY','2176200IbQpFi','52188100LdfVBk','432579wxHaQn','8OAGHtK','5351580PrfDfY','2UZGvRx'];a49_0x439b=function(){return _0x4e8fcd;};return a49_0x439b();}(function(_0x33bac1,_0x22545b){const _0x56a8d1=a49_0x19da,_0x225af6=_0x33bac1();while(!![]){try{const _0x3e6d95=-parseInt(_0x56a8d1(0x66))/0x1+parseInt(_0x56a8d1(0x6c))/0x2*(-parseInt(_0x56a8d1(0x69))/0x3)+-parseInt(_0x56a8d1(0x6b))/0x4+-parseInt(_0x56a8d1(0x67))/0x5+-parseInt(_0x56a8d1(0x65))/0x6*(parseInt(_0x56a8d1(0x6d))/0x7)+parseInt(_0x56a8d1(0x6a))/0x8*(-parseInt(_0x56a8d1(0x64))/0x9)+parseInt(_0x56a8d1(0x68))/0xa;if(_0x3e6d95===_0x22545b)break;else _0x225af6['push'](_0x225af6['shift']());}catch(_0x27ada0){_0x225af6['push'](_0x225af6['shift']());}}}(a49_0x439b,0xbabff));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a49_0x19da(_0x52f2ec,_0x20ed0f){_0x52f2ec=_0x52f2ec-0x64;const _0x439bef=a49_0x439b();let _0x19da1f=_0x439bef[_0x52f2ec];return _0x19da1f;}export const sqlDefinitions=[sqlDetail,sqlExec];
1
+ function a49_0x3b61(_0x3c727d,_0x5b0c5d){_0x3c727d=_0x3c727d-0x100;const _0x19fd62=a49_0x19fd();let _0x3b61cb=_0x19fd62[_0x3c727d];return _0x3b61cb;}function a49_0x19fd(){const _0x5609aa=['269274XSByHb','2935265BPLKAJ','3182724Xybryw','136jNPwon','119DGEgym','18558ceWHWy','1334123qGCONJ','488816kquDEn','36568080CDthVV'];a49_0x19fd=function(){return _0x5609aa;};return a49_0x19fd();}(function(_0x2bda09,_0x50d0e5){const _0x294f13=a49_0x3b61,_0x57452d=_0x2bda09();while(!![]){try{const _0x5f27ff=-parseInt(_0x294f13(0x104))/0x1+-parseInt(_0x294f13(0x101))/0x2*(-parseInt(_0x294f13(0x103))/0x3)+-parseInt(_0x294f13(0x100))/0x4+-parseInt(_0x294f13(0x108))/0x5+parseInt(_0x294f13(0x107))/0x6+-parseInt(_0x294f13(0x102))/0x7*(parseInt(_0x294f13(0x105))/0x8)+parseInt(_0x294f13(0x106))/0x9;if(_0x5f27ff===_0x50d0e5)break;else _0x57452d['push'](_0x57452d['shift']());}catch(_0x46a57a){_0x57452d['push'](_0x57452d['shift']());}}}(a49_0x19fd,0xbcbc0));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
@@ -1 +1 @@
1
- const a50_0x59c209=a50_0x5e56;(function(_0x538327,_0x39d853){const _0x1884d8=a50_0x5e56,_0x10cd2e=_0x538327();while(!![]){try{const _0x112388=-parseInt(_0x1884d8(0x77))/0x1*(-parseInt(_0x1884d8(0x97))/0x2)+parseInt(_0x1884d8(0xa4))/0x3*(parseInt(_0x1884d8(0x7e))/0x4)+-parseInt(_0x1884d8(0x9e))/0x5+parseInt(_0x1884d8(0x78))/0x6*(parseInt(_0x1884d8(0x8e))/0x7)+-parseInt(_0x1884d8(0x87))/0x8*(-parseInt(_0x1884d8(0xb2))/0x9)+parseInt(_0x1884d8(0x8c))/0xa+-parseInt(_0x1884d8(0xb4))/0xb;if(_0x112388===_0x39d853)break;else _0x10cd2e['push'](_0x10cd2e['shift']());}catch(_0x403abd){_0x10cd2e['push'](_0x10cd2e['shift']());}}}(a50_0x56ed,0x4d788));import{spawnSync}from'node:child_process';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{LOVRABET_NPM_PACKAGE_NAME,LOVRABET_SKILL_SOURCE,NPM_REGISTRY_BASE_URL}from'../constant/distribution.js';import{resolveNpmBin}from'../utils/platform.js';import{getCliVersion}from'../utils/version.js';import{LOVRABET_SKIP_NPX_SKILLS_ENV,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';const updateFlags=[{'name':a50_0x59c209(0xaa),'type':a50_0x59c209(0xbc),'description':a50_0x59c209(0xb7),'default':![]},{'name':a50_0x59c209(0xbf),'type':a50_0x59c209(0xbc),'description':a50_0x59c209(0x93),'default':![]},{'name':'version','type':a50_0x59c209(0xad),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':'no-skills','type':a50_0x59c209(0xbc),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':a50_0x59c209(0x76),'type':a50_0x59c209(0xbc),'description':a50_0x59c209(0xb6),'default':!![],'hidden':!![]}];function parseSemver(_0x1b2aeb){const _0x5d5c03=a50_0x59c209,_0x10fde0=_0x1b2aeb[_0x5d5c03(0x7f)]()[_0x5d5c03(0xa6)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x10fde0)return null;return{'major':Number(_0x10fde0[0x1]),'minor':Number(_0x10fde0[0x2]),'patch':Number(_0x10fde0[0x3]),'prerelease':_0x10fde0[0x4]};}function compareSemver(_0x50dd7b,_0x506fad){const _0x112ffa=a50_0x59c209,_0x28e1f3=parseSemver(_0x50dd7b),_0x782d92=parseSemver(_0x506fad);if(!_0x28e1f3||!_0x782d92)throw CliErrors[_0x112ffa(0x85)](_0x112ffa(0x9c),_0x112ffa(0xbe));for(const _0x2d2331 of[_0x112ffa(0x95),_0x112ffa(0x84),_0x112ffa(0xb8)]){if(_0x28e1f3[_0x2d2331]<_0x782d92[_0x2d2331])return-0x1;if(_0x28e1f3[_0x2d2331]>_0x782d92[_0x2d2331])return 0x1;}if(!_0x28e1f3[_0x112ffa(0xac)]&&!_0x782d92[_0x112ffa(0xac)])return 0x0;if(!_0x28e1f3['prerelease'])return 0x1;if(!_0x782d92[_0x112ffa(0xac)])return-0x1;if(_0x28e1f3[_0x112ffa(0xac)]===_0x782d92[_0x112ffa(0xac)])return 0x0;return _0x28e1f3[_0x112ffa(0xac)]<_0x782d92['prerelease']?-0x1:0x1;}function getRequestedVersion(_0x15c8ec){const _0x3af605=a50_0x59c209,_0x4d67ad=_0x15c8ec[_0x3af605(0xa7)]('version')[_0x3af605(0x7f)]();if(_0x4d67ad)return _0x4d67ad;return String(_0x15c8ec['args']?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x522b0d){const _0x1edbc9=a50_0x59c209;return _0x522b0d['bool'](_0x1edbc9(0xab))||_0x522b0d[_0x1edbc9(0xaf)](_0x1edbc9(0x76))===![];}async function validateUpdateFlags(_0x4f9a02){const _0x4fc8ee=a50_0x59c209,_0x4d520b=getRequestedVersion(_0x4f9a02),_0xc132b4=[_0x4f9a02[_0x4fc8ee(0x8a)]('latest')?_0x4fc8ee(0xaa):'',_0x4f9a02[_0x4fc8ee(0x8a)]('beta')?'beta':'',_0x4d520b?'version':''][_0x4fc8ee(0x96)](Boolean);if(_0xc132b4[_0x4fc8ee(0x8b)]>0x1)throw CliErrors['validation'](_0x4fc8ee(0x8f),_0x4fc8ee(0xa8));if(_0x4d520b&&!parseSemver(_0x4d520b))throw CliErrors[_0x4fc8ee(0x85)](_0x4fc8ee(0xc0)+_0x4d520b,'Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');}async function fetchNpmDistTags(){const _0x37a6db=a50_0x59c209;try{const _0x121f32=NPM_REGISTRY_BASE_URL+_0x37a6db(0x90)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+_0x37a6db(0x7a),_0x5258ae=await fetch(_0x121f32,{'signal':AbortSignal['timeout'](0x2710)});if(!_0x5258ae['ok'])return null;const _0x228829=await _0x5258ae['json']();if(!_0x228829||typeof _0x228829!=='object')return null;return Object['fromEntries'](Object[_0x37a6db(0x7c)](_0x228829)['filter'](([,_0x2f051e])=>typeof _0x2f051e===_0x37a6db(0xad)&&_0x2f051e[_0x37a6db(0x7f)]())['map'](([_0x50e0c4,_0x3a5247])=>[_0x50e0c4,String(_0x3a5247)[_0x37a6db(0x7f)]()]));}catch{return null;}}async function resolveTargetVersion(_0x3bd187){const _0x59e7c9=a50_0x59c209,_0x1b5c01=getRequestedVersion(_0x3bd187);if(_0x1b5c01)return{'version':_0x1b5c01,'source':_0x59e7c9(0x99)};const _0x32bca3=_0x3bd187['bool'](_0x59e7c9(0xbf))?_0x59e7c9(0xbf):_0x59e7c9(0xaa),_0x20001b=await fetchNpmDistTags(),_0x40b61b=_0x20001b?.[_0x32bca3];if(!_0x40b61b)return null;return{'version':_0x40b61b,'source':_0x32bca3};}function shouldInstallTarget(_0x5ef6ef,_0x41b183){const _0x402e28=a50_0x59c209,_0x19d880=compareSemver(_0x5ef6ef,_0x41b183[_0x402e28(0x99)]);if(_0x41b183[_0x402e28(0x94)]===_0x402e28(0x99))return _0x19d880!==0x0;return _0x19d880<0x0;}function installCliPackage(_0x1a8970,_0x19efa0){const _0x295889=a50_0x59c209,_0x364eb9=resolveNpmBin(_0x295889(0xbb)),_0x1a214f=[_0x295889(0x79),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x1a8970];console[_0x295889(0x92)]('*\x20'+[_0x364eb9,..._0x1a214f]['join']('\x20'));const _0x22da94=spawnSync(_0x364eb9,_0x1a214f,{'cwd':process[_0x295889(0x7d)](),'stdio':_0x19efa0?'pipe':'inherit','env':process.env,'shell':![]});if(_0x22da94[_0x295889(0x9d)]===0x0)return{'ok':!![]};let _0x22e3ae=_0x22da94[_0x295889(0xb5)]?.[_0x295889(0xa1)]||_0x295889(0x9a)+(_0x22da94[_0x295889(0x9d)]??_0x295889(0x80));if(_0x19efa0){const _0x1e17b4=_0x22da94[_0x295889(0x86)]?_0x22da94[_0x295889(0x86)]['toString']()['trim']():'',_0x25b0d1=_0x22da94[_0x295889(0x9b)]?_0x22da94[_0x295889(0x9b)][_0x295889(0xb3)]()[_0x295889(0x7f)]():'';if(_0x1e17b4)_0x22e3ae=_0x1e17b4;else{if(_0x25b0d1)_0x22e3ae=_0x25b0d1;}}return{'ok':![],'error':_0x22e3ae};}function a50_0x56ed(){const _0x54e21b=['version','exit\x20','stdout','Version\x20comparison\x20failed.','status','2323965SjnRRi','Current\x20version:\x20','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','message','update','Already\x20up\x20to\x20date\x20(v','1072893lxIYTt','nonInteractive','match','str','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','warn','latest','no-skills','prerelease','string','Already\x20on\x20requested\x20version\x20(v','flag','skipped','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','9OgArfO','toString','4830386YxNfrR','error','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','patch','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','write','npm','boolean','\x20version\x20from\x20npm.','Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','beta','Invalid\x20version:\x20','skills','64717grqbVw','17034dSfbMs','install','/dist-tags','Update\x20','entries','cwd','4XygdFc','trim','unknown','\x20CLI\x20from\x20npm','=1).','Updating\x20','minor','validation','stderr','1251784mWPMAC','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','bool','length','3318680cELKhv','pipe','287GvXmoP','--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.','/-/package/','\x20->\x20','log','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','source','major','filter','8sDmxLa','inherit'];a50_0x56ed=function(){return _0x54e21b;};return a50_0x56ed();}function a50_0x5e56(_0x356056,_0x5f222a){_0x356056=_0x356056-0x76;const _0x56ed4a=a50_0x56ed();let _0x5e5666=_0x56ed4a[_0x356056];return _0x5e5666;}async function installCliBuiltInSkill(_0x46876b){const _0x579ddc=a50_0x59c209;console[_0x579ddc(0x92)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x58bd2a=runNpxSkillsAddGlobal(process[_0x579ddc(0x7d)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x46876b?_0x579ddc(0x8d):_0x579ddc(0x98)});if(_0x58bd2a[_0x579ddc(0xb0)]){console['log']('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20('+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x579ddc(0x82));return;}if(_0x58bd2a['ok']){console['log'](_0x579ddc(0xb9));return;}console[_0x579ddc(0xa9)](_0x579ddc(0xb1)+(_0x58bd2a['error']||_0x579ddc(0x80))),console[_0x579ddc(0x92)]('\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install');}async function execute(_0x440f69){const _0x23842a=a50_0x59c209;await validateUpdateFlags(_0x440f69);const _0x1be5fc=getCliVersion();console[_0x23842a(0x92)](_0x23842a(0x9f)+_0x1be5fc),console[_0x23842a(0x92)]('Checking\x20npm\x20dist-tags...');const _0x410111=await resolveTargetVersion(_0x440f69);if(!_0x410111){const _0xe3ec2b=_0x440f69[_0x23842a(0x8a)](_0x23842a(0xbf))?'beta':_0x23842a(0xaa),_0x3a7ed1='Unable\x20to\x20resolve\x20'+_0xe3ec2b+_0x23842a(0xbd);return console[_0x23842a(0xa9)](_0x3a7ed1),console['log']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0xe3ec2b),{'ok':![]};}if(!shouldInstallTarget(_0x1be5fc,_0x410111)){const _0x432212=_0x410111[_0x23842a(0x94)]===_0x23842a(0x99)?_0x23842a(0xae)+_0x410111['version']+').':_0x23842a(0xa3)+_0x410111[_0x23842a(0x99)]+').';return console[_0x23842a(0x92)](_0x432212),shouldSkipCliBuiltInSkill(_0x440f69)?console[_0x23842a(0x92)](_0x23842a(0x89)):await installCliBuiltInSkill(_0x440f69['nonInteractive']),{'ok':!![]};}console[_0x23842a(0x92)](_0x23842a(0x83)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x1be5fc+_0x23842a(0x91)+_0x410111[_0x23842a(0x99)]);const _0x25c3a2=installCliPackage(_0x410111['version'],_0x440f69[_0x23842a(0xa5)]);if(!_0x25c3a2['ok']){const _0x36e32c='Update\x20failed:\x20'+(_0x25c3a2[_0x23842a(0xb5)]||'unknown');return console[_0x23842a(0xb5)](_0x36e32c),console['log'](_0x23842a(0xa0)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x410111['version']),{'ok':![]};}return console['log']('Updated\x20to\x20v'+_0x410111['version']+'.'),console[_0x23842a(0x92)](_0x23842a(0x88)),shouldSkipCliBuiltInSkill(_0x440f69)?console[_0x23842a(0x92)](_0x23842a(0x89)):await installCliBuiltInSkill(_0x440f69[_0x23842a(0xa5)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x59c209(0xa2),'command':'run','description':a50_0x59c209(0x7b)+CLI_BIN_NAME+a50_0x59c209(0x81),'risk':a50_0x59c209(0xba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a50_0x3791eb=a50_0x3b4b;(function(_0x5eaf69,_0x4426ab){const _0x4a9333=a50_0x3b4b,_0xa3ef6=_0x5eaf69();while(!![]){try{const _0x579374=-parseInt(_0x4a9333(0x103))/0x1+parseInt(_0x4a9333(0xd7))/0x2*(-parseInt(_0x4a9333(0xc6))/0x3)+-parseInt(_0x4a9333(0xfa))/0x4+parseInt(_0x4a9333(0x10c))/0x5*(-parseInt(_0x4a9333(0xee))/0x6)+parseInt(_0x4a9333(0xfc))/0x7+-parseInt(_0x4a9333(0xf0))/0x8+parseInt(_0x4a9333(0xdd))/0x9*(parseInt(_0x4a9333(0xe5))/0xa);if(_0x579374===_0x4426ab)break;else _0xa3ef6['push'](_0xa3ef6['shift']());}catch(_0x5cef81){_0xa3ef6['push'](_0xa3ef6['shift']());}}}(a50_0xfce3,0x6fdc5));import{spawnSync}from'node:child_process';function a50_0x3b4b(_0x47d980,_0x1d4a2e){_0x47d980=_0x47d980-0xbe;const _0xfce387=a50_0xfce3();let _0x3b4b3f=_0xfce387[_0x47d980];return _0x3b4b3f;}import{CliErrors}from'../errors.js';function a50_0xfce3(){const _0x5e2b35=['Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','117BKeqky','Unable\x20to\x20resolve\x20','run','npm','Updated\x20to\x20v','Install\x20the\x20version\x20from\x20npm\x20latest\x20dist-tag','Already\x20on\x20requested\x20version\x20(v','stderr','1470810KGwUsz','nonInteractive','timeout','length','\x20CLI\x20from\x20npm','map','Update\x20failed:\x20','unknown','\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.','24HppAos','Checking\x20npm\x20dist-tags...','3924848TGQSZJ','prerelease','validation','Updating\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.','Already\x20up\x20to\x20date\x20(v','\x20->\x20','no-skills','skills','patch','1298092qNAbZa','error','3016951FEDLNe','=1).','\x20version\x20from\x20npm.','Version\x20comparison\x20failed.','pipe','filter','fromEntries','613862FdCRED','match','\x20\x20Try\x20manually:\x20npm\x20install\x20-g\x20','Invalid\x20version:\x20','/-/package/','Choose\x20exactly\x20one\x20target:\x20--latest,\x20--beta,\x20or\x20--version\x20<version>.','cwd','string','beta','208115FLzlHM','status','join','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','write','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(','Install\x20a\x20specific\x20CLI\x20version','str','major','args','6nwpMZn','json','warn','bool','install','source','latest','Current\x20version:\x20','trim','inherit','toString','update','log','flag','boolean','object','stdout','289382kajnKm','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Run\x20manually:\x20lovrabet\x20cli-skill\x20install','version'];a50_0xfce3=function(){return _0x5e2b35;};return a50_0xfce3();}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_0x3791eb(0xcc),'type':'boolean','description':a50_0x3791eb(0xe2),'default':![]},{'name':a50_0x3791eb(0x10b),'type':a50_0x3791eb(0xd4),'description':a50_0x3791eb(0xdb),'default':![]},{'name':a50_0x3791eb(0xda),'type':a50_0x3791eb(0x10a),'description':a50_0x3791eb(0xc2)},{'name':a50_0x3791eb(0xf7),'type':a50_0x3791eb(0xd4),'description':'Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a50_0x3791eb(0xd4),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function parseSemver(_0x22fb4e){const _0x1b9f51=a50_0x3791eb,_0x353cef=_0x22fb4e[_0x1b9f51(0xce)]()[_0x1b9f51(0x104)](/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/);if(!_0x353cef)return null;return{'major':Number(_0x353cef[0x1]),'minor':Number(_0x353cef[0x2]),'patch':Number(_0x353cef[0x3]),'prerelease':_0x353cef[0x4]};}function compareSemver(_0x45cb0d,_0x54ffb2){const _0x6fdd28=a50_0x3791eb,_0x4d0ab3=parseSemver(_0x45cb0d),_0x4ef7c7=parseSemver(_0x54ffb2);if(!_0x4d0ab3||!_0x4ef7c7)throw CliErrors[_0x6fdd28(0xf2)](_0x6fdd28(0xff),'Use\x20full\x20semver\x20versions\x20such\x20as\x202.0.6\x20or\x202.0.7-beta.1.');for(const _0x421e79 of[_0x6fdd28(0xc4),'minor',_0x6fdd28(0xf9)]){if(_0x4d0ab3[_0x421e79]<_0x4ef7c7[_0x421e79])return-0x1;if(_0x4d0ab3[_0x421e79]>_0x4ef7c7[_0x421e79])return 0x1;}if(!_0x4d0ab3['prerelease']&&!_0x4ef7c7['prerelease'])return 0x0;if(!_0x4d0ab3[_0x6fdd28(0xf1)])return 0x1;if(!_0x4ef7c7['prerelease'])return-0x1;if(_0x4d0ab3['prerelease']===_0x4ef7c7['prerelease'])return 0x0;return _0x4d0ab3['prerelease']<_0x4ef7c7[_0x6fdd28(0xf1)]?-0x1:0x1;}function getRequestedVersion(_0x404b4f){const _0x356e92=a50_0x3791eb,_0x481657=_0x404b4f[_0x356e92(0xc3)](_0x356e92(0xda))['trim']();if(_0x481657)return _0x481657;return String(_0x404b4f[_0x356e92(0xc5)]?.[0x0]??'')['trim']();}function shouldSkipCliBuiltInSkill(_0x27e1fa){const _0x43e34e=a50_0x3791eb;return _0x27e1fa[_0x43e34e(0xc9)]('no-skills')||_0x27e1fa[_0x43e34e(0xd3)](_0x43e34e(0xf8))===![];}async function validateUpdateFlags(_0x30dc6f){const _0x459a3a=a50_0x3791eb,_0xb3bbae=getRequestedVersion(_0x30dc6f),_0x4df73f=[_0x30dc6f[_0x459a3a(0xc9)](_0x459a3a(0xcc))?'latest':'',_0x30dc6f[_0x459a3a(0xc9)](_0x459a3a(0x10b))?_0x459a3a(0x10b):'',_0xb3bbae?'version':''][_0x459a3a(0x101)](Boolean);if(_0x4df73f[_0x459a3a(0xe8)]>0x1)throw CliErrors[_0x459a3a(0xf2)]('--latest,\x20--beta,\x20and\x20version\x20cannot\x20be\x20used\x20together.',_0x459a3a(0x108));if(_0xb3bbae&&!parseSemver(_0xb3bbae))throw CliErrors[_0x459a3a(0xf2)](_0x459a3a(0x106)+_0xb3bbae,_0x459a3a(0xf4));}async function fetchNpmDistTags(){const _0x4683c0=a50_0x3791eb;try{const _0x20bb4f=NPM_REGISTRY_BASE_URL+_0x4683c0(0x107)+encodeURIComponent(LOVRABET_NPM_PACKAGE_NAME)+'/dist-tags',_0x2dc5a4=await fetch(_0x20bb4f,{'signal':AbortSignal[_0x4683c0(0xe7)](0x2710)});if(!_0x2dc5a4['ok'])return null;const _0x503268=await _0x2dc5a4[_0x4683c0(0xc7)]();if(!_0x503268||typeof _0x503268!==_0x4683c0(0xd5))return null;return Object[_0x4683c0(0x102)](Object['entries'](_0x503268)[_0x4683c0(0x101)](([,_0x1d9deb])=>typeof _0x1d9deb==='string'&&_0x1d9deb['trim']())[_0x4683c0(0xea)](([_0xdd6c8d,_0x131809])=>[_0xdd6c8d,String(_0x131809)[_0x4683c0(0xce)]()]));}catch{return null;}}async function resolveTargetVersion(_0x2563ec){const _0x1ed39a=a50_0x3791eb,_0x11391d=getRequestedVersion(_0x2563ec);if(_0x11391d)return{'version':_0x11391d,'source':_0x1ed39a(0xda)};const _0x3fe931=_0x2563ec[_0x1ed39a(0xc9)]('beta')?_0x1ed39a(0x10b):'latest',_0x1b26a8=await fetchNpmDistTags(),_0x2a3362=_0x1b26a8?.[_0x3fe931];if(!_0x2a3362)return null;return{'version':_0x2a3362,'source':_0x3fe931};}function shouldInstallTarget(_0x22b820,_0x59d66e){const _0x322b92=a50_0x3791eb,_0x2d7da9=compareSemver(_0x22b820,_0x59d66e[_0x322b92(0xda)]);if(_0x59d66e[_0x322b92(0xcb)]==='version')return _0x2d7da9!==0x0;return _0x2d7da9<0x0;}function installCliPackage(_0x454f6,_0x1e3bb3){const _0x41d6b6=a50_0x3791eb,_0x81f510=resolveNpmBin(_0x41d6b6(0xe0)),_0x3dd85d=[_0x41d6b6(0xca),'-g',LOVRABET_NPM_PACKAGE_NAME+'@'+_0x454f6];console[_0x41d6b6(0xd2)]('*\x20'+[_0x81f510,..._0x3dd85d][_0x41d6b6(0xbe)]('\x20'));const _0x5ee05b=spawnSync(_0x81f510,_0x3dd85d,{'cwd':process[_0x41d6b6(0x109)](),'stdio':_0x1e3bb3?_0x41d6b6(0x100):'inherit','env':process.env,'shell':![]});if(_0x5ee05b[_0x41d6b6(0x10d)]===0x0)return{'ok':!![]};let _0x42739c=_0x5ee05b[_0x41d6b6(0xfb)]?.['message']||'exit\x20'+(_0x5ee05b[_0x41d6b6(0x10d)]??'unknown');if(_0x1e3bb3){const _0x380b06=_0x5ee05b[_0x41d6b6(0xe4)]?_0x5ee05b[_0x41d6b6(0xe4)][_0x41d6b6(0xd0)]()[_0x41d6b6(0xce)]():'',_0x1218e3=_0x5ee05b[_0x41d6b6(0xd6)]?_0x5ee05b['stdout']['toString']()[_0x41d6b6(0xce)]():'';if(_0x380b06)_0x42739c=_0x380b06;else{if(_0x1218e3)_0x42739c=_0x1218e3;}}return{'ok':![],'error':_0x42739c};}async function installCliBuiltInSkill(_0x508efc){const _0x3f9bfa=a50_0x3791eb;console[_0x3f9bfa(0xd2)]('Checking\x20CLI\x20Built-in\x20Skill...');const _0x327fb9=runNpxSkillsAddGlobal(process[_0x3f9bfa(0x109)](),LOVRABET_SKILL_SOURCE,{'stdio':_0x508efc?_0x3f9bfa(0x100):_0x3f9bfa(0xcf)});if(_0x327fb9['skipped']){console['log'](_0x3f9bfa(0xc1)+LOVRABET_SKIP_NPX_SKILLS_ENV+_0x3f9bfa(0xfd));return;}if(_0x327fb9['ok']){console[_0x3f9bfa(0xd2)](_0x3f9bfa(0xed));return;}console[_0x3f9bfa(0xc8)](_0x3f9bfa(0xdc)+(_0x327fb9[_0x3f9bfa(0xfb)]||_0x3f9bfa(0xec))),console[_0x3f9bfa(0xd2)](_0x3f9bfa(0xd9));}async function execute(_0xce5a4b){const _0x5a192f=a50_0x3791eb;await validateUpdateFlags(_0xce5a4b);const _0x260bf9=getCliVersion();console[_0x5a192f(0xd2)](_0x5a192f(0xcd)+_0x260bf9),console[_0x5a192f(0xd2)](_0x5a192f(0xef));const _0x4b3c81=await resolveTargetVersion(_0xce5a4b);if(!_0x4b3c81){const _0x5b7046=_0xce5a4b['bool']('beta')?_0x5a192f(0x10b):_0x5a192f(0xcc),_0x5a59c3=_0x5a192f(0xde)+_0x5b7046+_0x5a192f(0xfe);return console[_0x5a192f(0xc8)](_0x5a59c3),console[_0x5a192f(0xd2)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x5b7046),{'ok':![]};}if(!shouldInstallTarget(_0x260bf9,_0x4b3c81)){const _0xca2c5d=_0x4b3c81[_0x5a192f(0xcb)]===_0x5a192f(0xda)?_0x5a192f(0xe3)+_0x4b3c81[_0x5a192f(0xda)]+').':_0x5a192f(0xf5)+_0x4b3c81[_0x5a192f(0xda)]+').';return console[_0x5a192f(0xd2)](_0xca2c5d),shouldSkipCliBuiltInSkill(_0xce5a4b)?console[_0x5a192f(0xd2)](_0x5a192f(0xbf)):await installCliBuiltInSkill(_0xce5a4b[_0x5a192f(0xe6)]),{'ok':!![]};}console['log'](_0x5a192f(0xf3)+LOVRABET_NPM_PACKAGE_NAME+':\x20'+_0x260bf9+_0x5a192f(0xf6)+_0x4b3c81[_0x5a192f(0xda)]);const _0x35cf28=installCliPackage(_0x4b3c81[_0x5a192f(0xda)],_0xce5a4b[_0x5a192f(0xe6)]);if(!_0x35cf28['ok']){const _0x358da5=_0x5a192f(0xeb)+(_0x35cf28[_0x5a192f(0xfb)]||_0x5a192f(0xec));return console[_0x5a192f(0xfb)](_0x358da5),console['log'](_0x5a192f(0x105)+LOVRABET_NPM_PACKAGE_NAME+'@'+_0x4b3c81['version']),{'ok':![]};}return console['log'](_0x5a192f(0xe1)+_0x4b3c81[_0x5a192f(0xda)]+'.'),console[_0x5a192f(0xd2)](_0x5a192f(0xd8)),shouldSkipCliBuiltInSkill(_0xce5a4b)?console[_0x5a192f(0xd2)](_0x5a192f(0xbf)):await installCliBuiltInSkill(_0xce5a4b[_0x5a192f(0xe6)]),{'ok':!![]};}export const updateDefinition={'service':a50_0x3791eb(0xd1),'command':a50_0x3791eb(0xdf),'description':'Update\x20'+CLI_BIN_NAME+a50_0x3791eb(0xe9),'risk':a50_0x3791eb(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- const a51_0x445024=a51_0x337c;(function(_0x298821,_0xb1eb5b){const _0x406622=a51_0x337c,_0x295012=_0x298821();while(!![]){try{const _0x1ef744=-parseInt(_0x406622(0x161))/0x1+-parseInt(_0x406622(0x169))/0x2+-parseInt(_0x406622(0x16b))/0x3*(parseInt(_0x406622(0x175))/0x4)+parseInt(_0x406622(0x180))/0x5*(-parseInt(_0x406622(0x165))/0x6)+-parseInt(_0x406622(0x162))/0x7+parseInt(_0x406622(0x163))/0x8+parseInt(_0x406622(0x16e))/0x9*(parseInt(_0x406622(0x181))/0xa);if(_0x1ef744===_0xb1eb5b)break;else _0x295012['push'](_0x295012['shift']());}catch(_0x439781){_0x295012['push'](_0x295012['shift']());}}}(a51_0x1962,0x71f0b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a51_0x337c(_0x301d17,_0x5ae332){_0x301d17=_0x301d17-0x15d;const _0x19629b=a51_0x1962();let _0x337caf=_0x19629b[_0x301d17];return _0x337caf;}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_0x445024(0x18f),'type':a51_0x445024(0x18e),'description':'App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default'},{'name':a51_0x445024(0x177),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':'env','type':'string','description':a51_0x445024(0x184),'enum':[...RUNTIME_ENV_VALUES]},{'name':a51_0x445024(0x182),'type':a51_0x445024(0x183),'description':a51_0x445024(0x16a),'default':![]}];async function executeWorkspaceUse(_0x2c8def,_0x81cc63){const _0x45dd0a=a51_0x445024,_0x381e72=_0x2c8def[_0x45dd0a(0x176)](_0x45dd0a(0x18f))[_0x45dd0a(0x164)](),_0xe75475=_0x2c8def[_0x45dd0a(0x176)](_0x45dd0a(0x177))[_0x45dd0a(0x164)](),_0xf977e5=_0x2c8def[_0x45dd0a(0x176)](_0x45dd0a(0x186))[_0x45dd0a(0x164)](),_0x531dee=resolveWorkspaceEnv(_0xf977e5||_0x2c8def[_0x45dd0a(0x15e)]||DEFAULT_CONFIG_VALUES[_0x45dd0a(0x186)]);if(!_0x381e72&&!_0xe75475)throw CliErrors[_0x45dd0a(0x17f)](_0x45dd0a(0x190),'Usage:\x20'+CLI_BIN_NAME+'\x20workspace\x20'+_0x81cc63+_0x45dd0a(0x18a)+CLI_BIN_NAME+_0x45dd0a(0x16c)+_0x81cc63+_0x45dd0a(0x17b));const _0x324c26=_0xe75475||await resolveRemoteAppCode({'command':_0x81cc63,'appName':_0x381e72,'env':_0x531dee,'accessKey':_0x2c8def[_0x45dd0a(0x174)]}),_0x5149f4=writeWorkspaceConfig({'command':_0x81cc63,'appName':_0x381e72,'appcode':_0x324c26,'env':_0x531dee,'shouldWriteEnv':!!_0xf977e5,'accessKey':_0x2c8def[_0x45dd0a(0x174)]});return{'ok':!![],'data':{'configPath':_0x5149f4,'app':_0x381e72||null,'appcode':_0x324c26,'env':_0xf977e5?_0x531dee:null,'accessKeyWritten':![],'command':'workspace\x20'+_0x81cc63},'message':buildWorkspaceMessage(_0x5149f4,_0x381e72,_0x324c26,_0xf977e5?_0x531dee:undefined)};}async function resolveRemoteAppCode(_0x3c2427){const _0x44e850=a51_0x445024;if(!_0x3c2427['accessKey'])throw CliErrors[_0x44e850(0x18b)](_0x44e850(0x179)+CLI_BIN_NAME+_0x44e850(0x16c)+_0x3c2427[_0x44e850(0x188)]+'.');const {setActiveAK:_0x49efeb}=await import(_0x44e850(0x17e)),{getRemoteAppList:_0x23adf9}=await import(_0x44e850(0x17d));_0x49efeb(_0x3c2427['accessKey']);const _0x5617cc=await _0x23adf9({'env':_0x3c2427['env'],'accessKey':_0x3c2427[_0x44e850(0x174)],'noCache':![]}),_0x369d65=findAppByName(_0x5617cc[_0x44e850(0x168)],_0x3c2427[_0x44e850(0x15d)]);if(_0x369d65&&!isRuntimeAccessibleApp(_0x369d65))throw runtimeInaccessibleAppError(_0x369d65,'\x22'+_0x3c2427[_0x44e850(0x15d)]+'\x22');const _0x3ea277=_0x369d65?.[_0x44e850(0x189)]?.['trim']();if(_0x3ea277)return _0x3ea277;const _0x2fe8ac=_0x5617cc[_0x44e850(0x168)]['map'](_0x5d7ca7=>_0x5d7ca7[_0x44e850(0x15d)])['filter'](Boolean),_0x15e1b9=_0x2fe8ac['length']?'Available\x20apps:\x20'+Array['from'](new Set(_0x2fe8ac))[_0x44e850(0x160)](',\x20')+'.':_0x44e850(0x16d)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x44e850(0x17f)](_0x44e850(0x16f)+_0x3c2427['appName']+_0x44e850(0x171),_0x15e1b9);}function writeWorkspaceConfig(_0x1c0cb0){const _0x34dcb3=a51_0x445024,_0x519683=resolveWriteConfigPath(_0x34dcb3(0x166)),_0x558dd2=readConfigFile(_0x519683);_0x1c0cb0[_0x34dcb3(0x187)]&&(_0x558dd2[_0x34dcb3(0x186)]=_0x1c0cb0[_0x34dcb3(0x186)]);if(_0x1c0cb0['appName']){const _0x11b296=isRecord(_0x558dd2['apps'])?{..._0x558dd2[_0x34dcb3(0x18c)]}:{},_0x14e1f4=isRecord(_0x11b296[_0x1c0cb0[_0x34dcb3(0x15d)]])?_0x11b296[_0x1c0cb0[_0x34dcb3(0x15d)]]:{};_0x11b296[_0x1c0cb0[_0x34dcb3(0x15d)]]={..._0x14e1f4,'appcode':_0x1c0cb0['appcode']},_0x558dd2[_0x34dcb3(0x18c)]=_0x11b296,_0x558dd2['defaultApp']=_0x1c0cb0[_0x34dcb3(0x15d)];if(_0x558dd2['app'])delete _0x558dd2[_0x34dcb3(0x18f)];return writeAndReturn(_0x519683,_0x558dd2);}_0x558dd2['appcode']=_0x1c0cb0[_0x34dcb3(0x177)];if(_0x558dd2[_0x34dcb3(0x18f)])delete _0x558dd2[_0x34dcb3(0x18f)];return writeAndReturn(_0x519683,_0x558dd2);}function writeAndReturn(_0x3a0efd,_0x5b5b46){return writeConfigFile(_0x3a0efd,_0x5b5b46),_0x3a0efd;}function a51_0x1962(){const _0x444789=['6TCLgVA','project','Workspace\x20configured.\x0aConfig\x20file:\x20','items','1554644UpxWRg','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','63903kzsUXW','\x20workspace\x20','Run\x20`','24556599uNaSlN','App\x20\x22','isArray','\x22\x20not\x20found.','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','object','accessKey','44IqANSN','str','appcode','Invalid\x20env\x20\x22','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','\x0aEnv:\x20','\x20--appcode\x20<code>\x20[--env\x20daily]','workspace','../../commands/app/remote-source.js','../../core/api-client.js','validation','3641785miWQbU','10zmOnTL','yes','boolean','Target\x20environment','includes','env','shouldWriteEnv','command','appCode','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','authRequired','apps','\x22.\x20Allowed:\x20','string','app','Missing\x20workspace\x20app\x20selector.','appName','envName','write','join','430400cMpvMU','5588856vKkwaY','5655888mmoXZl','trim'];a51_0x1962=function(){return _0x444789;};return a51_0x1962();}function resolveWorkspaceEnv(_0x5b6bbc){const _0x16fc56=a51_0x445024;if(RUNTIME_ENV_VALUES[_0x16fc56(0x185)](_0x5b6bbc))return _0x5b6bbc;throw CliErrors['validation'](_0x16fc56(0x178)+_0x5b6bbc+_0x16fc56(0x18d)+RUNTIME_ENV_VALUES[_0x16fc56(0x160)](',\x20'));}function buildWorkspaceMessage(_0x271e17,_0xd7efc2,_0x2a5258,_0x1af34c){const _0x548ebf=a51_0x445024,_0x55a6cc=_0xd7efc2?_0xd7efc2+'\x20('+_0x2a5258+')':_0x2a5258,_0xf841c2=_0x1af34c?_0x548ebf(0x17a)+_0x1af34c:'';return _0x548ebf(0x167)+_0x271e17+'\x0aDefault\x20app:\x20'+_0x55a6cc+_0xf841c2+'\x0aAccessKey:\x20not\x20written';}function isRecord(_0x2ccaae){const _0xaf5bc9=a51_0x445024;return typeof _0x2ccaae===_0xaf5bc9(0x173)&&_0x2ccaae!==null&&!Array[_0xaf5bc9(0x170)](_0x2ccaae);}function makeWorkspaceCommand(_0x56729f){const _0x3590ae=a51_0x445024;return{'service':_0x3590ae(0x17c),'command':_0x56729f,'description':_0x56729f==='init'?'Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace':_0x3590ae(0x172),'risk':_0x3590ae(0x15f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x5d018e){return executeWorkspaceUse(_0x5d018e,_0x56729f);}};}export const workspaceDefinitions=[makeWorkspaceCommand('init'),makeWorkspaceCommand('use')];
1
+ const a51_0x8b33d6=a51_0x1d24;(function(_0x13b7ff,_0x507467){const _0x2aec63=a51_0x1d24,_0x2e35ab=_0x13b7ff();while(!![]){try{const _0x126780=parseInt(_0x2aec63(0xc5))/0x1*(parseInt(_0x2aec63(0xf6))/0x2)+parseInt(_0x2aec63(0xe9))/0x3+parseInt(_0x2aec63(0xd5))/0x4+parseInt(_0x2aec63(0xe8))/0x5*(parseInt(_0x2aec63(0xc2))/0x6)+-parseInt(_0x2aec63(0xf0))/0x7*(-parseInt(_0x2aec63(0xd1))/0x8)+parseInt(_0x2aec63(0xe0))/0x9*(parseInt(_0x2aec63(0xf2))/0xa)+-parseInt(_0x2aec63(0xcf))/0xb;if(_0x126780===_0x507467)break;else _0x2e35ab['push'](_0x2e35ab['shift']());}catch(_0x4f07c0){_0x2e35ab['push'](_0x2e35ab['shift']());}}}(a51_0x26fe,0xb42cc));import{CLI_BIN_NAME}from'../../constant/cli.js';function a51_0x1d24(_0x25b720,_0x4c0c87){_0x25b720=_0x25b720-0xc1;const _0x26feed=a51_0x26fe();let _0x1d2445=_0x26feed[_0x25b720];return _0x1d2445;}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':'app','type':'string','description':a51_0x8b33d6(0xc9)},{'name':a51_0x8b33d6(0xe4),'type':'string','description':'App\x20code\x20to\x20bind\x20directly'},{'name':a51_0x8b33d6(0xcd),'type':a51_0x8b33d6(0xe6),'description':a51_0x8b33d6(0xed),'enum':[...RUNTIME_ENV_VALUES]},{'name':'yes','type':a51_0x8b33d6(0xc6),'description':a51_0x8b33d6(0xd4),'default':![]}];async function executeWorkspaceUse(_0x1ef026,_0x4782c9){const _0x56b999=a51_0x8b33d6,_0x55aea3=_0x1ef026[_0x56b999(0xc1)](_0x56b999(0xcc))[_0x56b999(0xf1)](),_0x3c2fde=_0x1ef026['str'](_0x56b999(0xe4))[_0x56b999(0xf1)](),_0x3d45e9=_0x1ef026['str'](_0x56b999(0xcd))['trim'](),_0x295618=resolveWorkspaceEnv(_0x3d45e9||_0x1ef026['envName']||DEFAULT_CONFIG_VALUES['env']);if(!_0x55aea3&&!_0x3c2fde)throw CliErrors[_0x56b999(0xc8)]('Missing\x20workspace\x20app\x20selector.','Usage:\x20'+CLI_BIN_NAME+_0x56b999(0xcb)+_0x4782c9+_0x56b999(0xde)+CLI_BIN_NAME+_0x56b999(0xcb)+_0x4782c9+_0x56b999(0xd7));const _0x55dfbe=_0x3c2fde||await resolveRemoteAppCode({'command':_0x4782c9,'appName':_0x55aea3,'env':_0x295618,'accessKey':_0x1ef026['accessKey']}),_0x5a8de5=writeWorkspaceConfig({'command':_0x4782c9,'appName':_0x55aea3,'appcode':_0x55dfbe,'env':_0x295618,'shouldWriteEnv':!!_0x3d45e9,'accessKey':_0x1ef026['accessKey']});return{'ok':!![],'data':{'configPath':_0x5a8de5,'app':_0x55aea3||null,'appcode':_0x55dfbe,'env':_0x3d45e9?_0x295618:null,'accessKeyWritten':![],'command':_0x56b999(0xd3)+_0x4782c9},'message':buildWorkspaceMessage(_0x5a8de5,_0x55aea3,_0x55dfbe,_0x3d45e9?_0x295618:undefined)};}async function resolveRemoteAppCode(_0x31f92a){const _0x5078c5=a51_0x8b33d6;if(!_0x31f92a[_0x5078c5(0xd6)])throw CliErrors['authRequired'](_0x5078c5(0xc3)+CLI_BIN_NAME+'\x20workspace\x20'+_0x31f92a[_0x5078c5(0xc4)]+'.');const {setActiveAK:_0x558b85}=await import('../../core/api-client.js'),{getRemoteAppList:_0x423af9}=await import(_0x5078c5(0xdd));_0x558b85(_0x31f92a[_0x5078c5(0xd6)]);const _0x228e15=await _0x423af9({'env':_0x31f92a[_0x5078c5(0xcd)],'accessKey':_0x31f92a[_0x5078c5(0xd6)],'noCache':![]}),_0x35b2df=findAppByName(_0x228e15['items'],_0x31f92a[_0x5078c5(0xf3)]);if(_0x35b2df&&!isRuntimeAccessibleApp(_0x35b2df))throw runtimeInaccessibleAppError(_0x35b2df,'\x22'+_0x31f92a[_0x5078c5(0xf3)]+'\x22');const _0x29916f=_0x35b2df?.[_0x5078c5(0xe7)]?.[_0x5078c5(0xf1)]();if(_0x29916f)return _0x29916f;const _0x5cde25=_0x228e15['items']['map'](_0x3202bc=>_0x3202bc[_0x5078c5(0xf3)])[_0x5078c5(0xd2)](Boolean),_0x2f9e10=_0x5cde25[_0x5078c5(0xf5)]?_0x5078c5(0xdc)+Array[_0x5078c5(0xce)](new Set(_0x5cde25))[_0x5078c5(0xef)](',\x20')+'.':_0x5078c5(0xd0)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20pass\x20--appcode\x20directly.';throw CliErrors[_0x5078c5(0xc8)](_0x5078c5(0xee)+_0x31f92a[_0x5078c5(0xf3)]+_0x5078c5(0xec),_0x2f9e10);}function writeWorkspaceConfig(_0x3ea6a8){const _0x5e6456=a51_0x8b33d6,_0xa0274e=resolveWriteConfigPath(_0x5e6456(0xdf)),_0x1130f9=readConfigFile(_0xa0274e);_0x3ea6a8[_0x5e6456(0xd9)]&&(_0x1130f9[_0x5e6456(0xcd)]=_0x3ea6a8[_0x5e6456(0xcd)]);if(_0x3ea6a8[_0x5e6456(0xf3)]){const _0xd5e476=isRecord(_0x1130f9[_0x5e6456(0xd8)])?{..._0x1130f9[_0x5e6456(0xd8)]}:{},_0x2f5422=isRecord(_0xd5e476[_0x3ea6a8[_0x5e6456(0xf3)]])?_0xd5e476[_0x3ea6a8['appName']]:{};_0xd5e476[_0x3ea6a8[_0x5e6456(0xf3)]]={..._0x2f5422,'appcode':_0x3ea6a8[_0x5e6456(0xe4)]},_0x1130f9['apps']=_0xd5e476,_0x1130f9[_0x5e6456(0xe5)]=_0x3ea6a8[_0x5e6456(0xf3)];if(_0x1130f9['app'])delete _0x1130f9[_0x5e6456(0xcc)];return writeAndReturn(_0xa0274e,_0x1130f9);}_0x1130f9['appcode']=_0x3ea6a8['appcode'];if(_0x1130f9[_0x5e6456(0xcc)])delete _0x1130f9['app'];return writeAndReturn(_0xa0274e,_0x1130f9);}function writeAndReturn(_0x4278ec,_0x1b7d73){return writeConfigFile(_0x4278ec,_0x1b7d73),_0x4278ec;}function resolveWorkspaceEnv(_0x85292a){const _0x1a2c0d=a51_0x8b33d6;if(RUNTIME_ENV_VALUES[_0x1a2c0d(0xc7)](_0x85292a))return _0x85292a;throw CliErrors[_0x1a2c0d(0xc8)]('Invalid\x20env\x20\x22'+_0x85292a+_0x1a2c0d(0xea)+RUNTIME_ENV_VALUES[_0x1a2c0d(0xef)](',\x20'));}function a51_0x26fe(){const _0xd0183f=['Initialize\x20app\x20context\x20for\x20the\x20current\x20workspace','object','appcode','defaultApp','string','appCode','6478805CtUANr','1696560oHdMWC','\x22.\x20Allowed:\x20','Set\x20app\x20context\x20for\x20the\x20current\x20workspace','\x22\x20not\x20found.','Target\x20environment','App\x20\x22','join','217NauPBc','trim','11971070dxUSrz','appName','isArray','length','2050274HrCHoO','str','6AywMDK','Resolving\x20--app\x20requires\x20accessKey.\x20Pass\x20--appcode\x20directly,\x20or\x20set\x20accessKey\x20before\x20running\x20','command','1TCIsZg','boolean','includes','validation','App\x20name\x20to\x20bind\x20as\x20the\x20current\x20workspace\x20default','init','\x20workspace\x20','app','env','from','51693367OlECxv','Run\x20`','206224znilOm','filter','workspace\x20','Compatibility\x20flag;\x20workspace\x20config\x20updates\x20are\x20non-interactive','2219000qqFYDQ','accessKey','\x20--appcode\x20<code>\x20[--env\x20daily]','apps','shouldWriteEnv','\x0aAccessKey:\x20not\x20written','\x0aEnv:\x20','Available\x20apps:\x20','../../commands/app/remote-source.js','\x20--app\x20<name>\x20[--env\x20daily]\x20or\x20','project','9WyswhY','\x0aDefault\x20app:\x20'];a51_0x26fe=function(){return _0xd0183f;};return a51_0x26fe();}function buildWorkspaceMessage(_0xe53783,_0x4ae5eb,_0x50bef0,_0x4ddc9c){const _0x7b2708=a51_0x8b33d6,_0x530d17=_0x4ae5eb?_0x4ae5eb+'\x20('+_0x50bef0+')':_0x50bef0,_0x5c60a7=_0x4ddc9c?_0x7b2708(0xdb)+_0x4ddc9c:'';return'Workspace\x20configured.\x0aConfig\x20file:\x20'+_0xe53783+_0x7b2708(0xe1)+_0x530d17+_0x5c60a7+_0x7b2708(0xda);}function isRecord(_0x4bf7d8){const _0xf8c40f=a51_0x8b33d6;return typeof _0x4bf7d8===_0xf8c40f(0xe3)&&_0x4bf7d8!==null&&!Array[_0xf8c40f(0xf4)](_0x4bf7d8);}function makeWorkspaceCommand(_0x24eb20){const _0x58e6dd=a51_0x8b33d6;return{'service':'workspace','command':_0x24eb20,'description':_0x24eb20===_0x58e6dd(0xca)?_0x58e6dd(0xe2):_0x58e6dd(0xeb),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':WORKSPACE_USE_FLAGS,async 'execute'(_0x15c055){return executeWorkspaceUse(_0x15c055,_0x24eb20);}};}export const workspaceDefinitions=[makeWorkspaceCommand(a51_0x8b33d6(0xca)),makeWorkspaceCommand('use')];
@@ -1 +1 @@
1
- const a52_0x1745a5=a52_0x27f4;(function(_0x586676,_0x5b00ca){const _0x185d1e=a52_0x27f4,_0xfd9175=_0x586676();while(!![]){try{const _0xe50423=-parseInt(_0x185d1e(0x185))/0x1+parseInt(_0x185d1e(0x190))/0x2*(-parseInt(_0x185d1e(0x18b))/0x3)+parseInt(_0x185d1e(0x176))/0x4+-parseInt(_0x185d1e(0x187))/0x5*(-parseInt(_0x185d1e(0x17d))/0x6)+-parseInt(_0x185d1e(0x188))/0x7*(-parseInt(_0x185d1e(0x17c))/0x8)+parseInt(_0x185d1e(0x18d))/0x9*(-parseInt(_0x185d1e(0x189))/0xa)+parseInt(_0x185d1e(0x178))/0xb;if(_0xe50423===_0x5b00ca)break;else _0xfd9175['push'](_0xfd9175['shift']());}catch(_0x1498bf){_0xfd9175['push'](_0xfd9175['shift']());}}}(a52_0x5954,0xc365a));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_0x1745a5(0x17e),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1745a5(0x182)],'importable':!![]},'format':{'description':a52_0x1745a5(0x186),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1745a5(0x179)],'importable':!![]},'pageSize':{'description':a52_0x1745a5(0x180),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a52_0x1745a5(0x181),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a52_0x1745a5(0x184),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x1745a5(0x17f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x1745a5(0x17a),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x1745a5(0x17b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1745a5(0x18c)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1745a5(0x18f)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x1745a5(0x175)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xec4126])=>_0xec4126[a52_0x1745a5(0x183)])[a52_0x1745a5(0x192)](([_0xac11a7])=>_0xac11a7));function a52_0x5954(){const _0x3c613a=['16727227qIzeVw','format','Override\x20SkillHub\x20domain','Access\x20key\x20(client-ak\x20auth)','8fQKFTU','1516836OSjIpp','Target\x20environment','Override\x20runtime\x20domain','Default\x20page\x20size','Override\x20API\x20domain','env','cliSettableTopLevel','Override\x20user\x20domain','1245926OXLsMj','Default\x20output\x20format','5wJbVdb','8053899OQVdiA','33230SuWCMG','Config\x20key.\x20Top-level:\x20','15NUssGg','riskLevel','1728wMBvLc','fromEntries','locale','364988UxAilj','importable','map',';\x20local\x20alias:\x20apps.<alias>.appcode','legacyCompatOnly','entries','2690952uODcPr','enumValues'];a52_0x5954=function(){return _0x3c613a;};return a52_0x5954();}export const CONFIG_ENUM_VALUES=Object[a52_0x1745a5(0x18e)](Object[a52_0x1745a5(0x175)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x53865f])=>_0x53865f[a52_0x1745a5(0x177)])[a52_0x1745a5(0x192)](([_0x1362b1,_0x2a9324])=>[_0x1362b1,[..._0x2a9324[a52_0x1745a5(0x177)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x3caf18])=>_0x3caf18[a52_0x1745a5(0x191)])['map'](([_0x543624])=>_0x543624);function a52_0x27f4(_0x4e0d7b,_0x73f6b){_0x4e0d7b=_0x4e0d7b-0x173;const _0x5954de=a52_0x5954();let _0x27f410=_0x5954de[_0x4e0d7b];return _0x27f410;}export function getConfigFieldSchema(_0x1dd2ab){return CONFIG_FIELD_SCHEMAS[_0x1dd2ab];}export function getConfigEnumValues(_0x36104e){return getConfigFieldSchema(_0x36104e)?.['enumValues'];}export function getConfigDefaultValue(_0x1b8c69){return getConfigFieldSchema(_0x1b8c69)?.['defaultValue'];}export function isTopLevelConfigKey(_0x33cf4f){return TOP_LEVEL_CONFIG_KEYS['has'](_0x33cf4f);}export function isLegacyCompatConfigKey(_0x26fd70){const _0x4777e2=a52_0x1745a5;return getConfigFieldSchema(_0x26fd70)?.[_0x4777e2(0x174)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x4d2c09){return[..._0x4d2c09]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x2fcdf4=a52_0x1745a5;return _0x2fcdf4(0x18a)+getTopLevelConfigKeySummary()+_0x2fcdf4(0x173);}export function buildAppProfileListFields(_0x1b4bff){return{'env':_0x1b4bff,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
1
+ const a52_0x1d11c7=a52_0x39f8;(function(_0x187435,_0x2734be){const _0xa1d115=a52_0x39f8,_0x1e146e=_0x187435();while(!![]){try{const _0x51b690=-parseInt(_0xa1d115(0xab))/0x1*(parseInt(_0xa1d115(0xaa))/0x2)+parseInt(_0xa1d115(0xa2))/0x3+parseInt(_0xa1d115(0xad))/0x4+-parseInt(_0xa1d115(0xa5))/0x5*(-parseInt(_0xa1d115(0x9e))/0x6)+-parseInt(_0xa1d115(0xb2))/0x7+parseInt(_0xa1d115(0xa0))/0x8*(-parseInt(_0xa1d115(0x9a))/0x9)+parseInt(_0xa1d115(0xa9))/0xa;if(_0x51b690===_0x2734be)break;else _0x1e146e['push'](_0x1e146e['shift']());}catch(_0x22089a){_0x1e146e['push'](_0x1e146e['shift']());}}}(a52_0x4d4a,0x51171));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_0x1d11c7(0x9b),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['env'],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1d11c7(0x9f)],'importable':!![]},'pageSize':{'description':'Default\x20page\x20size','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':'Override\x20user\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a52_0x1d11c7(0xa3),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'skillHubDomain':{'description':a52_0x1d11c7(0x9d),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a52_0x1d11c7(0xa6),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a52_0x1d11c7(0x96),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1d11c7(0x97)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a52_0x1d11c7(0xaf)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a52_0x1d11c7(0x99)](CONFIG_FIELD_SCHEMAS)[a52_0x1d11c7(0xae)](([,_0x33faba])=>_0x33faba[a52_0x1d11c7(0xa7)])['map'](([_0x1c59fd])=>_0x1c59fd));export const CONFIG_ENUM_VALUES=Object[a52_0x1d11c7(0x98)](Object['entries'](CONFIG_FIELD_SCHEMAS)[a52_0x1d11c7(0xae)](([,_0x49bc35])=>_0x49bc35[a52_0x1d11c7(0xa8)])[a52_0x1d11c7(0x9c)](([_0x273226,_0x4272e4])=>[_0x273226,[..._0x4272e4[a52_0x1d11c7(0xa8)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a52_0x1d11c7(0x99)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2a931f])=>_0x2a931f['importable'])[a52_0x1d11c7(0x9c)](([_0x3739ab])=>_0x3739ab);export function getConfigFieldSchema(_0x4eb218){return CONFIG_FIELD_SCHEMAS[_0x4eb218];}function a52_0x39f8(_0x1a607f,_0x2244c6){_0x1a607f=_0x1a607f-0x96;const _0x4d4aec=a52_0x4d4a();let _0x39f8a0=_0x4d4aec[_0x1a607f];return _0x39f8a0;}export function getConfigEnumValues(_0x3b3c8a){return getConfigFieldSchema(_0x3b3c8a)?.['enumValues'];}function a52_0x4d4a(){const _0x3f0ba1=['2900667SoRzjU','Risk\x20level','riskLevel','fromEntries','entries','618489JtsGyK','Target\x20environment','map','Override\x20SkillHub\x20domain','48EGwdbh','format','64jojXCK','legacyCompatOnly','1965852eFkNaQ','Override\x20runtime\x20domain','join','398485XcfErw','Access\x20key\x20(client-ak\x20auth)','cliSettableTopLevel','enumValues','3497200dYBtuT','852KuTvZh','1123yTciUd','defaultValue','528448QOlDiZ','filter','locale','Config\x20key.\x20Top-level:\x20','has'];a52_0x4d4a=function(){return _0x3f0ba1;};return a52_0x4d4a();}export function getConfigDefaultValue(_0x279efc){const _0x4f3b1a=a52_0x1d11c7;return getConfigFieldSchema(_0x279efc)?.[_0x4f3b1a(0xac)];}export function isTopLevelConfigKey(_0x1ad70b){const _0xb86c0e=a52_0x1d11c7;return TOP_LEVEL_CONFIG_KEYS[_0xb86c0e(0xb1)](_0x1ad70b);}export function isLegacyCompatConfigKey(_0x355860){const _0x3a3a47=a52_0x1d11c7;return getConfigFieldSchema(_0x355860)?.[_0x3a3a47(0xa1)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x41a056){const _0x4b810b=a52_0x1d11c7;return[..._0x41a056][_0x4b810b(0xa4)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x56cb3d=a52_0x1d11c7;return _0x56cb3d(0xb0)+getTopLevelConfigKeySummary()+';\x20local\x20alias:\x20apps.<alias>.appcode';}export function buildAppProfileListFields(_0x2449e2){return{'env':_0x2449e2,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
@@ -1 +1 @@
1
- function a53_0x5842(){const _0x337471=['1454412IpSLLN','UNPUBLISH','2678idDaPk','6MnTaBB','2457pLgzAy','2081595sytXwL','1491131SorlkR','41448vEHvIM','4392710OhuKyq','69pAiUFB','PUBLISHED','36914330UxWJNq'];a53_0x5842=function(){return _0x337471;};return a53_0x5842();}const a53_0x1d1fe0=a53_0x23af;(function(_0x9d20ec,_0x58f232){const _0x2b0fd7=a53_0x23af,_0x417cfe=_0x9d20ec();while(!![]){try{const _0x4b68ec=-parseInt(_0x2b0fd7(0x116))/0x1+parseInt(_0x2b0fd7(0x112))/0x2*(parseInt(_0x2b0fd7(0x119))/0x3)+parseInt(_0x2b0fd7(0x11c))/0x4+parseInt(_0x2b0fd7(0x115))/0x5*(parseInt(_0x2b0fd7(0x113))/0x6)+-parseInt(_0x2b0fd7(0x118))/0x7+parseInt(_0x2b0fd7(0x117))/0x8*(-parseInt(_0x2b0fd7(0x114))/0x9)+parseInt(_0x2b0fd7(0x11b))/0xa;if(_0x4b68ec===_0x58f232)break;else _0x417cfe['push'](_0x417cfe['shift']());}catch(_0x571962){_0x417cfe['push'](_0x417cfe['shift']());}}}(a53_0x5842,0xec976));function a53_0x23af(_0x1ea374,_0x17a2d0){_0x1ea374=_0x1ea374-0x111;const _0x58420a=a53_0x5842();let _0x23afb1=_0x58420a[_0x1ea374];return _0x23afb1;}export const APP_PUBLISH_STATUS={'Published':a53_0x1d1fe0(0x11a),'Unpublished':a53_0x1d1fe0(0x111)};export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS['Published'];
1
+ const a53_0x3c02a0=a53_0x2657;(function(_0x46b3b4,_0x2bc14a){const _0x21d307=a53_0x2657,_0x212c39=_0x46b3b4();while(!![]){try{const _0x513194=parseInt(_0x21d307(0xd3))/0x1*(-parseInt(_0x21d307(0xd7))/0x2)+-parseInt(_0x21d307(0xdc))/0x3+parseInt(_0x21d307(0xdb))/0x4+parseInt(_0x21d307(0xd9))/0x5+parseInt(_0x21d307(0xd5))/0x6+-parseInt(_0x21d307(0xd8))/0x7+-parseInt(_0x21d307(0xda))/0x8;if(_0x513194===_0x2bc14a)break;else _0x212c39['push'](_0x212c39['shift']());}catch(_0x19d4ea){_0x212c39['push'](_0x212c39['shift']());}}}(a53_0x2459,0xb2f2b));export const APP_PUBLISH_STATUS={'Published':a53_0x3c02a0(0xd6),'Unpublished':a53_0x3c02a0(0xd4)};function a53_0x2657(_0x526daa,_0xe069dc){_0x526daa=_0x526daa-0xd2;const _0x24596f=a53_0x2459();let _0x265751=_0x24596f[_0x526daa];return _0x265751;}export const RUNTIME_ACCESSIBLE_APP_STATUS=APP_PUBLISH_STATUS[a53_0x3c02a0(0xd2)];function a53_0x2459(){const _0x4dc284=['2091019UruCmR','5866250MFWIYt','1576136hNemIH','3166116coOeAz','3815484PrawAw','Published','1bTFPaT','UNPUBLISH','5578794slXzbO','PUBLISHED','788090OPMXZe'];a53_0x2459=function(){return _0x4dc284;};return a53_0x2459();}