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/README.md +27 -27
- package/README.zh-CN.md +25 -25
- package/dist/chain-walk.d.ts +63 -77
- package/dist/chains.d.ts +32 -101
- package/dist/client/FallbacksCard.d.ts +27 -80
- package/dist/client/fallbacks-store.d.ts +71 -225
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.js +1256 -1926
- package/dist/client/locales.d.ts +59 -105
- package/dist/commands.d.ts +68 -103
- package/dist/config.d.ts +152 -105
- package/dist/gateway.d.ts +63 -109
- package/dist/index.d.ts +3 -25
- package/dist/index.js +552 -775
- package/dist/role-resolution.d.ts +14 -43
- package/dist/schema.d.ts +6 -5
- package/dist/seeds.d.ts +5 -7
- package/dist/state.d.ts +0 -42
- package/dist/subagents-seam.d.ts +23 -45
- package/dist/time-slots.d.ts +21 -24
- package/dist/tui-settings.d.ts +5 -8
- package/dist/virtual-adapter.d.ts +63 -108
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +1 -1
- package/dist/client/GeneralFallbacksRow.d.ts +0 -19
- package/dist/roles.d.ts +0 -89
- package/dist/route-allowlist.d.ts +0 -43
- package/dist/subagent-policy.d.ts +0 -137
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 {
|
|
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,
|
|
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
|
|
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
|