@elizaos/cli 1.6.5 → 1.7.0-beta.0

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 (130) hide show
  1. package/dist/commands/agent/actions/lifecycle.d.ts.map +1 -1
  2. package/dist/commands/create/actions/creators.d.ts.map +1 -1
  3. package/dist/commands/create/utils/validation.d.ts +1 -1
  4. package/dist/commands/create/utils/validation.d.ts.map +1 -1
  5. package/dist/commands/deploy/types.d.ts +1 -1
  6. package/dist/commands/deploy/types.d.ts.map +1 -1
  7. package/dist/commands/dev/actions/dev-server.d.ts.map +1 -1
  8. package/dist/commands/publish/types.d.ts +1 -1
  9. package/dist/commands/publish/types.d.ts.map +1 -1
  10. package/dist/commands/report/generate.d.ts.map +1 -1
  11. package/dist/commands/report/src/analysis-engine.d.ts.map +1 -1
  12. package/dist/commands/scenario/index.d.ts.map +1 -1
  13. package/dist/commands/scenario/src/ConversationEvaluators.d.ts +4 -16
  14. package/dist/commands/scenario/src/ConversationEvaluators.d.ts.map +1 -1
  15. package/dist/commands/scenario/src/ConversationManager.d.ts +2 -2
  16. package/dist/commands/scenario/src/ConversationManager.d.ts.map +1 -1
  17. package/dist/commands/scenario/src/EnhancedEvaluationEngine.d.ts +3 -3
  18. package/dist/commands/scenario/src/EnhancedEvaluationEngine.d.ts.map +1 -1
  19. package/dist/commands/scenario/src/EvaluationEngine.d.ts +4 -4
  20. package/dist/commands/scenario/src/EvaluationEngine.d.ts.map +1 -1
  21. package/dist/commands/scenario/src/LocalEnvironmentProvider.d.ts +2 -2
  22. package/dist/commands/scenario/src/LocalEnvironmentProvider.d.ts.map +1 -1
  23. package/dist/commands/scenario/src/MockEngine.d.ts +2 -2
  24. package/dist/commands/scenario/src/MockEngine.d.ts.map +1 -1
  25. package/dist/commands/scenario/src/TrajectoryReconstructor.d.ts +4 -4
  26. package/dist/commands/scenario/src/TrajectoryReconstructor.d.ts.map +1 -1
  27. package/dist/commands/scenario/src/UserSimulator.d.ts +2 -2
  28. package/dist/commands/scenario/src/UserSimulator.d.ts.map +1 -1
  29. package/dist/commands/scenario/src/conversation-types.d.ts +8 -2
  30. package/dist/commands/scenario/src/conversation-types.d.ts.map +1 -1
  31. package/dist/commands/scenario/src/data-aggregator.d.ts +2 -2
  32. package/dist/commands/scenario/src/data-aggregator.d.ts.map +1 -1
  33. package/dist/commands/scenario/src/deep-clone.d.ts +2 -2
  34. package/dist/commands/scenario/src/deep-clone.d.ts.map +1 -1
  35. package/dist/commands/scenario/src/matrix-orchestrator.d.ts.map +1 -1
  36. package/dist/commands/scenario/src/matrix-runner.d.ts +2 -1
  37. package/dist/commands/scenario/src/matrix-runner.d.ts.map +1 -1
  38. package/dist/commands/scenario/src/matrix-schema.d.ts +3 -3
  39. package/dist/commands/scenario/src/matrix-schema.d.ts.map +1 -1
  40. package/dist/commands/scenario/src/matrix-types.d.ts +7 -3
  41. package/dist/commands/scenario/src/matrix-types.d.ts.map +1 -1
  42. package/dist/commands/scenario/src/parameter-override.d.ts +15 -15
  43. package/dist/commands/scenario/src/parameter-override.d.ts.map +1 -1
  44. package/dist/commands/scenario/src/plugin-parser.d.ts +1 -1
  45. package/dist/commands/scenario/src/plugin-parser.d.ts.map +1 -1
  46. package/dist/commands/scenario/src/progress-tracker.d.ts +4 -4
  47. package/dist/commands/scenario/src/progress-tracker.d.ts.map +1 -1
  48. package/dist/commands/scenario/src/resource-monitor.d.ts.map +1 -1
  49. package/dist/commands/scenario/src/run-isolation.d.ts +6 -2
  50. package/dist/commands/scenario/src/run-isolation.d.ts.map +1 -1
  51. package/dist/commands/scenario/src/runtime-factory.d.ts +1 -1
  52. package/dist/commands/scenario/src/runtime-factory.d.ts.map +1 -1
  53. package/dist/commands/scenario/src/schema.d.ts +6 -7
  54. package/dist/commands/scenario/src/schema.d.ts.map +1 -1
  55. package/dist/commands/shared/types.d.ts +2 -2
  56. package/dist/commands/shared/types.d.ts.map +1 -1
  57. package/dist/commands/tee/phala-wrapper.d.ts.map +1 -1
  58. package/dist/commands/test/actions/e2e-tests.d.ts.map +1 -1
  59. package/dist/index.js +713 -1052
  60. package/dist/index.js.map +53 -54
  61. package/dist/project.d.ts.map +1 -1
  62. package/dist/services/env-file.service.d.ts.map +1 -1
  63. package/dist/templates/plugin-quick-starter/package.json +2 -2
  64. package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +2 -1
  65. package/dist/templates/plugin-quick-starter/src/__tests__/test-utils.ts +1 -0
  66. package/dist/templates/plugin-quick-starter/src/plugin.ts +8 -10
  67. package/dist/templates/plugin-starter/package.json +2 -2
  68. package/dist/templates/plugin-starter/src/__tests__/integration.test.ts +3 -3
  69. package/dist/templates/plugin-starter/src/__tests__/test-utils.ts +1 -0
  70. package/dist/templates/plugin-starter/src/frontend/index.tsx +4 -1
  71. package/dist/templates/plugin-starter/src/plugin.ts +4 -2
  72. package/dist/templates/project-starter/package.json +6 -6
  73. package/dist/templates/project-starter/src/__tests__/error-handling.test.ts +7 -6
  74. package/dist/templates/project-starter/src/__tests__/integration.test.ts +1 -1
  75. package/dist/templates/project-starter/src/__tests__/provider.test.ts +2 -2
  76. package/dist/templates/project-starter/src/__tests__/test-utils.ts +1 -1
  77. package/dist/templates/project-starter/src/__tests__/utils/core-test-utils.ts +1 -0
  78. package/dist/templates/project-starter/src/plugin.ts +3 -1
  79. package/dist/templates/project-tee-starter/package.json +4 -4
  80. package/dist/templates/project-tee-starter/src/__tests__/integration.test.ts +1 -1
  81. package/dist/templates/project-tee-starter/src/__tests__/provider.test.ts +1 -1
  82. package/dist/templates/project-tee-starter/src/__tests__/test-utils.ts +1 -1
  83. package/dist/templates/project-tee-starter/src/__tests__/utils/core-test-utils.ts +1 -0
  84. package/dist/templates/project-tee-starter/src/frontend/panels.tsx +4 -3
  85. package/dist/utils/build-project.d.ts.map +1 -1
  86. package/dist/utils/config-manager.d.ts +1 -1
  87. package/dist/utils/config-manager.d.ts.map +1 -1
  88. package/dist/utils/copy-template.d.ts.map +1 -1
  89. package/dist/utils/get-config.d.ts.map +1 -1
  90. package/dist/utils/github.d.ts +5 -1
  91. package/dist/utils/github.d.ts.map +1 -1
  92. package/dist/utils/load-plugin.d.ts +1 -1
  93. package/dist/utils/load-plugin.d.ts.map +1 -1
  94. package/dist/utils/package-manager.d.ts.map +1 -1
  95. package/dist/utils/plugin-context.d.ts +4 -1
  96. package/dist/utils/plugin-context.d.ts.map +1 -1
  97. package/dist/utils/registry/index.d.ts.map +1 -1
  98. package/dist/utils/run-bun.d.ts.map +1 -1
  99. package/dist/utils/spinner-utils.d.ts +2 -2
  100. package/dist/utils/spinner-utils.d.ts.map +1 -1
  101. package/dist/utils/test-runner.d.ts.map +1 -1
  102. package/dist/utils/testing/tsc-validator.d.ts.map +1 -1
  103. package/dist/version.d.ts +2 -2
  104. package/dist/version.d.ts.map +1 -1
  105. package/dist/version.js +2 -2
  106. package/package.json +8 -8
  107. package/templates/plugin-quick-starter/package.json +2 -2
  108. package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +2 -1
  109. package/templates/plugin-quick-starter/src/__tests__/test-utils.ts +1 -0
  110. package/templates/plugin-quick-starter/src/plugin.ts +8 -10
  111. package/templates/plugin-starter/package.json +2 -2
  112. package/templates/plugin-starter/src/__tests__/integration.test.ts +3 -3
  113. package/templates/plugin-starter/src/__tests__/test-utils.ts +1 -0
  114. package/templates/plugin-starter/src/frontend/index.tsx +4 -1
  115. package/templates/plugin-starter/src/plugin.ts +4 -2
  116. package/templates/project-starter/package.json +6 -6
  117. package/templates/project-starter/src/__tests__/error-handling.test.ts +7 -6
  118. package/templates/project-starter/src/__tests__/integration.test.ts +1 -1
  119. package/templates/project-starter/src/__tests__/provider.test.ts +2 -2
  120. package/templates/project-starter/src/__tests__/test-utils.ts +1 -1
  121. package/templates/project-starter/src/__tests__/utils/core-test-utils.ts +1 -0
  122. package/templates/project-starter/src/plugin.ts +3 -1
  123. package/templates/project-tee-starter/package.json +4 -4
  124. package/templates/project-tee-starter/src/__tests__/integration.test.ts +1 -1
  125. package/templates/project-tee-starter/src/__tests__/provider.test.ts +1 -1
  126. package/templates/project-tee-starter/src/__tests__/test-utils.ts +1 -1
  127. package/templates/project-tee-starter/src/__tests__/utils/core-test-utils.ts +1 -0
  128. package/templates/project-tee-starter/src/frontend/panels.tsx +4 -3
  129. package/dist/commands/scenario/src/E2BEnvironmentProvider.d.ts +0 -18
  130. package/dist/commands/scenario/src/E2BEnvironmentProvider.d.ts.map +0 -1
