perp-cli 0.12.0 → 0.12.2

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.
File without changes
package/dist/index.js CHANGED
@@ -307,6 +307,19 @@ async function _initWithOws(exchange, owsWalletName, isTestnet, opts, owsKeyToke
307
307
  const { LighterAdapter } = await import("./exchanges/lighter.js");
308
308
  _lighterAdapter = new LighterAdapter("", isTestnet);
309
309
  _lighterAdapter.setSigner(OwsEvmSigner.create(owsWalletName, passphrase));
310
+ // Tier 1: agent if registered (mirrors getAdapter / getAdapterForExchange).
311
+ // Without this, _initWithOws would skip Tier 1 and fall through to
312
+ // auto-setup-at-slot-4 which is wrong for agent users (and breaks under
313
+ // SDK 1.0.11+ where signChangePubKey signature changed).
314
+ const { getAgent: getLtAgentOws } = await import("./agent-wallet/store.js");
315
+ const ltAgentMetaOws = getLtAgentOws("lighter");
316
+ if (ltAgentMetaOws && !noAgent) {
317
+ const { loadLighterKey } = await import("./agent-wallet/lighter-keystore.js");
318
+ const ltL2KeyOws = loadLighterKey(ltAgentMetaOws.accountIndex, ltAgentMetaOws.apiKeyIndex, "");
319
+ _lighterAdapter.setAgentSigner(ltAgentMetaOws, ltL2KeyOws);
320
+ }
321
+ if (noAgent)
322
+ _lighterAdapter.setNoAgent(true);
310
323
  await _lighterAdapter.init();
311
324
  _adapter = _lighterAdapter;
312
325
  return _adapter;
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "perp-cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Multi-DEX Perpetual Futures CLI - Pacifica, Hyperliquid, Lighter, Aster",
5
5
  "bin": {
6
6
  "perp": "dist/index.js",
@@ -59,7 +59,7 @@
59
59
  "ink": "^6.8.0",
60
60
  "ink-spinner": "^5.0.0",
61
61
  "ink-table": "^3.1.0",
62
- "lighter-ts-sdk": "^1.0.10",
62
+ "lighter-ts-sdk": "1.0.10",
63
63
  "react": "^19.2.4",
64
64
  "tweetnacl": "^1.0.3",
65
65
  "ws": "^8.19.0",