@exagent/agent 0.1.42 → 0.1.44
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/chunk-FOYVWN7Q.mjs +9715 -0
- package/dist/chunk-YXLDNUAH.mjs +9711 -0
- package/dist/cli.js +4 -5
- package/dist/cli.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7925,7 +7925,7 @@ function loadSecureEnv(basePath, passphrase) {
|
|
|
7925
7925
|
}
|
|
7926
7926
|
|
|
7927
7927
|
// src/index.ts
|
|
7928
|
-
var AGENT_VERSION = "0.1.
|
|
7928
|
+
var AGENT_VERSION = "0.1.44";
|
|
7929
7929
|
|
|
7930
7930
|
// src/relay.ts
|
|
7931
7931
|
var RelayClient = class {
|
|
@@ -8666,10 +8666,6 @@ var AgentRuntime = class {
|
|
|
8666
8666
|
this.config.allowedTokens = void 0;
|
|
8667
8667
|
console.log("Frontier risk universe: all tokens allowed (no restrictions)");
|
|
8668
8668
|
console.log("Frontier risk universe: vault creation is disabled");
|
|
8669
|
-
const trackedCount = this.positionTracker.getPositions().length;
|
|
8670
|
-
if (trackedCount > 0) {
|
|
8671
|
-
console.log(`Auto-tracking ${trackedCount} token(s) from position history`);
|
|
8672
|
-
}
|
|
8673
8669
|
return;
|
|
8674
8670
|
}
|
|
8675
8671
|
const configTokens = this.config.allowedTokens || this.getDefaultTokens();
|
|
@@ -8989,6 +8985,9 @@ var AgentRuntime = class {
|
|
|
8989
8985
|
}
|
|
8990
8986
|
case "create_vault": {
|
|
8991
8987
|
const result = await this.createVault();
|
|
8988
|
+
if (!result.success) {
|
|
8989
|
+
console.warn(`[vault] create_vault failed: ${result.error}`);
|
|
8990
|
+
}
|
|
8992
8991
|
this.relay?.sendCommandResult(
|
|
8993
8992
|
cmd.id,
|
|
8994
8993
|
result.success,
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -3345,6 +3345,6 @@ declare function decryptEnvFile(encPath: string, passphrase: string): Record<str
|
|
|
3345
3345
|
declare function loadSecureEnv(basePath: string, passphrase?: string): boolean;
|
|
3346
3346
|
|
|
3347
3347
|
/** @exagent/agent package version — update alongside package.json */
|
|
3348
|
-
declare const AGENT_VERSION = "0.1.
|
|
3348
|
+
declare const AGENT_VERSION = "0.1.44";
|
|
3349
3349
|
|
|
3350
3350
|
export { AGENT_VERSION, type AccountSummary, type AgentConfig, AgentConfigSchema, type AgentMode, AgentRuntime, type AgentStatusPayload, AnthropicAdapter, BaseLLMAdapter, type BridgeResult, type BridgeStep, type CommandType, DeepSeekAdapter, FileStore, type FillCallback, type FundingCallback, type FundingPayment, GoogleAdapter, GroqAdapter, HYPERLIQUID_DOMAIN, HyperliquidClient, HyperliquidSigner, HyperliquidWebSocket, type InferredExit, type LLMAdapter, type LLMConfig, LLMConfigSchema, type LLMMessage, type LLMMetadata, type LLMProvider, LLMProviderSchema, type LLMResponse, type LiquidationCallback, type LocalPosition, MARKET_CATEGORIES, MarketBrowser, type MarketCategory, type MarketData, MarketDataService, type MessageLevel, type MessageType, MistralAdapter, OllamaAdapter, type OnboardingStatus, OpenAIAdapter, OrderManager, type OrderResult, type PerpAction, type PerpConfig$1 as PerpConfig, PerpConfigSchema, type PerpFill, type PerpMarketData, PerpOnboarding, type PerpPosition, type PerpStrategyFunction, PerpTradeRecorder, type PerpTradeSignal, type PerpConfig as PerpTradingConfig, PolymarketClient, PositionManager, type PositionSummary, PositionTracker, type PredictionAccountSummary, type PredictionAction, type PredictionConfig$1 as PredictionConfig, PredictionConfigSchema, type PredictionFill, PredictionFunding, type PredictionFundingConfig, type PredictionMarket, PredictionOrderManager, type PredictionPosition, PredictionPositionManager, type PredictionStrategyFunction, PredictionTradeRecorder, type PredictionTradeSignal, type PredictionConfig as PredictionTradingConfig, type RecordPerpTradeParams, type RecordPredictionTradeParams, RelayClient, type RelayCommand, type RelayConfig$1 as RelayConfig, RelayConfigSchema, RiskManager, type RiskState, type RiskUniverse, RiskUniverseSchema, type RuntimeConfig, STRATEGY_TEMPLATES, type StrategyContext, type StrategyFunction, type StrategyStore, type StrategyTemplate, type StuckPosition, TogetherAdapter, type TrackedPosition, TradeExecutor, type TradeRecord, type TradeSignal, type TradingConfig, TradingConfigSchema, type VaultConfig, VaultConfigSchema, VaultManager, type VaultManagerConfig, type VaultPolicy, VaultPolicySchema, type VaultStatus, calculatePredictionFee, createLLMAdapter, createSampleConfig, decodePredictionInstrument, decryptEnvFile, encodePredictionInstrument, encryptEnvFile, fillHashToBytes32, fillOidToBytes32, getAllStrategyTemplates, getNextNonce, getStrategyTemplate, loadConfig, loadSecureEnv, loadStrategy, orderIdToBytes32, tradeIdToBytes32, validateConfig, validateStrategy };
|
package/dist/index.d.ts
CHANGED
|
@@ -3345,6 +3345,6 @@ declare function decryptEnvFile(encPath: string, passphrase: string): Record<str
|
|
|
3345
3345
|
declare function loadSecureEnv(basePath: string, passphrase?: string): boolean;
|
|
3346
3346
|
|
|
3347
3347
|
/** @exagent/agent package version — update alongside package.json */
|
|
3348
|
-
declare const AGENT_VERSION = "0.1.
|
|
3348
|
+
declare const AGENT_VERSION = "0.1.44";
|
|
3349
3349
|
|
|
3350
3350
|
export { AGENT_VERSION, type AccountSummary, type AgentConfig, AgentConfigSchema, type AgentMode, AgentRuntime, type AgentStatusPayload, AnthropicAdapter, BaseLLMAdapter, type BridgeResult, type BridgeStep, type CommandType, DeepSeekAdapter, FileStore, type FillCallback, type FundingCallback, type FundingPayment, GoogleAdapter, GroqAdapter, HYPERLIQUID_DOMAIN, HyperliquidClient, HyperliquidSigner, HyperliquidWebSocket, type InferredExit, type LLMAdapter, type LLMConfig, LLMConfigSchema, type LLMMessage, type LLMMetadata, type LLMProvider, LLMProviderSchema, type LLMResponse, type LiquidationCallback, type LocalPosition, MARKET_CATEGORIES, MarketBrowser, type MarketCategory, type MarketData, MarketDataService, type MessageLevel, type MessageType, MistralAdapter, OllamaAdapter, type OnboardingStatus, OpenAIAdapter, OrderManager, type OrderResult, type PerpAction, type PerpConfig$1 as PerpConfig, PerpConfigSchema, type PerpFill, type PerpMarketData, PerpOnboarding, type PerpPosition, type PerpStrategyFunction, PerpTradeRecorder, type PerpTradeSignal, type PerpConfig as PerpTradingConfig, PolymarketClient, PositionManager, type PositionSummary, PositionTracker, type PredictionAccountSummary, type PredictionAction, type PredictionConfig$1 as PredictionConfig, PredictionConfigSchema, type PredictionFill, PredictionFunding, type PredictionFundingConfig, type PredictionMarket, PredictionOrderManager, type PredictionPosition, PredictionPositionManager, type PredictionStrategyFunction, PredictionTradeRecorder, type PredictionTradeSignal, type PredictionConfig as PredictionTradingConfig, type RecordPerpTradeParams, type RecordPredictionTradeParams, RelayClient, type RelayCommand, type RelayConfig$1 as RelayConfig, RelayConfigSchema, RiskManager, type RiskState, type RiskUniverse, RiskUniverseSchema, type RuntimeConfig, STRATEGY_TEMPLATES, type StrategyContext, type StrategyFunction, type StrategyStore, type StrategyTemplate, type StuckPosition, TogetherAdapter, type TrackedPosition, TradeExecutor, type TradeRecord, type TradeSignal, type TradingConfig, TradingConfigSchema, type VaultConfig, VaultConfigSchema, VaultManager, type VaultManagerConfig, type VaultPolicy, VaultPolicySchema, type VaultStatus, calculatePredictionFee, createLLMAdapter, createSampleConfig, decodePredictionInstrument, decryptEnvFile, encodePredictionInstrument, encryptEnvFile, fillHashToBytes32, fillOidToBytes32, getAllStrategyTemplates, getNextNonce, getStrategyTemplate, loadConfig, loadSecureEnv, loadStrategy, orderIdToBytes32, tradeIdToBytes32, validateConfig, validateStrategy };
|
package/dist/index.js
CHANGED
|
@@ -7593,10 +7593,6 @@ var AgentRuntime = class {
|
|
|
7593
7593
|
this.config.allowedTokens = void 0;
|
|
7594
7594
|
console.log("Frontier risk universe: all tokens allowed (no restrictions)");
|
|
7595
7595
|
console.log("Frontier risk universe: vault creation is disabled");
|
|
7596
|
-
const trackedCount = this.positionTracker.getPositions().length;
|
|
7597
|
-
if (trackedCount > 0) {
|
|
7598
|
-
console.log(`Auto-tracking ${trackedCount} token(s) from position history`);
|
|
7599
|
-
}
|
|
7600
7596
|
return;
|
|
7601
7597
|
}
|
|
7602
7598
|
const configTokens = this.config.allowedTokens || this.getDefaultTokens();
|
|
@@ -7916,6 +7912,9 @@ var AgentRuntime = class {
|
|
|
7916
7912
|
}
|
|
7917
7913
|
case "create_vault": {
|
|
7918
7914
|
const result = await this.createVault();
|
|
7915
|
+
if (!result.success) {
|
|
7916
|
+
console.warn(`[vault] create_vault failed: ${result.error}`);
|
|
7917
|
+
}
|
|
7919
7918
|
this.relay?.sendCommandResult(
|
|
7920
7919
|
cmd.id,
|
|
7921
7920
|
result.success,
|
|
@@ -9443,7 +9442,7 @@ function loadSecureEnv(basePath, passphrase) {
|
|
|
9443
9442
|
}
|
|
9444
9443
|
|
|
9445
9444
|
// src/index.ts
|
|
9446
|
-
var AGENT_VERSION = "0.1.
|
|
9445
|
+
var AGENT_VERSION = "0.1.44";
|
|
9447
9446
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9448
9447
|
0 && (module.exports = {
|
|
9449
9448
|
AGENT_VERSION,
|
package/dist/index.mjs
CHANGED