package/dist/version.js CHANGED
@@ -4,12 +4,12 @@
4
4
  * This file contains build-time constants to avoid runtime package.json resolution
5
5
  */
6
6
 
7
- export const CLI_VERSION = '1.6.5';
7
+ export const CLI_VERSION = '1.7.0-beta.0';
8
8
  export const CLI_NAME = '@elizaos/cli';
9
9
  export const CLI_DESCRIPTION = 'elizaOS CLI - Manage your AI agents and plugins';
10
10
 
11
11
  // Build metadata
12
- export const BUILD_TIME = '2025-12-08T03:27:27.365Z';
12
+ export const BUILD_TIME = '2025-12-20T05:11:06.325Z';
13
13
  export const BUILD_ENV = 'production';
14
14
 
15
15
  // Export as default for convenience
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/cli",
3
- "version": "1.6.5",
3
+ "version": "1.7.0-beta.0",
4
4
  "description": "elizaOS CLI - Manage your AI agents and plugins",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -66,7 +66,7 @@
66
66
  "test:scenarios": "for f in src/commands/scenario/examples/*.scenario.yaml; do echo \"=== $f ===\"; bun dist/index.js scenario run \"$f\" || echo \"FAIL $f\"; echo; done | cat"
67
67
  },
68
68
  "devDependencies": {
69
- "@elizaos/config": "1.6.5",
69
+ "@elizaos/config": "1.7.0-beta.0",
70
70
  "@types/bun": "^1.3.3",
71
71
  "@types/express": "^5.0.2",
72
72
  "@types/fs-extra": "^11.0.1",
@@ -83,16 +83,16 @@
83
83
  "typescript": "^5.9.3",
84
84
  "vite": "^7.2.6"
85
85
  },
