refactor(config): remove dead session schema exports · openclaw/openclaw@42bcb3e
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -632,12 +632,6 @@ export function resolveFreshSessionTotalTokens(
|
632 | 632 | return total; |
633 | 633 | } |
634 | 634 | |
635 | | -export function isSessionTotalTokensFresh( |
636 | | -entry?: Pick<SessionEntry, "totalTokens" | "totalTokensFresh"> | null, |
637 | | -): boolean { |
638 | | -return resolveFreshSessionTotalTokens(entry) !== undefined; |
639 | | -} |
640 | | - |
641 | 635 | export type GroupKeyResolution = { |
642 | 636 | key: string; |
643 | 637 | channel?: string; |
@@ -732,6 +726,5 @@ export type SessionSystemPromptReport = {
|
732 | 726 | }; |
733 | 727 | }; |
734 | 728 | |
735 | | -export const DEFAULT_RESET_TRIGGER = "/new"; |
736 | 729 | export const DEFAULT_RESET_TRIGGERS = ["/new", "/reset"]; |
737 | 730 | export const DEFAULT_IDLE_MINUTES = 0; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1014,13 +1014,6 @@ const AgentRuntimeSchema = z
|
1014 | 1014 | ]) |
1015 | 1015 | .optional(); |
1016 | 1016 | |
1017 | | -export const AgentEmbeddedHarnessSchema = z |
1018 | | -.object({ |
1019 | | -runtime: z.string().optional(), |
1020 | | -}) |
1021 | | -.strict() |
1022 | | -.optional(); |
1023 | | - |
1024 | 1017 | export const AgentRuntimePolicySchema = z |
1025 | 1018 | .object({ |
1026 | 1019 | id: z.string().optional(), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。