@elizaos/cli 1.6.2-alpha.2 → 1.6.2-alpha.21

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 (56) hide show
  1. package/README.md +2 -2
  2. package/dist/commands/deploy/actions/deploy-ecs.d.ts +10 -0
  3. package/dist/commands/deploy/actions/deploy-ecs.d.ts.map +1 -0
  4. package/dist/commands/deploy/actions/deploy.d.ts +9 -0
  5. package/dist/commands/deploy/actions/deploy.d.ts.map +1 -0
  6. package/dist/commands/deploy/index.d.ts +7 -0
  7. package/dist/commands/deploy/index.d.ts.map +1 -0
  8. package/dist/commands/deploy/types.d.ts +156 -0
  9. package/dist/commands/deploy/types.d.ts.map +1 -0
  10. package/dist/commands/deploy/utils/api-client.d.ts +71 -0
  11. package/dist/commands/deploy/utils/api-client.d.ts.map +1 -0
  12. package/dist/commands/deploy/utils/docker-build.d.ts +58 -0
  13. package/dist/commands/deploy/utils/docker-build.d.ts.map +1 -0
  14. package/dist/commands/dev/actions/dev-server.d.ts.map +1 -1
  15. package/dist/commands/scenario/src/plugin-parser.d.ts.map +1 -1
  16. package/dist/commands/scenario/src/runtime-factory.d.ts.map +1 -1
  17. package/dist/commands/start/index.d.ts.map +1 -1
  18. package/dist/commands/tee/eigen-wrapper.d.ts +3 -0
  19. package/dist/commands/tee/eigen-wrapper.d.ts.map +1 -0
  20. package/dist/commands/tee/index.d.ts.map +1 -1
  21. package/dist/commands/test/actions/e2e-tests.d.ts.map +1 -1
  22. package/dist/commands/test/index.d.ts.map +1 -1
  23. package/dist/index.js +18332 -9741
  24. package/dist/index.js.map +193 -47
  25. package/dist/templates/plugin-quick-starter/package.json +2 -2
  26. package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
  27. package/dist/templates/plugin-quick-starter/src/plugin.ts +6 -5
  28. package/dist/templates/plugin-starter/package.json +2 -2
  29. package/dist/templates/plugin-starter/src/plugin.ts +6 -4
  30. package/dist/templates/project-starter/package.json +6 -6
  31. package/dist/templates/project-starter/src/character.ts +3 -0
  32. package/dist/templates/project-starter/src/plugin.ts +6 -4
  33. package/dist/templates/project-starter/tsconfig.json +1 -3
  34. package/dist/templates/project-tee-starter/package.json +4 -4
  35. package/dist/utils/index.d.ts +0 -2
  36. package/dist/utils/index.d.ts.map +1 -1
  37. package/dist/version.d.ts +2 -2
  38. package/dist/version.d.ts.map +1 -1
  39. package/dist/version.js +2 -2
  40. package/package.json +13 -7
  41. package/templates/plugin-quick-starter/package.json +2 -2
  42. package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
  43. package/templates/plugin-quick-starter/src/plugin.ts +6 -5
  44. package/templates/plugin-starter/package.json +2 -2
  45. package/templates/plugin-starter/src/plugin.ts +6 -4
  46. package/templates/project-starter/package.json +6 -6
  47. package/templates/project-starter/src/character.ts +3 -0
  48. package/templates/project-starter/src/plugin.ts +6 -4
  49. package/templates/project-starter/tsconfig.json +1 -3
  50. package/templates/project-tee-starter/package.json +4 -4
  51. package/dist/utils/module-loader.d.ts +0 -71
  52. package/dist/utils/module-loader.d.ts.map +0 -1
  53. package/dist/utils/port-handling.d.ts +0 -15
  54. package/dist/utils/port-handling.d.ts.map +0 -1
  55. package/dist/utils/port-validation.d.ts +0 -6
  56. package/dist/utils/port-validation.d.ts.map +0 -1
package/README.md CHANGED
@@ -152,7 +152,7 @@ Manage an ElizaOS plugin.
152
152
  - `upgrade <path>`: Upgrade a plugin from v0.x to v1.x using AI
