@adhdev/mesh-shared 1.0.60-rc.52 → 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/index.mjs
CHANGED
|
@@ -663,9 +663,7 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
663
663
|
"mesh_view_queue",
|
|
664
664
|
// GRAPH-ORCHESTRATION Phase E — the coordinator gate + graph view surface.
|
|
665
665
|
"mesh_graph_view",
|
|
666
|
-
"
|
|
667
|
-
"mesh_graph_gate_release",
|
|
668
|
-
"mesh_graph_gate_abandon",
|
|
666
|
+
"mesh_graph_gate",
|
|
669
667
|
"mesh_graph_node_patch",
|
|
670
668
|
"mesh_queue_cancel",
|
|
671
669
|
"mesh_queue_requeue",
|
|
@@ -683,7 +681,6 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
683
681
|
"mesh_approve",
|
|
684
682
|
"mesh_answer_question",
|
|
685
683
|
"mesh_list_pending_approvals",
|
|
686
|
-
"mesh_plan_onboarding",
|
|
687
684
|
"mesh_create",
|
|
688
685
|
"mesh_add_node",
|
|
689
686
|
"mesh_clone_node",
|
|
@@ -691,33 +688,57 @@ var CANONICAL_MESH_TOOL_NAMES = [
|
|
|
691
688
|
"mesh_cleanup_worktree_nodes",
|
|
692
689
|
"mesh_refine_node",
|
|
693
690
|
"mesh_refine_batch",
|
|
694
|
-
"
|
|
695
|
-
"mesh_change_impact_config",
|
|
691
|
+
"mesh_config",
|
|
696
692
|
"mesh_init",
|
|
697
|
-
"mesh_reinit",
|
|
698
|
-
"mesh_write_mesh_json_config",
|
|
699
693
|
"mesh_refine_plan",
|
|
700
694
|
"mesh_cleanup_sessions",
|
|
701
|
-
"mesh_prune_stale_direct",
|
|
702
695
|
"mesh_task_history",
|
|
703
696
|
"mesh_ledger_query",
|
|
704
|
-
"
|
|
705
|
-
"mesh_forget_note",
|
|
697
|
+
"mesh_note",
|
|
706
698
|
"mesh_reconcile_ledger",
|
|
707
699
|
"mesh_mission_upsert",
|
|
708
700
|
"mesh_mission_list",
|
|
709
701
|
"mesh_review_inbox",
|
|
710
702
|
"mesh_magi_review",
|
|
711
703
|
"mesh_magi_collect",
|
|
712
|
-
"
|
|
713
|
-
"
|
|
714
|
-
"
|
|
715
|
-
"mesh_node_slots_list",
|
|
716
|
-
"mesh_node_slots_propose",
|
|
717
|
-
"mesh_coordinator_prompt_append_get",
|
|
718
|
-
"mesh_coordinator_prompt_append_set"
|
|
704
|
+
"mesh_magi_kind_panel",
|
|
705
|
+
"mesh_node_slots",
|
|
706
|
+
"mesh_coordinator_prompt_append"
|
|
719
707
|
];
|
|
720
708
|
var CANONICAL_MESH_TOOL_COUNT = CANONICAL_MESH_TOOL_NAMES.length;
|
|
709
|
+
var RETIRED_MESH_TOOLS = {
|
|
710
|
+
mesh_graph_gate_claim: {
|
|
711
|
+
tool: "mesh_graph_gate",
|
|
712
|
+
args: { action: "claim" },
|
|
713
|
+
note: 'The extend-only form (claim with extend_seconds) is now action: "extend" with the same extend_seconds.'
|
|
714
|
+
},
|
|
715
|
+
mesh_graph_gate_release: { tool: "mesh_graph_gate", args: { action: "release" } },
|
|
716
|
+
mesh_graph_gate_abandon: { tool: "mesh_graph_gate", args: { action: "abandon" } },
|
|
717
|
+
// Never a published tool (it is the daemon command behind the extend verb),
|
|
718
|
+
// but an older gate-expiry notice told coordinators to call it by this name.
|
|
719
|
+
mesh_graph_gate_extend: { tool: "mesh_graph_gate", args: { action: "extend" } },
|
|
720
|
+
mesh_node_slots_set: { tool: "mesh_node_slots", args: { action: "set" } },
|
|
721
|
+
mesh_node_slots_list: { tool: "mesh_node_slots", args: { action: "list" } },
|
|
722
|
+
mesh_node_slots_propose: { tool: "mesh_node_slots", args: { action: "propose" } },
|
|
723
|
+
mesh_magi_kind_panel_set: { tool: "mesh_magi_kind_panel", args: { action: "set" } },
|
|
724
|
+
mesh_magi_kind_panel_list: { tool: "mesh_magi_kind_panel", args: { action: "list" } },
|
|
725
|
+
mesh_coordinator_prompt_append_get: { tool: "mesh_coordinator_prompt_append", args: { action: "get" } },
|
|
726
|
+
mesh_coordinator_prompt_append_set: { tool: "mesh_coordinator_prompt_append", args: { action: "set" } },
|
|
727
|
+
mesh_record_note: { tool: "mesh_note", args: { action: "record" } },
|
|
728
|
+
mesh_forget_note: { tool: "mesh_note", args: { action: "forget" } },
|
|
729
|
+
mesh_reinit: { tool: "mesh_init", args: { mode: "reinit" } },
|
|
730
|
+
mesh_refine_config: { tool: "mesh_config", args: { kind: "refine" } },
|
|
731
|
+
mesh_change_impact_config: { tool: "mesh_config", args: { kind: "change_impact" } },
|
|
732
|
+
mesh_write_mesh_json_config: { tool: "mesh_config", args: { kind: "mesh_json" } },
|
|
733
|
+
mesh_plan_onboarding: { tool: "mesh_create", args: { mode: "plan" } },
|
|
734
|
+
mesh_prune_stale_direct: { tool: "mesh_cleanup_sessions", args: { mode: "prune_stale_direct" } }
|
|
735
|
+
};
|
|
736
|
+
function retiredMeshToolError(name) {
|
|
737
|
+
const entry = Object.prototype.hasOwnProperty.call(RETIRED_MESH_TOOLS, name) ? RETIRED_MESH_TOOLS[name] : void 0;
|
|
738
|
+
if (!entry) return null;
|
|
739
|
+
const discriminator = Object.entries(entry.args).map(([k, v]) => `${k}: "${v}"`).join(", ");
|
|
740
|
+
return `Tool "${name}" was retired (merged into ${entry.tool}). Call ${entry.tool} with ${discriminator} and the same other arguments.` + (entry.note ? ` ${entry.note}` : "");
|
|
741
|
+
}
|
|
721
742
|
|
|
722
743
|
// src/mesh-status-probe.ts
|
|
723
744
|
var STATUS_PROBE_ARG_KEY = "_statusProbe";
|
|
@@ -3188,6 +3209,7 @@ export {
|
|
|
3188
3209
|
RECENT_SESSION_BUCKETS,
|
|
3189
3210
|
RECLAIMING_SEND_REFUSALS,
|
|
3190
3211
|
RELEASE_CHANNELS,
|
|
3212
|
+
RETIRED_MESH_TOOLS,
|
|
3191
3213
|
SEND_POLICY_MODES,
|
|
3192
3214
|
SEND_REFUSAL_REASONS,
|
|
3193
3215
|
SERVER_STATUS_EVENT_NAMES,
|
|
@@ -3500,6 +3522,7 @@ export {
|
|
|
3500
3522
|
renderCoordinatorWorkerSection,
|
|
3501
3523
|
renderMissionBriefBlock,
|
|
3502
3524
|
renderWorkerProtocolFooter,
|
|
3525
|
+
retiredMeshToolError,
|
|
3503
3526
|
sanitizeModelIdentifier,
|
|
3504
3527
|
sanitizeRefusalCode,
|
|
3505
3528
|
scoreGitStatusCandidate,
|