@adhdev/daemon-core 0.6.71 → 0.6.72

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.d.ts CHANGED
@@ -168,8 +168,24 @@ interface ADHDevConfig {
168
168
  /** Recently used workspaces (IDE / CLI / ACP / default) for quick resume */
169
169
  recentWorkspaceActivity?: WorkspaceActivityEntry[];
170
170
  machineNickname: string | null;
171
+ /**
172
+ * Stable local machine ID (prefix: `mach_`) — generated locally on first run.
173
+ * Used as daemon instance key (`daemon_<machineId>`) and in status reports.
174
+ * NOT the same as the server-side D1 `machines.id` — see `registeredMachineId`.
175
+ */
171
176
  machineId?: string;
172
177
  machineSecret?: string | null;
178
+ /**
179
+ * Server-side D1 `machines.id` — the row ID assigned when daemon registers via
180
+ * `POST /cli/complete`. Corresponds to `machineId` in server DO context
181
+ * (`DaemonConnection.machineId`, `StatusContext.machineId`).
182
+ *
183
+ * Naming differs from server-side `machineId` to avoid confusion with the local
184
+ * `config.machineId` (mach_ prefix) which is a different value.
185
+ *
186
+ * @deprecated Legacy bridge field — will be removed after 2026-04-06.
187
+ * Modern auth flow uses `machineSecret` (adm_) to identify machines.
188
+ */
173
189
  registeredMachineId?: string;
174
190
  cliHistory: CliHistoryEntry[];
175
191
  providerSettings: Record<string, Record<string, any>>;