@lovrabet/rabetbase-cli 2.1.7-beta.6 → 2.1.7-beta.7

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 (197) 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
  197. package/templates/projects/sub-app-react-demo/README.md +1 -1
@@ -1 +1 @@
1
- (function(_0x4575d1,_0x592f8e){const _0x34b0fa=a155_0x51e4,_0x83b494=_0x4575d1();while(!![]){try{const _0x3992d1=-parseInt(_0x34b0fa(0x1b0))/0x1*(-parseInt(_0x34b0fa(0x1bb))/0x2)+-parseInt(_0x34b0fa(0x1af))/0x3+parseInt(_0x34b0fa(0x1bf))/0x4+parseInt(_0x34b0fa(0x1c7))/0x5+-parseInt(_0x34b0fa(0x1c9))/0x6+parseInt(_0x34b0fa(0x1d0))/0x7*(-parseInt(_0x34b0fa(0x1b3))/0x8)+-parseInt(_0x34b0fa(0x1d2))/0x9;if(_0x3992d1===_0x592f8e)break;else _0x83b494['push'](_0x83b494['shift']());}catch(_0x46e49d){_0x83b494['push'](_0x83b494['shift']());}}}(a155_0x47f3,0x7e35a));export function detectSqlType(_0x5e4a13){const _0x1b21c2=a155_0x51e4;if(!_0x5e4a13?.['trim']())return{'type':_0x1b21c2(0x1b8),'isSelectOnly':![],'isDangerous':![],'reason':_0x1b21c2(0x1b5)};const _0x2429f8=_0x5e4a13[_0x1b21c2(0x1b9)](/#\{[^}]*\}/g,'?')[_0x1b21c2(0x1b9)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x1b21c2(0x1b9)](/\/\*[\s\S]*?\*\//g,'')[_0x1b21c2(0x1c2)](),_0xd4bc6b=_0x2429f8[_0x1b21c2(0x1b7)]('\x0a');let _0x3edd8a='';for(const _0x5cef6d of _0xd4bc6b){const _0x38bdaa=_0x5cef6d[_0x1b21c2(0x1c2)]();if(!_0x38bdaa||_0x38bdaa[_0x1b21c2(0x1c4)]('--')||_0x38bdaa[_0x1b21c2(0x1c4)]('/*'))continue;_0x3edd8a=_0x38bdaa;break;}const _0x32082f=_0x3edd8a[_0x1b21c2(0x1d3)]();if(_0x32082f[_0x1b21c2(0x1c4)](_0x1b21c2(0x1ae))||_0x32082f[_0x1b21c2(0x1c4)]('WITH')){const _0xf2d883=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1b21c2(0x1bd)](_0x2429f8);return{'type':_0x1b21c2(0x1ae),'isSelectOnly':!_0xf2d883,'isDangerous':_0xf2d883,'reason':_0xf2d883?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x32082f[_0x1b21c2(0x1c4)](_0x1b21c2(0x1b4)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x32082f[_0x1b21c2(0x1c4)](_0x1b21c2(0x1ca)))return{'type':_0x1b21c2(0x1ca),'isSelectOnly':![],'isDangerous':![]};if(_0x32082f[_0x1b21c2(0x1c4)](_0x1b21c2(0x1bc)))return{'type':_0x1b21c2(0x1bc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1b21c2(0x1c1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x32082f))return{'type':_0x1b21c2(0x1ce),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1b21c2(0x1cd)};return{'type':_0x1b21c2(0x1b8),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x1d63c0){const _0x4490c2=a155_0x51e4,_0x328916=_0x1d63c0['replace'](/#\{[^}]*\}/g,'?')[_0x4490c2(0x1b9)](/\$\{[^}]*\}/g,'?')[_0x4490c2(0x1b9)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x592070=[],_0x442aa7=_0x328916['match'](/FROM\s+([^\s,)(]+)/i);if(_0x442aa7?.[0x1])_0x592070[_0x4490c2(0x1c3)](_0x442aa7[0x1][_0x4490c2(0x1b9)](/[`"]/g,''));for(const _0x297fe9 of _0x328916[_0x4490c2(0x1be)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1ef7b8=_0x297fe9[0x1]?.[_0x4490c2(0x1b9)](/[`"]/g,'');if(_0x1ef7b8&&!_0x592070[_0x4490c2(0x1c8)](_0x1ef7b8))_0x592070['push'](_0x1ef7b8);}const _0x3aa803=_0x328916[_0x4490c2(0x1c0)](/INTO\s+([^\s(]+)/i);if(_0x3aa803?.[0x1]){const _0x588170=_0x3aa803[0x1][_0x4490c2(0x1b9)](/[`"]/g,'');if(!_0x592070[_0x4490c2(0x1c8)](_0x588170))_0x592070[_0x4490c2(0x1c3)](_0x588170);}const _0x32c46b=_0x328916['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x32c46b?.[0x1]){const _0x18a1fe=_0x32c46b[0x1][_0x4490c2(0x1b9)](/[`"]/g,'');if(!_0x592070[_0x4490c2(0x1c8)](_0x18a1fe))_0x592070['push'](_0x18a1fe);}return _0x592070;}function extractParameters(_0x241222){const _0x5319cd=a155_0x51e4,_0xee1639=new Set();for(const _0x5da39d of _0x241222[_0x5319cd(0x1be)](/#\{(\w+)\}/g))if(_0x5da39d[0x1])_0xee1639[_0x5319cd(0x1c6)](_0x5da39d[0x1]);for(const _0x3e4dd0 of _0x241222[_0x5319cd(0x1be)](/\$\{(\w+)\}/g))if(_0x3e4dd0[0x1])_0xee1639[_0x5319cd(0x1c6)](_0x3e4dd0[0x1]);return Array[_0x5319cd(0x1ba)](_0xee1639);}function a155_0x51e4(_0x3d2040,_0x246084){_0x3d2040=_0x3d2040-0x1ae;const _0x47f382=a155_0x47f3();let _0x51e4f5=_0x47f382[_0x3d2040];return _0x51e4f5;}function a155_0x47f3(){const _0x294293=['35136KlhTkW','UPDATE','\x20with\x20parameters:\x20','type','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','DDL','length','98eycDdq','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','1325466jaGAEr','toUpperCase','SELECT','2290347kziIrP','35cvMfsY','\x20query\x20targeting\x20','unknown\x20table(s)','32232lXsZEo','INSERT','SQL\x20content\x20is\x20empty','isDangerous','split','UNKNOWN','replace','from','8314rzUZVg','DELETE','test','matchAll','3224848NxlQlH','match','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','trim','push','startsWith','join','add','2691160FYOaUs','includes'];a155_0x47f3=function(){return _0x294293;};return a155_0x47f3();}export function validateSql(_0x1523a8){const _0x24aa11=a155_0x51e4,_0x7633fc=detectSqlType(_0x1523a8),_0x1eda3=extractTables(_0x1523a8),_0x58047d=extractParameters(_0x1523a8);if(_0x7633fc[_0x24aa11(0x1b6)])return{'valid':![],'sqlType':_0x7633fc,'tables':_0x1eda3,'parameters':_0x58047d,'message':_0x7633fc['reason']||_0x7633fc[_0x24aa11(0x1cc)]+_0x24aa11(0x1d1)};if(_0x7633fc[_0x24aa11(0x1cc)]===_0x24aa11(0x1b8))return{'valid':![],'sqlType':_0x7633fc,'tables':_0x1eda3,'parameters':_0x58047d,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x7633fc,'tables':_0x1eda3,'parameters':_0x58047d,'message':_0x7633fc['type']+_0x24aa11(0x1b1)+(_0x1eda3[_0x24aa11(0x1cf)]?_0x1eda3[_0x24aa11(0x1c5)](',\x20'):_0x24aa11(0x1b2))+(_0x58047d[_0x24aa11(0x1cf)]?_0x24aa11(0x1cb)+_0x58047d['join'](',\x20'):'')};}
1
+ (function(_0x4418fb,_0x2d9c9f){const _0x1ba2d8=a155_0x2782,_0x129428=_0x4418fb();while(!![]){try{const _0x42282e=-parseInt(_0x1ba2d8(0x1ef))/0x1+-parseInt(_0x1ba2d8(0x1e6))/0x2*(-parseInt(_0x1ba2d8(0x1f2))/0x3)+parseInt(_0x1ba2d8(0x1ee))/0x4*(parseInt(_0x1ba2d8(0x1d7))/0x5)+-parseInt(_0x1ba2d8(0x1e8))/0x6*(parseInt(_0x1ba2d8(0x1e4))/0x7)+parseInt(_0x1ba2d8(0x1d4))/0x8+-parseInt(_0x1ba2d8(0x1d1))/0x9+-parseInt(_0x1ba2d8(0x1e1))/0xa*(parseInt(_0x1ba2d8(0x1f4))/0xb);if(_0x42282e===_0x2d9c9f)break;else _0x129428['push'](_0x129428['shift']());}catch(_0x8b1af7){_0x129428['push'](_0x129428['shift']());}}}(a155_0x419b,0xda861));export function detectSqlType(_0xd87bf3){const _0x4c4d9a=a155_0x2782;if(!_0xd87bf3?.[_0x4c4d9a(0x1ea)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x4c4d9a(0x1da)};const _0x38ca8e=_0xd87bf3[_0x4c4d9a(0x1d3)](/#\{[^}]*\}/g,'?')[_0x4c4d9a(0x1d3)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4c4d9a(0x1d3)](/\/\*[\s\S]*?\*\//g,'')[_0x4c4d9a(0x1ea)](),_0x85906c=_0x38ca8e['split']('\x0a');let _0x4dd716='';for(const _0x21418a of _0x85906c){const _0x5db684=_0x21418a[_0x4c4d9a(0x1ea)]();if(!_0x5db684||_0x5db684[_0x4c4d9a(0x1ec)]('--')||_0x5db684[_0x4c4d9a(0x1ec)]('/*'))continue;_0x4dd716=_0x5db684;break;}const _0x3eaf5f=_0x4dd716['toUpperCase']();if(_0x3eaf5f['startsWith'](_0x4c4d9a(0x1dc))||_0x3eaf5f[_0x4c4d9a(0x1ec)](_0x4c4d9a(0x1d5))){const _0x3cdea1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4c4d9a(0x1db)](_0x38ca8e);return{'type':_0x4c4d9a(0x1dc),'isSelectOnly':!_0x3cdea1,'isDangerous':_0x3cdea1,'reason':_0x3cdea1?_0x4c4d9a(0x1d6):undefined};}if(_0x3eaf5f[_0x4c4d9a(0x1ec)]('INSERT'))return{'type':_0x4c4d9a(0x1e0),'isSelectOnly':![],'isDangerous':![]};if(_0x3eaf5f['startsWith'](_0x4c4d9a(0x1f1)))return{'type':_0x4c4d9a(0x1f1),'isSelectOnly':![],'isDangerous':![]};if(_0x3eaf5f[_0x4c4d9a(0x1ec)](_0x4c4d9a(0x1eb)))return{'type':_0x4c4d9a(0x1eb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c4d9a(0x1e3)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4c4d9a(0x1db)](_0x3eaf5f))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x4d2ebf){const _0x21613e=a155_0x2782,_0x3d1034=_0x4d2ebf[_0x21613e(0x1d3)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4793c8=[],_0x2be2a1=_0x3d1034['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2be2a1?.[0x1])_0x4793c8['push'](_0x2be2a1[0x1][_0x21613e(0x1d3)](/[`"]/g,''));for(const _0x4d7a7c of _0x3d1034['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x14e59a=_0x4d7a7c[0x1]?.[_0x21613e(0x1d3)](/[`"]/g,'');if(_0x14e59a&&!_0x4793c8[_0x21613e(0x1dd)](_0x14e59a))_0x4793c8[_0x21613e(0x1d8)](_0x14e59a);}const _0x23938e=_0x3d1034[_0x21613e(0x1e2)](/INTO\s+([^\s(]+)/i);if(_0x23938e?.[0x1]){const _0x4d6c16=_0x23938e[0x1][_0x21613e(0x1d3)](/[`"]/g,'');if(!_0x4793c8[_0x21613e(0x1dd)](_0x4d6c16))_0x4793c8['push'](_0x4d6c16);}const _0x347456=_0x3d1034[_0x21613e(0x1e2)](/UPDATE\s+([^\s,)(]+)/i);if(_0x347456?.[0x1]){const _0x4d6193=_0x347456[0x1][_0x21613e(0x1d3)](/[`"]/g,'');if(!_0x4793c8[_0x21613e(0x1dd)](_0x4d6193))_0x4793c8[_0x21613e(0x1d8)](_0x4d6193);}return _0x4793c8;}function extractParameters(_0x4d7ebe){const _0x2e99b2=a155_0x2782,_0x1d2ff8=new Set();for(const _0x52da25 of _0x4d7ebe[_0x2e99b2(0x1d9)](/#\{(\w+)\}/g))if(_0x52da25[0x1])_0x1d2ff8['add'](_0x52da25[0x1]);for(const _0x4c552c of _0x4d7ebe[_0x2e99b2(0x1d9)](/\$\{(\w+)\}/g))if(_0x4c552c[0x1])_0x1d2ff8['add'](_0x4c552c[0x1]);return Array['from'](_0x1d2ff8);}function a155_0x2782(_0x419a56,_0x116316){_0x419a56=_0x419a56-0x1d0;const _0x419b14=a155_0x419b();let _0x2782e7=_0x419b14[_0x419a56];return _0x2782e7;}function a155_0x419b(){const _0x50e884=['Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','44UrIDhj','isDangerous','8662770TEuMIx','\x20with\x20parameters:\x20','replace','3244288LTIwDW','WITH','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','48390SVNUcH','push','matchAll','SQL\x20content\x20is\x20empty','test','SELECT','includes','reason','\x20query\x20targeting\x20','INSERT','1067720NZSTiM','match','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','280HedGiK','type','346gwtYQf','unknown\x20table(s)','45132IOOznY','length','trim','DELETE','startsWith','UNKNOWN','620yDXNzS','957846YUahQZ','join','UPDATE','28401QBWlbe'];a155_0x419b=function(){return _0x50e884;};return a155_0x419b();}export function validateSql(_0x44fec1){const _0x4d29f3=a155_0x2782,_0x2f51df=detectSqlType(_0x44fec1),_0x3c21ce=extractTables(_0x44fec1),_0x38c9dd=extractParameters(_0x44fec1);if(_0x2f51df[_0x4d29f3(0x1d0)])return{'valid':![],'sqlType':_0x2f51df,'tables':_0x3c21ce,'parameters':_0x38c9dd,'message':_0x2f51df[_0x4d29f3(0x1de)]||_0x2f51df[_0x4d29f3(0x1e5)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x2f51df['type']===_0x4d29f3(0x1ed))return{'valid':![],'sqlType':_0x2f51df,'tables':_0x3c21ce,'parameters':_0x38c9dd,'message':_0x4d29f3(0x1f3)};return{'valid':!![],'sqlType':_0x2f51df,'tables':_0x3c21ce,'parameters':_0x38c9dd,'message':_0x2f51df[_0x4d29f3(0x1e5)]+_0x4d29f3(0x1df)+(_0x3c21ce[_0x4d29f3(0x1e9)]?_0x3c21ce[_0x4d29f3(0x1f0)](',\x20'):_0x4d29f3(0x1e7))+(_0x38c9dd[_0x4d29f3(0x1e9)]?_0x4d29f3(0x1d2)+_0x38c9dd[_0x4d29f3(0x1f0)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a156_0x150bdb=a156_0x3a41;(function(_0x59924d,_0x38f920){const _0x369699=a156_0x3a41,_0x46b926=_0x59924d();while(!![]){try{const _0x33b0d3=-parseInt(_0x369699(0x1d4))/0x1+parseInt(_0x369699(0x1ce))/0x2*(parseInt(_0x369699(0x1d0))/0x3)+parseInt(_0x369699(0x1d1))/0x4*(parseInt(_0x369699(0x1cc))/0x5)+parseInt(_0x369699(0x1d2))/0x6+-parseInt(_0x369699(0x1ca))/0x7+-parseInt(_0x369699(0x1c9))/0x8+parseInt(_0x369699(0x1cf))/0x9;if(_0x33b0d3===_0x38f920)break;else _0x46b926['push'](_0x46b926['shift']());}catch(_0x782aca){_0x46b926['push'](_0x46b926['shift']());}}}(a156_0x2dec,0x3f3f8));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x2dec(){const _0x246390=['547116goLrRt','Run\x20`','504890zhJYKm','Set\x20appcode\x20via\x20`','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1985352cRdSLk','3320247AfaTnD','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','86455bPajbw','Tip:\x20`','14akunvK','8367921wyEYHN','73518ujcivB','68RNtOFy'];a156_0x2dec=function(){return _0x246390;};return a156_0x2dec();}function a156_0x3a41(_0x3f8df9,_0x51dc78){_0x3f8df9=_0x3f8df9-0x1c7;const _0x2decba=a156_0x2dec();let _0x3a41fa=_0x2decba[_0x3f8df9];return _0x3a41fa;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x150bdb(0x1d3)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a156_0x150bdb(0x1d5)+CLI_BIN_NAME+a156_0x150bdb(0x1cb),a156_0x150bdb(0x1cd)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a156_0x150bdb(0x1c7)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a156_0x150bdb(0x1c8)});
1
+ const a156_0x5d36cb=a156_0x1ccf;(function(_0x4366d9,_0xe240aa){const _0x57d5be=a156_0x1ccf,_0x233abc=_0x4366d9();while(!![]){try{const _0x4791d1=-parseInt(_0x57d5be(0xb0))/0x1*(-parseInt(_0x57d5be(0xb5))/0x2)+-parseInt(_0x57d5be(0xae))/0x3*(parseInt(_0x57d5be(0xb1))/0x4)+-parseInt(_0x57d5be(0xb4))/0x5*(parseInt(_0x57d5be(0xb2))/0x6)+-parseInt(_0x57d5be(0xa8))/0x7*(-parseInt(_0x57d5be(0xad))/0x8)+parseInt(_0x57d5be(0xab))/0x9+-parseInt(_0x57d5be(0xa5))/0xa*(-parseInt(_0x57d5be(0xb3))/0xb)+-parseInt(_0x57d5be(0xaa))/0xc*(parseInt(_0x57d5be(0xa7))/0xd);if(_0x4791d1===_0xe240aa)break;else _0x233abc['push'](_0x233abc['shift']());}catch(_0x3e3c62){_0x233abc['push'](_0x233abc['shift']());}}}(a156_0x2d86,0xb6cf2));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x1ccf(_0x1231e0,_0xf1d3e7){_0x1231e0=_0x1231e0-0xa2;const _0x2d864d=a156_0x2d86();let _0x1ccff3=_0x2d864d[_0x1231e0];return _0x1ccff3;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x5d36cb(0xa9)+CLI_BIN_NAME+a156_0x5d36cb(0xaf),'configMissingHint':[a156_0x5d36cb(0xac)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a156_0x5d36cb(0xa2)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a156_0x5d36cb(0xa3)](a156_0x5d36cb(0xa6)),'notInProjectHint':a156_0x5d36cb(0xa4)});function a156_0x2d86(){const _0x56b11e=['Tip:\x20`','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','5411540nkqxIb','\x0a\x20\x20\x20\x20\x20\x20\x20','13QukENQ','189imxJcp','Run\x20`','12991764WmpSDw','8694828vJZowX','Set\x20appcode\x20via\x20`','117848oNOMjY','21Ffsevv','\x20auth`\x20to\x20login\x20first.','1131209JSvKni','265056VVqgTX','4038ikAHOO','22gDQxYr','9525AsRJHC','2tqpMJH'];a156_0x2d86=function(){return _0x56b11e;};return a156_0x2d86();}
@@ -1 +1 @@
1
- (function(_0x5c052f,_0x3256b4){var _0x20e29f=a157_0x202d,_0x5350d4=_0x5c052f();while(!![]){try{var _0x215af1=-parseInt(_0x20e29f(0x1c1))/0x1*(parseInt(_0x20e29f(0x1b6))/0x2)+-parseInt(_0x20e29f(0x1b7))/0x3+-parseInt(_0x20e29f(0x1be))/0x4+parseInt(_0x20e29f(0x1bf))/0x5*(-parseInt(_0x20e29f(0x1b8))/0x6)+-parseInt(_0x20e29f(0x1bb))/0x7*(parseInt(_0x20e29f(0x1bd))/0x8)+-parseInt(_0x20e29f(0x1c0))/0x9*(parseInt(_0x20e29f(0x1bc))/0xa)+-parseInt(_0x20e29f(0x1b9))/0xb*(-parseInt(_0x20e29f(0x1ba))/0xc);if(_0x215af1===_0x3256b4)break;else _0x5350d4['push'](_0x5350d4['shift']());}catch(_0x8082fb){_0x5350d4['push'](_0x5350d4['shift']());}}}(a157_0x2af0,0xacdfd));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x3962e2}from'@lovrabet/cli-framework';function a157_0x2af0(){var _0x5e16c6=['49bLAJoo','47308laJcbY','1233210wURhmr','1990092OAUchG','2585agAwrW','305088loCGtD','3983BTLCao','10WDTeZV','11416zhaSCR','4399084fxqUsA','10MURwpQ','10091997qlxaxl'];a157_0x2af0=function(){return _0x5e16c6;};return a157_0x2af0();}function a157_0x202d(_0x36e06c,_0x58d156){_0x36e06c=_0x36e06c-0x1b6;var _0x2af05a=a157_0x2af0();var _0x202d2f=_0x2af05a[_0x36e06c];return _0x202d2f;}export function buildAllFlags(_0x3c32db){return a157_0x3962e2(_0x3c32db,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a157_0x4597(){var _0x299eb3=['990885TguZUT','1372493JdhtvB','16cDQnlt','1597379BcXhdS','1763808coqEKu','1827681opiCfg','35682498WWfKGH','4016844YJjcaq','4plBZbk'];a157_0x4597=function(){return _0x299eb3;};return a157_0x4597();}(function(_0x1a7df5,_0xf2f329){var _0x17e969=a157_0x1e07,_0x2505dd=_0x1a7df5();while(!![]){try{var _0x3b01ad=-parseInt(_0x17e969(0x1b0))/0x1+-parseInt(_0x17e969(0x1b3))/0x2+parseInt(_0x17e969(0x1b4))/0x3*(-parseInt(_0x17e969(0x1ae))/0x4)+-parseInt(_0x17e969(0x1af))/0x5+-parseInt(_0x17e969(0x1ad))/0x6+-parseInt(_0x17e969(0x1b2))/0x7*(-parseInt(_0x17e969(0x1b1))/0x8)+parseInt(_0x17e969(0x1ac))/0x9;if(_0x3b01ad===_0xf2f329)break;else _0x2505dd['push'](_0x2505dd['shift']());}catch(_0x41771f){_0x2505dd['push'](_0x2505dd['shift']());}}}(a157_0x4597,0xa86b1));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x1e07(_0x2c3864,_0x46a8ef){_0x2c3864=_0x2c3864-0x1ac;var _0x459736=a157_0x4597();var _0x1e0726=_0x459736[_0x2c3864];return _0x1e0726;}import{buildAllFlags as a157_0x41b78c}from'@lovrabet/cli-framework';export function buildAllFlags(_0x29fa2e){return a157_0x41b78c(_0x29fa2e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- function a158_0x95a2(_0x2a5fa3,_0x501281){_0x2a5fa3=_0x2a5fa3-0xa7;const _0x5131fd=a158_0x5131();let _0x95a286=_0x5131fd[_0x2a5fa3];return _0x95a286;}const a158_0xdacc33=a158_0x95a2;(function(_0x35c452,_0x30173a){const _0x542cf2=a158_0x95a2,_0x1d5da0=_0x35c452();while(!![]){try{const _0x2b3bad=parseInt(_0x542cf2(0xaa))/0x1*(-parseInt(_0x542cf2(0xb0))/0x2)+parseInt(_0x542cf2(0xa9))/0x3*(-parseInt(_0x542cf2(0xb1))/0x4)+-parseInt(_0x542cf2(0xab))/0x5+parseInt(_0x542cf2(0xa7))/0x6+parseInt(_0x542cf2(0xad))/0x7*(-parseInt(_0x542cf2(0xa8))/0x8)+-parseInt(_0x542cf2(0xaf))/0x9+parseInt(_0x542cf2(0xae))/0xa;if(_0x2b3bad===_0x30173a)break;else _0x1d5da0['push'](_0x1d5da0['shift']());}catch(_0x463e98){_0x1d5da0['push'](_0x1d5da0['shift']());}}}(a158_0x5131,0x754a2));function a158_0x5131(){const _0x508f0f=['307315qODVep','parseFlags','7qXJpzk','23257050vUQKSX','7389558sIedXa','2WQxosI','30804EJTocv','1707102PDPVEx','5247880SCfRsE','216pOPEww','36822pbFjjV'];a158_0x5131=function(){return _0x508f0f;};return a158_0x5131();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0xdacc33(0xac)];export const validateFlags=helpers['validateFlags'];
1
+ const a158_0x51eb92=a158_0x5218;function a158_0x5218(_0x2ec0a0,_0x7fa156){_0x2ec0a0=_0x2ec0a0-0x1c9;const _0x125df0=a158_0x125d();let _0x521837=_0x125df0[_0x2ec0a0];return _0x521837;}(function(_0x89d5b3,_0x53c7b9){const _0x4cd272=a158_0x5218,_0x2899df=_0x89d5b3();while(!![]){try{const _0x5bc8fd=parseInt(_0x4cd272(0x1ce))/0x1*(-parseInt(_0x4cd272(0x1cd))/0x2)+-parseInt(_0x4cd272(0x1ca))/0x3+parseInt(_0x4cd272(0x1cf))/0x4+-parseInt(_0x4cd272(0x1d0))/0x5+-parseInt(_0x4cd272(0x1d2))/0x6+parseInt(_0x4cd272(0x1cb))/0x7+parseInt(_0x4cd272(0x1cc))/0x8;if(_0x5bc8fd===_0x53c7b9)break;else _0x2899df['push'](_0x2899df['shift']());}catch(_0x130355){_0x2899df['push'](_0x2899df['shift']());}}}(a158_0x125d,0xec390));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a158_0x125d(){const _0x1f98d6=['31226088plECRD','2435698npuCyH','1ybTueR','1779240qsBwKA','5243545aUcsdv','validateFlags','1168188mFblkB','parseFlags','4815984sWKWDM','4802567ABetCR'];a158_0x125d=function(){return _0x1f98d6;};return a158_0x125d();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x51eb92(0x1c9)];export const validateFlags=helpers[a158_0x51eb92(0x1d1)];
@@ -1 +1 @@
1
- const a159_0x3bbc62=a159_0x1f62;(function(_0x24bcaa,_0x553bcd){const _0x483a3f=a159_0x1f62,_0x3a83f9=_0x24bcaa();while(!![]){try{const _0x4708c1=parseInt(_0x483a3f(0xcc))/0x1*(parseInt(_0x483a3f(0xcf))/0x2)+parseInt(_0x483a3f(0xd9))/0x3*(-parseInt(_0x483a3f(0xd7))/0x4)+parseInt(_0x483a3f(0xd3))/0x5+parseInt(_0x483a3f(0xcb))/0x6+parseInt(_0x483a3f(0xca))/0x7+parseInt(_0x483a3f(0xd6))/0x8+parseInt(_0x483a3f(0xd5))/0x9*(-parseInt(_0x483a3f(0xd4))/0xa);if(_0x4708c1===_0x553bcd)break;else _0x3a83f9['push'](_0x3a83f9['shift']());}catch(_0x7f933e){_0x3a83f9['push'](_0x3a83f9['shift']());}}}(a159_0x2e4e,0x74fe4));function a159_0x1f62(_0x22f9fa,_0x2ce36b){_0x22f9fa=_0x22f9fa-0xca;const _0x2e4ed4=a159_0x2e4e();let _0x1f6285=_0x2e4ed4[_0x22f9fa];return _0x1f6285;}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':_0x38f6ce=>serviceGroups[a159_0x3bbc62(0xce)](_0x38f6ce),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x3bbc62(0xd2)+CLI_BIN_NAME+a159_0x3bbc62(0xd1),'serviceUsageSuffix':a159_0x3bbc62(0xd8),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x20a03c){return generators['generateCommandHelp'](_0x20a03c);}export const generateServiceHelp=generators[a159_0x3bbc62(0xd0)];function a159_0x2e4e(){const _0x202dd4=['Requires\x20appcode\x20(set\x20via\x20`','4455435GcWZBk','1130ePbUeS','203922YxbDaa','6900088dsVnhP','24RJCkAK','\x20[args]\x20[flags]','104109ivqCur','769286YzESrq','4650648phqeBr','304586YTNBHm','generateFullHelp','get','4jKYHYG','generateServiceHelp','\x20project\x20init`\x20or\x20--appcode).'];a159_0x2e4e=function(){return _0x202dd4;};return a159_0x2e4e();}export const generateFullHelp=generators[a159_0x3bbc62(0xcd)];
1
+ const a159_0x1b756d=a159_0x4bb1;(function(_0x4d34d6,_0x219c48){const _0xdccbb3=a159_0x4bb1,_0x2e0da8=_0x4d34d6();while(!![]){try{const _0x246a25=-parseInt(_0xdccbb3(0xc4))/0x1+parseInt(_0xdccbb3(0xbc))/0x2*(parseInt(_0xdccbb3(0xc6))/0x3)+parseInt(_0xdccbb3(0xc5))/0x4*(-parseInt(_0xdccbb3(0xbf))/0x5)+-parseInt(_0xdccbb3(0xcb))/0x6*(parseInt(_0xdccbb3(0xc2))/0x7)+-parseInt(_0xdccbb3(0xc9))/0x8+-parseInt(_0xdccbb3(0xbd))/0x9*(-parseInt(_0xdccbb3(0xca))/0xa)+parseInt(_0xdccbb3(0xc3))/0xb;if(_0x246a25===_0x219c48)break;else _0x2e0da8['push'](_0x2e0da8['shift']());}catch(_0x3134af){_0x2e0da8['push'](_0x2e0da8['shift']());}}}(a159_0x2095,0x5a5a1));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';function a159_0x2095(){const _0x4a168d=['102767xwhwbL','12153251XsFXhN','461415GyDZAx','6028rocdpO','6IclFuE','Requires\x20appcode\x20(set\x20via\x20`','generateServiceHelp','3604320Nbfytb','786650GeKdhd','30PHgQsS','659902oFyDfb','18HLFLgz','generateFullHelp','1880AGMZdI','\x20[args]\x20[flags]','get'];a159_0x2095=function(){return _0x4a168d;};return a159_0x2095();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x44d078=>serviceGroups[a159_0x1b756d(0xc1)](_0x44d078),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x1b756d(0xc7)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a159_0x1b756d(0xc0),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x3cb96e){return generators['generateCommandHelp'](_0x3cb96e);}function a159_0x4bb1(_0x2399cd,_0x542318){_0x2399cd=_0x2399cd-0xbc;const _0x209586=a159_0x2095();let _0x4bb128=_0x209586[_0x2399cd];return _0x4bb128;}export const generateServiceHelp=generators[a159_0x1b756d(0xc8)];export const generateFullHelp=generators[a159_0x1b756d(0xbe)];
@@ -1 +1 @@
1
- function a160_0x153f(_0x43f8bd,_0x385eff){_0x43f8bd=_0x43f8bd-0xbf;var _0x2ccf80=a160_0x2ccf();var _0x153f1b=_0x2ccf80[_0x43f8bd];return _0x153f1b;}(function(_0x4c04dd,_0x43a4){var _0x5f52de=a160_0x153f,_0x444ea1=_0x4c04dd();while(!![]){try{var _0x9d37ea=-parseInt(_0x5f52de(0xc4))/0x1+-parseInt(_0x5f52de(0xc6))/0x2+parseInt(_0x5f52de(0xbf))/0x3*(-parseInt(_0x5f52de(0xc5))/0x4)+parseInt(_0x5f52de(0xc1))/0x5+-parseInt(_0x5f52de(0xc0))/0x6*(parseInt(_0x5f52de(0xc2))/0x7)+-parseInt(_0x5f52de(0xc3))/0x8+parseInt(_0x5f52de(0xc7))/0x9;if(_0x9d37ea===_0x43a4)break;else _0x444ea1['push'](_0x444ea1['shift']());}catch(_0x39ee85){_0x444ea1['push'](_0x444ea1['shift']());}}}(a160_0x2ccf,0x43df1));function a160_0x2ccf(){var _0x23319a=['474924GuxtnC','6iMfbje','432325ZvPUqi','3790241heUnYw','3675656gJqeBO','52687uuqSzn','4RMPiIv','593484YejKwX','15301737PvNPwL'];a160_0x2ccf=function(){return _0x23319a;};return a160_0x2ccf();}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';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x5becf6,_0x587ec2){var _0x5a1280=a160_0x43d9,_0x39603d=_0x5becf6();while(!![]){try{var _0x8521f1=-parseInt(_0x5a1280(0x1f7))/0x1*(-parseInt(_0x5a1280(0x1f4))/0x2)+-parseInt(_0x5a1280(0x1f0))/0x3*(parseInt(_0x5a1280(0x1f8))/0x4)+-parseInt(_0x5a1280(0x1ef))/0x5*(-parseInt(_0x5a1280(0x1ee))/0x6)+-parseInt(_0x5a1280(0x1ec))/0x7*(parseInt(_0x5a1280(0x1ed))/0x8)+-parseInt(_0x5a1280(0x1eb))/0x9*(-parseInt(_0x5a1280(0x1f5))/0xa)+-parseInt(_0x5a1280(0x1f1))/0xb*(parseInt(_0x5a1280(0x1f2))/0xc)+-parseInt(_0x5a1280(0x1f6))/0xd*(-parseInt(_0x5a1280(0x1f3))/0xe);if(_0x8521f1===_0x587ec2)break;else _0x39603d['push'](_0x39603d['shift']());}catch(_0x3eea70){_0x39603d['push'](_0x39603d['shift']());}}}(a160_0x3b41,0xc26d7));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a160_0x3b41(){var _0x2d427e=['144370fSUekQ','3zCHFpv','14399ZXbMNX','9708GdXsAx','14LlTpAE','2GStfZf','10bTqwAr','43395131vHMWjw','65855TEegLE','3500564FdRzBR','3072591PLsFLH','7MoUrSg','8811728QlXgdN','18uNscLx'];a160_0x3b41=function(){return _0x2d427e;};return a160_0x3b41();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a160_0x43d9(_0x5cf8e5,_0x505857){_0x5cf8e5=_0x5cf8e5-0x1eb;var _0x3b4108=a160_0x3b41();var _0x43d9ef=_0x3b4108[_0x5cf8e5];return _0x43d9ef;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x325e86,_0x619847){const _0x58cd13=a161_0x528b,_0x268b56=_0x325e86();while(!![]){try{const _0x15cbcd=-parseInt(_0x58cd13(0xb5))/0x1+-parseInt(_0x58cd13(0xb2))/0x2*(-parseInt(_0x58cd13(0xad))/0x3)+-parseInt(_0x58cd13(0xaf))/0x4+-parseInt(_0x58cd13(0xb1))/0x5+-parseInt(_0x58cd13(0xb4))/0x6*(parseInt(_0x58cd13(0xb0))/0x7)+parseInt(_0x58cd13(0xb3))/0x8+parseInt(_0x58cd13(0xae))/0x9;if(_0x15cbcd===_0x619847)break;else _0x268b56['push'](_0x268b56['shift']());}catch(_0x20c14d){_0x268b56['push'](_0x268b56['shift']());}}}(a161_0x4655,0x318cc));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a161_0x528b(_0x3fc37b,_0xe785dd){_0x3fc37b=_0x3fc37b-0xad;const _0x465513=a161_0x4655();let _0x528b27=_0x465513[_0x3fc37b];return _0x528b27;}function a161_0x4655(){const _0x26abf3=['150620meliuR','7fHVgdR','819495NRKboD','6326qxevWC','1956416JPVDDq','968244TZhVoh','141107COgVHg','288PcfAgQ','1429119qVzOJj'];a161_0x4655=function(){return _0x26abf3;};return a161_0x4655();}
1
+ function a161_0x18fc(_0x1186f3,_0x50604c){_0x1186f3=_0x1186f3-0xa0;const _0x562e2b=a161_0x562e();let _0x18fcb1=_0x562e2b[_0x1186f3];return _0x18fcb1;}(function(_0x46d2d8,_0x4c64df){const _0x31f933=a161_0x18fc,_0x579070=_0x46d2d8();while(!![]){try{const _0x24794c=-parseInt(_0x31f933(0xaa))/0x1+parseInt(_0x31f933(0xa4))/0x2*(-parseInt(_0x31f933(0xa2))/0x3)+-parseInt(_0x31f933(0xa1))/0x4+-parseInt(_0x31f933(0xa9))/0x5*(-parseInt(_0x31f933(0xa3))/0x6)+parseInt(_0x31f933(0xa7))/0x7*(parseInt(_0x31f933(0xa5))/0x8)+parseInt(_0x31f933(0xa0))/0x9+parseInt(_0x31f933(0xa6))/0xa*(parseInt(_0x31f933(0xa8))/0xb);if(_0x24794c===_0x4c64df)break;else _0x579070['push'](_0x579070['shift']());}catch(_0x29c93){_0x579070['push'](_0x579070['shift']());}}}(a161_0x562e,0x3c402));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a161_0x562e(){const _0x2a5d94=['3394953JOmQYI','1751060RGsRIU','2625kLFLNu','6qfpFPh','66XfJlGu','32osarFJ','60wuIxDL','39725rIGSqF','436689ExYWkI','2275935ZiLWJC','379872ZxhXuJ'];a161_0x562e=function(){return _0x2a5d94;};return a161_0x562e();}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0xb65f04,_0x305e33){var _0x3f71df=a162_0x25d5,_0x2eabbb=_0xb65f04();while(!![]){try{var _0x5823e0=-parseInt(_0x3f71df(0xcc))/0x1+parseInt(_0x3f71df(0xd2))/0x2*(parseInt(_0x3f71df(0xd0))/0x3)+-parseInt(_0x3f71df(0xd5))/0x4*(-parseInt(_0x3f71df(0xd4))/0x5)+-parseInt(_0x3f71df(0xd3))/0x6*(parseInt(_0x3f71df(0xd1))/0x7)+parseInt(_0x3f71df(0xcd))/0x8+parseInt(_0x3f71df(0xcf))/0x9+-parseInt(_0x3f71df(0xce))/0xa*(parseInt(_0x3f71df(0xcb))/0xb);if(_0x5823e0===_0x305e33)break;else _0x2eabbb['push'](_0x2eabbb['shift']());}catch(_0x385226){_0x2eabbb['push'](_0x2eabbb['shift']());}}}(a162_0x2b80,0x41a5b));function a162_0x25d5(_0x39ccb6,_0x54cc45){_0x39ccb6=_0x39ccb6-0xcb;var _0x2b8070=a162_0x2b80();var _0x25d50c=_0x2b8070[_0x39ccb6];return _0x25d50c;}function a162_0x2b80(){var _0x24f571=['574482FAhkcb','6097dGMoOG','2qkcJGT','3126iSUZqw','1698530xfvclO','4xTvnZO','1397VFVkXo','405173ENaiUz','4214776AfFKPT','24290BxEmpo','3404619kOJwhH'];a162_0x2b80=function(){return _0x24f571;};return a162_0x2b80();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x59dc8b,_0x1f62d2){var _0x1bbee6=a162_0x5860,_0x376643=_0x59dc8b();while(!![]){try{var _0x29185a=-parseInt(_0x1bbee6(0x1e3))/0x1*(-parseInt(_0x1bbee6(0x1e2))/0x2)+-parseInt(_0x1bbee6(0x1ea))/0x3*(parseInt(_0x1bbee6(0x1e9))/0x4)+-parseInt(_0x1bbee6(0x1e7))/0x5*(-parseInt(_0x1bbee6(0x1e8))/0x6)+parseInt(_0x1bbee6(0x1e4))/0x7*(parseInt(_0x1bbee6(0x1e1))/0x8)+parseInt(_0x1bbee6(0x1e5))/0x9+-parseInt(_0x1bbee6(0x1ec))/0xa*(-parseInt(_0x1bbee6(0x1eb))/0xb)+parseInt(_0x1bbee6(0x1e0))/0xc*(-parseInt(_0x1bbee6(0x1e6))/0xd);if(_0x29185a===_0x1f62d2)break;else _0x376643['push'](_0x376643['shift']());}catch(_0x2535fc){_0x376643['push'](_0x376643['shift']());}}}(a162_0x20ca,0x7f4f2));function a162_0x20ca(){var _0x173850=['198096uvPpIb','118096gKARXZ','246348yNRGjf','3QoiUGB','203djtXDI','727227mxAXqv','1261asFyDe','5ShWrJr','3191532QDIRvZ','4OkxRse','258402jEVgca','11MzOMPi','7985230ICjipH'];a162_0x20ca=function(){return _0x173850;};return a162_0x20ca();}function a162_0x5860(_0x5a5cc8,_0x84a350){_0x5a5cc8=_0x5a5cc8-0x1e0;var _0x20ca12=a162_0x20ca();var _0x58603f=_0x20ca12[_0x5a5cc8];return _0x58603f;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x342dd6,_0x3c5ac0){const _0xd657fb=a163_0x3cf6,_0x2c3289=_0x342dd6();while(!![]){try{const _0x487a8c=parseInt(_0xd657fb(0x124))/0x1+-parseInt(_0xd657fb(0x114))/0x2*(-parseInt(_0xd657fb(0x127))/0x3)+parseInt(_0xd657fb(0x125))/0x4+parseInt(_0xd657fb(0x128))/0x5+-parseInt(_0xd657fb(0x117))/0x6*(parseInt(_0xd657fb(0x126))/0x7)+parseInt(_0xd657fb(0x129))/0x8+-parseInt(_0xd657fb(0x119))/0x9;if(_0x487a8c===_0x3c5ac0)break;else _0x2c3289['push'](_0x2c3289['shift']());}catch(_0x57920b){_0x2c3289['push'](_0x2c3289['shift']());}}}(a163_0x1c76,0x31517));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x1c76(){const _0x1f603f=['520052yHqulb','1554938GuanaP','41763MyufnN','1502760HcIQxw','1089968iwvzKK','flags','Unknown\x20alias\x20\x22','type','6ZmUcev','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','6BKpnNJ','validation','2947221iDlazo','string','some','map','length','name','No\x20api.ts\x20found\x20in\x20','Available\x20aliases:\x20','alias','code','\x22.\x20','143036JCkmdf'];a163_0x1c76=function(){return _0x1f603f;};return a163_0x1c76();}function a163_0x3cf6(_0x5deabf,_0x3845cb){_0x5deabf=_0x5deabf-0x114;const _0x1c7650=a163_0x1c76();let _0x3cf6b0=_0x1c7650[_0x5deabf];return _0x3cf6b0;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2a6c07,_0x438146,_0x48c96d,_0x161181){const _0x156bf6=a163_0x3cf6,_0x5db217=_0x2a6c07[_0x156bf6(0x12a)][_0x156bf6(0x11b)](_0x59b774=>_0x59b774[_0x156bf6(0x11e)]==='code'&&_0x59b774['type']===_0x156bf6(0x11a)),_0x3bbbd5=_0x2a6c07[_0x156bf6(0x12a)][_0x156bf6(0x11b)](_0x4b2762=>_0x4b2762[_0x156bf6(0x11e)]==='alias'&&_0x4b2762[_0x156bf6(0x12c)]===_0x156bf6(0x11a));if(!_0x5db217||!_0x3bbbd5)return;const _0x12dae0=_0x438146[_0x156bf6(0x122)]?String(_0x438146['code']):'',_0x5d3efa=_0x438146[_0x156bf6(0x121)]?String(_0x438146['alias']):'';if(!_0x12dae0&&!_0x5d3efa)throw CliErrors[_0x156bf6(0x118)]('`'+_0x161181+_0x156bf6(0x116));if(_0x5d3efa&&!_0x12dae0){const _0x1aa5a7=resolveAlias(_0x48c96d,_0x5d3efa);if(!_0x1aa5a7){const _0x4f1532=listAliases(_0x48c96d)[_0x156bf6(0x11c)](_0xe78a03=>_0xe78a03[_0x156bf6(0x121)]),_0x247dd5=_0x4f1532[_0x156bf6(0x11d)]?_0x156bf6(0x120)+_0x4f1532['join'](',\x20'):_0x156bf6(0x11f)+_0x48c96d+'.\x20Run\x20`'+CLI_BIN_NAME+_0x156bf6(0x115);throw CliErrors[_0x156bf6(0x118)](_0x156bf6(0x12b)+_0x5d3efa+_0x156bf6(0x123)+_0x247dd5);}_0x438146[_0x156bf6(0x122)]=_0x1aa5a7;}}
1
+ (function(_0x46e747,_0x8566cc){const _0x3fb236=a163_0x481c,_0x3e528c=_0x46e747();while(!![]){try{const _0x44d9b4=-parseInt(_0x3fb236(0xec))/0x1+parseInt(_0x3fb236(0xe9))/0x2+-parseInt(_0x3fb236(0xf0))/0x3*(parseInt(_0x3fb236(0xeb))/0x4)+parseInt(_0x3fb236(0xea))/0x5*(-parseInt(_0x3fb236(0xe5))/0x6)+-parseInt(_0x3fb236(0xe7))/0x7+-parseInt(_0x3fb236(0xf3))/0x8*(-parseInt(_0x3fb236(0xee))/0x9)+parseInt(_0x3fb236(0xf8))/0xa;if(_0x44d9b4===_0x8566cc)break;else _0x3e528c['push'](_0x3e528c['shift']());}catch(_0x2aae28){_0x3e528c['push'](_0x3e528c['shift']());}}}(a163_0x2a13,0x577af));function a163_0x481c(_0x517e3f,_0x255e64){_0x517e3f=_0x517e3f-0xe2;const _0x2a13b3=a163_0x2a13();let _0x481c3a=_0x2a13b3[_0x517e3f];return _0x481c3a;}function a163_0x2a13(){const _0xe12802=['code','12340440QCXlmF','some','.\x20Run\x20`','type','\x20api\x20pull`\x20first.','name','alias','length','4274178FigJGw','No\x20api.ts\x20found\x20in\x20','910455IyaGTa','validation','481634VZvPjA','5yVeOld','16jgcneS','379771yFQrDz','\x22.\x20','9xtBpJm','Available\x20aliases:\x20','49644jlLIZR','map','join','1374792ibzniX','flags','Unknown\x20alias\x20\x22','string'];a163_0x2a13=function(){return _0xe12802;};return a163_0x2a13();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5471b3,_0x403f4a,_0x25f45f,_0x26e7e1){const _0x31c79c=a163_0x481c,_0x378e26=_0x5471b3[_0x31c79c(0xf4)][_0x31c79c(0xf9)](_0x481fe6=>_0x481fe6[_0x31c79c(0xe2)]===_0x31c79c(0xf7)&&_0x481fe6[_0x31c79c(0xfb)]===_0x31c79c(0xf6)),_0x35faf3=_0x5471b3['flags'][_0x31c79c(0xf9)](_0x176245=>_0x176245[_0x31c79c(0xe2)]==='alias'&&_0x176245[_0x31c79c(0xfb)]===_0x31c79c(0xf6));if(!_0x378e26||!_0x35faf3)return;const _0x24a2a3=_0x403f4a['code']?String(_0x403f4a[_0x31c79c(0xf7)]):'',_0x184bba=_0x403f4a[_0x31c79c(0xe3)]?String(_0x403f4a[_0x31c79c(0xe3)]):'';if(!_0x24a2a3&&!_0x184bba)throw CliErrors[_0x31c79c(0xe8)]('`'+_0x26e7e1+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x184bba&&!_0x24a2a3){const _0x596019=resolveAlias(_0x25f45f,_0x184bba);if(!_0x596019){const _0x3605c8=listAliases(_0x25f45f)[_0x31c79c(0xf1)](_0x158cc3=>_0x158cc3['alias']),_0x527e06=_0x3605c8[_0x31c79c(0xe4)]?_0x31c79c(0xef)+_0x3605c8[_0x31c79c(0xf2)](',\x20'):_0x31c79c(0xe6)+_0x25f45f+_0x31c79c(0xfa)+CLI_BIN_NAME+_0x31c79c(0xfc);throw CliErrors[_0x31c79c(0xe8)](_0x31c79c(0xf5)+_0x184bba+_0x31c79c(0xed)+_0x527e06);}_0x403f4a[_0x31c79c(0xf7)]=_0x596019;}}
@@ -1 +1 @@
1
- function a164_0x3541(){const _0x1bc39b=['verbose','has','appcode','19452ufAnNA','789929lsqluB','53756xnDeZc','../core/api-client.js','defaultPageSize','cookie','authRequired','mergedCli','service','format','defaultVerbose','configMissing','name','cancelled','54153ijKEDv','apps','6224OgvJXg','11928hvPOAr','390YYEskX','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','requiresAppCode','resolveApiDomain','2CDLOZJ','appCode','2439Frcloz','98754SpEXeK','High-risk\x20operation\x20`','selectedAppName','resolveCookie','filter','isNonInteractive','command','10oLJeTy','riskLevel'];a164_0x3541=function(){return _0x1bc39b;};return a164_0x3541();}const a164_0x59adf0=a164_0x2018;function a164_0x2018(_0x5afcbc,_0x31e972){_0x5afcbc=_0x5afcbc-0x1a5;const _0x35412c=a164_0x3541();let _0x20186f=_0x35412c[_0x5afcbc];return _0x20186f;}(function(_0x1035a5,_0x5b1965){const _0x3ff9e7=a164_0x2018,_0x43f28a=_0x1035a5();while(!![]){try{const _0x29c5f9=parseInt(_0x3ff9e7(0x1b6))/0x1+-parseInt(_0x3ff9e7(0x1a7))/0x2*(-parseInt(_0x3ff9e7(0x1c7))/0x3)+-parseInt(_0x3ff9e7(0x1b8))/0x4*(parseInt(_0x3ff9e7(0x1b1))/0x5)+parseInt(_0x3ff9e7(0x1aa))/0x6+parseInt(_0x3ff9e7(0x1b7))/0x7+-parseInt(_0x3ff9e7(0x1c6))/0x8*(parseInt(_0x3ff9e7(0x1a9))/0x9)+parseInt(_0x3ff9e7(0x1c8))/0xa*(parseInt(_0x3ff9e7(0x1c4))/0xb);if(_0x29c5f9===_0x5b1965)break;else _0x43f28a['push'](_0x43f28a['shift']());}catch(_0x433eb0){_0x43f28a['push'](_0x43f28a['shift']());}}}(a164_0x3541,0x1a207));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';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_0xb2e030}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x926495,_0xfbbf75,_0x411743=[]){const _0x4fd77c=a164_0x2018;return{'rawFlags':_0xfbbf75,'args':_0x411743,'resolveAppCode':()=>_0x926495[_0x4fd77c(0x1a8)]||_0xfbbf75[_0x4fd77c(0x1b5)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x926495[_0x4fd77c(0x1bb)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0xb2e030(_0xfbbf75),'defaultFormat':_0x926495[_0x4fd77c(0x1bf)],'defaultPageSize':_0x926495['pageSize'],'defaultVerbose':_0x926495[_0x4fd77c(0x1b3)],'apiDir':_0x926495['apiDir'],'riskLevel':_0x926495[_0x4fd77c(0x1b2)],'selectedAppName':_0x926495['explicitAppName'],'mergedCli':{'defaultApp':_0x926495['defaultApp'],'currentApp':_0x926495['currentApp'],'appCode':_0x926495[_0x4fd77c(0x1a8)],'apps':_0x926495[_0x4fd77c(0x1c5)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x59adf0(0x1ae)](_0xaafe8d=>PIPELINE_FLAG_NAMES[a164_0x59adf0(0x1b4)](_0xaafe8d[a164_0x59adf0(0x1c2)]))['map'](({name:_0x26b58f,type:_0x430e3b,description:_0x7cd6a4})=>({'name':_0x26b58f,'type':_0x430e3b,'description':_0x7cd6a4})),'formatOutput':formatOutput,'getCommandLabel'(_0x33ba53){const _0xc82d8a=a164_0x59adf0;return CLI_BIN_NAME+'\x20'+_0x33ba53[_0xc82d8a(0x1be)]+'\x20'+_0x33ba53[_0xc82d8a(0x1b0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3fa224){const _0xefbf27=a164_0x59adf0;return CliErrors[_0xefbf27(0x1c9)](_0x3fa224);}},async 'prepare'(_0x18a9bb,_0x293bc1,_0x420d5e,_0x59fc7e){const _0x29630c=a164_0x59adf0,_0x267e02=_0x293bc1['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x18a9bb,_0x420d5e,_0x267e02,_0x59fc7e);let _0xf32a51='';if(_0x18a9bb['requiresAuth']!==![]){_0xf32a51=_0x293bc1[_0x29630c(0x1ad)]();if(!_0xf32a51)throw CliErrors[_0x29630c(0x1bc)]();const {setActiveCookie:_0x54c07f}=await import(_0x29630c(0x1b9));_0x54c07f(_0xf32a51);}const _0x53555a=_0x293bc1['resolveAppCode']()??'';if(_0x18a9bb[_0x29630c(0x1a5)]!==![]){if(!_0x53555a)throw CliErrors[_0x29630c(0x1c1)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x293bc1[_0x29630c(0x1c0)]},'numbers':{'pagesize':_0x293bc1[_0x29630c(0x1ba)]}},'extras':{'appCode':_0x53555a,'cookie':_0xf32a51,'apiDomain':_0x293bc1[_0x29630c(0x1a6)](),'apiDir':_0x267e02,'selectedAppName':_0x293bc1[_0x29630c(0x1ac)],'mergedCli':_0x293bc1[_0x29630c(0x1bd)]}};},async 'confirmHighRisk'({env:_0x5eaf5c,commandLabel:_0x294940}){const _0x1fb74d=a164_0x59adf0;if(_0x5eaf5c[_0x1fb74d(0x1af)])throw CliErrors[_0x1fb74d(0x1c9)](_0x1fb74d(0x1ab)+_0x294940+_0x1fb74d(0x1ca));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x294940,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x210f14=>CliErrors[_0x1fb74d(0x1c3)](_0x210f14)});},async 'finalize'(){const _0x3340ef=a164_0x59adf0,{clearActiveCookie:_0x51867c}=await import(_0x3340ef(0x1b9));_0x51867c();}};export async function runCommand(_0x50b635,_0x352984){await runCommandWithAdapter(_0x50b635,_0x352984,runnerAdapter);}
1
+ const a164_0x4a97eb=a164_0x4aac;(function(_0xb52810,_0x1dbd2f){const _0xe331a4=a164_0x4aac,_0x5c3afe=_0xb52810();while(!![]){try{const _0x289a33=parseInt(_0xe331a4(0x136))/0x1*(-parseInt(_0xe331a4(0x148))/0x2)+-parseInt(_0xe331a4(0x12d))/0x3*(-parseInt(_0xe331a4(0x13c))/0x4)+-parseInt(_0xe331a4(0x12e))/0x5+-parseInt(_0xe331a4(0x125))/0x6+parseInt(_0xe331a4(0x13d))/0x7+-parseInt(_0xe331a4(0x124))/0x8+parseInt(_0xe331a4(0x146))/0x9*(parseInt(_0xe331a4(0x137))/0xa);if(_0x289a33===_0x1dbd2f)break;else _0x5c3afe['push'](_0x5c3afe['shift']());}catch(_0x2016d9){_0x5c3afe['push'](_0x5c3afe['shift']());}}}(a164_0x2704,0x81e12));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a164_0x4aac(_0x3dcfb5,_0x49e597){_0x3dcfb5=_0x3dcfb5-0x124;const _0x270487=a164_0x2704();let _0x4aac7a=_0x270487[_0x3dcfb5];return _0x4aac7a;}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';import{isNonInteractive as a164_0x586b52}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a164_0x2704(){const _0x5f55ab=['125469yGFjTu','pageSize','2bZiOwj','2083120SGYjKi','514992OhkNlW','defaultVerbose','High-risk\x20operation\x20`','appCode','resolveAppCode','cookie','\x20\x20\x20Continue?\x20[y/N]\x20','defaultPageSize','8982aYGgut','4054415poQKMf','selectedAppName','resolveApiDomain','apiDir','filter','resolveCookie','has','../core/api-client.js','87131nCsRjT','510pSBwpX','service','cancelled','validation','map','1252RQDglz','896763dYmCQv','name','appcode','format','command','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','requiresAppCode','⚠\x20\x20High-risk\x20operation:\x20','riskLevel'];a164_0x2704=function(){return _0x5f55ab;};return a164_0x2704();}export function createPipelineEnv(_0x469936,_0xd436ae,_0xb7a2f=[]){const _0x147816=a164_0x4aac;return{'rawFlags':_0xd436ae,'args':_0xb7a2f,'resolveAppCode':()=>_0x469936['appCode']||_0xd436ae[_0x147816(0x13f)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x469936[_0x147816(0x12a)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x586b52(_0xd436ae),'defaultFormat':_0x469936[_0x147816(0x140)],'defaultPageSize':_0x469936[_0x147816(0x147)],'defaultVerbose':_0x469936['verbose'],'apiDir':_0x469936[_0x147816(0x131)],'riskLevel':_0x469936[_0x147816(0x145)],'selectedAppName':_0x469936['explicitAppName'],'mergedCli':{'defaultApp':_0x469936['defaultApp'],'currentApp':_0x469936['currentApp'],'appCode':_0x469936[_0x147816(0x128)],'apps':_0x469936['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x4a97eb(0x132)](_0x198108=>PIPELINE_FLAG_NAMES[a164_0x4a97eb(0x134)](_0x198108[a164_0x4a97eb(0x13e)]))[a164_0x4a97eb(0x13b)](({name:_0x5ec98f,type:_0x478efe,description:_0x4c7fd5})=>({'name':_0x5ec98f,'type':_0x478efe,'description':_0x4c7fd5})),'formatOutput':formatOutput,'getCommandLabel'(_0x1f8e11){const _0x4017ac=a164_0x4a97eb;return CLI_BIN_NAME+'\x20'+_0x1f8e11[_0x4017ac(0x138)]+'\x20'+_0x1f8e11[_0x4017ac(0x141)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x33ce7c){const _0xb1f1d1=a164_0x4a97eb;return CliErrors[_0xb1f1d1(0x13a)](_0x33ce7c);}},async 'prepare'(_0x45101a,_0x2903b4,_0x2382a2,_0x596b00){const _0x368957=a164_0x4a97eb,_0x3e583f=_0x2903b4[_0x368957(0x131)]||DEFAULT_API_DIR;resolveAliasToCode(_0x45101a,_0x2382a2,_0x3e583f,_0x596b00);let _0x3d0846='';if(_0x45101a['requiresAuth']!==![]){_0x3d0846=_0x2903b4[_0x368957(0x133)]();if(!_0x3d0846)throw CliErrors['authRequired']();const {setActiveCookie:_0x5149ec}=await import(_0x368957(0x135));_0x5149ec(_0x3d0846);}const _0x420f8e=_0x2903b4[_0x368957(0x129)]()??'';if(_0x45101a[_0x368957(0x143)]!==![]){if(!_0x420f8e)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x2903b4[_0x368957(0x126)]},'numbers':{'pagesize':_0x2903b4[_0x368957(0x12c)]}},'extras':{'appCode':_0x420f8e,'cookie':_0x3d0846,'apiDomain':_0x2903b4[_0x368957(0x130)](),'apiDir':_0x3e583f,'selectedAppName':_0x2903b4[_0x368957(0x12f)],'mergedCli':_0x2903b4['mergedCli']}};},async 'confirmHighRisk'({env:_0x77fff6,commandLabel:_0x5d214e}){const _0x329204=a164_0x4a97eb;if(_0x77fff6['isNonInteractive'])throw CliErrors[_0x329204(0x13a)](_0x329204(0x127)+_0x5d214e+_0x329204(0x142));await requireConfirmationPrompt({'lines':[_0x329204(0x144)+_0x5d214e,_0x329204(0x12b)],'createCancelledError':_0x5c2ba1=>CliErrors[_0x329204(0x139)](_0x5c2ba1)});},async 'finalize'(){const _0x23ba7a=a164_0x4a97eb,{clearActiveCookie:_0x450d93}=await import(_0x23ba7a(0x135));_0x450d93();}};export async function runCommand(_0x3c8938,_0x248348){await runCommandWithAdapter(_0x3c8938,_0x248348,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x123615,_0x47f158){const _0x1144a4=a165_0x66d4,_0x2703f0=_0x123615();while(!![]){try{const _0x1df783=parseInt(_0x1144a4(0x1f5))/0x1+-parseInt(_0x1144a4(0x1f4))/0x2*(-parseInt(_0x1144a4(0x1f9))/0x3)+parseInt(_0x1144a4(0x1f1))/0x4+parseInt(_0x1144a4(0x1fa))/0x5*(-parseInt(_0x1144a4(0x1f0))/0x6)+-parseInt(_0x1144a4(0x1f2))/0x7+parseInt(_0x1144a4(0x1f6))/0x8*(parseInt(_0x1144a4(0x1f7))/0x9)+-parseInt(_0x1144a4(0x1f3))/0xa;if(_0x1df783===_0x47f158)break;else _0x2703f0['push'](_0x2703f0['shift']());}catch(_0x409a38){_0x2703f0['push'](_0x2703f0['shift']());}}}(a165_0x5195,0xbc48b));import{buildSchemaPayload as a165_0x26bab6}from'@lovrabet/cli-framework';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';function a165_0x66d4(_0x1a3b47,_0x1fdfcc){_0x1a3b47=_0x1a3b47-0x1f0;const _0x51954c=a165_0x5195();let _0x66d411=_0x51954c[_0x1a3b47];return _0x66d411;}function a165_0x5195(){const _0x3aa32f=['18IVMIwc','115ZPhvoW','48876wAyUkc','2898172clxHJp','8121939RgVFgY','14066570LPKbVt','254404GbwZRN','860143LHiODx','51480ZUUHtK','1647PMvKFa','../commands/registry.js'];a165_0x5195=function(){return _0x3aa32f;};return a165_0x5195();}export async function buildSchemaPayload(){const _0x27d11c=a165_0x66d4,{serviceRegistry:_0x36696f,findDefinition:_0x289bec}=await import(_0x27d11c(0x1f8));return a165_0x26bab6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x36696f,'buildAllFlags':buildAllFlags,'findDefinition':_0x289bec});}
1
+ (function(_0x5419fa,_0x3e0004){const _0x1a122f=a165_0x18c4,_0x42a109=_0x5419fa();while(!![]){try{const _0x514c6f=-parseInt(_0x1a122f(0x1b9))/0x1+-parseInt(_0x1a122f(0x1b1))/0x2*(-parseInt(_0x1a122f(0x1b3))/0x3)+parseInt(_0x1a122f(0x1b2))/0x4+parseInt(_0x1a122f(0x1b8))/0x5+-parseInt(_0x1a122f(0x1b5))/0x6+parseInt(_0x1a122f(0x1b4))/0x7*(parseInt(_0x1a122f(0x1b7))/0x8)+parseInt(_0x1a122f(0x1b6))/0x9*(-parseInt(_0x1a122f(0x1af))/0xa);if(_0x514c6f===_0x3e0004)break;else _0x42a109['push'](_0x42a109['shift']());}catch(_0x5874a6){_0x42a109['push'](_0x42a109['shift']());}}}(a165_0x5290,0x75015));import{buildSchemaPayload as a165_0xbfe9dd}from'@lovrabet/cli-framework';function a165_0x18c4(_0x1f76d8,_0x1282f4){_0x1f76d8=_0x1f76d8-0x1af;const _0x529058=a165_0x5290();let _0x18c4ef=_0x529058[_0x1f76d8];return _0x18c4ef;}function a165_0x5290(){const _0x5430af=['2533065kUnNVY','14854pbYmQK','3596856CJAdQa','18YGQfRJ','2736fpqXNC','515700hNhDdF','842015vbcEMy','2599120UAGiPn','../commands/registry.js','2QzDBhd','3069396McadRu'];a165_0x5290=function(){return _0x5430af;};return a165_0x5290();}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 _0x497707=a165_0x18c4,{serviceRegistry:_0x322efd,findDefinition:_0x60cfa}=await import(_0x497707(0x1b0));return a165_0xbfe9dd({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x322efd,'buildAllFlags':buildAllFlags,'findDefinition':_0x60cfa});}
@@ -1 +1 @@
1
- function a166_0x55ed(_0x3c3562,_0x1f6506){_0x3c3562=_0x3c3562-0x159;var _0x24def5=a166_0x24de();var _0x55ede9=_0x24def5[_0x3c3562];return _0x55ede9;}(function(_0x1bba19,_0x1945e8){var _0x429ee2=a166_0x55ed,_0x4903e3=_0x1bba19();while(!![]){try{var _0x1db10b=parseInt(_0x429ee2(0x15a))/0x1*(parseInt(_0x429ee2(0x15b))/0x2)+parseInt(_0x429ee2(0x15d))/0x3*(parseInt(_0x429ee2(0x15c))/0x4)+parseInt(_0x429ee2(0x163))/0x5+-parseInt(_0x429ee2(0x15e))/0x6+parseInt(_0x429ee2(0x15f))/0x7*(parseInt(_0x429ee2(0x161))/0x8)+parseInt(_0x429ee2(0x162))/0x9+-parseInt(_0x429ee2(0x159))/0xa*(parseInt(_0x429ee2(0x160))/0xb);if(_0x1db10b===_0x1945e8)break;else _0x4903e3['push'](_0x4903e3['shift']());}catch(_0x1c44ca){_0x4903e3['push'](_0x4903e3['shift']());}}}(a166_0x24de,0x98f5e));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x24de(){var _0x4a9fa3=['356ZRWgJf','31839TVERLI','2461734fvLJab','553VvGFXZ','7307234dZQfjN','16464atxuKs','3560418UroMlp','573165yFblIm','10nvidbn','83735QRLcYN','2XfnWgS'];a166_0x24de=function(){return _0x4a9fa3;};return a166_0x24de();}
1
+ function a166_0x558d(_0x1553c9,_0x5df480){_0x1553c9=_0x1553c9-0x104;var _0x8b8b67=a166_0x8b8b();var _0x558d8a=_0x8b8b67[_0x1553c9];return _0x558d8a;}(function(_0x582552,_0x59ca73){var _0x3d8f03=a166_0x558d,_0x3f0b63=_0x582552();while(!![]){try{var _0x4877ed=-parseInt(_0x3d8f03(0x108))/0x1*(parseInt(_0x3d8f03(0x107))/0x2)+-parseInt(_0x3d8f03(0x10a))/0x3*(-parseInt(_0x3d8f03(0x110))/0x4)+parseInt(_0x3d8f03(0x106))/0x5*(parseInt(_0x3d8f03(0x10c))/0x6)+parseInt(_0x3d8f03(0x10d))/0x7*(-parseInt(_0x3d8f03(0x10f))/0x8)+-parseInt(_0x3d8f03(0x105))/0x9+parseInt(_0x3d8f03(0x109))/0xa*(parseInt(_0x3d8f03(0x104))/0xb)+parseInt(_0x3d8f03(0x10b))/0xc*(parseInt(_0x3d8f03(0x10e))/0xd);if(_0x4877ed===_0x59ca73)break;else _0x3f0b63['push'](_0x3f0b63['shift']());}catch(_0x51b1e2){_0x3f0b63['push'](_0x3f0b63['shift']());}}}(a166_0x8b8b,0xb6b61));function a166_0x8b8b(){var _0x298548=['3159415iPOpnZ','2osHbHz','1495274QDGuJF','10377200ohimPx','893571OWyqXh','17462892dDxUHj','6TGNJJa','179893ZXNaKV','13aFJZbp','248gpWFWi','12QXSFyM','11OKTHAU','8802783HQOyvJ'];a166_0x8b8b=function(){return _0x298548;};return a166_0x8b8b();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a167_0x287e6e=a167_0xb15f;function a167_0x36a9(){const _0x5e33b2=['297822weanNc','1894086uxoHkM','v2.1.7-beta.6','52af7c2','16pfYkgT','30FPsVph','230gHzuJF','5pqpocx','309398WcDKiJ','5331940agycEI','16623684PWVbEA','3621594iaeNLE','110880OMRMtf'];a167_0x36a9=function(){return _0x5e33b2;};return a167_0x36a9();}(function(_0x276600,_0x4605eb){const _0x54f18a=a167_0xb15f,_0x1605c3=_0x276600();while(!![]){try{const _0x30bd43=parseInt(_0x54f18a(0x142))/0x1*(-parseInt(_0x54f18a(0x143))/0x2)+parseInt(_0x54f18a(0x146))/0x3+parseInt(_0x54f18a(0x147))/0x4*(-parseInt(_0x54f18a(0x141))/0x5)+-parseInt(_0x54f18a(0x140))/0x6*(-parseInt(_0x54f18a(0x148))/0x7)+-parseInt(_0x54f18a(0x13f))/0x8*(-parseInt(_0x54f18a(0x13c))/0x9)+-parseInt(_0x54f18a(0x144))/0xa+parseInt(_0x54f18a(0x145))/0xb;if(_0x30bd43===_0x4605eb)break;else _0x1605c3['push'](_0x1605c3['shift']());}catch(_0x906406){_0x1605c3['push'](_0x1605c3['shift']());}}}(a167_0x36a9,0xbc0df));function a167_0xb15f(_0x552d2c,_0x5918bc){_0x552d2c=_0x552d2c-0x13c;const _0x36a99f=a167_0x36a9();let _0xb15f3e=_0x36a99f[_0x552d2c];return _0xb15f3e;}export const VERSION='2.1.7-beta.6';export const GIT_TAG=a167_0x287e6e(0x13d);export const GIT_COMMIT=a167_0x287e6e(0x13e);export const BUILD_TIME='2026-04-26T08:55:47.954Z';
1
+ const a167_0xbef2da=a167_0x3516;(function(_0x23b488,_0x43aed1){const _0x87310a=a167_0x3516,_0x442e52=_0x23b488();while(!![]){try{const _0x710b3e=-parseInt(_0x87310a(0xc3))/0x1+-parseInt(_0x87310a(0xc0))/0x2*(parseInt(_0x87310a(0xbd))/0x3)+-parseInt(_0x87310a(0xc2))/0x4+-parseInt(_0x87310a(0xbe))/0x5*(-parseInt(_0x87310a(0xc1))/0x6)+-parseInt(_0x87310a(0xbb))/0x7+-parseInt(_0x87310a(0xbf))/0x8+-parseInt(_0x87310a(0xc4))/0x9*(-parseInt(_0x87310a(0xb9))/0xa);if(_0x710b3e===_0x43aed1)break;else _0x442e52['push'](_0x442e52['shift']());}catch(_0x456fdb){_0x442e52['push'](_0x442e52['shift']());}}}(a167_0x3f0b,0xc7bd6));function a167_0x3f0b(){const _0x56f0b9=['3238790teNsMm','2.1.7-beta.7','6893887iPbBDP','2026-04-26T13:13:56.563Z','3Bnykpv','6678905BMJYfm','11635880StbdNZ','1240618UufbJQ','6pUJvdm','6529368gyZMcj','1007734WyQrfR','144wPImoq'];a167_0x3f0b=function(){return _0x56f0b9;};return a167_0x3f0b();}export const VERSION=a167_0xbef2da(0xba);function a167_0x3516(_0x1ac359,_0x55e094){_0x1ac359=_0x1ac359-0xb9;const _0x3f0b61=a167_0x3f0b();let _0x35169d=_0x3f0b61[_0x1ac359];return _0x35169d;}export const GIT_TAG='v2.1.7-beta.7';export const GIT_COMMIT='822e46d';export const BUILD_TIME=a167_0xbef2da(0xbc);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x59ccd2,_0x478ec6){var _0x48086c=a168_0x3908,_0x1a6135=_0x59ccd2();while(!![]){try{var _0x3c1f73=parseInt(_0x48086c(0x1c0))/0x1+-parseInt(_0x48086c(0x1c2))/0x2+-parseInt(_0x48086c(0x1c4))/0x3*(-parseInt(_0x48086c(0x1c3))/0x4)+parseInt(_0x48086c(0x1bf))/0x5*(parseInt(_0x48086c(0x1c1))/0x6)+-parseInt(_0x48086c(0x1c5))/0x7+parseInt(_0x48086c(0x1be))/0x8+-parseInt(_0x48086c(0x1bd))/0x9;if(_0x3c1f73===_0x478ec6)break;else _0x1a6135['push'](_0x1a6135['shift']());}catch(_0x24985d){_0x1a6135['push'](_0x1a6135['shift']());}}}(a168_0xab40,0x1b825));import a168_0x3477f5 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x537bfc=a168_0x3908;console['log'](),console[_0x537bfc(0x1ba)](a168_0x3477f5[_0x537bfc(0x1bb)][_0x537bfc(0x1bc)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x537bfc(0x1ba)]('\x20\x20Use\x20'+a168_0x3477f5['green'][_0x537bfc(0x1bc)](CLI_BIN_NAME+_0x537bfc(0x1b9))+_0x537bfc(0x1c6)),console[_0x537bfc(0x1ba)]();}function a168_0x3908(_0x584d93,_0x5297e4){_0x584d93=_0x584d93-0x1b9;var _0xab406d=a168_0xab40();var _0x3908d8=_0xab406d[_0x584d93];return _0x3908d8;}function a168_0xab40(){var _0x2f3cee=['193795AJCDRJ','\x20to\x20view\x20available\x20commands.','\x20--help','log','green','bold','2264742oVbYYT','825104QmAmwN','195CIgbvY','168642pjwUBU','27834yvGRQq','270246KwVUpF','297688cmTdaN','3eVCyRx'];a168_0xab40=function(){return _0x2f3cee;};return a168_0xab40();}
1
+ (function(_0x20dd70,_0x4518d9){var _0x310965=a168_0x4fbf,_0x1d8297=_0x20dd70();while(!![]){try{var _0x2ccad1=parseInt(_0x310965(0x1b6))/0x1+-parseInt(_0x310965(0x1c2))/0x2+-parseInt(_0x310965(0x1b4))/0x3*(-parseInt(_0x310965(0x1bd))/0x4)+-parseInt(_0x310965(0x1c0))/0x5*(-parseInt(_0x310965(0x1bc))/0x6)+parseInt(_0x310965(0x1b3))/0x7*(-parseInt(_0x310965(0x1ba))/0x8)+-parseInt(_0x310965(0x1b7))/0x9*(parseInt(_0x310965(0x1bf))/0xa)+parseInt(_0x310965(0x1be))/0xb*(parseInt(_0x310965(0x1bb))/0xc);if(_0x2ccad1===_0x4518d9)break;else _0x1d8297['push'](_0x1d8297['shift']());}catch(_0xfe9e51){_0x1d8297['push'](_0x1d8297['shift']());}}}(a168_0x536e,0x99130));import a168_0x422082 from'chalk';function a168_0x4fbf(_0x5d3b26,_0x4d470d){_0x5d3b26=_0x5d3b26-0x1b3;var _0x536ea6=a168_0x536e();var _0x4fbfb7=_0x536ea6[_0x5d3b26];return _0x4fbfb7;}function a168_0x536e(){var _0x1a89ea=['10142099fmSqyZ','8769630kGswYM','484810wxaKXa','green','2173996HHplJb','1964879iICtfJ','21957CjiGXD','bold','212471kxaoQS','9MhbOQB','log','\x20\x20Use\x20','16poUJty','24xoypEz','66rVUWCz','16fHTGqm'];a168_0x536e=function(){return _0x1a89ea;};return a168_0x536e();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x5375ac=a168_0x4fbf;console['log'](),console['log'](a168_0x422082['green'][_0x5375ac(0x1b5)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5375ac(0x1b8)](),console[_0x5375ac(0x1b8)](_0x5375ac(0x1b9)+a168_0x422082[_0x5375ac(0x1c1)]['bold'](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x5375ac(0x1b8)]();}
@@ -1 +1 @@
1
- (function(_0x2176fb,_0x1c6dba){const _0x38afa7=a169_0x3e66,_0x444abd=_0x2176fb();while(!![]){try{const _0x10e01c=-parseInt(_0x38afa7(0xaf))/0x1+-parseInt(_0x38afa7(0xae))/0x2+parseInt(_0x38afa7(0x93))/0x3+-parseInt(_0x38afa7(0x9b))/0x4+-parseInt(_0x38afa7(0xa7))/0x5*(parseInt(_0x38afa7(0xaa))/0x6)+-parseInt(_0x38afa7(0x95))/0x7+parseInt(_0x38afa7(0xb6))/0x8;if(_0x10e01c===_0x1c6dba)break;else _0x444abd['push'](_0x444abd['shift']());}catch(_0x2bdd2b){_0x444abd['push'](_0x444abd['shift']());}}}(a169_0x2201,0x9032f));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(_0x10e60a){const _0x39c198=a169_0x3e66,_0x3cf78f=[];for(const [_0x4dff27,_0x19866d]of Object[_0x39c198(0x96)](_0x10e60a)){if(_0x19866d===!![]){const _0x1a2330=_0x4dff27[_0x39c198(0xb0)](/([A-Z])/g,'-$1')[_0x39c198(0xa8)]();_0x3cf78f[_0x39c198(0x9e)](_0x1a2330);}}return _0x3cf78f;}export function parseDynamicFlags(){const _0x41c2e6=a169_0x3e66,_0x406ba3=[];for(let _0x55c20d=0x3;_0x55c20d<process[_0x41c2e6(0x92)][_0x41c2e6(0x9f)];_0x55c20d++){const _0x5a2b11=process[_0x41c2e6(0x92)][_0x55c20d];if(_0x5a2b11&&_0x5a2b11[_0x41c2e6(0xb3)]('--')){const _0x27c847=_0x5a2b11['slice'](0x2);_0x27c847&&!_0x27c847['includes']('=')&&_0x406ba3[_0x41c2e6(0x9e)](_0x27c847);}}return _0x406ba3;}export function getAllProvidedFlags(_0x403d6f){const _0x5a9401=camelCaseFlagsToKebab(_0x403d6f),_0x1af56e=parseDynamicFlags(),_0x4ba15a=new Set([..._0x5a9401,..._0x1af56e]);return Array['from'](_0x4ba15a);}export function normalizeLegacyBffSaveFlags(_0x3f2bbb){const _0x47c4db=a169_0x3e66,_0x4d41d8=new Set(_0x3f2bbb);return _0x4d41d8[_0x47c4db(0xb5)](_0x47c4db(0xac))&&_0x4d41d8[_0x47c4db(0xa0)](_0x47c4db(0xab)),Array[_0x47c4db(0xad)](_0x4d41d8);}function a169_0x2201(){const _0x4aaea8=['\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','cwd','push','length','add','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','Equivalent\x20command:\x20','error','Error:\x20Unsupported\x20command:\x20','5xacJYQ','toLowerCase','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','232770nySLcO','enable-bff-save','dangerously-bff-save','from','512178pJGaCZ','482267qWMBDy','replace','\x0aAvailable\x20commands:','setLogPath','startsWith','exit','has','5003216ljVuby','argv','3150675UuaMPU','skill','1635662oMvznr','entries','(empty)','log','help','--help','296684wfULQR'];a169_0x2201=function(){return _0x4aaea8;};return a169_0x2201();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xc1100a,_0x36755d,_0x800277){const _0x127317=a169_0x3e66;logger[_0x127317(0xb2)](process[_0x127317(0x9d)]());if(_0x800277?.[_0x127317(0x99)]||_0xc1100a===_0x127317(0x9a)){showHelp();return;}console[_0x127317(0xa5)](_0x127317(0xa6)+(_0xc1100a||_0x127317(0x97))),console[_0x127317(0x98)](_0x127317(0xb1)),console[_0x127317(0x98)]('\x20\x20'+CLI_BIN_NAME+_0x127317(0xa1)),console[_0x127317(0x98)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x127317(0x98)](''),console[_0x127317(0x98)](_0x127317(0xa4)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x127317(0x94),'不支持的命令:\x20'+_0xc1100a),process[_0x127317(0xb4)](0x1);}function a169_0x3e66(_0x5cbeff,_0x4144a1){_0x5cbeff=_0x5cbeff-0x92;const _0x22017d=a169_0x2201();let _0x3e666a=_0x22017d[_0x5cbeff];return _0x3e666a;}function showHelp(){const _0x1e1189=a169_0x3e66;console[_0x1e1189(0x98)](_0x1e1189(0x9c)+CLI_BIN_NAME+_0x1e1189(0xa2)+CLI_BIN_NAME+_0x1e1189(0xa3)+SKILLS_INSTALL_COMMAND_LINE+_0x1e1189(0xa9));}
1
+ (function(_0x5d6313,_0x583dd7){const _0x32c953=a169_0x3f8e,_0x17d359=_0x5d6313();while(!![]){try{const _0x3c977a=parseInt(_0x32c953(0xf9))/0x1*(-parseInt(_0x32c953(0x107))/0x2)+parseInt(_0x32c953(0xec))/0x3+parseInt(_0x32c953(0x103))/0x4+-parseInt(_0x32c953(0xe9))/0x5+-parseInt(_0x32c953(0x101))/0x6+-parseInt(_0x32c953(0xfb))/0x7+parseInt(_0x32c953(0xfd))/0x8*(parseInt(_0x32c953(0xfa))/0x9);if(_0x3c977a===_0x583dd7)break;else _0x17d359['push'](_0x17d359['shift']());}catch(_0x3359e1){_0x17d359['push'](_0x17d359['shift']());}}}(a169_0x48ac,0xd0af9));import{logger}from'../utils/logger.js';function a169_0x3f8e(_0x5473f0,_0x2337b7){_0x5473f0=_0x5473f0-0xe9;const _0x48ace4=a169_0x48ac();let _0x3f8e77=_0x48ace4[_0x5473f0];return _0x3f8e77;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x40af45){const _0x2328db=a169_0x3f8e,_0xa20dd2=[];for(const [_0x4d9dce,_0x1ee91d]of Object[_0x2328db(0xff)](_0x40af45)){if(_0x1ee91d===!![]){const _0xba0a40=_0x4d9dce[_0x2328db(0x105)](/([A-Z])/g,_0x2328db(0xfc))[_0x2328db(0xed)]();_0xa20dd2[_0x2328db(0xf0)](_0xba0a40);}}return _0xa20dd2;}function a169_0x48ac(){const _0x224ae3=['exit','argv','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','help','includes','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','884045hvOcXv','128565aKhdBh','820911oFldYS','-$1','1392DPmaDE','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','entries','enable-bff-save','1251918uJMZSx','不支持的命令:\x20','280880CIqkXf','from','replace','startsWith','2dMiQHs','dangerously-bff-save','skill','cwd','--help','3951885JSmbcL','(empty)','add','897945KjeFtC','toLowerCase','Equivalent\x20command:\x20','error','push'];a169_0x48ac=function(){return _0x224ae3;};return a169_0x48ac();}export function parseDynamicFlags(){const _0xd1e8bd=a169_0x3f8e,_0x27f931=[];for(let _0x309a03=0x3;_0x309a03<process[_0xd1e8bd(0xf2)]['length'];_0x309a03++){const _0x372887=process['argv'][_0x309a03];if(_0x372887&&_0x372887[_0xd1e8bd(0x106)]('--')){const _0x341d0a=_0x372887['slice'](0x2);_0x341d0a&&!_0x341d0a[_0xd1e8bd(0xf6)]('=')&&_0x27f931[_0xd1e8bd(0xf0)](_0x341d0a);}}return _0x27f931;}export function getAllProvidedFlags(_0x3bb8a1){const _0x5e0bb5=a169_0x3f8e,_0x442869=camelCaseFlagsToKebab(_0x3bb8a1),_0x364891=parseDynamicFlags(),_0x435bf0=new Set([..._0x442869,..._0x364891]);return Array[_0x5e0bb5(0x104)](_0x435bf0);}export function normalizeLegacyBffSaveFlags(_0x2a39c1){const _0x3e9ba8=a169_0x3f8e,_0x4673d1=new Set(_0x2a39c1);return _0x4673d1['has'](_0x3e9ba8(0x108))&&_0x4673d1[_0x3e9ba8(0xeb)](_0x3e9ba8(0x100)),Array[_0x3e9ba8(0x104)](_0x4673d1);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x210c2e,_0x356e2a,_0x16411e){const _0x1705fe=a169_0x3f8e;logger[_0x1705fe(0xf3)](process[_0x1705fe(0x10a)]());if(_0x16411e?.[_0x1705fe(0xf5)]||_0x210c2e===_0x1705fe(0x10b)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x210c2e||_0x1705fe(0xea))),console['log']('\x0aAvailable\x20commands:'),console[_0x1705fe(0xf7)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x1705fe(0xf7)]('\x20\x20'+CLI_BIN_NAME+_0x1705fe(0xfe)),console[_0x1705fe(0xf7)](''),console[_0x1705fe(0xf7)](_0x1705fe(0xee)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1705fe(0xef)](_0x1705fe(0x109),_0x1705fe(0x102)+_0x210c2e),process[_0x1705fe(0xf1)](0x1);}function showHelp(){const _0x4ff640=a169_0x3f8e;console[_0x4ff640(0xf7)](_0x4ff640(0xf4)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4ff640(0xf8));}
@@ -1 +1 @@
1
- const a170_0x131b78=a170_0xc5f8;(function(_0x4a9e29,_0x4ca622){const _0x41bd8e=a170_0xc5f8,_0x11b64a=_0x4a9e29();while(!![]){try{const _0x32b35e=-parseInt(_0x41bd8e(0xf0))/0x1*(-parseInt(_0x41bd8e(0xee))/0x2)+-parseInt(_0x41bd8e(0xf9))/0x3+-parseInt(_0x41bd8e(0x102))/0x4+parseInt(_0x41bd8e(0xeb))/0x5+-parseInt(_0x41bd8e(0xf4))/0x6*(parseInt(_0x41bd8e(0xf2))/0x7)+parseInt(_0x41bd8e(0xe9))/0x8*(parseInt(_0x41bd8e(0xf7))/0x9)+parseInt(_0x41bd8e(0xff))/0xa;if(_0x32b35e===_0x4ca622)break;else _0x11b64a['push'](_0x11b64a['shift']());}catch(_0x339ed8){_0x11b64a['push'](_0x11b64a['shift']());}}}(a170_0x5b7a,0xb26ad));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_0x131b78(0xfd);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x131b78(0xf5);function a170_0xc5f8(_0x488fd9,_0x5bf0b1){_0x488fd9=_0x488fd9-0xe6;const _0x5b7a5a=a170_0x5b7a();let _0xc5f839=_0x5b7a5a[_0x488fd9];return _0xc5f839;}export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0x131b78(0xf8);export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x131b78(0xe7);export function buildNpxSkillsAddArgv(_0xa6bed4=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0xa6bed4];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x131b78(0x100),...buildNpxSkillsAddArgv()][a170_0x131b78(0xef)]('\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');function a170_0x5b7a(){const _0x3020a9=['add','exit\x20','117BRnPQi','lovrabet/lovrabet-skill','1514742EhxnVF','log','toString','inherit','skills','pipe','16880540lNPyWT','npx','trim','1562720PAwiJr','stdio','stderr','Lovrabet','remove','483680UNaXAg','unknown','1183640FvVdqm','stdout','skill','1328THPLGC','join','470JHDtFq','status','199493DVvYEm','yes','294ibQJap'];a170_0x5b7a=function(){return _0x3020a9;};return a170_0x5b7a();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x126b71,_0x589ed1){const _0x1da6be=a170_0x131b78;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14fb49=_0x589ed1?.['stdio']??_0x1da6be(0xfc),_0x3182fd=resolveNpmBin(_0x1da6be(0x100)),_0x3a4be2=buildNpxSkillsAddArgv(_0x589ed1?.[_0x1da6be(0xed)]??DEFAULT_RABETBASE_SKILL_NAME),_0x1ce4aa=[_0x1da6be(0x100),..._0x3a4be2][_0x1da6be(0xef)]('\x20');console['log']('*\x20'+_0x1ce4aa);const _0x4ed4dd=spawnSync(_0x3182fd,_0x3a4be2,{'cwd':_0x126b71,'stdio':_0x14fb49,'env':process.env,'shell':![]}),_0x393e00=_0x4ed4dd[_0x1da6be(0xf1)];if(_0x393e00===0x0)return{'ok':!![],'status':0x0};let _0x1115bf=_0x1da6be(0xf6)+(_0x393e00??_0x1da6be(0xea));if(_0x14fb49===_0x1da6be(0xfe)){const _0x5b8750=_0x4ed4dd['stderr']?_0x4ed4dd[_0x1da6be(0xe6)][_0x1da6be(0xfb)]()['trim']():'',_0x4a19cd=_0x4ed4dd['stdout']?_0x4ed4dd[_0x1da6be(0xec)][_0x1da6be(0xfb)]()[_0x1da6be(0x101)]():'';if(_0x5b8750)_0x1115bf=_0x5b8750;else{if(_0x4a19cd)_0x1115bf=_0x4a19cd;}}return{'ok':![],'status':_0x393e00??null,'error':_0x1115bf};}export function runNpxSkillsRemove(_0x1d103d,_0x998c79,_0x2e7e0c=LEGACY_RABETBASE_SKILL_SOURCE){const _0x3391cf=a170_0x131b78;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4dac5f=_0x998c79?.[_0x3391cf(0x103)]??'inherit',_0x2eb9e0=resolveNpmBin(_0x3391cf(0x100)),_0x34390c=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x3391cf(0xe8),_0x2e7e0c,NPX_SKILLS_FLAG_SKILL,_0x998c79?.[_0x3391cf(0xed)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x998c79?.[_0x3391cf(0xf3)]?['-y']:[]],_0xf1c861=[_0x2eb9e0,..._0x34390c][_0x3391cf(0xef)]('\x20');console[_0x3391cf(0xfa)]('*\x20'+_0xf1c861);const _0x17494d=spawnSync(_0x2eb9e0,_0x34390c,{'cwd':_0x1d103d,'stdio':_0x4dac5f,'env':process.env,'shell':![]}),_0x501cba=_0x17494d[_0x3391cf(0xf1)];if(_0x501cba===0x0)return{'ok':!![],'status':0x0};let _0x8a6f53=_0x3391cf(0xf6)+(_0x501cba??_0x3391cf(0xea));if(_0x4dac5f==='pipe'){const _0x1ad3b3=_0x17494d['stderr']?_0x17494d[_0x3391cf(0xe6)][_0x3391cf(0xfb)]()[_0x3391cf(0x101)]():'',_0x582e73=_0x17494d[_0x3391cf(0xec)]?_0x17494d[_0x3391cf(0xec)][_0x3391cf(0xfb)]()[_0x3391cf(0x101)]():'';if(_0x1ad3b3)_0x8a6f53=_0x1ad3b3;else{if(_0x582e73)_0x8a6f53=_0x582e73;}}return{'ok':![],'status':_0x501cba??null,'error':_0x8a6f53};}export function runNpxSkillsAddGlobal(_0x41c2ca,_0x14563e,_0x4049ec){const _0x56d1d9=a170_0x131b78;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5662c7=_0x4049ec?.[_0x56d1d9(0x103)]??_0x56d1d9(0xfc),_0x55f421=resolveNpmBin(_0x56d1d9(0x100)),_0x7c7882=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x14563e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x73fe3a=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x14563e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x56d1d9(0xef)]('\x20');console['log']('*\x20'+_0x73fe3a);const _0x1e8c2a=spawnSync(_0x55f421,_0x7c7882,{'cwd':_0x41c2ca,'stdio':_0x5662c7,'env':process.env,'shell':![]}),_0x55a53c=_0x1e8c2a[_0x56d1d9(0xf1)];if(_0x55a53c===0x0)return{'ok':!![],'status':0x0};let _0xcba791=_0x56d1d9(0xf6)+(_0x55a53c??'unknown');if(_0x5662c7===_0x56d1d9(0xfe)){const _0x110bd0=_0x1e8c2a[_0x56d1d9(0xe6)]?_0x1e8c2a['stderr'][_0x56d1d9(0xfb)]()[_0x56d1d9(0x101)]():'',_0x24df83=_0x1e8c2a['stdout']?_0x1e8c2a[_0x56d1d9(0xec)]['toString']()[_0x56d1d9(0x101)]():'';if(_0x110bd0)_0xcba791=_0x110bd0;else{if(_0x24df83)_0xcba791=_0x24df83;}}return{'ok':![],'status':_0x55a53c??null,'error':_0xcba791};}
1
+ const a170_0x4e3ea0=a170_0x273b;(function(_0x132811,_0x64d433){const _0x6b7d06=a170_0x273b,_0x168eaf=_0x132811();while(!![]){try{const _0x1eb9b1=-parseInt(_0x6b7d06(0x167))/0x1+parseInt(_0x6b7d06(0x173))/0x2*(-parseInt(_0x6b7d06(0x174))/0x3)+-parseInt(_0x6b7d06(0x172))/0x4*(parseInt(_0x6b7d06(0x16c))/0x5)+parseInt(_0x6b7d06(0x180))/0x6*(-parseInt(_0x6b7d06(0x181))/0x7)+-parseInt(_0x6b7d06(0x17b))/0x8+-parseInt(_0x6b7d06(0x177))/0x9+parseInt(_0x6b7d06(0x175))/0xa;if(_0x1eb9b1===_0x64d433)break;else _0x168eaf['push'](_0x168eaf['shift']());}catch(_0x4479d8){_0x168eaf['push'](_0x168eaf['shift']());}}}(a170_0x4740,0x5d948));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='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x4e3ea0(0x16a);export const NPX_SKILLS_FLAG_SKILL=a170_0x4e3ea0(0x168);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0x4e3ea0(0x183);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x141e00=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x141e00];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x4e3ea0(0x170),...buildNpxSkillsAddArgv()]['join']('\x20');function a170_0x273b(_0x524111,_0x53a206){_0x524111=_0x524111-0x167;const _0x474055=a170_0x4740();let _0x273b35=_0x474055[_0x524111];return _0x273b35;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x4e3ea0(0x170),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a170_0x4e3ea0(0x178)]('\x20');function a170_0x4740(){const _0x1cda55=['1594103dAmpfd','trim','lovrabet/lovrabet-skill','178805YDNiLf','--skill','skill','add','exit\x20','3715vaHUEi','stdout','unknown','yes','npx','status','2308pfbKsx','492698mQMekH','6JeTknt','27579600yQdLVX','log','3727305rvgihq','join','stderr','inherit','3238712KUcSfz','stdio','pipe','remove','toString','12GoYZVI'];a170_0x4740=function(){return _0x1cda55;};return a170_0x4740();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x51b694,_0x55723a){const _0x5efcd2=a170_0x4e3ea0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x39682f=_0x55723a?.[_0x5efcd2(0x17c)]??_0x5efcd2(0x17a),_0x5f357b=resolveNpmBin(_0x5efcd2(0x170)),_0x4f4438=buildNpxSkillsAddArgv(_0x55723a?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x439187=[_0x5efcd2(0x170),..._0x4f4438][_0x5efcd2(0x178)]('\x20');console[_0x5efcd2(0x176)]('*\x20'+_0x439187);const _0x367c1e=spawnSync(_0x5f357b,_0x4f4438,{'cwd':_0x51b694,'stdio':_0x39682f,'env':process.env,'shell':![]}),_0x2208a1=_0x367c1e['status'];if(_0x2208a1===0x0)return{'ok':!![],'status':0x0};let _0x129fa8='exit\x20'+(_0x2208a1??'unknown');if(_0x39682f==='pipe'){const _0x467ed0=_0x367c1e[_0x5efcd2(0x179)]?_0x367c1e[_0x5efcd2(0x179)][_0x5efcd2(0x17f)]()['trim']():'',_0xb6c84f=_0x367c1e['stdout']?_0x367c1e['stdout'][_0x5efcd2(0x17f)]()[_0x5efcd2(0x182)]():'';if(_0x467ed0)_0x129fa8=_0x467ed0;else{if(_0xb6c84f)_0x129fa8=_0xb6c84f;}}return{'ok':![],'status':_0x2208a1??null,'error':_0x129fa8};}export function runNpxSkillsRemove(_0x254544,_0x495ba2,_0x23a213=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1302aa=a170_0x4e3ea0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x24d7ba=_0x495ba2?.[_0x1302aa(0x17c)]??_0x1302aa(0x17a),_0x175543=resolveNpmBin('npx'),_0x20e47c=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x1302aa(0x17e),_0x23a213,NPX_SKILLS_FLAG_SKILL,_0x495ba2?.[_0x1302aa(0x169)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x495ba2?.[_0x1302aa(0x16f)]?['-y']:[]],_0xdf7bdc=[_0x175543,..._0x20e47c][_0x1302aa(0x178)]('\x20');console[_0x1302aa(0x176)]('*\x20'+_0xdf7bdc);const _0x46645b=spawnSync(_0x175543,_0x20e47c,{'cwd':_0x254544,'stdio':_0x24d7ba,'env':process.env,'shell':![]}),_0x21c8ac=_0x46645b[_0x1302aa(0x171)];if(_0x21c8ac===0x0)return{'ok':!![],'status':0x0};let _0x17502f=_0x1302aa(0x16b)+(_0x21c8ac??_0x1302aa(0x16e));if(_0x24d7ba==='pipe'){const _0x29c66b=_0x46645b['stderr']?_0x46645b[_0x1302aa(0x179)][_0x1302aa(0x17f)]()[_0x1302aa(0x182)]():'',_0xd0c95d=_0x46645b[_0x1302aa(0x16d)]?_0x46645b[_0x1302aa(0x16d)][_0x1302aa(0x17f)]()[_0x1302aa(0x182)]():'';if(_0x29c66b)_0x17502f=_0x29c66b;else{if(_0xd0c95d)_0x17502f=_0xd0c95d;}}return{'ok':![],'status':_0x21c8ac??null,'error':_0x17502f};}export function runNpxSkillsAddGlobal(_0x2b8512,_0x36c3e3,_0x18dcc8){const _0x546387=a170_0x4e3ea0;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28e692=_0x18dcc8?.[_0x546387(0x17c)]??'inherit',_0x3a8fb7=resolveNpmBin(_0x546387(0x170)),_0x820958=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36c3e3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x291686=[_0x546387(0x170),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x36c3e3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x546387(0x178)]('\x20');console['log']('*\x20'+_0x291686);const _0x1e317d=spawnSync(_0x3a8fb7,_0x820958,{'cwd':_0x2b8512,'stdio':_0x28e692,'env':process.env,'shell':![]}),_0x20fdd0=_0x1e317d[_0x546387(0x171)];if(_0x20fdd0===0x0)return{'ok':!![],'status':0x0};let _0x26dbc7=_0x546387(0x16b)+(_0x20fdd0??_0x546387(0x16e));if(_0x28e692===_0x546387(0x17d)){const _0x568221=_0x1e317d[_0x546387(0x179)]?_0x1e317d[_0x546387(0x179)]['toString']()[_0x546387(0x182)]():'',_0x4ff06d=_0x1e317d[_0x546387(0x16d)]?_0x1e317d[_0x546387(0x16d)]['toString']()[_0x546387(0x182)]():'';if(_0x568221)_0x26dbc7=_0x568221;else{if(_0x4ff06d)_0x26dbc7=_0x4ff06d;}}return{'ok':![],'status':_0x20fdd0??null,'error':_0x26dbc7};}
@@ -1 +1 @@
1
- function a171_0x153d(_0xcea5d0,_0xb5397e){_0xcea5d0=_0xcea5d0-0xda;const _0x1748eb=a171_0x1748();let _0x153d83=_0x1748eb[_0xcea5d0];return _0x153d83;}(function(_0x5866b9,_0x385d19){const _0x3aa1c5=a171_0x153d,_0x523ecd=_0x5866b9();while(!![]){try{const _0x2a2605=-parseInt(_0x3aa1c5(0xde))/0x1+parseInt(_0x3aa1c5(0xdf))/0x2+-parseInt(_0x3aa1c5(0xe8))/0x3+parseInt(_0x3aa1c5(0xe7))/0x4+parseInt(_0x3aa1c5(0xea))/0x5*(parseInt(_0x3aa1c5(0xdb))/0x6)+-parseInt(_0x3aa1c5(0xe1))/0x7*(parseInt(_0x3aa1c5(0xe4))/0x8)+parseInt(_0x3aa1c5(0xeb))/0x9*(parseInt(_0x3aa1c5(0xe9))/0xa);if(_0x2a2605===_0x385d19)break;else _0x523ecd['push'](_0x523ecd['shift']());}catch(_0x4a809b){_0x523ecd['push'](_0x523ecd['shift']());}}}(a171_0x1748,0x42fb0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a171_0x1748(){const _0x284609=['370792SIUPKw','durationMs','test','1433016emtHLc','798981oQJJsI','2886770DJyGNP','10vkVQXq','9pRhjVe','some','stringify','[REDACTED]','1218kShpyT','error','entries','201249OoANdT','374578aNQzqR','rabetbase.command','14MELljs','flags','command'];a171_0x1748=function(){return _0x284609;};return a171_0x1748();}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(_0xf8612f){const _0x584b46=a171_0x153d;return SENSITIVE_PATTERNS[_0x584b46(0xec)](_0x272d52=>_0x272d52[_0x584b46(0xe6)](_0xf8612f));}function sanitizeFlags(_0x213ce9){const _0x8d1fb2=a171_0x153d,_0x334a2b={};for(const [_0x5d54db,_0x2c9752]of Object[_0x8d1fb2(0xdd)](_0x213ce9)){isSensitiveKey(_0x5d54db)?_0x334a2b[_0x5d54db]=_0x2c9752!=null&&_0x2c9752!==''?_0x8d1fb2(0xda):_0x2c9752:_0x334a2b[_0x5d54db]=_0x2c9752;}return _0x334a2b;}export async function reportCommandTrace(_0x36ed0b){const _0x2b14b7=a171_0x153d;try{const _0x6c9be4=sanitizeFlags(_0x36ed0b[_0x2b14b7(0xe2)]);await sendCliTraceLog({'spanName':_0x2b14b7(0xe0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x36ed0b['service'],'command.name':_0x36ed0b[_0x2b14b7(0xe3)],'command.flags':JSON[_0x2b14b7(0xed)](_0x6c9be4),..._0x36ed0b[_0x2b14b7(0xe5)]!=null?{'command.duration_ms':_0x36ed0b['durationMs']}:{},..._0x36ed0b[_0x2b14b7(0xdc)]?{'command.error':_0x36ed0b[_0x2b14b7(0xdc)]instanceof Error?_0x36ed0b[_0x2b14b7(0xdc)]['message']:String(_0x36ed0b[_0x2b14b7(0xdc)])}:{}}});}catch{}}
1
+ function a171_0x51d0(_0xf53583,_0x3904f2){_0xf53583=_0xf53583-0x1c2;const _0xc08659=a171_0xc086();let _0x51d07a=_0xc08659[_0xf53583];return _0x51d07a;}(function(_0x1a44a3,_0x572442){const _0x4a6130=a171_0x51d0,_0x25e396=_0x1a44a3();while(!![]){try{const _0x256733=parseInt(_0x4a6130(0x1cf))/0x1*(parseInt(_0x4a6130(0x1c6))/0x2)+parseInt(_0x4a6130(0x1cd))/0x3+parseInt(_0x4a6130(0x1c7))/0x4*(parseInt(_0x4a6130(0x1cc))/0x5)+parseInt(_0x4a6130(0x1c4))/0x6*(parseInt(_0x4a6130(0x1d2))/0x7)+parseInt(_0x4a6130(0x1c8))/0x8*(-parseInt(_0x4a6130(0x1c3))/0x9)+-parseInt(_0x4a6130(0x1c9))/0xa+parseInt(_0x4a6130(0x1c5))/0xb;if(_0x256733===_0x572442)break;else _0x25e396['push'](_0x25e396['shift']());}catch(_0x263930){_0x25e396['push'](_0x25e396['shift']());}}}(a171_0xc086,0x330f2));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(_0x1d65c3){const _0x2c7a41=a171_0x51d0;return SENSITIVE_PATTERNS[_0x2c7a41(0x1d0)](_0x11c121=>_0x11c121[_0x2c7a41(0x1d3)](_0x1d65c3));}function sanitizeFlags(_0x3d7b1a){const _0x5cdb91=a171_0x51d0,_0x487d8b={};for(const [_0x2d21b2,_0x1e4575]of Object['entries'](_0x3d7b1a)){isSensitiveKey(_0x2d21b2)?_0x487d8b[_0x2d21b2]=_0x1e4575!=null&&_0x1e4575!==''?_0x5cdb91(0x1c2):_0x1e4575:_0x487d8b[_0x2d21b2]=_0x1e4575;}return _0x487d8b;}export async function reportCommandTrace(_0x24817c){const _0x25eaa5=a171_0x51d0;try{const _0x57bac5=sanitizeFlags(_0x24817c[_0x25eaa5(0x1ca)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x24817c['service'],'command.name':_0x24817c[_0x25eaa5(0x1cb)],'command.flags':JSON[_0x25eaa5(0x1ce)](_0x57bac5),..._0x24817c[_0x25eaa5(0x1d4)]!=null?{'command.duration_ms':_0x24817c['durationMs']}:{},..._0x24817c['error']?{'command.error':_0x24817c[_0x25eaa5(0x1d1)]instanceof Error?_0x24817c[_0x25eaa5(0x1d1)]['message']:String(_0x24817c[_0x25eaa5(0x1d1)])}:{}}});}catch{}}function a171_0xc086(){const _0x4a6f75=['2LvJXnc','28Eyvabt','8eLiXtL','1560140Xuunvu','flags','command','105145ySXzLm','10476LQBmqQ','stringify','210006YaCrlf','some','error','546RayaSz','test','durationMs','[REDACTED]','1905993FRwhjO','14802tFVQfR','261822DuwHTB'];a171_0xc086=function(){return _0x4a6f75;};return a171_0xc086();}
@@ -1 +1 @@
1
- function a172_0x17b2(){var _0x1f230a=['service','error','320vTWLWO','206073XdxVbc','3hClnTc','588794boccpr','2708620oWeNVh','Failed\x20to\x20report\x20CLI\x20help\x20trace:','184CmNfhc','815078lywxva','105679ZIUhtQ','3432964aVcdwG','2LNcWIW','3834036EsXBDY'];a172_0x17b2=function(){return _0x1f230a;};return a172_0x17b2();}(function(_0x522183,_0x4cedb2){var _0x509682=a172_0x1405,_0x516bba=_0x522183();while(!![]){try{var _0x381523=-parseInt(_0x509682(0x1a1))/0x1*(-parseInt(_0x509682(0x1a8))/0x2)+parseInt(_0x509682(0x1a7))/0x3*(-parseInt(_0x509682(0x1a0))/0x4)+parseInt(_0x509682(0x1a9))/0x5+parseInt(_0x509682(0x1a2))/0x6+-parseInt(_0x509682(0x19f))/0x7*(-parseInt(_0x509682(0x1ab))/0x8)+-parseInt(_0x509682(0x1a6))/0x9*(parseInt(_0x509682(0x1a5))/0xa)+-parseInt(_0x509682(0x19e))/0xb;if(_0x381523===_0x4cedb2)break;else _0x516bba['push'](_0x516bba['shift']());}catch(_0x25308b){_0x516bba['push'](_0x516bba['shift']());}}}(a172_0x17b2,0x6e480));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a172_0x1405(_0x10b228,_0x5ee8e6){_0x10b228=_0x10b228-0x19e;var _0x17b267=a172_0x17b2();var _0x1405db=_0x17b267[_0x10b228];return _0x1405db;}export async function reportCliHelpTrace(_0x36e5a3,_0x13da4b){var _0x1979e8=a172_0x1405;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x36e5a3,..._0x13da4b?.[_0x1979e8(0x1a3)]&&{'rabetbase.help.service':_0x13da4b[_0x1979e8(0x1a3)]}}});}catch(_0x2ac27e){console[_0x1979e8(0x1a4)](_0x1979e8(0x1aa),_0x2ac27e);}}
1
+ (function(_0x51f022,_0x2d8bcb){var _0x351cdd=a172_0x553b,_0x37979f=_0x51f022();while(!![]){try{var _0x590a32=parseInt(_0x351cdd(0x96))/0x1+parseInt(_0x351cdd(0x97))/0x2+parseInt(_0x351cdd(0x8e))/0x3+parseInt(_0x351cdd(0x91))/0x4+-parseInt(_0x351cdd(0x90))/0x5+parseInt(_0x351cdd(0x8f))/0x6+-parseInt(_0x351cdd(0x92))/0x7;if(_0x590a32===_0x2d8bcb)break;else _0x37979f['push'](_0x37979f['shift']());}catch(_0x5870ac){_0x37979f['push'](_0x37979f['shift']());}}}(a172_0x1cf7,0x6db25));function a172_0x553b(_0xab6a90,_0x48ba86){_0xab6a90=_0xab6a90-0x8e;var _0x1cf7e9=a172_0x1cf7();var _0x553b7c=_0x1cf7e9[_0xab6a90];return _0x553b7c;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2fb8ba,_0x2ffa64){var _0x106c09=a172_0x553b;try{await sendCliTraceLog({'spanName':_0x106c09(0x98),'logData':{'rabetbase.help.kind':_0x2fb8ba,..._0x2ffa64?.['service']&&{'rabetbase.help.service':_0x2ffa64[_0x106c09(0x93)]}}});}catch(_0xea6959){console[_0x106c09(0x94)](_0x106c09(0x95),_0xea6959);}}function a172_0x1cf7(){var _0x246436=['cli.help','185427mNxRiI','2012064seyuqL','1975860ZyjnrT','2777568EfZjdc','6925016ZQsdBx','service','error','Failed\x20to\x20report\x20CLI\x20help\x20trace:','138591FtKrOw','1207282hOxCIP'];a172_0x1cf7=function(){return _0x246436;};return a172_0x1cf7();}
@@ -1 +1 @@
1
- (function(_0x34bc42,_0x15dd25){const _0x12fb00=a173_0x3cf7,_0x2c3eff=_0x34bc42();while(!![]){try{const _0xbe079c=parseInt(_0x12fb00(0x86))/0x1*(parseInt(_0x12fb00(0x84))/0x2)+-parseInt(_0x12fb00(0x7d))/0x3*(-parseInt(_0x12fb00(0x82))/0x4)+-parseInt(_0x12fb00(0x8a))/0x5+parseInt(_0x12fb00(0x7c))/0x6+parseInt(_0x12fb00(0x80))/0x7+parseInt(_0x12fb00(0x87))/0x8+parseInt(_0x12fb00(0x8b))/0x9*(-parseInt(_0x12fb00(0x88))/0xa);if(_0xbe079c===_0x15dd25)break;else _0x2c3eff['push'](_0x2c3eff['shift']());}catch(_0x16a068){_0x2c3eff['push'](_0x2c3eff['shift']());}}}(a173_0x47eb,0x7bc34));import a173_0x24532b from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a173_0x3cf7(_0x9f4dd3,_0x2befac){_0x9f4dd3=_0x9f4dd3-0x7c;const _0x47eb59=a173_0x47eb();let _0x3cf752=_0x47eb59[_0x9f4dd3];return _0x3cf752;}function a173_0x47eb(){const _0xf1fca6=['4040442wgbkad','6vOIpzw','rabetbase-cli','unknown','149023KlVtgA','username','1706116CooFrN','production','2wPnpnk','userInfo','484701sJXBmp','1940672CIcGLs','4910yjoHoG','daily','1978810GCxXxd','25155kFhjWz'];a173_0x47eb=function(){return _0xf1fca6;};return a173_0x47eb();}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 _0x2b6088=a173_0x3cf7,_0x2a4185=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x585e2b=_0x2a4185?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2b6088(0x7f)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2b6088(0x89):_0x2b6088(0x83)),'username':_0x585e2b?.[_0x2b6088(0x81)]??a173_0x24532b[_0x2b6088(0x85)]()[_0x2b6088(0x81)]??_0x2b6088(0x7e),..._0x585e2b&&{'nickname':_0x585e2b['nickname']}}),cliOtelTraceInitialized=!![];}return _0x2a4185;}
1
+ (function(_0x2c100a,_0x5ebfcc){const _0x4b76e5=a173_0x1128,_0x30d157=_0x2c100a();while(!![]){try{const _0x5ea89e=parseInt(_0x4b76e5(0x1cb))/0x1+parseInt(_0x4b76e5(0x1c9))/0x2+-parseInt(_0x4b76e5(0x1d3))/0x3*(parseInt(_0x4b76e5(0x1ca))/0x4)+-parseInt(_0x4b76e5(0x1d5))/0x5*(-parseInt(_0x4b76e5(0x1cd))/0x6)+parseInt(_0x4b76e5(0x1d2))/0x7+parseInt(_0x4b76e5(0x1d8))/0x8*(-parseInt(_0x4b76e5(0x1d7))/0x9)+-parseInt(_0x4b76e5(0x1ce))/0xa;if(_0x5ea89e===_0x5ebfcc)break;else _0x30d157['push'](_0x30d157['shift']());}catch(_0x5e320c){_0x30d157['push'](_0x30d157['shift']());}}}(a173_0x5c69,0xc1a09));function a173_0x5c69(){const _0x22f990=['daily','606XUdKUL','17742670KDeMQx','username','userInfo','rabetbase-cli','9757209ZJyQZI','2744919xhGKDM','unknown','72115UBANAp','production','75375WnSahv','1352JyVphs','2495944jGgjPH','4TAAAgS','799130WAMrKF'];a173_0x5c69=function(){return _0x22f990;};return a173_0x5c69();}function a173_0x1128(_0x431922,_0x1f703f){_0x431922=_0x431922-0x1c9;const _0x5c699a=a173_0x5c69();let _0x1128ba=_0x5c699a[_0x431922];return _0x1128ba;}import a173_0x131f93 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 _0x2eac0b=a173_0x1128,_0x51583d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1b816f=_0x51583d?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2eac0b(0x1d4)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2eac0b(0x1cc):_0x2eac0b(0x1d6)),'username':_0x1b816f?.[_0x2eac0b(0x1cf)]??a173_0x131f93[_0x2eac0b(0x1d0)]()[_0x2eac0b(0x1cf)]??_0x2eac0b(0x1d1),..._0x1b816f&&{'nickname':_0x1b816f['nickname']}}),cliOtelTraceInitialized=!![];}return _0x51583d;}
@@ -1 +1 @@
1
- (function(_0x1fe91e,_0x1d73f4){const _0xcda7a7=a174_0x39ae,_0x3b7baf=_0x1fe91e();while(!![]){try{const _0x419406=-parseInt(_0xcda7a7(0x82))/0x1+-parseInt(_0xcda7a7(0x7e))/0x2+-parseInt(_0xcda7a7(0x8a))/0x3+-parseInt(_0xcda7a7(0x81))/0x4+parseInt(_0xcda7a7(0x87))/0x5*(-parseInt(_0xcda7a7(0x86))/0x6)+parseInt(_0xcda7a7(0x85))/0x7*(parseInt(_0xcda7a7(0x7f))/0x8)+parseInt(_0xcda7a7(0x8b))/0x9;if(_0x419406===_0x1d73f4)break;else _0x3b7baf['push'](_0x3b7baf['shift']());}catch(_0x224943){_0x3b7baf['push'](_0x3b7baf['shift']());}}}(a174_0x2948,0x3198e));function a174_0x39ae(_0x4af11c,_0x303ff3){_0x4af11c=_0x4af11c-0x7d;const _0x294861=a174_0x2948();let _0x39aedb=_0x294861[_0x4af11c];return _0x39aedb;}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 _0x2a296f=a174_0x39ae;process[_0x2a296f(0x88)](_0x2a296f(0x84),()=>{void flushOtelNodeIfUsed();});const _0x1faf37=()=>{const _0x18f277=_0x2a296f;void flushOtelNodeIfUsed()[_0x18f277(0x7d)](()=>process['exit'](0x0));};process[_0x2a296f(0x88)](_0x2a296f(0x83),_0x1faf37),process[_0x2a296f(0x88)](_0x2a296f(0x89),_0x1faf37);}export async function exitWithOtelShutdown(_0x42bf07){const _0x474af3=a174_0x39ae;await flushOtelNodeIfUsed(),process[_0x474af3(0x80)](_0x42bf07);}function a174_0x2948(){const _0x344c4a=['5MvoApJ','once','SIGTERM','100425ggGyIh','7185141PxkVKa','then','507020VpCrxt','104biNNwC','exit','587732MvCslO','223129xmdcmr','SIGINT','beforeExit','145271gjXrtz','1247646qLAtTU'];a174_0x2948=function(){return _0x344c4a;};return a174_0x2948();}
1
+ function a174_0x1889(_0x30adea,_0x442562){_0x30adea=_0x30adea-0x1d2;const _0x443536=a174_0x4435();let _0x188900=_0x443536[_0x30adea];return _0x188900;}(function(_0x4f187a,_0x55a0d4){const _0x122583=a174_0x1889,_0x5dea31=_0x4f187a();while(!![]){try{const _0x4a9ca5=parseInt(_0x122583(0x1e2))/0x1+parseInt(_0x122583(0x1da))/0x2*(parseInt(_0x122583(0x1e3))/0x3)+-parseInt(_0x122583(0x1de))/0x4*(parseInt(_0x122583(0x1df))/0x5)+-parseInt(_0x122583(0x1e1))/0x6+parseInt(_0x122583(0x1d7))/0x7*(-parseInt(_0x122583(0x1d2))/0x8)+-parseInt(_0x122583(0x1dc))/0x9*(-parseInt(_0x122583(0x1d5))/0xa)+-parseInt(_0x122583(0x1e0))/0xb*(-parseInt(_0x122583(0x1d8))/0xc);if(_0x4a9ca5===_0x55a0d4)break;else _0x5dea31['push'](_0x5dea31['shift']());}catch(_0x1f35e3){_0x5dea31['push'](_0x5dea31['shift']());}}}(a174_0x4435,0x28e05));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 _0x4dad26=a174_0x1889;process[_0x4dad26(0x1d9)](_0x4dad26(0x1d6),()=>{void flushOtelNodeIfUsed();});const _0x2552c4=()=>{const _0x492d5f=_0x4dad26;void flushOtelNodeIfUsed()[_0x492d5f(0x1d4)](()=>process['exit'](0x0));};process[_0x4dad26(0x1d9)](_0x4dad26(0x1dd),_0x2552c4),process[_0x4dad26(0x1d9)](_0x4dad26(0x1db),_0x2552c4);}function a174_0x4435(){const _0x43ec87=['165GZNwIO','775728aAIdkN','160882UsFppF','743685bElxnJ','8MXWNrd','exit','then','10Vzlwkr','beforeExit','1616307vdYGOQ','17772BPGHeu','once','2dIbMgm','SIGTERM','1957068sKOtWS','SIGINT','4AoELYQ','604130NHPNZM'];a174_0x4435=function(){return _0x43ec87;};return a174_0x4435();}export async function exitWithOtelShutdown(_0x4f5fa3){const _0x2a2050=a174_0x1889;await flushOtelNodeIfUsed(),process[_0x2a2050(0x1d3)](_0x4f5fa3);}
@@ -1 +1 @@
1
- const a175_0x58e3c7=a175_0x17b7;(function(_0x3cd1a7,_0x175337){const _0x44cdc8=a175_0x17b7,_0xa20930=_0x3cd1a7();while(!![]){try{const _0x2f022a=parseInt(_0x44cdc8(0x1b0))/0x1*(-parseInt(_0x44cdc8(0x1b2))/0x2)+-parseInt(_0x44cdc8(0x1ab))/0x3+-parseInt(_0x44cdc8(0x1b5))/0x4*(parseInt(_0x44cdc8(0x1ad))/0x5)+parseInt(_0x44cdc8(0x1ac))/0x6*(-parseInt(_0x44cdc8(0x1b3))/0x7)+-parseInt(_0x44cdc8(0x1ae))/0x8*(parseInt(_0x44cdc8(0x1b4))/0x9)+-parseInt(_0x44cdc8(0x1a9))/0xa+parseInt(_0x44cdc8(0x1b1))/0xb;if(_0x2f022a===_0x175337)break;else _0xa20930['push'](_0xa20930['shift']());}catch(_0x531d8b){_0xa20930['push'](_0xa20930['shift']());}}}(a175_0x5d24,0x6183f));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a175_0x17b7(_0x19d179,_0x320bb5){_0x19d179=_0x19d179-0x1a8;const _0x5d24de=a175_0x5d24();let _0x17b7f1=_0x5d24de[_0x19d179];return _0x17b7f1;}function a175_0x5d24(){const _0x5214de=['1711137VRqfrc','23178EuhoIU','5TbsTqn','16enjazd','rabetbase-cli','118TQUQJY','32718741JyNVui','11976TTZSjD','1036aDPnXA','677799RqrVmg','803944OEuuhF','traceparent','3747130KLrSSW','spanName'];a175_0x5d24=function(){return _0x5214de;};return a175_0x5d24();}const DEFAULT_TRACE_NAME=a175_0x58e3c7(0x1af);export async function sendCliTraceLog(_0xa045b2){const _0x418a29=a175_0x58e3c7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xa045b2['traceName']??DEFAULT_TRACE_NAME,'version':_0xa045b2['version']??getCliVersion(),'spanName':_0xa045b2[_0x418a29(0x1aa)],'eventType':'manual','logData':_0xa045b2['logData'],..._0xa045b2[_0x418a29(0x1a8)]&&{'traceparent':_0xa045b2['traceparent']}});}
1
+ const a175_0x276fd5=a175_0x557d;(function(_0x4d1547,_0x173764){const _0x814b83=a175_0x557d,_0x19abc7=_0x4d1547();while(!![]){try{const _0x869302=parseInt(_0x814b83(0x164))/0x1*(-parseInt(_0x814b83(0x162))/0x2)+-parseInt(_0x814b83(0x163))/0x3+parseInt(_0x814b83(0x16c))/0x4*(parseInt(_0x814b83(0x16a))/0x5)+parseInt(_0x814b83(0x16b))/0x6*(-parseInt(_0x814b83(0x160))/0x7)+-parseInt(_0x814b83(0x15f))/0x8+-parseInt(_0x814b83(0x165))/0x9*(parseInt(_0x814b83(0x166))/0xa)+parseInt(_0x814b83(0x16d))/0xb;if(_0x869302===_0x173764)break;else _0x19abc7['push'](_0x19abc7['shift']());}catch(_0x271374){_0x19abc7['push'](_0x19abc7['shift']());}}}(a175_0x5b0b,0xa5361));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a175_0x557d(_0x511fb9,_0x50fb84){_0x511fb9=_0x511fb9-0x15f;const _0x5b0bb4=a175_0x5b0b();let _0x557dae=_0x5b0bb4[_0x511fb9];return _0x557dae;}const DEFAULT_TRACE_NAME=a175_0x276fd5(0x161);export async function sendCliTraceLog(_0x14b7ef){const _0x31c329=a175_0x276fd5;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x14b7ef[_0x31c329(0x168)]??DEFAULT_TRACE_NAME,'version':_0x14b7ef['version']??getCliVersion(),'spanName':_0x14b7ef[_0x31c329(0x16e)],'eventType':_0x31c329(0x169),'logData':_0x14b7ef['logData'],..._0x14b7ef[_0x31c329(0x167)]&&{'traceparent':_0x14b7ef[_0x31c329(0x167)]}});}function a175_0x5b0b(){const _0x2c6bf6=['2433426RJMJjY','11817WmARPB','11286jxGBba','2910BXxcwA','traceparent','traceName','manual','2690nFmFRW','2085366ylpHSO','6236KcWiBV','31145697AynmRE','spanName','3267184AmDujJ','21gixvuk','rabetbase-cli','62jTqRDs'];a175_0x5b0b=function(){return _0x2c6bf6;};return a175_0x5b0b();}
@@ -1 +1 @@
1
- const a176_0x1c85d5=a176_0x3eb0;function a176_0x129e(){const _0x152894=['1805780AbZOWB','1SfidZl','issue.log.collect','284148ASBlMm','1795012QxiQTk','platform-issue-log-collect','5VdPaeH','7714063rKNEgg','description','1961752mztWXy','5136918uYMpDJ','title','5354944VsvHxc','90NfPUKL'];a176_0x129e=function(){return _0x152894;};return a176_0x129e();}(function(_0x1808a4,_0x5e636c){const _0x30e03d=a176_0x3eb0,_0x1b2da4=_0x1808a4();while(!![]){try{const _0x2510d7=parseInt(_0x30e03d(0x118))/0x1*(-parseInt(_0x30e03d(0x11b))/0x2)+-parseInt(_0x30e03d(0x11a))/0x3+parseInt(_0x30e03d(0x115))/0x4+parseInt(_0x30e03d(0x11d))/0x5*(parseInt(_0x30e03d(0x121))/0x6)+parseInt(_0x30e03d(0x11e))/0x7+parseInt(_0x30e03d(0x120))/0x8+-parseInt(_0x30e03d(0x116))/0x9*(parseInt(_0x30e03d(0x117))/0xa);if(_0x2510d7===_0x5e636c)break;else _0x1b2da4['push'](_0x1b2da4['shift']());}catch(_0x2d3699){_0x1b2da4['push'](_0x1b2da4['shift']());}}}(a176_0x129e,0xb5ab3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a176_0x1c85d5(0x11c);export const PLATFORM_ISSUE_SPAN_NAME=a176_0x1c85d5(0x119);function a176_0x3eb0(_0x59db9b,_0x510fb5){_0x59db9b=_0x59db9b-0x114;const _0x129e12=a176_0x129e();let _0x3eb0fa=_0x129e12[_0x59db9b];return _0x3eb0fa;}export async function sendPlatformIssueCollectLog(_0x355661){const _0x3adc8d=a176_0x1c85d5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x355661[_0x3adc8d(0x114)],'issue.description':_0x355661[_0x3adc8d(0x11f)]}});}
1
+ const a176_0x4f4a54=a176_0x2a0c;(function(_0x4e8bde,_0x5a9b68){const _0x52e499=a176_0x2a0c,_0x56e4cf=_0x4e8bde();while(!![]){try{const _0x4d1399=parseInt(_0x52e499(0x161))/0x1*(-parseInt(_0x52e499(0x15d))/0x2)+parseInt(_0x52e499(0x163))/0x3*(parseInt(_0x52e499(0x162))/0x4)+-parseInt(_0x52e499(0x169))/0x5*(-parseInt(_0x52e499(0x164))/0x6)+parseInt(_0x52e499(0x15b))/0x7*(-parseInt(_0x52e499(0x15c))/0x8)+-parseInt(_0x52e499(0x167))/0x9+-parseInt(_0x52e499(0x160))/0xa*(parseInt(_0x52e499(0x166))/0xb)+parseInt(_0x52e499(0x15f))/0xc*(parseInt(_0x52e499(0x165))/0xd);if(_0x4d1399===_0x5a9b68)break;else _0x56e4cf['push'](_0x56e4cf['shift']());}catch(_0x2b3fd8){_0x56e4cf['push'](_0x56e4cf['shift']());}}}(a176_0x3c6f,0xebac5));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a176_0x4f4a54(0x168);function a176_0x3c6f(){const _0x1f20bd=['2355651mqgsaq','126PfuxSo','208546VycyZi','517QJHxJw','10100151fovOlG','platform-issue-log-collect','408585ZRPDWE','description','title','1218154RfaVfS','88iQKySU','49738vJULZH','issue.log.collect','2748bAJSut','377700pAkxlR','16HADnNf','4NhbXiQ'];a176_0x3c6f=function(){return _0x1f20bd;};return a176_0x3c6f();}function a176_0x2a0c(_0x5a1e09,_0x304f13){_0x5a1e09=_0x5a1e09-0x159;const _0x3c6f3a=a176_0x3c6f();let _0x2a0cdf=_0x3c6f3a[_0x5a1e09];return _0x2a0cdf;}export const PLATFORM_ISSUE_SPAN_NAME=a176_0x4f4a54(0x15e);export async function sendPlatformIssueCollectLog(_0x523f28){const _0x4fe23e=a176_0x4f4a54;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x523f28[_0x4fe23e(0x15a)],'issue.description':_0x523f28[_0x4fe23e(0x159)]}});}
@@ -1 +1 @@
1
- const a178_0x1b0624=a178_0x4df6;(function(_0x2faa2e,_0x67ab5d){const _0x2684c9=a178_0x4df6,_0x43c335=_0x2faa2e();while(!![]){try{const _0x323f15=parseInt(_0x2684c9(0x222))/0x1+parseInt(_0x2684c9(0x216))/0x2*(parseInt(_0x2684c9(0x200))/0x3)+-parseInt(_0x2684c9(0x20d))/0x4*(parseInt(_0x2684c9(0x212))/0x5)+parseInt(_0x2684c9(0x225))/0x6+-parseInt(_0x2684c9(0x206))/0x7+-parseInt(_0x2684c9(0x226))/0x8+-parseInt(_0x2684c9(0x211))/0x9*(-parseInt(_0x2684c9(0x209))/0xa);if(_0x323f15===_0x67ab5d)break;else _0x43c335['push'](_0x43c335['shift']());}catch(_0x1679e5){_0x43c335['push'](_0x43c335['shift']());}}}(a178_0x9fc7,0x932fc));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x1b0624(0x228),'description':a178_0x1b0624(0x20e),'folders':[a178_0x1b0624(0x21f),'.cursor'],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x20c),'template':a178_0x1b0624(0x207)}]},'windsurf':{'name':a178_0x1b0624(0x223),'description':a178_0x1b0624(0x1fd),'folders':[a178_0x1b0624(0x21d)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md','template':a178_0x1b0624(0x207)}]},'claude':{'name':a178_0x1b0624(0x1fc),'description':a178_0x1b0624(0x1fc),'folders':['.claude'],'files':[{'type':'file','path':a178_0x1b0624(0x203),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':a178_0x1b0624(0x213),'folders':[a178_0x1b0624(0x220)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x215),'template':a178_0x1b0624(0x207)}]},'codex':{'name':a178_0x1b0624(0x205),'description':a178_0x1b0624(0x218),'folders':[a178_0x1b0624(0x224)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x1f7),'template':'SKILL.md.tpl'}]},'opencode':{'name':a178_0x1b0624(0x21e),'description':a178_0x1b0624(0x221),'folders':[a178_0x1b0624(0x1f8)],'files':[{'type':a178_0x1b0624(0x20f),'path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':'Qoder','description':a178_0x1b0624(0x1f6),'folders':[a178_0x1b0624(0x21a)],'files':[{'type':a178_0x1b0624(0x20f),'path':'.qoder/rules/rabetbase.md','template':a178_0x1b0624(0x207)},{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x1f4),'template':a178_0x1b0624(0x207)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x1b0624(0x1fe),'folders':[a178_0x1b0624(0x214)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x227),'template':'SKILL.md.tpl'}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a178_0x1b0624(0x210)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x219),'template':a178_0x1b0624(0x207)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a178_0x1b0624(0x21c),'folders':[a178_0x1b0624(0x1fb)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x1ff),'template':a178_0x1b0624(0x207)}]},'antigravity':{'name':a178_0x1b0624(0x1fa),'description':a178_0x1b0624(0x204),'folders':[a178_0x1b0624(0x1fb)],'files':[{'type':a178_0x1b0624(0x20f),'path':a178_0x1b0624(0x1ff),'template':a178_0x1b0624(0x207)}]}};export const CORE_IDE_LIST=[a178_0x1b0624(0x229),'cline',a178_0x1b0624(0x20b),a178_0x1b0624(0x202),a178_0x1b0624(0x1f5),a178_0x1b0624(0x21b),a178_0x1b0624(0x217),'trae','windsurf'];function a178_0x4df6(_0x546988,_0x26e27e){_0x546988=_0x546988-0x1f4;const _0x9fc73f=a178_0x9fc7();let _0x4df620=_0x9fc73f[_0x546988];return _0x4df620;}export const IDE_LIST=[a178_0x1b0624(0x208),a178_0x1b0624(0x229),'cline',a178_0x1b0624(0x20b),a178_0x1b0624(0x202),a178_0x1b0624(0x1f5),'opencode',a178_0x1b0624(0x217),a178_0x1b0624(0x1f9),a178_0x1b0624(0x201),'agent'];export const ALL_CORE_IDES=[a178_0x1b0624(0x1f5),'windsurf',a178_0x1b0624(0x229),a178_0x1b0624(0x20a),a178_0x1b0624(0x202),a178_0x1b0624(0x21b),a178_0x1b0624(0x217),a178_0x1b0624(0x20b),a178_0x1b0624(0x1f9)];function a178_0x9fc7(){const _0x3f1d28=['trae','Antigravity','.agent','Claude\x20Code','Windsurf\x20IDE','CodeBuddy\x20IDE','.agent/skills/lovrabet/SKILL.md','57XUmybk','windsurf','codex','.claude/skills/lovrabet/SKILL.md','Antigravity\x20IDE','Codex','5767265KLozgK','SKILL.md.tpl','antigravity','20prhKAN','cline','codebuddy','.cursor/skills/rabetbase.md','602532jFNtRc','Cursor\x20IDE','file','.trae','5654997CdTjoP','15SdnzoK','Cline\x20IDE','.codebuddy','.cline/skills/lovrabet/SKILL.md','38612vbqtVL','qoder','Codex\x20IDE','.trae/skills/lovrabet/SKILL.md','.qoder','opencode','通用模板\x20-\x20兜底方案','.windsurf','OpenCode','.cursorrules','.cline','OpenCode\x20IDE','999084xeDYRD','Windsurf','.codex','51834hvoqkT','6020264CfWTaD','.codebuddy/skills/lovrabet/SKILL.md','Cursor','claude','.qoder/skills/lovrabet/SKILL.md','cursor','Qoder\x20IDE','.codex/skills/lovrabet/SKILL.md','.opencode'];a178_0x9fc7=function(){return _0x3f1d28;};return a178_0x9fc7();}
1
+ const a178_0x40dd04=a178_0x1556;(function(_0xf3a3c0,_0x1d129f){const _0x10526b=a178_0x1556,_0x18e908=_0xf3a3c0();while(!![]){try{const _0x351669=parseInt(_0x10526b(0x97))/0x1*(-parseInt(_0x10526b(0xb2))/0x2)+-parseInt(_0x10526b(0xad))/0x3+-parseInt(_0x10526b(0xa0))/0x4+parseInt(_0x10526b(0x8a))/0x5+-parseInt(_0x10526b(0x92))/0x6*(parseInt(_0x10526b(0x99))/0x7)+parseInt(_0x10526b(0x9b))/0x8+parseInt(_0x10526b(0x95))/0x9;if(_0x351669===_0x1d129f)break;else _0x18e908['push'](_0x18e908['shift']());}catch(_0x250ea1){_0x18e908['push'](_0x18e908['shift']());}}}(a178_0x2905,0x3aaa9));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a178_0x40dd04(0xa7),'folders':[a178_0x40dd04(0xb3),a178_0x40dd04(0x93)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0x94),'template':a178_0x40dd04(0xb4)}]},'windsurf':{'name':a178_0x40dd04(0xb5),'description':a178_0x40dd04(0x88),'folders':[a178_0x40dd04(0xab)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0xa8),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a178_0x40dd04(0xb6),'folders':['.claude'],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a178_0x40dd04(0xb4)}]},'cline':{'name':a178_0x40dd04(0x84),'description':a178_0x40dd04(0xa1),'folders':[a178_0x40dd04(0x9e)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0xaf),'template':a178_0x40dd04(0xb4)}]},'codex':{'name':a178_0x40dd04(0x98),'description':a178_0x40dd04(0x86),'folders':[a178_0x40dd04(0xa2)],'files':[{'type':'file','path':a178_0x40dd04(0xa5),'template':a178_0x40dd04(0xb4)}]},'opencode':{'name':'OpenCode','description':a178_0x40dd04(0x90),'folders':[a178_0x40dd04(0x8b)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0x9a),'template':a178_0x40dd04(0xb4)}]},'qoder':{'name':'Qoder','description':a178_0x40dd04(0xac),'folders':['.qoder'],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0x9d),'template':a178_0x40dd04(0xb4)},{'type':a178_0x40dd04(0x87),'path':'.qoder/skills/lovrabet/SKILL.md','template':a178_0x40dd04(0xb4)}]},'codebuddy':{'name':a178_0x40dd04(0xae),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a178_0x40dd04(0x87),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a178_0x40dd04(0x8f),'description':a178_0x40dd04(0xa3),'folders':['.trae'],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0xa4),'template':a178_0x40dd04(0xb4)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x40dd04(0x89),'description':a178_0x40dd04(0x8d),'folders':[a178_0x40dd04(0x83)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0xb0),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a178_0x40dd04(0x83)],'files':[{'type':a178_0x40dd04(0x87),'path':a178_0x40dd04(0xb0),'template':a178_0x40dd04(0xb4)}]}};function a178_0x1556(_0x291431,_0x245658){_0x291431=_0x291431-0x83;const _0x290500=a178_0x2905();let _0x1556bd=_0x290500[_0x291431];return _0x1556bd;}function a178_0x2905(){const _0x43f8b0=['Qoder\x20IDE','538563DNkWDd','CodeBuddy','.cline/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','trae','2nGOwEx','.cursorrules','SKILL.md.tpl','Windsurf','Claude\x20Code','.agent','Cline','windsurf','Codex\x20IDE','file','Windsurf\x20IDE','其他\x20(通用模板)','1316945npijCA','.opencode','cursor','通用模板\x20-\x20兜底方案','claude','Trae','OpenCode\x20IDE','antigravity','1437738RMFQgi','.cursor','.cursor/skills/rabetbase.md','8403246QFYelb','codex','111773EvXXaG','Codex','7Nfchsg','.opencode/skills/lovrabet/SKILL.md','70008fYImyK','codebuddy','.qoder/rules/rabetbase.md','.cline','opencode','1738480RRpZcH','Cline\x20IDE','.codex','Trae\x20IDE','.trae/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','agent','Cursor\x20IDE','.windsurf/workflows/rabetbase.md','qoder','cline','.windsurf'];a178_0x2905=function(){return _0x43f8b0;};return a178_0x2905();}export const CORE_IDE_LIST=[a178_0x40dd04(0x8e),a178_0x40dd04(0xaa),a178_0x40dd04(0x9c),a178_0x40dd04(0x96),'cursor',a178_0x40dd04(0x9f),'qoder','trae',a178_0x40dd04(0x85)];export const IDE_LIST=[a178_0x40dd04(0x91),a178_0x40dd04(0x8e),'cline','codebuddy',a178_0x40dd04(0x96),a178_0x40dd04(0x8c),a178_0x40dd04(0x9f),a178_0x40dd04(0xa9),a178_0x40dd04(0xb1),a178_0x40dd04(0x85),a178_0x40dd04(0xa6)];export const ALL_CORE_IDES=[a178_0x40dd04(0x8c),'windsurf',a178_0x40dd04(0x8e),a178_0x40dd04(0xaa),a178_0x40dd04(0x96),a178_0x40dd04(0x9f),a178_0x40dd04(0xa9),a178_0x40dd04(0x9c),a178_0x40dd04(0xb1)];
@@ -1 +1 @@
1
- function a179_0x1b04(){const _0x5bd90e=['5026063SFnqCv','64eDycAI','16EEqsTh','153010wktsmm','5321277ZfcmYL','17730190PkIJpE','18eAsZdG','1156152GLazGm','225982ekdvUi','9277296aicAsi'];a179_0x1b04=function(){return _0x5bd90e;};return a179_0x1b04();}(function(_0xa56288,_0x2dc536){const _0x52da0e=a179_0x1982,_0x59ce3b=_0xa56288();while(!![]){try{const _0x47bc84=-parseInt(_0x52da0e(0x169))/0x1+parseInt(_0x52da0e(0x16a))/0x2*(parseInt(_0x52da0e(0x168))/0x3)+-parseInt(_0x52da0e(0x163))/0x4*(parseInt(_0x52da0e(0x165))/0x5)+parseInt(_0x52da0e(0x16b))/0x6+parseInt(_0x52da0e(0x16c))/0x7*(parseInt(_0x52da0e(0x164))/0x8)+parseInt(_0x52da0e(0x166))/0x9+-parseInt(_0x52da0e(0x167))/0xa;if(_0x47bc84===_0x2dc536)break;else _0x59ce3b['push'](_0x59ce3b['shift']());}catch(_0x59c8b7){_0x59ce3b['push'](_0x59ce3b['shift']());}}}(a179_0x1b04,0xcb476));function a179_0x1982(_0x47c510,_0x400268){_0x47c510=_0x47c510-0x163;const _0x1b0438=a179_0x1b04();let _0x1982c4=_0x1b0438[_0x47c510];return _0x1982c4;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a179_0x1b24(_0x316189,_0x5f3417){_0x316189=_0x316189-0xc2;const _0xac31a4=a179_0xac31();let _0x1b2436=_0xac31a4[_0x316189];return _0x1b2436;}(function(_0x37ade7,_0x54732f){const _0x432752=a179_0x1b24,_0x21978a=_0x37ade7();while(!![]){try{const _0x7e149=-parseInt(_0x432752(0xc3))/0x1*(-parseInt(_0x432752(0xc6))/0x2)+parseInt(_0x432752(0xc5))/0x3+-parseInt(_0x432752(0xcb))/0x4*(parseInt(_0x432752(0xcc))/0x5)+parseInt(_0x432752(0xc7))/0x6*(parseInt(_0x432752(0xc8))/0x7)+-parseInt(_0x432752(0xc9))/0x8+-parseInt(_0x432752(0xc4))/0x9+parseInt(_0x432752(0xc2))/0xa*(parseInt(_0x432752(0xca))/0xb);if(_0x7e149===_0x54732f)break;else _0x21978a['push'](_0x21978a['shift']());}catch(_0x22862f){_0x21978a['push'](_0x21978a['shift']());}}}(a179_0xac31,0x64ea8));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0xac31(){const _0x513869=['5FRGXCw','2209230XSgFqj','9BDnXfd','2772963KwyRTq','2017578bxAOYM','45316hJKDTV','12AygtsJ','411446WzIRnx','1294640MzXMOt','22fANcSc','2210244gVgQrD'];a179_0xac31=function(){return _0x513869;};return a179_0xac31();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x694921,_0x6fe797){const _0x3d9557=a180_0x35d7,_0x575361=_0x694921();while(!![]){try{const _0x2404d8=-parseInt(_0x3d9557(0x99))/0x1+parseInt(_0x3d9557(0x9a))/0x2+-parseInt(_0x3d9557(0x96))/0x3*(parseInt(_0x3d9557(0x90))/0x4)+-parseInt(_0x3d9557(0x93))/0x5*(parseInt(_0x3d9557(0x8c))/0x6)+parseInt(_0x3d9557(0x8f))/0x7+-parseInt(_0x3d9557(0x94))/0x8*(parseInt(_0x3d9557(0x92))/0x9)+parseInt(_0x3d9557(0x8e))/0xa;if(_0x2404d8===_0x6fe797)break;else _0x575361['push'](_0x575361['shift']());}catch(_0x5748f6){_0x575361['push'](_0x575361['shift']());}}}(a180_0x358e,0xd2292));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0x35d7(_0x1de98b,_0x3916e7){_0x1de98b=_0x1de98b-0x8b;const _0x358e4e=a180_0x358e();let _0x35d750=_0x358e4e[_0x1de98b];return _0x35d750;}export async function fetchCdnConfig(){const _0x25cd5=a180_0x35d7,_0xc3e375=getTemplateBaseUrl(),_0x371076=[_0xc3e375+_0x25cd5(0x91),_0xc3e375+'/config/index.json'];for(const _0xc00f67 of _0x371076){try{const _0x2d42ae=await fetch(_0xc00f67,{'headers':{'Accept':'application/json'}});if(!_0x2d42ae['ok'])continue;const _0x5a28a1=await _0x2d42ae[_0x25cd5(0x98)]();if(!_0x5a28a1[_0x25cd5(0x8d)]?.['stableVersion']||!_0x5a28a1[_0x25cd5(0x95)]?.['node']?.[_0x25cd5(0x97)])continue;return _0x5a28a1;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a180_0x358e(){const _0x5e2b6a=['127905VVpQxB','stableVersion','json','1084205cvRfDi','328346WNNjOl','now','2339298eDQYAy','cli','35739330USvCjN','8212981sGjzsX','56RTPfcT','/config.json','9xIEWgL','15CTffME','9598616BnVUbI','sdk'];a180_0x358e=function(){return _0x5e2b6a;};return a180_0x358e();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x549cec=a180_0x35d7,_0xf02578=Date[_0x549cec(0x8b)]();if(hasCachedConfig){const _0x5e3e54=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf02578-cacheTime<_0x5e3e54)return cachedConfig;}const _0x36e63=await fetchCdnConfig();return cachedConfig=_0x36e63,cacheTime=_0xf02578,hasCachedConfig=!![],_0x36e63;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2fa4c7,_0x5bf8cc){const _0x35da5c=a180_0x653e,_0x345ebb=_0x2fa4c7();while(!![]){try{const _0x199305=parseInt(_0x35da5c(0x1c5))/0x1+parseInt(_0x35da5c(0x1d2))/0x2*(-parseInt(_0x35da5c(0x1d5))/0x3)+-parseInt(_0x35da5c(0x1d3))/0x4*(-parseInt(_0x35da5c(0x1cd))/0x5)+parseInt(_0x35da5c(0x1cf))/0x6+-parseInt(_0x35da5c(0x1c9))/0x7+-parseInt(_0x35da5c(0x1c7))/0x8*(-parseInt(_0x35da5c(0x1d6))/0x9)+-parseInt(_0x35da5c(0x1d4))/0xa*(parseInt(_0x35da5c(0x1ce))/0xb);if(_0x199305===_0x5bf8cc)break;else _0x345ebb['push'](_0x345ebb['shift']());}catch(_0x18b2e8){_0x345ebb['push'](_0x345ebb['shift']());}}}(a180_0x26da,0xebd51));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0x653e(_0x5f3efc,_0x4ef60c){_0x5f3efc=_0x5f3efc-0x1c5;const _0x26daae=a180_0x26da();let _0x653ecf=_0x26daae[_0x5f3efc];return _0x653ecf;}export async function fetchCdnConfig(){const _0x456a7d=a180_0x653e,_0x17c00b=getTemplateBaseUrl(),_0x1faeb6=[_0x17c00b+'/config.json',_0x17c00b+_0x456a7d(0x1ca)];for(const _0x408c0b of _0x1faeb6){try{const _0x62ddc4=await fetch(_0x408c0b,{'headers':{'Accept':_0x456a7d(0x1cb)}});if(!_0x62ddc4['ok'])continue;const _0x233131=await _0x62ddc4['json']();if(!_0x233131[_0x456a7d(0x1cc)]?.[_0x456a7d(0x1c6)]||!_0x233131[_0x456a7d(0x1d0)]?.[_0x456a7d(0x1c8)]?.[_0x456a7d(0x1c6)])continue;return _0x233131;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a180_0x26da(){const _0x520fa8=['6925721kMPmvX','3681300DnPaZR','sdk','now','6DJoIoh','2429140IibQQX','10IXwcYH','733713DXybfO','99BMPrsG','1057379cufRVN','stableVersion','61912aSvYDl','node','238350JvFyZy','/config/index.json','application/json','cli','5jDckmX'];a180_0x26da=function(){return _0x520fa8;};return a180_0x26da();}export async function getCdnConfig(){const _0x3d4d85=a180_0x653e,_0x48d727=Date[_0x3d4d85(0x1d1)]();if(hasCachedConfig){const _0x4a3f17=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x48d727-cacheTime<_0x4a3f17)return cachedConfig;}const _0x554b8c=await fetchCdnConfig();return cachedConfig=_0x554b8c,cacheTime=_0x48d727,hasCachedConfig=!![],_0x554b8c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}