chore: organize imports after rebrand
This commit is contained in:
@@ -24,14 +24,14 @@ import {
|
|||||||
type MsgContext,
|
type MsgContext,
|
||||||
type TemplateContext,
|
type TemplateContext,
|
||||||
} from "./templating.js";
|
} from "./templating.js";
|
||||||
import { isAudio, transcribeInboundAudio } from "./transcription.js";
|
|
||||||
import type { GetReplyOptions, ReplyPayload } from "./types.js";
|
|
||||||
import {
|
import {
|
||||||
normalizeThinkLevel,
|
normalizeThinkLevel,
|
||||||
normalizeVerboseLevel,
|
normalizeVerboseLevel,
|
||||||
type ThinkLevel,
|
type ThinkLevel,
|
||||||
type VerboseLevel,
|
type VerboseLevel,
|
||||||
} from "./thinking.js";
|
} from "./thinking.js";
|
||||||
|
import { isAudio, transcribeInboundAudio } from "./transcription.js";
|
||||||
|
import type { GetReplyOptions, ReplyPayload } from "./types.js";
|
||||||
|
|
||||||
export type { GetReplyOptions, ReplyPayload } from "./types.js";
|
export type { GetReplyOptions, ReplyPayload } from "./types.js";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import crypto from "node:crypto";
|
import crypto from "node:crypto";
|
||||||
|
import { chunkText } from "../auto-reply/chunk.js";
|
||||||
import { runCommandReply } from "../auto-reply/command-reply.js";
|
import { runCommandReply } from "../auto-reply/command-reply.js";
|
||||||
import {
|
import {
|
||||||
applyTemplate,
|
applyTemplate,
|
||||||
@@ -12,8 +12,7 @@ import {
|
|||||||
type ThinkLevel,
|
type ThinkLevel,
|
||||||
type VerboseLevel,
|
type VerboseLevel,
|
||||||
} from "../auto-reply/thinking.js";
|
} from "../auto-reply/thinking.js";
|
||||||
import { chunkText } from "../auto-reply/chunk.js";
|
import { type CliDeps, createDefaultDeps } from "../cli/deps.js";
|
||||||
import { createDefaultDeps, type CliDeps } from "../cli/deps.js";
|
|
||||||
import { loadConfig, type WarelayConfig } from "../config/config.js";
|
import { loadConfig, type WarelayConfig } from "../config/config.js";
|
||||||
import {
|
import {
|
||||||
DEFAULT_IDLE_MINUTES,
|
DEFAULT_IDLE_MINUTES,
|
||||||
@@ -24,8 +23,8 @@ import {
|
|||||||
saveSessionStore,
|
saveSessionStore,
|
||||||
} from "../config/sessions.js";
|
} from "../config/sessions.js";
|
||||||
import { ensureTwilioEnv } from "../env.js";
|
import { ensureTwilioEnv } from "../env.js";
|
||||||
import { pickProvider } from "../provider-web.js";
|
|
||||||
import { runCommandWithTimeout } from "../process/exec.js";
|
import { runCommandWithTimeout } from "../process/exec.js";
|
||||||
|
import { pickProvider } from "../provider-web.js";
|
||||||
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
|
||||||
import type { Provider } from "../utils.js";
|
import type { Provider } from "../utils.js";
|
||||||
import { sendViaIpc } from "../web/ipc.js";
|
import { sendViaIpc } from "../web/ipc.js";
|
||||||
|
|||||||
@@ -4,9 +4,8 @@ import fs from "node:fs/promises";
|
|||||||
import { request } from "node:https";
|
import { request } from "node:https";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { pipeline } from "node:stream/promises";
|
import { pipeline } from "node:stream/promises";
|
||||||
|
|
||||||
import { detectMime, extensionForMime } from "./mime.js";
|
|
||||||
import { CONFIG_DIR } from "../utils.js";
|
import { CONFIG_DIR } from "../utils.js";
|
||||||
|
import { detectMime, extensionForMime } from "./mime.js";
|
||||||
|
|
||||||
const MEDIA_DIR = path.join(CONFIG_DIR, "media");
|
const MEDIA_DIR = path.join(CONFIG_DIR, "media");
|
||||||
const MAX_BYTES = 5 * 1024 * 1024; // 5MB
|
const MAX_BYTES = 5 * 1024 * 1024; // 5MB
|
||||||
|
|||||||
Reference in New Issue
Block a user