86
- "gitHead": "f4141f3649a2e61008b481646a0469567be6ba9a",
86
+ "gitHead": "61d977c5b5e49fbb6784afe3b937fe03f14ec53f",
87
87
  "dependencies": {
88
88
  "@clack/prompts": "^0.11.0",
89
- "@elizaos/api-client": "1.6.5",
90
- "@elizaos/core": "1.6.5",
91
- "@elizaos/plugin-bootstrap": "1.6.5",
89
+ "@elizaos/api-client": "1.7.0-beta.0",
90
+ "@elizaos/core": "1.7.0-beta.0",
91
+ "@elizaos/plugin-bootstrap": "1.7.0-beta.0",
92
92
  "@elizaos/plugin-ollama": "^1.2.4",
93
93
  "@elizaos/plugin-openai": "^1.5.18",
94
- "@elizaos/plugin-sql": "1.6.5",
95
- "@elizaos/server": "1.6.5",
94
+ "@elizaos/plugin-sql": "1.7.0-beta.0",
95
+ "@elizaos/server": "1.7.0-beta.0",
96
96
  "bun": "^1.3.4",
97
97
  "chalk": "^5.4.1",
98
98
  "chokidar": "^5.0.0",
@@ -39,11 +39,11 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@elizaos/core": "1.6.5",
42
+ "@elizaos/core": "1.7.0-beta.0",
43
43
  "zod": "^4.1.13"
44
44
  },
