refactor: trim local helper exports · openclaw/openclaw@a859abd
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,8 +8,6 @@ import { listSignalAccountIds, resolveSignalAccount } from "./accounts.js";
|
8 | 8 | import { installSignalCli } from "./install-signal-cli.js"; |
9 | 9 | import { |
10 | 10 | createSignalCliPathTextInput, |
11 | | -normalizeSignalAccountInput, |
12 | | -parseSignalAllowFromEntries, |
13 | 11 | signalCompletionNote, |
14 | 12 | signalDmPolicy, |
15 | 13 | signalNumberTextInput, |
@@ -86,5 +84,3 @@ export const signalSetupWizard: ChannelSetupWizard = {
|
86 | 84 | dmPolicy: signalDmPolicy, |
87 | 85 | disable: (cfg) => setSetupChannelEnabled(cfg, channel, false), |
88 | 86 | }; |
89 | | - |
90 | | -export { normalizeSignalAccountInput, parseSignalAllowFromEntries }; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,13 +4,13 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
4 | 4 | |
5 | 5 | const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); |
6 | 6 | |
7 | | -export function getA2uiPaths(env = process.env) { |
| 7 | +function getA2uiPaths(env = process.env) { |
8 | 8 | const srcDir = env.OPENCLAW_A2UI_SRC_DIR ?? path.join(repoRoot, "src", "canvas-host", "a2ui"); |
9 | 9 | const outDir = env.OPENCLAW_A2UI_OUT_DIR ?? path.join(repoRoot, "dist", "canvas-host", "a2ui"); |
10 | 10 | return { srcDir, outDir }; |
11 | 11 | } |
12 | 12 | |
13 | | -export function shouldSkipMissingA2uiAssets(env = process.env): boolean { |
| 13 | +function shouldSkipMissingA2uiAssets(env = process.env): boolean { |
14 | 14 | return env.OPENCLAW_A2UI_SKIP_MISSING === "1" || Boolean(env.OPENCLAW_SPARSE_PROFILE); |
15 | 15 | } |
16 | 16 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -4,13 +4,13 @@ export type UsageQueryTerm = {
|
4 | 4 | raw: string; |
5 | 5 | }; |
6 | 6 | |
7 | | -export type UsageQueryResult<TSession> = { |
| 7 | +type UsageQueryResult<TSession> = { |
8 | 8 | sessions: TSession[]; |
9 | 9 | warnings: string[]; |
10 | 10 | }; |
11 | 11 | |
12 | 12 | // Minimal shape required for query filtering. The usage view's real session type contains more fields. |
13 | | -export type UsageSessionQueryTarget = { |
| 13 | +type UsageSessionQueryTarget = { |
14 | 14 | key: string; |
15 | 15 | label?: string; |
16 | 16 | sessionId?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -export type CryptoLike = { |
| 1 | +type CryptoLike = { |
2 | 2 | randomUUID?: (() => string) | undefined; |
3 | 3 | getRandomValues?: (<T extends Exclude<BufferSource, ArrayBuffer>>(array: T) => T) | undefined; |
4 | 4 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。