@exagent/agent 0.1.25 → 0.1.26
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-AWBQDPZ6.mjs +5319 -0
- package/dist/chunk-X5L5HDHF.mjs +5319 -0
- package/dist/cli.js +9 -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 +9 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3704,7 +3704,7 @@ function loadSecureEnv(basePath, passphrase) {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
|
|
3706
3706
|
// src/index.ts
|
|
3707
|
-
var AGENT_VERSION = "0.1.
|
|
3707
|
+
var AGENT_VERSION = "0.1.26";
|
|
3708
3708
|
|
|
3709
3709
|
// src/relay.ts
|
|
3710
3710
|
var RelayClient = class {
|
|
@@ -4296,6 +4296,13 @@ var AgentRuntime = class {
|
|
|
4296
4296
|
try {
|
|
4297
4297
|
this.riskUniverse = await this.client.registry.getRiskUniverse(agentId);
|
|
4298
4298
|
console.log(`Risk universe: ${RISK_UNIVERSE_NAMES[this.riskUniverse] || this.riskUniverse}`);
|
|
4299
|
+
if (this.riskUniverse === 4) {
|
|
4300
|
+
this.allowedTokens.clear();
|
|
4301
|
+
this.config.allowedTokens = void 0;
|
|
4302
|
+
console.log("Frontier risk universe: all tokens allowed (no restrictions)");
|
|
4303
|
+
console.log("Frontier risk universe: vault creation is disabled");
|
|
4304
|
+
return;
|
|
4305
|
+
}
|
|
4299
4306
|
const configTokens = this.config.allowedTokens || this.getDefaultTokens();
|
|
4300
4307
|
const verified = [];
|
|
4301
4308
|
for (const token of configTokens) {
|
|
@@ -4318,10 +4325,7 @@ var AgentRuntime = class {
|
|
|
4318
4325
|
}
|
|
4319
4326
|
}
|
|
4320
4327
|
this.config.allowedTokens = verified;
|
|
4321
|
-
console.log(`Allowed tokens loaded: ${verified.length}
|
|
4322
|
-
if (this.riskUniverse === 4) {
|
|
4323
|
-
console.warn("Frontier risk universe: vault creation is disabled");
|
|
4324
|
-
}
|
|
4328
|
+
console.log(`Allowed tokens loaded: ${verified.length} verified`);
|
|
4325
4329
|
} catch (error) {
|
|
4326
4330
|
console.warn(
|
|
4327
4331
|
"Could not load trading restrictions from registry (using defaults):",
|
package/dist/cli.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -2107,6 +2107,6 @@ declare function decryptEnvFile(encPath: string, passphrase: string): Record<str
|
|
|
2107
2107
|
declare function loadSecureEnv(basePath: string, passphrase?: string): boolean;
|
|
2108
2108
|
|
|
2109
2109
|
/** @exagent/agent package version — update alongside package.json */
|
|
2110
|
-
declare const AGENT_VERSION = "0.1.
|
|
2110
|
+
declare const AGENT_VERSION = "0.1.26";
|
|
2111
2111
|
|
|
2112
2112
|
export { AGENT_VERSION, type AccountSummary, type AgentConfig, AgentConfigSchema, type AgentMode, AgentRuntime, type AgentStatusPayload, AnthropicAdapter, BaseLLMAdapter, type CommandType, DeepSeekAdapter, FileStore, type FillCallback, type FundingCallback, type FundingPayment, GoogleAdapter, GroqAdapter, HYPERLIQUID_DOMAIN, HyperliquidClient, HyperliquidSigner, HyperliquidWebSocket, type LLMAdapter, type LLMConfig, LLMConfigSchema, type LLMMessage, type LLMMetadata, type LLMProvider, LLMProviderSchema, type LLMResponse, type LiquidationCallback, 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, PositionManager, type PositionSummary, PositionTracker, type RecordPerpTradeParams, 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, TogetherAdapter, type TrackedPosition, TradeExecutor, type TradeRecord, type TradeSignal, type TradingConfig, TradingConfigSchema, type VaultConfig, VaultConfigSchema, VaultManager, type VaultManagerConfig, type VaultPolicy, VaultPolicySchema, type VaultStatus, createLLMAdapter, createSampleConfig, decryptEnvFile, encryptEnvFile, fillHashToBytes32, fillOidToBytes32, getAllStrategyTemplates, getNextNonce, getStrategyTemplate, loadConfig, loadSecureEnv, loadStrategy, validateConfig, validateStrategy };
|
package/dist/index.d.ts
CHANGED
|
@@ -2107,6 +2107,6 @@ declare function decryptEnvFile(encPath: string, passphrase: string): Record<str
|
|
|
2107
2107
|
declare function loadSecureEnv(basePath: string, passphrase?: string): boolean;
|
|
2108
2108
|
|
|
2109
2109
|
/** @exagent/agent package version — update alongside package.json */
|
|
2110
|
-
declare const AGENT_VERSION = "0.1.
|
|
2110
|
+
declare const AGENT_VERSION = "0.1.26";
|
|
2111
2111
|
|
|
2112
2112
|
export { AGENT_VERSION, type AccountSummary, type AgentConfig, AgentConfigSchema, type AgentMode, AgentRuntime, type AgentStatusPayload, AnthropicAdapter, BaseLLMAdapter, type CommandType, DeepSeekAdapter, FileStore, type FillCallback, type FundingCallback, type FundingPayment, GoogleAdapter, GroqAdapter, HYPERLIQUID_DOMAIN, HyperliquidClient, HyperliquidSigner, HyperliquidWebSocket, type LLMAdapter, type LLMConfig, LLMConfigSchema, type LLMMessage, type LLMMetadata, type LLMProvider, LLMProviderSchema, type LLMResponse, type LiquidationCallback, 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, PositionManager, type PositionSummary, PositionTracker, type RecordPerpTradeParams, 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, TogetherAdapter, type TrackedPosition, TradeExecutor, type TradeRecord, type TradeSignal, type TradingConfig, TradingConfigSchema, type VaultConfig, VaultConfigSchema, VaultManager, type VaultManagerConfig, type VaultPolicy, VaultPolicySchema, type VaultStatus, createLLMAdapter, createSampleConfig, decryptEnvFile, encryptEnvFile, fillHashToBytes32, fillOidToBytes32, getAllStrategyTemplates, getNextNonce, getStrategyTemplate, loadConfig, loadSecureEnv, loadStrategy, validateConfig, validateStrategy };
|
package/dist/index.js
CHANGED
|
@@ -4198,6 +4198,13 @@ var AgentRuntime = class {
|
|
|
4198
4198
|
try {
|
|
4199
4199
|
this.riskUniverse = await this.client.registry.getRiskUniverse(agentId);
|
|
4200
4200
|
console.log(`Risk universe: ${RISK_UNIVERSE_NAMES[this.riskUniverse] || this.riskUniverse}`);
|
|
4201
|
+
if (this.riskUniverse === 4) {
|
|
4202
|
+
this.allowedTokens.clear();
|
|
4203
|
+
this.config.allowedTokens = void 0;
|
|
4204
|
+
console.log("Frontier risk universe: all tokens allowed (no restrictions)");
|
|
4205
|
+
console.log("Frontier risk universe: vault creation is disabled");
|
|
4206
|
+
return;
|
|
4207
|
+
}
|
|
4201
4208
|
const configTokens = this.config.allowedTokens || this.getDefaultTokens();
|
|
4202
4209
|
const verified = [];
|
|
4203
4210
|
for (const token of configTokens) {
|
|
@@ -4220,10 +4227,7 @@ var AgentRuntime = class {
|
|
|
4220
4227
|
}
|
|
4221
4228
|
}
|
|
4222
4229
|
this.config.allowedTokens = verified;
|
|
4223
|
-
console.log(`Allowed tokens loaded: ${verified.length}
|
|
4224
|
-
if (this.riskUniverse === 4) {
|
|
4225
|
-
console.warn("Frontier risk universe: vault creation is disabled");
|
|
4226
|
-
}
|
|
4230
|
+
console.log(`Allowed tokens loaded: ${verified.length} verified`);
|
|
4227
4231
|
} catch (error) {
|
|
4228
4232
|
console.warn(
|
|
4229
4233
|
"Could not load trading restrictions from registry (using defaults):",
|
|
@@ -5327,7 +5331,7 @@ function loadSecureEnv(basePath, passphrase) {
|
|
|
5327
5331
|
}
|
|
5328
5332
|
|
|
5329
5333
|
// src/index.ts
|
|
5330
|
-
var AGENT_VERSION = "0.1.
|
|
5334
|
+
var AGENT_VERSION = "0.1.26";
|
|
5331
5335
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5332
5336
|
0 && (module.exports = {
|
|
5333
5337
|
AGENT_VERSION,
|
package/dist/index.mjs
CHANGED