@reefclaw/openclaw-plugin 0.1.13 → 0.1.14

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 (48) hide show
  1. package/bridge/gateway/gateway-config.d.ts +16 -5
  2. package/bridge/gateway/gateway-config.js +68 -12
  3. package/bridge/gateway/poller.js +18 -8
  4. package/bridge/providers/emergency-commands.d.ts +9 -1
  5. package/bridge/providers/emergency-commands.js +38 -1
  6. package/bridge/providers/gateway.d.ts +23 -1
  7. package/bridge/providers/gateway.js +79 -17
  8. package/bridge/providers/onboarding-commands.d.ts +8 -0
  9. package/bridge/providers/onboarding-commands.js +4 -4
  10. package/ccxt/binance-public.d.ts +17 -5
  11. package/ccxt/binance-public.js +31 -3
  12. package/config/operator-provenance.d.ts +6 -0
  13. package/config/operator-provenance.js +50 -0
  14. package/config/plugin-config-io.d.ts +15 -1
  15. package/config/plugin-config-io.js +24 -0
  16. package/index.js +216 -173
  17. package/ingest/event-loop-monitor.d.ts +11 -0
  18. package/ingest/event-loop-monitor.js +113 -0
  19. package/ingest/position-auto-capture.d.ts +5 -0
  20. package/ingest/position-auto-capture.js +14 -5
  21. package/ingest/readiness-reporter.d.ts +17 -6
  22. package/ingest/readiness-reporter.js +88 -9
  23. package/ingest/skill-version-reader.d.ts +16 -0
  24. package/ingest/skill-version-reader.js +64 -0
  25. package/live/approval-lifecycle.d.ts +30 -0
  26. package/live/approval-lifecycle.js +80 -0
  27. package/live/bracket-types.d.ts +9 -0
  28. package/live/live-adapter.d.ts +0 -1
  29. package/onboarding/runtime.d.ts +34 -1
  30. package/onboarding/runtime.js +56 -5
  31. package/openclaw.plugin.json +1 -1
  32. package/package.json +2 -2
  33. package/simulator/exchange-simulator.d.ts +45 -2
  34. package/simulator/exchange-simulator.js +96 -4
  35. package/simulator/types.d.ts +17 -0
  36. package/tools/attach-brackets.js +50 -1
  37. package/venues/hyperliquid/hl-bracket-coordinator.d.ts +25 -1
  38. package/venues/hyperliquid/hl-bracket-coordinator.js +57 -0
  39. package/venues/hyperliquid/hl-brackets.d.ts +10 -0
  40. package/venues/hyperliquid/hl-brackets.js +45 -13
  41. package/venues/hyperliquid/hl-fill-ingest.d.ts +18 -0
  42. package/venues/hyperliquid/hl-fill-ingest.js +69 -0
  43. package/venues/hyperliquid/hl-live-adapter.d.ts +32 -0
  44. package/venues/hyperliquid/hl-live-adapter.js +112 -7
  45. package/venues/hyperliquid/hl-public.d.ts +12 -5
  46. package/venues/hyperliquid/hl-public.js +24 -3
  47. package/venues/hyperliquid/hl-user-stream.d.ts +13 -1
  48. package/venues/hyperliquid/hl-user-stream.js +4 -1
@@ -137,9 +137,12 @@ export class HyperliquidUserStream {
137
137
  switch (channel) {
138
138
  case 'userFills': {
139
139
  const payload = data;
140
+ // `isSnapshot` was typed here from the start but never read — so every
141
+ // (re)connect replayed recent history as if it were live (F44).
142
+ const isSnapshot = payload?.isSnapshot === true;
140
143
  for (const fill of payload?.fills ?? []) {
141
144
  this.lastEventAt = Math.max(this.lastEventAt, fill.time ?? Date.now());
142
- this.opts.callbacks.onFill(fill);
145
+ this.opts.callbacks.onFill(fill, { isSnapshot });
143
146
  }
144
147
  break;
145
148
  }