@reefclaw/openclaw-plugin 0.1.50 → 0.1.53
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/README.md +6 -2
- package/bridge/config.js +10 -3
- package/bridge/gateway/heartbeat-cron.d.ts +96 -2
- package/bridge/gateway/heartbeat-cron.js +274 -16
- package/bridge/gateway/tool-discovery.d.ts +1 -1
- package/bridge/gateway/tool-discovery.js +4 -0
- package/bridge/heartbeat-runs.d.ts +24 -0
- package/bridge/heartbeat-runs.js +106 -5
- package/bridge/heartbeat-transcript.d.ts +18 -1
- package/bridge/heartbeat-transcript.js +103 -19
- package/bridge/index.js +2 -2
- package/bridge/providers/emergency-commands.d.ts +26 -1
- package/bridge/providers/emergency-commands.js +74 -4
- package/bridge/providers/gateway.d.ts +27 -0
- package/bridge/providers/gateway.js +155 -14
- package/bridge/setup.js +6 -3
- package/bridge/types.d.ts +12 -0
- package/bridge/utils/relay-host.d.ts +16 -0
- package/bridge/utils/relay-host.js +30 -1
- package/config/late-wiring.d.ts +37 -0
- package/config/late-wiring.js +111 -0
- package/config/operator-halt.d.ts +60 -0
- package/config/operator-halt.js +160 -0
- package/config/plugin-config-io.d.ts +7 -0
- package/config/tool-gate.js +3 -0
- package/index.js +255 -45
- package/openclaw.plugin.json +8 -2
- package/package.json +1 -1
- package/release-integrity.json +15 -0
- package/release-notes.json +4 -1
- package/skills/reefclaw/SKILL.md +1 -1
- package/strategy/builtin-strategies.js +2 -2
- package/tools/get-market-intel.js +2 -1
- package/tools/get-risk-summary.d.ts +5 -0
- package/tools/get-risk-summary.js +5 -0
- package/tools/intel-api.d.ts +10 -0
- package/tools/intel-api.js +13 -1
- package/tools/score-setup.js +4 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Late wiring: heal a plugin that booted BEFORE its connection was saved.
|
|
2
|
+
//
|
|
3
|
+
// register() reads the connection (rc_ token + userId) exactly once. In the
|
|
4
|
+
// chat-onboarding flow the plugin is usually already installed and running
|
|
5
|
+
// when the agent saves the connection into OpenClaw's config — so the plugin
|
|
6
|
+
// used to stay token-less until a FULL process restart: every intel tool
|
|
7
|
+
// errored, the journal ingest / central-config poller / readiness reporter
|
|
8
|
+
// never started, and the agent could not find a single setup (first seen live
|
|
9
|
+
// 2026-11-23: 16 h of heartbeats, zero trades). An in-process gateway restart
|
|
10
|
+
// does not help either — the repeat register() early-returns on the process
|
|
11
|
+
// record.
|
|
12
|
+
//
|
|
13
|
+
// Each boot-time dependency that could not be wired registers a STEP here.
|
|
14
|
+
// A step re-tries its own wiring and returns true once done; pending steps are
|
|
15
|
+
// re-run (throttled) on demand — the intel tools call check() when they find
|
|
16
|
+
// no token — and by an unref'd watcher, so the whole plugin heals within
|
|
17
|
+
// seconds of the connection being saved, with no restart.
|
|
18
|
+
//
|
|
19
|
+
// Scope: this only ever ADDS wiring that a boot with the connection present
|
|
20
|
+
// would have built. It never tears anything down and never touches the order
|
|
21
|
+
// path, stops, brackets or emergency controls. Kill-switch: RC_LATE_WIRING=off.
|
|
22
|
+
import { logger } from '../logger.js';
|
|
23
|
+
const TAG = 'late-wiring';
|
|
24
|
+
export class LateWiring {
|
|
25
|
+
steps = [];
|
|
26
|
+
failed = new Set();
|
|
27
|
+
minIntervalMs;
|
|
28
|
+
watchIntervalMs;
|
|
29
|
+
now;
|
|
30
|
+
enabled;
|
|
31
|
+
lastCheckAt = Number.NEGATIVE_INFINITY;
|
|
32
|
+
running = false;
|
|
33
|
+
timer;
|
|
34
|
+
constructor(opts = {}) {
|
|
35
|
+
this.minIntervalMs = opts.minIntervalMs ?? 5_000;
|
|
36
|
+
this.watchIntervalMs = opts.watchIntervalMs ?? 30_000;
|
|
37
|
+
this.now = opts.now ?? Date.now;
|
|
38
|
+
this.enabled =
|
|
39
|
+
opts.enabled ?? (process.env.RC_LATE_WIRING ?? 'on').trim().toLowerCase() !== 'off';
|
|
40
|
+
}
|
|
41
|
+
/** Register a dependency that could not be wired at boot. */
|
|
42
|
+
add(step) {
|
|
43
|
+
this.steps.push(step);
|
|
44
|
+
}
|
|
45
|
+
get hasPending() {
|
|
46
|
+
return this.steps.length > 0;
|
|
47
|
+
}
|
|
48
|
+
get pending() {
|
|
49
|
+
return this.steps.map((s) => s.name);
|
|
50
|
+
}
|
|
51
|
+
/** Re-try every pending step, in registration order. Throttled, synchronous,
|
|
52
|
+
* never throws. Cheap when nothing is pending. */
|
|
53
|
+
check() {
|
|
54
|
+
if (!this.enabled || this.steps.length === 0 || this.running)
|
|
55
|
+
return;
|
|
56
|
+
const t = this.now();
|
|
57
|
+
// `t >= lastCheckAt` guard: a backward wall-clock step must not suppress
|
|
58
|
+
// every check until the clock catches up.
|
|
59
|
+
if (t >= this.lastCheckAt && t - this.lastCheckAt < this.minIntervalMs)
|
|
60
|
+
return;
|
|
61
|
+
this.lastCheckAt = t;
|
|
62
|
+
this.running = true;
|
|
63
|
+
try {
|
|
64
|
+
for (const step of [...this.steps]) {
|
|
65
|
+
let wired = false;
|
|
66
|
+
try {
|
|
67
|
+
wired = step.tryWire() === true;
|
|
68
|
+
}
|
|
69
|
+
catch (err) {
|
|
70
|
+
// Log once per step, then keep retrying quietly.
|
|
71
|
+
if (!this.failed.has(step.name)) {
|
|
72
|
+
this.failed.add(step.name);
|
|
73
|
+
logger.warn(TAG, `step '${step.name}' threw (will keep retrying): ${err instanceof Error ? err.message : String(err)}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (wired) {
|
|
77
|
+
const i = this.steps.indexOf(step);
|
|
78
|
+
if (i >= 0)
|
|
79
|
+
this.steps.splice(i, 1);
|
|
80
|
+
logger.info(TAG, `wired '${step.name}' after boot — no restart needed`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (this.steps.length === 0)
|
|
84
|
+
this.stop();
|
|
85
|
+
}
|
|
86
|
+
finally {
|
|
87
|
+
this.running = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** Start the background watcher (no-op when nothing is pending). */
|
|
91
|
+
startWatch() {
|
|
92
|
+
if (!this.enabled) {
|
|
93
|
+
if (this.steps.length > 0) {
|
|
94
|
+
logger.warn(TAG, `RC_LATE_WIRING=off — ${this.steps.length} dependency(ies) stay unwired until a restart: ${this.pending.join(', ')}`);
|
|
95
|
+
}
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (this.timer || this.steps.length === 0)
|
|
99
|
+
return;
|
|
100
|
+
logger.info(TAG, `${this.steps.length} dependency(ies) not wired at boot (${this.pending.join(', ')}) — watching for the connection to be saved`);
|
|
101
|
+
this.timer = setInterval(() => this.check(), this.watchIntervalMs);
|
|
102
|
+
// Never keep the process alive just for the watcher.
|
|
103
|
+
this.timer.unref?.();
|
|
104
|
+
}
|
|
105
|
+
stop() {
|
|
106
|
+
if (this.timer) {
|
|
107
|
+
clearInterval(this.timer);
|
|
108
|
+
this.timer = undefined;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type OperatorHaltMode = 'ACTIVE' | 'PAUSED' | 'STOPPED';
|
|
2
|
+
/** The ONLY tools an operator halt blocks. A denylist on purpose: a tool added
|
|
3
|
+
* tomorrow is never blocked by default (the conservative failure mode). */
|
|
4
|
+
export declare const OPERATOR_HALT_GATED_TOOLS: ReadonlySet<string>;
|
|
5
|
+
export interface OperatorHaltState {
|
|
6
|
+
mode: OperatorHaltMode;
|
|
7
|
+
/** ISO time the current halt began; null when ACTIVE. */
|
|
8
|
+
since: string | null;
|
|
9
|
+
/** Set when the state could not be read and the gate failed closed. */
|
|
10
|
+
unreadable?: string;
|
|
11
|
+
}
|
|
12
|
+
export type OperatorHaltGateMode = 'enforce' | 'shadow' | 'off';
|
|
13
|
+
export declare function resolveOperatorHaltGateMode(): OperatorHaltGateMode;
|
|
14
|
+
/** The operator's current halt. Never throws. */
|
|
15
|
+
export declare function readOperatorHalt(configPath?: string): OperatorHaltState;
|
|
16
|
+
export interface SetOperatorHaltResult {
|
|
17
|
+
ok: boolean;
|
|
18
|
+
mode: OperatorHaltMode;
|
|
19
|
+
previousMode: OperatorHaltMode;
|
|
20
|
+
since: string | null;
|
|
21
|
+
error?: string;
|
|
22
|
+
}
|
|
23
|
+
/** set_operator_halt: `mode` omitted = read the current state (no write).
|
|
24
|
+
* ACTIVE clears the halt; PAUSED / STOPPED set it. Provenance is checked by
|
|
25
|
+
* the registration (operator-only), not here. */
|
|
26
|
+
export declare function setOperatorHaltTool(args: {
|
|
27
|
+
mode?: unknown;
|
|
28
|
+
} | undefined, deps?: {
|
|
29
|
+
configPath?: string;
|
|
30
|
+
now?: () => Date;
|
|
31
|
+
}): SetOperatorHaltResult;
|
|
32
|
+
/** Structured, agent-visible result for a blocked call. Worded so the agent
|
|
33
|
+
* stops cleanly (no retry loop) and keeps managing the existing book. */
|
|
34
|
+
export declare function operatorHaltBlockedResult(name: string, state: OperatorHaltState): {
|
|
35
|
+
ok: false;
|
|
36
|
+
error: 'operator_halt';
|
|
37
|
+
tool: string;
|
|
38
|
+
mode: OperatorHaltMode;
|
|
39
|
+
since: string | null;
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
/** Minimal structural view of a registered plugin tool (same shape the other gates use). */
|
|
43
|
+
export interface OperatorHaltGateableTool {
|
|
44
|
+
name: string;
|
|
45
|
+
execute: (...args: never[]) => unknown;
|
|
46
|
+
}
|
|
47
|
+
export declare class OperatorHaltGate {
|
|
48
|
+
private readonly mode;
|
|
49
|
+
private readonly configPath;
|
|
50
|
+
/** One log line per state change, not per blocked call. */
|
|
51
|
+
private lastLoggedKey;
|
|
52
|
+
constructor(opts?: {
|
|
53
|
+
mode?: OperatorHaltGateMode;
|
|
54
|
+
configPath?: string;
|
|
55
|
+
});
|
|
56
|
+
/** The halt that blocks this call, or null. Non-gated names short-circuit
|
|
57
|
+
* FIRST, so no state, mode or file can ever touch the safety set. */
|
|
58
|
+
blocking(name: string): OperatorHaltState | null;
|
|
59
|
+
wrapTool<T extends OperatorHaltGateableTool>(tool: T, jsonResult: (data: unknown) => unknown): T;
|
|
60
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// OperatorHalt — the plugin-side enforcement of the dashboard's Pause, Kill
|
|
2
|
+
// and Flatten: while the operator has paused or stopped trading, NEW ENTRIES
|
|
3
|
+
// are refused. Everything else keeps working.
|
|
4
|
+
//
|
|
5
|
+
// Why (2026-10-24 review): Pause / Kill / Flatten only set the connector's own
|
|
6
|
+
// `agentMode` (skill/src/providers/gateway.ts) and cancel pending proposals.
|
|
7
|
+
// Nothing reached the order path, so an agent — a heartbeat beat in its own
|
|
8
|
+
// isolated session, or a chat turn — could open a position minutes after the
|
|
9
|
+
// operator pressed Pause or Kill. "Pause = no new entries" was a display.
|
|
10
|
+
//
|
|
11
|
+
// ★ SAFETY ANALYSIS (why this can never add risk to an existing book): the
|
|
12
|
+
// gate blocks ONLY the names in OPERATOR_HALT_GATED_TOOLS — exactly
|
|
13
|
+
// `create_order`, the one tool that ADDS risk (same set and same reasoning as
|
|
14
|
+
// entitlement-gate.ts). close_position, modify_stop, attach_brackets,
|
|
15
|
+
// audit_bracket_protection, record_position_reviews and the operator tools are
|
|
16
|
+
// untouched by construction; a pin test asserts the set can never grow into
|
|
17
|
+
// them. A partial exit through create_order waits for Resume. Flatten's
|
|
18
|
+
// create_order fallback (only when close_position is missing) runs BEFORE the
|
|
19
|
+
// connector sets the halt (skill/src/providers/gateway.ts executeFlatten).
|
|
20
|
+
//
|
|
21
|
+
// State: `operatorHalt` in plugin-config.json, written ONLY by the
|
|
22
|
+
// set_operator_halt operator tool (dashboard provenance required) and read per
|
|
23
|
+
// call — so a halt applies on the very next order and survives a gateway or
|
|
24
|
+
// connector restart. Fail direction: CLOSED. A config file that exists but
|
|
25
|
+
// cannot be read, or an `operatorHalt` value of the wrong shape, is treated
|
|
26
|
+
// as PAUSED: a halt we cannot read is kept, never dropped. The operator clears
|
|
27
|
+
// it from the dashboard (Resume), which rewrites the field.
|
|
28
|
+
//
|
|
29
|
+
// THREAT-MODEL HONESTY: like every local gate, this stops an agent that
|
|
30
|
+
// follows its tools (the realistic failure) — not a deliberately adversarial
|
|
31
|
+
// agent with shell access to its own box, which could edit the file.
|
|
32
|
+
//
|
|
33
|
+
// Kill-switch (break-glass only): RC_OPERATOR_HALT_GATE=off (never blocks)
|
|
34
|
+
// | shadow (log-only) | default enforce.
|
|
35
|
+
import { readPluginConfig, updatePluginConfig } from './plugin-config-io.js';
|
|
36
|
+
import { logger, formatError } from '../logger.js';
|
|
37
|
+
const TAG = 'operator-halt';
|
|
38
|
+
/** The ONLY tools an operator halt blocks. A denylist on purpose: a tool added
|
|
39
|
+
* tomorrow is never blocked by default (the conservative failure mode). */
|
|
40
|
+
export const OPERATOR_HALT_GATED_TOOLS = new Set(['create_order']);
|
|
41
|
+
export function resolveOperatorHaltGateMode() {
|
|
42
|
+
const raw = (process.env.RC_OPERATOR_HALT_GATE ?? '').toLowerCase();
|
|
43
|
+
if (raw === 'off')
|
|
44
|
+
return 'off';
|
|
45
|
+
if (raw === 'shadow')
|
|
46
|
+
return 'shadow';
|
|
47
|
+
return 'enforce';
|
|
48
|
+
}
|
|
49
|
+
function isHaltMode(v) {
|
|
50
|
+
return v === 'PAUSED' || v === 'STOPPED';
|
|
51
|
+
}
|
|
52
|
+
/** The operator's current halt. Never throws. */
|
|
53
|
+
export function readOperatorHalt(configPath) {
|
|
54
|
+
let cfg;
|
|
55
|
+
try {
|
|
56
|
+
cfg = readPluginConfig(configPath);
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
return { mode: 'PAUSED', since: null, unreadable: `plugin-config.json unreadable: ${formatError(err)}` };
|
|
60
|
+
}
|
|
61
|
+
const halt = cfg.operatorHalt;
|
|
62
|
+
if (halt === undefined || halt === null)
|
|
63
|
+
return { mode: 'ACTIVE', since: null };
|
|
64
|
+
const h = halt;
|
|
65
|
+
if (typeof halt !== 'object' || !isHaltMode(h.mode)) {
|
|
66
|
+
return { mode: 'PAUSED', since: null, unreadable: 'operatorHalt has an unexpected shape' };
|
|
67
|
+
}
|
|
68
|
+
return { mode: h.mode, since: typeof h.since === 'string' ? h.since : null };
|
|
69
|
+
}
|
|
70
|
+
/** set_operator_halt: `mode` omitted = read the current state (no write).
|
|
71
|
+
* ACTIVE clears the halt; PAUSED / STOPPED set it. Provenance is checked by
|
|
72
|
+
* the registration (operator-only), not here. */
|
|
73
|
+
export function setOperatorHaltTool(args, deps = {}) {
|
|
74
|
+
const current = readOperatorHalt(deps.configPath);
|
|
75
|
+
const mode = args?.mode;
|
|
76
|
+
if (mode === undefined || mode === null || mode === '') {
|
|
77
|
+
return { ok: true, mode: current.mode, previousMode: current.mode, since: current.since };
|
|
78
|
+
}
|
|
79
|
+
if (mode !== 'ACTIVE' && !isHaltMode(mode)) {
|
|
80
|
+
return {
|
|
81
|
+
ok: false,
|
|
82
|
+
mode: current.mode,
|
|
83
|
+
previousMode: current.mode,
|
|
84
|
+
since: current.since,
|
|
85
|
+
error: "Invalid mode. Must be 'ACTIVE', 'PAUSED' or 'STOPPED' (or omitted to read the current state).",
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
// Keep the original start time when the halt only changes kind (PAUSED → STOPPED).
|
|
89
|
+
const since = mode === 'ACTIVE' ? null : current.mode !== 'ACTIVE' && current.since ? current.since : (deps.now?.() ?? new Date()).toISOString();
|
|
90
|
+
try {
|
|
91
|
+
updatePluginConfig({ operatorHalt: mode === 'ACTIVE' ? undefined : { mode, since } }, deps.configPath);
|
|
92
|
+
}
|
|
93
|
+
catch (err) {
|
|
94
|
+
return { ok: false, mode: current.mode, previousMode: current.mode, since: current.since, error: `Cannot write config: ${formatError(err)}` };
|
|
95
|
+
}
|
|
96
|
+
if (mode !== current.mode)
|
|
97
|
+
logger.info(TAG, `operator halt ${current.mode} → ${mode}`);
|
|
98
|
+
return { ok: true, mode, previousMode: current.mode, since };
|
|
99
|
+
}
|
|
100
|
+
/** Structured, agent-visible result for a blocked call. Worded so the agent
|
|
101
|
+
* stops cleanly (no retry loop) and keeps managing the existing book. */
|
|
102
|
+
export function operatorHaltBlockedResult(name, state) {
|
|
103
|
+
const what = state.mode === 'STOPPED' ? 'stopped' : 'paused';
|
|
104
|
+
return {
|
|
105
|
+
ok: false,
|
|
106
|
+
error: 'operator_halt',
|
|
107
|
+
tool: name,
|
|
108
|
+
mode: state.mode,
|
|
109
|
+
since: state.since,
|
|
110
|
+
message: `New entries are blocked: the operator ${what} trading from the dashboard` +
|
|
111
|
+
`${state.since ? ` (since ${state.since})` : ''}. Do not retry this call and do not look for ` +
|
|
112
|
+
`another way to open a position. Existing positions stay manageable: close_position closes them ` +
|
|
113
|
+
`and modify_stop / attach_brackets keep protecting them; a partial exit through create_order ` +
|
|
114
|
+
`waits until the operator resumes, from the dashboard.`,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
export class OperatorHaltGate {
|
|
118
|
+
mode;
|
|
119
|
+
configPath;
|
|
120
|
+
/** One log line per state change, not per blocked call. */
|
|
121
|
+
lastLoggedKey = '';
|
|
122
|
+
constructor(opts = {}) {
|
|
123
|
+
this.mode = opts.mode ?? resolveOperatorHaltGateMode();
|
|
124
|
+
this.configPath = opts.configPath;
|
|
125
|
+
if (this.mode !== 'enforce')
|
|
126
|
+
logger.info(TAG, `mode=${this.mode}`);
|
|
127
|
+
}
|
|
128
|
+
/** The halt that blocks this call, or null. Non-gated names short-circuit
|
|
129
|
+
* FIRST, so no state, mode or file can ever touch the safety set. */
|
|
130
|
+
blocking(name) {
|
|
131
|
+
if (!OPERATOR_HALT_GATED_TOOLS.has(name))
|
|
132
|
+
return null;
|
|
133
|
+
if (this.mode === 'off')
|
|
134
|
+
return null;
|
|
135
|
+
const state = readOperatorHalt(this.configPath);
|
|
136
|
+
if (state.mode === 'ACTIVE')
|
|
137
|
+
return null;
|
|
138
|
+
const key = `${state.mode}:${state.since}:${state.unreadable ?? ''}`;
|
|
139
|
+
if (key !== this.lastLoggedKey) {
|
|
140
|
+
this.lastLoggedKey = key;
|
|
141
|
+
logger.warn(TAG, `${name} ${this.mode === 'shadow' ? 'WOULD BE blocked (shadow)' : 'blocked'}: operator ${state.mode}` +
|
|
142
|
+
(state.unreadable ? ` — ${state.unreadable} (failing closed)` : ''));
|
|
143
|
+
}
|
|
144
|
+
return this.mode === 'shadow' ? null : state;
|
|
145
|
+
}
|
|
146
|
+
wrapTool(tool, jsonResult) {
|
|
147
|
+
if (!OPERATOR_HALT_GATED_TOOLS.has(tool.name))
|
|
148
|
+
return tool;
|
|
149
|
+
const execute = tool.execute;
|
|
150
|
+
return {
|
|
151
|
+
...tool,
|
|
152
|
+
execute: (...a) => {
|
|
153
|
+
const state = this.blocking(tool.name);
|
|
154
|
+
if (state)
|
|
155
|
+
return jsonResult(operatorHaltBlockedResult(tool.name, state));
|
|
156
|
+
return execute(...a);
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -223,6 +223,13 @@ export interface PluginConfigFile {
|
|
|
223
223
|
mode?: 'off' | 'shadow' | 'observe' | 'enforce';
|
|
224
224
|
minutes?: number;
|
|
225
225
|
};
|
|
226
|
+
/** The dashboard's Pause / Kill / Flatten as the order path sees it. Written
|
|
227
|
+
* ONLY by the set_operator_halt operator tool; absent = ACTIVE. Read per
|
|
228
|
+
* create_order by OperatorHaltGate (config/operator-halt.ts). */
|
|
229
|
+
operatorHalt?: {
|
|
230
|
+
mode: 'PAUSED' | 'STOPPED';
|
|
231
|
+
since: string | null;
|
|
232
|
+
};
|
|
226
233
|
[extra: string]: unknown;
|
|
227
234
|
}
|
|
228
235
|
export declare function defaultConfigPath(): string;
|
package/config/tool-gate.js
CHANGED
|
@@ -31,6 +31,9 @@ export const UNGOVERNABLE_TOOLS = new Set([
|
|
|
31
31
|
'set_trading_mode',
|
|
32
32
|
'get_bracket_config',
|
|
33
33
|
'set_bracket_requirement',
|
|
34
|
+
// The dashboard's Pause / Kill / Flatten as create_order enforces them —
|
|
35
|
+
// disabling it would leave the operator's stop a display (operator-halt.ts).
|
|
36
|
+
'set_operator_halt',
|
|
34
37
|
// Hyperliquid guided onboarding (box-generated agent wallet) — same
|
|
35
38
|
// operator-only channel; disabling them would strand the HL setup flow.
|
|
36
39
|
'hl_provision_agent_wallet',
|