@agenteract/core
Advanced tools
@@ -28,3 +28,4 @@ export interface DevServerConfig { | ||
| port?: number; | ||
| waitLogTimeout?: number; | ||
| projects: ProjectConfig[]; | ||
| } |
@@ -55,3 +55,3 @@ import { AgenteractConfig, DevServerConfig, ProjectConfig } from '../config-types.js'; | ||
| export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>; | ||
| /** | ||
@@ -58,0 +58,0 @@ * Normalize project config: migrate old format to new format |
@@ -188,3 +188,3 @@ "use strict"; | ||
| } | ||
| async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) { | ||
| async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) { | ||
| const configPath = path_1.default.join(rootDir, 'agenteract.config.js'); | ||
@@ -204,2 +204,6 @@ let config; | ||
| } | ||
| // Set top-level waitLogTimeout if provided | ||
| if (waitLogTimeout !== undefined) { | ||
| config.waitLogTimeout = waitLogTimeout; | ||
| } | ||
| config.projects = config.projects || []; | ||
@@ -206,0 +210,0 @@ let nameExists = config.projects.find((p) => p.name === name); |
@@ -28,3 +28,4 @@ export interface DevServerConfig { | ||
| port?: number; | ||
| waitLogTimeout?: number; | ||
| projects: ProjectConfig[]; | ||
| } |
@@ -55,3 +55,3 @@ import { AgenteractConfig, DevServerConfig, ProjectConfig } from '../config-types.js'; | ||
| export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>; | ||
| /** | ||
@@ -58,0 +58,0 @@ * Normalize project config: migrate old format to new format |
@@ -167,3 +167,3 @@ import fs from 'fs/promises'; | ||
| } | ||
| export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) { | ||
| export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) { | ||
| const configPath = path.join(rootDir, 'agenteract.config.js'); | ||
@@ -183,2 +183,6 @@ let config; | ||
| } | ||
| // Set top-level waitLogTimeout if provided | ||
| if (waitLogTimeout !== undefined) { | ||
| config.waitLogTimeout = waitLogTimeout; | ||
| } | ||
| config.projects = config.projects || []; | ||
@@ -185,0 +189,0 @@ let nameExists = config.projects.find((p) => p.name === name); |
@@ -28,3 +28,4 @@ export interface DevServerConfig { | ||
| port?: number; | ||
| waitLogTimeout?: number; | ||
| projects: ProjectConfig[]; | ||
| } |
@@ -55,3 +55,3 @@ import { AgenteractConfig, DevServerConfig, ProjectConfig } from '../config-types.js'; | ||
| export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>; | ||
| export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>; | ||
| /** | ||
@@ -58,0 +58,0 @@ * Normalize project config: migrate old format to new format |
@@ -167,3 +167,3 @@ import fs from 'fs/promises'; | ||
| } | ||
| export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) { | ||
| export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) { | ||
| const configPath = path.join(rootDir, 'agenteract.config.js'); | ||
@@ -183,2 +183,6 @@ let config; | ||
| } | ||
| // Set top-level waitLogTimeout if provided | ||
| if (waitLogTimeout !== undefined) { | ||
| config.waitLogTimeout = waitLogTimeout; | ||
| } | ||
| config.projects = config.projects || []; | ||
@@ -185,0 +189,0 @@ let nameExists = config.projects.find((p) => p.name === name); |
+1
-1
| { | ||
| "name": "@agenteract/core", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Core message schema, bridge protocol, and shared utilities for Agenteract", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/src/index.js", |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
65056
0.99%1443
1.05%