@adhdev/daemon-core 0.9.82-rc.437 → 0.9.82-rc.439

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.
@@ -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 { MagiPanel } from '@adhdev/mesh-shared';
9
+ import type { MagiPanel, MagiKindPanelMap, MagiSlot } 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"
@@ -148,3 +148,23 @@ export declare function upsertMagiPanel(name: string, config: unknown, opts?: {
148
148
  }): MagiPanel;
149
149
  /** Remove a named panel. Returns true when a panel was removed. */
150
150
  export declare function removeMagiPanel(name: string): boolean;
151
+ /**
152
+ * Validate + normalize a kind-panel's slots. Mirrors normalizeMagiPanel's member
153
+ * normalization: provider required per slot, trims strings, drops empties, clamps
154
+ * replica counts, and additionally carries an optional per-slot `model`. Throws on
155
+ * structurally invalid input (empty list / no provider) so the write returns a clear
156
+ * error. Returns the normalized slot array.
157
+ */
158
+ export declare function normalizeMagiSlots(slots: unknown): MagiSlot[];
159
+ /** All configured kind-panels (machine-local), keyed by task_kind. Empty when none. */
160
+ export declare function listMagiKindPanels(): MagiKindPanelMap;
161
+ /** The slot list for one task_kind, or undefined when the kind is not configured. */
162
+ export declare function getMagiKindPanel(kind: string): MagiSlot[] | undefined;
163
+ /**
164
+ * Upsert the slot list for one task_kind. Unlike named panels this ALWAYS overwrites
165
+ * (a kind has exactly one binding) — the editor pushes the full desired slot set.
166
+ * Returns the normalized, persisted slots.
167
+ */
168
+ export declare function setMagiKindPanel(kind: string, slots: unknown): MagiSlot[];
169
+ /** Remove the binding for one task_kind. Returns true when a binding was removed. */
170
+ export declare function removeMagiKindPanel(kind: string): boolean;
package/dist/index.d.ts CHANGED
@@ -28,9 +28,9 @@ export { appendRecentActivity, getRecentActivity } from './config/recent-activit
28
28
  export type { RecentActivityEntry } from './config/recent-activity.js';
29
29
  export { getSavedProviderSessions, upsertSavedProviderSession } from './config/saved-sessions.js';
30
30
  export type { SavedProviderSessionEntry } from './config/saved-sessions.js';
31
- export { listMeshes, getMesh, getMeshByRepo, createMesh, updateMesh, deleteMesh, addNode, removeNode, updateNode, normalizeRepoIdentity, listMagiPanels, getMagiPanel, upsertMagiPanel, removeMagiPanel, normalizeMagiPanel, } from './config/mesh-config.js';
31
+ export { listMeshes, getMesh, getMeshByRepo, createMesh, updateMesh, deleteMesh, addNode, removeNode, updateNode, normalizeRepoIdentity, listMagiPanels, getMagiPanel, upsertMagiPanel, removeMagiPanel, normalizeMagiPanel, listMagiKindPanels, getMagiKindPanel, setMagiKindPanel, removeMagiKindPanel, normalizeMagiSlots, } from './config/mesh-config.js';
32
32
  export type { CreateMeshOptions, UpdateMeshOptions, AddNodeOptions } from './config/mesh-config.js';
33
- export type { MagiPanel, MagiPanelMember, MagiPanelMap, MagiMode, MagiTaskKind, MagiPanelDefaultKind, MagiClaim, MagiClaimStance, MagiAgentResponse, MagiResponseSource, MagiReplicaGitRef, MagiGitSkew, MagiSynthesizedResponse, MagiClusterCategory, MagiClusterMember, MagiClaimCluster, MagiSynthesis, } from '@adhdev/mesh-shared';
33
+ export type { MagiPanel, MagiPanelMember, MagiPanelMap, MagiMode, MagiTaskKind, MagiPanelDefaultKind, MagiSlot, MagiKindPanelMap, MagiClaim, MagiClaimStance, MagiAgentResponse, MagiResponseSource, MagiReplicaGitRef, MagiGitSkew, MagiSynthesizedResponse, MagiClusterCategory, MagiClusterMember, MagiClaimCluster, MagiSynthesis, } from '@adhdev/mesh-shared';
34
34
  export { MAGI_RAW_ANSWER_CAP } from '@adhdev/mesh-shared';
35
35
  export { expandDaemonIdForms, daemonIdsEquivalent, machineCoreFromDaemonId, canonicalDaemonId } from '@adhdev/mesh-shared';
36
36
  export { normalizeMeshNodeId, meshNodeIdMatches } from '@adhdev/mesh-shared';