@lovrabet/rabetbase-cli 2.1.7-beta.8 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x38ad17,_0xee0ff){const _0x241b6f=a155_0x5087,_0x28ca17=_0x38ad17();while(!![]){try{const _0x67386b=parseInt(_0x241b6f(0x1fa))/0x1*(parseInt(_0x241b6f(0x1e0))/0x2)+-parseInt(_0x241b6f(0x1f0))/0x3+parseInt(_0x241b6f(0x1de))/0x4+-parseInt(_0x241b6f(0x1e1))/0x5*(parseInt(_0x241b6f(0x1ec))/0x6)+parseInt(_0x241b6f(0x1fb))/0x7+-parseInt(_0x241b6f(0x1f2))/0x8+-parseInt(_0x241b6f(0x1df))/0x9*(parseInt(_0x241b6f(0x1db))/0xa);if(_0x67386b===_0xee0ff)break;else _0x28ca17['push'](_0x28ca17['shift']());}catch(_0x1c2163){_0x28ca17['push'](_0x28ca17['shift']());}}}(a155_0xa193,0xbd37f));export function detectSqlType(_0x205ef4){const _0x552c80=a155_0x5087;if(!_0x205ef4?.['trim']())return{'type':_0x552c80(0x1f7),'isSelectOnly':![],'isDangerous':![],'reason':_0x552c80(0x1ef)};const _0xb9f3b0=_0x205ef4[_0x552c80(0x1f1)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x552c80(0x1f1)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x552c80(0x1f1)](/\/\*[\s\S]*?\*\//g,'')[_0x552c80(0x1dc)](),_0x98c3f2=_0xb9f3b0[_0x552c80(0x1d9)]('\x0a');let _0x5569ba='';for(const _0x17ddf0 of _0x98c3f2){const _0x405c49=_0x17ddf0[_0x552c80(0x1dc)]();if(!_0x405c49||_0x405c49[_0x552c80(0x1fc)]('--')||_0x405c49[_0x552c80(0x1fc)]('/*'))continue;_0x5569ba=_0x405c49;break;}const _0x35baad=_0x5569ba[_0x552c80(0x1e9)]();if(_0x35baad[_0x552c80(0x1fc)](_0x552c80(0x1e6))||_0x35baad[_0x552c80(0x1fc)](_0x552c80(0x1eb))){const _0x146a13=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0xb9f3b0);return{'type':_0x552c80(0x1e6),'isSelectOnly':!_0x146a13,'isDangerous':_0x146a13,'reason':_0x146a13?_0x552c80(0x1e5):undefined};}if(_0x35baad['startsWith'](_0x552c80(0x1f6)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x35baad['startsWith'](_0x552c80(0x1f5)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x35baad[_0x552c80(0x1fc)](_0x552c80(0x1e8)))return{'type':_0x552c80(0x1e8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x552c80(0x1f9)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x35baad))return{'type':_0x552c80(0x1da),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x552c80(0x1f7),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5cea06){const _0x354106=a155_0x5087,_0x1c5159=_0x5cea06['replace'](/#\{[^}]*\}/g,'?')[_0x354106(0x1f1)](/\$\{[^}]*\}/g,'?')[_0x354106(0x1f1)](/'[^']*'/g,'\x27\x27')[_0x354106(0x1f1)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0xc7f280=[],_0x8a0388=_0x1c5159[_0x354106(0x1e3)](/FROM\s+([^\s,)(]+)/i);if(_0x8a0388?.[0x1])_0xc7f280[_0x354106(0x1d8)](_0x8a0388[0x1][_0x354106(0x1f1)](/[`"]/g,''));for(const _0x16867b of _0x1c5159['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x26bf54=_0x16867b[0x1]?.[_0x354106(0x1f1)](/[`"]/g,'');if(_0x26bf54&&!_0xc7f280['includes'](_0x26bf54))_0xc7f280[_0x354106(0x1d8)](_0x26bf54);}const _0x481b9b=_0x1c5159[_0x354106(0x1e3)](/INTO\s+([^\s(]+)/i);if(_0x481b9b?.[0x1]){const _0x2c45f3=_0x481b9b[0x1][_0x354106(0x1f1)](/[`"]/g,'');if(!_0xc7f280['includes'](_0x2c45f3))_0xc7f280[_0x354106(0x1d8)](_0x2c45f3);}const _0x5242e4=_0x1c5159['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x5242e4?.[0x1]){const _0x42463e=_0x5242e4[0x1][_0x354106(0x1f1)](/[`"]/g,'');if(!_0xc7f280[_0x354106(0x1f3)](_0x42463e))_0xc7f280['push'](_0x42463e);}return _0xc7f280;}function extractParameters(_0x4b32f3){const _0x2f8595=a155_0x5087,_0x1587da=new Set();for(const _0x55d3ee of _0x4b32f3[_0x2f8595(0x1ee)](/#\{(\w+)\}/g))if(_0x55d3ee[0x1])_0x1587da['add'](_0x55d3ee[0x1]);for(const _0x3706e7 of _0x4b32f3[_0x2f8595(0x1ee)](/\$\{(\w+)\}/g))if(_0x3706e7[0x1])_0x1587da['add'](_0x3706e7[0x1]);return Array[_0x2f8595(0x1e7)](_0x1587da);}function a155_0x5087(_0x1821f6,_0x28d461){_0x1821f6=_0x1821f6-0x1d8;const _0xa19322=a155_0xa193();let _0x508743=_0xa19322[_0x1821f6];return _0x508743;}function a155_0xa193(){const _0x382831=['24NGZwGY','5165sOvuBo','length','match','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','SELECT','from','DELETE','toUpperCase','reason','WITH','2826SFCket','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','matchAll','SQL\x20content\x20is\x20empty','1567554XjwPVH','replace','5879064tYQcEx','includes','type','UPDATE','INSERT','UNKNOWN','\x20query\x20targeting\x20','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','55318XYryVP','5865027SJOKNB','startsWith','push','split','DDL','6590WhaKtc','trim','join','4817848IvRPvr','2556MxwLCc'];a155_0xa193=function(){return _0x382831;};return a155_0xa193();}export function validateSql(_0xcc8267){const _0x544ff9=a155_0x5087,_0x3f84aa=detectSqlType(_0xcc8267),_0x28d7af=extractTables(_0xcc8267),_0x799ce1=extractParameters(_0xcc8267);if(_0x3f84aa['isDangerous'])return{'valid':![],'sqlType':_0x3f84aa,'tables':_0x28d7af,'parameters':_0x799ce1,'message':_0x3f84aa[_0x544ff9(0x1ea)]||_0x3f84aa[_0x544ff9(0x1f4)]+_0x544ff9(0x1ed)};if(_0x3f84aa[_0x544ff9(0x1f4)]==='UNKNOWN')return{'valid':![],'sqlType':_0x3f84aa,'tables':_0x28d7af,'parameters':_0x799ce1,'message':_0x544ff9(0x1e4)};return{'valid':!![],'sqlType':_0x3f84aa,'tables':_0x28d7af,'parameters':_0x799ce1,'message':_0x3f84aa[_0x544ff9(0x1f4)]+_0x544ff9(0x1f8)+(_0x28d7af[_0x544ff9(0x1e2)]?_0x28d7af[_0x544ff9(0x1dd)](',\x20'):'unknown\x20table(s)')+(_0x799ce1[_0x544ff9(0x1e2)]?'\x20with\x20parameters:\x20'+_0x799ce1[_0x544ff9(0x1dd)](',\x20'):'')};}
1
+ (function(_0x5984bc,_0x2784e1){const _0x202b9a=a155_0x2933,_0x242bd4=_0x5984bc();while(!![]){try{const _0x5b9500=-parseInt(_0x202b9a(0x159))/0x1+parseInt(_0x202b9a(0x16f))/0x2+parseInt(_0x202b9a(0x178))/0x3+-parseInt(_0x202b9a(0x16b))/0x4*(parseInt(_0x202b9a(0x17b))/0x5)+-parseInt(_0x202b9a(0x171))/0x6+parseInt(_0x202b9a(0x15b))/0x7*(-parseInt(_0x202b9a(0x16d))/0x8)+parseInt(_0x202b9a(0x15a))/0x9*(parseInt(_0x202b9a(0x168))/0xa);if(_0x5b9500===_0x2784e1)break;else _0x242bd4['push'](_0x242bd4['shift']());}catch(_0x1a8575){_0x242bd4['push'](_0x242bd4['shift']());}}}(a155_0x4c98,0x43349));export function detectSqlType(_0x16147f){const _0x566d3b=a155_0x2933;if(!_0x16147f?.[_0x566d3b(0x173)]())return{'type':_0x566d3b(0x169),'isSelectOnly':![],'isDangerous':![],'reason':_0x566d3b(0x172)};const _0x3ed2b6=_0x16147f['replace'](/#\{[^}]*\}/g,'?')[_0x566d3b(0x175)](/\$\{[^}]*\}/g,'?')[_0x566d3b(0x175)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x566d3b(0x175)](/\/\*[\s\S]*?\*\//g,'')[_0x566d3b(0x173)](),_0x444a2a=_0x3ed2b6['split']('\x0a');let _0x185f37='';for(const _0x4aaac3 of _0x444a2a){const _0x1a7094=_0x4aaac3[_0x566d3b(0x173)]();if(!_0x1a7094||_0x1a7094[_0x566d3b(0x167)]('--')||_0x1a7094[_0x566d3b(0x167)]('/*'))continue;_0x185f37=_0x1a7094;break;}const _0x600ad4=_0x185f37[_0x566d3b(0x17a)]();if(_0x600ad4[_0x566d3b(0x167)](_0x566d3b(0x160))||_0x600ad4['startsWith'](_0x566d3b(0x17e))){const _0x23e30b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x3ed2b6);return{'type':_0x566d3b(0x160),'isSelectOnly':!_0x23e30b,'isDangerous':_0x23e30b,'reason':_0x23e30b?_0x566d3b(0x164):undefined};}if(_0x600ad4['startsWith']('INSERT'))return{'type':_0x566d3b(0x176),'isSelectOnly':![],'isDangerous':![]};if(_0x600ad4[_0x566d3b(0x167)]('UPDATE'))return{'type':_0x566d3b(0x166),'isSelectOnly':![],'isDangerous':![]};if(_0x600ad4[_0x566d3b(0x167)](_0x566d3b(0x161)))return{'type':_0x566d3b(0x161),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x566d3b(0x180)](_0x600ad4))return{'type':_0x566d3b(0x15d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x566d3b(0x165)};return{'type':_0x566d3b(0x169),'isSelectOnly':![],'isDangerous':![]};}function a155_0x4c98(){const _0x202fd1=['828918uvgLMM','includes','toUpperCase','20SlPcfR','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','type','WITH','add','test','370339meNmPC','9HQXAwV','101633XiPEop','isDangerous','DDL','\x20with\x20parameters:\x20','\x20query\x20targeting\x20','SELECT','DELETE','from','push','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','UPDATE','startsWith','18023930LrBOVO','UNKNOWN','match','462284JiGLSk','unknown\x20table(s)','288QhrocV','reason','27756lDjDLM','matchAll','2771982rbEKvN','SQL\x20content\x20is\x20empty','trim','length','replace','INSERT','join'];a155_0x4c98=function(){return _0x202fd1;};return a155_0x4c98();}function extractTables(_0x49a8e9){const _0x5c9bb4=a155_0x2933,_0x4d4a23=_0x49a8e9[_0x5c9bb4(0x175)](/#\{[^}]*\}/g,'?')[_0x5c9bb4(0x175)](/\$\{[^}]*\}/g,'?')[_0x5c9bb4(0x175)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x5c9bb4(0x175)](/\/\*[\s\S]*?\*\//g,''),_0x4d0842=[],_0xda8397=_0x4d4a23[_0x5c9bb4(0x16a)](/FROM\s+([^\s,)(]+)/i);if(_0xda8397?.[0x1])_0x4d0842['push'](_0xda8397[0x1][_0x5c9bb4(0x175)](/[`"]/g,''));for(const _0x5bf8b5 of _0x4d4a23[_0x5c9bb4(0x170)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x474e91=_0x5bf8b5[0x1]?.[_0x5c9bb4(0x175)](/[`"]/g,'');if(_0x474e91&&!_0x4d0842[_0x5c9bb4(0x179)](_0x474e91))_0x4d0842[_0x5c9bb4(0x163)](_0x474e91);}const _0x1b8e4a=_0x4d4a23[_0x5c9bb4(0x16a)](/INTO\s+([^\s(]+)/i);if(_0x1b8e4a?.[0x1]){const _0x1f1bfe=_0x1b8e4a[0x1][_0x5c9bb4(0x175)](/[`"]/g,'');if(!_0x4d0842[_0x5c9bb4(0x179)](_0x1f1bfe))_0x4d0842[_0x5c9bb4(0x163)](_0x1f1bfe);}const _0x5f3644=_0x4d4a23[_0x5c9bb4(0x16a)](/UPDATE\s+([^\s,)(]+)/i);if(_0x5f3644?.[0x1]){const _0x3a2eac=_0x5f3644[0x1][_0x5c9bb4(0x175)](/[`"]/g,'');if(!_0x4d0842[_0x5c9bb4(0x179)](_0x3a2eac))_0x4d0842[_0x5c9bb4(0x163)](_0x3a2eac);}return _0x4d0842;}function a155_0x2933(_0x3fed7c,_0x464d38){_0x3fed7c=_0x3fed7c-0x159;const _0x4c9845=a155_0x4c98();let _0x2933b6=_0x4c9845[_0x3fed7c];return _0x2933b6;}function extractParameters(_0x4b891d){const _0x57191a=a155_0x2933,_0x1212b0=new Set();for(const _0xde1497 of _0x4b891d[_0x57191a(0x170)](/#\{(\w+)\}/g))if(_0xde1497[0x1])_0x1212b0[_0x57191a(0x17f)](_0xde1497[0x1]);for(const _0x386518 of _0x4b891d[_0x57191a(0x170)](/\$\{(\w+)\}/g))if(_0x386518[0x1])_0x1212b0[_0x57191a(0x17f)](_0x386518[0x1]);return Array[_0x57191a(0x162)](_0x1212b0);}export function validateSql(_0x38ea4f){const _0x5b7f08=a155_0x2933,_0x44558c=detectSqlType(_0x38ea4f),_0x2bfb25=extractTables(_0x38ea4f),_0x22d906=extractParameters(_0x38ea4f);if(_0x44558c[_0x5b7f08(0x15c)])return{'valid':![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x44558c[_0x5b7f08(0x16e)]||_0x44558c[_0x5b7f08(0x17d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x44558c[_0x5b7f08(0x17d)]===_0x5b7f08(0x169))return{'valid':![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x5b7f08(0x17c)};return{'valid':!![],'sqlType':_0x44558c,'tables':_0x2bfb25,'parameters':_0x22d906,'message':_0x44558c[_0x5b7f08(0x17d)]+_0x5b7f08(0x15f)+(_0x2bfb25[_0x5b7f08(0x174)]?_0x2bfb25['join'](',\x20'):_0x5b7f08(0x16c))+(_0x22d906['length']?_0x5b7f08(0x15e)+_0x22d906[_0x5b7f08(0x177)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a156_0x4d12d4=a156_0x2054;(function(_0x3bdbb3,_0x117228){const _0x478694=a156_0x2054,_0x56e318=_0x3bdbb3();while(!![]){try{const _0xcbea62=parseInt(_0x478694(0xd5))/0x1+parseInt(_0x478694(0xde))/0x2*(-parseInt(_0x478694(0xd8))/0x3)+parseInt(_0x478694(0xd6))/0x4+parseInt(_0x478694(0xd7))/0x5+parseInt(_0x478694(0xd3))/0x6+-parseInt(_0x478694(0xe2))/0x7*(parseInt(_0x478694(0xe0))/0x8)+-parseInt(_0x478694(0xe3))/0x9*(parseInt(_0x478694(0xdc))/0xa);if(_0xcbea62===_0x117228)break;else _0x56e318['push'](_0x56e318['shift']());}catch(_0x1c56de){_0x56e318['push'](_0x56e318['shift']());}}}(a156_0x1db6,0x35558));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a156_0x2054(_0x107e5e,_0x33f37b){_0x107e5e=_0x107e5e-0xd3;const _0x1db6a6=a156_0x1db6();let _0x20541f=_0x1db6a6[_0x107e5e];return _0x20541f;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a156_0x1db6(){const _0x3ff579=['134817YqdJMr','1155784kZRvXq','1962950bUCJUf','81hlfWSG','join','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','30TXFvCf','Tip:\x20`','13714cxsgxz','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','8XwjAnC','Run\x20`','2131451ndyWng','1254150JdenfG','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1858710RURpMa','\x20auth`\x20to\x20login\x20first.'];a156_0x1db6=function(){return _0x3ff579;};return a156_0x1db6();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x4d12d4(0xe1)+CLI_BIN_NAME+a156_0x4d12d4(0xd4),'configMissingHint':[a156_0x4d12d4(0xda)+CLI_BIN_NAME+a156_0x4d12d4(0xdf),a156_0x4d12d4(0xdd)+CLI_BIN_NAME+a156_0x4d12d4(0xe4)][a156_0x4d12d4(0xd9)](a156_0x4d12d4(0xdb)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a156_0xc44008=a156_0x23cd;(function(_0x2b4e59,_0x3cde6c){const _0x5582e7=a156_0x23cd,_0x51eb5c=_0x2b4e59();while(!![]){try{const _0x1cd606=-parseInt(_0x5582e7(0x9f))/0x1+-parseInt(_0x5582e7(0x9c))/0x2+-parseInt(_0x5582e7(0x95))/0x3*(parseInt(_0x5582e7(0x94))/0x4)+parseInt(_0x5582e7(0x9d))/0x5+parseInt(_0x5582e7(0x99))/0x6*(parseInt(_0x5582e7(0x9b))/0x7)+-parseInt(_0x5582e7(0x9a))/0x8+-parseInt(_0x5582e7(0x96))/0x9*(-parseInt(_0x5582e7(0x97))/0xa);if(_0x1cd606===_0x3cde6c)break;else _0x51eb5c['push'](_0x51eb5c['shift']());}catch(_0x5a1d4f){_0x51eb5c['push'](_0x51eb5c['shift']());}}}(a156_0x5105,0x60663));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a156_0x23cd(_0x401d63,_0x54ddcd){_0x401d63=_0x401d63-0x91;const _0x510547=a156_0x5105();let _0x23cdc1=_0x510547[_0x401d63];return _0x23cdc1;}function a156_0x5105(){const _0xf3fe9e=['9VrxBkQ','17373690pOTpsN','\x20auth`\x20to\x20login\x20first.','1089372nLssHb','5587048qRZmqX','21VWrgkG','1149678yXhBpr','1714890ZwRWeZ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','559932YsJudN','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Tip:\x20`','join','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','317624flXZEn','15VKiMAz'];a156_0x5105=function(){return _0xf3fe9e;};return a156_0x5105();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a156_0xc44008(0x98),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a156_0xc44008(0x93),a156_0xc44008(0x91)+CLI_BIN_NAME+a156_0xc44008(0xa0)][a156_0xc44008(0x92)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a156_0xc44008(0x9e)});
@@ -1 +1 @@
1
- (function(_0x25c1e1,_0x20d004){var _0x3c3d13=a157_0x599b,_0x3eeaaa=_0x25c1e1();while(!![]){try{var _0x35e3bf=-parseInt(_0x3c3d13(0xcf))/0x1+parseInt(_0x3c3d13(0xcd))/0x2*(parseInt(_0x3c3d13(0xd2))/0x3)+-parseInt(_0x3c3d13(0xcb))/0x4+-parseInt(_0x3c3d13(0xd0))/0x5*(-parseInt(_0x3c3d13(0xd5))/0x6)+-parseInt(_0x3c3d13(0xd4))/0x7*(parseInt(_0x3c3d13(0xce))/0x8)+-parseInt(_0x3c3d13(0xd1))/0x9+parseInt(_0x3c3d13(0xd3))/0xa*(-parseInt(_0x3c3d13(0xcc))/0xb);if(_0x35e3bf===_0x20d004)break;else _0x3eeaaa['push'](_0x3eeaaa['shift']());}catch(_0x3d88e0){_0x3eeaaa['push'](_0x3eeaaa['shift']());}}}(a157_0x2d36,0xb9772));function a157_0x599b(_0x4aadfb,_0x3f1489){_0x4aadfb=_0x4aadfb-0xcb;var _0x2d3694=a157_0x2d36();var _0x599b0c=_0x2d3694[_0x4aadfb];return _0x599b0c;}function a157_0x2d36(){var _0x22ea42=['1930080LCTsmd','33ODUaWl','154zGrqzp','586120FmpzXz','284351QIMZQO','961625TJujaz','51975Jgohnx','20157UicjXE','371770VQxCni','21VTADYk','42GwbXwl'];a157_0x2d36=function(){return _0x22ea42;};return a157_0x2d36();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x439f24}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2509be){return a157_0x439f24(_0x2509be,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x1e10d8,_0x448e3a){var _0x15a5fd=a157_0x2364,_0x579712=_0x1e10d8();while(!![]){try{var _0x59744f=parseInt(_0x15a5fd(0x13f))/0x1*(parseInt(_0x15a5fd(0x139))/0x2)+parseInt(_0x15a5fd(0x142))/0x3*(parseInt(_0x15a5fd(0x140))/0x4)+-parseInt(_0x15a5fd(0x141))/0x5+-parseInt(_0x15a5fd(0x13a))/0x6+parseInt(_0x15a5fd(0x143))/0x7+parseInt(_0x15a5fd(0x13e))/0x8*(parseInt(_0x15a5fd(0x13c))/0x9)+-parseInt(_0x15a5fd(0x13b))/0xa*(-parseInt(_0x15a5fd(0x13d))/0xb);if(_0x59744f===_0x448e3a)break;else _0x579712['push'](_0x579712['shift']());}catch(_0x481ac9){_0x579712['push'](_0x579712['shift']());}}}(a157_0x3149,0x97d92));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a157_0x3149(){var _0x577ac1=['1195030dOfLSJ','2154tkCGNY','105203BrzGPj','162468QACBoU','7340568qXbRsk','3590jsoTin','191502bRlmXb','36861dnwTID','64kOInOa','4VpkQHx','2068kBWfUm'];a157_0x3149=function(){return _0x577ac1;};return a157_0x3149();}function a157_0x2364(_0xbadf60,_0x1dc466){_0xbadf60=_0xbadf60-0x139;var _0x3149c3=a157_0x3149();var _0x236480=_0x3149c3[_0xbadf60];return _0x236480;}import{buildAllFlags as a157_0x5dca30}from'@lovrabet/cli-framework';export function buildAllFlags(_0x779b6b){return a157_0x5dca30(_0x779b6b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a158_0x1ff045=a158_0x688a;function a158_0x688a(_0x22b933,_0x576f05){_0x22b933=_0x22b933-0xc1;const _0x50545a=a158_0x5054();let _0x688acc=_0x50545a[_0x22b933];return _0x688acc;}(function(_0x5164ce,_0x1eb235){const _0x2ade85=a158_0x688a,_0x27d034=_0x5164ce();while(!![]){try{const _0x5473e3=-parseInt(_0x2ade85(0xc5))/0x1*(-parseInt(_0x2ade85(0xcc))/0x2)+parseInt(_0x2ade85(0xc7))/0x3*(-parseInt(_0x2ade85(0xcb))/0x4)+parseInt(_0x2ade85(0xc9))/0x5*(-parseInt(_0x2ade85(0xc3))/0x6)+parseInt(_0x2ade85(0xc1))/0x7*(-parseInt(_0x2ade85(0xce))/0x8)+-parseInt(_0x2ade85(0xc6))/0x9*(-parseInt(_0x2ade85(0xc8))/0xa)+-parseInt(_0x2ade85(0xc2))/0xb+parseInt(_0x2ade85(0xcd))/0xc;if(_0x5473e3===_0x1eb235)break;else _0x27d034['push'](_0x27d034['shift']());}catch(_0x50b01e){_0x27d034['push'](_0x27d034['shift']());}}}(a158_0x5054,0x9ca8c));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x1ff045(0xca)];function a158_0x5054(){const _0x59446c=['381iZteBN','10MDWbja','2620fjPsAX','parseFlags','18676THvnhQ','2hABUDF','26908668DfGbJA','8dfQHIp','5433533zoriTS','8724331KfLQAK','642SJePey','validateFlags','302215tuWiYB','2838987ipXMQD'];a158_0x5054=function(){return _0x59446c;};return a158_0x5054();}export const validateFlags=helpers[a158_0x1ff045(0xc4)];
1
+ function a158_0x493e(_0x427183,_0x2d3332){_0x427183=_0x427183-0x74;const _0x38c57d=a158_0x38c5();let _0x493e34=_0x38c57d[_0x427183];return _0x493e34;}const a158_0x30478a=a158_0x493e;(function(_0x2cb9f6,_0x4a849e){const _0x2bc43a=a158_0x493e,_0x22a3a=_0x2cb9f6();while(!![]){try{const _0xf6b2c4=-parseInt(_0x2bc43a(0x7b))/0x1*(parseInt(_0x2bc43a(0x7f))/0x2)+parseInt(_0x2bc43a(0x78))/0x3*(-parseInt(_0x2bc43a(0x7c))/0x4)+parseInt(_0x2bc43a(0x74))/0x5+-parseInt(_0x2bc43a(0x75))/0x6*(-parseInt(_0x2bc43a(0x76))/0x7)+parseInt(_0x2bc43a(0x79))/0x8*(parseInt(_0x2bc43a(0x80))/0x9)+-parseInt(_0x2bc43a(0x7a))/0xa+-parseInt(_0x2bc43a(0x7d))/0xb;if(_0xf6b2c4===_0x4a849e)break;else _0x22a3a['push'](_0x22a3a['shift']());}catch(_0x4e5445){_0x22a3a['push'](_0x22a3a['shift']());}}}(a158_0x38c5,0xb7149));function a158_0x38c5(){const _0x3e7dd7=['146312INLmxP','9489020ZkKoaR','44aSneXJ','900eWULyL','4194047BbdAWo','parseFlags','13532iCihhD','342PgCFrk','5803505lshPjV','1416IahWAq','23114oDGsDG','validateFlags','3429phvSGO'];a158_0x38c5=function(){return _0x3e7dd7;};return a158_0x38c5();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x30478a(0x7e)];export const validateFlags=helpers[a158_0x30478a(0x77)];
@@ -1 +1 @@
1
- const a159_0x232983=a159_0x4a9e;(function(_0x1c049e,_0x4ded51){const _0x40ec42=a159_0x4a9e,_0x4f5e69=_0x1c049e();while(!![]){try{const _0x1b2dd8=-parseInt(_0x40ec42(0x1a9))/0x1+parseInt(_0x40ec42(0x19d))/0x2*(parseInt(_0x40ec42(0x1a2))/0x3)+parseInt(_0x40ec42(0x19a))/0x4+-parseInt(_0x40ec42(0x1aa))/0x5*(-parseInt(_0x40ec42(0x19e))/0x6)+parseInt(_0x40ec42(0x1a4))/0x7*(-parseInt(_0x40ec42(0x19b))/0x8)+parseInt(_0x40ec42(0x19c))/0x9*(-parseInt(_0x40ec42(0x1a0))/0xa)+parseInt(_0x40ec42(0x1a3))/0xb*(parseInt(_0x40ec42(0x1a8))/0xc);if(_0x1b2dd8===_0x4ded51)break;else _0x4f5e69['push'](_0x4f5e69['shift']());}catch(_0x5c18d7){_0x4f5e69['push'](_0x4f5e69['shift']());}}}(a159_0x1714,0xdd03d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a159_0x1714(){const _0x2455bb=['196Lfsvzs','Requires\x20appcode\x20(set\x20via\x20`','generateServiceHelp','\x20project\x20init`\x20or\x20--appcode).','12lVEsMl','472369GSMMLA','65pRTfjb','242004FGhHCA','262232lPOwCZ','18ikBNwG','6JKzEIp','668448ICyOpX','generateCommandHelp','1725610KVRlhF','\x20[args]\x20[flags]','117921NUrAHs','11152394FWVhbs'];a159_0x1714=function(){return _0x2455bb;};return a159_0x1714();}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':_0x194fbf=>serviceGroups['get'](_0x194fbf),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x232983(0x1a5)+CLI_BIN_NAME+a159_0x232983(0x1a7),'serviceUsageSuffix':a159_0x232983(0x1a1),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2b4d51){const _0x2a2275=a159_0x232983;return generators[_0x2a2275(0x19f)](_0x2b4d51);}function a159_0x4a9e(_0x155385,_0x2357fa){_0x155385=_0x155385-0x19a;const _0x171442=a159_0x1714();let _0x4a9e54=_0x171442[_0x155385];return _0x4a9e54;}export const generateServiceHelp=generators[a159_0x232983(0x1a6)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a159_0x45b874=a159_0x5e2c;(function(_0xb94b23,_0x4a04e4){const _0x2f9e1a=a159_0x5e2c,_0x832ee5=_0xb94b23();while(!![]){try{const _0x5442b3=parseInt(_0x2f9e1a(0xe2))/0x1+-parseInt(_0x2f9e1a(0xe3))/0x2*(parseInt(_0x2f9e1a(0xe6))/0x3)+-parseInt(_0x2f9e1a(0xdd))/0x4+parseInt(_0x2f9e1a(0xe4))/0x5+-parseInt(_0x2f9e1a(0xe7))/0x6*(parseInt(_0x2f9e1a(0xdc))/0x7)+parseInt(_0x2f9e1a(0xe8))/0x8*(-parseInt(_0x2f9e1a(0xde))/0x9)+parseInt(_0x2f9e1a(0xdf))/0xa;if(_0x5442b3===_0x4a04e4)break;else _0x832ee5['push'](_0x832ee5['shift']());}catch(_0x56d108){_0x832ee5['push'](_0x832ee5['shift']());}}}(a159_0x53dc,0x81179));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a159_0x53dc(){const _0x54ad5e=['835668Jcxfqd','705242fpKyLE','2156095QrFKOW','\x20project\x20init`\x20or\x20--appcode).','3hPmToh','42FKDMxF','72iHSfcR','\x20[args]\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','11529ShiQra','2276484bqArwU','981324ISjLKH','11764690QSPpgs','generateServiceHelp','generateCommandHelp'];a159_0x53dc=function(){return _0x54ad5e;};return a159_0x53dc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a159_0x5e2c(_0x4ef57d,_0x2274bf){_0x4ef57d=_0x4ef57d-0xdc;const _0x53dcf9=a159_0x53dc();let _0x5e2ceb=_0x53dcf9[_0x4ef57d];return _0x5e2ceb;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x358539=>serviceGroups['get'](_0x358539),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x45b874(0xea)+CLI_BIN_NAME+a159_0x45b874(0xe5),'serviceUsageSuffix':a159_0x45b874(0xe9),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x598fae){const _0x4a1080=a159_0x45b874;return generators[_0x4a1080(0xe1)](_0x598fae);}export const generateServiceHelp=generators[a159_0x45b874(0xe0)];export const generateFullHelp=generators[a159_0x45b874(0xeb)];
@@ -1 +1 @@
1
- (function(_0x15d933,_0x1f6d61){var _0x4e693d=a160_0x55d2,_0x16833e=_0x15d933();while(!![]){try{var _0x203922=parseInt(_0x4e693d(0x146))/0x1*(-parseInt(_0x4e693d(0x141))/0x2)+-parseInt(_0x4e693d(0x145))/0x3+-parseInt(_0x4e693d(0x142))/0x4*(parseInt(_0x4e693d(0x13e))/0x5)+-parseInt(_0x4e693d(0x140))/0x6*(parseInt(_0x4e693d(0x13f))/0x7)+parseInt(_0x4e693d(0x143))/0x8+-parseInt(_0x4e693d(0x144))/0x9+parseInt(_0x4e693d(0x13d))/0xa;if(_0x203922===_0x1f6d61)break;else _0x16833e['push'](_0x16833e['shift']());}catch(_0x33a309){_0x16833e['push'](_0x16833e['shift']());}}}(a160_0x5818,0xbd201));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';function a160_0x55d2(_0x76c3be,_0x108221){_0x76c3be=_0x76c3be-0x13d;var _0x58187e=a160_0x5818();var _0x55d28d=_0x58187e[_0x76c3be];return _0x55d28d;}function a160_0x5818(){var _0x33dbad=['38qUGYDQ','27307870CVTFfR','60bqyXgo','154MtrXqX','331698aMmHvq','4804gOaYtT','79944wcqrFa','5759648wiHujO','6655959pmEmLY','1167603aSJRiY'];a160_0x5818=function(){return _0x33dbad;};return a160_0x5818();}
1
+ (function(_0x4a6c37,_0x5ba9f8){var _0x34bc68=a160_0x21a6,_0x5f6477=_0x4a6c37();while(!![]){try{var _0x343ddf=parseInt(_0x34bc68(0x69))/0x1+parseInt(_0x34bc68(0x6b))/0x2+-parseInt(_0x34bc68(0x66))/0x3*(-parseInt(_0x34bc68(0x6a))/0x4)+parseInt(_0x34bc68(0x65))/0x5*(-parseInt(_0x34bc68(0x6c))/0x6)+parseInt(_0x34bc68(0x64))/0x7+-parseInt(_0x34bc68(0x68))/0x8+-parseInt(_0x34bc68(0x67))/0x9*(parseInt(_0x34bc68(0x6d))/0xa);if(_0x343ddf===_0x5ba9f8)break;else _0x5f6477['push'](_0x5f6477['shift']());}catch(_0x413ee5){_0x5f6477['push'](_0x5f6477['shift']());}}}(a160_0x53d8,0x1d623));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';function a160_0x21a6(_0x69c1ab,_0x22ad6c){_0x69c1ab=_0x69c1ab-0x64;var _0x53d815=a160_0x53d8();var _0x21a64d=_0x53d815[_0x69c1ab];return _0x21a64d;}export{extractList,extractPaging}from'../framework/response.js';function a160_0x53d8(){var _0x42053c=['42Vurffn','1261640fgmTuE','1427727jJsqdu','136690DWPFab','126402XDzxvQ','9byLWMW','1186600iitfDd','147301tcJKMf','20XXrwPg','48556ouGDGK'];a160_0x53d8=function(){return _0x42053c;};return a160_0x53d8();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x7ff945,_0x27d2cb){const _0x5e522d=a161_0x9414,_0x12c515=_0x7ff945();while(!![]){try{const _0x48978a=parseInt(_0x5e522d(0x101))/0x1+-parseInt(_0x5e522d(0x104))/0x2+parseInt(_0x5e522d(0xff))/0x3*(parseInt(_0x5e522d(0x106))/0x4)+-parseInt(_0x5e522d(0x103))/0x5+-parseInt(_0x5e522d(0x102))/0x6+-parseInt(_0x5e522d(0xfe))/0x7*(-parseInt(_0x5e522d(0x100))/0x8)+parseInt(_0x5e522d(0x105))/0x9;if(_0x48978a===_0x27d2cb)break;else _0x12c515['push'](_0x12c515['shift']());}catch(_0x5e9663){_0x12c515['push'](_0x12c515['shift']());}}}(a161_0xd6f2,0x4e7ce));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a161_0xd6f2(){const _0x4d2caf=['133472PDCQJU','2985600ZFgAKB','2632390qguPLu','86850eLyjKk','2491227SniWLm','16004dYlnfe','7ooZJLI','393giRGek','3636664Kmjrfg'];a161_0xd6f2=function(){return _0x4d2caf;};return a161_0xd6f2();}function a161_0x9414(_0x442cbe,_0x25aab6){_0x442cbe=_0x442cbe-0xfe;const _0xd6f250=a161_0xd6f2();let _0x9414e7=_0xd6f250[_0x442cbe];return _0x9414e7;}import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x3a8a19,_0x23a572){const _0x237892=a161_0x12b9,_0x141986=_0x3a8a19();while(!![]){try{const _0x3557e7=-parseInt(_0x237892(0x6a))/0x1+-parseInt(_0x237892(0x6c))/0x2+parseInt(_0x237892(0x73))/0x3*(-parseInt(_0x237892(0x75))/0x4)+-parseInt(_0x237892(0x6f))/0x5*(-parseInt(_0x237892(0x6b))/0x6)+parseInt(_0x237892(0x70))/0x7*(parseInt(_0x237892(0x71))/0x8)+-parseInt(_0x237892(0x72))/0x9*(-parseInt(_0x237892(0x74))/0xa)+parseInt(_0x237892(0x6d))/0xb*(parseInt(_0x237892(0x6e))/0xc);if(_0x3557e7===_0x23a572)break;else _0x141986['push'](_0x141986['shift']());}catch(_0x282494){_0x141986['push'](_0x141986['shift']());}}}(a161_0xff91,0x4463e));function a161_0xff91(){const _0x19956b=['849COGRGh','2026210YxOHAx','4912dVuWMF','142082IQuaqv','36enXWJJ','788462dZtjnI','640541zWtieH','12GuUlxn','391015UCoioG','14wBMnkc','925088NWwWnV','18ykVjvz'];a161_0xff91=function(){return _0x19956b;};return a161_0xff91();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a161_0x12b9(_0x15e04e,_0x2901a0){_0x15e04e=_0x15e04e-0x6a;const _0xff91cc=a161_0xff91();let _0x12b9fc=_0xff91cc[_0x15e04e];return _0x12b9fc;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x3bdcad,_0x727168){var _0x4cbf03=a162_0x4aa8,_0x449c63=_0x3bdcad();while(!![]){try{var _0x416467=parseInt(_0x4cbf03(0x78))/0x1+parseInt(_0x4cbf03(0x7b))/0x2+parseInt(_0x4cbf03(0x76))/0x3+parseInt(_0x4cbf03(0x7a))/0x4+-parseInt(_0x4cbf03(0x75))/0x5+parseInt(_0x4cbf03(0x79))/0x6+-parseInt(_0x4cbf03(0x77))/0x7;if(_0x416467===_0x727168)break;else _0x449c63['push'](_0x449c63['shift']());}catch(_0x11c53b){_0x449c63['push'](_0x449c63['shift']());}}}(a162_0x44be,0xdd12d));function a162_0x44be(){var _0x3ea87a=['223266aCkrAt','10736544OUIlFt','124824WMFjpe','8292576LsitDk','2858288ncgoJa','591370hVGkIp','761450CXTOxx'];a162_0x44be=function(){return _0x3ea87a;};return a162_0x44be();}function a162_0x4aa8(_0x2d3708,_0x42a79a){_0x2d3708=_0x2d3708-0x75;var _0x44bef0=a162_0x44be();var _0x4aa89e=_0x44bef0[_0x2d3708];return _0x4aa89e;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a162_0x530c(_0x59b275,_0x339998){_0x59b275=_0x59b275-0x13a;var _0x313c93=a162_0x313c();var _0x530c07=_0x313c93[_0x59b275];return _0x530c07;}(function(_0x5bd0d7,_0x22e550){var _0x214996=a162_0x530c,_0x931777=_0x5bd0d7();while(!![]){try{var _0x3445d6=-parseInt(_0x214996(0x13e))/0x1*(parseInt(_0x214996(0x146))/0x2)+-parseInt(_0x214996(0x13a))/0x3*(-parseInt(_0x214996(0x13f))/0x4)+-parseInt(_0x214996(0x140))/0x5*(-parseInt(_0x214996(0x143))/0x6)+parseInt(_0x214996(0x13d))/0x7*(parseInt(_0x214996(0x142))/0x8)+-parseInt(_0x214996(0x141))/0x9*(parseInt(_0x214996(0x13c))/0xa)+parseInt(_0x214996(0x13b))/0xb+parseInt(_0x214996(0x144))/0xc*(-parseInt(_0x214996(0x145))/0xd);if(_0x3445d6===_0x22e550)break;else _0x931777['push'](_0x931777['shift']());}catch(_0x123ad1){_0x931777['push'](_0x931777['shift']());}}}(a162_0x313c,0x331dd));function a162_0x313c(){var _0x31cae6=['25620FLRoZa','169tTeLzy','1994XqokTV','61530NxYvDq','3082090uEYyJG','10rDiAnK','14OTNVGa','407ZyHiCR','56wQOGmP','205pWAGGl','879642vSZhDY','315568ATZgBh','13818DaonZM'];a162_0x313c=function(){return _0x31cae6;};return a162_0x313c();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x3e41c5,_0x114a61){const _0xa59454=a163_0xcd5a,_0x1b4936=_0x3e41c5();while(!![]){try{const _0x360e3f=parseInt(_0xa59454(0x85))/0x1+parseInt(_0xa59454(0x7a))/0x2*(parseInt(_0xa59454(0x76))/0x3)+parseInt(_0xa59454(0x80))/0x4*(-parseInt(_0xa59454(0x81))/0x5)+-parseInt(_0xa59454(0x77))/0x6*(-parseInt(_0xa59454(0x74))/0x7)+parseInt(_0xa59454(0x75))/0x8+-parseInt(_0xa59454(0x88))/0x9*(parseInt(_0xa59454(0x8a))/0xa)+parseInt(_0xa59454(0x7b))/0xb*(-parseInt(_0xa59454(0x78))/0xc);if(_0x360e3f===_0x114a61)break;else _0x1b4936['push'](_0x1b4936['shift']());}catch(_0x33fbd7){_0x1b4936['push'](_0x1b4936['shift']());}}}(a163_0xbc6e,0xaa231));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0xbc6e(){const _0x3aa8c6=['\x20api\x20pull`\x20first.','7ZZomhg','6704472kKOban','1677579IrSKgP','4603512zbvNjL','17584620PmSNtW','alias','2bUVWXE','11lCUYXL','name','.\x20Run\x20`','No\x20api.ts\x20found\x20in\x20','join','1396qfbSAa','2270fwFuLE','`\x20requires\x20either\x20--code\x20or\x20--alias.','Available\x20aliases:\x20','\x22.\x20','1170264sELVJD','some','string','72UbTesy','map','1267570Pwbneh','type','length','validation','code'];a163_0xbc6e=function(){return _0x3aa8c6;};return a163_0xbc6e();}import{CLI_BIN_NAME}from'../constant/cli.js';function a163_0xcd5a(_0x1e40e6,_0xf2c587){_0x1e40e6=_0x1e40e6-0x72;const _0xbc6ee6=a163_0xbc6e();let _0xcd5abc=_0xbc6ee6[_0x1e40e6];return _0xcd5abc;}export function resolveAliasToCode(_0x5235ea,_0x29db37,_0xbc0567,_0x3390b8){const _0x43fee4=a163_0xcd5a,_0x4f5073=_0x5235ea['flags'][_0x43fee4(0x86)](_0x2dca79=>_0x2dca79[_0x43fee4(0x7c)]===_0x43fee4(0x72)&&_0x2dca79['type']===_0x43fee4(0x87)),_0x487ace=_0x5235ea['flags'][_0x43fee4(0x86)](_0x5d7a17=>_0x5d7a17[_0x43fee4(0x7c)]===_0x43fee4(0x79)&&_0x5d7a17[_0x43fee4(0x8b)]===_0x43fee4(0x87));if(!_0x4f5073||!_0x487ace)return;const _0x174abd=_0x29db37[_0x43fee4(0x72)]?String(_0x29db37[_0x43fee4(0x72)]):'',_0x2145c3=_0x29db37[_0x43fee4(0x79)]?String(_0x29db37[_0x43fee4(0x79)]):'';if(!_0x174abd&&!_0x2145c3)throw CliErrors[_0x43fee4(0x8d)]('`'+_0x3390b8+_0x43fee4(0x82));if(_0x2145c3&&!_0x174abd){const _0x403cc2=resolveAlias(_0xbc0567,_0x2145c3);if(!_0x403cc2){const _0x636c17=listAliases(_0xbc0567)[_0x43fee4(0x89)](_0x58815f=>_0x58815f[_0x43fee4(0x79)]),_0x11aee0=_0x636c17[_0x43fee4(0x8c)]?_0x43fee4(0x83)+_0x636c17[_0x43fee4(0x7f)](',\x20'):_0x43fee4(0x7e)+_0xbc0567+_0x43fee4(0x7d)+CLI_BIN_NAME+_0x43fee4(0x73);throw CliErrors[_0x43fee4(0x8d)]('Unknown\x20alias\x20\x22'+_0x2145c3+_0x43fee4(0x84)+_0x11aee0);}_0x29db37[_0x43fee4(0x72)]=_0x403cc2;}}
1
+ function a163_0x4853(_0x4f325c,_0x44521b){_0x4f325c=_0x4f325c-0x165;const _0x100525=a163_0x1005();let _0x48531f=_0x100525[_0x4f325c];return _0x48531f;}(function(_0x3083b7,_0x58eaef){const _0x167575=a163_0x4853,_0xc61b04=_0x3083b7();while(!![]){try{const _0x1ecf38=parseInt(_0x167575(0x16b))/0x1*(parseInt(_0x167575(0x168))/0x2)+parseInt(_0x167575(0x171))/0x3*(parseInt(_0x167575(0x170))/0x4)+-parseInt(_0x167575(0x17d))/0x5+parseInt(_0x167575(0x173))/0x6+-parseInt(_0x167575(0x176))/0x7+parseInt(_0x167575(0x17c))/0x8*(parseInt(_0x167575(0x16c))/0x9)+-parseInt(_0x167575(0x16f))/0xa*(parseInt(_0x167575(0x16a))/0xb);if(_0x1ecf38===_0x58eaef)break;else _0xc61b04['push'](_0xc61b04['shift']());}catch(_0x2bf87a){_0xc61b04['push'](_0xc61b04['shift']());}}}(a163_0x1005,0x72c37));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a163_0x1005(){const _0x41ad75=['Available\x20aliases:\x20','string','alias','validation','2944COAAnB','941235DCLcOK','No\x20api.ts\x20found\x20in\x20','code','some','33148hGilaV','type','27643KZuHHW','43KsLKPE','12699TsBzub','.\x20Run\x20`','name','5330AgkQpC','408344hilWvr','21SgOfbh','flags','1054752XiVAPE','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','872039qBqRIt','map'];a163_0x1005=function(){return _0x41ad75;};return a163_0x1005();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1a09e5,_0x43f56b,_0x70d753,_0x50e034){const _0x260f6e=a163_0x4853,_0x2c7b6d=_0x1a09e5[_0x260f6e(0x172)][_0x260f6e(0x167)](_0x397b7f=>_0x397b7f[_0x260f6e(0x16e)]===_0x260f6e(0x166)&&_0x397b7f[_0x260f6e(0x169)]===_0x260f6e(0x179)),_0x121912=_0x1a09e5[_0x260f6e(0x172)][_0x260f6e(0x167)](_0x473289=>_0x473289[_0x260f6e(0x16e)]===_0x260f6e(0x17a)&&_0x473289[_0x260f6e(0x169)]===_0x260f6e(0x179));if(!_0x2c7b6d||!_0x121912)return;const _0x2de2e7=_0x43f56b[_0x260f6e(0x166)]?String(_0x43f56b['code']):'',_0x54a251=_0x43f56b[_0x260f6e(0x17a)]?String(_0x43f56b[_0x260f6e(0x17a)]):'';if(!_0x2de2e7&&!_0x54a251)throw CliErrors[_0x260f6e(0x17b)]('`'+_0x50e034+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x54a251&&!_0x2de2e7){const _0x178d36=resolveAlias(_0x70d753,_0x54a251);if(!_0x178d36){const _0x3f1807=listAliases(_0x70d753)[_0x260f6e(0x177)](_0x118c8a=>_0x118c8a[_0x260f6e(0x17a)]),_0x49a94d=_0x3f1807['length']?_0x260f6e(0x178)+_0x3f1807['join'](',\x20'):_0x260f6e(0x165)+_0x70d753+_0x260f6e(0x16d)+CLI_BIN_NAME+_0x260f6e(0x174);throw CliErrors[_0x260f6e(0x17b)](_0x260f6e(0x175)+_0x54a251+'\x22.\x20'+_0x49a94d);}_0x43f56b[_0x260f6e(0x166)]=_0x178d36;}}
@@ -1 +1 @@
1
- const a164_0x4f9470=a164_0xb18b;(function(_0xf54c33,_0x5c9712){const _0x3673c3=a164_0xb18b,_0x547076=_0xf54c33();while(!![]){try{const _0x55f264=-parseInt(_0x3673c3(0x130))/0x1*(-parseInt(_0x3673c3(0x13b))/0x2)+parseInt(_0x3673c3(0x11b))/0x3+-parseInt(_0x3673c3(0x12e))/0x4*(parseInt(_0x3673c3(0x139))/0x5)+-parseInt(_0x3673c3(0x11d))/0x6+-parseInt(_0x3673c3(0x13a))/0x7*(-parseInt(_0x3673c3(0x124))/0x8)+parseInt(_0x3673c3(0x129))/0x9*(parseInt(_0x3673c3(0x123))/0xa)+parseInt(_0x3673c3(0x131))/0xb*(-parseInt(_0x3673c3(0x137))/0xc);if(_0x55f264===_0x5c9712)break;else _0x547076['push'](_0x547076['shift']());}catch(_0x43f2b8){_0x547076['push'](_0x547076['shift']());}}}(a164_0x8a13,0x4b44f));function a164_0x8a13(){const _0x74305a=['High-risk\x20operation\x20`','currentApp','pageSize','cookie','⚠\x20\x20High-risk\x20operation:\x20','requiresAuth','289038wPjFXF','resolveCookie','1984764wkqVqY','../core/api-client.js','verbose','selectedAppName','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','3822440fGJsIh','8UrVmcF','apiDir','appcode','defaultVerbose','has','9yABpcx','service','map','defaultPageSize','name','12AIVkjA','apps','111164hPBcev','2167DYlQbc','riskLevel','defaultApp','isNonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','requiresAppCode','29460yoaFup','validation','253415OWtJGd','3238893UYfXoO','6dpRtAH'];a164_0x8a13=function(){return _0x74305a;};return a164_0x8a13();}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a164_0xb18b(_0x12e812,_0x4aef67){_0x12e812=_0x12e812-0x118;const _0x8a13a4=a164_0x8a13();let _0xb18bf9=_0x8a13a4[_0x12e812];return _0xb18bf9;}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_0x185b4a}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x5ceeab,_0x4bce11,_0x5da0fc=[]){const _0x574a4d=a164_0xb18b;return{'rawFlags':_0x4bce11,'args':_0x5da0fc,'resolveAppCode':()=>_0x5ceeab['appCode']||_0x4bce11[_0x574a4d(0x126)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5ceeab[_0x574a4d(0x118)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x185b4a(_0x4bce11),'defaultFormat':_0x5ceeab['format'],'defaultPageSize':_0x5ceeab[_0x574a4d(0x13e)],'defaultVerbose':_0x5ceeab[_0x574a4d(0x11f)],'apiDir':_0x5ceeab[_0x574a4d(0x125)],'riskLevel':_0x5ceeab[_0x574a4d(0x132)],'selectedAppName':_0x5ceeab['explicitAppName'],'mergedCli':{'defaultApp':_0x5ceeab[_0x574a4d(0x133)],'currentApp':_0x5ceeab[_0x574a4d(0x13d)],'appCode':_0x5ceeab['appCode'],'apps':_0x5ceeab[_0x574a4d(0x12f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4da5b9=>PIPELINE_FLAG_NAMES[a164_0x4f9470(0x128)](_0x4da5b9[a164_0x4f9470(0x12d)]))[a164_0x4f9470(0x12b)](({name:_0x3a7545,type:_0x1195a6,description:_0x4a9229})=>({'name':_0x3a7545,'type':_0x1195a6,'description':_0x4a9229})),'formatOutput':formatOutput,'getCommandLabel'(_0xf9f141){const _0x467927=a164_0x4f9470;return CLI_BIN_NAME+'\x20'+_0xf9f141[_0x467927(0x12a)]+'\x20'+_0xf9f141['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3eda1a){const _0x17fb4e=a164_0x4f9470;return CliErrors[_0x17fb4e(0x138)](_0x3eda1a);}},async 'prepare'(_0x10219a,_0x5a1f41,_0x4cefbb,_0x3d724f){const _0x290c88=a164_0x4f9470,_0x40ec4e=_0x5a1f41['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x10219a,_0x4cefbb,_0x40ec4e,_0x3d724f);let _0x45d427='';if(_0x10219a[_0x290c88(0x11a)]!==![]){_0x45d427=_0x5a1f41[_0x290c88(0x11c)]();if(!_0x45d427)throw CliErrors['authRequired']();const {setActiveCookie:_0x546e3b}=await import(_0x290c88(0x11e));_0x546e3b(_0x45d427);}const _0x4acc16=_0x5a1f41['resolveAppCode']()??'';if(_0x10219a[_0x290c88(0x136)]!==![]){if(!_0x4acc16)throw CliErrors['configMissing'](_0x290c88(0x121)+CLI_BIN_NAME+_0x290c88(0x122));}return{'defaults':{'booleans':{'verbose':_0x5a1f41[_0x290c88(0x127)]},'numbers':{'pagesize':_0x5a1f41[_0x290c88(0x12c)]}},'extras':{'appCode':_0x4acc16,'cookie':_0x45d427,'apiDomain':_0x5a1f41['resolveApiDomain'](),'apiDir':_0x40ec4e,'selectedAppName':_0x5a1f41[_0x290c88(0x120)],'mergedCli':_0x5a1f41['mergedCli']}};},async 'confirmHighRisk'({env:_0x6ee472,commandLabel:_0x20c7f5}){const _0x3b7821=a164_0x4f9470;if(_0x6ee472[_0x3b7821(0x134)])throw CliErrors[_0x3b7821(0x138)](_0x3b7821(0x13c)+_0x20c7f5+_0x3b7821(0x135));await requireConfirmationPrompt({'lines':[_0x3b7821(0x119)+_0x20c7f5,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4444d9=>CliErrors['cancelled'](_0x4444d9)});},async 'finalize'(){const _0x5537c5=a164_0x4f9470,{clearActiveCookie:_0x589621}=await import(_0x5537c5(0x11e));_0x589621();}};export async function runCommand(_0x50f883,_0x4974cb){await runCommandWithAdapter(_0x50f883,_0x4974cb,runnerAdapter);}
1
+ const a164_0x1f7b8f=a164_0xd6d4;(function(_0x3421ca,_0x1af1c2){const _0x411b82=a164_0xd6d4,_0x323633=_0x3421ca();while(!![]){try{const _0xddc645=-parseInt(_0x411b82(0x12b))/0x1*(-parseInt(_0x411b82(0x139))/0x2)+parseInt(_0x411b82(0x126))/0x3+parseInt(_0x411b82(0x11f))/0x4+parseInt(_0x411b82(0x115))/0x5+parseInt(_0x411b82(0x11e))/0x6*(-parseInt(_0x411b82(0x114))/0x7)+parseInt(_0x411b82(0x129))/0x8*(parseInt(_0x411b82(0x128))/0x9)+-parseInt(_0x411b82(0x12f))/0xa*(parseInt(_0x411b82(0x12d))/0xb);if(_0xddc645===_0x1af1c2)break;else _0x323633['push'](_0x323633['shift']());}catch(_0x8ed440){_0x323633['push'](_0x323633['shift']());}}}(a164_0x4bea,0x76b06));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';function a164_0x4bea(){const _0x84c1b=['defaultApp','cookie','28VXhhqQ','1141805epsJOD','validation','Set\x20appcode\x20via\x20`','resolveCookie','High-risk\x20operation\x20`','selectedAppName','isNonInteractive','explicitAppName','requiresAppCode','217104bKZnVd','301404OKdCpf','mergedCli','command','authRequired','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','apiDir','1293279Ussxww','format','7947xtiout','224jXbqBL','defaultPageSize','564JdHRvf','defaultVerbose','957HuwjvM','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','52970wBZooT','appCode','name','requiresAuth','has','resolveAppCode','map','⚠\x20\x20High-risk\x20operation:\x20','filter','\x20\x20\x20Continue?\x20[y/N]\x20','1178WDcRQJ','resolveApiDomain','service','apps','../core/api-client.js','currentApp'];a164_0x4bea=function(){return _0x84c1b;};return a164_0x4bea();}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_0x52986f}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a164_0xd6d4(_0x46184c,_0x5d6f7e){_0x46184c=_0x46184c-0x10f;const _0x4beafa=a164_0x4bea();let _0xd6d481=_0x4beafa[_0x46184c];return _0xd6d481;}export function createPipelineEnv(_0x3f3612,_0x3b0c6e,_0x184b68=[]){const _0xdf3fee=a164_0xd6d4;return{'rawFlags':_0x3b0c6e,'args':_0x184b68,'resolveAppCode':()=>_0x3f3612['appCode']||_0x3b0c6e['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3f3612[_0xdf3fee(0x113)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x52986f(_0x3b0c6e),'defaultFormat':_0x3f3612[_0xdf3fee(0x127)],'defaultPageSize':_0x3f3612['pageSize'],'defaultVerbose':_0x3f3612[_0xdf3fee(0x124)],'apiDir':_0x3f3612[_0xdf3fee(0x125)],'riskLevel':_0x3f3612['riskLevel'],'selectedAppName':_0x3f3612[_0xdf3fee(0x11c)],'mergedCli':{'defaultApp':_0x3f3612[_0xdf3fee(0x112)],'currentApp':_0x3f3612[_0xdf3fee(0x111)],'appCode':_0x3f3612[_0xdf3fee(0x130)],'apps':_0x3f3612[_0xdf3fee(0x10f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x1f7b8f(0x137)](_0xad1e3b=>PIPELINE_FLAG_NAMES[a164_0x1f7b8f(0x133)](_0xad1e3b[a164_0x1f7b8f(0x131)]))[a164_0x1f7b8f(0x135)](({name:_0x49f5b5,type:_0x381cd3,description:_0x28722b})=>({'name':_0x49f5b5,'type':_0x381cd3,'description':_0x28722b})),'formatOutput':formatOutput,'getCommandLabel'(_0x21b2ed){const _0x27ab0a=a164_0x1f7b8f;return CLI_BIN_NAME+'\x20'+_0x21b2ed[_0x27ab0a(0x13b)]+'\x20'+_0x21b2ed[_0x27ab0a(0x121)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x23a9ff){return CliErrors['validation'](_0x23a9ff);}},async 'prepare'(_0x53a8cb,_0x2a7808,_0x4328f9,_0x438137){const _0xf22f5c=a164_0x1f7b8f,_0x5e8dba=_0x2a7808['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x53a8cb,_0x4328f9,_0x5e8dba,_0x438137);let _0x1524da='';if(_0x53a8cb[_0xf22f5c(0x132)]!==![]){_0x1524da=_0x2a7808[_0xf22f5c(0x118)]();if(!_0x1524da)throw CliErrors[_0xf22f5c(0x122)]();const {setActiveCookie:_0x14e931}=await import(_0xf22f5c(0x110));_0x14e931(_0x1524da);}const _0x33a07e=_0x2a7808[_0xf22f5c(0x134)]()??'';if(_0x53a8cb[_0xf22f5c(0x11d)]!==![]){if(!_0x33a07e)throw CliErrors['configMissing'](_0xf22f5c(0x117)+CLI_BIN_NAME+_0xf22f5c(0x12e));}return{'defaults':{'booleans':{'verbose':_0x2a7808[_0xf22f5c(0x12c)]},'numbers':{'pagesize':_0x2a7808[_0xf22f5c(0x12a)]}},'extras':{'appCode':_0x33a07e,'cookie':_0x1524da,'apiDomain':_0x2a7808[_0xf22f5c(0x13a)](),'apiDir':_0x5e8dba,'selectedAppName':_0x2a7808[_0xf22f5c(0x11a)],'mergedCli':_0x2a7808[_0xf22f5c(0x120)]}};},async 'confirmHighRisk'({env:_0x10482b,commandLabel:_0xd070ff}){const _0x2f5904=a164_0x1f7b8f;if(_0x10482b[_0x2f5904(0x11b)])throw CliErrors[_0x2f5904(0x116)](_0x2f5904(0x119)+_0xd070ff+_0x2f5904(0x123));await requireConfirmationPrompt({'lines':[_0x2f5904(0x136)+_0xd070ff,_0x2f5904(0x138)],'createCancelledError':_0x2078b7=>CliErrors['cancelled'](_0x2078b7)});},async 'finalize'(){const _0x7f9846=a164_0x1f7b8f,{clearActiveCookie:_0x85e1d6}=await import(_0x7f9846(0x110));_0x85e1d6();}};export async function runCommand(_0x35f010,_0x314b5b){await runCommandWithAdapter(_0x35f010,_0x314b5b,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0x5ec81e,_0x493c87){const _0x5de996=a165_0x4965,_0x2d7197=_0x5ec81e();while(!![]){try{const _0x167a1c=-parseInt(_0x5de996(0x155))/0x1*(-parseInt(_0x5de996(0x157))/0x2)+-parseInt(_0x5de996(0x151))/0x3*(-parseInt(_0x5de996(0x150))/0x4)+-parseInt(_0x5de996(0x156))/0x5+parseInt(_0x5de996(0x153))/0x6+parseInt(_0x5de996(0x154))/0x7+parseInt(_0x5de996(0x152))/0x8+-parseInt(_0x5de996(0x14f))/0x9;if(_0x167a1c===_0x493c87)break;else _0x2d7197['push'](_0x2d7197['shift']());}catch(_0x46f83d){_0x2d7197['push'](_0x2d7197['shift']());}}}(a165_0xd81d,0xb3825));function a165_0xd81d(){const _0x32af32=['1216384eeOyjW','7601034hWpCTH','5149655mKEBqn','1VCotpo','2688330pVmlQj','2589996SnHhww','27008343eSmwit','32hLhYSQ','309117ObBRWm'];a165_0xd81d=function(){return _0x32af32;};return a165_0xd81d();}function a165_0x4965(_0x2ebf64,_0xcda57){_0x2ebf64=_0x2ebf64-0x14f;const _0xd81df6=a165_0xd81d();let _0x4965a9=_0xd81df6[_0x2ebf64];return _0x4965a9;}import{buildSchemaPayload as a165_0xea7261}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';export async function buildSchemaPayload(){const {serviceRegistry:_0x5d7882,findDefinition:_0x576515}=await import('../commands/registry.js');return a165_0xea7261({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5d7882,'buildAllFlags':buildAllFlags,'findDefinition':_0x576515});}
1
+ (function(_0xbb1733,_0x4455a9){const _0x5006bc=a165_0x41bf,_0x329a0b=_0xbb1733();while(!![]){try{const _0x4745e9=-parseInt(_0x5006bc(0x114))/0x1*(-parseInt(_0x5006bc(0x10e))/0x2)+parseInt(_0x5006bc(0x112))/0x3+-parseInt(_0x5006bc(0x113))/0x4+-parseInt(_0x5006bc(0x10d))/0x5+-parseInt(_0x5006bc(0x111))/0x6*(-parseInt(_0x5006bc(0x10c))/0x7)+-parseInt(_0x5006bc(0x110))/0x8+parseInt(_0x5006bc(0x10b))/0x9;if(_0x4745e9===_0x4455a9)break;else _0x329a0b['push'](_0x329a0b['shift']());}catch(_0x27a7e0){_0x329a0b['push'](_0x329a0b['shift']());}}}(a165_0x334a,0x23955));import{buildSchemaPayload as a165_0x4e8b46}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';function a165_0x41bf(_0x37058a,_0x59ce39){_0x37058a=_0x37058a-0x10b;const _0x334a16=a165_0x334a();let _0x41bfac=_0x334a16[_0x37058a];return _0x41bfac;}import{getCliVersion}from'../utils/version.js';function a165_0x334a(){const _0x329029=['477048syhDqh','23fGlyoK','2160612ZqSXFG','24003hTXkXv','1420710xFnGvm','16314UOFIml','../commands/registry.js','1238128xNdJBJ','96QAqlrx','664128AhEliA'];a165_0x334a=function(){return _0x329029;};return a165_0x334a();}export async function buildSchemaPayload(){const _0x117e4f=a165_0x41bf,{serviceRegistry:_0x60a712,findDefinition:_0x4cae3d}=await import(_0x117e4f(0x10f));return a165_0x4e8b46({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x60a712,'buildAllFlags':buildAllFlags,'findDefinition':_0x4cae3d});}
@@ -1 +1 @@
1
- function a166_0x29ea(_0x50a7ba,_0x21c70c){_0x50a7ba=_0x50a7ba-0xa9;var _0x52cd74=a166_0x52cd();var _0x29ea4f=_0x52cd74[_0x50a7ba];return _0x29ea4f;}(function(_0x265403,_0xbc4081){var _0x57515d=a166_0x29ea,_0x1756a0=_0x265403();while(!![]){try{var _0x48d11e=parseInt(_0x57515d(0xad))/0x1+-parseInt(_0x57515d(0xab))/0x2+parseInt(_0x57515d(0xb1))/0x3+parseInt(_0x57515d(0xae))/0x4*(-parseInt(_0x57515d(0xac))/0x5)+parseInt(_0x57515d(0xb0))/0x6*(parseInt(_0x57515d(0xaf))/0x7)+parseInt(_0x57515d(0xaa))/0x8+-parseInt(_0x57515d(0xa9))/0x9;if(_0x48d11e===_0xbc4081)break;else _0x1756a0['push'](_0x1756a0['shift']());}catch(_0x5a7c71){_0x1756a0['push'](_0x1756a0['shift']());}}}(a166_0x52cd,0x7676e));function a166_0x52cd(){var _0x2604f3=['14mrOjpb','2359950bAFmbl','2681109gEMKXR','14881608ZqhtwS','6426032oHHBHh','786590RhgqNx','4675QLSWik','248520puLilX','856lfKcMs'];a166_0x52cd=function(){return _0x2604f3;};return a166_0x52cd();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x32bf62,_0x25e8c7){var _0x46050a=a166_0x42ce,_0x53a1c0=_0x32bf62();while(!![]){try{var _0x26f895=parseInt(_0x46050a(0x72))/0x1*(parseInt(_0x46050a(0x73))/0x2)+parseInt(_0x46050a(0x71))/0x3+-parseInt(_0x46050a(0x77))/0x4*(parseInt(_0x46050a(0x76))/0x5)+-parseInt(_0x46050a(0x6d))/0x6*(-parseInt(_0x46050a(0x70))/0x7)+parseInt(_0x46050a(0x6e))/0x8+-parseInt(_0x46050a(0x75))/0x9*(parseInt(_0x46050a(0x6f))/0xa)+-parseInt(_0x46050a(0x74))/0xb;if(_0x26f895===_0x25e8c7)break;else _0x53a1c0['push'](_0x53a1c0['shift']());}catch(_0x2a547e){_0x53a1c0['push'](_0x53a1c0['shift']());}}}(a166_0x1ffd,0x73e91));function a166_0x42ce(_0x284b7e,_0x3e5377){_0x284b7e=_0x284b7e-0x6d;var _0x1ffd6d=a166_0x1ffd();var _0x42ced0=_0x1ffd6d[_0x284b7e];return _0x42ced0;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a166_0x1ffd(){var _0x55eaf7=['151134eXBuON','1679240nwJIaN','344030NEFEGE','133YfNeGL','857997zqzFHK','943313ZNaIqk','2qePjIx','5961439rXHQpe','99BvDQFV','45mpXEOY','232292eyXVZh'];a166_0x1ffd=function(){return _0x55eaf7;};return a166_0x1ffd();}
@@ -1 +1 @@
1
- const a167_0x495c5c=a167_0x464a;(function(_0x3fd771,_0x22e550){const _0x36a9a4=a167_0x464a,_0x19b298=_0x3fd771();while(!![]){try{const _0x444320=parseInt(_0x36a9a4(0x103))/0x1*(-parseInt(_0x36a9a4(0xfc))/0x2)+-parseInt(_0x36a9a4(0xfd))/0x3+-parseInt(_0x36a9a4(0xf8))/0x4+parseInt(_0x36a9a4(0x102))/0x5*(parseInt(_0x36a9a4(0xf9))/0x6)+parseInt(_0x36a9a4(0xfb))/0x7+parseInt(_0x36a9a4(0xf6))/0x8+parseInt(_0x36a9a4(0xf7))/0x9*(parseInt(_0x36a9a4(0xfa))/0xa);if(_0x444320===_0x22e550)break;else _0x19b298['push'](_0x19b298['shift']());}catch(_0x3f13ce){_0x19b298['push'](_0x19b298['shift']());}}}(a167_0x5892,0xc35fc));function a167_0x464a(_0x96e5b5,_0x210500){_0x96e5b5=_0x96e5b5-0xf6;const _0x589232=a167_0x5892();let _0x464a30=_0x589232[_0x96e5b5];return _0x464a30;}export const VERSION=a167_0x495c5c(0xfe);export const GIT_TAG=a167_0x495c5c(0xff);export const GIT_COMMIT=a167_0x495c5c(0x101);function a167_0x5892(){const _0x2feb99=['7362068OYKYyv','782XqmFZP','4480794fQgqFJ','2.1.7-beta.8','v2.1.7-beta.8','2026-04-26T13:44:36.634Z','579736e','26725oNZnOd','3281QPrfym','1116960wcrHTO','12546783zSoZWU','652920sDhODi','1296FOdgtR','10FMwlsJ'];a167_0x5892=function(){return _0x2feb99;};return a167_0x5892();}export const BUILD_TIME=a167_0x495c5c(0x100);
1
+ const a167_0x1bd427=a167_0x2dd8;(function(_0x359342,_0x2b2134){const _0xfec3ee=a167_0x2dd8,_0x2a4d41=_0x359342();while(!![]){try{const _0x146954=parseInt(_0xfec3ee(0x1b2))/0x1*(parseInt(_0xfec3ee(0x1bb))/0x2)+-parseInt(_0xfec3ee(0x1b9))/0x3*(-parseInt(_0xfec3ee(0x1bc))/0x4)+-parseInt(_0xfec3ee(0x1b8))/0x5*(-parseInt(_0xfec3ee(0x1b4))/0x6)+-parseInt(_0xfec3ee(0x1b0))/0x7*(parseInt(_0xfec3ee(0x1b5))/0x8)+-parseInt(_0xfec3ee(0x1b7))/0x9+parseInt(_0xfec3ee(0x1b1))/0xa*(parseInt(_0xfec3ee(0x1ba))/0xb)+-parseInt(_0xfec3ee(0x1b6))/0xc;if(_0x146954===_0x2b2134)break;else _0x2a4d41['push'](_0x2a4d41['shift']());}catch(_0x2fdfcd){_0x2a4d41['push'](_0x2a4d41['shift']());}}}(a167_0x4e33,0x98c57));export const VERSION='2.1.8';function a167_0x2dd8(_0x1f775c,_0x30ed77){_0x1f775c=_0x1f775c-0x1af;const _0x4e33ff=a167_0x4e33();let _0x2dd86a=_0x4e33ff[_0x1f775c];return _0x2dd86a;}function a167_0x4e33(){const _0x1e1038=['1668viWDzl','80120iAgwcF','6756624CgAzIo','9123156pqaOQA','11870ECnuKx','3oXAWFE','6861811ClBvGe','404990amLaTI','890452qNNYQp','v2.1.8','91TmoSHR','20RwQrBT','1BIOqGv','2026-04-27T11:22:09.326Z'];a167_0x4e33=function(){return _0x1e1038;};return a167_0x4e33();}export const GIT_TAG=a167_0x1bd427(0x1af);export const GIT_COMMIT='982a6ce';export const BUILD_TIME=a167_0x1bd427(0x1b3);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a168_0x315e(_0x23952b,_0x283eaf){_0x23952b=_0x23952b-0x144;var _0x556833=a168_0x5568();var _0x315e49=_0x556833[_0x23952b];return _0x315e49;}(function(_0x3d376f,_0x2fc3d6){var _0x5d0a66=a168_0x315e,_0x490240=_0x3d376f();while(!![]){try{var _0x402bcf=parseInt(_0x5d0a66(0x147))/0x1*(parseInt(_0x5d0a66(0x144))/0x2)+parseInt(_0x5d0a66(0x14b))/0x3*(parseInt(_0x5d0a66(0x14d))/0x4)+-parseInt(_0x5d0a66(0x149))/0x5*(parseInt(_0x5d0a66(0x146))/0x6)+-parseInt(_0x5d0a66(0x150))/0x7+-parseInt(_0x5d0a66(0x14e))/0x8+-parseInt(_0x5d0a66(0x153))/0x9+-parseInt(_0x5d0a66(0x14c))/0xa*(-parseInt(_0x5d0a66(0x152))/0xb);if(_0x402bcf===_0x2fc3d6)break;else _0x490240['push'](_0x490240['shift']());}catch(_0x378812){_0x490240['push'](_0x490240['shift']());}}}(a168_0x5568,0x5037c));import a168_0x2cd870 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x381eea=a168_0x315e;console[_0x381eea(0x151)](),console[_0x381eea(0x151)](a168_0x2cd870['green'][_0x381eea(0x154)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x381eea(0x151)](),console[_0x381eea(0x151)](_0x381eea(0x148)+a168_0x2cd870[_0x381eea(0x14a)][_0x381eea(0x154)](CLI_BIN_NAME+_0x381eea(0x145))+_0x381eea(0x14f)),console[_0x381eea(0x151)]();}function a168_0x5568(){var _0x2d5579=['\x20to\x20view\x20available\x20commands.','4111352QyPmyu','log','3024494WPBQHQ','4958784XzAacg','bold','203054HkDHbF','\x20--help','48012FuXuUx','2NvAkVA','\x20\x20Use\x20','90bYLMdL','green','87621GxMbNz','50VfLtoZ','20Upvoqw','903512oIVszJ'];a168_0x5568=function(){return _0x2d5579;};return a168_0x5568();}
1
+ (function(_0xad2b9e,_0x1d2878){var _0x2ea44d=a168_0x4c5c,_0x73a4f3=_0xad2b9e();while(!![]){try{var _0x3aa94e=-parseInt(_0x2ea44d(0x168))/0x1+parseInt(_0x2ea44d(0x165))/0x2+-parseInt(_0x2ea44d(0x163))/0x3+parseInt(_0x2ea44d(0x167))/0x4+-parseInt(_0x2ea44d(0x162))/0x5+parseInt(_0x2ea44d(0x169))/0x6+parseInt(_0x2ea44d(0x15e))/0x7*(parseInt(_0x2ea44d(0x15d))/0x8);if(_0x3aa94e===_0x1d2878)break;else _0x73a4f3['push'](_0x73a4f3['shift']());}catch(_0x3a62f1){_0x73a4f3['push'](_0x73a4f3['shift']());}}}(a168_0x2015,0xd9f4e));function a168_0x2015(){var _0x46bfaf=['green','bold','\x20to\x20view\x20available\x20commands.','4084580xwzSQV','4192455BJnEmN','\x20\x20Use\x20','2133094URjqHu','\x20--help','2713752SktYdI','1189768ziqyWm','1327098mdjQVi','log','47688CaFjzS','2737SLLFEx'];a168_0x2015=function(){return _0x46bfaf;};return a168_0x2015();}import a168_0x308230 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0x4c5c(_0x275926,_0x2f0609){_0x275926=_0x275926-0x15d;var _0x20151c=a168_0x2015();var _0x4c5c36=_0x20151c[_0x275926];return _0x4c5c36;}export function showHelp(){var _0x56e7f6=a168_0x4c5c;console['log'](),console[_0x56e7f6(0x16a)](a168_0x308230[_0x56e7f6(0x15f)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x56e7f6(0x16a)](),console[_0x56e7f6(0x16a)](_0x56e7f6(0x164)+a168_0x308230['green'][_0x56e7f6(0x160)](CLI_BIN_NAME+_0x56e7f6(0x166))+_0x56e7f6(0x161)),console[_0x56e7f6(0x16a)]();}
@@ -1 +1 @@
1
- (function(_0x557186,_0x45330f){const _0x5a6883=a169_0x4851,_0x361163=_0x557186();while(!![]){try{const _0x545c78=-parseInt(_0x5a6883(0xbb))/0x1*(parseInt(_0x5a6883(0xa0))/0x2)+parseInt(_0x5a6883(0xb6))/0x3*(-parseInt(_0x5a6883(0xaf))/0x4)+parseInt(_0x5a6883(0xa3))/0x5*(parseInt(_0x5a6883(0xb5))/0x6)+-parseInt(_0x5a6883(0xad))/0x7*(-parseInt(_0x5a6883(0xb0))/0x8)+parseInt(_0x5a6883(0xa4))/0x9*(parseInt(_0x5a6883(0xba))/0xa)+-parseInt(_0x5a6883(0xb3))/0xb+-parseInt(_0x5a6883(0xbe))/0xc*(-parseInt(_0x5a6883(0xa6))/0xd);if(_0x545c78===_0x45330f)break;else _0x361163['push'](_0x361163['shift']());}catch(_0x2c0002){_0x361163['push'](_0x361163['shift']());}}}(a169_0x2d5f,0x6a968));function a169_0x4851(_0xe71385,_0x595ae9){_0xe71385=_0xe71385-0x9d;const _0x2d5f87=a169_0x2d5f();let _0x4851bc=_0x2d5f87[_0xe71385];return _0x4851bc;}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';function a169_0x2d5f(){const _0x21452d=['\x0aAvailable\x20commands:','4426962yNYhCg','1263594KimnEB','startsWith','has','help','3537580FUqzjQ','2aLbinp','enable-bff-save','dangerously-bff-save','24pOnQTb','push','log','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','Error:\x20Unsupported\x20command:\x20','add','Equivalent\x20command:\x20','\x20skill\x20--help\x0a\x20\x20','error','303122NfOjxE','setLogPath','不支持的命令:\x20','5LyKTag','9uWKPcw','toLowerCase','1359436dtFrSt','cwd','-$1','argv','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','(empty)','replace','7zxrlhD','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','4pQDnXy','4184872nauTGH','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','from','7292274XjArkb'];a169_0x2d5f=function(){return _0x21452d;};return a169_0x2d5f();}export function camelCaseFlagsToKebab(_0x729c9c){const _0x494ab9=a169_0x4851,_0x239d80=[];for(const [_0x10d31b,_0x2f6802]of Object['entries'](_0x729c9c)){if(_0x2f6802===!![]){const _0x41b533=_0x10d31b[_0x494ab9(0xac)](/([A-Z])/g,_0x494ab9(0xa8))[_0x494ab9(0xa5)]();_0x239d80['push'](_0x41b533);}}return _0x239d80;}export function parseDynamicFlags(){const _0x1a7139=a169_0x4851,_0x3a6eb0=[];for(let _0x5a51b2=0x3;_0x5a51b2<process[_0x1a7139(0xa9)]['length'];_0x5a51b2++){const _0x103d92=process[_0x1a7139(0xa9)][_0x5a51b2];if(_0x103d92&&_0x103d92[_0x1a7139(0xb7)]('--')){const _0x499c48=_0x103d92['slice'](0x2);_0x499c48&&!_0x499c48['includes']('=')&&_0x3a6eb0[_0x1a7139(0xbf)](_0x499c48);}}return _0x3a6eb0;}export function getAllProvidedFlags(_0x3ebd44){const _0x356da2=a169_0x4851,_0x150b28=camelCaseFlagsToKebab(_0x3ebd44),_0x53166b=parseDynamicFlags(),_0x47d33d=new Set([..._0x150b28,..._0x53166b]);return Array[_0x356da2(0xb2)](_0x47d33d);}export function normalizeLegacyBffSaveFlags(_0x3cacff){const _0x2953b2=a169_0x4851,_0xd7b7b6=new Set(_0x3cacff);return _0xd7b7b6[_0x2953b2(0xb8)](_0x2953b2(0xbd))&&_0xd7b7b6[_0x2953b2(0xc3)](_0x2953b2(0xbc)),Array[_0x2953b2(0xb2)](_0xd7b7b6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x185100,_0x57123b,_0x744ee2){const _0x697684=a169_0x4851;logger[_0x697684(0xa1)](process[_0x697684(0xa7)]());if(_0x744ee2?.[_0x697684(0xb9)]||_0x185100==='--help'){showHelp();return;}console[_0x697684(0x9f)](_0x697684(0xc2)+(_0x185100||_0x697684(0xab))),console['log'](_0x697684(0xb4)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x697684(0xc1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x697684(0xaa)),console[_0x697684(0xc0)](''),console[_0x697684(0xc0)](_0x697684(0x9d)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x697684(0x9f)]('skill',_0x697684(0xa2)+_0x185100),process['exit'](0x1);}function showHelp(){const _0x577017=a169_0x4851;console[_0x577017(0xc0)](_0x577017(0xae)+CLI_BIN_NAME+_0x577017(0x9e)+CLI_BIN_NAME+_0x577017(0xb1)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
1
+ (function(_0x46c7df,_0x43477b){const _0x19ea86=a169_0xeea5,_0x150ff2=_0x46c7df();while(!![]){try{const _0xed1405=-parseInt(_0x19ea86(0x1c4))/0x1+parseInt(_0x19ea86(0x1ce))/0x2+-parseInt(_0x19ea86(0x1c2))/0x3+-parseInt(_0x19ea86(0x1cc))/0x4+parseInt(_0x19ea86(0x1ab))/0x5*(-parseInt(_0x19ea86(0x1bd))/0x6)+-parseInt(_0x19ea86(0x1ae))/0x7*(parseInt(_0x19ea86(0x1b0))/0x8)+-parseInt(_0x19ea86(0x1b4))/0x9*(-parseInt(_0x19ea86(0x1bb))/0xa);if(_0xed1405===_0x43477b)break;else _0x150ff2['push'](_0x150ff2['shift']());}catch(_0xa12cf0){_0x150ff2['push'](_0x150ff2['shift']());}}}(a169_0x47fd,0xcc7a0));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(_0x427510){const _0x10471c=a169_0xeea5,_0xd80645=[];for(const [_0x4ba530,_0x1194cd]of Object[_0x10471c(0x1bf)](_0x427510)){if(_0x1194cd===!![]){const _0x399514=_0x4ba530['replace'](/([A-Z])/g,_0x10471c(0x1c7))[_0x10471c(0x1c0)]();_0xd80645[_0x10471c(0x1ad)](_0x399514);}}return _0xd80645;}export function parseDynamicFlags(){const _0x3618fd=a169_0xeea5,_0x1a37aa=[];for(let _0x58074b=0x3;_0x58074b<process[_0x3618fd(0x1b5)][_0x3618fd(0x1cd)];_0x58074b++){const _0x7d4a83=process['argv'][_0x58074b];if(_0x7d4a83&&_0x7d4a83[_0x3618fd(0x1cb)]('--')){const _0xc59436=_0x7d4a83[_0x3618fd(0x1b8)](0x2);_0xc59436&&!_0xc59436['includes']('=')&&_0x1a37aa[_0x3618fd(0x1ad)](_0xc59436);}}return _0x1a37aa;}function a169_0xeea5(_0x1dd25e,_0x792708){_0x1dd25e=_0x1dd25e-0x1ab;const _0x47fdea=a169_0x47fd();let _0xeea505=_0x47fdea[_0x1dd25e];return _0xeea505;}export function getAllProvidedFlags(_0x298bba){const _0x119cd7=a169_0xeea5,_0x3934fc=camelCaseFlagsToKebab(_0x298bba),_0xfc9ff8=parseDynamicFlags(),_0x4ed569=new Set([..._0x3934fc,..._0xfc9ff8]);return Array[_0x119cd7(0x1b1)](_0x4ed569);}export function normalizeLegacyBffSaveFlags(_0xe68617){const _0x72488=a169_0xeea5,_0x36e204=new Set(_0xe68617);return _0x36e204[_0x72488(0x1c3)](_0x72488(0x1c6))&&_0x36e204['add']('enable-bff-save'),Array[_0x72488(0x1b1)](_0x36e204);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x29e992,_0x4a30c5,_0x1a11a3){const _0x48f66a=a169_0xeea5;logger['setLogPath'](process[_0x48f66a(0x1c9)]());if(_0x1a11a3?.['help']||_0x29e992===_0x48f66a(0x1ca)){showHelp();return;}console['error'](_0x48f66a(0x1b2)+(_0x29e992||'(empty)')),console[_0x48f66a(0x1b7)](_0x48f66a(0x1bc)),console[_0x48f66a(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x48f66a(0x1af)),console[_0x48f66a(0x1b7)]('\x20\x20'+CLI_BIN_NAME+_0x48f66a(0x1c8)),console[_0x48f66a(0x1b7)](''),console[_0x48f66a(0x1b7)](_0x48f66a(0x1b3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x48f66a(0x1b6)](_0x48f66a(0x1ba),_0x48f66a(0x1be)+_0x29e992),process[_0x48f66a(0x1c5)](0x1);}function showHelp(){const _0x36afd4=a169_0xeea5;console['log'](_0x36afd4(0x1ac)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x36afd4(0x1b9)+SKILLS_INSTALL_COMMAND_LINE+_0x36afd4(0x1c1));}function a169_0x47fd(){const _0x17bbd1=['Error:\x20Unsupported\x20command:\x20','Equivalent\x20command:\x20','17838tTUsEf','argv','error','log','slice','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','skill','25630VRNKTq','\x0aAvailable\x20commands:','5393634dRckFY','不支持的命令:\x20','entries','toLowerCase','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','3750438nRuEKM','has','382mynaNN','exit','dangerously-bff-save','-$1','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','cwd','--help','startsWith','6226220YgBKca','length','213622YvNccq','5BRHGQJ','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','push','4501833KUsxzL','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','8sMMoRn','from'];a169_0x47fd=function(){return _0x17bbd1;};return a169_0x47fd();}
@@ -1 +1 @@
1
- const a170_0x14f0c3=a170_0x3041;(function(_0x29c038,_0x33444d){const _0x10d8fe=a170_0x3041,_0x40e96e=_0x29c038();while(!![]){try{const _0x455d69=parseInt(_0x10d8fe(0x137))/0x1*(-parseInt(_0x10d8fe(0x141))/0x2)+parseInt(_0x10d8fe(0x133))/0x3+-parseInt(_0x10d8fe(0x142))/0x4+parseInt(_0x10d8fe(0x146))/0x5*(parseInt(_0x10d8fe(0x12b))/0x6)+parseInt(_0x10d8fe(0x134))/0x7+parseInt(_0x10d8fe(0x12d))/0x8+parseInt(_0x10d8fe(0x129))/0x9*(-parseInt(_0x10d8fe(0x130))/0xa);if(_0x455d69===_0x33444d)break;else _0x40e96e['push'](_0x40e96e['shift']());}catch(_0x3dac6b){_0x40e96e['push'](_0x40e96e['shift']());}}}(a170_0x4a8c,0x47ef5));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';function a170_0x3041(_0x1cb5a9,_0x14dce2){_0x1cb5a9=_0x1cb5a9-0x129;const _0x4a8cca=a170_0x4a8c();let _0x304119=_0x4a8cca[_0x1cb5a9];return _0x304119;}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a170_0x14f0c3(0x139);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x14f0c3(0x13b);export const NPX_SKILLS_FLAG_SKILL=a170_0x14f0c3(0x143);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';function a170_0x4a8c(){const _0x3ef338=['lovrabet/lovrabet-skill','8MFrulc','unknown','skills','stdout','add','inherit','status','trim','log','yes','99122khaDhL','1240872GalnqB','--skill','stderr','toString','25BPNyFz','1477638Hvtcvp','pipe','26652OXxdhr','skill','3478448OUXjCO','Lovrabet','remove','20iFenUm','stdio','join','1313565ZmPpZo','3043908iZxDOl','npx'];a170_0x4a8c=function(){return _0x3ef338;};return a170_0x4a8c();}export const LEGACY_RABETBASE_SKILL_SOURCE=a170_0x14f0c3(0x136);export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x14f0c3(0x12e);export function buildNpxSkillsAddArgv(_0x2d4f57=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2d4f57];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a170_0x14f0c3(0x135),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x14f0c3(0x135),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a170_0x14f0c3(0x132)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x10e0b4,_0x58ed2e){const _0x2e7398=a170_0x14f0c3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d0018=_0x58ed2e?.[_0x2e7398(0x131)]??_0x2e7398(0x13c),_0x2e59f4=resolveNpmBin(_0x2e7398(0x135)),_0x3b4bc6=buildNpxSkillsAddArgv(_0x58ed2e?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x4d7b55=[_0x2e7398(0x135),..._0x3b4bc6][_0x2e7398(0x132)]('\x20');console[_0x2e7398(0x13f)]('*\x20'+_0x4d7b55);const _0x44f066=spawnSync(_0x2e59f4,_0x3b4bc6,{'cwd':_0x10e0b4,'stdio':_0x5d0018,'env':process.env,'shell':![]}),_0x4a23ac=_0x44f066[_0x2e7398(0x13d)];if(_0x4a23ac===0x0)return{'ok':!![],'status':0x0};let _0x394772='exit\x20'+(_0x4a23ac??_0x2e7398(0x138));if(_0x5d0018===_0x2e7398(0x12a)){const _0x44beca=_0x44f066[_0x2e7398(0x144)]?_0x44f066[_0x2e7398(0x144)]['toString']()[_0x2e7398(0x13e)]():'',_0xadb36=_0x44f066['stdout']?_0x44f066[_0x2e7398(0x13a)][_0x2e7398(0x145)]()[_0x2e7398(0x13e)]():'';if(_0x44beca)_0x394772=_0x44beca;else{if(_0xadb36)_0x394772=_0xadb36;}}return{'ok':![],'status':_0x4a23ac??null,'error':_0x394772};}export function runNpxSkillsRemove(_0x20cdc6,_0x536ed4,_0x54b472=LEGACY_RABETBASE_SKILL_SOURCE){const _0x364776=a170_0x14f0c3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x11003a=_0x536ed4?.[_0x364776(0x131)]??_0x364776(0x13c),_0x4fc510=resolveNpmBin(_0x364776(0x135)),_0x49bd92=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x364776(0x12f),_0x54b472,NPX_SKILLS_FLAG_SKILL,_0x536ed4?.[_0x364776(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x536ed4?.[_0x364776(0x140)]?['-y']:[]],_0x3b9da1=[_0x4fc510,..._0x49bd92][_0x364776(0x132)]('\x20');console[_0x364776(0x13f)]('*\x20'+_0x3b9da1);const _0x1f4426=spawnSync(_0x4fc510,_0x49bd92,{'cwd':_0x20cdc6,'stdio':_0x11003a,'env':process.env,'shell':![]}),_0x3c3501=_0x1f4426[_0x364776(0x13d)];if(_0x3c3501===0x0)return{'ok':!![],'status':0x0};let _0x15c081='exit\x20'+(_0x3c3501??_0x364776(0x138));if(_0x11003a==='pipe'){const _0xe1775c=_0x1f4426[_0x364776(0x144)]?_0x1f4426['stderr'][_0x364776(0x145)]()['trim']():'',_0x11c65e=_0x1f4426[_0x364776(0x13a)]?_0x1f4426[_0x364776(0x13a)][_0x364776(0x145)]()[_0x364776(0x13e)]():'';if(_0xe1775c)_0x15c081=_0xe1775c;else{if(_0x11c65e)_0x15c081=_0x11c65e;}}return{'ok':![],'status':_0x3c3501??null,'error':_0x15c081};}export function runNpxSkillsAddGlobal(_0x106cdc,_0x5560f6,_0x2d4bae){const _0x1cf62b=a170_0x14f0c3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x354010=_0x2d4bae?.['stdio']??_0x1cf62b(0x13c),_0x3c2f6a=resolveNpmBin(_0x1cf62b(0x135)),_0x5580df=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5560f6,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4a84b5=[_0x1cf62b(0x135),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5560f6,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1cf62b(0x132)]('\x20');console['log']('*\x20'+_0x4a84b5);const _0x255cdd=spawnSync(_0x3c2f6a,_0x5580df,{'cwd':_0x106cdc,'stdio':_0x354010,'env':process.env,'shell':![]}),_0x294fa5=_0x255cdd[_0x1cf62b(0x13d)];if(_0x294fa5===0x0)return{'ok':!![],'status':0x0};let _0x50d6fb='exit\x20'+(_0x294fa5??'unknown');if(_0x354010===_0x1cf62b(0x12a)){const _0x447cba=_0x255cdd[_0x1cf62b(0x144)]?_0x255cdd['stderr']['toString']()[_0x1cf62b(0x13e)]():'',_0x42ee4a=_0x255cdd[_0x1cf62b(0x13a)]?_0x255cdd['stdout'][_0x1cf62b(0x145)]()[_0x1cf62b(0x13e)]():'';if(_0x447cba)_0x50d6fb=_0x447cba;else{if(_0x42ee4a)_0x50d6fb=_0x42ee4a;}}return{'ok':![],'status':_0x294fa5??null,'error':_0x50d6fb};}
1
+ const a170_0x5c0712=a170_0x26d3;(function(_0x515093,_0x2fd98f){const _0x2a3d9c=a170_0x26d3,_0x5f4998=_0x515093();while(!![]){try{const _0x8f0a7=-parseInt(_0x2a3d9c(0xf0))/0x1+-parseInt(_0x2a3d9c(0xfe))/0x2*(parseInt(_0x2a3d9c(0xff))/0x3)+-parseInt(_0x2a3d9c(0xf3))/0x4+-parseInt(_0x2a3d9c(0xe6))/0x5*(-parseInt(_0x2a3d9c(0xe8))/0x6)+parseInt(_0x2a3d9c(0xf7))/0x7+-parseInt(_0x2a3d9c(0xe5))/0x8*(-parseInt(_0x2a3d9c(0xef))/0x9)+-parseInt(_0x2a3d9c(0xfa))/0xa*(-parseInt(_0x2a3d9c(0xf9))/0xb);if(_0x8f0a7===_0x2fd98f)break;else _0x5f4998['push'](_0x5f4998['shift']());}catch(_0x1db64b){_0x5f4998['push'](_0x5f4998['shift']());}}}(a170_0x37b6,0xafb1e));import{spawnSync}from'node:child_process';function a170_0x26d3(_0x513569,_0x125aab){_0x513569=_0x513569-0xe5;const _0x37b690=a170_0x37b6();let _0x26d313=_0x37b690[_0x513569];return _0x26d313;}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_0x5c0712(0xe7);export const NPX_SKILLS_SUBCOMMAND_ADD=a170_0x5c0712(0xec);function a170_0x37b6(){const _0x245d72=['skill','stderr','6BvJxlu','686253siNuWG','Lovrabet','stdout','stdio','280chpcIX','608030PmlVTt','skills','66RymgMF','npx','pipe','exit\x20','add','log','--skill','17811AEusUt','531271SRmtkH','toString','lovrabet/rabetbase','4357568pdoEap','join','inherit','unknown','3702727sWekLe','status','77vNFvIz','1558100NNdaXF','trim'];a170_0x37b6=function(){return _0x245d72;};return a170_0x37b6();}export const NPX_SKILLS_FLAG_SKILL=a170_0x5c0712(0xee);export const RABETBASE_SKILL_SOURCE=a170_0x5c0712(0xf2);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a170_0x5c0712(0x100);export function buildNpxSkillsAddArgv(_0x3f0817=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3f0817];}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a170_0x5c0712(0xf4)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a170_0x5c0712(0xe9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0xa2fb72,_0x518601){const _0x34328b=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28c8ac=_0x518601?.[_0x34328b(0x102)]??_0x34328b(0xf5),_0x15d545=resolveNpmBin(_0x34328b(0xe9)),_0x1ccda4=buildNpxSkillsAddArgv(_0x518601?.[_0x34328b(0xfc)]??DEFAULT_RABETBASE_SKILL_NAME),_0x378a13=[_0x34328b(0xe9),..._0x1ccda4][_0x34328b(0xf4)]('\x20');console[_0x34328b(0xed)]('*\x20'+_0x378a13);const _0x3c1990=spawnSync(_0x15d545,_0x1ccda4,{'cwd':_0xa2fb72,'stdio':_0x28c8ac,'env':process.env,'shell':![]}),_0x3b37c6=_0x3c1990[_0x34328b(0xf8)];if(_0x3b37c6===0x0)return{'ok':!![],'status':0x0};let _0x585adc=_0x34328b(0xeb)+(_0x3b37c6??_0x34328b(0xf6));if(_0x28c8ac===_0x34328b(0xea)){const _0x54fbf2=_0x3c1990[_0x34328b(0xfd)]?_0x3c1990[_0x34328b(0xfd)][_0x34328b(0xf1)]()['trim']():'',_0x4c515f=_0x3c1990[_0x34328b(0x101)]?_0x3c1990[_0x34328b(0x101)][_0x34328b(0xf1)]()[_0x34328b(0xfb)]():'';if(_0x54fbf2)_0x585adc=_0x54fbf2;else{if(_0x4c515f)_0x585adc=_0x4c515f;}}return{'ok':![],'status':_0x3b37c6??null,'error':_0x585adc};}export function runNpxSkillsRemove(_0x23955b,_0x4437d2,_0x2acffd=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1106f6=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41aee6=_0x4437d2?.[_0x1106f6(0x102)]??'inherit',_0x140a7d=resolveNpmBin(_0x1106f6(0xe9)),_0x11f21f=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2acffd,NPX_SKILLS_FLAG_SKILL,_0x4437d2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x4437d2?.['yes']?['-y']:[]],_0x481b55=[_0x140a7d,..._0x11f21f][_0x1106f6(0xf4)]('\x20');console['log']('*\x20'+_0x481b55);const _0x1fd727=spawnSync(_0x140a7d,_0x11f21f,{'cwd':_0x23955b,'stdio':_0x41aee6,'env':process.env,'shell':![]}),_0x2cafe6=_0x1fd727[_0x1106f6(0xf8)];if(_0x2cafe6===0x0)return{'ok':!![],'status':0x0};let _0x2d48ad='exit\x20'+(_0x2cafe6??'unknown');if(_0x41aee6==='pipe'){const _0x5e1a55=_0x1fd727['stderr']?_0x1fd727[_0x1106f6(0xfd)]['toString']()[_0x1106f6(0xfb)]():'',_0x8f224=_0x1fd727[_0x1106f6(0x101)]?_0x1fd727[_0x1106f6(0x101)][_0x1106f6(0xf1)]()[_0x1106f6(0xfb)]():'';if(_0x5e1a55)_0x2d48ad=_0x5e1a55;else{if(_0x8f224)_0x2d48ad=_0x8f224;}}return{'ok':![],'status':_0x2cafe6??null,'error':_0x2d48ad};}export function runNpxSkillsAddGlobal(_0x4765bc,_0x4e0e13,_0x1c2f8c){const _0x1dc539=a170_0x5c0712;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x17c5c9=_0x1c2f8c?.[_0x1dc539(0x102)]??_0x1dc539(0xf5),_0x422a16=resolveNpmBin(_0x1dc539(0xe9)),_0x29ce46=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e0e13,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4dac41=[_0x1dc539(0xe9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e0e13,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1dc539(0xf4)]('\x20');console['log']('*\x20'+_0x4dac41);const _0x5e393c=spawnSync(_0x422a16,_0x29ce46,{'cwd':_0x4765bc,'stdio':_0x17c5c9,'env':process.env,'shell':![]}),_0x121da1=_0x5e393c['status'];if(_0x121da1===0x0)return{'ok':!![],'status':0x0};let _0x29a66f='exit\x20'+(_0x121da1??_0x1dc539(0xf6));if(_0x17c5c9===_0x1dc539(0xea)){const _0x2cd5a0=_0x5e393c[_0x1dc539(0xfd)]?_0x5e393c[_0x1dc539(0xfd)][_0x1dc539(0xf1)]()[_0x1dc539(0xfb)]():'',_0x4caf59=_0x5e393c['stdout']?_0x5e393c['stdout'][_0x1dc539(0xf1)]()[_0x1dc539(0xfb)]():'';if(_0x2cd5a0)_0x29a66f=_0x2cd5a0;else{if(_0x4caf59)_0x29a66f=_0x4caf59;}}return{'ok':![],'status':_0x121da1??null,'error':_0x29a66f};}
@@ -1 +1 @@
1
- (function(_0x1dbbcc,_0x32e678){const _0x3c85d8=a171_0x2724,_0x4e99cd=_0x1dbbcc();while(!![]){try{const _0x168847=-parseInt(_0x3c85d8(0x87))/0x1*(parseInt(_0x3c85d8(0x81))/0x2)+-parseInt(_0x3c85d8(0x7e))/0x3*(parseInt(_0x3c85d8(0x78))/0x4)+-parseInt(_0x3c85d8(0x83))/0x5+parseInt(_0x3c85d8(0x7f))/0x6+parseInt(_0x3c85d8(0x77))/0x7*(parseInt(_0x3c85d8(0x85))/0x8)+-parseInt(_0x3c85d8(0x84))/0x9*(parseInt(_0x3c85d8(0x79))/0xa)+parseInt(_0x3c85d8(0x8d))/0xb*(parseInt(_0x3c85d8(0x7a))/0xc);if(_0x168847===_0x32e678)break;else _0x4e99cd['push'](_0x4e99cd['shift']());}catch(_0x58ba93){_0x4e99cd['push'](_0x4e99cd['shift']());}}}(a171_0x3658,0x19093));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(_0xa7e7cc){const _0xd60d63=a171_0x2724;return SENSITIVE_PATTERNS[_0xd60d63(0x89)](_0x46e2dc=>_0x46e2dc[_0xd60d63(0x7b)](_0xa7e7cc));}function sanitizeFlags(_0x2bacf4){const _0x246e9f=a171_0x2724,_0x2d0223={};for(const [_0x153e00,_0x7f5536]of Object[_0x246e9f(0x8b)](_0x2bacf4)){isSensitiveKey(_0x153e00)?_0x2d0223[_0x153e00]=_0x7f5536!=null&&_0x7f5536!==''?_0x246e9f(0x8c):_0x7f5536:_0x2d0223[_0x153e00]=_0x7f5536;}return _0x2d0223;}export async function reportCommandTrace(_0x3842b8){const _0x27bd59=a171_0x2724;try{const _0x350f6c=sanitizeFlags(_0x3842b8[_0x27bd59(0x7c)]);await sendCliTraceLog({'spanName':_0x27bd59(0x82),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3842b8['service'],'command.name':_0x3842b8[_0x27bd59(0x88)],'command.flags':JSON[_0x27bd59(0x7d)](_0x350f6c),..._0x3842b8[_0x27bd59(0x86)]!=null?{'command.duration_ms':_0x3842b8[_0x27bd59(0x86)]}:{},..._0x3842b8[_0x27bd59(0x80)]?{'command.error':_0x3842b8[_0x27bd59(0x80)]instanceof Error?_0x3842b8[_0x27bd59(0x80)][_0x27bd59(0x8a)]:String(_0x3842b8['error'])}:{}}});}catch{}}function a171_0x2724(_0x3b4c4d,_0x34c286){_0x3b4c4d=_0x3b4c4d-0x77;const _0x36584e=a171_0x3658();let _0x27243d=_0x36584e[_0x3b4c4d];return _0x27243d;}function a171_0x3658(){const _0x1a5021=['stringify','2583PTGRKK','931812VJBFje','error','42qYXWIv','rabetbase.command','95145altyUg','670284aErRcA','226408LbIwGP','durationMs','7195SKCCWv','command','some','message','entries','[REDACTED]','1470733kvpLsz','14AFHecR','268kAzvfO','20gyczWg','24uHgtap','test','flags'];a171_0x3658=function(){return _0x1a5021;};return a171_0x3658();}
1
+ (function(_0x3898f5,_0x1660a9){const _0x25be70=a171_0x3a13,_0x1ba622=_0x3898f5();while(!![]){try{const _0x341739=-parseInt(_0x25be70(0x109))/0x1*(parseInt(_0x25be70(0x111))/0x2)+parseInt(_0x25be70(0x107))/0x3*(parseInt(_0x25be70(0x115))/0x4)+parseInt(_0x25be70(0x10b))/0x5*(-parseInt(_0x25be70(0x10d))/0x6)+parseInt(_0x25be70(0x10e))/0x7+parseInt(_0x25be70(0x106))/0x8*(-parseInt(_0x25be70(0x117))/0x9)+-parseInt(_0x25be70(0x108))/0xa+parseInt(_0x25be70(0x10a))/0xb;if(_0x341739===_0x1660a9)break;else _0x1ba622['push'](_0x1ba622['shift']());}catch(_0x5184c8){_0x1ba622['push'](_0x1ba622['shift']());}}}(a171_0x4250,0x8bb91));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a171_0x4250(){const _0x4efcf1=['service','649742vVLntM','durationMs','flags','rabetbase.command','4pMxYwe','message','9ImvGrA','339864SelKYh','2313276SHsJkS','2265950VzoJNC','3BJFdvc','16657949oZAgnU','10375jHZEYJ','error','2724cVKzNk','3308165WlMUHR','stringify'];a171_0x4250=function(){return _0x4efcf1;};return a171_0x4250();}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 a171_0x3a13(_0x4e0ee4,_0x4f8fe6){_0x4e0ee4=_0x4e0ee4-0x106;const _0x425020=a171_0x4250();let _0x3a13b8=_0x425020[_0x4e0ee4];return _0x3a13b8;}function isSensitiveKey(_0x2d1e7c){return SENSITIVE_PATTERNS['some'](_0x245c2f=>_0x245c2f['test'](_0x2d1e7c));}function sanitizeFlags(_0x5046cb){const _0x450277={};for(const [_0x5e2885,_0x28256e]of Object['entries'](_0x5046cb)){isSensitiveKey(_0x5e2885)?_0x450277[_0x5e2885]=_0x28256e!=null&&_0x28256e!==''?'[REDACTED]':_0x28256e:_0x450277[_0x5e2885]=_0x28256e;}return _0x450277;}export async function reportCommandTrace(_0x31c2a0){const _0x28dabb=a171_0x3a13;try{const _0x36752f=sanitizeFlags(_0x31c2a0[_0x28dabb(0x113)]);await sendCliTraceLog({'spanName':_0x28dabb(0x114),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x31c2a0[_0x28dabb(0x110)],'command.name':_0x31c2a0['command'],'command.flags':JSON[_0x28dabb(0x10f)](_0x36752f),..._0x31c2a0[_0x28dabb(0x112)]!=null?{'command.duration_ms':_0x31c2a0[_0x28dabb(0x112)]}:{},..._0x31c2a0[_0x28dabb(0x10c)]?{'command.error':_0x31c2a0[_0x28dabb(0x10c)]instanceof Error?_0x31c2a0[_0x28dabb(0x10c)][_0x28dabb(0x116)]:String(_0x31c2a0['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x50a7e3,_0x22bd4a){var _0x18dcb8=a172_0x1e26,_0x36e8b3=_0x50a7e3();while(!![]){try{var _0x57f889=-parseInt(_0x18dcb8(0x19e))/0x1*(-parseInt(_0x18dcb8(0x19f))/0x2)+-parseInt(_0x18dcb8(0x1a6))/0x3+parseInt(_0x18dcb8(0x1a7))/0x4+-parseInt(_0x18dcb8(0x1a8))/0x5+parseInt(_0x18dcb8(0x1ab))/0x6*(parseInt(_0x18dcb8(0x1a3))/0x7)+parseInt(_0x18dcb8(0x1a0))/0x8+-parseInt(_0x18dcb8(0x1a5))/0x9*(parseInt(_0x18dcb8(0x1aa))/0xa);if(_0x57f889===_0x22bd4a)break;else _0x36e8b3['push'](_0x36e8b3['shift']());}catch(_0x2b70bd){_0x36e8b3['push'](_0x36e8b3['shift']());}}}(a172_0x1cb8,0x4de58));function a172_0x1e26(_0x3a37c8,_0x9da46e){_0x3a37c8=_0x3a37c8-0x19e;var _0x1cb88d=a172_0x1cb8();var _0x1e26d1=_0x1cb88d[_0x3a37c8];return _0x1e26d1;}function a172_0x1cb8(){var _0x4f98ca=['3355096znBZLM','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','20958uHRppz','cli.help','9egGxGi','1265070cAsWMb','600604nCurSW','1538665AMbTBT','service','3380480zyUQKc','1176EvQAnM','29lzrAxM','15874BWjiEW'];a172_0x1cb8=function(){return _0x4f98ca;};return a172_0x1cb8();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0xef22c,_0x281567){var _0x3d13a6=a172_0x1e26;try{await sendCliTraceLog({'spanName':_0x3d13a6(0x1a4),'logData':{'rabetbase.help.kind':_0xef22c,..._0x281567?.[_0x3d13a6(0x1a9)]&&{'rabetbase.help.service':_0x281567[_0x3d13a6(0x1a9)]}}});}catch(_0x4d9a91){console[_0x3d13a6(0x1a2)](_0x3d13a6(0x1a1),_0x4d9a91);}}
1
+ (function(_0x3ec6c1,_0x500ddf){var _0x5aad6d=a172_0x3d98,_0x860eb9=_0x3ec6c1();while(!![]){try{var _0x1d40a6=parseInt(_0x5aad6d(0x1d9))/0x1*(parseInt(_0x5aad6d(0x1e2))/0x2)+parseInt(_0x5aad6d(0x1d6))/0x3+parseInt(_0x5aad6d(0x1de))/0x4*(parseInt(_0x5aad6d(0x1d7))/0x5)+parseInt(_0x5aad6d(0x1d8))/0x6+-parseInt(_0x5aad6d(0x1dc))/0x7+parseInt(_0x5aad6d(0x1e1))/0x8*(parseInt(_0x5aad6d(0x1e3))/0x9)+parseInt(_0x5aad6d(0x1da))/0xa*(-parseInt(_0x5aad6d(0x1e0))/0xb);if(_0x1d40a6===_0x500ddf)break;else _0x860eb9['push'](_0x860eb9['shift']());}catch(_0x42e8c6){_0x860eb9['push'](_0x860eb9['shift']());}}}(a172_0x1225,0x83b66));function a172_0x3d98(_0xd4f50,_0xcc2c76){_0xd4f50=_0xd4f50-0x1d6;var _0x122510=a172_0x1225();var _0x3d9892=_0x122510[_0xd4f50];return _0x3d9892;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x31e2db,_0x171b8b){var _0x20042f=a172_0x3d98;try{await sendCliTraceLog({'spanName':_0x20042f(0x1db),'logData':{'rabetbase.help.kind':_0x31e2db,..._0x171b8b?.[_0x20042f(0x1df)]&&{'rabetbase.help.service':_0x171b8b[_0x20042f(0x1df)]}}});}catch(_0x14a5e0){console['error'](_0x20042f(0x1dd),_0x14a5e0);}}function a172_0x1225(){var _0x3c6c85=['service','16126ShCZNO','712840gEGUQR','2eAoPXL','18MooTwy','592089VxohtP','238100LbahRu','1694916GqFSKV','520235QcgQIV','1230bqAZsh','cli.help','7209454vxxzXF','Failed\x20to\x20report\x20CLI\x20help\x20trace:','48OuTzDL'];a172_0x1225=function(){return _0x3c6c85;};return a172_0x1225();}
@@ -1 +1 @@
1
- (function(_0x222063,_0x14fff1){const _0x1efa14=a173_0x445a,_0x23f7b0=_0x222063();while(!![]){try{const _0x1255b1=-parseInt(_0x1efa14(0x1e7))/0x1*(parseInt(_0x1efa14(0x1f3))/0x2)+parseInt(_0x1efa14(0x1f8))/0x3*(parseInt(_0x1efa14(0x1ef))/0x4)+parseInt(_0x1efa14(0x1ed))/0x5*(parseInt(_0x1efa14(0x1ea))/0x6)+parseInt(_0x1efa14(0x1e8))/0x7*(parseInt(_0x1efa14(0x1ee))/0x8)+-parseInt(_0x1efa14(0x1ec))/0x9+parseInt(_0x1efa14(0x1f4))/0xa+parseInt(_0x1efa14(0x1eb))/0xb*(-parseInt(_0x1efa14(0x1f0))/0xc);if(_0x1255b1===_0x14fff1)break;else _0x23f7b0['push'](_0x23f7b0['shift']());}catch(_0x51262a){_0x23f7b0['push'](_0x23f7b0['shift']());}}}(a173_0x5edd,0x28614));import a173_0x57cc6b from'node:os';function a173_0x5edd(){const _0x34f1c7=['1940320SqaQSe','user','nickname','username','591YHRjyd','userInfo','12269LnaJVV','385PXpghV','daily','1264074kmyepl','538879ctPUnJ','203373oIOnyY','5uIbgfa','37040sWDwtQ','4604sXiBtV','168zbmFoq','unknown','rabetbase-cli','2rlqPmI'];a173_0x5edd=function(){return _0x34f1c7;};return a173_0x5edd();}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=![];function a173_0x445a(_0x55cec8,_0x24c49a){_0x55cec8=_0x55cec8-0x1e6;const _0x5edd1b=a173_0x5edd();let _0x445a65=_0x5edd1b[_0x55cec8];return _0x445a65;}export async function ensureCliOtelTraceConfig(){const _0x501052=a173_0x445a,_0x579d9c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x53acf5=_0x579d9c?.[_0x501052(0x1f5)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x501052(0x1f1)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x501052(0x1e9):'production'),'username':_0x53acf5?.[_0x501052(0x1f7)]??a173_0x57cc6b[_0x501052(0x1e6)]()['username']??_0x501052(0x1f2),..._0x53acf5&&{'nickname':_0x53acf5[_0x501052(0x1f6)]}}),cliOtelTraceInitialized=!![];}return _0x579d9c;}
1
+ function a173_0x3457(){const _0x3bd5e7=['username','production','2658iqNRPa','userInfo','27ToVaBo','7930432GadktR','unknown','7484067EAXque','2125095wONbkE','385296OhYNeg','9884DLuLOD','19345060QvCqbq','daily','12vTxaXP','rabetbase-cli','user','nickname','36310JSvrQC'];a173_0x3457=function(){return _0x3bd5e7;};return a173_0x3457();}(function(_0x5cee69,_0x65ec86){const _0xeb6914=a173_0x20c4,_0x4140a8=_0x5cee69();while(!![]){try{const _0x2922f1=parseInt(_0xeb6914(0x11a))/0x1*(parseInt(_0xeb6914(0x127))/0x2)+parseInt(_0xeb6914(0x123))/0x3*(parseInt(_0xeb6914(0x11f))/0x4)+parseInt(_0xeb6914(0x11e))/0x5+-parseInt(_0xeb6914(0x12a))/0x6*(parseInt(_0xeb6914(0x120))/0x7)+parseInt(_0xeb6914(0x11b))/0x8+parseInt(_0xeb6914(0x11d))/0x9+-parseInt(_0xeb6914(0x121))/0xa;if(_0x2922f1===_0x65ec86)break;else _0x4140a8['push'](_0x4140a8['shift']());}catch(_0x3fb260){_0x4140a8['push'](_0x4140a8['shift']());}}}(a173_0x3457,0x89891));import a173_0xf62995 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a173_0x20c4(_0x111095,_0x287413){_0x111095=_0x111095-0x119;const _0x3457d2=a173_0x3457();let _0x20c4bd=_0x3457d2[_0x111095];return _0x20c4bd;}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 _0x184762=a173_0x20c4,_0x31d7d8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x19ead6=_0x31d7d8?.[_0x184762(0x125)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x184762(0x11c)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x184762(0x122):_0x184762(0x129)),'username':_0x19ead6?.[_0x184762(0x128)]??a173_0xf62995[_0x184762(0x119)]()[_0x184762(0x128)]??_0x184762(0x124),..._0x19ead6&&{'nickname':_0x19ead6[_0x184762(0x126)]}}),cliOtelTraceInitialized=!![];}return _0x31d7d8;}
@@ -1 +1 @@
1
- (function(_0x10f140,_0x274a91){const _0x2326af=a174_0x278a,_0x51598c=_0x10f140();while(!![]){try{const _0x45c345=-parseInt(_0x2326af(0x1a8))/0x1+parseInt(_0x2326af(0x19f))/0x2*(-parseInt(_0x2326af(0x1ab))/0x3)+-parseInt(_0x2326af(0x1a6))/0x4*(-parseInt(_0x2326af(0x1ad))/0x5)+-parseInt(_0x2326af(0x1a1))/0x6+-parseInt(_0x2326af(0x1a3))/0x7+parseInt(_0x2326af(0x1a2))/0x8+parseInt(_0x2326af(0x1ae))/0x9*(parseInt(_0x2326af(0x1a5))/0xa);if(_0x45c345===_0x274a91)break;else _0x51598c['push'](_0x51598c['shift']());}catch(_0x3de2ec){_0x51598c['push'](_0x51598c['shift']());}}}(a174_0x549a,0x3efa4));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a174_0x549a(){const _0xf9ad3c=['11282YxJyZW','then','1747080LNpowZ','2181784GybExz','1157492fQFfgn','SIGINT','1380590CPkIIv','654052FOVTnV','exit','242657jHpzWw','once','SIGTERM','264ihMKdg','beforeExit','15wmSazI','45lKzHed'];a174_0x549a=function(){return _0xf9ad3c;};return a174_0x549a();}export function registerOtelShutdownOnExit(){const _0x51107a=a174_0x278a;process['once'](_0x51107a(0x1ac),()=>{void flushOtelNodeIfUsed();});const _0x1f7432=()=>{const _0x22d167=_0x51107a;void flushOtelNodeIfUsed()[_0x22d167(0x1a0)](()=>process[_0x22d167(0x1a7)](0x0));};process[_0x51107a(0x1a9)](_0x51107a(0x1a4),_0x1f7432),process[_0x51107a(0x1a9)](_0x51107a(0x1aa),_0x1f7432);}function a174_0x278a(_0x1c9fce,_0x4554cc){_0x1c9fce=_0x1c9fce-0x19f;const _0x549a93=a174_0x549a();let _0x278af8=_0x549a93[_0x1c9fce];return _0x278af8;}export async function exitWithOtelShutdown(_0x1919d8){const _0x7e5392=a174_0x278a;await flushOtelNodeIfUsed(),process[_0x7e5392(0x1a7)](_0x1919d8);}
1
+ (function(_0x27aaa2,_0x18e8e1){const _0x179934=a174_0x1287,_0x21fdef=_0x27aaa2();while(!![]){try{const _0x30ddd2=parseInt(_0x179934(0xe3))/0x1+parseInt(_0x179934(0xe1))/0x2+parseInt(_0x179934(0xde))/0x3*(parseInt(_0x179934(0xda))/0x4)+-parseInt(_0x179934(0xd9))/0x5+-parseInt(_0x179934(0xdb))/0x6*(-parseInt(_0x179934(0xe2))/0x7)+parseInt(_0x179934(0xe5))/0x8+-parseInt(_0x179934(0xdd))/0x9*(parseInt(_0x179934(0xe4))/0xa);if(_0x30ddd2===_0x18e8e1)break;else _0x21fdef['push'](_0x21fdef['shift']());}catch(_0x220196){_0x21fdef['push'](_0x21fdef['shift']());}}}(a174_0x14bc,0x4f17a));import{shutdownTraces}from'@lovrabet/otel-logger';function a174_0x14bc(){const _0x1e0fdf=['45BTHlTl','3bBxBlj','beforeExit','once','4584KkRiyo','7pFUGSK','596398vvyKRN','41390bEuHdu','582976lWjVjt','3210575tVbwiN','1208668lUjioM','78258DIrAHB','SIGTERM'];a174_0x14bc=function(){return _0x1e0fdf;};return a174_0x14bc();}function a174_0x1287(_0xd41fad,_0x44c549){_0xd41fad=_0xd41fad-0xd9;const _0x14bc47=a174_0x14bc();let _0x128724=_0x14bc47[_0xd41fad];return _0x128724;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0xd9e216=a174_0x1287;process[_0xd9e216(0xe0)](_0xd9e216(0xdf),()=>{void flushOtelNodeIfUsed();});const _0x1c1b72=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0xd9e216(0xe0)]('SIGINT',_0x1c1b72),process[_0xd9e216(0xe0)](_0xd9e216(0xdc),_0x1c1b72);}export async function exitWithOtelShutdown(_0xa2f09e){await flushOtelNodeIfUsed(),process['exit'](_0xa2f09e);}
@@ -1 +1 @@
1
- function a175_0x1622(_0x2b0dc8,_0x1737a7){_0x2b0dc8=_0x2b0dc8-0x92;const _0x28e40f=a175_0x28e4();let _0x1622aa=_0x28e40f[_0x2b0dc8];return _0x1622aa;}(function(_0x4687e7,_0x6e2f0){const _0x3fb72c=a175_0x1622,_0x253d9c=_0x4687e7();while(!![]){try{const _0x2ee0c8=parseInt(_0x3fb72c(0x9a))/0x1+-parseInt(_0x3fb72c(0x92))/0x2+parseInt(_0x3fb72c(0x94))/0x3*(parseInt(_0x3fb72c(0x98))/0x4)+-parseInt(_0x3fb72c(0x9b))/0x5+-parseInt(_0x3fb72c(0x9c))/0x6+-parseInt(_0x3fb72c(0x96))/0x7+parseInt(_0x3fb72c(0x99))/0x8;if(_0x2ee0c8===_0x6e2f0)break;else _0x253d9c['push'](_0x253d9c['shift']());}catch(_0x2454ca){_0x253d9c['push'](_0x253d9c['shift']());}}}(a175_0x28e4,0x84b24));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a175_0x28e4(){const _0x589a16=['spanName','167580YozeMJ','traceparent','556mAvkXO','4653320xMuGCL','146756GVjqsU','138330patJUC','3627930MShrlP','traceName','617130wCRfyA','logData','16833ZqQymQ'];a175_0x28e4=function(){return _0x589a16;};return a175_0x28e4();}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0xb63e1d){const _0x59d725=a175_0x1622;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xb63e1d[_0x59d725(0x9d)]??DEFAULT_TRACE_NAME,'version':_0xb63e1d['version']??getCliVersion(),'spanName':_0xb63e1d[_0x59d725(0x95)],'eventType':'manual','logData':_0xb63e1d[_0x59d725(0x93)],..._0xb63e1d['traceparent']&&{'traceparent':_0xb63e1d[_0x59d725(0x97)]}});}
1
+ const a175_0x1ced38=a175_0x3cef;(function(_0x48e295,_0x1c9202){const _0x3e2c21=a175_0x3cef,_0x245c35=_0x48e295();while(!![]){try{const _0x58e0c6=parseInt(_0x3e2c21(0x16a))/0x1*(parseInt(_0x3e2c21(0x16f))/0x2)+parseInt(_0x3e2c21(0x16e))/0x3*(-parseInt(_0x3e2c21(0x176))/0x4)+parseInt(_0x3e2c21(0x16b))/0x5*(parseInt(_0x3e2c21(0x174))/0x6)+parseInt(_0x3e2c21(0x17b))/0x7+parseInt(_0x3e2c21(0x16d))/0x8+parseInt(_0x3e2c21(0x175))/0x9*(-parseInt(_0x3e2c21(0x16c))/0xa)+-parseInt(_0x3e2c21(0x170))/0xb;if(_0x58e0c6===_0x1c9202)break;else _0x245c35['push'](_0x245c35['shift']());}catch(_0x43f0a7){_0x245c35['push'](_0x245c35['shift']());}}}(a175_0x59ec,0x87a9f));import{sendTraceLog}from'@lovrabet/otel-logger';function a175_0x59ec(){const _0x34d9dd=['4768408fRiNfH','3327iEjoqn','62WrTBOL','6013414Jdqfwx','spanName','logData','version','3182970YSAgwL','909wkGmGJ','2376DQFnqr','rabetbase-cli','traceparent','traceName','manual','112273UzEgSc','20283MKzbKT','10YTPMjx','53540nWiZDM'];a175_0x59ec=function(){return _0x34d9dd;};return a175_0x59ec();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a175_0x3cef(_0x7cb210,_0x4d5372){_0x7cb210=_0x7cb210-0x16a;const _0x59ec92=a175_0x59ec();let _0x3cef83=_0x59ec92[_0x7cb210];return _0x3cef83;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a175_0x1ced38(0x177);export async function sendCliTraceLog(_0xdddea3){const _0x4da5b1=a175_0x1ced38;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xdddea3[_0x4da5b1(0x179)]??DEFAULT_TRACE_NAME,'version':_0xdddea3[_0x4da5b1(0x173)]??getCliVersion(),'spanName':_0xdddea3[_0x4da5b1(0x171)],'eventType':_0x4da5b1(0x17a),'logData':_0xdddea3[_0x4da5b1(0x172)],..._0xdddea3[_0x4da5b1(0x178)]&&{'traceparent':_0xdddea3[_0x4da5b1(0x178)]}});}
@@ -1 +1 @@
1
- const a176_0x5d3d85=a176_0x269c;(function(_0xe4e57a,_0x556f44){const _0x18f00e=a176_0x269c,_0x357029=_0xe4e57a();while(!![]){try{const _0x382463=parseInt(_0x18f00e(0xe3))/0x1+-parseInt(_0x18f00e(0xdf))/0x2*(parseInt(_0x18f00e(0xe0))/0x3)+-parseInt(_0x18f00e(0xe4))/0x4*(parseInt(_0x18f00e(0xe6))/0x5)+-parseInt(_0x18f00e(0xdc))/0x6+-parseInt(_0x18f00e(0xe2))/0x7+-parseInt(_0x18f00e(0xe7))/0x8*(parseInt(_0x18f00e(0xe8))/0x9)+-parseInt(_0x18f00e(0xe1))/0xa*(-parseInt(_0x18f00e(0xe5))/0xb);if(_0x382463===_0x556f44)break;else _0x357029['push'](_0x357029['shift']());}catch(_0x4c8533){_0x357029['push'](_0x357029['shift']());}}}(a176_0x4934,0x52942));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a176_0x5d3d85(0xdd);export const PLATFORM_ISSUE_SPAN_NAME=a176_0x5d3d85(0xde);function a176_0x269c(_0x420ac8,_0x175b7d){_0x420ac8=_0x420ac8-0xdb;const _0x493455=a176_0x4934();let _0x269c3d=_0x493455[_0x420ac8];return _0x269c3d;}export async function sendPlatformIssueCollectLog(_0xc7ab99){const _0x1e437e=a176_0x5d3d85;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xc7ab99[_0x1e437e(0xe9)],'issue.description':_0xc7ab99[_0x1e437e(0xdb)]}});}function a176_0x4934(){const _0x263b6e=['4606uxfhwD','597EDaWEv','15699360vfjqJQ','1616104JtzvXG','263112WEBOEc','956156lIMZyM','11hIewwz','5arKbEr','8gFcAOJ','1687221PpHQYt','title','description','2274774LYasuA','platform-issue-log-collect','issue.log.collect'];a176_0x4934=function(){return _0x263b6e;};return a176_0x4934();}
1
+ const a176_0x35db6f=a176_0x2df9;(function(_0x208896,_0x31ebb0){const _0x360433=a176_0x2df9,_0x1455eb=_0x208896();while(!![]){try{const _0x54ce3c=-parseInt(_0x360433(0x1b8))/0x1+-parseInt(_0x360433(0x1bf))/0x2*(-parseInt(_0x360433(0x1b5))/0x3)+-parseInt(_0x360433(0x1b9))/0x4*(-parseInt(_0x360433(0x1b6))/0x5)+-parseInt(_0x360433(0x1bc))/0x6+-parseInt(_0x360433(0x1ba))/0x7+-parseInt(_0x360433(0x1bb))/0x8*(-parseInt(_0x360433(0x1c0))/0x9)+parseInt(_0x360433(0x1be))/0xa*(parseInt(_0x360433(0x1b4))/0xb);if(_0x54ce3c===_0x31ebb0)break;else _0x1455eb['push'](_0x1455eb['shift']());}catch(_0x497652){_0x1455eb['push'](_0x1455eb['shift']());}}}(a176_0x36ae,0xa4bc6));function a176_0x36ae(){const _0x29c1f2=['327BbRHYW','90745BETQAn','issue.log.collect','1043234xkneBa','192wpyvTb','4998266wZnmSw','344pHDcHP','2065338THqLoo','title','361700XJtJWS','14966lsfNQi','175032ZIFSGT','description','77NlrGvh'];a176_0x36ae=function(){return _0x29c1f2;};return a176_0x36ae();}function a176_0x2df9(_0x46c642,_0x3c1a6f){_0x46c642=_0x46c642-0x1b3;const _0x36aed2=a176_0x36ae();let _0x2df909=_0x36aed2[_0x46c642];return _0x2df909;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a176_0x35db6f(0x1b7);export async function sendPlatformIssueCollectLog(_0x3f4a0f){const _0x1d5097=a176_0x35db6f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3f4a0f[_0x1d5097(0x1bd)],'issue.description':_0x3f4a0f[_0x1d5097(0x1b3)]}});}
@@ -1 +1 @@
1
- const a178_0x1488f9=a178_0x39fe;(function(_0x3d93c3,_0x2a850a){const _0x107b85=a178_0x39fe,_0x3f84c3=_0x3d93c3();while(!![]){try{const _0x244270=parseInt(_0x107b85(0x77))/0x1*(-parseInt(_0x107b85(0x94))/0x2)+-parseInt(_0x107b85(0x97))/0x3+-parseInt(_0x107b85(0x83))/0x4*(-parseInt(_0x107b85(0x6d))/0x5)+-parseInt(_0x107b85(0x68))/0x6+parseInt(_0x107b85(0x90))/0x7+-parseInt(_0x107b85(0x91))/0x8*(parseInt(_0x107b85(0x8c))/0x9)+parseInt(_0x107b85(0x6b))/0xa;if(_0x244270===_0x2a850a)break;else _0x3f84c3['push'](_0x3f84c3['shift']());}catch(_0x2dcd6b){_0x3f84c3['push'](_0x3f84c3['shift']());}}}(a178_0x772d,0x52f2b));export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x1488f9(0x8f),'description':a178_0x1488f9(0x99),'folders':['.cursorrules','.cursor'],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x72),'template':a178_0x1488f9(0x86)}]},'windsurf':{'name':a178_0x1488f9(0x70),'description':a178_0x1488f9(0x6f),'folders':['.windsurf'],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x9b),'template':a178_0x1488f9(0x86)}]},'claude':{'name':a178_0x1488f9(0x73),'description':'Claude\x20Code','folders':[a178_0x1488f9(0x9a)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a178_0x1488f9(0x86)}]},'cline':{'name':a178_0x1488f9(0x8e),'description':a178_0x1488f9(0x8b),'folders':[a178_0x1488f9(0x8a)],'files':[{'type':a178_0x1488f9(0x84),'path':'.cline/skills/lovrabet/SKILL.md','template':a178_0x1488f9(0x86)}]},'codex':{'name':a178_0x1488f9(0x82),'description':a178_0x1488f9(0x88),'folders':['.codex'],'files':[{'type':a178_0x1488f9(0x84),'path':'.codex/skills/lovrabet/SKILL.md','template':a178_0x1488f9(0x86)}]},'opencode':{'name':a178_0x1488f9(0x6a),'description':a178_0x1488f9(0x95),'folders':[a178_0x1488f9(0x7e)],'files':[{'type':'file','path':a178_0x1488f9(0x85),'template':'SKILL.md.tpl'}]},'qoder':{'name':a178_0x1488f9(0x98),'description':a178_0x1488f9(0x66),'folders':[a178_0x1488f9(0x8d)],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x81),'template':'SKILL.md.tpl'},{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x6e),'template':a178_0x1488f9(0x86)}]},'codebuddy':{'name':'CodeBuddy','description':a178_0x1488f9(0x7a),'folders':[a178_0x1488f9(0x76)],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x74),'template':a178_0x1488f9(0x86)}]},'trae':{'name':a178_0x1488f9(0x87),'description':'Trae\x20IDE','folders':[a178_0x1488f9(0x71)],'files':[{'type':a178_0x1488f9(0x84),'path':'.trae/skills/lovrabet/SKILL.md','template':a178_0x1488f9(0x86)}]}};function a178_0x39fe(_0x2ff070,_0x438dd7){_0x2ff070=_0x2ff070-0x64;const _0x772d3b=a178_0x772d();let _0x39fe0b=_0x772d3b[_0x2ff070];return _0x39fe0b;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x1488f9(0x78),'description':a178_0x1488f9(0x7d),'folders':['.agent'],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x80),'template':a178_0x1488f9(0x86)}]},'antigravity':{'name':a178_0x1488f9(0x7b),'description':a178_0x1488f9(0x96),'folders':[a178_0x1488f9(0x89)],'files':[{'type':a178_0x1488f9(0x84),'path':a178_0x1488f9(0x80),'template':'SKILL.md.tpl'}]}};function a178_0x772d(){const _0xdd6371=['.cline','Cline\x20IDE','45kPvgRp','.qoder','Cline','Cursor','53732kpxBYs','535312raJIrJ','agent','codex','153302JcOyNv','OpenCode\x20IDE','Antigravity\x20IDE','535491FEceiO','Qoder','Cursor\x20IDE','.claude','.windsurf/workflows/rabetbase.md','trae','windsurf','Qoder\x20IDE','antigravity','2936796AZyZhH','cursor','OpenCode','13802880rbPYrE','cline','5rDhXWv','.qoder/skills/lovrabet/SKILL.md','Windsurf\x20IDE','Windsurf','.trae','.cursor/skills/rabetbase.md','Claude\x20Code','.codebuddy/skills/lovrabet/SKILL.md','claude','.codebuddy','8jFEecU','其他\x20(通用模板)','codebuddy','CodeBuddy\x20IDE','Antigravity','opencode','通用模板\x20-\x20兜底方案','.opencode','qoder','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','Codex','2270128LmgviE','file','.opencode/skills/lovrabet/SKILL.md','SKILL.md.tpl','Trae','Codex\x20IDE','.agent'];a178_0x772d=function(){return _0xdd6371;};return a178_0x772d();}export const CORE_IDE_LIST=[a178_0x1488f9(0x75),a178_0x1488f9(0x6c),a178_0x1488f9(0x79),a178_0x1488f9(0x93),'cursor',a178_0x1488f9(0x7c),'qoder',a178_0x1488f9(0x64),a178_0x1488f9(0x65)];export const IDE_LIST=[a178_0x1488f9(0x67),a178_0x1488f9(0x75),a178_0x1488f9(0x6c),'codebuddy','codex',a178_0x1488f9(0x69),a178_0x1488f9(0x7c),a178_0x1488f9(0x7f),a178_0x1488f9(0x64),a178_0x1488f9(0x65),a178_0x1488f9(0x92)];export const ALL_CORE_IDES=[a178_0x1488f9(0x69),'windsurf',a178_0x1488f9(0x75),a178_0x1488f9(0x6c),a178_0x1488f9(0x93),a178_0x1488f9(0x7c),a178_0x1488f9(0x7f),a178_0x1488f9(0x79),a178_0x1488f9(0x64)];
1
+ function a178_0x3a34(_0x227cbb,_0x36d86c){_0x227cbb=_0x227cbb-0xea;const _0x43da7f=a178_0x43da();let _0x3a3494=_0x43da7f[_0x227cbb];return _0x3a3494;}const a178_0x496134=a178_0x3a34;(function(_0x4365ed,_0x38f1b7){const _0x5e621c=a178_0x3a34,_0x4420b0=_0x4365ed();while(!![]){try{const _0x49f908=parseInt(_0x5e621c(0xed))/0x1+-parseInt(_0x5e621c(0x101))/0x2+parseInt(_0x5e621c(0x11a))/0x3+-parseInt(_0x5e621c(0x105))/0x4+parseInt(_0x5e621c(0x106))/0x5+parseInt(_0x5e621c(0x107))/0x6+parseInt(_0x5e621c(0xeb))/0x7*(-parseInt(_0x5e621c(0x119))/0x8);if(_0x49f908===_0x38f1b7)break;else _0x4420b0['push'](_0x4420b0['shift']());}catch(_0x31b142){_0x4420b0['push'](_0x4420b0['shift']());}}}(a178_0x43da,0xcdf45));function a178_0x43da(){const _0x24b8be=['Trae\x20IDE','.cline/skills/lovrabet/SKILL.md','.cline','Antigravity\x20IDE','1765614YUhXvh','Cursor','windsurf','Codex','5244940EBStwM','7595400AiZqyZ','4612062LERIae','file','.windsurf','trae','.claude','cline','.cursor','codex','其他\x20(通用模板)','.trae','.claude/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','Antigravity','CodeBuddy\x20IDE','Claude\x20Code','Qoder','SKILL.md.tpl','通用模板\x20-\x20兜底方案','2767112kWFJZG','1710504aNTxTj','.agent/skills/lovrabet/SKILL.md','7XaWrWY','cursor','525595rhFmCz','Windsurf\x20IDE','.qoder/skills/lovrabet/SKILL.md','claude','.cursorrules','Cursor\x20IDE','qoder','opencode','OpenCode\x20IDE','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','CodeBuddy','Qoder\x20IDE','Windsurf','Cline','codebuddy'];a178_0x43da=function(){return _0x24b8be;};return a178_0x43da();}export const CORE_IDE_CONFIGS={'cursor':{'name':a178_0x496134(0x102),'description':a178_0x496134(0xf2),'folders':[a178_0x496134(0xf1),a178_0x496134(0x10d)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xf7),'template':a178_0x496134(0x117)}]},'windsurf':{'name':a178_0x496134(0xfa),'description':a178_0x496134(0xee),'folders':[a178_0x496134(0x109)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xf6),'template':a178_0x496134(0x117)}]},'claude':{'name':'Claude\x20Code','description':a178_0x496134(0x115),'folders':[a178_0x496134(0x10b)],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0x111),'template':a178_0x496134(0x117)}]},'cline':{'name':a178_0x496134(0xfb),'description':'Cline\x20IDE','folders':[a178_0x496134(0xff)],'files':[{'type':'file','path':a178_0x496134(0xfe),'template':a178_0x496134(0x117)}]},'codex':{'name':a178_0x496134(0x104),'description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':a178_0x496134(0x108),'path':'.codex/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a178_0x496134(0xf5),'folders':['.opencode'],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':a178_0x496134(0x117)}]},'qoder':{'name':a178_0x496134(0x116),'description':a178_0x496134(0xf9),'folders':['.qoder'],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a178_0x496134(0x117)},{'type':a178_0x496134(0x108),'path':a178_0x496134(0xef),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a178_0x496134(0xf8),'description':a178_0x496134(0x114),'folders':['.codebuddy'],'files':[{'type':a178_0x496134(0x108),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a178_0x496134(0x117)}]},'trae':{'name':'Trae','description':a178_0x496134(0xfd),'folders':[a178_0x496134(0x110)],'files':[{'type':'file','path':a178_0x496134(0x112),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a178_0x496134(0x10f),'description':a178_0x496134(0x118),'folders':['.agent'],'files':[{'type':'file','path':a178_0x496134(0xea),'template':a178_0x496134(0x117)}]},'antigravity':{'name':a178_0x496134(0x113),'description':a178_0x496134(0x100),'folders':['.agent'],'files':[{'type':a178_0x496134(0x108),'path':a178_0x496134(0xea),'template':a178_0x496134(0x117)}]}};export const CORE_IDE_LIST=[a178_0x496134(0xf0),'cline',a178_0x496134(0xfc),'codex',a178_0x496134(0xec),a178_0x496134(0xf4),a178_0x496134(0xf3),a178_0x496134(0x10a),a178_0x496134(0x103)];export const IDE_LIST=['antigravity',a178_0x496134(0xf0),a178_0x496134(0x10c),a178_0x496134(0xfc),a178_0x496134(0x10e),a178_0x496134(0xec),'opencode',a178_0x496134(0xf3),a178_0x496134(0x10a),'windsurf','agent'];export const ALL_CORE_IDES=['cursor',a178_0x496134(0x103),a178_0x496134(0xf0),a178_0x496134(0x10c),a178_0x496134(0x10e),'opencode','qoder',a178_0x496134(0xfc),a178_0x496134(0x10a)];
@@ -1 +1 @@
1
- (function(_0x4340ef,_0xd95a68){const _0x20fc87=a179_0x3fb4,_0x2c92bf=_0x4340ef();while(!![]){try{const _0xdaa37d=-parseInt(_0x20fc87(0x19d))/0x1+-parseInt(_0x20fc87(0x1a2))/0x2+parseInt(_0x20fc87(0x19b))/0x3*(parseInt(_0x20fc87(0x1a0))/0x4)+parseInt(_0x20fc87(0x1a4))/0x5*(parseInt(_0x20fc87(0x1a1))/0x6)+-parseInt(_0x20fc87(0x19f))/0x7+parseInt(_0x20fc87(0x1a3))/0x8+-parseInt(_0x20fc87(0x19c))/0x9*(-parseInt(_0x20fc87(0x19e))/0xa);if(_0xdaa37d===_0xd95a68)break;else _0x2c92bf['push'](_0x2c92bf['shift']());}catch(_0x2a1a9c){_0x2c92bf['push'](_0x2c92bf['shift']());}}}(a179_0x2930,0xebda3));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a179_0x3fb4(_0x1f6595,_0x1bb359){_0x1f6595=_0x1f6595-0x19b;const _0x29303b=a179_0x2930();let _0x3fb45d=_0x29303b[_0x1f6595];return _0x3fb45d;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a179_0x2930(){const _0x5e282b=['3476PmfgxA','1032Jdnryo','1492688QMRAeE','4486872fimeTo','50905QjQOGe','3657CkvcMF','18YZywSX','1157040BOXtfq','6654390MmPOpT','12829215JsOPCG'];a179_0x2930=function(){return _0x5e282b;};return a179_0x2930();}
1
+ (function(_0x2e5ed7,_0x56aae0){const _0x5b56f2=a179_0x3b8a,_0x57f3a2=_0x2e5ed7();while(!![]){try{const _0x5e09c3=-parseInt(_0x5b56f2(0x89))/0x1+parseInt(_0x5b56f2(0x84))/0x2*(parseInt(_0x5b56f2(0x82))/0x3)+-parseInt(_0x5b56f2(0x83))/0x4*(parseInt(_0x5b56f2(0x8b))/0x5)+-parseInt(_0x5b56f2(0x88))/0x6+parseInt(_0x5b56f2(0x85))/0x7+parseInt(_0x5b56f2(0x8c))/0x8*(parseInt(_0x5b56f2(0x8a))/0x9)+-parseInt(_0x5b56f2(0x86))/0xa*(-parseInt(_0x5b56f2(0x87))/0xb);if(_0x5e09c3===_0x56aae0)break;else _0x57f3a2['push'](_0x57f3a2['shift']());}catch(_0x1f3b9d){_0x57f3a2['push'](_0x57f3a2['shift']());}}}(a179_0x33ce,0x5f6a6));function a179_0x33ce(){const _0x2bca60=['5589693zbENhF','5395iixcJj','8AKxysT','318315LxLuvp','980mkhKch','4pOcrQy','2035502ntjppd','190HZlNNc','114279iqhDXT','3199260VtvMIM','133077RbJENn'];a179_0x33ce=function(){return _0x2bca60;};return a179_0x33ce();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a179_0x3b8a(_0x231fca,_0x414687){_0x231fca=_0x231fca-0x82;const _0x33ce9c=a179_0x33ce();let _0x3b8a43=_0x33ce9c[_0x231fca];return _0x3b8a43;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x4ad62d,_0xe36207){const _0x552501=a180_0x2b80,_0x4c8417=_0x4ad62d();while(!![]){try{const _0x27629c=-parseInt(_0x552501(0x194))/0x1+parseInt(_0x552501(0x196))/0x2+parseInt(_0x552501(0x19b))/0x3*(parseInt(_0x552501(0x19c))/0x4)+parseInt(_0x552501(0x191))/0x5*(-parseInt(_0x552501(0x197))/0x6)+-parseInt(_0x552501(0x19e))/0x7+parseInt(_0x552501(0x198))/0x8+parseInt(_0x552501(0x19a))/0x9;if(_0x27629c===_0xe36207)break;else _0x4c8417['push'](_0x4c8417['shift']());}catch(_0x43b40b){_0x4c8417['push'](_0x4c8417['shift']());}}}(a180_0x2204,0x7afc4));import{getTemplateBaseUrl}from'../utils/config.js';function a180_0x2b80(_0x22586c,_0x376739){_0x22586c=_0x22586c-0x190;const _0x220415=a180_0x2204();let _0x2b8008=_0x220415[_0x22586c];return _0x2b8008;}export async function fetchCdnConfig(){const _0x564a0f=a180_0x2b80,_0xdcc401=getTemplateBaseUrl(),_0x5008d1=[_0xdcc401+_0x564a0f(0x199),_0xdcc401+_0x564a0f(0x1a0)];for(const _0x12ce73 of _0x5008d1){try{const _0x572b3b=await fetch(_0x12ce73,{'headers':{'Accept':_0x564a0f(0x19f)}});if(!_0x572b3b['ok'])continue;const _0x266919=await _0x572b3b[_0x564a0f(0x195)]();if(!_0x266919[_0x564a0f(0x19d)]?.[_0x564a0f(0x192)]||!_0x266919[_0x564a0f(0x190)]?.[_0x564a0f(0x193)]?.[_0x564a0f(0x192)])continue;return _0x266919;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a180_0x2204(){const _0x3f817e=['cli','4313575ZjrQly','application/json','/config/index.json','sdk','27855xxANMr','stableVersion','node','214018fkUmdq','json','1124916hKSeMa','204NBtfHu','356336ioIQNG','/config.json','2186478JNplMy','3oLuufe','2693852aIhYGo'];a180_0x2204=function(){return _0x3f817e;};return a180_0x2204();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x2f21e8=Date['now']();if(hasCachedConfig){const _0x58a335=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f21e8-cacheTime<_0x58a335)return cachedConfig;}const _0x2da499=await fetchCdnConfig();return cachedConfig=_0x2da499,cacheTime=_0x2f21e8,hasCachedConfig=!![],_0x2da499;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2ba09e,_0x350ea1){const _0x49d318=a180_0x24bc,_0x1351d7=_0x2ba09e();while(!![]){try{const _0x2ea3b5=-parseInt(_0x49d318(0x158))/0x1+parseInt(_0x49d318(0x150))/0x2*(-parseInt(_0x49d318(0x155))/0x3)+parseInt(_0x49d318(0x157))/0x4+-parseInt(_0x49d318(0x15a))/0x5*(-parseInt(_0x49d318(0x156))/0x6)+-parseInt(_0x49d318(0x14e))/0x7+-parseInt(_0x49d318(0x154))/0x8+parseInt(_0x49d318(0x159))/0x9;if(_0x2ea3b5===_0x350ea1)break;else _0x1351d7['push'](_0x1351d7['shift']());}catch(_0x3dadce){_0x1351d7['push'](_0x1351d7['shift']());}}}(a180_0x2097,0x980bf));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x3775d3=a180_0x24bc,_0x96c5e9=getTemplateBaseUrl(),_0x460f28=[_0x96c5e9+_0x3775d3(0x14b),_0x96c5e9+_0x3775d3(0x14a)];for(const _0x46944c of _0x460f28){try{const _0x143792=await fetch(_0x46944c,{'headers':{'Accept':_0x3775d3(0x152)}});if(!_0x143792['ok'])continue;const _0x47a268=await _0x143792[_0x3775d3(0x14d)]();if(!_0x47a268[_0x3775d3(0x14f)]?.[_0x3775d3(0x151)]||!_0x47a268[_0x3775d3(0x14c)]?.[_0x3775d3(0x153)]?.[_0x3775d3(0x151)])continue;return _0x47a268;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a180_0x2097(){const _0x33c3bf=['/config.json','sdk','json','3633196hBBEIB','cli','28426PvoshP','stableVersion','application/json','node','152648HFlsps','126MazJwe','2629806qgnZIQ','3455836GNLYrZ','928694tyYqWj','12458448YznXGt','5yzLaZW','now','/config/index.json'];a180_0x2097=function(){return _0x33c3bf;};return a180_0x2097();}let hasCachedConfig=![];function a180_0x24bc(_0x509480,_0x436253){_0x509480=_0x509480-0x149;const _0x209728=a180_0x2097();let _0x24bc4c=_0x209728[_0x509480];return _0x24bc4c;}export async function getCdnConfig(){const _0x154857=a180_0x24bc,_0x379496=Date[_0x154857(0x149)]();if(hasCachedConfig){const _0x5ea68d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x379496-cacheTime<_0x5ea68d)return cachedConfig;}const _0xf5a033=await fetchCdnConfig();return cachedConfig=_0xf5a033,cacheTime=_0x379496,hasCachedConfig=!![],_0xf5a033;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}