mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:10:43 +00:00
chore: trim unused wrapper exports
This commit is contained in:
@@ -9,14 +9,8 @@ import { applyPiCompactionSettingsFromConfig } from "./pi-settings.js";
|
||||
|
||||
export {
|
||||
buildEmbeddedPiSettingsSnapshot,
|
||||
DEFAULT_EMBEDDED_PI_PROJECT_SETTINGS_POLICY,
|
||||
loadEnabledBundlePiSettingsSnapshot,
|
||||
resolveEmbeddedPiProjectSettingsPolicy,
|
||||
SANITIZED_PROJECT_PI_KEYS,
|
||||
} from "./pi-project-settings-snapshot.js";
|
||||
export type {
|
||||
EmbeddedPiProjectSettingsPolicy,
|
||||
PiSettingsSnapshot,
|
||||
} from "./pi-project-settings-snapshot.js";
|
||||
|
||||
export function createEmbeddedPiSettingsManager(params: {
|
||||
|
||||
@@ -1,47 +1,21 @@
|
||||
export const SUBAGENT_TARGET_KIND_SUBAGENT = "subagent" as const;
|
||||
export const SUBAGENT_TARGET_KIND_ACP = "acp" as const;
|
||||
|
||||
export type SubagentLifecycleTargetKind =
|
||||
| typeof SUBAGENT_TARGET_KIND_SUBAGENT
|
||||
| typeof SUBAGENT_TARGET_KIND_ACP;
|
||||
|
||||
export const SUBAGENT_ENDED_REASON_COMPLETE = "subagent-complete" as const;
|
||||
export const SUBAGENT_ENDED_REASON_ERROR = "subagent-error" as const;
|
||||
export const SUBAGENT_ENDED_REASON_KILLED = "subagent-killed" as const;
|
||||
export const SUBAGENT_ENDED_REASON_SESSION_RESET = "session-reset" as const;
|
||||
export const SUBAGENT_ENDED_REASON_SESSION_DELETE = "session-delete" as const;
|
||||
|
||||
export type SubagentLifecycleEndedReason =
|
||||
| typeof SUBAGENT_ENDED_REASON_COMPLETE
|
||||
| typeof SUBAGENT_ENDED_REASON_ERROR
|
||||
| typeof SUBAGENT_ENDED_REASON_KILLED
|
||||
| typeof SUBAGENT_ENDED_REASON_SESSION_RESET
|
||||
| typeof SUBAGENT_ENDED_REASON_SESSION_DELETE;
|
||||
|
||||
export type SubagentSessionLifecycleEndedReason =
|
||||
| typeof SUBAGENT_ENDED_REASON_SESSION_RESET
|
||||
| typeof SUBAGENT_ENDED_REASON_SESSION_DELETE;
|
||||
| typeof SUBAGENT_ENDED_REASON_KILLED;
|
||||
|
||||
export const SUBAGENT_ENDED_OUTCOME_OK = "ok" as const;
|
||||
export const SUBAGENT_ENDED_OUTCOME_ERROR = "error" as const;
|
||||
export const SUBAGENT_ENDED_OUTCOME_TIMEOUT = "timeout" as const;
|
||||
export const SUBAGENT_ENDED_OUTCOME_KILLED = "killed" as const;
|
||||
export const SUBAGENT_ENDED_OUTCOME_RESET = "reset" as const;
|
||||
export const SUBAGENT_ENDED_OUTCOME_DELETED = "deleted" as const;
|
||||
|
||||
export type SubagentLifecycleEndedOutcome =
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_OK
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_ERROR
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_TIMEOUT
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_KILLED
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_RESET
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_DELETED;
|
||||
|
||||
export function resolveSubagentSessionEndedOutcome(
|
||||
reason: SubagentSessionLifecycleEndedReason,
|
||||
): SubagentLifecycleEndedOutcome {
|
||||
if (reason === SUBAGENT_ENDED_REASON_SESSION_RESET) {
|
||||
return SUBAGENT_ENDED_OUTCOME_RESET;
|
||||
}
|
||||
return SUBAGENT_ENDED_OUTCOME_DELETED;
|
||||
}
|
||||
| typeof SUBAGENT_ENDED_OUTCOME_KILLED;
|
||||
|
||||
@@ -7,11 +7,6 @@ import { defaultRuntime } from "../runtime.js";
|
||||
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
|
||||
import { theme } from "../terminal/theme.js";
|
||||
|
||||
export {
|
||||
extractInstalledNpmHookPackageName,
|
||||
extractInstalledNpmPackageName,
|
||||
} from "./plugins-install-records.js";
|
||||
|
||||
type HookInternalEntryLike = Record<string, unknown> & { enabled?: boolean };
|
||||
|
||||
export function resolveFileNpmSpecToLocalPath(
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
export {
|
||||
ANTHROPIC_SETUP_TOKEN_MIN_LENGTH,
|
||||
ANTHROPIC_SETUP_TOKEN_PREFIX,
|
||||
buildTokenProfileId,
|
||||
DEFAULT_TOKEN_PROFILE_NAME,
|
||||
normalizeTokenProfileName,
|
||||
validateAnthropicSetupToken,
|
||||
} from "../plugins/provider-auth-token.js";
|
||||
|
||||
Reference in New Issue
Block a user