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
content: [{type: 'text',text: 'Failed to erase simulator: Booted device'}],
44
46
});
@@ -48,7 +50,7 @@ describe('erase_sims tool (UDID or ALL only)', () => {
48
50
constbootedError=
49
51
'An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):\nUnable to erase contents and settings in current state: Booted\n';
@@ -66,7 +66,7 @@ export async function erase_simsLogic(
66
66
{type: 'text',text: `Failed to erase simulator: ${errText}`},
67
67
{
68
68
type: 'text',
69
-
text: `Tool hint: The simulator appears to be Booted. Re-run erase_sims with { simulatorUuid: '${udid}', shutdownFirst: true } to shut it down before erasing.`,
69
+
text: `Tool hint: The simulator appears to be Booted. Re-run erase_sims with { simulatorUdid: '${udid}', shutdownFirst: true } to shut it down before erasing.`,
70
70
},
71
71
],
72
72
};
@@ -100,7 +100,9 @@ export async function erase_simsLogic(
100
100
);
101
101
if(!result.success){
102
102
consterrText=result.error??'Unknown error';
103
-
constcontent=[{type: 'text',text: `Failed to erase all simulators: ${errText}`}];
103
+
constcontent: ToolResponseContent[]=[
104
+
{type: 'text',text: `Failed to erase all simulators: ${errText}`},
0 commit comments