@adhdev/daemon-core 0.9.82-rc.482 → 0.9.82-rc.484

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.
@@ -80,6 +80,10 @@ type CliStartOptions = {
80
80
  resumeSessionId?: string;
81
81
  settingsOverride?: Record<string, any>;
82
82
  extraEnv?: Record<string, string>;
83
+ /** BRAIN-ROUTING thinking axis: standard level ('low'|'medium'|'high') applied
84
+ * at launch via the provider's thinkingLaunchArgs (CLI) or setConfigOption
85
+ * ('thought_level', ACP). Best-effort — ignored by providers with no support. */
86
+ initialThinkingLevel?: string;
83
87
  };
84
88
  export interface CoordinatorDelegatedCliLaunchOptionsInput {
85
89
  cliType: string;
@@ -111,6 +115,22 @@ export interface CoordinatorDelegatedCliLaunchOptions {
111
115
  */
112
116
  export declare function resolveHostedSpawnedAtMs(attachExisting: boolean, attachStartedAtMs: number | undefined, nowMs: number): number;
113
117
  export declare function buildCoordinatorDelegatedCliLaunchOptions(input: CoordinatorDelegatedCliLaunchOptionsInput): CoordinatorDelegatedCliLaunchOptions;
118
+ /**
119
+ * Expand a provider's `modelLaunchArgs` template with the requested model, mirroring
120
+ * expandResumeArgs. `{{model}}` → the trimmed model string. Returns undefined when
121
+ * there is no template or no model (a model request without a template is a no-op —
122
+ * see startSession, where the caller logs the skip). MAGI kind-panel model axis.
123
+ */
124
+ export declare function expandModelLaunchArgs(template: string[] | undefined, model: string | undefined): string[] | undefined;
125
+ /**
126
+ * Expand a provider's `thinkingLaunchArgs` template with the requested thinking
127
+ * level, parallel to expandModelLaunchArgs. The standard level ('low'|'medium'|
128
+ * 'high') is first mapped through the provider's `thinkingLevelMap` (a level absent
129
+ * from the map passes through unchanged), then substituted into every `{{level}}`
130
+ * token. Returns undefined when there is no template or no level (best-effort; a
131
+ * thinking request without a template is a no-op). BRAIN-ROUTING thinking axis.
132
+ */
133
+ export declare function expandThinkingLaunchArgs(template: string[] | undefined, level: string | undefined, levelMap: Partial<Record<string, string>> | undefined): string[] | undefined;
114
134
  export declare function supportsExplicitSessionResume(resume?: ProviderResumeCapability): boolean;
115
135
  export declare function resolveCliSessionBinding(provider: ProviderModule | undefined, normalizedType: string, cliArgs?: string[], requestedResumeSessionId?: string): CliSessionBinding;
116
136
  export declare class DaemonCliManager {
@@ -6,7 +6,7 @@
6
6
  * uses this file as the single source of truth.
7
7
  */
8
8
  import type { LocalMeshEntry, LocalMeshNodeEntry, RepoMeshPolicy, RepoMeshNodePolicy, RepoMeshNodeCapabilities, RepoMeshCoordinatorConfig, RepoMeshHostMetadata, RepoMeshDaemonRole } from '../repo-mesh-types.js';
9
- import type { MagiKindPanelMap, MagiSlot } from '@adhdev/mesh-shared';
9
+ import type { MagiKindPanelMap, MagiSlot, DifficultyBrainMap } from '@adhdev/mesh-shared';
10
10
  /**
11
11
  * Normalize a Git remote URL into a stable identity string.
12
12
  * e.g. "git@github.com:user/repo.git" → "github.com/user/repo"
@@ -121,6 +121,11 @@ export declare function removeNode(meshId: string, nodeId: string): boolean;
121
121
  export declare function updateNode(meshId: string, nodeId: string, opts: {
122
122
  userOverrides?: Partial<RepoMeshNodeCapabilities>;
123
123
  policy?: RepoMeshNodePolicy;
124
+ /** Operator-defined custom capability tags used by mesh queue matching.
125
+ * Passing an array replaces the node's custom tags (empty/whitespace
126
+ * entries dropped, deduped); an empty result clears them. Omit to leave
127
+ * the existing tags untouched. */
128
+ capabilities?: string[];
124
129
  worktreeBootstrap?: LocalMeshNodeEntry['worktreeBootstrap'];
125
130
  /** Per-node instruction surfaced in the coordinator prompt. Pass an
126
131
  * empty string or undefined to clear it. */
@@ -161,3 +166,16 @@ export declare function getMagiKindPanel(kind: string): MagiSlot[] | undefined;
161
166
  export declare function setMagiKindPanel(kind: string, slots: unknown): MagiSlot[];
162
167
  /** Remove the binding for one task_kind. Returns true when a binding was removed. */
163
168
  export declare function removeMagiKindPanel(kind: string): boolean;
169
+ /**
170
+ * The difficulty→brain presets, machine-local. When nothing is configured yet,
171
+ * returns the sensible DEFAULT_DIFFICULTY_BRAINS so the coordinator always has a
172
+ * usable mapping (the operator can override via setDifficultyBrains). Returns a
173
+ * normalized copy — never the stored reference.
174
+ */
175
+ export declare function getDifficultyBrains(): DifficultyBrainMap;
176
+ /**
177
+ * Replace the difficulty→brain presets wholesale (the editor pushes the full map).
178
+ * Passing an empty/normalized-empty map clears the override, so getDifficultyBrains
179
+ * falls back to the defaults again. Returns the normalized, persisted map.
180
+ */
181
+ export declare function setDifficultyBrains(map: unknown): DifficultyBrainMap;