153
153
  - Arguments: `<path>` (GitHub URL or local path)
154
154
  - Options: `--api-key <key>`, `--skip-tests`, `--skip-validation`
155
- - See [Plugin Upgrade Documentation](./docs/PLUGIN_UPGRADE.md) for details
155
+ - See [Plugin Upgrade Documentation](./src/utils/upgrade/README.md) for details
156
156
 
157
157
  ### Agent Management
158
158
 
@@ -312,7 +312,7 @@ ElizaOS employs a dual testing strategy:
312
312
 
313
313
  #### `elizaos tee phala <subcommand>`
314
314
 
315
- Manage TEE deployments using the official [Phala Cloud CLI](https://docs.phala.network/phala-cloud/references/tee-cloud-cli). This integration provides seamless access to Phala's decentralized TEE cloud infrastructure directly through the ElizaOS CLI.
315
+ Manage TEE deployments using the official [Phala Cloud CLI](https://docs.phala.com/phala-cloud/references/phala-cloud-cli/phala/docker). This integration provides seamless access to Phala's decentralized TEE cloud infrastructure directly through the ElizaOS CLI.
316
316
 
317
317
  All Phala Cloud CLI commands are passed through transparently, allowing you to use the full functionality of Phala's TEE platform.
318
318
 
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Deploy Action with Docker and AWS ECS
3
+ * Deploys ElizaOS projects using Docker containers to AWS ECS
4
+ */
5
+ import type { DeployOptions, DeploymentResult } from "../types";
6
+ /**
7
+ * Deploy project using Docker and AWS ECS
8
+ */
9
+ export declare function deployWithECS(options: DeployOptions): Promise<DeploymentResult>;
10
+ //# sourceMappingURL=deploy-ecs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-ecs.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/actions/deploy-ecs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAGjB,MAAM,UAAU,CAAC;AAUlB;;GAEG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CA4P3B"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Deploy Action - Main deployment logic
3
+ */
4
+ import type { DeployOptions, DeploymentResult } from "../types";
5
+ /**
6
+ * Main deployment handler - uses Docker and AWS ECS
7
+ */
8
+ export declare function deployProject(options: DeployOptions): Promise<DeploymentResult>;
9
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/actions/deploy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGhE;;GAEG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAY3B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Deploy Command - Deploy ElizaOS projects to AWS ECS
3
+ */
4
+ import { Command } from "commander";
5
+ export declare const deploy: Command;
6
+ export * from "./types";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,MAAM,SAuGf,CAAC;AAEL,cAAc,SAAS,CAAC"}
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Deploy Command Types
3
+ * Types for deploying ElizaOS projects to AWS ECS
4
+ */
5
+ export interface DeployOptions {
6
+ name?: string;
7
+ port?: number;
8
+ desiredCount?: number;
9
+ cpu?: number;
10
+ memory?: number;
11
+ apiKey?: string;
12
+ apiUrl?: string;
13
+ env?: string[];
14
+ skipBuild?: boolean;
15
+ imageUri?: string;
16
+ }
17
+ export interface DeploymentResult {
18
+ success: boolean;
19
+ containerId?: string;
20
+ serviceArn?: string;
21
+ taskDefinitionArn?: string;
22
+ url?: string;
23
+ error?: string;
24
+ }
25
+ export interface ContainerConfig {
26
+ name: string;
27
+ description?: string;
28
+ port: number;
29
+ desired_count: number;
30
+ cpu: number;
31
+ memory: number;
32
+ environment_vars?: Record<string, string>;
33
+ health_check_path: string;
34
+ ecr_image_uri: string;
35
+ ecr_repository_uri?: string;
36
+ image_tag?: string;
37
+ }
38
+ /**
39
+ * Base API response structure
40
+ */
41
+ export interface CloudApiResponseBase {
42
+ success: boolean;
43
+ error?: string;
44
+ message?: string;
45
+ }
46
+ /**
47
+ * API response for successful operations with data
48
+ */
49
+ export interface CloudApiSuccessResponse<T> extends CloudApiResponseBase {
50
+ success: true;
51
+ data: T;
52
+ error?: never;
53
+ }
54
+ /**
55
+ * API response for failed operations
56
+ */
57
+ export interface CloudApiErrorResponse extends CloudApiResponseBase {
58
+ success: false;
59
+ data?: never;
60
+ error: string;
61
+ details?: Record<string, unknown>;
62
+ }
63
+ /**
64
+ * API response with credit information
65
+ */
66
+ export interface CloudApiResponseWithCredits<T> extends CloudApiSuccessResponse<T> {
67
+ creditsDeducted: number;
68
+ creditsRemaining: number;
69
+ }
70
+ /**
71
+ * API response for quota checks
72
+ */
73
+ export interface CloudApiQuotaResponse extends CloudApiSuccessResponse<QuotaInfo> {
74
+ data: QuotaInfo;
75
+ }
76
+ /**
77
+ * Generic API response type (union of success and error)
78
+ */
79
+ export type CloudApiResponse<T = unknown> = CloudApiSuccessResponse<T> | CloudApiErrorResponse | CloudApiResponseWithCredits<T>;
80
+ /**
81
+ * Quota information for container deployments
82
+ */
83
+ export interface QuotaInfo {
84
+ quota: {
85
+ max: number;
86
+ current: number;
87
+ remaining: number;
88
+ };
89
+ credits: {
90
+ balance: number;
91
+ };
92
+ pricing: {
93
+ totalForNewContainer: number;
94
+ imageUpload?: number;
95
+ containerDeployment?: number;
96
+ };
97
+ }
98
+ /**
99
+ * Image upload response data
100
+ */
101
+ export interface ImageUploadData {
102
+ imageId: string;
103
+ digest: string;
104
+ size: number;
105
+ }
106
+ /**
107
+ * Container data from API
108
+ */
109
+ export interface ContainerData {
110
+ id: string;
111
+ name: string;
112
+ status: string;
113
+ ecs_service_arn?: string;
114
+ ecs_task_definition_arn?: string;
115
+ load_balancer_url?: string;
116
+ deployment_url?: string;
117
+ error_message?: string;
118
+ created_at?: string;
119
+ updated_at?: string;
120
+ port?: number;
121
+ desired_count?: number;
122
+ cpu?: number;
123
+ memory?: number;
124
+ environment_vars?: Record<string, string>;
125
+ health_check_path?: string;
126
+ }
127
+ /**
128
+ * Image build and push request
129
+ */
130
+ export interface ImageBuildRequest {
131
+ projectId: string;
132
+ version: string;
133
+ metadata?: Record<string, string>;
134
+ }
135
+ /**
136
+ * Image build and push response from Cloud API
137
+ * Returns ECR repository and authentication information
138
+ */
139
+ export interface ImageBuildResponse {
140
+ ecrRepositoryUri: string;
141
+ ecrImageUri: string;
142
+ ecrImageTag: string;
143
+ authToken: string;
144
+ authTokenExpiresAt: string;
145
+ registryEndpoint: string;
146
+ }
147
+ /**
148
+ * Docker build context
149
+ */
150
+ export interface DockerBuildContext {
151
+ projectPath: string;
152
+ dockerfile?: string;
153
+ buildArgs?: Record<string, string>;
154
+ target?: string;
155
+ }
156
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,M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O,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * ElizaOS Cloud API Client
3
+ * Handles communication with the ElizaOS Cloud backend for deployments
4
+ */
5
+ import type { ContainerConfig, CloudApiResponse, QuotaInfo, ContainerData } from "../types";
6
+ export interface ApiClientOptions {
7
+ apiKey: string;
8
+ apiUrl: string;
9
+ }
10
+ export declare class CloudApiClient {
11
+ private apiKey;
12
+ private apiUrl;
13
+ private readonly DEFAULT_TIMEOUT_MS;
14
+ constructor(options: ApiClientOptions);
15
+ /**
16
+ * Fetch with timeout helper
17
+ */
18
+ private fetchWithTimeout;
19
+ /**
20
+ * Parse API error response with support for multiple formats
21
+ */
22
+ private parseErrorResponse;
23
+ /**
24
+ * Handle API errors consistently
25
+ */
26
+ private handleApiError;
27
+ /**
28
+ * Get container quota and pricing information
29
+ */
30
+ getQuota(): Promise<CloudApiResponse<QuotaInfo>>;
31
+ /**
32
+ * Create a new container deployment
33
+ */
34
+ createContainer(config: ContainerConfig): Promise<CloudApiResponse<ContainerData>>;
35
+ /**
36
+ * Get container status
37
+ */
38
+ getContainer(containerId: string): Promise<CloudApiResponse<ContainerData>>;
39
+ /**
40
+ * List all containers
41
+ */
42
+ listContainers(): Promise<CloudApiResponse<ContainerData[]>>;
43
+ /**
44
+ * Delete a container
45
+ */
46
+ deleteContainer(containerId: string): Promise<CloudApiResponse>;
47
+ /**
48
+ * Poll container status until it reaches a terminal state
49
+ * Matches Cloud API deployment timeout of 10 minutes
50
+ */
51
+ waitForDeployment(containerId: string, options?: {
52
+ maxAttempts?: number;
53
+ intervalMs?: number;
54
+ }): Promise<CloudApiResponse<ContainerData>>;
55
+ /**
56
+ * Request ECR credentials and repository for image build
57
+ */
58
+ requestImageBuild(request: {
59
+ projectId: string;
60
+ version: string;
61
+ metadata?: Record<string, string>;
62
+ }): Promise<CloudApiResponse<any>>;
63
+ }
64
+ /**
65
+ * Get API credentials from environment or config
66
+ */
67
+ export declare function getApiCredentials(): {
68
+ apiKey: string;
69
+ apiUrl: string;
70
+ } | null;
71
+ //# sourceMappingURL=api-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/utils/api-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAEhB,SAAS,EACT,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;gBAEhC,OAAO,EAAE,gBAAgB;IAKrC;;OAEG;YACW,gBAAgB;IAwB9B;;OAEG;YACW,kBAAkB;IAehC;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IA+BtD;;OAEG;IACG,eAAe,CACnB,MAAM,EAAE,eAAe,GACtB,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAoC3C;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAuBjF;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC;IA4BlE;;OAEG;IACG,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA4BrE;;;OAGG;IACG,iBAAiB,CACrB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KAChB,GACL,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAsD3C;;OAEG;IACG,iBAAiB,CACrB,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GACjF,OAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;CA0ClC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAaP"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Docker Build Utilities
3
+ * Handles Docker image building and pushing to ECR
4
+ */
5
+ export interface DockerBuildOptions {
6
+ projectPath: string;
7
+ dockerfile?: string;
8
+ imageTag: string;
9
+ buildArgs?: Record<string, string>;
10
+ target?: string;
11
+ }
12
+ export interface DockerBuildResult {
13
+ success: boolean;
14
+ imageTag: string;
15
+ imageId?: string;
16
+ size?: number;
17
+ checksum?: string;
18
+ error?: string;
19
+ }
20
+ export interface DockerPushOptions {
21
+ imageTag: string;
22
+ ecrRegistryUrl: string;
23
+ ecrAuthToken: string;
24
+ }
25
+ export interface DockerPushResult {
26
+ success: boolean;
27
+ imageDigest?: string;
28
+ repositoryUri?: string;
29
+ error?: string;
30
+ }
31
+ /**
32
+ * Check if Docker is installed and running
33
+ */
34
+ export declare function checkDockerAvailable(): Promise<boolean>;
35
+ /**
36
+ * Ensure Dockerfile exists, create from template if needed
37
+ */
38
+ export declare function ensureDockerfile(projectPath: string): Promise<string>;
39
+ /**
40
+ * Build Docker image
41
+ */
42
+ export declare function buildDockerImage(options: DockerBuildOptions): Promise<DockerBuildResult>;
43
+ /**
44
+ * Push Docker image to ECR
45
+ */
46
+ export declare function pushDockerImage(options: DockerPushOptions): Promise<DockerPushResult>;
47
+ /**
48
+ * Build and push Docker image in one operation
49
+ */
50
+ export declare function buildAndPushImage(buildOptions: DockerBuildOptions, pushOptions: DockerPushOptions): Promise<{
51
+ buildResult: DockerBuildResult;
52
+ pushResult?: DockerPushResult;
53
+ }>;
54
+ /**
55
+ * Clean up local Docker images
56
+ */
57
+ export declare function cleanupLocalImages(imageTags: string[]): Promise<void>;
58
+ //# sourceMappingURL=docker-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docker-build.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/utils/docker-build.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAQ7D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsC3E;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CAwF5B;AA2CD;;GAEG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,gBAAgB,CAAC,CAwC3B;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,iBAAiB,GAC7B,OAAO,CAAC;IACT,WAAW,EAAE,iBAAiB,CAAC;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC,CAeD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAc3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA8TtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAiPrE"}
1
+ {"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAuStC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAsNrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-parser.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/plugin-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,eAAe,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AA0GD;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,gBAAgB,EAAE,eAAe,EAAE,GAAG,SAAS,GAC9C,OAAO,CAAC,sBAAsB,CAAC,CAGjC;AAwBD;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CA+BtE"}
1
+ {"version":3,"file":"plugin-parser.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/plugin-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,eAAe,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAsFD;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,gBAAgB,EAAE,eAAe,EAAE,GAAG,SAAS,GAC9C,OAAO,CAAC,sBAAsB,CAAC,CAGjC;AAwBD;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,CA+BtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-factory.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/runtime-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAiB,MAAM,iBAAiB,CAAC;AA+D7D;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,cAAc,GAAE,WAAW,GAAG,IAAW,EACzC,WAAW,GAAE,MAAa,GACzB,OAAO,CAAC;IACT,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC,CA4ED;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,WAAW,EACnB,SAAS,GAAE,MAAyB,EACpC,WAAW,GAAE,MAAM,EAIlB,GACA,OAAO,CAAC;IACT,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,IAAI,CAAC;CACf,CAAC,CAqCD;AAED;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,cAAc,GAAE,WAAW,GAAG,IAAW,EACzC,WAAW,GAAE,MAAa,EAC1B,WAAW,GAAE,MAAM,EAIlB,EACD,SAAS,GAAE,MAAyB,GACnC,OAAO,CAAC;IACT,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC,CAQD;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyB7F;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,MAAc,EACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,EAC1B,iBAAiB,CAAC,EAAE,IAAI,GACvB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC,CAgQ7C"}
1
+ {"version":3,"file":"runtime-factory.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/src/runtime-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAE,aAAa,EAAgB,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA4D9C;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,cAAc,GAAE,WAAW,GAAG,IAAW,EACzC,WAAW,GAAE,M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WAAW,CAAC;AAOpC,eAAO,MAAM,KAAK,SA+Nd,CAAC;AAGL,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAA8B,MAAM,WAAW,CAAC;AAOhE,eAAO,MAAM,KAAK,SA8Jd,CAAC;AAGL,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const eigenCliCommand: Command;
3
+ //# sourceMappingURL=eigen-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eigen-wrapper.d.ts","sourceRoot":"","sources":["../../../src/commands/tee/eigen-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsCpC,eAAO,MAAM,eAAe,SA2MtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/tee/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,UAAU,SAIO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/tee/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,UAAU,SAKO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"e2e-tests.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/actions/e2e-tests.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMrE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtD;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,aAAa,GACzB,OAAO,CAAC,UAAU,CAAC,CAkWrB"}
1
+ {"version":3,"file":"e2e-tests.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/actions/e2e-tests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAOrE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtD;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,aAAa,GACzB,OAAO,CAAC,UAAU,CAAC,CAsVrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/test/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAQ5C,eAAO,MAAM,IAAI,SAgEb,CAAC;AAGL,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,GAAG,EAAE,OAAO,WAEnD;AAGD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/test/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAsC,MAAM,WAAW,CAAC;AAQxE,eAAO,MAAM,IAAI,SAsEb,CAAC;AAGL,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,GAAG,EAAE,OAAO,WAEnD;AAGD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}