@arcforge/types 2.0.105 → 2.0.107
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 +1 -1
- package/src/instance.ts +21 -0
package/package.json
CHANGED
package/src/instance.ts
CHANGED
|
@@ -51,4 +51,25 @@ export type AxonInstance = {
|
|
|
51
51
|
* is answering rather than inferring it from timing.
|
|
52
52
|
*/
|
|
53
53
|
job?: string
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The local control channel this process is listening on, when it runs
|
|
57
|
+
* a surface something can drive (the TUI does; a headless `axon run`
|
|
58
|
+
* does not). Absent means "this instance cannot be controlled", which
|
|
59
|
+
* is a real answer rather than a missing one.
|
|
60
|
+
*
|
|
61
|
+
* Both fields are written once at boot and true for the whole life of
|
|
62
|
+
* the process: the port is bound before this record is written and
|
|
63
|
+
* closes with the pid, so the registry's existing liveness check proves
|
|
64
|
+
* the socket too. That is why discovery needs nothing beyond this field
|
|
65
|
+
* — no announce protocol, no lockfile, no second watcher.
|
|
66
|
+
*
|
|
67
|
+
* The token exists because a listening port is reachable by any local
|
|
68
|
+
* process no matter how the store is chmod'd. The 0700 store guards
|
|
69
|
+
* this secret; this secret guards the socket.
|
|
70
|
+
*/
|
|
71
|
+
control?: {
|
|
72
|
+
port: number
|
|
73
|
+
token: string
|
|
74
|
+
}
|
|
54
75
|
}
|