@reticlehq/core 3.7.0 → 3.8.0
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/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +64 -64
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -8
- package/dist/artifacts/flow-results.d.ts +11 -0
- package/dist/artifacts/flow-types.d.ts +164 -118
- package/dist/artifacts/flow-types.js +12 -0
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- package/dist/artifacts/harness-map.d.ts +6 -6
- package/dist/artifacts/impact.d.ts +77 -80
- package/dist/artifacts/impact.js +34 -17
- package/dist/artifacts/journal.d.ts +25 -6
- package/dist/artifacts/journal.js +13 -0
- package/dist/artifacts/prompt-context.d.ts +12 -0
- package/dist/artifacts/prompt-context.js +14 -3
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +22 -22
- package/dist/hud-entry.js +1 -1
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +22 -1
- package/dist/onboarding.js +19 -0
- package/dist/registry/dev-server-registry.d.ts +2 -2
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +116 -1
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/hello-message.json +21 -0
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +24 -1
- package/dist/telemetry-bug.d.ts +6 -6
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +14 -0
- package/dist/telemetry-feedback.js +19 -0
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +23 -8
- package/dist/telemetry-session.js +15 -4
- package/dist/telemetry-signals.d.ts +227 -9
- package/dist/telemetry-signals.js +88 -1
- package/dist/telemetry.d.ts +379 -72
- package/dist/telemetry.js +71 -5
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +3 -34
- package/dist/verdict/instrumentation-coverage.js +14 -58
- package/dist/verdict/instrumentation-gap.d.ts +79 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +2 -1
- package/dist/verdict/predicate.js +103 -12
- package/dist/verdict/property-assertion.d.ts +2 -2
- package/dist/verdict/run-report.d.ts +166 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +36 -2
- package/dist/verdict/security.js +94 -14
- package/dist/verdict/verification-run.d.ts +95 -38
- package/dist/verdict/verification-run.js +33 -2
- package/dist/verdict/verify-progress.d.ts +6 -6
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +35 -1
- package/dist/wire/constants/event-types.js +33 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-env.d.ts +138 -0
- package/dist/wire/constants/reticle-env.js +138 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +150 -36
- package/dist/wire/event-payloads.js +83 -16
- package/dist/wire/messages.d.ts +102 -36
- package/dist/wire/messages.js +16 -0
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +90 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +12 -6
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +138 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +73 -48
- package/package.json +5 -1
|
@@ -59,12 +59,15 @@ export declare const EventType: {
|
|
|
59
59
|
/** element focus moved — `data: { to, from, toBody }`. Focus dropping to body after an act is a regression. */
|
|
60
60
|
readonly FOCUS_CHANGE: "focus.change";
|
|
61
61
|
/**
|
|
62
|
-
* a form field's value moved — `data: { field, kind, value?, redacted?, length }`.
|
|
62
|
+
* a form field's value moved — `data: { field, kind, value?, checked?, previous?, previousChecked?, redacted?, length }`.
|
|
63
63
|
*
|
|
64
64
|
* The DOM observer never saw this: `value` is in its attribute allowlist, but React and every
|
|
65
65
|
* controlled input set the PROPERTY, so `MutationObserver` does not fire. `value` is omitted and
|
|
66
66
|
* `redacted` set for a password, a sensitive name, or a payment autocomplete hint; `length` is
|
|
67
67
|
* always present, because "it was wiped" is assertable without carrying anybody's data.
|
|
68
|
+
* `checked` is the checkbox/radio property (`value` there is the HTML value, usually `"on"`).
|
|
69
|
+
* `kind: "settled"` is a read after the action's handlers; `previous` / `previousChecked` are
|
|
70
|
+
* the pre-action reading, so a restore is distinguishable from a render.
|
|
68
71
|
*/
|
|
69
72
|
readonly FIELD_CHANGE: "field.change";
|
|
70
73
|
/** browser → bridge: a human recording compiled in-page. */
|
|
@@ -118,5 +121,36 @@ export declare const EventType: {
|
|
|
118
121
|
* off the wire before the buffer, so no verdict, settle or agent read ever sees it.
|
|
119
122
|
*/
|
|
120
123
|
readonly HUD_USED: "hud.used";
|
|
124
|
+
/**
|
|
125
|
+
* A `<video>` or `<audio>` changed playback state: `data: { event, tag, currentTime, duration?,
|
|
126
|
+
* readyState, paused }`. The event's own `t` orders it against the network, which is what a media
|
|
127
|
+
* defect ("Ready before the response arrived") is: an ordering in time no DOM count shows.
|
|
128
|
+
*/
|
|
129
|
+
readonly MEDIA_STATE: "media.state";
|
|
130
|
+
/**
|
|
131
|
+
* A `<canvas>` drew something different: `data: { digest, width, height, mean }`. A hash of a
|
|
132
|
+
* 16x16 sample of its pixels and their mean colour, emitted only when the digest changes. What a
|
|
133
|
+
* canvas shows never reaches the DOM, so without this a canvas app's output is invisible.
|
|
134
|
+
*/
|
|
135
|
+
readonly CANVAS_DIGEST: "canvas.digest";
|
|
121
136
|
};
|
|
122
137
|
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
138
|
+
/** The media events `MEDIA_STATE` reports. Not `timeupdate`: it fires several times a second. */
|
|
139
|
+
export declare const MediaEvent: {
|
|
140
|
+
readonly PLAY: "play";
|
|
141
|
+
readonly PLAYING: "playing";
|
|
142
|
+
readonly PAUSE: "pause";
|
|
143
|
+
readonly SEEKED: "seeked";
|
|
144
|
+
readonly ENDED: "ended";
|
|
145
|
+
readonly LOADED_DATA: "loadeddata";
|
|
146
|
+
readonly CAN_PLAY: "canplay";
|
|
147
|
+
readonly WAITING: "waiting";
|
|
148
|
+
readonly ERROR: "error";
|
|
149
|
+
};
|
|
150
|
+
export type MediaEvent = (typeof MediaEvent)[keyof typeof MediaEvent];
|
|
151
|
+
/** What took a `CANVAS_DIGEST`: the 500 ms poll, or the end of an act (inside its window). */
|
|
152
|
+
export declare const CanvasTrigger: {
|
|
153
|
+
readonly POLL: "poll";
|
|
154
|
+
readonly ACT: "act";
|
|
155
|
+
};
|
|
156
|
+
export type CanvasTrigger = (typeof CanvasTrigger)[keyof typeof CanvasTrigger];
|
|
@@ -59,12 +59,15 @@ export const EventType = {
|
|
|
59
59
|
/** element focus moved — `data: { to, from, toBody }`. Focus dropping to body after an act is a regression. */
|
|
60
60
|
FOCUS_CHANGE: 'focus.change',
|
|
61
61
|
/**
|
|
62
|
-
* a form field's value moved — `data: { field, kind, value?, redacted?, length }`.
|
|
62
|
+
* a form field's value moved — `data: { field, kind, value?, checked?, previous?, previousChecked?, redacted?, length }`.
|
|
63
63
|
*
|
|
64
64
|
* The DOM observer never saw this: `value` is in its attribute allowlist, but React and every
|
|
65
65
|
* controlled input set the PROPERTY, so `MutationObserver` does not fire. `value` is omitted and
|
|
66
66
|
* `redacted` set for a password, a sensitive name, or a payment autocomplete hint; `length` is
|
|
67
67
|
* always present, because "it was wiped" is assertable without carrying anybody's data.
|
|
68
|
+
* `checked` is the checkbox/radio property (`value` there is the HTML value, usually `"on"`).
|
|
69
|
+
* `kind: "settled"` is a read after the action's handlers; `previous` / `previousChecked` are
|
|
70
|
+
* the pre-action reading, so a restore is distinguishable from a render.
|
|
68
71
|
*/
|
|
69
72
|
FIELD_CHANGE: 'field.change',
|
|
70
73
|
/** browser → bridge: a human recording compiled in-page. */
|
|
@@ -118,4 +121,33 @@ export const EventType = {
|
|
|
118
121
|
* off the wire before the buffer, so no verdict, settle or agent read ever sees it.
|
|
119
122
|
*/
|
|
120
123
|
HUD_USED: 'hud.used',
|
|
124
|
+
/**
|
|
125
|
+
* A `<video>` or `<audio>` changed playback state: `data: { event, tag, currentTime, duration?,
|
|
126
|
+
* readyState, paused }`. The event's own `t` orders it against the network, which is what a media
|
|
127
|
+
* defect ("Ready before the response arrived") is: an ordering in time no DOM count shows.
|
|
128
|
+
*/
|
|
129
|
+
MEDIA_STATE: 'media.state',
|
|
130
|
+
/**
|
|
131
|
+
* A `<canvas>` drew something different: `data: { digest, width, height, mean }`. A hash of a
|
|
132
|
+
* 16x16 sample of its pixels and their mean colour, emitted only when the digest changes. What a
|
|
133
|
+
* canvas shows never reaches the DOM, so without this a canvas app's output is invisible.
|
|
134
|
+
*/
|
|
135
|
+
CANVAS_DIGEST: 'canvas.digest',
|
|
136
|
+
};
|
|
137
|
+
/** The media events `MEDIA_STATE` reports. Not `timeupdate`: it fires several times a second. */
|
|
138
|
+
export const MediaEvent = {
|
|
139
|
+
PLAY: 'play',
|
|
140
|
+
PLAYING: 'playing',
|
|
141
|
+
PAUSE: 'pause',
|
|
142
|
+
SEEKED: 'seeked',
|
|
143
|
+
ENDED: 'ended',
|
|
144
|
+
LOADED_DATA: 'loadeddata',
|
|
145
|
+
CAN_PLAY: 'canplay',
|
|
146
|
+
WAITING: 'waiting',
|
|
147
|
+
ERROR: 'error',
|
|
148
|
+
};
|
|
149
|
+
/** What took a `CANVAS_DIGEST`: the 500 ms poll, or the end of an act (inside its window). */
|
|
150
|
+
export const CanvasTrigger = {
|
|
151
|
+
POLL: 'poll',
|
|
152
|
+
ACT: 'act',
|
|
121
153
|
};
|
|
@@ -70,8 +70,6 @@ const PLAIN_CONTROLS = [
|
|
|
70
70
|
'harness-toggle',
|
|
71
71
|
// Link this project, on the Harness page.
|
|
72
72
|
'harness-link',
|
|
73
|
-
// Below the coverage gate: copy the prompt that closes it, for the coding agent.
|
|
74
|
-
'harness-copy-prompt',
|
|
75
73
|
// The coding-agent block on the Agent Log: copy a prompt when none is connected.
|
|
76
74
|
'agent-copy',
|
|
77
75
|
// "See all" below Impact's recent bugs.
|
|
@@ -56,6 +56,10 @@ export declare const HudVisibility: {
|
|
|
56
56
|
readonly REMOVED: "removed";
|
|
57
57
|
};
|
|
58
58
|
export type HudVisibility = (typeof HudVisibility)[keyof typeof HudVisibility];
|
|
59
|
+
/** Minimum Reticle SDK version supporting HUD placement/visibility controls via session tune. */
|
|
60
|
+
export declare const HUD_MIN_SDK_VERSION = "3.6.0";
|
|
61
|
+
/** Wire diagnostic returned when an agent attempts to position a HUD that was previously removed. */
|
|
62
|
+
export declare const HUD_RELOAD_TO_RESTORE = "reload to restore";
|
|
59
63
|
/** The corner an agent can move the HUD to; `bottom-right` is where it docks by default. */
|
|
60
64
|
export declare const HudCorner: {
|
|
61
65
|
readonly TOP_LEFT: "top-left";
|
|
@@ -51,6 +51,10 @@ export const HudVisibility = {
|
|
|
51
51
|
HIDDEN: 'hidden',
|
|
52
52
|
REMOVED: 'removed',
|
|
53
53
|
};
|
|
54
|
+
/** Minimum Reticle SDK version supporting HUD placement/visibility controls via session tune. */
|
|
55
|
+
export const HUD_MIN_SDK_VERSION = '3.6.0';
|
|
56
|
+
/** Wire diagnostic returned when an agent attempts to position a HUD that was previously removed. */
|
|
57
|
+
export const HUD_RELOAD_TO_RESTORE = 'reload to restore';
|
|
54
58
|
/** The corner an agent can move the HUD to; `bottom-right` is where it docks by default. */
|
|
55
59
|
export const HudCorner = {
|
|
56
60
|
TOP_LEFT: 'top-left',
|
|
@@ -8,3 +8,19 @@ export declare const MCP_SSE_PATH = "/mcp/sse";
|
|
|
8
8
|
export declare const MCP_MESSAGE_PATH = "/mcp/message";
|
|
9
9
|
/** Directory the MCP proxy was started in. One daemon serves every project, and this says which. */
|
|
10
10
|
export declare const MCP_CLIENT_DIRECTORY_HEADER = "x-reticle-client-directory";
|
|
11
|
+
/**
|
|
12
|
+
* Query parameter on the SSE connect: one id per MCP proxy process. A reconnect from the same
|
|
13
|
+
* process sends the same id, so the daemon knows it is the same agent coming back.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PROXY_ID_PARAM = "proxyId";
|
|
16
|
+
/**
|
|
17
|
+
* How long the daemon waits after the last agent detaches before it ends the browser sessions. A
|
|
18
|
+
* proxy that reconnects inside this window keeps them.
|
|
19
|
+
*/
|
|
20
|
+
export declare const AGENT_DETACH_GRACE_MS = 10000;
|
|
21
|
+
/**
|
|
22
|
+
* How long the daemon waits for a leased tab to close before it gives up on it. After this time it
|
|
23
|
+
* frees the slot and closes the browser that holds the tab, so a close that never returns cannot
|
|
24
|
+
* keep the tab open.
|
|
25
|
+
*/
|
|
26
|
+
export declare const LEASE_CLOSE_TIMEOUT_MS = 5000;
|
|
@@ -8,3 +8,19 @@ export const MCP_SSE_PATH = '/mcp/sse';
|
|
|
8
8
|
export const MCP_MESSAGE_PATH = '/mcp/message';
|
|
9
9
|
/** Directory the MCP proxy was started in. One daemon serves every project, and this says which. */
|
|
10
10
|
export const MCP_CLIENT_DIRECTORY_HEADER = 'x-reticle-client-directory';
|
|
11
|
+
/**
|
|
12
|
+
* Query parameter on the SSE connect: one id per MCP proxy process. A reconnect from the same
|
|
13
|
+
* process sends the same id, so the daemon knows it is the same agent coming back.
|
|
14
|
+
*/
|
|
15
|
+
export const PROXY_ID_PARAM = 'proxyId';
|
|
16
|
+
/**
|
|
17
|
+
* How long the daemon waits after the last agent detaches before it ends the browser sessions. A
|
|
18
|
+
* proxy that reconnects inside this window keeps them.
|
|
19
|
+
*/
|
|
20
|
+
export const AGENT_DETACH_GRACE_MS = 10_000;
|
|
21
|
+
/**
|
|
22
|
+
* How long the daemon waits for a leased tab to close before it gives up on it. After this time it
|
|
23
|
+
* frees the slot and closes the browser that holds the tab, so a close that never returns cannot
|
|
24
|
+
* keep the tab open.
|
|
25
|
+
*/
|
|
26
|
+
export const LEASE_CLOSE_TIMEOUT_MS = 5_000;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a NET_REQUEST's `responseBody` is absent, or present when the app never asked for bodies.
|
|
3
|
+
*
|
|
4
|
+
* `ERROR_STATUS` marks a body recorded only because the call failed. The other three mark a body
|
|
5
|
+
* the SDK skipped ON PURPOSE while body capture was on (#1520). Without them, a skipped body looked
|
|
6
|
+
* like capture switched off, so a body clause answered `no` and told the caller to enable a setting
|
|
7
|
+
* that was already on. No reason on a body-less call means capture was off, or the SDK predates this.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ResponseBodyReason: {
|
|
10
|
+
/** Recorded only because the response was an error; the app did not ask for bodies. */
|
|
11
|
+
readonly ERROR_STATUS: "error-status";
|
|
12
|
+
/** A stream (`text/event-stream`, ndjson): never read, because reading it would hang the app. */
|
|
13
|
+
readonly STREAMING: "streaming";
|
|
14
|
+
/** A binary or other non-text type, which is not recorded. */
|
|
15
|
+
readonly NOT_TEXT: "not-text";
|
|
16
|
+
/** A text body that could not be read before the read deadline, or at all. */
|
|
17
|
+
readonly UNREADABLE: "unreadable";
|
|
18
|
+
};
|
|
19
|
+
export type ResponseBodyReason = (typeof ResponseBodyReason)[keyof typeof ResponseBodyReason];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a NET_REQUEST's `responseBody` is absent, or present when the app never asked for bodies.
|
|
3
|
+
*
|
|
4
|
+
* `ERROR_STATUS` marks a body recorded only because the call failed. The other three mark a body
|
|
5
|
+
* the SDK skipped ON PURPOSE while body capture was on (#1520). Without them, a skipped body looked
|
|
6
|
+
* like capture switched off, so a body clause answered `no` and told the caller to enable a setting
|
|
7
|
+
* that was already on. No reason on a body-less call means capture was off, or the SDK predates this.
|
|
8
|
+
*/
|
|
9
|
+
export const ResponseBodyReason = {
|
|
10
|
+
/** Recorded only because the response was an error; the app did not ask for bodies. */
|
|
11
|
+
ERROR_STATUS: 'error-status',
|
|
12
|
+
/** A stream (`text/event-stream`, ndjson): never read, because reading it would hang the app. */
|
|
13
|
+
STREAMING: 'streaming',
|
|
14
|
+
/** A binary or other non-text type, which is not recorded. */
|
|
15
|
+
NOT_TEXT: 'not-text',
|
|
16
|
+
/** A text body that could not be read before the read deadline, or at all. */
|
|
17
|
+
UNREADABLE: 'unreadable',
|
|
18
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every environment variable Reticle reads, named once. A misspelled inline env string silently
|
|
3
|
+
* disables the control it gates (e.g. a typo'd `RETICLE_TOKEN` would disable auth) — so the names live
|
|
4
|
+
* here and nowhere else. The values are the literal process.env keys.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ReticleEnv: {
|
|
7
|
+
/** "0"/"false"/"off" turns off telemetry and every optional outbound call; DO_NOT_TRACK too. */
|
|
8
|
+
readonly TELEMETRY: "RETICLE_TELEMETRY";
|
|
9
|
+
readonly DO_NOT_TRACK: "DO_NOT_TRACK";
|
|
10
|
+
/** Shared-secret the browser SDK must present in HELLO; absent ⇒ loopback-trust only. */
|
|
11
|
+
readonly TOKEN: "RETICLE_TOKEN";
|
|
12
|
+
/** Bridge bind host. Defaults to loopback; setting anything else is opt-in remote exposure. */
|
|
13
|
+
readonly HOST: "RETICLE_HOST";
|
|
14
|
+
/** Comma-separated WS Origin allow-list for the bridge. */
|
|
15
|
+
readonly ALLOWED_ORIGINS: "RETICLE_ALLOWED_ORIGINS";
|
|
16
|
+
/** Bridge/daemon WS port override. */
|
|
17
|
+
readonly PORT: "RETICLE_PORT";
|
|
18
|
+
/** Daemon state — pidfiles, discovery registry, logs. Defaults to `~/.reticle`. Overridable
|
|
19
|
+
* because a read-only $HOME (sandboxed agent, locked-down Windows profile, container) otherwise
|
|
20
|
+
* makes the daemon unstartable with a raw EACCES naming nothing. Reported by a Windows user. */
|
|
21
|
+
readonly STATE_DIR: "RETICLE_STATE_DIR";
|
|
22
|
+
/** Attach to an already-running browser over CDP instead of launching one. */
|
|
23
|
+
readonly CDP_URL: "RETICLE_CDP_URL";
|
|
24
|
+
/** The Chromium executable to launch, in place of Playwright's own build or an installed Chrome. */
|
|
25
|
+
readonly CHROMIUM_PATH: "RETICLE_CHROMIUM_PATH";
|
|
26
|
+
/** Max simultaneous leased headless contexts in the browser pool (resource cap). */
|
|
27
|
+
readonly MAX_CONTEXTS: "RETICLE_MAX_CONTEXTS";
|
|
28
|
+
/**
|
|
29
|
+
* Inbound events per second before the bridge starts SAMPLING (never disconnecting).
|
|
30
|
+
*
|
|
31
|
+
* Raise it for a legitimately busy app — a streaming dashboard, a live grid — rather than accept
|
|
32
|
+
* partial coverage. Free and local: the daemon runs on the same machine, so a higher ceiling costs
|
|
33
|
+
* nothing to anyone.
|
|
34
|
+
*/
|
|
35
|
+
readonly MAX_MESSAGES_PER_SECOND: "RETICLE_MAX_MESSAGES_PER_SECOND";
|
|
36
|
+
/** Bearer token required by the optional `reticle serve --http` verify endpoint. */
|
|
37
|
+
readonly VERIFY_TOKEN: "RETICLE_VERIFY_TOKEN";
|
|
38
|
+
/** Ms of continuous idleness (no agent, no browser session, no lease) before the daemon self-exits;
|
|
39
|
+
* `0` disables. Keeps Reticle from lingering on a user's machine after the editor closes. */
|
|
40
|
+
readonly IDLE_SHUTDOWN: "RETICLE_IDLE_SHUTDOWN_MS";
|
|
41
|
+
/** Idle re-check cadence (default 30s). Overridable so daemon-lifecycle-test can watch a full
|
|
42
|
+
* exit/wake cycle in seconds rather than minutes. */
|
|
43
|
+
readonly IDLE_CHECK: "RETICLE_IDLE_CHECK_MS";
|
|
44
|
+
/**
|
|
45
|
+
* Grace for a daemon with an agent ATTACHED. Longer than the base on purpose: quiet with a client
|
|
46
|
+
* present means a slow install or a thinking human, not an unwanted daemon — a flat 5 minutes was
|
|
47
|
+
* killing live runs mid-install. Derived from the base when unset.
|
|
48
|
+
*/
|
|
49
|
+
readonly IDLE_ATTACHED: "RETICLE_IDLE_ATTACHED_MS";
|
|
50
|
+
/**
|
|
51
|
+
* How often the daemon writes `reticle_daemon_alive`, so a GAP in its log is evidence it died.
|
|
52
|
+
*
|
|
53
|
+
* Overridable for the same reason the idle windows are: a spec that has to prove "a killed daemon
|
|
54
|
+
* is distinguishable from a tidy one" cannot wait 30 seconds per beat, and a spec that instead
|
|
55
|
+
* re-implements the cadence is insensitive to the thing it claims to guard.
|
|
56
|
+
*/
|
|
57
|
+
readonly HEARTBEAT: "RETICLE_HEARTBEAT_MS";
|
|
58
|
+
/** Directory holding the auto-provisioned pairing token. Defaults to ~/.reticle; relocatable for CI. */
|
|
59
|
+
readonly PAIRING_TOKEN_DIR: "RETICLE_PAIRING_TOKEN_DIR";
|
|
60
|
+
/** Force the durable causal journal off (`0`/`false`/`off`) or on (`1`/`true`/`on`); default on. */
|
|
61
|
+
readonly JOURNAL: "RETICLE_JOURNAL";
|
|
62
|
+
/**
|
|
63
|
+
* Verbose internal flow tracing for people working ON Reticle (`1`/`true`/`on`); default off.
|
|
64
|
+
*
|
|
65
|
+
* Distinct from the journal, which records what the AGENT did to the app. This records what
|
|
66
|
+
* RETICLE did to answer it: one line per internal stage, with its duration and nesting, so a
|
|
67
|
+
* developer can see which code a tool call actually went through and where the time went.
|
|
68
|
+
* Off by default and free when off — a trace on every tool call is a cost on the hot path.
|
|
69
|
+
*/
|
|
70
|
+
readonly TRACE: "RETICLE_TRACE";
|
|
71
|
+
/**
|
|
72
|
+
* How many consecutive reconnects the MCP proxy attempts before it stops retrying and goes
|
|
73
|
+
* dormant. Overridable for the same reason the idle windows are: the real budget takes MINUTES to
|
|
74
|
+
* exhaust, so the one spec that proves the proxy SURVIVES exhaustion could not run at all without
|
|
75
|
+
* shortening it. A budget nobody can reach in a test is a budget nobody tests.
|
|
76
|
+
*/
|
|
77
|
+
readonly RECONNECT_ATTEMPTS: "RETICLE_RECONNECT_ATTEMPTS";
|
|
78
|
+
/** Quiet window before an abandoned MCP stdio proxy exits; `0` disables the watcher. */
|
|
79
|
+
readonly MCP_PROXY_IDLE: "RETICLE_MCP_PROXY_IDLE_MS";
|
|
80
|
+
/**
|
|
81
|
+
* API key for the harness — the model that drives the app when no coding agent is in the loop.
|
|
82
|
+
*
|
|
83
|
+
* The standard Anthropic name, on purpose: a machine that can already run a coding agent can
|
|
84
|
+
* already run the harness, with nothing to configure. Absent ⇒ the harness is simply unavailable
|
|
85
|
+
* and every other part of Reticle is unaffected.
|
|
86
|
+
*/
|
|
87
|
+
readonly HARNESS_KEY: "ANTHROPIC_API_KEY";
|
|
88
|
+
/** Model the harness drives with. Defaults to a small one — see `DEFAULT_HARNESS_MODEL`. */
|
|
89
|
+
readonly HARNESS_MODEL: "RETICLE_HARNESS_MODEL";
|
|
90
|
+
/** Base URL for the harness's model API, for a proxy or a gateway. */
|
|
91
|
+
readonly HARNESS_BASE_URL: "RETICLE_HARNESS_BASE_URL";
|
|
92
|
+
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
93
|
+
readonly HARNESS_MAX_STEPS: "RETICLE_HARNESS_MAX_STEPS";
|
|
94
|
+
/** The free drive `reticle try` was granted, sent on every Harness call it bills. */
|
|
95
|
+
readonly DRIVE_ID: "RETICLE_DRIVE_ID";
|
|
96
|
+
/**
|
|
97
|
+
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
98
|
+
*
|
|
99
|
+
* Two drivers exist because the driver's job turns out not to need a text generator. It picks the
|
|
100
|
+
* next action and says what it expects; the verdict is decided afterwards by the engine, with no
|
|
101
|
+
* model anywhere near it. A System One model answers typed questions against a state, which is
|
|
102
|
+
* exactly that job and none of the rest, so it can drive without being able to generate a
|
|
103
|
+
* sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
|
|
104
|
+
*/
|
|
105
|
+
readonly HARNESS_DRIVER: "RETICLE_HARNESS_DRIVER";
|
|
106
|
+
/**
|
|
107
|
+
* A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
|
|
108
|
+
*
|
|
109
|
+
* Users are not expected to have one. The ordinary path is the key they already minted on the
|
|
110
|
+
* platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
|
|
111
|
+
* this variable is the escape hatch that skips it, and it takes precedence when both are set so
|
|
112
|
+
* that a developer debugging the upstream is never silently talking to the proxy instead.
|
|
113
|
+
*/
|
|
114
|
+
readonly HARNESS_JEV_KEY: "JEV_API_KEY";
|
|
115
|
+
/** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
|
|
116
|
+
readonly HARNESS_JEV_URL: "RETICLE_HARNESS_JEV_URL";
|
|
117
|
+
/** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
|
|
118
|
+
readonly HARNESS_OPENAI_KEY: "OPENAI_API_KEY";
|
|
119
|
+
/** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
|
|
120
|
+
readonly HARNESS_OPENAI_MODEL: "RETICLE_HARNESS_OPENAI_MODEL";
|
|
121
|
+
/**
|
|
122
|
+
* The API key minted on the platform, and the host it belongs to.
|
|
123
|
+
*
|
|
124
|
+
* Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
|
|
125
|
+
* two names for one key and why neither may be dropped.
|
|
126
|
+
*/
|
|
127
|
+
readonly API_KEY: "RETICLE_API_KEY";
|
|
128
|
+
/** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
|
|
129
|
+
readonly CLOUD_KEY: "RETICLE_CLOUD_KEY";
|
|
130
|
+
/** The platform host. Read through `cloudUrlFrom()`, which also accepts `URL`. */
|
|
131
|
+
readonly CLOUD_URL: "RETICLE_CLOUD_URL";
|
|
132
|
+
/** The short name for `CLOUD_URL`, which people type first. `CLOUD_URL` wins when both are set. */
|
|
133
|
+
readonly URL: "RETICLE_URL";
|
|
134
|
+
/** "0"/"false"/"off" stops `reticle hook prompt` writing prompts, on this whole machine. */
|
|
135
|
+
readonly PROMPT_CAPTURE: "RETICLE_PROMPT_CAPTURE";
|
|
136
|
+
/** "0"/"false"/"off" stops the daemon's background sync, on this whole machine. */
|
|
137
|
+
readonly BACKGROUND_SYNC: "RETICLE_BACKGROUND_SYNC";
|
|
138
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every environment variable Reticle reads, named once. A misspelled inline env string silently
|
|
3
|
+
* disables the control it gates (e.g. a typo'd `RETICLE_TOKEN` would disable auth) — so the names live
|
|
4
|
+
* here and nowhere else. The values are the literal process.env keys.
|
|
5
|
+
*/
|
|
6
|
+
export const ReticleEnv = {
|
|
7
|
+
/** "0"/"false"/"off" turns off telemetry and every optional outbound call; DO_NOT_TRACK too. */
|
|
8
|
+
TELEMETRY: 'RETICLE_TELEMETRY',
|
|
9
|
+
DO_NOT_TRACK: 'DO_NOT_TRACK',
|
|
10
|
+
/** Shared-secret the browser SDK must present in HELLO; absent ⇒ loopback-trust only. */
|
|
11
|
+
TOKEN: 'RETICLE_TOKEN',
|
|
12
|
+
/** Bridge bind host. Defaults to loopback; setting anything else is opt-in remote exposure. */
|
|
13
|
+
HOST: 'RETICLE_HOST',
|
|
14
|
+
/** Comma-separated WS Origin allow-list for the bridge. */
|
|
15
|
+
ALLOWED_ORIGINS: 'RETICLE_ALLOWED_ORIGINS',
|
|
16
|
+
/** Bridge/daemon WS port override. */
|
|
17
|
+
PORT: 'RETICLE_PORT',
|
|
18
|
+
/** Daemon state — pidfiles, discovery registry, logs. Defaults to `~/.reticle`. Overridable
|
|
19
|
+
* because a read-only $HOME (sandboxed agent, locked-down Windows profile, container) otherwise
|
|
20
|
+
* makes the daemon unstartable with a raw EACCES naming nothing. Reported by a Windows user. */
|
|
21
|
+
STATE_DIR: 'RETICLE_STATE_DIR',
|
|
22
|
+
/** Attach to an already-running browser over CDP instead of launching one. */
|
|
23
|
+
CDP_URL: 'RETICLE_CDP_URL',
|
|
24
|
+
/** The Chromium executable to launch, in place of Playwright's own build or an installed Chrome. */
|
|
25
|
+
CHROMIUM_PATH: 'RETICLE_CHROMIUM_PATH',
|
|
26
|
+
/** Max simultaneous leased headless contexts in the browser pool (resource cap). */
|
|
27
|
+
MAX_CONTEXTS: 'RETICLE_MAX_CONTEXTS',
|
|
28
|
+
/**
|
|
29
|
+
* Inbound events per second before the bridge starts SAMPLING (never disconnecting).
|
|
30
|
+
*
|
|
31
|
+
* Raise it for a legitimately busy app — a streaming dashboard, a live grid — rather than accept
|
|
32
|
+
* partial coverage. Free and local: the daemon runs on the same machine, so a higher ceiling costs
|
|
33
|
+
* nothing to anyone.
|
|
34
|
+
*/
|
|
35
|
+
MAX_MESSAGES_PER_SECOND: 'RETICLE_MAX_MESSAGES_PER_SECOND',
|
|
36
|
+
/** Bearer token required by the optional `reticle serve --http` verify endpoint. */
|
|
37
|
+
VERIFY_TOKEN: 'RETICLE_VERIFY_TOKEN',
|
|
38
|
+
/** Ms of continuous idleness (no agent, no browser session, no lease) before the daemon self-exits;
|
|
39
|
+
* `0` disables. Keeps Reticle from lingering on a user's machine after the editor closes. */
|
|
40
|
+
IDLE_SHUTDOWN: 'RETICLE_IDLE_SHUTDOWN_MS',
|
|
41
|
+
/** Idle re-check cadence (default 30s). Overridable so daemon-lifecycle-test can watch a full
|
|
42
|
+
* exit/wake cycle in seconds rather than minutes. */
|
|
43
|
+
IDLE_CHECK: 'RETICLE_IDLE_CHECK_MS',
|
|
44
|
+
/**
|
|
45
|
+
* Grace for a daemon with an agent ATTACHED. Longer than the base on purpose: quiet with a client
|
|
46
|
+
* present means a slow install or a thinking human, not an unwanted daemon — a flat 5 minutes was
|
|
47
|
+
* killing live runs mid-install. Derived from the base when unset.
|
|
48
|
+
*/
|
|
49
|
+
IDLE_ATTACHED: 'RETICLE_IDLE_ATTACHED_MS',
|
|
50
|
+
/**
|
|
51
|
+
* How often the daemon writes `reticle_daemon_alive`, so a GAP in its log is evidence it died.
|
|
52
|
+
*
|
|
53
|
+
* Overridable for the same reason the idle windows are: a spec that has to prove "a killed daemon
|
|
54
|
+
* is distinguishable from a tidy one" cannot wait 30 seconds per beat, and a spec that instead
|
|
55
|
+
* re-implements the cadence is insensitive to the thing it claims to guard.
|
|
56
|
+
*/
|
|
57
|
+
HEARTBEAT: 'RETICLE_HEARTBEAT_MS',
|
|
58
|
+
/** Directory holding the auto-provisioned pairing token. Defaults to ~/.reticle; relocatable for CI. */
|
|
59
|
+
PAIRING_TOKEN_DIR: 'RETICLE_PAIRING_TOKEN_DIR',
|
|
60
|
+
/** Force the durable causal journal off (`0`/`false`/`off`) or on (`1`/`true`/`on`); default on. */
|
|
61
|
+
JOURNAL: 'RETICLE_JOURNAL',
|
|
62
|
+
/**
|
|
63
|
+
* Verbose internal flow tracing for people working ON Reticle (`1`/`true`/`on`); default off.
|
|
64
|
+
*
|
|
65
|
+
* Distinct from the journal, which records what the AGENT did to the app. This records what
|
|
66
|
+
* RETICLE did to answer it: one line per internal stage, with its duration and nesting, so a
|
|
67
|
+
* developer can see which code a tool call actually went through and where the time went.
|
|
68
|
+
* Off by default and free when off — a trace on every tool call is a cost on the hot path.
|
|
69
|
+
*/
|
|
70
|
+
TRACE: 'RETICLE_TRACE',
|
|
71
|
+
/**
|
|
72
|
+
* How many consecutive reconnects the MCP proxy attempts before it stops retrying and goes
|
|
73
|
+
* dormant. Overridable for the same reason the idle windows are: the real budget takes MINUTES to
|
|
74
|
+
* exhaust, so the one spec that proves the proxy SURVIVES exhaustion could not run at all without
|
|
75
|
+
* shortening it. A budget nobody can reach in a test is a budget nobody tests.
|
|
76
|
+
*/
|
|
77
|
+
RECONNECT_ATTEMPTS: 'RETICLE_RECONNECT_ATTEMPTS',
|
|
78
|
+
/** Quiet window before an abandoned MCP stdio proxy exits; `0` disables the watcher. */
|
|
79
|
+
MCP_PROXY_IDLE: 'RETICLE_MCP_PROXY_IDLE_MS',
|
|
80
|
+
/**
|
|
81
|
+
* API key for the harness — the model that drives the app when no coding agent is in the loop.
|
|
82
|
+
*
|
|
83
|
+
* The standard Anthropic name, on purpose: a machine that can already run a coding agent can
|
|
84
|
+
* already run the harness, with nothing to configure. Absent ⇒ the harness is simply unavailable
|
|
85
|
+
* and every other part of Reticle is unaffected.
|
|
86
|
+
*/
|
|
87
|
+
HARNESS_KEY: 'ANTHROPIC_API_KEY',
|
|
88
|
+
/** Model the harness drives with. Defaults to a small one — see `DEFAULT_HARNESS_MODEL`. */
|
|
89
|
+
HARNESS_MODEL: 'RETICLE_HARNESS_MODEL',
|
|
90
|
+
/** Base URL for the harness's model API, for a proxy or a gateway. */
|
|
91
|
+
HARNESS_BASE_URL: 'RETICLE_HARNESS_BASE_URL',
|
|
92
|
+
/** Hard ceiling on harness model turns in one drive. Bounds cost, not value. */
|
|
93
|
+
HARNESS_MAX_STEPS: 'RETICLE_HARNESS_MAX_STEPS',
|
|
94
|
+
/** The free drive `reticle try` was granted, sent on every Harness call it bills. */
|
|
95
|
+
DRIVE_ID: 'RETICLE_DRIVE_ID',
|
|
96
|
+
/**
|
|
97
|
+
* Which model backs the harness driver: `anthropic` (the default) or `jev`.
|
|
98
|
+
*
|
|
99
|
+
* Two drivers exist because the driver's job turns out not to need a text generator. It picks the
|
|
100
|
+
* next action and says what it expects; the verdict is decided afterwards by the engine, with no
|
|
101
|
+
* model anywhere near it. A System One model answers typed questions against a state, which is
|
|
102
|
+
* exactly that job and none of the rest, so it can drive without being able to generate a
|
|
103
|
+
* sentence. Unset keeps the existing behaviour for everybody who has not asked for this.
|
|
104
|
+
*/
|
|
105
|
+
HARNESS_DRIVER: 'RETICLE_HARNESS_DRIVER',
|
|
106
|
+
/**
|
|
107
|
+
* A direct Jev key, for this repo's own benchmarks and for anyone holding a TypeSafe account.
|
|
108
|
+
*
|
|
109
|
+
* Users are not expected to have one. The ordinary path is the key they already minted on the
|
|
110
|
+
* platform (`RETICLE_API_KEY`), which reaches Jev through the proxy at `RETICLE_CLOUD_URL` —
|
|
111
|
+
* this variable is the escape hatch that skips it, and it takes precedence when both are set so
|
|
112
|
+
* that a developer debugging the upstream is never silently talking to the proxy instead.
|
|
113
|
+
*/
|
|
114
|
+
HARNESS_JEV_KEY: 'JEV_API_KEY',
|
|
115
|
+
/** Base URL for the Jev API, for a proxy or a gateway. Defaults to TypeSafe's own endpoint. */
|
|
116
|
+
HARNESS_JEV_URL: 'RETICLE_HARNESS_JEV_URL',
|
|
117
|
+
/** A direct OpenAI key. As with Jev, the ordinary path is the platform key and its proxy. */
|
|
118
|
+
HARNESS_OPENAI_KEY: 'OPENAI_API_KEY',
|
|
119
|
+
/** Model the OpenAI driver uses. Defaults to a small one — see `DEFAULT_OPENAI_MODEL`. */
|
|
120
|
+
HARNESS_OPENAI_MODEL: 'RETICLE_HARNESS_OPENAI_MODEL',
|
|
121
|
+
/**
|
|
122
|
+
* The API key minted on the platform, and the host it belongs to.
|
|
123
|
+
*
|
|
124
|
+
* Read through `apiKeyFrom()`, never directly — see the note on that function for why there are
|
|
125
|
+
* two names for one key and why neither may be dropped.
|
|
126
|
+
*/
|
|
127
|
+
API_KEY: 'RETICLE_API_KEY',
|
|
128
|
+
/** The name this key had until 2026-09. Still honoured; see `apiKeyFrom()`. */
|
|
129
|
+
CLOUD_KEY: 'RETICLE_CLOUD_KEY',
|
|
130
|
+
/** The platform host. Read through `cloudUrlFrom()`, which also accepts `URL`. */
|
|
131
|
+
CLOUD_URL: 'RETICLE_CLOUD_URL',
|
|
132
|
+
/** The short name for `CLOUD_URL`, which people type first. `CLOUD_URL` wins when both are set. */
|
|
133
|
+
URL: 'RETICLE_URL',
|
|
134
|
+
/** "0"/"false"/"off" stops `reticle hook prompt` writing prompts, on this whole machine. */
|
|
135
|
+
PROMPT_CAPTURE: 'RETICLE_PROMPT_CAPTURE',
|
|
136
|
+
/** "0"/"false"/"off" stops the daemon's background sync, on this whole machine. */
|
|
137
|
+
BACKGROUND_SYNC: 'RETICLE_BACKGROUND_SYNC',
|
|
138
|
+
};
|
|
@@ -24,6 +24,11 @@ export declare const HumanControlKind: {
|
|
|
24
24
|
readonly PAUSE: "pause";
|
|
25
25
|
readonly RESUME: "resume";
|
|
26
26
|
readonly END: "end";
|
|
27
|
+
/**
|
|
28
|
+
* A note the human typed for the agent. Only an older SDK sends it: the current HUD has no note
|
|
29
|
+
* box. Protocol 1 still accepts that SDK, so keep this kind. Without it, its notes are dropped
|
|
30
|
+
* with no error.
|
|
31
|
+
*/
|
|
27
32
|
readonly MESSAGE: "message";
|
|
28
33
|
/** Human clicked ▶ on a saved flow in the panel — replay it (no agent). `text` carries the name. */
|
|
29
34
|
readonly REPLAY: "replay";
|
|
@@ -143,6 +148,12 @@ export declare const SESSION_LIFECYCLE: {
|
|
|
143
148
|
readonly DAEMON_IDLE_SHUTDOWN_MS: 300000;
|
|
144
149
|
/** How often the daemon checks whether it has gone idle. Unref'd, so it never keeps the process up. */
|
|
145
150
|
readonly DAEMON_IDLE_CHECK_MS: 30000;
|
|
151
|
+
/**
|
|
152
|
+
* An agent that attached this recently still counts as attached for the idle check. A client that
|
|
153
|
+
* starts a new MCP proxy for each turn (Codex) detaches between turns, and a used daemon must not
|
|
154
|
+
* exit and cold-start again for each turn.
|
|
155
|
+
*/
|
|
156
|
+
readonly DAEMON_AGENT_RECENT_MS: 1800000;
|
|
146
157
|
};
|
|
147
158
|
/**
|
|
148
159
|
* Coding-agent session hygiene thresholds. Coding agents (Claude Code, Codex, Cursor) often
|
|
@@ -25,6 +25,11 @@ export const HumanControlKind = {
|
|
|
25
25
|
PAUSE: 'pause',
|
|
26
26
|
RESUME: 'resume',
|
|
27
27
|
END: 'end',
|
|
28
|
+
/**
|
|
29
|
+
* A note the human typed for the agent. Only an older SDK sends it: the current HUD has no note
|
|
30
|
+
* box. Protocol 1 still accepts that SDK, so keep this kind. Without it, its notes are dropped
|
|
31
|
+
* with no error.
|
|
32
|
+
*/
|
|
28
33
|
MESSAGE: 'message',
|
|
29
34
|
/** Human clicked ▶ on a saved flow in the panel — replay it (no agent). `text` carries the name. */
|
|
30
35
|
REPLAY: 'replay',
|
|
@@ -141,6 +146,12 @@ export const SESSION_LIFECYCLE = {
|
|
|
141
146
|
DAEMON_IDLE_SHUTDOWN_MS: 300_000,
|
|
142
147
|
/** How often the daemon checks whether it has gone idle. Unref'd, so it never keeps the process up. */
|
|
143
148
|
DAEMON_IDLE_CHECK_MS: 30_000,
|
|
149
|
+
/**
|
|
150
|
+
* An agent that attached this recently still counts as attached for the idle check. A client that
|
|
151
|
+
* starts a new MCP proxy for each turn (Codex) detaches between turns, and a used daemon must not
|
|
152
|
+
* exit and cold-start again for each turn.
|
|
153
|
+
*/
|
|
154
|
+
DAEMON_AGENT_RECENT_MS: 1_800_000,
|
|
144
155
|
};
|
|
145
156
|
/**
|
|
146
157
|
* Coding-agent session hygiene thresholds. Coding agents (Claude Code, Codex, Cursor) often
|