@minded-ai/mindedjs 1.0.0-ec2-beta-173 → 1.0.0-ec2-beta-174

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.
@@ -207,16 +207,14 @@ class LogsCapture:
207
207
  # Extract model outputs if available
208
208
  try:
209
209
  model_outputs = history.model_outputs() if hasattr(history, 'model_outputs') else []
210
- last_model_output = model_outputs[-1] if model_outputs else None
211
- if hasattr(last_model_output, 'current_state'):
212
- self.log_entries.append('💡 Thinking: ' + last_model_output.current_state.thinking)
213
- self.log_entries.append('🧠 Memory: ' + last_model_output.current_state.memory)
214
- self.log_entries.append('🎯 Next goal: ' + last_model_output.current_state.next_goal)
210
+ for model_output in model_outputs:
211
+ if hasattr(model_output, 'current_state'):
212
+ self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
213
+ self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
214
+ self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
215
215
  except Exception as e:
216
216
  logger.debug(f"Could not extract model outputs: {e}")
217
217
 
218
- # Add to accumulated logs
219
-
220
218
  # Upload to S3
221
219
  s3_key = f"{self.s3_prefix}{self.session_id}/{self.tool_call_id}/operator.log"
222
220
 
@@ -38,6 +38,6 @@ export interface InvokeBrowserTaskOptions {
38
38
  toolSchemas?: ToolSchema[];
39
39
  outputSchema?: OutputSchemaField[];
40
40
  screenshotConfig?: ScreenshotConfig;
41
- toolCallId?: string;
41
+ toolCallId: string;
42
42
  }
43
43
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/browserTask/types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,OAAO,WAAW;IAClB,KAAK,aAAa;IAClB,KAAK,UAAU;CAChB;AAGD,MAAM,MAAM,eAAe,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,MAAM,MAAM,i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
1
  {
2
2
  "name": "@minded-ai/mindedjs",
3
- "version": "1.0.0-ec2-beta-173",
3
+ "version": "1.0.0-ec2-beta-174",
4
4
  "description": "MindedJS is a TypeScript library for building agents.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -207,16 +207,14 @@ class LogsCapture:
207
207
  # Extract model outputs if available
208
208
  try:
209
209
  model_outputs = history.model_outputs() if hasattr(history, 'model_outputs') else []
210
- last_model_output = model_outputs[-1] if model_outputs else None
211
- if hasattr(last_model_output, 'current_state'):
212
- self.log_entries.append('💡 Thinking: ' + last_model_output.current_state.thinking)
213
- self.log_entries.append('🧠 Memory: ' + last_model_output.current_state.memory)
214
- self.log_entries.append('🎯 Next goal: ' + last_model_output.current_state.next_goal)
210
+ for model_output in model_outputs:
211
+ if hasattr(model_output, 'current_state'):
212
+ self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
213
+ self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
214
+ self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
215
215
  except Exception as e:
216
216
  logger.debug(f"Could not extract model outputs: {e}")
217
217
 
218
- # Add to accumulated logs
219
-
220
218
  # Upload to S3
221
219
  s3_key = f"{self.s3_prefix}{self.session_id}/{self.tool_call_id}/operator.log"
222
220
 
@@ -42,5 +42,5 @@ export interface InvokeBrowserTaskOptions {
42
42
  toolSchemas?: ToolSchema[];
43
43
  outputSchema?: OutputSchemaField[];
44
44
  screenshotConfig?: ScreenshotConfig;
45
- toolCallId?: string;
45
+ toolCallId: string;
46
46
  }