@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 +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config/config.ts +16 -2
package/package.json
CHANGED
package/src/config/config.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|