@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.
- package/dist/config/mesh-config.d.ts +5 -28
- package/dist/index.d.ts +2 -2
- package/dist/index.js +243 -246
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +243 -241
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/contracts.d.ts +8 -5
- package/dist/mesh/mesh-reconcile-loop.d.ts +4 -0
- package/dist/mesh/mesh-runtime-store.d.ts +47 -2
- package/dist/mesh/mesh-unresolved-forward-outbox.d.ts +4 -0
- package/dist/repo-mesh-types.d.ts +7 -13
- package/dist/types.d.ts +15 -6
- package/package.json +3 -3
- package/src/commands/chat-commands-read.ts +81 -60
- package/src/commands/med-family/mesh-crud.ts +8 -62
- package/src/config/mesh-config.ts +9 -140
- package/src/index.ts +1 -2
- package/src/mesh/contracts.ts +17 -11
- package/src/mesh/coordinator-prompt.ts +3 -6
- package/src/mesh/mesh-event-forwarding.ts +38 -102
- package/src/mesh/mesh-reconcile-loop.ts +157 -2
- package/src/mesh/mesh-runtime-store.ts +118 -3
- package/src/mesh/mesh-unresolved-forward-outbox.ts +30 -0
- package/src/repo-mesh-types.ts +7 -13
- package/src/types.ts +21 -6
|
@@ -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 {
|
|
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
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
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,
|
|
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 {
|
|
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';
|