@minded-ai/mindedjs 2.0.27-beta.1 → 2.0.27-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minded-ai/mindedjs",
3
- "version": "2.0.27-beta.1",
3
+ "version": "2.0.27-beta.2",
4
4
  "description": "MindedJS is a TypeScript library for building agents.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -123,11 +123,13 @@ export async function getOrStartLocalCDP(opts: StartChromiumOptions): Promise<{
123
123
  const args = [
124
124
  '--new-window',
125
125
  `--user-data-dir=${userDataDir}`,
126
- ...(isDeployed ? [
127
- '--headless',
128
- '--no-sandbox', // Required for running in Docker/containerized environments
129
- '--disable-setuid-sandbox', // Additional sandbox bypass for containers
130
- ] : []),
126
+ ...(isDeployed || process.env.HEADLESS === 'true'
127
+ ? [
128
+ '--headless',
129
+ '--no-sandbox', // Required for running in Docker/containerized environments
130
+ '--disable-setuid-sandbox', // Additional sandbox bypass for containers
131
+ ]
132
+ : []),
131
133
  '--disable-component-extensions-with-background-pages',
132
134
  '--disable-background-networking',
133
135
  '--disable-back-forward-cache',
@@ -223,7 +225,7 @@ export async function getOrStartLocalCDP(opts: StartChromiumOptions): Promise<{
223
225
  'Authentication Failed: wrong_secret', // Google GCM
224
226
  ];
225
227
 
226
- const shouldIgnore = ignoredPatterns.some(pattern => output.includes(pattern));
228
+ const shouldIgnore = ignoredPatterns.some((pattern) => output.includes(pattern));
227
229
  if (shouldIgnore) {
228
230
  return; // Silently ignore these expected container warnings
229
231
  }
@@ -234,11 +236,11 @@ export async function getOrStartLocalCDP(opts: StartChromiumOptions): Promise<{
234
236
  }
235
237
  });
236
238
 
237
- proc.on("error", (error) => {
239
+ proc.on('error', (error) => {
238
240
  logger.error({ message: 'Chromium spawn error', error });
239
241
  });
240
242
 
241
- proc.on("exit", (code, signal) => {
243
+ proc.on('exit', (code, signal) => {
242
244
  const exitInfo: any = {
243
245
  message: 'Chromium exited',
244
246
  code,