@adhdev/mesh-shared 1.0.82-rc.133 → 1.0.82-rc.136
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.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mesh-tool-names.d.ts +2 -2
- package/dist/task-stages.d.ts +33 -0
- package/package.json +1 -1
- package/src/mesh-tool-names.ts +1 -0
- package/src/task-stages.ts +34 -0
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* Order mirrors mcp-server `ALL_MESH_TOOLS` for easy visual diffing, but the consistency
|
|
19
19
|
* checks are set-based (order-insensitive).
|
|
20
20
|
*/
|
|
21
|
-
export declare const CANONICAL_MESH_TOOL_NAMES: readonly ["mesh_status", "mesh_route_preview", "mesh_list_nodes", "mesh_enqueue_batch", "mesh_enqueue_task", "mesh_view_queue", "mesh_queue_cancel", "mesh_task_stage_decide", "mesh_direct_cancel", "mesh_queue_requeue", "mesh_queue_revise", "mesh_light_land", "mesh_light_discard", "mesh_send_task", "mesh_read_chat", "mesh_read_debug", "mesh_read_terminal", "mesh_send_keys", "mesh_launch_session", "mesh_git_status", "mesh_read_node_logs", "mesh_fast_forward_node", "mesh_restart_daemon", "mesh_checkpoint", "mesh_approve", "mesh_answer_question", "mesh_list_pending_approvals", "mesh_create", "mesh_add_node", "mesh_reattach_source_parent", "mesh_attach_remote", "mesh_host_pairing", "mesh_clone_node", "mesh_remove_node", "mesh_retry_node_bootstrap", "mesh_recover_node_identity", "mesh_cleanup_worktree_nodes", "mesh_refine_node", "mesh_refine_batch", "mesh_config", "mesh_init", "mesh_cleanup_sessions", "mesh_task_history", "mesh_ledger_query", "mesh_note", "mesh_reconcile_ledger", "mesh_mission_upsert", "mesh_mission_list", "mesh_mission_git_eval", "mesh_release_upsert", "mesh_release_scope", "mesh_release_list", "mesh_release_record_deploy", "mesh_release_changelog_draft", "mesh_file_transfer", "mesh_review_inbox", "mesh_node_slots", "driver_list", "driver_describe", "artifact_list", "artifact_read", "artifact_register"];
|
|
21
|
+
export declare const CANONICAL_MESH_TOOL_NAMES: readonly ["mesh_status", "mesh_route_preview", "mesh_list_nodes", "mesh_enqueue_batch", "mesh_enqueue_task", "mesh_view_queue", "mesh_queue_cancel", "mesh_task_stage_decide", "mesh_direct_cancel", "mesh_queue_requeue", "mesh_queue_revise", "mesh_light_land", "mesh_light_discard", "mesh_light_continue_integration", "mesh_send_task", "mesh_read_chat", "mesh_read_debug", "mesh_read_terminal", "mesh_send_keys", "mesh_launch_session", "mesh_git_status", "mesh_read_node_logs", "mesh_fast_forward_node", "mesh_restart_daemon", "mesh_checkpoint", "mesh_approve", "mesh_answer_question", "mesh_list_pending_approvals", "mesh_create", "mesh_add_node", "mesh_reattach_source_parent", "mesh_attach_remote", "mesh_host_pairing", "mesh_clone_node", "mesh_remove_node", "mesh_retry_node_bootstrap", "mesh_recover_node_identity", "mesh_cleanup_worktree_nodes", "mesh_refine_node", "mesh_refine_batch", "mesh_config", "mesh_init", "mesh_cleanup_sessions", "mesh_task_history", "mesh_ledger_query", "mesh_note", "mesh_reconcile_ledger", "mesh_mission_upsert", "mesh_mission_list", "mesh_mission_git_eval", "mesh_release_upsert", "mesh_release_scope", "mesh_release_list", "mesh_release_record_deploy", "mesh_release_changelog_draft", "mesh_file_transfer", "mesh_review_inbox", "mesh_node_slots", "driver_list", "driver_describe", "artifact_list", "artifact_read", "artifact_register"];
|
|
22
22
|
export type CanonicalMeshToolName = typeof CANONICAL_MESH_TOOL_NAMES[number];
|
|
23
23
|
/** The count the `NN tools` barrel doc comments and consistency test assert against. */
|
|
24
|
-
export declare const CANONICAL_MESH_TOOL_COUNT:
|
|
24
|
+
export declare const CANONICAL_MESH_TOOL_COUNT: 63;
|
|
25
25
|
/**
|
|
26
26
|
* Tool names retired by the 2026-09-26 tool-surface consolidation (60 → 48).
|
|
27
27
|
* Every capability behind them is still reachable: each retired name maps to the
|
package/dist/task-stages.d.ts
CHANGED
|
@@ -116,6 +116,39 @@ export interface MeshTaskStageState {
|
|
|
116
116
|
reviewFingerprintUnavailable?: boolean;
|
|
117
117
|
/** True once the parent was released to a terminal by the pipeline (hold lifted). */
|
|
118
118
|
released?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Unresolved stage artifact storage failures keyed by `operationKey#evidenceSha256`.
|
|
121
|
+
* Cleared only when BOTH operationKey and payload digest match a successful registration.
|
|
122
|
+
* Full bodies live at recoveryRelPath and/or inlineEvidence (never claimed preserved without one).
|
|
123
|
+
*/
|
|
124
|
+
artifactFailures?: Record<string, MeshStageArtifactFailure>;
|
|
125
|
+
/** @deprecated Prefer artifactFailures[holdKey]; retained briefly for older readers. */
|
|
126
|
+
lastArtifactFailure?: MeshStageArtifactFailure;
|
|
127
|
+
}
|
|
128
|
+
/** One unresolved stage artifact storage failure (budget/ENOSPC/conflict/etc.). */
|
|
129
|
+
export interface MeshStageArtifactFailure {
|
|
130
|
+
kind: 'diff' | 'self_check' | 'review_verdict';
|
|
131
|
+
code: string;
|
|
132
|
+
message: string;
|
|
133
|
+
retryable: boolean;
|
|
134
|
+
/** True only when full evidence is durably reachable (recovery file and/or inlineEvidence). */
|
|
135
|
+
preserved: boolean;
|
|
136
|
+
details?: Record<string, unknown>;
|
|
137
|
+
/** Original self-check status or review verdict when storage failed after a successful inspection. */
|
|
138
|
+
inspectionStatus?: string;
|
|
139
|
+
/** Stable operation key — clear requires this AND evidenceSha256. */
|
|
140
|
+
operationKey: string;
|
|
141
|
+
/** Relative path under the stage artifact dir for the digest-named recovery payload. */
|
|
142
|
+
recoveryRelPath?: string;
|
|
143
|
+
evidenceSha256: string;
|
|
144
|
+
evidenceBytes: number;
|
|
145
|
+
/** When disk recovery write failed: admission-bounded body kept on the queue row (restart-safe). */
|
|
146
|
+
inlineEvidence?: string;
|
|
147
|
+
/** Disk writeRecovery failed (ENOSPC/fsync); see inlineEvidence or fail-closed. */
|
|
148
|
+
recoveryWriteFailed?: boolean;
|
|
149
|
+
/** Short status line only — never a substitute for the full recovery payload. */
|
|
150
|
+
evidencePreview?: string;
|
|
151
|
+
at: string;
|
|
119
152
|
}
|
|
120
153
|
export interface MeshReviewFinding {
|
|
121
154
|
id: string;
|
package/package.json
CHANGED
package/src/mesh-tool-names.ts
CHANGED
package/src/task-stages.ts
CHANGED
|
@@ -137,6 +137,40 @@ export interface MeshTaskStageState {
|
|
|
137
137
|
reviewFingerprintUnavailable?: boolean
|
|
138
138
|
/** True once the parent was released to a terminal by the pipeline (hold lifted). */
|
|
139
139
|
released?: boolean
|
|
140
|
+
/**
|
|
141
|
+
* Unresolved stage artifact storage failures keyed by `operationKey#evidenceSha256`.
|
|
142
|
+
* Cleared only when BOTH operationKey and payload digest match a successful registration.
|
|
143
|
+
* Full bodies live at recoveryRelPath and/or inlineEvidence (never claimed preserved without one).
|
|
144
|
+
*/
|
|
145
|
+
artifactFailures?: Record<string, MeshStageArtifactFailure>
|
|
146
|
+
/** @deprecated Prefer artifactFailures[holdKey]; retained briefly for older readers. */
|
|
147
|
+
lastArtifactFailure?: MeshStageArtifactFailure
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** One unresolved stage artifact storage failure (budget/ENOSPC/conflict/etc.). */
|
|
151
|
+
export interface MeshStageArtifactFailure {
|
|
152
|
+
kind: 'diff' | 'self_check' | 'review_verdict'
|
|
153
|
+
code: string
|
|
154
|
+
message: string
|
|
155
|
+
retryable: boolean
|
|
156
|
+
/** True only when full evidence is durably reachable (recovery file and/or inlineEvidence). */
|
|
157
|
+
preserved: boolean
|
|
158
|
+
details?: Record<string, unknown>
|
|
159
|
+
/** Original self-check status or review verdict when storage failed after a successful inspection. */
|
|
160
|
+
inspectionStatus?: string
|
|
161
|
+
/** Stable operation key — clear requires this AND evidenceSha256. */
|
|
162
|
+
operationKey: string
|
|
163
|
+
/** Relative path under the stage artifact dir for the digest-named recovery payload. */
|
|
164
|
+
recoveryRelPath?: string
|
|
165
|
+
evidenceSha256: string
|
|
166
|
+
evidenceBytes: number
|
|
167
|
+
/** When disk recovery write failed: admission-bounded body kept on the queue row (restart-safe). */
|
|
168
|
+
inlineEvidence?: string
|
|
169
|
+
/** Disk writeRecovery failed (ENOSPC/fsync); see inlineEvidence or fail-closed. */
|
|
170
|
+
recoveryWriteFailed?: boolean
|
|
171
|
+
/** Short status line only — never a substitute for the full recovery payload. */
|
|
172
|
+
evidencePreview?: string
|
|
173
|
+
at: string
|
|
140
174
|
}
|
|
141
175
|
|
|
142
176
|
export interface MeshReviewFinding {
|