style: use top-level type imports in the coach changes

AGENTS.md asks for top-level `import type` instead of inline `type`
specifiers; this applies it to the import statements the coach work added
or changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u
This commit is contained in:
Claude 2026-10-03 14:53:03 +00:00
parent cf797ce6a5
commit 27f02c05af
No known key found for this signature in database
9 changed files with 18 additions and 31 deletions

View File

@ -3,13 +3,8 @@ import { COACH_KEYS, coachCron, setCoachRhythm } from "@rakazo/adapters";
import type { CoachRhythm, MessageBlock, OnboardingStep, QuietHours } from "@rakazo/contracts";
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
import { knownTimeZone, nextCronDateAcross } from "@rakazo/core";
import {
createGoal,
type Prisma,
type PrismaClient,
updateNotificationSettings,
updateUserProfile,
} from "@rakazo/db";
import type { Prisma, PrismaClient } from "@rakazo/db";
import { createGoal, updateNotificationSettings, updateUserProfile } from "@rakazo/db";
/**
* The questions the main bot asks a new user in the main conversation, one card at a time.

View File

@ -1,6 +1,7 @@
import { ORPCError } from "@orpc/server";
import type { JobPublisher } from "@rakazo/adapter-kit";
import { type ConnectorRegistry, getCoachRhythm } from "@rakazo/adapters";
import type { ConnectorRegistry } from "@rakazo/adapters";
import { getCoachRhythm } from "@rakazo/adapters";
import type { Actor, MessageBlock, OnboardingStep } from "@rakazo/contracts";
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
import { featuredConnectorProvidersMatch } from "@rakazo/core";
@ -13,14 +14,11 @@ import {
type PrismaClient,
type ThreadEvents,
} from "@rakazo/db";
import type { ChoiceBlock, FocusOption, IntakeAnswer, IntakeContext } from "./onboarding-intake.js";
import {
type ChoiceBlock,
closingNote,
FOCUS_OPTIONS,
type FocusOption,
focusCard,
type IntakeAnswer,
type IntakeContext,
intakeContext,
intakeStep,
nextIntakeStep,

View File

@ -3,7 +3,8 @@
* Chromium has no push service), sets quiet hours and switches nudges off; all of it survives a
* reload.
*/
import { expect, type Page, test } from "@playwright/test";
import type { Page } from "@playwright/test";
import { expect, test } from "@playwright/test";
import { captureScreenshot, completeOnboarding, openUserSettings, rpc, signup } from "./helpers";
const ENDPOINT = "https://push.example.test/e2e-device";

View File

@ -2,7 +2,8 @@
* E2E: the deployment owner's onboarding asks before scanning the fixture home folder the
* harness configures, then adds only the projects and facts the user picks.
*/
import { expect, type Page, test } from "@playwright/test";
import type { Page } from "@playwright/test";
import { expect, test } from "@playwright/test";
import type { SpaceNavigation, UserProfileState } from "@rakazo/contracts";
import { captureScreenshot, rpc, signup } from "./helpers";

View File

@ -2,7 +2,8 @@
* E2E: after the wizard the main bot gets to know the user in the main conversation, one card
* after each answer, without ever blocking the composer.
*/
import { expect, type Page, test } from "@playwright/test";
import type { Page } from "@playwright/test";
import { expect, test } from "@playwright/test";
import { captureScreenshot, completeOnboarding, rpc, signup } from "./helpers";
function card(page: Page, step: string) {

View File

@ -85,6 +85,7 @@ import {
stableJsonValue,
toolEffectIdempotencyKey,
} from "@rakazo/core/node/approval-effect-key";
import type { McpServer, Prisma, PrismaClient, ThreadEvents } from "@rakazo/db";
import {
appendEventInTransaction,
createSpaceForMember,
@ -99,12 +100,8 @@ import {
loadCoachSummary,
loadRunHistoryMessages,
loadUserContext,
type McpServer,
type Prisma,
type PrismaClient,
parseComputerMode,
SpaceLimitError,
type ThreadEvents,
} from "@rakazo/db";
import { getLogger } from "@rakazo/logging";
import {

View File

@ -9,11 +9,8 @@ import {
} from "@rakazo/db";
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
import { notifyUserFromTool } from "./notify-user-tool.js";
import {
PushNotificationProvider,
type PushPayload,
type PushSender,
} from "./push-notifications.js";
import type { PushPayload, PushSender } from "./push-notifications.js";
import { PushNotificationProvider } from "./push-notifications.js";
const databaseUrl = process.env.DATABASE_URL;
const describePostgres =

View File

@ -1,12 +1,8 @@
import type { NotificationMessage } from "@rakazo/adapter-kit";
import type { PrismaClient } from "@rakazo/db";
import { describe, expect, it, vi } from "vitest";
import {
PushNotificationProvider,
type PushOutcome,
type PushPayload,
type PushSender,
} from "./push-notifications.js";
import type { PushOutcome, PushPayload, PushSender } from "./push-notifications.js";
import { PushNotificationProvider } from "./push-notifications.js";
const context = {
operationId: "notify",

View File

@ -4,7 +4,8 @@ import { getLogger } from "@rakazo/logging";
import { Agent } from "undici";
import webPush from "web-push";
import { combineSignals } from "./connector-safety.js";
import { createAddressCheckedLookup, type ResolveHostname } from "./network-address.js";
import type { ResolveHostname } from "./network-address.js";
import { createAddressCheckedLookup } from "./network-address.js";
import type { PushOutcome, PushPayload, PushTarget } from "./push-notifications.js";
import type { EncryptedSecretStore } from "./secrets.js";
import { dispatcherFetch } from "./undici-fetch.js";