@lovrabet/rabetbase-cli 2.1.7-beta.9 → 2.1.9

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 (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x752081,_0x37c4fc){const _0x58012a=a155_0x4b9f,_0xe65ea6=_0x752081();while(!![]){try{const _0x9ecfcb=-parseInt(_0x58012a(0x1e2))/0x1*(parseInt(_0x58012a(0x1e8))/0x2)+parseInt(_0x58012a(0x1dd))/0x3+parseInt(_0x58012a(0x1f2))/0x4*(-parseInt(_0x58012a(0x1df))/0x5)+-parseInt(_0x58012a(0x1f6))/0x6+parseInt(_0x58012a(0x1e5))/0x7+parseInt(_0x58012a(0x1dc))/0x8+-parseInt(_0x58012a(0x1e4))/0x9;if(_0x9ecfcb===_0x37c4fc)break;else _0xe65ea6['push'](_0xe65ea6['shift']());}catch(_0x443090){_0xe65ea6['push'](_0xe65ea6['shift']());}}}(a155_0x8171,0xa4238));function a155_0x4b9f(_0x3a6c66,_0x30a8ca){_0x3a6c66=_0x3a6c66-0x1da;const _0x8171a6=a155_0x8171();let _0x4b9fa0=_0x8171a6[_0x3a6c66];return _0x4b9fa0;}export function detectSqlType(_0x4be9dc){const _0x225a1e=a155_0x4b9f;if(!_0x4be9dc?.[_0x225a1e(0x1e6)]())return{'type':_0x225a1e(0x200),'isSelectOnly':![],'isDangerous':![],'reason':_0x225a1e(0x1fd)};const _0x184ca6=_0x4be9dc[_0x225a1e(0x1fc)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x225a1e(0x1fc)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x225a1e(0x1fc)](/\/\*[\s\S]*?\*\//g,'')[_0x225a1e(0x1e6)](),_0x431800=_0x184ca6[_0x225a1e(0x1f5)]('\x0a');let _0x225037='';for(const _0x1d2ea5 of _0x431800){const _0x5bcfdc=_0x1d2ea5[_0x225a1e(0x1e6)]();if(!_0x5bcfdc||_0x5bcfdc['startsWith']('--')||_0x5bcfdc[_0x225a1e(0x1ed)]('/*'))continue;_0x225037=_0x5bcfdc;break;}const _0x293797=_0x225037[_0x225a1e(0x1f8)]();if(_0x293797['startsWith'](_0x225a1e(0x1ff))||_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1ee))){const _0x21ad29=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x225a1e(0x1fa)](_0x184ca6);return{'type':_0x225a1e(0x1ff),'isSelectOnly':!_0x21ad29,'isDangerous':_0x21ad29,'reason':_0x21ad29?_0x225a1e(0x1db):undefined};}if(_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1de)))return{'type':_0x225a1e(0x1de),'isSelectOnly':![],'isDangerous':![]};if(_0x293797[_0x225a1e(0x1ed)](_0x225a1e(0x1e1)))return{'type':_0x225a1e(0x1e1),'isSelectOnly':![],'isDangerous':![]};if(_0x293797[_0x225a1e(0x1ed)]('DELETE'))return{'type':_0x225a1e(0x1eb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a1e(0x1f7)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x293797))return{'type':_0x225a1e(0x1fe),'isSelectOnly':![],'isDangerous':!![],'reason':_0x225a1e(0x1f9)};return{'type':_0x225a1e(0x200),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x4605b3){const _0x1fca28=a155_0x4b9f,_0x5a6bed=_0x4605b3[_0x1fca28(0x1fc)](/#\{[^}]*\}/g,'?')[_0x1fca28(0x1fc)](/\$\{[^}]*\}/g,'?')[_0x1fca28(0x1fc)](/'[^']*'/g,'\x27\x27')[_0x1fca28(0x1fc)](/--.*$/gm,'')[_0x1fca28(0x1fc)](/\/\*[\s\S]*?\*\//g,''),_0x2960a1=[],_0x3764a5=_0x5a6bed['match'](/FROM\s+([^\s,)(]+)/i);if(_0x3764a5?.[0x1])_0x2960a1[_0x1fca28(0x1e9)](_0x3764a5[0x1][_0x1fca28(0x1fc)](/[`"]/g,''));for(const _0xf64d72 of _0x5a6bed['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5229ee=_0xf64d72[0x1]?.['replace'](/[`"]/g,'');if(_0x5229ee&&!_0x2960a1[_0x1fca28(0x1f1)](_0x5229ee))_0x2960a1['push'](_0x5229ee);}const _0x518f5b=_0x5a6bed[_0x1fca28(0x1f3)](/INTO\s+([^\s(]+)/i);if(_0x518f5b?.[0x1]){const _0x208449=_0x518f5b[0x1]['replace'](/[`"]/g,'');if(!_0x2960a1[_0x1fca28(0x1f1)](_0x208449))_0x2960a1[_0x1fca28(0x1e9)](_0x208449);}const _0x30395b=_0x5a6bed[_0x1fca28(0x1f3)](/UPDATE\s+([^\s,)(]+)/i);if(_0x30395b?.[0x1]){const _0xd30a1e=_0x30395b[0x1][_0x1fca28(0x1fc)](/[`"]/g,'');if(!_0x2960a1[_0x1fca28(0x1f1)](_0xd30a1e))_0x2960a1[_0x1fca28(0x1e9)](_0xd30a1e);}return _0x2960a1;}function extractParameters(_0x1a8d01){const _0x46c93d=a155_0x4b9f,_0x5e87d5=new Set();for(const _0x3a1893 of _0x1a8d01[_0x46c93d(0x1f0)](/#\{(\w+)\}/g))if(_0x3a1893[0x1])_0x5e87d5[_0x46c93d(0x1ec)](_0x3a1893[0x1]);for(const _0x44278e of _0x1a8d01[_0x46c93d(0x1f0)](/\$\{(\w+)\}/g))if(_0x44278e[0x1])_0x5e87d5['add'](_0x44278e[0x1]);return Array['from'](_0x5e87d5);}export function validateSql(_0xb2b4a4){const _0x2111d9=a155_0x4b9f,_0x579197=detectSqlType(_0xb2b4a4),_0x55a719=extractTables(_0xb2b4a4),_0x11a59e=extractParameters(_0xb2b4a4);if(_0x579197[_0x2111d9(0x1e0)])return{'valid':![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x579197['reason']||_0x579197[_0x2111d9(0x1da)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x579197[_0x2111d9(0x1da)]===_0x2111d9(0x200))return{'valid':![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x2111d9(0x1fb)};return{'valid':!![],'sqlType':_0x579197,'tables':_0x55a719,'parameters':_0x11a59e,'message':_0x579197[_0x2111d9(0x1da)]+_0x2111d9(0x1ef)+(_0x55a719['length']?_0x55a719[_0x2111d9(0x1ea)](',\x20'):_0x2111d9(0x1f4))+(_0x11a59e[_0x2111d9(0x1e7)]?_0x2111d9(0x1e3)+_0x11a59e[_0x2111d9(0x1ea)](',\x20'):'')};}function a155_0x8171(){const _0x1ce972=['5057718MLozXZ','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','toUpperCase','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replace','SQL\x20content\x20is\x20empty','DDL','SELECT','UNKNOWN','type','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','10368544yqTlDz','3445866yEGomA','INSERT','40UzcQmG','isDangerous','UPDATE','32KmdYBt','\x20with\x20parameters:\x20','10732599mCzKTH','8283282wPGyeM','trim','length','17770uqsxLB','push','join','DELETE','add','startsWith','WITH','\x20query\x20targeting\x20','matchAll','includes','317960fSHBQf','match','unknown\x20table(s)','split'];a155_0x8171=function(){return _0x1ce972;};return a155_0x8171();}
1
+ (function(_0xae1c8b,_0x1c5605){const _0x344eeb=a155_0x4c79,_0x3dacbf=_0xae1c8b();while(!![]){try{const _0x4c0e5c=parseInt(_0x344eeb(0x9b))/0x1*(-parseInt(_0x344eeb(0xa9))/0x2)+parseInt(_0x344eeb(0xa7))/0x3+parseInt(_0x344eeb(0x9a))/0x4+parseInt(_0x344eeb(0xb8))/0x5*(-parseInt(_0x344eeb(0xa0))/0x6)+parseInt(_0x344eeb(0x9e))/0x7*(parseInt(_0x344eeb(0xb1))/0x8)+parseInt(_0x344eeb(0xa4))/0x9+parseInt(_0x344eeb(0x9c))/0xa*(-parseInt(_0x344eeb(0xa6))/0xb);if(_0x4c0e5c===_0x1c5605)break;else _0x3dacbf['push'](_0x3dacbf['shift']());}catch(_0x435622){_0x3dacbf['push'](_0x3dacbf['shift']());}}}(a155_0x4f01,0x55b09));export function detectSqlType(_0x14370e){const _0x27c07f=a155_0x4c79;if(!_0x14370e?.[_0x27c07f(0xb7)]())return{'type':_0x27c07f(0xa8),'isSelectOnly':![],'isDangerous':![],'reason':_0x27c07f(0xa5)};const _0x42d7e3=_0x14370e[_0x27c07f(0xab)](/#\{[^}]*\}/g,'?')[_0x27c07f(0xab)](/\$\{[^}]*\}/g,'?')[_0x27c07f(0xab)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x27c07f(0xab)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x2780ca=_0x42d7e3[_0x27c07f(0xac)]('\x0a');let _0x978336='';for(const _0x9377e8 of _0x2780ca){const _0x18f4c8=_0x9377e8['trim']();if(!_0x18f4c8||_0x18f4c8[_0x27c07f(0x9d)]('--')||_0x18f4c8[_0x27c07f(0x9d)]('/*'))continue;_0x978336=_0x18f4c8;break;}const _0x5d058e=_0x978336[_0x27c07f(0xaa)]();if(_0x5d058e[_0x27c07f(0x9d)](_0x27c07f(0x97))||_0x5d058e[_0x27c07f(0x9d)](_0x27c07f(0xad))){const _0xfb6abd=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x42d7e3);return{'type':_0x27c07f(0x97),'isSelectOnly':!_0xfb6abd,'isDangerous':_0xfb6abd,'reason':_0xfb6abd?_0x27c07f(0x98):undefined};}if(_0x5d058e[_0x27c07f(0x9d)](_0x27c07f(0x96)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x5d058e[_0x27c07f(0x9d)]('UPDATE'))return{'type':_0x27c07f(0x9f),'isSelectOnly':![],'isDangerous':![]};if(_0x5d058e[_0x27c07f(0x9d)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x5d058e))return{'type':_0x27c07f(0xa1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x27c07f(0x93)};return{'type':_0x27c07f(0xa8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1bc7aa){const _0x492738=a155_0x4c79,_0x5661d9=_0x1bc7aa[_0x492738(0xab)](/#\{[^}]*\}/g,'?')[_0x492738(0xab)](/\$\{[^}]*\}/g,'?')[_0x492738(0xab)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x492738(0xab)](/\/\*[\s\S]*?\*\//g,''),_0x350f51=[],_0x31f830=_0x5661d9[_0x492738(0xb6)](/FROM\s+([^\s,)(]+)/i);if(_0x31f830?.[0x1])_0x350f51[_0x492738(0x94)](_0x31f830[0x1][_0x492738(0xab)](/[`"]/g,''));for(const _0x18d982 of _0x5661d9[_0x492738(0x95)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x36f56a=_0x18d982[0x1]?.[_0x492738(0xab)](/[`"]/g,'');if(_0x36f56a&&!_0x350f51[_0x492738(0xb2)](_0x36f56a))_0x350f51[_0x492738(0x94)](_0x36f56a);}const _0x5833d2=_0x5661d9[_0x492738(0xb6)](/INTO\s+([^\s(]+)/i);if(_0x5833d2?.[0x1]){const _0x1c3657=_0x5833d2[0x1][_0x492738(0xab)](/[`"]/g,'');if(!_0x350f51[_0x492738(0xb2)](_0x1c3657))_0x350f51[_0x492738(0x94)](_0x1c3657);}const _0x117fc3=_0x5661d9['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x117fc3?.[0x1]){const _0x4a4daa=_0x117fc3[0x1]['replace'](/[`"]/g,'');if(!_0x350f51['includes'](_0x4a4daa))_0x350f51[_0x492738(0x94)](_0x4a4daa);}return _0x350f51;}function a155_0x4c79(_0x3e101d,_0x347138){_0x3e101d=_0x3e101d-0x93;const _0x4f0170=a155_0x4f01();let _0x4c7999=_0x4f0170[_0x3e101d];return _0x4c7999;}function a155_0x4f01(){const _0x5e801a=['UPDATE','12iGOFic','DDL','\x20query\x20targeting\x20','reason','6040602wzaxwW','SQL\x20content\x20is\x20empty','12463MSQxYJ','1056840VJiEJh','UNKNOWN','753518uDaBbU','toUpperCase','replace','split','WITH','length','unknown\x20table(s)','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','24RjfXrc','includes','from','join','isDangerous','match','trim','442620wUZICt','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','push','matchAll','INSERT','SELECT','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','type','2510044tnCuRe','1hWxPxz','8710Ertykm','startsWith','561554tVqDbs'];a155_0x4f01=function(){return _0x5e801a;};return a155_0x4f01();}function extractParameters(_0x37b86c){const _0x5aa8b5=a155_0x4c79,_0x1fa780=new Set();for(const _0x58ab18 of _0x37b86c[_0x5aa8b5(0x95)](/#\{(\w+)\}/g))if(_0x58ab18[0x1])_0x1fa780['add'](_0x58ab18[0x1]);for(const _0x22a335 of _0x37b86c[_0x5aa8b5(0x95)](/\$\{(\w+)\}/g))if(_0x22a335[0x1])_0x1fa780['add'](_0x22a335[0x1]);return Array[_0x5aa8b5(0xb3)](_0x1fa780);}export function validateSql(_0x319d14){const _0x6906d8=a155_0x4c79,_0x53854=detectSqlType(_0x319d14),_0xab90a=extractTables(_0x319d14),_0x1c5b21=extractParameters(_0x319d14);if(_0x53854[_0x6906d8(0xb5)])return{'valid':![],'sqlType':_0x53854,'tables':_0xab90a,'parameters':_0x1c5b21,'message':_0x53854[_0x6906d8(0xa3)]||_0x53854['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x53854[_0x6906d8(0x99)]===_0x6906d8(0xa8))return{'valid':![],'sqlType':_0x53854,'tables':_0xab90a,'parameters':_0x1c5b21,'message':_0x6906d8(0xb0)};return{'valid':!![],'sqlType':_0x53854,'tables':_0xab90a,'parameters':_0x1c5b21,'message':_0x53854[_0x6906d8(0x99)]+_0x6906d8(0xa2)+(_0xab90a['length']?_0xab90a[_0x6906d8(0xb4)](',\x20'):_0x6906d8(0xaf))+(_0x1c5b21[_0x6906d8(0xae)]?'\x20with\x20parameters:\x20'+_0x1c5b21[_0x6906d8(0xb4)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a156_0x53c8f0=a156_0x5033;(function(_0x37f5e0,_0x20f8f8){const _0x2ab92e=a156_0x5033,_0x2fc89f=_0x37f5e0();while(!![]){try{const _0x1bddb0=-parseInt(_0x2ab92e(0x9e))/0x1+parseInt(_0x2ab92e(0x9b))/0x2+-parseInt(_0x2ab92e(0xa2))/0x3*(parseInt(_0x2ab92e(0x99))/0x4)+parseInt(_0x2ab92e(0x96))/0x5+parseInt(_0x2ab92e(0x9f))/0x6+-parseInt(_0x2ab92e(0x97))/0x7*(-parseInt(_0x2ab92e(0xa4))/0x8)+-parseInt(_0x2ab92e(0x9d))/0x9;if(_0x1bddb0===_0x20f8f8)break;else _0x2fc89f['push'](_0x2fc89f['shift']());}catch(_0x2a348e){_0x2fc89f['push'](_0x2fc89f['shift']());}}}(a156_0x10da,0x5de9f));function a156_0x10da(){const _0x19fb55=['\x0a\x20\x20\x20\x20\x20\x20\x20','536170dmjpPd','707bhCfOJ','Set\x20appcode\x20via\x20`','9396gqeDNP','Run\x20`','1366758UAHTSg','Tip:\x20`','9177516PCfLUl','121572QYUsHk','3581616XEicma','join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','111LJOoQM','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','17848tEDKHG','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'];a156_0x10da=function(){return _0x19fb55;};return a156_0x10da();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a156_0x5033(_0x4ac4dc,_0x2a5291){_0x4ac4dc=_0x4ac4dc-0x95;const _0x10dacc=a156_0x10da();let _0x503318=_0x10dacc[_0x4ac4dc];return _0x503318;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x53c8f0(0x9a)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a156_0x53c8f0(0x98)+CLI_BIN_NAME+a156_0x53c8f0(0xa1),a156_0x53c8f0(0x9c)+CLI_BIN_NAME+a156_0x53c8f0(0xa5)][a156_0x53c8f0(0xa0)](a156_0x53c8f0(0x95)),'notInProjectHint':a156_0x53c8f0(0xa3)});
1
+ const a156_0x5cb5ea=a156_0x5aea;(function(_0x2e9d20,_0x1d8a19){const _0x5a7eea=a156_0x5aea,_0x651802=_0x2e9d20();while(!![]){try{const _0x4abca4=-parseInt(_0x5a7eea(0x180))/0x1*(-parseInt(_0x5a7eea(0x179))/0x2)+parseInt(_0x5a7eea(0x181))/0x3+parseInt(_0x5a7eea(0x17b))/0x4+-parseInt(_0x5a7eea(0x17f))/0x5+parseInt(_0x5a7eea(0x17d))/0x6*(parseInt(_0x5a7eea(0x186))/0x7)+-parseInt(_0x5a7eea(0x17a))/0x8+-parseInt(_0x5a7eea(0x185))/0x9*(parseInt(_0x5a7eea(0x182))/0xa);if(_0x4abca4===_0x1d8a19)break;else _0x651802['push'](_0x651802['shift']());}catch(_0x5cab1e){_0x651802['push'](_0x651802['shift']());}}}(a156_0x429f,0x45564));function a156_0x5aea(_0x33a81a,_0x26d429){_0x33a81a=_0x33a81a-0x179;const _0x429f93=a156_0x429f();let _0x5aea61=_0x429f93[_0x33a81a];return _0x5aea61;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a156_0x429f(){const _0x383424=['487136XHSplh','1003256IEanYZ','Run\x20`','3084366Gufwbs','Tip:\x20`','133730yfojux','51421ihChny','86103kxZWLr','10AxuANc','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','5185773kzBIkb','7TCzBdU','6AjIzIW'];a156_0x429f=function(){return _0x383424;};return a156_0x429f();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x5cb5ea(0x17c)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a156_0x5cb5ea(0x183),a156_0x5cb5ea(0x17e)+CLI_BIN_NAME+a156_0x5cb5ea(0x184)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0xc4edce,_0x7966f0){var _0x25e596=a157_0x11fc,_0x48c7c3=_0xc4edce();while(!![]){try{var _0x38cebd=-parseInt(_0x25e596(0xeb))/0x1+-parseInt(_0x25e596(0xed))/0x2+parseInt(_0x25e596(0xf0))/0x3+-parseInt(_0x25e596(0xee))/0x4*(parseInt(_0x25e596(0xf1))/0x5)+parseInt(_0x25e596(0xec))/0x6*(parseInt(_0x25e596(0xe7))/0x7)+parseInt(_0x25e596(0xe8))/0x8*(parseInt(_0x25e596(0xef))/0x9)+parseInt(_0x25e596(0xea))/0xa*(-parseInt(_0x25e596(0xe9))/0xb);if(_0x38cebd===_0x7966f0)break;else _0x48c7c3['push'](_0x48c7c3['shift']());}catch(_0x1e438e){_0x48c7c3['push'](_0x48c7c3['shift']());}}}(a157_0x1537,0x94734));function a157_0x1537(){var _0x434ebf=['1873506NHPwlV','175QPUGNj','183603EAJeON','745208rENmcH','11iMZvtU','12599830MGsfCu','117712hqoFah','138kiBWZI','716378EqbHcH','188eyoNJv','108bNxLMj'];a157_0x1537=function(){return _0x434ebf;};return a157_0x1537();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x11fc(_0x4be358,_0x245df6){_0x4be358=_0x4be358-0xe7;var _0x1537fb=a157_0x1537();var _0x11fc0f=_0x1537fb[_0x4be358];return _0x11fc0f;}import{buildAllFlags as a157_0x4c0360}from'@lovrabet/cli-framework';export function buildAllFlags(_0x8b2bca){return a157_0x4c0360(_0x8b2bca,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a157_0x57f5(_0x2eedc7,_0x382fb6){_0x2eedc7=_0x2eedc7-0xf5;var _0x306938=a157_0x3069();var _0x57f5a6=_0x306938[_0x2eedc7];return _0x57f5a6;}(function(_0x207cf1,_0x472dea){var _0x282194=a157_0x57f5,_0x3047ce=_0x207cf1();while(!![]){try{var _0x281cdc=-parseInt(_0x282194(0xfb))/0x1*(-parseInt(_0x282194(0xf9))/0x2)+-parseInt(_0x282194(0xf6))/0x3+-parseInt(_0x282194(0xf8))/0x4*(-parseInt(_0x282194(0x100))/0x5)+parseInt(_0x282194(0xf7))/0x6*(-parseInt(_0x282194(0xff))/0x7)+parseInt(_0x282194(0xfa))/0x8*(parseInt(_0x282194(0xf5))/0x9)+-parseInt(_0x282194(0xfe))/0xa+parseInt(_0x282194(0xfd))/0xb*(-parseInt(_0x282194(0xfc))/0xc);if(_0x281cdc===_0x472dea)break;else _0x3047ce['push'](_0x3047ce['shift']());}catch(_0x35872d){_0x3047ce['push'](_0x3047ce['shift']());}}}(a157_0x3069,0x682c6));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x3e23fd}from'@lovrabet/cli-framework';function a157_0x3069(){var _0x3bc98a=['102lJxvLP','184XufwKr','332714kPZpbR','2224cdhPoE','5iTCwXO','12AsPRiu','3272995epVcPI','3321260MOFkme','155414rTTTiK','48005SKgUlY','18243wUOvLd','1209414MwaNNl'];a157_0x3069=function(){return _0x3bc98a;};return a157_0x3069();}export function buildAllFlags(_0x29f4cb){return a157_0x3e23fd(_0x29f4cb,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a158_0x290426=a158_0xe952;(function(_0x4299e2,_0x337080){const _0x341108=a158_0xe952,_0x1dd79d=_0x4299e2();while(!![]){try{const _0xade2d=-parseInt(_0x341108(0x1cc))/0x1*(-parseInt(_0x341108(0x1c9))/0x2)+-parseInt(_0x341108(0x1d4))/0x3*(-parseInt(_0x341108(0x1d1))/0x4)+-parseInt(_0x341108(0x1d3))/0x5*(-parseInt(_0x341108(0x1c8))/0x6)+-parseInt(_0x341108(0x1c6))/0x7*(-parseInt(_0x341108(0x1c7))/0x8)+parseInt(_0x341108(0x1cd))/0x9+parseInt(_0x341108(0x1d2))/0xa*(-parseInt(_0x341108(0x1ce))/0xb)+parseInt(_0x341108(0x1cf))/0xc*(-parseInt(_0x341108(0x1cb))/0xd);if(_0xade2d===_0x337080)break;else _0x1dd79d['push'](_0x1dd79d['shift']());}catch(_0x2b61e1){_0x1dd79d['push'](_0x1dd79d['shift']());}}}(a158_0x5b96,0x4eda2));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a158_0xe952(_0x47df43,_0x33f955){_0x47df43=_0x47df43-0x1c6;const _0x5b9628=a158_0x5b96();let _0xe95209=_0x5b9628[_0x47df43];return _0xe95209;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x290426(0x1ca)];export const validateFlags=helpers[a158_0x290426(0x1d0)];function a158_0x5b96(){const _0x2d3cd4=['105KKgxkB','6IwsKXb','377951YnwRuC','24rhGLfX','29166sHOwiU','4zZecJA','parseFlags','1337713oDdwLE','29594LVNLcS','5709888uuhhgG','7091821fDktll','12bszTCD','validateFlags','225820tpzBTt','10mTUHSF'];a158_0x5b96=function(){return _0x2d3cd4;};return a158_0x5b96();}
1
+ const a158_0x5b3afb=a158_0x3d3d;function a158_0x3d3d(_0x2e3da5,_0x57180c){_0x2e3da5=_0x2e3da5-0xa4;const _0x233e02=a158_0x233e();let _0x3d3de9=_0x233e02[_0x2e3da5];return _0x3d3de9;}(function(_0x4b91a1,_0x51ad12){const _0x32f8bd=a158_0x3d3d,_0x3d8338=_0x4b91a1();while(!![]){try{const _0x4ce885=-parseInt(_0x32f8bd(0xa4))/0x1+-parseInt(_0x32f8bd(0xac))/0x2+parseInt(_0x32f8bd(0xab))/0x3+parseInt(_0x32f8bd(0xaf))/0x4*(-parseInt(_0x32f8bd(0xaa))/0x5)+-parseInt(_0x32f8bd(0xae))/0x6*(-parseInt(_0x32f8bd(0xb0))/0x7)+parseInt(_0x32f8bd(0xad))/0x8*(parseInt(_0x32f8bd(0xa8))/0x9)+parseInt(_0x32f8bd(0xa9))/0xa*(parseInt(_0x32f8bd(0xa7))/0xb);if(_0x4ce885===_0x51ad12)break;else _0x3d8338['push'](_0x3d8338['shift']());}catch(_0xc2b1a0){_0x3d8338['push'](_0x3d8338['shift']());}}}(a158_0x233e,0x5098f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x5b3afb(0xa6)];export const validateFlags=helpers[a158_0x5b3afb(0xa5)];function a158_0x233e(){const _0x4eb54e=['1404NvkDhb','7ZbsTgO','312380dSvdtm','validateFlags','parseFlags','125092rkxyxv','3123MuzdQI','430FUhaRy','2165iNrDph','354921mKPTnv','691536tXRgLF','5016qegwUm','1892316QEQVKJ'];a158_0x233e=function(){return _0x4eb54e;};return a158_0x233e();}
@@ -1 +1 @@
1
- const a159_0x159835=a159_0xfb78;(function(_0x5854f2,_0x56860b){const _0x30d607=a159_0xfb78,_0x5aa7a9=_0x5854f2();while(!![]){try{const _0x275d72=parseInt(_0x30d607(0x1f5))/0x1+-parseInt(_0x30d607(0x1f9))/0x2*(-parseInt(_0x30d607(0x1f0))/0x3)+-parseInt(_0x30d607(0x1ee))/0x4*(-parseInt(_0x30d607(0x1fb))/0x5)+-parseInt(_0x30d607(0x1fa))/0x6*(parseInt(_0x30d607(0x1f4))/0x7)+parseInt(_0x30d607(0x1ef))/0x8*(-parseInt(_0x30d607(0x1f6))/0x9)+-parseInt(_0x30d607(0x1f7))/0xa*(parseInt(_0x30d607(0x1ed))/0xb)+-parseInt(_0x30d607(0x1f1))/0xc*(-parseInt(_0x30d607(0x1f2))/0xd);if(_0x275d72===_0x56860b)break;else _0x5aa7a9['push'](_0x5aa7a9['shift']());}catch(_0x30494f){_0x5aa7a9['push'](_0x5aa7a9['shift']());}}}(a159_0x3015,0x52a71));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x48a83a=>serviceGroups['get'](_0x48a83a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x159835(0x1f3)+CLI_BIN_NAME+a159_0x159835(0x1f8),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});function a159_0x3015(){const _0x5948de=['470847EebaxP','Requires\x20appcode\x20(set\x20via\x20`','154isSopM','124447SihBEd','21609yNXVpW','37130mOpcdh','\x20project\x20init`\x20or\x20--appcode).','460468UQyhcw','99642PMbfUN','8620iOERXm','583KfxHyQ','328ZMVWuL','824RuKNrY','3BPwDcc','216xQsuSA'];a159_0x3015=function(){return _0x5948de;};return a159_0x3015();}function a159_0xfb78(_0xac5cb,_0x2c3f3b){_0xac5cb=_0xac5cb-0x1ed;const _0x301544=a159_0x3015();let _0xfb78e3=_0x301544[_0xac5cb];return _0xfb78e3;}export function generateCommandHelp(_0x8d6713){return generators['generateCommandHelp'](_0x8d6713);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a159_0x58b48e=a159_0x2108;(function(_0x580f30,_0x814353){const _0xfaf088=a159_0x2108,_0x2fd92f=_0x580f30();while(!![]){try{const _0x29c752=parseInt(_0xfaf088(0x1e5))/0x1+-parseInt(_0xfaf088(0x1e3))/0x2*(parseInt(_0xfaf088(0x1e1))/0x3)+-parseInt(_0xfaf088(0x1f1))/0x4*(-parseInt(_0xfaf088(0x1e6))/0x5)+parseInt(_0xfaf088(0x1eb))/0x6*(parseInt(_0xfaf088(0x1ed))/0x7)+-parseInt(_0xfaf088(0x1f0))/0x8+parseInt(_0xfaf088(0x1ec))/0x9+-parseInt(_0xfaf088(0x1e8))/0xa*(parseInt(_0xfaf088(0x1ee))/0xb);if(_0x29c752===_0x814353)break;else _0x2fd92f['push'](_0x2fd92f['shift']());}catch(_0x41b21e){_0x2fd92f['push'](_0x2fd92f['shift']());}}}(a159_0xdad9,0x1f820));import{createHelpGenerators}from'@lovrabet/cli-framework';function a159_0x2108(_0x228cdd,_0x5a163a){_0x228cdd=_0x228cdd-0x1e1;const _0xdad936=a159_0xdad9();let _0x210820=_0xdad936[_0x228cdd];return _0x210820;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x359635=>serviceGroups[a159_0x58b48e(0x1e9)](_0x359635),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x58b48e(0x1ea)+CLI_BIN_NAME+a159_0x58b48e(0x1e7),'serviceUsageSuffix':a159_0x58b48e(0x1ef),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x3a1aa6){const _0x2edab0=a159_0x58b48e;return generators[_0x2edab0(0x1e4)](_0x3a1aa6);}function a159_0xdad9(){const _0x245960=['generateFullHelp','5582oIGFIX','generateCommandHelp','1725Uerowk','617705Eeasrb','\x20project\x20init`\x20or\x20--appcode).','10TgAihL','get','Requires\x20appcode\x20(set\x20via\x20`','400524sEofqs','622062xzsFtq','21DZGEWK','1071092WpwhoG','\x20[args]\x20[flags]','1842856jlwprt','8ZCQeRy','66hFYoUc'];a159_0xdad9=function(){return _0x245960;};return a159_0xdad9();}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a159_0x58b48e(0x1e2)];
@@ -1 +1 @@
1
- (function(_0x5e1c75,_0xc417d4){var _0x7e464e=a160_0x8083,_0x29ec5d=_0x5e1c75();while(!![]){try{var _0x1177a5=parseInt(_0x7e464e(0x1cb))/0x1*(parseInt(_0x7e464e(0x1d0))/0x2)+parseInt(_0x7e464e(0x1d4))/0x3*(-parseInt(_0x7e464e(0x1cf))/0x4)+parseInt(_0x7e464e(0x1d1))/0x5+parseInt(_0x7e464e(0x1d3))/0x6*(parseInt(_0x7e464e(0x1cc))/0x7)+-parseInt(_0x7e464e(0x1cd))/0x8*(parseInt(_0x7e464e(0x1ca))/0x9)+-parseInt(_0x7e464e(0x1d2))/0xa+parseInt(_0x7e464e(0x1ce))/0xb;if(_0x1177a5===_0xc417d4)break;else _0x29ec5d['push'](_0x29ec5d['shift']());}catch(_0x4b8109){_0x29ec5d['push'](_0x29ec5d['shift']());}}}(a160_0x269e,0xb3703));export{runCommand}from'../framework/runner.js';function a160_0x8083(_0x3fe224,_0x53c36a){_0x3fe224=_0x3fe224-0x1ca;var _0x269e6b=a160_0x269e();var _0x80834=_0x269e6b[_0x3fe224];return _0x80834;}function a160_0x269e(){var _0x1f0643=['907845plripU','4400780SZHCyC','82950SHrGZp','18FgthgS','9aboQvT','7FCbgIT','595FuZsyb','6426912wVaPBN','10551442ysuSzF','902788sBHoeg','290482BRcIgM'];a160_0x269e=function(){return _0x1f0643;};return a160_0x269e();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x555bc8,_0x19adf2){var _0x16756d=a160_0xcc82,_0x5195a3=_0x555bc8();while(!![]){try{var _0x48c02f=parseInt(_0x16756d(0x154))/0x1+parseInt(_0x16756d(0x158))/0x2+parseInt(_0x16756d(0x159))/0x3*(parseInt(_0x16756d(0x153))/0x4)+parseInt(_0x16756d(0x157))/0x5+-parseInt(_0x16756d(0x156))/0x6+-parseInt(_0x16756d(0x155))/0x7+parseInt(_0x16756d(0x152))/0x8;if(_0x48c02f===_0x19adf2)break;else _0x5195a3['push'](_0x5195a3['shift']());}catch(_0xf318c0){_0x5195a3['push'](_0x5195a3['shift']());}}}(a160_0x5599,0x9aa03));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a160_0xcc82(_0x44cf8c,_0x3ece1c){_0x44cf8c=_0x44cf8c-0x152;var _0x5599fb=a160_0x5599();var _0xcc8288=_0x5599fb[_0x44cf8c];return _0xcc8288;}function a160_0x5599(){var _0x2b0ebb=['6948642lEjVlk','2291965vaoWND','409884LPSuQd','1542cfRCqt','7653496CfYWhh','2848XnerlN','131120mDMhZE','2279592NdezJK'];a160_0x5599=function(){return _0x2b0ebb;};return a160_0x5599();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- function a161_0x1901(_0x56ca29,_0x3cd0b8){_0x56ca29=_0x56ca29-0x12a;const _0x1db380=a161_0x1db3();let _0x190153=_0x1db380[_0x56ca29];return _0x190153;}(function(_0x458319,_0x35b0c6){const _0x695eec=a161_0x1901,_0x2b48f5=_0x458319();while(!![]){try{const _0x1eacea=-parseInt(_0x695eec(0x135))/0x1+-parseInt(_0x695eec(0x12b))/0x2*(-parseInt(_0x695eec(0x132))/0x3)+parseInt(_0x695eec(0x134))/0x4+parseInt(_0x695eec(0x133))/0x5*(parseInt(_0x695eec(0x12f))/0x6)+-parseInt(_0x695eec(0x12d))/0x7*(parseInt(_0x695eec(0x12e))/0x8)+-parseInt(_0x695eec(0x130))/0x9*(-parseInt(_0x695eec(0x12c))/0xa)+parseInt(_0x695eec(0x12a))/0xb*(parseInt(_0x695eec(0x131))/0xc);if(_0x1eacea===_0x35b0c6)break;else _0x2b48f5['push'](_0x2b48f5['shift']());}catch(_0x2738be){_0x2b48f5['push'](_0x2b48f5['shift']());}}}(a161_0x1db3,0xd4a0b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a161_0x1db3(){const _0x7f1a23=['482504LQiiHl','11vutZwY','100678pwdMak','590RRuRJZ','2825641iPdFBO','24gFaWuY','659898PpNPDb','19863aiJiaq','17033268NfEkkU','9HtsEBQ','15oexYiJ','2135192eyWdFW'];a161_0x1db3=function(){return _0x7f1a23;};return a161_0x1db3();}
1
+ (function(_0xbf9ae1,_0x1559a5){const _0x40c7ec=a161_0x5c25,_0x5c6a4b=_0xbf9ae1();while(!![]){try{const _0x4c249f=-parseInt(_0x40c7ec(0x16e))/0x1*(parseInt(_0x40c7ec(0x168))/0x2)+-parseInt(_0x40c7ec(0x167))/0x3+parseInt(_0x40c7ec(0x16d))/0x4+parseInt(_0x40c7ec(0x16c))/0x5+-parseInt(_0x40c7ec(0x16b))/0x6+-parseInt(_0x40c7ec(0x16a))/0x7*(parseInt(_0x40c7ec(0x166))/0x8)+-parseInt(_0x40c7ec(0x169))/0x9*(-parseInt(_0x40c7ec(0x16f))/0xa);if(_0x4c249f===_0x1559a5)break;else _0x5c6a4b['push'](_0x5c6a4b['shift']());}catch(_0x1c6b3b){_0x5c6a4b['push'](_0x5c6a4b['shift']());}}}(a161_0x8e1e,0xa8520));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a161_0x5c25(_0x376f76,_0x8aa27f){_0x376f76=_0x376f76-0x166;const _0x8e1e7a=a161_0x8e1e();let _0x5c2502=_0x8e1e7a[_0x376f76];return _0x5c2502;}function a161_0x8e1e(){const _0x17bd34=['3919728FGkfsu','6146810PMdlaH','1511096gdSpUT','32YIETlx','27614290rdGwPo','888kbocGc','4083792mQiXMr','27980GXJwDK','9uNDcmT','76741WZUNjC'];a161_0x8e1e=function(){return _0x17bd34;};return a161_0x8e1e();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- function a162_0x42b5(_0x32ed46,_0x437631){_0x32ed46=_0x32ed46-0xc4;var _0x73f65a=a162_0x73f6();var _0x42b52e=_0x73f65a[_0x32ed46];return _0x42b52e;}(function(_0x25f0a0,_0x26ae56){var _0x29045d=a162_0x42b5,_0x5c4179=_0x25f0a0();while(!![]){try{var _0x45bf56=parseInt(_0x29045d(0xcb))/0x1+parseInt(_0x29045d(0xc7))/0x2+-parseInt(_0x29045d(0xc9))/0x3*(parseInt(_0x29045d(0xcc))/0x4)+-parseInt(_0x29045d(0xc8))/0x5+-parseInt(_0x29045d(0xc4))/0x6+parseInt(_0x29045d(0xca))/0x7+-parseInt(_0x29045d(0xc6))/0x8*(parseInt(_0x29045d(0xc5))/0x9);if(_0x45bf56===_0x26ae56)break;else _0x5c4179['push'](_0x5c4179['shift']());}catch(_0x10095b){_0x5c4179['push'](_0x5c4179['shift']());}}}(a162_0x73f6,0x3b450));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a162_0x73f6(){var _0x39b2b1=['74072JWmOxz','573936gizRty','1082205RfPILT','3uxcRId','2887220bPYCIJ','307016pTdMzN','418772CJstFO','2155266IWkqQt','81rHRryo'];a162_0x73f6=function(){return _0x39b2b1;};return a162_0x73f6();}
1
+ function a162_0x51b4(){var _0x11f23f=['2281965EIBiPR','8999955ApuDBn','3GHcWsP','117442aXZDAv','1410270yMyPUK','909648VFmmKe','5MVuDYh','2254080EMROMC','99896mESEDZ'];a162_0x51b4=function(){return _0x11f23f;};return a162_0x51b4();}(function(_0x460436,_0x28b2c8){var _0x2943a=a162_0x2edf,_0x315356=_0x460436();while(!![]){try{var _0x315015=parseInt(_0x2943a(0x95))/0x1*(-parseInt(_0x2943a(0x9b))/0x2)+parseInt(_0x2943a(0x9a))/0x3*(-parseInt(_0x2943a(0x97))/0x4)+parseInt(_0x2943a(0x9c))/0x5+-parseInt(_0x2943a(0x9d))/0x6+-parseInt(_0x2943a(0x98))/0x7+-parseInt(_0x2943a(0x96))/0x8+parseInt(_0x2943a(0x99))/0x9;if(_0x315015===_0x28b2c8)break;else _0x315356['push'](_0x315356['shift']());}catch(_0x58cdd1){_0x315356['push'](_0x315356['shift']());}}}(a162_0x51b4,0x31d4b));function a162_0x2edf(_0x4ad563,_0xa6cba0){_0x4ad563=_0x4ad563-0x95;var _0x51b407=a162_0x51b4();var _0x2edfec=_0x51b407[_0x4ad563];return _0x2edfec;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a163_0x3527(){const _0x145401=['.\x20Run\x20`','name','27917604rveGQi','code','26521IksUBi','No\x20api.ts\x20found\x20in\x20','485yzGFrF','string','19cVVQtx','join','length','6993171aISLwd','validation','alias','17762iECQuG','map','152EVqhcO','Unknown\x20alias\x20\x22','some','type','6126bfoQTn','\x20api\x20pull`\x20first.','21eKbDFJ','8373oovrHT','\x22.\x20','flags','1615056lvjjAj','570OUcaDc'];a163_0x3527=function(){return _0x145401;};return a163_0x3527();}(function(_0xb17a16,_0x55c288){const _0x3dfe46=a163_0x2989,_0x55e235=_0xb17a16();while(!![]){try{const _0xd8e74d=parseInt(_0x3dfe46(0x1e7))/0x1*(-parseInt(_0x3dfe46(0x1ed))/0x2)+-parseInt(_0x3dfe46(0x1f6))/0x3*(-parseInt(_0x3dfe46(0x1ef))/0x4)+-parseInt(_0x3dfe46(0x201))/0x5*(parseInt(_0x3dfe46(0x1f3))/0x6)+-parseInt(_0x3dfe46(0x1f5))/0x7*(parseInt(_0x3dfe46(0x1f9))/0x8)+-parseInt(_0x3dfe46(0x1ea))/0x9+-parseInt(_0x3dfe46(0x1fa))/0xa*(parseInt(_0x3dfe46(0x1ff))/0xb)+parseInt(_0x3dfe46(0x1fd))/0xc;if(_0xd8e74d===_0x55c288)break;else _0x55e235['push'](_0x55e235['shift']());}catch(_0x56f2d8){_0x55e235['push'](_0x55e235['shift']());}}}(a163_0x3527,0x9d631));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x2989(_0x1dcf23,_0x386cfc){_0x1dcf23=_0x1dcf23-0x1e7;const _0x3527d4=a163_0x3527();let _0x2989b2=_0x3527d4[_0x1dcf23];return _0x2989b2;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5a212a,_0x457474,_0x4fb7db,_0x29bdd7){const _0x2f2ded=a163_0x2989,_0x290c5d=_0x5a212a[_0x2f2ded(0x1f8)][_0x2f2ded(0x1f1)](_0x5691af=>_0x5691af[_0x2f2ded(0x1fc)]===_0x2f2ded(0x1fe)&&_0x5691af[_0x2f2ded(0x1f2)]===_0x2f2ded(0x202)),_0x27d635=_0x5a212a[_0x2f2ded(0x1f8)]['some'](_0x19d753=>_0x19d753[_0x2f2ded(0x1fc)]===_0x2f2ded(0x1ec)&&_0x19d753[_0x2f2ded(0x1f2)]===_0x2f2ded(0x202));if(!_0x290c5d||!_0x27d635)return;const _0x502c57=_0x457474[_0x2f2ded(0x1fe)]?String(_0x457474[_0x2f2ded(0x1fe)]):'',_0x3d430a=_0x457474[_0x2f2ded(0x1ec)]?String(_0x457474[_0x2f2ded(0x1ec)]):'';if(!_0x502c57&&!_0x3d430a)throw CliErrors[_0x2f2ded(0x1eb)]('`'+_0x29bdd7+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x3d430a&&!_0x502c57){const _0x4314e4=resolveAlias(_0x4fb7db,_0x3d430a);if(!_0x4314e4){const _0x404045=listAliases(_0x4fb7db)[_0x2f2ded(0x1ee)](_0x8e1203=>_0x8e1203[_0x2f2ded(0x1ec)]),_0x4a7a2b=_0x404045[_0x2f2ded(0x1e9)]?'Available\x20aliases:\x20'+_0x404045[_0x2f2ded(0x1e8)](',\x20'):_0x2f2ded(0x200)+_0x4fb7db+_0x2f2ded(0x1fb)+CLI_BIN_NAME+_0x2f2ded(0x1f4);throw CliErrors[_0x2f2ded(0x1eb)](_0x2f2ded(0x1f0)+_0x3d430a+_0x2f2ded(0x1f7)+_0x4a7a2b);}_0x457474[_0x2f2ded(0x1fe)]=_0x4314e4;}}
1
+ (function(_0x2c3fc4,_0x1c9221){const _0x4b62cf=a163_0x44fb,_0x30f715=_0x2c3fc4();while(!![]){try{const _0x118007=parseInt(_0x4b62cf(0x1e7))/0x1+-parseInt(_0x4b62cf(0x1d3))/0x2+-parseInt(_0x4b62cf(0x1d9))/0x3*(parseInt(_0x4b62cf(0x1de))/0x4)+-parseInt(_0x4b62cf(0x1d4))/0x5+parseInt(_0x4b62cf(0x1df))/0x6+-parseInt(_0x4b62cf(0x1d7))/0x7+parseInt(_0x4b62cf(0x1d6))/0x8;if(_0x118007===_0x1c9221)break;else _0x30f715['push'](_0x30f715['shift']());}catch(_0x52d9bc){_0x30f715['push'](_0x30f715['shift']());}}}(a163_0x424e,0x5f629));import{CliErrors}from'../errors.js';function a163_0x44fb(_0x199fbb,_0x1b11d3){_0x199fbb=_0x199fbb-0x1d3;const _0x424e0b=a163_0x424e();let _0x44fbb5=_0x424e0b[_0x199fbb];return _0x44fbb5;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a163_0x424e(){const _0x1810d4=['flags','Unknown\x20alias\x20\x22','Available\x20aliases:\x20','558800JINuti','validation','333090IvzGSd','2187340fngklW','some','13930864nQQWhB','4931101PTuPvz','`\x20requires\x20either\x20--code\x20or\x20--alias.','1848MJUCzh','alias','code','name','\x22.\x20','4424BYIrnu','481746RnUZjP','join','No\x20api.ts\x20found\x20in\x20','string','length'];a163_0x424e=function(){return _0x1810d4;};return a163_0x424e();}export function resolveAliasToCode(_0x3f0f6f,_0x4b4bb2,_0x5821df,_0xf433d0){const _0x9d6ff1=a163_0x44fb,_0x552d04=_0x3f0f6f[_0x9d6ff1(0x1e4)][_0x9d6ff1(0x1d5)](_0x59497d=>_0x59497d[_0x9d6ff1(0x1dc)]==='code'&&_0x59497d['type']===_0x9d6ff1(0x1e2)),_0x210880=_0x3f0f6f[_0x9d6ff1(0x1e4)][_0x9d6ff1(0x1d5)](_0x4f5778=>_0x4f5778['name']===_0x9d6ff1(0x1da)&&_0x4f5778['type']===_0x9d6ff1(0x1e2));if(!_0x552d04||!_0x210880)return;const _0x1e4797=_0x4b4bb2['code']?String(_0x4b4bb2['code']):'',_0x3a7209=_0x4b4bb2[_0x9d6ff1(0x1da)]?String(_0x4b4bb2['alias']):'';if(!_0x1e4797&&!_0x3a7209)throw CliErrors[_0x9d6ff1(0x1e8)]('`'+_0xf433d0+_0x9d6ff1(0x1d8));if(_0x3a7209&&!_0x1e4797){const _0x89d2a9=resolveAlias(_0x5821df,_0x3a7209);if(!_0x89d2a9){const _0x25aba8=listAliases(_0x5821df)['map'](_0x545243=>_0x545243[_0x9d6ff1(0x1da)]),_0x5cb494=_0x25aba8[_0x9d6ff1(0x1e3)]?_0x9d6ff1(0x1e6)+_0x25aba8[_0x9d6ff1(0x1e0)](',\x20'):_0x9d6ff1(0x1e1)+_0x5821df+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x9d6ff1(0x1e8)](_0x9d6ff1(0x1e5)+_0x3a7209+_0x9d6ff1(0x1dd)+_0x5cb494);}_0x4b4bb2[_0x9d6ff1(0x1db)]=_0x89d2a9;}}
@@ -1 +1 @@
1
- const a164_0x5a7da3=a164_0xcb02;(function(_0x1abb35,_0x1c1b4f){const _0x4e66f2=a164_0xcb02,_0x595200=_0x1abb35();while(!![]){try{const _0x5e62f9=-parseInt(_0x4e66f2(0xe9))/0x1+-parseInt(_0x4e66f2(0xea))/0x2+-parseInt(_0x4e66f2(0xe6))/0x3+-parseInt(_0x4e66f2(0xe5))/0x4*(parseInt(_0x4e66f2(0xe1))/0x5)+parseInt(_0x4e66f2(0xec))/0x6+parseInt(_0x4e66f2(0xf5))/0x7*(-parseInt(_0x4e66f2(0x104))/0x8)+-parseInt(_0x4e66f2(0xf3))/0x9*(-parseInt(_0x4e66f2(0xef))/0xa);if(_0x5e62f9===_0x1c1b4f)break;else _0x595200['push'](_0x595200['shift']());}catch(_0x52b9d2){_0x595200['push'](_0x595200['shift']());}}}(a164_0xd190,0xf175d));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a164_0xd190(){const _0x345d09=['mergedCli','selectedAppName','defaultVerbose','pageSize','isNonInteractive','High-risk\x20operation\x20`','../core/api-client.js','2744REKiHW','appcode','apps','57220SrgDAb','riskLevel','format','has','516hgBUcH','646920IovUdD','authRequired','validation','654301OYuDaB','2043906ZmMpeM','service','4878702rpiuDN','appCode','\x20\x20\x20Continue?\x20[y/N]\x20','110rkzeNV','currentApp','apiDir','map','3179772CmTUhI','requiresAuth','6986cHrdaw','explicitAppName','requiresAppCode','verbose','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveAppCode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultApp'];a164_0xd190=function(){return _0x345d09;};return a164_0xd190();}function a164_0xcb02(_0x394518,_0x1d0e67){_0x394518=_0x394518-0xe1;const _0xd1900=a164_0xd190();let _0xcb0202=_0xd1900[_0x394518];return _0xcb0202;}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a164_0x522aa5}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x229a8a,_0x21e8ed,_0x2814d3=[]){const _0xfe24a1=a164_0xcb02;return{'rawFlags':_0x21e8ed,'args':_0x2814d3,'resolveAppCode':()=>_0x229a8a[_0xfe24a1(0xed)]||_0x21e8ed[_0xfe24a1(0x105)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x229a8a['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x522aa5(_0x21e8ed),'defaultFormat':_0x229a8a[_0xfe24a1(0xe3)],'defaultPageSize':_0x229a8a[_0xfe24a1(0x100)],'defaultVerbose':_0x229a8a[_0xfe24a1(0xf8)],'apiDir':_0x229a8a[_0xfe24a1(0xf1)],'riskLevel':_0x229a8a[_0xfe24a1(0xe2)],'selectedAppName':_0x229a8a[_0xfe24a1(0xf6)],'mergedCli':{'defaultApp':_0x229a8a[_0xfe24a1(0xfc)],'currentApp':_0x229a8a[_0xfe24a1(0xf0)],'appCode':_0x229a8a['appCode'],'apps':_0x229a8a[_0xfe24a1(0x106)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2375bb=>PIPELINE_FLAG_NAMES[a164_0x5a7da3(0xe4)](_0x2375bb['name']))[a164_0x5a7da3(0xf2)](({name:_0x2ead7e,type:_0x668434,description:_0x572055})=>({'name':_0x2ead7e,'type':_0x668434,'description':_0x572055})),'formatOutput':formatOutput,'getCommandLabel'(_0x2e2c17){const _0x1c47fe=a164_0x5a7da3;return CLI_BIN_NAME+'\x20'+_0x2e2c17[_0x1c47fe(0xeb)]+'\x20'+_0x2e2c17['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4e493a){const _0x4ad6aa=a164_0x5a7da3;return CliErrors[_0x4ad6aa(0xe8)](_0x4e493a);}},async 'prepare'(_0x4f4724,_0x39a227,_0x2cb1df,_0x2381ad){const _0x7fa033=a164_0x5a7da3,_0x4f0ea5=_0x39a227[_0x7fa033(0xf1)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4f4724,_0x2cb1df,_0x4f0ea5,_0x2381ad);let _0x6afdb7='';if(_0x4f4724[_0x7fa033(0xf4)]!==![]){_0x6afdb7=_0x39a227['resolveCookie']();if(!_0x6afdb7)throw CliErrors[_0x7fa033(0xe7)]();const {setActiveCookie:_0xaac8}=await import(_0x7fa033(0x103));_0xaac8(_0x6afdb7);}const _0xa2e950=_0x39a227[_0x7fa033(0xfa)]()??'';if(_0x4f4724[_0x7fa033(0xf7)]!==![]){if(!_0xa2e950)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x7fa033(0xf9));}return{'defaults':{'booleans':{'verbose':_0x39a227[_0x7fa033(0xff)]},'numbers':{'pagesize':_0x39a227['defaultPageSize']}},'extras':{'appCode':_0xa2e950,'cookie':_0x6afdb7,'apiDomain':_0x39a227['resolveApiDomain'](),'apiDir':_0x4f0ea5,'selectedAppName':_0x39a227[_0x7fa033(0xfe)],'mergedCli':_0x39a227[_0x7fa033(0xfd)]}};},async 'confirmHighRisk'({env:_0x332126,commandLabel:_0x4397f5}){const _0x47782d=a164_0x5a7da3;if(_0x332126[_0x47782d(0x101)])throw CliErrors[_0x47782d(0xe8)](_0x47782d(0x102)+_0x4397f5+_0x47782d(0xfb));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4397f5,_0x47782d(0xee)],'createCancelledError':_0x56dbbd=>CliErrors['cancelled'](_0x56dbbd)});},async 'finalize'(){const _0x4f0b59=a164_0x5a7da3,{clearActiveCookie:_0x345c67}=await import(_0x4f0b59(0x103));_0x345c67();}};export async function runCommand(_0x992b2b,_0x1ba1b5){await runCommandWithAdapter(_0x992b2b,_0x1ba1b5,runnerAdapter);}
1
+ const a164_0x48a08d=a164_0xae90;(function(_0x11b798,_0x261e33){const _0x2e06f2=a164_0xae90,_0xb6aa4e=_0x11b798();while(!![]){try{const _0x274d34=-parseInt(_0x2e06f2(0x12f))/0x1+parseInt(_0x2e06f2(0x129))/0x2+-parseInt(_0x2e06f2(0x11d))/0x3*(-parseInt(_0x2e06f2(0x120))/0x4)+-parseInt(_0x2e06f2(0x13e))/0x5+-parseInt(_0x2e06f2(0x134))/0x6+-parseInt(_0x2e06f2(0x12c))/0x7*(parseInt(_0x2e06f2(0x140))/0x8)+parseInt(_0x2e06f2(0x13a))/0x9;if(_0x274d34===_0x261e33)break;else _0xb6aa4e['push'](_0xb6aa4e['shift']());}catch(_0x23e2be){_0xb6aa4e['push'](_0xb6aa4e['shift']());}}}(a164_0x4a9c,0xd39ce));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a164_0xae90(_0x16e353,_0x247590){_0x16e353=_0x16e353-0x11d;const _0x4a9cec=a164_0x4a9c();let _0xae909e=_0x4a9cec[_0x16e353];return _0xae909e;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a164_0x4a9c(){const _0x49972a=['1828164JivHZj','riskLevel','appcode','4487588SaEiHE','explicitAppName','defaultVerbose','1065411GFflkx','authRequired','pageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveApiDomain','6313896qqaWny','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20\x20\x20Continue?\x20[y/N]\x20','configMissing','appCode','⚠\x20\x20High-risk\x20operation:\x20','19178118WutCsV','resolveAppCode','cookie','../core/api-client.js','4825780tXfOYv','validation','8vXWooi','map','filter','command','service','125331AWavgC','isNonInteractive','requiresAppCode','148aWnDgI','name','High-risk\x20operation\x20`','mergedCli','selectedAppName','apps','apiDir','Set\x20appcode\x20via\x20`','verbose'];a164_0x4a9c=function(){return _0x49972a;};return a164_0x4a9c();}import{isNonInteractive as a164_0x32a9d6}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x296264,_0x1e2f5d,_0x500f0d=[]){const _0x5352ca=a164_0xae90;return{'rawFlags':_0x1e2f5d,'args':_0x500f0d,'resolveAppCode':()=>_0x296264[_0x5352ca(0x138)]||_0x1e2f5d[_0x5352ca(0x12b)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x296264[_0x5352ca(0x13c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x32a9d6(_0x1e2f5d),'defaultFormat':_0x296264['format'],'defaultPageSize':_0x296264[_0x5352ca(0x131)],'defaultVerbose':_0x296264[_0x5352ca(0x128)],'apiDir':_0x296264[_0x5352ca(0x126)],'riskLevel':_0x296264[_0x5352ca(0x12a)],'selectedAppName':_0x296264[_0x5352ca(0x12d)],'mergedCli':{'defaultApp':_0x296264['defaultApp'],'currentApp':_0x296264['currentApp'],'appCode':_0x296264[_0x5352ca(0x138)],'apps':_0x296264[_0x5352ca(0x125)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x48a08d(0x142)](_0x3e2d2a=>PIPELINE_FLAG_NAMES['has'](_0x3e2d2a[a164_0x48a08d(0x121)]))[a164_0x48a08d(0x141)](({name:_0xd49283,type:_0x17d696,description:_0x85fdb9})=>({'name':_0xd49283,'type':_0x17d696,'description':_0x85fdb9})),'formatOutput':formatOutput,'getCommandLabel'(_0x2c3e16){const _0x280869=a164_0x48a08d;return CLI_BIN_NAME+'\x20'+_0x2c3e16[_0x280869(0x144)]+'\x20'+_0x2c3e16[_0x280869(0x143)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x368a70){return CliErrors['validation'](_0x368a70);}},async 'prepare'(_0x3804a4,_0xbff470,_0x1472c6,_0x281012){const _0x29c327=a164_0x48a08d,_0x558cf4=_0xbff470['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x3804a4,_0x1472c6,_0x558cf4,_0x281012);let _0x83d282='';if(_0x3804a4['requiresAuth']!==![]){_0x83d282=_0xbff470['resolveCookie']();if(!_0x83d282)throw CliErrors[_0x29c327(0x130)]();const {setActiveCookie:_0x5e0312}=await import(_0x29c327(0x13d));_0x5e0312(_0x83d282);}const _0x4e727c=_0xbff470[_0x29c327(0x13b)]()??'';if(_0x3804a4[_0x29c327(0x11f)]!==![]){if(!_0x4e727c)throw CliErrors[_0x29c327(0x137)](_0x29c327(0x127)+CLI_BIN_NAME+_0x29c327(0x132));}return{'defaults':{'booleans':{'verbose':_0xbff470[_0x29c327(0x12e)]},'numbers':{'pagesize':_0xbff470['defaultPageSize']}},'extras':{'appCode':_0x4e727c,'cookie':_0x83d282,'apiDomain':_0xbff470[_0x29c327(0x133)](),'apiDir':_0x558cf4,'selectedAppName':_0xbff470[_0x29c327(0x124)],'mergedCli':_0xbff470[_0x29c327(0x123)]}};},async 'confirmHighRisk'({env:_0x4d577e,commandLabel:_0x20764c}){const _0xaed054=a164_0x48a08d;if(_0x4d577e[_0xaed054(0x11e)])throw CliErrors[_0xaed054(0x13f)](_0xaed054(0x122)+_0x20764c+_0xaed054(0x135));await requireConfirmationPrompt({'lines':[_0xaed054(0x139)+_0x20764c,_0xaed054(0x136)],'createCancelledError':_0x43fb88=>CliErrors['cancelled'](_0x43fb88)});},async 'finalize'(){const {clearActiveCookie:_0x53d337}=await import('../core/api-client.js');_0x53d337();}};export async function runCommand(_0x3efde2,_0x27a071){await runCommandWithAdapter(_0x3efde2,_0x27a071,runnerAdapter);}
@@ -1 +1 @@
1
- function a165_0x4349(_0x53cef8,_0x1e0123){_0x53cef8=_0x53cef8-0x118;const _0x1afaca=a165_0x1afa();let _0x43499e=_0x1afaca[_0x53cef8];return _0x43499e;}(function(_0x2bec7f,_0x4418c4){const _0x4100db=a165_0x4349,_0x2b334d=_0x2bec7f();while(!![]){try{const _0x4d97e4=parseInt(_0x4100db(0x118))/0x1*(parseInt(_0x4100db(0x11f))/0x2)+-parseInt(_0x4100db(0x124))/0x3*(parseInt(_0x4100db(0x11c))/0x4)+-parseInt(_0x4100db(0x11e))/0x5*(parseInt(_0x4100db(0x11d))/0x6)+-parseInt(_0x4100db(0x120))/0x7*(parseInt(_0x4100db(0x121))/0x8)+-parseInt(_0x4100db(0x122))/0x9+parseInt(_0x4100db(0x119))/0xa+parseInt(_0x4100db(0x11a))/0xb*(parseInt(_0x4100db(0x11b))/0xc);if(_0x4d97e4===_0x4418c4)break;else _0x2b334d['push'](_0x2b334d['shift']());}catch(_0x717b39){_0x2b334d['push'](_0x2b334d['shift']());}}}(a165_0x1afa,0x71838));import{buildSchemaPayload as a165_0x19af7c}from'@lovrabet/cli-framework';function a165_0x1afa(){const _0x377619=['4072090hTboQm','51843UZhiUX','3156sNVAVo','268WQXivV','146532rIDbQn','55AzkhIB','114FhQBmb','7esRmGb','4842848qjJFzj','1221048YdEdes','../commands/registry.js','33198naECel','9988HZBYCu'];a165_0x1afa=function(){return _0x377619;};return a165_0x1afa();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x647d86=a165_0x4349,{serviceRegistry:_0x380863,findDefinition:_0x34b9c5}=await import(_0x647d86(0x123));return a165_0x19af7c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x380863,'buildAllFlags':buildAllFlags,'findDefinition':_0x34b9c5});}
1
+ (function(_0x139f5c,_0x55ae4e){const _0x54b75b=a165_0x146a,_0xc55c75=_0x139f5c();while(!![]){try{const _0x148c84=-parseInt(_0x54b75b(0xd4))/0x1+-parseInt(_0x54b75b(0xd5))/0x2+parseInt(_0x54b75b(0xda))/0x3+-parseInt(_0x54b75b(0xd8))/0x4*(parseInt(_0x54b75b(0xd6))/0x5)+-parseInt(_0x54b75b(0xd3))/0x6*(-parseInt(_0x54b75b(0xd2))/0x7)+-parseInt(_0x54b75b(0xd7))/0x8+-parseInt(_0x54b75b(0xd9))/0x9*(-parseInt(_0x54b75b(0xdb))/0xa);if(_0x148c84===_0x55ae4e)break;else _0xc55c75['push'](_0xc55c75['shift']());}catch(_0x57216c){_0xc55c75['push'](_0xc55c75['shift']());}}}(a165_0x19d9,0x484b5));import{buildSchemaPayload as a165_0x1bf759}from'@lovrabet/cli-framework';function a165_0x146a(_0x232532,_0x5a585a){_0x232532=_0x232532-0xd2;const _0x19d93c=a165_0x19d9();let _0x146a51=_0x19d93c[_0x232532];return _0x146a51;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x1ddbe6,findDefinition:_0x166f2f}=await import('../commands/registry.js');return a165_0x1bf759({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1ddbe6,'buildAllFlags':buildAllFlags,'findDefinition':_0x166f2f});}function a165_0x19d9(){const _0x2e0429=['1049056rzitxt','185dTnrDp','1784464cZHNOM','59468GHZNVI','13788RPhxgk','94404hGPNJc','8270iEyBKT','3249736uyzIBk','6boQrYF','168898OVRevr'];a165_0x19d9=function(){return _0x2e0429;};return a165_0x19d9();}
@@ -1 +1 @@
1
- (function(_0x3ac8a6,_0x445d45){var _0x238fc4=a166_0x48c4,_0xf91524=_0x3ac8a6();while(!![]){try{var _0x34639a=parseInt(_0x238fc4(0x185))/0x1*(-parseInt(_0x238fc4(0x183))/0x2)+parseInt(_0x238fc4(0x186))/0x3+-parseInt(_0x238fc4(0x187))/0x4*(-parseInt(_0x238fc4(0x182))/0x5)+parseInt(_0x238fc4(0x189))/0x6+parseInt(_0x238fc4(0x188))/0x7*(-parseInt(_0x238fc4(0x184))/0x8)+-parseInt(_0x238fc4(0x18b))/0x9+-parseInt(_0x238fc4(0x18a))/0xa*(-parseInt(_0x238fc4(0x18c))/0xb);if(_0x34639a===_0x445d45)break;else _0xf91524['push'](_0xf91524['shift']());}catch(_0x27513c){_0xf91524['push'](_0xf91524['shift']());}}}(a166_0x30ca,0x44ecc));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x48c4(_0x4fb682,_0x5a6048){_0x4fb682=_0x4fb682-0x182;var _0x30ca71=a166_0x30ca();var _0x48c472=_0x30ca71[_0x4fb682];return _0x48c472;}function a166_0x30ca(){var _0xdaac3c=['1742629EAVQBA','1468482azsKCw','1920kHymME','2687247NyBRMC','59224mNToxI','10EzTzbn','2YUHSaV','16ckFYRp','344676rQijuZ','232164hNBdqb','135212TMbZec'];a166_0x30ca=function(){return _0xdaac3c;};return a166_0x30ca();}
1
+ function a166_0x8e00(_0x455e23,_0x4e8580){_0x455e23=_0x455e23-0x7a;var _0x337333=a166_0x3373();var _0x8e0038=_0x337333[_0x455e23];return _0x8e0038;}function a166_0x3373(){var _0x4cf301=['3479637NtqYjJ','2315QrFIAi','36SbZjdV','20QeSCcp','1068gKdogs','72PdoJsl','145915uGFNms','920jtVQrC','1396wyDMOz','137353wjXLAz','5535RFYwZf','8935927lEzxJw','1290537iyDwfn'];a166_0x3373=function(){return _0x4cf301;};return a166_0x3373();}(function(_0x1d5796,_0x502950){var _0x383901=a166_0x8e00,_0x2a6c49=_0x1d5796();while(!![]){try{var _0x5a41f5=-parseInt(_0x383901(0x7f))/0x1*(-parseInt(_0x383901(0x86))/0x2)+-parseInt(_0x383901(0x80))/0x3*(parseInt(_0x383901(0x7e))/0x4)+-parseInt(_0x383901(0x84))/0x5*(-parseInt(_0x383901(0x7a))/0x6)+parseInt(_0x383901(0x83))/0x7+parseInt(_0x383901(0x7b))/0x8*(-parseInt(_0x383901(0x82))/0x9)+parseInt(_0x383901(0x7d))/0xa*(-parseInt(_0x383901(0x7c))/0xb)+-parseInt(_0x383901(0x85))/0xc*(-parseInt(_0x383901(0x81))/0xd);if(_0x5a41f5===_0x502950)break;else _0x2a6c49['push'](_0x2a6c49['shift']());}catch(_0x3d5210){_0x2a6c49['push'](_0x2a6c49['shift']());}}}(a166_0x3373,0xd20be));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a167_0x22d9(){const _0x59f871=['5lewaac','1929024hbIztY','4079448FEIBZY','2FLhcLk','1304bRjYoj','2.1.7-beta.9','3350736WZljih','44632jNCeqB','13058610VCLIiW','578188LvJcTE','764232aSxftX'];a167_0x22d9=function(){return _0x59f871;};return a167_0x22d9();}const a167_0x719deb=a167_0x44ff;(function(_0x485d8d,_0x1d785a){const _0x4435dc=a167_0x44ff,_0x25ced8=_0x485d8d();while(!![]){try{const _0x3feb2d=-parseInt(_0x4435dc(0x1d5))/0x1*(-parseInt(_0x4435dc(0x1d0))/0x2)+-parseInt(_0x4435dc(0x1d3))/0x3+parseInt(_0x4435dc(0x1d1))/0x4+parseInt(_0x4435dc(0x1d2))/0x5*(parseInt(_0x4435dc(0x1d4))/0x6)+-parseInt(_0x4435dc(0x1d9))/0x7*(parseInt(_0x4435dc(0x1d6))/0x8)+-parseInt(_0x4435dc(0x1d8))/0x9+parseInt(_0x4435dc(0x1cf))/0xa;if(_0x3feb2d===_0x1d785a)break;else _0x25ced8['push'](_0x25ced8['shift']());}catch(_0x4870e4){_0x25ced8['push'](_0x25ced8['shift']());}}}(a167_0x22d9,0xaafff));export const VERSION=a167_0x719deb(0x1d7);function a167_0x44ff(_0x1563e8,_0xc3275){_0x1563e8=_0x1563e8-0x1cf;const _0x22d9fa=a167_0x22d9();let _0x44ffba=_0x22d9fa[_0x1563e8];return _0x44ffba;}export const GIT_TAG='v2.1.7-beta.9';export const GIT_COMMIT='8ab0b5f';export const BUILD_TIME='2026-04-27T07:52:19.343Z';
1
+ const a167_0x5b05af=a167_0x2fb1;function a167_0x2fb1(_0x1f33a7,_0x180674){_0x1f33a7=_0x1f33a7-0x1f3;const _0x41bf91=a167_0x41bf();let _0x2fb1e6=_0x41bf91[_0x1f33a7];return _0x2fb1e6;}(function(_0x383244,_0x8317f7){const _0x18195d=a167_0x2fb1,_0x508b7a=_0x383244();while(!![]){try{const _0x3d6483=parseInt(_0x18195d(0x1f7))/0x1*(parseInt(_0x18195d(0x1f8))/0x2)+parseInt(_0x18195d(0x1fa))/0x3+-parseInt(_0x18195d(0x1fd))/0x4+parseInt(_0x18195d(0x1f4))/0x5*(-parseInt(_0x18195d(0x1fc))/0x6)+parseInt(_0x18195d(0x1f6))/0x7+parseInt(_0x18195d(0x1ff))/0x8*(parseInt(_0x18195d(0x1f9))/0x9)+-parseInt(_0x18195d(0x1fb))/0xa;if(_0x3d6483===_0x8317f7)break;else _0x508b7a['push'](_0x508b7a['shift']());}catch(_0x207c4e){_0x508b7a['push'](_0x508b7a['shift']());}}}(a167_0x41bf,0x6ee99));function a167_0x41bf(){const _0x5724af=['59EqVFSn','10722eWQWid','558clZdln','2006016CGSwpI','7004840QQRgUy','288QsdAia','3013160fUsaoi','e44fe4a','79096fNJLSN','2.1.9','v2.1.9','58340viRuEE','2026-04-28T15:17:32.578Z','6091190qNdzEx'];a167_0x41bf=function(){return _0x5724af;};return a167_0x41bf();}export const VERSION=a167_0x5b05af(0x200);export const GIT_TAG=a167_0x5b05af(0x1f3);export const GIT_COMMIT=a167_0x5b05af(0x1fe);export const BUILD_TIME=a167_0x5b05af(0x1f5);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a168_0x1e03(){var _0x4932c9=['log','12355uyUpNH','3161760zsXjDr','3MdMBWJ','green','50nxJbda','783910jaTZZo','95025jYfMix','2100AbYSHH','12irqnuM','bold','16265892lZlnxr','\x20to\x20view\x20available\x20commands.','970470GqUiCn','171852eFeGNl','11YUehjZ','\x20--help'];a168_0x1e03=function(){return _0x4932c9;};return a168_0x1e03();}(function(_0x44d0d6,_0x66f765){var _0x3d757b=a168_0x31fa,_0x36a394=_0x44d0d6();while(!![]){try{var _0x258a8c=-parseInt(_0x3d757b(0x1ae))/0x1+-parseInt(_0x3d757b(0x1b6))/0x2*(-parseInt(_0x3d757b(0x1ab))/0x3)+-parseInt(_0x3d757b(0x1b1))/0x4*(-parseInt(_0x3d757b(0x1af))/0x5)+-parseInt(_0x3d757b(0x1b0))/0x6*(-parseInt(_0x3d757b(0x1a9))/0x7)+-parseInt(_0x3d757b(0x1aa))/0x8+-parseInt(_0x3d757b(0x1b5))/0x9*(parseInt(_0x3d757b(0x1ad))/0xa)+parseInt(_0x3d757b(0x1b7))/0xb*(parseInt(_0x3d757b(0x1b3))/0xc);if(_0x258a8c===_0x66f765)break;else _0x36a394['push'](_0x36a394['shift']());}catch(_0x2a376f){_0x36a394['push'](_0x36a394['shift']());}}}(a168_0x1e03,0x6124e));import a168_0x1b968b from'chalk';function a168_0x31fa(_0x521c9a,_0x1cd0fc){_0x521c9a=_0x521c9a-0x1a8;var _0x1e03d7=a168_0x1e03();var _0x31fad7=_0x1e03d7[_0x521c9a];return _0x31fad7;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2991bb=a168_0x31fa;console['log'](),console['log'](a168_0x1b968b[_0x2991bb(0x1ac)][_0x2991bb(0x1b2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2991bb(0x1a8)](),console[_0x2991bb(0x1a8)]('\x20\x20Use\x20'+a168_0x1b968b[_0x2991bb(0x1ac)][_0x2991bb(0x1b2)](CLI_BIN_NAME+_0x2991bb(0x1b8))+_0x2991bb(0x1b4)),console[_0x2991bb(0x1a8)]();}
1
+ (function(_0x2eb24b,_0x2cac17){var _0x20e3a5=a168_0x548b,_0xd72120=_0x2eb24b();while(!![]){try{var _0x473afb=-parseInt(_0x20e3a5(0x87))/0x1*(-parseInt(_0x20e3a5(0x97))/0x2)+-parseInt(_0x20e3a5(0x90))/0x3*(-parseInt(_0x20e3a5(0x8d))/0x4)+-parseInt(_0x20e3a5(0x94))/0x5+parseInt(_0x20e3a5(0x93))/0x6*(-parseInt(_0x20e3a5(0x86))/0x7)+-parseInt(_0x20e3a5(0x95))/0x8*(-parseInt(_0x20e3a5(0x8e))/0x9)+-parseInt(_0x20e3a5(0x88))/0xa+parseInt(_0x20e3a5(0x92))/0xb*(parseInt(_0x20e3a5(0x8f))/0xc);if(_0x473afb===_0x2cac17)break;else _0xd72120['push'](_0xd72120['shift']());}catch(_0x107090){_0xd72120['push'](_0xd72120['shift']());}}}(a168_0xf18d,0x68818));function a168_0x548b(_0x1d709c,_0xa9d225){_0x1d709c=_0x1d709c-0x86;var _0xf18d36=a168_0xf18d();var _0x548bd6=_0xf18d36[_0x1d709c];return _0x548bd6;}import a168_0x59caa3 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0xf18d(){var _0x3b6498=['bold','\x20to\x20view\x20available\x20commands.','68ePKhGK','18zEqjrS','12AKfWWB','1203wkvmlr','\x20--help','13328997OVhvFV','1662YTsOGo','1708810DixStj','1090984dixKLH','green','4IKEyqu','12341DKFUmj','302212kklPAL','8375450WQqpqt','log','\x20\x20Use\x20'];a168_0xf18d=function(){return _0x3b6498;};return a168_0xf18d();}export function showHelp(){var _0x3d9bd7=a168_0x548b;console['log'](),console[_0x3d9bd7(0x89)](a168_0x59caa3[_0x3d9bd7(0x96)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3d9bd7(0x89)](),console[_0x3d9bd7(0x89)](_0x3d9bd7(0x8a)+a168_0x59caa3[_0x3d9bd7(0x96)][_0x3d9bd7(0x8b)](CLI_BIN_NAME+_0x3d9bd7(0x91))+_0x3d9bd7(0x8c)),console[_0x3d9bd7(0x89)]();}
@@ -1 +1 @@
1
- (function(_0x42bee0,_0x5f1cd3){const _0x7ede03=a169_0x61ba,_0x3e509=_0x42bee0();while(!![]){try{const _0x55a794=parseInt(_0x7ede03(0x1b3))/0x1*(-parseInt(_0x7ede03(0x1c3))/0x2)+parseInt(_0x7ede03(0x1bd))/0x3+-parseInt(_0x7ede03(0x1d3))/0x4+-parseInt(_0x7ede03(0x1c7))/0x5*(parseInt(_0x7ede03(0x1ca))/0x6)+-parseInt(_0x7ede03(0x1d2))/0x7*(-parseInt(_0x7ede03(0x1c6))/0x8)+parseInt(_0x7ede03(0x1b7))/0x9*(parseInt(_0x7ede03(0x1b5))/0xa)+parseInt(_0x7ede03(0x1d0))/0xb;if(_0x55a794===_0x5f1cd3)break;else _0x3e509['push'](_0x3e509['shift']());}catch(_0x4c3499){_0x3e509['push'](_0x3e509['shift']());}}}(a169_0x510a,0x5d19e));function a169_0x510a(){const _0x5e3889=['push','3207174SUdkyP','error','-$1','Error:\x20Unsupported\x20command:\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','3553132IcSbrJ','cwd','2520091gDlCmX','2190020YJftct','entries','\x0aAvailable\x20commands:','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','25137kKsXHE','skill','1370rmWNXo','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','23751BFjZFi','dangerously-bff-save','length','startsWith','includes','argv','2010534btngtj','exit','help','\x20skill\x20--help\x0a\x20\x20','from','log','20JSNjkA','replace','slice','8KlyIxL','5gcEIoC','不支持的命令:\x20'];a169_0x510a=function(){return _0x5e3889;};return a169_0x510a();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x44a1ac){const _0x7cacb9=a169_0x61ba,_0x5719c5=[];for(const [_0x4b6cda,_0x16e983]of Object[_0x7cacb9(0x1ae)](_0x44a1ac)){if(_0x16e983===!![]){const _0x3b0e18=_0x4b6cda[_0x7cacb9(0x1c4)](/([A-Z])/g,_0x7cacb9(0x1cc))['toLowerCase']();_0x5719c5['push'](_0x3b0e18);}}return _0x5719c5;}export function parseDynamicFlags(){const _0x51e60b=a169_0x61ba,_0x3159df=[];for(let _0x52dc3f=0x3;_0x52dc3f<process[_0x51e60b(0x1bc)][_0x51e60b(0x1b9)];_0x52dc3f++){const _0x5686c5=process[_0x51e60b(0x1bc)][_0x52dc3f];if(_0x5686c5&&_0x5686c5[_0x51e60b(0x1ba)]('--')){const _0x9ad52a=_0x5686c5[_0x51e60b(0x1c5)](0x2);_0x9ad52a&&!_0x9ad52a[_0x51e60b(0x1bb)]('=')&&_0x3159df[_0x51e60b(0x1c9)](_0x9ad52a);}}return _0x3159df;}export function getAllProvidedFlags(_0x5da035){const _0x47aa5a=a169_0x61ba,_0x556cfe=camelCaseFlagsToKebab(_0x5da035),_0x26275a=parseDynamicFlags(),_0xd97f85=new Set([..._0x556cfe,..._0x26275a]);return Array[_0x47aa5a(0x1c1)](_0xd97f85);}export function normalizeLegacyBffSaveFlags(_0xadc52c){const _0x291ffb=a169_0x61ba,_0x375e19=new Set(_0xadc52c);return _0x375e19['has'](_0x291ffb(0x1b8))&&_0x375e19['add']('enable-bff-save'),Array[_0x291ffb(0x1c1)](_0x375e19);}function a169_0x61ba(_0x59cc59,_0x2e7f50){_0x59cc59=_0x59cc59-0x1ae;const _0x510a43=a169_0x510a();let _0x61ba40=_0x510a43[_0x59cc59];return _0x61ba40;}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5f245c,_0x56325a,_0x11355a){const _0x3af9d3=a169_0x61ba;logger['setLogPath'](process[_0x3af9d3(0x1d1)]());if(_0x11355a?.[_0x3af9d3(0x1bf)]||_0x5f245c==='--help'){showHelp();return;}console['error'](_0x3af9d3(0x1cd)+(_0x5f245c||_0x3af9d3(0x1cf))),console['log'](_0x3af9d3(0x1af)),console[_0x3af9d3(0x1c2)]('\x20\x20'+CLI_BIN_NAME+_0x3af9d3(0x1b6)),console[_0x3af9d3(0x1c2)]('\x20\x20'+CLI_BIN_NAME+_0x3af9d3(0x1b2)),console[_0x3af9d3(0x1c2)](''),console[_0x3af9d3(0x1c2)](_0x3af9d3(0x1b1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3af9d3(0x1cb)](_0x3af9d3(0x1b4),_0x3af9d3(0x1c8)+_0x5f245c),process[_0x3af9d3(0x1be)](0x1);}function showHelp(){const _0xf5e98f=a169_0x61ba;console['log'](_0xf5e98f(0x1b0)+CLI_BIN_NAME+_0xf5e98f(0x1c0)+CLI_BIN_NAME+_0xf5e98f(0x1ce)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x414f80,_0x483613){const _0xf84cdd=a169_0x260d,_0x67af=_0x414f80();while(!![]){try{const _0x4165cd=-parseInt(_0xf84cdd(0x1c8))/0x1+-parseInt(_0xf84cdd(0x1ab))/0x2*(-parseInt(_0xf84cdd(0x1b4))/0x3)+parseInt(_0xf84cdd(0x1b2))/0x4+-parseInt(_0xf84cdd(0x1b3))/0x5*(parseInt(_0xf84cdd(0x1d2))/0x6)+-parseInt(_0xf84cdd(0x1af))/0x7+-parseInt(_0xf84cdd(0x1cc))/0x8*(-parseInt(_0xf84cdd(0x1be))/0x9)+-parseInt(_0xf84cdd(0x1c2))/0xa*(-parseInt(_0xf84cdd(0x1aa))/0xb);if(_0x4165cd===_0x483613)break;else _0x67af['push'](_0x67af['shift']());}catch(_0x555383){_0x67af['push'](_0x67af['shift']());}}}(a169_0x4bb9,0x2c7fa));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x52d4c0){const _0x5ae421=a169_0x260d,_0x8a7653=[];for(const [_0x41ecdd,_0x50ac49]of Object[_0x5ae421(0x1ba)](_0x52d4c0)){if(_0x50ac49===!![]){const _0x5953b6=_0x41ecdd[_0x5ae421(0x1ae)](/([A-Z])/g,_0x5ae421(0x1ad))[_0x5ae421(0x1b1)]();_0x8a7653['push'](_0x5953b6);}}return _0x8a7653;}export function parseDynamicFlags(){const _0x503d70=a169_0x260d,_0x4602b9=[];for(let _0x43dd6b=0x3;_0x43dd6b<process[_0x503d70(0x1b7)][_0x503d70(0x1cd)];_0x43dd6b++){const _0x16b3a9=process[_0x503d70(0x1b7)][_0x43dd6b];if(_0x16b3a9&&_0x16b3a9[_0x503d70(0x1d0)]('--')){const _0x240923=_0x16b3a9[_0x503d70(0x1c0)](0x2);_0x240923&&!_0x240923['includes']('=')&&_0x4602b9[_0x503d70(0x1bf)](_0x240923);}}return _0x4602b9;}export function getAllProvidedFlags(_0x2dd45f){const _0x32ea0d=a169_0x260d,_0x2ba5ec=camelCaseFlagsToKebab(_0x2dd45f),_0x38eeba=parseDynamicFlags(),_0xc4123b=new Set([..._0x2ba5ec,..._0x38eeba]);return Array[_0x32ea0d(0x1b5)](_0xc4123b);}export function normalizeLegacyBffSaveFlags(_0x454768){const _0x4202b0=a169_0x260d,_0x1b5143=new Set(_0x454768);return _0x1b5143[_0x4202b0(0x1c5)](_0x4202b0(0x1d1))&&_0x1b5143[_0x4202b0(0x1b8)](_0x4202b0(0x1b6)),Array[_0x4202b0(0x1b5)](_0x1b5143);}function a169_0x4bb9(){const _0x31efcc=['skill','281012KitOkb','exit','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','不支持的命令:\x20','8gYcLdu','length','error','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','startsWith','dangerously-bff-save','1047426rCVXzS','log','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','33YiWtzi','10278ZRSpoN','Error:\x20Unsupported\x20command:\x20','-$1','replace','1822933yPNXdO','--help','toLowerCase','663336PPpwYu','5yNvMLM','33wiMKxN','from','enable-bff-save','argv','add','cwd','entries','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','Equivalent\x20command:\x20','help','756396WJuuEp','push','slice','\x20skill\x20--help\x0a\x20\x20','1972870ShFZWI','setLogPath','\x0aAvailable\x20commands:','has','(empty)'];a169_0x4bb9=function(){return _0x31efcc;};return a169_0x4bb9();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a169_0x260d(_0x36f2ff,_0x29bde6){_0x36f2ff=_0x36f2ff-0x1a8;const _0x4bb91b=a169_0x4bb9();let _0x260da1=_0x4bb91b[_0x36f2ff];return _0x260da1;}export async function skillsCommand(_0x24331e,_0x2a4807,_0x4663c1){const _0xa065ad=a169_0x260d;logger[_0xa065ad(0x1c3)](process[_0xa065ad(0x1b9)]());if(_0x4663c1?.[_0xa065ad(0x1bd)]||_0x24331e===_0xa065ad(0x1b0)){showHelp();return;}console[_0xa065ad(0x1ce)](_0xa065ad(0x1ac)+(_0x24331e||_0xa065ad(0x1c6))),console[_0xa065ad(0x1d3)](_0xa065ad(0x1c4)),console[_0xa065ad(0x1d3)]('\x20\x20'+CLI_BIN_NAME+_0xa065ad(0x1a9)),console[_0xa065ad(0x1d3)]('\x20\x20'+CLI_BIN_NAME+_0xa065ad(0x1a8)),console[_0xa065ad(0x1d3)](''),console['log'](_0xa065ad(0x1bc)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xa065ad(0x1ce)](_0xa065ad(0x1c7),_0xa065ad(0x1cb)+_0x24331e),process[_0xa065ad(0x1c9)](0x1);}function showHelp(){const _0x5138e1=a169_0x260d;console[_0x5138e1(0x1d3)](_0x5138e1(0x1cf)+CLI_BIN_NAME+_0x5138e1(0x1c1)+CLI_BIN_NAME+_0x5138e1(0x1ca)+SKILLS_INSTALL_COMMAND_LINE+_0x5138e1(0x1bb));}
@@ -1 +1 @@
1
- const a170_0x4ff58c=a170_0x233e;(function(_0x1d441c,_0x15fc3d){const _0x437ff8=a170_0x233e,_0x592793=_0x1d441c();while(!![]){try{const _0x1d2ec6=-parseInt(_0x437ff8(0x161))/0x1*(-parseInt(_0x437ff8(0x157))/0x2)+parseInt(_0x437ff8(0x14f))/0x3*(-parseInt(_0x437ff8(0x14e))/0x4)+-parseInt(_0x437ff8(0x15c))/0x5+parseInt(_0x437ff8(0x163))/0x6+parseInt(_0x437ff8(0x154))/0x7+parseInt(_0x437ff8(0x166))/0x8+parseInt(_0x437ff8(0x15a))/0x9;if(_0x1d2ec6===_0x15fc3d)break;else _0x592793['push'](_0x592793['shift']());}catch(_0x110471){_0x592793['push'](_0x592793['shift']());}}}(a170_0x3421,0x19305));import{spawnSync}from'node:child_process';function a170_0x3421(){const _0x362c23=['log','158276zXkwQd','15WXWRCu','lovrabet/rabetbase','stderr','skill','inherit','23863WTghLG','npx','remove','2998LuKCdh','yes','Lovrabet','1507923NTvNej','join','336630KtAVkC','trim','exit\x20','--skill','add','78jYnjKw','unknown','161886RCCyyf','skills','pipe','427880IqHvLN','toString','stdio','stdout','status'];a170_0x3421=function(){return _0x362c23;};return a170_0x3421();}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a170_0x4ff58c(0x164);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x4ff58c(0x160);export const NPX_SKILLS_FLAG_SKILL=a170_0x4ff58c(0x15f);export const RABETBASE_SKILL_SOURCE=a170_0x4ff58c(0x150);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x4ff58c(0x159);export function buildNpxSkillsAddArgv(_0x342f54=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x342f54];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x4ff58c(0x155),...buildNpxSkillsAddArgv()]['join']('\x20');function a170_0x233e(_0x5d7796,_0x5a6b6e){_0x5d7796=_0x5d7796-0x14c;const _0x34216a=a170_0x3421();let _0x233e06=_0x34216a[_0x5d7796];return _0x233e06;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x4ff58c(0x155),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a170_0x4ff58c(0x15b)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x298fce,_0x26f28b){const _0x2dad13=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x420684=_0x26f28b?.['stdio']??_0x2dad13(0x153),_0x2d0836=resolveNpmBin(_0x2dad13(0x155)),_0x4ca104=buildNpxSkillsAddArgv(_0x26f28b?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x41448f=[_0x2dad13(0x155),..._0x4ca104][_0x2dad13(0x15b)]('\x20');console[_0x2dad13(0x14d)]('*\x20'+_0x41448f);const _0x4331f3=spawnSync(_0x2d0836,_0x4ca104,{'cwd':_0x298fce,'stdio':_0x420684,'env':process.env,'shell':![]}),_0x3e9014=_0x4331f3[_0x2dad13(0x14c)];if(_0x3e9014===0x0)return{'ok':!![],'status':0x0};let _0x394ec3=_0x2dad13(0x15e)+(_0x3e9014??_0x2dad13(0x162));if(_0x420684===_0x2dad13(0x165)){const _0x3a550d=_0x4331f3[_0x2dad13(0x151)]?_0x4331f3[_0x2dad13(0x151)][_0x2dad13(0x167)]()['trim']():'',_0x56eb23=_0x4331f3[_0x2dad13(0x169)]?_0x4331f3[_0x2dad13(0x169)][_0x2dad13(0x167)]()[_0x2dad13(0x15d)]():'';if(_0x3a550d)_0x394ec3=_0x3a550d;else{if(_0x56eb23)_0x394ec3=_0x56eb23;}}return{'ok':![],'status':_0x3e9014??null,'error':_0x394ec3};}export function runNpxSkillsRemove(_0x11c373,_0x3a6b6e,_0xbacfc1=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3613db=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x360e42=_0x3a6b6e?.[_0x3613db(0x168)]??_0x3613db(0x153),_0x777e30=resolveNpmBin(_0x3613db(0x155)),_0x137a11=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3613db(0x156),_0xbacfc1,NPX_SKILLS_FLAG_SKILL,_0x3a6b6e?.[_0x3613db(0x152)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3a6b6e?.[_0x3613db(0x158)]?['-y']:[]],_0x17d89e=[_0x777e30,..._0x137a11]['join']('\x20');console['log']('*\x20'+_0x17d89e);const _0x2aba81=spawnSync(_0x777e30,_0x137a11,{'cwd':_0x11c373,'stdio':_0x360e42,'env':process.env,'shell':![]}),_0x5d3578=_0x2aba81[_0x3613db(0x14c)];if(_0x5d3578===0x0)return{'ok':!![],'status':0x0};let _0x4fd547=_0x3613db(0x15e)+(_0x5d3578??'unknown');if(_0x360e42===_0x3613db(0x165)){const _0x496ba4=_0x2aba81[_0x3613db(0x151)]?_0x2aba81[_0x3613db(0x151)][_0x3613db(0x167)]()[_0x3613db(0x15d)]():'',_0x3fd44b=_0x2aba81['stdout']?_0x2aba81['stdout'][_0x3613db(0x167)]()[_0x3613db(0x15d)]():'';if(_0x496ba4)_0x4fd547=_0x496ba4;else{if(_0x3fd44b)_0x4fd547=_0x3fd44b;}}return{'ok':![],'status':_0x5d3578??null,'error':_0x4fd547};}export function runNpxSkillsAddGlobal(_0x30a69d,_0x53212e,_0x3dab12){const _0x2bea7c=a170_0x4ff58c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xd9f868=_0x3dab12?.['stdio']??'inherit',_0x553fee=resolveNpmBin(_0x2bea7c(0x155)),_0x57e67a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53212e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x26a694=[_0x2bea7c(0x155),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53212e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2bea7c(0x15b)]('\x20');console['log']('*\x20'+_0x26a694);const _0x495e6=spawnSync(_0x553fee,_0x57e67a,{'cwd':_0x30a69d,'stdio':_0xd9f868,'env':process.env,'shell':![]}),_0x5dfa41=_0x495e6['status'];if(_0x5dfa41===0x0)return{'ok':!![],'status':0x0};let _0x3c2252=_0x2bea7c(0x15e)+(_0x5dfa41??_0x2bea7c(0x162));if(_0xd9f868===_0x2bea7c(0x165)){const _0x32b4c3=_0x495e6[_0x2bea7c(0x151)]?_0x495e6[_0x2bea7c(0x151)][_0x2bea7c(0x167)]()[_0x2bea7c(0x15d)]():'',_0x3988ea=_0x495e6[_0x2bea7c(0x169)]?_0x495e6['stdout'][_0x2bea7c(0x167)]()['trim']():'';if(_0x32b4c3)_0x3c2252=_0x32b4c3;else{if(_0x3988ea)_0x3c2252=_0x3988ea;}}return{'ok':![],'status':_0x5dfa41??null,'error':_0x3c2252};}
1
+ const a170_0x2dd973=a170_0x4506;(function(_0x5b7d4f,_0x5b5922){const _0x4629d4=a170_0x4506,_0x5d9aad=_0x5b7d4f();while(!![]){try{const _0x29b1b4=-parseInt(_0x4629d4(0x7e))/0x1*(parseInt(_0x4629d4(0x7d))/0x2)+parseInt(_0x4629d4(0x78))/0x3+parseInt(_0x4629d4(0x7f))/0x4*(parseInt(_0x4629d4(0x84))/0x5)+-parseInt(_0x4629d4(0x80))/0x6+-parseInt(_0x4629d4(0x7c))/0x7+-parseInt(_0x4629d4(0x88))/0x8+parseInt(_0x4629d4(0x92))/0x9;if(_0x29b1b4===_0x5b5922)break;else _0x5d9aad['push'](_0x5d9aad['shift']());}catch(_0x4a921b){_0x5d9aad['push'](_0x5d9aad['shift']());}}}(a170_0x5e51,0x8f852));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a170_0x2dd973(0x7a);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x2dd973(0x82);export const NPX_SKILLS_FLAG_SKILL=a170_0x2dd973(0x7b);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';function a170_0x5e51(){const _0x7abb2d=['stdout','join','lovrabet/lovrabet-skill','inherit','status','stderr','remove','trim','16185330iMZZHo','unknown','toString','Lovrabet','1982736MSNvWB','exit\x20','skills','--skill','7536312SSUjST','78aexvNd','19559DfEaAI','1346788yXrlZE','1639032oUWAoF','yes','add','log','5ZjPtZG','npx','pipe','skill','764256lPRPeU','stdio'];a170_0x5e51=function(){return _0x7abb2d;};return a170_0x5e51();}export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0x2dd973(0x8c);export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x2dd973(0x77);export function buildNpxSkillsAddArgv(_0x39d1af=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x39d1af];}function a170_0x4506(_0x2d6b47,_0x44f391){_0x2d6b47=_0x2d6b47-0x77;const _0x5e5161=a170_0x5e51();let _0x450685=_0x5e5161[_0x2d6b47];return _0x450685;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x2dd973(0x85),...buildNpxSkillsAddArgv()][a170_0x2dd973(0x8b)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x558cb7,_0x21ae7e){const _0x59568c=a170_0x2dd973;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x295acd=_0x21ae7e?.[_0x59568c(0x89)]??_0x59568c(0x8d),_0x58e6cf=resolveNpmBin('npx'),_0x39bec4=buildNpxSkillsAddArgv(_0x21ae7e?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x3b3ad8=[_0x59568c(0x85),..._0x39bec4][_0x59568c(0x8b)]('\x20');console[_0x59568c(0x83)]('*\x20'+_0x3b3ad8);const _0x19d216=spawnSync(_0x58e6cf,_0x39bec4,{'cwd':_0x558cb7,'stdio':_0x295acd,'env':process.env,'shell':![]}),_0x5d5168=_0x19d216['status'];if(_0x5d5168===0x0)return{'ok':!![],'status':0x0};let _0x305ef2='exit\x20'+(_0x5d5168??_0x59568c(0x93));if(_0x295acd==='pipe'){const _0x21a1f9=_0x19d216['stderr']?_0x19d216['stderr'][_0x59568c(0x94)]()[_0x59568c(0x91)]():'',_0x58cddc=_0x19d216['stdout']?_0x19d216[_0x59568c(0x8a)][_0x59568c(0x94)]()[_0x59568c(0x91)]():'';if(_0x21a1f9)_0x305ef2=_0x21a1f9;else{if(_0x58cddc)_0x305ef2=_0x58cddc;}}return{'ok':![],'status':_0x5d5168??null,'error':_0x305ef2};}export function runNpxSkillsRemove(_0x4119ef,_0x2abd3c,_0x43c76a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4e0bd5=a170_0x2dd973;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x271add=_0x2abd3c?.[_0x4e0bd5(0x89)]??_0x4e0bd5(0x8d),_0x1b6271=resolveNpmBin(_0x4e0bd5(0x85)),_0x5176b8=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4e0bd5(0x90),_0x43c76a,NPX_SKILLS_FLAG_SKILL,_0x2abd3c?.[_0x4e0bd5(0x87)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2abd3c?.[_0x4e0bd5(0x81)]?['-y']:[]],_0x53ca60=[_0x1b6271,..._0x5176b8][_0x4e0bd5(0x8b)]('\x20');console[_0x4e0bd5(0x83)]('*\x20'+_0x53ca60);const _0x2863be=spawnSync(_0x1b6271,_0x5176b8,{'cwd':_0x4119ef,'stdio':_0x271add,'env':process.env,'shell':![]}),_0x444a50=_0x2863be[_0x4e0bd5(0x8e)];if(_0x444a50===0x0)return{'ok':!![],'status':0x0};let _0x252926=_0x4e0bd5(0x79)+(_0x444a50??_0x4e0bd5(0x93));if(_0x271add===_0x4e0bd5(0x86)){const _0x1302d0=_0x2863be['stderr']?_0x2863be['stderr'][_0x4e0bd5(0x94)]()[_0x4e0bd5(0x91)]():'',_0x2ff714=_0x2863be['stdout']?_0x2863be['stdout'][_0x4e0bd5(0x94)]()['trim']():'';if(_0x1302d0)_0x252926=_0x1302d0;else{if(_0x2ff714)_0x252926=_0x2ff714;}}return{'ok':![],'status':_0x444a50??null,'error':_0x252926};}export function runNpxSkillsAddGlobal(_0x3e8041,_0xaa6a15,_0x53fa04){const _0x5635e4=a170_0x2dd973;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x32db2f=_0x53fa04?.[_0x5635e4(0x89)]??_0x5635e4(0x8d),_0x1d639c=resolveNpmBin(_0x5635e4(0x85)),_0x2d66b5=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xaa6a15,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1b01e1=[_0x5635e4(0x85),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xaa6a15,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x5635e4(0x83)]('*\x20'+_0x1b01e1);const _0x38f1d8=spawnSync(_0x1d639c,_0x2d66b5,{'cwd':_0x3e8041,'stdio':_0x32db2f,'env':process.env,'shell':![]}),_0x204db5=_0x38f1d8[_0x5635e4(0x8e)];if(_0x204db5===0x0)return{'ok':!![],'status':0x0};let _0x4dc8be=_0x5635e4(0x79)+(_0x204db5??_0x5635e4(0x93));if(_0x32db2f==='pipe'){const _0x523dc2=_0x38f1d8[_0x5635e4(0x8f)]?_0x38f1d8[_0x5635e4(0x8f)][_0x5635e4(0x94)]()[_0x5635e4(0x91)]():'',_0x35c361=_0x38f1d8[_0x5635e4(0x8a)]?_0x38f1d8[_0x5635e4(0x8a)][_0x5635e4(0x94)]()[_0x5635e4(0x91)]():'';if(_0x523dc2)_0x4dc8be=_0x523dc2;else{if(_0x35c361)_0x4dc8be=_0x35c361;}}return{'ok':![],'status':_0x204db5??null,'error':_0x4dc8be};}
@@ -1 +1 @@
1
- (function(_0x36cd0d,_0x4d5d08){const _0x534b0d=a171_0x31c4,_0x34df12=_0x36cd0d();while(!![]){try{const _0x518bdc=-parseInt(_0x534b0d(0x1d5))/0x1+parseInt(_0x534b0d(0x1d7))/0x2*(parseInt(_0x534b0d(0x1cc))/0x3)+parseInt(_0x534b0d(0x1d2))/0x4*(-parseInt(_0x534b0d(0x1d1))/0x5)+parseInt(_0x534b0d(0x1ce))/0x6+-parseInt(_0x534b0d(0x1c8))/0x7+parseInt(_0x534b0d(0x1d9))/0x8+parseInt(_0x534b0d(0x1cd))/0x9;if(_0x518bdc===_0x4d5d08)break;else _0x34df12['push'](_0x34df12['shift']());}catch(_0x1ed6a6){_0x34df12['push'](_0x34df12['shift']());}}}(a171_0x3b21,0x98fdd));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x2c6365){const _0xbc37f0=a171_0x31c4;return SENSITIVE_PATTERNS[_0xbc37f0(0x1cf)](_0x4d9da4=>_0x4d9da4[_0xbc37f0(0x1ca)](_0x2c6365));}function a171_0x3b21(){const _0x2e6734=['3266215xsnXdw','4wxeTfY','durationMs','error','309397YvPhDw','rabetbase.command','673108dmlxRc','stringify','2328272YWFmUo','8741705hwQAPc','service','test','flags','3jFZTSh','14926356kyAtKk','3312216vbxyis','some','message'];a171_0x3b21=function(){return _0x2e6734;};return a171_0x3b21();}function sanitizeFlags(_0x2c38e0){const _0x5c2c29={};for(const [_0x7e6793,_0x19a27b]of Object['entries'](_0x2c38e0)){isSensitiveKey(_0x7e6793)?_0x5c2c29[_0x7e6793]=_0x19a27b!=null&&_0x19a27b!==''?'[REDACTED]':_0x19a27b:_0x5c2c29[_0x7e6793]=_0x19a27b;}return _0x5c2c29;}function a171_0x31c4(_0x15a46d,_0x233e04){_0x15a46d=_0x15a46d-0x1c8;const _0x3b215f=a171_0x3b21();let _0x31c4b6=_0x3b215f[_0x15a46d];return _0x31c4b6;}export async function reportCommandTrace(_0x4dc4e5){const _0x574b33=a171_0x31c4;try{const _0x4b5a86=sanitizeFlags(_0x4dc4e5[_0x574b33(0x1cb)]);await sendCliTraceLog({'spanName':_0x574b33(0x1d6),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4dc4e5[_0x574b33(0x1c9)],'command.name':_0x4dc4e5['command'],'command.flags':JSON[_0x574b33(0x1d8)](_0x4b5a86),..._0x4dc4e5[_0x574b33(0x1d3)]!=null?{'command.duration_ms':_0x4dc4e5['durationMs']}:{},..._0x4dc4e5[_0x574b33(0x1d4)]?{'command.error':_0x4dc4e5[_0x574b33(0x1d4)]instanceof Error?_0x4dc4e5[_0x574b33(0x1d4)][_0x574b33(0x1d0)]:String(_0x4dc4e5[_0x574b33(0x1d4)])}:{}}});}catch{}}
1
+ (function(_0x4633ee,_0x1a2ccb){const _0x403e4c=a171_0x2f46,_0x35a0ae=_0x4633ee();while(!![]){try{const _0x4aa407=-parseInt(_0x403e4c(0xed))/0x1*(parseInt(_0x403e4c(0xdf))/0x2)+-parseInt(_0x403e4c(0xe8))/0x3+-parseInt(_0x403e4c(0xde))/0x4+parseInt(_0x403e4c(0xe1))/0x5*(parseInt(_0x403e4c(0xe9))/0x6)+parseInt(_0x403e4c(0xe4))/0x7+-parseInt(_0x403e4c(0xe2))/0x8+-parseInt(_0x403e4c(0xf1))/0x9*(-parseInt(_0x403e4c(0xe6))/0xa);if(_0x4aa407===_0x1a2ccb)break;else _0x35a0ae['push'](_0x35a0ae['shift']());}catch(_0x4c0e0c){_0x35a0ae['push'](_0x35a0ae['shift']());}}}(a171_0x4bd3,0x845ca));function a171_0x4bd3(){const _0x58f2ff=['140454HdrUAQ','349458dxQATX','error','durationMs','some','9WYvylH','flags','command','rabetbase.command','477JKYssi','service','330908XsECGe','70386wWxvBG','entries','20RcxwEc','3152904npjexU','message','5469702VvOTxA','stringify','69470mNzcMl','[REDACTED]'];a171_0x4bd3=function(){return _0x58f2ff;};return a171_0x4bd3();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x3e81cf){const _0x42abce=a171_0x2f46;return SENSITIVE_PATTERNS[_0x42abce(0xec)](_0x171bb7=>_0x171bb7['test'](_0x3e81cf));}function a171_0x2f46(_0x50e218,_0x52238e){_0x50e218=_0x50e218-0xde;const _0x4bd316=a171_0x4bd3();let _0x2f4604=_0x4bd316[_0x50e218];return _0x2f4604;}function sanitizeFlags(_0x444960){const _0x53ef1a=a171_0x2f46,_0x2fad9b={};for(const [_0x12ab6d,_0x1044d1]of Object[_0x53ef1a(0xe0)](_0x444960)){isSensitiveKey(_0x12ab6d)?_0x2fad9b[_0x12ab6d]=_0x1044d1!=null&&_0x1044d1!==''?_0x53ef1a(0xe7):_0x1044d1:_0x2fad9b[_0x12ab6d]=_0x1044d1;}return _0x2fad9b;}export async function reportCommandTrace(_0x4e1a7d){const _0x4ea82b=a171_0x2f46;try{const _0x569e94=sanitizeFlags(_0x4e1a7d[_0x4ea82b(0xee)]);await sendCliTraceLog({'spanName':_0x4ea82b(0xf0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e1a7d[_0x4ea82b(0xf2)],'command.name':_0x4e1a7d[_0x4ea82b(0xef)],'command.flags':JSON[_0x4ea82b(0xe5)](_0x569e94),..._0x4e1a7d[_0x4ea82b(0xeb)]!=null?{'command.duration_ms':_0x4e1a7d[_0x4ea82b(0xeb)]}:{},..._0x4e1a7d['error']?{'command.error':_0x4e1a7d[_0x4ea82b(0xea)]instanceof Error?_0x4e1a7d[_0x4ea82b(0xea)][_0x4ea82b(0xe3)]:String(_0x4e1a7d[_0x4ea82b(0xea)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a172_0xab1a(){var _0x4b2b6b=['5tXbxYZ','93646gBBYYC','503042yAJBLe','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','1012101mmBZwS','90kBYxjp','1345912LXJwuN','96QpPLCQ','66941039KtfYcf','20iKGqOC','9713335DoIKEJ','cli.help','16753540KVJgpX'];a172_0xab1a=function(){return _0x4b2b6b;};return a172_0xab1a();}(function(_0x317044,_0x197d9c){var _0x21b340=a172_0x4338,_0x4576bc=_0x317044();while(!![]){try{var _0x3db1c6=-parseInt(_0x21b340(0x14d))/0x1*(parseInt(_0x21b340(0x14f))/0x2)+-parseInt(_0x21b340(0x153))/0x3*(parseInt(_0x21b340(0x158))/0x4)+-parseInt(_0x21b340(0x14a))/0x5+-parseInt(_0x21b340(0x156))/0x6*(parseInt(_0x21b340(0x14e))/0x7)+parseInt(_0x21b340(0x155))/0x8*(-parseInt(_0x21b340(0x154))/0x9)+parseInt(_0x21b340(0x14c))/0xa+parseInt(_0x21b340(0x157))/0xb;if(_0x3db1c6===_0x197d9c)break;else _0x4576bc['push'](_0x4576bc['shift']());}catch(_0x408930){_0x4576bc['push'](_0x4576bc['shift']());}}}(a172_0xab1a,0xee9ce));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a172_0x4338(_0x3ad054,_0x5d5d49){_0x3ad054=_0x3ad054-0x14a;var _0xab1a5f=a172_0xab1a();var _0x4338d0=_0xab1a5f[_0x3ad054];return _0x4338d0;}export async function reportCliHelpTrace(_0x5beb02,_0x35d2a4){var _0x341858=a172_0x4338;try{await sendCliTraceLog({'spanName':_0x341858(0x14b),'logData':{'rabetbase.help.kind':_0x5beb02,..._0x35d2a4?.[_0x341858(0x152)]&&{'rabetbase.help.service':_0x35d2a4[_0x341858(0x152)]}}});}catch(_0x2af054){console[_0x341858(0x150)](_0x341858(0x151),_0x2af054);}}
1
+ function a172_0x23a5(_0x587abf,_0x537c1a){_0x587abf=_0x587abf-0x151;var _0x56b0f0=a172_0x56b0();var _0x23a527=_0x56b0f0[_0x587abf];return _0x23a527;}(function(_0x1d31d5,_0x3c20e9){var _0x493b34=a172_0x23a5,_0x2ac176=_0x1d31d5();while(!![]){try{var _0x2c6e1f=parseInt(_0x493b34(0x155))/0x1+-parseInt(_0x493b34(0x15d))/0x2+-parseInt(_0x493b34(0x15a))/0x3*(parseInt(_0x493b34(0x15e))/0x4)+-parseInt(_0x493b34(0x152))/0x5*(-parseInt(_0x493b34(0x151))/0x6)+parseInt(_0x493b34(0x156))/0x7+parseInt(_0x493b34(0x159))/0x8*(parseInt(_0x493b34(0x158))/0x9)+parseInt(_0x493b34(0x154))/0xa*(parseInt(_0x493b34(0x153))/0xb);if(_0x2c6e1f===_0x3c20e9)break;else _0x2ac176['push'](_0x2ac176['shift']());}catch(_0x45df7d){_0x2ac176['push'](_0x2ac176['shift']());}}}(a172_0x56b0,0x866f8));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x495d20,_0x3e79b8){var _0x178807=a172_0x23a5;try{await sendCliTraceLog({'spanName':_0x178807(0x15c),'logData':{'rabetbase.help.kind':_0x495d20,..._0x3e79b8?.['service']&&{'rabetbase.help.service':_0x3e79b8['service']}}});}catch(_0x3e1aae){console[_0x178807(0x15b)](_0x178807(0x157),_0x3e1aae);}}function a172_0x56b0(){var _0x4454ca=['81JeSUcp','572240xCxcoP','7365HDRDpy','error','cli.help','1969938OcUszG','1700GhBdVB','240IKRevL','10785LoPcJN','24365tOdkJM','5260lQLHpw','373389gCkKhG','2173241CWdfkX','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a172_0x56b0=function(){return _0x4454ca;};return a172_0x56b0();}
@@ -1 +1 @@
1
- (function(_0x1257e0,_0x2cf51e){const _0x4954fd=a173_0xb427,_0x598345=_0x1257e0();while(!![]){try{const _0x1e48af=parseInt(_0x4954fd(0xb7))/0x1+-parseInt(_0x4954fd(0xb2))/0x2+parseInt(_0x4954fd(0xbc))/0x3*(-parseInt(_0x4954fd(0xaf))/0x4)+-parseInt(_0x4954fd(0xb4))/0x5*(-parseInt(_0x4954fd(0xb6))/0x6)+-parseInt(_0x4954fd(0xb3))/0x7+-parseInt(_0x4954fd(0xb8))/0x8+parseInt(_0x4954fd(0xb9))/0x9;if(_0x1e48af===_0x2cf51e)break;else _0x598345['push'](_0x598345['shift']());}catch(_0x4d0a7e){_0x598345['push'](_0x598345['shift']());}}}(a173_0x8bd9,0x7c4de));import a173_0x5e339c from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a173_0x8bd9(){const _0x210cce=['128286ecmLGM','350873wBUlDD','7070048OqPeKN','21928500vICKZi','rabetbase-cli','nickname','56460dZnWxP','92cOzgDr','username','daily','1535742WxlFQx','6145496vrftAw','160hoKLNA','production'];a173_0x8bd9=function(){return _0x210cce;};return a173_0x8bd9();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a173_0xb427(_0x20acde,_0x18be3c){_0x20acde=_0x20acde-0xaf;const _0x8bd93c=a173_0x8bd9();let _0xb427e1=_0x8bd93c[_0x20acde];return _0xb427e1;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x50d1f0=a173_0xb427,_0x1b8c01=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xfe7288=_0x1b8c01?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x50d1f0(0xb1):_0x50d1f0(0xb5)),'username':_0xfe7288?.[_0x50d1f0(0xb0)]??a173_0x5e339c['userInfo']()['username']??_0x50d1f0(0xba),..._0xfe7288&&{'nickname':_0xfe7288[_0x50d1f0(0xbb)]}}),cliOtelTraceInitialized=!![];}return _0x1b8c01;}
1
+ function a173_0x39f7(){const _0x4e313c=['5021175XQvTBk','unknown','userInfo','4630950lPMuJR','nickname','32322120ypfKjW','username','user','production','12368426zGPzaq','5694tXqcEz','1365qJtERy','3478060TsiuVJ','1174718RgapKf','rabetbase-cli'];a173_0x39f7=function(){return _0x4e313c;};return a173_0x39f7();}function a173_0x3847(_0x339f2a,_0x57d900){_0x339f2a=_0x339f2a-0x187;const _0x39f766=a173_0x39f7();let _0x3847e9=_0x39f766[_0x339f2a];return _0x3847e9;}(function(_0x5c8bed,_0x5a7cbb){const _0x47a364=a173_0x3847,_0x4cbe77=_0x5c8bed();while(!![]){try{const _0x4d0c7a=-parseInt(_0x47a364(0x190))/0x1+-parseInt(_0x47a364(0x18d))/0x2*(parseInt(_0x47a364(0x18e))/0x3)+parseInt(_0x47a364(0x18f))/0x4+parseInt(_0x47a364(0x192))/0x5+-parseInt(_0x47a364(0x195))/0x6+-parseInt(_0x47a364(0x18c))/0x7+parseInt(_0x47a364(0x188))/0x8;if(_0x4d0c7a===_0x5a7cbb)break;else _0x4cbe77['push'](_0x4cbe77['shift']());}catch(_0x3d6db8){_0x4cbe77['push'](_0x4cbe77['shift']());}}}(a173_0x39f7,0xdcfd1));import a173_0x1eaaf6 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x99b84c=a173_0x3847,_0x2eae0e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ac845=_0x2eae0e?.[_0x99b84c(0x18a)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x99b84c(0x193)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x99b84c(0x18b)),'username':_0x5ac845?.[_0x99b84c(0x189)]??a173_0x1eaaf6[_0x99b84c(0x194)]()[_0x99b84c(0x189)]??_0x99b84c(0x191),..._0x5ac845&&{'nickname':_0x5ac845[_0x99b84c(0x187)]}}),cliOtelTraceInitialized=!![];}return _0x2eae0e;}
@@ -1 +1 @@
1
- (function(_0xf9ca4d,_0x56a80b){const _0x19e00d=a174_0x1723,_0x1e88c2=_0xf9ca4d();while(!![]){try{const _0x4c0b11=parseInt(_0x19e00d(0x12b))/0x1+-parseInt(_0x19e00d(0x128))/0x2*(parseInt(_0x19e00d(0x125))/0x3)+-parseInt(_0x19e00d(0x122))/0x4+-parseInt(_0x19e00d(0x11e))/0x5*(parseInt(_0x19e00d(0x121))/0x6)+parseInt(_0x19e00d(0x12c))/0x7*(parseInt(_0x19e00d(0x11f))/0x8)+parseInt(_0x19e00d(0x12d))/0x9+-parseInt(_0x19e00d(0x127))/0xa*(-parseInt(_0x19e00d(0x126))/0xb);if(_0x4c0b11===_0x56a80b)break;else _0x1e88c2['push'](_0x1e88c2['shift']());}catch(_0x471426){_0x1e88c2['push'](_0x1e88c2['shift']());}}}(a174_0x53e2,0x6fa6e));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a174_0x1723(_0x41b12b,_0x5177e0){_0x41b12b=_0x41b12b-0x11e;const _0x53e21d=a174_0x53e2();let _0x172387=_0x53e21d[_0x41b12b];return _0x172387;}export function registerOtelShutdownOnExit(){const _0x23f1c6=a174_0x1723;process[_0x23f1c6(0x12a)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x356caa=()=>{const _0x476986=_0x23f1c6;void flushOtelNodeIfUsed()[_0x476986(0x129)](()=>process[_0x476986(0x120)](0x0));};process[_0x23f1c6(0x12a)](_0x23f1c6(0x124),_0x356caa),process[_0x23f1c6(0x12a)](_0x23f1c6(0x123),_0x356caa);}function a174_0x53e2(){const _0x79a010=['once','171862CDLpSM','42yHQKZF','7442640oRKUJa','190CbWanz','12944pciHid','exit','104784UnrMFd','932036YppaGm','SIGTERM','SIGINT','61776yjquNz','1125289oNTkCc','70KnlmYZ','36XaCBQO','then'];a174_0x53e2=function(){return _0x79a010;};return a174_0x53e2();}export async function exitWithOtelShutdown(_0x2f6016){await flushOtelNodeIfUsed(),process['exit'](_0x2f6016);}
1
+ (function(_0x2eb0b1,_0x14b2bb){const _0x440dc9=a174_0x43cb,_0x4b5405=_0x2eb0b1();while(!![]){try{const _0x39ae15=-parseInt(_0x440dc9(0xbe))/0x1+parseInt(_0x440dc9(0xb9))/0x2+-parseInt(_0x440dc9(0xc6))/0x3*(-parseInt(_0x440dc9(0xbf))/0x4)+parseInt(_0x440dc9(0xc7))/0x5*(parseInt(_0x440dc9(0xc5))/0x6)+-parseInt(_0x440dc9(0xbd))/0x7+parseInt(_0x440dc9(0xc3))/0x8*(parseInt(_0x440dc9(0xba))/0x9)+-parseInt(_0x440dc9(0xbb))/0xa*(parseInt(_0x440dc9(0xc4))/0xb);if(_0x39ae15===_0x14b2bb)break;else _0x4b5405['push'](_0x4b5405['shift']());}catch(_0x483389){_0x4b5405['push'](_0x4b5405['shift']());}}}(a174_0x33ab,0x1a939));function a174_0x33ab(){const _0x39e104=['then','784819VDyvNW','147903DZCfYc','28JBKUsp','exit','beforeExit','SIGTERM','24424MqeDBB','7887YuvhOs','6rElwCA','14346BagiWE','927165XKOVSG','once','SIGINT','174724YDFGoY','639HEVqam','2150HkWVVi'];a174_0x33ab=function(){return _0x39e104;};return a174_0x33ab();}function a174_0x43cb(_0x5d9732,_0x2a3b0c){_0x5d9732=_0x5d9732-0xb9;const _0x33abdc=a174_0x33ab();let _0x43cb6d=_0x33abdc[_0x5d9732];return _0x43cb6d;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x390c75=a174_0x43cb;process[_0x390c75(0xc8)](_0x390c75(0xc1),()=>{void flushOtelNodeIfUsed();});const _0xa5b512=()=>{const _0x4dffd3=_0x390c75;void flushOtelNodeIfUsed()[_0x4dffd3(0xbc)](()=>process[_0x4dffd3(0xc0)](0x0));};process[_0x390c75(0xc8)](_0x390c75(0xc9),_0xa5b512),process['once'](_0x390c75(0xc2),_0xa5b512);}export async function exitWithOtelShutdown(_0x365b4e){const _0x192a08=a174_0x43cb;await flushOtelNodeIfUsed(),process[_0x192a08(0xc0)](_0x365b4e);}
@@ -1 +1 @@
1
- const a175_0x56638=a175_0xda65;(function(_0x46222d,_0x1b7ebb){const _0x25fd0b=a175_0xda65,_0x21ca22=_0x46222d();while(!![]){try{const _0x475f99=parseInt(_0x25fd0b(0x16f))/0x1*(parseInt(_0x25fd0b(0x172))/0x2)+-parseInt(_0x25fd0b(0x175))/0x3+parseInt(_0x25fd0b(0x174))/0x4+parseInt(_0x25fd0b(0x178))/0x5+-parseInt(_0x25fd0b(0x171))/0x6+-parseInt(_0x25fd0b(0x17a))/0x7*(parseInt(_0x25fd0b(0x17b))/0x8)+parseInt(_0x25fd0b(0x170))/0x9;if(_0x475f99===_0x1b7ebb)break;else _0x21ca22['push'](_0x21ca22['shift']());}catch(_0x3f1a05){_0x21ca22['push'](_0x21ca22['shift']());}}}(a175_0x4c74,0x8bf94));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a175_0xda65(_0x38f4a0,_0x3c4097){_0x38f4a0=_0x38f4a0-0x16d;const _0x4c74df=a175_0x4c74();let _0xda65e2=_0x4c74df[_0x38f4a0];return _0xda65e2;}function a175_0x4c74(){const _0x4ac36a=['version','2800940eRcQew','1677165fYRQmz','rabetbase-cli','traceparent','4368145GqJrob','traceName','14QWpStV','2918896zYDZVa','logData','manual','412263VZMAek','7184817bYLwJm','5533974EzbmRW','2IbebxK'];a175_0x4c74=function(){return _0x4ac36a;};return a175_0x4c74();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x56638(0x176);export async function sendCliTraceLog(_0x46ab23){const _0x8019e8=a175_0x56638;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x46ab23[_0x8019e8(0x179)]??DEFAULT_TRACE_NAME,'version':_0x46ab23[_0x8019e8(0x173)]??getCliVersion(),'spanName':_0x46ab23['spanName'],'eventType':_0x8019e8(0x16e),'logData':_0x46ab23[_0x8019e8(0x16d)],..._0x46ab23[_0x8019e8(0x177)]&&{'traceparent':_0x46ab23['traceparent']}});}
1
+ const a175_0x2c33c2=a175_0x72e9;(function(_0x5a18b0,_0x26cc0d){const _0x5c98ce=a175_0x72e9,_0x2d9326=_0x5a18b0();while(!![]){try{const _0x5b4145=-parseInt(_0x5c98ce(0xc0))/0x1+parseInt(_0x5c98ce(0xc5))/0x2*(parseInt(_0x5c98ce(0xbd))/0x3)+-parseInt(_0x5c98ce(0xc2))/0x4*(parseInt(_0x5c98ce(0xbb))/0x5)+parseInt(_0x5c98ce(0xc9))/0x6+-parseInt(_0x5c98ce(0xc4))/0x7+parseInt(_0x5c98ce(0xc3))/0x8+-parseInt(_0x5c98ce(0xc1))/0x9;if(_0x5b4145===_0x26cc0d)break;else _0x2d9326['push'](_0x2d9326['shift']());}catch(_0x329a04){_0x2d9326['push'](_0x2d9326['shift']());}}}(a175_0x4eef,0x52f20));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x2c33c2(0xbc);export async function sendCliTraceLog(_0x266ec7){const _0x27768d=a175_0x2c33c2;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x266ec7[_0x27768d(0xc6)]??DEFAULT_TRACE_NAME,'version':_0x266ec7[_0x27768d(0xbf)]??getCliVersion(),'spanName':_0x266ec7[_0x27768d(0xc7)],'eventType':'manual','logData':_0x266ec7[_0x27768d(0xc8)],..._0x266ec7[_0x27768d(0xbe)]&&{'traceparent':_0x266ec7[_0x27768d(0xbe)]}});}function a175_0x72e9(_0x3e9e35,_0x31339b){_0x3e9e35=_0x3e9e35-0xbb;const _0x4eef2d=a175_0x4eef();let _0x72e9b9=_0x4eef2d[_0x3e9e35];return _0x72e9b9;}function a175_0x4eef(){const _0x4b64aa=['traceparent','version','170858EsQBaa','1104777TCrUbQ','4jcEMtz','4497304TlAlXw','4519802uDPmlz','166254xHYHfn','traceName','spanName','logData','2970876jraYoz','2216420LTHVVa','rabetbase-cli','24ZlpstC'];a175_0x4eef=function(){return _0x4b64aa;};return a175_0x4eef();}
@@ -1 +1 @@
1
- const a176_0x471fe2=a176_0x5b92;(function(_0x1c2eff,_0x784e77){const _0x1ae147=a176_0x5b92,_0x29f3ab=_0x1c2eff();while(!![]){try{const _0x5a8b3b=-parseInt(_0x1ae147(0x176))/0x1+-parseInt(_0x1ae147(0x177))/0x2+parseInt(_0x1ae147(0x175))/0x3*(-parseInt(_0x1ae147(0x16d))/0x4)+-parseInt(_0x1ae147(0x171))/0x5+-parseInt(_0x1ae147(0x16f))/0x6+parseInt(_0x1ae147(0x170))/0x7*(-parseInt(_0x1ae147(0x16c))/0x8)+-parseInt(_0x1ae147(0x16e))/0x9*(-parseInt(_0x1ae147(0x174))/0xa);if(_0x5a8b3b===_0x784e77)break;else _0x29f3ab['push'](_0x29f3ab['shift']());}catch(_0x4415a9){_0x29f3ab['push'](_0x29f3ab['shift']());}}}(a176_0xd568,0x693ac));function a176_0x5b92(_0x14d883,_0x4a6ac2){_0x14d883=_0x14d883-0x16c;const _0xd5685=a176_0xd568();let _0x5b925b=_0xd5685[_0x14d883];return _0x5b925b;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a176_0xd568(){const _0x69d729=['670AGAdAS','2096826eyRTpq','732427WptOba','830924LDYqwx','24VHhLam','4BJIeqA','538047lfGLHS','4627488ASuvvY','1724625dMvWal','1086185coHqHA','platform-issue-log-collect','description'];a176_0xd568=function(){return _0x69d729;};return a176_0xd568();}export const PLATFORM_ISSUE_TRACE_NAME=a176_0x471fe2(0x172);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x1c1cb1){const _0x384fbf=a176_0x471fe2;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1c1cb1['title'],'issue.description':_0x1c1cb1[_0x384fbf(0x173)]}});}
1
+ const a176_0x2342e6=a176_0x184c;(function(_0x207b9e,_0x515b65){const _0x4b9440=a176_0x184c,_0x169b65=_0x207b9e();while(!![]){try{const _0x25da95=-parseInt(_0x4b9440(0x180))/0x1*(parseInt(_0x4b9440(0x188))/0x2)+-parseInt(_0x4b9440(0x182))/0x3+parseInt(_0x4b9440(0x17e))/0x4+-parseInt(_0x4b9440(0x183))/0x5+parseInt(_0x4b9440(0x189))/0x6+parseInt(_0x4b9440(0x187))/0x7*(parseInt(_0x4b9440(0x185))/0x8)+parseInt(_0x4b9440(0x17f))/0x9;if(_0x25da95===_0x515b65)break;else _0x169b65['push'](_0x169b65['shift']());}catch(_0xed2d89){_0x169b65['push'](_0x169b65['shift']());}}}(a176_0x4712,0x7b103));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a176_0x2342e6(0x186);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a176_0x184c(_0x5bfbc5,_0x54856f){_0x5bfbc5=_0x5bfbc5-0x17e;const _0x471297=a176_0x4712();let _0x184c70=_0x471297[_0x5bfbc5];return _0x184c70;}export async function sendPlatformIssueCollectLog(_0x2afb1f){const _0x39de62=a176_0x2342e6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2afb1f[_0x39de62(0x181)],'issue.description':_0x2afb1f[_0x39de62(0x184)]}});}function a176_0x4712(){const _0x523797=['607404ExCWsK','2191878bTgAEm','176092SQTVxf','13631508rUKBIa','1XABRmu','title','2893416acFnXF','3541220Gjswfu','description','8QnuRpL','platform-issue-log-collect','3895759AodslW'];a176_0x4712=function(){return _0x523797;};return a176_0x4712();}
@@ -1 +1 @@
1
- const a178_0x3804cf=a178_0xa77e;(function(_0x155101,_0x13e959){const _0x349454=a178_0xa77e,_0x1bdbfa=_0x155101();while(!![]){try{const _0x3003ea=-parseInt(_0x349454(0x100))/0x1*(parseInt(_0x349454(0xf5))/0x2)+parseInt(_0x349454(0x10b))/0x3+parseInt(_0x349454(0xfc))/0x4+-parseInt(_0x349454(0xf1))/0x5+parseInt(_0x349454(0xea))/0x6+-parseInt(_0x349454(0xe9))/0x7+-parseInt(_0x349454(0xfb))/0x8*(-parseInt(_0x349454(0xeb))/0x9);if(_0x3003ea===_0x13e959)break;else _0x1bdbfa['push'](_0x1bdbfa['shift']());}catch(_0x2783b2){_0x1bdbfa['push'](_0x1bdbfa['shift']());}}}(a178_0x4a60,0xabbe7));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x3804cf(0x114),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a178_0x3804cf(0x113)}]},'windsurf':{'name':a178_0x3804cf(0x106),'description':a178_0x3804cf(0x103),'folders':[a178_0x3804cf(0x117)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10a),'template':a178_0x3804cf(0x113)}]},'claude':{'name':a178_0x3804cf(0xe4),'description':'Claude\x20Code','folders':[a178_0x3804cf(0xe8)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10c),'template':a178_0x3804cf(0x113)}]},'cline':{'name':a178_0x3804cf(0x108),'description':'Cline\x20IDE','folders':[a178_0x3804cf(0xf8)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x10e),'template':a178_0x3804cf(0x113)}]},'codex':{'name':'Codex','description':a178_0x3804cf(0xf4),'folders':[a178_0x3804cf(0xef)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xe7),'template':a178_0x3804cf(0x113)}]},'opencode':{'name':a178_0x3804cf(0x110),'description':'OpenCode\x20IDE','folders':[a178_0x3804cf(0xf3)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xed),'template':a178_0x3804cf(0x113)}]},'qoder':{'name':'Qoder','description':a178_0x3804cf(0x10d),'folders':[a178_0x3804cf(0x10f)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x112),'template':a178_0x3804cf(0x113)},{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0xf7),'template':a178_0x3804cf(0x113)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x3804cf(0xf9),'folders':[a178_0x3804cf(0x111)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x118),'template':'SKILL.md.tpl'}]},'trae':{'name':a178_0x3804cf(0x109),'description':a178_0x3804cf(0x102),'folders':[a178_0x3804cf(0xf0)],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x101),'template':a178_0x3804cf(0x113)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x3804cf(0xe5),'description':a178_0x3804cf(0x115),'folders':['.agent'],'files':[{'type':a178_0x3804cf(0xf2),'path':a178_0x3804cf(0x116),'template':a178_0x3804cf(0x113)}]},'antigravity':{'name':'Antigravity','description':a178_0x3804cf(0xec),'folders':['.agent'],'files':[{'type':'file','path':a178_0x3804cf(0x116),'template':'SKILL.md.tpl'}]}};function a178_0xa77e(_0x1caeb3,_0x5862f4){_0x1caeb3=_0x1caeb3-0xe4;const _0x4a6085=a178_0x4a60();let _0xa77ec8=_0x4a6085[_0x1caeb3];return _0xa77ec8;}export const CORE_IDE_LIST=[a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xee),a178_0x3804cf(0xfd),a178_0x3804cf(0xe6),a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xff),a178_0x3804cf(0xfe)];function a178_0x4a60(){const _0x3c39f6=['codex','windsurf','trae','32rHSGIS','.trae/skills/lovrabet/SKILL.md','Trae\x20IDE','Windsurf\x20IDE','cline','agent','Windsurf','opencode','Cline','Trae','.windsurf/workflows/rabetbase.md','3036156cjywPy','.claude/skills/lovrabet/SKILL.md','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','.qoder','OpenCode','.codebuddy','.qoder/rules/rabetbase.md','SKILL.md.tpl','Cursor','通用模板\x20-\x20兜底方案','.agent/skills/lovrabet/SKILL.md','.windsurf','.codebuddy/skills/lovrabet/SKILL.md','Claude\x20Code','其他\x20(通用模板)','cursor','.codex/skills/lovrabet/SKILL.md','.claude','9665593VhktSo','1941390XElKIA','891693IZmqZo','Antigravity\x20IDE','.opencode/skills/lovrabet/SKILL.md','codebuddy','.codex','.trae','2064845TfbTZj','file','.opencode','Codex\x20IDE','33316YEvSyH','claude','.qoder/skills/lovrabet/SKILL.md','.cline','CodeBuddy\x20IDE','qoder','104fIuLUo','1626676asEJcK'];a178_0x4a60=function(){return _0x3c39f6;};return a178_0x4a60();}export const IDE_LIST=['antigravity',a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xee),a178_0x3804cf(0xfd),'cursor',a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xff),a178_0x3804cf(0xfe),a178_0x3804cf(0x105)];export const ALL_CORE_IDES=[a178_0x3804cf(0xe6),'windsurf',a178_0x3804cf(0xf6),a178_0x3804cf(0x104),a178_0x3804cf(0xfd),a178_0x3804cf(0x107),a178_0x3804cf(0xfa),a178_0x3804cf(0xee),a178_0x3804cf(0xff)];
1
+ const a178_0x2e4cd3=a178_0x1786;(function(_0x380cf2,_0x5b8a14){const _0x160cd=a178_0x1786,_0x32d420=_0x380cf2();while(!![]){try{const _0xe6229=-parseInt(_0x160cd(0x158))/0x1*(-parseInt(_0x160cd(0x173))/0x2)+parseInt(_0x160cd(0x18a))/0x3+parseInt(_0x160cd(0x172))/0x4*(parseInt(_0x160cd(0x182))/0x5)+parseInt(_0x160cd(0x175))/0x6*(parseInt(_0x160cd(0x15d))/0x7)+parseInt(_0x160cd(0x177))/0x8+-parseInt(_0x160cd(0x178))/0x9+-parseInt(_0x160cd(0x187))/0xa*(parseInt(_0x160cd(0x171))/0xb);if(_0xe6229===_0x5b8a14)break;else _0x32d420['push'](_0x32d420['shift']());}catch(_0x1591d3){_0x32d420['push'](_0x32d420['shift']());}}}(a178_0x456c,0x18cf7));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x2e4cd3(0x16c),'description':a178_0x2e4cd3(0x160),'folders':['.cursorrules',a178_0x2e4cd3(0x159)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a178_0x2e4cd3(0x17b),'folders':[a178_0x2e4cd3(0x15f)],'files':[{'type':'file','path':a178_0x2e4cd3(0x165),'template':'SKILL.md.tpl'}]},'claude':{'name':a178_0x2e4cd3(0x168),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x176),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a178_0x2e4cd3(0x17e),'folders':['.cline'],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x16f),'template':a178_0x2e4cd3(0x186)}]},'codex':{'name':a178_0x2e4cd3(0x185),'description':a178_0x2e4cd3(0x17a),'folders':[a178_0x2e4cd3(0x183)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x16b),'template':a178_0x2e4cd3(0x186)}]},'opencode':{'name':a178_0x2e4cd3(0x180),'description':'OpenCode\x20IDE','folders':[a178_0x2e4cd3(0x15b)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x166),'template':a178_0x2e4cd3(0x186)}]},'qoder':{'name':'Qoder','description':a178_0x2e4cd3(0x188),'folders':[a178_0x2e4cd3(0x163)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x16d),'template':a178_0x2e4cd3(0x186)},{'type':'file','path':a178_0x2e4cd3(0x162),'template':a178_0x2e4cd3(0x186)}]},'codebuddy':{'name':a178_0x2e4cd3(0x184),'description':a178_0x2e4cd3(0x181),'folders':[a178_0x2e4cd3(0x15a)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x17f),'template':a178_0x2e4cd3(0x186)}]},'trae':{'name':'Trae','description':a178_0x2e4cd3(0x161),'folders':['.trae'],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x15c),'template':a178_0x2e4cd3(0x186)}]}};function a178_0x456c(){const _0x18dcb5=['.agent/skills/lovrabet/SKILL.md','Cline\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','OpenCode','CodeBuddy\x20IDE','5CUHePa','.codex','CodeBuddy','Codex','SKILL.md.tpl','60AMyAQL','Qoder\x20IDE','trae','574941PnQGKC','opencode','1262mjBMvp','.cursor','.codebuddy','.opencode','.trae/skills/lovrabet/SKILL.md','348523KrcGGf','其他\x20(通用模板)','.windsurf','Cursor\x20IDE','Trae\x20IDE','.qoder/skills/lovrabet/SKILL.md','.qoder','file','.windsurf/workflows/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','cline','Claude\x20Code','qoder','claude','.codex/skills/lovrabet/SKILL.md','Cursor','.qoder/rules/rabetbase.md','codex','.cline/skills/lovrabet/SKILL.md','cursor','152647OFsExF','124416eODfAj','88gDtjkV','.agent','6EgwuhF','.claude/skills/lovrabet/SKILL.md','435360tFWwDG','1778427KySVWx','windsurf','Codex\x20IDE','Windsurf\x20IDE','codebuddy'];a178_0x456c=function(){return _0x18dcb5;};return a178_0x456c();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x2e4cd3(0x15e),'description':'通用模板\x20-\x20兜底方案','folders':[a178_0x2e4cd3(0x174)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x17d),'template':a178_0x2e4cd3(0x186)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a178_0x2e4cd3(0x174)],'files':[{'type':a178_0x2e4cd3(0x164),'path':a178_0x2e4cd3(0x17d),'template':a178_0x2e4cd3(0x186)}]}};export const CORE_IDE_LIST=['claude',a178_0x2e4cd3(0x167),a178_0x2e4cd3(0x17c),'codex','cursor',a178_0x2e4cd3(0x18b),a178_0x2e4cd3(0x169),'trae','windsurf'];function a178_0x1786(_0x2900f9,_0x57cb6f){_0x2900f9=_0x2900f9-0x158;const _0x456c39=a178_0x456c();let _0x178637=_0x456c39[_0x2900f9];return _0x178637;}export const IDE_LIST=['antigravity','claude',a178_0x2e4cd3(0x167),a178_0x2e4cd3(0x17c),a178_0x2e4cd3(0x16e),a178_0x2e4cd3(0x170),a178_0x2e4cd3(0x18b),a178_0x2e4cd3(0x169),a178_0x2e4cd3(0x189),a178_0x2e4cd3(0x179),'agent'];export const ALL_CORE_IDES=['cursor','windsurf',a178_0x2e4cd3(0x16a),'cline',a178_0x2e4cd3(0x16e),'opencode',a178_0x2e4cd3(0x169),a178_0x2e4cd3(0x17c),a178_0x2e4cd3(0x189)];
@@ -1 +1 @@
1
- function a179_0x4d14(){const _0x1054fa=['2698528adKVIT','5ZZfTkN','942060PjzJLD','8986928tvwmyO','552544pgwpWl','939324GNjcSF','530131wCtPHQ','2900244YmpNyw'];a179_0x4d14=function(){return _0x1054fa;};return a179_0x4d14();}(function(_0x4497e3,_0x496d26){const _0x32ed93=a179_0x9689,_0x14febc=_0x4497e3();while(!![]){try{const _0x24e413=-parseInt(_0x32ed93(0x141))/0x1+parseInt(_0x32ed93(0x13f))/0x2+-parseInt(_0x32ed93(0x140))/0x3+-parseInt(_0x32ed93(0x13d))/0x4+-parseInt(_0x32ed93(0x13c))/0x5*(-parseInt(_0x32ed93(0x142))/0x6)+-parseInt(_0x32ed93(0x143))/0x7+parseInt(_0x32ed93(0x13e))/0x8;if(_0x24e413===_0x496d26)break;else _0x14febc['push'](_0x14febc['shift']());}catch(_0x460b0b){_0x14febc['push'](_0x14febc['shift']());}}}(a179_0x4d14,0x663c2));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0x9689(_0x130294,_0x5f1bce){_0x130294=_0x130294-0x13c;const _0x4d14eb=a179_0x4d14();let _0x9689b2=_0x4d14eb[_0x130294];return _0x9689b2;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a179_0x37a6(_0x5ee4c3,_0x3f31e9){_0x5ee4c3=_0x5ee4c3-0x138;const _0x2bf8ad=a179_0x2bf8();let _0x37a6c7=_0x2bf8ad[_0x5ee4c3];return _0x37a6c7;}(function(_0xed4dc7,_0x2afa6d){const _0x18ef88=a179_0x37a6,_0x3bb6a8=_0xed4dc7();while(!![]){try{const _0x589995=-parseInt(_0x18ef88(0x141))/0x1+-parseInt(_0x18ef88(0x13f))/0x2+parseInt(_0x18ef88(0x138))/0x3*(parseInt(_0x18ef88(0x13a))/0x4)+parseInt(_0x18ef88(0x142))/0x5*(-parseInt(_0x18ef88(0x13d))/0x6)+-parseInt(_0x18ef88(0x13b))/0x7*(parseInt(_0x18ef88(0x140))/0x8)+-parseInt(_0x18ef88(0x13c))/0x9+parseInt(_0x18ef88(0x139))/0xa*(parseInt(_0x18ef88(0x13e))/0xb);if(_0x589995===_0x2afa6d)break;else _0x3bb6a8['push'](_0x3bb6a8['shift']());}catch(_0x12ccf7){_0x3bb6a8['push'](_0x3bb6a8['shift']());}}}(a179_0x2bf8,0xf2340));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0x2bf8(){const _0x202a50=['304CjEOPw','1634880VXQeCO','5CZARic','183PtDqRq','66276170CvQAwd','88268tXciZz','211477mayUHo','13724532PvViif','11413122dbEWjl','11GywqGF','1543214iLfGsP'];a179_0x2bf8=function(){return _0x202a50;};return a179_0x2bf8();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a180_0x4a68(_0xc785eb,_0x386f9c){_0xc785eb=_0xc785eb-0x19d;const _0x1bc0a3=a180_0x1bc0();let _0x4a6824=_0x1bc0a3[_0xc785eb];return _0x4a6824;}(function(_0x2ee5d9,_0x48a4d6){const _0x3bc989=a180_0x4a68,_0xe011ce=_0x2ee5d9();while(!![]){try{const _0x147750=parseInt(_0x3bc989(0x1a0))/0x1*(-parseInt(_0x3bc989(0x1a9))/0x2)+parseInt(_0x3bc989(0x1aa))/0x3*(-parseInt(_0x3bc989(0x1a4))/0x4)+parseInt(_0x3bc989(0x1a1))/0x5+-parseInt(_0x3bc989(0x1a3))/0x6+parseInt(_0x3bc989(0x1ab))/0x7+-parseInt(_0x3bc989(0x1a7))/0x8*(parseInt(_0x3bc989(0x1ad))/0x9)+parseInt(_0x3bc989(0x19e))/0xa*(parseInt(_0x3bc989(0x19d))/0xb);if(_0x147750===_0x48a4d6)break;else _0xe011ce['push'](_0xe011ce['shift']());}catch(_0x4efddd){_0xe011ce['push'](_0xe011ce['shift']());}}}(a180_0x1bc0,0xae8ae));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0x1bc0(){const _0x362f2=['cli','34iImcXw','237LUPLTZ','2550954nXbJLP','/config/index.json','368523XfAkUV','application/json','20931735UTsdmn','10FSfWsO','/config.json','22818sNwbuv','3389245VpgBnb','now','1190172LmhypA','39700LqaJFM','stableVersion','sdk','168cMDvpl'];a180_0x1bc0=function(){return _0x362f2;};return a180_0x1bc0();}export async function fetchCdnConfig(){const _0x547d7a=a180_0x4a68,_0x58d95a=getTemplateBaseUrl(),_0x538812=[_0x58d95a+_0x547d7a(0x19f),_0x58d95a+_0x547d7a(0x1ac)];for(const _0xccce00 of _0x538812){try{const _0x5efa65=await fetch(_0xccce00,{'headers':{'Accept':_0x547d7a(0x1ae)}});if(!_0x5efa65['ok'])continue;const _0x220941=await _0x5efa65['json']();if(!_0x220941[_0x547d7a(0x1a8)]?.[_0x547d7a(0x1a5)]||!_0x220941[_0x547d7a(0x1a6)]?.['node']?.[_0x547d7a(0x1a5)])continue;return _0x220941;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x469d02=a180_0x4a68,_0x24a160=Date[_0x469d02(0x1a2)]();if(hasCachedConfig){const _0x1d5178=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x24a160-cacheTime<_0x1d5178)return cachedConfig;}const _0x15f784=await fetchCdnConfig();return cachedConfig=_0x15f784,cacheTime=_0x24a160,hasCachedConfig=!![],_0x15f784;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x4d9765,_0x10bf00){const _0x3afd69=a180_0x5d38,_0x1d32ed=_0x4d9765();while(!![]){try{const _0x2d16f1=parseInt(_0x3afd69(0x67))/0x1+parseInt(_0x3afd69(0x6a))/0x2*(parseInt(_0x3afd69(0x73))/0x3)+-parseInt(_0x3afd69(0x6c))/0x4*(-parseInt(_0x3afd69(0x77))/0x5)+-parseInt(_0x3afd69(0x72))/0x6+parseInt(_0x3afd69(0x70))/0x7*(parseInt(_0x3afd69(0x69))/0x8)+parseInt(_0x3afd69(0x6e))/0x9+parseInt(_0x3afd69(0x78))/0xa*(-parseInt(_0x3afd69(0x76))/0xb);if(_0x2d16f1===_0x10bf00)break;else _0x1d32ed['push'](_0x1d32ed['shift']());}catch(_0x310c9e){_0x1d32ed['push'](_0x1d32ed['shift']());}}}(a180_0x3bbb,0x1e4a0));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1789b4=a180_0x5d38,_0x16f9cb=getTemplateBaseUrl(),_0x58c672=[_0x16f9cb+_0x1789b4(0x6f),_0x16f9cb+_0x1789b4(0x68)];for(const _0x2605fc of _0x58c672){try{const _0x2b25f4=await fetch(_0x2605fc,{'headers':{'Accept':_0x1789b4(0x74)}});if(!_0x2b25f4['ok'])continue;const _0xc04014=await _0x2b25f4['json']();if(!_0xc04014[_0x1789b4(0x71)]?.['stableVersion']||!_0xc04014[_0x1789b4(0x79)]?.[_0x1789b4(0x6d)]?.[_0x1789b4(0x75)])continue;return _0xc04014;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a180_0x5d38(_0x3452ee,_0x33864c){_0x3452ee=_0x3452ee-0x67;const _0x3bbbb1=a180_0x3bbb();let _0x5d38b9=_0x3bbbb1[_0x3452ee];return _0x5d38b9;}let hasCachedConfig=![];function a180_0x3bbb(){const _0x16da17=['870660TiojRH','/config.json','49exRCWC','cli','280584oKOlhB','28413orbixv','application/json','stableVersion','4037XtatuU','14115OUoNaq','15530rnJgoW','sdk','118783RscbDw','/config/index.json','229160mJRzYJ','34ItVpRA','now','232oMuEGU','node'];a180_0x3bbb=function(){return _0x16da17;};return a180_0x3bbb();}export async function getCdnConfig(){const _0x3d0bc8=a180_0x5d38,_0x1dad31=Date[_0x3d0bc8(0x6b)]();if(hasCachedConfig){const _0x3304dc=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1dad31-cacheTime<_0x3304dc)return cachedConfig;}const _0x10d920=await fetchCdnConfig();return cachedConfig=_0x10d920,cacheTime=_0x1dad31,hasCachedConfig=!![],_0x10d920;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}