@adhdev/daemon-core 0.6.70 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.6.70",
3
+ "version": "0.6.72",
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",
@@ -65,13 +65,27 @@ export interface ADHDevConfig {
65
65
  // Machine nickname (user-customizable label for this machine)
66
66
  machineNickname: string | null;
67
67
 
68
- // Stable local machine ID shared by standalone and cloud daemon modes
68
+ /**
69
+ * Stable local machine ID (prefix: `mach_`) — generated locally on first run.
70
+ * Used as daemon instance key (`daemon_<machineId>`) and in status reports.
71
+ * NOT the same as the server-side D1 `machines.id` — see `registeredMachineId`.
72
+ */
69
73
  machineId?: string;
70
74
 
71
75
  // Machine secret for server auth (replaces connectionToken)
72
76
  machineSecret?: string | null;
73
77
 
74
- // Account-scoped registered machine row ID (cloud-side)
78
+ /**
79
+ * Server-side D1 `machines.id` — the row ID assigned when daemon registers via
80
+ * `POST /cli/complete`. Corresponds to `machineId` in server DO context
81
+ * (`DaemonConnection.machineId`, `StatusContext.machineId`).
82
+ *
83
+ * Naming differs from server-side `machineId` to avoid confusion with the local
84
+ * `config.machineId` (mach_ prefix) which is a different value.
85
+ *
86
+ * @deprecated Legacy bridge field — will be removed after 2026-04-06.
87
+ * Modern auth flow uses `machineSecret` (adm_) to identify machines.
88
+ */
75
89
  registeredMachineId?: string;
76
90
 
77
91
  // CLI launch history