chore: fix eslint errors introduced across phases 1-3

This commit is contained in:
Gabriel Brown
2026-07-11 13:27:23 -04:00
parent 12b1c98cfc
commit a5bc0434f3
9 changed files with 26 additions and 29 deletions
+2
View File
@@ -244,7 +244,9 @@ export const inspectUserBoxStatus = async (
const running = runningField === 'true';
return {
running,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- empty field means "no image"
image: imageField || null,
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing -- empty field means "not started"
startedAt: running ? startedAtField || null : null,
memoryLimitBytes: Number(memoryField) || null,
};
+2 -1
View File
@@ -37,7 +37,8 @@ export const parseBoxTokenUsername = (token: string): string | null => {
const parts = token.split('.');
if (parts.length !== 4 || parts[1] !== 'box') return null;
const username = parts[2];
return username ? username : null;
if (!username) return null;
return username;
};
// User-scoped variant authorizing a terminal connection to a user's box.
+2 -1
View File
@@ -293,7 +293,7 @@ const createInteractionRequest = async (args: {
...args,
});
const patchInteractionRequest = async (args: {
const _patchInteractionRequest = async (args: {
interactionId: Id<'agentInteractionRequests'>;
status: 'pending' | 'answered' | 'approved' | 'rejected' | 'expired';
response?: string;
@@ -1179,6 +1179,7 @@ export const replyToInteraction = async (
externalRequestId: string;
response: string;
},
// eslint-disable-next-line @typescript-eslint/require-await -- keep async so callers receive a rejected promise
) => {
// Every runtime now runs its CLI non-interactively inside the box, so no
// runtime emits an interaction request that expects a reply.
@@ -9,9 +9,9 @@ describe('agent runtime registry', () => {
test('registerAdapter/getAdapter resolves a registered runtime', () => {
const fake: AgentRuntime = {
name: 'codex',
prepareAuth: async () => {},
runTurn: async () => ({}),
abort: async () => {},
prepareAuth: () => Promise.resolve(),
runTurn: () => Promise.resolve({}),
abort: () => Promise.resolve(),
};
registerAdapter('codex', () => fake);
expect(getAdapter('codex').name).toBe('codex');