@adhdev/daemon-core 0.9.76-rc.57 → 0.9.76-rc.58
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/repo-mesh-types.d.ts +14 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/mesh/coordinator-prompt.ts +1 -1
- package/src/repo-mesh-types.ts +15 -0
|
@@ -56,12 +56,24 @@ export interface RepoMeshPolicy {
|
|
|
56
56
|
*/
|
|
57
57
|
sessionCleanupOnNodeRemove?: RepoMeshSessionCleanupMode;
|
|
58
58
|
}
|
|
59
|
+
export interface RepoMeshRelatedRepo {
|
|
60
|
+
/** Stable display label for an explicitly configured associated checkout. */
|
|
61
|
+
label: string;
|
|
62
|
+
/** Absolute checkout/workspace path for git freshness probes. */
|
|
63
|
+
workspace: string;
|
|
64
|
+
}
|
|
59
65
|
export interface RepoMeshNodePolicy {
|
|
60
66
|
readOnly?: boolean;
|
|
61
67
|
canPush?: boolean;
|
|
62
68
|
maxConcurrentSessions?: number;
|
|
63
69
|
/** Ordered provider preference used when mesh_launch_session omits an explicit type. */
|
|
64
70
|
providerPriority?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Optional associated/external repos that must be checked alongside this node.
|
|
73
|
+
* These are explicit policy/config entries only; Repo Mesh does not auto-discover
|
|
74
|
+
* sibling paths so freshness checks stay fail-closed and non-surprising.
|
|
75
|
+
*/
|
|
76
|
+
relatedRepos?: RepoMeshRelatedRepo[];
|
|
65
77
|
}
|
|
66
78
|
export declare const DEFAULT_MESH_POLICY: RepoMeshPolicy;
|
|
67
79
|
export interface RepoMeshNodeCapabilities {
|
|
@@ -162,6 +174,8 @@ export interface LocalMeshNodeEntry {
|
|
|
162
174
|
worktreeBranch?: string;
|
|
163
175
|
/** Node ID this worktree was cloned from */
|
|
164
176
|
clonedFromNodeId?: string;
|
|
177
|
+
/** Optional associated/external repos configured as node metadata. */
|
|
178
|
+
relatedRepos?: RepoMeshRelatedRepo[];
|
|
165
179
|
}
|
|
166
180
|
export interface RepoMeshStatus {
|
|
167
181
|
meshId: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -162,7 +162,7 @@ function buildRulesSection(coordinatorCliType?: string): string {
|
|
|
162
162
|
- **Delegate analysis too.** If you need to understand a bug or explore the codebase, send that investigation as a task to a node. Do not do it yourself.
|
|
163
163
|
- **Respect explicit provider requests.** If the user names an agent/provider, pass the matching provider type to \`mesh_launch_session\`: Hermes → \`hermes-cli\`, Claude Code/Claude → \`claude-cli\`, Codex → \`codex-cli\`, Gemini → \`gemini-cli\`. Never substitute \`claude-cli\` just because the coordinator itself is Claude Code.
|
|
164
164
|
- **Front-load the task message.** When calling \`mesh_send_task\`, include everything the agent needs: what files to touch, what the problem is, what the fix should look like. The agent won't ask follow-up questions.
|
|
165
|
-
- **Don't inspect code.**
|
|
165
|
+
- **Don't inspect code.** Treat delegated agent summaries as self-reports, not verification. Verify side effects via \`mesh_git_status\` (including related repo freshness when configured), not by reading source files.
|
|
166
166
|
- **Don't over-parallelize.** Start with 1-2 concurrent tasks. Scale up if they succeed. Never launch a duplicate session or second worker solely because \`mesh_read_chat\` has no final assistant message while the delegated session is still showing tool/terminal activity.
|
|
167
167
|
- **Handle failures gracefully.** If a task fails, read the chat to understand why, then retry or reassign.
|
|
168
168
|
- **Keep the user informed.** Report progress after each delegation round — one or two sentences, not a narration.
|
package/src/repo-mesh-types.ts
CHANGED
|
@@ -73,12 +73,25 @@ export interface RepoMeshPolicy {
|
|
|
73
73
|
sessionCleanupOnNodeRemove?: RepoMeshSessionCleanupMode;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export interface RepoMeshRelatedRepo {
|
|
77
|
+
/** Stable display label for an explicitly configured associated checkout. */
|
|
78
|
+
label: string;
|
|
79
|
+
/** Absolute checkout/workspace path for git freshness probes. */
|
|
80
|
+
workspace: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
76
83
|
export interface RepoMeshNodePolicy {
|
|
77
84
|
readOnly?: boolean;
|
|
78
85
|
canPush?: boolean;
|
|
79
86
|
maxConcurrentSessions?: number;
|
|
80
87
|
/** Ordered provider preference used when mesh_launch_session omits an explicit type. */
|
|
81
88
|
providerPriority?: string[];
|
|
89
|
+
/**
|
|
90
|
+
* Optional associated/external repos that must be checked alongside this node.
|
|
91
|
+
* These are explicit policy/config entries only; Repo Mesh does not auto-discover
|
|
92
|
+
* sibling paths so freshness checks stay fail-closed and non-surprising.
|
|
93
|
+
*/
|
|
94
|
+
relatedRepos?: RepoMeshRelatedRepo[];
|
|
82
95
|
}
|
|
83
96
|
|
|
84
97
|
export const DEFAULT_MESH_POLICY: RepoMeshPolicy = {
|
|
@@ -204,6 +217,8 @@ export interface LocalMeshNodeEntry {
|
|
|
204
217
|
worktreeBranch?: string;
|
|
205
218
|
/** Node ID this worktree was cloned from */
|
|
206
219
|
clonedFromNodeId?: string;
|
|
220
|
+
/** Optional associated/external repos configured as node metadata. */
|
|
221
|
+
relatedRepos?: RepoMeshRelatedRepo[];
|
|
207
222
|
}
|
|
208
223
|
|
|
209
224
|
// ─── Mesh Status (runtime, not persisted) ───────
|