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

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"
@@ -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. */
@@ -143,33 +148,10 @@ export declare function updateNode(meshId: string, nodeId: string, opts: {
143
148
  reportedDaemonBuildVersion?: string;
144
149
  }): LocalMeshNodeEntry | undefined;
145
150
  /**
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.
151
+ * Validate + normalize a kind-panel's slots (the SOLE MAGI slot normalizer): provider
152
+ * required per slot, trims strings, drops empties, clamps replica counts, and carries
153
+ * an optional per-slot `model`. Throws on structurally invalid input (empty list / no
154
+ * provider) so the write returns a clear error. Returns the normalized slot array.
173
155
  */
174
156
  export declare function normalizeMagiSlots(slots: unknown): MagiSlot[];
175
157
  /** 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';