Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assistant/src/cli/commands/conversations.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Command } from "commander";

import { cliIpcCall, exitFromIpcResult } from "../../ipc/cli-client.js";
import { timeAgo } from "../lib/time-ago.js";
import { registerCommand } from "../lib/register-command.js";
import { timeAgo } from "../lib/time-ago.js";
import { log } from "../logger.js";
import { registerConversationsDeferCommand } from "./conversations-defer.js";
import { registerConversationsImportCommand } from "./conversations-import.js";
Expand Down
2 changes: 1 addition & 1 deletion assistant/src/cli/commands/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Command } from "commander";

import type { CredentialPromptResult } from "../../runtime/routes/credential-prompt-routes.js";
import { cliIpcCall, exitFromIpcResult } from "../../ipc/cli-client.js";
import type { CredentialPromptResult } from "../../runtime/routes/credential-prompt-routes.js";
import { registerCommand } from "../lib/register-command.js";
import { log } from "../logger.js";
import { shouldOutputJson, writeOutput } from "../output.js";
Expand Down
4 changes: 2 additions & 2 deletions assistant/src/cli/commands/oauth/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Examples:
queryParams.supports_managed_mode = "true";
}
const r = await cliIpcCall<{
providers: SerializedProvider[];
providers: Array<Record<string, unknown>>;
}>("oauth_providers_get", {
queryParams,
});
Expand All @@ -282,7 +282,7 @@ Examples:
// The route returns snake_case summaries; map to camelCase for
// display consistency with the existing CLI contract.
let rows: SerializedProvider[] = (r.result?.providers ?? []).map(
(p: Record<string, unknown>) => ({
(p) => ({
providerKey: p.provider_key as string,
displayName: p.display_name as string | null,
description: p.description as string | null,
Expand Down
2 changes: 1 addition & 1 deletion assistant/src/ipc/cli-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export async function cliIpcCallStream(
* if (!r.ok) return exitFromIpcResult(r, cmd);
*/
export function exitFromIpcResult(
r: { ok: false; error?: string; statusCode?: number },
r: { ok: boolean; error?: string; statusCode?: number },
_cmd?: unknown,
): never {
process.stderr.write((r.error ?? "Unknown error") + "\n");
Expand Down
6 changes: 3 additions & 3 deletions assistant/src/runtime/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ import { ROUTES as DEBUG_ROUTES } from "./debug-routes.js";
import { ROUTES as DEFER_ROUTES } from "./defer-routes.js";
import { ROUTES as DIAGNOSTICS_ROUTES } from "./diagnostics-routes.js";
import { ROUTES as DISK_PRESSURE_ROUTES } from "./disk-pressure-routes.js";
import { ROUTES as DOMAIN_ROUTES } from "./domain-routes.js";
import { ROUTES as DOCUMENT_ROUTES } from "./documents-routes.js";
import { ROUTES as DOMAIN_ROUTES } from "./domain-routes.js";
import { ROUTES as EMAIL_ROUTES } from "./email-routes.js";
import { ROUTES as EVENTS_ROUTES } from "./events-routes.js";
import { ROUTES as FILING_ROUTES } from "./filing-routes.js";
Expand Down Expand Up @@ -98,8 +98,8 @@ import { ROUTES as PS_ROUTES } from "./ps-routes.js";
import { ROUTES as RECORDING_ROUTES } from "./recording-routes.js";
import { ROUTES as RENAME_CONVERSATION_ROUTES } from "./rename-conversation-routes.js";
import { ROUTES as SCHEDULE_ROUTES } from "./schedule-routes.js";
import { ROUTES as SEQUENCE_ROUTES } from "./sequence-routes.js";
import { ROUTES as SECRET_ROUTES } from "./secret-routes.js";
import { ROUTES as SEQUENCE_ROUTES } from "./sequence-routes.js";
import { ROUTES as SETTINGS_ROUTES } from "./settings-routes.js";
import { ROUTES as SKILL_ROUTES } from "./skills-routes.js";
import { ROUTES as STT_ROUTES } from "./stt-routes.js";
Expand All @@ -116,8 +116,8 @@ import type { RouteDefinition } from "./types.js";
import { ROUTES as UI_REQUEST_ROUTES } from "./ui-request-routes.js";
import { ROUTES as UPGRADE_BROADCAST_ROUTES } from "./upgrade-broadcast-routes.js";
import { ROUTES as USAGE_ROUTES } from "./usage-routes.js";
import { ROUTES as USER_ROUTES_CLI } from "./user-routes-cli.js";
import { ROUTES as USER_ROUTES } from "./user-routes.js";
import { ROUTES as USER_ROUTES_CLI } from "./user-routes-cli.js";
import { ROUTES as WAKE_CONVERSATION_ROUTES } from "./wake-conversation-routes.js";
import { ROUTES as WATCHER_ROUTES } from "./watcher-routes.js";
import { ROUTES as WEBHOOK_ROUTES } from "./webhook-routes.js";
Expand Down
6 changes: 3 additions & 3 deletions assistant/src/runtime/routes/platform-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
*/

import { isPlatformRemote } from "../../config/env-registry.js";
import { ipcGetVelayStatus } from "../../ipc/gateway-client.js";
import {
registerCallbackRoute,
resolvePlatformCallbackRegistrationContext,
} from "../../inbound/platform-callback-registration.js";
import { buildAssistantEvent } from "../assistant-event.js";
import { assistantEventHub } from "../assistant-event-hub.js";
import { ipcGetVelayStatus } from "../../ipc/gateway-client.js";
import { credentialKey } from "../../security/credential-key.js";
import {
deleteSecureKeyAsync,
getSecureKeyAsync,
} from "../../security/secure-keys.js";
import { buildAssistantEvent } from "../assistant-event.js";
import { assistantEventHub } from "../assistant-event-hub.js";
import {
BadRequestError,
InternalError,
Expand Down
Loading