45
45
  "devDependencies": {
46
- "@elizaos/cli": "1.6.5",
46
+ "@elizaos/cli": "1.7.0-beta.0",
47
47
  "dotenv": "^17.2.3",
48
48
  "prettier": "^3.7.4",
49
49
  "typescript": "^5.9.3"
@@ -181,7 +181,8 @@ describe('Hello World Action', () => {
181
181
  runtime = createMockRuntime();
182
182
  helloWorldAction = starterPlugin?.actions?.[0] as Action;
183
183
  // Clear all spies before each test
184
- const mockLogger = logger as unknown as MockLogger;
184
+ // Logger mock for testing - logger has all required methods
185
+ const mockLogger = logger as MockLogger;
185
186
  mockLogger.info.calls = [];
186
187
  mockLogger.error.calls = [];
187
188
  mockLogger.debug.calls = [];
@@ -96,6 +96,7 @@ export function createMockRuntime(overrides: Partial<IAgentRuntime> = {}): IAgen
96
96
  const mockRuntime: IAgentRuntime = {
97
97
  // Properties
98
98
  agentId,
99
+ initPromise: Promise.resolve(),
99
100
  character,
100
101
  providers: [],
101
102
  actions: [],
@@ -9,6 +9,8 @@ import {
9
9
  ModelType,
10
10
  type Provider,
11
11
  type ProviderResult,
12
+ type RouteRequest,
13
+ type RouteResponse,
12
14
  Service,
13
15
  type State,
14
16
  logger,
@@ -198,23 +200,19 @@ export const starterPlugin: Plugin = {
198
200
  }
199
201
  },
200
202
  models: {
201
- [ModelType.TEXT_SMALL]: async (
202
- _runtime,
203
- { prompt, stopSequences = [] }: GenerateTextParams
204
- ) => {
203
+ [ModelType.TEXT_SMALL]: async (_runtime: IAgentRuntime, params: unknown) => {
204
+ const { prompt, stopSequences = [] } = params as GenerateTextParams;
205
205
  return 'Never gonna give you up, never gonna let you down, never gonna run around and desert you...';
206
206
  },
207
- [ModelType.TEXT_LARGE]: async (
208
- _runtime,
209
- {
207
+ [ModelType.TEXT_LARGE]: async (_runtime: IAgentRuntime, params: unknown) => {
208
+ const {
210
209
  prompt,
211
210
  stopSequences = [],
212
211
  maxTokens = 8192,
213
212
  temperature = 0.7,
214
213
  frequencyPenalty = 0.7,
215
214
  presencePenalty = 0.7,
216
- }: GenerateTextParams
217
- ) => {
215
+ } = params as GenerateTextParams;
218
216
  return 'Never gonna make you cry, never gonna say goodbye, never gonna tell a lie and hurt you...';
219
217
  },
220
218
  },
@@ -223,7 +221,7 @@ export const starterPlugin: Plugin = {
223
221
  name: 'api-status',
224
222
  path: '/api/status',
225
223
  type: 'GET',
226
- handler: async (_req: any, res: any) => {
224
+ handler: async (_req: RouteRequest, res: RouteResponse) => {
227
225
  res.json({
228
226
  status: 'ok',
229
227
  plugin: 'quick-starter',
@@ -39,7 +39,7 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@elizaos/core": "1.6.5",
42
+ "@elizaos/core": "1.7.0-beta.0",
43
43
  "@tanstack/react-query": "^5.80.7",
44
44
  "clsx": "^2.1.1",
45
45
  "tailwind-merge": "^3.3.1",
@@ -48,7 +48,7 @@
48
48
  "zod": "^4.1.13"
49
49
  },
50
50
  "devDependencies": {
51
- "@elizaos/cli": "1.6.5",
51
+ "@elizaos/cli": "1.7.0-beta.0",
52
52
  "@tailwindcss/vite": "^4.1.10",
53
53
  "@vitejs/plugin-react-swc": "^4.1.0",
54
54
  "dotenv": "^17.2.3",
@@ -77,7 +77,7 @@ describe('Integration: HelloWorld Action with StarterService', () => {
77
77
 
78
78
  // Execute the action
79
79
  await helloWorldAction?.handler(
80
- mockRuntime as unknown as IAgentRuntime,
80
+ mockRuntime as Partial<IAgentRuntime> as IAgentRuntime,
81
81
  mockMessage,
82
82
  mockState,
83
83
  {},
@@ -116,7 +116,7 @@ describe('Integration: Plugin initialization and service registration', () => {
116
116
  if (starterPlugin.init) {
117
117
  await starterPlugin.init(
118
118
  { EXAMPLE_PLUGIN_VARIABLE: 'test-value' },
119
- mockRuntime as unknown as IAgentRuntime
119
+ mockRuntime as Partial<IAgentRuntime> as IAgentRuntime
120
120
  );
121
121
 
122
122
  // Directly mock the service registration that happens during initialization
@@ -124,7 +124,7 @@ describe('Integration: Plugin initialization and service registration', () => {
124
124
  if (starterPlugin.services) {
125
125
  const StarterServiceClass = starterPlugin.services[0];
126
126
  const serviceInstance = await StarterServiceClass.start(
127
- mockRuntime as unknown as IAgentRuntime
127
+ mockRuntime as Partial<IAgentRuntime> as IAgentRuntime
128
128
  );
129
129
 
130
130
  // Register the Service class to match the core API
@@ -120,6 +120,7 @@ export function createMockRuntime(overrides: Partial<IAgentRuntime> = {}): IAgen
120
120
  const mockRuntime: IAgentRuntime = {
121
121
  // Properties
122
122
  agentId,
123
+ initPromise: Promise.resolve(),
123
124
  character,
124
125
  providers: [],
125
126
  actions: [],
@@ -77,7 +77,10 @@ function TimeDisplay({ apiBase }: { apiBase: string }) {
77
77
  * Main Example route component
78
78
  */
79
79
  function ExampleRoute() {
80
- const config = (window as any).ELIZA_CONFIG as ElizaConfig | undefined;
80
+ interface WindowWithElizaConfig extends Window {
81
+ ELIZA_CONFIG?: ElizaConfig;
82
+ }
83
+ const config = (window as WindowWithElizaConfig).ELIZA_CONFIG;
81
84
  const agentId = config?.agentId;
82
85
  const apiBase = config?.apiBase || 'http://localhost:3000';
83
86
 
@@ -9,6 +9,8 @@ import type {
9
9
  Plugin,
10
10
  Provider,
11
11
  ProviderResult,
12
+ RouteRequest,
13
+ RouteResponse,
12
14
  State,
13
15
  } from '@elizaos/core';
14
16
  import { ModelType, Service, logger } from '@elizaos/core';
@@ -218,7 +220,7 @@ export const starterPlugin: Plugin = {
218
220
  name: 'hello-world-route',
219
221
  path: '/helloworld',
220
222
  type: 'GET',
221
- handler: async (_req: any, res: any) => {
223
+ handler: async (_req: RouteRequest, res: RouteResponse) => {
222
224
  // send a response
223
225
  res.json({
224
226
  message: 'Hello World!',
@@ -229,7 +231,7 @@ export const starterPlugin: Plugin = {
229
231
  name: 'current-time-route',
230
232
  path: '/api/time',
231
233
  type: 'GET',
232
- handler: async (_req: any, res: any) => {
234
+ handler: async (_req: RouteRequest, res: RouteResponse) => {
233
235
  // Return current time in various formats
234
236
  const now = new Date();
235
237
  res.json({
@@ -27,12 +27,12 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@elizaos/cli": "1.6.5",
31
- "@elizaos/client": "1.6.5",
32
- "@elizaos/core": "1.6.5",
33
- "@elizaos/plugin-bootstrap": "1.6.5",
34
- "@elizaos/plugin-sql": "1.6.5",
35
- "@elizaos/server": "1.6.5",
30
+ "@elizaos/cli": "1.7.0-beta.0",
31
+ "@elizaos/client": "1.7.0-beta.0",
32
+ "@elizaos/core": "1.7.0-beta.0",
33
+ "@elizaos/plugin-bootstrap": "1.7.0-beta.0",
34
+ "@elizaos/plugin-sql": "1.7.0-beta.0",
35
+ "@elizaos/server": "1.7.0-beta.0",
36
36
  "@tanstack/react-query": "^5.67.2",
37
37
  "clsx": "^2.1.1",
38
38
  "react": "^19.1.0",
@@ -26,7 +26,7 @@ describe('Error Handling', () => {
26
26
  // Create a custom mock runtime
27
27
  const mockRuntime = {
28
28
  // This is just a simple object for testing
29
- } as unknown as IAgentRuntime;
29
+ } as Partial<IAgentRuntime> as IAgentRuntime;
30
30
 
31
31
  const mockMessage = {
32
32
  entityId: uuidv4(),
@@ -67,7 +67,7 @@ describe('Error Handling', () => {
67
67
  it('should throw an error when stopping non-existent service', async () => {
68
68
  const mockRuntime = {
69
69
  getService: mock().mockReturnValue(null),
70
- } as unknown as IAgentRuntime;
70
+ } as Partial<IAgentRuntime> as IAgentRuntime;
71
71
 
72
72
  let caughtError = null;
73
73
  try {
@@ -90,7 +90,7 @@ describe('Error Handling', () => {
90
90
 
91
91
  const mockRuntime = {
92
92
  getService: mock().mockReturnValue(mockServiceWithError),
93
- } as unknown as IAgentRuntime;
93
+ } as Partial<IAgentRuntime> as IAgentRuntime;
94
94
 
95
95
  // The error should be propagated
96
96
  let caughtError = null;
@@ -144,9 +144,10 @@ describe('Error Handling', () => {
144
144
 
145
145
  if (provider) {
146
146
  // Create invalid inputs to test error handling
147
- const mockRuntime = null as unknown as IAgentRuntime;
148
- const mockMessage = null as unknown as Memory;
149
- const mockState = null as unknown as State;
147
+ // Testing error handling with null values - intentionally invalid inputs
148
+ const mockRuntime = null as IAgentRuntime;
149
+ const mockMessage = null as Memory;
150
+ const mockState = null as State;
150
151
 
151
152
  // The provider should handle null inputs gracefully
152
153
  try {
@@ -104,7 +104,7 @@ describe('Integration: Runtime Initialization', () => {
104
104
  getProviderResults: mock().mockResolvedValue([]),
105
105
  evaluateProviders: mock().mockResolvedValue([]),
106
106
  evaluate: mock().mockResolvedValue([]),
107
- } as unknown as IAgentRuntime;
107
+ } as Partial<IAgentRuntime> as IAgentRuntime;
108
108
 
109
109
  // Ensure we're testing safely - to avoid parallel test race conditions
110
110
  const originalInit = plugin.init;
@@ -103,7 +103,7 @@ function createRealRuntime(): IAgentRuntime {
103
103
  getService: (serviceType: string) => {
104
104
  return null;
105
105
  },
106
- } as unknown as IAgentRuntime;
106
+ } as Partial<IAgentRuntime> as IAgentRuntime;
107
107
  }
108
108
 
109
109
  // Create realistic memory object
@@ -227,7 +227,7 @@ describe('Provider Tests', () => {
227
227
  const invalidMemory = {
228
228
  // Missing properties that would be required
229
229
  id: uuidv4(),
230
- } as unknown as Memory;
230
+ } as Partial<Memory> as Memory;
231
231
 
232
232
  const state = {
233
233
  values: {},
@@ -35,7 +35,7 @@ export function createMockRuntime(overrides: Partial<IAgentRuntime> = {}): IAgen
35
35
  evaluateProviders: mock().mockResolvedValue([]),
36
36
  evaluate: mock().mockResolvedValue([]),
37
37
  ...overrides,
38
- } as unknown as IAgentRuntime;
38
+ } as Partial<IAgentRuntime> as IAgentRuntime;
39
39
 
40
40
  return mockRuntime;
41
41
  }
@@ -87,6 +87,7 @@ export const runCoreActionTests = (actions: Action[]) => {
87
87
  */
88
88
  export const createMockRuntime = (): IAgentRuntime => {
89
89
  return {
90
+ initPromise: Promise.resolve(),
90
91
  character: {
91
92
  name: 'Test Character',
92
93
  system: 'You are a helpful assistant for testing.',
@@ -10,6 +10,8 @@ import {
10
10
  ModelType,
11
11
  type Provider,
12
12
  type ProviderResult,
13
+ type RouteRequest,
14
+ type RouteResponse,
13
15
  Service,
14
16
  type State,
15
17
  logger,
@@ -237,7 +239,7 @@ const plugin: Plugin = {
237
239
  name: 'helloworld',
238
240
  path: '/helloworld',
239
241
  type: 'GET',
240
- handler: async (_req: any, res: any) => {
242
+ handler: async (_req: RouteRequest, res: RouteResponse) => {
241
243
  // send a response
242
244
  res.json({
243
245
  message: 'Hello World!',
@@ -32,11 +32,11 @@
32
32
  "GUIDE.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@elizaos/cli": "1.6.5",
36
- "@elizaos/core": "1.6.5",
37
- "@elizaos/plugin-bootstrap": "1.6.5",
35
+ "@elizaos/cli": "1.7.0-beta.0",
36
+ "@elizaos/core": "1.7.0-beta.0",
37
+ "@elizaos/plugin-bootstrap": "1.7.0-beta.0",
38
38
  "@elizaos/plugin-redpill": "^1.2.1",
39
- "@elizaos/plugin-sql": "1.6.5",
39
+ "@elizaos/plugin-sql": "1.7.0-beta.0",
40
40
  "@phala/dstack-sdk": "^0.1.11",
41
41
  "@solana/web3.js": "^1.98.2",
42
42
  "@tanstack/react-query": "^5.67.2",
@@ -100,7 +100,7 @@ describe('Integration: Runtime Initialization', () => {
100
100
  getProviderResults: () => Promise.resolve([]),
101
101
  evaluateProviders: () => Promise.resolve([]),
102
102
  evaluate: () => Promise.resolve([]),
103
- } as unknown as IAgentRuntime;
103
+ } as Partial<IAgentRuntime> as IAgentRuntime;
104
104
 
105
105
  // Ensure we're testing safely - to avoid parallel test race conditions
106
106
  const originalInit = plugin.init;
@@ -101,7 +101,7 @@ function createRealRuntime(): IAgentRuntime {
101
101
  logger.info(`GetService: ${serviceType}`);
102
102
  return null;
103
103
  },
104
- } as unknown as IAgentRuntime;
104
+ } as Partial<IAgentRuntime> as IAgentRuntime;
105
105
  }
106
106
 
107
107
  // Create realistic memory object
@@ -35,7 +35,7 @@ export function createMockRuntime(overrides: Partial<IAgentRuntime> = {}): IAgen
35
35
  evaluateProviders: mock().mockResolvedValue([]),
36
36
  evaluate: mock().mockResolvedValue([]),
37
37
  ...overrides,
38
- } as unknown as IAgentRuntime;
38
+ } as Partial<IAgentRuntime> as IAgentRuntime;
39
39
 
40
40
  return mockRuntime;
41
41
  }
@@ -87,6 +87,7 @@ export const runCoreActionTests = (actions: Action[]) => {
87
87
  */
88
88
  export const createMockRuntime = (): IAgentRuntime => {
89
89
  return {
90
+ initPromise: Promise.resolve(),
90
91
  character: {
91
92
  name: 'Test Character',
92
93
  system: 'You are a helpful assistant for testing.',
@@ -1,4 +1,4 @@
1
- import type { Route } from '@elizaos/core';
1
+ import type { Route, RouteRequest, RouteResponse, IAgentRuntime } from '@elizaos/core';
2
2
 
3
3
  /**
4
4
  * Export panel routes for TEE status visualization
@@ -9,9 +9,10 @@ export const panels: Route[] = [
9
9
  path: '/public/tee-status',
10
10
  name: 'TEE Status',
11
11
  public: true,
12
- handler: async (req: any, res: any, runtime: any) => {
12
+ handler: async (_req: RouteRequest, res: RouteResponse, _runtime: IAgentRuntime) => {
13
13
  // Serve the TEE status panel
14
- res.sendFile('index.html', { root: 'dist/frontend' });
14
+ // Note: sendFile is Express-specific, cast as needed
15
+ (res as any).sendFile('index.html', { root: 'dist/frontend' });
15
16
  },
16
17
  },
17
18
  ];
@@ -1,18 +0,0 @@
1
- import { EnvironmentProvider, ExecutionResult } from './providers';
2
- import { Scenario } from './schema';
3
- import { AgentRuntime, UUID } from '@elizaos/core';
4
- import { AgentServer } from '@elizaos/server';
5
- export declare class E2BEnvironmentProvider implements EnvironmentProvider {
6
- private runtime;
7
- private sandboxId;
8
- private server;
9
- private agentId;
10
- private serverPort;
11
- private trajectoryReconstructor;
12
- constructor(runtime: AgentRuntime, server: AgentServer, agentId: UUID, serverPort: number);
13
- setup(scenario: Scenario): Promise<void>;
14
- private captureFileSystem;
15
- run(scenario: Scenario): Promise<ExecutionResult[]>;
16
- teardown(): Promise<void>;
17
- }
18
- //# sourceMappingURL=E2BEnvironmentProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"E2BEnvironmentProvider.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/E2BEnvironmentProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,qBAAa,sBAAuB,YAAW,mBAAmB;IAChE,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAO;IACtB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,uBAAuB,CAA0B;gBAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM;IAgBnF,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;YA+ChC,iBAAiB;IAqCzB,GAAG,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IA6DnD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAQhC"}