chore: trim unused wrapper exports

This commit is contained in:
Peter Steinberger
2026-04-18 21:09:34 +01:00
parent 6794ff411a
commit 045010bb78
4 changed files with 2 additions and 43 deletions

View File

@@ -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: {

View File

@@ -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;

View File

@@ -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(

View File

@@ -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";