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:
parent
cf797ce6a5
commit
27f02c05af
@ -3,13 +3,8 @@ import { COACH_KEYS, coachCron, setCoachRhythm } from "@rakazo/adapters";
|
|||||||
import type { CoachRhythm, MessageBlock, OnboardingStep, QuietHours } from "@rakazo/contracts";
|
import type { CoachRhythm, MessageBlock, OnboardingStep, QuietHours } from "@rakazo/contracts";
|
||||||
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
|
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
|
||||||
import { knownTimeZone, nextCronDateAcross } from "@rakazo/core";
|
import { knownTimeZone, nextCronDateAcross } from "@rakazo/core";
|
||||||
import {
|
import type { Prisma, PrismaClient } from "@rakazo/db";
|
||||||
createGoal,
|
import { createGoal, updateNotificationSettings, updateUserProfile } from "@rakazo/db";
|
||||||
type Prisma,
|
|
||||||
type PrismaClient,
|
|
||||||
updateNotificationSettings,
|
|
||||||
updateUserProfile,
|
|
||||||
} from "@rakazo/db";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The questions the main bot asks a new user in the main conversation, one card at a time.
|
* The questions the main bot asks a new user in the main conversation, one card at a time.
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { ORPCError } from "@orpc/server";
|
import { ORPCError } from "@orpc/server";
|
||||||
import type { JobPublisher } from "@rakazo/adapter-kit";
|
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 type { Actor, MessageBlock, OnboardingStep } from "@rakazo/contracts";
|
||||||
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
|
import { CHOICE_TEXT_ANSWER_ID } from "@rakazo/contracts";
|
||||||
import { featuredConnectorProvidersMatch } from "@rakazo/core";
|
import { featuredConnectorProvidersMatch } from "@rakazo/core";
|
||||||
@ -13,14 +14,11 @@ import {
|
|||||||
type PrismaClient,
|
type PrismaClient,
|
||||||
type ThreadEvents,
|
type ThreadEvents,
|
||||||
} from "@rakazo/db";
|
} from "@rakazo/db";
|
||||||
|
import type { ChoiceBlock, FocusOption, IntakeAnswer, IntakeContext } from "./onboarding-intake.js";
|
||||||
import {
|
import {
|
||||||
type ChoiceBlock,
|
|
||||||
closingNote,
|
closingNote,
|
||||||
FOCUS_OPTIONS,
|
FOCUS_OPTIONS,
|
||||||
type FocusOption,
|
|
||||||
focusCard,
|
focusCard,
|
||||||
type IntakeAnswer,
|
|
||||||
type IntakeContext,
|
|
||||||
intakeContext,
|
intakeContext,
|
||||||
intakeStep,
|
intakeStep,
|
||||||
nextIntakeStep,
|
nextIntakeStep,
|
||||||
|
|||||||
@ -3,7 +3,8 @@
|
|||||||
* Chromium has no push service), sets quiet hours and switches nudges off; all of it survives a
|
* Chromium has no push service), sets quiet hours and switches nudges off; all of it survives a
|
||||||
* reload.
|
* 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";
|
import { captureScreenshot, completeOnboarding, openUserSettings, rpc, signup } from "./helpers";
|
||||||
|
|
||||||
const ENDPOINT = "https://push.example.test/e2e-device";
|
const ENDPOINT = "https://push.example.test/e2e-device";
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
* E2E: the deployment owner's onboarding asks before scanning the fixture home folder the
|
* 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.
|
* 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 type { SpaceNavigation, UserProfileState } from "@rakazo/contracts";
|
||||||
import { captureScreenshot, rpc, signup } from "./helpers";
|
import { captureScreenshot, rpc, signup } from "./helpers";
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
* E2E: after the wizard the main bot gets to know the user in the main conversation, one card
|
* 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.
|
* 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";
|
import { captureScreenshot, completeOnboarding, rpc, signup } from "./helpers";
|
||||||
|
|
||||||
function card(page: Page, step: string) {
|
function card(page: Page, step: string) {
|
||||||
|
|||||||
@ -85,6 +85,7 @@ import {
|
|||||||
stableJsonValue,
|
stableJsonValue,
|
||||||
toolEffectIdempotencyKey,
|
toolEffectIdempotencyKey,
|
||||||
} from "@rakazo/core/node/approval-effect-key";
|
} from "@rakazo/core/node/approval-effect-key";
|
||||||
|
import type { McpServer, Prisma, PrismaClient, ThreadEvents } from "@rakazo/db";
|
||||||
import {
|
import {
|
||||||
appendEventInTransaction,
|
appendEventInTransaction,
|
||||||
createSpaceForMember,
|
createSpaceForMember,
|
||||||
@ -99,12 +100,8 @@ import {
|
|||||||
loadCoachSummary,
|
loadCoachSummary,
|
||||||
loadRunHistoryMessages,
|
loadRunHistoryMessages,
|
||||||
loadUserContext,
|
loadUserContext,
|
||||||
type McpServer,
|
|
||||||
type Prisma,
|
|
||||||
type PrismaClient,
|
|
||||||
parseComputerMode,
|
parseComputerMode,
|
||||||
SpaceLimitError,
|
SpaceLimitError,
|
||||||
type ThreadEvents,
|
|
||||||
} from "@rakazo/db";
|
} from "@rakazo/db";
|
||||||
import { getLogger } from "@rakazo/logging";
|
import { getLogger } from "@rakazo/logging";
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -9,11 +9,8 @@ import {
|
|||||||
} from "@rakazo/db";
|
} from "@rakazo/db";
|
||||||
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
|
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
|
||||||
import { notifyUserFromTool } from "./notify-user-tool.js";
|
import { notifyUserFromTool } from "./notify-user-tool.js";
|
||||||
import {
|
import type { PushPayload, PushSender } from "./push-notifications.js";
|
||||||
PushNotificationProvider,
|
import { PushNotificationProvider } from "./push-notifications.js";
|
||||||
type PushPayload,
|
|
||||||
type PushSender,
|
|
||||||
} from "./push-notifications.js";
|
|
||||||
|
|
||||||
const databaseUrl = process.env.DATABASE_URL;
|
const databaseUrl = process.env.DATABASE_URL;
|
||||||
const describePostgres =
|
const describePostgres =
|
||||||
|
|||||||
@ -1,12 +1,8 @@
|
|||||||
import type { NotificationMessage } from "@rakazo/adapter-kit";
|
import type { NotificationMessage } from "@rakazo/adapter-kit";
|
||||||
import type { PrismaClient } from "@rakazo/db";
|
import type { PrismaClient } from "@rakazo/db";
|
||||||
import { describe, expect, it, vi } from "vitest";
|
import { describe, expect, it, vi } from "vitest";
|
||||||
import {
|
import type { PushOutcome, PushPayload, PushSender } from "./push-notifications.js";
|
||||||
PushNotificationProvider,
|
import { PushNotificationProvider } from "./push-notifications.js";
|
||||||
type PushOutcome,
|
|
||||||
type PushPayload,
|
|
||||||
type PushSender,
|
|
||||||
} from "./push-notifications.js";
|
|
||||||
|
|
||||||
const context = {
|
const context = {
|
||||||
operationId: "notify",
|
operationId: "notify",
|
||||||
|
|||||||
@ -4,7 +4,8 @@ import { getLogger } from "@rakazo/logging";
|
|||||||
import { Agent } from "undici";
|
import { Agent } from "undici";
|
||||||
import webPush from "web-push";
|
import webPush from "web-push";
|
||||||
import { combineSignals } from "./connector-safety.js";
|
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 { PushOutcome, PushPayload, PushTarget } from "./push-notifications.js";
|
||||||
import type { EncryptedSecretStore } from "./secrets.js";
|
import type { EncryptedSecretStore } from "./secrets.js";
|
||||||
import { dispatcherFetch } from "./undici-fetch.js";
|
import { dispatcherFetch } from "./undici-fetch.js";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user