@beeos-ai/device-agent 0.15.0 → 0.16.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/README.md +35 -0
- package/dist/adapters/agent-gateway-client.d.ts +6 -68
- package/dist/adapters/agent-gateway-client.js +7 -67
- package/dist/adapters/agent-gateway-client.js.map +1 -1
- package/dist/adapters/device-compat.d.ts +1 -2
- package/dist/adapters/device-compat.js +2 -52
- package/dist/adapters/device-compat.js.map +1 -1
- package/dist/agent-runtime/action-guard.js +92 -17
- package/dist/agent-runtime/action-guard.js.map +1 -1
- package/dist/agent-runtime/adapters/base.d.ts +13 -9
- package/dist/agent-runtime/adapters/base.js.map +1 -1
- package/dist/agent-runtime/adapters/general-flash.d.ts +3 -3
- package/dist/agent-runtime/adapters/general-flash.js +2 -2
- package/dist/agent-runtime/adapters/general-flash.js.map +1 -1
- package/dist/agent-runtime/adapters/native-tools.d.ts +56 -0
- package/dist/agent-runtime/adapters/native-tools.js +416 -0
- package/dist/agent-runtime/adapters/native-tools.js.map +1 -0
- package/dist/agent-runtime/adapters/openai.d.ts +1 -2
- package/dist/agent-runtime/adapters/openai.js +5 -5
- package/dist/agent-runtime/adapters/openai.js.map +1 -1
- package/dist/agent-runtime/adapters/pro.d.ts +7 -37
- package/dist/agent-runtime/adapters/pro.js +7 -249
- package/dist/agent-runtime/adapters/pro.js.map +1 -1
- package/dist/agent-runtime/advanced/app-card.js +9 -2
- package/dist/agent-runtime/advanced/app-card.js.map +1 -1
- package/dist/agent-runtime/advanced/subgoal-verifier.d.ts +1 -0
- package/dist/agent-runtime/advanced/subgoal-verifier.js +30 -36
- package/dist/agent-runtime/advanced/subgoal-verifier.js.map +1 -1
- package/dist/agent-runtime/advanced/task-state.js +4 -9
- package/dist/agent-runtime/advanced/task-state.js.map +1 -1
- package/dist/agent-runtime/agent-runner.d.ts +2 -11
- package/dist/agent-runtime/agent-runner.js +69 -34
- package/dist/agent-runtime/agent-runner.js.map +1 -1
- package/dist/agent-runtime/core.d.ts +24 -46
- package/dist/agent-runtime/core.js +161 -228
- package/dist/agent-runtime/core.js.map +1 -1
- package/dist/agent-runtime/execution-checks.d.ts +40 -0
- package/dist/agent-runtime/execution-checks.js +133 -0
- package/dist/agent-runtime/execution-checks.js.map +1 -0
- package/dist/agent-runtime/execution-mode.d.ts +1 -8
- package/dist/agent-runtime/execution-mode.js +10 -30
- package/dist/agent-runtime/execution-mode.js.map +1 -1
- package/dist/agent-runtime/feedback.d.ts +4 -28
- package/dist/agent-runtime/feedback.js +4 -26
- package/dist/agent-runtime/feedback.js.map +1 -1
- package/dist/agent-runtime/form-prerequisites.d.ts +3 -0
- package/dist/agent-runtime/form-prerequisites.js +52 -0
- package/dist/agent-runtime/form-prerequisites.js.map +1 -0
- package/dist/agent-runtime/index.d.ts +2 -8
- package/dist/agent-runtime/index.js +2 -8
- package/dist/agent-runtime/index.js.map +1 -1
- package/dist/agent-runtime/{modes/orchestrator → knowledge}/app-guide.d.ts +1 -1
- package/dist/agent-runtime/{modes/orchestrator → knowledge}/app-guide.js +1 -1
- package/dist/agent-runtime/knowledge/app-guide.js.map +1 -0
- package/dist/agent-runtime/models/base.d.ts +3 -1
- package/dist/agent-runtime/models/client.js +30 -9
- package/dist/agent-runtime/models/client.js.map +1 -1
- package/dist/agent-runtime/models/reasoning.d.ts +10 -0
- package/dist/agent-runtime/models/reasoning.js +29 -0
- package/dist/agent-runtime/models/reasoning.js.map +1 -0
- package/dist/agent-runtime/models/runtime-registry.d.ts +2 -1
- package/dist/agent-runtime/models/runtime-registry.js +4 -2
- package/dist/agent-runtime/models/runtime-registry.js.map +1 -1
- package/dist/agent-runtime/models/vlm/autoglm.js +6 -2
- package/dist/agent-runtime/models/vlm/autoglm.js.map +1 -1
- package/dist/agent-runtime/models/vlm/base.js +1 -12
- package/dist/agent-runtime/models/vlm/base.js.map +1 -1
- package/dist/agent-runtime/models/vlm/index.d.ts +0 -4
- package/dist/agent-runtime/models/vlm/index.js +0 -4
- package/dist/agent-runtime/models/vlm/index.js.map +1 -1
- package/dist/agent-runtime/modes/hybrid/index.d.ts +2 -12
- package/dist/agent-runtime/modes/hybrid/index.js +10 -27
- package/dist/agent-runtime/modes/hybrid/index.js.map +1 -1
- package/dist/agent-runtime/modes/hybrid/planner/base.d.ts +4 -44
- package/dist/agent-runtime/modes/hybrid/planner/base.js +3 -21
- package/dist/agent-runtime/modes/hybrid/planner/base.js.map +1 -1
- package/dist/agent-runtime/modes/hybrid/planner/llm-planner.d.ts +1 -1
- package/dist/agent-runtime/modes/hybrid/planner/llm-planner.js +9 -6
- package/dist/agent-runtime/modes/hybrid/planner/llm-planner.js.map +1 -1
- package/dist/agent-runtime/modes/hybrid/planner/prompts.d.ts +1 -17
- package/dist/agent-runtime/modes/hybrid/planner/prompts.js +65 -160
- package/dist/agent-runtime/modes/hybrid/planner/prompts.js.map +1 -1
- package/dist/agent-runtime/plan-executor.d.ts +13 -14
- package/dist/agent-runtime/plan-executor.js +236 -122
- package/dist/agent-runtime/plan-executor.js.map +1 -1
- package/dist/agent-runtime/pro-memory.js +1 -1
- package/dist/agent-runtime/pro-memory.js.map +1 -1
- package/dist/agent-runtime/pro-operator.js +8 -2
- package/dist/agent-runtime/pro-operator.js.map +1 -1
- package/dist/agent-runtime/pro-perception.d.ts +1 -0
- package/dist/agent-runtime/pro-perception.js +4 -2
- package/dist/agent-runtime/pro-perception.js.map +1 -1
- package/dist/agent-runtime/pro-target-check.d.ts +2 -2
- package/dist/agent-runtime/pro-target-check.js +102 -17
- package/dist/agent-runtime/pro-target-check.js.map +1 -1
- package/dist/agent-runtime/prompts/operator.d.ts +2 -0
- package/dist/agent-runtime/prompts/operator.js +69 -0
- package/dist/agent-runtime/prompts/operator.js.map +1 -0
- package/dist/agent-runtime/prompts/verification.d.ts +2 -0
- package/dist/agent-runtime/prompts/verification.js +52 -0
- package/dist/agent-runtime/prompts/verification.js.map +1 -0
- package/dist/agent-runtime/skills/replay.d.ts +4 -14
- package/dist/agent-runtime/skills/replay.js +46 -27
- package/dist/agent-runtime/skills/replay.js.map +1 -1
- package/dist/agent-runtime/tool-batch.d.ts +10 -0
- package/dist/agent-runtime/tool-batch.js +51 -0
- package/dist/agent-runtime/tool-batch.js.map +1 -0
- package/dist/agent-runtime/visual-state.d.ts +2 -0
- package/dist/agent-runtime/visual-state.js +24 -0
- package/dist/agent-runtime/visual-state.js.map +1 -0
- package/dist/agent-runtime/vlm.d.ts +1 -1
- package/dist/agent-runtime/vlm.js +1 -1
- package/dist/api.js +3 -1
- package/dist/api.js.map +1 -1
- package/dist/app/agent-host.js +6 -2
- package/dist/app/agent-host.js.map +1 -1
- package/dist/app/multi-device-host.js +4 -5
- package/dist/app/multi-device-host.js.map +1 -1
- package/dist/app/session-manager.d.ts +3 -45
- package/dist/app/session-manager.js +8 -9
- package/dist/app/session-manager.js.map +1 -1
- package/dist/bootstrap.js +25 -84
- package/dist/bootstrap.js.map +1 -1
- package/dist/config/loader.js +12 -1
- package/dist/config/loader.js.map +1 -1
- package/dist/config/schema.d.ts +7 -2
- package/dist/config/schema.js +8 -5
- package/dist/config/schema.js.map +1 -1
- package/dist/core/abortable-read.d.ts +1 -0
- package/dist/core/abortable-read.js +24 -0
- package/dist/core/abortable-read.js.map +1 -0
- package/dist/device/ui-xml.d.ts +4 -0
- package/dist/device/ui-xml.js +35 -13
- package/dist/device/ui-xml.js.map +1 -1
- package/dist/fleet/adapters/process/node-process-manager.d.ts +2 -1
- package/dist/fleet/adapters/process/node-process-manager.js +11 -19
- package/dist/fleet/adapters/process/node-process-manager.js.map +1 -1
- package/dist/inbound/acp/handlers/models.js +11 -8
- package/dist/inbound/acp/handlers/models.js.map +1 -1
- package/dist/inbound/acp/handlers/session.d.ts +1 -4
- package/dist/inbound/acp/handlers/session.js +3 -6
- package/dist/inbound/acp/handlers/session.js.map +1 -1
- package/dist/inbound/bma/agent.d.ts +47 -0
- package/dist/inbound/bma/agent.js +130 -0
- package/dist/inbound/bma/agent.js.map +1 -0
- package/dist/inbound/bma/command.d.ts +15 -0
- package/dist/inbound/bma/command.js +98 -0
- package/dist/inbound/bma/command.js.map +1 -0
- package/dist/inbound/bma/model-proxy.d.ts +22 -0
- package/dist/inbound/bma/model-proxy.js +130 -0
- package/dist/inbound/bma/model-proxy.js.map +1 -0
- package/dist/inbound/cli/main.js +12 -2
- package/dist/inbound/cli/main.js.map +1 -1
- package/dist/inbound/cli/run-artifacts.js +16 -7
- package/dist/inbound/cli/run-artifacts.js.map +1 -1
- package/dist/inbound/cli/run-command.d.ts +7 -0
- package/dist/inbound/cli/run-command.js +37 -29
- package/dist/inbound/cli/run-command.js.map +1 -1
- package/dist/index.d.ts +1 -10
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp-client/autospawn.d.ts +7 -9
- package/dist/mcp-client/autospawn.js +16 -12
- package/dist/mcp-client/autospawn.js.map +1 -1
- package/dist/mcp-client/client.d.ts +6 -3
- package/dist/mcp-client/client.js +31 -13
- package/dist/mcp-client/client.js.map +1 -1
- package/dist/mcp-client/runtime.d.ts +5 -2
- package/dist/plugins/agent-sync/index.d.ts +32 -17
- package/dist/plugins/agent-sync/index.js +223 -232
- package/dist/plugins/agent-sync/index.js.map +1 -1
- package/dist/plugins/message-bus/inbound.d.ts +0 -32
- package/dist/plugins/message-bus/inbound.js +3 -0
- package/dist/plugins/message-bus/inbound.js.map +1 -1
- package/dist/plugins/message-bus/ms-channel-notifier.d.ts +1 -0
- package/dist/plugins/message-bus/ms-channel-notifier.js +16 -8
- package/dist/plugins/message-bus/ms-channel-notifier.js.map +1 -1
- package/dist/plugins/native-chat/deadline.d.ts +2 -0
- package/dist/plugins/native-chat/deadline.js +16 -0
- package/dist/plugins/native-chat/deadline.js.map +1 -0
- package/dist/plugins/native-chat/index.d.ts +46 -0
- package/dist/plugins/native-chat/index.js +331 -0
- package/dist/plugins/native-chat/index.js.map +1 -0
- package/dist/plugins/native-chat/reply-stream.d.ts +50 -0
- package/dist/plugins/native-chat/reply-stream.js +81 -0
- package/dist/plugins/native-chat/reply-stream.js.map +1 -0
- package/dist/plugins/native-chat/session-notifier.d.ts +16 -0
- package/dist/plugins/native-chat/session-notifier.js +130 -0
- package/dist/plugins/native-chat/session-notifier.js.map +1 -0
- package/dist/ports/agent-core.d.ts +2 -0
- package/dist/ports/agent-host.d.ts +2 -0
- package/dist/ports/agent-host.js +0 -21
- package/dist/ports/agent-host.js.map +1 -1
- package/dist/ports/device.d.ts +0 -1
- package/dist/ports/device.js +0 -1
- package/dist/ports/device.js.map +1 -1
- package/dist/runtime-authority/device-prompt.gen.d.ts +54 -0
- package/dist/runtime-authority/device-prompt.gen.js +19 -0
- package/dist/runtime-authority/device-prompt.gen.js.map +1 -0
- package/dist/types.d.ts +10 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +5 -3
- package/dist/adapters/device-desktop.d.ts +0 -49
- package/dist/adapters/device-desktop.js +0 -132
- package/dist/adapters/device-desktop.js.map +0 -1
- package/dist/agent-runtime/factory.d.ts +0 -24
- package/dist/agent-runtime/factory.js +0 -25
- package/dist/agent-runtime/factory.js.map +0 -1
- package/dist/agent-runtime/models/vlm/guiowl.d.ts +0 -1
- package/dist/agent-runtime/models/vlm/guiowl.js +0 -249
- package/dist/agent-runtime/models/vlm/guiowl.js.map +0 -1
- package/dist/agent-runtime/models/vlm/maiui.d.ts +0 -1
- package/dist/agent-runtime/models/vlm/maiui.js +0 -142
- package/dist/agent-runtime/models/vlm/maiui.js.map +0 -1
- package/dist/agent-runtime/models/vlm/qwen38.d.ts +0 -1
- package/dist/agent-runtime/models/vlm/qwen38.js +0 -241
- package/dist/agent-runtime/models/vlm/qwen38.js.map +0 -1
- package/dist/agent-runtime/models/vlm/qwenvl.d.ts +0 -1
- package/dist/agent-runtime/models/vlm/qwenvl.js +0 -202
- package/dist/agent-runtime/models/vlm/qwenvl.js.map +0 -1
- package/dist/agent-runtime/modes/orchestrator/app-guide.js.map +0 -1
- package/dist/agent-runtime/modes/orchestrator/index.d.ts +0 -41
- package/dist/agent-runtime/modes/orchestrator/index.js +0 -218
- package/dist/agent-runtime/modes/orchestrator/index.js.map +0 -1
- package/dist/agent-runtime/modes/orchestrator/prompt.d.ts +0 -7
- package/dist/agent-runtime/modes/orchestrator/prompt.js +0 -53
- package/dist/agent-runtime/modes/orchestrator/prompt.js.map +0 -1
- package/dist/agent-runtime/reflection.d.ts +0 -100
- package/dist/agent-runtime/reflection.js +0 -241
- package/dist/agent-runtime/reflection.js.map +0 -1
- package/dist/agent-runtime/reflectors/action-reflector.d.ts +0 -97
- package/dist/agent-runtime/reflectors/action-reflector.js +0 -234
- package/dist/agent-runtime/reflectors/action-reflector.js.map +0 -1
- package/dist/agent-runtime/reflectors/policy.d.ts +0 -56
- package/dist/agent-runtime/reflectors/policy.js +0 -111
- package/dist/agent-runtime/reflectors/policy.js.map +0 -1
- package/dist/agent-runtime/reflectors/trajectory-reflector.d.ts +0 -93
- package/dist/agent-runtime/reflectors/trajectory-reflector.js +0 -224
- package/dist/agent-runtime/reflectors/trajectory-reflector.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Android observation, prediction, execution and deterministic checks.
|
|
3
3
|
*
|
|
4
4
|
* Mirrors the Python reference at
|
|
5
5
|
* /Users/heat/workspace/deviceagent_research/deviceagent/agent_runtime/loop/core.py
|
|
@@ -32,10 +32,9 @@ import { type Action, type Observation } from "@beeos-ai/device-common";
|
|
|
32
32
|
import type { IMcpRuntime } from "../mcp-client/runtime.js";
|
|
33
33
|
import type { IModelAdapter, ModelUsage, Prediction, StepHistory } from "./adapters/base.js";
|
|
34
34
|
import { type StepFeedback } from "./feedback.js";
|
|
35
|
-
import {
|
|
35
|
+
import { ExecutionChecks } from "./execution-checks.js";
|
|
36
36
|
import { ProTaskMemory } from "./pro-memory.js";
|
|
37
37
|
import { type OcrProvider } from "./ocr.js";
|
|
38
|
-
import type { TrajectoryVerdict } from "./reflectors/trajectory-reflector.js";
|
|
39
38
|
import { type ObservationMode } from "./observation-mode.js";
|
|
40
39
|
export type AgentLoopTerminator = "done" | "fail" | "call_for_user" | "step_budget" | "timeout" | "reflection_veto" | "cancelled" | "error";
|
|
41
40
|
export interface AgentRunHooks {
|
|
@@ -61,6 +60,8 @@ export interface AgentObservationEvent {
|
|
|
61
60
|
export interface AgentStepEvent {
|
|
62
61
|
/** 1-based step index. */
|
|
63
62
|
index: number;
|
|
63
|
+
/** Observation index before a sequence charges its additional taps. */
|
|
64
|
+
observationIndex?: number;
|
|
64
65
|
rationale: string;
|
|
65
66
|
action: Action;
|
|
66
67
|
prediction: Prediction;
|
|
@@ -87,6 +88,11 @@ export interface AgentErrorEvent {
|
|
|
87
88
|
export type AgentErrorCode = "MODEL_PREDICT_FAILED" | "MCP_ACT_FAILED" | "MCP_ACT_ACTIONABLE" | "MCP_OBSERVE_FAILED" | "STEP_BUDGET" | "TIMEOUT" | "REFLECTION_VETO" | "MODEL_FAIL" | "CALL_FOR_USER_TIMEOUT" | "ABORTED";
|
|
88
89
|
export interface AgentRunOptions {
|
|
89
90
|
task: string;
|
|
91
|
+
/** Preserve task identity independently of scoped prompts and recovery text. */
|
|
92
|
+
taskContext?: {
|
|
93
|
+
rootGoal: string;
|
|
94
|
+
currentMilestone: string;
|
|
95
|
+
};
|
|
90
96
|
env: Observation["env"];
|
|
91
97
|
mcp: IMcpRuntime;
|
|
92
98
|
adapter: IModelAdapter;
|
|
@@ -106,11 +112,13 @@ export interface AgentRunOptions {
|
|
|
106
112
|
signal?: AbortSignal;
|
|
107
113
|
/** Run hooks for streaming events. */
|
|
108
114
|
hooks?: AgentRunHooks;
|
|
109
|
-
/** Optional pre-built
|
|
110
|
-
|
|
115
|
+
/** Optional pre-built deterministic checks (test injection). */
|
|
116
|
+
executionChecks?: ExecutionChecks;
|
|
111
117
|
/** Pro only: completed prior loops within this same task, never another task. */
|
|
112
118
|
priorHistory?: StepHistory[];
|
|
113
119
|
proOperator?: boolean;
|
|
120
|
+
/** Whole-task plan guidance, separate from the immutable user goal. */
|
|
121
|
+
operatorGuidance?: string;
|
|
114
122
|
/** Optional injected OCR backend. Production uses BEEOS_OCR_API_KEY. */
|
|
115
123
|
ocrProvider?: OcrProvider;
|
|
116
124
|
proMemory?: ProTaskMemory;
|
|
@@ -132,20 +140,9 @@ export interface AgentRunResult {
|
|
|
132
140
|
* (verification codes, computed prices, etc.).
|
|
133
141
|
*/
|
|
134
142
|
notes: string[];
|
|
135
|
-
/**
|
|
136
|
-
* Phase 2.2 — final verdict from the {@link ITrajectoryReflector}, if any.
|
|
137
|
-
* Set when the periodic trajectory check flipped to `off_track` or
|
|
138
|
-
* `stuck`. The PlanExecutor surfaces this into `PlanContext.trajectoryVerdict`
|
|
139
|
-
* on replan so the planner can pivot the plan rather than re-deriving the
|
|
140
|
-
* failure mode.
|
|
141
|
-
*/
|
|
142
|
-
trajectoryVerdict?: {
|
|
143
|
-
verdict: Exclude<TrajectoryVerdict, "on_track">;
|
|
144
|
-
reason: string;
|
|
145
|
-
};
|
|
146
143
|
/**
|
|
147
144
|
* Append-only log of every {@link StepFeedback} pushed during the run
|
|
148
|
-
* (pre-sanity vetoes, MCP act failures
|
|
145
|
+
* (pre-sanity vetoes, MCP act failures).
|
|
149
146
|
* The PlanExecutor surfaces the tail of this list as
|
|
150
147
|
* `PlanContext.failureChain` on replan so the planner sees the precise
|
|
151
148
|
* chain of failures rather than a free-form failure-reason string.
|
|
@@ -154,18 +151,19 @@ export interface AgentRunResult {
|
|
|
154
151
|
}
|
|
155
152
|
export declare class AgentLoop {
|
|
156
153
|
private readonly opts;
|
|
154
|
+
private readonly batch;
|
|
157
155
|
private static readonly DEFAULT_MAX_STEPS;
|
|
158
156
|
private static readonly DEFAULT_TIMEOUT_MS;
|
|
159
157
|
private readonly history;
|
|
160
158
|
private evidence?;
|
|
159
|
+
private observationIndex?;
|
|
161
160
|
private readonly proMemory?;
|
|
162
|
-
private readonly
|
|
161
|
+
private readonly executionChecks;
|
|
163
162
|
private readonly notes;
|
|
164
|
-
private trajectoryVerdict?;
|
|
165
163
|
/**
|
|
166
164
|
* One-way bus for diagnostics that need to surface in the next
|
|
167
165
|
* `Observation.task` prefix. Drained right before each predict; entries
|
|
168
|
-
* are pushed by veto
|
|
166
|
+
* are pushed by veto and act_failed paths. See
|
|
169
167
|
* `feedback.ts` for the rationale (closes the reflection feedback loop
|
|
170
168
|
* without adapter protocol changes).
|
|
171
169
|
*/
|
|
@@ -187,10 +185,14 @@ export declare class AgentLoop {
|
|
|
187
185
|
* four identical actions.
|
|
188
186
|
*/
|
|
189
187
|
private vetoCodeCount;
|
|
188
|
+
private signal?;
|
|
189
|
+
private deadline;
|
|
190
|
+
private readonly timeoutReason;
|
|
190
191
|
constructor(opts: AgentRunOptions);
|
|
191
192
|
/** Push feedback into both the pending queue and the immutable log. */
|
|
192
193
|
private pushFeedback;
|
|
193
194
|
run(): Promise<AgentRunResult>;
|
|
195
|
+
private runLoop;
|
|
194
196
|
private observe;
|
|
195
197
|
/**
|
|
196
198
|
* Translate a model-frame action into an MCP-frame action by scaling
|
|
@@ -198,30 +200,6 @@ export declare class AgentLoop {
|
|
|
198
200
|
* `_coordSystem` payload hint that `parsedToAction` plants.
|
|
199
201
|
*/
|
|
200
202
|
private scaleAction;
|
|
201
|
-
/**
|
|
202
|
-
* Phase 1.4 — invoke the optional model-based action reflector. Verdicts
|
|
203
|
-
* are advisory: a `passed: false` result is appended to the just-pushed
|
|
204
|
-
* StepHistory entry's `rationale` (so the next `predict` sees it), and
|
|
205
|
-
* the entry's `actionResult` is upgraded from `ok` → `act_failed` so
|
|
206
|
-
* downstream code (skill evolver, trajectory reflector) treats it as a
|
|
207
|
-
* miss.
|
|
208
|
-
*
|
|
209
|
-
* The reflector itself is responsible for {@link IActionReflector.shouldReflect}
|
|
210
|
-
* gating; this helper just composes the wiring. Cost is rolled into the
|
|
211
|
-
* surrounding {@link AgentLoop.run} `usage` aggregator.
|
|
212
|
-
*/
|
|
213
|
-
private maybeRunActionReflector;
|
|
214
|
-
/**
|
|
215
|
-
* Phase 2.2 — periodic global progress assessment. The reflector decides
|
|
216
|
-
* its own gating (default: every 5 steps); we just compose the wiring.
|
|
217
|
-
*
|
|
218
|
-
* Returns a non-empty veto string only on `stuck`. `off_track` injects an
|
|
219
|
-
* advisory line into the most recent history entry's rationale so the
|
|
220
|
-
* grounder sees it next predict, but the loop keeps running. The verdict
|
|
221
|
-
* itself is stashed on `this.trajectoryVerdict` so the PlanExecutor can
|
|
222
|
-
* thread it into `PlanContext.trajectoryVerdict` on replan.
|
|
223
|
-
*/
|
|
224
|
-
private maybeRunTrajectoryReflector;
|
|
225
203
|
private recordHistory;
|
|
226
204
|
/**
|
|
227
205
|
* Backfill `screenStateHashAfter` on the just-pushed terminal history
|
|
@@ -246,8 +224,8 @@ export declare class AgentLoop {
|
|
|
246
224
|
* that look identical to a human should produce the same hash.
|
|
247
225
|
*
|
|
248
226
|
* Returns `undefined` when no `uiDump` is available — pure-vision
|
|
249
|
-
* adapters (
|
|
227
|
+
* adapters (AutoGLM) skip the dump round-trip
|
|
250
228
|
* and fall back to the legacy 8px coordinate-similarity heuristic in
|
|
251
|
-
* `
|
|
229
|
+
* `ExecutionChecks.maybeBlockAction`.
|
|
252
230
|
*/
|
|
253
231
|
export declare function computeScreenStateHash(uiDump: string | undefined): string | undefined;
|