@adhdev/mesh-shared 1.0.60-rc.53 → 1.0.60-rc.54
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/brain-routing.d.ts +1 -1
- package/dist/index.js +43 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -18
- package/dist/index.mjs.map +1 -1
- package/dist/magi.d.ts +1 -1
- package/dist/mesh-tool-names.d.ts +27 -2
- package/dist/protocol/dashboard-daemon-p2p.d.ts +1 -1
- package/dist/slot-proposal.d.ts +1 -1
- package/dist/turn-ipc.d.ts +2 -2
- package/package.json +1 -1
- package/src/brain-routing.ts +1 -1
- package/src/magi.ts +1 -1
- package/src/mesh-tool-names.ts +65 -18
- package/src/slot-proposal.ts +1 -1
- package/src/turn-ipc.ts +5 -5
package/dist/brain-routing.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare function isMeshTaskDifficulty(value: unknown): value is MeshTaskD
|
|
|
58
58
|
* a value that should never have been stamped provider-blind.
|
|
59
59
|
*
|
|
60
60
|
* 2. IT FOUGHT THE SLOTS. Operators express model choice per node via
|
|
61
|
-
* capability slots (`
|
|
61
|
+
* capability slots (`mesh_node_slots` action "set"), which know the provider. A
|
|
62
62
|
* mesh-wide preset that also picks a model duplicated that decision from a
|
|
63
63
|
* position with strictly less information, and needed the modelSource
|
|
64
64
|
* ('explicit' vs 'preset') precedence machinery plus a fail-closed
|
package/dist/index.js
CHANGED
|
@@ -92,6 +92,7 @@ __export(index_exports, {
|
|
|
92
92
|
RECENT_SESSION_BUCKETS: () => RECENT_SESSION_BUCKETS,
|
|
93
93
|
RECLAIMING_SEND_REFUSALS: () => RECLAIMING_SEND_REFUSALS,
|
|
94
94
|
RELEASE_CHANNELS: () => RELEASE_CHANNELS,
|
|
95
|
+
RETIRED_MESH_TOOLS: () => RETIRED_MESH_TOOLS,
|
|
95
96
|
SEND_POLICY_MODES: () => SEND_POLICY_MODES,
|
|
96
97
|
SEND_REFUSAL_REASONS: () => SEND_REFUSAL_REASONS,
|
|
97
98
|
SERVER_STATUS_EVENT_NAMES: () => SERVER_STATUS_EVENT_NAMES,
|
|
@@ -404,6 +405,7 @@ __export(index_exports, {
|
|
|
404
405
|
renderCoordinatorWorkerSection: () => renderCoordinatorWorkerSection,
|
|
405
406
|
renderMissionBriefBlock: () => renderMissionBriefBlock,
|
|
406
407
|
renderWorkerProtocolFooter: () => renderWorkerProtocolFooter,
|
|
408
|
+
retiredMeshToolError: () => retiredMeshToolError,
|
|
407
409
|
sanitizeModelIdentifier: () => sanitizeModelIdentifier,
|
|
408
410
|
sanitizeRefusalCode: () => sanitizeRefusalCode,
|
|
409
411
|
scoreGitStatusCandidate: () => scoreGitStatusCandidate,
|
|
@@ -1085,9 +1087,7 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
1085
1087
|
"mesh_view_queue",
|
|
1086
1088
|
// GRAPH-ORCHESTRATION Phase E — the coordinator gate + graph view surface.
|
|
1087
1089
|
"mesh_graph_view",
|
|
1088
|
-
"
|
|
1089
|
-
"mesh_graph_gate_release",
|
|
1090
|
-
"mesh_graph_gate_abandon",
|
|
1090
|
+
"mesh_graph_gate",
|
|
1091
1091
|
"mesh_graph_node_patch",
|
|
1092
1092
|
"mesh_queue_cancel",
|
|
1093
1093
|
"mesh_queue_requeue",
|
|
@@ -1105,7 +1105,6 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
1105
1105
|
"mesh_approve",
|
|
1106
1106
|
"mesh_answer_question",
|
|
1107
1107
|
"mesh_list_pending_approvals",
|
|
1108
|
-
"mesh_plan_onboarding",
|
|
1109
1108
|
"mesh_create",
|
|
1110
1109
|
"mesh_add_node",
|
|
1111
1110
|
"mesh_clone_node",
|
|
@@ -1113,33 +1112,57 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
1113
1112
|
"mesh_cleanup_worktree_nodes",
|
|
1114
1113
|
"mesh_refine_node",
|
|
1115
1114
|
"mesh_refine_batch",
|
|
1116
|
-
"
|
|
1117
|
-
"mesh_change_impact_config",
|
|
1115
|
+
"mesh_config",
|
|
1118
1116
|
"mesh_init",
|
|
1119
|
-
"mesh_reinit",
|
|
1120
|
-
"mesh_write_mesh_json_config",
|
|
1121
1117
|
"mesh_refine_plan",
|
|
1122
1118
|
"mesh_cleanup_sessions",
|
|
1123
|
-
"mesh_prune_stale_direct",
|
|
1124
1119
|
"mesh_task_history",
|
|
1125
1120
|
"mesh_ledger_query",
|
|
1126
|
-
"
|
|
1127
|
-
"mesh_forget_note",
|
|
1121
|
+
"mesh_note",
|
|
1128
1122
|
"mesh_reconcile_ledger",
|
|
1129
1123
|
"mesh_mission_upsert",
|
|
1130
1124
|
"mesh_mission_list",
|
|
1131
1125
|
"mesh_review_inbox",
|
|
1132
1126
|
"mesh_magi_review",
|
|
1133
1127
|
"mesh_magi_collect",
|
|
1134
|
-
"
|
|
1135
|
-
"
|
|
1136
|
-
"
|
|
1137
|
-
"mesh_node_slots_list",
|
|
1138
|
-
"mesh_node_slots_propose",
|
|
1139
|
-
"mesh_coordinator_prompt_append_get",
|
|
1140
|
-
"mesh_coordinator_prompt_append_set"
|
|
1128
|
+
"mesh_magi_kind_panel",
|
|
1129
|
+
"mesh_node_slots",
|
|
1130
|
+
"mesh_coordinator_prompt_append"
|
|
1141
1131
|
];
|
|
1142
1132
|
var CANONICAL_MESH_TOOL_COUNT = CANONICAL_MESH_TOOL_NAMES.length;
|
|
1133
|
+
var RETIRED_MESH_TOOLS = {
|
|
1134
|
+
mesh_graph_gate_claim: {
|
|
1135
|
+
tool: "mesh_graph_gate",
|
|
1136
|
+
args: { action: "claim" },
|
|
1137
|
+
note: 'The extend-only form (claim with extend_seconds) is now action: "extend" with the same extend_seconds.'
|
|
1138
|
+
},
|
|
1139
|
+
mesh_graph_gate_release: { tool: "mesh_graph_gate", args: { action: "release" } },
|
|
1140
|
+
mesh_graph_gate_abandon: { tool: "mesh_graph_gate", args: { action: "abandon" } },
|
|
1141
|
+
// Never a published tool (it is the daemon command behind the extend verb),
|
|
1142
|
+
// but an older gate-expiry notice told coordinators to call it by this name.
|
|
1143
|
+
mesh_graph_gate_extend: { tool: "mesh_graph_gate", args: { action: "extend" } },
|
|
1144
|
+
mesh_node_slots_set: { tool: "mesh_node_slots", args: { action: "set" } },
|
|
1145
|
+
mesh_node_slots_list: { tool: "mesh_node_slots", args: { action: "list" } },
|
|
1146
|
+
mesh_node_slots_propose: { tool: "mesh_node_slots", args: { action: "propose" } },
|
|
1147
|
+
mesh_magi_kind_panel_set: { tool: "mesh_magi_kind_panel", args: { action: "set" } },
|
|
1148
|
+
mesh_magi_kind_panel_list: { tool: "mesh_magi_kind_panel", args: { action: "list" } },
|
|
1149
|
+
mesh_coordinator_prompt_append_get: { tool: "mesh_coordinator_prompt_append", args: { action: "get" } },
|
|
1150
|
+
mesh_coordinator_prompt_append_set: { tool: "mesh_coordinator_prompt_append", args: { action: "set" } },
|
|
1151
|
+
mesh_record_note: { tool: "mesh_note", args: { action: "record" } },
|
|
1152
|
+
mesh_forget_note: { tool: "mesh_note", args: { action: "forget" } },
|
|
1153
|
+
mesh_reinit: { tool: "mesh_init", args: { mode: "reinit" } },
|
|
1154
|
+
mesh_refine_config: { tool: "mesh_config", args: { kind: "refine" } },
|
|
1155
|
+
mesh_change_impact_config: { tool: "mesh_config", args: { kind: "change_impact" } },
|
|
1156
|
+
mesh_write_mesh_json_config: { tool: "mesh_config", args: { kind: "mesh_json" } },
|
|
1157
|
+
mesh_plan_onboarding: { tool: "mesh_create", args: { mode: "plan" } },
|
|
1158
|
+
mesh_prune_stale_direct: { tool: "mesh_cleanup_sessions", args: { mode: "prune_stale_direct" } }
|
|
1159
|
+
};
|
|
1160
|
+
function retiredMeshToolError(name) {
|
|
1161
|
+
const entry = Object.prototype.hasOwnProperty.call(RETIRED_MESH_TOOLS, name) ? RETIRED_MESH_TOOLS[name] : void 0;
|
|
1162
|
+
if (!entry) return null;
|
|
1163
|
+
const discriminator = Object.entries(entry.args).map(([k, v]) => `${k}: "${v}"`).join(", ");
|
|
1164
|
+
return `Tool "${name}" was retired (merged into ${entry.tool}). Call ${entry.tool} with ${discriminator} and the same other arguments.` + (entry.note ? ` ${entry.note}` : "");
|
|
1165
|
+
}
|
|
1143
1166
|
|
|
1144
1167
|
// src/mesh-status-probe.ts
|
|
1145
1168
|
var STATUS_PROBE_ARG_KEY = "_statusProbe";
|
|
@@ -3611,6 +3634,7 @@ function touchedFilesOutsideOwnership(touched, owned) {
|
|
|
3611
3634
|
RECENT_SESSION_BUCKETS,
|
|
3612
3635
|
RECLAIMING_SEND_REFUSALS,
|
|
3613
3636
|
RELEASE_CHANNELS,
|
|
3637
|
+
RETIRED_MESH_TOOLS,
|
|
3614
3638
|
SEND_POLICY_MODES,
|
|
3615
3639
|
SEND_REFUSAL_REASONS,
|
|
3616
3640
|
SERVER_STATUS_EVENT_NAMES,
|
|
@@ -3923,6 +3947,7 @@ function touchedFilesOutsideOwnership(touched, owned) {
|
|
|
3923
3947
|
renderCoordinatorWorkerSection,
|
|
3924
3948
|
renderMissionBriefBlock,
|
|
3925
3949
|
renderWorkerProtocolFooter,
|
|
3950
|
+
retiredMeshToolError,
|
|
3926
3951
|
sanitizeModelIdentifier,
|
|
3927
3952
|
sanitizeRefusalCode,
|
|
3928
3953
|
scoreGitStatusCandidate,
|