@adhdev/daemon-core 0.9.82-rc.494 → 0.9.82-rc.495

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.494",
3
+ "version": "0.9.82-rc.495",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "author": "vilmire",
48
48
  "license": "AGPL-3.0-or-later",
49
49
  "dependencies": {
50
- "@adhdev/mesh-shared": "0.9.82-rc.494",
51
- "@adhdev/session-host-core": "0.9.82-rc.494",
50
+ "@adhdev/mesh-shared": "0.9.82-rc.495",
51
+ "@adhdev/session-host-core": "0.9.82-rc.495",
52
52
  "@agentclientprotocol/sdk": "^0.16.1",
53
53
  "ajv": "^8.20.0",
54
54
  "ajv-formats": "^3.0.1",
@@ -89,8 +89,8 @@ export function buildRefineJobHandle(self: DaemonCommandRouter, args: {
89
89
  * The full `CommandRouterResult` (with `validationSummary.commandsRun[]` carrying
90
90
  * per-command stdout/stderr, `rejectedCommands`, `suggestions`, `suggestedConfig`,
91
91
  * the full `patchEquivalence`, and `submoduleReachability.entries[]`/`.unreachable[]`)
92
- * routinely exceeds 70KB and overflows the coordinator token limit when it rides on a
93
- * `mesh_wait_events` payload. The full detail is still persisted verbatim to the ledger
92
+ * routinely exceeds 70KB and overflows the coordinator token limit when surfaced as a
93
+ * coordinator event payload. The full detail is still persisted verbatim to the ledger
94
94
  * (`appendRefineJobLedger`) and `terminalRefineJobs`, so slimming only the EVENT loses
95
95
  * nothing — the coordinator can pull the full record on demand via
96
96
  * `evidence.ledgerCommand` / `taskHistoryKind`.
@@ -676,7 +676,6 @@ const TOOLS_SECTION = `## Available Tools
676
676
  | \`mesh_ledger_query\` | Read-only ledger query along the kind/time/node axes (complement to task-axis mesh_task_history): filter by kind, since, node, tail — answer "what happened on node X / what failed since T" without scanning transcripts |
677
677
  | \`mesh_reconcile_ledger\` | Reconcile daemon-local ledgers over P2P — import missing entries from remote nodes into the coordinator local ledger |
678
678
  | \`mesh_requeue_held_events\` | Restore recoverable held coordinator events (T6 quarantine / pending-trim) back to the pending queue; lossless, no double-requeue |
679
- | \`mesh_wait_events\` | Long-poll blocking wait for coordinator events (worker completions/approvals/nudges) up to timeoutMs — drains immediately if any are pending, else blocks until they arrive. Use this instead of busy-polling mesh_status/mesh_view_queue after dispatching work |
680
679
  | \`mesh_review_inbox\` | List local worktree nodes needing human review — merge candidates and Refinery-blocked results with evidence/diff summaries |
681
680
  | \`mesh_record_note\` | Record a durable, provider-neutral operating note (provider quirk / pattern to avoid / recovery lesson). Future coordinators see it under "## Operating Notes" at launch |
682
681
  | \`mesh_forget_note\` | Retract a stale/wrong operating note by note_id or exact text so it stops riding into future coordinators' prompts (append-only tombstone; history preserved) |
@@ -29,8 +29,8 @@ export interface P2pRelayFailurePayload extends P2pRelayFailureClassification {
29
29
  targetDaemonId?: string;
30
30
  }
31
31
 
32
- const NO_FALLBACK_REASON = 'Repo Mesh command/data-plane is P2P-only; WS/REST command fallback is intentionally disabled to preserve the transport boundary.';
33
- const P2P_NEXT_ACTION = 'Check daemon/P2P health, wait briefly for connection establishment, then do one bounded retry or requeue the mesh task after clearing stale target session metadata.';
32
+ const NO_FALLBACK_REASON = 'This mesh operation needs a live peer-to-peer connection to the node, which is not open right now. This is often transient the peer may be connecting, slow via TURN relay, or briefly offline. Wait a moment and retry, or re-establish the node\'s connection. Mesh commands use P2P only by design — there is no cloud/WS relay fallback.';
33
+ const P2P_NEXT_ACTION = 'The peer connection is recoverable. Wait a moment for the connection to establish (especially over TURN relay), then retry. If the node remains unreachable, check that the target daemon is running and online, then re-establish its connection.';
34
34
  const NON_P2P_NEXT_ACTION = 'Inspect the provider/command error and fix the underlying logic or configuration before retrying.';
35
35
 
36
36
  function messageFromError(error: unknown): string {