dsh-model-switch 0.4.42 → 0.4.44

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.
@@ -23,7 +23,7 @@ import type { Context } from '@deepseek-ai/cordis';
23
23
  import type { Session } from '@deepseek-ai/dsh-session';
24
24
  import { type ProviderGroups } from './provider-group.js';
25
25
  /** Capabilities whose route can be derived per session. */
26
- export type CapabilityId = 'compaction' | 'autoReview' | 'title' | 'subagent';
26
+ export type CapabilityId = 'compaction' | 'autoReview' | 'title' | 'subagent' | 'memory';
27
27
  /** A complete pinned route; either half missing means "follow the default". */
28
28
  export interface CapabilityRoute {
29
29
  readonly provider: string;
@@ -45,6 +45,8 @@ export interface RouteBearingSettings {
45
45
  readonly compactModel?: string;
46
46
  readonly titleProvider?: string;
47
47
  readonly titleModel?: string;
48
+ readonly memoryProvider?: string;
49
+ readonly memoryModel?: string;
48
50
  readonly providerGroups?: ProviderGroups;
49
51
  }
50
52
  /**
@@ -54,6 +56,19 @@ export interface RouteBearingSettings {
54
56
  * @returns The complete pair, or undefined when the capability stays at its official/derived default.
55
57
  */
56
58
  export declare function deploymentRoute(settings: RouteBearingSettings | undefined, capability: CapabilityId): CapabilityRoute | undefined;
59
+ /**
60
+ * The distillation route one deployment should use.
61
+ *
62
+ * Distillation is a background pipeline with no session of its own, so the group
63
+ * key is the deployment default provider (the provider the profile starts
64
+ * sessions on) rather than a session's provider. A provider without a group falls
65
+ * back to the flat memory pair; an empty pair leaves the memory plugin at its own
66
+ * default.
67
+ * @param settings - live Model Switch settings.
68
+ * @param provider - the deployment default provider, when one is observable.
69
+ * @returns The complete pair, or undefined when nothing is pinned.
70
+ */
71
+ export declare function memoryRouteOf(settings: RouteBearingSettings | undefined, provider: string | undefined): CapabilityRoute | undefined;
57
72
  /** One capability's route plus the reasoning effort a subagent spawn also carries. */
58
73
  export interface SubagentRoute extends CapabilityRoute {
59
74
  readonly reasoningEffort?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-switch",
3
- "version": "0.4.42",
3
+ "version": "0.4.44",
4
4
  "description": "Explicit model routing plus composer/Plan picker for DeepSeek Harness",
5
5
  "repository": {
6
6
  "type": "git",
@@ -62,6 +62,10 @@
62
62
  "types": "./lib/types/automode-compat.d.ts",
63
63
  "default": "./lib/automode-compat.js"
64
64
  },
65
+ "./prime-memory-compat": {
66
+ "types": "./lib/types/prime-memory-compat.d.ts",
67
+ "default": "./lib/prime-memory-compat.js"
68
+ },
65
69
  "./package.json": "./package.json"
66
70
  },
67
71
  "files": [