@adhdev/daemon-core 0.9.82-rc.369 → 0.9.82-rc.370

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.
@@ -75,100 +75,13 @@ export declare const MESH_FORCE_INJECT_EVENTS: ReadonlySet<string>;
75
75
  export declare function shouldForceInjectMeshEvent(eventName: unknown): boolean;
76
76
  export declare function buildRelayMetadataEvent(payload: Record<string, unknown>): Record<string, unknown>;
77
77
  export declare function handleMeshForwardEvent(components: DaemonComponents, payload: Record<string, unknown>): {
78
- success: boolean;
79
- forwarded: number;
80
- suppressed: boolean;
81
- intentionalCleanupStop: boolean;
82
- terminalLedgerEvidence?: undefined;
83
- terminalLedgerKind?: undefined;
84
- duplicateRefineTerminalEvent?: undefined;
85
- duplicateApproval?: undefined;
86
- duplicateCompletion?: undefined;
87
- duplicateStopped?: undefined;
88
- error?: undefined;
89
- } | {
90
- success: boolean;
91
- forwarded: number;
92
- suppressed: boolean;
93
- terminalLedgerEvidence: boolean;
94
- terminalLedgerKind: unknown;
95
- intentionalCleanupStop?: undefined;
96
- duplicateRefineTerminalEvent?: undefined;
97
- duplicateApproval?: undefined;
98
- duplicateCompletion?: undefined;
99
- duplicateStopped?: undefined;
100
- error?: undefined;
101
- } | {
102
- success: boolean;
103
- forwarded: number;
104
- suppressed: boolean;
105
- duplicateRefineTerminalEvent: boolean;
106
- intentionalCleanupStop?: undefined;
107
- terminalLedgerEvidence?: undefined;
108
- terminalLedgerKind?: undefined;
109
- duplicateApproval?: undefined;
110
- duplicateCompletion?: undefined;
111
- duplicateStopped?: undefined;
112
- error?: undefined;
113
- } | {
114
- success: boolean;
115
- forwarded: number;
116
- suppressed: boolean;
117
- duplicateApproval: boolean;
118
- intentionalCleanupStop?: undefined;
119
- terminalLedgerEvidence?: undefined;
120
- terminalLedgerKind?: undefined;
121
- duplicateRefineTerminalEvent?: undefined;
122
- duplicateCompletion?: undefined;
123
- duplicateStopped?: undefined;
124
- error?: undefined;
125
- } | {
126
- success: boolean;
127
- forwarded: number;
128
- suppressed: boolean;
129
- duplicateCompletion: boolean;
130
- terminalLedgerEvidence: boolean;
131
- intentionalCleanupStop?: undefined;
132
- terminalLedgerKind?: undefined;
133
- duplicateRefineTerminalEvent?: undefined;
134
- duplicateApproval?: undefined;
135
- duplicateStopped?: undefined;
136
- error?: undefined;
137
- } | {
138
- success: boolean;
139
- forwarded: number;
140
- suppressed: boolean;
141
- duplicateCompletion: boolean;
142
- intentionalCleanupStop?: undefined;
143
- terminalLedgerEvidence?: undefined;
144
- terminalLedgerKind?: undefined;
145
- duplicateRefineTerminalEvent?: undefined;
146
- duplicateApproval?: undefined;
147
- duplicateStopped?: undefined;
148
- error?: undefined;
149
- } | {
150
- success: boolean;
151
- forwarded: number;
152
- suppressed: boolean;
153
- duplicateStopped: boolean;
154
- intentionalCleanupStop?: undefined;
155
- terminalLedgerEvidence?: undefined;
156
- terminalLedgerKind?: undefined;
157
- duplicateRefineTerminalEvent?: undefined;
158
- duplicateApproval?: undefined;
159
- duplicateCompletion?: undefined;
160
- error?: undefined;
78
+ [extra: string]: unknown;
79
+ success: true;
80
+ forwarded: 0;
81
+ suppressed: true;
161
82
  } | {
162
83
  success: boolean;
163
84
  forwarded: number;
164
- suppressed?: undefined;
165
- intentionalCleanupStop?: undefined;
166
- terminalLedgerEvidence?: undefined;
167
- terminalLedgerKind?: undefined;
168
- duplicateRefineTerminalEvent?: undefined;
169
- duplicateApproval?: undefined;
170
- duplicateCompletion?: undefined;
171
- duplicateStopped?: undefined;
172
85
  error?: undefined;
173
86
  } | {
174
87
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.369",
3
+ "version": "0.9.82-rc.370",
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",
@@ -46,7 +46,7 @@
46
46
  "author": "vilmire",
47
47
  "license": "AGPL-3.0-or-later",
48
48
  "dependencies": {
49
- "@adhdev/mesh-shared": "0.9.82-rc.369",
49
+ "@adhdev/mesh-shared": "0.9.82-rc.370",
50
50
  "@adhdev/session-host-core": "*",
51
51
  "@agentclientprotocol/sdk": "^0.16.1",
52
52
  "ajv": "^8.20.0",
@@ -25,6 +25,7 @@ import type { SessionRegistry, SessionRuntimeTarget } from '../sessions/registry
25
25
  import { reconcileIdeRuntimeSessions } from '../sessions/reconcile.js';
26
26
  import { LOG } from '../logging/logger.js';
27
27
  import { resolveLegacyProviderScript, type LegacyStringScript } from './provider-script-resolver.js';
28
+ import { sha256Hex } from '../system/hash.js';
28
29
  import { MANUAL_ATTENDANCE_COMMANDS } from '../providers/manual-attendance.js';
29
30
 
30
31
  // Sub-module imports
@@ -688,7 +689,6 @@ export class DaemonCommandHandler implements CommandHelpers {
688
689
  const https = require('https') as typeof import('https');
689
690
  const fs = require('fs') as typeof import('fs');
690
691
  const path = require('path') as typeof import('path');
691
- const crypto = require('crypto') as typeof import('crypto');
692
692
  const REGISTRY = 'https://api.adhf.dev/api/v1/registry';
693
693
 
694
694
  function fetchText(url: string, timeoutMs: number): Promise<string> {
@@ -723,7 +723,7 @@ export class DaemonCommandHandler implements CommandHelpers {
723
723
  );
724
724
 
725
725
  // 3. Verify checksum.
726
- const actualChecksum = crypto.createHash('sha256').update(manifestBody, 'utf-8').digest('hex');
726
+ const actualChecksum = sha256Hex(manifestBody);
727
727
  if (actualChecksum !== meta.checksum) {
728
728
  return { success: false, error: `checksum mismatch: expected ${meta.checksum}, got ${actualChecksum}` };
729
729
  }