@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.
- package/dist/config/mesh-config.d.ts +10 -28
- package/dist/index.d.ts +2 -2
- package/dist/index.js +337 -249
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +337 -244
- package/dist/index.mjs.map +1 -1
- package/dist/mesh/contracts.d.ts +35 -9
- 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 +8 -14
- package/dist/types.d.ts +15 -6
- package/package.json +3 -3
- package/src/commands/chat-commands-read.ts +81 -60
- package/src/commands/low-family/coordinator-prompt.ts +53 -0
- package/src/commands/med-family/mesh-crud.ts +19 -62
- package/src/config/mesh-config.ts +21 -140
- package/src/index.ts +1 -2
- package/src/mesh/contracts.ts +59 -18
- package/src/mesh/coordinator-prompt.ts +22 -6
- package/src/mesh/mesh-event-forwarding.ts +38 -102
- package/src/mesh/mesh-events-pending.ts +20 -0
- 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 +8 -14
- 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"
|
|
@@ -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
|
|
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.
|
|
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,
|
|
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';
|