@agenteract/core 0.1.1 → 0.1.2

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.
@@ -25,5 +25,6 @@ export interface AgenteractConfig {
25
25
  logPort?: number;
26
26
  };
27
27
  port?: number;
28
+ waitLogTimeout?: number;
28
29
  projects: ProjectConfig[];
29
30
  }
@@ -52,7 +52,7 @@ export declare function getDevServerUrlByType(config: AgenteractConfig, type: 'e
52
52
  * Maps old 'type' field to new devServer configuration
53
53
  */
54
54
  export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>;
55
- export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>;
55
+ export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>;
56
56
  /**
57
57
  * Normalize project config: migrate old format to new format
58
58
  * Logs deprecation warnings when using old 'type' field
@@ -185,7 +185,7 @@ function getDefaultPortForType(type) {
185
185
  };
186
186
  return defaults[type] || 8790;
187
187
  }
188
- async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) {
188
+ async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) {
189
189
  const configPath = path_1.default.join(rootDir, 'agenteract.config.js');
190
190
  let config;
191
191
  try {
@@ -200,6 +200,10 @@ async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme
200
200
  throw error;
201
201
  }
202
202
  }
203
+ // Set top-level waitLogTimeout if provided
204
+ if (waitLogTimeout !== undefined) {
205
+ config.waitLogTimeout = waitLogTimeout;
206
+ }
203
207
  config.projects = config.projects || [];
204
208
  let nameExists = config.projects.find((p) => p.name === name);
205
209
  let pathExists = config.projects.find((p) => p.path === projectPath);
@@ -25,5 +25,6 @@ export interface AgenteractConfig {
25
25
  logPort?: number;
26
26
  };
27
27
  port?: number;
28
+ waitLogTimeout?: number;
28
29
  projects: ProjectConfig[];
29
30
  }
@@ -52,7 +52,7 @@ export declare function getDevServerUrlByType(config: AgenteractConfig, type: 'e
52
52
  * Maps old 'type' field to new devServer configuration
53
53
  */
54
54
  export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>;
55
- export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>;
55
+ export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>;
56
56
  /**
57
57
  * Normalize project config: migrate old format to new format
58
58
  * Logs deprecation warnings when using old 'type' field
@@ -164,7 +164,7 @@ function getDefaultPortForType(type) {
164
164
  };
165
165
  return defaults[type] || 8790;
166
166
  }
167
- export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) {
167
+ export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) {
168
168
  const configPath = path.join(rootDir, 'agenteract.config.js');
169
169
  let config;
170
170
  try {
@@ -179,6 +179,10 @@ export async function addConfig(rootDir, projectPath, name, typeOrCommand, port,
179
179
  throw error;
180
180
  }
181
181
  }
182
+ // Set top-level waitLogTimeout if provided
183
+ if (waitLogTimeout !== undefined) {
184
+ config.waitLogTimeout = waitLogTimeout;
185
+ }
182
186
  config.projects = config.projects || [];
183
187
  let nameExists = config.projects.find((p) => p.name === name);
184
188
  let pathExists = config.projects.find((p) => p.path === projectPath);
@@ -25,5 +25,6 @@ export interface AgenteractConfig {
25
25
  logPort?: number;
26
26
  };
27
27
  port?: number;
28
+ waitLogTimeout?: number;
28
29
  projects: ProjectConfig[];
29
30
  }
@@ -52,7 +52,7 @@ export declare function getDevServerUrlByType(config: AgenteractConfig, type: 'e
52
52
  * Maps old 'type' field to new devServer configuration
53
53
  */
54
54
  export declare const TYPE_PRESETS: Record<string, Omit<DevServerConfig, 'port'>>;
55
- export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string): Promise<void>;
55
+ export declare function addConfig(rootDir: string, projectPath: string, name: string, typeOrCommand: string, port?: number, scheme?: string, waitLogTimeout?: number): Promise<void>;
56
56
  /**
57
57
  * Normalize project config: migrate old format to new format
58
58
  * Logs deprecation warnings when using old 'type' field
@@ -164,7 +164,7 @@ function getDefaultPortForType(type) {
164
164
  };
165
165
  return defaults[type] || 8790;
166
166
  }
167
- export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme) {
167
+ export async function addConfig(rootDir, projectPath, name, typeOrCommand, port, scheme, waitLogTimeout) {
168
168
  const configPath = path.join(rootDir, 'agenteract.config.js');
169
169
  let config;
170
170
  try {
@@ -179,6 +179,10 @@ export async function addConfig(rootDir, projectPath, name, typeOrCommand, port,
179
179
  throw error;
180
180
  }
181
181
  }
182
+ // Set top-level waitLogTimeout if provided
183
+ if (waitLogTimeout !== undefined) {
184
+ config.waitLogTimeout = waitLogTimeout;
185
+ }
182
186
  config.projects = config.projects || [];
183
187
  let nameExists = config.projects.find((p) => p.name === name);
184
188
  let pathExists = config.projects.find((p) => p.path === projectPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenteract/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Core message schema, bridge protocol, and shared utilities for Agenteract",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",