dsh-llm-fallbacks 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -34,8 +34,7 @@ import type { Context } from '@deepseek-ai/cordis';
34
34
  import { detectLegacyKeys, validateFallbacksConfig, type FallbacksConfig } from './config.ts';
35
35
  import { Config } from './schema.ts';
36
36
  import { resolveChain } from './chains.ts';
37
- import { resolveRole } from './roles.ts';
38
- import { FallbackStateStore, type BlockedSwitchAttempt, type EffectiveChainHead } from './state.ts';
37
+ import { FallbackStateStore } from './state.ts';
39
38
  import { type EffectiveRolesReadback, type SeedDeclaration, type SeedDeclareOutcome, type SeedRevertOutcome, type SeedsDeclareOptions } from './seeds.ts';
40
39
  /** The plugin row id mounted by the profile bundle patch. */
41
40
  export declare const name = "llm-fallbacks";
@@ -62,7 +61,6 @@ export interface FallbacksService {
62
61
  name: 'llm-fallbacks';
63
62
  /** Package.json version string (module-load snapshot). */
64
63
  version: string;
65
- resolveRole: typeof resolveRole;
66
64
  resolveChain: typeof resolveChain;
67
65
  validateFallbacksConfig: typeof validateFallbacksConfig;
68
66
  detectLegacyKeys: typeof detectLegacyKeys;
@@ -106,12 +104,9 @@ export { Config };
106
104
  /** The plugin's composition config — the `fallbacks` settings schema (spec §4). */
107
105
  export type Config = FallbacksConfig;
108
106
  export type { FallbackSwitchReason, FallbacksSwitchEventData } from './events.ts';
109
- export type { AgentFallbackState, BlockedSwitchAttempt, FallbackStateStore } from './state.ts';
110
- /** @internal T5 test-seam types (mirrors `BlockedSwitchAttempt`; not public API). */
111
- export type { ChainHeadSource, EffectiveChainHead } from './state.ts';
112
- export { resolveRole, type AgentLike, type Origin, } from './roles.ts';
107
+ export type { AgentFallbackState, FallbackStateStore } from './state.ts';
113
108
  export { annotateCandidates, createCandidateFilter, hasWildcardEntry, resolveCandidate, resolveChain, resolveChainViews, selectCandidates, type AnnotatedCandidate, type CandidateFilterOptions, type CandidateSkipReason, type FailingModel, } from './chains.ts';
114
- export { defaultFallbacksConfig, detectLegacyKeys, INHERIT_ROLE_ID, ROLE_ID_PATTERN, validateFallbacksConfig, type FallbacksConfig, type FallbacksConfigLogger, type FallbacksRole, type FallbacksRoles, type FallbacksRoleRule, type FallbackStrategy, type RevertPolicy, type RecoveryPolicy, } from './config.ts';
109
+ export { CHAIN_ID_PATTERN, defaultFallbacksConfig, detectLegacyKeys, INHERIT_ROLE_ID, ROLE_ID_PATTERN, validateFallbacksConfig, type FallbacksConfig, type FallbacksConfigLogger, type FallbacksRole, type FallbacksRoles, type NamedChain, type RevertPolicy, type RecoveryPolicy, } from './config.ts';
115
110
  export { parseSelector, SelectorError, type Selector, } from './selectors.ts';
116
111
  export { FallbacksSeedManager, type EffectiveRole, type EffectiveRolesReadback, type SeedConflict, type SeedDeclaration, type SeedDeclareOutcome, type SeedRevertFailReason, type SeedRevertOutcome, type SeedSkipReason, type SeedSource, type SeedsDeclareOptions, type SeedsIo, type SeedsWireStatus, } from './seeds.ts';
117
112
  export { presetRoles } from './presets.ts';
@@ -123,23 +118,6 @@ export { ROLE_PROJECTION_KEY, readRoleProjectionValue } from './role-projection-
123
118
  * request must not grow the store) without reaching into the closure.
124
119
  */
125
120
  export declare function stateStore(ctx: Context): FallbackStateStore | undefined;
126
- /**
127
- * @internal Test seam (mirrors `stateStore`): the per-agent blocked-switch
128
- * attempts recorded by the T3 allowlist gate for the plugin applied to `ctx`
129
- * (spec D1; in-memory only, issue #52). Not part of the plugin's public
130
- * surface; lets tests (and the T5 gateway projection) read blocked attempts
131
- * without reaching into the closure. `undefined` when no plugin is applied.
132
- */
133
- export declare function blockedAttempts(ctx: Context): ReadonlyMap<string, BlockedSwitchAttempt> | undefined;
134
- /**
135
- * @internal Test seam (mirrors `blockedAttempts`): the per-agent effective
136
- * chain heads recorded by the T2 inject path (source `authorized` |
137
- * `injected`) for the plugin applied to `ctx` (spec D4 / T2 M3). Not part
138
- * of the plugin's public surface; lets tests and the T5 gateway projection
139
- * read the head without reaching into the closure. `undefined` when no
140
- * plugin is applied.
141
- */
142
- export declare function chainHeads(ctx: Context): ReadonlyMap<string, EffectiveChainHead> | undefined;
143
121
  /**
144
122
  * The live config reference the Loader hands `apply` for a
145
123
  * volatile Config schema: an identity-stable `{ get }` view (cosmokit's