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

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, MagiKindPanelMap, MagiSlot } from '@adhdev/mesh-shared';
9
+ import type { 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"
@@ -143,33 +143,10 @@ export declare function updateNode(meshId: string, nodeId: string, opts: {
143
143
  reportedDaemonBuildVersion?: string;
144
144
  }): LocalMeshNodeEntry | undefined;
145
145
  /**
146
- * Validate + normalize a panel config before persisting. Mirrors the node-config
147
- * normalization style (mesh-config addNode/updateNode): trims strings, drops
148
- * empties, requires a provider per member, clamps replica counts. Throws on
149
- * structurally invalid input so the calling tool returns a clear error rather than
150
- * writing a malformed panel.
151
- */
152
- export declare function normalizeMagiPanel(config: unknown): MagiPanel;
153
- /** All configured MAGI panels (machine-local), keyed by name. Empty when none. */
154
- export declare function listMagiPanels(): Record<string, MagiPanel>;
155
- /** A single panel by name, or undefined when not configured. */
156
- export declare function getMagiPanel(name: string): MagiPanel | undefined;
157
- /**
158
- * Upsert a named panel into meshes.json. Defaults to refusing to clobber an
159
- * existing panel (overwrite=false) — mirrors the mesh_init write/overwrite
160
- * precedent. Returns the normalized, persisted panel.
161
- */
162
- export declare function upsertMagiPanel(name: string, config: unknown, opts?: {
163
- overwrite?: boolean;
164
- }): MagiPanel;
165
- /** Remove a named panel. Returns true when a panel was removed. */
166
- export declare function removeMagiPanel(name: string): boolean;
167
- /**
168
- * Validate + normalize a kind-panel's slots. Mirrors normalizeMagiPanel's member
169
- * normalization: provider required per slot, trims strings, drops empties, clamps
170
- * replica counts, and additionally carries an optional per-slot `model`. Throws on
171
- * structurally invalid input (empty list / no provider) so the write returns a clear
172
- * error. Returns the normalized slot array.
146
+ * Validate + normalize a kind-panel's slots (the SOLE MAGI slot normalizer): provider
147
+ * required per slot, trims strings, drops empties, clamps replica counts, and carries
148
+ * an optional per-slot `model`. Throws on structurally invalid input (empty list / no
149
+ * provider) so the write returns a clear error. Returns the normalized slot array.
173
150
  */
174
151
  export declare function normalizeMagiSlots(slots: unknown): MagiSlot[];
175
152
  /** All configured kind-panels (machine-local), keyed by task_kind. Empty when none. */
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, listMagiKindPanels, getMagiKindPanel, setMagiKindPanel, removeMagiKindPanel, normalizeMagiSlots, } from './config/mesh-config.js';
31
+ export { listMeshes, getMesh, getMeshByRepo, createMesh, updateMesh, deleteMesh, addNode, removeNode, updateNode, normalizeRepoIdentity, 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, MagiSlot, MagiKindPanelMap, MagiClaim, MagiClaimStance, MagiAgentResponse, MagiResponseSource, MagiReplicaGitRef, MagiGitSkew, MagiSynthesizedResponse, MagiClusterCategory, MagiClusterMember, MagiClaimCluster, MagiSynthesis, } from '@adhdev/mesh-shared';
33
+ export type { MagiMode, MagiTaskKind, 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';