@exagent/agent 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  updateSecureStore,
10
10
  writeConfigFile,
11
11
  writeSampleConfig
12
- } from "./chunk-GYYW4EKM.js";
12
+ } from "./chunk-GBPHX7ZT.js";
13
13
 
14
14
  // src/cli.ts
15
15
  import { Command } from "commander";
@@ -359,7 +359,7 @@ async function ensureLocalSetup(configPath) {
359
359
  // src/cli.ts
360
360
  import * as clack2 from "@clack/prompts";
361
361
  var program = new Command();
362
- program.name("exagent").description("Exagent \u2014 LLM trading agent runtime").version("0.3.8");
362
+ program.name("exagent").description("Exagent \u2014 LLM trading agent runtime").version("0.3.9");
363
363
  program.command("init").description("Create a sample agent configuration file").option("--agent-id <id>", "Agent ID (from dashboard)", "my-agent").option("--api-url <url>", "API server URL", "http://localhost:3002").option("--config <path>", "Config file path", "agent-config.json").action((opts) => {
364
364
  printBanner();
365
365
  writeSampleConfig(opts.agentId, opts.apiUrl, opts.config);
package/dist/index.d.ts CHANGED
@@ -1,7 +1,16 @@
1
- import { LLMProvider, StrategyProvenance, StrategyPermissions, RelayCommand, AgentStatusPayload, MessageType, MessageLevel, TradeSignal, StrategyStore, PositionSummary, TrackedPosition, TradeRecord, LLMAdapter, LLMConfig, LLMMessage, LLMResponse, LLMMetadata, StrategyFunction, StrategyTemplate, RiskParams, MarketData, OHLCV, PaperTrade, PaperMetrics } from '@exagent/sdk';
1
+ import { LLMProvider, RelayCommand, AgentStatusPayload, MessageType, MessageLevel, TradeSignal, StrategyStore, PositionSummary, TrackedPosition, TradeRecord, LLMAdapter, LLMConfig, LLMMessage, LLMResponse, LLMMetadata, StrategyFunction, StrategyTemplate, RiskParams, MarketData, OHLCV, PaperTrade, PaperMetrics } from '@exagent/sdk';
2
2
  import { WalletClient, PublicClient, Transport, Chain as Chain$1, Account } from 'viem';
3
3
  import { Chain } from 'viem/chains';
4
4
 
5
+ type StrategyProvenance = 'template' | 'user_created' | 'imported' | 'marketplace' | 'admin_approved' | 'legacy_code';
6
+ interface StrategyPermissions {
7
+ allowedVenues?: string[];
8
+ allowedChains?: string[];
9
+ maxTradeValueUSD?: number;
10
+ maxLeverage?: number;
11
+ allowedOrderTypes?: Array<'market' | 'limit' | 'yes' | 'no'>;
12
+ maxDailyLossBps?: number;
13
+ }
5
14
  interface RuntimeConfig {
6
15
  agentId: string;
7
16
  apiUrl: string;
@@ -615,6 +624,7 @@ interface PerpFill {
615
624
  fee: string;
616
625
  time: number;
617
626
  hash: string;
627
+ tid?: number;
618
628
  isMaker: boolean;
619
629
  builderFee?: string;
620
630
  liquidation?: boolean;
@@ -1031,6 +1041,9 @@ interface PredictionFill {
1031
1041
  marketQuestion?: string;
1032
1042
  isMaker: boolean;
1033
1043
  tokenId?: string;
1044
+ status?: string;
1045
+ transactionHash?: `0x${string}`;
1046
+ traderSide?: string;
1034
1047
  }
1035
1048
  interface PredictionOrderResult {
1036
1049
  success: boolean;
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  loadConfig,
44
44
  loadStrategy,
45
45
  writeSampleConfig
46
- } from "./chunk-GYYW4EKM.js";
46
+ } from "./chunk-GBPHX7ZT.js";
47
47
  export {
48
48
  AcrossAdapter,
49
49
  AerodromeAdapter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exagent/agent",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@clack/prompts": "^1.1.0",
26
- "@exagent/sdk": "0.2.2",
26
+ "@exagent/sdk": "0.2.3",
27
27
  "@polymarket/clob-client": "^5.8.1",
28
28
  "boxen": "^8.0.1",
29
29
  "commander": "^12.1.0",