You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Starts capturing logs from a specified simulator. Returns a session ID. By default, captures only structured logs.',
26
+
"Starts capturing logs from a specified simulator. Returns a session ID. Use subsystemFilter to control what logs are captured: 'app' (default), 'all' (everything), 'swiftui' (includes Self._printChanges()), or custom subsystems.",
"Log capture started successfully. Session ID: test-uuid-123.\n\nNote: Only structured logs are being captured.\n\nNext Steps:\n1. Interact with your simulator and app.\n2. Use 'stop_sim_log_cap' with session ID 'test-uuid-123' to stop capture and retrieve logs.",
145
+
"Log capture started successfully. Session ID: test-uuid-123.\n\nOnly structured logs from the app subsystem are being captured.\n\nNext Steps:\n1. Interact with your simulator and app.\n2. Use 'stop_sim_log_cap' with session ID 'test-uuid-123' to stop capture and retrieve logs.",
146
+
);
147
+
});
148
+
149
+
it('should indicate swiftui capture when subsystemFilter is swiftui',async()=>{
"Log capture started successfully. Session ID: test-uuid-123.\n\nNote: Your app was relaunched to capture console output.\n\nNext Steps:\n1. Interact with your simulator and app.\n2. Use 'stop_sim_log_cap' with session ID 'test-uuid-123' to stop capture and retrieve logs.",
140
-
);
247
+
expect(result.content[0].text).toContain('Your app was relaunched to capture console output');
"Controls which log subsystems to capture. Options: 'app' (default, only app logs), 'all' (capture all system logs), 'swiftui' (app + SwiftUI logs for Self._printChanges()), or an array of custom subsystem strings.",
32
+
),
27
33
});
28
34
29
35
// Use z.infer for type safety
@@ -35,24 +41,49 @@ export async function start_sim_log_capLogic(
filterDescription=`Capturing logs from subsystems: ${subsystemFilter.join(', ')} (plus app bundle ID).`;
79
+
}else{
80
+
filterDescription='Only structured logs from the app subsystem are being captured.';
81
+
}
82
+
52
83
return{
53
84
content: [
54
85
createTextContent(
55
-
`Log capture started successfully. Session ID: ${sessionId}.\n\n${captureConsole ? 'Note: Your app was relaunched to capture console output.' : 'Note: Only structured logs are being captured.'}\n\nNext Steps:\n1. Interact with your simulator and app.\n2. Use 'stop_sim_log_cap' with session ID '${sessionId}' to stop capture and retrieve logs.`,
86
+
`Log capture started successfully. Session ID: ${sessionId}.\n\n${captureConsole ? 'Note: Your app was relaunched to capture console output.\n' : ''}${filterDescription}\n\nNext Steps:\n1. Interact with your simulator and app.\n2. Use 'stop_sim_log_cap' with session ID '${sessionId}' to stop capture and retrieve logs.`,
56
87
),
57
88
],
58
89
};
@@ -63,7 +94,7 @@ const publicSchemaObject = startSimLogCapSchema.omit({ simulatorId: true } as co
63
94
exportdefault{
64
95
name: 'start_sim_log_cap',
65
96
description:
66
-
'Starts capturing logs from a specified simulator. Returns a session ID. By default, captures only structured logs.',
97
+
"Starts capturing logs from a specified simulator. Returns a session ID. Use subsystemFilter to control what logs are captured: 'app' (default), 'all' (everything), 'swiftui' (includes Self._printChanges()), or custom subsystems.",
0 commit comments