|
|
|
|
@@ -1,34 +1,5 @@
|
|
|
|
|
import { LitElement } from "lit";
|
|
|
|
|
import { customElement, state } from "lit/decorators.js";
|
|
|
|
|
import type { EventLogEntry } from "./app-events.ts";
|
|
|
|
|
import type { AppViewState } from "./app-view-state.ts";
|
|
|
|
|
import type { DevicePairingList } from "./controllers/devices.ts";
|
|
|
|
|
import type { ExecApprovalRequest } from "./controllers/exec-approval.ts";
|
|
|
|
|
import type { ExecApprovalsFile, ExecApprovalsSnapshot } from "./controllers/exec-approvals.ts";
|
|
|
|
|
import type { SkillMessage } from "./controllers/skills.ts";
|
|
|
|
|
import type { GatewayBrowserClient, GatewayHelloOk } from "./gateway.ts";
|
|
|
|
|
import type { Tab } from "./navigation.ts";
|
|
|
|
|
import type { ResolvedTheme, ThemeMode } from "./theme.ts";
|
|
|
|
|
import type {
|
|
|
|
|
AgentsListResult,
|
|
|
|
|
AgentsFilesListResult,
|
|
|
|
|
AgentIdentityResult,
|
|
|
|
|
ConfigSnapshot,
|
|
|
|
|
ConfigUiHints,
|
|
|
|
|
CronJob,
|
|
|
|
|
CronRunLogEntry,
|
|
|
|
|
CronStatus,
|
|
|
|
|
HealthSnapshot,
|
|
|
|
|
LogEntry,
|
|
|
|
|
LogLevel,
|
|
|
|
|
PresenceEntry,
|
|
|
|
|
ChannelsStatusSnapshot,
|
|
|
|
|
SessionsListResult,
|
|
|
|
|
SkillStatusReport,
|
|
|
|
|
StatusSummary,
|
|
|
|
|
NostrProfile,
|
|
|
|
|
} from "./types.ts";
|
|
|
|
|
import type { NostrProfileFormState } from "./views/channels.nostr-profile-form.ts";
|
|
|
|
|
import { i18n, I18nController, isSupportedLocale } from "../i18n/index.ts";
|
|
|
|
|
import {
|
|
|
|
|
handleChannelConfigReload as handleChannelConfigReloadInternal,
|
|
|
|
|
@@ -49,6 +20,7 @@ import {
|
|
|
|
|
removeQueuedMessage as removeQueuedMessageInternal,
|
|
|
|
|
} from "./app-chat.ts";
|
|
|
|
|
import { DEFAULT_CRON_FORM, DEFAULT_LOG_LEVEL_FILTERS } from "./app-defaults.ts";
|
|
|
|
|
import type { EventLogEntry } from "./app-events.ts";
|
|
|
|
|
import { connectGateway as connectGatewayInternal } from "./app-gateway.ts";
|
|
|
|
|
import {
|
|
|
|
|
handleConnected,
|
|
|
|
|
@@ -77,10 +49,38 @@ import {
|
|
|
|
|
type ToolStreamEntry,
|
|
|
|
|
type CompactionStatus,
|
|
|
|
|
} from "./app-tool-stream.ts";
|
|
|
|
|
import type { AppViewState } from "./app-view-state.ts";
|
|
|
|
|
import { normalizeAssistantIdentity } from "./assistant-identity.ts";
|
|
|
|
|
import { loadAssistantIdentity as loadAssistantIdentityInternal } from "./controllers/assistant-identity.ts";
|
|
|
|
|
import type { DevicePairingList } from "./controllers/devices.ts";
|
|
|
|
|
import type { ExecApprovalRequest } from "./controllers/exec-approval.ts";
|
|
|
|
|
import type { ExecApprovalsFile, ExecApprovalsSnapshot } from "./controllers/exec-approvals.ts";
|
|
|
|
|
import type { SkillMessage } from "./controllers/skills.ts";
|
|
|
|
|
import type { GatewayBrowserClient, GatewayHelloOk } from "./gateway.ts";
|
|
|
|
|
import type { Tab } from "./navigation.ts";
|
|
|
|
|
import { loadSettings, type UiSettings } from "./storage.ts";
|
|
|
|
|
import type { ResolvedTheme, ThemeMode } from "./theme.ts";
|
|
|
|
|
import type {
|
|
|
|
|
AgentsListResult,
|
|
|
|
|
AgentsFilesListResult,
|
|
|
|
|
AgentIdentityResult,
|
|
|
|
|
ConfigSnapshot,
|
|
|
|
|
ConfigUiHints,
|
|
|
|
|
CronJob,
|
|
|
|
|
CronRunLogEntry,
|
|
|
|
|
CronStatus,
|
|
|
|
|
HealthSnapshot,
|
|
|
|
|
LogEntry,
|
|
|
|
|
LogLevel,
|
|
|
|
|
PresenceEntry,
|
|
|
|
|
ChannelsStatusSnapshot,
|
|
|
|
|
SessionsListResult,
|
|
|
|
|
SkillStatusReport,
|
|
|
|
|
StatusSummary,
|
|
|
|
|
NostrProfile,
|
|
|
|
|
} from "./types.ts";
|
|
|
|
|
import { type ChatAttachment, type ChatQueueItem, type CronFormState } from "./ui-types.ts";
|
|
|
|
|
import type { NostrProfileFormState } from "./views/channels.nostr-profile-form.ts";
|
|
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
|
interface Window {
|
|
|
|
|
|