mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 13:22:54 +00:00
Route internal model catalog imports to the extracted @openclaw/model-catalog-core package and delete obsolete internal facades. Keep public SDK declarations self-contained by wrapping core helpers at public boundaries instead of leaking private package imports. Verification: - pnpm test src/plugins/contracts/model-catalog-core-imports.test.ts src/plugins/sdk-alias.test.ts packages/model-catalog-core/src/configured-model-refs.test.ts packages/model-catalog-core/src/provider-model-id-normalize.test.ts packages/model-catalog-core/src/provider-model-id-normalization.test.ts src/config/config.model-ref-validation.test.ts src/agents/model-selection.test.ts src/plugin-sdk/provider-model-shared.test.ts -- --reporter=verbose - pnpm check:test-types - pnpm test:extensions:package-boundary:compile - pnpm build - rg "@openclaw/model-catalog-core" dist/plugin-sdk packages/plugin-sdk/dist -n --glob '*.d.ts' || true - git diff --check - autoreview clean after fix CI note: merged with admin override because checks-node-agentic-commands-doctor and checks-node-core-runtime-infra-state failed twice with exit 143/no-output watchdog termination after prior passing test output, while relevant local proof and the rest of CI were green.
87 lines
2.9 KiB
TypeScript
87 lines
2.9 KiB
TypeScript
/**
|
|
* @deprecated Broad public SDK barrel. Prefer focused agent/runtime subpaths
|
|
* and avoid adding new imports here.
|
|
*/
|
|
|
|
export * from "../agents/agent-scope.js";
|
|
export { resolveOpenClawAgentDir } from "./agent-dir-compat.js";
|
|
export * from "../agents/current-time.js";
|
|
export * from "../agents/date-time.js";
|
|
export * from "../agents/defaults.js";
|
|
export * from "../agents/identity-avatar.js";
|
|
export * from "../agents/identity.js";
|
|
export * from "../agents/model-auth-markers.js";
|
|
export * from "../agents/model-auth.js";
|
|
export * from "../agents/model-catalog.js";
|
|
export * from "../agents/model-catalog-scope.js";
|
|
export * from "../agents/model-selection.js";
|
|
export * from "../agents/simple-completion-runtime.js";
|
|
export * from "../agents/embedded-agent-block-chunker.js";
|
|
export * from "../agents/embedded-agent-utils.js";
|
|
export * from "../agents/provider-auth-aliases.js";
|
|
export * from "../agents/sandbox-paths.js";
|
|
export * from "../agents/schema/typebox.js";
|
|
export * from "../agents/tools/common.js";
|
|
export * from "../agents/tools/web-guarded-fetch.js";
|
|
export * from "../agents/tools/web-shared.js";
|
|
export * from "../agents/tools/web-fetch-utils.js";
|
|
export * from "../tools/index.js";
|
|
// Intentional public runtime surface: channel plugins use ingress agent helpers directly.
|
|
export * from "../agents/agent-command.js";
|
|
export * from "../tts/tts.js";
|
|
|
|
export {
|
|
CLAUDE_CLI_PROFILE_ID,
|
|
CODEX_CLI_PROFILE_ID,
|
|
dedupeProfileIds,
|
|
listProfilesForProvider,
|
|
markAuthProfileSuccess,
|
|
setAuthProfileOrder,
|
|
upsertAuthProfile,
|
|
upsertAuthProfileWithLock,
|
|
repairOAuthProfileIdMismatch,
|
|
suggestOAuthProfileIdForLegacyDefault,
|
|
clearRuntimeAuthProfileStoreSnapshots,
|
|
ensureAuthProfileStore,
|
|
loadAuthProfileStoreWithoutExternalProfiles,
|
|
loadAuthProfileStoreForSecretsRuntime,
|
|
loadAuthProfileStoreForRuntime,
|
|
replaceRuntimeAuthProfileStoreSnapshots,
|
|
loadAuthProfileStore,
|
|
saveAuthProfileStore,
|
|
findPersistedAuthProfileCredential,
|
|
resolvePersistedAuthProfileOwnerAgentDir,
|
|
calculateAuthProfileCooldownMs,
|
|
clearAuthProfileCooldown,
|
|
clearExpiredCooldowns,
|
|
getSoonestCooldownExpiry,
|
|
isProfileInCooldown,
|
|
markAuthProfileCooldown,
|
|
markAuthProfileBlockedUntil,
|
|
markAuthProfileFailure,
|
|
refreshOAuthCredentialForRuntime,
|
|
resolveProfilesUnavailableReason,
|
|
resolveProfileUnusableUntilForDisplay,
|
|
resolveApiKeyForProfile,
|
|
resolveAuthProfileDisplayLabel,
|
|
formatAuthDoctorHint,
|
|
resolveAuthProfileEligibility,
|
|
resolveAuthProfileOrder,
|
|
resolveAuthStorePathForDisplay,
|
|
} from "../agents/auth-profiles.js";
|
|
export type {
|
|
ApiKeyCredential,
|
|
AuthCredentialReasonCode,
|
|
AuthProfileBlockedReason,
|
|
AuthProfileBlockedSource,
|
|
AuthProfileCredential,
|
|
AuthProfileEligibilityReasonCode,
|
|
AuthProfileFailureReason,
|
|
AuthProfileIdRepairResult,
|
|
AuthProfileStore,
|
|
OAuthCredential,
|
|
ProfileUsageStats,
|
|
TokenCredential,
|
|
TokenExpiryState,
|
|
} from "../agents/auth-profiles.js";
|