@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.
- package/dist/cjs/src/config-types.d.ts +1 -0
- package/dist/cjs/src/node/config.d.ts +1 -1
- package/dist/cjs/src/node/config.js +5 -1
- package/dist/esm/src/config-types.d.ts +1 -0
- package/dist/esm/src/node/config.d.ts +1 -1
- package/dist/esm/src/node/config.js +5 -1
- package/dist/src/config-types.d.ts +1 -0
- package/dist/src/node/config.d.ts +1 -1
- package/dist/src/node/config.js +5 -1
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -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);
|
|
@@ -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
|
package/dist/src/node/config.js
CHANGED
|
@@ -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